/* ==========================================================================
   PRISME STUDIOS — feuille de style
   Charte PRISME 2026 :
   - couleurs : principale #0D0E95, secondaire #008AE6, tertiaire #000000,
     complémentaires #023ABA, #02043E, #0057C7, blanc ;
   - dégradé primaire (mode sombre) : noir → bleu principal, lumière bleu secondaire ;
   - titres : Ostra Centra Regular (remplacée par League Spartan Regular tant que
     les fichiers web ne sont pas fournis) ; sous-titres, annotations et boutons :
     League Spartan ExtraBold ; textes : Arial Unicode MS Regular.
   Fonds : alternance noir / bleu nuit ; dégradés réservés aux zones fortes
   (premier écran et appel à l'action).
   ========================================================================== */

/* ---------- Polices (League Spartan, licence SIL OFL, voir /fonts) ---------- */
@font-face { font-family: "League Spartan"; src: url("/fonts/LeagueSpartan-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "League Spartan"; src: url("/fonts/LeagueSpartan-ExtraBold.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }

:root {
  color-scheme: dark;

  /* Couleurs de la charte */
  --prisme: #0D0E95;      /* principale */
  --azur: #008AE6;        /* secondaire */
  --noir: #000000;        /* tertiaire */
  --cobalt: #023ABA;      /* complémentaire 1 */
  --nuit: #02043E;        /* complémentaire 2 */
  --roi: #0057C7;         /* complémentaire 3 */
  --blanc: #FFFFFF;

  /* Dégradé primaire de la charte (mode sombre) */
  --degrade-principal:
    radial-gradient(75% 85% at 0% 105%, rgba(0, 138, 230, 0.95) 0%, rgba(0, 138, 230, 0) 62%),
    radial-gradient(90% 95% at 100% 110%, rgba(13, 14, 149, 1) 0%, rgba(13, 14, 149, 0) 72%),
    linear-gradient(180deg, var(--noir) 35%, #03052a 100%);

  /* Grain cinématographique : texture fixe, monochrome et répétable (static/textures/grain.png,
     opacité intégrée, régénérable avec « npm run grain -- --opacite 4 »). Ajoutée en première
     couche des fonds sombres et des dégradés : toujours sous les textes, jamais sur les photos,
     les vidéos ni le logo, et sans effet sur les clics. */
  --grain: url("/textures/grain.png") 0 0 / 128px 128px repeat;

  /* Dérivés */
  --texte: var(--blanc);
  --texte-doux: rgba(255, 255, 255, 0.78);
  --texte-discret: rgba(255, 255, 255, 0.64);
  --ligne: rgba(255, 255, 255, 0.16);
  --ligne-forte: rgba(255, 255, 255, 0.36);
  --surface: rgba(255, 255, 255, 0.045);
  --erreur: #FF9E9E;
  --succes: #8FE3B0;
  --provisoire: #FFD166;

  /* Typographie */
  --f-titre: "Ostra Centra", "League Spartan", "Arial Unicode MS", Arial, sans-serif;
  --f-sous-titre: "League Spartan", "Arial Unicode MS", Arial, sans-serif;
  --f-texte: "Arial Unicode MS", Arial, "Helvetica Neue", Helvetica, sans-serif;
  --w-titre: 400; /* Ostra Centra Regular */

  /* Échelle */
  --t-0: 0.875rem;
  --t-1: 1.0625rem;
  --t-2: 1.25rem;
  --t-3: 1.6rem;
  --t-4: clamp(1.6rem, 1.25rem + 1.4vw, 2.2rem);   /* titres d'expertise */
  --t-5: clamp(1.9rem, 1.35rem + 2.2vw, 3rem);     /* titres de section */
  --t-6: clamp(2.3rem, 1.5rem + 3.2vw, 4rem);      /* titres de page */
  --t-hero: clamp(2.1rem, 1.3rem + 2.9vw, 3.6rem);

  /* Espacements */
  --gutter: clamp(1rem, 0.5rem + 2.5vw, 2.5rem);
  --section: clamp(4rem, 2.6rem + 5vw, 7rem);
  --max: 88rem;
  --header-h: 5rem;
  --logo-h: 3rem;   /* 48 px de haut = 156 px de large : au-dessus du minimum de 150 px de la charte */
  --radius: 1.25rem;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  /* Mouvement : une seule logique pour tout le site (courbe douce, durées courtes) */
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  --dur-s: 0.2s;   /* couleurs, bordures */
  --dur-m: 0.35s;  /* flèches, petits déplacements */
  --dur-l: 0.6s;   /* fondus d'images, lumières */

  /* Bleu secondaire éclairci : petits textes bleus sur fond sombre ou lumineux (contraste > 4,5:1) */
  --azur-clair: #5cb8f7;
  --fleche: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 12h15M13 6l6 6-6 6' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1rem); }
body {
  text-wrap: pretty;
  margin: 0;
  background: var(--grain), var(--nuit);
  color: var(--texte);
  font-family: var(--f-texte);
  font-size: var(--t-1);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, picture, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 { margin: 0; font-weight: inherit; text-wrap: balance; }
p, ul, ol, dl, figure { margin: 0; }
ul[class], ol[class], nav ul, footer ul { list-style: none; padding: 0; margin: 0; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--azur); }
button { font: inherit; color: inherit; }
main:focus { outline: none; }
::selection { background: var(--azur); color: var(--noir); }

:focus-visible { outline: 3px solid var(--azur); outline-offset: 3px; border-radius: 2px; }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 46rem; }
.muted { color: var(--texte-discret); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--blanc); color: var(--noir); padding: 0.75rem 1.25rem; border-radius: 999px;
  font-family: var(--f-sous-titre); font-weight: 800; text-decoration: none;
}
.skip-link:focus { top: 1rem; }

/* ---------- Fonds alternés ---------- */
.band--noir { background: var(--grain), var(--noir); }
.band--nuit { background: var(--grain), var(--nuit); }
.band--degrade { background: var(--grain), var(--degrade-principal); background-color: var(--noir); }
.band { padding-block: var(--section); }
.band--head { padding-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.band--head + .band { padding-top: clamp(2.5rem, 5vw, 4rem); }

/* ---------- Titres ---------- */
.section__head {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 1rem 2rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.section__title {
  font-family: var(--f-titre); font-weight: var(--w-titre);
  font-size: var(--t-5); line-height: 1.08; letter-spacing: -0.02em;
  max-width: 28ch; text-wrap: balance;
}
.section__title--spaced { margin-bottom: clamp(2rem, 4vw, 3rem); }

/* ---------- Boutons et liens (pilules, charte) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 3rem; padding: 0.85rem 1.6rem 0.75rem;
  border: 1.5px solid transparent; border-radius: 999px;
  font-family: var(--f-sous-titre); font-weight: 800; font-size: 1rem; line-height: 1; letter-spacing: 0.01em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color var(--dur-s) var(--ease-out), color var(--dur-s) var(--ease-out), border-color var(--dur-s) var(--ease-out);
}
.btn:focus-visible { outline-offset: 4px; border-radius: 999px; }
.btn--primary { background: var(--prisme); border-color: var(--azur); color: var(--blanc); }
.btn--primary:hover, .btn--primary:focus-visible { background: var(--azur); border-color: var(--azur); color: var(--noir); }
.btn--ghost { border-color: var(--ligne-forte); color: var(--blanc); }
.btn--ghost:hover, .btn--ghost:focus-visible { border-color: var(--blanc); color: var(--blanc); background: rgba(255, 255, 255, 0.08); }
.btn--small { min-height: 2.5rem; padding: 0.6rem 1.2rem 0.5rem; font-size: 0.95rem; border-color: var(--ligne-forte); }
.btn--small:hover, .btn--small:focus-visible, .btn--small[aria-current="page"] { border-color: var(--azur); color: var(--blanc); background: var(--prisme); }
.btn[disabled] { opacity: 0.6; cursor: progress; }

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
@media (max-width: 39.99em) {
  /* Boutons empilés : même largeur, espacement régulier */
  .actions { display: grid; grid-template-columns: 1fr; width: 100%; }
}

.link-more {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--f-sous-titre); font-weight: 800; font-size: 1rem; letter-spacing: 0.01em;
  color: var(--blanc); text-decoration: none;
  padding-bottom: 0.25rem; border-bottom: 2px solid var(--azur);
  transition: color var(--dur-s) var(--ease-out), border-color var(--dur-s) var(--ease-out);
}
.link-more::after {
  content: ""; flex: none; width: 1em; height: 1em; background: currentColor;
  -webkit-mask: var(--fleche) center / contain no-repeat; mask: var(--fleche) center / contain no-repeat;
  transition: transform var(--dur-m) var(--ease-out);
}
.link-more:hover, .link-more:focus-visible { color: var(--azur-clair); }
.link-more:hover::after, .link-more:focus-visible::after { transform: translateX(0.3em); }
/* Lien externe (nouvel onglet) : flèche en diagonale */
.link-more[target="_blank"]::after { transform: rotate(-45deg); }
.link-more[target="_blank"]:hover::after, .link-more[target="_blank"]:focus-visible::after { transform: rotate(-45deg) translateX(0.25em); }

/* Bouton flèche rond (lignes d'expertise, liens de cartes) */
.arrow-btn {
  display: grid; place-items: center; flex: none; width: 2.75rem; height: 2.75rem; border-radius: 50%;
  border: 1.5px solid var(--ligne-forte); color: var(--blanc);
  transition: background-color var(--dur-s) var(--ease-out), border-color var(--dur-s) var(--ease-out);
}
.arrow-btn svg { transition: transform var(--dur-m) var(--ease-out); }
a:focus-visible .arrow-btn { background: var(--prisme); border-color: var(--azur); }
a:focus-visible .arrow-btn svg { transform: translateX(3px); }
@media (hover: hover) and (min-width: 64em) {
  .is-active > a .arrow-btn, a:hover .arrow-btn { background: var(--prisme); border-color: var(--azur); }
  .is-active > a .arrow-btn svg, a:hover .arrow-btn svg { transform: translateX(3px); }
  /* Ligne d'expertise active : la flèche file vers la droite puis revient par la gauche */
  .xpl__item.is-active .arrow-btn { overflow: hidden; }
  .xpl__item.is-active .arrow-btn svg { animation: arrow-loop 0.8s var(--ease-out) both; }
}
@keyframes arrow-loop {
  0% { transform: translateX(0); }
  45% { transform: translateX(160%); }
  46% { transform: translateX(-160%); }
  100% { transform: translateX(3px); }
}
/* Écrans tactiles : flèche pleine en permanence, pour signaler le lien sans survol */
@media (hover: none) { .arrow-btn { background: var(--prisme); border-color: var(--azur); } }

/* Mentions provisoires (à faire disparaître avant la mise en ligne) */
.todo {
  display: inline; padding: 0.05em 0.35em; border: 1px dashed var(--provisoire);
  color: var(--provisoire); font-size: 0.92em; box-decoration-break: clone; -webkit-box-decoration-break: clone;
}
.notice { margin-block: 1.5rem; padding: 1rem 1.25rem; border: 1px dashed var(--provisoire); border-radius: 0.75rem; color: var(--provisoire); }
.badge-example {
  position: absolute; top: 0.75rem; left: 0.75rem; z-index: 2;
  padding: 0.35rem 0.75rem 0.25rem; background: rgba(0, 0, 0, 0.82);
  border: 1px dashed var(--provisoire); border-radius: 999px; color: var(--provisoire);
  font-family: var(--f-sous-titre); font-weight: 800; font-size: 0.8rem; pointer-events: none;
}

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: var(--grain), var(--noir);
  transition: background-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.site-header[data-scrolled] { background: rgba(0, 0, 0, 0.9); box-shadow: 0 1px 0 var(--ligne); }
@supports (backdrop-filter: blur(1px)) {
  .site-header[data-scrolled] { background: rgba(0, 0, 0, 0.74); backdrop-filter: blur(14px) saturate(1.2); }
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter);
  min-height: var(--header-h);
}

.brand { display: inline-flex; align-items: center; flex-shrink: 0; color: var(--blanc); text-decoration: none; padding-block: 0.5rem; }
.brand:hover { color: var(--blanc); }
/* Logo : proportions conservées (largeur automatique), jamais sous 150 px de large */
.brand__logo { height: var(--logo-h); width: auto; min-width: 150px; }
.brand--footer .brand__logo { height: 3.75rem; }
.brand__word {
  display: inline-flex; align-items: baseline; gap: 0.4em;
  font-family: var(--f-sous-titre); font-weight: 800; font-size: 1.2rem; letter-spacing: 0.16em; line-height: 1;
}
.brand__studios { font-weight: 400; letter-spacing: 0.24em; }

.site-nav ul { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2.25rem); }
.site-nav a:not(.btn) {
  font-family: var(--f-sous-titre); font-weight: 800; font-size: 1rem; letter-spacing: 0.01em; text-decoration: none;
  padding-block: 0.6rem; border-bottom: 2px solid transparent;
  transition: border-color var(--dur-s) var(--ease-out), color var(--dur-s) var(--ease-out);
}
.site-nav a:not(.btn):hover, .site-nav a:not(.btn):focus-visible { color: var(--blanc); border-bottom-color: var(--ligne-forte); }
.site-nav a:not(.btn)[aria-current="page"] { border-bottom-color: var(--azur); }

.nav-toggle {
  display: none; align-items: center; gap: 0.6rem;
  min-height: 2.75rem; padding: 0.5rem 0.25rem 0.5rem 0.75rem;
  background: none; border: 0; cursor: pointer;
  font-family: var(--f-sous-titre); font-weight: 800;
}
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
  display: block; width: 1.4rem; height: 2px; background: currentColor; transition: transform 0.25s var(--ease), opacity 0.2s;
}
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 55.99em) {
  :root { --header-h: 4.5rem; }
  .js .nav-toggle { display: inline-flex; }
  .js .site-nav {
    position: fixed; inset: calc(var(--header-h) + env(safe-area-inset-top, 0px)) 0 0 0; z-index: 49;
    background: var(--grain), var(--degrade-principal); background-color: var(--noir);
    padding: 2.5rem var(--gutter) calc(2rem + env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
    visibility: hidden; opacity: 0; transform: translateY(-0.5rem);
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0s linear 0.25s;
  }
  .js .site-nav[data-open] { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .js .site-nav ul { flex-direction: column; align-items: flex-start; gap: 0.25rem; }
  .js .site-nav a:not(.btn) { font-family: var(--f-titre); font-weight: var(--w-titre); font-size: 2.2rem; line-height: 1.25; letter-spacing: -0.02em; }
  .js .site-nav li:last-child { margin-top: 1.5rem; }
  .js .site-nav .btn--small { min-height: 3rem; font-size: 1.05rem; padding-inline: 1.6rem; }
  html:not(.js) .site-header__inner { flex-wrap: wrap; padding-block: 0.5rem; }
  html:not(.js) .site-nav ul { flex-wrap: wrap; gap: 0.5rem 1.25rem; }
  body[data-menu-open] { overflow: hidden; }
}

/* ---------- Accueil : premier écran (vidéo de fond bord à bord) ----------
   La vidéo muette remplit l'écran derrière l'en-tête transparent. Une image de remplacement
   reste visible pendant le chargement, si la lecture automatique est bloquée, sans JavaScript
   ou si le système demande moins d'animations. Seules transform et opacity sont animées. */
.hero-video {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; place-items: center;
  min-height: 100vh; min-height: 100svh;
  padding: calc(var(--header-h) + 2rem) 0 clamp(3rem, 8vh, 5rem);
  background: var(--nuit); text-align: center;
}
.hero-video__media { position: absolute; inset: 0; z-index: -2; }
.hero-video__poster, .hero-video__poster img, .hero-video__video {
  position: absolute; inset: 0; width: 100%; height: 100%;
}
.hero-video__poster img, .hero-video__video { object-fit: cover; object-position: 50% 50%; }
.hero-video__video { opacity: 0; transition: opacity 0.8s var(--ease); }
.hero-video__video[data-playing] { opacity: 1; }
@media (max-width: 39.99em) and (orientation: portrait) {
  .hero-video__poster img, .hero-video__video { object-position: var(--cadrage-mobile, 50% 50%); }
}
/* Voile : sombre et discret, plus marqué en haut (menu) et au centre (texte) */
.hero-video__veil {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 62% 42% at 50% 50%, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.38) 55%, rgba(0, 0, 0, 0) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.18) 22%, rgba(0, 0, 0, 0.18) 70%, rgba(2, 4, 62, 0.62) 100%);
}
.hero-video__content { display: grid; justify-items: center; gap: clamp(1.5rem, 3.5vh, 2.25rem); }
.hero-video__title { display: grid; gap: clamp(0.6rem, 1.6vh, 1rem); justify-items: center; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45), 0 2px 28px rgba(0, 0, 0, 0.5); }
.hero-video__brand {
  font-family: var(--f-titre); font-weight: var(--w-titre);
  font-size: clamp(2.6rem, 1.2rem + 6vw, 6.25rem); line-height: 0.95; letter-spacing: 0.02em;
}
.hero-video__tagline {
  font-family: var(--f-sous-titre); font-weight: 800;
  font-size: clamp(1.2rem, 0.95rem + 0.9vw, 1.6rem); line-height: 1.3; max-width: 30ch; text-wrap: balance;
}
.hero-video__actions { justify-content: center; }
.hero-video .btn--ghost { background: rgba(0, 0, 0, 0.28); }
@media (max-width: 39.99em) {
  /* Téléphone : le texte occupe toute la largeur, voile un peu plus présent derrière lui */
  .hero-video__veil {
    background:
      radial-gradient(ellipse 120% 34% at 50% 48%, rgba(0, 0, 0, 0.66), rgba(0, 0, 0, 0.36) 60%, rgba(0, 0, 0, 0) 100%),
      linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.2) 22%, rgba(0, 0, 0, 0.2) 70%, rgba(2, 4, 62, 0.62) 100%);
  }
}
@media (max-width: 39.99em) {
  .hero-video__actions { width: 100%; max-width: 22rem; }
}

/* En-tête transparent au-dessus de la vidéo (accueil), fond sombre au défilement ou menu ouvert */
.page-home .site-header { position: fixed; top: 0; left: 0; right: 0; background: transparent; }
.page-home .site-header[data-scrolled], .page-home[data-menu-open] .site-header { background: rgba(0, 0, 0, 0.9); }
@supports (backdrop-filter: blur(1px)) {
  .page-home .site-header[data-scrolled] { background: rgba(0, 0, 0, 0.74); }
}

/* Lecteur du showreel (fenêtre intégrée au site, avec le son) */
.video-modal {
  width: min(92vw, calc(84vh * 16 / 9), 80rem); max-width: none; max-height: none;
  padding: 0; border: 0; background: transparent; color: var(--blanc); overflow: visible;
}
.video-modal::backdrop { background: rgba(0, 0, 0, 0.88); }
.video-modal__frame { position: relative; aspect-ratio: 16 / 9; background: var(--noir); }
.video-modal__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-modal__bar { display: flex; justify-content: flex-end; margin-bottom: 0.75rem; }
.video-modal__close {
  display: inline-flex; align-items: center; gap: 0.5rem; min-height: 2.75rem; padding: 0.5rem 1.1rem;
  border: 1.5px solid var(--ligne-forte); border-radius: 999px; background: rgba(0, 0, 0, 0.6); color: var(--blanc);
  font-family: var(--f-sous-titre); font-weight: 800; font-size: 0.95rem; cursor: pointer;
}
.video-modal__close:hover { border-color: var(--blanc); }
.video-modal__close:focus-visible { outline: 3px solid var(--azur); outline-offset: 2px; }

/* ---------- Témoignages vidéo ---------- */
.temoignage-wrap { max-width: calc(60rem + 2 * var(--gutter)); }
.player--cover::before { display: none; } /* pas de voile : la miniature est montrée telle quelle */
.player--cover .player__play { position: absolute; inset: 0; z-index: 2; }
.player--cover .player__poster img { transition: filter 0.3s var(--ease), transform 0.9s var(--ease-out); }
.player--cover:hover .player__poster img { filter: brightness(1.08); }
.player--cover .player__play:focus-visible { outline: 3px solid var(--azur); outline-offset: -3px; }
.player__duration {
  position: absolute; right: clamp(0.6rem, 1.8vw, 1.1rem); top: clamp(0.6rem, 1.8vw, 1.1rem); z-index: 2; pointer-events: none;
  padding: 0.35rem 0.65rem 0.25rem; border-radius: 999px; background: rgba(0, 0, 0, 0.72); color: var(--blanc);
  font-family: var(--f-sous-titre); font-weight: 800; font-size: 0.85rem; line-height: 1; letter-spacing: 0.02em;
}
.player[data-playing] .player__duration { display: none; }
/* Bouton de lecture ajouté aux miniatures qui n'en ont pas : même allure et même hauteur que celui
   intégré à la miniature d'Alexy Gargani (cercle azur lumineux, en bas à droite), un peu plus à droite
   pour ne pas couvrir le logo du tee-shirt sur la miniature HBX. */
.player--bouton { container-type: inline-size; }
.player__btn {
  position: absolute; left: 91.5%; top: 78%; width: 9.4%; aspect-ratio: 1; transform: translate(-50%, -50%);
  border-radius: 50%; border: max(1.5px, 0.32cqi) solid var(--azur);
  background: radial-gradient(circle, rgba(2, 4, 62, 0.75), rgba(13, 14, 149, 0.55));
  box-shadow: 0 0 1.4cqi rgba(0, 138, 230, 0.75), inset 0 0 1cqi rgba(0, 138, 230, 0.45);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}
.player__btn::after {
  content: ""; position: absolute; left: 36%; top: 30%; width: 34%; height: 40%;
  background: var(--blanc); clip-path: polygon(0 0, 100% 50%, 0 100%); border-radius: 2px;
}
.player--bouton:hover .player__btn, .player--bouton .player__play:focus-visible .player__btn, .is-spot > .tcard .player__btn {
  transform: translate(-50%, -50%) scale(1.08); box-shadow: 0 0 2.4cqi rgba(0, 138, 230, 0.95), inset 0 0 1cqi rgba(0, 138, 230, 0.55);
}

/* Bouton de lecture affiché sur une miniature de projet sans bouton intégré (photogramme) :
   même place et même allure que celui des miniatures « PORTRAIT & INTERVIEW » (en bas à gauche). */
.player__btn--projet { left: 8.5%; top: 72%; width: 7.5%; }
.project-card__link:has(.project-card__btnzone) { position: relative; }
.project-card__btnzone { position: absolute; z-index: 1; left: 0; top: 0; width: 100%; aspect-ratio: var(--ratio); pointer-events: none; container-type: inline-size; }
.project-card__btn {
  position: absolute; left: 8.5%; top: 72%; width: 7.5%; aspect-ratio: 1; transform: translate(-50%, -50%); pointer-events: none;
  border-radius: 50%; border: max(1.5px, 0.3cqi) solid var(--azur); background: radial-gradient(circle, rgba(2, 4, 62, 0.6), rgba(13, 14, 149, 0.4));
  box-shadow: 0 0 1.4cqi rgba(0, 138, 230, 0.7); transition: transform 0.4s var(--ease-out);
}
.project-card__btn::after { content: ""; position: absolute; left: 36%; top: 30%; width: 34%; height: 40%; background: var(--blanc); clip-path: polygon(0 0, 100% 50%, 0 100%); }

/* Cartes de l'accueil : même importance pour chaque témoignage */
.tcards { display: grid; gap: var(--gutter); }
.tcards__item { display: flex; }
.tcards__item > .tcard { flex: 1; }
.tcards--duo { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 55.99em) { .tcards--duo { grid-template-columns: 1fr; } }
/* Deux cartes côte à côte : chaque ligne (miniature, entreprise, titre, intervenant, texte, boutons)
   partage la même hauteur d'une carte à l'autre, quelle que soit la longueur des textes. */
@supports (grid-template-rows: subgrid) {
  @media (min-width: 56em) {
    .tcards--duo { grid-template-rows: repeat(6, auto); row-gap: 0; }
    .tcards--duo .tcards__item { display: grid; grid-row: span 6; grid-template-rows: subgrid; }
    .tcards--duo .tcard { display: grid; grid-row: span 6; grid-template-rows: subgrid; row-gap: 0; }
    .tcards--duo .tcard__body { display: grid; grid-row: span 5; grid-template-rows: subgrid; row-gap: 0.7rem; }
    .tcards--duo .tcard__text { align-self: start; }
    .tcards--duo .tcard__actions { margin-top: 0; align-self: end; }
  }
}
.tcard {
  position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column;
  border: 1px solid var(--ligne); border-radius: var(--radius);
  background: var(--grain), linear-gradient(165deg, rgba(13, 14, 149, 0.32), rgba(2, 4, 62, 0.15) 45%, rgba(0, 0, 0, 0) 75%), #08124c;
  transition: border-color 0.35s var(--ease-out), transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out);
}
.tcard::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(28rem 18rem at 0% 100%, rgba(0, 138, 230, 0.26), rgba(0, 138, 230, 0) 70%);
  opacity: 0; transition: opacity 0.45s var(--ease-out);
}
/* Contour et lumière identiques au repos : ils ne changent qu'au survol, au focus clavier, ou au centre
   de l'écran sur les appareils tactiles (équivalent du survol). Fond opaque : la lumière animée de la
   section ne transparaît pas plus derrière une carte que derrière l'autre. */
.tcard:hover, .tcard:has(:focus-visible), .is-spot > .tcard { border-color: rgba(0, 138, 230, 0.6); transform: translateY(-4px); box-shadow: 0 1.5rem 3rem -1.5rem rgba(0, 138, 230, 0.5); }
.tcard:hover::before, .tcard:has(:focus-visible)::before, .is-spot > .tcard::before { opacity: 1; }
.tcard__media .player { aspect-ratio: 16 / 9; }
.tcard:hover .player__poster img, .is-spot > .tcard .player__poster img { transform: scale(1.025); }
.tcard__body { display: flex; flex-direction: column; gap: 0.7rem; flex: 1; padding: clamp(1.4rem, 2.6vw, 2.1rem); }
.tcard__company, .temoin__eyebrow {
  font-family: var(--f-sous-titre); font-weight: 800; font-size: 0.85rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--azur-clair);
}
.tcard__title { font-family: var(--f-titre); font-weight: var(--w-titre); font-size: var(--t-4); line-height: 1.1; letter-spacing: -0.015em; }
.tcard__person { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.15rem 0.6rem; }
.tcard__name { font-family: var(--f-sous-titre); font-weight: 800; font-size: 1.1rem; }
.tcard__role { color: var(--texte-discret); font-size: var(--t-0); }
.tcard__role::before { content: ""; display: inline-block; width: 1.1rem; height: 2px; margin-right: 0.6rem; vertical-align: 0.3em; background: var(--azur); }
.tcard__text { color: var(--texte-doux); font-size: 1.02rem; }
.tcard__actions, .temoin__actions { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.9rem 1.6rem; margin-top: auto; padding-top: 0.6rem; }
.tcard__youtube {
  color: var(--texte-discret); font-size: var(--t-0); text-decoration: underline; text-underline-offset: 0.25em; text-decoration-color: var(--ligne-forte);
  transition: color var(--dur-s) var(--ease-out), text-decoration-color var(--dur-s) var(--ease-out);
}
.tcard__youtube:hover, .tcard__youtube:focus-visible { color: var(--blanc); text-decoration-color: var(--azur); }

/* Page Témoignages : un chapitre par témoignage, lecteur et texte en alternance */
.temoin { scroll-margin-top: 4.5rem; }
.temoin__grid { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); align-items: center; }
@media (min-width: 64em) {
  .temoin__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2.5rem, 4.5vw, 5rem); }
  .temoin--inverse .temoin__media { order: 2; }
}
.temoin__media { margin: 0; }
.temoin__media .player { aspect-ratio: 16 / 9; border-radius: var(--radius); box-shadow: 0 2.5rem 5rem -2.5rem rgba(0, 0, 0, 0.85), 0 0 0 1px var(--ligne); }
.temoin__body { display: flex; flex-direction: column; gap: 0.9rem; }
.temoin__eyebrow { display: flex; align-items: center; gap: 0.85rem; }
.temoin__index { color: var(--blanc); letter-spacing: 0.08em; }
.temoin__index::after { content: ""; display: inline-block; width: 1.75rem; height: 2px; margin-left: 0.85rem; vertical-align: 0.3em; background: linear-gradient(90deg, var(--azur), var(--azur-clair)); }
.temoin__title { font-family: var(--f-titre); font-weight: var(--w-titre); font-size: var(--t-5); line-height: 1.05; letter-spacing: -0.02em; }
.temoin__text { color: var(--texte-doux); font-size: var(--t-1); max-width: 36rem; }
.temoin__label { margin-top: 0.4rem; }
.temoin__themes { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.temoin__themes li { padding: 0.4rem 0.85rem 0.3rem; border: 1px solid var(--ligne); border-radius: 999px; font-size: var(--t-0); color: var(--texte-doux); background: var(--surface); }
.temoin__actions { margin-top: 0.4rem; }
.temoin-suite__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem 2rem; }
.temoin-suite__text { color: var(--texte-doux); font-size: var(--t-1); max-width: 34rem; }
.realisation__temoignage { margin-top: clamp(1.5rem, 3vw, 2.25rem); }
/* Boutons d'une réalisation : film sur la page (principal), autres films sur YouTube (secondaire, nouvel onglet) */
.realisation__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.4rem; }
.realisation__actions .btn { white-space: normal; text-align: left; }
.btn__externe { display: inline-flex; }
.btn__externe svg { width: 1.05em; height: 1.05em; transform: rotate(-45deg); transition: transform var(--dur-m) var(--ease-out); }
.btn--externe:hover .btn__externe svg, .btn--externe:focus-visible .btn__externe svg { transform: rotate(-45deg) translateX(0.2em); }

/* ---------- Intro de l'accueil (signature PRISME) ----------
   Unique séquence d'entrée, 1,6 s au total, une fois par session (#intro pour la revoir).
   0,00–0,58 s : trois masques diagonaux (60°, angle du symbole) révèlent le symbole.
   0,42–0,82 s : révélation horizontale nette du logotype « Prisme. ».
   0,80–1,20 s : une fine lumière bleue souligne l'ensemble.
   1,12–1,60 s : le fond noir s'ouvre par une découpe diagonale sur l'accueil.
   Seuls des masques (clip-path) et des transformations sont animés : aucun fondu
   comme effet principal, aucune déformation du logo.
   Masquée sans JavaScript (classe « has-intro » absente) et si l'utilisateur
   demande moins d'animations. Clic ou Échap : passage immédiat. */
.intro { display: none; }
html.has-intro .intro {
  display: grid; place-items: center;
  position: fixed; inset: 0; z-index: 300;
  background: var(--grain), var(--noir); cursor: pointer;
  clip-path: polygon(-30% 0, 130% 0, 130% 100%, 0% 100%);
  animation: intro-open 0.48s cubic-bezier(0.7, 0, 0.25, 1) 1.12s forwards;
}
html.intro-done .intro { display: none !important; }
.intro__stage {
  position: relative;
  /* Repère du logo principal : 1348,33 × 414,94 (symbole + logotype) */
  width: min(72vw, 30rem); min-width: 150px; aspect-ratio: 1348.33 / 414.94;
}
.intro__symbol, .intro__type { position: absolute; }
.intro__symbol svg, .intro__type svg { display: block; width: 100%; height: 100%; }

/* Symbole : trois bandes diagonales qui se déploient l'une après l'autre.
   Côté oblique : décalage horizontal de 45 % de la largeur sur toute la hauteur (pente de 60°). */
.intro__symbol { left: 0; top: 0; width: 39.4163%; height: 100%; }
.intro__symbol--1 {
  clip-path: polygon(0% 0, 0% 0, -45% 100%, -45% 100%);
  animation: intro-band-1 0.36s cubic-bezier(0.7, 0, 0.2, 1) 0.02s forwards;
}
.intro__symbol--2 {
  clip-path: polygon(65% 0, 65% 0, 20% 100%, 20% 100%);
  animation: intro-band-2 0.36s cubic-bezier(0.7, 0, 0.2, 1) 0.12s forwards;
}
.intro__symbol--3 {
  clip-path: polygon(100% 0, 100% 0, 55% 100%, 55% 100%);
  animation: intro-band-3 0.36s cubic-bezier(0.7, 0, 0.2, 1) 0.22s forwards;
}
@keyframes intro-band-1 { to { clip-path: polygon(0% 0, 70% 0, 25% 100%, -45% 100%); } }
@keyframes intro-band-2 { to { clip-path: polygon(65% 0, 105% 0, 60% 100%, 20% 100%); } }
/* La dernière bande couvre tout le symbole : aucune jointure visible à la fin */
@keyframes intro-band-3 { to { clip-path: polygon(-45% 0, 145% 0, 100% 100%, -90% 100%); } }

/* Logotype : révélation horizontale nette, légèrement après le symbole */
.intro__type {
  left: 46.2201%; top: 29.9321%; width: 53.7799%; height: 54.2054%;
  clip-path: inset(0 100% 0 0);
  animation: intro-type 0.4s cubic-bezier(0.65, 0, 0.25, 1) 0.42s forwards;
}
@keyframes intro-type { to { clip-path: inset(0 0 0 0); } }

/* Fine lumière bleue qui souligne l'ensemble */
.intro__line {
  position: absolute; left: 0; right: 0; top: calc(100% + 0.9rem); height: 1px;
  background: linear-gradient(90deg, rgba(0, 138, 230, 0), var(--azur) 20%, #ffffff 55%, var(--azur) 85%, rgba(0, 138, 230, 0));
  box-shadow: 0 0 12px 1px rgba(0, 138, 230, 0.9);
  transform: scaleX(0); transform-origin: left center;
  animation: intro-line 0.4s cubic-bezier(0.6, 0, 0.3, 1) 0.8s forwards;
}
@keyframes intro-line {
  0% { transform: scaleX(0); opacity: 1; }
  65% { transform: scaleX(1); opacity: 1; }
  100% { transform: scaleX(1); opacity: 0; }
}

/* Le fond s'ouvre : bord diagonal qui balaie l'écran de gauche à droite */
@keyframes intro-open {
  to { clip-path: polygon(100% 0, 130% 0, 130% 100%, 130% 100%); visibility: hidden; }
}
@media (prefers-reduced-motion: reduce) {
  html.has-intro .intro { display: none !important; }
}

/* ---------- Lecteur vidéo différé ---------- */
.player { position: relative; background: var(--noir); overflow: hidden; }
.player__poster, .player__poster img { width: 100%; height: 100%; }
.player__poster img { object-fit: cover; }
.player::before { /* voile pour la lisibilité du bouton */
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, 0.55));
}
.player--empty::before { display: none; }
.player__play {
  position: absolute; left: var(--gutter); bottom: clamp(1rem, 3vw, 2rem); z-index: 2;
  display: inline-flex; align-items: center; gap: 0.9rem;
  color: var(--blanc); text-decoration: none;
  font-family: var(--f-sous-titre); font-weight: 800; font-size: 1.05rem;
}
.player__play:hover { color: var(--blanc); }
.player__icon {
  width: 3.75rem; height: 3.75rem; border-radius: 50%;
  border: 1.5px solid var(--azur);
  display: grid; place-items: center;
  background: var(--prisme);
  transition: background-color 0.25s var(--ease);
}
.player__icon::before {
  content: ""; width: 0; height: 0; margin-left: 0.25rem;
  border-style: solid; border-width: 0.6rem 0 0.6rem 0.95rem; border-color: transparent transparent transparent currentColor;
}
.player__play:hover .player__icon { background: var(--azur); }
.player__note {
  position: absolute; right: var(--gutter); bottom: clamp(1rem, 3vw, 2rem); z-index: 2;
  font-size: var(--t-0); color: var(--texte-doux); max-width: 22ch; text-align: right;
}
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 3; background: var(--noir); }
@media (max-width: 39.99em) { .player__note { display: none; } }

/* ---------- Grilles de projets ---------- */
.project-grid { display: grid; gap: clamp(2.5rem, 4vw, 4rem) var(--gutter); }
.project-grid--editorial { grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-flow: dense; }
.project-grid--editorial .project-card--large { grid-column: span 8; }
.project-grid--editorial .project-card--small { grid-column: span 4; }
.project-grid--editorial .project-card--medium { grid-column: span 6; }
.project-grid--editorial .project-card--full { grid-column: span 12 !important; }
/* Miniature à ratio d'origine (texte et bouton intégrés) : jamais recadrée, quelle que soit la largeur */
.project-grid--editorial .project-card--ratio .project-card__media { aspect-ratio: var(--ratio) !important; height: auto !important; }
@media (min-width: 56em) {
  /* Petite carte voisine : son image prend la hauteur de la rangée fixée par la miniature */
  .project-grid--editorial .project-card--fill .project-card__link { display: flex; flex-direction: column; height: 100%; }
  .project-grid--editorial .project-card--fill .project-card__media { flex: 1 1 auto; height: auto !important; min-height: 0; aspect-ratio: auto !important; position: relative; }
  .project-grid--editorial .project-card--fill .project-card__media img { position: absolute; inset: 0; }
  .project-grid--editorial .project-card--ratio .project-card__link { display: flex; flex-direction: column; height: 100%; }
  .project-grid--editorial .project-card--ratio .project-card__text { margin-top: auto; }
}
@media (min-width: 56em) {
  /* Même hauteur d'image pour les grands et petits formats d'une même rangée */
  .project-grid--editorial .project-card--large .project-card__media,
  .project-grid--editorial .project-card--small .project-card__media { aspect-ratio: auto; height: clamp(20rem, 32vw, 34rem); }
}
.project-grid--portfolio { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 55.99em) {
  .project-grid--editorial .project-card--large { grid-column: span 12; }
  .project-grid--editorial .project-card--small, .project-grid--editorial .project-card--medium { grid-column: span 6; }
}
@media (max-width: 39.99em) {
  .project-grid--editorial .project-card { grid-column: span 12 !important; }
  .project-grid--portfolio { grid-template-columns: 1fr; }
}

.project-card { position: relative; }
.project-card__link { display: block; text-decoration: none; color: var(--blanc); }
.project-card__link:hover { color: var(--blanc); }
.project-card__media { display: block; overflow: hidden; background: var(--noir); aspect-ratio: 16 / 10; }
.project-card--large .project-card__media { aspect-ratio: 16 / 9; }
.project-card--full .project-card__media { aspect-ratio: 16 / 9; }
@media (min-width: 56em) { .project-grid--editorial .project-card--full .project-card__media { aspect-ratio: auto; height: clamp(22rem, 38vw, 36rem); } }
.project-card--small .project-card__media { aspect-ratio: 8 / 9; }
.project-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter 0.6s var(--ease); }
.project-card__link:hover .project-card__media img { transform: scale(1.025); filter: brightness(1.08); }
.project-card__text { padding-top: 1rem; }
.project-card__title {
  font-family: var(--f-sous-titre); font-weight: 800; font-size: var(--t-2); line-height: 1.2; letter-spacing: 0.005em; text-wrap: balance;
  transition: color var(--dur-s) var(--ease-out);
}
.project-card__link:hover .project-card__title, .project-card__link:focus-visible .project-card__title { color: var(--azur-clair); }
.project-card__link:focus-visible { outline-offset: 6px; }
.project-card__meta { display: flex; flex-wrap: wrap; gap: 0 0.75rem; margin-top: 0.35rem; color: var(--texte-discret); font-size: var(--t-0); }
.project-card__meta span + span { padding-left: 0.75rem; border-left: 1px solid var(--ligne-forte); }

/* ---------- Apparitions au défilement ----------
   Rien n'est masqué à l'arrivée sur la page : ce qui est déjà à l'écran (ou visé par un lien #ancre)
   s'affiche immédiatement (les titres jouent seulement leur courte entrée). Seuls les éléments situés
   plus bas attendent ([data-reveal-wait]) :
   - textes et cartes : fondu et petite remontée, déclenchés un quart d'écran AVANT d'entrer dans la vue ;
   - photos (data-reveal="mask") : un masque s'ouvre de bas en haut pendant que l'image se pose
     (léger zoom arrière et retour de la lumière), au moment où elles entrent dans la vue ;
   - titres (data-reveal="words") : les mots remontent par groupes, à leur entrée dans la vue.
   Défilement rapide : tout ce qui a été dépassé s'affiche aussitôt, sans animation (.reveal-now).
   Même logique sur ordinateur, tablette et téléphone. Moins d'animations (réglage du système) : aucun effet. */
[data-reveal] { transition: opacity 0.3s var(--ease-out), transform 0.6s var(--ease-out); transition-delay: calc(var(--i, 0) * 60ms); }
[data-reveal-wait]:not([data-reveal="mask"]):not([data-reveal="words"]) { opacity: 0; transform: translate3d(0, 1.1rem, 0); }
/* Section expertises de l'accueil (animation validée) : lignes qui remontent l'une après l'autre ;
   le texte redevient lisible en 0,3 s, le mouvement se termine en 0,6 s */
.xpl [data-reveal] { transition: opacity 0.3s var(--ease-out), transform 0.6s var(--ease-out); transition-delay: calc(var(--i, 0) * 0.08s); }
.xpl [data-reveal-wait] { transform: translate3d(0, 1.5rem, 0); }
.xpl__stage[data-reveal] .xpl__img img { transition: transform 1.4s var(--ease-out); }
[data-reveal].reveal-now, [data-reveal].reveal-now img { transition: none !important; }
@media (max-width: 63.99em) { .xpl [data-reveal] { transition-delay: calc(var(--i, 0) * 0.04s); } }

/* Photos : ouverture par un masque, puis profondeur (l'image se pose, la lumière revient) */
[data-reveal="mask"] { clip-path: inset(0 0 0 0); transition: clip-path 1.05s cubic-bezier(0.7, 0, 0.2, 1), transform 0.2s linear; }
[data-reveal="mask"] img { transition: transform 1.6s var(--ease-out), filter 1.2s var(--ease-out); }
[data-reveal="mask"][data-reveal-wait] { clip-path: inset(100% 0 0 0); }
[data-reveal="mask"][data-reveal-wait] img { transform: scale(1.16); filter: brightness(0.55); }
/* Mouvement de profondeur au défilement : le cadre glisse de quelques pixels (--py, calculé par site.js),
   le cadrage de la photo ne change pas */
[data-depth] { transform: translate3d(0, var(--py, 0px), 0); }

/* Titres : les mots (ou groupes de mots liés) remontent l'un après l'autre derrière un masque */
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0.08em 0.04em 0.14em; margin: -0.08em -0.04em -0.14em; }
.split .w > span { display: inline-block; animation: word-up 0.8s var(--ease-out) both; animation-delay: calc(var(--split-delay, 0s) + var(--wi, 0) * 55ms); }
@keyframes word-up { from { transform: translate3d(0, 108%, 0) rotate(1.5deg); opacity: 0; } 40% { opacity: 1; } to { transform: none; opacity: 1; } }
.split[data-reveal-wait] .w > span { animation: none; transform: translate3d(0, 108%, 0); opacity: 0; }
.split.reveal-now .w > span { animation: none; }
/* Accroche du premier écran : après l'intro du logo */
.hero-video__tagline { --split-delay: 0.2s; }
html.has-intro:not(.intro-done) .hero-video__tagline .w > span { animation-play-state: paused; }

@media print {
  [data-reveal-wait] { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .split .w > span, [data-reveal="mask"] img { animation: none !important; transform: none !important; opacity: 1 !important; filter: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  .xpl__slide.is-active .xpl__img img, .xpl__slide.is-active::before, .xpl__slide.is-active, .xpl__item.is-active .arrow-btn svg { animation: none !important; }
  .xpl__img img { transform: none !important; }
  [data-reveal], [data-reveal] img { transition: none !important; }
  [data-reveal-wait], [data-reveal-wait] img { opacity: 1 !important; transform: none !important; clip-path: none !important; filter: none !important; }
  .split .w > span { animation: none !important; transform: none !important; opacity: 1 !important; }
  [data-depth] { transform: none !important; }
}

/* ---------- Expertises (accueil) ----------
   Quatre lignes numérotées. Ordinateur : un espace visuel commun, à droite, change d'image au survol
   ou au focus clavier de chaque ligne (fondu doux) ; la ligne active reçoit une lumière de fond et sa
   flèche avance. Titres et descriptions ne bougent jamais. Mobile et tablette : chaque ligne porte
   son propre visuel, tout est visible sans survol. */
.xpl { display: grid; gap: clamp(1.5rem, 3vw, 3rem); }
.xpl__list { border-top: 1px solid var(--ligne); counter-reset: none; }
.xpl__item { border-bottom: 1px solid var(--ligne); }
.xpl__link {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: 2.25rem minmax(0, 1fr) auto; gap: 0.35rem clamp(1rem, 2.4vw, 2rem); align-items: start;
  padding: clamp(1.4rem, 2.4vw, 2rem) clamp(0.75rem, 1.5vw, 1.25rem);
  color: var(--blanc); text-decoration: none;
}
.xpl__link:hover { color: var(--blanc); }
/* Lumière de fond de la ligne active : bleus de la charte ; sur ordinateur, le halo suit le pointeur */
.xpl__link::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(28rem 14rem at var(--mx, 12%) var(--my, 50%), rgba(0, 138, 230, 0.34), rgba(0, 138, 230, 0) 70%),
    linear-gradient(90deg, rgba(13, 14, 149, 0.55), rgba(13, 14, 149, 0) 75%);
  opacity: 0; transform: translate3d(-6%, 0, 0);
  transition: opacity var(--dur-m) var(--ease-out), transform var(--dur-l) var(--ease-out);
}
.xpl__num {
  grid-column: 1; padding-top: 0.45em;
  font-family: var(--f-sous-titre); font-weight: 800; font-size: 0.85rem; letter-spacing: 0.14em; color: var(--azur-clair);
  font-variant-numeric: tabular-nums;
}
.xpl__text { grid-column: 2; display: grid; gap: 0.45rem; }
.xpl__title { font-family: var(--f-titre); font-weight: var(--w-titre); font-size: var(--t-4); line-height: 1.1; letter-spacing: -0.015em; text-wrap: balance; }
.xpl__desc { color: var(--texte-doux); max-width: 54ch; }
.xpl__examples { color: var(--texte-discret); font-size: var(--t-0); letter-spacing: 0.01em; }
.xpl__arrow { grid-column: 3; align-self: center; }
.xpl__thumb-frame { display: none; }
.xpl__stage { display: none; }

/* Ligne active (survol, focus clavier, ou première ligne par défaut) : ordinateur uniquement */
@media (min-width: 64em) {
  .xpl__item.is-active .xpl__link::before { opacity: 1; transform: none; }
}

@media (min-width: 64em) {
  .xpl { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: stretch; }
  .xpl__stage {
    display: block; position: relative; overflow: hidden; min-height: 28rem; border-radius: 4px; background: var(--noir);
  }
  .xpl__slide { position: absolute; inset: 0; opacity: 0; transition: opacity var(--dur-l) var(--ease-out); }
  /* Changement d'image : fondu et ouverture en biais (angle du symbole PRISME) */
  .xpl__slide.is-active { opacity: 1; z-index: 1; animation: xpl-wipe 0.85s cubic-bezier(0.7, 0, 0.2, 1) both; }
  @keyframes xpl-wipe { from { clip-path: polygon(0 0, 0 0, -30% 100%, -30% 100%); } to { clip-path: polygon(0 0, 130% 0, 100% 100%, -30% 100%); } }
  .xpl__img, .xpl__img img { display: block; width: 100%; height: 100%; }
  /* Image active : léger zoom lent à l'intérieur du cadre (le cadre ne bouge pas) */
  .xpl__img img { object-fit: cover; transform: scale(1.08); transition: transform 1.2s var(--ease-out); }
  .xpl__slide.is-active .xpl__img img { transform: scale(1); animation: xpl-zoom 7s var(--ease-out) 1.4s forwards; }
  @keyframes xpl-zoom { from { transform: scale(1); } to { transform: scale(1.06); } }
  /* Reflet lumineux qui traverse le visuel à chaque changement d'image */
  .xpl__slide::before {
    content: ""; position: absolute; z-index: 1; top: 0; bottom: 0; left: 0; width: 55%; pointer-events: none;
    background: linear-gradient(105deg, rgba(0, 138, 230, 0) 20%, rgba(0, 138, 230, 0.22) 45%, rgba(170, 215, 255, 0.18) 52%, rgba(0, 138, 230, 0) 80%);
    transform: translate3d(-130%, 0, 0);
  }
  .xpl__slide.is-active::before { animation: xpl-sheen 1.1s var(--ease-out) 0.1s both; }
  @keyframes xpl-sheen { to { transform: translate3d(260%, 0, 0); } }
  /* Arrivée dans la section : le visuel se met au point (zoom arrière) en même temps qu'il apparaît */
  .xpl__stage[data-reveal-wait] .xpl__slide.is-active .xpl__img img { transform: scale(1.14); animation: none; }
  /* Liseré lumineux sur le bord du visuel, comme le dégradé de la charte */
  .xpl__stage::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 60%, rgba(2, 4, 62, 0.45) 100%);
    box-shadow: inset 0 0 0 1px var(--ligne);
  }
}
@media (max-width: 63.99em) {
  /* Visuel propre à chaque ligne, toujours visible ; flèche sous le texte pour laisser toute la largeur */
  .xpl__link { grid-template-columns: 2rem minmax(0, 1fr); }
  .xpl__arrow { grid-column: 2; justify-self: start; margin-top: 0.6rem; width: 2.5rem; height: 2.5rem; }
  .xpl__thumb-frame {
    display: block; grid-column: 1 / -1; margin-bottom: 0.9rem; overflow: hidden; border-radius: 4px;
    aspect-ratio: 16 / 9; background: var(--noir);
  }
  /* Photo verticale (portrait d'équipe) : cadre un peu plus haut pour garder têtes et bustes */
  .xpl__thumb-frame--tall { aspect-ratio: 4 / 3; }
  .xpl__thumb, .xpl__thumb img { display: block; width: 100%; height: 100%; }
  .xpl__thumb img { object-fit: cover; }
  .xpl__item .xpl__link::before { opacity: 0.22; transform: none; }
}
@media (min-width: 40em) and (max-width: 63.99em) {
  .xpl__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gutter); border-top: 0; }
  .xpl__item { border-top: 1px solid var(--ligne); }
}
.expertise-usages { margin-top: clamp(1.5rem, 3vw, 2.25rem); color: var(--texte-doux); max-width: 62ch; }

/* ---------- Présentation (accueil) ---------- */
/* Portrait et texte côte à côte dès que la largeur le permet ; disposition verticale sur mobile. */
.presentation {
  display: grid; grid-template-columns: clamp(14rem, 26vw, 22rem) minmax(0, 44rem);
  gap: 2rem clamp(2rem, 4.5vw, 4rem); align-items: center;
}
.presentation__portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.presentation__text { display: grid; gap: 1.25rem; justify-items: start; }
.presentation__text p { color: var(--texte-doux); }
.presentation__text .section__title { margin-bottom: 0.25rem; }
@media (max-width: 39.99em) {
  .presentation { grid-template-columns: 1fr; }
  .presentation__visual { max-width: 16rem; }
}

/* ---------- Fond animé : lumière diffusée à travers un prisme ----------
   Section de présentation (accueil) et bandeau de contact.
   Halos bleu profond / bleu lumineux / cobalt de la charte qui se croisent, et un faisceau
   diagonal qui traverse la zone. Cycles de 10 à 14 s décalés, en aller-retour (aucun saut),
   démarrés en cours de mouvement (délais négatifs) pour être perceptibles immédiatement.
   Seule la propriété transform est animée. Un voile sombre placé sous les textes
   garantit leur contraste. Pause automatique hors écran,
   effet simplifié sur mobile, dégradé fixe si l'utilisateur demande moins d'animations. */
.has-ambient { position: relative; isolation: isolate; overflow: hidden; overflow: clip; } /* clip : n'empêche pas les éléments collants (portrait de la page À propos) */
.ambient { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.ambient__halo, .ambient__ray { position: absolute; will-change: transform; }
.ambient__halo { border-radius: 50%; }

/* Bleu profond (principal #0D0E95) : traverse de gauche à droite */
.ambient__halo--profond {
  width: 72vmax; height: 72vmax; left: -34vmax; top: -22vmax;
  background: radial-gradient(closest-side, rgba(13, 14, 149, 0.95), rgba(13, 14, 149, 0.45) 45%, rgba(13, 14, 149, 0) 100%);
  animation: ambient-profond 13s cubic-bezier(0.45, 0, 0.55, 1) -4s infinite alternate;
}
/* Bleu lumineux (secondaire #008AE6) : traverse de droite à gauche et croise le bleu profond */
.ambient__halo--lumineux {
  width: 52vmax; height: 52vmax; right: -22vmax; bottom: -30vmax;
  background: radial-gradient(closest-side, rgba(0, 138, 230, 0.72), rgba(0, 138, 230, 0.28) 45%, rgba(0, 138, 230, 0) 100%);
  animation: ambient-lumineux 11s cubic-bezier(0.45, 0, 0.55, 1) -6s infinite alternate;
}
/* Diffusion cobalt (complémentaire #023ABA) */
.ambient__halo--diffus {
  width: 58vmax; height: 36vmax; left: 30%; top: -16vmax;
  background: radial-gradient(closest-side, rgba(2, 58, 186, 0.55), rgba(2, 58, 186, 0) 100%);
  animation: ambient-diffus 14s cubic-bezier(0.45, 0, 0.55, 1) -9s infinite alternate;
}
/* Faisceau diagonal, comme la lumière qui traverse un prisme */
.ambient__ray {
  top: -12%; bottom: -12%; left: -40%; width: 180%;
  background: linear-gradient(112deg,
    transparent 39%, rgba(13, 14, 149, 0.16) 44.5%, rgba(0, 87, 199, 0.32) 48.6%,
    rgba(0, 138, 230, 0.42) 50%, rgba(0, 87, 199, 0.3) 51.4%, rgba(13, 14, 149, 0.16) 55.5%, transparent 61%);
  animation: ambient-ray 12s cubic-bezier(0.45, 0, 0.55, 1) -2s infinite alternate;
}

@keyframes ambient-profond { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(58vw, 18vh, 0) scale(1.15); } }
@keyframes ambient-lumineux { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(-62vw, -26vh, 0) scale(1.2); } }
@keyframes ambient-diffus { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(-36vw, 24vh, 0) scale(0.85); } }
@keyframes ambient-ray { from { transform: translate3d(-28%, 0, 0); } to { transform: translate3d(22%, 0, 0); } }

/* Voile sombre sous les textes (au-dessus des halos, sous le contenu) */
.ambient::after { content: ""; position: absolute; inset: 0; }
.ambient--presentation::after {
  background: var(--grain), linear-gradient(90deg, rgba(2, 4, 62, 0) 28%, rgba(2, 4, 62, 0.72) 46%, rgba(2, 4, 62, 0.76) 100%);
}
.ambient--cta::after {
  background: var(--grain), linear-gradient(90deg, rgba(0, 0, 0, 0.62) 0%, rgba(2, 4, 62, 0.5) 42%, rgba(2, 4, 62, 0) 75%);
}

/* Textes posés sur le fond animé : un ton plus clair que le texte courant, pour garder la marge de contraste */
.has-ambient .presentation__text p, .has-ambient .cta-band__text { color: #e3e5ee; }

/* Bandeau de contact : base noir → bleu nuit, lumière surtout en bas, comme le dégradé de la charte */
.cta-band { background: linear-gradient(180deg, var(--noir) 0%, var(--nuit) 100%); }
/* Zones animées : le grain est porté par le voile (au-dessus des halos), pas par le fond de la section */
.band--nuit.has-ambient { background: var(--nuit); }
.ambient--cta .ambient__halo--profond { left: -20vmax; top: auto; bottom: -46vmax; }
.ambient--cta .ambient__halo--lumineux { right: -18vmax; bottom: -34vmax; }

/* Pause automatique hors de l'écran */
[data-ambient][data-paused] .ambient__halo, [data-ambient][data-paused] .ambient__ray { animation-play-state: paused; }

/* Mobile : deux halos et le faisceau, amplitude adaptée ; voile sous tout le texte */
@media (max-width: 39.99em) {
  .ambient__halo--diffus { display: none; }
  .ambient--presentation::after { background: var(--grain), linear-gradient(180deg, rgba(2, 4, 62, 0.2) 0%, rgba(2, 4, 62, 0.62) 42%, rgba(2, 4, 62, 0.66) 100%); }
  .ambient--cta::after { background: var(--grain), rgba(2, 4, 62, 0.5); }
}

/* Moins d'animations (réglage du système) : dégradé fixe */
@media (prefers-reduced-motion: reduce) {
  .ambient__halo, .ambient__ray { animation: none !important; }
}

/* ---------- Fonds bleus animés (« flux ») ----------
   Toutes les grandes sections bleues reprennent le traitement du bas du site : halos des bleus de la
   charte (principal, secondaire, cobalt) et faisceau diagonal, en mouvement lent et continu.
   Les halos sont un peu moins intenses qu'en présentation, car ces sections portent du texte
   sur toute leur largeur. Deux orientations alternent (lumière à gauche, puis à droite) et les
   bords s'assombrissent vers le noir des sections voisines : la lumière semble circuler d'une
   section à l'autre. Le voile porte le grain et garantit le contraste des textes.
   Animation de transform uniquement, pause hors écran, version allégée sur mobile,
   dégradé fixe si le système demande moins d'animations. */
.band--nuit.has-flux {
  background:
    radial-gradient(70% 55% at 12% 0%, rgba(13, 14, 149, 0.55), rgba(13, 14, 149, 0) 70%),
    radial-gradient(60% 50% at 92% 100%, rgba(2, 58, 186, 0.35), rgba(2, 58, 186, 0) 70%),
    var(--nuit);
}
.ambient--flux .ambient__halo--profond {
  width: 78vmax; height: 78vmax; left: -36vmax; top: -30vmax;
  background: radial-gradient(closest-side, rgba(13, 14, 149, 0.95), rgba(13, 14, 149, 0.4) 50%, rgba(13, 14, 149, 0) 100%);
  animation-duration: 17s;
}
.ambient--flux .ambient__halo--lumineux {
  width: 56vmax; height: 56vmax; right: -24vmax; top: auto; bottom: -32vmax;
  background: radial-gradient(closest-side, rgba(0, 138, 230, 0.5), rgba(0, 138, 230, 0.18) 50%, rgba(0, 138, 230, 0) 100%);
  animation-duration: 15s;
}
.ambient--flux .ambient__halo--diffus {
  width: 64vmax; height: 40vmax; left: 34%; top: 38%;
  background: radial-gradient(closest-side, rgba(2, 58, 186, 0.5), rgba(2, 58, 186, 0) 100%);
  animation-duration: 19s;
}
.ambient--flux .ambient__ray { opacity: 0.75; animation-duration: 16s; bottom: auto; height: min(124%, 130vh); } /* calque limité sur les sections très hautes */
/* Bas du faisceau fondu : aucune coupure nette sur les sections plus hautes que le calque */
.ambient--flux .ambient__ray { -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent); mask-image: linear-gradient(180deg, #000 70%, transparent); }
/* Orientation B : lumière principale à droite, bleu clair à gauche (sections suivantes) */
.ambient--flux-b .ambient__halo--profond { left: auto; right: -36vmax; animation-name: ambient-lumineux; animation-delay: -7s; }
.ambient--flux-b .ambient__halo--lumineux { right: auto; left: -24vmax; animation-name: ambient-profond; animation-delay: -3s; }
.ambient--flux-b .ambient__halo--diffus { left: 4%; animation-direction: alternate-reverse; }
.ambient--flux-b .ambient__ray { transform: scaleX(-1); animation-name: ambient-ray-b; }
@keyframes ambient-ray-b { from { transform: scaleX(-1) translate3d(-28%, 0, 0); } to { transform: scaleX(-1) translate3d(22%, 0, 0); } }
/* Voile : grain, bords assombris vers le noir des sections voisines, contraste sous le texte */
.ambient--flux::after {
  background: var(--grain),
    linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0, rgba(2, 4, 62, 0.34) clamp(6rem, 14%, 12rem), rgba(2, 4, 62, 0.34) calc(100% - clamp(6rem, 14%, 12rem)), rgba(0, 0, 0, 0.5) 100%);
}
.has-flux { --texte-doux: rgba(255, 255, 255, 0.84); --texte-discret: rgba(255, 255, 255, 0.72); }
/* Intensité selon la section : douce pour les pages de lecture (mentions, confidentialité, messages),
   soutenue pour les sections courtes et visuelles (témoignage) */
.ambient--doux .ambient__halo { opacity: 0.6; }
.ambient--doux .ambient__ray { display: none; }
.ambient--fort .ambient__halo--lumineux { background: radial-gradient(closest-side, rgba(0, 138, 230, 0.66), rgba(0, 138, 230, 0.24) 50%, rgba(0, 138, 230, 0) 100%); }
.ambient--fort .ambient__ray { opacity: 1; }
/* Petits textes bleus posés sur la lumière : bleu secondaire éclairci pour garder un contraste d'au moins 4,5:1 */
.has-flux .realisation__meta, .has-flux .prose a, .has-flux .req { color: #5cb8f7; }
@media (max-width: 39.99em) {
  .ambient--flux .ambient__halo--diffus { display: none; }
  .ambient--flux .ambient__halo--profond { width: 110vmax; height: 110vmax; left: -60vmax; }
}

/* ---------- Bandeau d'appel à l'action (zone forte : dégradé) ---------- */
.cta-band { border-top: 1px solid var(--ligne); }
.cta-band__inner { display: grid; gap: 1.25rem; justify-items: start; padding-block: clamp(4rem, 8vw, 6.5rem); }
.cta-band__title { font-family: var(--f-titre); font-weight: var(--w-titre); font-size: var(--t-5); line-height: 1.08; letter-spacing: -0.02em; max-width: 20ch; text-wrap: balance; }
.cta-band__text { color: var(--texte-doux); max-width: 44ch; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--grain), var(--noir); padding-block: clamp(3.5rem, 6vw, 5rem) 2rem; font-size: 0.95rem; }
.site-footer__grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1.4fr); gap: 2.5rem var(--gutter); }
.site-footer__brand { display: grid; gap: 0.75rem; justify-items: start; color: var(--texte-doux); }
.site-footer__brand .brand { padding: 0 0 0.75rem; }
.site-footer__nav ul, .site-footer__legal ul { display: grid; gap: 0.5rem; }
.site-footer__nav a, .site-footer__contact a, .site-footer__legal a { text-decoration: none; }
.site-footer__nav a:hover, .site-footer__contact a:hover, .site-footer__legal a:hover { text-decoration: underline; }
.site-footer__contact { display: grid; gap: 0.5rem; align-content: start; }
.site-footer__contact a { font-family: var(--f-sous-titre); font-weight: 800; font-size: 1.05rem; }
.site-footer__legal {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  margin-top: 3rem; padding-top: 1.5rem; color: var(--texte-discret);
  background: linear-gradient(var(--ligne), var(--ligne)) no-repeat var(--gutter) 0 / calc(100% - 2 * var(--gutter)) 1px;
}
.site-footer__legal ul { grid-auto-flow: column; gap: 1.5rem; }
@media (max-width: 47.99em) {
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .site-footer__brand, .site-footer__contact { grid-column: 1 / -1; }
  .site-footer__contact { order: -1; grid-row: 2; }
}

/* ---------- En-tête de page ---------- */
.page-header { padding-top: clamp(2.5rem, 6vw, 5rem); }
.page-header__title { font-family: var(--f-titre); font-weight: var(--w-titre); font-size: var(--t-6); line-height: 1.04; letter-spacing: -0.025em; max-width: 18ch; text-wrap: balance; }
.page-header__intro, .lead { margin-top: 1.1rem; font-size: var(--t-2); line-height: 1.5; color: var(--texte-doux); max-width: 48ch; text-wrap: pretty; }

/* Filtres (pilules) */
.filters { margin-top: clamp(1.75rem, 3vw, 2.5rem); }
.filters ul { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.filters__item {
  display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0.55rem 1.25rem 0.45rem;
  border: 1.5px solid var(--ligne-forte); border-radius: 999px;
  font-family: var(--f-sous-titre); font-weight: 800; text-decoration: none; color: var(--texte-doux);
}
.filters__item { transition: color var(--dur-s) var(--ease-out), border-color var(--dur-s) var(--ease-out), background-color var(--dur-s) var(--ease-out); }
.filters__item:hover, .filters__item:focus-visible { color: var(--blanc); border-color: var(--azur); background: rgba(13, 14, 149, 0.5); }
.filters__item:focus-visible { outline-offset: 3px; border-radius: 999px; }
.filters__item[aria-current="page"] { color: var(--blanc); background: var(--prisme); border-color: var(--azur); }
.empty { padding-block: 3rem; color: var(--texte-doux); }

/* ---------- Page projet ---------- */
.project__header { padding-block: clamp(2.5rem, 5vw, 4rem) clamp(1.5rem, 3vw, 2.5rem); position: relative; }
.project__header .badge-example { position: static; display: inline-block; margin-top: 1.25rem; }
.project__back a { font-family: var(--f-sous-titre); font-weight: 800; color: var(--texte-doux); text-decoration: none; }
.project__back a::before { content: "‹"; margin-right: 0.5rem; }
.project__back a:hover { color: var(--azur); }
.project__title { margin-top: 1rem; font-family: var(--f-titre); font-weight: var(--w-titre); font-size: var(--t-6); line-height: 1.04; letter-spacing: -0.025em; max-width: 18ch; text-wrap: balance; }
.project__summary { margin-top: 1.1rem; font-size: var(--t-2); line-height: 1.5; color: var(--texte-doux); max-width: 46ch; }
.project__media { padding-bottom: clamp(1.5rem, 4vw, 3rem); }
.project__media > .player, .project__media > picture { max-width: calc(var(--max) - 2 * var(--gutter)); margin-inline: auto; aspect-ratio: 16 / 9; }
.project__cover img { width: 100%; height: 100%; object-fit: cover; }
.project__body { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 3rem var(--gutter); padding-block: clamp(3rem, 6vw, 5rem); }
.project__main { display: grid; gap: 2.5rem; max-width: 42rem; }
.project__main h2, .project__facts-title {
  font-family: var(--f-sous-titre); font-weight: 800; font-size: var(--t-2); margin-bottom: 0.75rem;
}
.project__main p + p { margin-top: 1rem; }
.project__main p { color: var(--texte-doux); }
.project__facts { align-self: start; border-top: 1px solid var(--ligne-forte); padding-top: 1.25rem; display: grid; gap: 2rem; }
.project__facts dl { display: grid; gap: 1rem; }
.project__facts dt { font-size: var(--t-0); color: var(--texte-discret); }
.project__facts dd { margin: 0.15rem 0 0; font-family: var(--f-sous-titre); font-weight: 800; font-size: 1.1rem; }
@media (max-width: 55.99em) { .project__body { grid-template-columns: 1fr; } }

.prose { color: var(--texte-doux); }
.prose > * + * { margin-top: 1rem; }
.prose h2, .prose h3 { color: var(--blanc); font-family: var(--f-sous-titre); font-weight: 800; }
.prose a { color: var(--azur); }

.tick-list { display: grid; gap: 0.6rem; }
.tick-list li { position: relative; padding-left: 1.5rem; color: var(--texte-doux); }
.tick-list li::before { content: ""; position: absolute; left: 0; top: 0.7em; width: 0.75rem; height: 2px; background: var(--azur); }

/* Galerie */
.gallery__grid { columns: 2; column-gap: var(--gutter); }
.gallery__item { break-inside: avoid; margin-bottom: var(--gutter); }
.gallery__link { display: block; position: relative; cursor: zoom-in; background: var(--noir); }
.gallery__link img { width: 100%; transition: filter 0.4s var(--ease); }
.gallery__link:hover img { filter: brightness(1.08); }
.gallery__item figcaption { margin-top: 0.6rem; font-size: var(--t-0); color: var(--texte-discret); }
@media (max-width: 39.99em) { .gallery__grid { columns: 1; } }

/* ---------- Réalisations (sélection sur une page) ---------- */
.realisation { scroll-margin-top: var(--header-h); }
.realisation__head { display: grid; gap: 0.6rem; justify-items: start; margin-bottom: clamp(1.5rem, 3vw, 2.25rem); }
.realisation + .realisation { border-top: 1px solid var(--ligne); }
.realisation__meta { display: flex; flex-wrap: wrap; gap: 0.2rem 0.75rem; font-family: var(--f-sous-titre); font-weight: 800; font-size: 0.9rem; letter-spacing: 0.02em; color: var(--azur-clair); }
.realisation__meta span + span { padding-left: 0.75rem; border-left: 1px solid var(--ligne-forte); color: var(--texte-doux); }
.realisation__title { font-family: var(--f-titre); font-weight: var(--w-titre); font-size: var(--t-5); line-height: 1.08; letter-spacing: -0.02em; max-width: 22ch; text-wrap: balance; }
.realisation__head .badge-example { position: static; }
.realisation__media { margin: 0; }
.realisation__media > .player, .realisation__media > picture { display: block; aspect-ratio: 16 / 9; }
.realisation__caption { margin-top: 0.75rem; font-size: var(--t-0); color: var(--texte-discret); }
.realisation__cover img { width: 100%; height: 100%; object-fit: cover; }
.realisation__body {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); gap: 2rem clamp(2rem, 4vw, 3.5rem);
  margin-top: clamp(1.75rem, 3.5vw, 2.75rem);
}
.realisation__body p { color: var(--texte-doux); line-height: 1.65; max-width: 62ch; }
.realisation__body p + p { margin-top: 0.8rem; }
/* Rubriques allégées : petites étiquettes plutôt que des intertitres */
.realisation__label, .xpb__related-label {
  font-family: var(--f-sous-titre); font-weight: 800; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--azur-clair); margin-bottom: 0.7rem;
}
.realisation__body .realisation__lien { margin-top: 1.25rem; }
.realisation__conclusion { margin-top: clamp(1.5rem, 3vw, 2.25rem); max-width: 46rem; color: var(--texte-doux); font-style: italic; }
.realisation__gallery { margin-top: clamp(1.75rem, 3.5vw, 2.75rem); columns: 3; }
@media (max-width: 55.99em) { .realisation__gallery { columns: 2; } }
@media (max-width: 39.99em) { .realisation__gallery { columns: 1; } }
.instagram-cta__inner { display: flex; justify-content: center; }
.instagram-cta .btn { max-width: 100%; white-space: normal; text-align: center; line-height: 1.25; }
.instagram-cta { padding-block: clamp(3rem, 6vw, 4.5rem); }

/* Visionneuse */
.lightbox {
  width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(0, 0, 0, 0.95); color: var(--blanc);
}
.lightbox::backdrop { background: rgba(0, 0, 0, 0.95); }
.lightbox__figure { position: absolute; inset: 3.5rem 4.5rem 4rem; display: grid; place-items: center; }
.lightbox__figure img { max-width: 100%; max-height: calc(100dvh - 8rem); width: auto; height: auto; object-fit: contain; }
.lightbox__caption { position: absolute; left: 0; right: 0; bottom: -3rem; text-align: center; font-size: var(--t-0); color: var(--texte-doux); }
.lightbox__btn {
  position: absolute; z-index: 2; display: grid; place-items: center;
  width: 3rem; height: 3rem; border: 1.5px solid var(--ligne-forte); border-radius: 50%; background: rgba(0, 0, 0, 0.6);
  color: var(--blanc); cursor: pointer; font-size: 1.5rem; line-height: 1;
}
.lightbox__btn:hover { border-color: var(--azur); background: var(--prisme); }
.lightbox__close { top: 0.75rem; right: 0.75rem; }
.lightbox__prev { left: 0.75rem; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 0.75rem; top: 50%; transform: translateY(-50%); }
.lightbox__count { position: absolute; top: 1.4rem; left: 1rem; font-family: var(--f-sous-titre); font-weight: 800; font-size: var(--t-0); color: var(--texte-doux); }
@media (max-width: 39.99em) {
  .lightbox__figure { inset: 3.5rem 0.5rem 4.5rem; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 0.75rem; transform: none; }
}

/* Navigation entre projets */
.project-nav { display: grid; grid-template-columns: 1fr 1fr; padding-block: clamp(2.5rem, 5vw, 4rem); }
.project-nav__link { display: grid; gap: 0.4rem; align-content: start; padding: 0.5rem 1rem 0.5rem 0; text-decoration: none; color: var(--blanc); }
.project-nav__link--next { text-align: right; padding: 0.5rem 0 0.5rem 1rem; border-left: 1px solid var(--ligne); }
.project-nav__hint { font-size: var(--t-0); color: var(--texte-discret); }
.project-nav__title { font-family: var(--f-titre); font-weight: var(--w-titre); font-size: var(--t-3); line-height: 1.15; text-wrap: balance; }
.project-nav__link:hover .project-nav__title { color: var(--azur); }

/* ---------- Expertises (page) ---------- */
/* Page Expertises : une grande image et un texte par expertise, en alternance gauche / droite */
.xpbs { display: grid; gap: clamp(3.5rem, 7vw, 6.5rem); padding-block: clamp(1.5rem, 3vw, 3rem) var(--section); }
.xpb { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 4vw, 4.5rem); align-items: center; scroll-margin-top: calc(var(--header-h) + 1.5rem); }
.xpb--inverse { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.xpb--inverse > .xpb__media { order: 2; }
.xpb__media { position: relative; overflow: hidden; border-radius: 4px; aspect-ratio: 4 / 3; background: var(--noir); box-shadow: 0 2.5rem 5rem -2.5rem rgba(0, 0, 0, 0.8); }
.xpb__img, .xpb__img img { display: block; width: 100%; height: 100%; }
.xpb__img img { object-fit: cover; }
.xpb__content { display: grid; gap: 1.1rem; align-content: center; }
.xpb__num { font-family: var(--f-sous-titre); font-weight: 800; font-size: 0.85rem; letter-spacing: 0.14em; color: var(--azur-clair); }
.xpb__title { font-family: var(--f-titre); font-weight: var(--w-titre); font-size: var(--t-5); line-height: 1.06; letter-spacing: -0.02em; }
.xpb__lead { font-size: var(--t-2); line-height: 1.45; max-width: 40ch; }
.xpb__list { display: grid; gap: 0.45rem; margin-top: 0.4rem; }
.xpb__list li { position: relative; padding-left: 1.4rem; color: var(--texte-doux); }
.xpb__list li::before { content: ""; position: absolute; left: 0; top: 0.75em; width: 0.8rem; height: 2px; background: var(--azur); }
.xpb__note { padding-left: 1rem; border-left: 2px solid rgba(0, 138, 230, 0.55); color: var(--texte-doux); font-size: 0.98rem; max-width: 52ch; }
.xpb__related { display: grid; gap: 0.6rem; margin-top: 0.4rem; }
.xpb__projects { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; }
@media (max-width: 63.99em) {
  .xpb, .xpb--inverse { grid-template-columns: 1fr; gap: 1.5rem; }
  .xpb--inverse > .xpb__media { order: 0; }
  /* Format d'origine des photos horizontales ; cadre plus haut et cadrage dédié pour les verticales */
  .xpb__media { aspect-ratio: var(--ratio-m, 16 / 10); }
  .xpb__media--tall { aspect-ratio: 4 / 3; }
  .xpb__media[style*="--pos-m"] .xpb__img img { object-position: var(--pos-m) !important; }
}
/* Ordinateur : cadre un peu plus haut pour les photos verticales, équilibré avec la colonne de texte */
@media (min-width: 64em) {
  .xpb__media--tall { aspect-ratio: 6 / 5; }
}
.usages { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem; margin-top: clamp(1.75rem, 3vw, 2.5rem); }
.usages__title { color: var(--texte-doux); }
.usages__list { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.usages__list li {
  padding: 0.45rem 0.95rem 0.35rem; border: 1px solid var(--ligne-forte); border-radius: 999px;
  font-family: var(--f-sous-titre); font-weight: 800; font-size: 0.9rem;
}

/* Images d'illustration (tournage, coulisses, réalisations) */
.media-figure { margin: 0; }
.media-figure img { width: 100%; height: auto; object-fit: cover; background: var(--noir); }
.media-figure figcaption { margin-top: 0.6rem; font-size: var(--t-0); color: var(--texte-discret); }
.media-figure--wide { margin-block: 2.5rem 0.5rem; }
.media-figure--wide img { aspect-ratio: 3 / 2; }
.media-figure--tall img { aspect-ratio: 4 / 5; }
.media-figure--solo { margin-block: 2.5rem 0.5rem; max-width: 26rem; }
.media-figure--solo img { aspect-ratio: 3 / 4; }
.media-pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(0.75rem, 2vw, 1.25rem); margin-block: 2.5rem 0.5rem; }
/* Bandeau photo : 16:9 (jamais plus panoramique que nécessaire) ; pleine largeur sur téléphone et tablette,
   limité à 1200 px et centré sur le fond de la section sur ordinateur (photo de 1280 px : pas d'agrandissement) */
.media-band .media-figure--band img { width: 100%; aspect-ratio: 16 / 9; max-height: 88vh; }
/* Raccord des deux fonds animés autour du bandeau : chacun se fond dans le bleu nuit uni à la jonction */
.fondu-bas::after, .fondu-haut::after { content: ""; position: absolute; left: 0; right: 0; height: min(14rem, 30%); z-index: -1; pointer-events: none; }
.fondu-bas::after { bottom: 0; background: linear-gradient(to bottom, rgba(2, 4, 62, 0), var(--nuit)); }
.fondu-haut::after { top: 0; background: linear-gradient(to top, rgba(2, 4, 62, 0), var(--nuit)); }
@media (min-width: 64em) {
  .media-band { padding-inline: var(--gutter); padding-bottom: clamp(3rem, 5vw, 5rem); }
  .media-band .media-figure--band { max-width: 75rem; margin-inline: auto; }
  .media-band .media-figure--band img { border-radius: 4px; box-shadow: 0 2.5rem 5rem -2.5rem rgba(0, 0, 0, 0.8); }
}
@media (max-width: 39.99em) {
  .media-band .media-figure--band img { aspect-ratio: 5 / 4; }
  .media-band .media-figure--band[style*="--pos-m"] img { object-position: var(--pos-m) !important; }
}

/* ---------- À propos ---------- */
.about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 3rem clamp(2rem, 6vw, 6rem); padding-block: clamp(3rem, 6vw, 5rem) var(--section); }
/* Parcours raconté par Christopher (première personne, signé) */
.about__parcours { margin: 2.5rem 0 0; }
.about__quote { margin: 1rem 0 0; padding-left: clamp(1rem, 2.5vw, 1.5rem); border-left: 2px solid var(--azur); display: grid; gap: 1rem; }
.about__quote p { color: var(--texte-doux); }
.about__text .about__parcours h2 { margin-top: 0; }
.about__text .about__quote p + p { margin-top: 0; }
.about__signature { margin-top: 1rem; font-family: var(--f-sous-titre); font-weight: 800; font-size: 0.95rem; }
.about__visual { align-self: start; position: sticky; top: calc(var(--header-h) + 2rem); }
.about__portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.about__text { max-width: 40rem; }
.about__text h2 { font-family: var(--f-sous-titre); font-weight: 800; font-size: var(--t-3); margin: 2.75rem 0 1rem; line-height: 1.2; text-wrap: balance; }
.about__text p + p { margin-top: 1rem; }
.about__text > p:not(.lead) { color: var(--texte-doux); }
.about__text .lead { margin-bottom: 1.5rem; max-width: none; }
.about__text .actions { margin-top: 3rem; }
@media (max-width: 55.99em) {
  .about { grid-template-columns: 1fr; }
  .about__visual { position: static; max-width: 24rem; }
}

/* ---------- Contact ---------- */
.contact {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); grid-template-rows: auto 1fr;
  grid-template-areas: "intro action" "more action";
  gap: 0 clamp(2rem, 6vw, 6rem); padding-block: clamp(3rem, 6vw, 5rem) var(--section);
}
.contact__intro { grid-area: intro; }
.contact__more { grid-area: more; }
.contact > .form, .contact > .contact-mail { grid-area: action; align-self: start; }
.contact__intro .lead { max-width: 30ch; }
.contact__hints { margin-top: 2.5rem; }
.contact__hints-title { font-family: var(--f-sous-titre); font-weight: 800; font-size: 1.05rem; margin-bottom: 1rem; }
.contact__direct { display: grid; gap: 1.25rem; margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--ligne); }
.contact__direct dt { font-size: var(--t-0); color: var(--texte-discret); }
.contact__direct dd { margin: 0.15rem 0 0; font-family: var(--f-sous-titre); font-weight: 800; font-size: 1.1rem; }
.contact__direct a { text-decoration: none; }
.contact__direct a:hover { text-decoration: underline; }
@media (max-width: 55.99em) {
  /* Mobile : le formulaire (ou l'adresse email) juste après l'introduction */
  .contact { grid-template-columns: 1fr; grid-template-rows: none; grid-template-areas: "intro" "action" "more"; row-gap: 2.5rem; }
  .contact__hints { margin-top: 0; }
}

.form {
  display: grid; gap: 1.5rem; align-content: start;
  padding: clamp(1.5rem, 4vw, 2.5rem); background: var(--grain), var(--noir); border: 1px solid var(--ligne); border-radius: var(--radius);
}
.form__row { display: grid; gap: 0.5rem; }
.form__optional { font-family: var(--f-texte); font-weight: 400; font-size: var(--t-0); color: var(--texte-discret); }
.contact__mailto { margin-top: 1.25rem; color: var(--texte-doux); }

/* Contact par email (tant que le formulaire n'est pas actif) */
.contact-mail {
  display: grid; gap: 1.25rem; justify-items: start; align-content: start;
  padding: clamp(1.5rem, 4vw, 2.5rem); background: var(--grain), var(--noir); border: 1px solid var(--ligne); border-radius: var(--radius);
}
.contact-mail__title { font-family: var(--f-sous-titre); font-weight: 800; font-size: var(--t-2); }
.contact-mail__address { font-family: var(--f-sous-titre); font-weight: 800; font-size: clamp(1.2rem, 2.6vw, 1.6rem); overflow-wrap: anywhere; }
.contact-mail__address a { text-decoration: none; }
.contact-mail__address a:hover { text-decoration: underline; }
.contact-mail__hint { font-size: var(--t-0); color: var(--texte-doux); max-width: 46ch; }
.form label { font-family: var(--f-sous-titre); font-weight: 800; font-size: 1rem; }
.req { color: var(--azur); }
.form input, .form textarea {
  width: 100%; padding: 0.85rem 1rem; border-radius: 0.75rem;
  background: rgba(2, 4, 62, 0.75); color: var(--blanc);
  border: 1px solid var(--ligne-forte);
  font: inherit; font-size: 1rem; /* 16 px minimum : pas de zoom automatique sur iPhone */
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.form textarea { resize: vertical; min-height: 10rem; line-height: 1.5; }
.form input:hover, .form textarea:hover { border-color: rgba(255, 255, 255, 0.55); }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--azur); box-shadow: 0 0 0 3px rgba(0, 138, 230, 0.45); }
.form [aria-invalid="true"] { border-color: var(--erreur); }
.form__hint { font-size: var(--t-0); color: var(--texte-discret); }
.form__error { font-size: var(--t-0); color: var(--erreur); }
.form__error:empty { display: none; }
.form__legal { font-size: var(--t-0); color: var(--texte-discret); }
.form__legal a { color: var(--texte-doux); }
.form__submit { display: grid; gap: 1rem; justify-items: start; }
.form__status:empty { display: none; }
.form__status { padding: 0.9rem 1rem; border-left: 3px solid var(--azur); border-radius: 0 0.5rem 0.5rem 0; background: rgba(0, 138, 230, 0.12); }
.form__status[data-state="error"] { border-left-color: var(--erreur); background: rgba(255, 158, 158, 0.1); }
.form__status[data-state="success"] { border-left-color: var(--succes); background: rgba(143, 227, 176, 0.1); }
.form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 39.99em) { .form .btn { width: 100%; } .form__submit { justify-items: stretch; } }

/* ---------- Pages simples ---------- */
.result { padding-block: clamp(4rem, 10vw, 8rem); display: grid; gap: 1.25rem; justify-items: start; }
.result .actions { margin-top: 1rem; }
.legal { padding-block: clamp(3rem, 6vw, 5rem) var(--section); }
.legal h2 { font-family: var(--f-sous-titre); font-weight: 800; font-size: var(--t-2); margin: 2.5rem 0 0.75rem; }
.legal p, .legal li { color: var(--texte-doux); }
.legal p + p { margin-top: 0.75rem; }
.legal ul { margin-block: 0.75rem; }
.legal a { color: var(--blanc); }
.legal .muted { margin-top: 3rem; }

/* ---------- Réduction des animations ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important; scroll-behavior: auto !important;
  }
}

/* Pied de page sur écran tactile : zones de clic d'au moins 44 px de haut */
@media (hover: none), (max-width: 47.99em) {
  .site-footer__nav a, .site-footer__legal a, .site-footer__contact a { display: inline-flex; align-items: center; min-height: 2.75rem; }
  .site-footer__nav li + li { margin-top: 0; }
}


/* ==========================================================================
   Mise à jour de novembre 2026 : studio mobile, offres, méthode, animations
   ========================================================================== */

/* ---------- Petits éléments communs ---------- */
.eyebrow {
  font-family: var(--f-sous-titre); font-weight: 800; font-size: 0.85rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--azur-clair);
}
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chips li {
  padding: 0.5rem 1rem 0.4rem; border: 1px solid var(--ligne-forte); border-radius: 999px;
  font-family: var(--f-sous-titre); font-weight: 800; font-size: 0.92rem; line-height: 1.2;
  background: rgba(2, 4, 62, 0.35);
  transition: border-color 0.4s var(--ease-out), background-color 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out), color 0.4s var(--ease-out);
}

/* ---------- Boutons et liens : retours visuels ----------
   Reflet qui traverse le bouton au survol et au focus clavier, halo bleu, léger enfoncement au clic
   ou au toucher. Lien « en savoir plus » : un trait lumineux parcourt le soulignement. */
.btn { position: relative; isolation: isolate; overflow: hidden; transition: background-color var(--dur-s) var(--ease-out), color var(--dur-s) var(--ease-out), border-color var(--dur-s) var(--ease-out), box-shadow 0.35s var(--ease-out), transform 0.18s var(--ease-out); }
.btn::after {
  content: ""; position: absolute; inset: -1px; z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, 0.42) 50%, rgba(255, 255, 255, 0) 70%);
  transform: translate3d(-120%, 0, 0);
}
.btn:hover::after, .btn:focus-visible::after { transform: translate3d(120%, 0, 0); transition: transform 0.75s var(--ease-out); }
.btn--primary:hover, .btn--primary:focus-visible { box-shadow: 0 0 0 4px rgba(0, 138, 230, 0.2), 0 12px 32px -10px rgba(0, 138, 230, 0.75); }
.btn--ghost:hover, .btn--ghost:focus-visible { box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.08), 0 12px 32px -14px rgba(0, 138, 230, 0.6); }
.btn:active { transform: scale(0.97); }
.link-more { background: linear-gradient(90deg, var(--blanc), var(--azur-clair)) left bottom / 0% 2px no-repeat; transition: color var(--dur-s) var(--ease-out), border-color var(--dur-s) var(--ease-out), background-size 0.45s var(--ease-out); }
.link-more:hover, .link-more:focus-visible { background-size: 100% 2px; }
.link-more:active { color: var(--azur-clair); }
.link-more:active::after { transform: translateX(0.45em); }
.site-nav a:not(.btn) { background: linear-gradient(90deg, var(--azur), var(--azur-clair)) center bottom / 0% 2px no-repeat; transition: border-color var(--dur-s) var(--ease-out), color var(--dur-s) var(--ease-out), background-size 0.35s var(--ease-out); }
.site-nav a:not(.btn):hover, .site-nav a:not(.btn):focus-visible { background-size: 100% 2px; }

/* ---------- Numéros lumineux et flèches (expertises, offres) ---------- */
.xpl__num, .xpb__num, .offer-card__num { transition: color 0.35s var(--ease-out), text-shadow 0.35s var(--ease-out); }
.xpl__item.is-active .xpl__num, .xpl__link:hover .xpl__num, .xpl__link:focus-visible .xpl__num,
.xpb:hover .xpb__num, .xpb:focus-within .xpb__num, .xpb.is-spot .xpb__num,
.offer-card__link:hover .offer-card__num, .offer-card__link:focus-visible .offer-card__num, .offer-card.is-spot .offer-card__num {
  color: var(--blanc); text-shadow: 0 0 10px rgba(0, 138, 230, 0.95), 0 0 26px rgba(0, 138, 230, 0.6);
}
/* Mobile, tablette et écrans tactiles : la ligne d'expertise au centre de l'écran s'allume (sans survol) */
@media (max-width: 63.99em), (hover: none) {
  .xpl__item.is-active .xpl__link::before { opacity: 1; transform: none; }
  .xpl__item.is-active .arrow-btn { overflow: hidden; background: var(--azur); border-color: var(--azur); color: var(--noir); }
  .xpl__item.is-active .arrow-btn svg { animation: arrow-loop 0.8s var(--ease-out) both; }
}
@media (max-width: 63.99em) {
  .xpl__thumb-frame { position: relative; }
  .xpl__thumb img { transition: transform 1.4s var(--ease-out), filter 0.6s var(--ease-out); filter: brightness(0.82); }
  .xpl__item.is-active .xpl__thumb img { transform: scale(1.06); filter: none; }
  .xpl__thumb-frame::after {
    content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 55%; pointer-events: none;
    background: linear-gradient(105deg, rgba(0, 138, 230, 0) 20%, rgba(0, 138, 230, 0.24) 45%, rgba(170, 215, 255, 0.2) 52%, rgba(0, 138, 230, 0) 80%);
    transform: translate3d(-130%, 0, 0);
  }
  .xpl__item.is-active .xpl__thumb-frame::after { animation: xpl-sheen 1.1s var(--ease-out) 0.05s both; }
}
@keyframes xpl-sheen { to { transform: translate3d(260%, 0, 0); } }

/* ---------- Accueil : studio mobile ----------
   Photo verticale entière et texte côte à côte sur ordinateur ; photo puis texte sur tablette et téléphone.
   À l'arrivée dans la section, une ligne lumineuse part de la photo, longe le titre et descend jusqu'aux
   usages, qui s'allument l'un après l'autre. Un halo bleu respire derrière la photo. */
.studio__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2.5rem, 5vw, 5.5rem); align-items: center; }
.studio__visual { position: relative; justify-self: center; width: 100%; max-width: calc(80vh * 2 / 3); }
.studio__glow {
  position: absolute; inset: -14% -18%; z-index: -1; pointer-events: none; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 138, 230, 0.55), rgba(13, 14, 149, 0.35) 55%, rgba(13, 14, 149, 0) 100%);
  animation: studio-glow 7s ease-in-out infinite alternate;
}
@keyframes studio-glow { from { transform: scale(0.9) translate3d(-3%, 2%, 0); opacity: 0.6; } to { transform: scale(1.08) translate3d(3%, -2%, 0); opacity: 1; } }
.studio__media { position: relative; border-radius: 4px; overflow: hidden; box-shadow: 0 2.5rem 5rem -2.5rem rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.08); }
.studio__img, .studio__img img { display: block; width: 100%; }
.studio__img img { aspect-ratio: 2 / 3; height: auto; object-fit: cover; }
.studio__content { position: relative; display: grid; gap: 1.25rem; justify-items: start; padding-left: clamp(1.5rem, 3vw, 2.5rem); }
.studio__title { max-width: 18ch; }
.studio__line { display: block; }
.studio__line--2 { color: var(--azur-clair); }
.studio__text { color: #e3e5ee; max-width: 52ch; }
.studio__apport { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem 1.5rem; width: 100%; max-width: 34rem; }
.studio__apport li { display: flex; align-items: baseline; gap: 0.7rem; padding-block: 0.6rem; border-bottom: 1px solid var(--ligne); font-family: var(--f-sous-titre); font-weight: 800; font-size: 1.05rem; }
.studio__apport-num { font-size: 0.8rem; letter-spacing: 0.12em; color: var(--azur-clair); transition: color 0.4s, text-shadow 0.4s; }
.studio__usages-label { color: var(--texte-doux); margin-top: 0.25rem; }
/* Ligne lumineuse : un trait horizontal depuis la photo, puis vertical le long du texte */
.studio__beam { position: absolute; left: 0; top: 0.35rem; bottom: 0.35rem; width: 2px; pointer-events: none; }
.studio__beam::before {
  content: ""; position: absolute; inset: 0; border-radius: 2px;
  background: linear-gradient(180deg, var(--azur-clair), var(--azur) 40%, rgba(2, 58, 186, 0.6) 85%, rgba(2, 58, 186, 0));
  box-shadow: 0 0 14px rgba(0, 138, 230, 0.8);
  transform-origin: top; transition: transform 1.3s cubic-bezier(0.6, 0, 0.2, 1) 0.35s;
}
.studio__beam::after { /* impulsion lumineuse qui parcourt la ligne */
  content: ""; position: absolute; left: -4px; top: 0; width: 10px; height: 10px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 12px 4px rgba(0, 138, 230, 0.95), 0 0 28px 8px rgba(0, 138, 230, 0.5);
  opacity: 0;
}
.studio.is-in .studio__beam::after { animation: beam-pulse 6s cubic-bezier(0.45, 0, 0.55, 1) 0.6s infinite; }
@keyframes beam-pulse { 0% { top: 0; opacity: 0; } 6% { opacity: 1; } 34% { top: calc(100% - 10px); opacity: 1; } 40%, 100% { top: calc(100% - 10px); opacity: 0; } }
@media (min-width: 64em) {
  /* Raccord photo → titre */
  .studio__content::before {
    content: ""; position: absolute; top: calc(2.35rem + 0.55em * 1.08 + var(--t-5) * 0.5); right: 100%; width: clamp(2.5rem, 5vw, 5.5rem); height: 2px; pointer-events: none;
    background: linear-gradient(90deg, rgba(0, 138, 230, 0), var(--azur) 60%, var(--azur-clair));
    box-shadow: 0 0 12px rgba(0, 138, 230, 0.7);
    transform-origin: left; transition: transform 0.6s cubic-bezier(0.6, 0, 0.2, 1);
  }
  .js .studio:not(.is-in) .studio__content::before { transform: scaleX(0); }
}
.js .studio:not(.is-in) .studio__beam::before { transform: scaleY(0); }
.studio .chips li { transition-delay: calc(1.1s + var(--i, 0) * 0.09s); }
.studio .studio__apport li .studio__apport-num { transition-delay: calc(0.7s + var(--i, 0) * 0.1s); }
.studio.is-in .chips li { border-color: var(--azur); background: rgba(13, 14, 149, 0.55); box-shadow: 0 0 18px -6px rgba(0, 138, 230, 0.9); }
.studio.is-in .studio__apport-num { color: var(--blanc); text-shadow: 0 0 10px rgba(0, 138, 230, 0.95); }
@media (max-width: 63.99em) {
  .studio__grid { grid-template-columns: 1fr; }
  .studio__visual { max-width: 30rem; justify-self: start; }
  .studio__img img { aspect-ratio: 4 / 5; }
}
@media (max-width: 39.99em) {
  .studio__visual { max-width: none; }
  .studio__apport { grid-template-columns: 1fr; gap: 0; }
  .studio__glow { inset: -10% -6%; }
}

/* ---------- Accueil : les trois offres ---------- */
.offer-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter); }
.offer-card__link {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-rows: auto auto auto 1fr auto; gap: 0.75rem; height: 100%;
  padding: clamp(1.5rem, 2.6vw, 2.25rem); border: 1px solid var(--ligne); border-radius: var(--radius);
  background: var(--grain), linear-gradient(165deg, rgba(13, 14, 149, 0.32), rgba(2, 4, 62, 0.15) 45%, rgba(0, 0, 0, 0) 75%);
  color: var(--blanc); text-decoration: none;
  transition: border-color 0.35s var(--ease-out), transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out);
}
.offer-card__link:hover { color: var(--blanc); }
/* Lumière qui balaie la carte au survol, au focus clavier ou quand la carte passe au centre de l'écran (tactile) */
.offer-card__link::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(26rem 16rem at 0% 0%, rgba(0, 138, 230, 0.34), rgba(0, 138, 230, 0) 70%);
  opacity: 0; transform: translate3d(-12%, -8%, 0); transition: opacity 0.45s var(--ease-out), transform 0.8s var(--ease-out);
}
.offer-card__link:hover, .offer-card__link:focus-visible, .offer-card.is-spot .offer-card__link { border-color: rgba(0, 138, 230, 0.75); transform: translateY(-4px); box-shadow: 0 1.5rem 3rem -1.5rem rgba(0, 138, 230, 0.55); }
.offer-card__link:hover::before, .offer-card__link:focus-visible::before, .offer-card.is-spot .offer-card__link::before { opacity: 1; transform: none; }
.offer-card__link:active { transform: translateY(-1px) scale(0.99); }
.offer-card__num { font-family: var(--f-sous-titre); font-weight: 800; font-size: 0.85rem; letter-spacing: 0.14em; color: var(--azur-clair); }
.offer-card__title { font-family: var(--f-titre); font-weight: var(--w-titre); font-size: var(--t-4); line-height: 1.1; letter-spacing: -0.015em; }
.offer-card__pour { color: var(--texte-discret); font-size: var(--t-0); }
.offer-card__text { color: var(--texte-doux); font-size: 1.05rem; }
.offer-card__arrow { margin-top: 0.5rem; }
.offer-card__link:hover .arrow-btn, .offer-card__link:focus-visible .arrow-btn, .offer-card.is-spot .arrow-btn { background: var(--prisme); border-color: var(--azur); overflow: hidden; }
.offer-card__link:hover .arrow-btn svg, .offer-card__link:focus-visible .arrow-btn svg, .offer-card.is-spot .arrow-btn svg { animation: arrow-loop 0.8s var(--ease-out) both; }
@media (max-width: 55.99em) { .offer-cards { grid-template-columns: 1fr; } .offer-card__link { grid-template-rows: none; } }

/* ---------- Page Expertises : familles (compléments) ---------- */
.xpb__visuals { display: grid; min-width: 0; }
.xpb--inverse .xpb__visuals { order: 2; }
.xpb__second { position: relative; z-index: 1; width: min(68%, 22rem); margin: -3.5rem 0 0 auto; }
.xpb--inverse .xpb__second { margin-left: 0; margin-right: auto; }
.xpb__second picture, .xpb__second img { display: block; width: 100%; }
.xpb__second img { aspect-ratio: 16 / 9; object-fit: cover; border-radius: 4px; box-shadow: 0 1.5rem 3rem -1rem rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.12); }
.xpb__second figcaption { margin-top: 0.6rem; font-size: var(--t-0); color: var(--texte-discret); }
.xpb__num { transition: color 0.35s, text-shadow 0.35s; }
@media (max-width: 63.99em) {
  .xpb--inverse .xpb__visuals { order: 0; }
  .xpb__second { width: min(78%, 24rem); margin-top: -2.5rem; }
}

/* ---------- Pages des offres : blocs communs ---------- */
.feature-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
.feature-list li {
  padding: 1rem 1.1rem; border: 1px solid var(--ligne); border-radius: 0.75rem; background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.35s var(--ease-out), background-color 0.35s var(--ease-out), opacity 0.3s var(--ease-out), transform 0.6s var(--ease-out);
}
.feature-list li:hover { border-color: rgba(0, 138, 230, 0.6); background: rgba(13, 14, 149, 0.22); }
.feature-list__title { font-family: var(--f-sous-titre); font-weight: 800; font-size: 1.02rem; margin-bottom: 0.3rem; }
.feature-list p { color: var(--texte-doux); font-size: 0.95rem; }
.mini-steps { display: grid; gap: 0.25rem; counter-reset: none; }
.mini-steps li { display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); gap: 0.75rem; padding-block: 0.75rem; border-top: 1px solid var(--ligne); }
.mini-steps__num { font-family: var(--f-sous-titre); font-weight: 800; font-size: 0.85rem; letter-spacing: 0.12em; color: var(--azur-clair); padding-top: 0.2rem; }
.mini-steps__title { font-family: var(--f-sous-titre); font-weight: 800; font-size: 1.02rem; margin-bottom: 0.2rem; }
.mini-steps p { color: var(--texte-doux); font-size: 0.95rem; }
/* Formules PRISME Content */
.formules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.9rem; align-items: stretch; }
.formule {
  position: relative; display: grid; align-content: start; gap: 0.8rem;
  padding: 1.4rem 1.2rem; border: 1px solid var(--ligne-forte); border-radius: var(--radius); background: var(--grain), rgba(2, 4, 62, 0.6);
  transition: border-color 0.35s var(--ease-out), box-shadow 0.45s var(--ease-out), opacity 0.3s var(--ease-out), transform 0.6s var(--ease-out);
}
.formule:hover { border-color: var(--azur); box-shadow: 0 1.25rem 2.5rem -1.25rem rgba(0, 138, 230, 0.6); }
.formule--ref { border-color: var(--azur); background: var(--grain), linear-gradient(170deg, rgba(13, 14, 149, 0.85), rgba(2, 4, 62, 0.7) 60%); box-shadow: 0 0 0 1px rgba(0, 138, 230, 0.35), 0 1.5rem 3rem -1.5rem rgba(0, 138, 230, 0.7); }
.formule__badge { justify-self: start; padding: 0.3rem 0.7rem 0.2rem; border-radius: 999px; background: var(--azur); color: var(--noir); font-family: var(--f-sous-titre); font-weight: 800; font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; }
.formule__nom { font-family: var(--f-sous-titre); font-weight: 800; font-size: 1.35rem; line-height: 1.1; }
.formule__nom span { display: block; font-size: 0.75rem; letter-spacing: 0.16em; color: var(--azur-clair); }
.formule__points { display: grid; gap: 0.45rem; padding-block: 0.8rem; border-block: 1px solid var(--ligne); }
.formule__points li { font-family: var(--f-sous-titre); font-weight: 800; font-size: 0.98rem; line-height: 1.3; }
.formule__inclus { display: grid; gap: 0.35rem; }
.formule__inclus li { position: relative; padding-left: 1.2rem; color: var(--texte-doux); font-size: 0.92rem; line-height: 1.4; }
.formule__inclus li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 0.65rem; height: 2px; background: var(--azur); }
@media (max-width: 47.99em) {
  .feature-list { grid-template-columns: 1fr; }
  .formules { grid-template-columns: 1fr; }
}

/* ---------- Page Expertises : bandeau et méthode ----------
   Le bandeau et la méthode partagent le même fond bleu animé (aucune jointure).
   Méthode : une ligne lumineuse progresse au fil du défilement et allume les étapes l'une après l'autre. */
.methode-band .media-band { margin-bottom: clamp(3rem, 6vw, 5rem); }
@media (min-width: 64em) { .methode-band .media-band { padding-bottom: 0; } }
.methode { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2.5rem, 5vw, 5.5rem); align-items: start; }
.methode--solo { grid-template-columns: minmax(0, 1fr); }
.methode__media { position: sticky; top: calc(var(--header-h) + 2rem); border-radius: 4px; overflow: hidden; box-shadow: 0 2.5rem 5rem -2.5rem rgba(0, 0, 0, 0.85); }
.methode__img, .methode__img img { display: block; width: 100%; }
.methode__img img { aspect-ratio: 4 / 5; max-height: calc(100vh - var(--header-h) - 4rem); object-fit: cover; }
.methode__content { display: grid; gap: 1.25rem; }
.methode__intro { color: var(--texte-doux); max-width: 52ch; }
.steps-wrap { position: relative; margin-top: 0.75rem; --track-x: 1.125rem; }
.steps__track { position: absolute; left: var(--track-x); top: 1.25rem; bottom: 1.25rem; width: 2px; background: var(--ligne); border-radius: 2px; transform: translateX(-50%); }
.steps__fill {
  position: absolute; inset: 0; border-radius: 2px;
  background: linear-gradient(180deg, var(--azur-clair), var(--azur) 50%, var(--cobalt));
  box-shadow: 0 0 14px rgba(0, 138, 230, 0.85);
  transform-origin: top; transform: scaleY(var(--p, 1));
}
.steps { display: grid; gap: clamp(1.5rem, 3vw, 2.25rem); }
.steps__item { position: relative; display: grid; grid-template-columns: 2.25rem minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.steps__num {
  position: relative; z-index: 1; display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%;
  border: 1.5px solid var(--azur); background: var(--prisme); color: var(--blanc);
  font-family: var(--f-sous-titre); font-weight: 800; font-size: 0.8rem; letter-spacing: 0.04em;
  box-shadow: 0 0 0 6px rgba(0, 138, 230, 0.14), 0 0 22px rgba(0, 138, 230, 0.65);
  transition: background-color 0.45s var(--ease-out), border-color 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out), color 0.45s var(--ease-out), transform 0.45s var(--ease-out);
}
.steps__title { font-family: var(--f-sous-titre); font-weight: 800; font-size: 1.2rem; margin: 0.35rem 0 0.4rem; transition: color 0.45s var(--ease-out); }
.steps__item p { color: var(--texte-doux); max-width: 52ch; transition: color 0.45s var(--ease-out); }
/* Étapes pas encore atteintes (seulement quand site.js suit le défilement) */
.steps-wrap.is-live .steps__item:not(.is-lit) .steps__num { background: var(--nuit); border-color: var(--ligne-forte); color: var(--texte-discret); box-shadow: none; transform: scale(0.88); }
.steps-wrap.is-live .steps__item:not(.is-lit) .steps__title { color: var(--texte-doux); }
.steps-wrap.is-live .steps__item:not(.is-lit) p { color: var(--texte-discret); }
.steps-wrap.is-live .steps__item.is-current .steps__num { transform: scale(1.12); }
@media (max-width: 63.99em) {
  .methode { grid-template-columns: 1fr; }
  .methode__media { position: static; max-width: 30rem; }
  .methode__img img { max-height: none; }
}
@media (max-width: 39.99em) { .methode__media { max-width: none; } }

/* ---------- Moins d'animations (réglage du système) ---------- */
/* ---------- Page Expertises : familles, lien vers l'offre la plus proche du besoin ---------- */
.xpb__offre { color: var(--texte-doux); font-size: 0.98rem; }
.xpb__offre a { color: var(--blanc); font-family: var(--f-sous-titre); font-weight: 800; text-decoration-color: var(--azur); text-underline-offset: 0.25em; white-space: nowrap; }
.xpb__offre a:hover, .xpb__offre a:focus-visible { color: var(--azur-clair); }

/* ---------- Page Expertises : résumés des offres ---------- */
.offer-sums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter); }
.offer-sum { display: grid; grid-template-rows: auto 1fr; border: 1px solid var(--ligne); border-radius: var(--radius); overflow: hidden; background: var(--grain), linear-gradient(170deg, rgba(13, 14, 149, 0.28), rgba(0, 0, 0, 0) 65%); scroll-margin-top: calc(var(--header-h) + 1.5rem); transition: border-color 0.35s var(--ease-out), box-shadow 0.45s var(--ease-out), transform 0.45s var(--ease-out); }
.offer-sum:hover, .offer-sum:focus-within, .offer-sum.is-spot { border-color: rgba(0, 138, 230, 0.75); box-shadow: 0 1.5rem 3rem -1.5rem rgba(0, 138, 230, 0.55); }
.offer-sum:hover, .offer-sum.is-spot { transform: translateY(-4px); }
.offer-sum__media { display: block; overflow: hidden; }
.offer-sum__img, .offer-sum__img img { display: block; width: 100%; }
.offer-sum__img img { aspect-ratio: 4 / 3; object-fit: cover; transition: transform 1.2s var(--ease-out), filter 0.6s var(--ease-out); }
.offer-sum:hover .offer-sum__img img, .offer-sum.is-spot .offer-sum__img img { transform: scale(1.05); filter: brightness(1.08); }
.offer-sum__body { display: grid; align-content: start; gap: 0.75rem; padding: clamp(1.25rem, 2.4vw, 2rem); }
.offer-sum__title { font-family: var(--f-titre); font-weight: var(--w-titre); font-size: var(--t-4); line-height: 1.1; letter-spacing: -0.015em; }
.offer-sum__title a { color: inherit; text-decoration: none; }
.offer-sum__accroche { font-family: var(--f-sous-titre); font-weight: 800; color: var(--azur-clair); }
.offer-sum__text { color: var(--texte-doux); }
.offer-sum .link-more { justify-self: start; margin-top: 0.25rem; }
@media (max-width: 63.99em) { .offer-sums { grid-template-columns: 1fr; max-width: 40rem; } .offer-sum { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); grid-template-rows: none; } .offer-sum__img, .offer-sum__media, .offer-sum__img img { height: 100%; } .offer-sum__img img { aspect-ratio: auto; } }
@media (max-width: 39.99em) { .offer-sum { grid-template-columns: 1fr; } .offer-sum__img img { aspect-ratio: 4 / 3; height: auto; } }

/* ---------- Pages des offres ---------- */
.offer-hero-band { padding-top: clamp(2rem, 5vw, 4rem); }
.offer-hero { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.offer-hero__text { display: grid; gap: 1.1rem; justify-items: start; }
.crumbs { font-size: var(--t-0); color: var(--texte-discret); }
.crumbs a { color: var(--texte-doux); }
.offer-hero__accroche { font-family: var(--f-sous-titre); font-weight: 800; font-size: var(--t-2); color: var(--azur-clair); }
.offer-hero__intro { font-size: 1.12rem; max-width: 56ch; color: #e3e5ee; }
.offer-hero__media { border-radius: 4px; overflow: hidden; box-shadow: 0 2.5rem 5rem -2.5rem rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.08); }
.offer-hero__img, .offer-hero__img img { display: block; width: 100%; }
.offer-hero__img img { aspect-ratio: 4 / 5; max-height: calc(100vh - var(--header-h) - 4rem); object-fit: cover; animation: hero-depth 1.6s var(--ease-out) both; }
@keyframes hero-depth { from { transform: scale(1.12); filter: brightness(0.6); } to { transform: none; filter: none; } }
.offer__materiel { padding: 0.9rem 1.1rem; border-left: 2px solid var(--azur); background: rgba(13, 14, 149, 0.35); border-radius: 0 0.5rem 0.5rem 0; font-family: var(--f-sous-titre); font-weight: 800; }
.quote { display: grid; gap: 0.6rem; justify-items: start; margin-top: 0.5rem; }
.quote-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.quote__note { font-size: var(--t-0); color: var(--texte-doux); max-width: 46ch; }
.formules__plaquette { display: grid; gap: 0.75rem; justify-items: start; padding: 1.25rem 1.4rem; border: 1px solid var(--ligne); border-radius: var(--radius); background: rgba(255, 255, 255, 0.03); }
.formules__plaquette > p:first-child { font-family: var(--f-sous-titre); font-weight: 800; }
.formule__actions .btn { white-space: normal; text-align: center; }
.offer-card__cta { display: inline-flex; align-items: center; gap: 0.85rem; margin-top: 0.5rem; font-family: var(--f-sous-titre); font-weight: 800; font-size: 1rem; }
.offer-card__cta .offer-card__arrow { margin-top: 0; }
.form__context { margin-top: 1rem; padding: 0.7rem 1rem; border-left: 3px solid var(--azur); background: rgba(13, 14, 149, 0.45); border-radius: 0 0.5rem 0.5rem 0; font-family: var(--f-sous-titre); font-weight: 800; }
.offer-page__body { display: grid; gap: clamp(3rem, 6vw, 5rem); }
.offer-page__body > * { max-width: 64rem; }
/* Miniature vidéo avec texte et bouton intégrés : jamais recadrée */
.project-grid--portfolio .project-card--ratio .project-card__media { aspect-ratio: var(--ratio); }
.offer-block { display: grid; gap: 1.25rem; }
.offer-block__title { font-family: var(--f-titre); font-weight: var(--w-titre); font-size: var(--t-4); line-height: 1.1; letter-spacing: -0.015em; }
.offer-block__intro, .offer-block__note { color: var(--texte-doux); max-width: 62ch; }
.offer__conditions { display: grid; gap: 0.5rem; padding-top: 1rem; border-top: 1px solid var(--ligne); }
.offer__conditions p { color: var(--texte-discret); font-size: var(--t-0); max-width: 70ch; }
.formule__actions { display: grid; gap: 0.9rem; justify-items: start; margin-top: auto; padding-top: 0.5rem; }
.formule { grid-template-rows: auto; }
.formule.is-spot { border-color: var(--azur); box-shadow: 0 1.25rem 2.5rem -1.25rem rgba(0, 138, 230, 0.6); }
.chips--lit li { border-color: var(--azur); background: rgba(13, 14, 149, 0.55); }
.offer-cta { border-top: 1px solid var(--ligne); }
.offer-cta__inner { display: grid; gap: 1.25rem; justify-items: start; }
.offer-cta__more { margin-top: 0.5rem; }
.form__prefill { padding: 0.6rem 0.85rem; border-left: 3px solid var(--azur); background: rgba(0, 138, 230, 0.12); border-radius: 0 0.5rem 0.5rem 0; font-size: var(--t-0); color: var(--texte-doux); }
@media (max-width: 63.99em) {
  .offer-hero { grid-template-columns: 1fr; }
  .offer-hero__media { max-width: 30rem; }
  .offer-hero__img img { max-height: none; }
}
@media (max-width: 39.99em) { .offer-hero__media { max-width: none; } .quote, .quote-actions { width: 100%; } .quote-actions { display: grid; } }

/* ---------- Accueil : cartes des offres avec photo ---------- */
.offer-card__link { grid-template-rows: auto auto auto auto 1fr auto; }
.offer-card__media { display: block; margin: calc(-1 * clamp(1.5rem, 2.6vw, 2.25rem)) calc(-1 * clamp(1.5rem, 2.6vw, 2.25rem)) 0.4rem; overflow: hidden; }
.offer-card__img, .offer-card__img img { display: block; width: 100%; }
.offer-card__img img { aspect-ratio: 4 / 3; object-fit: cover; transition: transform 1.2s var(--ease-out), filter 0.6s var(--ease-out); filter: brightness(0.9); }
.offer-card__link:hover .offer-card__img img, .offer-card__link:focus-visible .offer-card__img img, .offer-card.is-spot .offer-card__img img { transform: scale(1.06); filter: none; }
@media (max-width: 55.99em) { .offer-card__link { grid-template-rows: none; } .offer-card__img img { aspect-ratio: 16 / 10; } }

/* ---------- PRISME Cadreur : ouverture pleine largeur ----------
   Ordinateur : la photo occupe la section (sujet à droite), le texte se place dans la zone sombre à gauche ;
   un voile léger à gauche seulement garde le texte lisible sans assombrir le cadreur.
   Mobile et tablette : photo recadrée sur le cadreur (4:5), puis le texte. */
.cad-hero { position: relative; isolation: isolate; overflow: hidden; background: #01021a; }
.cad-hero__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.cad-hero__depth { position: absolute; inset: -40px 0; }
/* Ordinateur : la photo est décalée vers la droite et se fond dans le noir à gauche, pour laisser au texte une zone sombre */
@media (min-width: 64em) { .cad-hero__depth { left: 22%; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22%); mask-image: linear-gradient(90deg, transparent 0, #000 22%); } }
.cad-hero__img, .cad-hero__img img { display: block; width: 100%; height: 100%; }
.cad-hero__img img { object-fit: cover; animation: cad-hero-in 1.8s var(--ease-out) both; }
@keyframes cad-hero-in { from { transform: scale(1.1) translate3d(2%, 0, 0); filter: brightness(0.4); } to { transform: none; filter: none; } }
.cad-hero__veil { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(90deg, rgba(1, 2, 26, 0.78) 0%, rgba(1, 2, 26, 0.45) 32%, rgba(1, 2, 26, 0) 55%), linear-gradient(180deg, rgba(0, 0, 0, 0) 70%, rgba(0, 0, 0, 0.55) 100%); }
.cad-hero__inner { display: flex; align-items: center; min-height: min(88vh, 56vw); padding-block: clamp(3rem, 7vw, 6rem); }
.cad-hero__text { display: grid; gap: 1.1rem; justify-items: start; max-width: 32rem; }
.cad-hero .offer-hero__intro { color: #e3e5ee; }
/* Halo bleu qui respire derrière le texte, dans la continuité de l'éclairage des photos */
.cad-hero::after { content: ""; position: absolute; z-index: -1; left: -15%; top: 10%; width: 60%; height: 80%; pointer-events: none; background: radial-gradient(closest-side, rgba(0, 87, 199, 0.35), rgba(0, 87, 199, 0)); animation: studio-glow 8s ease-in-out infinite alternate; }
@media (max-width: 63.99em) {
  .cad-hero__media { position: relative; inset: auto; aspect-ratio: 4 / 5; max-height: 78vh; }
  .cad-hero__img img { object-position: var(--pos-m, 66% 50%) !important; }
  .cad-hero__veil { background: linear-gradient(180deg, rgba(1, 2, 26, 0) 60%, rgba(1, 2, 26, 0.95) 100%); bottom: auto; height: calc(min(78vh, 125vw)); }
  .cad-hero__inner { min-height: 0; padding-block: 0 clamp(3rem, 8vw, 4rem); margin-top: -3rem; position: relative; }
  .cad-hero::after { top: 45%; left: -30%; width: 100%; height: 60%; }
}
@media (min-width: 40em) and (max-width: 63.99em) { .cad-hero__media { aspect-ratio: 3 / 2; max-height: none; } .cad-hero__veil { height: calc(100vw * 2 / 3); } }

/* ---------- PRISME Cadreur : configurations ---------- */
.offer-page__body > .cfg-block, .offer-page__body > .liaison-block { max-width: none; }
.cfg { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: start; }
.cfg__list { display: grid; border-top: 1px solid var(--ligne); }
.cfg__item { position: relative; border-bottom: 1px solid var(--ligne); padding-bottom: 1.1rem; }
.cfg__item::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: linear-gradient(180deg, var(--azur-clair), var(--azur)); box-shadow: 0 0 12px rgba(0, 138, 230, 0.8); transform: scaleY(0); transform-origin: top; transition: transform 0.5s var(--ease-out); }
.cfg__item.is-active::before { transform: scaleY(1); }
.cfg__tab {
  display: grid; grid-template-columns: 2.25rem minmax(0, 1fr) auto; align-items: center; gap: 0.75rem; width: 100%;
  padding: 1.1rem 0 0.5rem 1rem; background: none; border: 0; text-align: left; cursor: pointer; color: var(--blanc);
}
.cfg__num { font-family: var(--f-sous-titre); font-weight: 800; font-size: 0.85rem; letter-spacing: 0.14em; color: var(--azur-clair); transition: color 0.35s, text-shadow 0.35s; }
.cfg__title { font-family: var(--f-titre); font-weight: var(--w-titre); font-size: var(--t-3); line-height: 1.15; transition: color 0.35s; }
.cfg__text { padding-left: calc(1rem + 2.25rem + 0.75rem); color: var(--texte-doux); max-width: 46ch; }
.cfg__item.is-active .cfg__num, .cfg__tab:hover .cfg__num, .cfg__tab:focus-visible .cfg__num { color: var(--blanc); text-shadow: 0 0 10px rgba(0, 138, 230, 0.95), 0 0 26px rgba(0, 138, 230, 0.6); }
.cfg__item.is-active .arrow-btn { background: var(--prisme); border-color: var(--azur); overflow: hidden; }
.cfg__item.is-active .arrow-btn svg { animation: arrow-loop 0.8s var(--ease-out) both; }
.cfg__tab:focus-visible { outline-offset: -2px; }
.cfg__stage { position: sticky; top: calc(var(--header-h) + 2rem); aspect-ratio: 3 / 2; overflow: hidden; border-radius: 4px; background: radial-gradient(80% 90% at 70% 40%, #0a1a6b, #01021a); box-shadow: 0 2.5rem 5rem -2.5rem rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.08); }
.cfg__slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 0.6s var(--ease-out); }
.cfg__slide.is-active { opacity: 1; z-index: 1; animation: xpl-wipe 0.85s cubic-bezier(0.7, 0, 0.2, 1) both; }
.cfg__slide .cfg__img, .cfg__slide .cfg__img img { display: block; width: 100%; height: 100%; }
.cfg__slide .cfg__img img { object-fit: cover; transform: scale(1.06); transition: transform 1.4s var(--ease-out); }
.cfg__slide.is-active .cfg__img img { transform: scale(1); animation: xpl-zoom 8s var(--ease-out) 1.2s forwards; }
.cfg__slide--entier .cfg__img img { object-fit: contain; }
.cfg__slide::before { content: ""; position: absolute; z-index: 1; top: 0; bottom: 0; left: 0; width: 55%; pointer-events: none; background: linear-gradient(105deg, rgba(0, 138, 230, 0) 20%, rgba(0, 138, 230, 0.22) 45%, rgba(170, 215, 255, 0.18) 52%, rgba(0, 138, 230, 0) 80%); transform: translate3d(-130%, 0, 0); }
.cfg__slide.is-active::before { animation: xpl-sheen 1.1s var(--ease-out) 0.1s both; }
.cfg__slide figcaption, .cfg__thumb figcaption { position: absolute; left: 1rem; bottom: 1rem; z-index: 2; padding: 0.4rem 0.8rem 0.3rem; border-radius: 999px; background: rgba(0, 0, 0, 0.7); font-family: var(--f-sous-titre); font-weight: 800; font-size: 0.85rem; }
.cfg__thumb { display: none; }
@keyframes xpl-zoom { from { transform: scale(1); } to { transform: scale(1.06); } }
@media (max-width: 63.99em) {
  .cfg { grid-template-columns: 1fr; }
  .cfg__stage { display: none; }
  .cfg__thumb { display: block; position: relative; margin: 0.9rem 0 0 1rem; overflow: hidden; border-radius: 4px; background: radial-gradient(80% 90% at 70% 40%, #0a1a6b, #01021a); }
  .cfg__thumb .cfg__img, .cfg__thumb .cfg__img img { display: block; width: 100%; }
  .cfg__thumb .cfg__img img { aspect-ratio: 3 / 2; object-fit: cover; transition: transform 1.3s var(--ease-out), filter 0.6s var(--ease-out); filter: brightness(0.8); }
  .cfg__thumb--entier .cfg__img img { aspect-ratio: 4 / 5; }
  .cfg__item.is-active .cfg__thumb .cfg__img img { transform: scale(1.05); filter: none; }
  .cfg__thumb::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 55%; pointer-events: none; background: linear-gradient(105deg, rgba(0, 138, 230, 0) 20%, rgba(0, 138, 230, 0.24) 45%, rgba(170, 215, 255, 0.2) 52%, rgba(0, 138, 230, 0) 80%); transform: translate3d(-130%, 0, 0); }
  .cfg__item.is-active .cfg__thumb::after { animation: xpl-sheen 1.1s var(--ease-out) 0.05s both; }
  .cfg__text { padding-left: 1rem; }
}

/* ---------- PRISME Cadreur : liaison vidéo et intercoms ---------- */
/* Bloc « Sur le terrain » (PRISME Cadreur) : photo verticale à ses proportions d'origine */
.offer-page__body > .terrain-block { max-width: none; }
.terrain-block { grid-template-columns: 1fr; align-items: end; }
.terrain { margin: 0; width: min(78%, 16rem); }
@media (min-width: 48em) { .terrain { width: min(100%, 18rem); } }
.terrain__frame { overflow: hidden; border-radius: 4px; box-shadow: 0 2.5rem 5rem -2.5rem rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.08); }
.terrain__img, .terrain__img img { display: block; width: 100%; height: auto; }
.terrain__img img { transition: transform 1.4s var(--ease-out), filter 0.8s var(--ease-out); }
.terrain:hover .terrain__img img, .terrain.is-spot .terrain__img img { transform: scale(1.04); filter: brightness(1.08); }
.terrain__caption { margin-top: 0.8rem; display: flex; align-items: center; gap: 0.6rem; font-family: var(--f-sous-titre); font-weight: 800; font-size: 0.85rem; letter-spacing: 0.06em; color: var(--texte-doux); }
.terrain__caption::before { content: ""; width: 1.75rem; height: 2px; background: linear-gradient(90deg, var(--azur), var(--azur-clair)); box-shadow: 0 0 10px rgba(0, 138, 230, 0.8); }
@media (min-width: 48em) {
  .terrain-block { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(1.5rem, 4vw, 4rem); }
  .terrain-block .offer-block__title { align-self: center; }
}
.liaison { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gutter); margin-top: 0.75rem; }
.liaison__item { display: grid; gap: 1.1rem; align-content: start; }
.liaison__item:nth-child(2) { margin-top: clamp(0rem, 6vw, 5rem); }
.liaison__media { overflow: hidden; border-radius: 4px; box-shadow: 0 2.5rem 5rem -2.5rem rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.08); }
.liaison__img, .liaison__img img { display: block; width: 100%; }
.liaison__img img { aspect-ratio: 3 / 2; object-fit: cover; transition: transform 1.4s var(--ease-out), filter 0.8s var(--ease-out); }
.liaison__item:hover .liaison__img img, .liaison__item.is-spot .liaison__img img { transform: scale(1.05); filter: brightness(1.1); }
.liaison__title { font-family: var(--f-titre); font-weight: var(--w-titre); font-size: var(--t-3); margin-bottom: 0.4rem; }
.liaison__text p { color: var(--texte-doux); max-width: 48ch; }
@media (max-width: 47.99em) { .liaison { grid-template-columns: 1fr; gap: 2.5rem; } .liaison__item:nth-child(2) { margin-top: 0; } }
.offer-page--cadreur { background: var(--grain), linear-gradient(180deg, #01021a 0%, var(--noir) 30%); }

@media (prefers-reduced-motion: reduce) {
  .cad-hero__img img, .cad-hero::after, .cfg__slide.is-active, .cfg__slide.is-active .cfg__img img, .cfg__slide.is-active::before, .cfg__item.is-active .cfg__thumb::after, .cfg__item.is-active .arrow-btn svg { animation: none !important; }
  .cfg__slide .cfg__img img { transform: none !important; }
  .offer-hero__img img { animation: none !important; }
  .offer-sum:hover, .offer-sum.is-spot { transform: none; }
  .studio__glow, .studio.is-in .studio__beam::after { animation: none !important; }
  .js .studio:not(.is-in) .studio__beam::before, .js .studio:not(.is-in) .studio__content::before { transform: none !important; }
  .btn::after { display: none; }
  .offer-card__link:hover, .offer-card.is-spot .offer-card__link { transform: none; }
  .terrain:hover .terrain__img img, .terrain.is-spot .terrain__img img { transform: none; }
  .tcard, .tcard:hover, .tcard:has(:focus-visible), .is-spot > .tcard { transform: none; }
  .tcard .player__poster img { transform: none !important; }
  .player--bouton:hover .player__btn, .player--bouton .player__play:focus-visible .player__btn, .is-spot > .tcard .player__btn { transform: translate(-50%, -50%); }
}
