/* Layout: un carrousel de colonnes verticales. La molette fait glisser les colonnes de droite à gauche ; chaque colonne est une fenêtre sur une image plein écran qui, elle, reste immobile. */
:root {
  color-scheme: dark;
  --nuit: #181b1c;
  --blanc: #f6f4f0;
  --gris: #b4b9ba;
  --filet: #3a4144;
  --a-fournir: #e7bb62;
  --sans: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --titres: "Barlow Condensed", "Arial Narrow", sans-serif;
  --col: max(25.625vw, 250px);
  --sortie: cubic-bezier(.2, .8, .2, 1);
  --bascule: cubic-bezier(.76, 0, .24, 1);
}
* { box-sizing: border-box; }
html { overscroll-behavior-y: none; }
body { margin: 0; background: var(--nuit); color: var(--blanc); font-family: var(--sans); font-weight: 300; font-size: 20px; line-height: 1.55; }
h1, h2, p, ul, dl, dd { margin: 0; padding: 0; }
ul { list-style: none; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--blanc); outline-offset: -4px; }
.todo { color: var(--a-fournir); }

header.top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  --haut-logo: 76px;
  display: flex; flex-wrap: wrap; justify-content: flex-start; align-items: center; gap: 2px clamp(22px, 2.4vw, 34px);
  padding: calc(16px + env(safe-area-inset-top, 0px)) max(20px, env(safe-area-inset-right, 0px)) 14px max(20px, env(safe-area-inset-left, 0px));
  pointer-events: none; text-shadow: 0 1px 12px rgba(0,0,0,.6);
}
header.top a { pointer-events: auto; text-decoration: none; }
header.top { transition: transform .45s var(--sortie), opacity .35s ease; }
header.top.cache { transform: translateY(-110%); opacity: 0; }
header.top.cache a { pointer-events: none; }
.logo { display: block; line-height: 0; }
.logo img { display: block; height: var(--haut-logo); width: auto; filter: drop-shadow(0 1px 8px rgba(0,0,0,.45)); }
.top nav { display: flex; align-items: stretch; height: var(--haut-logo); gap: 20px; }
.top nav a { font-size: 18px; font-weight: 600; letter-spacing: .03em; }
/* Page active : un petit trait vertical devant le lien, comme les traits du logo */
.top nav a { position: relative; display: flex; align-items: center; padding-left: 14px; }
.top nav a::before { content: ""; position: absolute; left: 0; top: 0; width: max(3px, calc(var(--haut-logo) * .058)); height: 100%; border-radius: 0; transform-origin: top; background: currentColor; transform: scaleY(0); transition: transform .35s var(--sortie); }
.top nav a[aria-current="page"]::before { transform: scaleY(1); }

/* Carrousel */
.rail { position: relative; }
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: var(--nuit); }
.track { display: flex; height: 100%; width: max-content; will-change: transform; }
/* Sur écran tactile : le carrousel défile au doigt, de gauche à droite */
/* L'accueil ne défile pas verticalement sur mobile : la barre d'adresse de Safari ne bouge plus pendant le glissement */
html.tactile:has(body[data-vue="films"]), html.tactile body[data-vue="films"] { overflow: hidden; overscroll-behavior: none; height: 100%; }
.tactile .stage { overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; scrollbar-width: none; touch-action: pan-x; }
.tactile .stage::-webkit-scrollbar { display: none; }
.tactile .track { will-change: auto; }
.tactile .col { scroll-snap-align: center; }
.tactile .fin { scroll-snap-align: start; }
.col { position: relative; flex: 0 0 var(--col); height: 100%; overflow: hidden; display: block; color: var(--blanc); text-decoration: none; }
.plate { position: absolute; top: 0; left: 0; width: 100vw; height: 100%; background-color: var(--nuit); background-size: cover; background-position: center; will-change: transform; }
.col::after { content: ""; position: absolute; inset: 0; background: rgba(10,12,13,.62); opacity: 0; transition: opacity .45s ease; pointer-events: none; }
.col:hover::after, .col:focus-visible::after, .col.on::after { opacity: 1; }
.cap {
  position: absolute; z-index: 2; left: 50%; bottom: 40px; display: flex; align-items: flex-end; gap: 8px;
  writing-mode: vertical-rl; white-space: nowrap;
  transform: translate(-50%, calc(100% + 70px)) rotate(180deg); transition: transform .7s var(--sortie);
}
.col:hover .cap, .col:focus-visible .cap, .col.on .cap { transform: translate(-50%, 0) rotate(180deg); }
.cap .k { font-size: 18px; font-weight: 300; }
.lauriers { position: absolute; z-index: 2; top: 50%; left: 50%; transform: translate(-50%, -50%); display: grid; gap: 6px; width: min(150px, 62%); transition: opacity .45s ease; color: var(--blanc); pointer-events: none; filter: drop-shadow(0 1px 6px rgba(0,0,0,.7)); }
.lauriers svg { display: block; width: 100%; height: auto; }
/* Sur les onglets, les lauriers flottent doucement, chacun à son rythme */
.lauriers svg { animation: laurier-flotte 4.6s ease-in-out infinite; }
.lauriers svg:nth-child(2n) { animation-duration: 5.4s; animation-delay: -1.3s; }
.lauriers svg:nth-child(3n) { animation-duration: 5s; animation-delay: -2.6s; }
.lauriers svg:nth-child(4n+1) { animation-delay: -.7s; }
@keyframes laurier-flotte { 0%, 100% { translate: 0 0; rotate: 0deg; } 30% { translate: 3px -5px; rotate: 1.2deg; } 65% { translate: -3px -2px; rotate: -1deg; } }
@media (prefers-reduced-motion: reduce) { .lauriers svg { animation: none; } }
/* Au survol, les lauriers restent visibles : ils glissent sur la gauche de la colonne pour laisser la place au titre vertical */
.lauriers { transition: left .7s var(--sortie), width .7s var(--sortie); }
.col:hover .lauriers, .col:focus-visible .lauriers, .col.on .lauriers { left: calc(25% - 18px); width: min(130px, calc(50% - 52px)); }
.lauriers-ligne { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 18px; color: var(--blanc); filter: drop-shadow(0 1px 6px rgba(0,0,0,.7)); animation: monte .9s var(--sortie) .18s both; }
.lauriers-ligne svg { display: block; width: clamp(120px, 11vw, 160px); height: auto; }
/* Onglet « Qui suis-je ? » : un grand point d'interrogation à la place de la photo */
.qsj-col .plate { background-size: auto 100%; background-position: 50% 50%; background-repeat: no-repeat; }
.qsj-col .plate::after { content: ""; position: absolute; inset: 0; background: rgba(10,12,13,.55); opacity: 0; transition: opacity .5s ease; }
.qsj-col:hover .plate::after, .qsj-col:focus-visible .plate::after, .qsj-col.on .plate::after { opacity: 1; }
/* Le « ? » a la taille du texte « Qui suis-je » : il vole au hasard sur l'onglet, et vient compléter la question au survol */
.qsj-col .interro { position: absolute; z-index: 3; left: 0; top: 0; font-family: var(--titres); font-weight: 600; font-size: clamp(28px, 4.6vh, 42px); line-height: 1; color: var(--blanc); pointer-events: none; text-shadow: 0 2px 14px rgba(0,0,0,.6); will-change: transform; }
/* À l'arrivée, « Qui suis-je ? » s'affiche d'abord en entier, puis le « ? » s'envole */
.qsj-col.annonce .cap { transform: translate(-50%, 0) rotate(180deg); }
.qsj-col.annonce .ident { opacity: 0; transform: translateY(14px); }
.qsj-col.annonce .interro, .qsj-col:hover .interro, .qsj-col:focus-visible .interro, .qsj-col.on .interro { color: rgba(246,244,240,.72); text-shadow: none; }
/* Onglet du portrait : le nom reste affiché, et laisse place à « Qui suis-je ? » au survol */
.ident { position: absolute; z-index: 2; left: 0; right: 0; bottom: 40px; margin: 0; padding: 0 22px; display: grid; gap: 4px; font-size: clamp(24px, 3.6vh, 34px); font-weight: 500; line-height: 1.1; letter-spacing: -.01em; color: var(--blanc); text-shadow: 0 1px 14px rgba(0,0,0,.65); pointer-events: none; transition: opacity .45s ease, transform .6s var(--sortie); }
.ident span { font-size: clamp(14px, 1.9vh, 17px); letter-spacing: .02em; color: rgba(246,244,240,.85); }
.col:hover .ident, .col:focus-visible .ident, .col.on .ident { opacity: 0; transform: translateY(14px); }
.cap .t { font-size: clamp(26px, 4.4vh, 40px); font-weight: 500; line-height: 1.1; letter-spacing: -.01em; color: rgba(246,244,240,.72); }

.fin { flex: 0 0 100vw; display: grid; place-items: center; text-align: center; }
.fin::after { display: none; }
.fin .voile { position: absolute; inset: 0; background: rgba(10,12,13,.45); }
.fin .in { position: relative; display: grid; gap: 22px; justify-items: center; max-width: 36em; min-width: 0; padding-inline: 20px; }
.fin h2 { font-weight: 500; font-size: clamp(30px, 4.6vw, 46px); line-height: 1.12; letter-spacing: -.015em; text-wrap: balance; }
.fin .kine { font-size: clamp(42px, 7.4vw, 104px); line-height: 1.02; letter-spacing: -.03em; }
.fin .in:has(.kine) { max-width: min(94vw, 1200px); }
.kine .mot { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .1em; white-space: nowrap; }
.kine .mot > span:not(.l):not(.points) { display: inline-block; transform: translateY(108%); transition: transform .9s var(--sortie) calc(var(--i) * 110ms); }
.kine .cle { overflow: visible; font-family: var(--sans); font-style: italic; font-weight: 500; }
.kine .l { display: inline-block; opacity: 0; transform: translateY(.55em) rotate(10deg); transition: transform .75s cubic-bezier(.34, 1.56, .64, 1) calc(320ms + var(--j) * 48ms), opacity .35s ease calc(320ms + var(--j) * 48ms); }
.kine .points span { display: inline-block; opacity: 0; }
.fin.joue .kine .mot > span:not(.l):not(.points) { transform: none; }
.fin.joue .kine .l { opacity: 1; transform: none; }
.fin.joue .kine .points span { animation: respire 1.8s ease-in-out calc(1.05s + var(--k) * .22s) infinite; }
@keyframes respire { 0%, 100% { opacity: .15; } 35% { opacity: 1; } }
.fin .appel { opacity: 0; transform: translateY(14px); transition: opacity .6s ease 1.1s, transform .6s var(--sortie) 1.1s; }
.fin.joue .appel { opacity: 1; transform: none; }
.btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.btn { display: inline-block; padding: 9px 18px; border-radius: 6px; background: var(--blanc); color: var(--nuit); font-size: 17px; font-weight: 500; letter-spacing: .02em; text-decoration: none; }
.btn.alt { background: var(--nuit); color: var(--blanc); }
.btn:hover { opacity: .85; }

/* Pages */
.fixe { position: fixed; inset: 0; background-color: var(--nuit); background-size: cover; background-position: center; }
.ecran { position: relative; height: 100vh; height: 100svh; }
.ecran.court { height: clamp(230px, 34vh, 330px); }
.ecran::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,12,13,.6), rgba(10,12,13,0) 55%); }
.titre { position: absolute; z-index: 1; left: max(20px, env(safe-area-inset-left, 0px)); right: max(20px, env(safe-area-inset-right, 0px)); bottom: 34px; display: grid; gap: 2px; overflow: hidden; }
.titre .k { font-size: 20px; font-weight: 300; animation: monte .8s var(--sortie) .1s both; }
.titre h1 { font-size: clamp(36px, 7vw, 84px); font-weight: 500; line-height: 1.05; letter-spacing: -.02em; text-wrap: balance; animation: monte .9s var(--sortie) .18s both; }
@keyframes monte { from { transform: translateY(110%); } to { transform: none; } }
.sheet { position: relative; background: var(--nuit); padding-block: clamp(40px, 6vw, 76px) clamp(56px, 8vw, 104px); padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.sheet .in { max-width: 1040px; margin-inline: auto; display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 36px clamp(32px, 6vw, 80px); }
.flow { display: grid; gap: 18px; align-content: start; min-width: 0; max-width: 36em; }
.flow .lead { font-size: clamp(23px, 2.6vw, 29px); line-height: 1.4; font-weight: 300; }
.portrait { display: block; width: 100%; max-width: 380px; height: auto; border-radius: 2px; }
.cote { display: grid; gap: 28px; align-content: start; min-width: 0; }
.lecteur { margin-bottom: clamp(8px, 2vw, 24px); }
.jouer { position: relative; display: block; width: 100%; max-width: 100%; aspect-ratio: 16 / 9; border: 0; padding: 0; cursor: pointer; background-color: #000; background-size: cover; background-position: center; color: var(--blanc); border-radius: 2px; overflow: hidden; }
.jouer::after { content: ""; position: absolute; inset: 0; background: rgba(10,12,13,.35); transition: background .3s; }
.jouer:hover::after { background: rgba(10,12,13,.15); }
.jouer .rond { position: absolute; z-index: 1; top: 50%; left: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; display: grid; place-items: center; border-radius: 50%; border: 2px solid var(--blanc); transition: transform .3s var(--sortie); }
.jouer:hover .rond { transform: scale(1.08); }
.jouer .rond svg { margin-left: 4px; }
.jouer .leg { position: absolute; z-index: 1; left: 18px; bottom: 14px; font-size: 15px; font-weight: 300; letter-spacing: .02em; }
.lecteur iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; background: #000; }
.vimeo-lien { margin-top: 10px; font-size: 14px; color: var(--gris); }
.site-film { font-size: 16px; }
.lien-affiche { display: block; transition: opacity .25s; }
.lien-affiche:hover { opacity: .85; }
.affiche { display: block; width: 100%; max-width: 320px; height: auto; border-radius: 2px; }
.fiche { display: grid; gap: 12px; align-content: start; min-width: 0; font-size: 16px; }
.fiche dt { color: var(--gris); font-size: 14px; }
.fiche dd { line-height: 1.4; }
.full { grid-column: 1 / -1; min-width: 0; }
.dates li { display: grid; grid-template-columns: 11em minmax(0, 1fr); gap: 16px; padding-block: 10px; border-top: 1px solid var(--filet); font-size: 16px; line-height: 1.4; }
.dates li span:first-child { color: var(--gris); font-variant-numeric: tabular-nums; }
.dates b { font-weight: 400; }
.sub { font-size: 16px; font-weight: 400; margin-bottom: 12px; }
.flow .sub { margin: 14px 0 -10px; }
.flow .sub:first-child { margin-top: 0; }
.next { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; border-top: 1px solid var(--filet); padding-top: 16px; font-size: 16px; font-weight: 300; }
.next a { text-decoration: none; }
.next a:hover { text-decoration: underline; text-underline-offset: 4px; }
.reseau { display: inline-flex; color: var(--blanc); transition: opacity .2s; }
.reseau:hover { opacity: .7; }
.reseaux { display: flex; align-items: center; gap: 18px; margin-top: 22px; }
.identite { font-size: 16px; line-height: 1.5; color: var(--gris); }
.identite a { color: var(--blanc); }
.joindre { margin-top: 14px; font-size: 19px; }
.contact-in { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr) !important; grid-template-areas: "photo texte" "infos infos"; align-items: start; row-gap: 22px !important; }
.contact-in .photo { grid-area: photo; position: relative; z-index: 1; min-width: 0; }
.contact-in .photo .portrait { max-width: none; width: 100%; }
.contact-in .gauche { grid-area: infos; }
.contact-in .droite { grid-area: texte; position: relative; z-index: 2; margin-left: clamp(-240px, -16vw, -90px); padding-top: clamp(300px, 27.5vw, 360px); will-change: transform; }
.recit { max-width: 34em; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.6; color: var(--blanc); text-shadow: 0 1px 14px rgba(10,12,13,.8); }
.qsj { padding-left: clamp(40px, 6vw, 90px); margin-bottom: 10px; font-size: clamp(18px, 1.7vw, 22px); font-weight: 400; text-shadow: 0 1px 14px rgba(10,12,13,.8); animation: recit .9s ease .1s both; }
.recit.avant { margin-bottom: clamp(18px, 2vw, 28px); padding-left: clamp(40px, 6vw, 90px); animation: recit .9s ease .2s both; }
.recit.milieu { margin-bottom: clamp(18px, 2vw, 28px); padding-left: clamp(40px, 6vw, 90px); animation: recit .9s ease .5s both; }
.nom-flotte { position: absolute; z-index: 3; top: clamp(16px, 2vw, 30px); left: clamp(14px, 1.6vw, 24px); max-width: 92%; will-change: transform; }
.nom-flotte .flotteur { animation-duration: 8s; animation-delay: 1.2s; }
.nom-flotte .nom { font-size: clamp(26px, 2.8vw, 40px); font-weight: 500; line-height: 1.05; letter-spacing: -.015em; text-shadow: 0 2px 18px rgba(10,12,13,.75), 0 1px 3px rgba(10,12,13,.6); animation: monte-doux .9s var(--sortie) .15s both; }
.nom-flotte .identite { margin-top: 6px; font-size: clamp(14px, 1.2vw, 17px); color: var(--blanc); text-shadow: 0 1px 12px rgba(10,12,13,.85); animation: monte-doux .9s var(--sortie) .4s both; }
@keyframes monte-doux { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.decouvrir { margin-top: clamp(26px, 3vw, 40px); justify-content: flex-start; }
.gauche .decouvrir { margin-top: clamp(48px, 7vw, 110px); align-items: center; gap: 12px 14px; }
.decouvrir .corporate { padding: 7.5px 18px; line-height: 1.55; font-weight: 500; letter-spacing: .02em; }
.decouvrir .corporate .fl { line-height: 1; }
.decouvrir .corporate b { font-weight: 700; }
.decouvrir .btn.alt { box-shadow: inset 0 0 0 1.5px var(--blanc); }
.decouvrir .btn span { display: inline-block; margin-left: 4px; transition: transform .25s var(--sortie); }
.decouvrir .btn:hover span { transform: translateX(5px); }
.recit.apres { margin-top: clamp(22px, 2.6vw, 36px); animation: recit 1s ease 2.2s both; }
@keyframes recit { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.contact-in .manifeste { text-shadow: 0 2px 22px rgba(10,12,13,.75), 0 1px 3px rgba(10,12,13,.6); }
.flotteur { animation: flotte 7s ease-in-out .6s infinite; }
.flotteur > [data-prof] { will-change: translate; }
@keyframes flotte { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
.gauche { display: grid; gap: 14px; align-content: start; min-width: 0; }
.nom { font-size: 20px; font-weight: 400; line-height: 1.2; }
.gauche .identite { margin-top: -10px; }
/* Lien vers le travail corporate : un bouton contouré qui se remplit au survol */
.corporate { display: inline-flex; align-items: center; gap: 12px; justify-self: start; max-width: 100%; padding: 12px 18px; border: 1.5px solid var(--blanc); border-radius: 6px; color: var(--blanc); font-size: 17px; font-weight: 400; line-height: 1.35; text-decoration: none; transition: background .25s ease, color .25s ease; }
.corporate b { font-weight: 400; }
.corporate .fl { font-size: 20px; transition: transform .25s var(--sortie); }
.corporate:hover, .corporate:focus-visible { background: var(--blanc); color: var(--nuit); }
.corporate:hover .fl, .corporate:focus-visible .fl { transform: translateX(5px); }
.gauche .joindre { margin-top: 10px; font-size: 17px; }
.gauche .adresse { font-size: clamp(18px, 1.8vw, 22px); }
.droite { min-width: 0; padding-top: clamp(0px, 4vw, 48px); }
.manifeste { font-size: clamp(27px, 3.2vw, 44px); font-weight: 300; line-height: 1.18; letter-spacing: -.02em; }
.manifeste .m { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .08em; }
.manifeste .m > span { display: inline-block; animation: mot .8s var(--sortie) calc(1.1s + var(--i) * 70ms) both; }
@keyframes mot { from { transform: translateY(105%); opacity: 0; } to { transform: none; opacity: 1; } }
.adresse { font-size: clamp(20px, 2.6vw, 26px); font-weight: 300; overflow-wrap: anywhere; }
.adresse a { text-decoration: none; }
.adresse a:hover { text-decoration: underline; text-underline-offset: 5px; }
.mail { font-size: clamp(24px, 4vw, 38px); font-weight: 300; line-height: 1.2; overflow-wrap: anywhere; }
footer { position: relative; background: var(--nuit); padding-block: 20px; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); color: var(--gris); font-size: 14px; }

/* Transitions */
.ouvre { position: fixed; inset: 0; z-index: 30; background-size: cover; background-position: center; transition: clip-path .8s var(--bascule); }
.ouvre-img { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform .8s var(--bascule); }
.ouvre-voile { position: absolute; inset: 0; background: rgba(10,12,13,.62); transition: opacity .8s ease; }
/* Transition entre les pages : un fondu au noir, comme une fin de plan */
.volets { position: fixed; inset: 0; z-index: 30; pointer-events: none; background: var(--nuit); opacity: 0; transition: opacity .45s ease; }
.volets i { display: none; }
.volets.ferme { opacity: 1; }
.volets.rouvre { opacity: 0; transition-duration: .6s; }

/* Retour à l'accueil : une flèche dans un cercle, qui flotte et suit un peu la souris et le défilement */
.retour { position: fixed; z-index: 39; right: max(24px, env(safe-area-inset-right, 0px)); bottom: calc(26px + env(safe-area-inset-bottom, 0px)); width: 58px; height: 58px; color: var(--blanc); will-change: transform; }
.retour .bulle { display: grid; place-items: center; width: 100%; height: 100%; border: 1.5px solid rgba(246,244,240,.8); border-radius: 50%; background: rgba(24,27,28,.35); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); box-shadow: 0 8px 28px rgba(0,0,0,.35); animation: retour-entre .9s var(--sortie) .8s both, flotte-retour 5.5s ease-in-out 1.7s infinite; transition: background .3s ease, color .3s ease, scale .35s var(--sortie); }
.retour svg { transition: transform .35s var(--sortie); }
.retour:hover .bulle, .retour:focus-visible .bulle { background: var(--blanc); color: var(--nuit); scale: 1.08; }
.retour:hover svg, .retour:focus-visible svg { transform: translateY(-3px); }
body[data-vue="films"] .retour, body:not([data-vue]) .retour { display: none; }
@keyframes retour-entre { from { opacity: 0; scale: .6; } to { opacity: 1; scale: 1; } }
@keyframes flotte-retour { 0%, 100% { transform: translate(0, 0) rotate(0deg); } 33% { transform: translate(-3px, -8px) rotate(-2deg); } 66% { transform: translate(2px, -4px) rotate(1.5deg); } }
/* Pendant le chargement d'une page atteinte par une transition, l'écran reste noir */
html.arrivee::after { content: ""; position: fixed; inset: 0; z-index: 100; background: var(--nuit); }
/* Lecteur vidéo par-dessus la page */
.lecteur-modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: max(64px, 7vh) max(16px, 4vw); background: rgba(10,12,13,.9); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); opacity: 0; transition: opacity .4s ease; cursor: pointer; }
.lecteur-modal.on { opacity: 1; }
.lecteur-cadre { width: min(100%, calc((100vh - 140px) * 16 / 9)); aspect-ratio: 16 / 9; background: #000; box-shadow: 0 30px 80px rgba(0,0,0,.6); transform: scale(.94) translateY(14px); transition: transform .55s var(--sortie); cursor: default; }
.lecteur-modal.on .lecteur-cadre { transform: none; }
.lecteur-cadre iframe { display: block; width: 100%; height: 100%; border: 0; }
.lecteur-fermer { position: absolute; top: max(16px, env(safe-area-inset-top, 0px)); right: max(16px, env(safe-area-inset-right, 0px)); width: 48px; height: 48px; display: grid; place-items: center; border: 1.5px solid rgba(246,244,240,.8); border-radius: 50%; background: transparent; color: var(--blanc); cursor: pointer; transition: background .25s ease, color .25s ease, transform .35s var(--sortie); }
.lecteur-fermer:hover, .lecteur-fermer:focus-visible { background: var(--blanc); color: var(--nuit); transform: rotate(90deg); }
html.lecteur-ouvert { overflow: hidden; }
html.lecteur-ouvert .retour { opacity: 0; pointer-events: none; }
/* Question « Voulez-vous en savoir plus sur moi ? » */
.question { margin-top: clamp(30px, 3.4vw, 48px); font-size: clamp(19px, 1.8vw, 23px); font-weight: 500; }
.question .choix { display: flex; gap: 14px; margin-top: 14px; }
.question .non { transition: transform .35s var(--sortie), background .25s ease, color .25s ease; box-shadow: inset 0 0 0 1.5px var(--blanc); }
.question .btn { border: 0; cursor: pointer; font-family: inherit; min-width: 86px; }
/* Apparition après le texte : les mots montent un à un, puis les deux boutons arrivent */
.q-texte .m { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .08em; }
.q-texte .m > span { display: inline-block; animation: mot .7s var(--sortie) calc(3.3s + var(--i) * 90ms) both; }
.question .choix .btn { animation: arrive-btn .7s var(--sortie) 4s backwards; }
.question .choix .non { animation-delay: 4.15s; }
@keyframes arrive-btn { from { opacity: 0; transform: translateY(14px) scale(.9); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .q-texte .m > span, .question .choix .btn { animation: none; } }
.question .indice { min-height: 1.4em; margin-top: 10px; font-size: 16px; font-weight: 300; color: var(--gris); }
.question .oui.appel { animation: appel .6s var(--sortie); }
@keyframes appel { 0%, 100% { transform: none; } 30% { transform: scale(1.12); } 60% { transform: scale(.97); } }
/* Fenêtre de biographie */
.bio-modal { cursor: default; overflow-y: auto; align-items: start; }
.bio-cadre { position: relative; width: min(100%, 680px); margin: auto; padding: clamp(28px, 4vw, 52px); background: var(--nuit); border: 1px solid var(--filet); box-shadow: 0 30px 80px rgba(0,0,0,.6); transform: scale(.96) translateY(16px); transition: transform .55s var(--sortie); font-size: clamp(17px, 1.5vw, 19px); line-height: 1.6; }
.bio-modal.on .bio-cadre { transform: none; }
.bio-cadre .bio-sur { font-size: 15px; color: var(--gris); letter-spacing: .08em; text-transform: uppercase; }
.bio-cadre h2 { margin: 4px 0 18px; font-size: clamp(32px, 3.6vw, 46px); font-weight: 600; line-height: 1.05; }
.bio-cadre p + p { margin-top: 14px; }
.bio-cadre .bio-suite { margin-top: 30px; }
.bio-suite .btn span { display: inline-block; margin-left: 4px; transition: transform .25s var(--sortie); }
.bio-suite .btn:hover span { transform: translateX(5px); }
/* Retour à l'accueil en glissement */
.glisse { position: fixed; inset: 0; z-index: 45; background: var(--nuit); transform: translateX(100%); transition: transform .68s var(--bascule); pointer-events: none; }
.glisse.couvre { transform: none; }
.glisse.sort { transform: translateX(-100%); transition-duration: .85s; }
html.part #vue { transform: translateX(-14vw); opacity: .5; transition: transform .68s var(--bascule), opacity .68s ease; }
html.entree .track > .col { animation: col-entre 1.15s var(--sortie) calc(.08s + var(--n, 0) * 70ms) backwards; }
html.entree .track > .col > .plate { animation: plate-entre 1.4s var(--sortie) calc(.08s + var(--n, 0) * 70ms) backwards; }
@keyframes col-entre { from { transform: translateX(34vw); } to { transform: none; } }
/* Après le choix de la langue : les onglets apparaissent l'un après l'autre, de gauche à droite */
/* Tous les onglets partent empilés à gauche et se déplient vers la droite jusqu'à leur place */
html.ordre .track > .col { z-index: var(--z, 0); box-shadow: -18px 0 40px rgba(0,0,0,.45); animation: col-deplie 2.3s cubic-bezier(.45,.05,.15,1) calc(.1s + var(--n, 0) * 45ms) backwards; }
html.ordre .track > .col > .plate { animation: plate-ordre 2.6s var(--sortie) backwards; }
@keyframes col-deplie { from { transform: translateX(calc(-1 * var(--x, 0px))); } to { transform: none; } }
@keyframes plate-ordre { from { scale: 1.08; } to { scale: 1; } }
@keyframes plate-entre { from { translate: -18vw 0; scale: 1.08; } to { translate: 0 0; scale: 1; } }
html.attente body { visibility: hidden; }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.pill { position: fixed; z-index: 41; right: calc(14px + env(safe-area-inset-right, 0px)); bottom: calc(14px + env(safe-area-inset-bottom, 0px)); background: var(--blanc); color: var(--nuit); border-radius: 7px; padding: 6px 11px; font-size: 13px; font-weight: 400; }

/* Titres : Barlow Condensed en SemiBold, plus affirmée que le texte */
.titre h1, .cap .t, .fin h2, .ident, .nom-flotte .nom { font-family: var(--titres); font-weight: 600; letter-spacing: 0; }
.titre h1 { font-size: clamp(40px, 7.4vw, 92px); line-height: 1.02; }
.cap .t { font-size: clamp(28px, 4.6vh, 42px); }
.fin .kine { font-size: clamp(44px, 7.6vw, 108px); }
.kine .cle { font-weight: 600; }
.ident { font-size: clamp(26px, 3.8vh, 36px); }
.nom-flotte .nom { font-size: clamp(28px, 3vw, 42px); }
@media (max-width: 760px) {
  :root { --col: 62vw; }
  body { font-size: 18px; }
  .sheet .in, .contact-in { grid-template-columns: minmax(0, 1fr) !important; }
  .contact-in { grid-template-areas: "photo" "texte" "infos"; }
  .contact-in .droite { margin-left: 0; margin-top: calc(-34vw + 104px); padding-top: 0; padding-left: 18vw; }
  .contact-in .photo .portrait { width: 82%; }
  .qsj, .recit.avant, .recit.milieu { padding-left: 0; }
  .nom-flotte { top: 14px; left: 14px; }
  .dates li { grid-template-columns: minmax(0, 1fr); gap: 0; }
  header.top { --haut-logo: 58px; }
  .lauriers-ligne { gap: 4px 10px; }
  .lauriers-ligne svg { width: calc(50% - 5px); max-width: 150px; }
  .top nav { gap: 12px; }
  .top nav a { font-size: 16px; padding-left: 11px; }
  .cap { bottom: 60px; }
}
@media (prefers-reduced-motion: reduce) {
  .cap, .col::after, .ouvre, .volets i, header.top { transition: none; }
  .volets i { transition-delay: 0s !important; }
  .lauriers-ligne, .titre .k, .titre h1, .manifeste .m > span, .contact-in .manifeste, .recit, .qsj, .flotteur, .retour .bulle { animation: none; }
  .kine .mot > span:not(.l):not(.points), .kine .l, .fin .appel { transform: none !important; opacity: 1 !important; transition: none !important; }
  .kine .points span { opacity: 1 !important; animation: none !important; }
}
/* Choix de la langue : lien discret en haut à droite, et écran d'accueil à la première visite */
.top .langue { margin-left: auto; align-self: flex-start; font-size: 15px; font-weight: 600; letter-spacing: .1em; padding: 6px 10px 5px; border: 1px solid rgba(246,244,240,.55); line-height: 1; transition: background .25s ease, color .25s ease; }
.top .langue:hover { background: var(--blanc); color: #000; text-shadow: none; }
#choix-langue { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; text-align: center; color: var(--blanc); background: #0b0c0d; transition: opacity .7s ease .05s; }
#choix-langue .dedans { position: relative; padding: 24px 16px; }
#choix-langue img { display: block; height: clamp(130px, 24vh, 200px); width: auto; margin: 0 auto; animation: logoMonte 1.3s cubic-bezier(.7,0,.2,1) .2s both; }
#choix-langue.deja img { animation: none; }
/* Écran du logo écrit dans la page : affiché dès le premier instant quand on arrive d'un changement de langue ou d'un clic sur le logo */
#choix-langue.statique { display: none; }
html.noir { background: #0b0c0d; }
html.noir #choix-langue.statique { display: grid; }
#choix-langue.fondu { animation: fondNoir .7s ease both; }
#choix-langue.vite .boutons { animation-delay: .9s; }
@keyframes fondNoir { from { opacity: 0; } to { opacity: 1; } }
#choix-langue .boutons { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 46px; animation: choixEntre .9s 1.25s var(--sortie) both; transition: opacity .35s ease, transform .35s ease; }
#choix-langue button { font: inherit; font-family: var(--titres); font-weight: 600; font-size: 17px; letter-spacing: .14em; text-transform: uppercase; color: var(--blanc); background: transparent; border: 1px solid rgba(246,244,240,.6); padding: 12px 26px 11px; min-width: 150px; cursor: pointer; transition: background .25s ease, color .25s ease; }
#choix-langue button:hover, #choix-langue button:focus-visible { background: var(--blanc); color: #000; }
#choix-langue.part { opacity: 0; pointer-events: none; }
#choix-langue.part .boutons, #choix-langue .boutons.sort { opacity: 0; transform: translateY(10px); animation: none; }
/* Le logo quitte le centre et va se poser à sa place, en haut à gauche */
.logo-vol { position: fixed; z-index: 95; display: block; transform-origin: 0 0; pointer-events: none; filter: drop-shadow(0 1px 8px rgba(0,0,0,.45)); transition: transform .95s cubic-bezier(.45,0,.15,1); }
html.choix .top .logo { visibility: hidden; }
html.choix .top nav, html.choix .top .langue { opacity: 0; }
.top nav, .top .langue { transition: opacity .6s ease; }
@keyframes logoMonte { from { clip-path: inset(100% 0 0 0); transform: translateY(14px); } to { clip-path: inset(0 0 0 0); transform: none; } }
@keyframes choixEntre { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (max-width: 700px) { .top .langue { position: absolute; top: calc(16px + env(safe-area-inset-top, 0px)); right: max(10px, env(safe-area-inset-right, 0px)); font-size: 12px; letter-spacing: .08em; padding: 4px 6px 3px; } #choix-langue button { min-width: 128px; padding: 12px 18px 11px; font-size: 15px; } }
@media (prefers-reduced-motion: reduce) { #choix-langue, #choix-langue *, .logo-vol { animation: none !important; transition-duration: .01s !important; } }
