/* ═══════════════════════════════════════════════════════════════
   Kreatix — direction « galerie » : graphite profond, papier chaud,
   un laiton discret pour les détails. Les photos portent le design.
   Polices auto-hébergées (aucune requête vers Google).
   ═══════════════════════════════════════════════════════════════ */
@font-face { font-family: "Newsreader"; src: url("../assets/fonts/newsreader.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("../assets/fonts/newsreader-italic.woff2") format("woff2"); font-weight: 200 800; font-style: italic; font-display: swap; }
@font-face { font-family: "Hanken"; src: url("../assets/fonts/hanken.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --ink: #0f141b;
  --ink-2: #151c25;
  --ink-3: #1e2733;
  --line: rgba(236, 232, 224, .14);
  --paper: #ece8e0;
  --soft: #d3cfc7;            /* texte courant sur fond sombre */
  --mute: #a6acb6;            /* ≥ 7:1 sur --ink */
  --brass: #c9a86c;           /* détails, numéros, soulignements */
  --danger: #ff9d9d;
  --ok: #8fdcaa;
  --gutter: clamp(20px, 5vw, 72px);
  --max: 1320px;
  --head: 76px;
  --serif: "Newsreader", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans: "Hanken", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --ease: cubic-bezier(.22, .8, .24, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--head) + 8px); -webkit-text-size-adjust: 100%; background: var(--ink); }
body { margin: 0; min-height: 100vh; background: var(--ink); color: var(--soft); font: 400 1.0625rem/1.7 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 4px; text-decoration-thickness: 1px; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { color: var(--paper); font-family: var(--serif); font-weight: 400; margin: 0; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--brass); color: var(--ink); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -80px; background: var(--paper); color: var(--ink); padding: .7rem 1.1rem; z-index: 300; border-radius: 3px; font-weight: 600; }
.skip:focus { top: 12px; }
main, .site-footer { position: relative; z-index: 2; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; }

/* ── En-tête fixe : navigation + devis ───────────────────── */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: var(--head); display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 var(--gutter);
  transition: background .4s ease, border-color .4s ease; border-bottom: 1px solid transparent; }
.site-header.scrolled { background: rgba(15, 20, 27, .88); backdrop-filter: blur(14px); border-bottom-color: var(--line); }
.logo { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: var(--paper); font: 500 1.6rem/1 var(--serif); letter-spacing: -.01em; }
.logo svg { width: 24px; height: 24px; color: var(--brass); }
.nav { display: flex; gap: clamp(18px, 3vw, 40px); margin: 0 auto; }
.nav a { position: relative; text-decoration: none; color: var(--soft); font: 500 .95rem/1 var(--sans); padding: 8px 0; transition: color .2s; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--brass); scale: 0 1; transform-origin: left; transition: scale .35s var(--ease); }
.nav a:hover, .nav a[aria-current="true"] { color: var(--paper); }
.nav a:hover::after, .nav a[aria-current="true"]::after { scale: 1 1; }
.nav a[hidden] { display: none; }

/* Bouton d'action : papier sur fond sombre, le plus contrasté de la page */
.cta { display: inline-flex; align-items: center; justify-content: center; gap: 12px; background: var(--paper); color: var(--ink); text-decoration: none; border: 1px solid var(--paper); border-radius: 3px;
  padding: 17px 30px; cursor: pointer; font: 600 1rem/1 var(--sans); letter-spacing: .01em; transition: background .25s, color .25s, border-color .25s; }
.cta:hover { background: var(--brass); border-color: var(--brass); color: var(--ink); }
.cta svg { width: 18px; height: 18px; transition: translate .25s var(--ease); }
.cta:hover svg { translate: 4px 0; }
.cta[disabled] { opacity: .6; cursor: progress; }
.cta.sm { padding: 12px 20px; font-size: .92rem; background: transparent; color: var(--paper); border-color: rgba(236, 232, 224, .5); }
.cta.sm:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }

/* ── Hero : photo plein cadre ────────────────────────────── */
.hero { position: relative; min-height: max(580px, calc(100svh - 220px)); display: flex; align-items: flex-end; padding: calc(var(--head) + 40px) var(--gutter) clamp(84px, 12vh, 120px); isolation: isolate; overflow: hidden; }
.slides { position: absolute; inset: 0; z-index: -2; background: var(--ink-2); }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.8s ease; }
.slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.07); transition: transform 14s linear; }
.slide.on { opacity: 1; }
.slide.on img { transform: scale(1); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(15,20,27,.94) 0%, rgba(15,20,27,.78) 30%, rgba(15,20,27,.32) 62%, rgba(15,20,27,.5) 100%),
              linear-gradient(to right, rgba(15,20,27,.55), transparent 65%); }
.hero-copy { max-width: 46rem; }
.hero h1 { font-size: clamp(2.5rem, 6vw, 5.2rem); line-height: 1.03; letter-spacing: -.022em; font-weight: 400; max-width: 15ch; margin-bottom: 22px; }
.hero .lead { margin: 0 0 34px; max-width: 34em; font-size: clamp(1.05rem, 1.6vw, 1.22rem); line-height: 1.6; color: #ddd9d1; }
.hero .note { margin: 16px 0 0; color: var(--mute); font-size: .95rem; }
.hero-foot { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 22px; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.dots[hidden] { display: none; }
.dots { display: flex; gap: 8px; align-items: center; margin: 0; padding: 0; list-style: none; }
.dots button { position: relative; width: 34px; height: 22px; background: none; border: 0; cursor: pointer; padding: 0; }
.dots button::before { content: ""; position: absolute; left: 0; right: 0; top: 10px; height: 2px; background: rgba(236,232,224,.28); }
.dots button::after { content: ""; position: absolute; left: 0; top: 10px; height: 2px; width: 0; background: var(--paper); }
.dots button[aria-current="true"]::after { width: 100%; transition: width var(--dur, 6500ms) linear; }
.hero-cap { color: var(--mute); font-size: .88rem; margin: 0 0 4px; flex: 1; min-width: 0; padding-left: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-left { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; }
/* Repère de défilement : invite à descendre */
.cue { display: inline-flex; flex-direction: column; align-items: center; gap: 10px; color: var(--soft); text-decoration: none; font-size: .86rem; flex: none; }
.cue:hover { color: var(--paper); }
.cue i { position: relative; display: block; width: 1px; height: 46px; background: rgba(236,232,224,.28); overflow: hidden; }
.cue i::after { content: ""; position: absolute; left: 0; top: -55%; width: 1px; height: 55%; background: var(--paper); animation: cue 2.1s cubic-bezier(.6, 0, .3, 1) infinite; }
@keyframes cue { to { top: 105%; } }
html.js .hero-copy > * { opacity: 0; translate: 0 18px; animation: enter .9s var(--ease) forwards; }
html.js .hero-copy > :nth-child(2) { animation-delay: .12s; }
html.js .hero-copy > :nth-child(3) { animation-delay: .24s; }
html.js .hero-copy > :nth-child(4) { animation-delay: .36s; }
@keyframes enter { to { opacity: 1; translate: 0 0; } }

/* ── Sections ────────────────────────────────────────────── */
.section { padding: clamp(72px, 11vh, 140px) var(--gutter); }
.section.alt { background: var(--ink-2); }
.s-title { font-size: clamp(2rem, 4.2vw, 3.5rem); line-height: 1.08; letter-spacing: -.018em; max-width: 18ch; }
.s-intro { margin: 18px 0 0; max-width: 40em; color: var(--mute); font-size: 1.1rem; }
.s-head { margin-bottom: clamp(32px, 6vh, 64px); }

/* Portfolio */
#portfolio { padding-top: 52px; }
.p-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px 30px; margin-bottom: 26px; }
.p-count { font: italic 400 1.25rem/1 var(--serif); color: var(--mute); }
.filters { display: flex; flex-wrap: wrap; gap: 6px 28px; margin: 0 0 30px; padding: 0 0 14px; border-bottom: 1px solid var(--line); }
.chip { background: none; border: 0; padding: 6px 0; color: var(--mute); cursor: pointer; font: 500 1rem/1.2 var(--sans); position: relative; }
.chip::after { content: ""; position: absolute; left: 0; right: 0; bottom: -15px; height: 2px; background: var(--brass); scale: 0 1; transition: scale .35s var(--ease); transform-origin: left; }
.chip:hover, .chip[aria-pressed="true"] { color: var(--paper); }
.chip[aria-pressed="true"]::after { scale: 1 1; }
.gallery { columns: 3 340px; column-gap: clamp(10px, 1.4vw, 18px); }
.tile { position: relative; break-inside: avoid; margin: 0 0 clamp(10px, 1.4vw, 18px); background: var(--ink-2); overflow: hidden; }
.tile > button { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; position: relative; }
.tile img { width: 100%; transition: transform 1.1s var(--ease), opacity .9s ease; }
html.js .tile img { opacity: 0; }
html.js .tile.in img { opacity: 1; }
.tile:hover img { transform: scale(1.035); }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,13,18,.78), transparent 55%); opacity: 0; transition: opacity .4s; pointer-events: none; }
.tile .cap { position: absolute; left: 18px; right: 18px; bottom: 14px; z-index: 2; text-align: left; opacity: 0; translate: 0 8px; transition: opacity .4s, translate .4s var(--ease); pointer-events: none; }
.tile .cap b { display: block; font: 400 1.3rem/1.15 var(--serif); color: var(--paper); }
.tile .cap span { font-size: .84rem; color: var(--soft); }
.tile:hover::after, .tile:focus-within::after, .tile:hover .cap, .tile:focus-within .cap { opacity: 1; translate: 0 0; }
.empty { color: var(--mute); padding: 40px 0; font: italic 400 1.5rem/1.3 var(--serif); }
.demo-note { color: var(--mute); font-size: .92rem; margin: -6px 0 22px; }

/* Lightbox */
dialog.lightbox { border: 0; padding: 0; color: var(--paper); max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; background: #090c10; }
dialog.lightbox::backdrop { background: #090c10; }
dialog.lightbox[open] { animation: lbIn .35s ease both; }
@keyframes lbIn { from { opacity: 0; } to { opacity: 1; } }
.lb-inner { width: 100%; height: 100%; display: grid; grid-template-rows: 1fr auto; padding: clamp(14px, 3vw, 40px); gap: 18px; }
.lb-stage { min-height: 0; display: grid; place-items: center; }
.lb-stage img { max-width: 100%; max-height: calc(100vh - 150px); width: auto; height: auto; object-fit: contain; }
.lb-caption { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 24px; }
.lb-caption strong { font: 400 1.6rem/1.15 var(--serif); }
.lb-caption span { color: var(--mute); font-size: .95rem; max-width: 46em; }
.lb-btn { position: fixed; background: rgba(15,20,27,.75); backdrop-filter: blur(8px); color: var(--paper); border: 1px solid var(--line); border-radius: 50%; width: 50px; height: 50px; cursor: pointer; display: grid; place-items: center; transition: background .2s, color .2s; z-index: 3; }
.lb-btn svg { width: 20px; height: 20px; }
.lb-btn:hover { background: var(--paper); color: var(--ink); }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 18px; top: 50%; translate: 0 -50%; }
.lb-next { right: 18px; top: 50%; translate: 0 -50%; }

/* Prestations */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 56px); }
.service { border-top: 1px solid var(--brass); padding-top: 26px; }
.service h3 { font-size: 1.85rem; line-height: 1.15; margin-bottom: 12px; }
.service p { margin: 0; color: var(--soft); }
.service .price { margin-top: 18px; color: var(--brass); font: italic 400 1.2rem/1.3 var(--serif); }

/* Méthode (une vraie séquence : les numéros ont un sens) */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 56px); }
.step { border-top: 1px solid var(--line); padding-top: 24px; position: relative; }
.step::before { content: ""; position: absolute; top: -1px; left: 0; width: 56px; height: 1px; background: var(--brass); }
.step .n { display: block; font: italic 400 2.6rem/1 var(--serif); color: var(--brass); margin-bottom: 14px; }
.step h3 { font-size: 1.6rem; margin-bottom: 10px; }
.step p { margin: 0; color: var(--soft); }

/* À propos */
.about { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(32px, 7vw, 110px); align-items: start; }
.about.solo { grid-template-columns: minmax(0, 1fr); max-width: 52rem; }
.about p { max-width: 38em; margin: 0 0 18px; }
.about p.first { font: 400 clamp(1.3rem, 2.2vw, 1.75rem)/1.4 var(--serif); color: var(--paper); }
.stats { display: grid; gap: 26px; margin: 0; padding: 0; list-style: none; }
.stats li { border-top: 1px solid var(--line); padding-top: 18px; }
.stats b { display: block; font: 400 clamp(2.4rem, 4vw, 3.4rem)/1 var(--serif); color: var(--paper); }
.stats span { color: var(--mute); }

/* Avis et FAQ (affichés seulement s'ils sont renseignés) */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: clamp(28px, 4vw, 56px); }
.quote { margin: 0; border-left: 1px solid var(--brass); padding-left: 24px; }
.quote p { margin: 0 0 14px; font: italic 400 1.35rem/1.45 var(--serif); color: var(--paper); }
.quote footer { color: var(--mute); font-size: .92rem; }
.faq { max-width: 820px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; font: 400 1.35rem/1.3 var(--serif); color: var(--paper); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; translate: 0 -50%; font: 300 1.8rem/1 var(--sans); color: var(--brass); transition: rotate .3s var(--ease); }
.faq details[open] summary::after { rotate: 45deg; }
.faq details p { margin: 0 0 22px; max-width: 46em; }

/* Contact */
.contact { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 7vw, 110px); }
.contact-info ul { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 10px; }
.contact-info a { color: var(--paper); }
.form-grid { display: grid; gap: 22px 18px; grid-template-columns: 1fr 1fr; }
.field { display: grid; gap: 8px; position: relative; }
.field.full { grid-column: 1 / -1; }
label, .label { font-size: .92rem; color: var(--soft); font-weight: 500; }
input, select, textarea { width: 100%; background: var(--ink); color: var(--paper); border: 1px solid rgba(236,232,224,.22); border-radius: 3px; padding: 14px 16px; font: 400 1.05rem/1.4 var(--sans); min-height: 52px; transition: border-color .2s, background .2s; }
select { appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='8' viewBox='0 0 14 8'><path d='M1 1l6 6 6-6' fill='none' stroke='%23ece8e0' stroke-width='1.6'/></svg>"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
select option { background: var(--ink-2); color: var(--paper); }
textarea { min-height: 150px; resize: vertical; }
input:hover, select:hover, textarea:hover { border-color: rgba(236,232,224,.45); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brass); box-shadow: 0 0 0 3px rgba(201,168,108,.22); }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--danger); }
.err { color: var(--danger); font-size: .88rem; min-height: 1.2em; margin: 0; }
.check { display: flex; gap: 14px; align-items: flex-start; }
.check input { width: 22px; height: 22px; min-height: 22px; margin-top: 2px; accent-color: var(--brass); flex: none; padding: 0; }
.check label { color: var(--mute); font-size: .92rem; font-weight: 400; }
.check a { color: var(--soft); }
.submit-row { margin: 10px 0 0; }
.status { min-height: 1.6em; margin: 16px 0 0; }
.status[data-kind="ok"] { color: var(--ok); }
.status[data-kind="error"] { color: var(--danger); }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.sent { display: none; border-top: 1px solid var(--brass); padding-top: 26px; }
.form-done .sent { display: block; animation: enter .8s var(--ease) both; }
.form-done form { display: none; }
.sent h3 { font-size: 2.2rem; margin-bottom: 8px; }
.sent p { margin: 0; color: var(--soft); font-size: 1.1rem; }

/* Pied de page */
.site-footer { padding: 56px var(--gutter) 40px; background: var(--ink); border-top: 1px solid var(--line); color: var(--mute); font-size: .95rem; }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; max-width: var(--max); margin: 0 auto 40px; }
.foot p { margin: 12px 0 0; max-width: 28em; }
.foot h4 { font: 600 .92rem/1 var(--sans); color: var(--paper); margin-bottom: 14px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot a { color: var(--mute); text-decoration: none; }
.foot a:hover { color: var(--paper); text-decoration: underline; }
.copy { max-width: var(--max); margin: 0 auto; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.legal-nav { display: flex; flex-wrap: wrap; gap: 6px 24px; }
.legal-nav a { color: var(--mute); }
.legal-nav a:hover { color: var(--paper); }

/* Pages de texte et 404 */
.prose { max-width: 800px; padding: calc(var(--head) + 70px) var(--gutter) 90px; }
.prose h1 { font-size: clamp(2.3rem, 6vw, 4rem); line-height: 1.05; letter-spacing: -.02em; margin-bottom: 14px; }
.prose h2 { font-size: 1.7rem; margin: 46px 0 10px; }
.prose p, .prose li { color: var(--soft); max-width: 68ch; }
.prose .meta { color: var(--mute); font-size: .95rem; }
.notice { border-left: 2px solid var(--brass); background: var(--ink-2); padding: 16px 20px; color: var(--mute); font-size: .95rem; }
.notfound { min-height: 100svh; display: grid; align-content: center; padding: calc(var(--head) + 30px) var(--gutter) 60px; }
.notfound .big { font: 300 clamp(6rem, 26vw, 18rem)/.85 var(--serif); margin: 0 0 18px -.03em; color: transparent; -webkit-text-stroke: 1px var(--brass); }
.notfound h1 { font-size: clamp(1.9rem, 4vw, 3rem); margin-bottom: 12px; }
.notfound p { color: var(--mute); margin: 0 0 30px; }
.local-warn { position: fixed; z-index: 400; left: 0; right: 0; bottom: 0; background: var(--brass); color: var(--ink); padding: 14px var(--gutter); font-weight: 600; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 960px) {
  .nav { display: none; }
  .services, .steps { grid-template-columns: 1fr; }
  .about, .contact { grid-template-columns: 1fr; }
  .foot { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  :root { --head: 64px; }
  .form-grid { grid-template-columns: 1fr; }
  .gallery { columns: 1; }
  .tile .cap, .tile::after { opacity: 1; translate: 0 0; }
  .tile::after { background: linear-gradient(to top, rgba(10,13,18,.7), transparent 40%); }
  .hero { min-height: max(520px, calc(100svh - 120px)); }
  .hero-cap { display: none; }
  .lb-prev, .lb-next { top: auto; bottom: 16px; translate: 0 0; }
  .lb-prev { left: 16px; } .lb-next { right: 16px; }
  .foot { grid-template-columns: 1fr; }
  .logo { font-size: 1.4rem; }
}
@media (min-width: 641px) and (max-width: 1000px) { .gallery { columns: 2; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .slide img { transition: none; transform: none; }
  .cue i::after { animation: none; top: 0; }
  html.js .hero-copy > * { opacity: 1; translate: 0 0; animation: none; }
  html.js .tile img { opacity: 1; }
  * { transition-duration: .01ms !important; }
}

/* ═══════════ Effets modernes (avec repli : sans support, le site reste identique) ═══════════ */

/* 1. Transitions entre pages (index ↔ pages légales) : fondu, l'en-tête reste en place */
@view-transition { navigation: auto; }
.site-header { view-transition-name: site-header; }
::view-transition-old(root) { animation: vt-out .28s ease both; }
::view-transition-new(root) { animation: vt-in .38s ease .06s both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; } }

/* 2. Changement de filtre : les photos glissent vers leur nouvelle place */
::view-transition-group(*) { animation-duration: .5s; animation-timing-function: var(--ease); }
::view-transition-old(root), ::view-transition-new(root) { mix-blend-mode: normal; }

/* 3. Animations pilotées par le défilement (CSS pur, sans JavaScript) */
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.4s ease; }
.hero-video.ready { opacity: 1; }

@supports (animation-timeline: view()) {
  /* barre de progression de lecture, sous l'en-tête */
  .site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--brass); transform-origin: left; scale: 0 1;
    animation: progress linear both; animation-timeline: scroll(root); }
  .admin-page .site-header::after { display: none; }
  @keyframes progress { to { scale: 1 1; } }

  /* le haut de page se retire doucement : la photo recule, le texte s'estompe */
  .slides { animation: hero-depth linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
  @keyframes hero-depth { to { translate: 0 14vh; scale: 1.06; } }
  .hero-copy { animation: hero-leave linear both; animation-timeline: scroll(root); animation-range: 0 55vh; }
  @keyframes hero-leave { to { opacity: 0; translate: 0 -40px; } }

  /* apparition des blocs à l'entrée dans l'écran */
  html.js .s-head, html.js .services > *, html.js .steps > li, html.js .about > *, html.js .quotes > *, html.js .faq, html.js .contact > * {
    animation: rise linear both; animation-timeline: view(); animation-range: entry 5% entry 55%; }
  @keyframes rise { from { opacity: 0; translate: 0 36px; } }
  /* légère cascade entre colonnes voisines */
  html.js .services > :nth-child(2), html.js .steps > li:nth-child(2) { animation-range: entry 12% entry 62%; }
  html.js .services > :nth-child(3), html.js .steps > li:nth-child(3) { animation-range: entry 19% entry 69%; }

  /* galerie : chaque photo se découvre en glissant légèrement */
  html.js .tile { animation: tile-in linear both; animation-timeline: view(); animation-range: entry 0% entry 45%; }
  @keyframes tile-in { from { clip-path: inset(14% 0 0 0); } to { clip-path: inset(0); } }
}

@media (prefers-reduced-motion: reduce) {
  .site-header::after, .slides, .hero-copy, .s-head, .services > *, .steps > li, .about > *, .quotes > *, .faq, .contact > *, .tile { animation: none !important; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
  .hero-video { display: none; }
}

/* ═══════════════ Espace privé (galeries clientes) ═══════════════ */
.vault-tag { color: var(--mute); font-size: .92rem; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; }
.vault { min-height: 100svh; padding: calc(var(--head) + 56px) var(--gutter) 80px; max-width: 1500px; margin: 0 auto; }
.gate { max-width: 440px; margin: 8vh auto 0; background: var(--ink-2); border: 1px solid var(--line); border-radius: 6px; padding: 40px 36px; display: grid; gap: 16px; justify-items: start; }
.gate h1 { font-size: 2.2rem; line-height: 1.1; }
.gate-icon { width: 38px; height: 38px; color: var(--brass); }
.gate-lead { margin: 0; color: var(--soft); }
.gate .field { width: 100%; }
.gate input { text-transform: uppercase; letter-spacing: .18em; font-size: 1.3rem; text-align: center; }
.gate .cta { width: 100%; justify-content: center; }
.gate-msg { margin: 0; min-height: 1.4em; color: var(--mute); font-size: .95rem; }
.gate-msg.bad { color: var(--danger); }
.vault-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 30px; margin-bottom: 36px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.vault-head h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); line-height: 1.08; }
.vault-sub { margin: 10px 0 0; color: var(--mute); }
.vault-gallery { columns: 3 320px; column-gap: 16px; }
.vault-tile { break-inside: avoid; margin: 0 0 16px; background: var(--ink-2); }
.vault-tile button { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.vault-tile img { width: 100%; height: auto; display: block; }
.vault-note { margin: 40px 0 0; color: var(--mute); font-size: .92rem; }
.vault-gallery, .vault-frame { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.vault-gallery img, .vault-frame img { pointer-events: none; }
.vault-tile button { cursor: zoom-in; }
.vault-frame { position: relative; display: inline-block; max-width: 100%; line-height: 0; overflow: hidden; }
.vault-frame img { max-width: 100%; max-height: calc(100vh - 150px); width: auto; height: auto; }
.vault-mark { position: absolute; inset: -30%; display: flex; flex-wrap: wrap; align-content: space-around; justify-content: space-around; rotate: -24deg; pointer-events: none; gap: 46px 30px; }
.vault-mark span { color: rgba(255,255,255,.16); font: 500 1rem/1 var(--sans); letter-spacing: .08em; white-space: nowrap; text-shadow: 0 0 2px rgba(0,0,0,.35); }
@media print { body.vault-page > * { display: none !important; } }

/* ═══════════════ ADMIN — même charte ═══════════════ */
.admin-page .site-header { position: relative; background: none; border: 0; }
.admin-wrap { max-width: 1500px; margin: 0 auto; padding: 0 var(--gutter) 80px; position: relative; z-index: 2; }
.login-box { max-width: 460px; margin: 8vh auto 0; background: var(--ink-2); border: 1px solid var(--line); border-radius: 6px; padding: 38px; }
.login-box h1 { font-size: 2.4rem; line-height: 1; margin: 0 0 8px; }
.login-box .sub { font: italic 400 1.25rem/1.2 var(--serif); color: var(--mute); margin: 0 0 26px; }
.tabs { display: flex; gap: 2px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin: 6px 0 28px; flex: 1; }
.tab { background: none; border: 0; color: var(--mute); padding: 14px 18px; cursor: pointer; font: 500 .98rem/1 var(--sans); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tab:hover { color: var(--paper); }
.tab[aria-selected="true"] { color: var(--paper); border-bottom-color: var(--brass); }
.badge { background: var(--brass); color: var(--ink); border-radius: 999px; padding: 2px 8px; font-size: .74rem; margin-left: 6px; font-weight: 700; }
.topbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--ink-3); color: var(--paper); border: 1px solid var(--line); border-radius: 3px; padding: 11px 18px; font: 600 .92rem/1 var(--sans); cursor: pointer; min-height: 44px; text-decoration: none; transition: border-color .2s, background .2s; }
.btn:hover { border-color: var(--mute); color: var(--paper); }
.btn.primary { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn.primary:hover { background: var(--brass); border-color: var(--brass); color: var(--ink); }
.btn.danger { color: var(--danger); }
.btn.sm { padding: 8px 13px; min-height: 36px; font-size: .84rem; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.panel { background: var(--ink-2); border: 1px solid var(--line); border-radius: 6px; padding: 26px; margin-bottom: 22px; }
.panel h2 { font-size: 1.5rem; margin: 0 0 16px; }
.h-big { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.05; letter-spacing: -.02em; margin: 0 0 18px; }

.studio { display: grid; grid-template-columns: 270px minmax(0, 1fr) 330px; gap: 18px; align-items: start; }
.pane { background: var(--ink-2); border: 1px solid var(--line); border-radius: 6px; padding: 16px; }
.pane h2 { font-size: 1.25rem; margin: 2px 4px 12px; }
.qlist { list-style: none; margin: 0; padding: 2px; display: grid; gap: 8px; max-height: 62vh; overflow: auto; }
.q { display: grid; grid-template-columns: 58px 1fr auto; gap: 10px; align-items: center; padding: 6px; border: 1px solid transparent; border-radius: 4px; cursor: pointer; background: transparent; width: 100%; text-align: left; }
.q:hover { background: var(--ink-3); }
.q[aria-current="true"] { border-color: var(--brass); background: var(--ink-3); }
.q canvas, .q img { width: 58px; height: 58px; object-fit: cover; border-radius: 3px; background: var(--ink); }
.q .t { font-size: .92rem; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; color: var(--paper); }
.q .s { font-size: .78rem; color: var(--mute); display: block; }
.q[data-st="ok"] .s { color: var(--ok); } .q[data-st="error"] .s { color: var(--danger); }
.q .rm { background: none; border: 0; color: var(--mute); cursor: pointer; font-size: 1.2rem; padding: 4px 8px; border-radius: 4px; }
.q .rm:hover { color: var(--danger); background: var(--ink); }
.stage { min-height: 420px; display: grid; grid-template-rows: 1fr auto; gap: 14px; }
.canvas-wrap { display: grid; place-items: center; min-height: 380px; background: repeating-conic-gradient(#121820 0 25%, #0e131a 0 50%) 0 0 / 22px 22px; border-radius: 4px; overflow: hidden; padding: 10px; }
.canvas-wrap canvas { max-width: 100%; max-height: 62vh; width: auto; height: auto; box-shadow: 0 20px 60px -20px #000; }
.drop { border: 1px dashed rgba(236,232,224,.3); border-radius: 6px; padding: clamp(30px, 8vw, 90px) 24px; text-align: center; color: var(--mute); cursor: pointer; display: grid; gap: 8px; place-items: center; transition: border-color .25s, background .25s, color .25s; }
.drop strong { font: 400 clamp(1.6rem, 3vw, 2.3rem)/1.1 var(--serif); color: var(--paper); }
.drop em { font: italic 400 1.25rem/1.2 var(--serif); }
.drop.over, .drop:hover { border-color: var(--brass); background: rgba(201,168,108,.06); color: var(--paper); }
.tools { display: flex; flex-wrap: wrap; gap: 8px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 3px; overflow: hidden; }
.seg button { background: none; border: 0; padding: 9px 14px; font: 600 .84rem/1 var(--sans); color: var(--mute); cursor: pointer; }
.seg button:hover { color: var(--paper); }
.seg button[aria-pressed="true"] { background: var(--paper); color: var(--ink); }
.inspector .field { margin-bottom: 14px; }
.inspector input, .inspector textarea, .inspector select, dialog.modal input, dialog.modal textarea { font-size: 1rem; }
.inspector input[type="range"], .panel input[type="range"] { padding: 0; min-height: 28px; border: 0; accent-color: var(--brass); background: none; }
.rng { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 10px; margin-bottom: 10px; }
.rng output { color: var(--mute); font-size: .85rem; font-variant-numeric: tabular-nums; }
.rng input { grid-column: 1 / -1; }
.send-bar { margin-top: 14px; display: grid; gap: 10px; }
.progress { height: 4px; background: var(--ink-3); border-radius: 99px; overflow: hidden; }
.progress > i { display: block; height: 100%; width: 0; background: var(--brass); transition: width .3s ease; }
.hint { color: var(--mute); font-size: .88rem; margin: 6px 0 0; }
.est { color: var(--mute); font-size: .88rem; }

.admin-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.card { background: var(--ink-2); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; display: grid; grid-template-rows: auto 1fr; position: relative; transition: transform .25s var(--ease), border-color .2s; }
.card[draggable="true"] { cursor: grab; }
.card.dragging { opacity: .4; }
.card.over { border-color: var(--brass); transform: scale(1.02); }
.card.sel { border-color: var(--brass); box-shadow: 0 0 0 1px var(--brass) inset; }
.card .thumb { aspect-ratio: 4 / 3; background: var(--ink); position: relative; overflow: hidden; }
.card .thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card .body { padding: 10px 12px 12px; display: grid; gap: 8px; align-content: start; }
.card h3 { margin: 0; font: 600 .95rem/1.25 var(--sans); color: var(--paper); overflow-wrap: anywhere; }
.card .pick { position: absolute; left: 8px; top: 8px; width: 24px; height: 24px; accent-color: var(--brass); z-index: 2; cursor: pointer; padding: 0; min-height: 0; }
.pill { display: inline-block; font-size: .72rem; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line); color: var(--mute); }
.pill.pub { color: var(--ok); border-color: rgba(143,220,170,.4); }
.pill.priv { color: var(--brass); border-color: rgba(201,168,108,.45); }
.bulk { position: sticky; top: 10px; z-index: 10; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; background: var(--paper); color: var(--ink); padding: 10px 14px; border-radius: 4px; margin-bottom: 16px; }
.bulk .btn { background: var(--ink); color: var(--paper); }
.bulk .btn.danger { color: var(--danger); }
dialog.modal { background: var(--ink-2); color: var(--soft); border: 1px solid var(--line); border-radius: 6px; padding: 28px; width: min(560px, 94vw); max-height: 92vh; overflow: auto; }
dialog.modal::backdrop { background: rgba(6,8,12,.78); backdrop-filter: blur(4px); }
dialog.modal h2 { font-size: 1.8rem; margin: 0 0 18px; }
dialog.modal .field { margin-bottom: 14px; }
.msg { background: var(--ink-2); border: 1px solid var(--line); border-radius: 6px; padding: 18px 20px; margin-bottom: 12px; }
.msg.unread { border-left: 3px solid var(--brass); }
.msg header { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 14px; margin-bottom: 8px; }
.msg .who { font-weight: 700; color: var(--paper); } .msg .when { color: var(--mute); font-size: .86rem; }
.msg p { margin: 8px 0 14px; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--soft); }
.bars { display: flex; align-items: flex-end; gap: 3px; height: 160px; padding: 8px 0; }
.bars .bar { flex: 1; background: var(--brass); opacity: .85; min-height: 2px; border-radius: 2px 2px 0 0; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 22px; }
.kpi { background: var(--ink-2); border: 1px solid var(--line); border-radius: 6px; padding: 18px; }
.kpi b { display: block; font: 400 2.6rem/1 var(--serif); color: var(--paper); }
.kpi span { color: var(--mute); font-size: .9rem; }
table.simple { width: 100%; border-collapse: collapse; font-size: .96rem; }
table.simple td { padding: 9px 4px; border-bottom: 1px solid var(--line); }
table.simple td:last-child { text-align: right; color: var(--mute); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.toast { position: fixed; left: 50%; bottom: 24px; translate: -50% 0; background: var(--paper); color: var(--ink); padding: 12px 22px; border-radius: 3px; font-weight: 600; z-index: 500; animation: enter .3s ease both; }
@media (max-width: 1100px) { .studio { grid-template-columns: 1fr; } .qlist { max-height: none; grid-auto-flow: column; grid-auto-columns: 220px; overflow-x: auto; } }
@media (max-width: 720px) { .two { grid-template-columns: 1fr; } }

/* Admin : espace privé */
.vstate { margin-right: 8px; }
.vstate.ok { color: #8fd0a4; border-color: rgba(143,208,164,.4); }
.vstate.warn { color: var(--brass); border-color: rgba(201,168,108,.5); }
.vstate.off { color: var(--danger); border-color: rgba(230,120,120,.4); }
.pinbox { font: 600 1.6rem/1 var(--sans); letter-spacing: .25em; text-align: center; }
.vault-log { margin-top: 34px; color: var(--soft); }
.vault-log summary { cursor: pointer; margin-bottom: 10px; }
.vault-log ul { margin: 0; padding-left: 20px; line-height: 1.8; }
.vault-card { margin-bottom: 14px; }
.row + .h-big { margin-top: 22px; }
