/* Vinzi Studio : page d'accueil façon plateforme de streaming.
   Couleurs et typographie : voir CHARTE-DEDUITE.md (propositions à valider). */

/* Fond « Gris braise », choisi par Vinzi le 21/10/2026. */
:root {
  --fond: #151011;
  --halo: #3e1c1b;
  --surface: #231819;
  --surface-2: #2c1e1e;
  --rouge: #a92824;
  --rouge-profond: #8c211e;
  --rouge-ombre: #701d1b;
  --texte: #ffffff;
  --texte-2: #b5acaa;
  --marge: 4vw;
  --ecart: 0.5vw;
  --entete: 68px;
  --police: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  /* Comme chez Netflix : un gris très sombre, éclairé par un halo teinté qui part du haut de la page
     et s'efface en descendant ; il déborde autour de la bannière. */
  background:
    radial-gradient(150% 1150px at 50% 0, var(--halo) 18%, rgba(0, 0, 0, 0) 66%) no-repeat,
    var(--fond);
  transition: background-color 0.4s;
  color: var(--texte);
  font-family: var(--police);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.fige { overflow: hidden; }
img { display: block; }
button { font-family: inherit; }
svg { display: block; }

/* ---------- En-tête ---------- */

.entete {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--entete);
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 var(--marge);
  z-index: 50;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.75) 10%, rgba(0, 0, 0, 0));
  transition: background-color 0.4s;
}
.entete.opaque { background-color: var(--fond); }

.marque {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--texte);
  text-decoration: none;
  flex-shrink: 0;
}
.marque img { height: 26px; width: auto; }

/* Pastille rouge derrière le symbole seul, le nom reste à côté. Choisie par Vinzi le 21/10/2026.
   Le symbole reste blanc sur rouge, comme sur la carte de visite. */
/* La pastille commence pile sur le bord gauche de la bannière : rien ne dépasse de sa largeur. */
.marque { position: relative; gap: 18px; padding-left: 10px; }
.marque img, .marque-nom { position: relative; z-index: 1; }
.marque::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 53px;
  height: 46px;
  transform: translateY(-50%);
  border-radius: 10px;
  background: linear-gradient(135deg, var(--rouge) 0%, var(--rouge-profond) 100%);
  box-shadow: 0 6px 24px rgba(169, 40, 36, 0.5);
  pointer-events: none;
}
.marque-nom, .pied-nom {
  font-size: 17px;
  font-weight: 300;
  letter-spacing: 0.06em;
}
.marque-nom b, .pied-nom b { font-weight: 700; }

.nav-liens {
  display: flex;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-liens a {
  display: block;
  padding: 8px 13px;
  border-radius: 999px;
  color: #e5e5e5;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.3s;
}
.nav-liens a:hover { color: var(--texte-2); }
.nav-liens a.actif {
  background: rgba(255, 255, 255, 0.16);
  color: var(--texte);
  font-weight: 600;
}

/* Boutons décoratifs du menu : au survol, une pastille rouge explique pourquoi ils ne mènent nulle part
   (pastille choisie par Vinzi le 21/10/2026). */
.nav-liens li[data-bulle] { position: relative; }
.nav-liens li[data-bulle] a { cursor: default; }
.nav-liens li[data-bulle]::after,
.nav-liens li[data-bulle]::before {
  position: absolute;
  left: 50%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
}
.nav-liens li[data-bulle]::after {
  content: attr(data-bulle);
  top: calc(100% + 12px);
  transform: translate(-50%, -4px);
  padding: 8px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--rouge) 0%, var(--rouge-profond) 100%);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 6px 22px rgba(169, 40, 36, 0.5);
}
/* Icône de téléphone blanche en fin de message (à la place d'un emoji, qui garde ses propres couleurs). */
.nav-liens li[data-bulle-icone="telephone"]::after {
  padding-right: 36px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M5 3h4l2 5-2.5 1.5a11 11 0 0 0 6 6L16 13l5 2v4a2 2 0 0 1-2 2A16 16 0 0 1 3 5a2 2 0 0 1 2-2Z'/%3E%3C/svg%3E") right 14px center / 15px no-repeat,
    linear-gradient(135deg, var(--rouge) 0%, var(--rouge-profond) 100%);
}
/* Petite pointe de la pastille. */
.nav-liens li[data-bulle]::before {
  content: "";
  top: calc(100% + 6px);
  transform: translate(-50%, -4px) rotate(45deg);
  width: 12px;
  height: 12px;
  border-radius: 2px;
  background: var(--rouge);
}
.nav-liens li[data-bulle]:hover::after,
.nav-liens li[data-bulle]:focus-within::after {
  opacity: 1;
  transform: translate(-50%, 0);
  transition-delay: 0.1s;
}
.nav-liens li[data-bulle]:hover::before,
.nav-liens li[data-bulle]:focus-within::before {
  opacity: 1;
  transform: translate(-50%, 0) rotate(45deg);
  transition-delay: 0.1s;
}

/* Le bouton fait « non » de la tête, la pastille arrive juste après (effet choisi par Vinzi le 21/10/2026). */
.nav-liens li[data-bulle]:hover a,
.nav-liens li[data-bulle] a.refuse { animation: refuse 0.45s ease-in-out; }
.nav-liens li[data-bulle]:hover::after,
.nav-liens li[data-bulle]:hover::before { transition-delay: 0.3s; }
@keyframes refuse {
  0%, 100% { transform: translateX(0); }
  15% { transform: translateX(-5px); }
  30% { transform: translateX(5px); }
  45% { transform: translateX(-4px); }
  60% { transform: translateX(3px); }
  75% { transform: translateX(-2px); }
}
.nav-parcourir {
  display: none;
  background: none;
  border: 0;
  color: var(--texte);
  font-size: 14px;
  font-weight: 600;
}

.outils {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 20px;
}
.outil, .profil {
  background: none;
  border: 0;
  color: var(--texte);
  cursor: pointer;
  padding: 0;
}
.outil svg { width: 22px; height: 22px; }

/* Loupe et cloche : même principe que les boutons du menu (l'icône fait « non », puis la pastille rouge).
   La pastille est alignée à droite pour ne pas sortir de l'écran. */
.outil[data-bulle] { position: relative; cursor: default; }
.outil[data-bulle]::after,
.outil[data-bulle]::before {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
}
.outil[data-bulle]::after {
  content: attr(data-bulle);
  top: calc(100% + 14px);
  right: -14px;
  transform: translateY(-4px);
  padding: 8px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--rouge) 0%, var(--rouge-profond) 100%);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 6px 22px rgba(169, 40, 36, 0.5);
}
.outil[data-bulle]::before {
  content: "";
  top: calc(100% + 8px);
  left: 50%;
  width: 12px;
  height: 12px;
  border-radius: 2px;
  background: var(--rouge);
  transform: translate(-50%, -4px) rotate(45deg);
}
/* .montre : affichage au toucher, posé par le script sur les écrans tactiles. */
.outil[data-bulle]:hover::after,
.outil[data-bulle].montre::after {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.3s;
}
.outil[data-bulle]:hover::before,
.outil[data-bulle].montre::before {
  opacity: 1;
  transform: translate(-50%, 0) rotate(45deg);
  transition-delay: 0.3s;
}
.outil[data-bulle]:hover svg,
.outil[data-bulle].refuse svg { animation: refuse 0.45s ease-in-out; }
.profil { display: flex; align-items: center; gap: 8px; }
.avatar {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  background: var(--rouge);
  display: grid;
  place-items: center;
}
.avatar img { width: 20px; height: auto; }
.profil-fleche svg { width: 10px; height: 10px; transition: transform 0.3s; }
.profil:hover .profil-fleche svg,
.profil[aria-expanded="true"] .profil-fleche svg { transform: rotate(180deg); }

/* Menu de l'avatar : pour contacter Vincent, le numéro s'affiche au clic. */
.outils { position: relative; }
.menu-profil {
  position: absolute;
  top: calc(100% + 18px);
  right: 0;
  z-index: 70;
  width: 270px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(21, 16, 17, 0.97);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
  animation: entree 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.menu-profil::before {
  content: "";
  position: absolute;
  top: -7px;
  right: 30px;
  width: 12px;
  height: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  background: rgb(21, 16, 17);
  transform: rotate(45deg);
}
.menu-profil-tete { display: flex; align-items: center; gap: 12px; }
.menu-profil-tete b { display: block; font-size: 15px; }
.menu-profil-tete span:not(.avatar) { font-size: 12px; color: var(--texte-2); }
.menu-profil-texte { margin: 14px 0 12px; font-size: 14px; }
.menu-profil .bouton-tel, .menu-profil .lien-tel { width: 100%; justify-content: center; }

.bouton-tel, .lien-tel {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}
.bouton-tel {
  border: 0;
  background: var(--rouge);
  color: #fff;
  cursor: pointer;
  transition: background-color 0.2s;
}
.bouton-tel:hover { background: var(--rouge-profond); }
.lien-tel {
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  font-size: 16px;
  letter-spacing: 0.04em;
}
.lien-tel:hover { border-color: #fff; }
.bouton-tel svg, .lien-tel svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ---------- Bannière ---------- */

/* Comme chez Netflix : une carte aux coins arrondis, avec une marge de chaque côté,
   au même format que la sienne (2,18 fois plus large que haute, mesuré sur netflix.com).
   La vidéo en 16/9 remplit toute la largeur et reste centrée : le haut et le bas sont
   rognés à parts égales (environ 9 % chacun), sans bande noire (choix de Vinzi). */
.hero {
  position: relative;
  margin: calc(var(--entete) + 20px) var(--marge) 0;
  width: calc(100% - 2 * var(--marge));
  aspect-ratio: 2.18;
  border-radius: 24px;
  overflow: hidden;
  isolation: isolate;
  background: #0d0a0a;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.hero-media {
  position: absolute;
  inset: 0;
  container-type: size;
}
/* En attendant la vidéo : le symbole du logo en grand, rouge sombre sur noir, comme sur la carte de visite. */
.hero-motif {
  position: absolute;
  top: -18%;
  right: -6%;
  width: 78%;
  height: 130%;
  background: var(--rouge-ombre);
  -webkit-mask: url("../assets/logo-vinzistudio.png") center / contain no-repeat;
  mask: url("../assets/logo-vinzistudio.png") center / contain no-repeat;
  opacity: 0.55;
  animation: lent-zoom 24s ease-in-out infinite alternate;
}
.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: max(100cqw, 177.78cqh);
  height: max(100cqh, 56.25cqw);
  transform: translate(-50%, -50%);
  border: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.2s;
}
.hero.joue .hero-video { opacity: 1; }
.hero.joue .hero-motif { opacity: 0; transition: opacity 1.2s; }
@keyframes lent-zoom { from { transform: scale(1); } to { transform: scale(1.08); } }

.hero-ombre {
  position: absolute;
  inset: 0;
  /* Assez sombre à gauche pour garder le titre lisible même sur une image très claire. */
  background:
    linear-gradient(77deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.5) 34%, rgba(0, 0, 0, 0) 64%),
    linear-gradient(180deg, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, 0.5) 100%);
}

.hero-contenu {
  position: absolute;
  left: clamp(24px, 2.8vw, 48px);
  bottom: clamp(24px, 6%, 56px);
  width: min(46%, 620px);
}
/* Titre de la bannière (« Bande démo ») : grandes capitales fines et espacées, sous le logo. */
.hero-titre {
  margin: 0 0 0.45em;
  font-size: clamp(20px, 2.7vw, 52px);
  font-weight: 300;
  line-height: 0.9;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
  margin: 0;
  font-size: clamp(13px, 1.05vw, 16px);
  font-weight: 600;
}
.hero-meta span + span::before { content: "•"; margin-right: 0.5em; color: var(--texte-2); }
.hero-desc {
  max-width: 34em;
  margin: 0.9em 0 1.5em;
  font-size: clamp(14px, 1.15vw, 18px);
  line-height: 1.45;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.boutons { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  border: 0;
  border-radius: 999px;
  padding: 0.65em 1.5em 0.65em 1.2em;
  font-size: clamp(14px, 1.2vw, 18px);
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s;
}
.btn svg { width: 1.35em; height: 1.35em; }
.btn-blanc { background: #fff; color: #000; }
.btn-blanc:hover { background: rgba(255, 255, 255, 0.78); }
.btn-gris { background: rgba(109, 109, 110, 0.7); color: #fff; }
.btn-gris:hover { background: rgba(109, 109, 110, 0.45); }

.hero-cote {
  position: absolute;
  right: clamp(20px, 2.2vw, 40px);
  bottom: clamp(24px, 6%, 56px);
  display: flex;
  align-items: center;
  gap: 14px;
}
.rond-son {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(0, 0, 0, 0.2);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background-color 0.2s;
}
.rond-son:hover { background: rgba(255, 255, 255, 0.12); }
.rond-son svg { width: 20px; height: 20px; }
/* Sur écran tactile, ces boutons ne peuvent pas donner le son (iPhone l'exige d'un toucher sur la vidéo) :
   on les cache. Dans le lecteur, une mention invite à toucher l'image. */
@media (hover: none) { .rond-son { display: none; } }
.hero-etiquette {
  padding: 0.55em 1.2em 0.55em 0.9em;
  border-radius: 8px;
  border-left: 3px solid var(--rouge);
  background: rgba(40, 33, 33, 0.65);
  font-size: clamp(12px, 1vw, 15px);
  font-weight: 500;
}

/* ---------- Rangées ---------- */

.catalogue {
  position: relative;
  z-index: 2;
  margin-top: clamp(24px, 2.4vw, 40px);
  padding-bottom: 4vw;
}
.rangee { margin-bottom: 3vw; }
.rangee h2 {
  margin: 0 var(--marge) 0.55em;
  font-size: clamp(16px, 1.4vw, 22px);
  font-weight: 700;
}
.rangee-cadre {
  position: relative;
  container-type: inline-size;
  --par-ligne: 6;
  --l-carte: calc((100cqw - 2 * var(--marge) - (var(--par-ligne) - 1) * var(--ecart)) / var(--par-ligne));
}
.piste {
  display: flex;
  gap: var(--ecart);
  padding: 0 var(--marge);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 var(--marge);
  scrollbar-width: none;
}
.piste::-webkit-scrollbar { display: none; }

.fleche {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 3;
  width: calc(var(--marge) - var(--ecart));
  border: 0;
  background: rgba(14, 11, 11, 0.55);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.25s, background-color 0.25s;
}
.fleche svg { width: 60%; max-width: 34px; height: auto; transition: transform 0.2s; }
.fleche:hover { background: rgba(14, 11, 11, 0.8); }
.fleche:hover svg { transform: scale(1.25); }
.fleche.gauche { left: 0; }
.fleche.droite { right: 0; }
.rangee-cadre:hover .fleche:not(:disabled) { opacity: 1; }
.fleche:disabled { pointer-events: none; }

.carte {
  position: relative;
  flex: 0 0 var(--l-carte);
  aspect-ratio: 16 / 9;
  border-radius: 4px;
  overflow: hidden;
  background: var(--surface);
  cursor: pointer;
  scroll-snap-align: start;
  outline-offset: 3px;
}
.carte img { width: 100%; height: 100%; object-fit: cover; }
.carte::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0) 58%);
}
.carte-titre, .apercu-titre {
  position: absolute;
  left: 7%;
  right: 7%;
  bottom: 11%;
  z-index: 1;
  font-size: clamp(12px, 1.12vw, 18px);
  font-weight: 800;
  line-height: 1.05;
  text-transform: uppercase;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}
.carte:focus-visible { outline: 2px solid #fff; }
/* Film à venir (pas encore de vidéo) : fond aux couleurs du site au lieu d'une vignette. */
.carte.a-venir,
.modale-media.a-venir {
  background: radial-gradient(120% 140% at 15% 0%, var(--halo) 0%, var(--surface) 55%, var(--fond) 100%);
}
.carte.a-venir .carte-titre { font-size: clamp(22px, 2.4vw, 40px); }
.a-venir-mention {
  position: absolute;
  left: 7%;
  top: 12%;
  font-size: clamp(9px, 0.75vw, 12px);
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--rouge);
}
.modale-titre-bloc .a-venir-mention { position: static; display: block; font-size: 13px; }
/* Avec la pastille « Nouveau », le titre remonte pour ne pas passer dessous. */
.carte:has(.badge-nouveau) .carte-titre { bottom: calc(11% + 14px); }

.badge-top {
  position: absolute;
  top: 0;
  right: 6px;
  z-index: 1;
  width: 24px;
  padding: 3px 0 9px;
  background: var(--rouge);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 82%, 0 100%);
  text-align: center;
  font-size: 7px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.04em;
}
.badge-top b { display: block; font-size: 12px; font-weight: 800; letter-spacing: -0.02em; }
.badge-nouveau {
  position: absolute;
  left: 50%;
  bottom: 0;
  z-index: 1;
  transform: translateX(-50%);
  padding: 3px 9px 2px;
  border-radius: 3px 3px 0 0;
  background: var(--rouge);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

/* Top 10 : grands chiffres détourés et affiches verticales, à la manière de Netflix.
   Proportions relevées sur des captures de netflix.com, en fraction de la hauteur de l'affiche (--h) :
   un rang tous les 1,45 ; affiche de 0,69 de large, un peu plus haute qu'une vignette 16/9 ; chiffre
   de la hauteur de l'affiche, centré 0,12 avant le bord gauche de l'affiche, qui en recouvre la droite.
   Un chiffre étroit (1) dépasse donc moins qu'un chiffre large (10). */
.carte-top {
  --h: calc(var(--l-carte) * 0.6);
  --avant: calc(var(--h) * 0.53);
  --apres: calc(var(--h) * 0.23 - var(--ecart));
  position: relative;
  flex: 0 0 calc(var(--avant) + var(--h) * 0.69 + var(--apres));
  height: var(--h);
  padding-right: var(--apres);
  display: flex;
  align-items: flex-end;
  scroll-snap-align: start;
  cursor: pointer;
}
/* Chiffres du Top 10 fournis par Vinzi Studio (voir js/chiffres-top.js) : seul le liseré gris est
   tracé, l'intérieur reste vide pour laisser voir le fond. */
.rang {
  --contour-top: #595959;
  position: absolute;
  left: calc(var(--avant) - var(--h) * 0.12);
  bottom: 0;
  transform: translateX(-50%);
  height: 100%;
  width: auto;
  overflow: visible;
  user-select: none;
}
.rang path { fill-rule: evenodd; }
.rang-contour { fill: var(--contour-top); }
.rang-dix path { fill: none; stroke: var(--contour-top); stroke-linejoin: miter; }
.rang-dix .masque-zero { fill: #000; fill-rule: nonzero; stroke: #000; }
/* Dégradé d'ombre devant l'affiche : le liseré s'éteint en approchant de son bord gauche. */
.carte-top::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: calc(var(--h) * 0.69 + var(--apres));
  width: calc(var(--h) * 0.26);
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--fond) 85%, transparent));
  pointer-events: none;
}
.affiche {
  position: relative;
  margin-left: auto;
  aspect-ratio: 0.69;
  height: 100%;
  border-radius: 6px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 0 calc(var(--h) * 0.04) rgba(0, 0, 0, 0.5);
}
.affiche img { width: 100%; height: 100%; object-fit: cover; }
.affiche::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0) 50%);
}
.affiche .carte-titre { font-size: clamp(10px, 0.95vw, 15px); bottom: 7%; }
.carte-top:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* ---------- Aperçu au survol ---------- */

.apercu {
  position: absolute;
  z-index: 60;
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface-2);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.65);
  opacity: 0;
  transform: scale(0.66);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.22s;
}
.apercu.visible { opacity: 1; transform: scale(1); }
.apercu-media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  cursor: pointer;
  overflow: hidden;
}
.apercu-media img,
.apercu-media iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}
.apercu-media iframe { opacity: 0; pointer-events: none; transition: opacity 0.6s; }
.apercu-media.joue iframe { opacity: 1; }
.apercu-media.joue .apercu-titre { opacity: 0; transition: opacity 0.6s 1.5s; }
.apercu-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0) 45%);
  pointer-events: none;
}
.apercu-titre { font-size: 18px; }
.apercu-son {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: rgba(0, 0, 0, 0.3);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.apercu-son svg { width: 16px; height: 16px; }
.apercu-infos { padding: 14px 16px 18px; }
.apercu-boutons { display: flex; gap: 8px; align-items: center; }
.rond {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.5);
  background: rgba(42, 42, 42, 0.6);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
}
.rond:hover { border-color: #fff; background: rgba(255, 255, 255, 0.1); }
.rond svg { width: 20px; height: 20px; }
.rond.plein { background: #fff; border-color: #fff; color: #000; }
.rond.plein:hover { background: rgba(255, 255, 255, 0.8); }
.rond.pousse { margin-left: auto; }
.apercu-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 13px;
  color: var(--texte-2);
}
.cadre-txt {
  padding: 0 5px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 3px;
  font-size: 10px;
  font-weight: 600;
  line-height: 16px;
  color: #ddd;
}
.nouveau-txt { color: #fff; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.nouveau-txt::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--rouge); }
.apercu-tags { margin: 10px 0 0; font-size: 13px; }
.apercu-tags span + span::before { content: "•"; margin: 0 0.55em; color: #6f6767; }

/* ---------- Lecteur plein écran ---------- */

.lecteur {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 64px 48px 40px;
  background: rgba(0, 0, 0, 0.86);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  animation: fondu 0.25s ease-out;
}
.lecteur-cadre {
  position: relative;
  width: min(100%, calc((100vh - 104px) * 16 / 9));
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  background: #000;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8);
  animation: entree 0.32s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.lecteur-cadre iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 10px;
}
/* Gros bouton rond, à cheval sur le coin haut droit de la fenêtre. */
.lecteur-fermer {
  position: absolute;
  top: -26px;
  right: -26px;
  z-index: 2;
  width: 56px;
  height: 56px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #000;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
  cursor: pointer;
  transition: transform 0.2s, background-color 0.2s;
}
.lecteur-fermer:hover { transform: scale(1.08); background: #e8e8e8; }
.lecteur-fermer svg { width: 26px; height: 26px; }
@keyframes fondu { from { opacity: 0; } }

/* Zone cliquable sur l'image : pause / lecture. Un léger dégradé en bas garde la barre lisible. */
/* Écran tactile : le toucher traverse le calque jusqu'au lecteur Vimeo (seul moyen d'avoir le son sur iPhone).
   Une petite mention invite à toucher l'image, puis disparaît une fois le son activé. */
.lecteur.toucher .lecteur-clic { pointer-events: none; }
.lecteur.toucher:not(.son-actif) .lecteur-cadre::after {
  content: "Touchez l'image pour le son";
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.6);
  font-size: 13px;
  white-space: nowrap;
  pointer-events: none;
}
.lecteur-clic {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: 10px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 16%);
  cursor: pointer;
  transition: background-color 0.3s;
}
.lecteur.calme .lecteur-clic { background: none; cursor: none; }
/* En pause : un grand bouton lecture au centre. */
.lecteur.en-pause .lecteur-clic::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M8 5.5v13a1 1 0 0 0 1.5.86l10.4-6.5a1 1 0 0 0 0-1.72L9.5 4.64A1 1 0 0 0 8 5.5Z'/%3E%3C/svg%3E") center / 40px no-repeat,
    rgba(0, 0, 0, 0.5);
}

/* Barre de lecture aux couleurs du site : piste claire, progression rouge, pastille blanche au survol. */
.lecteur-barre {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 12px;
  z-index: 2;
  height: 20px;
  display: flex;
  align-items: center;
  cursor: pointer;
  touch-action: none;
  outline-offset: 4px;
  transition: opacity 0.3s;
}
.lecteur-barre::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.3);
  transition: height 0.15s;
}
.lecteur-barre-remplie {
  position: relative;
  width: 0;
  height: 4px;
  border-radius: 2px;
  background: var(--rouge);
  transition: height 0.15s;
}
.lecteur-barre-remplie::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -7px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
  transform: translateY(-50%) scale(0);
  transition: transform 0.15s;
}
.lecteur-barre:hover::before,
.lecteur-barre:hover .lecteur-barre-remplie { height: 6px; }
.lecteur-barre:hover .lecteur-barre-remplie::after,
.lecteur-barre:focus-visible .lecteur-barre-remplie::after { transform: translateY(-50%) scale(1); }
.lecteur.calme .lecteur-barre { opacity: 0; }

/* ---------- Fenêtre « Plus d'infos » ---------- */

.modale-fond {
  position: fixed;
  inset: 0;
  z-index: 80;
  overflow-y: auto;
  display: flex;
  justify-content: center;
  padding: 32px 16px;
  background: rgba(0, 0, 0, 0.72);
}
.modale {
  position: relative;
  align-self: flex-start;
  width: min(880px, 100%);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
  animation: entree 0.32s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes entree { from { opacity: 0; transform: translateY(24px) scale(0.97); } }
.modale-fermer {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 3;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: var(--surface);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.modale-fermer svg { width: 20px; height: 20px; }
.modale-media { position: relative; aspect-ratio: 16 / 9; }
.modale-media img,
.modale-media iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.modale-media iframe { opacity: 0; pointer-events: none; transition: opacity 0.6s; }
.modale-media.joue iframe { opacity: 1; }
.modale-son { position: absolute; right: 48px; bottom: 36px; z-index: 1; }
.modale-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, var(--surface) 0%, rgba(0, 0, 0, 0) 50%);
}
.modale-titre-bloc { position: absolute; left: 48px; right: 48px; bottom: 36px; z-index: 1; }
.modale-titre-bloc h3 {
  margin: 0 0 0.45em;
  font-size: clamp(26px, 4vw, 46px);
  font-weight: 800;
  line-height: 0.95;
  text-transform: uppercase;
}
.modale-corps {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
  padding: 4px 48px 28px;
}
.modale-corps .meta { display: flex; gap: 10px; align-items: center; margin: 0 0 14px; color: var(--texte-2); }
.modale-corps .desc { margin: 0; line-height: 1.55; }
.modale-corps .a-venir { color: var(--texte-2); font-style: italic; }
.modale-corps dl { margin: 0; font-size: 14px; line-height: 1.5; }
.modale-corps dt { display: inline; color: #8a8080; }
.modale-corps dd { display: inline; margin: 0; }
.modale-corps dd::after { content: ""; display: block; margin-bottom: 8px; }
.modale h4 { margin: 0 48px 16px; font-size: 22px; font-weight: 700; }
.grille {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  padding: 0 48px 48px;
}
.mini {
  border-radius: 6px;
  overflow: hidden;
  background: var(--surface-2);
  cursor: pointer;
  border: 0;
  padding: 0;
  color: inherit;
  text-align: left;
}
.mini img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.mini-corps { padding: 12px 14px 16px; }
.mini-corps b { display: block; font-size: 14px; margin-bottom: 4px; }
.mini-corps span { font-size: 13px; color: var(--texte-2); }
.mini:hover { filter: brightness(1.25); }

/* ---------- Pied de page ---------- */

.pied {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 28px;
  padding: 40px var(--marge) 56px;
  border-top: 1px solid #241d1d;
  color: var(--texte-2);
  font-size: 13px;
}
.pied p { margin: 0; }
.pied-logo { height: 34px; width: auto; }
.pied-nom { color: var(--texte); margin-bottom: 4px !important; }
.pied-copy { margin-left: auto !important; }
.pied a { color: var(--texte); text-decoration: none; border-bottom: 1px solid var(--rouge); }

/* ---------- Écrans plus petits ---------- */

@media (max-width: 1280px) { .nav-liens li:nth-child(n + 6) { display: none; } }
@media (max-width: 1100px) {
  .rangee-cadre { --par-ligne: 5; }
  .hero-contenu { width: min(60%, 560px); }
}
@media (max-width: 960px) {
  .nav-liens { display: none; }
  .nav-parcourir { display: block; }
  .hero-desc { display: none; }
}
@media (max-width: 800px) {
  .rangee-cadre { --par-ligne: 3.3; --ecart: 6px; }
  .hero-contenu { width: calc(100% - 48px); }
  .hero-cote { top: 16px; bottom: auto; right: 16px; }
  .hero-etiquette { display: none; }
  .modale-corps { grid-template-columns: 1fr; padding: 4px 24px 24px; }
  .modale-titre-bloc { left: 24px; right: 24px; bottom: 20px; }
  .modale h4 { margin: 0 24px 16px; }
  .grille { padding: 0 24px 32px; }
  .lecteur { padding: 72px 12px 24px; }
  .lecteur-fermer { top: -64px; right: 0; }
}
@media (max-width: 560px) {
  :root { --entete: 56px; }
  .rangee-cadre { --par-ligne: 2.3; }
  .marque-nom { display: none; }
  /* Sur téléphone, la pastille de la loupe et de la cloche se cale sous le menu, sur la marge droite. */
  .outil[data-bulle]::after {
    position: fixed;
    top: calc(var(--entete) + 4px);
    right: var(--marge);
    max-width: calc(100vw - 2 * var(--marge));
    white-space: normal;
    text-align: center;
  }
  .outil[data-bulle]::before { display: none; }
  .outils { gap: 14px; }
  /* Sur téléphone : la vidéo seule en 16/9, le titre, le texte et les boutons en dessous
     (comme l'application Netflix sur mobile). */
  .hero {
    margin-top: calc(var(--entete) + 12px);
    aspect-ratio: auto;
    overflow: visible;
    border-radius: 0;
    background: none;
    box-shadow: none;
  }
  .hero-media {
    position: relative;
    inset: auto;
    aspect-ratio: 16 / 9;
    border-radius: 14px;
    overflow: hidden;
    background: #0d0a0a;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  }
  .hero-ombre { display: none; }
  .hero-contenu { position: static; width: auto; padding: 18px 2px 0; }
  .hero-desc { display: -webkit-box; margin: 0.8em 0 1.2em; }
  .hero-cote { top: 10px; right: 10px; bottom: auto; }
  .rond-son { width: 38px; height: 38px; background: rgba(0, 0, 0, 0.45); }
  .catalogue { margin-top: 24px; }
  .pied-copy { margin-left: 0 !important; }
  .menu-profil { width: min(270px, calc(100vw - 2 * var(--marge))); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-motif { animation: none; }
  .nav-liens li[data-bulle] a, .outil[data-bulle] svg { animation: none !important; }
  .apercu, .modale { transition: none; animation: none; }
}
