/* DMNG — design system « Flyer » · base et composants. Nécessite tokens.css. */

/* Base */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; padding: var(--cadre); background: var(--encre); color: var(--encre);
  font: 400 var(--t-texte)/1.55 var(--f-texte); -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color var(--duree); }
a:hover { color: var(--rouge); }
:focus-visible { outline: 2px solid var(--rouge); outline-offset: 3px; }
::selection { background: var(--rouge); color: var(--papier); }
p { margin: 0 0 1em; }

/* La feuille : tout le contenu est posé dessus, entourée du cadre noir */
.feuille { background: var(--papier); min-height: calc(100svh - 2 * var(--cadre)); }
.zone { padding: var(--e-section) var(--marge); }
.zone + .zone, .filet-haut { border-top: var(--filet); }

/* Typographie */
.affiche { margin: 0; font: 800 var(--t-affiche)/.78 var(--f-affiche); letter-spacing: var(--a-affiche); margin-left: -.05em; }
.titre-1 { margin: 0; font: 800 var(--t-titre-1)/.82 var(--f-affiche); letter-spacing: var(--a-titre); margin-left: -.04em; }
.titre-2 { margin: 0; font: 500 var(--t-titre-2)/1.08 var(--f-affiche); letter-spacing: var(--a-sous-titre); }
.titre-3 { margin: 0; font: 600 var(--t-titre-3)/1.08 var(--f-affiche); letter-spacing: var(--a-sous-titre); }
.etiquette { font: 400 var(--t-etiquette)/1.4 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; }
.secondaire { color: var(--gris); }
.signal { color: var(--rouge); }
.chapo { max-width: 44ch; color: var(--gris); margin: 0; }
.texte-long { max-width: var(--largeur-texte); }

/* Grille 12 colonnes */
.grille { display: grid; grid-template-columns: repeat(var(--colonnes), minmax(0, 1fr)); gap: var(--gouttiere); }
.c-12 { grid-column: span 12; } .c-8 { grid-column: span 8; } .c-7 { grid-column: span 7; } .c-6 { grid-column: span 6; }
.c-5 { grid-column: span 5; } .c-4 { grid-column: span 4; } .c-3 { grid-column: span 3; }
@media (max-width: 860px) { .grille > [class*="c-"] { grid-column: span 12; } }

/* En-tête de section : titre à gauche, chapo à droite, sur la même ligne de base */
.tete { display: grid; grid-template-columns: 1fr 1fr; gap: var(--e-5); align-items: end; margin-bottom: var(--e-6); }
.tete .etiquette { display: block; margin-bottom: var(--e-4); }
@media (max-width: 760px) { .tete { grid-template-columns: 1fr; } }

/* Barre d'en-tête : comme la ligne du haut du flyer */
.barre {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--e-5);
  padding: var(--e-4) var(--marge); border-bottom: var(--filet);
  position: sticky; top: 0; z-index: 10; background: var(--papier);
}
.barre .logo { font: 700 22px/1 var(--f-affiche); letter-spacing: -.03em; text-decoration: none; }
.barre nav { display: flex; gap: var(--e-5); }
.barre nav a { text-decoration: none; }
.barre nav a[aria-current] { text-decoration: underline; text-decoration-thickness: 2px; }
.barre .droite { display: flex; justify-content: flex-end; align-items: center; gap: var(--e-4); }
@media (max-width: 860px) { .barre { grid-template-columns: 1fr auto; } .barre nav { display: none; } }

/* Sélecteur de langue */
.langue { display: inline-flex; border: 1px solid var(--encre); }
.langue button { min-height: 30px; background: none; border: 0; padding: 0 9px; font: inherit; color: var(--encre); cursor: pointer; }
.langue [aria-pressed="true"] { background: var(--encre); color: var(--papier); }

/* Boutons : rectangles, jamais arrondis */
.bouton {
  display: inline-flex; align-items: center; gap: var(--e-2); min-height: var(--cible); padding: 0 var(--e-5);
  border: 2px solid var(--encre); background: none; color: var(--encre); text-decoration: none; cursor: pointer;
  font: 400 var(--t-etiquette)/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase;
  transition: background var(--duree), color var(--duree);
}
.bouton:hover { background: var(--encre); color: var(--papier); }
.bouton.plein { background: var(--encre); color: var(--papier); }
.bouton.plein:hover { background: var(--rouge); border-color: var(--rouge); color: var(--papier); }
.boutons { display: flex; flex-wrap: wrap; gap: var(--e-3); }

/* Lien fléché : pour « écouter », « ouvrir » */
.fleche { text-decoration: none; font-weight: 600; color: var(--encre); white-space: nowrap; }
.fleche:hover { color: var(--rouge); text-decoration: underline; }

/* Fiche : petites cases étiquette + valeur séparées par un filet */
.fiche { display: grid; grid-template-columns: repeat(var(--fiche-colonnes, 3), 1fr); border-top: var(--filet); }
.fiche > div { padding: var(--e-3) var(--e-3) var(--e-3) 0; }
.fiche b { display: block; margin-top: var(--e-1); font: 600 17px/1.2 var(--f-affiche); letter-spacing: -.01em; text-transform: none; }
.fiche.cases { border-left: var(--filet); }
.fiche.cases > div { padding: var(--e-4); border-right: var(--filet); border-bottom: var(--filet); }
.fiche.cases b { font-size: 22px; }
@media (max-width: 600px) { .fiche { --fiche-colonnes: 2; } .fiche.cases b { font-size: 18px; } }

/* Liste de sorties : un tableau comme une tracklist */
.sorties { width: 100%; border-collapse: collapse; }
.sorties th { text-align: left; font-weight: 400; padding: var(--e-3) var(--e-3) var(--e-3) 0; border-bottom: var(--filet); }
.sorties td { padding: var(--e-5) var(--e-3) var(--e-5) 0; border-bottom: var(--filet-fin); vertical-align: baseline; }
.sorties .n { width: 56px; }
.sorties .t { font: 600 var(--t-titre-3)/1.05 var(--f-affiche); letter-spacing: var(--a-sous-titre); }
.sorties .t small { display: block; margin-top: var(--e-2); font: 400 var(--t-petit)/1.4 var(--f-texte); letter-spacing: 0; color: var(--gris); }
.sorties .a { text-align: right; width: 1%; }
.sorties tr.nouveau .t { color: var(--rouge); }
@media (max-width: 760px) { .sorties .n { width: 40px; } }

/* Liste à filets : lieux, rider, liens */
.liste-filets { list-style: none; margin: 0; padding: 0; border-top: var(--filet); }
.liste-filets li { display: grid; grid-template-columns: 1fr auto; gap: var(--e-4); align-items: baseline; padding: var(--e-4) 0; border-bottom: var(--filet-fin); }
.liste-filets .titre-3 { font-size: clamp(22px, 2.6vw, 34px); }
/* Variante « empile » : sur petit écran, la mention passe sous le nom (lieux, mentions longues) */
@media (max-width: 600px) { .liste-filets.empile li { grid-template-columns: 1fr; gap: var(--e-1); } }

/* Badge rond : le seul élément courbe, un seul par page, en rouge */
.badge {
  display: grid; place-items: center; text-align: center; width: 120px; height: 120px; border-radius: 50%;
  background: var(--rouge); color: var(--papier); font: 600 13px/1.15 var(--f-affiche); transform: rotate(-12deg);
}
.badge img { width: 52px; margin: 0 auto 4px; mix-blend-mode: screen; }
/* Variante lien : flèche vers le bas pour descendre dans la page, droite (pas d'inclinaison) */
a.badge.descendre { transform: none; text-decoration: none; transition: background var(--duree), transform var(--duree); }
a.badge.descendre:hover { background: var(--encre); color: var(--papier); transform: translateY(4px); }

/* Défilement doux vers les ancres, sous la barre collée en haut */
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } a.badge.descendre:hover { transform: none; } }

/* Photos : noir et blanc sur le site, couleur d'origine dans les téléchargements */
.photo { position: relative; background: var(--blanc); padding: var(--e-3); border: 1px solid var(--filet-leger); }
.photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.08); }
.photo.couleur img { filter: none; }
.photo-legende { display: flex; justify-content: space-between; gap: var(--e-3); padding-top: var(--e-3); }
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--gouttiere); }
.photos .photo { aspect-ratio: 3 / 4; }

/* Bio à copier */
.bio { display: grid; grid-template-columns: 200px 1fr; gap: var(--e-4) var(--e-7); padding: var(--e-6) 0; border-bottom: var(--filet-fin); }
.bio:first-child { border-top: var(--filet); }
.bio .cote { display: flex; flex-direction: column; align-items: flex-start; gap: var(--e-3); }
.bio .corps { max-width: var(--largeur-texte); }
.bio .corps p:last-child { margin-bottom: 0; }
.bio.une .corps p { font: 500 var(--t-titre-2)/1.12 var(--f-affiche); letter-spacing: var(--a-sous-titre); }
.copier { min-height: 32px; padding: 0 var(--e-3); background: none; border: 1px solid var(--encre); font: 400 11px/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; cursor: pointer; color: var(--encre); }
.copier.ok { background: var(--rouge); border-color: var(--rouge); color: var(--papier); }
@media (max-width: 760px) { .bio { grid-template-columns: 1fr; } .bio .cote { flex-direction: row; justify-content: space-between; align-items: center; } }

/* Mots-clés */
.mots { display: flex; flex-wrap: wrap; gap: var(--e-2); margin: 0; padding: 0; list-style: none; }
.mots li { border: 1px solid var(--encre); padding: var(--e-2) var(--e-3); }

/* Pastille signal : étiquette rouge en pointillés pour marquer l'actualité (« Latest gig »). Une par bloc. */
.pastille-signal { display: inline-block; border: 1px dashed var(--rouge); color: var(--rouge); padding: 4px 10px; font: 400 var(--t-etiquette)/1.4 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; }

/* À compléter : visible tant qu'une info manque */
.todo { display: inline-block; border: 1px dashed var(--rouge); color: var(--rouge); padding: 2px 8px; font: 400 12px/1.4 var(--f-mono); }

/* Utilitaire */
@media (max-width: 760px) { .cache-mobile { display: none !important; } }

/* Pied de page */
.pied { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--e-4); padding: var(--e-5) var(--marge); border-top: var(--filet); }
.pied img { width: 44px; }

/* Bilingue : html[data-lang] choisit la langue ; chaque texte porte lang="fr" ou lang="en" */
html[data-lang="fr"] body [lang="en"],
html[data-lang="en"] body [lang="fr"] { display: none !important; }

/* Révélation : photo en noir et blanc, la couleur apparaît en glissant le doigt ou la souris.
   La couleur couvre la partie gauche jusqu'au doigt ; --p va de 0 % (noir et blanc) à 100 % (couleur). */
.revele { position: relative; height: 100%; overflow: hidden; touch-action: pan-y; cursor: ew-resize; user-select: none; -webkit-user-select: none; --p: 0%; }
.revele img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: var(--cadrage, 50% 25%); -webkit-user-drag: none; pointer-events: none; }
.revele .vif { position: absolute; inset: 0; filter: none; clip-path: inset(0 calc(100% - var(--p)) 0 0); }
.revele .ligne { position: absolute; top: 0; bottom: 0; left: var(--p); width: 2px; margin-left: -1px; background: var(--papier); opacity: 0; transition: opacity var(--duree); }
.revele.touche .ligne { opacity: 1; }
.revele .aide { position: absolute; left: var(--e-3); bottom: var(--e-3); background: var(--papier); color: var(--encre); padding: 6px 8px; transition: opacity var(--duree); }
.revele.touche .aide { opacity: 0; }
.revele:focus-visible { outline-offset: -4px; }
