/* ============================================================
   PL_RAW - styles du site
   Couleurs, typos, espacements : design system PL_RAW (tokens).
   Thème Nuit par défaut, Jour via <html data-theme="jour">.
   ============================================================ */

:root, [data-theme="nuit"] {
  --fond: #0b0a09;
  --fond-eleve: #15130f;
  --fond-creux: #050404;
  --ligne: #2b2723;
  --encre: #f3eee6;
  --encre-2: #a59c90;
  --sodium: #ffae2b;
  --sodium-texte: #ffae2b;
  --sur-sodium: #140f08;
  --halo: rgba(255, 174, 43, 0.32);
  --fumigene: #ff5a36;
  --scene: #0b0a09;
  --voile: rgba(5, 4, 3, 0.78);
  --encre-photo: #f5f1ea;
  --focus: var(--sodium-texte);
  --lueur: 0 0 48px 0 rgba(255, 174, 43, 0.32);
  --barre-fond: rgba(11, 10, 9, 0.78);
  color-scheme: dark;
}
[data-theme="jour"] {
  --fond: #ecebe8;
  --fond-eleve: #f7f6f3;
  --fond-creux: #dedcd7;
  --ligne: #cfccc5;
  --encre: #12100e;
  --encre-2: #5a554d;
  --sodium-texte: #8a4f00;
  --halo: rgba(245, 154, 11, 0.22);
  --fumigene: #c2310f;
  --lueur: 0 0 32px 0 rgba(245, 154, 11, 0.22);
  --barre-fond: rgba(236, 235, 232, 0.82);
  color-scheme: light;
}
:root {
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-6: 24px; --space-8: 32px;
  --space-12: 48px; --space-16: 64px; --space-24: 96px; --space-32: 128px;
  --radius-1: 2px; --radius-pill: 999px;
  --duree-instant: 120ms; --duree-courte: 320ms; --duree-scene: 900ms; --duree-generique: 2400ms;
  --ease-obturateur: cubic-bezier(0.83, 0, 0.17, 1);
  --ease-mise-au-point: cubic-bezier(0.16, 1, 0.3, 1);
  --font-display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --font-sans: Archivo, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Bodoni Moda", Didot, "Times New Roman", serif;
  --font-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --gouttiere: max(16px, env(safe-area-inset-left, 0px));
  --gouttiere-d: max(16px, env(safe-area-inset-right, 0px));
  --largeur: 1440px;
  --barre-h: 72px;
  --d0: 0s; /* retard du hero : 2,2 s quand le générique joue */
}
@media (min-width: 900px) {
  :root { --gouttiere: max(32px, env(safe-area-inset-left, 0px)); --gouttiere-d: max(32px, env(safe-area-inset-right, 0px)); }
}
html.generique { --d0: 2.2s; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.bloque { overflow: hidden; }
body {
  margin: 0; min-height: 100vh; background: var(--fond); color: var(--encre);
  font-family: var(--font-sans); font-size: 16px; line-height: 26px; -webkit-font-smoothing: antialiased;
  transition: background var(--duree-courte), color var(--duree-courte);
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
svg { flex: none; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
::selection { background: var(--sodium); color: var(--sur-sodium); }
.cadre { width: 100%; max-width: var(--largeur); margin: 0 auto; padding-left: var(--gouttiere); padding-right: var(--gouttiere-d); }
.caps { text-transform: uppercase; }
.surtitre { font-family: var(--font-sans); font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; }
.cine { font-family: var(--font-sans); font-size: 13px; line-height: 20px; font-weight: 300; letter-spacing: 0.42em; text-transform: uppercase; }
.exif { font-family: var(--font-mono); font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: 0.04em; color: var(--encre-2); }
.emotion { font-family: var(--font-serif); font-style: italic; font-weight: 400; text-transform: none; letter-spacing: 0; }
.lien-evitement { position: absolute; left: -9999px; top: 0; z-index: 300; background: var(--sodium); color: var(--sur-sodium); padding: 12px 16px; }
.lien-evitement:focus { left: 16px; top: calc(16px + env(safe-area-inset-top, 0px)); }
.visuellement-cache { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Logo ---------- */
.plr-logo {
  display: inline-flex; align-items: baseline; font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
  font-size: 28px; line-height: 0.85; letter-spacing: 0.01em; color: inherit; text-decoration: none; white-space: nowrap;
}
.plr-logo__trait {
  display: inline-block; width: 0.62em; height: 0.11em; margin: 0 0.06em; background: var(--sodium);
  box-shadow: 0 0 0.5em var(--halo); transform: translateY(0.02em); transform-origin: left center;
}
a.plr-logo:hover .plr-logo__trait { animation: plr-trait 0.6s var(--ease-obturateur); }

/* ---------- Boutons ---------- */
.plr-btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 48px; padding: 0 var(--space-6); border-radius: 0; border: 1px solid var(--encre);
  background: transparent; color: var(--encre); cursor: pointer; text-decoration: none; white-space: nowrap;
  font-family: var(--font-sans); font-size: 14px; line-height: 16px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  transition: background var(--duree-instant), color var(--duree-instant), box-shadow var(--duree-courte), transform var(--duree-instant);
}
.plr-btn:hover { background: var(--encre); color: var(--fond); }
.plr-btn:active { transform: scale(0.97); }
/* Le remplissage des boutons à contour monte comme un rideau */
.plr-btn:not(.plr-btn--primaire):not(.plr-btn--lien) { background-image: linear-gradient(var(--encre), var(--encre)); background-repeat: no-repeat; background-size: 100% 0; background-position: bottom; transition: background-size var(--duree-courte) var(--ease-mise-au-point), color var(--duree-courte), transform var(--duree-instant); }
.plr-btn:not(.plr-btn--primaire):not(.plr-btn--lien):hover { background-color: transparent; background-size: 100% 100%; }
.plr-btn--photo:not(.plr-btn--primaire) { background-image: linear-gradient(var(--encre-photo), var(--encre-photo)); }
.plr-btn--primaire .fleche-sortie { display: inline-block; transition: transform var(--duree-courte) var(--ease-mise-au-point); }
.plr-btn--primaire:hover .fleche-sortie { transform: translate(3px, -3px); }
.plr-btn.reussi { background: var(--sodium); border-color: var(--sodium); color: var(--sur-sodium); }
/* Onde au clic */
.onde { position: absolute; border-radius: 50%; pointer-events: none; background: currentColor; opacity: 0.25; transform: scale(0); animation: onde 0.6s var(--ease-mise-au-point) forwards; }
@keyframes onde { to { transform: scale(1); opacity: 0; } }
.plr-btn svg { width: 18px; height: 18px; }
.plr-btn > * { position: relative; }
.plr-btn--primaire { background: var(--sodium); border-color: var(--sodium); color: var(--sur-sodium); }
.plr-btn--primaire:hover { background: var(--sodium); color: var(--sur-sodium); box-shadow: var(--lueur); }
.plr-btn--lien { border-color: transparent; padding: 0; min-height: 40px; }
.plr-btn--lien:hover { background: transparent; color: var(--sodium-texte); }
.plr-btn--lien .fleche { transition: transform var(--duree-courte) var(--ease-mise-au-point); }
.plr-btn--lien:hover .fleche { transform: translateX(6px); }
.plr-btn--photo { border-color: var(--encre-photo); color: var(--encre-photo); }
.plr-btn--photo:hover { background: var(--encre-photo); color: #0b0a09; }
.plr-btn[disabled] { cursor: progress; }
.plr-btn .progression { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: rgba(0, 0, 0, 0.18); transition: width 0.2s; }

/* ---------- Puces ---------- */
.plr-puce {
  display: inline-flex; align-items: center; gap: var(--space-2); height: 32px; padding: 0 var(--space-3);
  border-radius: var(--radius-pill); border: 1px solid var(--ligne); background: transparent; color: var(--encre-2); cursor: pointer;
  font-family: var(--font-sans); font-size: 12px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; white-space: nowrap;
  transition: border-color var(--duree-instant), color var(--duree-instant);
}
.plr-puce:hover { border-color: var(--encre-2); color: var(--encre); }
.plr-puce[aria-pressed="true"] { border-color: var(--sodium-texte); color: var(--sodium-texte); }
.plr-puce--nouveau { height: 24px; border-color: var(--fumigene); color: var(--fumigene); cursor: default; font-size: 11px; background: rgba(5, 4, 3, 0.55); }
.plr-puce--nouveau::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: plr-pouls 1.6s infinite; }
[data-theme="jour"] .plr-carte .plr-puce--nouveau { color: #ff5a36; border-color: #ff5a36; }
.puces { display: flex; flex-wrap: wrap; gap: var(--space-2); }

/* ---------- Interrupteur Nuit / Jour ---------- */
.interrupteur { position: relative; display: inline-flex; padding: 3px; border-radius: var(--radius-pill); border: 1px solid var(--ligne); background: var(--fond-eleve); }
/* Pastille qui glisse sous le bouton actif */
.interrupteur::before { content: ""; position: absolute; top: 3px; bottom: 3px; left: var(--pastille-x, 3px); width: var(--pastille-l, 0); border-radius: var(--radius-pill); background: var(--encre); transition: left 0.45s var(--ease-mise-au-point), width 0.45s var(--ease-mise-au-point), background var(--duree-courte); }
.interrupteur.pret button[aria-pressed="true"] { background: transparent !important; }
.interrupteur button { position: relative; z-index: 1;
  height: 30px; padding: 0 var(--space-3); border: 0; border-radius: var(--radius-pill); background: transparent; cursor: pointer; color: var(--encre-2);
  display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  transition: background var(--duree-courte), color var(--duree-courte);
}
.interrupteur button svg { width: 14px; height: 14px; }
.interrupteur button[aria-pressed="true"] { background: var(--encre); color: var(--fond); }
@media (max-width: 899px) { .interrupteur .libelle { display: none; } .interrupteur button { padding: 0 9px; } }

/* ---------- Barre du haut ---------- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--barre-fond); }
.barre { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; transition: background var(--duree-courte), border-color var(--duree-courte), transform var(--duree-courte) var(--ease-mise-au-point); border-bottom: 1px solid transparent; }
.barre.defile { background: var(--barre-fond); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom-color: var(--ligne); }
.barre.cachee { transform: translateY(-110%); }
.barre__in { display: flex; align-items: center; gap: var(--space-6); height: var(--barre-h); }
.barre nav { margin-left: auto; display: flex; gap: var(--space-6); }
.barre nav a { position: relative; text-decoration: none; font-size: 12px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--encre-2); padding: 8px 0; transition: color var(--duree-instant); }
.barre nav a:hover, .barre nav a[aria-current="page"] { color: var(--encre); }
.barre nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: var(--sodium); transform: scaleX(0); transform-origin: left; transition: transform var(--duree-courte) var(--ease-mise-au-point); }
.barre nav a:hover::after, .barre nav a[aria-current="page"]::after { transform: scaleX(1); }
.burger { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; place-items: center; margin-right: -10px; }
.burger i { display: block; width: 22px; height: 2px; background: currentColor; position: relative; transition: background var(--duree-instant); }
.burger i::before, .burger i::after { content: ""; position: absolute; left: 0; width: 22px; height: 2px; background: currentColor; transition: transform var(--duree-courte) var(--ease-mise-au-point); }
.burger i::before { top: -7px; } .burger i::after { top: 7px; }
.burger[aria-expanded="true"] i { background: transparent; }
.burger[aria-expanded="true"] i::before { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] i::after { transform: translateY(-7px) rotate(-45deg); }
/* Sur le hero d'accueil, la barre est posée sur la photo */
.page-accueil .barre:not(.defile) { color: var(--encre-photo); }
.page-accueil .barre:not(.defile) nav a { color: rgba(245, 241, 234, 0.75); }
.page-accueil .barre:not(.defile) nav a:hover, .page-accueil .barre:not(.defile) nav a[aria-current="page"] { color: var(--encre-photo); }
.page-accueil .barre:not(.defile) .interrupteur { background: rgba(5, 4, 3, 0.4); border-color: rgba(245, 241, 234, 0.2); }
.page-accueil .barre:not(.defile) .interrupteur button { color: rgba(245, 241, 234, 0.7); }
.page-accueil .barre:not(.defile) .interrupteur button[aria-pressed="true"] { background: var(--encre-photo); color: #0b0a09; }
.page-accueil .barre:not(.defile) .interrupteur::before { background: var(--encre-photo); }
.page-accueil .barre { position: fixed; left: 0; right: 0; }

@media (max-width: 899px) {
  .barre nav { display: none; }
  .burger { display: grid; }
  .barre__in { gap: var(--space-3); }
  .barre .interrupteur { margin-left: auto; }
}

/* Menu plein écran (mobile) */
.menu {
  position: fixed; inset: 0; z-index: 45; background: var(--scene); color: var(--encre-photo);
  display: flex; flex-direction: column; justify-content: flex-end; gap: var(--space-8);
  padding: calc(var(--barre-h) + env(safe-area-inset-top, 0px) + 24px) var(--gouttiere-d) calc(32px + env(safe-area-inset-bottom, 0px)) var(--gouttiere);
  clip-path: inset(0 0 100% 0); transition: clip-path 0.6s var(--ease-obturateur); visibility: hidden;
}
.menu.ouvert { clip-path: inset(0 0 0 0); visibility: visible; }
.menu nav { display: flex; flex-direction: column; }
.menu nav a { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: clamp(56px, 17vw, 96px); line-height: 0.92; text-decoration: none; display: flex; align-items: baseline; gap: 12px; }
.menu nav a small { font-family: var(--font-mono); font-size: 12px; font-weight: 500; color: var(--sodium); letter-spacing: 0.04em; }
.menu.ouvert nav a { animation: monte 0.8s var(--ease-mise-au-point) both; }
.menu.ouvert nav a:nth-child(2) { animation-delay: 60ms; } .menu.ouvert nav a:nth-child(3) { animation-delay: 120ms; } .menu.ouvert nav a:nth-child(4) { animation-delay: 180ms; }
.menu .exif { color: rgba(245, 241, 234, 0.6); }
body.menu-ouvert .barre { color: var(--encre-photo); background: transparent !important; border-color: transparent !important; -webkit-backdrop-filter: none; backdrop-filter: none; }

/* ---------- Rideau obturateur entre deux pages ---------- */
.rideau { position: fixed; inset: 0; z-index: 200; pointer-events: none; }
.rideau i { position: absolute; left: 0; right: 0; height: 50.5%; background: var(--scene); transform: translateY(-101%); }
.rideau i + i { top: auto; bottom: 0; transform: translateY(101%); }
.rideau i:first-child { top: 0; }
html.rideau-ouvre .rideau i:first-child { animation: volet-haut-ouvre 0.7s var(--ease-obturateur) both; }
html.rideau-ouvre .rideau i + i { animation: volet-bas-ouvre 0.7s var(--ease-obturateur) both; }
html.rideau-ferme .rideau i { transition: transform 0.45s var(--ease-obturateur); transform: translateY(0); }
@keyframes volet-haut-ouvre { from { transform: translateY(0); } to { transform: translateY(-101%); } }
@keyframes volet-bas-ouvre { from { transform: translateY(0); } to { transform: translateY(101%); } }

/* ---------- Générique (accueil, une fois par visite) ---------- */
.generique-ecran { display: none; }
html.generique .generique-ecran { display: grid; position: fixed; inset: 0; z-index: 210; place-items: center; pointer-events: none; }
.generique-ecran .volet { position: absolute; left: 0; right: 0; height: 50.5%; background: var(--scene); }
.generique-ecran .volet--haut { top: 0; animation: ouvre-haut 0.9s var(--ease-obturateur) 1.9s both; }
.generique-ecran .volet--bas { bottom: 0; animation: ouvre-bas 0.9s var(--ease-obturateur) 1.9s both; }
@keyframes ouvre-haut { to { transform: translateY(-101%); } }
@keyframes ouvre-bas { to { transform: translateY(101%); } }
.generique-ecran .plr-logo { position: relative; z-index: 1; font-size: clamp(64px, 14vw, 128px); color: var(--encre-photo); animation: disparait 0.4s ease 1.75s both; }
.generique-ecran .l { display: inline-block; animation: plr-allumage 1.2s linear both; }
.generique-ecran .l:nth-child(2) { animation-delay: 0.1s; } .generique-ecran .l:nth-child(4) { animation-delay: 0.55s; }
.generique-ecran .l:nth-child(5) { animation-delay: 0.65s; } .generique-ecran .l:nth-child(6) { animation-delay: 0.75s; }
.generique-ecran .plr-logo__trait { animation: plr-trait 0.6s var(--ease-obturateur) 0.3s both; }
.generique-ecran .boitier { position: absolute; z-index: 1; bottom: calc(32px + env(safe-area-inset-bottom, 0px)); left: 0; right: 0; text-align: center; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(245, 241, 234, 0.5); animation: disparait 0.3s ease 1.75s both; }
@keyframes disparait { to { opacity: 0; visibility: hidden; } }

/* ---------- Hero d'accueil ---------- */
.ouverture { position: relative; min-height: max(640px, 100svh); background: var(--scene); color: var(--encre-photo); overflow: hidden; isolation: isolate; display: flex; flex-direction: column; }
/* Diaporama d'ouverture : la photo est toujours montrée en entier (jamais recadrée, jamais masquée par le texte).
   Derrière, la même image floutée baigne la scène de ses couleurs. */
.diapo__fonds { position: absolute; inset: 0; z-index: -3; overflow: hidden; pointer-events: none; }
.diapo__flou { position: absolute; top: -10%; left: -10%; width: 120%; height: 120%; object-fit: cover; opacity: 0; filter: blur(56px) saturate(1.25) brightness(0.5); transition: opacity 0.9s var(--ease-obturateur); will-change: opacity; }
.diapo__flou.actuelle { opacity: 1; animation: diapo-respire 8s linear both; }
.diapo__fonds::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--scene) 22%, rgba(11, 10, 9, 0.5) 55%, rgba(11, 10, 9, 0.15) 100%), linear-gradient(0deg, var(--scene) 0%, rgba(11, 10, 9, 0) 28%); }
@keyframes diapo-respire { from { transform: scale(1); } to { transform: scale(1.08); } }
.ouverture__photo { position: absolute; z-index: -1; top: calc(var(--barre-h) + 28px); bottom: 84px; left: max(46%, 540px); right: max(var(--gouttiere-d), calc((100% - var(--largeur)) / 2 + var(--gouttiere-d))); }
/* Avant le script : la 1re photo, entière, dans la boîte */
.diapo__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: 50% 50%; }
.diapo__img.premiere { animation: plr-revelation 1.1s var(--ease-obturateur) var(--d0) both; }
/* Avec le script : chaque photo vit dans un cadre taillé à ses proportions exactes (donc jamais recadrée),
   ce qui permet de la découper en lamelles ou en mosaïque et de lui donner une vraie ombre. */
.ouverture__photo { transform: perspective(1600px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform 0.7s var(--ease-mise-au-point); }
.diapo__cadre { position: absolute; opacity: 0; box-shadow: 0 40px 90px -24px rgba(0, 0, 0, 0.75); }
.diapo__cadre > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.diapo__cadre.actuelle { opacity: 1; }
.diapo__cadre::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: var(--reflet, 0); transition: opacity 0.5s; background: radial-gradient(circle at var(--gx, 50%) var(--gy, 30%), rgba(255, 244, 225, 0.16), rgba(255, 244, 225, 0) 45%); }
.diapo__cadre.entre { opacity: 1; z-index: 2; }
.diapo__cadre.sort { opacity: 1; z-index: 1; animation: diapo-recule 0.8s var(--ease-obturateur) both; }
.diapo__cadre.sort--diaphragme { animation: diapo-traverse 0.75s cubic-bezier(0.6, 0, 0.8, 0.4) both; }
.diapo__cadre.sort--mosaique { animation: diapo-recule 0.7s var(--ease-obturateur) 0.15s both; }
@keyframes diapo-recule { to { opacity: 0; transform: scale(0.9); filter: brightness(0.25); } }
@keyframes diapo-traverse { to { opacity: 0; transform: scale(1.35); filter: blur(12px) brightness(1.4); } }
/* 1. Lamelles : la photo tombe en bandes verticales, une sur deux depuis le haut, l'autre depuis le bas */
.diapo__cadre.entre--pieces > img { opacity: 0; }
.diapo__pieces { position: absolute; inset: 0; overflow: hidden; }
.diapo__piece { position: absolute; background-repeat: no-repeat; will-change: transform; animation-fill-mode: both; }
.diapo__piece--haut { animation: piece-haut 0.7s var(--ease-obturateur) both; }
.diapo__piece--bas { animation: piece-bas 0.7s var(--ease-obturateur) both; }
@keyframes piece-haut { from { transform: translateY(-104%); filter: brightness(2.2); } 60% { filter: brightness(1.3); } to { transform: none; filter: none; } }
@keyframes piece-bas { from { transform: translateY(104%); filter: brightness(2.2); } 60% { filter: brightness(1.3); } to { transform: none; filter: none; } }
/* 2. Diaphragme : flash d'appareil photo, l'iris s'ouvre depuis le centre, l'ancienne image est traversée */
.diapo__cadre.entre--diaphragme { animation: diapo-iris 0.95s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
@keyframes diapo-iris { from { clip-path: circle(0% at 50% 50%); transform: scale(1.18); filter: brightness(2); } 55% { filter: brightness(1.15); } to { clip-path: circle(75% at 50% 50%); transform: none; filter: none; } }
.ouverture__photo.flash::after { content: ""; position: absolute; inset: -12%; z-index: 4; pointer-events: none; background: radial-gradient(circle, rgba(255, 252, 245, 0.95) 0%, rgba(255, 174, 43, 0.45) 35%, rgba(255, 174, 43, 0) 68%); mix-blend-mode: screen; animation: diapo-flash 0.55s ease-out both; }
@keyframes diapo-flash { from { opacity: 1; transform: scale(0.6); } to { opacity: 0; transform: scale(1.3); } }
/* 3. Mosaïque : les carreaux pivotent en vague depuis un coin */
.diapo__piece--carreau { backface-visibility: hidden; animation: carreau 0.6s var(--ease-mise-au-point) both; }
@keyframes carreau { from { opacity: 0; transform: perspective(700px) rotateY(-95deg) scale(0.85); filter: brightness(2); } to { opacity: 1; transform: none; filter: none; } }
/* Faisceau sodium qui traverse la photo pendant la transition */
.ouverture__photo::before { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: 0; background: linear-gradient(100deg, rgba(255, 174, 43, 0) 38%, rgba(255, 174, 43, 0.32) 50%, rgba(255, 174, 43, 0) 62%); transform: translateX(-60%); }
.ouverture__photo.balaye::before { animation: plr-balayage 1s var(--ease-mise-au-point) both; }
/* Parallaxe du fond flouté, à l'opposé de l'inclinaison */
.diapo__flou { translate: var(--px, 0) var(--py, 0); transition: opacity 0.9s var(--ease-obturateur), translate 0.9s var(--ease-mise-au-point); }
@media (prefers-reduced-motion: reduce) {
  .ouverture__photo { transform: none; }
  .diapo__cadre.sort { animation: none; opacity: 0; }
}
@media (max-width: 1099px) {
  .ouverture__photo { position: relative; top: auto; bottom: auto; left: auto; right: auto; height: clamp(220px, 42svh, 520px); margin: calc(var(--barre-h) + 12px) var(--gouttiere-d) 0 var(--gouttiere); }
  .diapo__fonds::after { background: linear-gradient(0deg, var(--scene) 30%, rgba(11, 10, 9, 0.55) 70%, rgba(11, 10, 9, 0.3) 100%); }
  .ouverture .ouverture__texte { justify-content: flex-start; padding-top: var(--space-6); padding-bottom: var(--space-6); }
}
@media (max-width: 599px) {
  .ouverture__photo { height: clamp(200px, 34svh, 400px); margin-top: calc(var(--barre-h) + 8px); }
  .ouverture .ouverture__texte { padding-top: var(--space-4); }
  .ouverture .ouverture__actions { margin-top: var(--space-6); }
}
.ouverture__halo { position: absolute; z-index: -1; top: -20vh; left: 30%; width: 70vh; height: 70vh; border-radius: 50%; background: radial-gradient(circle, var(--halo), rgba(0, 0, 0, 0) 62%); filter: blur(10px); pointer-events: none; animation: respire 6s ease-in-out infinite alternate; }
@keyframes respire { from { opacity: 0.7; transform: scale(1); } to { opacity: 1; transform: scale(1.08); } }
.ouverture__texte { flex: 1; display: flex; flex-direction: column; justify-content: center; padding-top: calc(var(--barre-h) + 48px); padding-bottom: var(--space-12); }
.ouverture__texte .cine { color: rgba(245, 241, 234, 0.75); animation: plr-mise-au-point var(--duree-scene) var(--ease-mise-au-point) calc(var(--d0) + 0.3s) both; }
.ouverture__titre { margin: var(--space-6) 0 0; font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: clamp(76px, 12.5vw, 184px); line-height: 0.82; letter-spacing: -0.01em; max-width: 9ch; }
.ouverture__titre .ligne { display: block; overflow: hidden; padding-bottom: 0.02em; }
.ouverture__titre .ligne > span { display: inline-block; animation: monte 1.1s var(--ease-mise-au-point) both; }
.ouverture__titre .ligne:nth-child(1) > span { animation-delay: calc(var(--d0) + 0.45s); }
.ouverture__titre .ligne:nth-child(2) > span { animation-delay: calc(var(--d0) + 0.6s); }
.ouverture__titre .emotion { display: inline-block; font-size: 0.72em; color: var(--sodium); margin-left: 0.1em; animation: plr-mise-au-point 1.2s var(--ease-mise-au-point) calc(var(--d0) + 0.95s) both; }
@keyframes monte { from { transform: translateY(105%); } to { transform: translateY(0); } }
.ouverture__chapo { margin: var(--space-6) 0 0; max-width: 460px; font-size: 18px; line-height: 28px; color: rgba(245, 241, 234, 0.82); animation: plr-mise-au-point var(--duree-scene) var(--ease-mise-au-point) calc(var(--d0) + 1.1s) both; }
.ouverture__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-8); animation: plr-mise-au-point var(--duree-scene) var(--ease-mise-au-point) calc(var(--d0) + 1.25s) both; }
.ouverture__pied { position: relative; }
.ouverture__bas { display: flex; justify-content: space-between; align-items: center; gap: var(--space-6); padding-bottom: var(--space-8); animation: plr-mise-au-point var(--duree-scene) var(--ease-mise-au-point) calc(var(--d0) + 1.4s) both; }
/* Repères du diaporama : un trait par photo, celui en cours se remplit */
.reperes { display: flex; gap: var(--space-2); margin-left: auto; }
.reperes button { position: relative; width: 44px; height: 32px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.reperes button::before, .reperes button i { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; background: rgba(245, 241, 234, 0.28); transition: background var(--duree-courte), height var(--duree-courte); }
.reperes button i { right: auto; width: 0; background: var(--sodium); }
.reperes button:hover::before { background: rgba(245, 241, 234, 0.6); height: 4px; margin-top: -2px; }
.reperes button.vu i { width: 100%; }
.reperes button.actif i { animation: repere-remplit var(--duree-diapo, 6s) linear both; }
.reperes.pause button.actif i { animation-play-state: paused; }
@keyframes repere-remplit { from { width: 0; } to { width: 100%; } }
.descendre { display: inline-flex; align-items: center; gap: var(--space-2); color: rgba(245, 241, 234, 0.7); text-decoration: none; }
.descendre i { display: block; width: 1px; height: 28px; background: rgba(245, 241, 234, 0.3); position: relative; overflow: hidden; }
.descendre i::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--sodium); animation: goutte 1.8s var(--ease-mise-au-point) infinite; }
@keyframes goutte { to { top: 100%; } }
@media (max-width: 899px) {
  .ouverture__bas .descendre { display: none; }
  .ouverture__bas { padding-bottom: var(--space-6); }
  .reperes { margin-left: 0; }
  .reperes button { width: 36px; }
}

/* ---------- Sections ---------- */
.section { padding-top: var(--space-24); }
.section:last-of-type { padding-bottom: var(--space-16); }
.section__tete { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-4) var(--space-8); flex-wrap: wrap; padding-top: var(--space-4); border-top: 1px solid var(--ligne); margin-bottom: var(--space-8); }
.section__titre { margin: var(--space-3) 0 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(40px, 6vw, 72px); line-height: 0.92; text-transform: uppercase; text-wrap: balance; }
.section__titre .emotion { font-size: 0.78em; color: var(--sodium-texte); }
.section__tete .surtitre { color: var(--encre-2); }
@media (max-width: 899px) { .section { padding-top: var(--space-16); } }

/* Titre de page (matchs, portfolio) */
.tete-page { padding-top: calc(var(--space-16)); padding-bottom: var(--space-8); }
.tete-page .surtitre { color: var(--sodium-texte); }
.tete-page h1 { margin: var(--space-3) 0 0; font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: clamp(64px, 11vw, 160px); line-height: 0.84; letter-spacing: -0.01em; animation: plr-mise-au-point var(--duree-scene) var(--ease-mise-au-point) both; text-wrap: balance; }
.tete-page h1 .emotion { font-size: 0.62em; color: var(--sodium-texte); }
.tete-page p { margin: var(--space-6) 0 0; max-width: 560px; color: var(--encre-2); font-size: 18px; line-height: 28px; }

/* ---------- Cartes de match ---------- */
.cartes { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: var(--space-6); }
.plr-carte { position: relative; display: block; overflow: hidden; isolation: isolate; aspect-ratio: 4 / 5; max-width: 100%; background: var(--fond-creux); color: var(--encre-photo); text-decoration: none; transition: box-shadow var(--duree-courte); }
.plr-carte img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-mise-au-point), opacity 0.5s; }
.plr-carte::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, var(--voile) 0%, rgba(5, 4, 3, 0.25) 45%, rgba(5, 4, 3, 0) 70%); }
.plr-carte__faisceau { position: absolute; inset: -20% -60%; z-index: 2; pointer-events: none; opacity: 0; background: linear-gradient(105deg, rgba(255, 174, 43, 0) 40%, rgba(255, 174, 43, 0.28) 50%, rgba(255, 174, 43, 0) 60%); }
.plr-carte:hover img { transform: scale(1.04); }
.plr-carte:hover { box-shadow: var(--lueur); }
.plr-carte:hover .plr-carte__faisceau { animation: plr-balayage var(--duree-scene) var(--ease-mise-au-point) both; }
.plr-carte__haut { position: absolute; top: var(--space-4); left: var(--space-4); right: var(--space-4); z-index: 3; display: flex; justify-content: space-between; align-items: center; gap: var(--space-2); }
.plr-carte__bas { position: absolute; left: var(--space-6); right: var(--space-6); bottom: var(--space-6); z-index: 3; display: flex; flex-direction: column; gap: var(--space-2); }
.plr-carte__surtitre { font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--sodium); }
.plr-carte__titre { margin: 0; font-family: var(--font-display); font-size: 32px; line-height: 1; font-weight: 700; text-transform: uppercase; text-wrap: balance; }
.plr-carte__titre .emotion { font-size: 0.8em; color: var(--sodium); }
.plr-carte__meta { display: flex; justify-content: space-between; gap: var(--space-3); font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em; color: rgba(245, 241, 234, 0.75); }
.plr-carte__compte { margin-left: auto; font-family: var(--font-mono); font-size: 12px; padding: 4px 10px; background: rgba(5, 4, 3, 0.55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.carte-vide { border: 1px dashed var(--ligne); padding: var(--space-8); color: var(--encre-2); }
.mois { grid-column: 1 / -1; display: flex; align-items: baseline; gap: var(--space-4); margin-top: var(--space-6); }
.mois:first-child { margin-top: 0; }
.mois h2 { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 28px; line-height: 1; text-transform: uppercase; }
.mois .exif { margin-left: auto; }
.mois::after { content: ""; order: 1; flex: 1; height: 1px; background: var(--ligne); align-self: center; }
.mois .exif { order: 2; margin-left: 0; }
.filtres { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-4); margin-bottom: var(--space-8); }

/* ---------- Bandeau portfolio (accueil) ---------- */
.bande { display: flex; gap: var(--space-3); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: var(--space-4); scrollbar-width: thin; scrollbar-color: var(--ligne) transparent; }
.bande a { flex: none; height: clamp(280px, 42vw, 520px); scroll-snap-align: start; position: relative; overflow: hidden; background: var(--fond-creux); }
.bande img { height: 100%; width: auto; max-width: none; transition: transform 1s var(--ease-mise-au-point); }
.bande a:hover img { transform: scale(1.03); }
.bande .exif { position: absolute; left: var(--space-3); bottom: var(--space-3); color: var(--encre-photo); background: rgba(5, 4, 3, 0.55); padding: 2px 6px; opacity: 0; transition: opacity var(--duree-courte); }
.bande a:hover .exif, .bande a:focus-visible .exif { opacity: 1; }

/* ---------- Bloc Soutenir ---------- */
.soutien { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-6) var(--space-12); align-items: end; padding: var(--space-12) 0; border-top: 1px solid var(--ligne); border-bottom: 1px solid var(--ligne); }
.soutien h2 { margin: 0; font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: clamp(44px, 6vw, 80px); line-height: 0.9; }
.soutien h2 .emotion { color: var(--sodium-texte); font-size: 0.8em; }
.soutien p { margin: var(--space-4) 0 0; max-width: 560px; color: var(--encre-2); }
@media (max-width: 699px) { .soutien { grid-template-columns: 1fr; } .soutien .plr-btn { width: 100%; } }

/* ---------- Page d'un match ---------- */
.match-tete { padding-top: var(--space-12); padding-bottom: var(--space-8); display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-8); border-bottom: 1px solid var(--ligne); margin-bottom: var(--space-6); }
.match-tete .retour { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--encre-2); margin-bottom: var(--space-8); }
.match-tete .retour:hover { color: var(--encre); }
.match-tete .surtitre { color: var(--sodium-texte); display: block; }
.match-tete h1 { margin: var(--space-3) 0 0; font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: clamp(56px, 9vw, 128px); line-height: 0.86; letter-spacing: -0.005em; text-wrap: balance; animation: plr-mise-au-point var(--duree-scene) var(--ease-mise-au-point) both; }
.match-tete h1 .emotion { font-size: 0.62em; color: var(--sodium-texte); }
.match-tete .meta { display: flex; flex-wrap: wrap; gap: 0 var(--space-3); margin-top: var(--space-4); }
.match-tete .meta span + span::before { content: "·"; margin-right: var(--space-3); opacity: 0.6; }
.match-tete .credit { margin: var(--space-4) 0 0; color: var(--encre-2); font-size: 14px; line-height: 20px; max-width: 560px; }
.match-tete .credit strong { color: var(--encre); font-weight: 600; }
.match-tete .actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }
@media (max-width: 699px) {
  .match-tete .actions .plr-btn { flex: 1 1 auto; }
  .match-tete .actions .plr-btn--primaire { flex-basis: 100%; order: -1; }
}

/* Grille justifiée */
.grille { --rang: 230px; display: flex; flex-wrap: wrap; gap: var(--space-3); }
.grille::after { content: ""; flex-grow: 999999; }
.ph { position: relative; overflow: hidden; background: var(--fond-creux); flex-grow: var(--r); flex-basis: calc(var(--r) * var(--rang)); transition: transform var(--duree-courte) var(--ease-mise-au-point); }
.ph::before { content: ""; display: block; padding-bottom: calc(100% / var(--r)); }
.ph__ouvrir { position: absolute; inset: 0; display: block; width: 100%; height: 100%; padding: 0; border: 0; background: transparent; cursor: zoom-in; }
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; filter: blur(8px); transform: scale(1.04); transition: opacity 0.5s, filter 0.6s, transform 0.8s var(--ease-mise-au-point); }
.ph img.ok { opacity: 1; filter: blur(0); transform: scale(1); }
.ph:hover img.ok { transform: scale(1.03); }
.ph__ouvrir:focus-visible { outline-offset: -4px; }
/* Case de sélection */
.ph__choix { position: absolute; top: var(--space-2); right: var(--space-2); z-index: 2; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: transparent; cursor: pointer; display: grid; place-items: center; opacity: 0; transition: opacity var(--duree-instant); }
.ph__choix i { width: 26px; height: 26px; border-radius: 50%; border: 2px solid rgba(245, 241, 234, 0.9); background: rgba(5, 4, 3, 0.35); display: grid; place-items: center; transition: background var(--duree-instant), border-color var(--duree-instant), transform var(--duree-courte) var(--ease-mise-au-point); box-shadow: 0 1px 6px rgba(0, 0, 0, 0.4); }
.ph__choix svg { width: 14px; height: 14px; color: var(--sur-sodium); opacity: 0; transform: scale(0.4); transition: opacity var(--duree-instant), transform var(--duree-courte) var(--ease-mise-au-point); }
.ph__choix:hover i { transform: scale(1.1); border-color: var(--sodium); }
.ph:hover .ph__choix, .ph__choix:focus-visible, .grille.en-selection .ph__choix, .grille.mode-choix .ph__choix, .ph.choisie .ph__choix { opacity: 1; }
.grille.en-selection .ph__ouvrir, .grille.mode-choix .ph__ouvrir { cursor: pointer; }
.grille.mode-choix .ph:not(.choisie) img.ok { filter: brightness(0.85); }
#mode-choix[aria-pressed="true"] { border-color: var(--sodium-texte); color: var(--sodium-texte); }
.ph.choisie .ph__choix i { background: var(--sodium); border-color: var(--sodium); animation: choix-pop 0.35s var(--ease-mise-au-point); }
.ph.choisie .ph__choix svg { opacity: 1; transform: scale(1); }
.ph.choisie { transform: scale(0.94); }
.ph.choisie::after { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 0 3px var(--sodium); }
@keyframes choix-pop { 0% { transform: scale(0.8); } 60% { transform: scale(1.18); } 100% { transform: scale(1); } }
@media (hover: none) { .ph__choix { opacity: 1; } }
@media (max-width: 699px) { .grille { --rang: 120px; gap: var(--space-2); } .ph__choix { top: 2px; right: 2px; } .ph__choix i { width: 22px; height: 22px; } }

/* Barre de sélection, en bas de l'écran */
.selection { position: fixed; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 120; transform: translate(-50%, 140%); width: min(720px, calc(100% - 32px)); display: flex; align-items: center; gap: var(--space-3); padding: var(--space-2) var(--space-2) var(--space-2) var(--space-6); background: var(--encre); color: var(--fond); box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45); transition: transform 0.5s var(--ease-mise-au-point); }
.selection.visible { transform: translate(-50%, 0); }
.selection__compte { font-family: var(--font-display); font-weight: 700; font-size: 28px; line-height: 1; text-transform: uppercase; white-space: nowrap; }
.selection__compte b { display: inline-block; min-width: 1ch; color: #8a4f00; font-weight: 800; }
[data-theme="jour"] .selection__compte b { color: #ffae2b; }
.selection__compte b.tic { animation: tic 0.3s var(--ease-mise-au-point); }
@keyframes tic { 0% { transform: translateY(40%); opacity: 0; } 100% { transform: none; opacity: 1; } }
.selection .esp { flex: 1; }
.selection .plr-btn { min-height: 44px; border-color: var(--fond); color: var(--fond); }
.selection .plr-btn:not(.plr-btn--primaire) { background-image: linear-gradient(var(--fond), var(--fond)); }
.selection .plr-btn:not(.plr-btn--primaire):hover { color: var(--encre); }
.selection .plr-btn--primaire { border-color: var(--sodium); background: var(--sodium); color: var(--sur-sodium); }
.selection .plr-btn--primaire:hover { background: var(--sodium); color: var(--sur-sodium); }
.selection__lien { border: 0; background: transparent; color: inherit; opacity: 0.7; cursor: pointer; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; padding: 8px; text-decoration: underline; text-underline-offset: 4px; }
.selection__lien:hover { opacity: 1; }
@media (max-width: 699px) {
  .selection { flex-wrap: wrap; padding: var(--space-3); gap: var(--space-2); }
  .selection__compte { font-size: 22px; }
  .selection .esp { display: none; }
  .selection__liens { margin-left: auto; }
  .selection .plr-btn--primaire { flex: 1 1 100%; }
}
.outils-grille { display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); margin-bottom: var(--space-4); flex-wrap: wrap; }
.outils-grille p { margin: 0; color: var(--encre-2); font-size: 14px; }

/* Autres matchs */
.voisins { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-6); }
.voisin { position: relative; display: flex; align-items: flex-end; min-height: 220px; padding: var(--space-6); overflow: hidden; text-decoration: none; color: var(--encre-photo); background: var(--fond-creux); isolation: isolate; }
.voisin img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease-mise-au-point); }
.voisin::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, var(--voile), rgba(5, 4, 3, 0.2)); }
.voisin:hover img { transform: scale(1.04); }
.voisin .surtitre { color: var(--sodium); display: block; margin-bottom: var(--space-2); }
.voisin strong { font-family: var(--font-display); font-weight: 700; font-size: 32px; line-height: 1; text-transform: uppercase; }
.voisin--suivant { justify-content: flex-end; text-align: right; }
@media (max-width: 699px) { .voisins { grid-template-columns: 1fr; } }

/* ---------- Visionneuse ---------- */
.visio { position: fixed; inset: 0; z-index: 150; background: var(--scene); color: var(--encre-photo); display: flex; flex-direction: column; padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px); }
.visio[hidden] { display: none; }
.visio.ouvre { animation: visio-in var(--duree-courte) var(--ease-mise-au-point) both; }
@keyframes visio-in { from { opacity: 0; transform: scale(1.02); } to { opacity: 1; transform: none; } }
.visio__haut { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3) var(--space-4); flex: none; }
.visio__haut .compteur { font-family: var(--font-mono); font-size: 12px; color: rgba(245, 241, 234, 0.6); font-variant-numeric: tabular-nums; }
.visio__haut .esp { flex: 1; }
.icone { width: 44px; height: 44px; border: 0; background: transparent; color: var(--encre-photo); display: grid; place-items: center; cursor: pointer; border-radius: 50%; flex: none; text-decoration: none; }
.icone:hover { color: var(--sodium); background: rgba(255, 255, 255, 0.06); }
.icone svg { width: 22px; height: 22px; }
.visio__scene { position: relative; flex: 1; min-height: 0; touch-action: pan-y pinch-zoom; overflow: hidden; }
.visio__scene img { position: absolute; inset: 0; margin: auto; max-width: calc(100% - 144px); max-height: calc(100% - 16px); object-fit: contain; user-select: none; -webkit-user-select: none; -webkit-user-drag: none; }
.visio__scene img.entre { animation: plr-mise-au-point 0.5s var(--ease-mise-au-point) both; }
.visio__fleche { position: absolute; top: 50%; transform: translateY(-50%); width: 56px; height: 56px; }
.visio__fleche--g { left: var(--space-4); } .visio__fleche--d { right: var(--space-4); }
.visio__bas { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3) var(--space-6); flex-wrap: wrap; padding: var(--space-3) var(--space-6) var(--space-4); border-top: 1px solid rgba(245, 241, 234, 0.12); flex: none; }
.visio__bas .exif { color: rgba(245, 241, 234, 0.65); display: flex; flex-wrap: wrap; gap: 0 var(--space-3); }
.visio__bas .exif span + span::before { content: "·"; margin-right: var(--space-3); opacity: 0.6; }
.visio__bas .legende { font-family: var(--font-serif); font-style: italic; font-size: 20px; color: var(--encre-photo); }
.visio__bas .surtitre { color: var(--sodium); }
.visio .plr-btn { min-height: 40px; padding: 0 var(--space-4); }
.visio .plr-btn:not(.plr-btn--primaire) { border-color: rgba(245, 241, 234, 0.6); color: var(--encre-photo); background-image: linear-gradient(var(--encre-photo), var(--encre-photo)); }
.visio .plr-btn:not(.plr-btn--primaire):hover { color: #0b0a09; }
.visio__coche { display: none; }
.visio__coche svg { width: 16px; height: 16px; }
.visio__choix[aria-pressed="true"] { border-color: var(--sodium) !important; color: var(--sodium) !important; }
.visio__choix[aria-pressed="true"]:hover { color: var(--sur-sodium) !important; background-image: linear-gradient(var(--sodium), var(--sodium)) !important; }
.visio__choix[aria-pressed="true"] .visio__coche { display: inline-flex; animation: choix-pop 0.35s var(--ease-mise-au-point); }
@media (max-width: 699px), (hover: none) {
  .visio__fleche { display: none; }
  .visio__scene img { max-width: 100%; }
  .visio__haut .plr-btn .libelle { display: none; }
  .visio__bas .surtitre { display: none; }
}

/* ---------- Message (toast) ---------- */
.toast { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 220; transform: translate(-50%, 24px); opacity: 0; pointer-events: none; width: max-content; max-width: calc(100% - 32px); display: flex; align-items: center; gap: var(--space-4); padding: var(--space-3) var(--space-3) var(--space-3) var(--space-4); background: var(--encre); color: var(--fond); box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45); transition: opacity var(--duree-courte), transform var(--duree-courte) var(--ease-mise-au-point); }
.toast.visible { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast__texte { display: flex; flex-direction: column; font-size: 14px; line-height: 20px; }
.toast__texte strong { font-size: 15px; }
.toast .plr-btn { min-height: 40px; padding: 0 var(--space-4); }
.toast .fermer { width: 36px; height: 36px; border: 0; background: transparent; color: inherit; cursor: pointer; opacity: 0.6; }

/* ---------- Popup de soutien (avant le premier téléchargement) ---------- */
.soutien-popup { position: fixed; inset: 0; z-index: 230; display: grid; place-items: center; padding: var(--space-4); }
.soutien-popup__fond { position: absolute; inset: 0; background: rgba(5, 4, 3, 0.72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: apparait-popup var(--duree-courte) ease both; }
.soutien-popup__boite { position: relative; width: min(480px, 100%); max-height: calc(100% - 32px); overflow: auto; background: var(--fond-eleve); color: var(--encre); border: 1px solid var(--ligne); box-shadow: var(--lueur); padding: var(--space-8); display: flex; flex-direction: column; gap: var(--space-4); animation: monte-popup 0.5s var(--ease-mise-au-point) both; }
.soutien-popup__boite .surtitre { color: var(--sodium-texte); }
.soutien-popup__boite h2 { margin: 0; font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: 52px; line-height: 0.9; }
.soutien-popup__boite h2 .emotion { color: var(--sodium-texte); font-size: 0.8em; }
.soutien-popup__boite p { margin: 0; color: var(--encre-2); }
.tipeee { position: relative; overflow: hidden; display: flex; align-items: center; gap: var(--space-4); padding: var(--space-4) var(--space-6); background: var(--sodium); color: var(--sur-sodium); text-decoration: none; transition: box-shadow var(--duree-courte); }
.tipeee::before { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, rgba(255, 255, 255, 0) 35%, rgba(255, 255, 255, 0.45) 50%, rgba(255, 255, 255, 0) 65%); transform: translateX(-100%); }
.tipeee:hover { box-shadow: var(--lueur); }
.tipeee:hover::before { animation: reflet 0.9s var(--ease-mise-au-point); }
@keyframes reflet { to { transform: translateX(100%); } }
.tipeee__texte { position: relative; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.tipeee__texte strong { font-family: var(--font-sans); font-size: 15px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.tipeee__texte span { font-family: var(--font-mono); font-size: 12px; opacity: 0.75; }
.tipeee__fleche { position: relative; font-size: 22px; transition: transform var(--duree-courte) var(--ease-mise-au-point); }
.tipeee:hover .tipeee__fleche { transform: translate(3px, -3px); }
.soutien-popup__tag { font-size: 14px; }
.soutien-popup__tag strong { color: var(--encre); }
.soutien-popup__actions .plr-btn { flex: 1 1 100%; }
.soutien-popup__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-2); }
.soutien-popup__actions .plr-btn { flex: 1 1 auto; }
.soutien-popup__fermer { position: absolute; top: var(--space-2); right: var(--space-2); width: 44px; height: 44px; border: 0; background: transparent; color: var(--encre-2); cursor: pointer; font-size: 18px; }
.soutien-popup__fermer:hover { color: var(--encre); }
@keyframes apparait-popup { from { opacity: 0; } to { opacity: 1; } }
@keyframes monte-popup { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@media (max-width: 499px) { .soutien-popup { align-items: end; padding: 0; } .soutien-popup__boite { width: 100%; padding: var(--space-6) var(--space-4) calc(var(--space-6) + env(safe-area-inset-bottom, 0px)); } .soutien-popup__boite h2 { font-size: 44px; } }

/* ---------- Portfolio ---------- */
.pf { display: flex; flex-direction: column; gap: var(--space-24); padding-bottom: var(--space-16); }
.pf__item { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--space-6); align-items: end; }
.pf__item figure { margin: 0; grid-column: 1 / span 9; position: relative; }
.pf__item:nth-child(even) figure { grid-column: 4 / span 9; grid-row: 1; }
.pf__item:nth-child(even) .pf__texte { grid-column: 1 / span 3; grid-row: 1; text-align: right; align-items: flex-end; }
.pf__item.portrait figure { grid-column: 2 / span 6; }
.pf__item.portrait:nth-child(even) figure { grid-column: 6 / span 6; }
.pf__item.portrait:nth-child(even) .pf__texte { grid-column: 1 / span 5; }
.pf__item.portrait .pf__texte { grid-column: 8 / span 5; }
.pf__item figure:only-child { grid-column: 2 / span 10; }
.pf__item.portrait figure:only-child { grid-column: 4 / span 6; }
.pf__item:nth-child(3n+2) figure:only-child { grid-column: 1 / span 9; }
.pf__item:nth-child(3n) figure:only-child { grid-column: 4 / span 9; }
.pf__item.portrait:nth-child(3n+2) figure:only-child { grid-column: 2 / span 6; }
.pf__item.portrait:nth-child(3n) figure:only-child { grid-column: 6 / span 6; }
.pf__texte { grid-column: 10 / span 3; display: flex; flex-direction: column; gap: var(--space-3); padding-bottom: var(--space-2); }
.pf__num { font-family: var(--font-display); font-weight: 200; font-size: clamp(64px, 8vw, 120px); line-height: 0.8; color: var(--encre); }
.pf__num small { font-size: 0.3em; color: var(--encre-2); font-weight: 400; }
.pf__legende { font-family: var(--font-serif); font-style: italic; font-size: 24px; line-height: 1.2; color: var(--sodium-texte); }
.pf__bouton { display: block; width: 100%; border: 0; padding: 0; background: var(--fond-creux); cursor: zoom-in; overflow: hidden; }
.pf__bouton img { width: 100%; height: auto; transition: transform 1.2s var(--ease-mise-au-point); }
.pf__bouton:hover img { transform: scale(1.02); }
@media (max-width: 899px) {
  .pf { gap: var(--space-16); }
  .pf__item, .pf__item.portrait { grid-template-columns: 1fr; gap: var(--space-4); }
  .pf__item figure, .pf__item:nth-child(even) figure, .pf__item.portrait figure, .pf__item.portrait:nth-child(even) figure { grid-column: 1; grid-row: 1; }
  .pf__texte, .pf__item:nth-child(even) .pf__texte, .pf__item.portrait .pf__texte, .pf__item.portrait:nth-child(even) .pf__texte { grid-column: 1; grid-row: 2; text-align: left; align-items: flex-start; flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: var(--space-3) var(--space-4); }
  .pf__num { font-size: 56px; }
  .pf__item figure:only-child { grid-column: 1 !important; }
}

/* Révélation au défilement (seulement pour ce qui est hors écran au chargement) */
.revele.attente { clip-path: inset(0 0 100% 0); }
.revele.attente img { transform: scale(1.12); }
.revele.vu { animation: plr-revelation 1.3s var(--ease-obturateur) both; }

/* ---------- À propos ---------- */
.ap-tete { position: relative; padding-top: var(--space-12); overflow: hidden; }
.ap-nom { position: relative; z-index: 0; margin: 0; font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: clamp(120px, 30vw, 440px); line-height: 0.78; letter-spacing: -0.02em; color: transparent; -webkit-text-stroke: 1.5px var(--encre-2); text-align: center; white-space: nowrap; animation: plr-mise-au-point 1.4s var(--ease-mise-au-point) both; }
.ap-portrait { position: relative; z-index: 1; width: min(520px, 80%); margin: calc(-0.32 * clamp(120px, 30vw, 440px)) auto 0; }
.ap-portrait img { width: 100%; height: auto; animation: plr-revelation 1.4s var(--ease-obturateur) 0.2s both; }
.ap-portrait:not(.detoure) img { aspect-ratio: 4 / 5; object-fit: cover; object-position: 55% 62%; }
.ap-portrait.detoure img { filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.5)); }
.ap-portrait:not(.detoure)::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, var(--fond) 0%, rgba(11, 10, 9, 0) 30%); pointer-events: none; }
.ap-portrait .exif { position: absolute; left: 0; right: 0; bottom: var(--space-4); z-index: 2; text-align: center; color: var(--encre-2); }
.ap-corps { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-12); padding-top: var(--space-16); }
.ap-corps h2 { margin: 0; font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: clamp(44px, 6vw, 80px); line-height: 0.9; }
.ap-corps h2 .emotion { color: var(--sodium-texte); font-size: 0.8em; }
.ap-texte p { margin: 0 0 var(--space-6); font-size: 18px; line-height: 30px; max-width: 62ch; }
.ap-texte p:first-child { font-size: 22px; line-height: 32px; }
.chiffres { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-6); border-top: 1px solid var(--ligne); padding-top: var(--space-6); margin-top: var(--space-8); }
.chiffres div { display: flex; flex-direction: column; gap: var(--space-2); }
.chiffres b { font-family: var(--font-display); font-weight: 200; font-size: clamp(56px, 7vw, 96px); line-height: 0.85; font-variant-numeric: tabular-nums; }
.chiffres span { color: var(--encre-2); }
.contact { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-6); }
.contact__bloc { border-top: 1px solid var(--ligne); padding-top: var(--space-6); display: flex; flex-direction: column; gap: var(--space-4); align-items: flex-start; min-width: 0; }
.contact__valeur { font-family: var(--font-display); font-weight: 700; font-size: clamp(32px, 4vw, 52px); line-height: 1; text-transform: uppercase; text-decoration: none; overflow-wrap: anywhere; }
.contact__valeur:hover { color: var(--sodium-texte); }
.contact__valeur.minuscule { text-transform: none; }
@media (max-width: 899px) { .ap-corps, .contact { grid-template-columns: 1fr; gap: var(--space-8); } }

/* ---------- Pied de page ---------- */
.pied { margin-top: var(--space-24); border-top: 1px solid var(--ligne); padding-top: var(--space-12); padding-bottom: calc(var(--space-8) + env(safe-area-inset-bottom, 0px)); overflow: hidden; }
.pied__haut { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-8); }
.pied nav { display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-6); }
.pied nav a { text-decoration: none; color: var(--encre-2); }
.pied nav a:hover { color: var(--encre); }
.pied__marque { margin-top: var(--space-12); font-size: clamp(80px, 22vw, 320px); width: 100%; display: flex; justify-content: center; }
.pied__bas { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-3); margin-top: var(--space-6); }
.pied .credit { color: var(--encre-2); font-size: 14px; max-width: 520px; margin: 0; }

/* ---------- Page introuvable ---------- */
.introuvable { min-height: 70vh; display: flex; flex-direction: column; justify-content: center; gap: var(--space-6); }
.introuvable b { font-family: var(--font-display); font-weight: 200; font-size: clamp(120px, 24vw, 320px); line-height: 0.8; color: var(--sodium-texte); }

/* ---------- Animations signature ---------- */
@keyframes plr-mise-au-point { from { filter: blur(14px); letter-spacing: 0.5em; opacity: 0; } to { filter: blur(0); opacity: 1; } }
@keyframes plr-balayage { 0% { opacity: 0; transform: translateX(-40%); } 20% { opacity: 1; } 100% { opacity: 0; transform: translateX(40%); } }
@keyframes plr-allumage { 0% { opacity: 0; text-shadow: none; } 30% { opacity: 1; text-shadow: 0 0 24px var(--halo); } 45% { opacity: 0.35; } 60% { opacity: 1; text-shadow: 0 0 40px var(--halo); } 100% { opacity: 1; text-shadow: 0 0 0 transparent; } }
@keyframes plr-trait { from { transform: translateY(0.02em) scaleX(0); } to { transform: translateY(0.02em) scaleX(1); } }
@keyframes plr-revelation { from { clip-path: inset(0 0 100% 0); transform: scale(1.12); } to { clip-path: inset(0 0 0 0); transform: scale(1); } }
@keyframes plr-pouls { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
@keyframes plr-defile { from { transform: translateX(0); } to { transform: translateX(-50%); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 1ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
  .defile-sports .piste { animation: none !important; }
}
