/* THEMAPROD — feuille de style unique.
   Polices hébergées (licence OFL-1.1) : Instrument Serif (titres), Geist (texte), Geist Mono (repères). */

@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/instrument-serif-400.woff2") format("woff2"); }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url("fonts/instrument-serif-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Geist"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("fonts/geist-variable.woff2") format("woff2"); }
@font-face { font-family: "Geist Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/geist-mono-400.woff2") format("woff2"); }

:root {
  --bg: #0c0c0d;
  --bg-2: #151517;
  --line: rgba(240, 235, 226, .14);
  --line-2: rgba(240, 235, 226, .28);
  --ink: #f2eee6;
  --ink-2: #cdc8be;
  --mute: #9d978c;
  --accent: #bd4329;          /* rouille THEMAPROD */
  --accent-dk: #a3361f;       /* accent lisible sur fond clair */
  --accent-hi: #e8775d;       /* accent lisible sur fond sombre */
  --paper: #efe9df;           /* sections claires */
  --paper-ink: #1a1815;
  --paper-mute: #5f594f;
  --paper-line: rgba(26, 24, 21, .14);

  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --pad: clamp(20px, 4vw, 56px);
  --max: 1320px;
  --sec: clamp(80px, 10vw, 150px);
  --ease: cubic-bezier(.2, .7, .1, 1);
  --hdr: 72px;
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--hdr) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--bg); color: var(--ink-2);
  font: 400 17.5px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, video, iframe { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 3px; }
[hidden] { display: none !important; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; padding: 10px 16px; background: var(--ink); color: var(--bg); font-weight: 500; }
.skip:focus { top: 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- Typographie ---------- */
h1, h2, .display { font-family: var(--serif); font-weight: 400; color: var(--ink); letter-spacing: -.01em; }
h1 { font-size: clamp(2.6rem, 5.4vw, 5rem); line-height: 1; }
h2 { font-size: clamp(2.1rem, 4vw, 3.5rem); line-height: 1.04; }
h3 { font: 600 1.15rem/1.35 var(--sans); color: var(--ink); }
.display { font-size: clamp(2.8rem, 7vw, 6.4rem); line-height: .95; }
h1 em, h2 em, .display em { font-style: italic; color: var(--accent-hi); }
p { max-width: 64ch; }
p + p { margin-top: 1em; }
.lead { font-size: clamp(1.12rem, 1.5vw, 1.3rem); line-height: 1.55; color: var(--ink); max-width: 52ch; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font: 500 13px/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--accent-hi); }
.kicker::before { content: ""; width: 22px; height: 1px; background: currentColor; }
.meta { font: 400 13px/1.4 var(--mono); letter-spacing: .04em; color: var(--mute); }
.tlink { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent-hi); text-underline-offset: 4px; text-decoration-thickness: 1px; transition: color .2s; }
.tlink:hover { color: var(--accent-hi); }
.more { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 500; color: var(--ink); }
.more::after { content: "→"; color: var(--accent-hi); transition: transform .3s var(--ease); }
.more:hover::after { transform: translateX(4px); }

/* ---------- Mise en page ---------- */
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); }
.sec { padding-block: var(--sec); }
.sec + .sec:not(.light) { border-top: 1px solid var(--line); }
.head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.head h2 { margin-top: 16px; }
.head .lead { margin-top: 18px; }
.head-row { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: end; justify-content: space-between; margin-bottom: clamp(36px, 5vw, 64px); }
.head-row .head { margin-bottom: 0; }
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(36px, 6vw, 96px); align-items: center; }
.stack > * + * { margin-top: 20px; }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); } }

/* Section claire, pour respirer et donner du contraste */
.light { background: var(--paper); color: var(--paper-mute); color-scheme: light; }
.light h1, .light h2, .light h3, .light .lead, .light strong { color: var(--paper-ink); }
.light h2 em { color: var(--accent-dk); }
.light .kicker { color: var(--accent-dk); }
.light .meta { color: var(--paper-mute); }
.light .more { color: var(--paper-ink); }
.light .more::after { color: var(--accent); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px; padding: 0 26px;
  border: 1px solid var(--line-2); border-radius: 999px; color: var(--ink); font: 500 15.5px/1 var(--sans);
  transition: background-color .25s, color .25s, border-color .25s;
}
.btn:hover { border-color: var(--ink); }
.btn-accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-accent:hover { background: #b23f27; border-color: #b23f27; }
.btn .arr { transition: transform .3s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.light .btn { color: var(--paper-ink); border-color: rgba(26, 24, 21, .3); }
.light .btn-accent { color: #fff; border-color: var(--accent); }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- En-tête ---------- */
.hdr { position: fixed; inset: 0 0 auto; z-index: 80; height: var(--hdr); transition: background-color .35s, border-color .35s; border-bottom: 1px solid transparent; }
.scrolled .hdr { background: rgba(12, 12, 13, .92); border-color: var(--line); }
.nav-open .hdr { background: var(--bg); }
.hdr .wrap { height: 100%; display: flex; align-items: center; gap: 32px; }
.brand { display: inline-flex; align-items: center; min-height: 44px; font: 600 15px/1 var(--sans); letter-spacing: .28em; color: var(--ink); }
.nav { margin-left: auto; display: flex; align-items: center; gap: 30px; }
.nav a:not(.btn) { position: relative; padding-block: 12px; font-weight: 500; font-size: 15.5px; color: var(--ink-2); transition: color .2s; }
.nav a:not(.btn):hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 1px; background: var(--accent-hi); }
.nav .btn { min-height: 44px; padding: 0 20px; }
.nav .tel { font-family: var(--mono); font-size: 14px; }
.menu-btn { display: none; margin-left: auto; align-items: center; gap: 12px; min-height: 44px; font-weight: 500; color: var(--ink); }
.menu-btn .bars { position: relative; width: 22px; height: 8px; }
.menu-btn .bars span { position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform .4s var(--ease); }
.menu-btn .bars span:first-child { top: 0; } .menu-btn .bars span:last-child { bottom: 0; }
.nav-open .menu-btn .bars span:first-child { transform: translateY(3.25px) rotate(45deg); }
.nav-open .menu-btn .bars span:last-child { transform: translateY(-3.25px) rotate(-45deg); }
@media (max-width: 1100px) { .nav .tel { display: none; } }
@media (max-width: 860px) {
  .menu-btn { display: inline-flex; }
  .nav {
    position: fixed; inset: var(--hdr) 0 auto; height: calc(100dvh - var(--hdr)); margin: 0; padding: 24px var(--pad) 32px;
    flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0; background: var(--bg);
    visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s .3s;
  }
  .nav-open .nav { visibility: visible; opacity: 1; transform: none; transition: opacity .3s var(--ease), transform .3s var(--ease); }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); font: 400 2.2rem/1.15 var(--serif); color: var(--ink); }
  .nav a[aria-current="page"]::after { display: none; }
  .nav a[aria-current="page"] { font-style: italic; color: var(--accent-hi); }
  .nav .btn { margin-top: 28px; min-height: 54px; }
  .nav .tel { display: inline-flex; justify-content: center; margin-top: 10px; padding: 14px 0 !important; border: 0 !important; font: 500 16px var(--mono) !important; color: var(--ink-2) !important; }
  .nav-open { overflow: hidden; }
}

/* ---------- Ouverture de l'accueil ---------- */
.hero {
  position: relative; overflow: hidden; min-height: max(680px, 100svh); padding-top: var(--hdr);
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center;
  background:
    radial-gradient(45% 50% at 70% 52%, rgba(200, 75, 49, .2), transparent 70%),
    radial-gradient(80% 70% at 68% 55%, transparent 40%, rgba(0, 0, 0, .55)),
    #0c0c0d url("media/ui/paper.webp");
}
.hero-text { position: relative; z-index: 3; padding: 40px 0 40px max(var(--pad), calc((100vw - var(--max)) / 2 + var(--pad))); }
.hero-text h1 { margin-top: 22px; max-width: 13ch; }
.hero-text .lead { margin-top: 24px; max-width: 44ch; }
.hero-text .row { margin-top: 34px; }
.hero-text .place { margin-top: 26px; }
@media (max-width: 1100px) {
  .hero { grid-template-columns: minmax(0, 1fr); align-content: start; padding-top: calc(var(--hdr) + 18px); }
  .hero-text { padding: 20px var(--pad) 0; }
  .hero-text h1 { max-width: 16ch; }
}

/* ---------- Anneau de films (cartes droites, toujours à l'endroit) ---------- */
.orbit { --w: clamp(200px, 17vw, 300px); position: relative; height: min(78svh, 720px); perspective: 800px; perspective-origin: 50% 25%; touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: grab; }
.orbit.dragging { cursor: grabbing; }
.orbit-scene { position: absolute; left: 50%; top: 46%; width: 0; height: 0; transform-style: preserve-3d; transform: rotateX(-8deg); }
.ocard { transition: opacity .4s linear; position: absolute; left: calc(var(--w) / -2); top: calc(var(--w) * -.28125); width: var(--w); aspect-ratio: 16 / 9; will-change: transform; }
.ocard a {
  position: absolute; inset: 0; display: block; overflow: hidden; border-radius: 6px; background: var(--bg-2);
  box-shadow: 0 30px 50px -20px rgba(0, 0, 0, .85), 0 0 0 1px rgba(255, 255, 255, .06);
  filter: blur(var(--b, 0px)) brightness(var(--l, 1)); transition: filter .45s linear; -webkit-user-drag: none;
}
.ocard img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ocard a::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0, 0, 0, .82), rgba(0, 0, 0, .1) 55%, transparent); }
.ocard .cap { position: absolute; z-index: 1; left: 14px; right: 14px; bottom: 12px; display: flex; flex-direction: column; gap: 3px; }
.ocard .t { font: 400 clamp(1.15rem, 1.6vw, 1.55rem)/1.1 var(--serif); color: #fff; }
.ocard .k { font: 500 11.5px/1.3 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .8); }
.ocard .go { position: absolute; z-index: 1; top: 12px; right: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: var(--accent); color: #fff; font: 500 12.5px/1 var(--sans); opacity: 0; transform: translateY(-4px); transition: opacity .3s, transform .3s var(--ease); }
.ocard.is-focus .go { opacity: 1; transform: none; }
.ocard a:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 3px; }
.orbit-ui { position: absolute; z-index: 4; left: 0; right: 0; bottom: clamp(14px, 3vh, 28px); display: flex; justify-content: center; align-items: center; gap: 12px; }
.orbit-ui button { min-width: 44px; min-height: 44px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--ink); font: 500 14px/1 var(--sans); padding: 0 16px; transition: border-color .2s; background: rgba(12, 12, 13, .5); }
.orbit-ui button:hover { border-color: var(--ink); }
.orbit-ui .hint { color: var(--mute); font-size: 14px; }
@media (max-width: 1100px) { .orbit { height: min(58svh, 500px); } .ocard .go { top: 10px; right: 10px; } }
@media (max-width: 560px) { .orbit-ui .hint { display: none; } }

/* ---------- Bandeau de confiance ---------- */
.trust { padding-block: 30px; border-bottom: 1px solid var(--line); }
.trust .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 40px; }
.trust ul { display: flex; flex-wrap: wrap; gap: 8px 34px; }
.trust li { font: 400 1.45rem/1.25 var(--serif); color: var(--ink); }

/* ---------- Offre ---------- */
.offers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.offer { display: flex; flex-direction: column; gap: 14px; padding: 30px 28px 24px; border-radius: 10px; background: #fff; }
.offer .n { font: 400 13px/1 var(--mono); color: var(--accent-dk); }
.offer h3 { font: 400 1.95rem/1.1 var(--serif); color: var(--paper-ink); }
.offer p { color: var(--paper-mute); }
.offer ul { margin-top: 4px; }
.offer li { position: relative; padding: 8px 0 8px 20px; border-top: 1px solid var(--paper-line); color: var(--paper-ink); font-size: 16px; }
.offer li::before { content: ""; position: absolute; left: 2px; top: 18px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.offer .more { margin-top: auto; }
@media (max-width: 960px) { .offers { grid-template-columns: minmax(0, 1fr); } }
.values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px); margin-top: clamp(56px, 7vw, 90px); }
.values div { padding-top: 22px; border-top: 2px solid var(--accent); }
.values h3 { margin-bottom: 10px; }
@media (max-width: 860px) { .values { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Films : lecteur cliquable ---------- */
.yt { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 8px; background: #000; }
.yt iframe, .yt > div { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt button { position: absolute; inset: 0; width: 100%; height: 100%; }
.yt img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), filter .4s; }
.yt button:hover img { transform: scale(1.025); filter: brightness(1.06); }
.play {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%; display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 20px 13px 16px; border-radius: 999px; background: var(--accent); color: #fff; font: 500 15px/1 var(--sans);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35); transition: scale .3s var(--ease), background-color .2s;
}
.play::before { content: ""; width: 0; height: 0; border-style: solid; border-width: 7px 0 7px 12px; border-color: transparent transparent transparent #fff; }
.yt button:hover .play { scale: 1.06; background: #b23f27; }
.yt button:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: -4px; }
.film-cap { margin-top: 14px; display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.film-cap h3 { font: 400 1.45rem/1.15 var(--serif); }
.film-cap .meta { white-space: nowrap; }
.film-note { margin-top: 4px; color: var(--mute); font-size: 15.5px; }
.film-note a { display: inline-flex; min-height: 44px; align-items: center; color: var(--accent-hi); font-weight: 500; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(36px, 4vw, 56px) clamp(20px, 3vw, 40px); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1000px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .grid, .grid-3 { grid-template-columns: minmax(0, 1fr); } }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(32px, 4vw, 48px); }
.filters button { min-height: 44px; padding: 0 18px; border: 1px solid var(--line-2); border-radius: 999px; font-weight: 500; font-size: 15px; color: var(--ink-2); transition: background-color .2s, color .2s, border-color .2s; }
.filters button:hover { border-color: var(--ink); color: var(--ink); }
.filters button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.case { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
.case + .case { margin-top: clamp(56px, 7vw, 96px); }
@media (max-width: 900px) { .case { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Lecteur en fenêtre ---------- */
.player { width: min(1200px, 94vw); max-width: none; padding: 0; border: 0; background: transparent; color: var(--ink); overflow: visible; }
.player::backdrop { background: rgba(5, 5, 6, .92); }
.player[open] { animation: rise .35s var(--ease); }
.player-bar { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-bottom: 12px; }
.player-bar .t { font: 400 1.5rem/1.2 var(--serif); }
.player-bar button { min-height: 44px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: 999px; font-weight: 500; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

/* ---------- Méthode, témoignage, FAQ ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.steps > div { padding: 28px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--line); }
.steps .n { font: 400 2.6rem/1 var(--serif); color: var(--accent-hi); }
.steps h3 { margin: 18px 0 10px; font-size: 1.2rem; }
@media (max-width: 860px) { .steps { grid-template-columns: minmax(0, 1fr); } }
blockquote { font: 400 clamp(1.7rem, 2.8vw, 2.5rem)/1.2 var(--serif); color: var(--ink); max-width: 24ch; }
.quote figcaption { margin-top: 22px; }
.quote figcaption strong { color: var(--ink); font-weight: 600; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; gap: 20px; padding: 22px 0; cursor: pointer; color: var(--ink); font-weight: 500; font-size: 1.1rem; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--accent-hi); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 24px; }

/* ---------- Appel à l'action + pied de page ---------- */
.cta { padding-block: clamp(80px, 11vw, 150px); background: var(--accent); color: rgba(255, 255, 255, .9); }
.cta h2 { color: #fff; font-size: clamp(2.5rem, 5.5vw, 4.8rem); max-width: 14ch; }
.cta h2 em { color: #fff; }
.cta .lead { color: #fff; margin-top: 20px; }
.cta .row { margin-top: 36px; }
.cta .btn { color: #fff; border-color: rgba(255, 255, 255, .6); }
.cta .btn:hover { border-color: #fff; }
.cta .btn-light { background: #fff; color: var(--paper-ink); border-color: #fff; }
.cta .btn-light:hover { background: var(--paper); }
.foot { padding-block: 56px 28px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; }
.foot-grid p { max-width: 38ch; }
.foot h2 { font: 600 13px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--mute); margin-bottom: 14px; }
.foot li a, .foot li span { display: inline-flex; min-height: 40px; align-items: center; }
.foot a:hover { color: var(--ink); }
.foot-base { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 6px 28px; justify-content: space-between; align-items: center; font-size: 14.5px; color: var(--mute); }
.foot-base ul { display: flex; flex-wrap: wrap; gap: 0 24px; }
.foot-base a { display: inline-flex; min-height: 44px; align-items: center; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Pages intérieures ---------- */
.phead { padding: calc(var(--hdr) + clamp(56px, 9vw, 120px)) 0 clamp(40px, 6vw, 72px); }
.phead h1 { margin-top: 20px; max-width: 16ch; }
.phead .lead { margin-top: 24px; }
.crumb { display: flex; flex-wrap: wrap; gap: 10px; font-size: 14.5px; color: var(--mute); }
.crumb li + li::before { content: "/"; margin-right: 10px; color: var(--line-2); }
.crumb a { display: inline-flex; min-height: 44px; align-items: center; }
.crumb li { display: inline-flex; align-items: center; }
.crumb a:hover { color: var(--ink); }

/* Étude de cas */
.case-hero { position: relative; min-height: min(78svh, 760px); display: grid; align-items: end; overflow: hidden; isolation: isolate; padding: calc(var(--hdr) + 40px) 0 clamp(40px, 6vw, 72px); }
.case-hero > .bg { position: absolute; inset: 0; z-index: -1; }
.case-hero > .bg img { width: 100%; height: 100%; object-fit: cover; }
.case-hero > .bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--bg) 2%, rgba(12, 12, 13, .6) 45%, rgba(12, 12, 13, .35)); }
.case-hero h1 { margin-top: 18px; }
.case-hero .lead { margin-top: 20px; }
.facts { border-top: 1px solid var(--line); }
.facts > div { display: grid; grid-template-columns: minmax(110px, .45fr) minmax(0, 1fr); gap: 20px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--mute); font-size: 15px; }
.facts dd { color: var(--ink); }
.gallery { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(10px, 1.4vw, 18px); }
.gallery figure { grid-column: span 6; }
.gallery .wide { grid-column: span 12; }
.gallery .tall { grid-column: span 4; }
.gallery .w8 { grid-column: span 8; }
.gallery figcaption { margin-top: 10px; }
.media { position: relative; overflow: hidden; border-radius: 6px; background: var(--bg-2); }
.media img, .media video { width: 100%; height: 100%; object-fit: cover; }
.r169 { aspect-ratio: 16 / 9; } .r916 { aspect-ratio: 9 / 16; } .r32 { aspect-ratio: 3 / 2; }
@media (max-width: 700px) {
  .gallery figure, .gallery .w8 { grid-column: span 12; }
  .gallery .tall { grid-column: span 6; }
}
.next { display: block; padding-block: clamp(64px, 9vw, 120px); border-top: 1px solid var(--line); text-align: center; }
.next .display { display: block; margin-top: 14px; transition: color .25s; }
.next:hover .display { color: var(--accent-hi); }

/* À propos : portrait entier, jamais recadré */
.portrait { width: 100%; max-width: 500px; justify-self: end; }
.portrait img { width: 100%; height: auto; border-radius: 8px; }
.portrait figcaption { margin-top: 12px; }
@media (max-width: 900px) { .portrait { justify-self: start; max-width: 420px; } }

/* ---------- Formulaire ---------- */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; padding: clamp(24px, 3vw, 40px); border-radius: 12px; background: var(--paper); color: var(--paper-ink); color-scheme: light; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full, .form-foot, #form-message { grid-column: 1 / -1; }
.field label { font-weight: 500; font-size: 15px; }
.field label span { color: var(--paper-mute); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 14px; border: 1px solid rgba(26, 24, 21, .25); border-radius: 8px;
  background: #fff; color: var(--paper-ink); font: 400 16px/1.4 var(--sans); transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(200, 75, 49, .2); }
.form-foot { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; margin-top: 6px; }
.form-foot p { font-size: 14px; color: var(--paper-mute); max-width: 44ch; }
.form-foot a { color: var(--paper-ink); text-decoration: underline; }
.hp { position: absolute; left: -9999px; }
#form-message { min-height: 1.6em; font-size: 15.5px; font-weight: 500; }
#form-message.ok { color: #2f7a3a; } #form-message.err { color: #b23f27; }
.contact-list { margin-top: 36px; border-top: 1px solid var(--line); }
.contact-list > div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact-list dt { color: var(--mute); font-size: 15px; }
.contact-list dd { color: var(--ink); }
@media (max-width: 700px) { .form { grid-template-columns: 1fr; } }

/* ---------- Texte long (pages légales) ---------- */
.prose { max-width: 760px; }
.prose h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); margin: 52px 0 14px; }
.prose ul { margin-top: 12px; }
.prose li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.prose li a { display: inline-block; padding-block: 10px; }

/* ---------- Apparition au défilement ---------- */
.js .rv { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .rv.in { opacity: 1; transform: none; }

/* ---------- Transitions entre pages (Chrome, Safari) ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: .25s var(--ease) both vt-out; }
::view-transition-new(root) { animation: .4s var(--ease) both vt-in; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .js .rv { opacity: 1; transform: none; }
}

/* ---------- Vidéo de fond ---------- */
/* La vidéo remplit le bloc sans être trop agrandie : sur écran vertical, on limite la hauteur
   filmée (≈ 2,2 × la hauteur native) et un fondu prolonge l'image vers le fond sombre. */
.bgv { position: absolute; left: 0; right: 0; top: 0; height: 100%; z-index: -1; overflow: hidden; pointer-events: none; background: var(--bg); }
.bgv video { width: 100%; height: 100%; object-fit: cover; }
.bgv::after { content: ""; position: absolute; inset: 0; }
@media (orientation: portrait) { .bgv { height: min(100%, 100vw * .523 * 2.3); } }

/* Accueil : sur ordinateur, l'anneau ; sur petit écran, le texte plein écran sur la vidéo */
.hero-text > .bgv { display: none; }
@media (max-width: 1100px) {
  .hero { padding-top: 0; }
  .hero-text { isolation: isolate; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; padding: calc(var(--hdr) + 32px) var(--pad) clamp(36px, 7vh, 64px); }
  .hero-text > .bgv { display: block; }
  .hero-text > .bgv::after { background: linear-gradient(180deg, rgba(12, 12, 13, .55) 0%, rgba(12, 12, 13, .25) 30%, rgba(12, 12, 13, .7) 72%, var(--bg) 100%); }
  .hero-text h1, .hero-text .lead { text-shadow: 0 2px 18px rgba(0, 0, 0, .55); }
}
@media (max-width: 1100px) and (orientation: portrait) { .hero-text { justify-content: flex-start; padding-top: calc(var(--hdr) + 12vh); } }

/* Page Réalisations : vidéo et texte superposés */
.vhero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--hdr) + 40px) 0 clamp(48px, 8vh, 96px); overflow: hidden; isolation: isolate; }
.vhero .wrap { position: relative; }
.vhero h1 { margin-top: 16px; max-width: 14ch; }
.vhero .lead, .vhero h1 { text-shadow: 0 2px 18px rgba(0, 0, 0, .55); }
.vhero .lead { margin-top: 22px; }
.vhero .bgv::after { background: linear-gradient(90deg, rgba(12, 12, 13, .78) 0%, rgba(12, 12, 13, .45) 45%, rgba(12, 12, 13, .1) 80%), linear-gradient(180deg, rgba(12, 12, 13, .4) 0%, transparent 25%, transparent 70%, var(--bg) 100%); }
@media (orientation: portrait) {
  .vhero { min-height: 0; align-items: flex-start; padding-top: calc(var(--hdr) + 12vh); }
  .vhero .bgv::after { background: linear-gradient(180deg, rgba(12, 12, 13, .5) 0%, rgba(12, 12, 13, .3) 30%, rgba(12, 12, 13, .75) 75%, var(--bg) 100%); }
}

/* Showreel avec citation */
.reel { margin-bottom: clamp(56px, 7vw, 96px); grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
@media (max-width: 900px) { .reel { grid-template-columns: minmax(0, 1fr); } }

/* Avis clients */
.reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: clamp(24px, 3vw, 40px); }
.review { display: grid; gap: 22px; align-content: start; padding: clamp(24px, 3vw, 36px); border-radius: 10px; background: var(--bg-2); border: 1px solid var(--line); }
.review blockquote { font-size: clamp(1.5rem, 2.2vw, 2rem); max-width: none; }
.review figcaption strong { color: var(--ink); font-weight: 600; }

/* Participations : petit bloc discret */
.credits { padding-block: 28px; border-top: 1px solid var(--line); }
.credits .wrap { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 28px; }
.credits-text { color: var(--ink-2); font-size: 16px; }
.soon { display: inline-block; margin-right: 10px; padding: 3px 10px; border: 1px solid var(--accent-hi); border-radius: 999px; color: var(--accent-hi); font: 500 12px/1.4 var(--sans); letter-spacing: .06em; text-transform: uppercase; vertical-align: 1px; }
.reviews { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) {
  .review { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: clamp(28px, 4vw, 56px); align-items: center; }
  .review .yt { grid-column: 2; grid-row: 1 / span 2; }
}
