/* Clé à Neuf AMBULANT : noir, bronze, or et crème de la démo d'origine, Playfair Display et Inter */
:root {
  --black: #080807;
  --charcoal: #11100e;
  --charcoal-2: #181612;
  --bronze: #1597a6;
  --gold: #4fe3c6;
  --leather: #0b3d91;
  --cream: #f4efe6;
  --text: #e8dfd2;
  --muted: #bfb4a5;
  --line: rgba(79, 227, 198, .24);
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Inter', 'Segoe UI', Arial, sans-serif;
  --ease: cubic-bezier(.22, .8, .24, 1);
  --header: 82px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header); -webkit-text-size-adjust: 100%; color-scheme: dark; }
body { margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.7; background: var(--black); color: var(--text); overflow-x: clip; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 600; line-height: 1.12; color: var(--cream); }
h2 { font-size: clamp(32px, 4.6vw, 56px); }
h3 { font-size: 24px; }
p { margin: 0; }
em { font-style: italic; font-weight: 500; color: var(--gold); }
.container { width: min(1240px, calc(100% - 64px)); margin-inline: auto; }
.ico { width: 1.2em; height: 1.2em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.eyebrow { margin-bottom: 16px; font-size: 13px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
.img-missing { visibility: hidden; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 13px 26px; font: 600 16px/1.25 var(--sans); text-align: center; border: 1px solid transparent; border-radius: 999px; cursor: pointer; transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease), box-shadow .25s; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(135deg, var(--bronze), var(--gold)); color: #15110a; }
.btn-primary:hover { box-shadow: 0 16px 36px rgba(21, 151, 166, .3); }
.btn-ghost { background: rgba(8, 8, 7, .5); color: var(--cream); border-color: rgba(79, 227, 198, .55); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* Apparitions : le contenu reste lisible avant l'animation */
.js .reveal { opacity: .3; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease), border-color .3s, background .3s; }
.js .reveal.is-in, .motion-done .reveal { opacity: 1; transform: none; }

/* Écran de chargement */
.loader { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; background: var(--black); transition: transform .9s var(--ease) .1s; }
.loader.is-done { transform: translateY(-100%); }
.no-js .loader { display: none; }
.loader-inner { width: min(560px, 86vw); text-align: center; }
.loader-brand { font-family: var(--serif); font-weight: 700; font-size: clamp(38px, 9vw, 66px); line-height: 1.1; color: var(--cream); }
.loader-brand span { display: block; margin-top: 8px; font-family: var(--sans); font-size: .3em; font-weight: 600; letter-spacing: .42em; text-indent: .42em; text-transform: uppercase; color: var(--gold); }
.loader-line { height: 2px; margin: 26px auto 18px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.loader-line span { display: block; width: 0; height: 100%; background: linear-gradient(90deg, var(--leather), var(--gold), var(--cream)); animation: loader-fill 1.4s var(--ease) forwards; }
.loader-sub { font-size: 12px; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }
@keyframes loader-fill { to { width: 100%; } }

/* Vantaux : leur bord central reprend le profil d'une clé */
.doors { position: fixed; inset: 0; z-index: 900; overflow: hidden; pointer-events: none; visibility: hidden; }
.door { position: absolute; top: 0; bottom: 0; width: 54vw; background: linear-gradient(180deg, #1c1810, #0d0c0a); transition: transform .4s cubic-bezier(.6, 0, .9, .4); }
.door-left { left: 0; transform: translateX(-101%); clip-path: polygon(0 0, 100% 0, 88% 14%, 100% 24%, 90% 36%, 100% 48%, 86% 60%, 100% 72%, 92% 84%, 100% 100%, 0 100%); }
.door-right { right: 0; transform: translateX(101%); clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 7.4% 84%, 0 72%, 14% 60%, 0 48%, 10% 36%, 0 24%, 12% 14%); background: linear-gradient(180deg, #221c12, #100e0b); }
.doors.is-closed, .doors.is-opening { visibility: visible; }
.doors.is-closed .door { transform: none; }
.doors.is-opening .door { transition: transform .85s var(--ease); }

/* En-tête */
.site-header { position: fixed; inset: 0 0 auto; z-index: 100; background: linear-gradient(180deg, rgba(8, 8, 7, .84), rgba(8, 8, 7, 0)); transition: background .35s, box-shadow .35s; }
.site-header.is-scrolled, .menu-open .site-header { background: rgba(8, 8, 7, .95); box-shadow: 0 1px 0 var(--line); }
.header-row { display: flex; align-items: center; gap: 22px; height: var(--header); }
.brand { display: inline-flex; flex: none; }
.brand-logo { display: block; width: auto; height: 46px; }
.main-nav { display: flex; gap: 2px; margin-left: auto; }
.main-nav a { padding: 10px 11px; font-size: 15px; font-weight: 500; color: rgba(244, 239, 230, .88); transition: color .2s; }
.main-nav a:hover { color: var(--gold); }
.header-phone { display: inline-flex; align-items: center; gap: 9px; padding: 9px 16px; font-size: 15px; font-weight: 600; white-space: nowrap; border: 1px solid rgba(79, 227, 198, .45); border-radius: 999px; transition: border-color .2s, color .2s; }
.header-phone:hover { border-color: var(--gold); color: var(--gold); }
.burger { display: none; place-items: center; width: 46px; height: 46px; padding: 0; color: var(--cream); font-size: 20px; background: none; border: 1px solid rgba(79, 227, 198, .45); border-radius: 50%; cursor: pointer; }
.burger .ico-close, .menu-open .burger .ico-open { display: none; }
.menu-open .burger .ico-close { display: block; }

/* Accueil */
.hero { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 100vh; min-height: 100svh; padding: 140px 0 28px; overflow: clip; isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -2; background: radial-gradient(circle at 74% 46%, #2a2114, var(--charcoal) 46%, var(--black)); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 66% center; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(8, 8, 7, .93) 0%, rgba(8, 8, 7, .62) 50%, rgba(8, 8, 7, .16) 100%), linear-gradient(180deg, rgba(8, 8, 7, .3) 55%, var(--black) 100%); }
.hero h1 { max-width: 11.5em; font-size: clamp(44px, 7.2vw, 96px); line-height: 1.05; }
.hero h1 em { display: block; background: linear-gradient(100deg, var(--bronze), var(--gold) 45%, var(--cream)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; padding-right: .08em; padding-bottom: .08em; }
.hero-text { max-width: 36em; margin: 20px 0 30px; font-size: clamp(17px, 1.5vw, 20px); color: var(--text); }
.hero-foot { margin-top: 56px; }
.bitting { display: block; width: 100%; height: 34px; }
.bitting polyline { fill: none; stroke: var(--gold); stroke-width: 1.5; stroke-linejoin: round; }
.js .bitting { clip-path: inset(0 100% 0 0); }
.is-loaded .bitting, .motion-done .bitting { animation: bitting-draw 2s var(--ease) .25s forwards; }
@keyframes bitting-draw { to { clip-path: inset(0 0 0 0); } }
.hero-tags { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding-top: 14px; }
.hero-tags li { display: flex; align-items: center; gap: 11px; font-size: 15px; font-weight: 500; color: var(--cream); }
.hero-tags .ico { color: var(--gold); }

/* La clé se taille au défilement */
.cut { background: linear-gradient(180deg, var(--black), var(--charcoal) 20%, var(--charcoal) 80%, var(--black)); overflow-x: clip; }
.cut-track { height: 380vh; }
.cut-stage { position: sticky; top: 0; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; height: 100vh; height: 100svh; padding: calc(var(--header) + 10px) 0 22px; overflow: hidden; }
.cut-head h2 { font-size: clamp(28px, 3.6vw, 46px); }
.cut-head .eyebrow { margin-bottom: 8px; }
.cut-scene { position: relative; min-height: 0; margin-block: 8px; background: radial-gradient(ellipse 46% 60% at 50% 54%, rgba(21, 151, 166, .13), transparent 72%); }
.cut-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.key-static { display: none; }
.lock-hit { position: absolute; left: 0; top: 0; width: 0; height: 0; border-radius: 12px; pointer-events: none; cursor: pointer; }
.is-ready .lock-hit { pointer-events: auto; }
.cut-hint { position: absolute; left: 0; right: 0; bottom: 2px; margin: 0; padding-inline: 16px; font-size: 15px; font-weight: 600; text-align: center; color: var(--gold); opacity: 0; transition: opacity .4s; pointer-events: none; }
.is-ready .cut-hint { opacity: 1; }
.hint-touch { display: none; }
@media (hover: none), (pointer: coarse) {
  .hint-fine { display: none; }
  .hint-touch { display: inline; }
}
.cut-gauge { height: 2px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.cut-gauge span { display: block; height: 100%; background: linear-gradient(90deg, var(--leather), var(--gold), var(--cream)); transform: scaleX(var(--p, 0)); transform-origin: left; }
.cut-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px; margin-top: 14px; }
.cut-steps li { transition: opacity .35s; }
.js .cut-steps li { opacity: .5; }
.js .cut-steps li.is-on { opacity: 1; }
.cut-steps b { display: block; font: 600 13px/1.3 var(--sans); letter-spacing: .18em; color: var(--gold); }
.cut-steps h3 { margin: 2px 0 2px; font-size: 21px; }
.cut-steps p { font-size: 15px; line-height: 1.5; color: var(--muted); }
.cut-note { margin-top: 8px; font-size: 13px; color: var(--muted); }

/* Sans JavaScript ou sans mouvement : tout le texte, la clé finie, aucune épingle */
.no-js .cut-track { height: auto; }
.no-js .cut-stage { position: static; display: block; height: auto; padding-block: 96px 64px; }
.no-js .cut-canvas, .no-js .cut-hint, .no-js .lock-hit { display: none; }
.no-js .cut-scene { padding: 28px 32px; }
.no-js .key-static { display: block; width: min(560px, 100%); margin-inline: auto; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cut-track { height: auto; }
  .cut-stage { position: static; display: block; height: auto; padding-block: 96px 64px; }
  .cut-canvas, .cut-hint, .lock-hit { display: none; }
  .cut-scene { padding: 28px 32px; }
  .key-static { display: block; width: min(560px, 100%); margin-inline: auto; }
  .cut-steps li, .js .cut-steps li { opacity: 1; }
  .cut-gauge span { transform: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .loader-line span { animation: none; width: 100%; }
  .loader { transition: none; }
  .js .bitting { clip-path: none; }
  .is-loaded .bitting, .motion-done .bitting { animation: none; }
  .step .pin i { transition: none; }
}

/* Sections */
.section { padding: 104px 0; }
.section-tint { background: var(--charcoal); border-block: 1px solid rgba(79, 227, 198, .12); }
.section-head { max-width: 780px; margin-bottom: 48px; }
.section-head > p:last-child:not(.eyebrow) { margin-top: 16px; font-size: 18px; color: var(--muted); }

/* Exemples à valider */
.kinds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.kind { display: flex; flex-direction: column; padding: 30px 26px 24px; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .02)); }
.kind:hover { border-color: var(--gold); background: linear-gradient(180deg, rgba(79, 227, 198, .13), rgba(255, 255, 255, .02)); }
.kind > .ico { font-size: 28px; color: var(--gold); }
.kind h3 { margin: 18px 0 8px; }
.kind p { flex: 1; color: var(--muted); }
.kind span { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-size: 14px; font-weight: 600; color: var(--gold); }
.kinds-band { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 20px; padding: 22px 26px; border: 1px solid var(--line); background: rgba(11, 61, 145, .16); }
.kinds-band p { font-size: 19px; color: var(--cream); }
.kinds-band .btn { flex: none; }

/* Méthode : les goupilles montent jusqu'à la ligne */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px; }
.step { position: relative; padding-top: 104px; }
.step::before { content: ""; position: absolute; left: -13px; right: -13px; top: 0; height: 2px; background: var(--line); }
.step .pin { position: absolute; left: 0; top: 2px; width: 26px; height: 80px; overflow: hidden; background: rgba(255, 255, 255, .04); border-radius: 0 0 3px 3px; }
.step .pin i { position: absolute; inset: 0 0 auto; height: 56px; background: linear-gradient(90deg, var(--bronze), var(--gold) 45%, var(--leather)); border-radius: 0 0 8px 8px; }
.js .step .pin i { transform: translateY(26px); transition: transform .7s var(--ease) .1s; }
.js .step:nth-child(2) .pin i { transform: translateY(14px); }
.js .step:nth-child(3) .pin i { transform: translateY(24px); }
.js .step:nth-child(4) .pin i { transform: translateY(8px); }
.js .step.is-on .pin i, .motion-done .step .pin i { transform: none; }
.step.is-on::before, .motion-done .step::before { background: var(--gold); transition: background .6s .5s; }
.step b { display: block; font: 600 13px/1.3 var(--sans); letter-spacing: .18em; color: var(--gold); }
.step h3 { margin: 6px 0 8px; }
.step p { color: var(--muted); }

/* Galerie 3 × 2 */
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.gallery figure, .gallery-tile { position: relative; margin: 0; aspect-ratio: 4 / 3; overflow: hidden; background: radial-gradient(circle at 50% 44%, #2a2114, var(--charcoal) 70%); border: 1px solid var(--line); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 16px 12px; font-size: 15px; font-weight: 600; color: var(--cream); background: linear-gradient(180deg, transparent, rgba(8, 8, 7, .88)); }
.gallery-tile { display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 26px; background: linear-gradient(145deg, rgba(11, 61, 145, .42), var(--charcoal-2)); }
.gallery-tile:hover { border-color: var(--gold); }
.gallery-tile .ico { font-size: 30px; color: var(--gold); }
.gallery-tile strong { font-family: var(--serif); font-size: 26px; font-weight: 600; line-height: 1.2; color: var(--cream); }
.gallery-tile span { color: var(--text); }

/* Questions */
.faq-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 56px; align-items: start; }
.faq-grid h2 { margin-bottom: 28px; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:first-child { border-top: 1px solid var(--line); }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 2px; font-family: var(--serif); font-size: 22px; font-weight: 600; line-height: 1.3; color: var(--cream); cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary .ico { color: var(--gold); transition: transform .3s; }
.faq-list details[open] summary .ico { transform: rotate(45deg); }
.faq-list details p { padding: 0 2px 22px; color: var(--muted); }

/* Contact */
.contact { padding: 104px 0; background: linear-gradient(160deg, #1f170e, var(--black) 62%); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 60px; align-items: start; }
.contact-text > p:not(.eyebrow) { margin-top: 16px; font-size: 18px; color: var(--muted); }
.big-phone { display: inline-flex; align-items: center; gap: 12px; margin-top: 26px; font-family: var(--serif); font-size: clamp(27px, 3.5vw, 42px); font-weight: 600; line-height: 1.2; color: var(--gold); white-space: nowrap; }
.big-phone .ico { font-size: .72em; }
.contact-list { margin-top: 22px; }
.contact-list li { display: flex; align-items: center; gap: 12px; padding: 7px 0; color: var(--text); }
.contact-list a { display: inline-flex; align-items: center; gap: 12px; }
.contact-list a:hover { color: var(--gold); }
.contact-list .ico { color: var(--gold); }
.quote { display: grid; gap: 16px; padding: 34px; border: 1px solid var(--line); background: rgba(17, 16, 14, .86); }
.quote-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.quote label { display: block; font-size: 15px; font-weight: 500; color: var(--text); }
.quote small { font-size: 13px; font-weight: 400; color: var(--muted); }
.quote input, .quote select, .quote textarea { display: block; width: 100%; margin-top: 6px; min-height: 50px; padding: 11px 14px; font: 400 16px/1.4 var(--sans); color: var(--cream); background: var(--black); border: 1px solid rgba(79, 227, 198, .35); border-radius: 3px; }
.quote textarea { resize: vertical; }
.quote input:focus, .quote select:focus, .quote textarea:focus { border-color: var(--gold); outline: none; }
.quote .btn { width: 100%; }
.quote-note { font-size: 14px; color: var(--muted); }

/* Pied de page */
.site-footer { padding: 68px 0 28px; background: #050505; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 36px; }
.footer-brand p { margin-top: 16px; max-width: 26em; color: var(--muted); }
.site-footer h3 { margin-bottom: 12px; font-family: var(--sans); font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.site-footer li { padding: 3px 0; color: var(--muted); }
.site-footer li a:hover, .footer-bottom a:hover { color: var(--gold); }
.footer-bottom { display: flex; justify-content: space-between; gap: 18px; margin-top: 42px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 14px; color: var(--muted); }
.footer-bottom a { color: var(--cream); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 1140px) {
  .header-phone span { display: none; }
  .header-phone { width: 46px; height: 46px; padding: 0; justify-content: center; border-radius: 50%; }
}

@media (max-width: 980px) {
  :root { --header: 72px; }
  .main-nav { position: fixed; inset: var(--header) 0 auto; display: grid; gap: 0; margin: 0; padding: 8px 32px 20px; background: rgba(8, 8, 7, .97); border-bottom: 1px solid var(--line); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s, transform .25s, visibility .25s; }
  .main-nav a { padding: 13px 0; font-size: 18px; border-bottom: 1px solid rgba(79, 227, 198, .14); }
  .menu-open .main-nav { opacity: 1; visibility: visible; transform: none; }
  .header-phone { margin-left: auto; }
  .burger { display: grid; }
  .kinds, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .faq-grid, .contact-grid { grid-template-columns: minmax(0, 1fr); gap: 42px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
  .step { padding-bottom: 12px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .container { width: calc(100% - 40px); }
  .main-nav { padding-inline: 20px; }
  .section, .contact { padding: 76px 0; }
  .brand-logo { width: auto; height: 40px; }
  .hero { padding-top: 112px; }
  .hero-media img { object-position: 72% center; }
  .hero::after { background: linear-gradient(180deg, rgba(8, 8, 7, .74) 0%, rgba(8, 8, 7, .6) 55%, var(--black) 100%); }
  .hero-foot { margin-top: 36px; }
  .hero-tags { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .cta-row .btn { width: 100%; }
  .js .cut-steps { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; margin-top: 10px; }
  .js .cut-steps li { grid-area: 1 / 1; opacity: 0; visibility: hidden; }
  .js .cut-steps li.is-on { opacity: 1; visibility: visible; }
  .no-js .cut-steps { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .cut-note { margin-top: 4px; }
  .kinds, .steps, .gallery, .quote-row { grid-template-columns: minmax(0, 1fr); }
  .kinds-band { flex-direction: column; align-items: stretch; }
  .quote { padding: 22px 18px; }
  .big-phone { font-size: clamp(25px, 7.4vw, 30px); }
  .footer-bottom { flex-direction: column; gap: 6px; }
}

@media (max-width: 640px) and (prefers-reduced-motion: reduce) {
  .js .cut-steps { gap: 16px; }
  .js .cut-steps li { grid-area: auto; opacity: 1; visibility: visible; }
}
