/* Feuille unique pour tout le site.
   Un seul fond rose pâle (couverture du dossier de presse), texte bordeaux
   très sombre, magenta de la pochette en accent. */
:root {
  --fond: #f5d3e1;
  --texte: #2b0c11;
  --titres: #762828;
  --lien: #8f1670;
  --accent: #db43b4;
  --filet: rgb(118 40 40 / .2);
  --largeur: 68rem;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--fond);
  color: var(--texte);
  font: 1.0625rem/1.6 system-ui, sans-serif;
}

main {
  max-width: var(--largeur);
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
}

a { color: var(--lien); text-underline-offset: .15em; }
a:hover { color: var(--texte); }

h1 { font-size: 1.9rem; line-height: 1.15; margin: 0; letter-spacing: .01em; }
h2 {
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--titres);
  margin: 0 0 .6rem;
}
p, ul { margin: 0 0 1rem; }

img { max-width: 100%; height: auto; display: block; }
audio { display: block; width: 100%; }
.apres-video { margin-top: 1rem; }
.apres-video + .video { margin-top: 1.5rem; }
.texte-secondaire { font-size: .9rem; line-height: 1.55; }

/* En-tête : logo à gauche, titre à droite sur ordinateur */
.entete {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem 2rem;
  margin-bottom: 2rem;
}
.entete .logo { width: 11rem; }
.entete .sous-titre { margin: .3rem 0 0; color: var(--titres); }

.embargo {
  background: var(--titres);
  color: #fff;
  border-radius: .4rem;
  padding: .6rem 1rem;
  margin: 0 0 2rem;
}

/* Deux colonnes sur ordinateur, une seule sur téléphone */
.colonnes { display: grid; gap: 2rem 3rem; }
.colonnes > div > section + section { margin-top: 2rem; }
.colonnes section > :last-child { margin-bottom: 0; }
@media (min-width: 56rem) {
  .colonnes { grid-template-columns: 3fr 2fr; align-items: start; }
}
/* Sur téléphone, les sections marquées remontent juste après la première vidéo */
@media (max-width: 55.99rem) {
  .colonnes { display: flex; flex-direction: column; }
  .colonnes > div { display: contents; }
  .colonnes > div > section + section { margin-top: 0; }
  .colonnes .d-abord { order: -2; }
  .colonnes .ensuite { order: -1; }
}

/* Lecteur YouTube en 16/9 */
.video { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: .4rem; overflow: hidden; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.pochette { width: 100%; max-width: 26rem; border-radius: .4rem; }

/* Listes de liens : une ligne par fichier, poids à droite */
.fichiers { list-style: none; padding: 0; margin: 0; }
.fichiers li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: .45rem 0;
  border-bottom: 1px solid var(--filet);
}
.fichiers li:first-child { border-top: 1px solid var(--filet); }
.fichiers .poids { color: var(--titres); font-size: .9rem; white-space: nowrap; }
.fichiers + p { margin: 1.5rem 0 .5rem; }

/* Carte du dossier de presse : miniature de la couverture, titre, bouton */
.dossier {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: .8rem;
  border-radius: .5rem;
  background: rgb(118 40 40 / .09);
  color: var(--texte);
  text-decoration: none;
}
.dossier img {
  width: 6.5rem;
  border-radius: .25rem;
  box-shadow: 0 3px 10px rgb(43 12 17 / .3);
  transition: transform .12s;
}
.dossier:hover img, .dossier:focus-visible img { transform: translateY(-2px) rotate(-1deg); }
.dossier > span { display: flex; flex-direction: column; align-items: flex-start; gap: .3rem; }
.dossier-titre { font-size: 1.4rem; font-weight: 800; line-height: 1.15; }
.dossier-infos { font-size: .85rem; color: var(--titres); margin-bottom: .3rem; }
.dossier:hover .bouton { background: var(--titres); }

/* Tuiles de téléchargement : icône ou miniature, nom et poids dessous */
.tuiles {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(4.25rem, 1fr));
  gap: .9rem .6rem;
}
.tuiles a {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--texte);
  line-height: 1.25;
}
.tuiles img, .tuiles .icone {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: .35rem;
  margin-bottom: .3rem;
  transition: transform .12s, box-shadow .12s;
}
.tuiles .icone { color: var(--titres); background: rgb(118 40 40 / .1); padding: 18%; }
.tuiles a:hover img, .tuiles a:hover .icone,
.tuiles a:focus-visible img, .tuiles a:focus-visible .icone {
  transform: translateY(-2px);
  box-shadow: 0 3px 8px rgb(43 12 17 / .25);
}
.tuiles .nom { font-size: .85rem; font-weight: 600; }
.tuiles .poids { font-size: .75rem; color: var(--titres); }
.note { font-size: .8rem; color: var(--titres); margin: .8rem 0 0; }

/* Emplacements à remplir sur les pages en préparation (deploy.sh les signale) */
.a-completer {
  border: 2px dashed var(--filet);
  border-radius: .35rem;
  padding: .6rem .8rem;
  color: var(--titres);
  font-style: italic;
}
.tuiles .a-completer {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
  border: 0;
  line-height: 1.25;
  opacity: .5;
}

/* Page d'accueil : une colonne de liens, façon Linktree */
.accueil { text-align: center; max-width: 34rem; padding-top: 2rem; }
.accueil .logo { width: min(20rem, 80vw); margin: 0 auto 1rem; }
.accueil section { margin-top: 2rem; }

.single {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-align: left;
  margin-top: 1.5rem;
}
.single img { width: 6.5rem; border-radius: .35rem; box-shadow: 0 3px 10px rgb(43 12 17 / .3); }
.single h2, .single p { margin: 0; }
.single-titre { font-size: 1.35rem; font-weight: 800; line-height: 1.2; }
.single-infos { font-size: .9rem; color: var(--titres); }

/* Boutons pleine largeur : logo à gauche, nom centré */
.liens { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.liens a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3.2rem;
  padding: .55rem 3.2rem;
  border: 2px solid var(--texte);
  border-radius: .6rem;
  background: rgb(255 255 255 / .35);
  color: var(--texte);
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
  transition: transform .12s, background .12s, box-shadow .12s;
}
.liens a:hover, .liens a:focus-visible {
  background: rgb(255 255 255 / .7);
  transform: translateY(-2px);
  box-shadow: 0 3px 0 var(--texte);
}
.liens svg { position: absolute; left: 1rem; width: 1.5rem; height: 1.5rem; }
.liens small { display: block; font-weight: 400; font-size: .8rem; color: var(--titres); }
.a-venir { margin-top: 2rem; color: var(--titres); }

.bouton {
  display: inline-block;
  background: var(--lien);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  padding: .55rem 1.2rem;
  border-radius: .4rem;
}
.bouton:hover { background: var(--titres); color: #fff; }

footer {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--filet);
  color: var(--titres);
  font-size: .9rem;
}
