:root {
    --brand-blue: #0b4f8a;
    --brand-blue-dark: #073a66;
    --accent: #ff7a00;
    --text-dark: #1c1c1c;
    --text-muted: #6b7280;
    --bg-light: #f6f8fa;
    --border: #e2e6ea;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Segoe UI", Arial, sans-serif;
    color: var(--text-dark);
    background: #ffffff;
    line-height: 1.5;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Header */
.site-header {
    background: var(--brand-blue-dark);
    color: #fff;
}

.top-banner {
    background: var(--brand-blue);
    text-align: center;
    font-size: 0.8rem;
    padding: 6px 10px;
    letter-spacing: 0.3px;
}

.header-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    position: relative;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
    white-space: nowrap;
}

.logo span {
    color: var(--accent);
}

.main-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
}

.main-nav a {
    font-size: 0.95rem;
    font-weight: 500;
    opacity: 0.9;
    transition: opacity 0.2s, color 0.2s;
}

.main-nav a:hover,
.main-nav a.active {
    opacity: 1;
    color: var(--accent);
}

.lang-switch {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.lang-hint {
    font-size: 0.75rem;
    color: #c7d2dd;
    white-space: nowrap;
}

.lang-toggle {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 6px 14px;
    border-radius: 20px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    letter-spacing: 0.5px;
}

.lang-toggle:hover {
    background: var(--accent);
    border-color: var(--accent);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 28px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
}

.nav-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Climatiseurs section */
.climatiseurs-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 24px 64px;
}

.section-heading {
    text-align: center;
    margin-bottom: 40px;
}

.section-heading h1 {
    font-size: 2.2rem;
    color: var(--brand-blue-dark);
    margin-bottom: 10px;
}

.section-heading p {
    color: var(--text-muted);
    font-size: 1rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 28px;
}

.product-card {
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s, transform 0.2s;
}

.product-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-3px);
}

.product-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    background: var(--bg-light);
}

.product-info {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-info h2 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.product-stock {
    font-size: 0.85rem;
    color: #2e8b57;
    margin-bottom: 8px;
}

.product-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--brand-blue-dark);
    margin-bottom: 16px;
}

.btn-order {
    margin-top: auto;
    display: inline-block;
    text-align: center;
    background: var(--accent);
    color: #fff;
    font-weight: 600;
    font-family: inherit;
    font-size: 1rem;
    padding: 12px 16px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-order:hover {
    background: #e56a00;
}

/* Footer */
.site-footer {
    background: var(--brand-blue-dark);
    color: #f0f3f6;
    margin-top: 40px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: space-between;
}

.footer-brand h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.footer-brand p {
    color: #c7d2dd;
    font-size: 0.9rem;
    max-width: 320px;
}

.footer-contact h4 {
    font-size: 1rem;
    margin-bottom: 12px;
    color: #fff;
}

.footer-contact p {
    margin-bottom: 8px;
}

.footer-contact a {
    color: #c7d2dd;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-contact a:hover {
    color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    text-align: center;
    padding: 16px;
    font-size: 0.8rem;
    color: #a9b6c4;
}

/* Ventilateurs (reuses .product-grid / .product-card) */
.ventilateurs-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 24px 64px;
}

.product-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.btn-row {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.btn-row .btn-order {
    flex: 1;
}

.btn-order-alt {
    background: var(--brand-blue);
}

.btn-order-alt:hover {
    background: var(--brand-blue-dark);
}

/* Shared info sections: Comment ça marche / Vos suggestions / Guide BTU */
.info-section {
    max-width: 900px;
    margin: 0 auto;
    padding: 24px 24px 64px;
}

/* Comment ça marche */
.steps {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.steps li {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 20px;
}

.step-number {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--brand-blue-dark);
    color: #fff;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.steps h3 {
    font-size: 1.05rem;
    color: var(--brand-blue-dark);
    margin-bottom: 6px;
}

.steps p {
    color: var(--text-dark);
    font-size: 0.95rem;
}

.steps a {
    color: var(--brand-blue);
    font-weight: 600;
    text-decoration: underline;
}

/* Vos suggestions form */
.suggestion-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 28px;
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-row label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
}

.form-row input,
.form-row select,
.form-row textarea {
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.95rem;
}

.form-row textarea {
    resize: vertical;
}

.form-row-checkbox {
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;
}

.form-row-checkbox label {
    font-weight: 400;
    font-size: 0.85rem;
}

.suggestion-form .btn-order {
    align-self: flex-start;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

/* Guide BTU */
.btu-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    background: #fff;
}

.btu-table th,
.btu-table td {
    border: 1px solid var(--border);
    padding: 12px 16px;
    text-align: left;
}

.btu-table th {
    background: var(--brand-blue-dark);
    color: #fff;
}

.btu-table tbody tr:nth-child(even) {
    background: var(--bg-light);
}

.disclaimer {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
}

/* Order / payment modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(7, 58, 102, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}

.modal-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.modal {
    background: #fff;
    border-radius: 12px;
    max-width: 440px;
    width: 100%;
    padding: 28px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: none;
    border: none;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    color: var(--text-muted);
}

.modal-product {
    font-size: 1.1rem;
    color: var(--brand-blue-dark);
    margin-bottom: 4px;
    padding-right: 24px;
}

.modal-price {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 18px;
}

.modal-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.payment-options {
    display: flex;
    gap: 10px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.payment-option {
    flex: 1;
    min-width: 100px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-light);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.payment-option:hover {
    border-color: var(--brand-blue);
}

.payment-option.active {
    background: var(--brand-blue-dark);
    color: #fff;
    border-color: var(--brand-blue-dark);
}

.payment-detail p {
    margin-bottom: 10px;
    font-size: 0.92rem;
}

.copy-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 10px 12px;
    margin-bottom: 10px;
    font-size: 0.85rem;
    word-break: break-all;
}

.copy-btn {
    flex-shrink: 0;
    background: var(--brand-blue);
    color: #fff;
    border: none;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background 0.2s;
}

.copy-btn:hover {
    background: var(--brand-blue-dark);
}

.modal-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-style: italic;
}

.modal-confirm {
    display: block;
    text-align: center;
    margin-top: 14px;
    border: none;
    cursor: pointer;
}

/* Professionnels page */
.pro-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.pro-feature {
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 22px;
}

.pro-feature h3 {
    font-size: 1.05rem;
    color: var(--brand-blue-dark);
    margin-bottom: 8px;
}

.pro-feature p {
    font-size: 0.95rem;
    color: var(--text-dark);
}

.pro-cta {
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 24px;
    text-align: center;
}

.pro-cta p {
    margin-bottom: 16px;
    color: var(--text-dark);
}

.pro-cta .btn-order {
    display: inline-block;
}

@media (max-width: 860px) {
    .header-main {
        flex-wrap: nowrap;
        padding: 14px 20px;
    }

    .nav-toggle {
        display: flex;
        order: 2;
    }

    .lang-switch {
        order: 3;
    }

    .main-nav {
        order: 4;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        background: var(--brand-blue-dark);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.25s ease;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    }

    .main-nav.open {
        max-height: 600px;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
        padding: 8px 20px 18px;
    }

    .main-nav ul li {
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .main-nav ul li:first-child {
        border-top: none;
    }

    .main-nav a {
        display: block;
        padding: 12px 4px;
    }

    .lang-hint {
        font-size: 0.65rem;
    }

    .lang-switch {
        gap: 5px;
    }

    .lang-toggle {
        padding: 6px 10px;
        font-size: 0.8rem;
    }
}

@media (max-width: 360px) {
    .lang-hint {
        display: none;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.2rem;
    }

    .btn-row {
        flex-direction: column;
    }
}
