/* Aidalys — DA v2 (fond clair, violet sobre, serif éditoriale) */

:root {
    /* Couleurs */
    --bg: #FAFAF7;
    --bg-alt: #F2F1EC;
    --surface: #FFFFFF;
    --border: #E5E3DD;
    --border-strong: #CFCDC5;
    --ink: #1A1A1A;
    --ink-muted: #5A5A5A;
    --ink-soft: #8A8A85;
    --accent: #6D5DFB;
    --accent-dark: #5445D9;
    --accent-soft: #EEEBFF;

    /* Rayons */
    --radius-sm: 6px;
    --radius: 8px;
    --radius-lg: 14px;

    /* Typographie */
    --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-serif: 'Plus Jakarta Sans', system-ui, sans-serif;

    /* Mesures */
    --container: 1200px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font-sans);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img, video, svg { display: block; max-width: 100%; }

/* Typo */
h1, h2, h3, h4 {
    font-family: var(--font-sans);
    font-weight: 600;
    color: var(--ink);
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin: 0;
}
h1 { font-size: clamp(2.25rem, 4.5vw, 3.5rem); font-weight: 700; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); font-weight: 600; }
h3 { font-size: 1.25rem; font-weight: 600; }
h1 em, h2 em, h3 em { font-style: normal; color: var(--accent); font-weight: 700; }

p { margin: 0; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* Utilitaires */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1.5rem;
}
.eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 600;
    font-family: var(--font-sans);
}
.muted { color: var(--ink-muted); }
.visually-hidden {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0);
    white-space: nowrap; border: 0;
}

/* Stats avec <dl> — overrides */
dl.stats { margin: 0; }
dl.stats .stat dt { order: 2; color: var(--ink-muted); font-size: 0.9rem; margin-top: 0.5rem; }
dl.stats .stat dd { order: 1; margin: 0; font-family: var(--font-serif); font-size: 2.25rem; font-weight: 500; color: var(--accent); letter-spacing: -0.02em; line-height: 1; }
dl.stats .stat { display: flex; flex-direction: column; }

/* Anchor nav (TOC sticky) */
.anchor-nav {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 72px;
    z-index: 9;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: 0 1px 0 var(--border);
}
.anchor-nav-list {
    display: flex;
    list-style: none;
    padding: 0.6rem 0;
    margin: 0;
    gap: 0.4rem;
    white-space: nowrap;
    justify-content: center;
}
.anchor-nav-list a {
    display: inline-block;
    padding: 0.65rem 1.1rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--ink);
    border: 1px solid transparent;
    border-radius: 999px;
    text-decoration: none;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.anchor-nav-list a:hover {
    background: var(--accent-soft);
    color: var(--accent-dark);
    text-decoration: none;
}
.anchor-nav-list a.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    text-decoration: none;
}
@media (max-width: 860px) {
    /* Décale l'anchor-nav sous la nav fixed complète (logo 72px + breadcrumb mobile ~46px). */
    .anchor-nav { top: 118px; }
    .anchor-nav-list { justify-content: flex-start; }
    .anchor-nav-list a { font-size: 0.88rem; padding: 0.5rem 0.9rem; }
}

/* Profile picker (bandeau de 6 portraits interactifs — page Pour qui) */
.profile-picker {
    background: #00040A;              /* fond noir quasi-pur, match le bg des portraits */
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: sticky;
    top: 0;                           /* fondu dans la nav (transparente via .nav-over-hero) */
    padding-top: 72px;                /* espace réservé pour la nav par-dessus */
    z-index: 9;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
}
/* Sur mobile/tablette la nav ajoute un breadcrumb (~46px) — on compense
   sinon les tiles du haut passent sous la nav-mobile. */
@media (max-width: 860px) {
    .profile-picker { padding-top: 120px; }
}
.profile-picker-row {
    display: flex;
    gap: 0;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}
.profile-tile {
    position: relative;
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 0 0.75rem 0;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.7);
    border-bottom: 3px solid transparent;
    transition: filter 0.35s ease, opacity 0.35s ease, transform 0.35s ease, color 0.15s ease, border-color 0.25s ease;
    cursor: pointer;
}
.profile-tile-image {
    display: block;
    width: 100%;
    height: 120px;                    /* collapsed par défaut */
    background-color: #00040A;
    background-size: cover;
    background-position: center top;  /* collapsed : montre le haut (visage) */
    background-repeat: no-repeat;
    filter: grayscale(0.7) brightness(0.55);
    opacity: 0.65;
    transition: filter 0.35s ease, opacity 0.35s ease, height 0.4s cubic-bezier(0.4, 0, 0.2, 1), background-position 0.4s ease;
}
.profile-tile-label {
    display: block;
    padding-top: 0.4rem;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    text-align: center;
    transition: font-size 0.35s ease, padding-top 0.35s ease, color 0.15s ease;
}
/* Hover sur le bandeau entier : expand à pleine taille (desktop uniquement) */
@media (min-width: 768px) {
    .profile-picker:hover .profile-tile-image,
    .profile-picker:focus-within .profile-tile-image {
        height: 33vh;
        min-height: 220px;
        background-position: center center;  /* portrait complet en expanded */
    }
    .profile-picker:hover .profile-tile-label,
    .profile-picker:focus-within .profile-tile-label {
        font-size: 0.9rem;
        padding-top: 0.5rem;
    }
}
.profile-tile:hover .profile-tile-image,
.profile-tile:focus-visible .profile-tile-image,
.profile-tile.active .profile-tile-image {
    filter: none;
    opacity: 1;
}
.profile-tile:hover .profile-tile-label,
.profile-tile:focus-visible .profile-tile-label,
.profile-tile.active .profile-tile-label {
    color: #fff;
    font-weight: 600;
}
.profile-tile.active {
    border-bottom-color: var(--tile-accent, var(--accent));
}
.profile-tile:focus-visible {
    outline: 2px solid var(--tile-accent, var(--accent));
    outline-offset: -2px;
}

/* Tablette : bandeau plus compact (collapsed 90px), hover 28vh */
@media (max-width: 1023px) and (min-width: 768px) {
    .profile-tile-image {
        height: 90px;
    }
    .profile-tile {
        padding-bottom: 0.5rem;
    }
    .profile-picker:hover .profile-tile-image,
    .profile-picker:focus-within .profile-tile-image {
        height: 28vh;
        min-height: 180px;
    }
}

@media (max-width: 767px) {
    .profile-picker {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
    }
    .profile-picker-row {
        width: max-content;
        min-width: 100%;
    }
    .profile-tile {
        flex: 0 0 120px;
        scroll-snap-align: center;
    }
    .profile-tile-image {
        height: 180px;
    }
    .profile-tile-label {
        font-size: 0.72rem;
        padding: 0.35rem 0.25rem 0;
        line-height: 1.2;
    }
    .profile-tile.active {
        transform: none;  /* pas de translate sur mobile : perturbe le snap */
    }
    main section[id] { scroll-margin-top: 330px; }  /* 120 nav+breadcrumb + 180 img + 30 label */
}

@media (prefers-reduced-motion: reduce) {
    .profile-tile,
    .profile-tile-image {
        transition: none;
    }
    .profile-tile.active {
        transform: none;
    }
}

/* Integration badges (marques partenaires) */
.integrations {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.25rem;
}
.integration {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.7rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 0.82rem;
    color: var(--ink);
}
.integration svg { width: 16px; height: 16px; display: block; }

/* Liste à puces discrètes */
.bullets {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}
.bullets li {
    position: relative;
    padding-left: 1.5rem;
    color: var(--ink);
    font-size: 0.98rem;
    line-height: 1.55;
}
.bullets li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.6rem;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--accent);
}
.bullets strong { font-weight: 600; }

/* Split inversé (texte à droite) */
.split-reverse { grid-template-columns: 1fr 1fr; }
.split-reverse > *:first-child { order: 2; }
.split-reverse > *:last-child { order: 1; }
@media (max-width: 860px) {
    .split-reverse > *:first-child { order: 1; }
    .split-reverse > *:last-child { order: 2; }
}

/* Page hero (version simple sans grid) */
.page-hero {
    padding: 2.5rem 0 2rem;
    text-align: center;
}
.page-hero .eyebrow { margin-bottom: 0.75rem; }
.page-hero h1 { max-width: 20ch; margin: 0 auto 0.75rem; font-size: clamp(2rem, 3.8vw, 2.75rem); }
.page-hero .hero-lede { max-width: 56ch; margin: 0 auto; font-size: 1.05rem; }

/* Offset pour les ancres (profile-picker sticky + nav) — calibré sur l'état
   collapsed pour que la section soit collée au bandeau au repos.
   Au clic, le bandeau est expanded (hover) et la section est temporairement
   masquée ; elle apparaît sous le bandeau dès que l'utilisateur sort le curseur. */
main section[id] { scroll-margin-top: 240px; }       /* 72 nav + 120 img + 30 label + 18 padding */
@media (max-width: 1023px) and (min-width: 768px) {
    main section[id] { scroll-margin-top: 260px; }   /* 120 nav+breadcrumb + 90 + 30 + 18 */
}

/* Preview card (visuel d'un module) */
.preview {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
}
.preview-title {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-muted);
    margin-bottom: 1.25rem;
}
.preview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}
.preview-item {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    padding: 1rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    min-height: 110px;
}
.preview-item .ic {
    width: 36px; height: 36px;
    border-radius: var(--radius);
    background: var(--accent-soft);
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.preview-item strong {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--ink);
    line-height: 1.3;
}
.preview-item span {
    font-size: 0.82rem;
    color: var(--ink-muted);
    line-height: 1.4;
}

/* Hero fullscreen (style Septeo) */
.hero-full {
    position: relative;
    min-height: clamp(560px, 68vh, 760px);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
    background: #0F0F19;
    color: #fff;
    text-align: center;
    padding: 6rem 1.5rem 5rem;
    margin-top: -72px;
}
.hero-full .bg-video,
.hero-full .bg-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    animation: hero-media-enter 1.4s cubic-bezier(0.22, 1, 0.36, 1) both;
    transform-origin: center center;
    will-change: opacity, transform;
}
@keyframes hero-media-enter {
    0%   { opacity: 0; transform: scale(1.04); }
    100% { opacity: 1; transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
    .hero-full .bg-video,
    .hero-full .bg-image { animation: none; }
}
/* Variante hero image fixe (pages modules) — image en "contain" pour rester
   entière, avec l'image elle-même floutée en backdrop pour masquer les
   bandes sur écrans de ratio différent. Style "Apple TV / Spotify". */
.hero-full.static-bg {
    min-height: clamp(560px, 68vh, 760px);
    padding: 7rem 1.5rem 2rem;
    --hero-bg: url('assets/images/mjpm-presentation219.webp');
}
.hero-full.static-bg .bg-image {
    object-fit: contain;
    object-position: center;
    z-index: 1; /* au-dessus du backdrop flouté */
}
/* Backdrop flouté : même image en cover, fortement floutée, pour masquer
   les bandes latérales/verticales quand le ratio écran ≠ ratio image.
   Override par page possible via `style="--hero-bg: url('...')"` sur la section. */
.hero-full.static-bg::before {
    content: "";
    position: absolute;
    inset: -40px; /* déborde pour éviter les bords nets du blur */
    background-image: var(--hero-bg);
    background-size: cover;
    background-position: center;
    filter: blur(40px) brightness(0.55) saturate(1.2);
    z-index: 0;
    pointer-events: none;
}
.hero-full.static-bg::after {
    background: linear-gradient(180deg, rgba(15,15,25,.25) 0%, rgba(15,15,25,.45) 100%);
    z-index: 2; /* au-dessus de l'image et du backdrop */
}
.hero-full.static-bg .hero-inner { z-index: 3; }

/* Variante "pure" : container au ratio exact de l'image/vidéo (21:9),
   pas de padding-top, pas de backdrop flouté. L'image/vidéo remplit
   naturellement la largeur sans bandes latérales. À appliquer via
   `class="hero-full hero-pure"` (avec ou sans static-bg). */
.hero-full.hero-pure {
    aspect-ratio: 21 / 9;
    min-height: 0;
    padding-top: 0;
    padding-bottom: 2rem;
}
.hero-full.hero-pure::before { display: none; }
.hero-full.hero-pure .bg-image,
.hero-full.hero-pure .bg-video {
    object-fit: cover;
}
@media (max-width: 860px) {
    /* Mobile + tablette (iPad portrait ≤ 860px inclus) : le ratio 21:9
       donne un hero trop court pour du texte et la nav-mobile breadcrumb
       est visible. On relâche : hauteur auto + padding-top qui réserve
       la hauteur de la nav fixed (logo ~72px + breadcrumb ~46px) plus
       le décalage margin-top: -72px du hero — sinon un contenu long
       remonte sous la nav (flex-end n'a plus d'effet quand le contenu
       dépasse min-height). Le breakpoint 860 doit matcher celui de
       .nav-mobile pour éviter un trou entre 768 et 860. */
    .hero-full.hero-pure {
        aspect-ratio: auto;
        min-height: 420px;
        padding-top: 13rem;
    }
}

.hero-full.static-bg h1 {
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    margin-bottom: 1.5rem;
}
.hero-full .module-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.9rem;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(4px);
}
.hero-full .module-eyebrow svg { width: 14px; height: 14px; }
.hero-full .hero-lede-dark {
    font-size: 1.1rem;
    line-height: 1.55;
    color: rgba(255,255,255,0.9);
    max-width: 620px;
    margin: 0 auto 2rem;
}
.hero-full .hero-cta-dark { display: inline-flex; gap: 0.75rem; flex-wrap: wrap; justify-content: center; }
.hero-full .btn-hero-primary {
    background: var(--accent);
    color: #fff;
    padding: 0.85rem 1.5rem;
    border-radius: 999px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.15s;
}
.hero-full .btn-hero-primary:hover { background: var(--accent-dark); text-decoration: none; }
.hero-full .btn-hero-ghost {
    padding: 0.85rem 1.5rem;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.4);
    color: #fff;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s;
}
.hero-full .btn-hero-ghost:hover { background: rgba(255,255,255,0.1); border-color: #fff; text-decoration: none; }
.hero-full::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15,15,25,.55) 0%, rgba(15,15,25,.7) 100%);
    z-index: 1;
}
.hero-full .hero-inner {
    position: relative;
    z-index: 2;
    max-width: 960px;
    animation: hero-inner-enter 4s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}
.hero-full:not(.static-bg) .hero-inner { padding-bottom: clamp(1rem, 4vh, 2.5rem); }

@keyframes hero-inner-enter {
    0%   { opacity: 0; transform: translateY(24px); }
    100% { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
    .hero-full .hero-inner { animation: none; }
}
.hero-full h1 {
    font-family: var(--font-sans);
    font-weight: 700;
    color: #fff;
    font-size: clamp(2rem, 5.5vw, 4.5rem);
    line-height: 1.08;
    letter-spacing: -0.035em;
    margin-bottom: 2rem;
}
.hero-full h1 em { color: #B4A7FF; font-style: normal; }
.btn-video {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1.5rem 0.85rem 0.5rem;
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.35);
    border-radius: 999px;
    font: 500 0.95rem var(--font-sans);
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s;
}
.btn-video:hover { background: rgba(255,255,255,0.08); border-color: #fff; text-decoration: none; }
.btn-video .play {
    width: 40px; height: 40px;
    border-radius: 999px;
    background: var(--accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.btn-video .play svg { width: 14px; height: 14px; fill: #fff; margin-left: 2px; }

/* Filter widget (carte flottante) */
.filter-widget {
    position: relative;
    max-width: 900px;
    margin: -4rem auto 0;
    padding: 1.5rem 1.75rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(15,15,25,0.12);
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 1.25rem;
    align-items: end;
    z-index: 3;
}
.filter-field { display: flex; flex-direction: column; gap: 0.35rem; }
.filter-field label {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-muted);
}
.filter-field select {
    font: 400 1rem var(--font-sans);
    color: var(--ink);
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border);
    padding: 0.5rem 1.5rem 0.5rem 0;
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%235A5A5A' stroke-width='2' stroke-linecap='round'%3E%3Cpolyline points='1,1 6,6 11,1'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right center;
}
.filter-field select:focus { outline: none; border-bottom-color: var(--accent); }
.filter-widget .btn { height: 48px; }
@media (max-width: 860px) {
    .hero-full { min-height: auto; padding: 13rem 1.25rem 6rem; }
    .hero-full:not(.static-bg) .hero-inner { padding-bottom: 0; }
}
@media (max-width: 720px) {
    .filter-widget { grid-template-columns: 1fr; margin-top: 1.5rem; }
    .filter-widget .btn { width: 100%; }
}

/* Manifeste (phrase centrale) */
.manifesto {
    padding: 5rem 1.5rem 4rem;
    text-align: center;
}
.manifesto p {
    max-width: 780px;
    margin: 0 auto;
    font-family: var(--font-serif);
    font-size: clamp(1.3rem, 2.4vw, 1.8rem);
    font-weight: 400;
    line-height: 1.45;
    color: var(--ink);
    letter-spacing: -0.01em;
}
.manifesto p strong { font-weight: 500; color: var(--accent); }

/* Bloc Erika (façon Septeo Brain) — v2 épurée */
.erika-block {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(109,93,251,0.06);
}
.erika-block::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: linear-gradient(90deg, #B4A7FF 0%, #6D5DFB 50%, #4A2D7C 100%);
}
.erika-head {
    text-align: center;
    padding: 3rem 2rem 2rem;
    border-bottom: 1px solid var(--border);
}
.erika-head .eyebrow { margin-bottom: 0.75rem; }
.erika-head h2 {
    font-family: var(--font-serif);
    font-weight: 500;
    font-size: clamp(1.8rem, 3.2vw, 2.4rem);
    line-height: 1.15;
    letter-spacing: -0.015em;
    margin-bottom: 0.75rem;
}
.erika-head h2 em { color: var(--accent); font-style: italic; }
.erika-head p { color: var(--ink-muted); max-width: 620px; margin: 0 auto; font-size: 1rem; }

.erika-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
}
@media (max-width: 860px) { .erika-body { grid-template-columns: 1fr; } }
.erika-col {
    padding: 2.5rem 2.25rem;
}
.erika-col + .erika-col {
    border-left: 1px solid var(--border);
}
@media (max-width: 860px) {
    .erika-col + .erika-col { border-left: none; border-top: 1px solid var(--border); }
}
.erika-col h3 {
    font-family: var(--font-serif);
    font-weight: 500;
    font-size: 1.15rem;
    line-height: 1.3;
    letter-spacing: -0.01em;
    color: var(--ink);
    margin-bottom: 2rem;
}

/* Liste d'items (numéros ou icônes) — structure commune */
.erika-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.erika-list li {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 1rem;
    align-items: start;
}
.erika-list .badge {
    width: 44px; height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.erika-list .badge-num {
    background: linear-gradient(135deg, #EEEBFF 0%, #E2DCFF 100%);
    font-family: var(--font-serif);
    font-weight: 500;
    font-size: 1.3rem;
    color: var(--accent);
}
.erika-list .badge-ic {
    background: linear-gradient(135deg, #EEEBFF 0%, #E2DCFF 100%);
    color: var(--accent);
}
.erika-list .item-title {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.98rem;
    color: var(--ink);
    margin-bottom: 0.3rem;
    line-height: 1.35;
}
.erika-list .item-text { color: var(--ink-muted); font-size: 0.92rem; line-height: 1.55; }

.erika-footer {
    padding: 1.5rem 2.25rem;
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    text-align: center;
    font-size: 0.95rem;
    color: var(--ink-muted);
}
.erika-footer strong { color: var(--ink); font-weight: 600; }

/* Module card style "Septeo métiers" */
.module-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.module-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(109,93,251,0.12);
}
.module-card .ic-circle {
    width: 44px; height: 44px;
    border-radius: 12px;
    background: var(--accent-soft);
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.module-card h3 { font-family: var(--font-serif); font-weight: 500; font-size: 1.25rem; letter-spacing: -0.01em; }
.module-card p { color: var(--ink-muted); font-size: 0.95rem; line-height: 1.55; flex: 1; }
.module-card .read-more {
    color: var(--accent);
    font-weight: 500;
    font-size: 0.92rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.25rem;
}
.module-card .read-more svg { width: 14px; height: 14px; transition: transform 0.15s; }
.module-card:hover .read-more svg { transform: translateX(3px); }

/* Formulaire contact */
.contact-section {
    background: var(--bg-alt);
    padding: 5rem 1.5rem;
}
.contact-form {
    max-width: 640px;
    margin: 0 auto;
}
.contact-form h2 { text-align: center; margin-bottom: 2rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.contact-form label {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: 0.35rem;
}
.contact-form label .req { color: var(--accent); }
.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 0.7rem 0.9rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    font: 400 0.95rem var(--font-sans);
    color: var(--ink);
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus { outline: none; border-color: var(--accent); }
.contact-form textarea { min-height: 120px; resize: vertical; }
.contact-form .btn { width: 100%; margin-top: 1rem; }

/* Pricing cards */
.pricing {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    align-items: stretch;
}
@media (max-width: 960px) { .pricing { grid-template-columns: 1fr; } }
.pricing .card-pricing {
    display: flex;
    flex-direction: column;
    padding: 2rem 1.75rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    position: relative;
}
.pricing .card-pricing.featured {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}
.pricing .badge-popular {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
}
.pricing h3 { font-family: var(--font-serif); font-weight: 500; font-size: 1.5rem; margin-bottom: 0.25rem; }
.pricing .subtitle { color: var(--ink-muted); font-size: 0.92rem; margin-bottom: 1.5rem; }
.pricing .price-amount { font-family: var(--font-serif); font-size: 1.75rem; color: var(--accent); font-weight: 500; }
.pricing .price-hint { color: var(--ink-muted); font-size: 0.88rem; margin-bottom: 1.5rem; }
.pricing ul.bullets { flex: 1; }
.pricing .btn { margin-top: 1.5rem; width: 100%; }

/* Comparatif table */
.compare-wrapper { overflow-x: auto; margin: 2rem 0; border: 1px solid var(--border); border-radius: var(--radius-lg); }
.compare-table { width: 100%; border-collapse: collapse; background: var(--surface); font-size: 0.92rem; }
.compare-table th, .compare-table td { padding: 0.75rem 1rem; text-align: left; border-bottom: 1px solid var(--border); }
.compare-table th { font-family: var(--font-sans); font-weight: 600; color: var(--ink); background: var(--bg-alt); font-size: 0.88rem; }
.compare-table td.yes { color: var(--accent); font-weight: 500; }
.compare-table td.no { color: var(--ink-soft); }
.compare-table tr.group td { background: var(--bg-alt); font-weight: 600; font-family: var(--font-sans); text-transform: uppercase; font-size: 0.78rem; letter-spacing: 0.08em; color: var(--ink-muted); }
.compare-table tr:last-child td { border-bottom: none; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq details {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 0.75rem;
    overflow: hidden;
}
.faq details[open] { border-color: var(--accent); }
.faq summary {
    list-style: none;
    padding: 1.1rem 1.4rem;
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 1rem;
    color: var(--ink);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    transition: background 0.15s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: "+";
    color: var(--accent);
    font-size: 1.4rem;
    font-weight: 400;
    line-height: 1;
    transition: transform 0.2s;
    flex-shrink: 0;
}
.faq details[open] summary::after { content: "−"; }
.faq summary:hover { background: var(--bg); }
.faq-answer {
    padding: 0 1.4rem 1.2rem;
    color: var(--ink-muted);
    font-size: 0.98rem;
    line-height: 1.65;
}
.faq-answer a { color: var(--accent); }

/* Split-visual : quand c'est une preview card, pas d'aspect ratio */
.split-visual.as-preview {
    aspect-ratio: auto;
    border: none;
    background: var(--bg-alt);
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
}
.section-alt .split-visual.as-preview { background: var(--bg); }

/* Boutons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius);
    font: 500 0.95rem var(--font-sans);
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    text-decoration: none;
    white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); text-decoration: none; }
.btn-secondary {
    background: transparent;
    color: var(--ink);
    border-color: var(--border-strong);
}
.btn-secondary:hover { border-color: var(--ink); text-decoration: none; }
.btn-ghost { background: transparent; color: var(--accent); padding-left: 0; padding-right: 0; }
.btn-ghost:hover { color: var(--accent-dark); text-decoration: underline; }
.btn-large { padding: 0.9rem 1.5rem; font-size: 1rem; }

/* Tag / badge */
.tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.2rem 0.65rem;
    background: var(--accent-soft);
    color: var(--accent-dark);
    font-size: 0.78rem;
    font-weight: 500;
    border-radius: 999px;
    font-family: var(--font-sans);
}

/* Card */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

/* Trust list (petites puces cochées) */
.trust {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: var(--ink-muted);
}
.trust-item { display: inline-flex; align-items: center; gap: 0.5rem; }
.trust-check {
    width: 16px; height: 16px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Navigation */
.nav {
    border-bottom: 1px solid var(--border);
    background: var(--bg);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    transition: background 0.25s, border-color 0.25s, color 0.25s;
}
.nav.nav-over-hero {
    background: transparent;
    border-bottom-color: transparent;
}
.nav.nav-over-hero .nav-links a { color: rgba(255,255,255,0.88); }
.nav.nav-over-hero .nav-links a:hover { color: #fff; }
.nav.nav-over-hero .nav-brand img { filter: brightness(0) invert(1); }
/* Scroll state (solid white) quand on descend sur le hero */
.nav.nav-solid {
    background: rgba(250,250,247,0.96);
    backdrop-filter: saturate(1.2) blur(8px);
    -webkit-backdrop-filter: saturate(1.2) blur(8px);
}
/* Offset pour compenser la nav fixed sur les pages sans hero-full */
body { scroll-padding-top: 72px; }
.nav-row { display: flex; align-items: center; justify-content: space-between; gap: 2rem; min-height: 72px; }
.nav-brand { font-family: var(--font-serif); font-size: 1.3rem; font-weight: 500; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; display: flex; align-items: center; }
.nav-brand img { display: block; }
.nav-right { display: flex; align-items: center; gap: 2rem; }
.nav-links { display: flex; gap: 1.75rem; font-size: 0.95rem; align-items: center; }
.nav-links > .nav-item { position: relative; }
.nav-links > .nav-item > a,
.nav-links > a { color: var(--ink-muted); padding: 0.5rem 0; display: inline-flex; align-items: center; gap: 0.35rem; text-decoration: none; }
.nav-links > .nav-item > a:hover,
.nav-links > a:hover { color: var(--ink); text-decoration: none; }
.nav-links .chev {
    width: 10px;
    height: 10px;
    color: var(--accent);
    transition: transform 0.2s;
    flex-shrink: 0;
}
/* Chip Erika IA (style "Septeo Brain") */
.nav-links a.nav-chip {
    padding: 0.5rem 1.1rem;
    border: 1.5px solid var(--accent);
    border-radius: 999px;
    color: var(--ink);
    font-weight: 500;
    transition: background 0.15s, color 0.15s;
}
.nav-links a.nav-chip:hover {
    background: var(--accent);
    color: #fff;
    text-decoration: none;
}
.nav.nav-over-hero .nav-links a.nav-chip {
    border-color: #B4A7FF;
    color: #fff;
}
.nav.nav-over-hero .nav-links a.nav-chip:hover {
    background: #fff;
    color: var(--accent);
    border-color: #fff;
}
.nav.nav-over-hero .nav-links > .nav-item > a,
.nav.nav-over-hero .nav-links > a { color: rgba(255,255,255,0.88); }
.nav.nav-over-hero .nav-links > .nav-item > a:hover,
.nav.nav-over-hero .nav-links > a:hover { color: #fff; }
.nav.nav-over-hero .nav-links .chev { color: #B4A7FF; }

/* Dropdown (sous-menu type Septeo) */
.nav-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    min-width: 560px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    box-shadow: 0 20px 60px rgba(15,15,25,0.12);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.35rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.18s, transform 0.18s, visibility 0.18s;
    z-index: 110;
}
.nav-dropdown.wide { min-width: 640px; grid-template-columns: 1fr 1fr; }
.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}
.nav-item:hover > a .chev { transform: rotate(180deg); }

.nav-dropdown a {
    display: grid !important;
    grid-template-columns: 40px 1fr;
    gap: 0.85rem;
    padding: 0.75rem 0.85rem;
    border-radius: var(--radius);
    text-decoration: none;
    transition: background 0.12s;
    color: var(--ink);
}
.nav-dropdown a:hover { background: var(--accent-soft); text-decoration: none; }
.nav-dropdown .ic-dd {
    width: 40px; height: 40px;
    border-radius: 10px;
    background: var(--accent-soft);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    grid-row: span 2;
}
.nav-dropdown strong {
    font-family: var(--font-sans);
    font-weight: 600;
    color: var(--ink);
    font-size: 0.95rem;
    line-height: 1.3;
    margin-top: 0.25rem;
}
.nav-dropdown span {
    color: var(--ink-muted);
    font-size: 0.82rem;
    line-height: 1.4;
}
@media (max-width: 960px) {
    .nav-dropdown { display: none; }
}

/* Section */
.section { padding: 4rem 0; }
.section-alt { background: var(--bg-alt); }

/* Hero spécifique */
.hero {
    padding: 4rem 0 5rem;
    border-bottom: 1px solid var(--border);
}
.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 4rem;
    align-items: center;
}
.hero h1 { margin-top: 1rem; margin-bottom: 1.25rem; }
.hero-lede {
    font-size: 1.125rem;
    color: var(--ink-muted);
    max-width: 42ch;
    margin-bottom: 2rem;
}
.hero-cta { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.hero-visual {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--surface);
    aspect-ratio: 4 / 3;
}
.hero-visual video, .hero-visual img { width: 100%; height: 100%; object-fit: cover; display: block; }

@media (max-width: 860px) {
    .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .nav-links { display: none; }
    .nav-right > .btn-primary { display: none; }
    .nav-row { min-height: 60px; }
    body { scroll-padding-top: 112px; }
}

/* Nav mobile — onglets de sections distribués, chip violet sur l'actif.
   Le <a> prend toute la colonne (tap area), le <span> porte le chip. */
.nav-mobile { display: none; }
@media (max-width: 860px) {
    .nav-mobile {
        display: block;
        border-top: 1px solid var(--border);
        background: inherit;
    }
    .nav-mobile-inner {
        display: flex;
        padding: 0.4rem 0.25rem;
        width: 100%;
    }
    .nav-mobile a {
        flex: 1 1 0;
        display: flex;
        justify-content: center;
        align-items: center;
        color: var(--ink-muted);
        font-size: 0.78rem;
        text-decoration: none;
        padding: 0.15rem;
        white-space: nowrap;
        line-height: 1.2;
        transition: color 0.15s;
    }
    .nav-mobile a > span {
        padding: 0.3rem 0.7rem;
        border-radius: 999px;
        border: 1px solid rgba(0,0,0,0.12);
        transition: background 0.2s, color 0.15s, border-color 0.2s;
    }
    .nav-mobile a[aria-current="page"] > span {
        background: var(--accent);
        border-color: var(--accent);
        color: #fff;
        font-weight: 500;
    }
    .nav.nav-over-hero .nav-mobile { border-top-color: rgba(255,255,255,0.15); }
    .nav.nav-over-hero .nav-mobile a { color: rgba(255,255,255,0.85); }
    .nav.nav-over-hero .nav-mobile a > span { border-color: rgba(255,255,255,0.3); }
    .nav.nav-over-hero .nav-mobile a[aria-current="page"] > span {
        background: var(--accent);
        border-color: var(--accent);
        color: #fff;
    }
    .nav.nav-solid .nav-mobile a { color: var(--ink-muted); }
    .nav.nav-solid .nav-mobile a > span { border-color: rgba(0,0,0,0.12); }
    .nav.nav-solid .nav-mobile a[aria-current="page"] > span {
        background: var(--accent);
        border-color: var(--accent);
        color: #fff;
    }
}

/* CTA flottant mobile — remplace le bouton "Demander une démo" de la nav */
.nav-cta-floating { display: none; }
@media (max-width: 860px) {
    .nav-cta-floating {
        display: inline-flex;
        align-items: center;
        gap: 0.4rem;
        position: fixed;
        right: 1rem;
        bottom: 1rem;
        z-index: 99;
        padding: 0.75rem 1.15rem;
        background: var(--accent);
        color: #fff;
        font-family: var(--font-sans);
        font-size: 0.9rem;
        font-weight: 500;
        text-decoration: none;
        border-radius: 999px;
        box-shadow: 0 8px 24px rgba(60,40,180,0.28), 0 2px 6px rgba(0,0,0,0.08);
    }
    .nav-cta-floating:hover { background: var(--accent-dark); }
}

/* Section header */
.section-header { text-align: center; max-width: 640px; margin: 0 auto 3rem; }
.section-header.left { text-align: left; margin-left: 0; }
.section-header h2 { margin-bottom: 1rem; }
.section-header p { color: var(--ink-muted); font-size: 1.05rem; }

/* Grid générique */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.5rem; }
@media (max-width: 960px) { .grid-3, .grid-4, .grid-5 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid-3, .grid-4, .grid-5 { grid-template-columns: 1fr; } }

/* Feature card (piliers / modules) */
.feature {
    padding: 1.75rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: border-color 0.15s;
}
.feature:hover { border-color: var(--accent); }
.feature-icon {
    width: 40px; height: 40px;
    border-radius: var(--radius);
    background: var(--accent-soft);
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.feature h3 { font-family: var(--font-serif); font-size: 1.15rem; font-weight: 500; }
.feature p { color: var(--ink-muted); font-size: 0.95rem; line-height: 1.55; }

/* Erika showcase */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 2.5rem; } }
.split-visual {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    aspect-ratio: 4 / 3;
    background: var(--surface);
}
.split-visual video, .split-visual img { width: 100%; height: 100%; object-fit: cover; }

/* Liste features verticale */
.feature-list { display: flex; flex-direction: column; gap: 1.25rem; margin: 1.5rem 0; list-style: none; padding: 0; }
.feature-list li { display: flex; align-items: flex-start; gap: 1rem; }
.feature-list .ic {
    width: 36px; height: 36px;
    border-radius: var(--radius);
    background: var(--accent-soft);
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.feature-list h4 { font-family: var(--font-sans); font-weight: 600; font-size: 1rem; margin: 0 0 0.2rem; letter-spacing: 0; }
.feature-list p { color: var(--ink-muted); font-size: 0.95rem; margin: 0; }

/* Flow */
.flow {
    display: flex;
    align-items: stretch;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 2rem;
}
.flow-step {
    flex: 1 1 140px;
    min-width: 120px;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    text-align: center;
}
.flow-step .ic {
    width: 40px; height: 40px;
    margin: 0 auto 0.5rem;
    border-radius: var(--radius);
    background: var(--accent-soft);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
}
.flow-step span { font-weight: 500; font-size: 0.95rem; color: var(--ink); }
.flow-arrow {
    display: flex; align-items: center;
    color: var(--ink-soft);
    font-size: 1.1rem;
    padding: 0 0.25rem;
}

/* Stats */
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    padding: 2.5rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.stat { text-align: center; }
.stat-number {
    font-family: var(--font-serif);
    font-size: 2.25rem;
    font-weight: 500;
    color: var(--accent);
    letter-spacing: -0.02em;
    line-height: 1;
}
.stat-label { color: var(--ink-muted); font-size: 0.9rem; margin-top: 0.5rem; }
@media (max-width: 720px) { .stats { grid-template-columns: repeat(2, 1fr); row-gap: 1.75rem; } }

/* Testimonial */
.testimonial {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.testimonial-quote {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    line-height: 1.4;
    color: var(--ink);
    margin: 0;
}
.testimonial-author { color: var(--ink-muted); font-size: 0.9rem; margin: 0; }
.testimonial-author strong { color: var(--ink); font-weight: 600; display: block; font-size: 0.95rem; }

/* CTA final */
.cta-final {
    text-align: center;
    padding: 5rem 2rem;
    background: var(--accent-soft);
    border-radius: var(--radius-lg);
    margin: 4rem 0;
}
.cta-final h2 { margin-bottom: 1rem; }
.cta-final p { color: var(--ink-muted); max-width: 480px; margin: 0 auto 2rem; font-size: 1.05rem; }
.cta-final .cta-row { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }

/* Footer */
.footer {
    padding: 3.5rem 0 2rem;
    border-top: 1px solid var(--border);
    color: var(--ink-muted);
    font-size: 0.92rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
.footer h4 { font-family: var(--font-sans); font-weight: 600; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); margin-bottom: 1rem; }
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.footer ul a { color: var(--ink-muted); }
.footer ul a:hover { color: var(--accent); text-decoration: none; }
.footer-brand p { max-width: 320px; color: var(--ink-muted); }
.footer-bottom {
    display: flex;
    justify-content: space-between;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    color: var(--ink-soft);
    font-size: 0.85rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}


/* ============================================================
   Simulateur "Combien de temps vous fait perdre l'administratif ?"
   ============================================================ */

.sim-wrap {
    max-width: 860px;
    margin: 0 auto;
    padding: 4rem 1.5rem 6rem;
}
.sim-progress {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
}
.sim-progress-bar {
    flex: 1;
    height: 3px;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden;
}
.sim-progress-fill {
    height: 100%;
    background: var(--accent);
    transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.sim-progress-label {
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-muted);
    font-weight: 600;
    white-space: nowrap;
}

.sim-step {
    display: none;
    animation: sim-step-in 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.sim-step.active { display: block; }
@keyframes sim-step-in {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}
.sim-step h2 {
    font-size: clamp(1.5rem, 2.6vw, 2rem);
    text-align: center;
    margin-bottom: 0.5rem;
}
.sim-step .sim-hint {
    text-align: center;
    color: var(--ink-muted);
    margin-bottom: 2.5rem;
}

.sim-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}
@media (max-width: 560px) { .sim-cards { grid-template-columns: 1fr; } }
.sim-card {
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, transform 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-sans);
}
.sim-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.sim-card.selected { border-color: var(--accent); background: var(--accent-soft); }
.sim-card svg { width: 40px; height: 40px; stroke: var(--accent); stroke-width: 1.5; fill: none; margin-bottom: 0.25rem; }
.sim-card strong { font-size: 1.05rem; font-weight: 600; color: var(--ink); }
.sim-card span { font-size: 0.9rem; color: var(--ink-muted); }

.sim-bignum { text-align: center; margin-bottom: 2rem; }
.sim-bignum .val {
    font-size: clamp(3rem, 7vw, 5rem);
    font-weight: 700;
    color: var(--accent);
    letter-spacing: -0.03em;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}
.sim-bignum .unit {
    font-size: 1.3rem;
    color: var(--ink-muted);
    margin-left: 0.4rem;
}
.sim-range {
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    height: 4px;
    background: var(--border);
    border-radius: 4px;
    outline: none;
    margin: 1rem 0 0.5rem;
}
.sim-range::-webkit-slider-thumb {
    appearance: none;
    -webkit-appearance: none;
    width: 22px; height: 22px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
    border: 3px solid #fff;
    box-shadow: 0 1px 8px rgba(109,93,251,0.35);
}
.sim-range::-moz-range-thumb {
    width: 22px; height: 22px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
    border: 3px solid #fff;
    box-shadow: 0 1px 8px rgba(109,93,251,0.35);
}
.sim-range-bounds {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--ink-soft);
}
.sim-range-note {
    font-size: 0.85rem;
    color: var(--ink-muted);
    text-align: center;
    margin-top: 1rem;
}

.sim-list { display: flex; flex-direction: column; gap: 0.6rem; margin-bottom: 2rem; }
.sim-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    text-align: left;
    font-family: var(--font-sans);
}
.sim-item:hover { border-color: var(--accent); }
.sim-item.selected { border-color: var(--accent); background: var(--accent-soft); }
.sim-item-body strong { display: block; font-size: 1rem; font-weight: 600; color: var(--ink); margin-bottom: 0.15rem; }
.sim-item-body span { font-size: 0.88rem; color: var(--ink-muted); line-height: 1.5; }
.sim-item .sim-check {
    width: 22px; height: 22px;
    border-radius: 50%;
    border: 2px solid var(--border);
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s, border-color 0.2s;
}
.sim-item.selected .sim-check { background: var(--accent); border-color: var(--accent); }
.sim-item .sim-check svg { width: 12px; height: 12px; stroke: #fff; stroke-width: 3; fill: none; opacity: 0; transition: opacity 0.2s; }
.sim-item.selected .sim-check svg { opacity: 1; }

.sim-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 2rem; gap: 1rem; }
.sim-nav .btn-ghost {
    background: transparent;
    color: var(--ink-muted);
    border: none;
    cursor: pointer;
    font: inherit;
    padding: 0.75rem 1rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}
.sim-nav .btn-ghost:hover { color: var(--accent); }
.sim-nav .btn-ghost:disabled { opacity: 0; pointer-events: none; }

.sim-results { animation: sim-step-in 0.6s cubic-bezier(0.22, 1, 0.36, 1) both; }
.sim-results h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); text-align: center; margin-bottom: 0.75rem; }
.sim-results .sim-lede { text-align: center; color: var(--ink-muted); max-width: 540px; margin: 0 auto 3rem; }

.sim-hero-metric {
    background: #0F0F19;
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 3rem 2rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}
.sim-hero-metric::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 20%, rgba(109,93,251,0.25), transparent 60%),
                radial-gradient(circle at 70% 80%, rgba(177,140,255,0.18), transparent 55%);
    pointer-events: none;
}
.sim-hero-metric > * { position: relative; }
.sim-hero-metric .label {
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.65);
    font-weight: 600;
    margin-bottom: 1rem;
    display: block;
}
.sim-hero-metric .big {
    font-size: clamp(3.5rem, 9vw, 6rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1;
    color: #fff;
    font-variant-numeric: tabular-nums;
}
.sim-hero-metric .big em { color: #B4A7FF; font-style: normal; font-size: 0.5em; vertical-align: middle; margin-left: 0.2em; font-weight: 600; }
.sim-hero-metric .sub { margin-top: 1rem; color: rgba(255,255,255,0.8); font-size: 1rem; }
.sim-hero-metric .sub strong { color: #B4A7FF; font-weight: 700; }

.sim-valo { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 3rem; }
@media (max-width: 820px) { .sim-valo { grid-template-columns: 1fr; } }
.sim-valo-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem 1.5rem;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}
.sim-valo-card:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(15,15,25,0.06); }
.sim-valo-card .ic {
    width: 44px; height: 44px;
    background: var(--accent-soft);
    color: var(--accent);
    border-radius: 999px;
    display: inline-flex; align-items: center; justify-content: center;
    margin-bottom: 1rem;
}
.sim-valo-card .ic svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 1.75; fill: none; }
.sim-valo-card .num {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -0.02em;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}
.sim-valo-card .num .u { font-size: 0.9rem; color: var(--ink-muted); margin-left: 0.3rem; font-weight: 500; }
.sim-valo-card h3 { margin: 0.75rem 0 0.5rem; font-size: 1rem; font-weight: 600; }
.sim-valo-card p { color: var(--ink-muted); font-size: 0.92rem; margin: 0; }

.sim-breakdown {
    background: var(--bg-alt);
    border-radius: var(--radius-lg);
    padding: 2rem 1.75rem;
    margin-bottom: 3rem;
}
.sim-breakdown h3 { font-size: 1.1rem; margin-bottom: 1.5rem; color: var(--ink); }
.sim-bar { margin-bottom: 1rem; }
.sim-bar-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.35rem;
    font-size: 0.92rem;
}
.sim-bar-head strong { color: var(--ink); font-weight: 600; }
.sim-bar-head .h { color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.sim-bar-track {
    height: 8px;
    background: rgba(109,93,251,0.12);
    border-radius: 4px;
    overflow: hidden;
}
.sim-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent) 0%, #B4A7FF 100%);
    border-radius: 4px;
    transition: width 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.sim-cta {
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, var(--accent) 0%, #8A7BFF 100%);
    color: #fff;
    border-radius: var(--radius-lg);
}
.sim-cta h3 {
    color: #fff;
    font-size: clamp(1.5rem, 2.8vw, 2.2rem);
    margin-bottom: 0.75rem;
    font-weight: 700;
}
.sim-cta p {
    color: rgba(255,255,255,0.92);
    margin-bottom: 1.75rem;
    max-width: 520px;
    margin-left: auto; margin-right: auto;
}
.sim-cta .btn { background: #fff; color: var(--accent-dark); border: none; padding: 1rem 2rem; border-radius: 999px; font-weight: 600; }
.sim-cta .btn:hover { background: #fff; text-decoration: none; box-shadow: 0 4px 20px rgba(0,0,0,0.15); }
.sim-cta .sim-share {
    display: block;
    margin-top: 1rem;
    color: rgba(255,255,255,0.85);
    font-size: 0.9rem;
    text-decoration: underline;
    background: none; border: none;
    cursor: pointer; font-family: inherit;
}
.sim-cta .sim-share:hover { color: #fff; }

.footer-sim-banner {
    background: linear-gradient(135deg, #0F0F19 0%, #1F1A3A 100%);
    color: #fff;
    padding: 2.5rem 1.5rem;
    margin-bottom: 3.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.footer-sim-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 40%, rgba(109,93,251,0.25), transparent 55%),
                radial-gradient(circle at 80% 60%, rgba(177,140,255,0.18), transparent 50%);
}
.footer-sim-banner > * { position: relative; }
.footer-sim-banner h3 {
    font-size: clamp(1.25rem, 2.4vw, 1.6rem);
    color: #fff;
    margin-bottom: 0.35rem;
    font-weight: 700;
}
.footer-sim-banner p { color: rgba(255,255,255,0.78); margin-bottom: 1.25rem; font-size: 1rem; }
.footer-sim-banner .btn {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 0.85rem 1.75rem;
    border-radius: 999px;
    font-weight: 600;
    display: inline-flex; align-items: center; gap: 0.4rem;
}
.footer-sim-banner .btn:hover { background: var(--accent-dark); text-decoration: none; }
