/* Sudry Création : proposition de refonte (Refront)
   Couleurs tirées de sa photo de houppa sous verrière : le noir de salle (graphite des montants),
   le blanc de ses voilages, le vert du lierre qui retombe de la guirlande. */
:root {
  --night: oklch(0.175 0.012 250);        /* la salle avant la lumière : fond de l'histoire, du contact, du pied */
  --night-2: oklch(0.225 0.014 250);
  --voile: oklch(0.968 0.007 95);         /* le blanc de ses voilages : fond des réalisations */
  --voile-2: oklch(0.925 0.01 95);
  --ink: oklch(0.215 0.012 250);          /* l'encre */
  --ink-soft: oklch(0.44 0.012 250);
  --on-night: oklch(0.955 0.008 95);      /* texte sur le noir */
  --on-night-soft: oklch(0.8 0.012 250);
  --lierre: oklch(0.43 0.075 152);        /* le seul accent : filets, repères, états */
  --lierre-light: oklch(0.83 0.075 150);
  --error: oklch(0.5 0.16 28);
  --error-light: oklch(0.76 0.13 30);

  --font-display: 'Bodoni Moda', 'Bodoni 72', Didot, Georgia, serif;
  --font-body: 'Archivo', 'Segoe UI', system-ui, sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
  --gutter: clamp(16px, 5vw, 80px);
  --header-h: 60px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  /* boutons en contexte clair ; les sections sombres redéfinissent ces valeurs */
  --b-line: currentColor;
  --b-fill: var(--ink);
  --b-on-fill: var(--voile);
  --b-fill-hover: var(--lierre);
  margin: 0;
  background: var(--voile);
  color: var(--ink);
  font: 400 16px/1.55 var(--font-body);
  font-variation-settings: 'wdth' 100;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, dl, dd, figure, fieldset { margin: 0; padding: 0; }
ul { list-style: none; }
fieldset { border: 0; min-width: 0; }
button, input, textarea { font: inherit; color: inherit; }
::selection { background: var(--lierre); color: var(--voile); }

.skip {
  position: fixed; left: 12px; top: -80px; z-index: 50;
  padding: 12px 16px; background: var(--voile); color: var(--ink);
  font-weight: 600; text-decoration: none; transition: top 0.2s var(--ease);
}
.skip:focus-visible { top: 12px; outline: 2px solid var(--lierre); outline-offset: 2px; }

/* ===== Étiquettes et titres ===== */
.overline {
  display: flex; align-items: center; gap: 12px;
  font: 600 11px/1.2 var(--font-body);
  font-variation-settings: 'wdth' 125;
  letter-spacing: 0.2em; text-transform: uppercase;
}
.overline__num {
  font: 500 16px/1 var(--font-display);
  font-variation-settings: 'opsz' 18;
  letter-spacing: 0.02em;
}
.overline__rule { width: 28px; height: 1px; background: currentColor; opacity: 0.55; flex: none; }

.section-title {
  font: 400 clamp(44px, 10.5vw, 128px)/0.95 var(--font-display);
  font-variation-settings: 'opsz' 96;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.section-text { max-width: 34ch; font-size: clamp(15px, 1.2vw, 18px); color: var(--ink-soft); }

/* ===== Icônes ===== */
.icon { display: inline-flex; width: 20px; height: 20px; flex: none; }
.icon svg { width: 100%; height: 100%; }

/* ===== Boutons « portique » : une traverse qui dépasse, deux montants, un voile qui descend ===== */
.btn {
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 15px 20px 13px;
  border: 1px solid var(--b-line); border-top: 0;
  background: transparent;
  font: 600 12px/1 var(--font-body);
  font-variation-settings: 'wdth' 118;
  letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: color 0.35s var(--ease), transform 0.12s var(--ease-soft);
}
.btn .icon { width: 18px; height: 18px; transition: transform 0.35s var(--ease); }
.btn::before {
  /* la traverse */
  content: ''; position: absolute; top: 0; left: -6px; right: -6px; height: 3px;
  background: var(--b-line);
  transition: left 0.4s var(--ease), right 0.4s var(--ease), background-color 0.35s var(--ease);
}
.btn::after {
  /* le voile */
  content: ''; position: absolute; z-index: -1; inset: 3px 0 0;
  background: var(--b-fill);
  transform: scaleY(0); transform-origin: 50% 0;
  transition: transform 0.5s var(--ease), background-color 0.35s var(--ease);
}
.btn:hover { color: var(--b-on-fill); }
.btn:hover::after { transform: scaleY(1); }
.btn:hover::before { left: -11px; right: -11px; }
.btn:active { transform: translateY(1px); }
.btn:active::after { transform: scaleY(1); transition-duration: 0.12s; }
.btn:focus-visible { outline: 1px solid var(--focus, var(--lierre)); outline-offset: 7px; box-shadow: 0 0 0 3px var(--focus, var(--lierre)); }
.btn--primary { color: var(--b-on-fill); }
.btn--primary::after { transform: scaleY(1); }
.btn--primary:hover::after, .btn--primary:active::after { background: var(--b-fill-hover); }
.btn--primary:hover .icon { transform: translateX(2px); }
.btn--quiet { border-color: transparent; padding-left: 4px; padding-right: 4px; }
.btn--quiet::before { left: 0; right: 0; height: 1px; }
.btn--quiet::after { background: color-mix(in oklch, var(--b-fill) 8%, transparent); }
.btn--quiet:hover { color: inherit; }
.btn--quiet:hover::before { left: -8px; right: -8px; height: 3px; }
.btn--small { min-height: 38px; padding: 11px 13px 9px; font-size: 11px; gap: 8px; }
.btn--small .icon { width: 16px; height: 16px; }
.btn[data-state='sending'] { pointer-events: none; cursor: progress; }
.btn[data-state='sending']::before {
  background: linear-gradient(90deg, var(--b-line) 0 30%, transparent 30% 45%, var(--b-line) 45% 100%);
  background-size: 200% 100%;
  animation: beam 0.9s linear infinite;
}
@keyframes beam { to { background-position: -200% 0; } }

/* Contexte sombre */
.story, .contact, .foot, .top:not(.is-light) {
  --b-fill: var(--on-night);
  --b-on-fill: var(--night);
  --b-fill-hover: oklch(0.76 0.1 150);
  --focus: var(--lierre-light);
}

/* ===== En-tête ===== */
.top {
  position: fixed; inset: 0 0 auto; z-index: 20;
  height: var(--header-h);
  display: flex; align-items: center; gap: 24px;
  padding: 0 var(--gutter); padding-top: env(safe-area-inset-top);
  color: var(--on-night);
  transition: background-color 0.4s var(--ease-soft), color 0.4s var(--ease-soft), box-shadow 0.4s var(--ease-soft);
}
.top.is-solid { background: var(--night); box-shadow: 0 1px 0 color-mix(in oklch, var(--on-night) 10%, transparent); }
.top.is-light { color: var(--ink); }
.top.is-light.is-solid { background: var(--voile); box-shadow: 0 1px 0 color-mix(in oklch, var(--ink) 12%, transparent); }
.top__brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.top__brand .logo { display: none; }
.top__name {
  font: 400 21px/1 var(--font-display);
  font-variation-settings: 'opsz' 28;
  letter-spacing: -0.01em;
}
.top__brand:focus-visible, .top__link:focus-visible { outline: 1px solid var(--lierre-light); outline-offset: 6px; }
.top.is-light .top__brand:focus-visible, .top.is-light .top__link:focus-visible { outline-color: var(--lierre); }
.top__nav { display: none; gap: 28px; }
.top__link {
  position: relative; text-decoration: none;
  font: 600 11px/1 var(--font-body); font-variation-settings: 'wdth' 120;
  letter-spacing: 0.18em; text-transform: uppercase; padding: 8px 0;
}
.top__link::before {
  content: ''; position: absolute; left: 50%; right: 50%; top: 0; height: 1px; background: currentColor;
  transition: left 0.35s var(--ease), right 0.35s var(--ease);
}
.top__link:hover::before { left: -4px; right: -4px; }
.top.is-light .top__call { --b-fill: var(--ink); --b-on-fill: var(--voile); --b-fill-hover: var(--lierre); }

/* ===== L'histoire : la salle qui s'allume ===== */
.story { position: relative; background: var(--night); color: var(--on-night); }
.stage { position: sticky; top: 0; height: 100svh; overflow: hidden; background: var(--night); }
.stage__photo, .stage__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.stage__photo { object-fit: cover; object-position: 50% 50%; transition: opacity 0.8s var(--ease-soft); }
.stage__canvas { opacity: 0; transition: opacity 0.8s var(--ease-soft); }
.is-live .stage__canvas { opacity: 1; }
.is-live .stage__photo { opacity: 0; }
.stage__scrim {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to bottom, color-mix(in oklch, var(--night) 80%, transparent) 0%, color-mix(in oklch, var(--night) 58%, transparent) 30%, transparent 50%),
    linear-gradient(to top, color-mix(in oklch, var(--night) 88%, transparent) 0%, color-mix(in oklch, var(--night) 40%, transparent) 42%, transparent 62%);
  transition: opacity 0.8s var(--ease-soft);
}
.is-live .stage__scrim { opacity: 0; }

.story__chapters { position: relative; z-index: 1; margin-top: -100svh; }
.chapter {
  position: relative;
  min-height: 54svh;
  display: flex; align-items: flex-end;
  padding: 0 var(--gutter) 44px;
}
.chapter__body { max-width: 30rem; display: grid; gap: 16px; }
.chapter__title {
  font: 400 clamp(42px, 11.5vw, 112px)/0.98 var(--font-display);
  font-variation-settings: 'opsz' 96;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.chapter__text { max-width: 30ch; font-size: clamp(16px, 1.35vw, 20px); line-height: 1.5; color: var(--on-night-soft); }
.chapter__credit {
  font: 600 10px/1.3 var(--font-body); font-variation-settings: 'wdth' 120;
  letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.7;
}

/* 00 : le haut de page */
.chapter--hero {
  height: 100svh; min-height: 540px;
  flex-direction: column; justify-content: space-between; align-items: stretch;
  padding-top: calc(var(--header-h) + 22px);
  padding-bottom: max(20px, env(safe-area-inset-bottom));
}
.chapter__head { display: grid; gap: 14px; }
.overline--hero { color: var(--on-night-soft); }
.hero__title {
  display: grid;
  font: 400 clamp(64px, 18vw, 188px)/0.86 var(--font-display);
  font-variation-settings: 'opsz' 96;
  letter-spacing: -0.035em;
}
.hero__word:last-child { padding-left: 0.42em; }
.hero__lead {
  max-width: 24ch;
  font: 400 clamp(17px, 1.6vw, 22px)/1.4 var(--font-display);
  font-variation-settings: 'opsz' 24;
  color: var(--on-night);
}
.hero__foot { display: grid; gap: 18px; }
.hero__actions { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; max-width: 420px; }
.hero__actions > .btn { width: 100%; }
.hero__pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
/* très petits téléphones (320 px) : lettres moins espacées pour que tout tienne */
@media (max-width: 359px) {
  .btn { letter-spacing: 0.09em; padding-left: 12px; padding-right: 12px; gap: 8px; }
  .top { gap: 12px; }
  .hero__pair { gap: 10px; }
  .overline { letter-spacing: 0.14em; gap: 8px; }
  .overline__rule { width: 16px; }
}
.hero__scroll {
  display: none; align-items: center; gap: 12px;
  font: 600 10px/1 var(--font-body); font-variation-settings: 'wdth' 120;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--on-night-soft);
}
.hero__scroll-line { position: relative; width: 1px; height: 36px; background: color-mix(in oklch, var(--on-night) 25%, transparent); overflow: hidden; }
.hero__scroll-line::after {
  content: ''; position: absolute; left: 0; top: 0; width: 1px; height: 40%; background: var(--on-night);
  animation: drip 2.4s var(--ease-soft) infinite;
}
@keyframes drip { from { transform: translateY(-100%); } to { transform: translateY(260%); } }

/* Entrée du haut de page (une seule fois, le contenu existe déjà) */
.js:not(.is-static) .chapter__head > *, .js:not(.is-static) .hero__foot {
  animation: rise 1s var(--ease) both;
}
.js:not(.is-static) .chapter__head > :nth-child(2) { animation-delay: 0.12s; }
.js:not(.is-static) .chapter__head > :nth-child(3) { animation-delay: 0.24s; }
.js:not(.is-static) .hero__foot { animation-delay: 0.4s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

/* 04 : la photo devient une page imprimée, le texte passe à l'encre */
.chapter--print { min-height: 56svh; }
.is-live .chapter--print {
  height: 100svh; min-height: 0;
  align-items: flex-start;
  padding-top: calc(max(76px, 10svh) + (100vw - 32px) * 0.75 + 26px);
  transition: color 0.5s var(--ease-soft);
}
.chapter--print .chapter__text { transition: color 0.5s var(--ease-soft); }
.is-live[data-story-light='1'] .chapter--print { color: var(--ink); }
.is-live[data-story-light='1'] .chapter--print .chapter__text { color: var(--ink-soft); }
.is-live .chapter--print .chapter__title { font-size: clamp(36px, 10vw, 96px); }

/* ===== 05 Réalisations ===== */
.works { position: relative; background: var(--voile); color: var(--ink); padding: clamp(64px, 11vw, 168px) 0 clamp(44px, 8vw, 120px); }
.section-head { display: grid; gap: 18px; padding: 0 var(--gutter); margin-bottom: clamp(40px, 8vw, 112px); }
.section-head .overline { color: var(--lierre); }

.moment { margin: 0 0 clamp(40px, 9vw, 150px); }
.moment__frame { position: relative; overflow: hidden; background: var(--voile-2); aspect-ratio: 4 / 5; }
.moment--2 .moment__frame { aspect-ratio: 1 / 1; }
.moment--3 .moment__frame { aspect-ratio: 5 / 4; }
.moment--4 .moment__frame { aspect-ratio: 3 / 2; }
.moment__frame img { width: 100%; height: 100%; object-fit: cover; object-position: var(--focus, 50% 50%); }
.moment__caption { display: grid; gap: 6px; padding: 14px var(--gutter) 0; }
.moment__index {
  display: flex; justify-content: space-between; gap: 12px;
  font: 600 10.5px/1.3 var(--font-body); font-variation-settings: 'wdth' 120;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-soft);
}
.moment__gallery { color: var(--lierre); }
.moment__count { white-space: nowrap; }
.moment__title {
  font: 400 clamp(40px, 9vw, 96px)/0.95 var(--font-display);
  font-variation-settings: 'opsz' 96; letter-spacing: -0.025em;
}
.moment__text { max-width: 32ch; color: var(--ink-soft); font-size: 15px; }

/* Voir plus */
.more { padding: 0 var(--gutter); }
.more > .btn { --b-line: var(--ink); }
/* ouvert, le plus pivote en croix de fermeture */
.more > .btn .icon { transition: transform 0.45s var(--ease); }
.more > .btn[aria-expanded='true'] .icon { transform: rotate(45deg); }
.more__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.7s var(--ease); }
.more__panel.is-open { grid-template-rows: 1fr; }
.more__inner { overflow: hidden; min-height: 0; }
.more__title {
  padding-top: 32px;
  font: 400 clamp(30px, 6vw, 56px)/1 var(--font-display); font-variation-settings: 'opsz' 72; letter-spacing: -0.02em;
}
.strip {
  display: flex; gap: 12px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--ink-soft) transparent;
  margin: 22px calc(-1 * var(--gutter)) 0; padding: 0 var(--gutter) 14px;
  scroll-padding: 0 var(--gutter);
}
.strip__item { flex: none; scroll-snap-align: start; display: grid; gap: 8px; }
.strip__item img { height: clamp(220px, 30vw, 380px); width: auto; max-width: none; background: var(--voile-2); }
.strip__caption {
  font: 600 10px/1.2 var(--font-body); font-variation-settings: 'wdth' 120;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft);
}
.more__links { display: flex; flex-wrap: wrap; gap: 14px 28px; padding: 18px 0 8px; }

/* Lien texte */
.textlink {
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px;
  text-decoration-color: color-mix(in oklch, currentColor 45%, transparent);
  transition: text-decoration-color 0.3s var(--ease), text-decoration-thickness 0.3s var(--ease);
}
.textlink .icon { width: 16px; height: 16px; transition: transform 0.3s var(--ease); }
.textlink:hover { text-decoration-color: var(--lierre); text-decoration-thickness: 2px; }
.textlink:hover .icon { transform: translateX(3px); }
.textlink:active { opacity: 0.7; }
.textlink:focus-visible { outline: 1px solid var(--focus, var(--lierre)); outline-offset: 4px; }

/* ===== 06 L'agence ===== */
.agency { background: var(--voile); color: var(--ink); }
.agency__inner { display: grid; gap: 26px; padding: 0 var(--gutter) clamp(48px, 8vw, 120px); }
.agency__inner .overline { color: var(--lierre); }
.agency__events {
  font: 400 clamp(40px, 11vw, 132px)/0.98 var(--font-display);
  font-variation-settings: 'opsz' 96; letter-spacing: -0.03em;
}
.agency__events li:nth-child(even) { padding-left: 0.6em; }
.agency__events li:last-child { color: var(--ink-soft); }
.agency__lines { display: grid; gap: 14px; max-width: 34ch; font-size: clamp(16px, 1.3vw, 20px); }
.band { aspect-ratio: 2 / 1; overflow: hidden; background: var(--voile-2); }
.band img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }

/* ===== 07 Contact ===== */
.contact { background: var(--night); color: var(--on-night); padding: clamp(64px, 10vw, 150px) 0 clamp(56px, 8vw, 120px); }
.contact__inner { display: grid; gap: 44px; padding: 0 var(--gutter); }
.contact__info { display: grid; gap: 22px; align-content: start; }
.contact__info .overline { color: var(--lierre-light); }
.reach-list { border-top: 1px solid color-mix(in oklch, var(--on-night) 16%, transparent); }
.reach-list li { border-bottom: 1px solid color-mix(in oklch, var(--on-night) 16%, transparent); }
.reach {
  position: relative;
  display: grid; grid-template-columns: 22px 1fr 20px; grid-template-areas: 'icon label go' 'icon value go';
  column-gap: 16px; row-gap: 4px; align-items: center;
  padding: 11px 4px; text-decoration: none;
  transition: background-color 0.3s var(--ease-soft), transform 0.12s var(--ease-soft);
}
.reach > .icon { grid-area: icon; color: var(--on-night-soft); }
.reach__label {
  grid-area: label;
  font: 600 10px/1 var(--font-body); font-variation-settings: 'wdth' 120;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--on-night-soft);
}
.reach__value { grid-area: value; font: 400 clamp(19px, 1.7vw, 24px)/1.15 var(--font-display); font-variation-settings: 'opsz' 28; overflow-wrap: anywhere; }
.reach--main .reach__value { font-size: clamp(26px, 2.6vw, 36px); }
.reach__go { grid-area: go; color: var(--on-night-soft); transition: transform 0.35s var(--ease), color 0.3s; }
.reach__go .icon { width: 18px; height: 18px; }
.reach::before {
  /* la traverse apparaît au survol */
  content: ''; position: absolute; top: -1px; left: 0; width: 0; height: 2px; background: var(--lierre-light);
  transition: width 0.5s var(--ease);
}
.reach:hover { background: color-mix(in oklch, var(--on-night) 5%, transparent); }
.reach:hover::before { width: 100%; }
.reach:hover .reach__go { transform: translateX(4px); color: var(--lierre-light); }
.reach:active { transform: translateY(1px); }
.reach:focus-visible { outline: 1px solid var(--lierre-light); outline-offset: 3px; }

.rating { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 12px; color: var(--on-night-soft); font-size: 13px; }
.rating__stars { display: inline-flex; gap: 2px; color: var(--on-night); align-self: center; }
.rating__stars .icon { width: 14px; height: 14px; }
.rating__stars svg { fill: currentColor; stroke: none; }
.rating__value { font: 400 22px/1 var(--font-display); color: var(--on-night); }

/* Formulaire */
.form-card { min-width: 0; }
.form { display: grid; gap: 24px; }
.form[hidden], .summary[hidden] { display: none; }
.form__title { font: 400 clamp(26px, 3vw, 40px)/1.05 var(--font-display); font-variation-settings: 'opsz' 48; letter-spacing: -0.015em; }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 16px; }
.field { position: relative; display: grid; gap: 6px; min-width: 0; }
.field__label {
  display: flex; justify-content: space-between; gap: 8px;
  font: 600 10px/1.2 var(--font-body); font-variation-settings: 'wdth' 120;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--on-night-soft);
  padding: 0;
}
.field__req { letter-spacing: 0.08em; text-transform: none; font-weight: 400; opacity: 0.8; }
.field input, .field textarea {
  width: 100%; min-width: 0; border: 0; border-radius: 0; background: transparent; appearance: none;
  border-bottom: 1px solid color-mix(in oklch, var(--on-night) 35%, transparent);
  padding: 8px 0 9px; font-size: 17px; line-height: 1.4; color: var(--on-night);
  outline: none; transition: border-color 0.3s var(--ease-soft);
}
.field textarea { resize: vertical; min-height: 72px; }
.field textarea::placeholder { color: color-mix(in oklch, var(--on-night) 42%, transparent); }
.field__line {
  position: absolute; left: 0; right: 0; height: 2px; background: var(--lierre-light);
  bottom: calc(var(--err-h, 0px)); transform: scaleX(0); transform-origin: 0 50%;
  transition: transform 0.45s var(--ease);
}
.field:has(.field__error:empty) { --err-h: 0px; }
.field__error { font-size: 13px; color: var(--error-light); min-height: 0; }
.field__error:empty { display: none; }
.field:hover input, .field:hover textarea { border-bottom-color: color-mix(in oklch, var(--on-night) 60%, transparent); }
.field:focus-within .field__label { color: var(--lierre-light); }
.field:focus-within .field__line { transform: scaleX(1); }
.field.is-filled .field__label { color: var(--on-night); }
.field.is-error input, .field.is-error textarea { border-bottom-color: var(--error-light); }
.field.is-error .field__label { color: var(--error-light); }
.field.is-error .field__line { display: none; }

.choices { display: flex; flex-wrap: wrap; gap: 14px 16px; padding-top: 4px; }
.choices legend { width: 100%; margin-bottom: 12px; float: left; }
.choice { position: relative; display: inline-flex; cursor: pointer; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.choice__box {
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; gap: 0;
  min-height: 40px; padding: 11px 13px 9px;
  border: 1px solid color-mix(in oklch, var(--on-night) 55%, transparent); border-top: 0;
  font: 500 13px/1 var(--font-body); font-variation-settings: 'wdth' 108;
  transition: color 0.3s var(--ease), gap 0.3s var(--ease);
}
.choice__box::before {
  content: ''; position: absolute; top: 0; left: -5px; right: -5px; height: 2px; background: var(--on-night);
  transition: left 0.35s var(--ease), right 0.35s var(--ease);
}
.choice__box::after {
  content: ''; position: absolute; z-index: -1; inset: 2px 0 0; background: var(--on-night);
  transform: scaleY(0); transform-origin: 50% 0; transition: transform 0.45s var(--ease);
}
.choice__mark { display: inline-flex; width: 0; overflow: hidden; transition: width 0.3s var(--ease); }
.choice__mark .icon { width: 15px; height: 15px; }
.choice:hover .choice__box::before { left: -9px; right: -9px; }
.choice:hover .choice__box::after { transform: scaleY(0.12); }
.choice input:checked + .choice__box { color: var(--night); gap: 6px; }
.choice input:checked + .choice__box::after { transform: scaleY(1); }
.choice input:checked + .choice__box .choice__mark { width: 15px; }
.choice:active .choice__box { transform: translateY(1px); }
.choice input:focus-visible + .choice__box { outline: 1px solid var(--lierre-light); outline-offset: 6px; box-shadow: 0 0 0 2px var(--lierre-light); }

.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.form__foot .btn { min-width: 168px; }
.form__demo { font-size: 12.5px; color: var(--on-night-soft); }

.summary { display: grid; gap: 20px; padding: 26px 0 4px; border-top: 3px solid var(--on-night); outline: none; }
.summary:focus-visible { outline: 1px solid var(--lierre-light); outline-offset: 8px; }
.summary__title { font: 400 clamp(26px, 3vw, 40px)/1.05 var(--font-display); letter-spacing: -0.015em; }
.summary__list { display: grid; grid-template-columns: max-content 1fr; gap: 10px 20px; }
.summary__list dt {
  font: 600 10px/1.9 var(--font-body); font-variation-settings: 'wdth' 120;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--on-night-soft);
}
.summary__list dd { overflow-wrap: anywhere; white-space: pre-line; }
.summary__note { font-size: 13px; color: var(--lierre-light); }
.summary .btn { justify-self: start; }

/* ===== Pied de page ===== */
.foot { background: var(--night-2); color: var(--on-night); padding: 40px var(--gutter) max(28px, env(safe-area-inset-bottom)); }
.foot__inner { display: grid; gap: 22px; }
.foot__brand { display: grid; gap: 14px; justify-items: start; }
.logo {
  display: block; aspect-ratio: 747 / 421; height: 34px;
  background: currentColor;
  -webkit-mask: url('../assets/logo.png') center / contain no-repeat;
  mask: url('../assets/logo.png') center / contain no-repeat;
}
.logo--foot { height: auto; width: min(170px, 44vw); }
.foot__line { font: 400 18px/1.3 var(--font-display); color: var(--on-night-soft); }
.foot__links { display: flex; flex-wrap: wrap; gap: 12px 24px; font-size: 14px; }
.foot__demo { font-size: 12.5px; line-height: 1.6; color: var(--on-night-soft); max-width: 70ch; border-top: 1px solid color-mix(in oklch, var(--on-night) 14%, transparent); padding-top: 20px; }

/* ===== Tablette et plus ===== */
@media (min-width: 700px) {
  .hero__actions { grid-template-columns: auto auto auto; max-width: none; justify-content: start; }
  .hero__actions > .btn { width: auto; }
  .hero__pair { display: contents; }
  .moment--1 .moment__frame { aspect-ratio: 4 / 3; }
  .moment--4 .moment__frame { aspect-ratio: 2400 / 992; }
  .contact__inner .form__grid { gap: 26px 22px; }
}

/* Écrans larges (paysage) : texte à gauche, photo à droite */
@media (min-width: 900px) and (min-aspect-ratio: 9 / 10) {
  :root { --header-h: 76px; }
  .top__nav { display: flex; }
  .chapter { min-height: 82svh; align-items: center; padding-bottom: 0; }
  .chapter__body { max-width: min(34rem, 40vw); }
  .chapter--hero { justify-content: space-between; align-items: flex-start; padding-bottom: 40px; }
  .hero__title { font-size: clamp(96px, 11.5vw, 188px); }
  .hero__scroll { display: inline-flex; }
  .stage__scrim {
    background:
      linear-gradient(to bottom, color-mix(in oklch, var(--night) 70%, transparent) 0%, transparent 16%),
      linear-gradient(to right, color-mix(in oklch, var(--night) 84%, transparent) 0%, color-mix(in oklch, var(--night) 40%, transparent) 38%, transparent 58%),
      linear-gradient(to top, color-mix(in oklch, var(--night) 50%, transparent) 0%, transparent 30%);
  }
  .is-live .chapter--print {
    height: 100svh;
    align-items: center;
    padding-top: var(--header-h);
  }
  .is-live .chapter--print .chapter__body { max-width: min(26rem, 30vw); }
  .chapter--print .chapter__title, .is-live .chapter--print .chapter__title { font-size: clamp(48px, 5.4vw, 96px); }

  .works .section-head { grid-template-columns: repeat(12, 1fr); column-gap: 24px; align-items: end; }
  .works .section-head .overline { grid-column: 1 / -1; }
  .works .section-head .section-title { grid-column: 1 / 8; }
  .works .section-head .section-text { grid-column: 9 / 13; }
  .moment { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; padding: 0 var(--gutter); }
  .moment__caption { padding: 0; align-self: end; }
  .moment--1 .moment__frame { grid-column: 1 / 10; grid-row: 1; }
  .moment--1 .moment__caption { grid-column: 10 / 13; grid-row: 1; }
  .moment--2 .moment__frame { grid-column: 4 / 13; grid-row: 1; aspect-ratio: 960 / 547; }
  .moment--2 .moment__caption { grid-column: 1 / 4; grid-row: 1; align-self: start; }
  .moment--3 .moment__frame { grid-column: 2 / 8; grid-row: 1; aspect-ratio: 788 / 614; }
  .moment--3 .moment__caption { grid-column: 8 / 12; grid-row: 1; align-self: center; padding-left: 24px; }
  .moment--3 .moment__title { font-size: clamp(64px, 8vw, 136px); }
  .moment--4 { padding: 0; }
  .moment--4 .moment__frame { grid-column: 1 / -1; }
  .moment--4 .moment__caption { grid-column: 7 / 12; padding-top: 22px; }
  .moment__index { flex-direction: column; gap: 6px; }

  .agency__inner { grid-template-columns: repeat(12, 1fr); column-gap: 24px; align-items: end; }
  .agency__inner .overline { grid-column: 1 / -1; }
  .agency__events { grid-column: 1 / 9; }
  .agency__lines { grid-column: 9 / 13; padding-bottom: 12px; }
  .band { aspect-ratio: 3818 / 1142; }

  .contact__inner { grid-template-columns: repeat(12, 1fr); column-gap: 24px; }
  .contact__info { grid-column: 1 / 6; }
  .form-card { grid-column: 7 / 13; padding-top: 6px; }
  .foot__inner { grid-template-columns: 1fr 1fr; align-items: end; }
  .foot__demo { grid-column: 1 / -1; }
}

/* Mouvement réduit : tout est immobile et visible */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
}

/* Sans animation, la salle ne s'allume pas : on retire l'invitation à défiler */
.is-static .hero__scroll { display: none; }
