/* Salle obscure : la page est sombre comme une salle de projection.
   Les images sont cadrées en CinemaScope, l'accueil se lit comme une timeline de montage,
   les textes sont composés comme un générique. Alignement à gauche, sauf le générique. */
:root {
  --salle: #1d1524;      /* fond : violet profond, la violette de Toulouse dans le noir */
  --rideau: #281e31;     /* surfaces et cadres vides */
  --ivoire: #f4ecee;     /* texte principal */
  --brume: #b3a6b9;      /* texte secondaire */
  --rose: #f0b5b0;       /* accent : la brique rose de Toulouse au soleil */
  --violette: #9b7bc4;   /* piste audio, détails */
  --trait: rgba(244, 236, 238, .14);
  --voile: rgba(29, 21, 36, .78);
  --voile-fort: rgba(29, 21, 36, .92);

  --display: "Bodoni Moda", "Bodoni 72", Didot, "Times New Roman", serif;
  --texte: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --t-xs: .8125rem;
  --t-s: .9375rem;
  --t-m: 1.0625rem;
  --t-l: clamp(1.375rem, 1.1rem + 1vw, 1.75rem);
  --t-xl: clamp(2.1rem, 1.3rem + 3.2vw, 3.75rem);
  --t-xxl: clamp(2.8rem, 1rem + 8vw, 8rem);

  --largeur: 1240px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  color-scheme: dark;
}

html { background: var(--salle); scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--salle);
  color: var(--ivoire);
  font-family: var(--texte);
  font-size: var(--t-m);
  line-height: 1.6;
  font-weight: 350;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 40;
  background: var(--salle);
}
img { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--rose); outline-offset: 3px; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 400; text-wrap: balance; }
p { margin: 0; }
.visuellement-cache {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.wrap {
  max-width: var(--largeur);
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 720px) {
  .wrap {
    padding-left: max(40px, env(safe-area-inset-left, 0px));
    padding-right: max(40px, env(safe-area-inset-right, 0px));
  }
}

/* En-tête */
.entete {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 30;
  background: var(--voile);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--trait);
}
.entete .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
}
.marque {
  font-family: var(--texte);
  font-stretch: 75%;
  font-weight: 500;
  font-size: var(--t-xs);
  letter-spacing: .34em;
  text-decoration: none;
  white-space: nowrap;
}
.nav { display: flex; gap: clamp(16px, 3vw, 36px); }
.nav a, .entete-note {
  color: var(--brume);
  font-size: var(--t-s);
  text-decoration: none;
  white-space: nowrap;
  transition: color .3s;
}
.nav a:hover { color: var(--ivoire); }
@media (max-width: 520px) {
  .marque { letter-spacing: .22em; }
  .nav { gap: 14px; }
  .nav .nav-option { display: none; }
}

/* Grain de pellicule, posé sur les images */
.grain { position: relative; isolation: isolate; }
.grain::after {
  content: "";
  position: absolute;
  inset: -40%;
  z-index: 3;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: .08;
  mix-blend-mode: overlay;
  animation: grain 1.1s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-6%, 3%); }
  40% { transform: translate(4%, -5%); }
  60% { transform: translate(-3%, 6%); }
  80% { transform: translate(5%, 2%); }
  100% { transform: translate(0, 0); }
}

/* ---------- Accueil : le montage ---------- */
.montage { padding-block: clamp(16px, 3vw, 36px) clamp(48px, 7vw, 96px); }
.ecran {
  position: relative;
  aspect-ratio: 2.39 / 1;
  max-width: 100%;
  overflow: hidden;
  background: var(--rideau);
  border-radius: 2px;
}
@media (max-width: 720px) { .ecran { aspect-ratio: 4 / 5; } }
.ecran img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  will-change: opacity, transform;
}
.ecran img:first-of-type { opacity: 1; }
.ecran-voile {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(to top, var(--voile-fort) 0%, var(--voile) 22%, transparent 62%);
  pointer-events: none;
}
.ecran-texte {
  position: absolute;
  z-index: 4;
  left: clamp(18px, 3.4vw, 48px);
  right: clamp(18px, 3.4vw, 48px);
  bottom: clamp(18px, 3vw, 40px);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}
.ecran h1 {
  font-size: var(--t-xl);
  line-height: 1.02;
  letter-spacing: -.01em;
  max-width: 18ch;
}
.ecran h1 .ligne { display: block; overflow: hidden; padding-bottom: .06em; }
.ecran h1 .ligne > span { display: block; animation: monte 1.3s var(--ease) both; }
.ecran h1 .ligne:nth-child(2) > span { animation-delay: .14s; }
@keyframes monte { from { transform: translateY(105%); } }
.ecran-plan {
  text-align: right;
  min-width: 0;
  flex-shrink: 0;
}
.ecran-plan-nom {
  display: block;
  font-family: var(--display);
  font-style: italic;
  font-size: var(--t-l);
  line-height: 1.1;
  transition: opacity .4s;
}
.ecran-plan-info { display: block; color: var(--brume); font-size: var(--t-xs); margin-top: 4px; }
@media (max-width: 720px) {
  .ecran-texte { flex-direction: column; align-items: flex-start; gap: 14px; }
  .ecran-plan { text-align: left; }
}

/* Timeline */
.timeline { margin-top: 14px; }
.timeline-barre {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}
.lecture {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border: 1px solid var(--trait);
  border-radius: 50%;
  background: transparent;
  color: var(--ivoire);
  cursor: pointer;
  transition: border-color .3s, background-color .3s;
}
.lecture:hover { border-color: var(--rose); }
.lecture svg { width: 12px; height: 12px; fill: currentColor; }
.lecture .icone-pause { display: none; }
.lecture[aria-pressed="true"] .icone-pause { display: block; }
.lecture[aria-pressed="true"] .icone-lecture { display: none; }
.timecode {
  font-variant-numeric: tabular-nums;
  font-size: var(--t-s);
  letter-spacing: .04em;
  color: var(--ivoire);
}
.timecode .total { color: var(--brume); }
.timeline-aide { margin-left: auto; color: var(--brume); font-size: var(--t-xs); }
@media (max-width: 560px) { .timeline-aide { display: none; } }

.pistes-cadre {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  column-gap: 8px;
  row-gap: 4px;
  align-items: center;
}
.piste-nom { color: var(--brume); font-size: 11px; letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.pistes {
  grid-column: 2;
  grid-row: 1 / span 2;
  position: relative;
  display: grid;
  grid-template-rows: auto auto;
  row-gap: 4px;
  cursor: ew-resize;
  touch-action: pan-y;
  border-radius: 3px;
  outline-offset: 4px;
}
.piste-video {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 2px;
  height: clamp(40px, 5vw, 58px);
}
.clip {
  position: relative;
  overflow: hidden;
  border-radius: 3px;
  background-color: var(--rideau);
  background-size: auto 100%;
  background-repeat: repeat-x;
  background-position: left 30%;
  opacity: .55;
  transition: opacity .4s;
}
.clip.is-actif { opacity: 1; box-shadow: inset 0 0 0 1px var(--rose); }
.clip span {
  position: absolute;
  left: 4px;
  top: 4px;
  max-width: calc(100% - 8px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 1px 5px;
  border-radius: 2px;
  background: var(--voile-fort);
  font-size: 10.5px;
  line-height: 1.5;
}
.piste-audio { position: relative; height: 26px; }
.piste-audio canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.tete {
  position: absolute;
  top: -8px;
  bottom: -2px;
  left: 0;
  width: 0;
  pointer-events: none;
  z-index: 2;
}
.tete::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -.5px;
  width: 1px;
  background: var(--rose);
}
.tete::after {
  content: "";
  position: absolute;
  top: 0;
  left: -6px;
  width: 12px;
  height: 9px;
  background: var(--rose);
  clip-path: polygon(0 0, 100% 0, 100% 45%, 50% 100%, 0 45%);
}

.montage-sous {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 24px 40px;
  margin-top: clamp(36px, 5vw, 64px);
  align-items: end;
}
.montage-sous .lede {
  font-size: var(--t-l);
  line-height: 1.35;
  font-weight: 300;
  max-width: 30ch;
}
.montage-sous .lede-sub { color: var(--brume); max-width: 44ch; }
@media (max-width: 720px) { .montage-sous { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Sections ---------- */
.section { padding-block: clamp(64px, 9vw, 136px); border-top: 1px solid var(--trait); }
.section-tete {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 16px 40px;
  align-items: end;
  margin-bottom: clamp(36px, 5vw, 72px);
}
.section-tete h2 { font-size: var(--t-xl); line-height: 1.05; }
.section-tete p { color: var(--brume); max-width: 44ch; }
@media (max-width: 720px) { .section-tete { grid-template-columns: minmax(0, 1fr); } }

/* Histoires */
.histoires-grille {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(40px, 5vw, 72px) clamp(16px, 2.6vw, 36px);
  align-items: end;
}
.histoire { display: block; text-decoration: none; min-width: 0; }
.histoire-image {
  display: block;
  overflow: hidden;
  aspect-ratio: var(--ratio, 4 / 5);
  max-width: 100%;
  background: var(--rideau);
}
.histoire-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--cadre, 50% 50%);
  filter: saturate(.82) brightness(.9);
  transition: filter .8s var(--ease);
}
.histoire:hover .histoire-image img,
.histoire:focus-visible .histoire-image img { transform: scale(1.035); filter: none; }
.histoire-legende {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
}
.histoire-nom {
  font-family: var(--display);
  font-style: italic;
  font-size: var(--t-l);
  line-height: 1.15;
  min-width: 0;
}
.histoire-lien {
  flex-shrink: 0;
  color: var(--brume);
  font-size: var(--t-xs);
  text-decoration: underline;
  text-decoration-color: var(--trait);
  text-underline-offset: 5px;
  transition: color .3s, text-decoration-color .3s;
}
.histoire:hover .histoire-lien { color: var(--rose); text-decoration-color: var(--rose); }
.h-1 { grid-column: 1 / span 5; --ratio: 3 / 4; --cadre: 50% 30%; }
.h-2 { grid-column: 6 / span 7; --ratio: 16 / 10; }
.h-3 { grid-column: 1 / -1; --ratio: 2.39 / 1; --cadre: 45% 50%; }
.h-4 { grid-column: 2 / span 5; --ratio: 2 / 3; --cadre: 50% 25%; align-self: start; }
.h-5 { grid-column: 7 / span 6; --ratio: 5 / 7; --cadre: 50% 40%; }
@media (max-width: 720px) {
  .h-1, .h-2, .h-3, .h-4, .h-5 { grid-column: 1 / -1; }
  .h-3 { --ratio: 16 / 9; }
}

/* Studio */
.studio {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 40px clamp(16px, 2.6vw, 36px);
  align-items: center;
}
.studio-portrait { grid-column: 1 / span 5; margin: 0; }
.studio-portrait .cadre { aspect-ratio: 2 / 3; overflow: hidden; background: var(--rideau); max-width: 100%; }
.studio-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.studio-portrait figcaption { margin-top: 12px; color: var(--brume); font-size: var(--t-xs); }
.studio-texte { grid-column: 7 / span 6; display: grid; gap: 22px; min-width: 0; }
.studio-texte h2 { font-size: var(--t-xl); line-height: 1.05; margin-bottom: 8px; }
.studio-texte p { max-width: 46ch; }
.studio-texte p + p { color: var(--brume); }
.fiche {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  margin: 18px 0 0;
  border-top: 1px solid var(--trait);
  font-size: var(--t-s);
}
.fiche dt, .fiche dd { margin: 0; padding: 12px 0; border-bottom: 1px solid var(--trait); }
.fiche dt { color: var(--brume); padding-right: 28px; }
@media (max-width: 720px) {
  .studio-portrait, .studio-texte { grid-column: 1 / -1; }
  .studio-portrait { max-width: 420px; }
}

/* Espace mariés */
.etapes {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px clamp(16px, 2.6vw, 36px);
  counter-reset: etape;
}
.etape { position: relative; padding-top: 30px; min-width: 0; }
.etape::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 0;
  right: calc(-1 * clamp(16px, 2.6vw, 36px));
  height: 1px;
  background: var(--trait);
}
.etape:last-child::before { right: 0; }
.etape::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--salle);
  border: 1px solid var(--rose);
}
.etape:last-child::after { background: var(--rose); }
.etape h3 { font-size: var(--t-l); font-style: italic; margin-bottom: 10px; }
.etape p { color: var(--brume); max-width: 34ch; }
@media (max-width: 720px) {
  .etapes { grid-template-columns: minmax(0, 1fr); }
  .etape { padding-top: 0; padding-left: 32px; }
  .etape::before { top: 18px; bottom: -32px; left: 6px; right: auto; width: 1px; height: auto; }
  .etape:last-child::before { display: none; }
  .etape::after { top: 6px; }
}
.maries-bas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 32px;
  margin-top: clamp(40px, 5vw, 64px);
}
.maries-bas p { color: var(--brume); font-size: var(--t-s); max-width: 52ch; }

/* Boutons */
.bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 26px;
  border-radius: 999px;
  border: 1px solid var(--rose);
  color: var(--rose);
  background: transparent;
  font: inherit;
  font-size: var(--t-s);
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .3s, color .3s;
}
.bouton:hover { background: var(--rose); color: var(--salle); }
.bouton-plein { background: var(--rose); color: var(--salle); }
.bouton-plein:hover { background: var(--ivoire); border-color: var(--ivoire); }
.bouton[aria-disabled="true"] {
  border-color: var(--trait);
  background: transparent;
  color: var(--brume);
  cursor: default;
}

/* Pied de page */
.pied { border-top: 1px solid var(--trait); padding-block: 48px; }
.pied .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 40px; align-items: baseline; }
.pied p { color: var(--brume); font-size: var(--t-xs); }

/* ---------- Page de livraison ---------- */
.affiche { position: relative; overflow: hidden; background: var(--rideau); }
.affiche-image {
  position: relative;
  aspect-ratio: 2.39 / 1;
  max-width: 100%;
  max-height: 78vh;
  width: 100%;
  overflow: hidden;
}
@media (max-width: 720px) { .affiche-image { aspect-ratio: 4 / 5; } }
.affiche-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--cadre, 50% 40%);
  animation: lent 24s linear both;
}
@keyframes lent { from { transform: scale(1.02); } to { transform: scale(1.12); } }
.affiche .ecran-voile { background: linear-gradient(to top, var(--voile-fort) 0%, var(--voile) 30%, transparent 75%); }
.affiche-texte {
  position: absolute;
  z-index: 4;
  inset: auto 0 0 0;
  padding-bottom: clamp(20px, 4vw, 56px);
}
.affiche-sur { color: var(--rose); font-size: var(--t-s); margin-bottom: 10px; }
.affiche h1 {
  font-size: var(--t-xxl);
  font-style: italic;
  line-height: .95;
  letter-spacing: -.02em;
  overflow-wrap: anywhere;
}
.affiche h1 span { display: inline-block; animation: monte 1.4s var(--ease) both; }
.affiche-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  margin-top: 16px;
  color: var(--brume);
  font-size: var(--t-s);
}
.affiche-meta span + span { padding-left: 22px; border-left: 1px solid var(--trait); }

.projection { padding-block: clamp(48px, 7vw, 96px) 0; }
.projection h2, .bloc-titre { font-size: var(--t-xl); line-height: 1.05; margin-bottom: clamp(20px, 3vw, 32px); }
.lecteur {
  position: relative;
  aspect-ratio: 16 / 9;
  max-width: 100%;
  overflow: hidden;
  border-radius: 2px;
  background: var(--rideau);
}
.lecteur > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--cadre, 50% 40%);
  filter: brightness(.62) saturate(.85);
  transition: transform 1.6s var(--ease), filter .8s;
}
.lecteur:hover > img { transform: scale(1.025); filter: brightness(.7) saturate(.95); }
.lecteur iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 6; }
.lecteur canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 5; }
.lecteur-bouton {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 14px;
  border: 0;
  background: transparent;
  color: var(--ivoire);
  font: inherit;
  cursor: pointer;
}
.lecteur-rond {
  width: clamp(64px, 9vw, 96px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--ivoire);
  transition: background-color .4s, border-color .4s, transform .6s var(--ease);
}
.lecteur-rond svg { width: 26%; height: 26%; fill: currentColor; margin-left: 6%; }
.lecteur-bouton:hover .lecteur-rond { background: var(--rose); border-color: var(--rose); color: var(--salle); transform: scale(1.06); }
.lecteur-label { font-size: var(--t-s); letter-spacing: .02em; }
.lecteur-duree { color: var(--brume); font-size: var(--t-xs); }
.lecteur-message {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: grid;
  place-content: center;
  gap: 10px;
  padding: 24px;
  text-align: center;
  background: var(--voile-fort);
}
.lecteur-message h3 { font-size: var(--t-l); font-style: italic; }
.lecteur-message p { color: var(--brume); max-width: 40ch; margin-inline: auto; font-size: var(--t-s); }
.lecteur-secours { margin-top: 12px; color: var(--brume); font-size: var(--t-xs); }
.lecteur-secours a { color: var(--rose); }

.remises {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2.6vw, 36px);
}
.remise {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: clamp(22px, 3vw, 36px);
  border: 1px solid var(--trait);
  border-radius: 4px;
  min-width: 0;
}
.remise-principale { background: var(--rideau); border-color: transparent; }
.remise h3 { font-size: var(--t-l); }
.remise p { color: var(--brume); font-size: var(--t-s); max-width: 40ch; }
.remise .bouton { justify-self: start; margin-top: 10px; }
.remise .note { font-size: var(--t-xs); }
@media (max-width: 720px) { .remises { grid-template-columns: minmax(0, 1fr); } }

.conseils { border-top: 1px solid var(--trait); padding-block: clamp(48px, 7vw, 96px); }
.conseils ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px clamp(16px, 2.6vw, 36px);
}
.conseils li { border-top: 1px solid var(--rose); padding-top: 16px; min-width: 0; }
.conseils strong { display: block; font-weight: 500; margin-bottom: 6px; }
.conseils li span { color: var(--brume); font-size: var(--t-s); }
@media (max-width: 720px) { .conseils ul { grid-template-columns: minmax(0, 1fr); } }

.generique { border-top: 1px solid var(--trait); padding-block: clamp(72px, 10vw, 150px); text-align: center; }
.generique dl {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px 28px;
  max-width: 620px;
  margin: 0 auto;
}
.generique dt { text-align: right; color: var(--brume); font-size: var(--t-s); padding-top: .35em; }
.generique dd { text-align: left; margin: 0; font-family: var(--display); font-size: var(--t-l); line-height: 1.2; }
.generique-fin { margin-top: clamp(48px, 7vw, 88px); font-family: var(--display); font-style: italic; font-size: var(--t-xl); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .grain::after, .affiche-image img, .ecran h1 .ligne > span, .affiche h1 span { animation: none; }
  .histoire-image img, .lecteur > img { transition: none; }
}

[hidden] { display: none !important; }
.generique dl > div { display: contents; }
#onde { opacity: .5; }

/* ---------- Galerie de livraison ---------- */
.etiquette {
  display: inline-block;
  margin-left: 10px;
  padding: 2px 10px;
  border: 1px solid var(--rose);
  border-radius: 999px;
  font-size: var(--t-xs);
  vertical-align: 1px;
}
.telechargements { border-top: 1px solid var(--trait); padding-block: clamp(48px, 7vw, 96px); }
.galerie { padding-block: clamp(56px, 8vw, 112px); scroll-margin-top: 60px; }
.projection, .telechargements { scroll-margin-top: 60px; }
.galerie-tete {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px 32px;
  margin-bottom: clamp(20px, 3vw, 32px);
}
.galerie-titre { min-width: 0; }
.galerie-tete h2 { font-size: var(--t-xl); line-height: 1.05; }
.galerie-compte { color: var(--brume); margin-top: 10px; max-width: 52ch; }
.galerie-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.filtre { display: inline-flex; padding: 4px; border: 1px solid var(--trait); border-radius: 999px; }
.filtre button {
  font: inherit;
  font-size: var(--t-s);
  color: var(--brume);
  background: transparent;
  border: 0;
  border-radius: 999px;
  padding: 8px 16px;
  cursor: pointer;
  font-variant-numeric: tabular-nums;
  transition: background-color .3s, color .3s;
}
.filtre button[aria-pressed="true"] { background: var(--ivoire); color: var(--salle); }
.lien-discret { color: var(--rose); font-size: var(--t-s); text-underline-offset: 5px; }
.chapitres { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; transition: opacity .3s; }
.chapitres.est-estompe { opacity: .35; pointer-events: none; }
.chapitres a {
  padding: 6px 14px;
  border: 1px solid var(--trait);
  border-radius: 999px;
  color: var(--brume);
  font-size: var(--t-s);
  text-decoration: none;
  transition: border-color .3s, color .3s;
}
.chapitres a:hover { border-color: var(--rose); color: var(--ivoire); }
.grille {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: 6px;
}
@media (max-width: 560px) { .grille { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; } }
.grille-chapitre {
  grid-column: 1 / -1;
  font-style: italic;
  font-size: var(--t-l);
  padding: 32px 0 8px;
  scroll-margin-top: 76px;
}
.grille-chapitre:first-child { padding-top: 0; }
.tuile { position: relative; margin: 0; aspect-ratio: 4 / 5; max-width: 100%; overflow: hidden; background: var(--rideau); }
.tuile-ouvrir { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.tuile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: transform 1.2s var(--ease), opacity .6s var(--ease);
}
.tuile img.est-charge { opacity: 1; }
.tuile:hover img { transform: scale(1.03); }
.coeur {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--voile);
  color: var(--ivoire);
  cursor: pointer;
  opacity: 0;
  transition: opacity .3s;
}
.tuile:hover .coeur, .coeur:focus-visible, .coeur[aria-pressed="true"] { opacity: 1; }
@media (hover: none) { .coeur { opacity: 1; } }
.coeur svg, .outil svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.coeur[aria-pressed="true"], .outil[aria-pressed="true"] { color: var(--rose); }
.coeur[aria-pressed="true"] svg, .outil[aria-pressed="true"] svg { fill: currentColor; }
.bat { animation: bat .45s var(--ease); }
@keyframes bat { 40% { transform: scale(1.25); } }
.favoris-vide { padding: 56px 0; text-align: center; color: var(--brume); }
.favoris-barre {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--trait);
}
.favoris-barre > p:first-child { color: var(--brume); font-size: var(--t-s); max-width: 60ch; }
.copie-retour { flex-basis: 100%; color: var(--rose); font-size: var(--t-s); }
.copie-retour:empty { display: none; }
.favoris-texte {
  flex-basis: 100%;
  width: 100%;
  box-sizing: border-box;
  padding: 12px;
  border: 1px solid var(--trait);
  border-radius: 4px;
  background: var(--rideau);
  color: var(--ivoire);
  font: inherit;
  font-size: var(--t-s);
}

/* Visionneuse */
.visionneuse {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--salle);
  color: var(--ivoire);
}
.visionneuse::backdrop { background: var(--salle); }
.visionneuse[open] { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; }
.vision-barre {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: calc(env(safe-area-inset-top, 0px) + 12px) max(16px, env(safe-area-inset-right, 0px)) 12px max(16px, env(safe-area-inset-left, 0px));
}
.vision-compte { color: var(--brume); font-size: var(--t-s); font-variant-numeric: tabular-nums; }
.vision-outils { display: flex; align-items: center; gap: 8px; }
.outil {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--trait);
  border-radius: 50%;
  background: transparent;
  color: var(--ivoire);
  cursor: pointer;
  text-decoration: none;
  transition: border-color .3s, color .3s;
}
.outil:hover { border-color: var(--rose); }
.vision-scene {
  position: relative;
  min-height: 0;
  display: grid;
  place-items: center;
  padding: 0 max(16px, env(safe-area-inset-right, 0px)) 0 max(16px, env(safe-area-inset-left, 0px));
  touch-action: pan-y;
  user-select: none;
}
.vision-scene img {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 16px;
  width: calc(100% - 32px);
  height: 100%;
  object-fit: contain;
  transition: opacity .3s var(--ease);
}
.vision-scene img.change { opacity: 0; }
.vision-fleche {
  position: absolute;
  top: 50%;
  width: 56px;
  height: 56px;
  margin-top: -28px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--voile);
  color: var(--ivoire);
  cursor: pointer;
}
.vision-fleche svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.vision-fleche:hover { color: var(--rose); }
.precedente { left: max(20px, env(safe-area-inset-left, 0px)); }
.suivante { right: max(20px, env(safe-area-inset-right, 0px)); }
.vision-pied { display: none; justify-content: center; gap: 16px; padding: 12px 16px calc(env(safe-area-inset-bottom, 0px) + 16px); }
@media (max-width: 640px) {
  .vision-fleche { display: none; }
  .vision-pied { display: flex; }
}
@media (prefers-reduced-motion: reduce) {
  .tuile img, .vision-scene img { transition: none; }
  .bat { animation: none; }
}
.nav a.nav-maries { color: var(--rose); }
.nav a.nav-maries:hover { color: var(--ivoire); }

/* ---------- L'expérience : ouverture, révélation, pellicule ---------- */
:root {
  --film: #140e19;                       /* support de la pellicule */
  --trou: rgba(244, 236, 238, .2);       /* perforations */
  --faisceau: rgba(155, 123, 196, .3);   /* lumière du projecteur */
}

/* Volets de l'écran d'accueil : le cadre s'ouvre comme un écran de cinéma */
.volet {
  position: absolute;
  left: 0;
  right: 0;
  height: 50.5%;
  z-index: 5;
  background: var(--salle);
  pointer-events: none;
  animation: volet-haut 1.3s cubic-bezier(.76, 0, .24, 1) .15s both;
}
.volet.haut { top: 0; }
.volet.bas { bottom: 0; animation-name: volet-bas; }
@keyframes volet-haut { to { transform: translateY(-100%); } }
@keyframes volet-bas { to { transform: translateY(100%); } }
.ecran h1 .ligne > span { animation-delay: .9s; }
.ecran h1 .ligne:nth-child(2) > span { animation-delay: 1.04s; }

/* Ouverture de la page de livraison */
.ouverture {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--ivoire);
}
.ouverture-bande {
  position: absolute;
  left: 0;
  right: 0;
  height: 50.5%;
  background: var(--salle);
  transition: transform 1.2s cubic-bezier(.76, 0, .24, 1);
}
.ouverture-bande.haut { top: 0; }
.ouverture-bande.bas { bottom: 0; }
.ouverture-faisceau {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 55% 42% at 50% 50%, var(--faisceau), transparent 72%);
  animation: scintille 2.6s ease-in-out infinite;
  pointer-events: none;
  transition: opacity .6s;
}
@keyframes scintille { 0%, 100% { opacity: .85; } 45% { opacity: 1; } 52% { opacity: .72; } 58% { opacity: .95; } }
.ouverture-contenu {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 16px;
  padding: 24px max(16px, env(safe-area-inset-right, 0px)) 24px max(16px, env(safe-area-inset-left, 0px));
  transition: opacity .5s, transform 1.2s var(--ease);
}
.ouverture-presente {
  font-stretch: 75%;
  font-size: var(--t-xs);
  letter-spacing: .34em;
  color: var(--brume);
  animation: apparait 1.2s var(--ease) .3s both;
}
.ouverture-noms {
  font-family: var(--display);
  font-style: italic;
  font-size: var(--t-xxl);
  line-height: 1;
  letter-spacing: -.02em;
  max-width: 14ch;
}
.ouverture-noms .mot { display: inline-block; white-space: nowrap; }
.ouverture-noms .car { display: inline-block; animation: lettre 1.3s var(--ease) both; animation-delay: calc(.9s + var(--i) * 55ms); }
@keyframes lettre { from { opacity: 0; transform: translateY(45%) rotate(5deg); filter: blur(12px); } }
.ouverture-date { color: var(--brume); animation: apparait 1.2s var(--ease) 2s both; }
.ouverture-entrer { margin-top: 20px; animation: apparait 1.2s var(--ease) 2.3s both; }
@keyframes apparait { from { opacity: 0; transform: translateY(12px); } }
.ouverture.sort { pointer-events: none; }
.ouverture.sort .ouverture-contenu { opacity: 0; transform: scale(1.08); }
.ouverture.sort .ouverture-faisceau { opacity: 0; }
.ouverture.sort .haut { transform: translateY(-100%); }
.ouverture.sort .bas { transform: translateY(100%); }
.attend .affiche h1 span, .attend .affiche-image img { animation-play-state: paused; }
.affiche-zoom { position: absolute; inset: 0; }

/* Révélation des photos, comme dans le bain du labo */
.tuile.a-reveler img { filter: blur(16px) brightness(1.9) saturate(0) sepia(.35); transform: scale(1.1); }
.tuile.revele img {
  filter: none;
  transform: none;
  transition: filter 1.8s var(--ease), transform 1.8s var(--ease), opacity .6s var(--ease);
  transition-delay: var(--d, 0s);
}
.tuile.revele:hover img { transform: scale(1.03); transition-delay: 0s; }

/* Visionneuse : la photo s'envole depuis la grille */
.visionneuse { transition: background-color .45s var(--ease); }
.visionneuse::backdrop { background: transparent; }
.visionneuse.entre { background-color: transparent; }
.vision-barre, .vision-fleche, .vision-pied { transition: opacity .4s var(--ease) .15s; }
.visionneuse.entre .vision-barre, .visionneuse.entre .vision-fleche, .visionneuse.entre .vision-pied { opacity: 0; transition-delay: 0s; }
.vol { position: fixed; z-index: 10; object-fit: cover; pointer-events: none; }

/* Éclat du cœur */
.outil { position: relative; }
.eclat {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  border-radius: 50%;
  background: var(--rose);
  pointer-events: none;
}

/* Pellicule */
.pellicule {
  position: relative;
  overflow: hidden;
  padding-block: clamp(56px, 8vw, 110px) 0;
  display: grid;
  gap: 18px;
}
.bande { transform: rotate(-2.5deg); margin-inline: -4%; }
.bande + .bande { transform: rotate(-2.5deg) translateX(-6%); }
.bande-piste {
  display: flex;
  width: max-content;
  gap: 10px;
  padding: 30px 10px;
  background-color: var(--film);
  background-image:
    repeating-linear-gradient(90deg, var(--trou) 0 12px, transparent 12px 28px),
    repeating-linear-gradient(90deg, var(--trou) 0 12px, transparent 12px 28px);
  background-size: 100% 9px, 100% 9px;
  background-position: 0 10px, 0 calc(100% - 10px);
  background-repeat: repeat-x;
}
.vue { position: relative; margin: 0; flex: none; width: clamp(150px, 20vw, 280px); aspect-ratio: 3 / 2; background: var(--rideau); }
.vue img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85); }
.vue-num {
  position: absolute;
  left: 2px;
  bottom: -22px;
  color: var(--rose);
  font-size: 10px;
  letter-spacing: .12em;
  font-variant-numeric: tabular-nums;
  opacity: .8;
}

/* Curseur de projection */
.curseur { position: fixed; left: 0; top: 0; z-index: 90; pointer-events: none; }
.curseur span {
  position: absolute;
  left: -42px;
  top: -42px;
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--rose);
  color: var(--salle);
  font-size: var(--t-xs);
  font-weight: 500;
  transform: scale(0);
  transition: transform .4s var(--ease);
}
.curseur.actif span { transform: scale(1); }

/* Titres en lettres séparées */
.lettres .mot { display: inline-block; white-space: nowrap; }
.lettres .car { display: inline-block; }

@media (prefers-reduced-motion: reduce) {
  .volet, .ouverture-faisceau { animation: none; display: none; }
  .ouverture-noms .car, .ouverture-presente, .ouverture-date, .ouverture-entrer { animation: none; }
}

/* ---------- L'expérience, deuxième bobine ---------- */
:root {
  --fuite-a: rgba(245, 146, 118, .9);    /* fuite de lumière : rose orangé */
  --fuite-b: rgba(255, 198, 128, .75);   /* fuite de lumière : ambre */
  --reflet: rgba(255, 255, 255, .22);    /* reflet sur les photos inclinées */
  --poudre: #e9c9d0;                     /* pétales rose poudré */
}

/* Fuites de lumière */
.fuite-ecran, .ecran .fuite {
  position: fixed;
  inset: -25%;
  z-index: 120;
  pointer-events: none;
  mix-blend-mode: screen;
  background:
    radial-gradient(38% 46% at 38% 46%, var(--fuite-a), transparent 70%),
    radial-gradient(30% 38% at 62% 58%, var(--fuite-b), transparent 72%);
  filter: blur(34px);
}
.ecran .fuite { position: absolute; inset: -10% -30%; z-index: 2; opacity: 0; }
.projection-ecran .fuite-ecran { position: absolute; z-index: 3; }

/* Poussière de l'ouverture */
.ouverture-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.avec-poussiere .ouverture-noms .car { animation: none; opacity: 0; filter: blur(8px); transition: opacity 1.8s var(--ease), filter 1.8s var(--ease); }
.avec-poussiere.condense .ouverture-noms .car { opacity: 1; filter: none; }

/* Pétales */
.petales { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 80; pointer-events: none; }

/* Photos inclinées */
.tuile { transition: transform .6s var(--ease); }
.tuile .coeur { z-index: 2; }
.tuile::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), var(--reflet), transparent 48%);
  mix-blend-mode: soft-light;
  opacity: 0;
  transition: opacity .4s;
}
.tuile:hover::after { opacity: 1; }

/* Bouton de projection */
#projection-lancer svg { width: 11px; height: 11px; fill: currentColor; }

/* Projection plein écran */
.projection-ecran {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: var(--salle);
  color: var(--ivoire);
}
.projection-ecran::backdrop { background: var(--salle); }
.projection-ecran[open] { display: block; }
.projection-ecran.repos { cursor: none; }
.proj-plan { position: absolute; inset: 0; overflow: hidden; opacity: 0; transition: opacity 1.4s var(--ease); }
.proj-plan.visible { opacity: 1; }
.proj-cadre { position: absolute; inset: 0; }
.proj-fond {
  position: absolute;
  inset: -6%;
  width: 112%;
  height: 112%;
  max-width: none;
  object-fit: cover;
  filter: blur(42px) brightness(.42) saturate(1.25);
}
.proj-photo {
  position: absolute;
  top: 5vh;
  left: 4vw;
  width: 92vw;
  height: 78vh;
  object-fit: contain;
}
.proj-carton {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 14px;
  padding: 24px;
  text-align: center;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1s var(--ease), transform 3s var(--ease);
  pointer-events: none;
}
.proj-carton.visible { opacity: 1; transform: none; }
.proj-sur { font-stretch: 75%; font-size: var(--t-xs); letter-spacing: .34em; color: var(--brume); }
.proj-titre { font-family: var(--display); font-style: italic; font-size: var(--t-xxl); line-height: 1; letter-spacing: -.02em; max-width: 14ch; text-wrap: balance; }
.proj-sous { color: var(--brume); font-size: var(--t-m); }
.proj-barre {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  padding: 40px max(16px, env(safe-area-inset-right, 0px)) calc(env(safe-area-inset-bottom, 0px) + 18px) max(16px, env(safe-area-inset-left, 0px));
  background: linear-gradient(to top, var(--voile-fort), transparent);
  transition: opacity .6s var(--ease);
}
.projection-ecran.repos .proj-barre { opacity: 0; }
.proj-progres { height: 2px; margin-bottom: 14px; background: var(--trait); border-radius: 2px; overflow: hidden; }
.proj-progres span { display: block; width: 0; height: 100%; background: var(--rose); }
.proj-controles { display: flex; align-items: center; gap: 8px; }
.proj-compte { margin-right: auto; color: var(--brume); font-size: var(--t-s); font-variant-numeric: tabular-nums; }
.proj-lecture .i-lecture, .proj-lecture[aria-pressed="true"] .i-pause { display: block; }
.proj-lecture .i-pause, .proj-lecture[aria-pressed="true"] .i-lecture { display: none; }
.proj-lecture[aria-pressed="true"], .proj-son[aria-pressed="true"] { color: var(--ivoire); }
.proj-lecture svg, .proj-lecture[aria-pressed="true"] svg { fill: none; }
.proj-lecture .i-lecture { fill: currentColor; }
.proj-son[aria-pressed="false"] { color: var(--brume); }
.proj-son svg, .proj-son[aria-pressed="true"] svg { fill: none; }
@media (max-width: 640px) {
  .proj-photo { top: 4vh; left: 3vw; width: 94vw; height: 74vh; }
}
@media (prefers-reduced-motion: reduce) {
  .proj-plan, .proj-carton, .tuile { transition: none; }
  .ecran .fuite { display: none; }
}
