/* ================================================================
   SD-ÉQUIPEMENTS — Site vitrine
   Stack : CSS pur, zéro dépendance runtime, optimisé FTP Online
   ================================================================ */

/* ---------- RESET + VARIABLES ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}
html, body { margin: 0; padding: 0; }
img, picture, video, svg { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }

:root {
    /* --- Palette SD-Équipements --- */
    --navy-950: #050E1A;       /* bleu marine quasi-noir */
    --navy-900: #0A1929;       /* fond hero sombre */
    --navy-800: #102841;       /* sections sombres */
    --navy-700: #1A3A5C;       /* variantes */
    --navy-600: #2A5184;       /* hover claire */
    --navy-100: #DBE7F4;       /* bleu très clair */

    --orange-700: #B82E1E;     /* rouge-orange foncé hover */
    --orange-600: #D63525;     /* CTA hover */
    --orange-500: #E63946;     /* CTA principal — orange-rouge tomate */
    --orange-400: #F26B5E;     /* accent doux */
    --orange-50:  #FEF2EE;     /* fond très clair */

    --gray-50:   #F8FAFC;
    --gray-100:  #F1F5F9;
    --gray-200:  #E2E8F0;
    --gray-300:  #CBD5E1;
    --gray-400:  #94A3B8;
    --gray-500:  #64748B;
    --gray-600:  #475569;
    --gray-700:  #334155;
    --gray-800:  #1E293B;
    --gray-900:  #0F172A;

    --white: #FFFFFF;

    /* --- Sémantique --- */
    --bg: var(--white);
    --bg-alt: var(--gray-50);
    --bg-dark: var(--navy-900);
    --bg-darker: var(--navy-950);
    --text: var(--gray-900);
    --text-soft: var(--gray-600);
    --text-mute: var(--gray-500);
    --text-light: var(--white);
    --accent: var(--orange-500);
    --accent-hover: var(--orange-600);
    --border: var(--gray-200);
    --border-dark: rgba(255, 255, 255, 0.1);

    /* --- Typo --- */
    --ff-display: 'Saira Condensed', 'Inter', sans-serif;
    --ff-body: 'Inter', sans-serif;
    --ff-mono: 'JetBrains Mono', 'Consolas', monospace;

    /* --- Espacements --- */
    --container: 1240px;
    --container-narrow: 920px;

    /* --- Transitions --- */
    --t-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --t: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --t-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);

    /* --- Ombres --- */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 32px rgba(0,0,0,0.12);
    --shadow-xl: 0 24px 60px rgba(0,0,0,0.18);
}

/* ---------- TYPOGRAPHIE ---------- */
.font-display { font-family: var(--ff-display); font-weight: 800; letter-spacing: -0.02em; }
.font-mono { font-family: var(--ff-mono); }

h1, h2, h3, h4 {
    font-family: var(--ff-display);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--text);
}
h1 { font-size: clamp(2.5rem, 6vw, 4.75rem); }
h2 { font-size: clamp(2.4rem, 5.4vw, 4.2rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h4 { font-size: 1.25rem; }

.eyebrow {
    display: inline-block;
    font-family: var(--ff-body);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--accent);
    margin-bottom: 1rem;
}
.eyebrow.light { color: var(--orange-400); }

/* ---------- LAYOUT ---------- */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}
.container-narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 24px; }

section { padding: clamp(48px, 6vw, 90px) 0; }
section.dark { background: var(--bg-dark); color: var(--text-light); }
section.dark h1, section.dark h2, section.dark h3, section.dark h4 { color: var(--white); }
section.alt { background: var(--bg-alt); }

/* ---------- BUTTONS ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-family: var(--ff-display);
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 4px;
    transition: all var(--t);
    cursor: pointer;
    white-space: nowrap;
    border: 2px solid transparent;
}
.btn-primary {
    background: var(--accent);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(230,57,70,0.35);
}
.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230,57,70,0.5);
}
.btn-ghost {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.3);
}
.btn-ghost:hover {
    border-color: var(--white);
    background: rgba(255,255,255,0.08);
}
.btn-ghost.dark {
    color: var(--text);
    border-color: var(--gray-300);
}
.btn-ghost.dark:hover { border-color: var(--gray-900); background: var(--gray-100); }

.btn-arrow::after {
    content: '→';
    font-size: 1.1em;
    transition: transform var(--t);
}
.btn-arrow:hover::after { transform: translateX(4px); }

/* --- Variante compacte pour le bouton Boutique en navbar --- */
.btn-shop {
    padding: 6px 14px;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(230,57,70,0.25);
    line-height: 1.2;
}
.btn-shop:hover {
    box-shadow: 0 3px 10px rgba(230,57,70,0.4);
}
.btn-shop .shop-favicon {
    width: 14px; height: 14px;
    border-radius: 3px;
    background: var(--white);
    padding: 1px;
    object-fit: contain;
    flex-shrink: 0;
}

/* ---------- NAVBAR ---------- */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    transition: all var(--t);
    padding: 12px 0;
    /* Header entièrement blanc + bordure orange en bas */
    background: #FFFFFF;
    border-bottom: 3px solid var(--orange-500);
    box-shadow: 0 4px 16px rgba(10, 25, 41, 0.08);
}
.navbar.scrolled {
    padding: 8px 0;
    box-shadow: 0 6px 20px rgba(10, 25, 41, 0.12);
}
.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.nav-logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    transition: transform var(--t);
    /* Header entièrement blanc → plus besoin de marge négative ni de fond spécifique */
}
.nav-logo:hover { transform: translateY(-1px); }
.nav-logo img { height: 44px; width: auto; display: block; }
.navbar.scrolled .nav-logo img { height: 38px; }
.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
    /* Pas de margin-left : on laisse justify-content: space-between du parent répartir
       harmonieusement : logo à gauche, menu au centre, actions à droite */
}
.nav-menu a {
    color: var(--navy-900);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    transition: color var(--t);
    position: relative;
}
.nav-menu a:hover { color: var(--accent); }
.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -6px; left: 0;
    width: 0; height: 2px;
    background: var(--accent);
    transition: width var(--t);
}
.nav-menu a:hover::after { width: 100%; }

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    /* Le space-between du parent place naturellement les actions tout à droite */
}
.lang-switch {
    display: flex; gap: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--navy-700);
}
.lang-switch button {
    padding: 4px 8px;
    color: var(--gray-500);
    transition: color var(--t);
}
.lang-switch button.active { color: var(--navy-900); }
.lang-switch button:hover { color: var(--navy-900); }
.lang-switch .sep { color: var(--gray-300); padding: 0 2px; }

.nav-toggle {
    display: none;
    width: 32px; height: 32px;
    color: var(--navy-900);
    font-size: 1.5rem;
}

/* ---------- HERO ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    margin-top: 0;
    /* padding-top suffisant pour passer sous la navbar fixe (pas de margin-top = pas de bande grise visible) */
    padding: 160px 0 80px;
    background: var(--navy-900);
    color: var(--white);
    overflow: hidden;
    display: flex;
    align-items: center;
}
.hero-bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(120deg,
            rgba(10, 25, 41, 0.85) 0%,
            rgba(10, 25, 41, 0.55) 45%,
            rgba(10, 25, 41, 0.70) 100%),
        url('../../image/hero-bg.jpg') center/cover no-repeat;
    z-index: 0;
}
.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(230,57,70,0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(26,58,92,0.4) 0%, transparent 50%);
}
.hero-content {
    position: relative;
    z-index: 1;
    max-width: 920px;
}
.hero h1 {
    color: var(--white);
    margin-bottom: 28px;
    line-height: 0.95;
}
.hero h1 .accent { color: var(--accent); }
.hero .lead {
    font-size: clamp(1.05rem, 1.5vw, 1.25rem);
    color: rgba(255,255,255,0.85);
    max-width: 720px;
    margin-bottom: 48px;
    line-height: 1.55;
}
.hero-cta {
    display: flex; gap: 16px; flex-wrap: wrap;
    margin-bottom: 80px;
}
.hero-badges {
    display: flex; gap: 32px; flex-wrap: wrap;
    padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,0.12);
}
.hero-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255,255,255,0.85);
    font-size: 0.85rem;
    font-weight: 500;
}
.hero-badge .ico {
    width: 36px; height: 36px;
    background: rgba(230,57,70,0.15);
    color: var(--accent);
    border-radius: 8px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* ---------- STATS BANNER ---------- */
.stats {
    background: var(--navy-950);
    color: var(--white);
    padding: 64px 0;
    border-top: 1px solid var(--border-dark);
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 32px;
}
.stat {
    text-align: center;
    padding: 0 16px;
    border-right: 1px solid var(--border-dark);
}
.stat:last-child { border-right: none; }
.stat-value {
    font-family: var(--ff-display);
    font-weight: 900;
    font-size: clamp(3.5rem, 6.5vw, 5.25rem);
    line-height: 1;
    color: var(--white);
    letter-spacing: -0.03em;
}
.stat-value .unit {
    font-size: 0.5em;
    color: var(--accent);
    margin-left: 6px;
    font-weight: 700;
}
.stat-label {
    margin-top: 14px;
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: rgba(255,255,255,0.7);
    font-weight: 600;
}

/* ---------- SECTION DOMAINES ---------- */
.section-head {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 64px;
}
.section-head h2 { margin-bottom: 20px; }
.section-head .lead {
    color: var(--text-soft);
    font-size: 1.1rem;
    line-height: 1.6;
}
section.dark .section-head .lead { color: rgba(255,255,255,0.75); }

.domains-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}
.domain-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 36px 32px;
    transition: all var(--t);
    position: relative;
    overflow: hidden;
    /* Flex column pour aligner tous les tags en bas */
    display: flex;
    flex-direction: column;
}
.domain-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 3px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--t-slow);
}
.domain-card:hover {
    transform: translateY(-4px);
    border-color: var(--navy-700);
    box-shadow: var(--shadow-lg);
}
.domain-card:hover::before { transform: scaleX(1); }
.domain-icon {
    width: 72px; height: 72px;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    padding: 8px;
    transition: all var(--t);
}
.domain-icon img {
    width: 100%; height: 100%;
    object-fit: contain;
    /* Met les icônes monochromes noires en bleu navy par défaut */
    filter: brightness(0) saturate(100%) invert(11%) sepia(33%) saturate(2031%) hue-rotate(187deg) brightness(94%) contrast(95%);
    transition: filter var(--t);
}
.domain-card:hover .domain-icon {
    background: var(--navy-900);
    border-color: var(--navy-900);
}
.domain-card:hover .domain-icon img {
    /* Sur hover : passe en orange/rouge */
    filter: brightness(0) saturate(100%) invert(40%) sepia(98%) saturate(2453%) hue-rotate(335deg) brightness(95%) contrast(98%);
}
.domain-card h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: var(--navy-900);
}
.domain-card p {
    color: var(--text-soft);
    font-size: 0.95rem;
    line-height: 1.6;
    /* Marge garantie sous le paragraphe pour que le tag ne soit jamais collé au texte */
    margin-bottom: 28px;
}
.domain-card .tag {
    align-self: flex-start;
    /* margin-top auto pousse le tag au bas de la carte, peu importe la longueur du texte */
    margin-top: auto;
    display: inline-block;
    padding: 5px 12px;
    background: var(--gray-100);
    border-radius: 4px;
    font-family: var(--ff-mono);
    font-size: 0.7rem;
    color: var(--text-soft);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ---------- SECTION ABOUT ---------- */
.about {
    background: var(--white);
}
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}
.about-text h2 { margin-bottom: 24px; }
.about-text p {
    color: var(--text-soft);
    margin-bottom: 20px;
    font-size: 1.05rem;
    line-height: 1.7;
}
.about-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 36px;
}
.about-feature {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}
.about-feature .ico {
    width: 32px; height: 32px;
    background: var(--orange-50);
    color: var(--accent);
    border-radius: 6px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1rem; flex-shrink: 0;
}
.about-feature .label {
    font-weight: 700;
    color: var(--text);
    font-size: 0.95rem;
}
.about-feature .sub {
    color: var(--text-soft);
    font-size: 0.85rem;
    margin-top: 2px;
}

.about-visual {
    position: relative;
}
.about-visual img {
    width: 100%;
    border-radius: 8px;
    object-fit: cover;
    aspect-ratio: 4 / 5;
    box-shadow: var(--shadow-xl);
}
.about-visual::before {
    content: '';
    position: absolute;
    top: -20px; right: -20px;
    width: 60%; height: 60%;
    background: var(--accent);
    z-index: -1;
    opacity: 0.15;
    border-radius: 8px;
}

/* ---------- SECTION CLIENTS ---------- */
.clients {
    background: var(--navy-900);
    color: var(--white);
    padding: 72px 0;
    position: relative;
    overflow: hidden;
}
/* Forcer les couleurs claires pour tous les textes de la section */
.clients .eyebrow { color: var(--orange-400) !important; }
.clients .section-head h2,
.clients h2 {
    color: var(--white) !important;
}
.clients .section-head .lead,
.clients .lead {
    color: rgba(255, 255, 255, 0.85) !important;
}
.clients::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 30%, rgba(230,57,70,0.08) 0%, transparent 50%),
        radial-gradient(circle at 85% 70%, rgba(42,81,132,0.25) 0%, transparent 50%);
    pointer-events: none;
}
.clients .container { position: relative; z-index: 1; }
.clients-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
    align-items: stretch;
    margin-top: 56px;
}
/* Sur écrans moyens, on passe à 3 colonnes */
@media (max-width: 1100px) {
    .clients-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 700px) {
    .clients-grid { grid-template-columns: repeat(2, 1fr); }
}
/* Carte blanche par logo officiel — bien mettre en valeur sur fond navy */
.client-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 28px 20px 18px;
    background: var(--white);
    border-radius: 12px;
    height: auto;
    min-height: 160px;
    margin: 0;
    transition: all var(--t);
    box-shadow:
        0 4px 14px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
    /* aucun filter — les logos officiels gardent leurs vraies couleurs */
    filter: none;
    opacity: 1;
    position: relative;
    overflow: hidden;
}
.client-logo::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--orange-400));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--t-slow);
}
.client-logo:hover {
    transform: translateY(-4px);
    box-shadow:
        0 12px 32px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
}
.client-logo:hover::before { transform: scaleX(1); }

.client-logo img {
    max-height: 80px;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    flex: 1;
    min-height: 0;
}
.client-logo figcaption {
    font-family: var(--ff-display);
    font-weight: 700;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--navy-800);
    text-align: center;
    line-height: 1.3;
    padding-top: 6px;
    border-top: 1px solid var(--border);
    width: 100%;
}

/* ---------- SECTION MARQUES ---------- */
.brands-section { background: var(--bg-alt); }

/* ---------- SIÈGE PART-DIEU ---------- */
.headquarters {
    background: var(--white);
    padding: clamp(48px, 6vw, 90px) 0;
}
.headquarters .hq-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 80px;
    align-items: start;
    margin-bottom: 60px;
}
.hq-text .eyebrow { margin-bottom: 16px; }
.hq-text h2 {
    font-family: var(--ff-display);
    font-weight: 800;
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    text-transform: uppercase;
    letter-spacing: -0.01em;
    line-height: 1.05;
    margin-bottom: 28px;
    color: var(--navy-900);
}
.hq-text p {
    color: var(--text-soft);
    font-size: 1rem;
    line-height: 1.75;
    margin-bottom: 18px;
}
.hq-text p strong { color: var(--text); font-weight: 600; }
.hq-text p.hq-lead {
    font-size: 1.08rem;
    color: var(--text);
}
.hq-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 32px;
    list-style: none;
    padding: 0;
}
.hq-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: var(--bg-alt);
    border-left: 3px solid var(--orange-500);
    border-radius: 4px;
    font-size: 0.92rem;
    color: var(--text);
}
.hq-features li i {
    color: var(--accent);
    font-size: 1.15rem;
    flex-shrink: 0;
}
.hq-features li strong { font-weight: 700; }

/* --- Image Tour Part-Dieu : portrait, prend de la hauteur --- */
.hq-tower {
    position: relative;
    /* Sticky pour suivre le scroll quand le texte est long */
    position: sticky;
    top: 110px;
}
.hq-tower img {
    width: 100%;
    aspect-ratio: 3 / 4.5;
    object-fit: cover;
    border-radius: 12px;
    box-shadow:
        0 24px 60px rgba(10, 25, 41, 0.22),
        0 8px 24px rgba(10, 25, 41, 0.12);
    display: block;
}
.hq-tower-caption {
    margin-top: 14px;
    text-align: center;
    font-family: var(--ff-mono);
    font-size: 0.75rem;
    color: var(--text-mute);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* --- Galerie photos locaux --- */
.hq-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 24px;
}
.hq-photo {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(10, 25, 41, 0.08);
    margin: 0;
}
.hq-photo img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform var(--t-slow);
    display: block;
}
.hq-photo:hover img { transform: scale(1.06); }
.hq-photo figcaption {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 28px 18px 14px;
    background: linear-gradient(180deg, rgba(10,25,41,0) 0%, rgba(10,25,41,0.85) 100%);
    color: var(--white);
    font-family: var(--ff-display);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

@media (max-width: 900px) {
    .headquarters .hq-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .hq-tower { position: static; max-width: 360px; }
    .hq-features { grid-template-columns: 1fr; }
    .hq-gallery { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
    .hq-gallery { grid-template-columns: 1fr; }
}
.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
    margin-top: 48px;
}
.brand-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px 12px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: var(--ff-display);
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--navy-900);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all var(--t);
    text-align: center;
    min-height: 92px;
    text-decoration: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
/* Liseré coloré qui descend du haut en hover */
.brand-chip::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 3px;
    background: linear-gradient(90deg, var(--orange-500), var(--orange-400));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--t-slow);
}
.brand-chip:hover {
    border-color: var(--orange-500);
    color: var(--navy-900);
    transform: translateY(-3px);
    box-shadow:
        0 12px 24px rgba(10, 25, 41, 0.12),
        0 4px 8px rgba(230, 57, 70, 0.08);
    background: linear-gradient(180deg, #FFFFFF 0%, #FAFCFE 100%);
}
.brand-chip:hover::before { transform: scaleX(1); }
.brand-chip:active { transform: translateY(-1px); }

.brand-favicon {
    width: 32px;
    height: 32px;
    object-fit: contain;
    border-radius: 4px;
    flex-shrink: 0;
    background: var(--white);
    padding: 2px;
    transition: transform var(--t);
}
/* Variante pour les logos plein format (ex: Blackstorm Firearms, STV) */
.brand-favicon-lg {
    width: 88px;
    height: 54px;
    padding: 0;
    border-radius: 2px;
    background: transparent;
    object-fit: contain;
}
/* Placeholder lettre (fallback si tous les services favicon échouent — surtout sur mobile bloqué) */
.brand-favicon-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent) 0%, var(--orange-600) 100%);
    color: var(--white);
    font-family: var(--ff-display);
    font-weight: 900;
    font-size: 1.1rem;
    line-height: 1;
    box-shadow: 0 2px 6px rgba(230, 57, 70, 0.3);
    padding: 0;
}
.brand-favicon-placeholder.brand-favicon-lg {
    font-size: 1.6rem;
}
.brand-chip:hover .brand-favicon {
    transform: scale(1.08);
}
.brand-chip.no-favicon {
    min-height: 70px;
}

/* ---------- CTA BANNER ---------- */
.cta-banner {
    position: relative;
    padding: 72px 0;
    background:
        linear-gradient(120deg, rgba(10,25,41,0.92), rgba(230,57,70,0.5)),
        url('../img/hero/cta-bg.jpg') center/cover no-repeat;
    color: var(--white);
    text-align: center;
    overflow: hidden;
}
.cta-banner h2 {
    color: var(--white);
    margin-bottom: 24px;
}
.cta-banner p {
    font-size: 1.15rem;
    max-width: 600px;
    margin: 0 auto 36px;
    color: rgba(255,255,255,0.9);
}

/* ---------- CONTACT ---------- */
.contact-section { background: var(--white); }
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 64px;
    align-items: start;
}
.contact-info h3 { margin-bottom: 16px; }
.contact-info > p { color: var(--text-soft); margin-bottom: 32px; }
.contact-cards { display: flex; flex-direction: column; gap: 16px; }
.contact-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 24px;
    background: var(--bg-alt);
    border-radius: 8px;
    border-left: 4px solid var(--accent);
}
.contact-card .ico {
    width: 40px; height: 40px;
    background: var(--accent);
    color: var(--white);
    border-radius: 6px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.contact-card .label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-mute);
    font-weight: 700;
}
.contact-card .value {
    font-weight: 700;
    color: var(--text);
    margin-top: 4px;
    font-size: 1.05rem;
}
.contact-card .sub {
    font-size: 0.85rem;
    color: var(--text-soft);
    margin-top: 2px;
}

.contact-form {
    background: var(--bg-alt);
    padding: 40px;
    border-radius: 8px;
    border: 1px solid var(--border);
}
.contact-form h3 { margin-bottom: 12px; font-size: 1.4rem; }
.contact-form > p { color: var(--text-soft); margin-bottom: 24px; font-size: 0.95rem; }
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}
.form-group { margin-bottom: 16px; }
.form-group label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font: inherit;
    font-size: 0.95rem;
    background: var(--white);
    color: var(--text);
    transition: border-color var(--t);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(230,57,70,0.1);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-check {
    display: flex; gap: 10px; align-items: flex-start;
    margin: 12px 0 20px;
}
.form-check input { margin-top: 4px; }
.form-check label {
    font-size: 0.85rem;
    color: var(--text-soft);
    line-height: 1.5;
}

/* ---------- FOOTER ---------- */
footer {
    background: var(--navy-950);
    color: rgba(255,255,255,0.7);
    padding: 60px 0 28px;
    font-size: 0.9rem;
}
.footer-top {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr auto;
    gap: 40px;
    margin-bottom: 56px;
}

/* === Badges certifications dans le footer === */
.footer-badges {
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-self: start;
}
.footer-badge {
    display: block;
    background: #FFFFFF;
    border-radius: 10px;
    padding: 4px 8px;        /* padding réduit → image Mandat Admin plus grande */
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    transition: transform var(--t);
    line-height: 0;
    overflow: hidden;
    width: 170px;             /* +20% par rapport aux 140px précédents */
}
.footer-badge:hover { transform: translateY(-2px); }
.footer-badge img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 78px;         /* +20% par rapport aux 56px précédents */
    object-fit: contain;
}
/* RGPD : image remplit toute la pastille (plus de blanc autour) */
.footer-badge.is-square {
    padding: 0;
}
.footer-badge.is-square img {
    max-height: none;
    height: 84px;             /* +20% par rapport aux 70px précédents */
    object-fit: cover;
}
.footer-brand img {
    height: 44px; width: auto; display: block;
}
.footer-logo-wrap {
    display: inline-block;
    /* Pastille pleine avec dégradé subtil blanc → bleu très clair (style carte d'identité) */
    background: linear-gradient(135deg, #FFFFFF 0%, #FFFFFF 55%, #D8E5F2 100%);
    padding: 14px 26px;
    margin-bottom: 24px;
    /* Bords arrondis bien nets */
    border-radius: 14px;
    box-shadow:
        0 6px 22px rgba(0, 0, 0, 0.45),
        0 2px 4px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
    border-top: 2px solid var(--orange-500);
}
.footer-logo-wrap img {
    height: 48px; width: auto; display: block;
}
.footer-brand p {
    color: rgba(255,255,255,0.6);
    font-size: 0.88rem;
    line-height: 1.6;
    max-width: 320px;
}
.footer-col h4 {
    color: var(--white);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 20px;
    font-family: var(--ff-display);
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col li a {
    color: rgba(255,255,255,0.6);
    transition: color var(--t);
    font-size: 0.9rem;
}
.footer-col li a:hover { color: var(--accent); }

.footer-address {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.88rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.5;
}
.footer-address strong { color: var(--white); font-weight: 700; }

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.4);
}
.footer-bottom a:hover { color: var(--accent); }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
    width: 36px; height: 36px;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 6px;
    display: inline-flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.6);
    transition: all var(--t);
}
.footer-social a:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(230,57,70,0.1);
}

/* ---------- ANIMATIONS ---------- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

.reveal-stagger > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s, transform 0.6s;
}
.reveal-stagger.visible > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0s; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.08s; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.16s; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.24s; }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 0.32s; }
.reveal-stagger.visible > *:nth-child(6) { transition-delay: 0.4s; }

/* ================================================================
   RESPONSIVE MOBILE — 3 breakpoints (980 / 600 / 420)
   ================================================================ */

/* ---------- TABLETTES & SMARTPHONES LARGES (≤980px) ---------- */
@media (max-width: 980px) {
    /* === NAVBAR MOBILE : fond BLANC + textes en navy === */
    .navbar {
        background: #FFFFFF !important;
        border-bottom: 3px solid var(--orange-500);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    }
    .navbar.scrolled { background: #FFFFFF !important; }

    /* Logo : plus de pastille ni box-shadow, le header est déjà blanc */
    .nav-logo {
        background: transparent;
        padding: 0;
        margin: 0;       /* annule la margin négative du desktop qui faisait dépasser à gauche */
        box-shadow: none;
        align-self: center;
    }
    .nav-logo img { height: 32px; }
    .navbar.scrolled .nav-logo img { height: 28px; }

    .nav-menu { display: none; }
    .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: var(--navy-900); /* hamburger en navy sur fond blanc */
    }

    /* Lang switch en navy */
    .lang-switch { font-size: 0.78rem; color: var(--navy-700); }
    .lang-switch button { color: var(--gray-500); }
    .lang-switch button.active,
    .lang-switch button:hover { color: var(--navy-900); }
    .lang-switch .sep { color: var(--gray-300); }

    /* Menu déroulant (overlay hamburger) : reste sur fond blanc avec textes navy */
    .nav-menu.open {
        display: flex;
        position: fixed;
        top: 64px; left: 0; right: 0;
        flex-direction: column;
        background: #FFFFFF;
        padding: 24px 24px 32px;
        gap: 4px;
        border-top: 1px solid var(--border);
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
        max-height: calc(100vh - 64px);
        overflow-y: auto;
    }
    .nav-menu.open a {
        padding: 14px 4px;
        border-bottom: 1px solid var(--border);
        font-size: 0.95rem;
        color: var(--navy-900); /* TEXTE DES TITRES EN NAVY */
        font-weight: 700;
    }
    .nav-menu.open a:hover { color: var(--accent); }
    .nav-menu.open a:last-child { border-bottom: none; }
    .nav-menu.open a::after { display: none; } /* on retire l'underline animation desktop */

    /* === Padding global des sections réduit === */
    section { padding: clamp(44px, 7vw, 72px) 0; }
    .section-head { margin-bottom: 40px; }
    h2 { font-size: clamp(2.15rem, 6vw, 3.1rem); }

    /* === HERO === */
    .hero { min-height: auto; padding: 130px 0 60px; }
    .hero h1 { font-size: clamp(2.2rem, 6vw, 3.4rem); }
    .hero-cta { flex-direction: column; align-items: flex-start; }
    .hero-cta .btn { width: 100%; }

    /* === STATS === */
    .stat { border-right: none; padding: 16px 0; }

    /* === DOMAINES === */
    .domain-card { padding: 28px 24px; }
    .domain-card h3 { font-size: 1.25rem; }
    .domain-card p { font-size: 0.92rem; margin-bottom: 22px; }

    /* === ABOUT === */
    .about-grid, .contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .about-features { grid-template-columns: 1fr; }
    .about-visual img { aspect-ratio: 16/9; max-height: 360px; }

    /* === SIÈGE PART-DIEU === */
    .headquarters .hq-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .hq-tower {
        position: static !important;  /* annule le sticky qui foire sur mobile */
        max-width: 100%;
        margin: 0 auto;
    }
    .hq-tower img {
        aspect-ratio: 16/10;          /* paysage au lieu de portrait pour ne pas écraser */
        max-height: 360px;
    }
    .hq-features { grid-template-columns: 1fr 1fr; gap: 10px; }
    .hq-gallery { grid-template-columns: repeat(2, 1fr); }
    .hq-text h2 { font-size: clamp(1.8rem, 5vw, 2.4rem); }
    .hq-text p { font-size: 0.95rem; }

    /* === CLIENTS === */
    .clients { padding: 60px 0; }
    .clients-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 16px;
    }
    .client-logo { min-height: 140px; padding: 22px 16px 14px; }

    /* === MARQUES === */
    .brands-grid { gap: 10px; }
    .brand-chip { font-size: 0.86rem; min-height: 80px; padding: 14px 10px; }
    .brand-favicon { width: 28px; height: 28px; }

    /* === CTA BANNER === */
    .cta-banner { padding: 56px 0; }
    .cta-banner h2 { font-size: 1.8rem; }
    .cta-banner p { font-size: 0.95rem; }

    /* === CONTACT === */
    .contact-cards { gap: 14px; }
    .form-row { grid-template-columns: 1fr; }

    /* === FOOTER === */
    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
    .footer-brand { grid-column: 1 / -1; }
    .footer-badges { flex-direction: row; flex-wrap: wrap; }
    .footer-badge { width: 156px; }

    /* === MENTIONS LÉGALES === */
    .legal-hero { padding: 130px 0 60px; }
    .legal-hero h1 { font-size: clamp(2rem, 6vw, 3rem); }
}

/* ---------- SMARTPHONES (≤600px) ---------- */
@media (max-width: 600px) {
    .nav-inner { gap: 12px; }
    .nav-logo { padding: 5px 10px; }
    .nav-logo img { height: 28px; }
    .navbar.scrolled .nav-logo img { height: 24px; }

    /* Bouton Boutique très compact */
    .btn-shop { padding: 6px 10px; font-size: 0.68rem; }
    .btn-shop .shop-favicon { width: 12px; height: 12px; }
    .nav-actions .lang-switch { display: none; } /* accessible via menu hamburger */
    .nav-actions { gap: 8px; }

    /* Containers : moins de padding latéral */
    .container, .container-narrow { padding: 0 16px; }

    /* Sections : padding plus serré */
    section { padding: 50px 0; }
    .section-head { margin-bottom: 32px; }
    h2 { font-size: clamp(1.9rem, 8vw, 2.4rem); line-height: 1.1; }
    h3 { font-size: 1.2rem; }
    p.lead, .section-head .lead { font-size: 0.95rem; }

    /* === HERO === */
    .hero { padding: 110px 0 50px; }
    .hero h1 { font-size: clamp(2rem, 8.5vw, 2.6rem); }
    .hero .lead { font-size: 0.92rem; }

    /* === STATS : 2 colonnes au lieu de 5 === */
    .stats { padding: 56px 0; }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px 16px;
    }
    .stat-value { font-size: clamp(2.5rem, 12vw, 3.2rem); }
    .stat-label { font-size: 0.72rem; letter-spacing: 0.12em; }

    /* === DOMAINES === */
    .domains-grid { gap: 16px; }
    .domain-card { padding: 24px 20px; }
    .domain-icon { width: 60px; height: 60px; padding: 6px; }
    .domain-card h3 { font-size: 1.15rem; }
    .domain-card p { font-size: 0.88rem; margin-bottom: 18px; }

    /* === ABOUT === */
    .about-visual img { aspect-ratio: 4/3; max-height: 280px; }

    /* === SIÈGE === */
    .hq-tower img { aspect-ratio: 4/3; max-height: 320px; }
    .hq-features { grid-template-columns: 1fr; }
    .hq-features li { padding: 12px 14px; font-size: 0.88rem; }
    .hq-gallery { grid-template-columns: 1fr; gap: 14px; }
    .hq-photo img { aspect-ratio: 16/10; }

    /* === CLIENTS === */
    .clients { padding: 60px 0; }
    .clients-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .client-logo { min-height: 120px; padding: 18px 12px 12px; }
    .client-logo img { max-height: 60px; }
    .client-logo figcaption { font-size: 0.65rem; }

    /* === MARQUES === */
    .brands-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .brand-chip {
        font-size: 0.78rem;
        padding: 12px 8px;
        min-height: 76px;
        letter-spacing: 0.03em;
    }
    .brand-favicon { width: 24px; height: 24px; }
    .brand-favicon-lg { width: 70px; height: 44px; }

    /* === CTA BANNER === */
    .cta-banner { padding: 60px 0; }
    .cta-banner h2 { font-size: 1.55rem; }
    .cta-banner p { font-size: 0.9rem; }

    /* === CONTACT === */
    .contact-card { padding: 16px 18px; }
    .contact-form { padding: 20px; }

    /* === FOOTER === */
    .footer-top { grid-template-columns: 1fr; }
    .footer-brand { grid-column: 1; }
    .footer-logo-wrap { padding: 14px 22px; }
    .footer-logo-wrap img { height: 40px; }
    .footer-bottom {
        flex-direction: column;
        gap: 14px;
        text-align: center;
    }
    .footer-social { justify-content: center; }

    /* === COOKIES === */
    .cookie-reopen { width: 38px; height: 38px; bottom: 14px; left: 14px; }
    .cookie-banner { padding: 18px 0; }
    .cookie-text h3 { font-size: 1rem; }
    .cookie-text p { font-size: 0.85rem; }

    /* === CAPTCHA === */
    .captcha-group label {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    .captcha-refresh { align-self: flex-end; }
    .captcha-group input[type="number"] { max-width: 100%; }

    /* === MENTIONS LÉGALES === */
    .legal-hero { padding: 110px 0 50px; }
    .legal-hero h1 { font-size: clamp(1.8rem, 7vw, 2.4rem); }
    .legal-hero .lead { font-size: 1rem; }
}

/* ---------- TRÈS PETITS SMARTPHONES (≤420px) ---------- */
@media (max-width: 420px) {
    /* Stats : passe en 1 colonne pour vraiment respirer */
    .stats-grid { grid-template-columns: 1fr; gap: 22px; }
    .stat-value { font-size: 2.5rem; }

    /* Marques : 1 colonne */
    .brands-grid { grid-template-columns: 1fr; }
    .brand-chip { min-height: 64px; }

    /* Clients : 1 colonne (mais cartes en hauteur réduite) */
    .clients-grid { grid-template-columns: 1fr; gap: 10px; }
    .client-logo { min-height: 110px; }

    /* Bouton Boutique : icône seule, label caché */
    .btn-shop span { display: none; }
    .btn-shop { padding: 8px 10px; }
    .btn-shop .shop-favicon { width: 16px; height: 16px; }

    /* Hero : marges resserrées */
    .hero h1 { font-size: 1.8rem; }
    .hero h1 br { display: none; } /* texte ne se coupe plus inutilement */
    .hero .lead { font-size: 0.88rem; }

    /* Section padding global */
    section { padding: 44px 0; }
}

/* ---------- ACCESSIBILITÉ ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    .reveal, .reveal-stagger > * { opacity: 1; transform: none; }
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 2px;
}

/* ================================================================
   COOKIE CONSENT — Bandeau RGPD + modale de personnalisation
   Conforme CNIL (boutons accepter/refuser de même importance,
   granularité par catégorie, choix conservé 13 mois max)
   ================================================================ */
.cookie-banner {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 9999;
    background: var(--white);
    border-top: 3px solid var(--orange-500);
    box-shadow: 0 -10px 40px rgba(10, 25, 41, 0.25);
    padding: 24px 0;
    transform: translateY(100%);
    transition: transform 350ms cubic-bezier(0.4, 0, 0.2, 1);
}
.cookie-banner.visible { transform: translateY(0); }
.cookie-banner-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 28px;
    align-items: center;
}
.cookie-text h3 {
    font-family: var(--ff-display);
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--navy-900);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}
.cookie-text p {
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--text-soft);
    margin: 0;
}
.cookie-text p a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.cookie-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}
.cookie-btn {
    padding: 11px 22px;
    font-family: var(--ff-display);
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: 4px;
    cursor: pointer;
    transition: all 200ms;
    border: 2px solid transparent;
    white-space: nowrap;
}
.cookie-btn-refuse {
    background: var(--white);
    color: var(--navy-900);
    border-color: var(--gray-300);
}
.cookie-btn-refuse:hover {
    border-color: var(--navy-900);
    background: var(--gray-100);
}
.cookie-btn-customize {
    background: var(--white);
    color: var(--navy-900);
    border-color: var(--gray-300);
}
.cookie-btn-customize:hover {
    border-color: var(--navy-900);
    background: var(--gray-100);
}
.cookie-btn-accept {
    background: var(--accent);
    color: var(--white);
    border-color: var(--accent);
    box-shadow: 0 4px 12px rgba(230, 57, 70, 0.3);
}
.cookie-btn-accept:hover {
    background: var(--orange-600);
    border-color: var(--orange-600);
    box-shadow: 0 6px 18px rgba(230, 57, 70, 0.45);
}
@media (max-width: 800px) {
    .cookie-banner-inner {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    .cookie-actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }
    .cookie-btn { width: 100%; text-align: center; }
}

/* --- Modale de personnalisation --- */
.cookie-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.cookie-modal.visible { display: flex; }
.cookie-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 25, 41, 0.75);
    backdrop-filter: blur(4px);
}
.cookie-modal-content {
    position: relative;
    background: var(--white);
    border-radius: 14px;
    max-width: 640px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}
.cookie-modal-header {
    padding: 28px 32px 16px;
    border-bottom: 1px solid var(--border);
    position: relative;
}
.cookie-modal-header h2 {
    font-family: var(--ff-display);
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--navy-900);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin: 0 0 6px;
}
.cookie-modal-header p {
    font-size: 0.9rem;
    color: var(--text-soft);
    margin: 0;
}
.cookie-modal-close {
    position: absolute;
    top: 24px; right: 24px;
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--bg-alt);
    color: var(--text);
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 200ms;
}
.cookie-modal-close:hover { background: var(--gray-200); }
.cookie-categories { padding: 8px 32px 24px; }
.cookie-category {
    padding: 18px 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}
.cookie-category:last-child { border-bottom: none; }
.cookie-category-text { flex: 1; }
.cookie-category h3 {
    font-family: var(--ff-display);
    font-weight: 700;
    font-size: 1rem;
    color: var(--navy-900);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 0 0 6px;
}
.cookie-category p {
    font-size: 0.85rem;
    color: var(--text-soft);
    margin: 0;
    line-height: 1.5;
}
.cookie-toggle-wrap { flex-shrink: 0; padding-top: 4px; }
.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 24px;
}
.cookie-toggle input { display: none; }
.cookie-toggle-slider {
    position: absolute;
    inset: 0;
    background: var(--gray-300);
    border-radius: 24px;
    cursor: pointer;
    transition: background 200ms;
}
.cookie-toggle-slider::before {
    content: '';
    position: absolute;
    top: 3px; left: 3px;
    width: 18px; height: 18px;
    background: var(--white);
    border-radius: 50%;
    transition: transform 200ms;
}
.cookie-toggle input:checked + .cookie-toggle-slider { background: var(--accent); }
.cookie-toggle input:checked + .cookie-toggle-slider::before { transform: translateX(22px); }
.cookie-toggle.disabled .cookie-toggle-slider {
    background: var(--accent);
    cursor: not-allowed;
    opacity: 0.6;
}
.cookie-toggle.disabled .cookie-toggle-slider::before { transform: translateX(22px); }

.cookie-modal-footer {
    padding: 20px 32px 28px;
    background: var(--bg-alt);
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}
@media (max-width: 600px) {
    .cookie-modal-header,
    .cookie-categories,
    .cookie-modal-footer { padding-left: 22px; padding-right: 22px; }
    .cookie-modal-footer {
        flex-direction: column-reverse;
    }
    .cookie-modal-footer .cookie-btn { width: 100%; text-align: center; }
}

/* --- Mini bouton "Gérer mes cookies" en bas de page après acceptation --- */
.cookie-reopen {
    position: fixed;
    bottom: 18px; left: 18px;
    z-index: 9998;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--navy-900);
    color: var(--white);
    border: 2px solid var(--orange-500);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    transition: all 200ms;
    opacity: 0;
    visibility: hidden;
}
.cookie-reopen.visible { opacity: 0.85; visibility: visible; }
.cookie-reopen:hover { opacity: 1; transform: scale(1.05); }

/* ================================================================
   FORMULAIRE CONTACT — CAPTCHA + Honeypot + Feedback succès/erreur
   ================================================================ */
/* Honeypot invisible (mais accessible pour les bots) */
.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

/* Bloc CAPTCHA */
.captcha-group label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
    font-family: var(--ff-display);
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--navy-900);
}
.captcha-group #captcha-challenge {
    flex: 1;
    background: linear-gradient(135deg, var(--bg-alt) 0%, #FFFFFF 100%);
    padding: 10px 14px;
    border-radius: 6px;
    border-left: 3px solid var(--accent);
    font-family: var(--ff-mono);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    color: var(--navy-900);
}
.captcha-refresh {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 7px 11px;
    cursor: pointer;
    color: var(--text-soft);
    transition: all 180ms;
    font-size: 0.95rem;
    line-height: 1;
    flex-shrink: 0;
}
.captcha-refresh:hover {
    background: var(--accent);
    color: var(--white);
    border-color: var(--accent);
    transform: rotate(180deg);
}
.captcha-group input[type="number"] {
    /* hérite des styles de input du formulaire */
    max-width: 180px;
}

/* Feedback succès / erreur */
.form-feedback {
    padding: 14px 18px;
    border-radius: 6px;
    margin-bottom: 16px;
    font-size: 0.92rem;
    line-height: 1.5;
    border-left: 4px solid;
}
.form-feedback-success {
    background: #ECFDF5;
    color: #065F46;
    border-color: #10B981;
}
.form-feedback-error {
    background: #FEF2F2;
    color: #991B1B;
    border-color: #DC2626;
}
