@import url("./fonts.css");

/* ============================================================================
   SUPERORDI V6 — styles communs à toutes les pages
   Esprit « Premium 3D Glass » : scène noire, objet en verre, une seule police,
   cartes en verre dépoli, révélations lentes à l'easing exponentiel.
   ============================================================================ */

:root {
    --ink: #f2f7ff;
    --ink-2: #d1d5db;
    --muted: #b9c1d1;
    --faint: rgba(255, 255, 255, 0.35);
    --hair: rgba(255, 255, 255, 0.08);
    --gold: #ffc23a;          /* le « SUPER » du logo */
    --blue: #2fa8ff;          /* le « ORDI » du logo */
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --header-h: 76px;
    --gutter: 60px;
}

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

html, body {
    width: 100%;
    background-color: #000000;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
::-webkit-scrollbar { display: none; width: 0; }

body {
    font-family: 'Space Grotesk', system-ui, sans-serif;
    color: #ffffff;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }

#webgl {
    position: fixed; top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 1; outline: none;
    opacity: 0; transition: opacity 1.2s ease;
}
#webgl.is-ready { opacity: 1; }

/* ---- Curseur réticule (bureau uniquement) ---- */
@media (hover: hover) and (pointer: fine) {
    body, body * { cursor: none !important; }
}
.cursor-inner {
    position: fixed; top: 0; left: 0;
    width: 4px; height: 4px; background: #ffffff; border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none; z-index: 9999; mix-blend-mode: difference;
    transition: width 0.25s, height 0.25s, border-radius 0.25s, opacity 0.3s;
}
.cursor-outer {
    position: fixed; top: 0; left: 0;
    width: 36px; height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.6); border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none; z-index: 9998; mix-blend-mode: difference;
    transition: width 0.35s cubic-bezier(0.25, 1, 0.5, 1), height 0.35s cubic-bezier(0.25, 1, 0.5, 1),
                border-color 0.35s, opacity 0.3s;
}
.cursor-ticks { position: absolute; inset: -7px; animation: cursor-spin 16s linear infinite; }
.cursor-ticks span { position: absolute; background: #ffffff; }
.cursor-ticks span:nth-child(1) { left: 50%; top: 0; width: 1px; height: 6px; margin-left: -0.5px; }
.cursor-ticks span:nth-child(2) { left: 50%; bottom: 0; width: 1px; height: 6px; margin-left: -0.5px; }
.cursor-ticks span:nth-child(3) { top: 50%; left: 0; width: 6px; height: 1px; margin-top: -0.5px; }
.cursor-ticks span:nth-child(4) { top: 50%; right: 0; width: 6px; height: 1px; margin-top: -0.5px; }
@keyframes cursor-spin { to { transform: rotate(360deg); } }
.cursor-label {
    position: fixed; top: 0; left: 0; transform: translate(26px, 14px);
    font: 500 9px/1 'Space Grotesk', sans-serif; letter-spacing: 2px; white-space: nowrap;
    color: rgba(255, 255, 255, 0.55);
    pointer-events: none; z-index: 9997; mix-blend-mode: difference; transition: opacity 0.3s;
}
body.cursor-hover .cursor-outer { width: 58px; height: 58px; border-color: #ffffff; }
body.cursor-hover .cursor-ticks { animation-duration: 3s; }
body.cursor-hover .cursor-inner { width: 6px; height: 6px; }
body.cursor-text .cursor-inner { width: 1px; height: 18px; border-radius: 0; }
body.cursor-text .cursor-outer { opacity: 0.35; }
body.cursor-hidden .cursor-inner, body.cursor-hidden .cursor-outer, body.cursor-hidden .cursor-label { opacity: 0; }
@media (hover: none), (pointer: coarse) {
    .cursor-inner, .cursor-outer, .cursor-label { display: none; }
}

/* ---- En-tête : sobre, éditorial ---- */
.site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 60;
    height: var(--header-h);
    display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
    padding: 0 var(--gutter);
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0));
}
.site-header::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
    background: rgba(255, 255, 255, 0.065);
}
.brand { justify-self: start; display: inline-flex; align-items: center; }
.brand img { height: 46px; width: auto; filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.6)); }
.header-nav { display: flex; align-items: center; gap: 34px; }
.nav-link {
    position: relative; padding: 6px 0;
    font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55); transition: color 0.4s;
}
.nav-link::after {
    content: ''; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
    background: #ffffff; transition: width 0.55s var(--ease);
}
.nav-link:hover, .nav-link.is-active { color: #ffffff; }
.nav-link:hover::after, .nav-link.is-active::after { width: 100%; }
.header-actions { justify-self: end; display: flex; align-items: center; gap: 26px; }
.header-counter {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 11px; font-weight: 400; letter-spacing: 0.08em; color: rgba(255, 255, 255, 0.45);
}
.header-counter b { color: #ffffff; font-weight: 400; }
.counter-sep { width: 14px; height: 1px; background: rgba(255, 255, 255, 0.3); }
.contact-btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 9px 16px; border: 1px solid rgba(255, 255, 255, 0.22); border-radius: 999px;
    color: #ffffff; background: transparent;
    font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
    transition: border-color 0.4s, background 0.4s;
}
.contact-btn.is-active { border-color: rgba(255, 255, 255, 0.75); }
.btn-arrow { font-size: 13px; line-height: 1; transition: transform 0.45s var(--ease); }
.contact-btn:hover { border-color: rgba(255, 255, 255, 0.75); background: rgba(255, 255, 255, 0.06); }
.contact-btn:hover .btn-arrow { transform: translate(2px, -2px); }
.header-progress { position: fixed; top: calc(var(--header-h) - 1px); left: 0; right: 0; height: 1px; z-index: 61; pointer-events: none; }
.header-progress span {
    display: block; height: 100%; width: 0;
    background: linear-gradient(90deg, var(--blue), rgba(255, 255, 255, 0.6) 55%, var(--gold));
}

.burger {
    display: none; flex-direction: column; justify-content: center; gap: 5px;
    width: 30px; height: 26px; padding: 0; background: none; border: 0;
}
.burger span { display: block; width: 100%; height: 1px; background: #ffffff; transition: transform 0.4s var(--ease), opacity 0.3s; }
.burger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.mobile-nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 59;
    padding: calc(var(--header-h) + 18px) 24px 28px;
    background: rgba(4, 6, 10, 0.82);
    -webkit-backdrop-filter: blur(24px) saturate(160%); backdrop-filter: blur(24px) saturate(160%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex; flex-direction: column;
    transform: translateY(-100%); opacity: 0; pointer-events: none;
    transition: transform 0.6s var(--ease), opacity 0.4s;
}
.mobile-nav.open { transform: none; opacity: 1; pointer-events: auto; }
.mobile-nav a {
    font-size: 26px; font-weight: 400; letter-spacing: -0.02em;
    padding: 14px 2px; border-top: 1px solid var(--hair); color: rgba(255, 255, 255, 0.6);
}
.mobile-nav a:first-child { border-top: 0; }
.mobile-nav a.is-active { color: #ffffff; }

@media (max-width: 980px) {
    :root { --gutter: 24px; --header-h: 66px; }
    .site-header { grid-template-columns: auto 1fr; }
    .header-nav { display: none; }
    .burger { display: flex; }
    .brand img { height: 38px; }
    .header-actions { gap: 16px; }
    .contact-btn { padding: 8px 14px; font-size: 11px; }
}
@media (max-width: 420px) { .header-counter { display: none; } }

/* ---- Titres : chaque ligne monte hors de son masque ---- */
.line { display: block; overflow: hidden; padding: 0.06em 0 0.16em; margin: -0.06em 0 -0.16em; }
.line.muted { color: var(--muted); }
.line-inner {
    display: block; transform: translateY(112%); opacity: 0; filter: blur(12px);
    transition: transform 1.15s var(--ease), opacity 0.7s ease-out, filter 1.05s var(--ease);
}
.line.muted .line-inner { transition-delay: 0.09s; }
.line + .line + .line .line-inner { transition-delay: 0.18s; }
.is-in .line-inner, .is-in.line-inner { transform: none; opacity: 1; filter: blur(0); }

.eyebrow {
    display: flex; align-items: center; gap: 14px;
    font: 500 11px/1 'Space Grotesk', sans-serif; letter-spacing: 0.22em; text-transform: uppercase; color: #cfd6e6;
}
.eyebrow-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 12px var(--blue); }

/* Apparition en fondu flouté (contenus secondaires) */
.reveal {
    opacity: 0; transform: translateY(26px); filter: blur(10px);
    transition: opacity 1s var(--ease), transform 1.1s var(--ease), filter 1s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; filter: blur(0); }

/* ---- Carte de verre : dépoli fumé, liseré spéculaire, reflet mobile ---- */
.glass {
    position: relative;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background:
        linear-gradient(160deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.015) 60%),
        rgba(8, 10, 18, 0.42);
    -webkit-backdrop-filter: blur(22px) saturate(160%);
    backdrop-filter: blur(22px) saturate(160%);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.16);
    overflow: hidden;
    --sheen: -30%;
}
.glass::before {
    content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
    padding: 1px; -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0.06) 30%,
                                rgba(255, 255, 255, 0.03) 62%, rgba(255, 255, 255, 0.32) 100%);
}
/* le reflet qui balaie la carte : piloté par --sheen (scroll, pivot, survol) */
.glass::after {
    content: ''; position: absolute; inset: -40% -60%; pointer-events: none;
    background: linear-gradient(105deg, rgba(255, 255, 255, 0) 42%, rgba(255, 255, 255, 0.13) 49%,
                                rgba(190, 220, 255, 0.07) 52%, rgba(255, 255, 255, 0) 58%);
    transform: translateX(var(--sheen));
    transition: transform 1.4s var(--ease);
}
.glass > * { position: relative; z-index: 1; }

/* ---- Lecture automatique (« le film ») ---- */
.autoplay-group { position: fixed; right: 34px; bottom: 30px; z-index: 55; transition: opacity 0.5s; }
body.contact-open .autoplay-group { opacity: 0; pointer-events: none; }
.autoplay-btn {
    display: flex; align-items: center; justify-content: center;
    width: 56px; height: 56px; border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.04);
    -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%);
    color: #ffffff; font-size: 17px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: transform 0.4s var(--ease), background 0.3s, color 0.3s, border-color 0.3s;
}
.autoplay-btn:hover { background: #ffffff; color: #000000; border-color: #ffffff; transform: translateY(-3px); }
.autoplay-btn[hidden] { display: none; }
.autoplay-btn::after {
    content: attr(data-label); position: absolute; right: 70px; white-space: nowrap;
    font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(255, 255, 255, 0.5);
    pointer-events: none;
}
.autoplay-btn:hover::after { color: rgba(255, 255, 255, 0.85); }
@media (max-width: 980px) {
    .autoplay-group { left: auto; right: 16px; bottom: 16px; }
    .autoplay-btn { width: 48px; height: 48px; font-size: 15px; }
    .autoplay-btn::after { display: none; }
}

/* ---- Pied de page : bandeau de verre, liens légaux bien visibles ---- */
.site-footer { position: relative; z-index: 8; padding: 40px var(--gutter) 32px; }
.footer-inner {
    max-width: 1400px; margin: 0 auto; border-radius: 22px;
    display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 22px 36px;
    padding: 22px 28px;
}
.footer-brand { display: flex; align-items: center; gap: 16px; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.7); }
.footer-brand img { height: 40px; width: auto; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.footer-legal a {
    padding: 9px 16px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.28);
    font-size: 13px; font-weight: 500; letter-spacing: 0.04em; color: #ffffff;
    transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.footer-legal a:hover { background: #ffffff; color: #000000; border-color: #ffffff; }
.footer-contact { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; font-size: 14px; color: var(--ink-2); }
.footer-contact a { transition: color 0.3s; }
.footer-contact a:hover { color: #ffffff; }
@media (max-width: 1100px) {
    .footer-inner { grid-template-columns: 1fr; justify-items: center; text-align: center; }
    .footer-contact { align-items: center; }
}

/* ============================================================================
   Sous-pages : en-tête de page, deck de cartes épinglé, listes statiques
   ============================================================================ */
.page { position: relative; z-index: 5; }
.page-head {
    padding: calc(var(--header-h) + 54px) var(--gutter) 34px;
    max-width: 1400px; margin: 0 auto;
}
.page-head .eyebrow { margin-bottom: 26px; }
.page-title {
    font-size: clamp(42px, 5.6vw, 84px); line-height: 1.0; font-weight: 400;
    letter-spacing: -0.035em; color: var(--ink);
}
.page-lead {
    margin-top: 26px; max-width: 64ch;
    font-size: 16px; line-height: 1.7; font-weight: 300; color: var(--ink-2); letter-spacing: 0.2px;
}
.page-lead strong { font-weight: 500; color: #ffffff; }

/* ---- Deck : pile de cartes épinglée, pilotée au scroll ---- */
.deck { position: relative; }
.deck-pin {
    position: sticky; top: 0; height: 100vh; overflow: hidden;
    display: flex; flex-direction: column; justify-content: center;
    padding: calc(var(--header-h) + 18px) var(--gutter) 70px;
}
.deck-head {
    display: flex; align-items: flex-end; justify-content: space-between; gap: 30px;
    max-width: 1400px; width: 100%; margin: 0 auto 22px;
}
.deck-title { font-size: clamp(30px, 3.4vw, 54px); line-height: 1; font-weight: 400; letter-spacing: -0.03em; color: var(--ink); }
.deck-kicker {
    position: relative; min-height: 1.1em; overflow: hidden;
    font-size: clamp(22px, 2.4vw, 36px); line-height: 1.1; font-weight: 400; letter-spacing: -0.02em; color: var(--muted);
}
.deck-kicker span { display: block; transition: transform 0.9s var(--ease), opacity 0.6s, filter 0.9s var(--ease); }
.deck-kicker span.is-leaving { transform: translateY(-110%); opacity: 0; filter: blur(8px); }
.deck-kicker span.is-entering { transform: translateY(110%); opacity: 0; filter: blur(8px); }
.deck-count { font-size: 11px; letter-spacing: 0.2em; color: rgba(255, 255, 255, 0.45); white-space: nowrap; }
.deck-count b { color: #ffffff; font-weight: 400; }
.deck-stage { position: relative; max-width: 1400px; width: 100%; margin: 0 auto; transform-origin: 50% 0; }
.deck-layer {
    display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 22px;
    perspective: 1800px;
}
.deck-layer.is-in { position: absolute; inset: 0 0 auto 0; }
.deck-card { will-change: transform, opacity, filter; transform-style: preserve-3d; backface-visibility: hidden; }
.deck-dashes { display: flex; gap: 10px; justify-content: center; margin-top: 26px; }
.deck-dash { width: 40px; height: 2px; border-radius: 2px; background: rgba(255, 255, 255, 0.15); overflow: hidden; }
.deck-dash i { display: block; height: 100%; width: 0; background: #ffffff; }
.deck-static { display: none; }

@media (max-width: 900px) {
    .deck { display: none; }
    .deck-static { display: grid; gap: 18px; padding: 0 var(--gutter) 60px; }
    .deck-static .deck-group-title { margin: 26px 0 4px; font-size: 26px; font-weight: 400; letter-spacing: -0.02em; color: var(--muted); }
}

/* ---- Carte de service ---- */
.svc-card { padding: clamp(18px, 1.8vw, 26px); }
.svc-block + .svc-block { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--hair); }
.svc-block h3 {
    display: flex; align-items: center; gap: 12px; margin-bottom: 10px;
    font-size: clamp(15px, 1.15vw + 0.35vh, 19px); line-height: 1.25; font-weight: 500; letter-spacing: -0.01em; color: var(--ink);
}
.svc-emoji {
    flex: 0 0 34px; width: 34px; height: 34px; border-radius: 10px;
    display: grid; place-items: center; font-size: 17px;
    border: 1px solid rgba(255, 255, 255, 0.22); background: rgba(255, 255, 255, 0.05);
}
.svc-block p { margin: 0 0 7px; font-size: clamp(12.5px, 0.6vw + 0.75vh, 14.5px); line-height: 1.5; font-weight: 300; color: var(--ink-2); }
.svc-block ul { list-style: none; margin: 4px 0 0; }
.svc-block li {
    position: relative; padding-left: 16px; margin-bottom: 4px;
    font-size: clamp(12px, 0.55vw + 0.72vh, 14px); line-height: 1.45; font-weight: 300; color: #aeb6c4;
}
.svc-block li::before { content: ''; position: absolute; left: 0; top: 0.62em; width: 6px; height: 1px; background: var(--blue); }

/* ---- Cartes de tarifs ---- */
.price-card { padding: clamp(22px, 2.2vw, 32px); }
.price-card h3 {
    margin-bottom: 14px; font-size: 11px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: #cfd6e6;
}
.price-line { padding: 13px 0; border-bottom: 1px solid var(--hair); }
.price-line:last-child { border-bottom: 0; }
.price-row { display: flex; align-items: baseline; gap: 14px; }
.price-row span { font-size: 15px; font-weight: 300; color: var(--ink-2); }
.price-row i { flex: 1; border-bottom: 1px dotted rgba(255, 255, 255, 0.18); transform: translateY(-4px); min-width: 20px; }
.price-row strong {
    font-size: clamp(22px, 1.8vw, 30px); font-weight: 400; letter-spacing: -0.02em; white-space: nowrap;
    color: #ffffff; font-variant-numeric: tabular-nums;
}
.price-row strong small { font-size: 0.5em; letter-spacing: 0.04em; color: var(--gold); margin-left: 4px; }
.price-desc { margin-top: 6px; font-size: 13px; line-height: 1.55; font-weight: 300; color: #9aa3b4; max-width: 70ch; }
.price-lines.is-wide { display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; }
@media (max-width: 1100px) { .price-lines.is-wide { grid-template-columns: 1fr; } }

.notes { max-width: 1400px; margin: 0 auto; padding: 40px var(--gutter) 90px; }
.notes .glass { padding: 28px 32px; }
.notes h2 { margin-bottom: 16px; font-size: 11px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: #cfd6e6; }
.notes ul { list-style: none; }
.notes li { margin-bottom: 8px; font-size: 14px; line-height: 1.6; font-weight: 300; color: var(--ink-2); }

/* ---- À propos : quatre chapitres éditoriaux ---- */
.about-list { max-width: 1400px; margin: 0 auto; padding: 10px var(--gutter) 120px; display: grid; gap: 22vh; }
.about-card {
    width: min(760px, 100%); padding: clamp(28px, 3.4vw, 52px);
    opacity: 0; transform: translateY(60px) scale(0.97); filter: blur(14px);
    transition: opacity 1.2s var(--ease), transform 1.4s var(--ease), filter 1.2s var(--ease);
}
.about-card:nth-child(even) { justify-self: end; }
.about-card.is-in { opacity: 1; transform: none; filter: blur(0); --sheen: 30%; }
.about-num { display: block; margin-bottom: 22px; font-size: 11px; letter-spacing: 0.22em; color: rgba(255, 255, 255, 0.45); }
.about-card h3 { font-size: clamp(26px, 2.6vw, 40px); line-height: 1.08; font-weight: 400; letter-spacing: -0.03em; color: var(--ink); margin-bottom: 20px; }
.about-card p { font-size: 17px; line-height: 1.75; font-weight: 300; color: var(--ink-2); }
@media (max-width: 900px) { .about-list { gap: 40px; } .about-card p { font-size: 15px; } }

/* ============================================================================
   Contact : page Contact et dernier chapitre de l'accueil
   ============================================================================ */
.contact {
    position: relative; z-index: 8;
    min-height: 100vh;
    padding: calc(var(--header-h) + 70px) var(--gutter) 40px;
}
.contact-inner {
    width: 100%; max-width: 1500px; margin: 0 auto;
    display: grid; grid-template-columns: minmax(300px, 1fr) minmax(0, 620px);
    justify-content: space-between; gap: clamp(40px, 6vw, 120px); align-items: start;
}
.contact-intro .eyebrow { margin-bottom: 40px; }
.contact-title { font-size: clamp(48px, 5.6vw, 88px); line-height: 1.0; letter-spacing: -0.035em; font-weight: 400; color: var(--ink); margin-bottom: 36px; }
.contact-title .line.muted { font-size: 0.42em; letter-spacing: -0.02em; margin-top: 0.3em; }
.contact-intro p { font-size: 16px; line-height: 1.7; font-weight: 300; color: var(--ink-2); margin-bottom: 18px; max-width: 58ch; }
.contact-intro strong { font-weight: 500; color: #ffffff; }
.contact-phone {
    display: inline-flex; align-items: center; gap: 22px; margin: 6px 0 30px; padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.35);
    font-size: clamp(26px, 2.6vw, 38px); font-weight: 400; letter-spacing: -0.02em; color: #ffffff;
    transition: gap 0.35s, border-color 0.35s;
}
.contact-phone svg { width: 22px; height: 22px; fill: currentColor; opacity: 0.8; }
.contact-phone:hover { gap: 34px; border-color: #ffffff; }
.contact-hours { display: grid; grid-template-columns: auto 1fr; gap: 6px 20px; margin-bottom: 28px; font-size: 14px; font-weight: 300; color: var(--ink-2); }
.contact-hours dt { font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255, 255, 255, 0.45); padding-top: 4px; }
.contact-reassurance {
    display: inline-flex; align-items: center; gap: 12px; margin: 6px 0 18px;
    font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: #cfe7ff;
}
.contact-reassurance::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px var(--gold); }
.contact-intro .contact-notice { font-size: 13.5px; color: #9aa3b4; border-left: 1px solid rgba(255, 255, 255, 0.2); padding-left: 16px; }
.contact-intro .contact-note { font-size: 12px; color: #8d97ab; }

.contact-card { width: 100%; max-width: 620px; justify-self: end; border-radius: 30px; padding: 40px 44px 36px; }
body.has-glass-card .contact-card {
    border-color: transparent; background: transparent;
    -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none;
}
.card-head {
    display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px;
    font: 500 11px/1 'Space Grotesk', sans-serif; letter-spacing: 0.22em; text-transform: uppercase; color: #d7deea;
}
.card-head .arrow { font-size: 20px; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 30px; }
.field { display: flex; flex-direction: column; gap: 10px; }
.field-wide { grid-column: 1 / -1; }
.field-label { font: 500 12px/1 'Space Grotesk', sans-serif; letter-spacing: 0.04em; color: #dfe6f3; }
.field-label em { font-style: normal; color: var(--gold); }
.field input, .field textarea, .field select {
    width: 100%; background: transparent; border: 0; border-radius: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
    padding: 6px 0 12px; color: #ffffff; outline: none; -webkit-appearance: none; appearance: none;
    font: 300 16px/1.4 'Space Grotesk', sans-serif; transition: border-color 0.3s;
}
.field select {
    background-image: linear-gradient(45deg, transparent 50%, #cfd6e6 50%), linear-gradient(135deg, #cfd6e6 50%, transparent 50%);
    background-position: calc(100% - 12px) 14px, calc(100% - 7px) 14px; background-size: 5px 5px; background-repeat: no-repeat;
}
.field select:invalid { color: #8b94a6; }
.field option { background: #0b0d14; color: #ffffff; }
.field textarea { min-height: 96px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #8b94a6; }
.field input:focus, .field textarea:focus, .field select:focus { border-bottom-color: #ffffff; }
.field input:-webkit-autofill { -webkit-box-shadow: 0 0 0 1000px #0b0b10 inset; -webkit-text-fill-color: #ffffff; }
.captcha-label { color: var(--gold); }
.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent-row { display: flex; gap: 14px; align-items: flex-start; margin-top: 26px; font-size: 12px; line-height: 1.6; font-weight: 300; color: #b3bccb; }
.consent-row input {
    flex: 0 0 18px; width: 18px; height: 18px; margin-top: 2px; -webkit-appearance: none; appearance: none;
    border: 1px solid rgba(255, 255, 255, 0.45); border-radius: 5px; background: transparent; transition: background 0.3s;
}
.consent-row input:checked { background: #ffffff; box-shadow: inset 0 0 0 4px #10131c; }
.consent-row a { text-decoration: underline; text-underline-offset: 3px; }
.card-foot { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 30px; }
.card-note { font-size: 10.5px; line-height: 1.7; color: #b3bccb; letter-spacing: 0.3px; }
.pill-btn {
    display: inline-flex; align-items: center; gap: 18px; padding: 16px 26px; border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.55); background: rgba(255, 255, 255, 0.04); color: #ffffff;
    font: 500 13px/1 'Space Grotesk', sans-serif; letter-spacing: 0.2px; white-space: nowrap;
    transition: background 0.3s, color 0.3s, transform 0.3s, border-color 0.3s;
}
.pill-btn .arrow { font-size: 16px; }
.pill-btn:hover { background: #ffffff; color: #000000; border-color: #ffffff; transform: translateY(-2px); }
.pill-btn:disabled { opacity: 0.5; transform: none; }
.contact-status { margin-top: 16px; min-height: 1.4em; font-size: 13px; }
.contact .site-footer { margin: 90px 0 0; padding-left: 0; padding-right: 0; }

.contact-intro > *, .contact-card { opacity: 0; transform: translateY(34px); transition: opacity 0.9s cubic-bezier(0.25, 1, 0.5, 1), transform 0.9s cubic-bezier(0.25, 1, 0.5, 1); }
.contact-intro > *:nth-child(2) { transition-delay: 0.06s; }
.contact-intro > *:nth-child(n+3) { transition-delay: 0.16s; }
.contact-card { transition-delay: 0.3s; }
.contact.is-visible .contact-intro > *, .contact.is-visible .contact-card { opacity: 1; transform: none; }

@media (max-width: 1000px) {
    .contact { padding: calc(var(--header-h) + 50px) 24px 30px; }
    .contact-inner { grid-template-columns: 1fr; gap: 50px; }
    .contact-card { justify-self: stretch; max-width: none; padding: 30px 24px; }
    .field-grid { grid-template-columns: 1fr; gap: 22px; }
    .card-foot { flex-direction: column; align-items: flex-start; }
}

/* ---- Pages légales ---- */
.legal-page { position: relative; z-index: 5; max-width: 860px; margin: 0 auto; padding: calc(var(--header-h) + 50px) var(--gutter) 60px; }
.legal-back { display: inline-flex; gap: 10px; margin-bottom: 34px; font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(255, 255, 255, 0.55); transition: color 0.3s, gap 0.3s; }
.legal-back:hover { color: #ffffff; gap: 16px; }
.legal-page h1 { font-size: clamp(36px, 4.6vw, 64px); line-height: 1.02; font-weight: 400; letter-spacing: -0.035em; margin-bottom: 36px; }
.legal-card { padding: clamp(26px, 4vw, 52px); }
.legal-card h2 { margin: 34px 0 12px; font-size: 19px; font-weight: 500; letter-spacing: -0.01em; color: #ffffff; }
.legal-card h2:first-child { margin-top: 0; }
.legal-card p { margin-bottom: 14px; font-size: 15px; line-height: 1.75; font-weight: 300; color: var(--ink-2); }
.legal-card ul { margin: 0 0 14px 20px; }
.legal-card li { margin-bottom: 6px; font-size: 15px; line-height: 1.6; font-weight: 300; color: var(--ink-2); }
.legal-card a { text-decoration: underline; text-underline-offset: 3px; }
.legal-meta { margin-top: 36px; font-size: 11px; letter-spacing: 0.14em; color: rgba(255, 255, 255, 0.45); }
.back-to-top {
    display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; margin: 50px auto 0;
    border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.35); background: rgba(255, 255, 255, 0.04);
    font-size: 20px; transition: background 0.3s, color 0.3s, transform 0.4s var(--ease);
}
.back-to-top:hover { background: #ffffff; color: #000000; transform: translateY(-4px); }
.legal-bg {
    position: fixed; inset: 0; z-index: 0; pointer-events: none;
    background:
        radial-gradient(60% 50% at 78% 18%, rgba(47, 124, 255, 0.22), transparent 70%),
        radial-gradient(50% 45% at 12% 88%, rgba(255, 122, 26, 0.13), transparent 70%),
        #000;
}

@media (prefers-reduced-motion: reduce) {
    .line-inner, .reveal, .about-card, .contact-intro > *, .contact-card { transition: none !important; transform: none !important; filter: none !important; opacity: 1 !important; }
}

/* le deck pilote le reflet image par image : pas de transition sur ses cartes */
.deck-card.glass::after { transition: none; }
.deck-layer .deck-card { align-self: stretch; }
.deck-layer .deck-card[data-role="solo"] { grid-column: 1 / -1; }
.deck-lead { margin-top: 14px; max-width: 80ch; font-size: 14px; line-height: 1.6; font-weight: 300; color: var(--ink-2); }
.deck-lead strong { font-weight: 500; color: #ffffff; }
.deck-head-right { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; text-align: right; }
.page-end { position: relative; z-index: 5; }
.contact.is-visible .contact-title .line-inner { transform: none; opacity: 1; filter: blur(0); }
.deck-static-head { display: none; }
@media (max-width: 900px) { .deck-static-head { display: block; } }

/* dès que la page défile, l'en-tête devient une bande de verre dépoli */
.site-header { transition: background 0.5s, backdrop-filter 0.5s; }
.site-header.is-scrolled {
    background: rgba(2, 4, 8, 0.55);
    -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%);
}

/* page Contact : informations puis formulaire sur une colonne à gauche,
   la moitié droite est laissée au smartphone en verre */
.page-contact .contact-inner { grid-template-columns: minmax(0, 640px); justify-content: start; gap: 46px; }
.page-contact .contact-card { justify-self: stretch; max-width: 640px; }
/* sur téléphone et tablette, les informations passent sur une carte de verre :
   le smartphone 3D reste visible derrière, flouté, sans gêner la lecture */
@media (max-width: 1000px) {
    .page-contact .contact-intro {
        padding: 28px 22px 10px; border-radius: 24px;
        border: 1px solid rgba(255, 255, 255, 0.14);
        background: linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.015) 60%), rgba(8, 10, 18, 0.5);
        -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%);
    }
}
@media (max-width: 600px) { .contact-title { font-size: 38px; } }

/* ============================================================================
   Téléphone uniquement (600 px de large ou moins, ou écran tactile de 500 px de
   haut ou moins) : site classique, aucune 3D. Les tablettes gardent la 3D.
   La scène WebGL n'est pas chargée ; un dégradé fixe aux couleurs de la palette
   la remplace, sous les cartes de verre.
   ============================================================================ */
@media (max-width: 600px), (max-height: 500px) and (pointer: coarse) {
    #webgl { display: none; }
    body {
        background:
            radial-gradient(90% 45% at 85% 8%, rgba(47, 124, 255, 0.30), transparent 70%),
            radial-gradient(80% 40% at 10% 45%, rgba(0, 201, 200, 0.16), transparent 70%),
            radial-gradient(90% 45% at 80% 88%, rgba(255, 176, 0, 0.16), transparent 70%),
            #000;
        background-attachment: fixed;
    }
}
html[data-device="phone"] #webgl { display: none; }

/* ============================================================================
   Tablette : contenu en page continue (comme sur téléphone) ; l'objet 3D vit
   dans les espaces libres insérés entre les blocs (.scene-gap, ambient.js).
   ============================================================================ */
html[data-device="tablet"] .deck, html[data-device="phone"] .deck { display: none; }
html[data-device="tablet"] .deck-static-head, html[data-device="phone"] .deck-static-head { display: block; }
html[data-device="tablet"] .deck-static, html[data-device="phone"] .deck-static { display: grid; gap: 18px; padding: 0 var(--gutter) 60px; }
html[data-device="tablet"] .deck-static .deck-group-title { margin: 26px 0 4px; font-size: 26px; font-weight: 400; letter-spacing: -0.02em; color: var(--muted); }
html[data-device="tablet"] .about-list { gap: 30px; }
.scene-gap { height: 58vh; min-height: 300px; pointer-events: none; }

/* ============================================================================
   Étapes (Services, ordinateur) : une carte à la fois sur une moitié d'écran,
   en alternance gauche / droite ; l'objet 3D occupe l'autre moitié.
   ============================================================================ */
.steps { position: relative; }
.steps-pin {
    position: sticky; top: 0; height: 100vh; overflow: hidden;
    display: flex; flex-direction: column;
    padding: calc(var(--header-h) + 18px) var(--gutter) 46px;
}
.steps-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 18px; }
.steps-stage { position: relative; flex: 1; min-height: 0; }
.step-card {
    position: absolute; top: 50%; width: min(600px, 44vw);
    padding: clamp(20px, 1.8vw, 28px);
    opacity: 0; filter: blur(14px); pointer-events: none;
    transform: translate(0, -44%) scale(0.97);
    transition: opacity 0.9s var(--ease), transform 1.2s var(--ease), filter 1s var(--ease);
}
.step-card[data-side="left"] { left: 0; }
.step-card[data-side="right"] { right: 0; }
/* la nouvelle carte arrive pendant que l'objet 3D éclate et quitte sa moitié */
.step-card.is-in {
    opacity: 1; filter: blur(0); pointer-events: auto; --sheen: 40%;
    transform: translate(0, -50%) scale(1);
    transition-delay: 0.45s;
}
/* l'ancienne s'efface en glissant vers son bord */
.step-card[data-side="left"].is-out { transform: translate(-12%, -50%) scale(0.96); }
.step-card[data-side="right"].is-out { transform: translate(12%, -50%) scale(0.96); }
.step-card.glass::after { transition: transform 2.2s var(--ease) 0.6s; }
.steps .deck-dashes { margin-top: 14px; }
html:not([data-device="desktop"]) .steps { display: none; }
@media (max-width: 900px) { .steps { display: none; } }

/* Tarifs : une étape = le titre de la rubrique et ses cartes empilées */
.step-card.step-stack { padding: 0; display: grid; gap: 16px; }
.step-kicker { font-size: clamp(22px, 2.2vw, 32px); line-height: 1.1; font-weight: 400; letter-spacing: -0.02em; color: var(--muted); margin-bottom: 2px; }
.step-stack .price-lines.is-wide { grid-template-columns: 1fr; }

/* À propos : une carte par étape sur ordinateur, la liste ne sert qu'ailleurs */
.about-step { padding: clamp(28px, 3vw, 48px); }
.about-step h3 { font-size: clamp(26px, 2.4vw, 38px); line-height: 1.08; font-weight: 400; letter-spacing: -0.03em; color: var(--ink); margin-bottom: 20px; }
.about-step p { font-size: 17px; line-height: 1.75; font-weight: 300; color: var(--ink-2); }
@media (min-width: 901px) { html[data-device="desktop"] .about-list { display: none; } }

/* Contact : 3 étapes sur ordinateur ; la section d'origine ne garde que le pied de page */
.contact-step { padding: clamp(24px, 2.4vw, 36px); }
.contact-step p { font-size: 16px; line-height: 1.7; font-weight: 300; color: var(--ink-2); margin-bottom: 16px; }
.contact-step p:last-child { margin-bottom: 0; }
.contact-step.is-lead p { font-size: clamp(17px, 0.7vw + 0.7vh, 20px); }
.contact-step strong { font-weight: 500; color: #ffffff; }
.contact-step .contact-notice { font-size: 13.5px; color: #9aa3b4; border-left: 1px solid rgba(255, 255, 255, 0.2); padding-left: 16px; }
.contact-step .contact-note { font-size: 12px; color: #8d97ab; }
.steps .contact-card { opacity: 1; transform: none; max-width: none; padding: 32px 34px 28px; }
@media (min-width: 901px) {
    html[data-device="desktop"] .page-contact .contact-inner { display: none; }
    html[data-device="desktop"] .page-contact .contact { min-height: 0; padding: 0 var(--gutter) 30px; }
    html[data-device="desktop"] .page-contact .contact .site-footer { margin-top: 0; padding-top: 40px; }
}
/* formulaire dans l'étape 3 : espacements resserrés pour tenir à l'écran sans être réduit */
.steps .contact-card { padding: 26px 30px 22px; }
.steps .contact-card .card-head { margin-bottom: 18px; }
.steps .contact-card .field-grid { gap: 16px 26px; }
.steps .contact-card .field { gap: 6px; }
.steps .contact-card .field input, .steps .contact-card .field select { padding: 4px 0 9px; }
.steps .contact-card .field textarea { min-height: 64px; padding: 4px 0 9px; }
.steps .contact-card .consent-row { margin-top: 16px; }
.steps .contact-card .card-foot { margin-top: 18px; }
.steps .contact-card .contact-status { margin-top: 8px; }

/* ============================================================================
   Pied de page toujours visible : barre de verre fixe en bas de l'écran.
   --footer-h (mesurée par common.js) décale tout ce qui touchait le bas.
   ============================================================================ */
:root { --footer-h: 56px; }
.site-footer,
.contact .site-footer,
html[data-device="desktop"] .page-contact .contact .site-footer {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 58;
    margin: 0; padding: 0;
}
.site-footer .footer-inner {
    max-width: none; border-radius: 0; border-width: 1px 0 0;
    grid-template-columns: auto 1fr auto; gap: 10px 28px; padding: 8px var(--gutter);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.01) 60%), rgba(4, 6, 10, 0.72);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.35);
}
.site-footer .footer-brand { gap: 12px; font-size: 12px; }
.site-footer .footer-brand img { height: 28px; }
.site-footer .footer-legal { gap: 8px; }
.site-footer .footer-legal a { padding: 6px 13px; font-size: 12px; }
.site-footer .footer-contact { flex-direction: row; gap: 20px; font-size: 13px; }
body { padding-bottom: var(--footer-h); }
.autoplay-group { bottom: calc(var(--footer-h) + 18px); }
.steps-pin { padding-bottom: calc(46px + var(--footer-h)); }
html[data-device="desktop"] .page-contact .contact { padding: 0; min-height: 0; }
@media (max-width: 1100px) {
    .site-footer .footer-inner { grid-template-columns: auto 1fr; justify-items: start; text-align: left; }
    .site-footer .footer-legal { justify-content: flex-end; }
    .site-footer .footer-contact { grid-column: 1 / -1; justify-self: center; }
}
@media (max-width: 600px) {
    .site-footer .footer-inner { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 6px; padding: 8px 12px 10px; }
    .site-footer .footer-brand img { display: none; }
    .site-footer .footer-brand { font-size: 10.5px; }
    .site-footer .footer-contact { display: none; }   /* téléphone : coordonnées sur la page Contact */
    .site-footer .footer-legal { justify-content: center; gap: 6px; }
    .site-footer .footer-legal a { padding: 4px 9px; font-size: 11px; }
}

/* « L'un chasse l'autre » (étapes avec chase) : la carte entre par son bord, du côté
   où se trouve l'objet 3D ; chassée, elle est repoussée vers ce même bord, floutée. */
.step-card[data-side="left"] { --side: -1; }
.step-card[data-side="right"] { --side: 1; }
.steps--chase .step-card { transform: translate(calc(var(--side) * 110px), -50%) scale(0.97); }
.steps--chase .step-card.is-in { transform: translate(0, -50%) scale(1); transition-delay: 0.15s; }
.steps--chase .step-card.is-out {
    transform: translate(calc(var(--side) * 48vw), -50%) scale(0.96);
    opacity: 0; filter: blur(12px);
    transition: transform 0.9s cubic-bezier(0.55, 0, 0.75, 0.25), opacity 0.8s ease 0.1s, filter 0.8s ease;
}

/* Variantes (étapes avec vary) : point de départ de la carte selon son entrée… */
.steps--vary .step-card[data-enter="bottom"] { transform: translate(0, calc(-50% + 42vh)) scale(0.95); }
.steps--vary .step-card[data-enter="top"] { transform: translate(0, calc(-50% - 42vh)) scale(0.95); }
.steps--vary .step-card[data-enter="diag"] { transform: translate(calc(var(--side) * 120px), calc(-50% + 30vh)) rotate(calc(var(--side) * -5deg)) scale(0.94); }
.steps--vary .step-card.is-in { transform: translate(0, -50%) rotate(0) scale(1); }
/* …et sortie de l'ancienne carte selon la trajectoire des morceaux qui la chassent */
.steps--vary .step-card.is-out[data-exit="bottom"] { transform: translate(0, calc(-50% + 75vh)) rotate(calc(var(--side) * -4deg)) scale(0.96); }
.steps--vary .step-card.is-out[data-exit="top"] { transform: translate(0, calc(-50% - 75vh)) rotate(calc(var(--side) * 4deg)) scale(0.96); }
.steps--vary .step-card.is-out[data-exit="diag"] { transform: translate(0, -50%) scale(0.5); filter: blur(16px); }

/* ---- Animations supplémentaires (voir la liste dans steps.js) ----
   [data-enter] : point de départ de la nouvelle carte ; [data-exit] : où part l'ancienne. */
/* Profondeur : vient du fond en grandissant, part derrière le spectateur */
.steps--vary .step-card:not(.is-in)[data-enter="depth"] { transform: translate(0, -50%) scale(0.45); filter: blur(10px); }
.steps--vary .step-card.is-out[data-exit="depth"] { transform: translate(0, -50%) scale(1.7); filter: blur(22px); transition: transform 0.9s cubic-bezier(0.55, 0, 0.75, 0.25), opacity 0.7s ease, filter 0.8s ease; }
/* Bascule : pivote comme une porte, sur son bord extérieur */
.steps--vary .step-card[data-enter="hinge"], .steps--vary .step-card.is-out[data-exit="hinge"] { transform-origin: calc(50% + var(--side) * 50%) 50%; }
.steps--vary .step-card:not(.is-in)[data-enter="hinge"] { transform: translate(0, -50%) perspective(1400px) rotateY(calc(var(--side) * 75deg)); }
.steps--vary .step-card.is-in[data-enter="hinge"] { transform: translate(0, -50%) perspective(1400px) rotateY(0deg); }
.steps--vary .step-card.is-out[data-exit="hinge"] { transform: translate(0, -50%) perspective(1400px) rotateY(calc(var(--side) * -80deg)); filter: blur(4px); }
/* Retournement : se retourne comme une carte à jouer */
.steps--vary .step-card:not(.is-in)[data-enter="flip"] { transform: translate(0, -50%) perspective(1600px) rotateY(calc(var(--side) * 100deg)) scale(0.92); filter: blur(2px); }
.steps--vary .step-card.is-in[data-enter="flip"] { transform: translate(0, -50%) perspective(1600px) rotateY(0deg) scale(1); }
.steps--vary .step-card.is-out[data-exit="flip"] { transform: translate(0, -50%) perspective(1600px) rotateY(calc(var(--side) * -100deg)) scale(0.92); filter: blur(4px); }
/* Mise au point : sur place, floue puis nette, comme un objectif */
.steps--vary .step-card:not(.is-in)[data-enter="focus"] { transform: translate(0, -50%) scale(1.06); filter: blur(34px); }
.steps--vary .step-card.is-in[data-enter="focus"] { transition: opacity 1.1s ease 0.15s, transform 1.6s var(--ease) 0.15s, filter 1.6s var(--ease) 0.15s; }
.steps--vary .step-card.is-out[data-exit="focus"] { transform: translate(0, -50%) scale(0.97); filter: blur(34px); transition: transform 1.2s ease, opacity 1.1s ease 0.2s, filter 1.1s ease; }
/* Rideau : se dévoile de haut en bas, se replie vers le bas */
.steps--vary .step-card:not(.is-in)[data-enter="curtain"] { transform: translate(0, -50%); clip-path: inset(0 0 100% 0 round 24px); opacity: 1; filter: none; }
.steps--vary .step-card.is-in[data-enter="curtain"] { clip-path: inset(0 0 0 0 round 24px); transition: clip-path 1.3s cubic-bezier(0.65, 0, 0.35, 1) 0.15s, opacity 0.3s; }
.steps--vary .step-card.is-out[data-exit="curtain"] { transform: translate(0, -50%); clip-path: inset(100% 0 0 0 round 24px); opacity: 1; filter: none; transition: clip-path 1s cubic-bezier(0.65, 0, 0.35, 1), opacity 0.2s 1s; }
/* Volet : balayage latéral, l'ancienne est effacée par le même mouvement */
.steps--vary .step-card:not(.is-in)[data-enter="wipe"][data-side="right"] { clip-path: inset(0 100% 0 0 round 24px); }
.steps--vary .step-card:not(.is-in)[data-enter="wipe"][data-side="left"] { clip-path: inset(0 0 0 100% round 24px); }
.steps--vary .step-card:not(.is-in)[data-enter="wipe"] { transform: translate(0, -50%); opacity: 1; filter: none; }
.steps--vary .step-card.is-in[data-enter="wipe"] { clip-path: inset(0 0 0 0 round 24px); transition: clip-path 1.1s cubic-bezier(0.7, 0, 0.3, 1) 0.15s, opacity 0.3s; }
.steps--vary .step-card.is-out[data-exit="wipe"][data-side="left"] { clip-path: inset(0 0 0 100% round 24px); }
.steps--vary .step-card.is-out[data-exit="wipe"][data-side="right"] { clip-path: inset(0 100% 0 0 round 24px); }
.steps--vary .step-card.is-out[data-exit="wipe"] { transform: translate(0, -50%); opacity: 1; filter: none; transition: clip-path 0.9s cubic-bezier(0.7, 0, 0.3, 1), opacity 0.2s 0.9s; }
/* Spirale : arrive en tournant, aspirée en tournant */
.steps--vary .step-card:not(.is-in)[data-enter="spiral"] { transform: translate(calc(var(--side) * 60px), -50%) rotate(calc(var(--side) * -28deg)) scale(0.55); }
.steps--vary .step-card.is-out[data-exit="spiral"] { transform: translate(calc(var(--side) * -40px), -50%) rotate(calc(var(--side) * 40deg)) scale(0.2); filter: blur(10px); transition: transform 1s cubic-bezier(0.55, 0, 0.75, 0.25), opacity 0.8s ease 0.2s, filter 0.8s; }
/* Rebond : monte du bas, dépasse et rebondit avant de se poser ; l'ancienne est éjectée vers le haut */
.steps--vary .step-card.is-in[data-enter="bounce"] { animation: step-bounce 1.3s 0.15s both; }
@keyframes step-bounce {
  0%   { transform: translate(0, calc(-50% + 60vh)); opacity: 0; filter: blur(6px); animation-timing-function: cubic-bezier(0.2, 0.6, 0.4, 1); }
  50%  { transform: translate(0, calc(-50% + -38px)) scale(0.99, 1.02); opacity: 1; filter: blur(0); animation-timing-function: cubic-bezier(0.5, 0, 1, 0.6); }
  70%  { transform: translate(0, -50%) scale(1.02, 0.97); animation-timing-function: cubic-bezier(0, 0.4, 0.5, 1); }
  85%  { transform: translate(0, calc(-50% + -12px)); animation-timing-function: cubic-bezier(0.5, 0, 1, 0.6); }
  100% { transform: translate(0, -50%); opacity: 1; filter: blur(0); }
}
.steps--vary .step-card.is-out[data-exit="bounce"] { transform: translate(0, calc(-50% - 80vh)) rotate(calc(var(--side) * 6deg)); transition: transform 0.9s cubic-bezier(0.4, -0.3, 0.75, 0.3), opacity 0.7s ease 0.2s, filter 0.7s; }
/* Éclats : la vraie carte attend que les éclats (copies .shard) se soient rassemblés */
.steps--vary .step-card:not(.is-in)[data-enter="shards"] { transform: translate(0, -50%); filter: none; }
.steps--vary .step-card.is-in[data-enter="shards"] { transition: opacity 0.25s linear 1.25s; }
.steps--vary .step-card.is-out[data-exit="shards"] { transform: translate(0, -50%); filter: none; transition: opacity 0s; }
/* éclats (window.glassShatter) : copies de la carte posées dessus, sans flou d'arrière-plan */
.shard, .step-card.shard { opacity: 1; filter: none; pointer-events: none; transition: none; z-index: 4; }
.shard.glass, .shard .glass { -webkit-backdrop-filter: none; backdrop-filter: none;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.03) 60%), rgba(10, 14, 24, 0.82); }
.shard .glass { opacity: 1; transform: none; filter: none; }
/* Glissé parallaxe : la carte glisse, ses lignes arrivent l'une après l'autre, repartent en ordre inverse */
.steps--vary .step-card:not(.is-in)[data-enter="stagger"] { transform: translate(calc(var(--side) * 50px), -50%); filter: none; }
.steps--vary .step-card:not(.is-in)[data-enter="stagger"] .st { opacity: 0; transform: translateX(calc(var(--side) * 70px)); }
.steps--vary .step-card.is-in[data-enter="stagger"] .st { opacity: 1; transform: none; transition: transform 0.8s var(--ease) calc(0.25s + var(--i) * 70ms), opacity 0.6s ease calc(0.25s + var(--i) * 70ms); }
.steps--vary .step-card.is-out[data-exit="stagger"] { transform: translate(0, -50%); filter: none; transition: opacity 0.4s ease 0.9s; }
.steps--vary .step-card.is-out[data-exit="stagger"] .st { opacity: 0; transform: translateX(calc(var(--side) * 90px)); transition: transform 0.6s cubic-bezier(0.55, 0, 0.75, 0.25) calc(var(--j) * 50ms), opacity 0.5s ease calc(var(--j) * 50ms); }

/* À propos : une carte peut avoir plusieurs paragraphes */
.about-card p + p, .about-step p + p { margin-top: 0.9em; }
/* À propos : sous-titre sous le titre d'une carte */
.about-card h3:has(+ .about-sub), .about-step h3:has(+ .about-sub) { margin-bottom: 8px; }
.about-card .about-sub, .about-step .about-sub { font-size: clamp(17px, 1.35vw, 22px); line-height: 1.25; letter-spacing: -0.01em; color: var(--muted); margin-bottom: 18px; }
.about-card .about-sub + p, .about-step .about-sub + p { margin-top: 0; }

/* Services (ordinateur) : cartes plus larges, vers le centre de l'écran, et texte plus grand.
   La taille de l'objet 3D ne dépend pas de la carte : elle ne change pas. */
.steps .step-card.svc-card { width: min(800px, 48vw); padding: clamp(24px, 2.2vw, 36px); }
.steps .svc-card .svc-block h3 { font-size: clamp(19px, 1.35vw + 0.45vh, 27px); gap: 14px; margin-bottom: 14px; }
.steps .svc-card .svc-emoji { flex-basis: 44px; width: 44px; height: 44px; border-radius: 12px; font-size: 22px; }
.steps .svc-card .svc-block p { font-size: clamp(15px, 0.7vw + 0.85vh, 18.5px); line-height: 1.55; margin-bottom: 9px; }
.steps .svc-card .svc-block li { font-size: clamp(14px, 0.65vw + 0.8vh, 17px); line-height: 1.5; margin-bottom: 6px; padding-left: 18px; }

/* Tarifs : la carte des notes (renvois *(1), *(2), *(3)) */
.price-card .notes-list { list-style: none; margin: 0; padding: 0; }
.price-card .notes-list li { position: relative; padding-left: 18px; margin-bottom: 10px; font-size: clamp(14px, 0.5vw + 0.7vh, 16px); line-height: 1.6; font-weight: 300; color: var(--ink-2); }
.price-card .notes-list li:last-child { margin-bottom: 0; }
.price-card .notes-list li::before { content: ''; position: absolute; left: 0; top: 0.75em; width: 8px; height: 1px; background: var(--gold); }

/* Flèches de navigation sous les compteurs (« 01 / 21 », « 01 — 05 ») */
.deck-side { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.header-counter-wrap { position: relative; display: inline-flex; flex-direction: column; align-items: center; }
.header-counter-wrap .deck-arrows { position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%); }
.deck-arrows { display: flex; gap: 8px; }
.deck-arrow {
    width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.22); background: rgba(8, 10, 18, 0.45); color: #fff;
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    transition: border-color 0.3s, background 0.3s;
}
.deck-arrow svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.deck-arrow:hover { border-color: rgba(255, 255, 255, 0.7); background: rgba(255, 255, 255, 0.08); }
@media (max-width: 420px) { .header-counter-wrap { display: none; } }

/* Compteurs et flèches plus grands ; le chiffre actif en or */
.deck-count, .header-counter { font-size: 16px; letter-spacing: 0.12em; }
.deck-count b, .header-counter b { color: var(--gold); font-weight: 500; font-size: 22px; }
.header-counter .counter-sep { width: 18px; }
.deck-arrow { width: 44px; height: 44px; }
.deck-arrow svg { width: 18px; height: 18px; stroke-width: 1.8; }
.deck-arrows { gap: 10px; }

/* Numéros cliquables au-dessus des tirets du bas ; le numéro actif en or */
.deck-jump { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 4px 0; background: none; border: 0; cursor: pointer; color: rgba(255, 255, 255, 0.45); font: inherit; font-size: 13px; letter-spacing: 0.08em; transition: color 0.3s; }
.deck-jump:hover { color: #ffffff; }
.deck-jump.is-current { color: var(--gold); font-weight: 500; }
.deck-dashes { flex-wrap: nowrap; gap: 8px; }
.deck-jump { flex: 0 1 40px; min-width: 22px; }
.deck-jump .deck-dash { width: 100%; }
.steps .deck-dashes { padding: 0 130px; }   /* laisse la place au bouton de lecture */
