:root {
    --noir: #070707;
    --noir-2: #0e0e0d;
    --blanc: #f3efe8;
    --gris: #8c877d;
    --or: #d4a24c;
    --filet: rgba(243, 239, 232, .14);
    --marge: max(clamp(22px, 6vw, 96px), calc((100vw - 1200px) / 2));
    --police: "Inter Tight", system-ui, sans-serif;
    --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--noir); }
body {
    margin: 0; background: var(--noir); color: var(--blanc);
    font: 300 1.05rem/1.7 var(--police); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--blanc); color: var(--noir); }
h1, h2, h3 { margin: 0; font-weight: 200; letter-spacing: -.035em; line-height: 1.02; }
.petit { font: 400 .7rem/1 var(--police); letter-spacing: .26em; text-transform: uppercase; color: var(--gris); }

/* ── Navigation ───────────────────────── */
.nav {
    position: fixed; inset: 0 0 auto 0; z-index: 60;
    display: flex; align-items: center; justify-content: space-between;
    padding: 26px var(--marge); transition: background .5s var(--ease), padding .5s var(--ease);
}
.nav.scroll { background: rgba(7, 7, 7, .8); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); padding-block: 16px; }
.nav .nom { font: 400 .82rem/1 var(--police); letter-spacing: .42em; text-transform: uppercase; }
.nav nav { display: flex; align-items: center; gap: 36px; font: 400 .78rem/1 var(--police); letter-spacing: .1em; }
.nav nav a { color: var(--gris); transition: color .3s; }
.nav nav a:hover { color: var(--blanc); }
.nav nav .tel-lien { color: var(--blanc); padding-bottom: 5px; border-bottom: 1px solid var(--blanc); }

/* ── Boutons ──────────────────────────── */
.boutons { display: flex; flex-wrap: wrap; gap: 12px; }
.store { display: inline-flex; align-items: center; gap: 14px; padding: 14px 30px 14px 22px; border-radius: 99px; background: var(--blanc); color: var(--noir); transition: transform .4s var(--ease), background .3s, color .3s; }
.store:hover { transform: translateY(-3px); }
.store .logo { width: 25px; height: 25px; fill: currentColor; flex: none; }
.store small { display: block; font: 400 .62rem/1 var(--police); letter-spacing: .14em; text-transform: uppercase; opacity: .6; margin-bottom: 4px; }
.store b { font: 500 1.08rem/1 var(--police); letter-spacing: -.01em; }
.store.contour { background: transparent; color: var(--blanc); box-shadow: inset 0 0 0 1px rgba(243, 239, 232, .55); }
.store.contour:hover { background: var(--blanc); color: var(--noir); }

/* ── Ouverture ────────────────────────── */
.ouverture { min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 120px var(--marge) 90px; position: relative; }
.ouverture .icone { width: clamp(190px, 25vw, 320px); aspect-ratio: 1; border-radius: 24%; overflow: hidden; background: #000; box-shadow: 0 0 0 1px rgba(243, 239, 232, .1), 0 50px 90px -30px rgba(0, 0, 0, 1); will-change: transform; }
.ouverture .icone img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.17); }
.ouverture h1 { margin-top: clamp(34px, 5vh, 56px); font-size: clamp(1.7rem, 3.3vw, 2.9rem); font-weight: 200; }
.ouverture .boutons { margin-top: clamp(28px, 4vh, 44px); justify-content: center; }
.defiler { position: absolute; bottom: 28px; left: 50%; translate: -50% 0; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.defiler i { width: 1px; height: 46px; background: linear-gradient(var(--blanc), transparent); animation: glisse 2.6s ease-in-out infinite; transform-origin: top; }
@keyframes glisse { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ── Chapitres ────────────────────────── */
.chap { min-height: 92svh; display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; align-content: center; padding: clamp(70px, 10vw, 130px) var(--marge); border-top: 1px solid var(--filet); }
.chap .rep { grid-column: 1 / -1; margin-bottom: clamp(30px, 5vw, 64px); }
.chap .enonce { grid-column: 1 / span 8; align-self: center; }
.chap .objet { grid-column: 9 / span 4; align-self: center; justify-self: end; width: 100%; }
.chap h2 { font-size: clamp(2.4rem, 6vw, 5.6rem); }
.chap h2 span { color: var(--gris); }
.chap p { margin: 30px 0 0; max-width: 26rem; color: var(--gris); font-size: 1.05rem; }

/* 01 : route */
.route-ligne { width: 100%; height: auto; overflow: visible; }
.route-ligne path { fill: none; stroke: var(--or); stroke-width: 1.5; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.route-ligne .base { stroke: var(--filet); stroke-dashoffset: 0; stroke-dasharray: 2 7; }
.objet.vu .route-ligne .trace { animation: tracer 3.4s var(--ease) .2s forwards; }
@keyframes tracer { to { stroke-dashoffset: 0; } }
.route-ligne circle { fill: var(--noir); stroke: var(--or); stroke-width: 1.5; }

/* 02 : sceau */
.sceau { width: min(100%, 300px); aspect-ratio: 1; position: relative; }
.sceau svg { width: 100%; height: 100%; }
.sceau .anneau { transform-origin: center; animation: tourne 40s linear infinite; }
.sceau text { fill: var(--gris); font: 400 8.6px var(--police); letter-spacing: .32em; text-transform: uppercase; }
.sceau circle { fill: none; stroke: var(--filet); }
.sceau .coche { fill: none; stroke: var(--or); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.objet.vu .sceau .coche { animation: tracer 1.6s var(--ease) .5s forwards; }
@keyframes tourne { to { transform: rotate(360deg); } }

/* 03 : chiffre */
.chiffre .ligne { padding: 22px 0; border-top: 1px solid var(--filet); display: flex; justify-content: space-between; align-items: baseline; }
.chiffre .ligne:last-child { border-bottom: 1px solid var(--filet); }
.chiffre .ligne span:first-child { font: 400 .7rem/1 var(--police); letter-spacing: .22em; text-transform: uppercase; color: var(--gris); }
.chiffre .ligne b { font: 200 clamp(2.2rem, 4vw, 3.4rem)/1 var(--police); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.chiffre .ligne b.or { color: var(--or); }
.chiffre .ex { margin-top: 14px; font: 400 .72rem/1 var(--police); color: var(--gris); }

/* ── Application ──────────────────────── */
.appli { background: var(--noir-2); }
.appli .objet { grid-column: 8 / span 5; display: flex; justify-content: center; }
.liste { margin: 38px 0 0; max-width: 28rem; }
.liste div { display: flex; justify-content: space-between; gap: 20px; padding: 16px 0; border-top: 1px solid var(--filet); font-size: .95rem; }
.liste div:last-child { border-bottom: 1px solid var(--filet); }
.liste dt { color: var(--blanc); font-weight: 400; }
.liste dd { margin: 0; color: var(--gris); text-align: right; }

.tel { width: min(100%, 290px); aspect-ratio: 290 / 590; border-radius: 46px; padding: 10px; background: #050505; box-shadow: 0 0 0 1px rgba(243, 239, 232, .22), 0 50px 80px -30px #000; }
.ecran { position: relative; width: 100%; height: 100%; border-radius: 37px; overflow: hidden; background: #0f0f0e; }
.ecran svg.carte { position: absolute; inset: 0; width: 100%; height: 100%; }
.carte .r1 { fill: none; stroke: rgba(243, 239, 232, .09); stroke-width: 9; stroke-linecap: round; }
.carte .r2 { fill: none; stroke: rgba(243, 239, 232, .06); stroke-width: 1.2; }
.carte .trace { fill: none; stroke: var(--or); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; filter: drop-shadow(0 0 6px rgba(212, 162, 76, .55)); }
.tel.vu .trace { animation: tracer 3.2s var(--ease) .4s forwards; }
.ecran .info { position: absolute; top: 46px; left: 16px; right: 16px; padding: 12px 0; border-bottom: 1px solid var(--filet); font: 400 .86rem/1.3 var(--police); }
.ecran .info small { display: block; font: 400 .6rem/1 var(--police); letter-spacing: .22em; text-transform: uppercase; color: var(--gris); margin-bottom: 6px; }
.ecran .feuille { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 20px 24px; background: linear-gradient(transparent, #0f0f0e 34%); }
.ecran .feuille small { font: 400 .6rem/1 var(--police); letter-spacing: .22em; text-transform: uppercase; color: var(--gris); }
.ecran .feuille .km { font: 200 3.1rem/1 var(--police); letter-spacing: -.05em; margin: 10px 0 14px; font-variant-numeric: tabular-nums; }
.ecran .feuille .km span.u { font-size: 1rem; margin-left: 5px; letter-spacing: 0; color: var(--gris); }
.ecran .feuille .l { display: flex; justify-content: space-between; padding-top: 12px; border-top: 1px solid var(--filet); font: 400 .72rem/1 var(--police); color: var(--gris); }
.ecran .feuille .l b { font-weight: 400; color: var(--or); }

/* ── Détails & questions ──────────────── */
.questions .enonce { grid-column: 1 / span 4; }
.questions .objet { grid-column: 6 / span 7; justify-self: stretch; }
.questions h2 { font-size: clamp(2rem, 4vw, 3.4rem); }
.questions details { border-top: 1px solid var(--filet); }
.questions details:last-child { border-bottom: 1px solid var(--filet); }
.questions summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 26px 0; font: 300 clamp(1.15rem, 1.8vw, 1.5rem)/1.3 var(--police); letter-spacing: -.01em; transition: color .3s; }
.questions summary:hover { color: var(--or); }
.questions summary::-webkit-details-marker { display: none; }
.questions summary::after { content: "+"; font: 200 1.8rem/1 var(--police); transition: transform .4s var(--ease); }
.questions details[open] summary::after { transform: rotate(45deg); }
.questions details p { margin: -6px 0 28px; max-width: 34rem; color: var(--gris); }

/* ── Clôture ──────────────────────────── */
.cloture { min-height: 88svh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 90px var(--marge); border-top: 1px solid var(--filet); }
.cloture .icone { width: clamp(96px, 10vw, 128px); aspect-ratio: 1; border-radius: 24%; overflow: hidden; background: #000; box-shadow: 0 0 0 1px rgba(243, 239, 232, .1); }
.cloture .icone img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.17); }
.cloture h2 { margin: 40px 0 38px; font-size: clamp(2.4rem, 6vw, 5.2rem); }
.cloture h2 span { color: var(--gris); }
.cloture .boutons { justify-content: center; }

footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 32px; padding: 30px var(--marge) 38px; border-top: 1px solid var(--filet); font: 400 .74rem/1.5 var(--police); letter-spacing: .06em; color: var(--gris); }
footer .nom { color: var(--blanc); letter-spacing: .42em; text-transform: uppercase; }
footer .liens { display: flex; gap: 28px; flex-wrap: wrap; }
footer a:hover { color: var(--blanc); }

/* Apparitions */
.revele { opacity: 0; transform: translateY(22px); transition: opacity 1.3s var(--ease), transform 1.3s var(--ease); transition-delay: var(--d, 0s); }
.revele.vu { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .revele { opacity: 1; transform: none; transition: none; }
    .route-ligne .trace, .sceau .coche, .carte .trace { stroke-dashoffset: 0; animation: none !important; }
    .sceau .anneau, .defiler i { animation: none; }
}

/* ── Responsive ───────────────────────── */
@media (max-width: 900px) {
    .nav nav a:not(.tel-lien) { display: none; }
    .chap { display: block; min-height: auto; }
    .chap .objet { margin-top: 46px; justify-self: start; }
    .appli .objet { justify-content: flex-start; }
    .questions .objet { margin-top: 30px; }
    .sceau { width: 210px; }
}
@media (max-width: 520px) {
    .store { width: 100%; }
    .liste div { flex-direction: column; gap: 4px; }
    .liste dd { text-align: left; }
}
