/* =====================================================================
   Liryc Studios — système graphique
   Nuit (noir profond) / Jour (ivoire) / Lin (pierre claire) / Champagne
   Display : Cormorant Garamond — Texte : Jost
   ===================================================================== */

@font-face { font-family: "Cormorant Garamond"; font-weight: 300; font-style: normal; font-display: swap; src: url(/assets/fonts/cormorant-garamond-latin-300-normal.woff2) format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 300; font-style: italic; font-display: swap; src: url(/assets/fonts/cormorant-garamond-latin-300-italic.woff2) format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 500; font-style: normal; font-display: swap; src: url(/assets/fonts/cormorant-garamond-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Jost"; font-weight: 400; font-style: normal; font-display: swap; src: url(/assets/fonts/jost-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Jost"; font-weight: 500; font-style: normal; font-display: swap; src: url(/assets/fonts/jost-latin-500-normal.woff2) format("woff2"); }

:root {
  --nuit: #0d0c0b;
  --charbon: #1c1a18;
  --charbon-2: #2a2724;
  --ivoire: #f2ede4;
  --lin: #e6ddcf;
  --pierre: #a39a8c;
  --pierre-fonce: #645c51;
  --champagne: #c8b38a;
  --champagne-fonce: #7a6440;
  --encre: #1a1816;

  --serif: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --sans: "Jost", "Futura", "Avenir Next", system-ui, sans-serif;

  --step--1: clamp(0.84rem, 0.82rem + 0.1vw, 0.9rem);
  --step-0: clamp(1rem, 0.97rem + 0.15vw, 1.08rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.45vw, 1.45rem);
  --step-2: clamp(1.6rem, 1.35rem + 1.1vw, 2.3rem);
  --step-3: clamp(2.2rem, 1.7rem + 2.2vw, 3.6rem);
  --step-4: clamp(2.8rem, 2rem + 4vw, 5.6rem);
  --step-5: clamp(3.2rem, 1.8rem + 7.5vw, 9.4rem);

  --gutter: clamp(1rem, 0.5rem + 3vw, 3.5rem);
  --max: 1440px;
  --space: clamp(4.5rem, 3rem + 7vw, 10rem);
  --ease: cubic-bezier(.2, .7, .1, 1);
  --header-h: 4.5rem;

  /* couleurs contextuelles (scènes) */
  --bg: var(--ivoire); --fg: var(--encre); --muted: var(--pierre-fonce); --line: rgba(26,24,22,.16); --accent: var(--champagne-fonce); --ph: var(--lin);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1rem); }
@media (prefers-reduced-motion: no-preference) { html:not([data-motion="reduced"]) { scroll-behavior: smooth; } }
body { margin: 0; background: var(--nuit); color: var(--fg); font: 400 var(--step-0)/1.65 var(--sans); font-kerning: normal; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, picture, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; }
a:hover { text-decoration-color: var(--accent); }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
:focus-visible { outline: 2px solid var(--champagne); outline-offset: 3px; border-radius: 1px; }
.scene--day :focus-visible, .scene--linen :focus-visible, .scene--stone :focus-visible { outline-color: var(--champagne-fonce); }
::selection { background: var(--champagne); color: var(--nuit); }

.visually-hidden, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; top: .75rem; left: .75rem; z-index: 100; padding: .7rem 1rem; background: var(--ivoire); color: var(--encre); transform: translateY(-200%); transition: transform .2s; }
.skip:focus { transform: none; }
main:focus { outline: none; }

/* ---------- Scènes ---------- */
.scene { background: var(--bg); color: var(--fg); padding-block: var(--space); position: relative; }
.scene--night { --bg: var(--nuit); --fg: var(--ivoire); --muted: #b3aa9c; --line: rgba(242,237,228,.16); --accent: var(--champagne); --ph: var(--charbon); }
.scene--day { --bg: var(--ivoire); --fg: var(--encre); --muted: var(--pierre-fonce); --line: rgba(26,24,22,.16); --accent: var(--champagne-fonce); --ph: var(--lin); }
.scene--linen { --bg: var(--lin); --fg: var(--encre); --muted: #5a5248; --line: rgba(26,24,22,.18); --accent: var(--champagne-fonce); --ph: #d9cfbf; }
.scene--stone { --bg: #cfc5b5; --fg: var(--encre); --muted: #4e473e; --line: rgba(26,24,22,.2); --accent: #5e4b2c; --ph: #c2b7a5; }
.scene--tight { padding-block: calc(var(--space) * .7); }
.scene--flush { padding-top: 0; }
.scene--day + .scene--day:not(.scene--flush) { padding-top: calc(var(--space) * .55); }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Typographie ---------- */
.display { font: 300 var(--step-4)/1.02 var(--serif); letter-spacing: -.012em; text-wrap: balance; }
.display--hero { font-size: var(--step-5); line-height: .94; letter-spacing: -.02em; }
.display--article { font-size: var(--step-3); }
.h2 { font: 300 var(--step-3)/1.06 var(--serif); letter-spacing: -.01em; text-wrap: balance; }
.h3, .features h3, .steps h3, .offer h2 { font: 500 var(--step-1)/1.25 var(--serif); letter-spacing: .005em; }
.lede { font-size: var(--step-1); line-height: 1.55; color: var(--muted); max-width: 38ch; font-weight: 400; }
.scene--night .lede { color: #d6cfc3; }
.kicker { font: 500 var(--step--1)/1.4 var(--sans); color: var(--accent); letter-spacing: .04em; margin-bottom: 1.4rem; }
.section-head { display: grid; gap: 1.5rem; margin-bottom: clamp(2.5rem, 5vw, 4.5rem); max-width: 62rem; }
.section-head--split { max-width: none; grid-template-columns: 1fr auto; align-items: end; }
.section-intro { color: var(--muted); max-width: 52ch; font-size: var(--step-1); line-height: 1.55; }
.prose { max-width: 62ch; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font: 300 var(--step-2)/1.15 var(--serif); margin-top: 2.2em; }
.prose h3 { font: 500 var(--step-1)/1.3 var(--serif); margin-top: 1.8em; }
.prose ul { padding-left: 1.1em; }
.prose li + li { margin-top: .4em; }
.prose strong { font-weight: 500; }
.prose--article { margin-inline: auto; font-size: calc(var(--step-0) * 1.04); }
.note { color: var(--muted); font-size: var(--step--1); margin-top: 2rem; }
mark.todo { background: #f6d9a8; color: #3a2a10; padding: 0 .3em; }

/* ---------- Boutons & liens ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: .8rem 1.6rem; font: 500 var(--step--1)/1 var(--sans); letter-spacing: .06em; text-decoration: none; border: 1px solid currentColor; border-radius: 0; cursor: pointer; transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease); }
.btn--light { background: var(--ivoire); color: var(--nuit); border-color: var(--ivoire); }
.btn--light:hover { background: var(--champagne); border-color: var(--champagne); }
.btn--dark { background: var(--nuit); color: var(--ivoire); border-color: var(--nuit); }
.btn--dark:hover { background: var(--charbon-2); }
.btn--line { background: transparent; }
.btn--line:hover { background: var(--ivoire); color: var(--nuit); border-color: var(--ivoire); }
.link-arrow { display: inline-block; font: 500 var(--step--1)/1.4 var(--sans); letter-spacing: .05em; text-decoration: none; padding-block: .35rem; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; transition: background-size .45s var(--ease), color .3s; }
.link-arrow:hover { background-size: 35% 1px; color: var(--accent); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; margin-top: 2.2rem; }

/* ---------- En-tête ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; color: var(--ivoire); transition: background-color .5s var(--ease), border-color .5s, transform .5s var(--ease); border-bottom: 1px solid transparent; }
.site-header.is-solid { background: rgba(13,12,11,.92); border-bottom-color: rgba(242,237,228,.1); }
@supports (backdrop-filter: blur(8px)) { .site-header.is-solid { background: rgba(13,12,11,.78); backdrop-filter: blur(10px); } }
.site-header.is-hidden { transform: translateY(-100%); }
.header-inner { max-width: var(--max); margin: auto; padding-inline: var(--gutter); height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.wordmark { display: inline-flex; align-items: baseline; gap: .55rem; text-decoration: none; }
.wm-main { font: 300 1.9rem/1 var(--serif); letter-spacing: .02em; }
.wm-sub { font: 500 .68rem/1 var(--sans); letter-spacing: .28em; color: var(--champagne); }
.main-nav { display: flex; align-items: center; gap: 2.2rem; }
.main-nav ul { display: flex; gap: 1.9rem; }
.main-nav ul a { font: 400 .9rem/1 var(--sans); letter-spacing: .04em; text-decoration: none; padding-block: .5rem; background: linear-gradient(var(--champagne), var(--champagne)) 0 100% / 0 1px no-repeat; transition: background-size .4s var(--ease); }
.main-nav ul a:hover, .main-nav ul a[aria-current="page"] { background-size: 100% 1px; }
.nav-note { font-size: .65rem; color: var(--pierre); letter-spacing: .1em; }
.nav-cta { min-height: 2.6rem; padding: .6rem 1.1rem; }
.menu-toggle { display: none; background: none; border: 0; padding: .6rem 0; cursor: pointer; align-items: center; gap: .8rem; font: 500 .8rem/1 var(--sans); letter-spacing: .12em; }
.menu-toggle-bars { width: 26px; height: 9px; position: relative; }
.menu-toggle-bars::before, .menu-toggle-bars::after { content: ""; position: absolute; left: 0; right: 0; height: 1px; background: currentColor; transition: transform .4s var(--ease), top .4s var(--ease); }
.menu-toggle-bars::before { top: 0; } .menu-toggle-bars::after { top: 8px; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars::before { top: 4px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars::after { top: 4px; transform: rotate(-45deg); }

@media (max-width: 1080px) {
  .menu-toggle { display: inline-flex; position: relative; z-index: 2; }
  .js .main-nav { position: fixed; inset: 0; z-index: 1; background: var(--nuit); flex-direction: column; align-items: flex-start; justify-content: center; gap: 2.5rem; padding: calc(var(--header-h) + 1rem) var(--gutter) 3rem; visibility: hidden; opacity: 0; transition: opacity .45s var(--ease), visibility 0s .45s; overflow-y: auto; }
  .js .main-nav.is-open { visibility: visible; opacity: 1; transition: opacity .45s var(--ease); }
  .main-nav ul { flex-direction: column; gap: .3rem; }
  .main-nav ul a { font: 300 clamp(2rem, 8vw, 3rem)/1.25 var(--serif); letter-spacing: 0; }
  .js .main-nav li { opacity: 0; transform: translateY(12px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
  .js .main-nav.is-open li { opacity: 1; transform: none; }
  .js .main-nav.is-open li:nth-child(2) { transition-delay: .04s; } .js .main-nav.is-open li:nth-child(3) { transition-delay: .08s; } .js .main-nav.is-open li:nth-child(4) { transition-delay: .12s; } .js .main-nav.is-open li:nth-child(5) { transition-delay: .16s; } .js .main-nav.is-open li:nth-child(6) { transition-delay: .2s; }
  .no-js .main-nav { display: none; }
  .no-js .menu-toggle { display: none; }
  body.menu-open { overflow: hidden; }
}
@media (max-width: 1080px) { .no-js .site-header { position: absolute; } }

/* ---------- Emplacements photo ---------- */
.frame { position: relative; aspect-ratio: var(--ratio, 3/2); overflow: hidden; background: var(--ph); }
.frame picture, .frame img { width: 100%; height: 100%; }
.frame img { object-fit: cover; }
.frame figcaption { position: absolute; left: 0; bottom: 0; padding: .8rem 1rem; font-size: var(--step--1); color: var(--ivoire); background: linear-gradient(transparent, rgba(0,0,0,.55)); width: 100%; }
.frame-link { display: block; height: 100%; cursor: zoom-in; }
.frame-link img { transition: transform 1.4s var(--ease); }
.frame-link:hover img { transform: scale(1.025); }
.placeholder { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: .7rem; padding: 1.5rem; text-align: center; color: var(--muted);
  background:
    linear-gradient(var(--accent), var(--accent)) 14px 14px / 22px 1px no-repeat,
    linear-gradient(var(--accent), var(--accent)) 14px 14px / 1px 22px no-repeat,
    linear-gradient(var(--accent), var(--accent)) calc(100% - 14px) 14px / 22px 1px no-repeat,
    linear-gradient(var(--accent), var(--accent)) calc(100% - 14px) 14px / 1px 22px no-repeat,
    linear-gradient(var(--accent), var(--accent)) 14px calc(100% - 14px) / 22px 1px no-repeat,
    linear-gradient(var(--accent), var(--accent)) 14px calc(100% - 35px) / 1px 22px no-repeat,
    linear-gradient(var(--accent), var(--accent)) calc(100% - 14px) calc(100% - 14px) / 22px 1px no-repeat,
    linear-gradient(var(--accent), var(--accent)) calc(100% - 14px) calc(100% - 35px) / 1px 22px no-repeat,
    radial-gradient(120% 90% at 30% 20%, rgba(255,255,255,.05), transparent 60%),
    var(--ph); }
.ph-mark { width: 38px; height: 38px; border: 1px solid var(--accent); border-radius: 50%; position: relative; opacity: .8; }
.ph-mark::after { content: ""; position: absolute; inset: 11px; border-radius: 50%; background: var(--accent); opacity: .5; }
.ph-id { font: 500 .72rem/1.2 var(--sans); letter-spacing: .16em; color: var(--accent); }
.ph-brief { font-size: .78rem; line-height: 1.45; max-width: 32ch; opacity: .85; }
@media (max-width: 520px) { .ph-brief { display: none; } }

/* Révélation des images au défilement (uniquement si JS + animations autorisées) */
/* le clip s'applique aux enfants : l'IntersectionObserver doit voir la boîte du cadre */
.motion-ok .frame[data-reveal] > * { clip-path: inset(0 0 100% 0); transition: clip-path 1.2s var(--ease); }
.motion-ok .frame[data-reveal] img { transform: scale(1.08); transition: transform 1.8s var(--ease); }
.motion-ok .frame[data-reveal].is-in > * { clip-path: inset(0 0 0 0); }
.motion-ok [data-reveal].is-in img { transform: none; }
.motion-ok .film[data-reveal] { clip-path: none; opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.motion-ok .film[data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Accueil : ouverture ---------- */
.hero { padding-top: var(--header-h); padding-bottom: clamp(3rem, 6vw, 6rem); overflow: hidden; }
.letterbox { position: relative; }
.letterbox--hero .hero-frame { --ratio: 2.39/1 !important; max-height: 56vh; width: 100%; }
.hero-frame { width: 100%; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.6s var(--ease); }
.hero-video.is-playing { opacity: 1; }
@media (max-width: 700px) { .letterbox--hero .hero-frame { --ratio: 4/5 !important; max-height: 68vh; } }
.motion-ok .letterbox[data-letterbox] .hero-frame { animation: aperture 1.6s var(--ease) .1s both; }
@keyframes aperture { from { clip-path: inset(50% 0 50% 0); } to { clip-path: inset(0 0 0 0); } }
.hero-text { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 2rem 4rem; align-items: end; margin-top: clamp(-5.5rem, -6vw, -2rem); position: relative; }
.display--hero .line { display: block; overflow: hidden; padding-bottom: .06em; }
.display--hero .line > span { display: inline-block; }
.motion-ok .display--hero .line > span { animation: rise 1.3s var(--ease) both; }
.motion-ok .display--hero .line:nth-child(1) > span { animation-delay: .7s; }
.motion-ok .display--hero .line:nth-child(2) > span { animation-delay: .85s; }
.motion-ok .hero-aside { animation: fade 1.2s var(--ease) 1.2s both; }
@keyframes rise { from { transform: translateY(105%); } to { transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.hero-aside .lede { max-width: 34ch; }
@media (max-width: 900px) { .hero-text { grid-template-columns: 1fr; margin-top: 2rem; } }

/* Ouvertures des pages intérieures */
.page-hero { padding-top: calc(var(--header-h) + clamp(2rem, 6vw, 5rem)); }
.page-hero--text { padding-bottom: clamp(3rem, 6vw, 6rem); }
.page-hero.scene--day:not(.page-hero--text) { padding-bottom: 0; }
.page-hero-text { max-width: 60rem; }
.page-hero .lede { margin-top: 1.8rem; max-width: 46ch; }
.page-hero .letterbox { margin-top: clamp(3rem, 6vw, 5rem); }
.page-hero .letterbox .hero-frame { --ratio: 2.39/1 !important; max-height: 75vh; }
@media (max-width: 700px) { .page-hero .letterbox .hero-frame { --ratio: 4/3 !important; } }
.page-hero.scene--night:not(.page-hero--text) { padding-bottom: 0; }
.page-hero.scene--day { color: var(--encre); }
.page-hero--text.scene--day { padding-top: calc(var(--header-h) + clamp(3rem, 8vw, 7rem)); }
body:not(.is-home) .site-header:not(.is-solid) { background: transparent; }
.crumbs { margin-bottom: clamp(2rem, 4vw, 3.5rem); font-size: var(--step--1); color: var(--muted); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: .3rem .6rem; list-style: none; padding: 0; margin: 0; }
.crumbs li + li::before { content: "/"; margin-right: .6rem; opacity: .5; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* L'en-tête est clair sur les ouvertures ivoire */
.has-day-top .site-header:not(.is-solid) { color: var(--encre); }
.has-day-top .site-header:not(.is-solid) .btn--line:hover { background: var(--encre); color: var(--ivoire); border-color: var(--encre); }

/* ---------- Accueil : sections ---------- */
.duo { display: grid; grid-template-columns: 1.65fr 1fr; gap: clamp(1.5rem, 4vw, 4rem); align-items: start; }
.duo-item { display: grid; gap: .9rem; text-decoration: none; }
.duo-item--photo { margin-top: clamp(0rem, 10vw, 9rem); }
.duo-title { font: 300 var(--step-2)/1.1 var(--serif); margin-top: .6rem; transition: color .3s; }
.duo-item:hover .duo-title { color: var(--accent); }
.duo-text { color: var(--muted); max-width: 40ch; }
@media (max-width: 760px) { .duo { grid-template-columns: 1fr; } .duo-item--photo { margin-top: 0; } }

.film { display: grid; gap: 1.1rem; }
.film--large { margin-bottom: clamp(3rem, 6vw, 6rem); }
.film-screen { position: relative; }
.film-play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 1rem; background: linear-gradient(rgba(13,12,11,.05), rgba(13,12,11,.35)); border: 0; color: var(--ivoire); cursor: pointer; font: 500 var(--step--1)/1 var(--sans); letter-spacing: .1em; }
.film-play-ring { width: 4.4rem; height: 4.4rem; border: 1px solid rgba(242,237,228,.85); border-radius: 50%; display: grid; place-items: center; transition: transform .5s var(--ease), background-color .4s; }
.film-play:hover .film-play-ring, .film-play:focus-visible .film-play-ring { transform: scale(1.08); background: rgba(242,237,228,.12); }
.film-play-label { text-shadow: 0 1px 12px rgba(0,0,0,.4); }
.film-screen iframe, .film-screen video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; object-fit: contain; }
.film-meta { display: grid; grid-template-columns: 1fr auto; gap: .2rem 2rem; align-items: baseline; }
.film-title { font: 300 var(--step-2)/1.15 var(--serif); }
.film:not(.film--large) .film-title { font-size: var(--step-1); font-weight: 500; }
.film-place { color: var(--muted); font-size: var(--step--1); letter-spacing: .04em; }
.film-desc { grid-column: 1 / -1; color: var(--muted); max-width: 60ch; }
.film-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 4vw, 3.5rem) clamp(1.5rem, 3vw, 3rem); }
@media (max-width: 760px) { .film-grid { grid-template-columns: 1fr; } .film-meta { grid-template-columns: 1fr; } }

.mosaic { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(1rem, 2vw, 2rem); align-items: start; }
.m-a { grid-column: 1 / span 5; }
.m-b { grid-column: 6 / span 7; margin-top: clamp(2rem, 8vw, 8rem); }
.m-c { grid-column: 3 / span 4; margin-top: clamp(-6rem, -5vw, -2rem); }
@media (max-width: 760px) { .mosaic > * { grid-column: 1 / -1 !important; margin-top: 0 !important; } }

.manifesto-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 7rem); align-items: center; }
.manifesto-text { display: grid; gap: 1.4rem; max-width: 34rem; }
.manifesto-lead { font: 300 italic var(--step-2)/1.25 var(--serif); }
.manifesto-images { display: grid; grid-template-columns: repeat(6, 1fr); }
.mi-a { grid-column: 1 / span 4; grid-row: 1; }
.mi-b { grid-column: 3 / span 4; grid-row: 1; margin-top: 60%; box-shadow: 0 0 0 clamp(6px, 1vw, 12px) var(--ivoire); }
@media (max-width: 860px) { .manifesto-grid { grid-template-columns: 1fr; } }

.founder { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 6vw, 7rem); align-items: center; }
.founder-text { display: grid; gap: 1.2rem; max-width: 36rem; }
.founder-text.prose > * + * { margin-top: 0; }
.founder-name { color: var(--muted); font-size: var(--step--1); letter-spacing: .04em; }
@media (max-width: 860px) { .founder { grid-template-columns: 1fr; } .founder-portrait { max-width: 30rem; } }

.proofs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem 4rem; margin-top: 3rem; border-top: 1px solid var(--line); padding-top: 3rem; }
.proof-number { font: 300 var(--step-4)/1 var(--serif); color: var(--champagne); }
.proof-number--text { font-size: var(--step-3); }
.proof-label { color: var(--muted); max-width: 34ch; margin-top: .8rem; }
.proof-source { grid-column: 1 / -1; font-size: var(--step--1); color: var(--muted); }
.testimonial { grid-column: 1 / -1; font: 300 italic var(--step-2)/1.35 var(--serif); }
.testimonial footer { font: 400 var(--step--1)/1.4 var(--sans); font-style: normal; color: var(--muted); margin-top: 1rem; }
@media (max-width: 700px) { .proofs { grid-template-columns: 1fr; } }

.territory { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(2rem, 6vw, 7rem); align-items: start; }
.territory > div { display: grid; gap: 1.5rem; justify-items: start; }
.places { border-top: 1px solid var(--line); }
.places li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.place-name { font: 400 var(--step-1)/1.3 var(--serif); }
.place-detail { color: var(--muted); font-size: var(--step--1); }
.places--dark { margin-bottom: clamp(3rem, 6vw, 5rem); max-width: 56rem; }
@media (max-width: 860px) { .territory { grid-template-columns: 1fr; } .places li { grid-template-columns: 1fr; gap: .2rem; } }

.steps { counter-reset: s; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 2.5rem clamp(1.5rem, 3vw, 3rem); margin-top: clamp(2.5rem, 5vw, 4rem); }
.steps li { counter-increment: s; border-top: 1px solid var(--line); padding-top: 1.4rem; display: grid; gap: .7rem; align-content: start; }
.steps li::before { content: counter(s, decimal-leading-zero); font: 300 var(--step-2)/1 var(--serif); color: var(--accent); }
.steps p { color: var(--muted); }

.faq-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.8fr); gap: 2rem clamp(2rem, 6vw, 7rem); align-items: start; }
.faq-wrap > div:first-child, .faq-wrap > .h2 { display: grid; gap: 1.5rem; justify-items: start; }
@media (max-width: 860px) { .faq-wrap { grid-template-columns: 1fr; } }
.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { list-style: none; display: flex; justify-content: space-between; gap: 1.5rem; align-items: center; padding: 1.35rem 0; cursor: pointer; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-q { font: 400 var(--step-1)/1.35 var(--serif); }
.faq-icon { flex: none; width: 14px; height: 14px; position: relative; }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; top: 50%; left: 0; width: 100%; height: 1px; background: currentColor; transition: transform .35s var(--ease); }
.faq-icon::after { transform: rotate(90deg); }
.faq-item[open] .faq-icon::after { transform: rotate(0); }
.faq-a { padding: 0 0 1.6rem; max-width: 62ch; color: var(--muted); }
.faq-a p + p { margin-top: .8em; }
.faq-a a { color: var(--fg); }
.faq-page { max-width: 58rem; }

.cta-band { padding-block: clamp(4rem, 8vw, 7rem); }
.cta-band-inner { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto; gap: 1.5rem 3rem; align-items: end; }
.cta-band p { color: var(--muted); max-width: 40ch; }
@media (max-width: 900px) { .cta-band-inner { grid-template-columns: 1fr; justify-items: start; } }

/* ---------- Pages intérieures ---------- */
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 2rem clamp(2rem, 6vw, 7rem); align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 2.5rem clamp(1.5rem, 3vw, 3rem); margin-top: clamp(2.5rem, 5vw, 4rem); }
.features > div { display: grid; gap: .7rem; align-content: start; }
.features p { color: var(--muted); }
.after-features { margin-top: 3rem; }
.plain-list { list-style: none; padding: 0 !important; border-top: 1px solid var(--line); }
.plain-list li { padding: .9rem 0; border-bottom: 1px solid var(--line); margin: 0 !important; }
.region-block { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 2rem clamp(2rem, 6vw, 7rem); }
@media (max-width: 860px) { .region-block { grid-template-columns: 1fr; } }

.edito { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(1rem, 2vw, 2rem); align-items: start; }
.e-1 { grid-column: 1 / span 7; } .e-2 { grid-column: 9 / span 4; margin-top: 18%; }
.e-3 { grid-column: 2 / span 6; } .e-4 { grid-column: 8 / span 4; margin-top: -12%; }
.e-5 { grid-column: 1 / span 6; } .e-6 { grid-column: 8 / span 3; margin-top: 10%; }
@media (max-width: 760px) { .edito > * { grid-column: 1 / -1 !important; margin-top: 0 !important; } }

.masonry { columns: 3 18rem; column-gap: clamp(1rem, 2vw, 1.75rem); }
.masonry > .frame { break-inside: avoid; margin-bottom: clamp(1rem, 2vw, 1.75rem); }

.filters { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 3rem; }
.filters button { background: transparent; border: 1px solid var(--line); padding: .55rem 1.1rem; font-size: var(--step--1); letter-spacing: .04em; cursor: pointer; transition: border-color .3s, background-color .3s, color .3s; }
.filters button:hover { border-color: var(--accent); }
.filters button[aria-pressed="true"] { background: var(--ivoire); color: var(--nuit); border-color: var(--ivoire); }
.js .collection-index { display: none; }
.collection-index ul { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin-bottom: 3rem; }
.collection { padding-top: clamp(2rem, 5vw, 4rem); }
.collection + .collection { border-top: 1px solid var(--line); margin-top: clamp(2rem, 5vw, 4rem); }
.collection[hidden] { display: none; }
.collection-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem 3rem; align-items: end; margin-bottom: 2.5rem; }
.collection-head p { color: var(--muted); }
.collection .film-grid { margin-bottom: 2.5rem; }
@media (max-width: 760px) { .collection-head { grid-template-columns: 1fr; } }

.offers { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.offer { display: grid; gap: 1rem; align-content: start; padding: clamp(1.5rem, 3vw, 2.5rem); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.offer p:not(.price) { color: var(--muted); }
.offer .link-arrow { justify-self: start; margin-top: .5rem; }
.offer--accent { background: var(--encre); color: var(--ivoire); --muted: #c9c1b4; --accent: var(--champagne); }
.price { font: 500 var(--step--1)/1.3 var(--sans); letter-spacing: .06em; color: var(--accent); }

.article-list { display: grid; max-width: 54rem; border-top: 1px solid var(--line); }
.article-list li { border-bottom: 1px solid var(--line); padding: 2rem 0; }
.article-list article { display: grid; gap: .7rem; }
.article-list a { text-decoration: none; }
.article-list a:hover { color: var(--accent); }
.article-list p:not(.article-date) { color: var(--muted); }
.article-date { font-size: var(--step--1); color: var(--muted); }
.article .page-hero-text { max-width: 50rem; margin-inline: auto; }
.article .crumbs { max-width: 50rem; margin-inline: auto; }

.thanks { min-height: 80vh; display: grid; align-content: center; }
.notfound-links { display: flex; flex-wrap: wrap; gap: .8rem 2rem; margin-top: 2.5rem; }

/* ---------- Formulaires ---------- */
.contact-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 2.5rem clamp(2rem, 6vw, 7rem); align-items: start; }
.contact-aside { display: grid; gap: 1.2rem; }
.contact-aside p { color: var(--muted); }
.aside-alt a { color: var(--fg); }
@media (max-width: 900px) { .contact-layout { grid-template-columns: 1fr; } }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.6rem 2rem; }
.field { display: grid; gap: .5rem; align-content: start; min-width: 0; }
.field--full, .field--choices { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field label, .field legend { font-size: var(--step--1); letter-spacing: .03em; font-weight: 500; }
.req, .opt { font-weight: 400; color: var(--muted); }
.hint { font-size: .8rem; color: var(--muted); }
.field input:not([type="checkbox"]), .field select, .field textarea { width: 100%; padding: .85rem 0; background: transparent; border: 0; border-bottom: 1px solid color-mix(in srgb, var(--fg) 40%, transparent); border-radius: 0; font-size: var(--step-0); transition: border-color .3s; }
.field select { padding-right: 1.5rem; appearance: none; background: linear-gradient(45deg, transparent 50%, currentColor 50%) calc(100% - 9px) 55% / 5px 5px no-repeat, linear-gradient(-45deg, transparent 50%, currentColor 50%) calc(100% - 4px) 55% / 5px 5px no-repeat; }
.field textarea { resize: vertical; min-height: 9rem; line-height: 1.55; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--fg); box-shadow: 0 1px 0 0 var(--fg); }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: .8; }
.field [aria-invalid="true"] { border-bottom-color: #9b2c1f !important; }
.field-error { color: #8a2417; font-size: .82rem; }
.field--choices { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; }
.field--choices legend { width: 100%; margin-bottom: .7rem; padding: 0; }
.choice { display: inline-flex; align-items: center; gap: .55rem; cursor: pointer; font-size: var(--step-0); }
.choice input { width: 1.05rem; height: 1.05rem; accent-color: var(--encre); }
.form-privacy { font-size: .82rem; color: var(--muted); margin-top: 1.8rem; max-width: 60ch; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; margin-top: 1.8rem; }
.form-status { font-size: var(--step--1); }
.form-status.is-error { color: #8a2417; }
.form-status.is-ok { color: #2f5130; }
.form.is-sent .form-grid, .form.is-sent .form-privacy, .form.is-sent button { display: none; }
.form.is-sent .form-status { font: 300 var(--step-2)/1.3 var(--serif); color: var(--fg); }
.form button[disabled] { opacity: .6; cursor: progress; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--nuit); color: var(--ivoire); --muted: #b3aa9c; --line: rgba(242,237,228,.14); padding: clamp(4rem, 8vw, 7rem) var(--gutter) 2rem; }
.site-footer > * { max-width: var(--max); margin-inline: auto; }
.footer-call { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 2rem; padding-bottom: clamp(3rem, 6vw, 5rem); border-bottom: 1px solid var(--line); }
.footer-call-line { font: 300 var(--step-4)/1 var(--serif); letter-spacing: -.01em; max-width: 14ch; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 2.5rem; padding-block: 3.5rem; }
.footer-brand p:not(.wordmark) { color: var(--muted); max-width: 34ch; margin-top: 1.2rem; font-size: var(--step--1); }
.footer-h { font: 500 .8rem/1 var(--sans); letter-spacing: .08em; color: var(--champagne); margin-bottom: 1.2rem; }
.footer-col ul { display: grid; gap: .55rem; font-size: var(--step--1); }
.footer-col a { text-decoration: none; color: #ddd5c8; }
.footer-col a:hover { color: var(--ivoire); text-decoration: underline; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-top: 1.6rem; border-top: 1px solid var(--line); font-size: .8rem; color: var(--muted); }
.footer-legal { display: flex; flex-wrap: wrap; gap: .5rem 1.6rem; align-items: center; }
.footer-legal a { text-decoration: none; }
.footer-legal a:hover { text-decoration: underline; }
.motion-toggle { background: none; border: 0; padding: 0; cursor: pointer; font-size: .8rem; color: inherit; text-decoration: underline; text-underline-offset: .2em; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Visionneuse ---------- */
.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(8,7,6,.97); color: var(--ivoire); }
.lightbox::backdrop { background: rgba(8,7,6,.9); }
.lightbox[open] { display: grid; place-items: center; }
.lb-figure { display: grid; gap: 1rem; justify-items: center; padding: 4.5rem 4.5rem 3rem; max-width: 100%; max-height: 100%; }
.lb-figure img { max-height: calc(100vh - 9rem); max-width: 100%; width: auto; object-fit: contain; }
.lb-figure figcaption { font-size: var(--step--1); color: #c9c1b4; text-align: center; }
.lb-btn, .lb-close { position: absolute; background: none; border: 0; color: inherit; cursor: pointer; }
.lb-btn { top: 50%; transform: translateY(-50%); font: 300 3rem/1 var(--serif); padding: 1rem; }
.lb-prev { left: .5rem; } .lb-next { right: .5rem; }
.lb-close { top: 1.2rem; right: 1.5rem; font: 500 .85rem/1 var(--sans); letter-spacing: .1em; padding: .6rem; }
.lb-count { position: absolute; top: 1.6rem; left: 1.5rem; font-size: .8rem; color: #b3aa9c; }
@media (max-width: 600px) { .lb-figure { padding: 4rem .5rem 2rem; } .lb-btn { top: auto; bottom: .5rem; transform: none; } }

/* ---------- Pages secondaires (corporate, drone) : plus sobres ---------- */
.is-secondary .display { font-size: var(--step-3); }

/* ---------- Transitions de page (navigateurs compatibles) ---------- */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation: .35s var(--ease) both vt-out; }
  ::view-transition-new(root) { animation: .5s var(--ease) both vt-in; }
}
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; } }

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
[data-motion="reduced"] *, [data-motion="reduced"] *::before, [data-motion="reduced"] *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }

@media print { .site-header, .site-footer, .film-play, .cta-band, .lightbox { display: none !important; } .scene { padding-block: 1.5rem; background: #fff; color: #000; } }

/* Menu mobile ouvert : en-tête toujours clair sur fond nuit */
body.menu-open .site-header { color: var(--ivoire) !important; background: transparent; border-bottom-color: transparent; }
.main-nav ul, .footer-col ul, .footer-legal { list-style: none; padding: 0; margin: 0; }
/* Voile bas de l'image d'ouverture pour la lisibilité du titre qui la chevauche */
.letterbox--hero::after { content: ""; position: absolute; inset: auto 0 0; height: 40%; background: linear-gradient(transparent, rgba(13,12,11,.75)); pointer-events: none; }
.site-header .wordmark { min-height: 44px; align-items: center; padding-block: .4rem; }
.crumbs a { display: inline-block; padding-block: .3rem; min-height: 24px; }
.has-day-top .site-header:not(.is-solid) .wm-sub { color: var(--champagne-fonce); }

/* ---------- Ajouts : fondateur en vidéo, destination, certificats ---------- */
.founder--video { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.founder-media .film { gap: .8rem; }
.founder-media .film-title { font-size: var(--step-1); font-weight: 500; }
@media (max-width: 860px) { .founder--video { grid-template-columns: 1fr; } }

.teaser-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 6rem); align-items: center; }
.teaser-text { display: grid; gap: 1.4rem; justify-items: start; }
.teaser-text p:not(.kicker):not(.hero-actions) { color: var(--muted); max-width: 42ch; font-size: var(--step-1); line-height: 1.55; }
.teaser-text .kicker { margin-bottom: 0; }
@media (max-width: 860px) { .teaser-grid { grid-template-columns: 1fr; } }

.certs { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(.75rem, 1.5vw, 1.5rem); }
.cert { background: #fff; box-shadow: 0 0 0 1px var(--line); }
.cert img { object-fit: contain; }
@media (max-width: 700px) { .certs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.dest-index { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); counter-reset: none; }
.dest-index li { display: grid; gap: .55rem; align-content: start; padding: clamp(1.5rem, 3vw, 2.5rem) clamp(1rem, 2vw, 2rem) clamp(1.5rem, 3vw, 2.5rem) 0; border-bottom: 1px solid var(--line); }
.dest-index li:not(:nth-child(3n)) { border-right: 1px solid var(--line); }
.dest-index li:not(:nth-child(3n+1)) { padding-left: clamp(1rem, 2vw, 2rem); }
.dest-coord { font: 500 .74rem/1.2 var(--sans); letter-spacing: .14em; color: var(--accent); font-variant-numeric: tabular-nums; }
.dest-name { font: 300 var(--step-2)/1.1 var(--serif); }
.dest-country { font-size: var(--step--1); color: var(--muted); letter-spacing: .04em; }
.dest-text { color: var(--muted); max-width: 38ch; margin-top: .4rem; }
@media (max-width: 960px) { .dest-index { grid-template-columns: repeat(2, minmax(0, 1fr)); } .dest-index li { border-right: 0 !important; padding-left: 0 !important; } .dest-index li:nth-child(odd) { border-right: 1px solid var(--line) !important; } .dest-index li:nth-child(even) { padding-left: clamp(1rem, 2vw, 2rem) !important; } }
@media (max-width: 600px) { .dest-index { grid-template-columns: 1fr; } .dest-index li { border-right: 0 !important; padding-left: 0 !important; } }

.film-grid--spaced { margin-top: clamp(2rem, 4vw, 3.5rem); }
.dest-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.75rem, 1.5vw, 1.5rem); margin-top: clamp(3rem, 6vw, 5rem); }
@media (max-width: 760px) { .dest-strip { grid-template-columns: 1fr; } }

.formats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 3rem); margin-top: clamp(2.5rem, 5vw, 4rem); }
.formats article { display: grid; gap: .9rem; align-content: start; border-top: 1px solid var(--fg); padding-top: 1.6rem; }
.formats h3 { font: 300 var(--step-2)/1.1 var(--serif); }
.formats p:not(.price) { color: var(--muted); }
@media (max-width: 860px) { .formats { grid-template-columns: 1fr; } }

.relation { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.features--stack { grid-template-columns: 1fr; margin-top: 2.5rem; }
@media (max-width: 860px) { .relation { grid-template-columns: 1fr; } }
.screen-letterbox video { object-fit: contain; }

/* Exigence (accueil) */
.hero-kicker { font: 500 var(--step--1)/1.4 var(--sans); letter-spacing: .06em; color: var(--champagne); margin-bottom: 1rem; }
.pledges { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem clamp(1.5rem, 3vw, 3rem); }
.pledges li { display: grid; gap: .7rem; align-content: start; border-top: 1px solid var(--fg); padding-top: 1.4rem; }
.pledges h3 { font: 400 var(--step-2)/1.15 var(--serif); }
.pledges p { color: var(--muted); }
@media (max-width: 960px) { .pledges { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .pledges { grid-template-columns: 1fr; } }
