:root {
    --navy: #0F2336;
    --navy-dark: #091724;
    --water: #0077CC;
    --water-light: #E8F3FC;
    --stop: #C8102E;
    --whatsapp: #1D9E53;
    --bg: #F6F8FB;
    --surface: #FFFFFF;
    --text: #1E293B;
    --muted: #52637A;
    --border: #DCE5F0;
    --radius: 14px;
    --shadow: 0 10px 30px rgba(15, 35, 54, 0.08);
    --max-w: 1160px;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--surface);
    overflow-x: clip;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--water);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.container {
    width: 100%;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 20px;
}

.skip-link {
    position: absolute;
    left: -9999px;
}
.skip-link:focus {
    left: 16px;
    top: 16px;
    z-index: 1000;
    background: var(--navy);
    color: #fff;
    padding: 10px 16px;
    border-radius: 8px;
}

/* Top promo bar */
.top-promo-bar {
    background: var(--navy);
    color: #fff;
    font-size: 0.9rem;
    padding: 8px 0;
}
.top-promo-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}
.promo-link {
    color: #8FD0FF;
    font-weight: 600;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 90;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 74px;
    gap: 16px;
}
.brand-logo {
    height: 54px;
    width: auto;
}
.main-nav {
    display: flex;
    align-items: center;
    gap: 22px;
}
.nav-link {
    color: var(--navy);
    font-weight: 600;
    padding: 8px 4px;
}
.nav-link.is-active {
    color: var(--water);
    border-bottom: 2px solid var(--water);
}
.nav-cta {
    background: var(--navy);
    color: #fff;
    padding: 10px 18px;
    border-radius: 999px;
    font-weight: 600;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}
.nav-cta:hover {
    background: var(--water);
    text-decoration: none;
}

/* Burger mobile */
.nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px;
    min-width: 44px;
    min-height: 44px;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
}
.burger-line {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--navy);
    border-radius: 2px;
}

/* Typography & Buttons */
h1, h2, h3 {
    color: var(--navy);
    line-height: 1.2;
    margin-top: 0;
}
h1 { font-size: clamp(1.75rem, 3.2vw, 2.65rem); }
h2 { font-size: clamp(1.4rem, 2.5vw, 2rem); }
h3 { font-size: 1.15rem; }

.eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--water);
    margin-bottom: 10px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 12px 22px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.15s ease, background-color 0.2s ease, border-color 0.2s ease;
    text-align: center;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: 0.92rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--water); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--water-light); }
.btn-whatsapp { background: var(--whatsapp); color: #fff; }
.btn-whatsapp:hover { background: #168243; }

/* Hero */
.hero {
    padding: 48px 0 56px;
    background: linear-gradient(180deg, #FFFFFF 0%, var(--bg) 100%);
}
.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 36px;
    align-items: center;
}
.hero-lead {
    font-size: 1.12rem;
    color: var(--muted);
    margin-bottom: 24px;
}
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.hero-img {
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    width: 100%;
    object-fit: cover;
}

/* Sections & Cards */
.section { padding: 56px 0; }
.section-light { background: var(--bg); }
.section-header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 36px;
}
.quote-lead {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--stop);
    margin: 8px 0;
}
.section-sub { color: var(--muted); }

.page-banner {
    background: var(--navy);
    color: #fff;
    padding: 44px 0;
}
.page-banner h1 { color: #fff; margin-bottom: 8px; }
.page-banner .eyebrow { color: #8FD0FF; }
.page-banner p { margin: 0; color: #D7E3F0; max-width: 680px; }

.cards-grid {
    display: grid;
    gap: 22px;
}
.cards-4 { grid-template-columns: repeat(4, 1fr); }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.two-col-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: 0 4px 16px rgba(15, 35, 54, 0.04);
}
.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}
.card-icon-alert { background: #FDECEE; color: var(--stop); }
.card-icon-water { background: var(--water-light); color: var(--water); }
.card-icon-navy { background: #E9EEF3; color: var(--navy); }

/* Split panel */
.split-panel {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 32px;
    align-items: center;
}
.highlight-box {
    background: linear-gradient(145deg, var(--navy) 0%, #17344F 100%);
    color: #fff;
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.highlight-box h3 { color: #fff; font-size: 1.35rem; margin-bottom: 6px; }
.highlight-box p { color: #D7E3F0; }
.highlight-box .btn-primary { background: var(--water); }
.highlight-box .btn-primary:hover { background: #008AE6; }
.value-tag { font-weight: 700; color: #8FD0FF !important; margin-bottom: 12px; }
.badge-accent, .badge-water, .badge-navy {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    margin-bottom: 10px;
}
.badge-accent { background: var(--stop); color: #fff; }
.badge-water { background: var(--water-light); color: var(--water); }
.badge-navy { background: #E9EEF3; color: var(--navy); }

/* Lists */
.check-list, .styled-list {
    padding-left: 0;
    list-style: none;
    margin: 14px 0 0;
}
.check-list li {
    position: relative;
    padding-left: 26px;
    margin-bottom: 10px;
}
.check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--water);
    font-weight: 800;
}
.styled-list li {
    margin-bottom: 10px;
    padding-left: 14px;
    border-left: 3px solid var(--water);
}

/* Systems */
.systems-list { display: flex; flex-direction: column; gap: 26px; }
.system-row {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 28px;
    align-items: center;
}
.system-row-reverse .system-media { order: 2; }
.system-body-full { grid-column: 1 / -1; }
.system-media img {
    border-radius: 10px;
    border: 1px solid var(--border);
    width: 100%;
}

/* Contact & Forms */
.contact-grid {
    display: grid;
    grid-template-columns: 1.35fr 0.65fr;
    gap: 28px;
    align-items: start;
}
.promo-callout {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px;
    background: var(--water-light);
    border-left: 4px solid var(--water);
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    color: var(--navy);
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.form-group { margin-bottom: 16px; }
.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--navy);
}
.req { color: var(--stop); }
input[type="text"],
input[type="tel"],
input[type="email"],
select,
textarea {
    width: 100%;
    min-height: 46px;
    padding: 10px 14px;
    font-size: 16px; /* Empêche le zoom auto sur iPhone */
    font-family: inherit;
    border: 1px solid #C2D0E0;
    border-radius: 10px;
    background: #fff;
    color: var(--text);
}
input:focus, select:focus, textarea:focus {
    outline: 2px solid var(--water);
    border-color: var(--water);
}
.field-error {
    display: block;
    color: var(--stop);
    font-size: 0.85rem;
    margin-top: 4px;
    min-height: 1.1em;
}
.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
.photo-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}
.photo-thumb {
    width: 76px;
    height: 76px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--border);
}
.captcha-box {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 18px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 16px;
    align-items: center;
}
.captcha-visual {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
}
.checkbox-label {
    display: flex !important;
    align-items: flex-start;
    gap: 10px;
    font-weight: 400 !important;
    font-size: 0.92rem;
}
.checkbox-label input {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    flex-shrink: 0;
}

.alert {
    padding: 14px 16px;
    border-radius: 10px;
    margin-bottom: 18px;
}
.alert-success { background: #E9F8EE; border: 1px solid #8CD9A7; color: #0F5132; }
.alert-error { background: #FDECEE; border: 1px solid #F1AEB5; color: #842029; }
.is-hidden { display: none; }

/* Footer */
.site-footer {
    background: var(--navy-dark);
    color: #CBD5E1;
    padding: 48px 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1fr;
    gap: 28px;
    padding-bottom: 36px;
}
.footer-logo { height: 48px; width: auto; background: #fff; padding: 6px 10px; border-radius: 8px; margin-bottom: 12px; }
.footer-title { color: #fff; font-size: 1rem; margin-bottom: 12px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: #CBD5E1; }
.footer-links a:hover { color: #fff; }
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 16px 0 calc(16px + env(safe-area-inset-bottom));
    font-size: 0.88rem;
}
.footer-bottom-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}
.cookie-reopen-btn {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #CBD5E1;
    border-radius: 6px;
    padding: 6px 12px;
    cursor: pointer;
    font-size: 0.85rem;
}

/* Floating WhatsApp */
.whatsapp-fab {
    position: fixed;
    right: 18px;
    bottom: calc(18px + env(safe-area-inset-bottom));
    z-index: 95;
    background: var(--whatsapp);
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    border-radius: 999px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
    font-weight: 700;
}
.whatsapp-fab:hover { background: #168243; text-decoration: none; color: #fff; }

/* Cookie RGPD Banner */
.cookie-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom));
    z-index: 110;
    max-width: 720px;
    margin: 0 auto;
    background: var(--navy);
    color: #fff;
    border-radius: var(--radius);
    padding: 18px 20px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.15);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.cookie-banner-text p { margin: 4px 0 0; font-size: 0.9rem; color: #D7E3F0; }
.cookie-banner-text a { color: #8FD0FF; text-decoration: underline; }
.cookie-banner-actions .btn-primary { background: var(--water); }

/* Helpers */
.mt-sm { margin-top: 10px; }
.mt-md { margin-top: 16px; }
.mt-lg { margin-top: 24px; }
.mt-xl { margin-top: 36px; }
.center-cta { text-align: center; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* Responsive : iPad / Tablette (<= 1024px) */
@media (max-width: 1024px) {
    .cards-4 { grid-template-columns: repeat(2, 1fr); }
    .cards-3 { grid-template-columns: repeat(2, 1fr); }
    .hero-grid,
    .split-panel,
    .system-row,
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .system-row-reverse .system-media { order: 0; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Responsive : iPhone & Android (<= 768px) */
@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .main-nav {
        position: fixed;
        top: 75px;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        align-items: stretch;
        padding: 18px 20px 24px;
        gap: 10px;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow);
        display: none;
    }
    .main-nav.is-open { display: flex; }
    .nav-link { padding: 12px 6px; border-bottom: 1px solid var(--bg); }
    .nav-cta { justify-content: center; }

    .cards-4,
    .cards-3,
    .two-col-grid,
    .form-row,
    .captcha-box,
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .whatsapp-fab-label { display: none; }
    .whatsapp-fab { padding: 14px; border-radius: 50%; }
}
