/* aecoute.be — charte « La gazette de l'atelier » : papier crème, encre, vermillon */
:root {
  --papier: #f6f1e7;
  --papier-fonce: #ece4d4;
  --encre: #1f1d1a;
  --encre-douce: #5e574d;
  --vermillon: #b8321f;
  --vermillon-fonce: #8f2414;
  --filet: #cfc4b0;
  --titre: 'Fraunces', Georgia, serif;
  --texte: 'Source Sans 3', 'Segoe UI', sans-serif;
  --largeur: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--papier);
  color: var(--encre);
  font: 400 1.0625rem/1.6 var(--texte);
}
img { max-width: 100%; display: block; }
a { color: var(--vermillon-fonce); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--vermillon); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--titre); line-height: 1.15; margin: 0; }

.evitement { position: absolute; left: -999px; top: 0; background: var(--encre); color: var(--papier); padding: .5rem 1rem; z-index: 10; }
.evitement:focus { left: 1rem; }
.visuellement-cache { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* En-tête façon gazette */
.entete { max-width: var(--largeur); margin: 0 auto; padding: 0 16px; }
.entete__haut {
  display: flex; justify-content: space-between; gap: 1rem;
  font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--encre-douce);
  border-bottom: 1px solid var(--filet); padding: .7rem 0;
}
.entete__titre { text-align: center; padding: 1.6rem 0 1.2rem; border-bottom: 3px double var(--encre); }
.marque {
  font-family: var(--titre); font-weight: 800; font-size: clamp(2.8rem, 9vw, 5.5rem);
  letter-spacing: -.03em; color: var(--encre); text-decoration: none; line-height: 1;
}
.marque--petite { font-size: 2rem; margin: 0 0 .5rem; }
.volet {
  display: inline-block; margin: .7rem 0 0; padding: .15rem .9rem;
  background: var(--vermillon); color: #fff; font-family: var(--titre); font-style: italic; font-size: 1.3rem;
}
.entete__haut a { color: var(--vermillon-fonce); text-decoration: none; font-weight: 600; }
.menu a[aria-current="page"] { border-color: var(--vermillon); color: var(--vermillon-fonce); }
.devise { font-family: var(--titre); font-style: italic; font-size: 1.15rem; margin: .5rem 0 0; color: var(--encre-douce); }
.menu {
  display: flex; flex-wrap: wrap; justify-content: center; gap: .2rem 1.6rem;
  padding: .8rem 0; border-bottom: 1px solid var(--filet);
}
.menu a {
  color: var(--encre); text-decoration: none; font-weight: 600; font-size: .95rem;
  letter-spacing: .06em; text-transform: uppercase; padding: .25rem 0; border-bottom: 2px solid transparent;
}
.menu a:hover { border-color: var(--vermillon); color: var(--vermillon-fonce); }

main { max-width: var(--largeur); margin: 0 auto; padding: 0 16px; }

/* À la une */
.une {
  display: grid; grid-template-columns: 1.35fr 1fr; gap: 2.5rem; align-items: center;
  padding: 2.5rem 0; border-bottom: 1px solid var(--filet);
}
.surtitre, .carte__serie {
  font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--vermillon); font-weight: 600; margin: 0 0 .6rem;
}
.une h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 800; margin-bottom: 1rem; }
.une__chapeau { font-family: var(--titre); font-style: italic; color: var(--encre-douce); border-left: 3px solid var(--vermillon); padding-left: 1rem; }

/* Lecteur YouTube chargé au clic */
.lecteur {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; cursor: pointer;
  background: var(--encre); overflow: hidden;
}
.lecteur img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s, filter .4s; filter: sepia(.15); }
.lecteur:hover img { transform: scale(1.03); filter: none; }
.lecteur__bouton {
  position: absolute; inset: 50% auto auto 50%; transform: translate(-50%, -50%);
  width: 3.4rem; height: 3.4rem; border-radius: 50%; background: var(--vermillon); color: #fff;
  display: grid; place-items: center; font-size: 1.2rem; padding-left: .2rem; box-shadow: 0 4px 14px rgba(0,0,0,.35);
}
.lecteur--grand .lecteur__bouton { width: 4.6rem; height: 4.6rem; font-size: 1.6rem; }
iframe.lecteur { cursor: auto; }
.une__media { box-shadow: 10px 10px 0 var(--papier-fonce); }

/* Blocs */
.bloc { padding: 2.5rem 0; border-bottom: 1px solid var(--filet); }
.bloc__tete { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.bloc__tete h2 { font-size: 1.9rem; font-weight: 800; }
.bloc__tete h2::after { content: ''; display: block; width: 3rem; height: 3px; background: var(--vermillon); margin-top: .4rem; }
.bloc__tete a { font-weight: 600; text-decoration: none; }

.grille { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem 1.6rem; }
.carte h3 { font-size: 1.25rem; font-weight: 600; }
.carte .lecteur { margin-bottom: .8rem; }

.rubriques { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.6rem; }
.rubrique {
  display: grid; grid-template-columns: 140px 1fr; gap: 1.2rem; align-items: center;
  background: #fffdf8; border: 1px solid var(--filet); padding: 1rem; text-decoration: none; color: var(--encre);
  transition: border-color .2s, transform .2s;
}
.rubrique:hover { border-color: var(--vermillon); transform: translateY(-2px); }
.rubrique img { width: 140px; height: 140px; object-fit: cover; }
.rubrique h3 { font-size: 1.5rem; font-weight: 800; margin-bottom: .3rem; }
.rubrique p { margin: 0; color: var(--encre-douce); }
.rubrique--forte { background: var(--encre); color: var(--papier); border-color: var(--encre); }
.rubrique--forte p { color: #d9d0bf; }
.rubrique--forte h3 { color: #fff; }

.series { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 2.5rem; }
.series a {
  display: flex; justify-content: space-between; gap: 1rem; padding: .8rem 0; border-bottom: 1px dotted var(--filet);
  text-decoration: none; color: var(--encre); font-family: var(--titre); font-size: 1.2rem;
}
.series a:hover span { color: var(--vermillon-fonce); }
.series b { font-family: var(--texte); color: var(--vermillon); }

/* Page Chansons */
.tete-page { padding: 2.5rem 0 1.5rem; border-bottom: 1px solid var(--filet); }
.tete-page h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 800; margin-bottom: .6rem; }
.tete-page > p { max-width: 46rem; color: var(--encre-douce); }
.sommaire { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.2rem; }
.sommaire a {
  border: 1px solid var(--filet); background: #fffdf8; padding: .35rem .8rem; text-decoration: none; color: var(--encre); font-weight: 600;
}
.sommaire a:hover { border-color: var(--vermillon); }
.sommaire b { color: var(--vermillon); margin-left: .3rem; }
.bloc { scroll-margin-top: 1rem; }
.bloc__intro { margin: -.6rem 0 1.6rem; color: var(--encre-douce); font-family: var(--titre); font-style: italic; font-size: 1.1rem; }
.fiches { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.6rem; }
.fiche { display: grid; grid-template-columns: 220px 1fr; gap: 1rem; align-items: start; background: #fffdf8; border: 1px solid var(--filet); padding: .9rem; }
.fiche h3 { font-size: 1.2rem; font-weight: 600; margin-bottom: .3rem; }
.fiche p { margin: 0 0 .4rem; font-size: .95rem; }
.fiche .carte__serie { margin-bottom: .3rem; }
.fiche__versions { display: flex; flex-wrap: wrap; gap: .3rem; align-items: center; }
.fiche__versions button {
  font: 600 .8rem var(--texte); border: 1px solid var(--vermillon); background: transparent; color: var(--vermillon-fonce);
  padding: .1rem .5rem; cursor: pointer;
}
.fiche__versions button[aria-pressed="true"] { background: var(--vermillon); color: #fff; }
.fiche__lien a { font-size: .85rem; }

/* Rubriques : pages de texte */
.tete-page--rubrique { text-align: center; }
.tete-page--rubrique h1 { font-size: clamp(2.6rem, 7vw, 4.4rem); }
.tete-page__sous { font-family: var(--titre); font-style: italic; font-size: 1.3rem; color: var(--encre-douce); margin: 0 auto; }
.texte { max-width: 44rem; margin: 0 auto; padding: 2.5rem 0 1rem; font-size: 1.12rem; line-height: 1.75; }
.texte h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; margin-bottom: 1.5rem; }
.texte h2 { font-size: 1.6rem; font-weight: 600; margin: 2rem 0 .8rem; }
.texte h3 { font-size: 1.25rem; font-weight: 600; margin: 1.8rem 0 .5rem; color: var(--vermillon-fonce); }
.texte p { margin: 0 0 1.1rem; }
.texte .surtitre a { color: inherit; text-decoration: none; }
.texte--intro { padding-top: 1.5rem; }
.texte--intro > p:first-of-type::first-letter {
  float: left; font-family: var(--titre); font-weight: 800; font-size: 4.2rem; line-height: .85; padding: .3rem .5rem 0 0; color: var(--vermillon);
}
.paroles {
  margin: 1.4rem 0; padding: 1rem 1.4rem; background: var(--papier-fonce); border-left: 4px solid var(--vermillon);
  font-family: var(--titre); font-style: italic; font-size: 1.1rem; line-height: 1.7;
}
.texte figure { margin: 1.8rem 0; }
.texte figure img { width: 100%; max-height: 34rem; object-fit: contain; background: var(--papier-fonce); }
.texte figcaption { font-size: .9rem; color: var(--encre-douce); text-align: center; margin-top: .4rem; font-style: italic; }
.texte .video { margin: 1.8rem 0; box-shadow: 8px 8px 0 var(--papier-fonce); }
.suite {
  max-width: 44rem; margin: 1rem auto 2rem; padding-top: 1.2rem; border-top: 3px double var(--encre);
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 1rem; align-items: center; font-weight: 600;
}
.suite a { text-decoration: none; }
.suite a[rel="next"] { text-align: right; }
.suite__sommaire { border: 1px solid var(--vermillon); padding: .3rem .9rem; }
.bloc__tete span { color: var(--encre-douce); }
.chapitres { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem 1.6rem; }
.chapitres a {
  display: grid; grid-template-columns: 64px 2.4rem 1fr; gap: .8rem; align-items: center;
  padding: .5rem; border-bottom: 1px dotted var(--filet); text-decoration: none; color: var(--encre);
}
.chapitres a:hover { background: #fffdf8; }
.chapitres a:hover .chapitres__titre { color: var(--vermillon-fonce); }
.chapitres img, .chapitres__vide { width: 64px; height: 64px; object-fit: cover; background: var(--papier-fonce); }
.chapitres__vide { display: grid; place-items: center; color: var(--vermillon); font-size: 1.8rem; }
.chapitres__num { font-family: var(--titre); font-weight: 800; font-size: 1.4rem; color: var(--vermillon); text-align: right; }
.chapitres__titre { font-family: var(--titre); font-size: 1.1rem; line-height: 1.3; }
.chapitres__titre b { color: var(--vermillon); font-weight: 400; }

/* IAkasha */
.iakasha-une { display: grid; grid-template-columns: 340px 1fr; gap: 2.5rem; align-items: start; padding: 2rem 0; border-bottom: 1px solid var(--filet); }
.iakasha-une img { width: 100%; border-radius: 50%; box-shadow: 0 0 0 8px var(--papier-fonce); }
.iakasha-une .texte { padding: 0; margin: 0; }
.maitres { display: grid; gap: 2.5rem; }
.maitre { display: grid; grid-template-columns: 260px 1fr; gap: 2rem; align-items: start; }
.maitre__image img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.maitre h3 { font-size: 1.9rem; font-weight: 800; margin-bottom: .4rem; }
.maitre h3 a { color: var(--encre); text-decoration: none; }
.maitre > div > p { font-family: var(--titre); font-style: italic; color: var(--encre-douce); margin: 0 0 1rem; }
.lecons { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .5rem 1.2rem; counter-reset: lecon; }
.lecons li { counter-increment: lecon; }
.lecons a { display: grid; grid-template-columns: 48px 1fr; gap: .7rem; align-items: center; text-decoration: none; color: var(--encre); padding: .3rem; border-bottom: 1px dotted var(--filet); }
.lecons a:hover span { color: var(--vermillon-fonce); }
.lecons img, .lecons .chapitres__vide { width: 48px; height: 48px; object-fit: cover; font-size: 1.2rem; }
.lecons span::before { content: counter(lecon) ". "; color: var(--vermillon); font-weight: 600; }
.bloc--etroit { max-width: 60rem; margin: 0 auto; }
.presentation { margin: 0; padding: 1.5rem 1.8rem; background: #fffdf8; border: 1px solid var(--filet); border-left: 4px solid var(--vermillon); }
.presentation p:last-child { margin: 0; font-family: var(--titre); font-style: italic; text-align: right; }
.texte .bouton a { display: inline-block; border: 1px solid var(--vermillon); padding: .3rem .9rem; text-decoration: none; font-weight: 600; }
.texte .bouton small { color: var(--encre-douce); }
.rubriques .rubrique:only-child, .rubriques .rubrique:nth-child(3):last-child { grid-column: 1 / -1; }

.texte .chapeau { font-family: var(--titre); font-style: italic; font-size: 1.2rem; color: var(--encre-douce); margin-top: -.8rem; }

/* Liens entre rubriques et discothèque */
.video__lien { margin: .5rem 0 0; font-size: .9rem; text-align: right; }
.video__legende { margin: .5rem 0 0; font-size: .9rem; font-style: italic; color: var(--encre-douce); text-align: center; }
.fiche:target { border-color: var(--vermillon); box-shadow: 0 0 0 3px var(--vermillon); }
.fiche { scroll-margin-top: 1rem; }

/* Textes : parcours */
.parcours { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.6rem; }
.parcours__carte { display: block; background: #fffdf8; border: 1px solid var(--filet); text-decoration: none; color: var(--encre); transition: border-color .2s, transform .2s; }
.parcours__carte:hover { border-color: var(--vermillon); transform: translateY(-2px); }
.parcours__carte img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.parcours__carte h2 { font-size: 1.6rem; font-weight: 800; margin: 1rem 1.2rem .4rem; }
.parcours__carte p { margin: 0 1.2rem .8rem; color: var(--encre-douce); }
.parcours__carte span { display: block; margin: 0 1.2rem 1.2rem; color: var(--vermillon-fonce); font-weight: 600; }

/* Pied de page */
.pied { background: var(--encre); color: #d9d0bf; margin-top: 3rem; }
.pied__colonnes { max-width: var(--largeur); margin: 0 auto; padding: 2.5rem 16px; display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 2rem; }
.pied .marque { color: var(--papier); }
.pied h2 { font-size: 1rem; text-transform: uppercase; letter-spacing: .12em; color: #fff; margin-bottom: .8rem; font-family: var(--texte); }
.pied ul { list-style: none; margin: 0; padding: 0; }
.pied li { margin-bottom: .4rem; }
.pied a { color: #f0b9a8; }

@media (max-width: 860px) {
  .une, .rubriques, .series, .pied__colonnes { grid-template-columns: 1fr; }
  .grille { grid-template-columns: repeat(2, 1fr); }
  .fiches, .chapitres, .iakasha-une, .maitre, .parcours { grid-template-columns: 1fr; }
  .iakasha-une img, .maitre__image img { max-width: 260px; margin: 0 auto; }
  .suite { grid-template-columns: 1fr; text-align: center; }
  .suite a[rel="next"] { text-align: center; }
}
@media (max-width: 560px) {
  .fiche { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .grille { grid-template-columns: 1fr; }
  .rubrique { grid-template-columns: 90px 1fr; }
  .rubrique img { width: 90px; height: 90px; }
  .entete__haut span:last-child { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
