/* Liashoot — fond blanc, olive et terracotta. Mobile d'abord. */

@font-face {
  font-family: Archivo;
  src: url('assets/archivo.woff2') format('woff2');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: Cormorant;
  src: url('assets/cormorant-italic.woff2') format('woff2');
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'DM Mono';
  src: url('assets/dm-mono.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

:root {
  /* Palette : toutes les couleurs du site viennent de ces variables. */
  --paper: #ffffff;          /* fond des pages : blanc */
  --card: #ffffff;           /* tirage papier (À propos) */
  --surface: #f4f2ec;        /* aplats : pellicule, cadres en attente */
  --surface-2: #e7e4d9;
  --ink: #22231a;            /* texte : noir olive */
  --ink-soft: #3d3c2f;       /* paragraphes */
  --muted: #6a6656;          /* légendes, marquages */
  --accent: #505b25;         /* olive : titres, wordmark */
  --accent-soft: #838d4c;    /* olive nuancée : mots en italique des titres */
  --contrast: #b04e2c;       /* terracotta : boutons, repères, puces */
  --contrast-hover: #983f22;
  --on-contrast: #ffffff;    /* texte sur les boutons */
  --line: color-mix(in srgb, var(--ink) 18%, transparent);
  --sans: Archivo, 'Helvetica Neue', Arial, sans-serif;
  --serif: Cormorant, Georgia, serif;
  --mono: 'DM Mono', ui-monospace, Menlo, monospace;
  --pad: 20px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --header: 60px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.6 var(--sans);
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  font-variant-emoji: text;
  overflow-x: clip;
}
body.dialog-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; touch-action: manipulation; }
a, button, input, textarea, summary { -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, ul, figure, fieldset { margin: 0; padding: 0; }
ul { list-style: none; }
fieldset { border: 0; min-width: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--contrast); outline-offset: 4px; }
::selection { background: var(--accent); color: var(--paper); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1.25em; height: 1.25em; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 100; padding: 12px 18px; background: var(--ink); color: var(--paper); transform: translateY(-200%); }
.skip-link:focus { transform: none; }
.wrap { padding-inline: var(--pad); max-width: 1680px; margin-inline: auto; }

/* Typographie */
.display {
  color: var(--accent);
  font-family: var(--sans);
  font-weight: 800;
  font-stretch: 62%;
  text-transform: uppercase;
  line-height: .86;
  letter-spacing: -.012em;
  font-size: clamp(54px, 17.500vw, 200px);
}
.display em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-stretch: 100%;
  text-transform: none;
  letter-spacing: -.03em;
  color: var(--accent-soft);
  font-size: 1.04em;
  line-height: .8;
}
.mono {
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--muted);
}
.mono .idx { color: var(--contrast); margin-right: .8em; }
.mono i, .band i { display: inline-block; width: .5em; height: .5em; margin: 0 .5em; border-radius: 50%; background: var(--contrast); vertical-align: .08em; }

/* Boutons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 56px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: none;
  font: 700 14px/1 var(--sans);
  font-stretch: 88%;
  letter-spacing: .05em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background .3s, color .3s, border-color .3s, transform .5s var(--ease);
}
.btn .icon { transition: transform .5s var(--ease); }
.btn-primary { background: var(--contrast); color: var(--on-contrast); }
.btn-ghost { border-color: var(--line); color: var(--ink); }
.btn-dark { background: var(--contrast); color: var(--on-contrast); }
.btn-xl { min-height: 68px; padding-inline: 32px; font-size: 16px; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 50%; background: none; font-size: 16px; flex-shrink: 0; transition: background .3s, color .3s; }
.link-line { display: inline-flex; align-items: center; min-height: 48px; font: 400 12px var(--mono); letter-spacing: .09em; text-transform: uppercase; text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--muted); }
@media (hover: hover) {
  .btn-primary:hover { background: var(--contrast-hover); color: var(--on-contrast); }
  .btn-ghost:hover { border-color: var(--ink); }
  .btn-dark:hover { background: var(--contrast-hover); color: var(--on-contrast); }
  .btn:hover .icon { transform: translate(3px, -3px); }
  .icon-button:hover { background: var(--accent); border-color: var(--accent); color: var(--paper); }
}

/* Contact direct : WhatsApp, Instagram, e-mail */
.contact-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.contact-actions .btn { flex: 1 1 100%; }
.contact-actions .icon-button { width: 56px; height: 56px; font-size: 19px; }
.contact-actions-xl .icon-button { width: 64px; height: 64px; font-size: 21px; }

/* En-tête */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: var(--header);
  padding: env(safe-area-inset-top) var(--pad) 0;
  color: var(--ink);
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  pointer-events: none;
}
.site-header > * { pointer-events: auto; }
.wordmark { font: 800 21px/1 var(--sans); font-stretch: 62%; letter-spacing: .01em; text-transform: uppercase; padding: 12px 0; }
.wordmark em { font: italic 500 1.2em/1 var(--serif); letter-spacing: 0; text-transform: none; color: var(--accent); }
.site-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: calc(100dvh - var(--header));
  display: flex;
  flex-direction: column;
  padding: 18px var(--pad) calc(24px + env(safe-area-inset-bottom));
  background: var(--paper);
  overflow-y: auto;
  overscroll-behavior: contain;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity .3s, transform .5s var(--ease), visibility 0s .5s;
}
.menu-open .site-nav { visibility: visible; opacity: 1; transform: none; transition: opacity .3s, transform .5s var(--ease); }
.site-nav > a { padding: 8px 0 6px; border-bottom: 1px solid var(--line); color: var(--accent); font: 800 clamp(46px, 15vw, 92px)/.95 var(--sans); font-stretch: 62%; text-transform: uppercase; }
.site-nav > a[aria-current="page"] { color: var(--ink); }
.nav-extra { display: grid; gap: 16px; margin-top: auto; padding-top: 28px; }
.nav-extra > a { justify-self: start; min-height: 40px; display: inline-flex; align-items: center; color: var(--ink); text-decoration: underline; text-underline-offset: 5px; }
body.menu-open { overflow: hidden; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.menu-toggle { display: none; width: 40px; height: 40px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: none; color: var(--ink); }
.js .menu-toggle { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.menu-toggle span { display: block; width: 16px; height: 1.5px; background: currentColor; transition: transform .4s var(--ease); }
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.250px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.250px) rotate(-45deg); }
.header-cta { display: inline-flex; align-items: center; min-height: 40px; padding: 0 18px; border: 1px solid currentColor; border-radius: 999px; font: 700 12px/1 var(--sans); font-stretch: 88%; letter-spacing: .06em; text-transform: uppercase; }

/* Hero : tirages flottants (WebGL) autour de la photo d'ouverture ; grand titre sur ordinateur seulement. */
.hero {
  position: relative;
  min-height: calc(var(--header) + 14px + min(74vw, 44svh) * 4 / 3 + 156px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: calc(var(--header) + 16px) var(--pad) 28px;
  overflow: hidden;
  isolation: isolate;
}
.gl-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1s ease; pointer-events: none; }
.gl-canvas.is-live { opacity: 1; }
.hero .gl-canvas { z-index: 1; }
.hero-frame {
  position: absolute;
  top: calc(var(--header) + 14px);
  left: 50%;
  width: min(74vw, 44svh);
  aspect-ratio: 3 / 4;
  transform: translateX(-50%);
  background: var(--surface);
  z-index: 0;
}
.hero-image { width: 100%; height: 100%; object-fit: cover; }
.hero-copy { position: relative; z-index: 3; }
.hero-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.hero-title .line { display: block; overflow: hidden; padding-top: .06em; margin-top: -.06em; }
.hero-title .line > span { display: block; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 22px; }
.hero-actions .btn { flex: 1 1 auto; }
.reel .strip-item { height: min(54svh, 470px); }
.motion-ready .reel { scroll-snap-type: none; }
@media (min-width: 900px) and (max-height: 640px) { .hero-title { font-size: clamp(52px, 17vw, 120px); } }

/* Têtes de section */
.section-head { display: grid; gap: 14px; margin-bottom: 28px; }
.section-head .hint { justify-self: start; }

/* Bande pellicule (sélection) */
.strip {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--pad);
  padding: 26px var(--pad);
  scrollbar-width: none;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--ink) 20%, transparent) 0 9px, transparent 9px) 0 9px / 21px 7px repeat-x local,
    linear-gradient(90deg, color-mix(in srgb, var(--ink) 20%, transparent) 0 9px, transparent 9px) 0 calc(100% - 9px) / 21px 7px repeat-x local,
    var(--surface);
}
.strip::-webkit-scrollbar { display: none; }
.strip-item { position: relative; flex: 0 0 auto; height: min(58svh, 460px); scroll-snap-align: center; margin: 0; }
.strip-item button { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: var(--paper); position: relative; overflow: hidden; }
.strip-item img { height: 100%; width: auto; max-width: none; }
.strip-item figcaption { position: absolute; left: 10px; bottom: 10px; color: #fff; text-shadow: 0 1px 6px rgba(0, 0, 0, .7); pointer-events: none; }

/* Bandeau cinétique */
.band { overflow: hidden; padding: 34px 0 30px; contain: layout paint; }
.band-track { display: flex; width: max-content; animation: band 36s linear infinite; }
.band-track > span {
  flex-shrink: 0;
  white-space: pre;
  font: 800 clamp(72px, 22vw, 240px)/.9 var(--sans);
  font-stretch: 62%;
  font-variation-settings: 'wdth' var(--wdth, 62);
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1px color-mix(in srgb, var(--ink) 40%, transparent);
}
.band em { font: italic 500 1em/.8 var(--serif); text-transform: none; color: var(--accent-soft); -webkit-text-stroke: 0; }
.band i { width: .16em; height: .16em; margin: 0 .22em; vertical-align: .28em; }
@keyframes band { to { transform: translateX(-50%); } }

/* Planche-contact */
.sheet { padding-top: 40px; padding-bottom: 72px; }
.sheet .section-head .display, .themes .section-head .display, .about .display, .closing .display { font-size: clamp(48px, 15vw, 170px); }
.filters { display: flex; gap: 8px; overflow-x: auto; margin: 0 calc(var(--pad) * -1) 22px; padding: 4px var(--pad); scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.filter { flex-shrink: 0; min-height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: none; font: 400 11px var(--mono); letter-spacing: .09em; text-transform: uppercase; color: var(--ink); transition: background .3s, color .3s, border-color .3s; }
.filter sup { margin-left: 6px; color: var(--muted); font-size: 9px; }
.filter.active { background: var(--accent); border-color: var(--accent); color: var(--paper); }
.filter.active sup { color: var(--paper); }
.sheet-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: dense; gap: 18px 8px; min-height: 120px; }
.frame { position: relative; min-width: 0; }
.frame.is-wide { grid-column: span 2; }
.frame-btn { position: relative; display: block; width: 100%; aspect-ratio: 4 / 5; padding: 0; border: 0; background: var(--surface); overflow: hidden; }
.is-wide .frame-btn { aspect-ratio: 3 / 2; }
.frame-btn img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.frame figcaption { display: flex; justify-content: space-between; gap: 8px; padding-top: 7px; font-size: 10px; }
.frame figcaption span:last-child { color: var(--ink); }
.sheet-foot { display: grid; gap: 12px; margin-top: 30px; justify-items: stretch; }
.noscript-note { padding: 20px 0; color: var(--muted); }
.noscript-note a { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
@media (hover: hover) { .frame-btn:hover img { transform: scale(1.05); } }

/* Prestations */
.themes { padding-top: 40px; padding-bottom: 80px; }
.theme-list { border-top: 1px solid var(--line); }
.theme-row {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 4px 14px;
  padding: 14px 0 12px;
  border-bottom: 1px solid var(--line);
  transition: color .3s, padding .5s var(--ease);
}
.theme-num { align-self: start; padding-top: 8px; }
.themes .theme-name { font-size: clamp(42px, 13.500vw, 132px); line-height: .9; }
.theme-eyebrow { grid-column: 2; }
.theme-thumb { grid-row: 1 / span 2; grid-column: 3; width: 58px; height: auto; aspect-ratio: 4 / 5; object-fit: cover; background: var(--surface); }
.theme-row .icon { grid-row: 1 / span 2; grid-column: 3; justify-self: end; width: 26px; height: 26px; color: var(--contrast); }
.theme-row:has(.theme-thumb) .icon { display: none; }
.theme-row:active { color: var(--accent); }
@media (hover: hover) { .theme-row:hover { color: var(--accent); padding-left: 14px; } }

/* À propos — le tirage sur papier */
.about { background: var(--paper); color: var(--ink); padding: 72px 0 80px; }
.about .mono { color: var(--muted); }
.about-inner { display: grid; gap: 44px; }
.about-photos { position: relative; padding: 0 16% 18% 0; max-width: 560px; }
.about-main { position: relative; overflow: hidden; background: var(--surface-2); }
.about-main img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.about-detail { position: absolute; right: 0; bottom: 0; width: 52%; padding: 7px 7px 0; background: var(--card); box-shadow: 0 14px 34px rgba(11, 10, 9, .10); transform: rotate(5deg); }
.about-detail img { width: 100%; height: auto; }
.about-detail .mono { display: block; padding: 8px 0 9px; font-size: 8px; text-align: center; color: var(--ink); }
.about-copy .display { margin: 16px 0 22px; }
.about-lead { font: italic 500 27px/1.2 var(--serif); letter-spacing: -.01em; margin-bottom: 18px; max-width: 22ch; }
.about-copy > p:not(.mono):not(.about-lead) { max-width: 44ch; color: var(--ink-soft); }
.about-copy > p + p { margin-top: 12px; }
.about-copy .btn { margin-top: 28px; }

/* Appel final */
.closing { position: relative; min-height: 92svh; display: flex; align-items: flex-end; padding: 96px 0 calc(40px + env(safe-area-inset-bottom)); overflow: hidden; isolation: isolate; background: var(--paper); }
.closing::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, color-mix(in srgb, var(--paper) 15%, transparent), color-mix(in srgb, var(--paper) 94%, transparent) 72%); z-index: 1; pointer-events: none; }
.closing-inner { position: relative; z-index: 2; width: 100%; }
.closing .display { margin: 14px 0 18px; }
.closing-sub { max-width: 34ch; color: var(--muted); }
.closing .contact-actions { margin-top: 26px; }
.direct-links { display: flex; flex-wrap: wrap; gap: 4px 24px; margin-top: 22px; font: 400 12px var(--mono); letter-spacing: .05em; }
.direct-links a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; overflow-wrap: anywhere; }

/* Pied de page */
.site-footer { padding: 64px 0 calc(112px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.footer-top { display: grid; gap: 26px; }
.footer-wordmark { display: block; font-size: clamp(64px, 21vw, 300px); }
.footer-pitch { display: grid; gap: 20px; align-content: end; }
.footer-tagline { max-width: 34ch; color: var(--muted); font-size: 15px; line-height: 1.5; }
.footer-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 20px; margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); }
.footer-col { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; font-size: 14px; }
.footer-col .mono { margin-bottom: 6px; color: var(--contrast); }
.footer-col a { display: inline-flex; align-items: center; min-height: 40px; max-width: 100%; overflow-wrap: anywhere; transition: color .25s; }
.footer-col a[aria-current="page"] { color: var(--accent); }
.footer-col:last-child { grid-column: 1 / -1; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 20px; margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 10px; }
.footer-up { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; color: var(--ink); }
@media (hover: hover) { .footer-col a:hover, .footer-up:hover { color: var(--accent); } }

/* Barre de contact fixe (mobile) */
.cta-bar {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 25;
  display: flex;
  gap: 10px;
  padding: 10px var(--pad) calc(10px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--ink) 6%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  transform: translateY(110%);
  transition: transform .6s var(--ease);
}
.cta-bar.is-visible { transform: none; }
.cta-bar .btn { flex: 1; min-height: 52px; }
.cta-bar-icon { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border: 1px solid var(--line); border-radius: 50%; font-size: 19px; flex-shrink: 0; }

/* Champs (générateur de liens de livraison) */
.field { display: block; margin-bottom: 18px; font: 400 11px var(--mono); letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.field legend { padding: 0; margin-bottom: 10px; }
.field small { font-size: 9px; opacity: .8; margin-left: 4px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field input, .field textarea {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 48px;
  margin-top: 4px;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  font: 400 17px/1.3 var(--sans);
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
  transition: border-color .25s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: 1; }
.field input[type=date] { -webkit-appearance: none; appearance: none; text-align: left; }
.field input[type=date]::-webkit-date-and-time-value { text-align: left; }
.field textarea { resize: vertical; min-height: 84px; }
.field-error { margin-top: 8px; color: var(--contrast); }
.form-note, .form-status { margin-top: 12px; font-size: 12px; line-height: 1.5; color: var(--muted); }
.form-status:empty { display: none; }
.form-status { color: var(--ink); }
.form-status a { color: var(--contrast); text-decoration: underline; text-underline-offset: 3px; }

/* Visionneuse */
dialog { color: var(--ink); }
.lightbox { position: fixed; inset: 0; width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: calc(10px + env(safe-area-inset-top)) 14px calc(14px + env(safe-area-inset-bottom)); border: 0; background: var(--paper); overflow: hidden; }
.lightbox::backdrop { background: var(--paper); }
.lightbox[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 10px; }
.lightbox-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.lightbox-top .mono { color: var(--ink); }
.lightbox-stage { position: relative; min-height: 0; display: grid; place-items: center; touch-action: pan-y pinch-zoom; }
.lightbox-stage img { max-width: 100%; max-height: 100%; width: 100%; height: 100%; min-height: 0; object-fit: contain; will-change: transform; }
.lightbox-arrow { display: inline-flex; position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; background: color-mix(in srgb, var(--paper) 80%, transparent); }
.lightbox-prev { left: 0; }
.lightbox-next { right: 0; }
.lightbox-bottom { display: grid; gap: 10px; }
.lightbox-bottom .mono { color: var(--ink); }

/* Mouvement — uniquement quand JavaScript l'active et que l'utilisateur l'accepte */
.motion-ready [data-reveal] { opacity: 0; transform: translate3d(0, 28px, 0); transition: opacity .9s var(--ease), transform 1.1s var(--ease); transition-delay: var(--reveal-delay, 0ms); }
.motion-ready [data-reveal].is-visible { opacity: 1; transform: none; }
.motion-ready .dev[data-reveal] { opacity: 1; transform: none; }
.motion-ready .hero-title .line > span { transform: translateY(105%); animation: line-up 1.1s var(--ease) forwards; animation-delay: calc(.15s + var(--i, 0) * .09s); }
.motion-ready .hero-title .line:nth-child(2) > span { --i: 1; }
.motion-ready .hero-title .line:nth-child(3) > span { --i: 2; }
.motion-ready .hero-actions { opacity: 0; animation: fade-up .9s var(--ease) .55s forwards; }
@keyframes line-up { to { transform: none; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
::view-transition-group(photo) { animation-duration: .5s; animation-timing-function: cubic-bezier(.22, 1, .36, 1); }

@media (min-width: 768px) {
  :root { --pad: 32px; }
  .sheet-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 12px; }
  .sheet-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; }
  .hero-actions .btn { flex: 0 0 auto; }
  .contact-actions .btn { flex: 0 0 auto; }
  .lightbox { padding: 18px 24px 20px; }
  .lightbox-bottom { grid-template-columns: 1fr auto; align-items: center; }
  .lightbox-bottom small { grid-column: 1; }
  .lightbox-bottom .btn { grid-column: 2; grid-row: 1 / span 2; }
}

@media (min-width: 900px) {
  :root { --pad: 48px; --header: 76px; }
  body { font-size: 17px; }
  .site-nav { position: static; height: auto; flex-direction: row; gap: 32px; padding: 0; background: none; overflow: visible; visibility: visible; opacity: 1; transform: none; transition: none; font: 400 11px var(--mono); letter-spacing: .09em; text-transform: uppercase; }
  .site-nav > a { padding: 12px 0; border: 0; color: inherit; font: inherit; }
  .site-nav > a[aria-current="page"] { color: var(--accent); }
  .nav-extra, .js .menu-toggle { display: none; }
  .wordmark { font-size: 26px; }
  .cta-bar { display: none; }
  .hero { min-height: 100svh; padding-bottom: 44px; }
  .hero-frame { top: 50%; left: 66%; width: min(30vw, 58svh); transform: translate(-50%, -52%); }
  .hero::after { content: ''; position: absolute; inset: 55% 0 0 0; background: linear-gradient(to bottom, transparent, color-mix(in srgb, var(--paper) 70%, transparent)); z-index: 2; pointer-events: none; }
  .hero-title { position: static; width: auto; height: auto; overflow: visible; clip-path: none; white-space: normal; margin-bottom: 30px; font-size: clamp(120px, 15.500vw, 300px); }
  .reel .strip-item { height: min(64svh, 620px); }
  .section-head { grid-template-columns: 1fr auto; align-items: end; margin-bottom: 40px; }
  .section-head .hint { justify-self: end; padding-bottom: 12px; }
  .strip { padding-block: 34px; gap: 10px; }
  .strip-item { height: min(64svh, 620px); }
  .sheet { padding-top: 60px; padding-bottom: 120px; }
  .sheet-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px 16px; }
  .filters { flex-wrap: wrap; overflow: visible; margin-inline: 0; padding-inline: 0; margin-bottom: 34px; }
  .themes { padding-bottom: 130px; }
  .theme-row { grid-template-columns: 70px 1fr auto auto; padding: 18px 0 14px; }
  .theme-eyebrow { grid-column: 3; grid-row: 1; padding-right: 28px; }
  .theme-thumb { position: absolute; right: 12%; top: 50%; width: 190px; z-index: 2; opacity: 0; transform: translateY(-50%) rotate(-4deg) scale(.86); transition: opacity .35s, transform .6s var(--ease); pointer-events: none; }
  .theme-row .icon, .theme-row:has(.theme-thumb) .icon { display: block; grid-column: 4; grid-row: 1; width: 34px; height: 34px; }
  .theme-row:hover .theme-thumb, .theme-row:focus-visible .theme-thumb { opacity: 1; transform: translateY(-50%) rotate(3deg); }
  .about { padding: 130px 0 140px; }
  .about-inner { grid-template-columns: 1fr 1fr; gap: clamp(48px, 7vw, 130px); align-items: center; }
  .about-lead { font-size: 34px; }
  .closing { min-height: 100svh; padding-bottom: 72px; }
  .closing .display { font-size: clamp(110px, 14vw, 260px); }
  .direct-links { font-size: 13px; }
  .site-footer { padding: 110px 0 40px; }
  .footer-top { grid-template-columns: minmax(0, 1fr) minmax(0, 420px); align-items: end; gap: 48px; }
  .footer-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 64px; }
  .footer-col:last-child { grid-column: auto; }
  .lightbox-arrow { display: inline-flex; position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; background: color-mix(in srgb, var(--paper) 80%, transparent); }
  .lightbox-prev { left: 0; }
  .lightbox-next { right: 0; }
}

@media (min-width: 1300px) {
  :root { --pad: 72px; }
  .sheet-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .gl-canvas { display: none; }
}

/* ---------- Pages intérieures ---------- */
.about-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 24px; margin-top: 28px; }
.about-copy .about-actions .btn { margin-top: 0; }
.page-hero { padding: calc(var(--header) + 44px) 0 48px; }
.page-hero .display { margin: 14px 0 20px; font-size: clamp(54px, 17vw, 210px); }
.page-lead { max-width: 24ch; font: italic 500 26px/1.2 var(--serif); letter-spacing: -.01em; }
.page-intro { max-width: 46ch; margin-top: 14px; color: var(--muted); }
.page-hero .contact-actions { margin-top: 28px; }
.page-section { padding: 56px 0; }
.page-section > .wrap > .section-head .display, .page-section .section-head .display { font-size: clamp(44px, 13vw, 140px); }
.prose { max-width: 60ch; }
.prose p { color: var(--ink-soft); }
.prose p + p { margin-top: 14px; }
.page-split { display: grid; gap: 44px; }
.about-hero-grid { display: grid; grid-template-areas: "head" "photos" "text"; gap: 36px; }
.about-hero-head { grid-area: head; }
.about-hero-grid .about-photos { grid-area: photos; }
.about-hero-text { grid-area: text; display: grid; gap: 28px; }
.about-hero .page-lead { margin-top: 4px; }

/* À propos */
.theme-cloud { display: flex; flex-wrap: wrap; gap: 0 .3em; font: 800 clamp(40px, 12vw, 128px)/.98 var(--sans); font-stretch: 62%; text-transform: uppercase; }
.theme-cloud li { display: inline-flex; align-items: center; }
.theme-cloud li:not(:last-child)::after { content: ''; display: inline-block; width: .14em; height: .14em; margin-left: .3em; border-radius: 50%; background: var(--contrast); }
.theme-cloud a { color: var(--ink); transition: color .25s; }
.carnets .strip-item { height: min(52svh, 420px); }

/* Étapes et questions fréquentes */
.steps { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.step { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.step > .mono { grid-row: 1 / span 2; padding-top: 6px; color: var(--contrast); }
.step h3 { font: 800 clamp(32px, 9vw, 64px)/.95 var(--sans); font-stretch: 62%; text-transform: uppercase; }
.step p { max-width: 52ch; color: var(--muted); }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 14px 0; cursor: pointer; list-style: none; font: 700 17px/1.25 var(--sans); font-stretch: 88%; letter-spacing: .02em; text-transform: uppercase; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { color: var(--contrast); transition: transform .4s var(--ease); }
.faq details[open] summary .icon { transform: rotate(45deg); }
.faq details p { max-width: 62ch; padding: 0 0 22px; color: var(--muted); }
.direct-links-page { margin-top: 26px; }
.page-cta { border-top: 1px solid var(--line); }
.page-cta .display { margin: 14px 0 18px; }
.page-cta .contact-actions { margin-top: 26px; }

/* Mentions et confidentialité */
.legal { max-width: 760px; padding-bottom: 72px; }
.legal h2 { margin: 40px 0 10px; font: 700 15px var(--sans); font-stretch: 88%; letter-spacing: .06em; text-transform: uppercase; }
.legal p, .legal li { font-size: 15px; color: var(--ink-soft); }
.legal p + p { margin-top: 10px; }
.legal ul { margin-top: 10px; padding-left: 1.2em; list-style: disc; }
.legal li + li { margin-top: 6px; }
.legal a { text-decoration: underline; text-underline-offset: 3px; }
.legal-updated { margin-top: 48px; }
.todo { display: inline-block; padding: 1px 7px; border: 1px dashed var(--contrast); border-radius: 4px; color: var(--contrast); font: 400 11px/1.6 var(--mono); letter-spacing: .06em; text-transform: uppercase; }

/* Livraison client */
.delivery { min-height: 82svh; padding: calc(var(--header) + 40px) 0 72px; }
.delivery-state { display: grid; gap: 22px; justify-items: start; }
.delivery .display { margin: 6px 0 14px; font-size: clamp(50px, 14vw, 150px); overflow-wrap: anywhere; }
.delivery .display span { display: block; }
.delivery-message { max-width: 34ch; font: italic 500 24px/1.3 var(--serif); letter-spacing: -.01em; white-space: pre-line; }
.delivery-signature { margin-top: -10px; }
.delivery-download { display: grid; gap: 10px; justify-items: start; width: 100%; }
.delivery-download .btn { width: 100%; }
.delivery-tips { width: 100%; margin-top: 30px; }
.delivery .noscript-note { max-width: 46ch; }

/* Générateur de liens de livraison */
.generator { display: grid; gap: 32px; padding-bottom: 72px; }
.generator > * { min-width: 0; }
.generator-form { max-width: 640px; }
.field-hint { display: block; margin-top: 6px; font-size: 10px; letter-spacing: .05em; text-transform: none; color: var(--muted); }
.generator-output { display: grid; gap: 14px; align-content: start; padding: 22px; border-radius: 18px; background: var(--surface); }
.generator-output textarea { width: 100%; min-height: 110px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); font: 400 12px/1.45 var(--mono); resize: vertical; overflow-wrap: anywhere; }
.generator-actions { display: grid; gap: 10px; }
.generator-actions .btn { width: 100%; }
.btn[aria-disabled="true"], .btn:disabled, .link-line[aria-disabled="true"] { opacity: .4; pointer-events: none; }
@media (max-width: 400px) { .generator .field-row { grid-template-columns: 1fr; gap: 0; } }

/* 404 */
.notfound { min-height: 80svh; display: flex; align-items: center; }

@media (hover: hover) {
  .theme-cloud a:hover { color: var(--accent); }
}
@media (min-width: 768px) {
  .delivery-download .btn, .generator-actions .btn { width: auto; }
  .generator-actions { display: flex; flex-wrap: wrap; }
}
@media (min-width: 900px) {
  .page-hero { padding: calc(var(--header) + 80px) 0 72px; }
  .page-lead { font-size: 34px; }
  .page-section { padding: 96px 0; }
  .page-split { grid-template-columns: 1fr 1fr; gap: clamp(48px, 7vw, 130px); align-items: center; }
  .faq-split { align-items: start; }
  .about-hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "head photos" "text photos"; column-gap: clamp(48px, 7vw, 130px); row-gap: 32px; align-items: start; }
  .about-hero-grid .about-photos { position: sticky; top: calc(var(--header) + 32px); }
  .about-hero .display { font-size: clamp(80px, 8.5vw, 150px); }
  .faq-split .section-head { position: sticky; top: calc(var(--header) + 32px); }
  .page-cta .display { font-size: clamp(110px, 12vw, 220px); }
  .steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; border-top: 0; }
  .step { grid-template-columns: 1fr; align-content: start; padding: 22px 0 0; border-top: 1px solid var(--ink); border-bottom: 0; }
  .step > .mono { grid-row: auto; padding-top: 0; }
  .faq summary { font-size: 20px; min-height: 76px; }
  .delivery { padding-top: calc(var(--header) + 90px); }
  .delivery-tips .steps { margin-top: 10px; }
  .generator { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: start; gap: 56px; }
  .generator-output { position: sticky; top: calc(var(--header) + 24px); }
}
