/* Max Minder · dossier de presse en ligne
   Couleurs et polices réglées ici, en tête de fichier. */

@font-face {
  font-family: "Playfair Display";
  font-style: italic;
  font-weight: 900;
  font-display: swap;
  src: url("../fonts/playfair-display-latin-900-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("../fonts/archivo-latin-standard-normal.woff2") format("woff2-variations"),
       url("../fonts/archivo-latin-standard-normal.woff2") format("woff2");
}

:root {
  --encre: #0e2430;        /* fond : encre bleu pétrole */
  --encre-haute: #153342;  /* surfaces */
  --encre-basse: #0a1b24;  /* creux */
  --porcelaine: #f1ece3;   /* texte */
  --brume: #a5b7be;        /* texte secondaire */
  --ligne: rgba(241, 236, 227, 0.16);
  --totem: #63f3f0;        /* lumière des totems LED */
  --totem-halo: rgba(99, 243, 240, 0.42);

  --serif: "Playfair Display", "Times New Roman", serif;
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;

  --marge: clamp(1.25rem, 5vw, 4.5rem);
  --large: 78rem;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 4.5rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--encre);
  color: var(--porcelaine);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
@media (min-width: 60em) { body { font-size: 1.125rem; } }

img { display: block; max-width: 100%; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--totem); }

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

.evitement {
  position: absolute; left: 1rem; top: -4rem; z-index: 50;
  background: var(--porcelaine); color: var(--encre);
  padding: 0.6rem 1rem; text-decoration: none; font-weight: 600;
}
.evitement:focus { top: 1rem; }

/* ---------- Barre de navigation ---------- */
.barre {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.85rem var(--marge);
  transition: background-color 0.3s ease;
}
.barre.est-collee {
  background: rgba(14, 36, 48, 0.94);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--ligne);
}
.barre__nom {
  display: block; line-height: 0;
  opacity: 0; transition: opacity 0.3s ease;
}
.barre__nom img { height: 1.5rem; width: auto; }
.barre.est-collee .barre__nom { opacity: 1; }
.barre__nav { display: flex; gap: clamp(0.9rem, 2.2vw, 1.8rem); align-items: center; }
.barre__nav a {
  text-decoration: none; font-size: 0.95rem; font-weight: 500;
  color: var(--brume);
}
.barre__nav a:hover { color: var(--porcelaine); }
.barre__nav .barre__contact {
  color: var(--porcelaine);
  border: 1.5px solid var(--porcelaine); border-radius: 2px;
  padding: 0.3rem 0.8rem;
}
.barre__nav .barre__contact:hover { border-color: var(--totem); color: var(--totem); }
@media (max-width: 40em) {
  .barre__nav a:not(.barre__contact) { display: none; }
}

/* ---------- Ouverture ---------- */
.ouverture {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex; align-items: flex-end;
  padding: 7rem var(--marge) clamp(3rem, 8vh, 6rem);
  overflow: hidden;
}

/* Les 4 totems LED : ils se dressent derrière le nom, posés sur sa ligne de base */
.ouverture__scene { position: relative; margin-bottom: clamp(1.8rem, 4vh, 2.8rem); }
.totems {
  position: absolute; z-index: 0; pointer-events: none;
  left: 0; right: 0; bottom: -0.6rem; height: 62vh;
}
.totem {
  position: absolute; bottom: 0; top: 0;
  width: 3px; border-radius: 3px;
  background: linear-gradient(to bottom,
    transparent 0%, var(--totem) 50%, var(--totem) 100%);
  box-shadow: 0 0 10px var(--totem-halo), 0 0 36px var(--totem-halo), 0 0 90px rgba(99, 243, 240, 0.16);
  opacity: 0;
  animation: allumage 1.1s steps(1, end) forwards, respiration 7s ease-in-out 2.2s infinite;
}
/* reflet au sol */
.totem::after {
  content: ""; position: absolute; left: 50%; bottom: -1.1rem;
  width: 9rem; height: 2.2rem; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(99, 243, 240, 0.22), transparent);
}
.totem:nth-child(1) { left: 18%; animation-delay: 0.25s, 2.2s; }
.totem:nth-child(2) { left: 41%; animation-delay: 0.55s, 3.1s; }
.totem:nth-child(3) { left: 64%; animation-delay: 0.85s, 2.6s; }
.totem:nth-child(4) { left: 87%; animation-delay: 1.15s, 3.6s; }

@keyframes allumage {
  0%   { opacity: 0; }
  12%  { opacity: 0.9; }
  20%  { opacity: 0.1; }
  34%  { opacity: 1; }
  44%  { opacity: 0.35; }
  56%, 100% { opacity: 1; }
}
@keyframes respiration {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.72; }
}

.ouverture__contenu {
  position: relative; z-index: 1;
  width: 100%; max-width: calc(var(--large) - 2 * var(--marge)); margin: 0 auto;
}

.ouverture__titre { position: relative; z-index: 1; margin: 0; }
.ouverture__titre img { width: 100%; max-width: 70rem; height: auto; }

.ouverture__genre {
  font-size: clamp(1.3rem, 2.4vw, 1.75rem);
  font-weight: 600; font-variation-settings: "wdth" 88;
  margin-bottom: 0.4em;
}
.ouverture__pitch {
  max-width: 34em;
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  color: var(--brume);
  margin-bottom: 1.8em;
}
.ouverture__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 2.2rem; }
.ouverture__fans { font-size: 0.95rem; color: var(--brume); max-width: 40em; }

/* ---------- Boutons ---------- */
.bouton {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 2.9rem; padding: 0.7rem 1.35rem;
  border: 1.5px solid var(--porcelaine); border-radius: 2px;
  background: transparent; color: var(--porcelaine);
  font: inherit; font-weight: 600; font-size: 1rem; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.bouton:hover { border-color: var(--totem); color: var(--totem); }
.bouton--plein { background: var(--totem); border-color: var(--totem); color: var(--encre); }
.bouton--plein:hover { background: var(--porcelaine); border-color: var(--porcelaine); color: var(--encre); }
.bouton--petit { min-height: 2.4rem; padding: 0.45rem 1rem; font-size: 0.95rem; }

/* ---------- Sections ---------- */
.section {
  max-width: var(--large);
  margin: 0 auto;
  padding: clamp(4.5rem, 10vw, 8rem) var(--marge) 0;
}
.titre {
  margin: 0 0 0.6em;
  font-family: var(--serif); font-style: italic; font-weight: 900;
  font-size: clamp(2.6rem, 6.5vw, 4.75rem);
  line-height: 0.95;
  letter-spacing: -0.01em;
}
.chapo {
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  max-width: 36em;
  margin-bottom: 2.2rem;
}

/* ---------- Vidéos ---------- */
.videos {
  display: grid; gap: clamp(1.5rem, 3vw, 2.5rem);
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 60em) { .videos { grid-template-columns: 2fr 1fr; } }
.videos figure { margin: 0; }
.videos figcaption { margin-top: 0.8rem; color: var(--brume); font-size: 0.95rem; }
.legende-titre { color: var(--porcelaine); font-weight: 600; }

.video {
  position: relative; aspect-ratio: 16 / 9; width: 100%;
  background: var(--encre-basse);
  border: 1px solid var(--ligne);
  overflow: hidden;
}
.video__attente {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center; padding: 1rem; color: var(--brume); font-size: 0.95rem;
}
.video__attente-titre {
  font-family: var(--serif); font-style: italic; font-weight: 900;
  font-size: clamp(1.6rem, 3.5vw, 2.6rem); line-height: 1;
  color: var(--porcelaine); margin-bottom: 0.35em;
}
.videos__secondaire .video__attente-titre { font-size: clamp(1.4rem, 2.4vw, 1.8rem); }

.video__lancer {
  position: absolute; inset: 0; display: block; width: 100%; height: 100%;
  padding: 0; border: 0; background: var(--encre-basse); cursor: pointer;
}
.video__lancer img { position: absolute; inset: 0; }
.video__nom {
  position: absolute; left: 0; right: 0; top: 50%;
  margin-top: 3.2rem; text-align: center;
  font-family: var(--serif); font-style: italic; font-weight: 900;
  font-size: clamp(1.4rem, 3vw, 2.2rem); color: var(--porcelaine);
}
.videos__secondaire .video__nom { margin-top: 2.4rem; font-size: clamp(1.2rem, 2vw, 1.6rem); }
.video__lancer.a-vignette .video__nom { display: none; }
.video__lancer:not(.a-vignette) img { opacity: 0; }
.video__lancer img { width: 100%; height: 100%; object-fit: cover; opacity: 0.88; transition: opacity 0.2s ease; }
.video__lancer:hover img { opacity: 1; }
.video__lancer::after {
  z-index: 1;
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 4.5rem; height: 4.5rem; margin: -2.25rem 0 0 -2.25rem;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 6.5v11l9-5.5z' fill='%230e2430'/%3E%3C/svg%3E") center / 55% no-repeat,
    var(--totem);
  box-shadow: 0 0 0 6px rgba(14, 36, 48, 0.35), 0 0 30px var(--totem-halo);
}
.videos__secondaire .video__lancer::after {
  z-index: 1; width: 3.4rem; height: 3.4rem; margin: -1.7rem 0 0 -1.7rem; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.ecouter {
  list-style: none; margin: 2rem 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 0.6rem 1.6rem;
  font-weight: 600;
}

/* ---------- Photos (emplacements) ---------- */
.photo-slot { position: relative; margin: 0; }
.photo-slot img { width: 100%; height: 100%; object-fit: cover; }
.photo-slot__vide {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 1rem; color: var(--brume); font-size: 0.9rem;
  background:
    repeating-linear-gradient(135deg, transparent 0 14px, rgba(241, 236, 227, 0.035) 14px 15px),
    var(--encre-basse);
  border: 1px dashed var(--ligne);
}
.photo-slot.est-chargee .photo-slot__vide { display: none; }

.bandeau {
  margin-top: clamp(4.5rem, 10vw, 8rem);
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.bandeau img { object-position: 50% 45%; }
@media (min-width: 45em) { .bandeau { aspect-ratio: 21 / 9; } }

/* ---------- Bio ---------- */
.bio {
  display: grid; gap: clamp(2rem, 5vw, 5rem);
  grid-template-columns: 1fr;
}
@media (min-width: 60em) { .bio { grid-template-columns: 5fr 7fr; } }
.bio__citation {
  margin: 0;
  font-family: var(--serif); font-style: italic; font-weight: 900;
  font-size: clamp(1.75rem, 3.4vw, 2.75rem);
  line-height: 1.12;
}
.bio__citation p { margin: 0; }
.bio__texte { max-width: 38em; }
.bio__texte #bio-texte { margin-bottom: 1.5rem; }
.bio__texte #bio-texte p:last-child { color: var(--brume); }

.trio {
  margin-top: clamp(3rem, 6vw, 4.5rem);
  padding-top: 2rem;
  border-top: 1px solid var(--ligne);
  display: grid; gap: 1.5rem 3rem;
  grid-template-columns: 1fr;
  align-items: end;
}
@media (min-width: 60em) { .trio { grid-template-columns: auto 1fr; } }
.trio__liste { display: flex; flex-wrap: wrap; gap: 1.2rem clamp(2rem, 5vw, 4rem); margin: 0; }
.trio__liste dt {
  font-family: var(--serif); font-style: italic; font-weight: 900;
  font-size: clamp(2rem, 3.6vw, 2.75rem); line-height: 1;
}
.trio__liste dd { margin: 0.3rem 0 0; color: var(--brume); }
.trio__note { max-width: 32em; color: var(--brume); }

/* ---------- Sur scène ---------- */
.fiche { margin: 0; border-top: 1px solid var(--ligne); }
.fiche__ligne {
  display: grid; grid-template-columns: 1fr; gap: 0.25rem 2rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--ligne);
}
@media (min-width: 45em) { .fiche__ligne { grid-template-columns: 13rem 1fr; } }
.fiche dt {
  font-weight: 700; font-variation-settings: "wdth" 78;
  font-size: 1.2rem; line-height: 1.3;
}
.fiche dd { margin: 0; max-width: 40em; color: var(--brume); }
.fiche__suite { margin-top: 1.6rem; color: var(--brume); }
.fiche__suite .lien-fichier { color: var(--porcelaine); font-weight: 600; margin-left: 0.35em; }

/* ---------- Frise ---------- */
.frise {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: 1fr; gap: 0;
}
.frise__etape {
  position: relative;
  padding: 0 0 2rem 2rem;
  border-left: 2px solid var(--ligne);
}
.frise__etape::before {
  content: ""; position: absolute; left: -7px; top: 0.35rem;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--brume);
}
.frise__etape--forte::before {
  background: var(--totem);
  box-shadow: 0 0 0 4px rgba(99, 243, 240, 0.15), 0 0 18px var(--totem-halo);
}
.frise__etape:nth-child(n+3)::before { background: var(--encre); border: 2px solid var(--brume); }
.frise__date {
  font-weight: 700; font-variation-settings: "wdth" 78;
  font-size: 1.2rem; margin-bottom: 0.25rem;
}
.frise__etape--forte .frise__date { color: var(--totem); }
.frise__etape p:not(.frise__date) { color: var(--brume); max-width: 22em; }

@media (min-width: 60em) {
  .frise { grid-template-columns: repeat(4, 1fr); gap: 2rem; }
  .frise__etape { padding: 1.8rem 0 0; border-left: 0; border-top: 2px solid var(--ligne); }
  .frise__etape::before { left: 0; top: -7px; }
}

/* ---------- Kit presse ---------- */
.photos {
  display: grid; gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 45em) { .photos { grid-template-columns: repeat(2, 1fr); } }
.photo .photo-slot__vide { position: relative; aspect-ratio: 4 / 3; }
.photo > img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 30%; }
.photo figcaption { margin-top: 0.6rem; font-size: 0.95rem; }
.photo figcaption .lien-fichier { font-weight: 600; }
.photo.est-absente[data-facultatif] { display: none; }
.credit { margin-top: 1rem; color: var(--brume); font-size: 0.9rem; }

.documents {
  list-style: none; margin: 3rem 0 0; padding: 0;
  border-top: 1px solid var(--ligne);
}
.document {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  width: 100%;
  padding: 1.1rem 0.25rem;
  border: 0; border-bottom: 1px solid var(--ligne);
  background: none; color: var(--porcelaine);
  font: inherit; text-align: left; text-decoration: none; cursor: pointer;
}
.document:hover { color: var(--totem); }
.document__nom { font-size: clamp(1.15rem, 2vw, 1.4rem); font-weight: 600; font-variation-settings: "wdth" 90; }
.document__type { color: var(--brume); font-size: 0.95rem; white-space: nowrap; }
.document:hover .document__type { color: var(--totem); }

/* Fichier pas encore déposé */
.lien-fichier.est-absent { pointer-events: none; cursor: default; color: var(--brume); text-decoration: none; }
.lien-fichier.est-absent:not(.document)::after { content: " (bientôt)"; }
.document.est-absent .document__nom { color: var(--brume); font-weight: 500; }

/* ---------- Contact ---------- */
.section--contact { padding-bottom: clamp(4rem, 8vw, 6rem); }
.contact {
  display: grid; gap: 2.5rem 4rem; grid-template-columns: 1fr;
  align-items: end;
}
@media (min-width: 60em) { .contact { grid-template-columns: 1fr auto; } }
.contact__role { color: var(--brume); margin-bottom: 0.2rem; }
.contact__nom {
  font-family: var(--serif); font-style: italic; font-weight: 900;
  font-size: clamp(2rem, 4vw, 3rem); line-height: 1; margin-bottom: 0.5rem;
}
.contact__mail, .contact__tel {
  font-size: clamp(1.2rem, 3vw, 2rem); font-weight: 600;
  font-variation-settings: "wdth" 90;
  overflow-wrap: anywhere;
}
.contact__lieu { margin-top: 1.2rem; color: var(--brume); }
.contact__reseaux {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; font-weight: 600;
}

/* ---------- Pied ---------- */
.pied {
  padding: 2rem 0 2.5rem;
  border-top: 1px solid var(--ligne);
  color: var(--brume); font-size: 0.9rem;
}
.pied p { max-width: var(--large); margin: 0 auto; padding: 0 var(--marge); }

/* ---------- Annonce (copie de la bio) ---------- */
.annonce {
  position: fixed; left: 50%; bottom: 1.5rem; z-index: 30;
  transform: translate(-50%, 1rem);
  background: var(--porcelaine); color: var(--encre);
  padding: 0.7rem 1.2rem; border-radius: 2px; font-weight: 600;
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.annonce.est-visible { opacity: 1; transform: translate(-50%, 0); }

/* Éléments masqués tant qu'un lien n'est pas renseigné */
[hidden] { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .totem { animation: none; opacity: 1; }
  .annonce, .barre, .barre__nom { transition: none; }
}
