/* =========================================================
   HYPSIGN — feuille de style commune (accueil + EPK)
   Les couleurs et polices sont reprises de l'ancien site.
   ========================================================= */

:root {
  /* === COULEURS DE LA SORTIE (modifiées par outils/nouvelle_sortie.py) === */
  --accent: #eadac9;        /* couleur des textes et icônes réseaux */
  --accent-fonce: #7e0c04;  /* survol du menu (calculée automatiquement) */
  --sortie-texte: #111;          /* texte du bloc sortie (foncé si la pochette est claire) */
  --sortie-bouton-fond: #7e0c04;    /* bouton LISTEN */
  --sortie-bouton-texte: #fff;
  --noir: #000;
  --blanc: #fff;
  --largeur: 1140px;      /* largeur max du contenu */
  --titre: "Bebas Neue", sans-serif;
  --texte: -apple-system, system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

* { box-sizing: border-box; min-width: 0; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--titre);
  color: var(--accent);
  background: var(--blanc);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.contenu { max-width: var(--largeur); margin: 0 auto; padding: 0 10px; }
.noir { background: var(--noir); }

/* ---------- EN-TÊTE (accueil) ---------- */
.entete {
  background: #000 url("../images/entete-fond.jpg?v=202612022221") no-repeat center / cover;
  padding: 0 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.menu { margin-top: 17px; position: relative; z-index: 2; }
.menu ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 26px; }
.menu a {
  font-size: 59px;
  font-weight: 600;
  line-height: 1;
  color: var(--accent);
  text-decoration: none;
  display: block;
  padding: 2px 0;
  transition: color .3s;
}
.menu a:hover { color: var(--accent-fonce); }
.menu-bouton { display: none; }

.logo { margin: -120px 0; }        /* le logo PNG a beaucoup de marge transparente */
.logo img { width: 768px; }

.reseaux { display: flex; justify-content: center; gap: 14px; margin: 20px 0 9px; position: relative; }
.reseaux a {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--accent);
  display: grid; place-items: center;
  transition: opacity .3s;
}
.reseaux a:hover { opacity: .9; }
.reseaux svg { width: 20px; height: 20px; fill: #000; }

/* ---------- PHOTO DU GROUPE ---------- */
.photo {
  background: url("../images/photo-groupe.jpg?v=202612022221") no-repeat center / cover;
  aspect-ratio: 1425 / 778;
}

/* ---------- DERNIÈRE SORTIE ---------- */
.sortie {
  background: url("../images/sortie-fond.jpg?v=202612022221") no-repeat center / cover;
  min-height: 730px;
  padding-block: 50px !important;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  gap: 20px;
  padding: 10px;
  color: var(--sortie-texte);
  text-align: center;
}
.sortie p, .sortie h2 { margin: 0; font-weight: 600; line-height: 1; }
.sortie .pochette { width: min(440px, 70vw); height: auto; box-shadow: 0 12px 40px rgba(0,0,0,.35); transition: transform .3s; }
.sortie a:hover .pochette { transform: scale(1.02); }
.invisible { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sortie .sur-titre { font-size: 58px; }
.sortie h2 { font-size: 149px; }
.bouton-blanc {
  display: inline-block;
  background: var(--sortie-bouton-fond); color: var(--sortie-bouton-texte);
  font-family: var(--titre); font-size: 28px; font-weight: 500; line-height: 1;
  padding: 12px 24px; border-radius: 3px;
  text-decoration: none;
  transition: opacity .3s;
}
.bouton-blanc:hover { opacity: .85; }

/* ---------- CARROUSEL VIDÉOS ---------- */
.videos {
  background: url("../images/fond-texture.jpg?v=202612022221") no-repeat center / cover;
  padding: 40px;
}
.carrousel { width: 75%; margin: 0 auto; padding: 10px; position: relative; }
.carrousel .piste { overflow: hidden; }
.carrousel .rail { display: flex; transition: transform .5s ease; }
.carrousel .diapo {
  flex: 0 0 100%;
  aspect-ratio: 16 / 9;
  background: center / cover no-repeat;
  position: relative;
  border: 0; padding: 0; cursor: pointer;
}
.carrousel .diapo::after {           /* icône lecture */
  content: "";
  position: absolute; inset: 0; margin: auto;
  width: 80px; height: 80px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='50' r='48' fill='rgba(0,0,0,.35)'/%3E%3Cpath d='M40 30l32 20-32 20z' fill='%23fff'/%3E%3C/svg%3E") center / contain no-repeat;
  opacity: .85; transition: opacity .3s;
}
.carrousel .diapo:hover::after { opacity: 1; }
.carrousel .fleche {
  position: absolute; top: calc(50% - 20px); transform: translateY(-50%);
  background: none; border: 0; cursor: pointer; padding: 10px;
  color: rgba(255,255,255,.9); font-size: 40px; line-height: 1; font-family: var(--texte);
}
.carrousel .prec { left: 10px; }
.carrousel .suiv { right: 10px; }
.carrousel .points { display: flex; justify-content: center; gap: 8px; margin-top: 12px; }
.carrousel .points button {
  width: 8px; height: 8px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
  background: #fff; opacity: .3;
}
.carrousel .points button.actif { opacity: 1; }

/* Fenêtre vidéo (lightbox) */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(0,0,0,.9);
  display: none; place-items: center;
}
.lightbox.ouvert { display: grid; }
.lightbox iframe { width: min(90vw, 160vh); aspect-ratio: 16 / 9; border: 0; }
.lightbox .fermer {
  position: absolute; top: 15px; right: 20px;
  background: none; border: 0; color: #fff; font-size: 40px; cursor: pointer;
}

/* ---------- CONCERTS ---------- */
.concerts { padding: 40px; }

/* ---------- BIO ---------- */
.bio { padding: 40px 40px 0; }
.bio .contenu { font-family: var(--texte); font-size: 16px; line-height: 24px; color: #fff; padding: 10px 10px 20px; }
.bio p { margin: 0 0 .9rem; }

/* ---------- CONTACT ---------- */
.contact {
  background: url("../images/fond-texture.jpg?v=202612022221") no-repeat center / cover;
  display: flex; justify-content: center; gap: 20px;
  padding: 0 0 40px;
  text-align: center;
}
.contact > div { width: 522px; padding: 10px; }
.contact h2 { font-size: 60px; font-weight: 400; line-height: 90px; margin: 0 0 14px; }
.contact p { font-size: 28px; line-height: 42px; margin: 0; }
.contact a { color: var(--accent); text-decoration: none; }
.contact a:hover { color: var(--accent-fonce); }
.contact .booking img { width: 221px; margin: 20px auto 0; }

/* ---------- PARTENAIRES + PIED DE PAGE ---------- */
.partenaires { padding: 10px; }
.partenaires img { width: 800px; margin: 0 auto; }
.sponsors { padding: 10px; }
.sponsors img { width: 768px; margin: 0 auto; }
.pied { padding: 10px 0; }
.pied p { color: #fff; font-size: 20px; font-weight: 100; line-height: 30px; margin: 0; padding: 7px 10px; }

/* =========================================================
   EPK
   ========================================================= */
.epk { font-family: var(--texte); }
.epk-logo { display: flex; justify-content: center; padding: 10px 10px 0; }
.epk-logo img { width: 500px; }
.epk .reseaux-blancs { display: flex; justify-content: center; gap: 30px; padding: 22px 10px; }
.epk .reseaux-blancs svg { width: 25px; height: 25px; fill: #fff; }
.epk .reseaux-blancs a:hover svg { opacity: .8; }

.titre-blanc {
  font-family: var(--titre); color: #000; text-align: center;
  font-size: 45px; font-weight: 400; line-height: 1;
  margin: 0; padding: 10px;
}
.titre-blanc.fin { font-size: 43px; font-weight: 100; }
.sous-titre {
  font-family: Roboto, var(--texte); color: #fff; text-align: center;
  font-size: 25px; font-weight: 300; line-height: 1;
  margin: 0; padding: 10px;
}
.boutons { display: flex; flex-wrap: wrap; justify-content: center; gap: 23px; padding: 10px; }
.boutons a {
  font-family: Roboto, var(--texte); font-size: 20px; font-weight: 500; line-height: 1;
  background: #fff; color: #000; text-decoration: none;
  padding: 15px 30px; border-radius: 4px;
}
.boutons a:hover { opacity: .85; }

.grille { display: grid; gap: 20px; padding: 10px; }
.grille-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grille-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: var(--largeur); margin: 0 auto; }
.grille-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.video { width: 100%; aspect-ratio: 16 / 9; border: 0; display: block; }
.son { width: 100%; height: 408px; border: 0; display: block; }

.texte-epk { color: #fff; font-size: 16px; line-height: 24px; }
.texte-epk p { margin: 0 0 .9rem; }
.texte-epk.centre { text-align: center; }
.bloc { max-width: var(--largeur); margin: 0 auto; padding: 10px; }
.bloc img.proxima { width: 768px; margin: 0 auto 20px; }

.disques { display: grid; grid-template-columns: 365px 365px; justify-content: center; gap: 20px; align-items: center; padding: 10px 10px 30px; }

.medias { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; max-width: var(--largeur); margin: 0 auto; padding: 10px; text-align: center; }
.medias .titre-blanc { padding: 0; }
.medias .texte-epk { text-align: center; }
.medias .presse { text-align: left; }
.medias .presse img { width: 202px; margin-top: 20px; }

/* =========================================================
   MOBILE (≤ 767 px)
   ========================================================= */
@media (max-width: 767px) {
  .menu { margin-top: 10px; }
  .menu-bouton {
    display: block; background: none; border: 0; cursor: pointer;
    color: #fff; font-size: 38px; line-height: 1; padding: 6px 12px;
  }
  .menu ul { display: none; flex-direction: column; gap: 0; text-align: center; }
  .menu.ouvert ul { display: flex; }
  .menu a { font-size: 38px; font-weight: 400; padding: 6px 0; }

  .logo { margin: -38px -23px -32px; }
  .logo img { width: 300px; }
  .reseaux { gap: 8px; margin: 0 5px 12px; }
  .reseaux a { width: 24px; height: 24px; }
  .reseaux svg { width: 12px; height: 12px; }

  .photo { aspect-ratio: 390 / 202; }
  .sortie { min-height: 356px; background-image: url("../images/sortie-fond-mobile.jpg?v=202612022221"); overflow: hidden; padding-block: 36px !important; }
  .sortie .sur-titre { font-size: 36px; }
  .sortie .pochette { width: 72vw; }
  .sortie h2 { font-size: min(92px, 22vw); }

  .videos { padding: 40px; }
  .carrousel { width: 100%; }
  .carrousel .fleche { font-size: 28px; }

  .bio { padding: 40px 10px 0; }
  .contact { flex-direction: column; align-items: center; gap: 0; }
  .contact > div { width: 100%; }
  .partenaires img { width: 100%; }
  .sponsors img { width: 100%; }

  /* EPK */
  .epk-logo img { width: 300px; }
  .titre-blanc { font-size: 34px; }
  .grille-2, .grille-3, .grille-6 { grid-template-columns: minmax(0, 1fr); }
  .disques { grid-template-columns: minmax(0, 1fr); }
  .medias { grid-template-columns: minmax(0, 1fr); }
  .medias .presse { text-align: center; }
  .medias .presse img { margin: 20px auto 0; }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .menu a { font-size: 44px; }
  .logo img { width: 600px; }
  .sortie h2 { font-size: 120px; }
  .grille-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
