/* =====================================================================
   ARROW 225 — Feuille de style (proposition de refonte, octobre 2026)
   Palette « bleu électrique » : bleu #0c0ad0, bleu nuit #070e52,
   dégradé lavande, cartes blanches, jaune #f1fd2d en accent sur fond sombre.
   Poppins (titres) + Inter (texte), logo officiel.
   Les animations (apparitions, mots qui se précisent, sections qui passent
   au bleu nuit, carrousels mobiles) sont décrites en fin de fichier.
   ===================================================================== */

:root {
    /* encres claires, reprises par les cartes posées sur une section bleu nuit */
    --ink: #1c2039;
    --ink-muted: #4d5272;
    --ink-dim: #7e83a2;
    --line: #dfe2f6;
    --line-soft: #e9ebfa;
    --blue: #0c0ad0;
    --navy: #070e52;
    --yellow: #f1fd2d;
    --bg: #f5f6fe;
    --bg-alt: #eceefc;
    --surface: #ffffff;
    --surface-alt: #eef1fe;
    --border: var(--line);
    --border-soft: var(--line-soft);
    --text: var(--ink);
    --text-muted: var(--ink-muted);
    --text-dim: var(--ink-dim);
    --accent: var(--blue);
    --accent-2: var(--navy);
    --accent-soft: rgba(12, 10, 208, .08);
    --accent-gradient: linear-gradient(135deg, #2a27e4 0%, #0c0ad0 100%);
    --lavender: linear-gradient(180deg, #f4f4fe 0%, #dfdff9 30%, #b2b3f2 68%, #6a67de 100%);
    --card-gradient: linear-gradient(180deg, #ffffff 0%, #eef1fe 100%);
    --success: #22c55e;
    --whatsapp: #25D366;
    --radius-lg: 28px;
    --radius: 22px;
    --radius-sm: 14px;
    --shadow: 0 24px 50px rgba(17, 20, 110, .10);
    --header-h: 76px;
    --container: 1200px;
    --step--1: 0.875rem;
    --step-0: 1rem;
    --step-1: 1.25rem;
    --step-2: 1.563rem;
    --step-3: clamp(1.7rem, 2.6vw, 2.2rem);
    --step-4: clamp(2.1rem, 4.2vw, 3.3rem);
    --ease: cubic-bezier(.16, .84, .44, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: var(--step-0);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, h5 {
    font-family: 'Poppins', 'Inter', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.015em;
    margin: 0 0 .55em;
    color: var(--text);
}
h3 { font-size: var(--step-1); }
p { margin: 0 0 1em; color: var(--text-muted); }
strong { color: var(--text); font-weight: 600; }
a { color: var(--accent); text-decoration: none; transition: color .15s ease; }
img { max-width: 100%; display: block; }
ul { padding: 0; margin: 0; list-style: none; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

.skip-link { position: absolute; left: -999px; top: 0; background: var(--accent); color: #fff; padding: 10px 16px; z-index: 1000; border-radius: 0 0 8px 0; font-weight: 600; }
.skip-link:focus { left: 0; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 6px;
}

/* ---------- Boutons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 50px; padding: 0 26px;
    border-radius: 12px;
    font-family: 'Inter', sans-serif; font-weight: 600; font-size: .95rem;
    border: 1px solid transparent; cursor: pointer;
    transition: background .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease, transform .2s var(--ease);
    white-space: nowrap;
}
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 12px 28px rgba(12, 10, 208, .28); }
.btn-primary:hover { box-shadow: 0 16px 36px rgba(12, 10, 208, .38); transform: translateY(-2px); color: #fff; }
.btn-outline { background: #fff; color: var(--blue); border-color: rgba(12, 10, 208, .16); }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }
.btn-whatsapp { background: var(--whatsapp); color: #062b14; }
.btn-whatsapp:hover { filter: brightness(1.06); color: #062b14; }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: .88rem; border-radius: 10px; }
.btn-block { width: 100%; }

/* ---------- Barre de contact (desktop) ---------- */
.topbar { background: var(--navy); font-size: .82rem; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; min-height: 38px; gap: 24px; }
.topbar-note { margin: 0; color: rgba(255, 255, 255, .7); }
.topbar-note i { color: var(--yellow); margin-right: 4px; }
.topbar-links { display: flex; gap: 22px; }
.topbar-links a { color: rgba(255, 255, 255, .86); display: inline-flex; align-items: center; gap: 7px; }
.topbar-links a:hover { color: var(--yellow); }
@media (max-width: 900px) { .topbar { display: none; } }

/* ---------- En-tête ---------- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: transparent;
    backdrop-filter: saturate(150%) blur(14px);
    -webkit-backdrop-filter: saturate(150%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color .2s ease, background .2s ease;
}
.site-header.scrolled { border-bottom-color: transparent; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 1.08rem; }
.logo picture { display: inline-flex; }
.logo-img { height: 44px; width: auto; }
.logo-mark { display: none; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 10px; background: var(--accent-gradient); color: #fff; font-size: .78rem; font-weight: 800; }
.logo-text { letter-spacing: .01em; }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav > a, .nav-group-toggle {
    position: relative;
    display: inline-flex; align-items: center; gap: 7px;
    padding: 10px 14px; border-radius: 10px;
    color: var(--text-muted); font: 500 .94rem 'Inter', sans-serif;
    background: none; border: 0; cursor: pointer;
    transition: color .15s ease, background .15s ease;
}
.nav-group-toggle i { font-size: .7rem; transition: transform .2s ease; }
.main-nav > a:hover, .nav-group-toggle:hover, .nav-group.open .nav-group-toggle { color: var(--text); background: var(--surface); }
.main-nav > a.active, .nav-group.is-current .nav-group-toggle { color: var(--text); }
.main-nav > a.active::after, .nav-group.is-current .nav-group-toggle::after {
    content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; border-radius: 2px; background: var(--accent-gradient);
}
.nav-group { position: relative; }
.nav-group.open .nav-group-toggle i { transform: rotate(180deg); }
.nav-panel {
    position: absolute; top: calc(100% + 10px); left: -12px; width: 400px;
    padding: 10px; border-radius: var(--radius);
    background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow);
    opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.nav-group.open .nav-panel { opacity: 1; visibility: visible; transform: none; }
.nav-panel-link { display: flex; gap: 14px; align-items: flex-start; padding: 12px; border-radius: 10px; color: var(--text); }
.nav-panel-link:hover, .nav-panel-link.active { background: var(--surface-alt); color: var(--text); }
.nav-panel-link strong { display: block; font-size: .94rem; font-weight: 600; }
.nav-panel-link small { display: block; color: var(--text-muted); font-size: .8rem; line-height: 1.4; margin-top: 2px; }
.nav-panel-icon { flex: none; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.nav-panel-link.active .nav-panel-icon { background: var(--accent-gradient); color: #fff; }
.nav-mobile-contact { display: none; }
.header-actions { display: flex; align-items: center; gap: 12px; }

.nav-toggle { display: none; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.nav-toggle span { display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--text); transition: transform .25s ease, opacity .2s ease; }
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1020px) {
    .nav-toggle { display: inline-flex; }
    .header-cta { display: none; }
    .main-nav {
        position: fixed; inset: var(--header-h) 0 0 0;
        flex-direction: column; align-items: stretch; gap: 2px;
        padding: 18px 20px calc(24px + env(safe-area-inset-bottom));
        background: var(--bg); overflow-y: auto;
        transform: translateX(100%); visibility: hidden;
        transition: transform .3s var(--ease), visibility .3s;
    }
    .main-nav.open { transform: none; visibility: visible; }
    .main-nav > a, .nav-group-toggle { width: 100%; justify-content: space-between; padding: 16px 14px; font-size: 1.05rem; border-bottom: 1px solid var(--border-soft); border-radius: 0; }
    .main-nav > a.active::after, .nav-group.is-current .nav-group-toggle::after { left: 0; right: auto; top: 14px; bottom: 14px; width: 3px; height: auto; }
    .nav-panel { position: static; width: auto; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; background: transparent; padding: 4px 0 10px; display: none; }
    .nav-group.open .nav-panel { display: block; }
    .nav-mobile-contact { display: grid; gap: 10px; margin-top: 22px; }
    body.nav-open { overflow: hidden; }
}

/* ---------- Motif « trajectoire » et accroches ---------- */
.eyebrow {
    display: inline-flex; align-items: center; gap: 12px;
    font-family: 'Inter', sans-serif; font-size: .9rem; font-weight: 600;
    color: var(--accent); letter-spacing: .01em; margin-bottom: 14px;
}
.eyebrow::before {
    content: ""; width: 34px; height: 12px; flex: none;
    background: var(--accent-gradient);
    clip-path: polygon(0 100%, 100% 0, 100% 22%, 6% 100%);
}
.eyebrow-lg { font-size: .95rem; }
.eyebrow.eyebrow-hero { font-size: .88rem; color: var(--text-muted); }

/* ---------- Sections ---------- */
.section { padding: 96px 0; position: relative; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); }
.section-head { max-width: 720px; margin: 0 0 48px; }
.section-head h2 { font-size: var(--step-3); }
.section-head p { font-size: 1.05rem; margin: 0; }
.section-head.text-center, .text-center .section-head { margin-left: auto; margin-right: auto; }
@media (max-width: 720px) { .section { padding: 68px 0; } .section-head { margin-bottom: 34px; } }

/* ---------- Grilles ---------- */
.grid { display: grid; gap: 22px; }
.grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 1100px) { .grid-5, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .grid-5, .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; } }

/* ---------- Hero d'accueil ---------- */
.hero { position: relative; overflow: hidden; padding: 72px 0 88px; border-bottom: 1px solid var(--border-soft); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 56px; align-items: center; }
.hero h1 { font-size: var(--step-4); line-height: 1.08; letter-spacing: -0.025em; margin-bottom: .45em; }
.hero h1 .accent { background: var(--accent-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero h1 .h1-sub { display: block; margin-top: .7em; font-family: 'Inter', sans-serif; font-size: 1.05rem; font-weight: 500; letter-spacing: 0; color: var(--text-muted); }
.hero-lead { font-size: 1.02rem; max-width: 60ch; }
.hero-lead strong { display: block; margin-bottom: 4px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 0; }
.trust-list { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 28px; font-size: .88rem; color: var(--text-muted); }
.trust-list li { display: inline-flex; align-items: center; gap: 8px; }
.trust-list i { color: var(--success); }

/* Chargement du hero : une seule séquence orchestrée */
.hero-copy > *, .pole-switcher { animation: rise .7s var(--ease) both; }
.hero-copy > :nth-child(2) { animation-delay: .06s; }
.hero-copy > :nth-child(3) { animation-delay: .12s; }
.hero-copy > :nth-child(4) { animation-delay: .18s; }
.hero-copy > :nth-child(5) { animation-delay: .24s; }
.pole-switcher { animation-delay: .3s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Sélecteur de pôles (élément signature de l'accueil) */
.pole-switcher {
    position: relative;
    background: rgba(255, 255, 255, .8);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 26px; box-shadow: var(--shadow);
}
.pole-switcher::before {
    content: ""; position: absolute; top: -1px; left: 26px; right: 26px; height: 2px; border-radius: 2px; background: var(--accent-gradient);
}
.pole-switcher-label { margin: 0 0 14px; font-family: 'Poppins', sans-serif; font-weight: 600; color: var(--text); font-size: 1.05rem; }
.pole-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.pole-tab {
    display: inline-flex; align-items: center; gap: 8px;
    min-height: 40px; padding: 0 14px; border-radius: 10px;
    background: var(--bg); border: 1px solid var(--border); color: var(--text-muted);
    font: 500 .86rem 'Inter', sans-serif; cursor: pointer;
    transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.pole-tab:hover { color: var(--blue); border-color: rgba(12, 10, 208, .35); }
.pole-tab[aria-selected="true"] { background: var(--blue); color: #fff; border-color: transparent; font-weight: 600; }
.pole-panel { min-height: 220px; animation: rise .35s var(--ease) both; }
.pole-panel[hidden] { display: none; }
.pole-title { font-family: 'Poppins', sans-serif; font-size: var(--step-2); font-weight: 700; color: var(--text); margin: 0 0 8px; line-height: 1.2; }
.check-list { margin: 16px 0 18px; display: grid; gap: 10px; }
.check-list li, .card ul li, .pack ul li {
    position: relative; padding-left: 28px; color: var(--text); font-size: .94rem; line-height: 1.5;
}
.check-list li::before, .card ul li::before, .pack ul li::before {
    content: ""; position: absolute; left: 0; top: .35em; width: 16px; height: 10px;
    border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
    transform: rotate(-45deg) scale(.8); transform-origin: center;
}
@media (max-width: 980px) {
    .hero { padding: 48px 0 64px; }
    .hero-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ---------- En-tête des pages intérieures ---------- */
.page-hero { position: relative; overflow: hidden; padding: 56px 0 60px; border-bottom: 1px solid var(--border-soft); background: var(--lavender); }
.page-hero > .container { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(2rem, 4vw, 2.9rem); max-width: 22ch; letter-spacing: -0.02em; }
.page-hero p { max-width: 62ch; font-size: 1.06rem; margin: 0; }
.page-hero .hero-actions { margin-top: 26px; }
.page-hero > .container > * { animation: rise .6s var(--ease) both; }
.page-hero > .container > :nth-child(2) { animation-delay: .05s; }
.page-hero > .container > :nth-child(3) { animation-delay: .1s; }
.page-hero > .container > :nth-child(4) { animation-delay: .15s; }
.page-hero::after { content: ""; position: absolute; right: 6%; bottom: 0; width: 220px; height: 70px; background: var(--accent-gradient); opacity: .5; clip-path: polygon(0 100%, 100% 0, 100% 4%, 2% 100%); pointer-events: none; }
.breadcrumb { color: var(--text-dim); font-size: .85rem; margin-bottom: 18px; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.breadcrumb li + li::before { content: "›"; margin-right: 6px; color: var(--text-dim); }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb li[aria-current] { color: var(--text); }

/* Vidéos d'arrière-plan */
.hero-media-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-media-bg video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-media-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(244,244,254,.95) 0%, rgba(223,223,249,.9) 32%, rgba(178,179,242,.86) 68%, rgba(106,103,222,.92) 100%); }
.page-hero.has-media-bg::after { z-index: 1; }
.section.has-media-bg { overflow: hidden; }
.section.has-media-bg > .container { position: relative; z-index: 1; }

/* ---------- Cartes ---------- */
.card {
    position: relative; display: flex; flex-direction: column;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 28px; transition: border-color .2s ease, background .2s ease;
}
.card:hover { border-color: rgba(12, 10, 208, .22); }
.card .icon {
    width: 48px; height: 48px; border-radius: 12px; margin-bottom: 18px;
    display: grid; place-items: center; font-size: 1.15rem;
    background: var(--accent-soft); color: var(--accent); border: 1px solid rgba(12, 10, 208, .1);
}
.card h3, .card .card-title { font-size: 1.15rem; margin-bottom: .45em; }
.card .card-title a { color: var(--text); }
.card .card-title a:hover { color: var(--accent); }
.card p { font-size: .95rem; }
.card ul { margin: 6px 0 4px; display: grid; gap: 9px; }
.card ul li { font-size: .9rem; color: var(--text-muted); }
.card .card-link, .card-link {
    display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 18px;
    font-weight: 600; font-size: .92rem; color: var(--accent);
}
.card-link i { transition: transform .2s var(--ease); font-size: .8rem; }
.card-link:hover i { transform: translateX(4px); }
.card[id], .category-block { scroll-margin-top: calc(var(--header-h) + 16px); }
#ia.card { border-color: rgba(12, 10, 208, .35); background: linear-gradient(180deg, rgba(12, 10, 208, .08), var(--surface) 55%); }

/* ---------- Pourquoi ---------- */
.why-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.why-grid .why-item { padding: 28px 24px; flex-direction: column; }
.why-grid .why-item + .why-item { border-left: 1px solid var(--border); }
.why-item { display: flex; gap: 16px; align-items: flex-start; }
.why-item .icon { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.why-item h3, .why-item h4 { font-size: 1.02rem; margin-bottom: .35em; }
.why-item p { margin: 0; font-size: .92rem; }
@media (max-width: 980px) { .why-grid { grid-template-columns: 1fr 1fr; } .why-grid .why-item:nth-child(3) { border-left: 0; } .why-grid .why-item:nth-child(n+3) { border-top: 1px solid var(--border); } }
@media (max-width: 560px) { .why-grid { grid-template-columns: 1fr; } .why-grid .why-item + .why-item { border-left: 0; border-top: 1px solid var(--border); } }

/* ---------- Marques ---------- */
.brands-section { padding: 56px 0; }
.brands-title { font-family: 'Inter', sans-serif; font-size: .95rem; font-weight: 500; color: var(--text-muted); text-align: center; margin-bottom: 24px; letter-spacing: 0; }
.brand-strip { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; align-items: center; }
.brand-badge { display: flex; align-items: center; justify-content: center; width: 144px; height: 64px; padding: 0 18px; border-radius: var(--radius-sm); background: #fff; }
.brand-badge picture { display: flex; width: 100%; justify-content: center; }
.brand-badge img { height: 32px; width: 100%; object-fit: contain; }
.brand-badge .brand-fallback-text { display: none; font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 1.02rem; color: #1a2434; }
.brand-badge img[data-broken="true"] { display: none; }
.brand-badge img[data-broken="true"] ~ .brand-fallback-text { display: block; }
.brand-note { text-align: center; font-size: .82rem; color: var(--text-muted); margin-top: 18px; }

/* ---------- Devis express ---------- */
.need-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.need-tile {
    display: flex; align-items: center; gap: 16px; min-height: 76px; padding: 18px 22px;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    color: var(--text); font-weight: 600;
    transition: border-color .2s ease, background .2s ease;
}
.need-tile i { width: 42px; height: 42px; flex: none; display: grid; place-items: center; border-radius: 10px; background: var(--accent-soft); color: var(--accent); }
.need-tile::after { content: "\f061"; font-family: 'Font Awesome 6 Free'; font-weight: 900; margin-left: auto; font-size: .8rem; color: var(--text-dim); transition: transform .2s var(--ease), color .2s ease; }
.need-tile:hover { border-color: rgba(12, 10, 208, .3); color: var(--text); }
.need-tile:hover::after { color: var(--accent); transform: translateX(4px); }
.quick-quote-more { margin: 22px 0 0; }
@media (max-width: 900px) { .need-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .need-grid { grid-template-columns: 1fr; } }

/* ---------- Packs ---------- */
.pack { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px 28px; }
.pack.featured { border: 1px solid transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--accent-gradient) border-box; box-shadow: 0 24px 50px rgba(12, 10, 208, .28); }
.pack-badge { position: absolute; top: -13px; left: 28px; padding: 5px 12px; border-radius: 999px; background: var(--yellow); color: var(--navy); font-size: .78rem; font-weight: 700; }
.pack h2, .pack h3, .pack-title { font-size: 1.3rem; }
.pack .pack-desc { font-size: .93rem; margin-bottom: 1.2em; }
.pack ul { flex: 1; display: grid; gap: 11px; margin-bottom: 26px; align-content: start; }
.pack .price { font-family: 'Poppins', sans-serif; font-size: 1.4rem; font-weight: 700; color: var(--text); }

/* ---------- Étapes ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0; counter-reset: s; margin: 0; padding: 0; position: relative; }
.step { position: relative; padding: 0 22px 0 0; text-align: left; }
.step .num { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 18px; background: var(--accent-gradient); color: #fff; font-family: 'Poppins', sans-serif; font-weight: 700; position: relative; z-index: 1; }
.step:not(:last-child)::after { content: ""; position: absolute; top: 23px; left: 58px; right: 12px; height: 1px; background: linear-gradient(90deg, var(--border), transparent); }
.step h3 { font-size: 1.05rem; }
.step p { font-size: .93rem; }
@media (max-width: 720px) { .steps { gap: 28px; } .step::after { display: none; } }

/* ---------- Bandeau d'appel à l'action ---------- */
.cta-band {
    position: relative; overflow: hidden;
    display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 24px 40px;
    padding: 44px 48px; border-radius: var(--radius-lg);
    background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--accent-gradient) border-box;
    border: 1px solid transparent;
}
.cta-band::after { content: ""; position: absolute; right: -20px; top: 0; width: 320px; height: 100%; background: var(--accent-gradient); opacity: .12; clip-path: polygon(30% 100%, 100% 0, 100% 100%); pointer-events: none; }
.cta-band h2 { font-size: var(--step-3); margin-bottom: .3em; color: var(--text); grid-column: 1; }
.cta-band p { margin: 0; color: var(--text-muted); grid-column: 1; }
.cta-band .hero-actions { grid-column: 2; grid-row: 1 / span 2; margin: 0; position: relative; z-index: 1; }
.cta-band .btn[style] { background: var(--blue) !important; color: #fff !important; }
@media (max-width: 820px) { .cta-band { grid-template-columns: 1fr; padding: 32px 26px; } .cta-band .hero-actions { grid-column: 1; grid-row: auto; } }

/* ---------- Témoignages ---------- */
.testimonial { margin: 0; padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); display: flex; flex-direction: column; }
.testimonial .quote, .testimonial blockquote.quote { margin: 0 0 18px; font-size: 1.02rem; line-height: 1.6; color: var(--text); font-style: normal; }
.testimonial .quote::before { content: "“"; display: block; font-family: 'Poppins', sans-serif; font-size: 2.6rem; line-height: .8; margin-bottom: 8px; background: var(--accent-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.testimonial .author { margin-top: auto; color: var(--text-muted); font-weight: 500; font-size: .88rem; }

/* ---------- Catalogue matériel ---------- */
.cat-nav { position: sticky; top: calc(var(--header-h) + 8px); z-index: 5; display: flex; flex-wrap: nowrap; gap: 8px; overflow-x: auto; padding: 10px; margin: 0 0 48px; border-radius: var(--radius); background: rgba(255, 255, 255, .88); backdrop-filter: blur(10px); border: 1px solid var(--border); scrollbar-width: none; }
.cat-nav::-webkit-scrollbar { display: none; }
.cat-nav a { flex: none; padding: 8px 14px; border-radius: 9px; color: var(--text-muted); font-size: .88rem; font-weight: 500; white-space: nowrap; }
.cat-nav a:hover { color: var(--text); background: var(--surface-alt); }
.category-block { margin-bottom: 64px; }
.category-block h2, .category-block h3 { display: flex; align-items: center; gap: 12px; font-size: var(--step-2); margin-bottom: 22px; }
.category-block h2 i, .category-block h3 i { color: var(--accent); font-size: 1.1rem; }
.product-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; transition: border-color .2s ease; }
.product-card:hover { border-color: var(--accent); }
.product-card h3, .product-card h4 { font-size: 1rem; margin-bottom: .3em; }
.product-card .price { color: var(--text); font-weight: 700; font-size: 1.05rem; margin: 4px 0 8px; }
.product-card .status { display: inline-flex; align-self: flex-start; padding: 3px 10px; border-radius: 6px; font-size: .76rem; font-weight: 600; background: rgba(34, 197, 94, .12); color: #15803d; }

/* ---------- Médias ---------- */
.media-thumb { position: relative; width: 100%; aspect-ratio: 4 / 3; border-radius: var(--radius-sm); overflow: hidden; background: linear-gradient(135deg, var(--surface-alt), var(--surface)); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; border: 1px solid var(--border); }
.media-thumb picture { display: block; width: 100%; height: 100%; }
.media-thumb img, .media-thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-thumb .media-placeholder-icon { display: none; font-size: 1.8rem; color: var(--text-muted); opacity: .45; }
.media-thumb:not(:has(img)):not(:has(video)) .media-placeholder-icon { display: block; }
.media-thumb .play-badge { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(5, 16, 25, .3); opacity: 0; transition: opacity .2s ease; }
.media-thumb:hover .play-badge { opacity: 1; }
.media-thumb.is-playing .play-badge { opacity: 0; }
.media-thumb .play-badge i { width: 50px; height: 50px; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--blue); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; }

/* ---------- Formulaires ---------- */
.form-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 34px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-size: .9rem; font-weight: 600; color: var(--text); }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; min-height: 50px; padding: 12px 16px;
    background: var(--bg); color: var(--text);
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    font: 400 1rem 'Inter', sans-serif;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.form-group textarea { resize: vertical; min-height: 130px; }
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--text-dim); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(12, 10, 208, .12); }
.checkbox-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.checkbox-item { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 14px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--bg); color: var(--text); font-size: .9rem; cursor: pointer; transition: border-color .15s ease, background .15s ease; }
a.checkbox-item { color: var(--text); }
.checkbox-item:hover { border-color: rgba(12, 10, 208, .35); }
.checkbox-item input { accent-color: var(--accent); width: 18px; height: 18px; flex: none; }
.checkbox-item:has(input:checked) { border-color: var(--accent); background: rgba(12, 10, 208, .06); }
.form-privacy { font-size: .8rem; color: var(--text-muted); margin: 14px 0 0; }
.form-privacy a { color: var(--accent); }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 16px 20px; border-radius: var(--radius-sm); margin-bottom: 24px; font-size: .95rem; }
.alert-success { background: rgba(34, 197, 94, .1); border: 1px solid rgba(34, 197, 94, .4); color: #166534; }
.alert-error { background: rgba(239, 68, 68, .1); border: 1px solid rgba(239, 68, 68, .4); color: #b91c1c; }
@media (max-width: 720px) { .form-row { grid-template-columns: 1fr; gap: 0; } .checkbox-grid { grid-template-columns: 1fr 1fr; } .form-card { padding: 24px 20px; } }
@media (max-width: 420px) { .checkbox-grid { grid-template-columns: 1fr; } }

.contact-info-item { display: flex; gap: 16px; align-items: flex-start; padding: 20px; margin-bottom: 12px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.contact-info-item .icon { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.contact-info-item h2, .contact-info-item h3, .contact-info-item h4 { font-size: 1rem; margin-bottom: .25em; }
.contact-info-item p { margin: 0; font-size: .92rem; }

/* ---------- Contenus éditoriaux ---------- */
.seo-text { max-width: 760px; }
.seo-text h2 { font-size: var(--step-3); }
.seo-text h3 { margin-top: 1.6em; font-size: 1.12rem; }
.seo-text p, .seo-text li { color: var(--text-muted); }
.seo-text ul { list-style: disc; padding-left: 1.3em; margin: 0 0 1em; }
.seo-text a { text-decoration: underline; text-decoration-color: rgba(12, 10, 208, .35); text-underline-offset: 3px; }
.seo-columns { max-width: var(--container); columns: 2 380px; column-gap: 56px; }
.seo-columns h2 { column-span: all; margin-bottom: 1em; }
.seo-columns h3 { break-after: avoid; }
.seo-columns h3:first-of-type { margin-top: 0; }
.facts-list { display: grid; grid-template-columns: max-content 1fr; gap: 0; margin: 0; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.facts-list dt, .facts-list dd { padding: 13px 20px; border-bottom: 1px solid var(--border-soft); margin: 0; }
.facts-list dt { color: var(--text); font-weight: 600; background: rgba(12, 10, 208, .03); }
.facts-list dd { color: var(--text-muted); }
@media (max-width: 560px) { .facts-list { grid-template-columns: 1fr; } .facts-list dt { border-bottom: 0; padding-bottom: 2px; } .facts-list dd { padding-top: 2px; } }

/* ---------- FAQ ---------- */
.faq-list { max-width: 860px; display: grid; gap: 10px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); transition: border-color .2s ease; }
.faq-item[open] { border-color: rgba(12, 10, 208, .28); }
.faq-item summary { list-style: none; cursor: pointer; padding: 20px 60px 20px 22px; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { margin: 0; font-size: 1rem; font-weight: 600; font-family: 'Inter', sans-serif; letter-spacing: 0; }
.faq-item summary::after { content: ""; position: absolute; right: 24px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: translateY(-70%) rotate(45deg); transition: transform .2s ease; }
.faq-item[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq-answer { padding: 0 22px 20px; }
.faq-answer p { margin: 0; }

/* ---------- Pied de page ---------- */
.site-footer { background: #fff; border-top: 1px solid var(--border-soft); }
.footer-cta { border-bottom: 1px solid var(--border-soft); background: var(--bg); }
.footer-cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px 40px; flex-wrap: wrap; padding-top: 44px; padding-bottom: 44px; }
.footer-cta-title { font-family: 'Poppins', sans-serif; font-size: var(--step-2); font-weight: 700; color: var(--text); margin: 0 0 4px; }
.footer-cta-text { margin: 0; }
.footer-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-top: 60px; padding-bottom: 48px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }
.footer-title { font-family: 'Inter', sans-serif; font-size: .95rem; font-weight: 600; letter-spacing: 0; margin-bottom: 16px; color: var(--text); }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a, .footer-contact a, .footer-bottom a { color: var(--text-muted); font-size: .92rem; }
.footer-col ul li a:hover, .footer-contact a:hover, .footer-bottom a:hover { color: var(--accent); }
.footer-brand p { font-size: .9rem; margin: 16px 0 18px; max-width: 42ch; }
.footer-socials { display: flex; gap: 10px; }
.footer-socials a { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; color: var(--text-muted); border: 1px solid var(--border); }
.footer-socials a:hover { color: var(--accent); border-color: var(--accent); }
.footer-contact { font-style: normal; }
.footer-contact p { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 12px; font-size: .9rem; }
.footer-contact p i { color: var(--accent); margin-top: 4px; width: 14px; }
.footer-bottom { border-top: 1px solid var(--border-soft); padding: 20px 0; }
.footer-bottom p { margin: 0; font-size: .82rem; color: var(--text-dim); }

/* ---------- Boutons flottants et barre d'actions mobile ---------- */
.whatsapp-float { position: fixed; right: 22px; bottom: 22px; z-index: 90; display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px 12px 14px; border-radius: 999px; background: var(--whatsapp); color: #062b14; font-weight: 600; font-size: .9rem; box-shadow: 0 10px 26px rgba(37, 211, 102, .3); transition: transform .2s var(--ease); }
.whatsapp-float:hover { transform: translateY(-2px); color: #062b14; }
.whatsapp-float i { font-size: 1.35rem; }
.scroll-top-btn { position: fixed; right: 22px; bottom: 86px; z-index: 90; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity .2s ease, transform .2s ease, border-color .2s ease; }
.scroll-top-btn.visible { opacity: 1; transform: none; pointer-events: auto; }
.scroll-top-btn:hover { border-color: var(--accent); }
.mobile-actions { display: none; }
@media (max-width: 760px) {
    .whatsapp-float, .scroll-top-btn { display: none; }
    .mobile-actions {
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
        display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 8px;
        padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
        background: rgba(255, 255, 255, .86); backdrop-filter: blur(16px); border-top: 1px solid var(--border);
    }
    .mobile-actions a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); color: var(--text); font-weight: 600; font-size: .9rem; }
    .mobile-actions a .fa-whatsapp { color: var(--whatsapp); font-size: 1.1rem; }
    .mobile-actions a.is-primary { background: var(--blue); color: #fff; border-color: transparent; }
    body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
}

/* ---------- Page d'erreur ---------- */
.error-code { font-family: 'Poppins', sans-serif; font-size: clamp(4rem, 12vw, 7rem); font-weight: 800; line-height: 1; background: var(--accent-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 12px; }

/* ---------- Compatibilité : anciennes classes encore présentes ---------- */
.hero-inner { position: relative; z-index: 1; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.hero-tags li a { display: inline-block; padding: 6px 12px; border-radius: 8px; border: 1px solid var(--border); color: var(--text-muted); font-size: .82rem; }
.hero-tags li a:hover { color: var(--accent); border-color: var(--accent); }
.reveal, .reveal.is-visible { opacity: 1; transform: none; }
.hero-lead br { display: none; }
.hero-lead strong { margin-bottom: 10px; }
@media (max-width: 560px) { .hero-actions .btn { flex: 1 1 100%; } .page-hero::after { width: 120px; height: 40px; } }

/* ---------- Ajustements après relecture ---------- */
.testimonial .quote::before { content: none; }
.testimonial { background: var(--card-gradient); border: 1px solid rgba(12, 10, 208, .08); }
.brand-badge { width: 112px; height: 58px; padding: 0 14px; }
.brand-strip { gap: 12px; }
.brand-badge img { height: 28px; }
.faq-section { border-top: 1px solid var(--border-soft); }
.faq-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; align-items: start; }
.faq-layout .section-head { position: sticky; top: calc(var(--header-h) + 24px); margin-bottom: 0; }
@media (max-width: 900px) { .faq-layout { grid-template-columns: 1fr; gap: 28px; } .faq-layout .section-head { position: static; } }
.footer-contact p { display: block; position: relative; padding-left: 24px; }
.footer-contact p i { position: absolute; left: 0; top: 4px; margin: 0; }
/* Le flou de l'en-tête crée un bloc conteneur : on le retire quand le menu mobile est ouvert */
body.nav-open .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: transparent; }
html, body { overflow-x: clip; }
/* Contact : le formulaire prend plus de place que les coordonnées */
.grid.grid-2:has(> .form-card) { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
@media (max-width: 900px) { .grid.grid-2:has(> .form-card) { grid-template-columns: 1fr; } }

/* =====================================================================
   Thème « bleu électrique » : formes et animations
   Les classes .anim-ready, .rv, .split, .is-lit, .slider et .is-marquee
   sont posées par main.js ; sans JavaScript, la page reste lisible.
   ===================================================================== */

/* Couleurs animables : les sections bleu nuit passent en douceur du clair au sombre. */
@property --text { syntax: '<color>'; inherits: true; initial-value: #1c2039; }
@property --text-muted { syntax: '<color>'; inherits: true; initial-value: #4d5272; }
@property --text-dim { syntax: '<color>'; inherits: true; initial-value: #7e83a2; }
@property --border { syntax: '<color>'; inherits: true; initial-value: #dfe2f6; }
@property --border-soft { syntax: '<color>'; inherits: true; initial-value: #e9ebfa; }
@property --accent { syntax: '<color>'; inherits: true; initial-value: #0c0ad0; }

@keyframes rise { from { opacity: 0; transform: translateY(14px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes float { 50% { transform: translateY(-8px); } }
@keyframes bob { 50% { transform: translate(-50%, 5px); } }
@keyframes rings { 50% { box-shadow: 0 0 0 30px rgba(12, 10, 208, .06), 0 0 0 62px rgba(12, 10, 208, .03), 0 18px 40px rgba(17, 20, 110, .12); } }
@keyframes marquee { to { transform: translateX(calc(-50% - 6px)); } }
@keyframes dots-flow { to { background-position: 10px 50%; } }
@keyframes glow { 50% { transform: scale(1.15); opacity: .7; } }

/* ---------- Typographie ---------- */
h1, h2 { letter-spacing: -0.03em; }
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); }
.eyebrow { gap: 10px; font-size: .74rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow::before { width: 7px; height: 7px; border-radius: 50%; clip-path: none; background: var(--accent); }
.eyebrow.eyebrow-hero { font-size: .72rem; }

/* ---------- Boutons en pilule, flèche dans un rond ---------- */
.btn { min-height: 52px; border-radius: 999px; }
.btn-sm { min-height: 44px; border-radius: 999px; }
.btn-primary:not(:has(i))::after, .cta-band .btn[style]:not(:has(i))::after {
    content: "\f061"; font-family: 'Font Awesome 6 Free'; font-weight: 900; font-size: .75rem;
    display: grid; place-items: center; flex: none; width: 36px; height: 36px; margin-right: -18px;
    border-radius: 50%; background: #fff; color: var(--blue);
    transition: transform .35s var(--ease);
}
.btn-sm.btn-primary:not(:has(i))::after { width: 30px; height: 30px; margin-right: -14px; }
.btn-outline:not(:has(i))::after {
    content: "\f061"; font-family: 'Font Awesome 6 Free'; font-weight: 900; font-size: .75rem;
    transform: rotate(-45deg); transition: transform .35s var(--ease);
}
.btn-primary:not(:has(i)):hover::after, .cta-band .btn[style]:not(:has(i)):hover::after { transform: rotate(-45deg); }
.btn-outline:not(:has(i)):hover::after { transform: rotate(0); }

/* ---------- En-tête : pilule de verre flottante ---------- */
.site-header { padding: 12px 16px 0; pointer-events: none; }
.site-header .header-inner { pointer-events: auto; }
.header-inner {
    position: relative; height: 64px; padding: 0 10px 0 20px;
    border: 1px solid rgba(255, 255, 255, .85); border-radius: 999px;
    box-shadow: 0 12px 34px rgba(17, 20, 110, .10);
    transition: height .3s var(--ease), box-shadow .3s ease;
}
/* Le verre dépoli est porté par un pseudo-élément : le menu mobile garde ainsi son propre flou. */
.header-inner::before {
    content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
    background: rgba(255, 255, 255, .7);
    backdrop-filter: saturate(170%) blur(18px); -webkit-backdrop-filter: saturate(170%) blur(18px);
    transition: background .3s ease;
}
.site-header.scrolled .header-inner { height: 58px; box-shadow: 0 16px 40px rgba(17, 20, 110, .16); }
.site-header.scrolled .header-inner::before { background: rgba(255, 255, 255, .84); }
.logo-img { height: 40px; }
.main-nav > a, .nav-group-toggle { border-radius: 999px; }
.main-nav > a:hover, .nav-group-toggle:hover, .nav-group.open .nav-group-toggle { color: var(--blue); background: var(--accent-soft); }
.main-nav > a.active::after, .nav-group.is-current .nav-group-toggle::after { left: 50%; right: auto; bottom: 3px; width: 5px; height: 5px; border-radius: 50%; background: var(--blue); transform: translateX(-50%); }
.nav-panel {
    top: calc(100% + 14px); border-radius: 24px; border-color: rgba(255, 255, 255, .9);
    background: rgba(255, 255, 255, .92); backdrop-filter: saturate(170%) blur(20px); -webkit-backdrop-filter: saturate(170%) blur(20px);
}
.nav-panel-link { border-radius: 16px; }
.nav-panel-icon { border-radius: 50%; }
.nav-toggle { border: 0; border-radius: 50%; background: transparent; }

@media (max-width: 1020px) {
    .site-header { padding: 10px 12px 0; }
    .header-inner { padding: 0 6px 0 16px; }
    .main-nav {
        position: absolute; inset: auto; top: calc(100% + 10px); left: 0; right: 0;
        max-height: calc(100dvh - var(--header-h) - 28px);
        padding: 8px 18px 18px; border-radius: 28px;
        background: rgba(255, 255, 255, .86);
        backdrop-filter: saturate(170%) blur(22px); -webkit-backdrop-filter: saturate(170%) blur(22px);
        border: 1px solid rgba(255, 255, 255, .9); box-shadow: 0 30px 60px rgba(17, 20, 110, .18);
        opacity: 0; transform: translateY(-10px) scale(.98); transform-origin: top center;
        transition: opacity .3s ease, transform .4s var(--ease), visibility .3s;
    }
    .main-nav.open { opacity: 1; transform: none; }
    .main-nav > a, .nav-group-toggle { padding: 15px 4px; font-size: 1.02rem; color: var(--text); border-bottom-color: var(--border); background: none; }
    .main-nav > a:hover, .nav-group-toggle:hover, .nav-group.open .nav-group-toggle { background: none; }
    .main-nav > a::after, .main-nav > a.active::after { content: "\2197"; position: static; width: auto; height: auto; border-radius: 0; background: none; transform: none; color: var(--blue); }
    .main-nav > a.active, .nav-group.is-current .nav-group-toggle { color: var(--blue); }
    .nav-group.is-current .nav-group-toggle::after { display: none; }
    body.nav-open main, body.nav-open .site-footer, body.nav-open .topbar { filter: blur(6px); transition: filter .3s ease; }
    /* Bloquer le défilement sur <html> et non sur <body> : sinon <body> devient le conteneur
       de défilement et l'en-tête collant (avec le menu) sort de l'écran quand on est descendu. */
    body.nav-open { overflow: visible; overflow-x: clip; }
    html:has(> body.nav-open) { overflow: hidden; }
}

/* ---------- Hero d'accueil et en-têtes de pages : dégradé lavande ---------- */
.hero, .page-hero {
    --tab: 30%;
    margin-top: calc(-1 * var(--header-h));
    border-bottom: 0;
    background: var(--lavender);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 40px), calc(100% - var(--tab)) calc(100% - 40px), calc(100% - var(--tab) - 3%) 100%, calc(var(--tab) + 3%) 100%, var(--tab) calc(100% - 40px), 0 calc(100% - 40px));
}
.hero { padding: calc(var(--header-h) + 64px) 0 120px; }
.page-hero { padding: calc(var(--header-h) + 44px) 0 100px; }
.hero::after, .page-hero::after {
    content: "\f063"; font-family: 'Font Awesome 6 Free'; font-weight: 900; font-size: .75rem;
    position: absolute; left: 50%; right: auto; bottom: 12px; z-index: 1;
    width: auto; height: auto; background: none; opacity: 1; clip-path: none;
    color: #fff; transform: translateX(-50%); animation: bob 1.8s ease-in-out infinite;
}
.hero h1 .accent { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: var(--blue); }
.hero .trust-list { color: var(--text); }
.page-hero p { color: var(--text); }
.pole-switcher {
    border-color: rgba(255, 255, 255, .9);
    backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px);
    box-shadow: 0 30px 70px rgba(17, 20, 110, .18);
    animation: rise .7s var(--ease) .3s both, float 7s ease-in-out 1.4s infinite;
}
.pole-switcher::before { content: none; }
.pole-tab { border-radius: 999px; background: #fff; }
@media (max-width: 720px) {
    .hero, .page-hero { --tab: 12%; }
}

/* ---------- Sections bleu nuit (fond clair tant qu'elles ne sont pas à l'écran) ---------- */
.section-alt {
    isolation: isolate; border: 0; background: var(--bg);
    transition: --text .9s var(--ease), --text-muted .9s var(--ease), --text-dim .9s var(--ease), --border .9s var(--ease), --border-soft .9s var(--ease), --accent .9s var(--ease);
}
.section-alt::before {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: radial-gradient(120% 70% at 50% 0%, #1b19c9 0%, #0b1170 45%, var(--navy) 100%);
    opacity: 0; transition: opacity .9s var(--ease);
}
.section-alt.is-lit {
    --text: #ffffff; --text-muted: rgba(255, 255, 255, .76); --text-dim: rgba(255, 255, 255, .55);
    --border: rgba(255, 255, 255, .16); --border-soft: rgba(255, 255, 255, .1); --accent: var(--yellow);
}
.section-alt.is-lit::before { opacity: 1; }
.section-alt .hero-media-bg { opacity: 0; transition: opacity .9s var(--ease); }
.section-alt.is-lit .hero-media-bg { opacity: 1; }
.section-alt .hero-media-bg::after { background: linear-gradient(180deg, rgba(7, 14, 82, .92) 0%, rgba(11, 17, 112, .82) 50%, rgba(7, 14, 82, .95) 100%); }
.section-alt.is-lit .step .num { background: #fff; color: var(--blue); }

/* Les cartes gardent leurs encres claires, y compris sur fond bleu nuit. */
.card, .pack, .testimonial, .form-card, .faq-item, .facts-list, .why-grid, .need-tile, .contact-info-item, .product-card, .cta-band, .pole-switcher, .brand-badge {
    --text: var(--ink); --text-muted: var(--ink-muted); --text-dim: var(--ink-dim);
    --border: var(--line); --border-soft: var(--line-soft); --accent: var(--blue);
}

/* ---------- Cartes ---------- */
.card, .pack, .testimonial, .faq-item, .product-card, .contact-info-item, .need-tile, .form-card, .why-grid {
    background: var(--card-gradient); border-color: rgba(12, 10, 208, .08);
    box-shadow: 0 10px 30px rgba(17, 20, 110, .05);
}
.card, .pack, .product-card, .need-tile { transition: border-color .3s ease, box-shadow .3s ease, transform .45s var(--ease); }
.card:hover, .pack:hover, .product-card:hover, .need-tile:hover { transform: translateY(-6px); box-shadow: 0 26px 50px rgba(17, 20, 110, .12); }
.card .icon, .why-item .icon, .contact-info-item .icon, .need-tile i { border-radius: 50%; }
.card .icon { transition: background .3s ease, color .3s ease, transform .45s var(--ease); }
.card:hover .icon { background: var(--blue); color: #fff; transform: rotate(-8deg) scale(1.05); }
.pack.featured {
    --text: #fff; --text-muted: rgba(255, 255, 255, .8); --border: rgba(255, 255, 255, .2); --accent: var(--yellow);
    background: radial-gradient(130% 90% at 0% 0%, #2f2ce8 0%, var(--blue) 55%, #0907a6 100%);
    border: 0; box-shadow: 0 30px 60px rgba(12, 10, 208, .32);
}
.pack.featured .btn-primary { background: #fff; color: var(--blue); box-shadow: none; }
.pack.featured .btn-primary::after { background: var(--blue); color: #fff; }
.need-tile::after {
    display: grid; place-items: center; flex: none; width: 38px; height: 38px;
    border-radius: 50%; border: 1px solid var(--border); color: var(--blue);
    transform: rotate(-45deg); transition: background .3s ease, color .3s ease, border-color .3s ease, transform .45s var(--ease);
}
.need-tile:hover::after, .need-tile.is-current::after { background: var(--blue); color: #fff; border-color: transparent; transform: rotate(0); }
.step .num { border-radius: 50%; }
.step:not(:last-child)::after {
    top: 21px; height: 4px; opacity: .8;
    background: radial-gradient(circle, var(--accent) 1.4px, transparent 1.9px) 0 50% / 10px 4px repeat-x;
    animation: dots-flow 1.4s linear infinite;
}
.cta-band { background: var(--card-gradient); border: 1px solid rgba(12, 10, 208, .08); box-shadow: var(--shadow); }
.cta-band::after {
    right: -70px; top: -70px; width: 280px; height: 280px; border-radius: 50%; clip-path: none; opacity: 1;
    background: radial-gradient(circle, rgba(12, 10, 208, .18), transparent 70%);
    animation: glow 6s ease-in-out infinite;
}

/* ---------- FAQ : chevron dans un rond qui se remplit ---------- */
.faq-item summary::before {
    content: ""; position: absolute; right: 14px; top: 50%; width: 38px; height: 38px; margin-top: -19px;
    border-radius: 50%; background: var(--accent-soft); transition: background .3s ease;
}
.faq-item summary::after { right: 28px; z-index: 1; }
.faq-item[open] summary::before { background: var(--blue); }
.faq-item[open] summary::after { border-color: #fff; }

/* ---------- Formulaires ---------- */
.form-group input, .form-group select, .form-group textarea { background: #f3f4fd; border-color: transparent; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { background: #fff; }
.checkbox-item { background: #fff; }

/* ---------- Marques : logo dans des anneaux qui respirent, défilement continu ---------- */
.brands-section { padding: 76px 0 64px; }
.brands-inner::before {
    content: ""; display: block; width: 92px; height: 92px; margin: 0 auto 30px; border-radius: 50%;
    background: #fff url(/assets/img/logo.png) center / 62% auto no-repeat;
    box-shadow: 0 0 0 22px rgba(12, 10, 208, .05), 0 0 0 46px rgba(12, 10, 208, .035), 0 18px 40px rgba(17, 20, 110, .12);
    animation: rings 3.2s ease-in-out infinite;
}
.brand-badge { border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 6px 18px rgba(17, 20, 110, .05); }
.brand-strip.is-marquee {
    display: block; overflow: hidden; padding: 6px 0;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.brand-track { display: flex; gap: 12px; width: max-content; animation: marquee 32s linear infinite; }
.brand-strip.is-marquee:hover .brand-track { animation-play-state: paused; }

/* ---------- Carrousels mobiles (grilles de cartes) ---------- */
.slider-controls { display: none; }
@media (max-width: 720px) {
    .grid.slider {
        display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
        margin: 0 -24px; padding: 18px 24px 26px; scroll-padding: 0 24px; scrollbar-width: none;
    }
    .grid.slider::-webkit-scrollbar { display: none; }
    .grid.slider > * { flex: 0 0 86%; scroll-snap-align: start; }
    .slider-controls { display: flex; align-items: center; gap: 10px; }
    .slider-progress { flex: 1; height: 3px; margin-right: 8px; border-radius: 3px; background: var(--border); overflow: hidden; }
    .slider-progress span { display: block; height: 100%; width: 20%; border-radius: inherit; background: var(--accent); transition: width .25s ease; }
    .slider-btn {
        display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
        border: 1px solid var(--border); background: #fff; color: var(--blue); cursor: pointer;
        transition: opacity .2s ease, transform .2s var(--ease);
    }
    .slider-btn:active { transform: scale(.94); }
    .slider-btn:disabled { opacity: .45; cursor: default; }
}

/* ---------- Pied de page : grand nom en bleu plein ---------- */
.site-footer { overflow: hidden; }
.footer-socials a, .scroll-top-btn { border-radius: 50%; }
.footer-bottom::before {
    content: "ARROW 225"; content: "ARROW 225" / "";
    display: block; margin: 0 0 22px; text-align: center; white-space: nowrap;
    font: 700 clamp(3.4rem, 14.5vw, 13rem)/1 'Poppins', sans-serif; letter-spacing: -0.03em;
    color: var(--blue);
    pointer-events: none; user-select: none;
}
.mobile-actions a { border-radius: 999px; }

/* ---------- Apparitions au défilement ---------- */
.split .h1-sub.w { display: block; }
.anim-ready .rv {
    opacity: 0; transform: translateY(28px); filter: blur(8px);
    transition: opacity .8s var(--ease), transform .9s var(--ease), filter .8s var(--ease);
    transition-delay: var(--d, 0s);
}
.anim-ready .rv.is-in { opacity: 1; transform: none; filter: none; }
/* Titres : chaque mot sort du flou, l'un après l'autre */
.anim-ready .split .w {
    opacity: 0; filter: blur(12px);
    transition: opacity .7s var(--ease), filter .8s var(--ease);
    transition-delay: calc(var(--i) * 60ms);
}
.anim-ready .split.is-in .w { opacity: 1; filter: none; }
@media print {
    .anim-ready .rv, .anim-ready .split .w { opacity: 1; transform: none; filter: none; }
}
