/* Surcouche de la version cinématique : les composants du site restent la base. */
:root {
  --cinema-bronze: #dfc49c;
  --cinema-header-height: 95px;
}

/* L'information de la barre haute est reprise au pied du hero sur l'accueil. */
.is-cinematic-page > .topbar { display: none; }
.is-cinematic-page .site-header {
  margin-bottom: calc(-1 * var(--cinema-header-height));
  color: #fffdf6;
  background: rgba(13, 33, 28, .83);
  border-color: rgba(255, 255, 255, .18);
  transition: background-color .25s, color .25s, border-color .25s;
}
.is-cinematic-page .site-header .brand { color: inherit; }
.is-cinematic-page .site-header .brand-dot { color: var(--cinema-bronze); }
.is-cinematic-page #navigation > a:not(.button)::after { background: var(--cinema-bronze); }
.is-cinematic-page .site-header .button { border-color: #e6d2b0; background: transparent; color: #fffdf6; }
.is-cinematic-page .site-header .button:hover { background: #e6d2b0; color: #183c33; }
.is-cinematic-page .site-header :focus-visible { outline-color: #f5d39a; }
.is-cinematic-page.cinema-past-hero .site-header { color: var(--ink); background: var(--paper); border-color: var(--line); }
.is-cinematic-page.cinema-past-hero .site-header .button { background: var(--green); color: white; border-color: var(--green); }
.is-cinematic-page.cinema-past-hero .site-header .brand-dot { color: #527f43; }
.is-cinematic-page.cinema-past-hero #navigation > a:not(.button)::after { background: var(--green); }

.cinematic-hero { position: relative; isolation: isolate; background: #1b342d; }
.cinematic-stage {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 660px;
  overflow: clip;
  color: #fffdf6;
  background: #1b342d;
}
.cinematic-hero.is-scrubbing { height: 330vh; height: 330svh; }
.is-scrubbing .cinematic-stage { position: sticky; top: 0; }
.cinematic-media, .cinematic-media picture, .cinematic-poster, .cinematic-video,
.cinematic-shade, .cinematic-vignette { position: absolute; inset: 0; width: 100%; height: 100%; }
.cinematic-media { overflow: hidden; }
.cinematic-poster, .cinematic-video { object-fit: cover; object-position: center; }
.cinematic-video { opacity: 0; pointer-events: none; }
.cinematic-hero[data-cinema-state="ready"] .cinematic-video { opacity: 1; }
.cinematic-shade {
  background: linear-gradient(90deg, rgba(7, 24, 20, .91), rgba(7, 24, 20, .72) 40%, rgba(7, 24, 20, .24) 68%, rgba(7, 24, 20, .05));
  opacity: var(--scene-shade, 1);
  pointer-events: none;
}
.cinematic-vignette { background: linear-gradient(0deg, rgba(7, 24, 20, .82), transparent 25%, transparent 76%, rgba(7, 24, 20, .2)); pointer-events: none; }
.cinematic-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  height: 100%;
  padding-top: calc(var(--cinema-header-height) + 20px);
  padding-bottom: 135px;
}
.cinematic-copy { max-width: 750px; opacity: var(--scene-copy-opacity, 1); transform: translateY(var(--scene-copy-shift, 0)); }
.cinematic-copy .eyebrow { display: flex; align-items: center; gap: 11px; color: #e6d6b8; font-size: 10px; }
.cinematic-copy .status-dot { background: var(--cinema-bronze); }
.cinematic-copy h1 { font-size: clamp(54px, 5.7vw, 84px); line-height: 1.065; margin: 24px 0; letter-spacing: -.055em; }
.cinematic-copy h1 em { color: #e3e9d8; }
.cinematic-copy .hero-description { color: #f2f0e7; max-width: 500px; font-size: 14px; line-height: 1.9; }
.cinematic-copy .button { background: #f4f2e9; color: #183c33; border-color: #f4f2e9; min-height: 55px; }
.cinematic-copy .button:hover { background: #e6d2b0; border-color: #e6d2b0; }
.cinematic-copy .button-secondary { color: #fffdf6; background: rgba(9, 29, 24, .55); border-color: #d6dacf; }
.cinematic-copy .button-secondary:hover { color: #183c33; background: #f4f2e9; }
.cinematic-copy :focus-visible, .cinematic-bottom :focus-visible { outline-color: #f5d39a; }
.cinematic-promise { display: flex; align-items: center; gap: 15px; padding-top: 26px; margin-top: 27px; max-width: 415px; border-top: 1px solid rgba(255, 255, 255, .3); }
.cinematic-promise .mini-mark { color: var(--cinema-bronze); font-size: 30px; }
.cinematic-promise p { color: #ecebe3; font-size: 11px; }
.cinematic-promise strong { font-weight: 500; color: #fffdf6; }
/* Un lien atteint au clavier ne devient jamais invisible pendant le fondu. */
.cinematic-copy:focus-within { opacity: 1; transform: none; }
.cinematic-stage:has(.cinematic-copy:focus-within) .cinematic-shade { opacity: 1; }
.cinematic-copy[data-copy-hidden="true"] { pointer-events: none; }
.cinematic-copy[data-copy-hidden="true"]:focus-within { pointer-events: auto; }
.cinematic-bottom { position: absolute; bottom: 0; inset-inline: 0; z-index: 2; }
.cinematic-bottom-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 28px; border-top: 1px solid rgba(255, 255, 255, .28); padding-top: 21px; padding-bottom: 16px; }
.cinematic-signature p { color: #f2efe4; font-size: 11px; }
.cinematic-signature > span { color: #e3dac7; font-size: 8px; letter-spacing: .14em; }
.cinematic-skip { display: flex; align-items: center; gap: 20px; color: #fffdf6; font-size: 11px; min-height: 44px; }
.cinematic-skip > span:last-child { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid #e6d2b0; border-radius: 50%; font-size: 18px; transition: background .2s; }
.cinematic-skip:hover > span:last-child { background: #f4f2e9; color: #183c33; }
.cinematic-location { display: flex; align-items: center; justify-self: end; gap: 12px; font-size: 10px; color: #f2efe4; }
.cinematic-location svg { width: 23px; height: 23px; color: var(--cinema-bronze); }
.cinematic-location strong { font-weight: 500; }
.cinematic-caption { text-align: center; padding: 7px 20px 10px; color: #f2efe4; background: rgba(7, 24, 20, .7); font-size: 8px; letter-spacing: .025em; }
.cinematic-progress { position: absolute; bottom: 0; left: 0; right: 0; height: 2px; z-index: 3; background: rgba(230, 210, 176, .12); visibility: hidden; }
.is-scrubbing .cinematic-progress { visibility: visible; }
.cinematic-progress > span { display: block; height: 100%; background: #dfc49c; transform: scaleX(var(--scene-progress, 0)); transform-origin: left; }
.is-cinematic-page .audience-strip { background: #f3f2e9; border-top-color: #d5d9cd; }

/* Le portrait de l'ancien hero est conservé dans la rubrique méthode. */
.method-photo-pair { position: relative; padding: 0 45px 35px 0; }
.method-photo-pair .photo:first-child { width: 85%; height: 590px; }
.method-photo-pair .photo:last-child { position: absolute; right: 0; bottom: 0; width: 49%; height: 325px; border: 7px solid var(--tint); }
.method-photo-pair .photo:last-child img { object-position: center 25%; }
.method-photo-pair .photo:last-child figcaption { font-size: 7px; right: 3px; left: 3px; max-width: none; text-align: center; }

/* L'amélioration progressive ne masque jamais le contenu sans JavaScript. */
.will-reveal { opacity: 0; transform: translateY(18px); transition: opacity .65s ease, transform .65s cubic-bezier(.2,.65,.3,1); }
.will-reveal.is-revealed, .will-reveal:focus-within { opacity: 1; transform: none; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .service-card { transition: background .2s, transform .2s, box-shadow .2s; }
  .service-card:hover { position: relative; z-index: 1; transform: translateY(-3px); box-shadow: 0 12px 28px #193b3210; }
}
@media (max-width: 1100px) {
  .cinematic-copy h1 { font-size: 62px; }
  .cinematic-copy { max-width: 650px; }
  .cinematic-shade { background: linear-gradient(90deg, rgba(7,24,20,.91), rgba(7,24,20,.7) 47%, rgba(7,24,20,.1)); }
}
@media (max-width: 960px) {
  .cinematic-hero.is-scrubbing { height: auto; }
  .cinematic-copy h1 { font-size: 59px; }
  .cinematic-stage { min-height: 750px; }
  .cinematic-location { display: none; }
  .cinematic-bottom-inner { grid-template-columns: 1fr auto; }
  .method-photo-pair { padding-right: 25px; }
  .method-photo-pair .photo:first-child { height: 550px; }
}
@media (max-width: 760px) {
  :root { --cinema-header-height: 81px; }
  /* Sans JS, le menu ouvert reste dans le flux et ne recouvre pas la page. */
  .is-cinematic-page .site-header:has(.menu-toggle[hidden]) { position: relative; margin-bottom: 0; }
  .is-cinematic-page:has(.menu-toggle[hidden]) .cinematic-inner { padding-top: 43px; }
  .is-cinematic-page .site-header .menu-toggle { color: inherit; }
  .is-cinematic-page .site-header .menu-lines { border-color: currentColor; }
  .is-cinematic-page .menu-toggle[aria-expanded=true] .menu-lines::before,
  .is-cinematic-page .menu-toggle[aria-expanded=true] .menu-lines::after { background: currentColor; }
  .is-cinematic-page #navigation > a:not(.button) { border-color: rgba(255,255,255,.25); }
  .is-cinematic-page.cinema-past-hero #navigation > a:not(.button) { border-color: var(--line); }
  .cinematic-stage { min-height: 780px; }
  .cinematic-inner { align-items: flex-start; padding-top: calc(var(--cinema-header-height) + 58px); padding-bottom: 175px; }
  .cinematic-copy { max-width: 540px; }
  .cinematic-copy h1 { font-size: clamp(44px, 8.6vw, 61px); margin: 25px 0; }
  .cinematic-copy .hero-description { font-size: 14px; }
  .cinematic-copy .eyebrow { font-size: 9px; }
  .cinematic-copy .hero-actions { flex-wrap: wrap; gap: 12px; }
  .cinematic-copy .button { font-size: 12px; padding-inline: 18px; gap: 20px; }
  .cinematic-promise { margin-top: 27px; padding-top: 21px; }
  .cinematic-bottom-inner { gap: 10px; padding-block: 16px; }
  .cinematic-signature p { font-size: 9px; }
  .cinematic-signature > span { font-size: 7px; letter-spacing: .09em; }
  .cinematic-skip { font-size: 10px; gap: 9px; }
  .cinematic-caption { font-size: 8px; }
  .cinematic-poster { object-position: 59% center; }
  .cinematic-shade { background: linear-gradient(90deg, rgba(7,24,20,.9), rgba(7,24,20,.72) 65%, rgba(7,24,20,.4)); }
  .method-photo-pair .photo:first-child { height: 470px; }
  .method-photo-pair .photo:last-child { height: 280px; }
}
@media (max-width: 440px) {
  .cinematic-inner { padding-top: calc(var(--cinema-header-height) + 43px); }
  .cinematic-copy h1 { font-size: clamp(38px, 10.7vw, 47px); }
  .cinematic-copy .hero-description { font-size: 13px; line-height: 1.9; }
  .cinematic-copy .button { padding: 14px 15px; font-size: 11px; gap: 12px; }
  .cinematic-bottom-inner { grid-template-columns: 1fr; gap: 9px; }
  .cinematic-signature { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 3px 16px; }
  .cinematic-skip { justify-content: space-between; }
  .cinematic-promise { margin-top: 24px; }
  .method-photo-pair .photo:first-child { height: 430px; }
  .method-photo-pair .photo:last-child { height: 260px; width: 53%; }
}
@media (max-height: 760px) and (min-width: 961px) {
  .cinematic-stage { min-height: 600px; }
  .cinematic-copy h1 { font-size: 54px; margin-block: 18px; }
  .cinematic-inner { padding-top: calc(var(--cinema-header-height) + 15px); padding-bottom: 110px; }
  .cinematic-promise { display: none; }
  .cinematic-copy .hero-actions { margin-top: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .cinematic-hero.is-scrubbing { height: auto; }
  .cinematic-stage { position: relative; }
  .cinematic-copy, .will-reveal { opacity: 1 !important; transform: none !important; }
  .cinematic-video { display: none; }
  .cinematic-shade { opacity: 1; }
  .cinematic-progress { display: none; }
}
@media print {
  .cinematic-hero.is-scrubbing { height: auto; }
  .cinematic-stage { position: relative; height: auto; }
  .will-reveal, .cinematic-copy { opacity: 1 !important; transform: none !important; }
  .cinematic-video, .cinematic-bottom, .cinematic-progress { display: none; }
}
