/* Space Grotesk auto-hébergée (fonte variable, sous-ensemble latin) :
   zéro requête externe, rendu immédiat avec police de repli. */
@font-face {
    font-family: "Space Grotesk";
    src: url("../font/space-grotesk-latin.woff2") format("woff2");
    font-weight: 300 700;
    font-display: swap;
}

:root {
    --bg: #05070a;
    --bg-elev: #10151c;
    --fg: #f4f6f8;
    --fg-soft: #aab4c0;
    --muted: rgba(244, 246, 248, 0.6);
    --line: rgba(244, 246, 248, 0.12);
    --accent: #e3a857;
    --accent-soft: rgba(227, 168, 87, 0.16);
    /* bleu léger secondaire : rappel des étoiles, en petites touches */
    --accent-2: #8ec5e6;
    --accent-2-soft: rgba(142, 197, 230, 0.10);
    --display: "Space Grotesk", "Segoe UI", Arial, sans-serif;
}

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

html {
    scroll-behavior: smooth;
    /* défilement "plein écran" : chaque section s'aligne en douceur */
    scroll-snap-type: y proximity;
}

/* Le fond ne vit QUE sur html : si body en portait un aussi, il se
   peindrait par-dessus les calques en z-index négatif (la scène 3D)
   et les rendrait invisibles. */
html { background: var(--bg); }

html, body {
    color: var(--fg);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100%;
    overflow-x: hidden;
}

/* ---- Fond système solaire (WebGL, chargé en différé) ----
   Empilement : halos (-3) < scène 3D (-2) < voile (-1) < contenu.
   Le voile n'est pas décoratif : sans lui le texte devient illisible
   quand une planète claire passe derrière. */
.solar-bg {
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
}

.solar-bg canvas {
    width: 100%;
    height: 100%;
    display: block;
    opacity: 0;
    transition: opacity 1.4s ease;
}
.solar-bg.ready canvas { opacity: 1; }

.solar-bg::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: rgba(5, 7, 10, 0.45);
}

/* mobile : le texte occupe toute la largeur, on assombrit davantage */
@media (max-width: 860px) {
    .solar-bg::after { background: rgba(5, 7, 10, 0.62); }}

/* fond ambiant — uniquement des halos bleus très doux, AUCUNE grille */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -3;
    background:
        radial-gradient(ellipse 90vw 60vh at 85% 5%, rgba(227,168,87,0.10), transparent 60%),
        radial-gradient(ellipse 70vw 50vh at 0% 100%, rgba(142,197,230,0.06), transparent 60%),
        var(--bg);
    pointer-events: none;
}

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

/* ============================================================
   ARRIVÉE — rideau noir → site clair
   ============================================================ */
body.enter > .enter-curtain,
body.enter::after {
    content: "";
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 9999;
    pointer-events: none;
    animation: curtain 1.4s cubic-bezier(0.77, 0, 0.175, 1) 0.15s forwards;
}

@keyframes curtain {
    0%   { clip-path: inset(0 0 0 0); }
    100% { clip-path: inset(0 0 100% 0); }
}

body.enter main,
body.enter footer {
    animation: contentRise 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.6s both;
}

@keyframes contentRise {
    from { opacity: 0; transform: translateY(20px); filter: blur(6px); }
    to   { opacity: 1; transform: translateY(0);    filter: blur(0); }
}

/* ============================================================
   NAV
   ============================================================ */
nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    padding: 1.1rem 2rem;
    background: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    z-index: 100;
}

nav > * { pointer-events: auto; }

/* capsule centrale contenant les liens + le logo au milieu */
.nav-pill {
    display: inline-flex;
    align-items: center;
    gap: 1.6rem;
    padding: 0.45rem 1.7rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(8, 11, 15, 0.72);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

/* ---- Logo chat, ancré au centre de la barre ---- */
.nav-brand {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.nav-cat {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    filter: drop-shadow(0 0 10px rgba(227, 168, 87, 0.25));
    opacity: 0;
    transform: scale(0.5) rotate(-12deg);
    animation: catEnter 0.8s cubic-bezier(0.22, 1, 0.36, 1) 1.6s forwards;
}

@keyframes catEnter {
    0%   { opacity: 0; transform: scale(0.5)  rotate(-12deg); }
    60%  { opacity: 1; transform: scale(1.15) rotate(4deg); }
    100% { opacity: 1; transform: scale(1)    rotate(0); }
}

/* ---- Liens nav ---- */
.nav-links {
    display: flex;
    gap: 2.4rem;
    list-style: none;
}

.nav-links a {
    color: var(--fg);
    font-size: 0.85rem;
    letter-spacing: 0.25em;
    font-weight: 700;
    position: relative;
    padding: 0.4rem 0;
    transition: color 0.25s;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 1px;
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.35s ease;
}

.nav-links a:hover { color: var(--accent); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }

/* ---- Bouton burger (mobile) : masqué sur desktop ----
   Zone tactile 44x44 (minimum recommandé), icône 30x22 centrée dedans */
.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
    position: relative;
}
.nav-toggle span {
    position: absolute;
    left: 7px;
    width: 30px;
    height: 2px;
    border-radius: 2px;
    background: var(--fg);
    transition: transform 0.3s ease, opacity 0.2s ease, top 0.3s ease;
}
.nav-toggle span:nth-child(1) { top: 14px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 28px; }
/* croix quand ouvert */
.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* ---- Panneau de menu déroulant (mobile) ---- */
.nav-menu {
    position: fixed;
    top: 4.6rem;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    width: min(320px, calc(100vw - 2rem));
    display: flex;
    flex-direction: column;
    padding: 0.6rem;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(8, 11, 15, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 99;
}
.nav-menu[hidden] { display: none; }        /* état initial, avant JS */
.nav-menu.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}
.nav-menu a {
    padding: 0.85rem 1rem;
    border-radius: 12px;
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    color: var(--fg);
    transition: background 0.2s ease, color 0.2s ease;
}
.nav-menu a:hover,
.nav-menu a:focus-visible { background: var(--accent-soft); color: var(--accent); }

/* ---- Signature COCYTUS, fixe en bas à gauche ----
   Masquée sur le hero : la marque y est déjà, en bas à gauche aussi.
   Elle apparaît dès qu'on quitte le premier écran (body.scrolled). */
.brand-badge {
    position: fixed;
    left: 1.4rem;
    bottom: 1.2rem;
    z-index: 90;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-family: var(--display);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.22em;
    color: var(--muted);
    opacity: 0;
    pointer-events: none;
    transition: color 0.25s ease, opacity 0.4s ease;
}
body.scrolled .brand-badge { opacity: 0.85; pointer-events: auto; }
.brand-badge img { display: block; opacity: 0.8; }
.brand-badge:hover { color: var(--fg); opacity: 1; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
    min-height: 100vh;
    padding: 8rem 5vw 9vh;
    width: 100%;
    margin: 0;
    display: flex;
    /* marque en bas à gauche : la scène solaire occupe tout le reste
       (le Soleil est décalé côté droit par lateralFor dans main.js) */
    align-items: flex-end;
    justify-content: flex-start;
    position: relative;
    scroll-snap-align: start;
}

.hero-text {
    flex: 0 1 auto;
    max-width: 460px;
    min-width: 0;
    text-align: left;
    z-index: 2;
    position: relative;
}

.hero-title {
    font-family: var(--display);
    font-weight: 700;
    /* signature discrète : la vedette du hero, c'est la scène solaire */
    font-size: clamp(2.6rem, 5.5vw, 4rem);
    letter-spacing: 0.08em;
    line-height: 0.95;
    margin-bottom: 1.1rem;
    color: var(--fg);
    /* contour fin qui épouse les lettres : lisible sur le disque du Soleil
       sans former de tache sombre visible derrière le texte */
    text-shadow: 0 0 1px rgba(5, 7, 10, 0.95),
                 0 0 3px rgba(5, 7, 10, 0.9),
                 0 0 6px rgba(5, 7, 10, 0.7);
}

.hero-sub {
    color: var(--fg-soft);
    font-size: clamp(1.1rem, 1.6vw, 1.3rem);
    letter-spacing: 0.01em;
    max-width: 480px;
    margin: 0;
    line-height: 1.55;
    text-shadow: 0 0 1px rgba(5, 7, 10, 0.95),
                 0 0 3px rgba(5, 7, 10, 0.85),
                 0 0 5px rgba(5, 7, 10, 0.6);
}
.hero-sub strong {
    color: var(--fg);
    font-weight: 600;
    /* soulignement doré fin sous les mots-clés */
    background: linear-gradient(var(--accent), var(--accent)) left bottom / 100% 2px no-repeat;
    padding-bottom: 2px;
}

/* CTA hero */
.hero-cta {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    /* center (pas stretch) : le CTA principal doit rester plus grand */
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

/* mobile : la marque repasse au centre, en bas, la scène au-dessus */
@media (max-width: 860px) {
    .hero { justify-content: center; }
    .hero-text { text-align: center; }
    .hero-sub { margin: 0 auto; }
    .hero-cta { justify-content: center; }}

/* point focal du hero : le CTA principal domine nettement */
.hero .btn-primary {
    padding: 1.05rem 2.2rem;
    font-size: 0.92rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.6rem;
    font-size: 0.85rem;
    letter-spacing: 0.18em;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 999px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
    border: 1px solid transparent;
}

/* dégradé assorti au halo du Soleil ; texte sombre (le blanc sur or
   manque de contraste) */
.btn-primary {
    background: linear-gradient(135deg, #f2c684 0%, #e3a857 55%, #c9853e 100%);
    color: #17110a;
    box-shadow: 0 8px 24px rgba(227,168,87,0.35),
                0 0 0 1px rgba(255,222,170,0.45) inset;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(227,168,87,0.5),
                0 0 0 1px rgba(255,235,200,0.6) inset;
}

/* fond sombre translucide : reste lisible même devant le halo du Soleil */
.btn-ghost {
    background: rgba(8, 11, 15, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: var(--fg);
    border-color: rgba(227, 168, 87, 0.35);
}
.btn-ghost:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section {
    padding: 6rem 5vw;
    max-width: 1400px;
    margin: 0 auto;
    /* chaque section occupe tout l'écran et s'aligne au défilement */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    scroll-snap-align: start;
}

/* reveal au scroll (éléments génériques) */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.9s ease, transform 0.9s ease;
}
.reveal.in {
    opacity: 1;
    transform: translateY(0);
}

/* Sections plein écran — chacune avec sa PROPRE animation d'entrée */
.section.reveal {
    opacity: 0;
    transition: opacity 1s ease,
                transform 1.1s cubic-bezier(0.22, 1, 0.36, 1),
                filter 1s ease;
}
.section.reveal.in {
    opacity: 1;
    transform: none;
    filter: none;
}

/* 01 · À propos  → glisse depuis la gauche */
#service.section.reveal:not(.in)  { transform: translateX(-9vw); }
/* 02 · Services  → glisse depuis la droite */
#services.section.reveal:not(.in) { transform: translateX(9vw); }
/* 03 · Projets   → monte avec un léger zoom */
#project.section.reveal:not(.in)  { transform: translateY(70px) scale(0.94); }
/* Écosystème  → apparition en zoom (comme si on arrivait dessus) */
#systeme.section.reveal:not(.in)     { transform: scale(0.9); }
/* Tarifs      → monte avec un léger zoom */
#tarifs.section.reveal:not(.in)      { transform: translateY(70px) scale(0.96); }
/* Témoignages → glisse depuis la gauche */
#temoignages.section.reveal:not(.in) { transform: translateX(-9vw); }
/* 04 · Contact   → zoom + flou */
#contact.section.reveal:not(.in)  { transform: scale(1.06); filter: blur(12px); }

/* ---- Défilement 3D en profondeur (activé par JS : desktop, hors reduced-motion) ----
   Les sections avancent au premier plan quand on les traverse et
   reculent dans l'espace en repartant : on voit les précédentes plus loin. */
.depth-on { scroll-snap-type: none; }
.depth-on main { transform-style: preserve-3d; }
.depth-on .hero,
.depth-on .section {
    transition: none;
    backface-visibility: hidden;
    transform-origin: center 42%;
    will-change: transform, opacity;
}
/* l'entrée par section est neutralisée : le scroll 3D pilote tout */
.depth-on .section.reveal,
.depth-on .section.reveal.in { opacity: 1; filter: none; }
.depth-on .section.reveal:not(.in) { transform: none; }

@media (prefers-reduced-motion: reduce) {
    .reveal, .section.reveal {
        transform: none;
        filter: none;
        transition: opacity 0.4s ease;
    }}

.section-head {
    display: flex;
    align-items: baseline;
    gap: 1.5rem;
    margin-bottom: 4rem;
    padding-bottom: 1.5rem;
}

.section-head h2 {
    font-family: var(--display);
    font-weight: 700;
    font-size: clamp(2rem, 5vw, 3.5rem);
    letter-spacing: 0.1em;
    /* sécurité de contraste quand un astre clair passe derrière */
    text-shadow: 0 0 3px rgba(5, 7, 10, 0.85),
                 0 2px 18px rgba(5, 7, 10, 0.6);
}

/* ---- À propos ---- */
.about {
    position: relative;
    z-index: 1;                 /* isole la section : voile derrière, texte devant */
    text-align: center;
    padding-top: 7rem;
    padding-bottom: 7rem;
}

/* voile sombre centré derrière le texte : garde la lecture nette même
   si le Soleil passe dans cette zone (la planète reste visible sur le
   côté, hors du voile) */
.about::before {
    content: "";
    position: absolute;
    inset: 6% 8%;
    z-index: 0;
    background: radial-gradient(ellipse 60% 55% at 50% 50%,
        rgba(5, 7, 10, 0.66) 0%,
        rgba(5, 7, 10, 0.45) 50%,
        rgba(5, 7, 10, 0) 80%);
    pointer-events: none;
}

.about-eyebrow,
.about-title,
.about-text { position: relative; z-index: 1; }

.about-eyebrow {
    display: inline-block;
    font-family: var(--display);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1.4rem;
}

.about-title {
    font-family: var(--display);
    font-size: clamp(2rem, 4.5vw, 3.4rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: 0.01em;
    text-wrap: balance;
    max-width: 900px;
    margin: 0 auto 2rem;
    color: var(--fg);
    text-shadow: 0 0 3px rgba(5, 7, 10, 0.85),
                 0 2px 18px rgba(5, 7, 10, 0.6);
}

.about-text {
    text-align: center;
    font-size: clamp(1.3rem, 2.4vw, 2rem);
    line-height: 1.45;
    font-weight: 400;
    max-width: 920px;
    margin: 0 auto;
    color: var(--fg-soft);
    text-shadow: 0 0 3px rgba(5, 7, 10, 0.8),
                 0 1px 14px rgba(5, 7, 10, 0.55);
}

/* remplissage au scroll : chaque mot passe de l'ombre à la pleine
   couleur au fur et à mesure que la section traverse l'écran
   (classe .lit posée par js/main.js selon la position) */
.about-text .word {
    display: inline-block;
    color: rgba(244, 246, 248, 0.16);
    transition: color 0.3s ease;
}

.about-text .word.lit {
    color: var(--fg);
}

/* ---- Nos services ---- */
.services {
    padding-top: 4rem;
}

.services-title {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 600;
    letter-spacing: 0.01em;
    margin-bottom: 0.8rem;
    color: var(--fg);
}

.services-intro {
    color: var(--muted);
    font-size: 1.05rem;
    max-width: 620px;
    margin-bottom: 3rem;
}

/* prix + CTA intégrés aux cartes (fusion services/formules) */
.service-card .price {
    margin-top: auto;       /* pousse prix et bouton en pied de carte */
    margin-bottom: 1.1rem;
    padding-top: 1.2rem;
    padding-bottom: 0;
    border-bottom: none;
    border-top: 1px solid var(--line);
}
.service-card .btn { justify-content: center; width: 100%; }

.service-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.8rem;
    margin-bottom: 2rem;
}

.service-card {
    --c: var(--accent);
    position: relative;
    background: var(--bg-elev);
    border: 1px solid var(--line);
    border-radius: 24px;
    overflow: hidden;
    isolation: isolate;
    transform: perspective(900px) rotateX(var(--ry, 0deg)) rotateY(var(--rx, 0deg)) translateY(0);
    transition: transform 0.15s ease-out,
                border-color 0.4s ease,
                box-shadow 0.5s ease;
}

/* halo lumineux qui suit le hover */
.service-card::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: radial-gradient(450px circle at var(--mx, 50%) var(--my, 0%), rgba(227,168,87,0.20), transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 0;
}

/* bord lumineux animé */
.service-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, transparent 30%, rgba(227,168,87,0.6), transparent 70%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 1;
}

.service-card:hover {
    transform: perspective(900px) rotateX(var(--ry, 0deg)) rotateY(var(--rx, 0deg)) translateY(-8px);
    border-color: rgba(227,168,87,0.3);
    box-shadow: 0 30px 60px -20px rgba(227,168,87,0.35),
                0 16px 32px -10px rgba(0,0,0,0.55);
}
.service-card:hover::before,
.service-card:hover::after { opacity: 1; }

/* barre d'accent en haut de chaque carte, façon tarif */
.service-card-bar {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: var(--c);
    z-index: 3;
}

/* badge "Populaire" sur la carte mise en avant */
.service-badge {
    position: absolute;
    top: 1.6rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    background: var(--accent);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 0.3rem 0.9rem;
    border-radius: 999px;
    box-shadow: 0 6px 16px rgba(227,168,87,0.4);
}

/* carte mise en avant */
.service-card.featured {
    background: linear-gradient(180deg, var(--bg-elev) 0%, #0d2536 100%);
    transform: translateY(-12px);
}
.service-card.featured:hover { transform: translateY(-20px); }

/* contenu */
.service-card-inner {
    position: relative;
    z-index: 2;
    padding: 2.4rem 1.8rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    height: 100%;
}

.service-num {
    position: absolute;
    top: 1.2rem;
    right: 1.4rem;
    font-family: var(--display);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.2em;
    color: var(--muted);
}

.service-icon {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: var(--accent-soft);
    color: var(--accent);
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), background 0.3s ease;
}
.service-icon svg { width: 28px; height: 28px; }
.service-card:hover .service-icon {
    transform: rotate(-6deg) scale(1.08);
    background: var(--accent);
    color: #fff;
}

.service-card h3 {
    font-family: var(--display);
    font-weight: 700;
    font-size: 1.7rem;
    letter-spacing: 0.04em;
    color: var(--fg);
    margin-top: 0.4rem;
    text-transform: uppercase;
}

.service-card > .service-card-inner > p {
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--fg-soft);
    flex: 0 0 auto;
}

.service-list {
    list-style: none;
    padding: 0;
    margin: 0.3rem 0 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    padding-top: 1rem;
}
.service-list li {
    position: relative;
    padding-left: 1.4rem;
    font-size: 0.86rem;
    color: var(--fg-soft);
}
.service-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 3px rgba(227,168,87,0.15);
}

.carousel-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding: 4px;
}
.carousel-track::-webkit-scrollbar { display: none; }

.p-slide {
    flex: 0 0 min(420px, 85vw);
    scroll-snap-align: start;
}

.p-card {
    position: relative;
    display: block;
    aspect-ratio: 4 / 5;
    border-radius: 0.75rem;
    overflow: hidden;
    border: 1px solid var(--line);
    isolation: isolate;
}

.p-card-visual {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 30% 20%, rgba(227,168,87,0.40), transparent 55%),
        radial-gradient(circle at 80% 80%, rgba(227,168,87,0.22), transparent 50%),
        #0b0f14;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.p-card:hover .p-card-visual { transform: scale(1.05); }

.p-card-mark {
    width: 42%;
    height: auto;
    filter: drop-shadow(0 0 34px rgba(227,168,87,0.55));
}

/* vignette 206RT (en attendant une vraie capture d'écran) */
.p-card-206 {
    background:
        radial-gradient(circle at 70% 15%, rgba(214,40,40,0.55), transparent 55%),
        radial-gradient(circle at 20% 90%, rgba(227,168,87,0.25), transparent 55%),
        #0a0d12;
}
.p-card-label {
    font-family: var(--display);
    font-weight: 700;
    font-size: clamp(3rem, 9vw, 5rem);
    letter-spacing: 0.06em;
    color: #f4f6f8;
    text-shadow: 0 6px 30px rgba(0,0,0,0.6);
}
.p-card-label em {
    font-style: normal;
    color: #d62828;
}

.p-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        rgba(5, 7, 10, 0) 0%,
        rgba(5, 7, 10, 0.55) 55%,
        rgba(8, 30, 45, 0.92) 100%);
    pointer-events: none;
}

.p-card-content {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    padding: 1.6rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.7rem;
    color: var(--fg);
}

.p-card-content h3 {
    font-family: var(--display);
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.p-card-content p {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--fg-soft);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* étiquettes techniques en bleu léger : contraste avec l'or des CTA */
.tech-tags span {
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    border: 1px solid rgba(142, 197, 230, 0.35);
    background: var(--accent-2-soft);
    color: var(--accent-2);
}

/* vignette : une planète stylisée, dessinée en CSS (aucune image) */
.p-card-orb {
    width: 44%;
    aspect-ratio: 1;
    border-radius: 50%;
    background:
        radial-gradient(circle at 32% 30%, #7fd0ff, #1f6fa8 58%, #0a2740 100%);
    box-shadow:
        0 0 44px rgba(227,168,87,0.5),
        inset -10px -12px 26px rgba(0,0,0,0.55);
    position: relative;
}
/* anneau incliné */
.p-card-orb::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 190%;
    height: 190%;
    transform: translate(-50%, -50%) rotate(-18deg) rotateX(74deg);
    border: 2px solid rgba(159, 216, 255, 0.45);
    border-radius: 50%;
}
.price {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--line);
}
.price-from {
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
}
.price-amount {
    font-family: var(--display);
    font-weight: 700;
    font-size: 2rem;
    color: var(--accent);
}

/* ---- Comment ça se passe ---- */
.process { text-align: center; }
.process .section-head { justify-content: center; }

.process-intro {
    color: var(--muted);
    font-size: 1.1rem;
    max-width: 620px;
    margin: 0 auto 3rem;
}

.steps {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.6rem;
    text-align: left;
}

.step {
    padding: 1.6rem;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(8, 11, 15, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.step-num {
    display: block;
    font-family: var(--display);
    font-weight: 700;
    font-size: 1.6rem;
    letter-spacing: 0.12em;
    color: var(--accent-2);
    margin-bottom: 0.7rem;
}

.step h3 {
    font-family: var(--display);
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.step p {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.55;
}

@media (max-width: 1060px) { .steps { grid-template-columns: repeat(2, 1fr); }}
@media (max-width: 560px)  { .steps { grid-template-columns: 1fr; }}

/* ---- FAQ (details natifs : zéro JS) ---- */
.faq {
    position: relative;
    z-index: 1;                 /* isole la section : voile derrière, texte devant */
}

/* voile sombre derrière les questions : lecture nette même si le Soleil
   traverse cette zone pendant le voyage */
.faq::before {
    content: "";
    position: absolute;
    inset: 8% 6%;
    z-index: 0;
    background: radial-gradient(ellipse 55% 62% at 50% 52%,
        rgba(5, 7, 10, 0.66) 0%,
        rgba(5, 7, 10, 0.46) 55%,
        rgba(5, 7, 10, 0) 82%);
    pointer-events: none;
}

.faq .section-head { justify-content: center; position: relative; z-index: 1; }

.faq-list {
    max-width: 760px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.faq-list details { border-bottom: 1px solid var(--line); }

.faq-list summary {
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.2rem 0.2rem;
    font-weight: 600;
    font-size: 1.05rem;
    transition: color 0.25s ease;
}
.faq-list summary::-webkit-details-marker { display: none; }

.faq-list summary::after {
    content: "+";
    font-family: var(--display);
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--accent-2);
    flex-shrink: 0;
    transition: transform 0.3s ease;
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list summary:hover { color: var(--accent-2); }

.faq-list details p {
    color: var(--muted);
    line-height: 1.6;
    padding: 0 0.2rem 1.3rem;
    max-width: 680px;
}

/* ---- Contact ---- */
.contact { text-align: center; position: relative; overflow: hidden; }
.contact .section-head { justify-content: center; border: none; }

.contact-baseline {
    color: var(--muted);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.contact-mail {
    display: inline-block;
    position: relative;
    overflow: hidden;
    font-family: var(--display);
    font-weight: 700;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    letter-spacing: 0.05em;
    color: var(--fg);
    border-bottom: 2px solid var(--accent);
    padding-bottom: 0.3rem;
    transition: color 0.3s, text-shadow 0.3s;
}
.contact-mail > span { position: relative; z-index: 1; }

/* balayage de lumière doré qui traverse l'email périodiquement */
.contact-mail::after {
    content: "";
    position: absolute;
    top: 0;
    left: -60%;
    width: 45%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(100deg,
        transparent 0%,
        rgba(255, 240, 210, 0.7) 50%,
        transparent 100%);
    mix-blend-mode: screen;
    animation: mailShine 5.5s ease-in-out 1.5s infinite;
}
@keyframes mailShine {
    0%   { transform: translateX(0); }
    18%  { transform: translateX(360%); }
    100% { transform: translateX(360%); }   /* pause avant le prochain passage */
}

.section-head { border-bottom-color: var(--line); }

.contact-mail:hover {
    color: var(--accent);
    text-shadow: 0 0 20px var(--accent);
}

/* ---- Étoiles filantes de la section contact ----
   Écho des météorites de l'écran de chargement : de fins traits
   dorés qui traversent en diagonale, à intervalles espacés.
   (.contact est déjà position:relative + overflow:hidden ci-dessus) */
.comet {
    position: absolute;
    top: -6%;
    width: 160px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg,
        rgba(255, 244, 220, 0) 0%,
        rgba(255, 240, 210, 0.9) 80%,
        #fff 100%);
    filter: drop-shadow(0 0 6px rgba(255, 224, 170, 0.8));
    opacity: 0;
    transform: rotate(28deg);
    pointer-events: none;
    z-index: 0;
}
.comet-1 { left: 8%;  animation: cometFall 7s linear 1s infinite; }
.comet-2 { left: 52%; animation: cometFall 9s linear 4s infinite; }
.comet-3 { left: 74%; animation: cometFall 8s linear 6.5s infinite; }

@keyframes cometFall {
    0%   { opacity: 0; transform: translate(-40px, -40px) rotate(28deg); }
    6%   { opacity: 1; }
    18%  { opacity: 0; transform: translate(320px, 560px) rotate(28deg); }
    100% { opacity: 0; transform: translate(320px, 560px) rotate(28deg); }
}

@media (prefers-reduced-motion: reduce) {
    .contact-mail::after,
    .comet { animation: none; opacity: 0; }
}

/* ---- Formulaire de contact ---- */
.contact-form {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 640px;
    margin: 3rem auto 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.4rem;
    text-align: left;
}

.cf-field { position: relative; }
.cf-full { grid-column: 1 / -1; }

.cf-field input,
.cf-field textarea {
    width: 100%;
    padding: 1.15rem 1rem 0.55rem;
    font: inherit;
    color: var(--fg);
    background: rgba(16, 21, 28, 0.6);
    border: 1px solid var(--line);
    border-radius: 12px;
    outline: none;
    transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
    resize: vertical;
}

.cf-field textarea { min-height: 120px; }

.cf-field label {
    position: absolute;
    left: 1rem;
    top: 0.95rem;
    color: var(--muted);
    font-size: 0.95rem;
    pointer-events: none;
    transition: transform 0.2s ease, color 0.2s ease, font-size 0.2s ease;
    transform-origin: left top;
}

/* label flottant quand le champ est focus ou rempli */
.cf-field input:focus + label,
.cf-field input:not(:placeholder-shown) + label,
.cf-field textarea:focus + label,
.cf-field textarea:not(:placeholder-shown) + label {
    transform: translateY(-0.55rem) scale(0.78);
    color: var(--accent);
}

.cf-field input:focus,
.cf-field textarea:focus {
    border-color: var(--accent);
    background: rgba(16, 21, 28, 0.85);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

/* honeypot : invisible pour les humains, présent pour les bots */
.cf-hp {
    position: absolute;
    left: -9999px;
    width: 1px; height: 1px;
    opacity: 0;
}

.contact-submit {
    grid-column: 1 / -1;
    justify-self: center;
    margin-top: 0.4rem;
    cursor: pointer;
    border: none;
}
.contact-submit:disabled { opacity: 0.6; cursor: progress; }

.contact-status {
    grid-column: 1 / -1;
    text-align: center;
    min-height: 1.2em;
    font-size: 0.95rem;
    margin: 0;
}
.contact-status.ok  { color: #4ade80; }
.contact-status.err { color: #f87171; }

@media (max-width: 640px) {
    .contact-form { grid-template-columns: 1fr; }}

/* ============================================================
   PAGE LÉGALE
   ============================================================ */
.legal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 5vw;
    border-bottom: 1px solid var(--line);
}

.legal-header-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    font-family: var(--display);
    font-weight: 700;
    letter-spacing: 0.18em;
    font-size: 1.05rem;
    color: var(--fg);
}
.legal-header-brand img { width: 32px; height: 32px; }

.legal-back {
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    color: var(--muted);
    transition: color 0.25s;
}
.legal-back:hover { color: var(--accent); }

.legal-page {
    max-width: 860px;
    padding-top: 4rem;
    padding-bottom: 6rem;
}

.legal-notice {
    background: rgba(255, 180, 0, 0.12);
    border: 1px solid rgba(255, 200, 80, 0.5);
    border-radius: 12px;
    padding: 1rem 1.4rem;
    font-size: 0.9rem;
    color: #ffcf6e;
    margin-bottom: 3rem;
}

.legal-title {
    font-family: var(--display);
    font-weight: 700;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    letter-spacing: 0.03em;
    margin-bottom: 2.5rem;
}

.legal-section {
    padding: 1.8rem 0;
    border-bottom: 1px solid var(--line);
}
.legal-section:last-child { border-bottom: none; }

.legal-section h2 {
    font-family: var(--display);
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.9rem;
}

.legal-section p {
    color: var(--fg-soft);
    font-size: 0.95rem;
    line-height: 1.65;
    margin-bottom: 0.8rem;
}
.legal-section p:last-child { margin-bottom: 0; }

.legal-section a { color: var(--fg); border-bottom: 1px solid var(--accent); }
.legal-section a:hover { color: var(--accent); }

.legal-placeholder {
    background: rgba(255, 180, 0, 0.22);
    border: 1px dashed #e0a83f;
    border-radius: 4px;
    padding: 0 5px;
    color: #ffcf6e;
    font-style: normal;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
    padding: 4rem 5vw 2.5rem;
    border-top: none;
    background: linear-gradient(180deg, transparent, rgba(227,168,87,0.05));
    /* rendu différé : le footer n'est peint qu'à l'approche du viewport */
    content-visibility: auto;
    contain-intrinsic-size: auto 260px;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-family: var(--display);
    font-weight: 700;
    letter-spacing: 0.18em;
    font-size: 1rem;
}
.footer-brand img { width: 28px; height: 28px; }

.footer-links {
    display: flex;
    gap: 1.8rem;
    flex-wrap: wrap;
    justify-content: center;
}
.footer-links a {
    color: var(--muted);
    font-size: 0.8rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    transition: color 0.25s;
}
.footer-links a:hover { color: var(--accent); }

.footer-copy {
    text-align: right;
    color: var(--muted);
    font-size: 0.75rem;
    letter-spacing: 0.12em;
}

@media (max-width: 860px) {
    .footer-inner { grid-template-columns: 1fr; text-align: center; }
    .footer-copy { text-align: center; }}

@media (max-width: 860px) {
    .hero {
        flex-direction: column;
        padding: 7rem 1.5rem 3rem;
        gap: 2rem;
        text-align: left;
    }
    .hero-text  { max-width: 100%; }
    /* badge redondant avec le logo de la nav, et l'espace est compté */
    .brand-badge { display: none; }
    /* nav → burger : les liens inline débordaient (pill 430px > écran) */
    .nav-links  { display: none; }
    .nav-toggle { display: block; }
    nav { padding: 0.9rem 1rem; }
    .nav-pill { padding: 0.4rem 1rem; gap: 1.1rem; }
    .nav-cat { width: 30px; height: 30px; }
    .service-cards { grid-template-columns: 1fr; gap: 1.5rem; }
    .service-card  { max-width: 400px; margin: 0 auto; width: 100%; }
    .service-card.featured { transform: none; }
    .service-card.featured:hover { transform: translateY(-8px); }}