/* =========================
   VARIABLES (root)
   ========================= */

@font-face {
  font-family: "Knewave";
  src: url("fonts/knewave.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "Knewave Outline";
  src: url("fonts/knewave-outline.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}

:root{
  --rail: 200px;
  --header: 70px;
  --size: 180px;
  --seed: 22px;
  --gap: 12px;
  --border: 8px;
  --dur: 1.4s;
  --ease: cubic-bezier(.2,.7,.2,1);
  --bg: #0b0b12;

  /* Cards */
  --card-w: 200px;
  --card-h: 266px;
  --card-edge: 14px;

  /* Footer */
  --logo-block-h: 60px;
}

*{ box-sizing:border-box; margin:0; }

html {
  height: 100%;
}

  body{
    min-height: 100vh;
    background:var(--bg);
    color:#e9ecff;
    font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;
    padding-right: 0;
    overflow-x:hidden;
    display: flex;
    flex-direction: column;
  }

/* Uniquement les pages qui ont le rail radio */
body.has-rail {
  padding-right: var(--rail);
}

/* Liens globaux (les .btn les surchargent localement) */
a, a:visited{ 
  color:#fff; 
  text-decoration:underline; 
  text-underline-offset:3px; 
  text-decoration-thickness:2px; 
}
a:hover, a:focus-visible{ color:#f5f5f5; }
a{ text-shadow:0 1px 2px rgba(0,0,0,.35); }

/* =========================
   HEADER
   ========================= */

.site-header{
  position:fixed;
  top:0; left:0;
  width:100%;
  height:var(--header);
  background:#FFFFFC;
  border-bottom:1px solid #e6e6e6;
  z-index:2000;

  display:flex;
  align-items:center;
  justify-content: center;

  padding:0 100px;
}

/* Aplatit le wrapper : ses enfants deviennent des items de la grille */
.header-right{ 
  display: contents;
}

/* =========================
   PAGE & CARTES
   ========================= */

main.page{
  max-width:960px;
  margin:0 auto;
  flex: 1 0 auto;

  display:grid;
  grid-template-columns: repeat(12, minmax(0,1fr));
  column-gap:16px;
  row-gap:40px;

  /* espace sous le header + marge bas pour le footer */
  padding:120px 12px 160px;
}

/* LABEL AU-DESSUS DES DOORS */
.doors-label {
  grid-column: 3 / span 8;
  grid-row: 2;

  text-align: center;
  font-size: 32px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #ffffff;
}

/* LIGNE DES DOORS (cards) */
.index-doors {
  grid-column: 3 / span 8;
  grid-row: 2;

  display: flex;
  justify-content: center;
  gap: 96px;
  margin-top: 160px;

  position: relative;
  z-index: 2; /* devant le feature */
}

.card {
  width: var(--card-w);
  height: var(--card-h);
  background: #000;
  position: relative;
  transform: skewY(-10deg);
  border: 4px solid #fff;
  box-sizing: border-box;
  transition: all 0.3s;
}
.card::before,
.card::after {
  content: '';
  position: absolute;
  background: #fff;
  transition: all 0.5s;
}
.card::before {
  width: var(--card-edge);
  height: var(--card-h);
  top: -4px;
  left: calc(-1 * var(--card-edge) - 4px);
  transform-origin: right;
  transform: skewY(45deg);
}
.card::after {
  height: var(--card-edge);
  width: var(--card-w);
  top: calc(-1 * var(--card-edge) - 4px);
  left: -4px;
  transform-origin: bottom;
  transform: skewX(45deg);
}
.card:hover { 
  transform: skewY(0deg); 
}
.card:hover::before { 
  width: 0; 
  height: calc(var(--card-h) - 8px); 
  left: 0; 
  top: 0; 
}

.card:hover::after  { 
  width: calc(var(--card-w) - 8px); 
  height: 0; 
  left: 0; 
  top: 0; 
}

.card__content { 
  height: 100%;
  padding: 20px;               /* AVANT: 10px */
  
  display: flex;               /* centrage */
  align-items: center;
  justify-content: center;

  color: #e9ecff; 
  text-align: center;

  font-size: 16px;             /* AVANT: taille par défaut (~16, mais là on force) */
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* Liens autour des cards */
.card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.card-link:hover .card,
.card-link:focus-visible .card {
  transform: skewY(0deg);
  border-color: #fff; /* exemple : effet visuel léger */
}

.card-link:focus-visible {
  outline: none;
}


/* =========================
   MAIN PAGE
   ========================= */

/* LATEST ITERATION (bloc de fond derrière les doors) */
.feature {
  grid-column: 1 / span 12;
  grid-row: 3;

  /* chevauchement : on remonte le bloc sous les cards */
  margin-top: 120px;
}

/* Bloc de fond flou / radial */
.feature-bg {
  position: relative;
  padding: 40px 60px;
  background: radial-gradient(circle at top left,
                              rgba(255,255,255,0.12),
                              rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.18);
}

/* Capsule centrale cliquable */
.feature-bg-inner {
  position: relative;
  max-width: 960px;
  margin: 0 auto;

  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(0,0,0,0.45);

  display: flex;
  flex-direction: column;
  gap: 16px;

  padding: 24px 32px;
  box-sizing: border-box;
  cursor: pointer;

  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.feature-bg-inner:hover {
  border-color: rgba(255,255,255,0.7);
  background: rgba(0,0,0,0.75);
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.6);
}

.feature-bg-label {
  font-size:11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}

.feature-bg-title {
  font-size: 22px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.feature-bg-meta {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  display: inline-flex;
  align-items: center;
  gap: 8px;         /* espace entre le tag et "2025" */
}

/* L’année garde l’ancienne logique de méta */
.feature-bg-year {
  opacity: 0.9;
}

.feature-bg-cta {
  margin-top: 16px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  opacity: 0.9;
}

.feature-media {
  width: 100%;
}

/* Élément média (img, iframe, vidéo…) */
.feature-media-el {
  display: block;
  width: 100%;
  height: auto;
  max-height: 420px ;
  object-fit: contain;
  border: 1px solid #e9ecff;
  border-radius: 4px;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.25);
}

/* =========================
   MEDIA TAG (RADIO / IMAGE / WRITING / VIDEO)
   ========================= */

.tag-wrapper {
  display: inline-flex;
  justify-content: center;
  align-items: center;

  border: 2px solid rgba(255,255,255,0.7);
  border-radius: 4px;
  padding: 2px;
  box-sizing: border-box;
}

.tag-text {
  display: inline-block;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-weight: 700;
  font-size:11px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7); 
  line-height: 1;
  letter-spacing: 0;
}

.tag-wrapper:hover .tag-text {
  color: #fff;
}

.tag-wrapper:hover {
  border-color: #fff;
}


/* =========================
   LIGHTBOX / SPOTLIGHT
   ========================= */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;                /* caché par défaut */
  align-items: center;
  justify-content: center;
  z-index: 4000;
}

.lightbox.is-open {
  display: flex;
}

/* Contenu central : image + caption à droite */
.lightbox-figure {
  margin: 0;
  max-width: 94vw;
  max-height: 94vh;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
}

/* Image dans le spotlight */
.lightbox-image {
  max-width: 94vw;
  max-height: 94vh;
  object-fit: contain;
  display: block;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.65);

  /* POUR LE ZOOM / PAN */
  transform-origin: center center;
  transition: transform 0.08s ease-out;
}

/* Quand on n’est pas zoomé (scale = 1) -> pas de drag */
.lightbox-image.is-not-zoomed {
  cursor: default;
}

/* Quand on est zoomé mais pas en train de drag */
.lightbox:not(.is-dragging) .lightbox-image:not(.is-not-zoomed) {
  cursor: grab;
}

/* Pendant le drag */
.lightbox.is-dragging .lightbox-image {
  cursor: grabbing;
}

/* Caption à droite, petit texte */
.lightbox-caption {
  max-width: 260px;
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #e9ecff;
  opacity: 0.8;
  text-align: left;
}

/* Nav gauche / droite */
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: #f5f5f5;
  font-size: 32px;
  cursor: pointer;
  padding: 0 12px;
  display: none;
}

.lightbox-prev {
  left: 24px;
}

.lightbox-next {
  right: 24px;
}

/* Curseur sur le trigger (l’image dans le slot) */
[data-lightbox="feature-gallery"] {
  cursor: pointer;
}

/* Désactiver le scroll de la page quand le lightbox est ouvert */
body.has-lightbox-open {
  overflow: hidden;
}

/* Zones de clic gauche / droite sur une bande centrale, avec un espace neutre au milieu */
.lightbox-hit {
  position: absolute;
  top: 25vh;
  height: 50vh;

  /* au lieu de 50vw */
  width: 35vw;          /* zone cliquable plus étroite */

  z-index: 3500;        /* au-dessus de l'image, sous le bouton close */
}

/* Zone gauche : curseur w-resize */
.lightbox-hit--left {
  left: 0;
  cursor: w-resize;
}

/* Zone droite : curseur e-resize */
.lightbox-hit--right {
  right: 0;
  cursor: e-resize;
}


/* =========================
   HOME — FOOTER
   ========================= */

.site-footer {
  width: 100%;
  height: var(--header);
  background: #fff;     
  border-top: 1px solid #e6e6e6;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 0 32px;                   /* même padding latéral que le header */
  box-sizing: border-box;
  flex-shrink: 0;
  position: relative;
  z-index: 2000;
}

/* COORDINATES à gauche */
.footer-coords {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #000000;
  white-space: nowrap;
}

/* ===== NAV GLITCH BUTTONS (FOOTER) ===== */

.btn-nav {
  height: var(--logo-block-h);
  width: 100%;                /* → nav étirée entièrement */
  display: flex;
  align-items: center;
  justify-content: flex-end;    /* on centre les boutons dans la largeur */
}

.btn-nav .btn-list {
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
  margin: 0;
  gap: 42px;
  list-style: none; /* ← supprime les points */
  padding: 0;
}

/* Wrapper fixe la taille du bouton */
.btn-nav .radio-wrapper{
  position: relative;
  width: 84px;
  height: 38px;
  margin: 3px;
}

/* Bouton glitch monochrome (le lien) */
.btn-nav .btn{
  --primary: #000;
  --shadow-primary: #fff;
  --color: #f5f5f5;
  --font-size: 9px;
  --shadow-secondary-hue: 0;
  --shadow-secondary: hsl(var(--shadow-secondary-hue), 0%, 60%);
  --clip: polygon(11% 0, 95% 0, 100% 25%, 90% 90%, 95% 90%, 85% 90%, 85% 100%, 7% 100%, 0 80%);
  --border: 5px;
  --shimmy-distance: 5;
  --clip-one: polygon(0 2%, 100% 2%, 100% 95%, 95% 95%, 95% 90%, 85% 90%, 85% 95%, 8% 95%, 0 70%);
  --clip-two: polygon(0 78%, 100% 78%, 100% 100%, 95% 100%, 95% 90%, 85% 90%, 85% 100%, 8% 100%, 0 78%);
  --clip-three: polygon(0 44%, 100% 44%, 100% 54%, 95% 54%, 95% 54%, 85% 54%, 85% 54%, 8% 54%, 0 54%);
  --clip-four: polygon(0 0, 100% 0, 100% 0, 95% 0, 95% 0, 85% 0, 85% 0, 8% 0, 0 0);
  --clip-five: polygon(0 0, 100% 0, 100% 0, 95% 0, 95% 0, 85% 0, 85% 0, 8% 0, 0 0);
  --clip-six: polygon(0 40%, 100% 40%, 100% 85%, 95% 85%, 95% 85%, 85% 85%, 85% 85%, 8% 85%, 0 70%);
  --clip-seven: polygon(0 63%, 100% 63%, 100% 80%, 95% 80%, 95% 80%, 85% 80%, 85% 80%, 8% 80%, 0 70%);

  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  line-height: 38px;
  text-align: center;
  font-weight: 900;
  font-size: var(--font-size);
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, font-size 0.2s;
}

/* Calques de base */
.btn-nav .btn:before,
.btn-nav .btn:after{
  content:'';
  position:absolute;
  inset:0;
  clip-path: var(--clip);
  z-index:-1;
}
.btn-nav .btn:before{
  background: var(--shadow-primary);
  transform: translate(var(--border), 0);
}
.btn-nav .btn:after{
  background: var(--primary);
}

.btn-nav .btn__glitch{
  position:absolute;
  top: calc(var(--border) * -1);
  left: calc(var(--border) * -1);
  right: calc(var(--border) * -1);
  bottom: calc(var(--border) * -1);
  background: var(--shadow-primary);
  text-shadow: 2px 2px var(--shadow-primary),
               -2px -2px var(--shadow-secondary);
  clip-path: var(--clip-one);
  display:none;
  z-index:0; /* <- METS 0 ICI, surtout pas -1 */
}
.btn-nav .btn__glitch:before{
  content:'';
  position:absolute;
  inset: var(--border);
  clip-path: var(--clip);
  background: var(--primary);
  z-index:-1; /* ok, lui reste dessous le texte glitch */
}

/* Label numéro */
.btn-nav .number{
  background: var(--shadow-primary);
  color: #323232;
  font-size: 5.5px;
  font-weight: 700;
  letter-spacing: 1px;
  position: absolute;
  width: 15px;
  height: 6px;
  top: 0;
  left: 81%;
  line-height: 6.2px;
}

/* Hover / focus : déclenche le glitch (sur le wrapper) */
.btn-nav .radio-wrapper:hover .btn,
.btn-nav .radio-wrapper:focus-within .btn{
  --primary:#111;
  --font-size:11px;
}

.btn-nav .radio-wrapper:hover .btn__glitch,
.btn-nav .radio-wrapper:focus-within .btn__glitch{
  display:block;
  animation:glitch 2s infinite;
}

/* Animation glitch */
@keyframes glitch {
  0%   { clip-path: var(--clip-one); transform: translate(0,0); }
  2%,8%{ clip-path: var(--clip-two); transform: translate(calc(var(--shimmy-distance) * -1%), 0); }
  6%   { clip-path: var(--clip-two); transform: translate(calc(var(--shimmy-distance) * 1%), 0); }
  9%   { clip-path: var(--clip-two); transform: translate(0,0); }
  10%  { clip-path: var(--clip-three); transform: translate(calc(var(--shimmy-distance) * 1%), 0); }
  13%  { clip-path: var(--clip-three); transform: translate(0,0); }
  14%,21%{ clip-path: var(--clip-four); transform: translate(calc(var(--shimmy-distance) * 1%), 0); }
  25%  { clip-path: var(--clip-five); transform: translate(calc(var(--shimmy-distance) * 1%), 0); }
  30%  { clip-path: var(--clip-five); transform: translate(calc(var(--shimmy-distance) * -1%), 0); }
  35%,45%{ clip-path: var(--clip-six); transform: translate(calc(var(--shimmy-distance) * -1%), 0); }
  40%  { clip-path: var(--clip-six); transform: translate(calc(var(--shimmy-distance) * 1%), 0); }
  50%  { clip-path: var(--clip-six); transform: translate(0,0); }
  55%  { clip-path: var(--clip-seven); transform: translate(calc(var(--shimmy-distance) * 1%), 0); }
  60%  { clip-path: var(--clip-seven); transform: translate(0,0); }
  61%,100%{ clip-path: var(--clip-four); transform: translate(0,0); }
}

/* =========================
   PAGE WRITINGS
   ========================= */

/* Conteneur global de la page */
.writing-shell {
  max-width: 1200px;
  margin: 40px auto 80px auto;
  padding: 0 20px;
}

/* Colonne gauche (nav fixe) */
.writing-nav {
  position: fixed;
  top: 100px;
  left: 50px;
  width: 220px;

  display: flex;
  flex-direction: column;
  align-items: flex-start;

  z-index: 10;
}

/* Colonne droite (contenu) */
.writing-content {
  position: relative;
  max-width: 900px;
  margin-left: 160px;      /* 220 nav + marge approx */
  padding-top: 110px;
}

/* "MGO" */
.writing-heading {
  position: relative;
  display: inline-block;
  font-size: 24px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #e9ecff;
  margin: 0 0 24px;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s ease;
  overflow: hidden;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.writing-heading:hover {
  color: #999;
}

.writing-divider {
  width: 50px;
  height: 1px;
  background: #e9ecff;
  margin: 20px 0;
  opacity: 0.6;
}

/* =========================
   NAVIGATION ARBORESCENTE
   ========================= */

.writing-tree {
  list-style: none;
  padding: 0;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #e9ecff;
}

.writing-tree.is-collapsed {
  display: none;
}

.tree-item {
  margin-bottom: 16px;
}

/* Racines (Writings / Readings) */
.tree-label {
  display: block;
  padding: 0;
  background: none;
  border: none;
  color: #e9ecff;
  font-size: 18px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  text-align: left;
  cursor: pointer;
  text-decoration: none;
}

.tree-root {
  font-size: 22px;
  opacity: 0.85;
}

/* Sous-dossiers potentiels, si tu en ajoutes plus tard */
.tree-folder {
  font-size: 16px;
  opacity: 0.8;
}

/* Sous-listes (enfants) cachées par défaut */
.tree-children {
  list-style: none;
  margin: 0 0 0 14px;
  padding: 0;
  display: none;
}

/* Espacement entre racine et enfants */
.writing-tree > .tree-item > .tree-children {
  margin-top: 16px;
}

/* Espacement entre sous-niveaux imbriqués, au cas où */
.tree-children > .tree-item > .tree-children {
  margin-top: 12px;
}

/* item ouvert */
.tree-item.is-open > .tree-children {
  display: block;
}

/* Boutons de niveau feuille (University, Other, Current, Library) */
.tree-sublabel {
  display: block;
  padding: 0;
  background: none;
  border: none;
  font-size: 13px;
  color: #e9ecff;
  opacity: 0.7;
  text-align: left;
  cursor: pointer;
  text-decoration: none;
  margin-bottom: 10px;
}

/* Hover / actif */
.tree-label:hover,
.tree-sublabel:hover {
  color: #ffffff;
}

.tree-label.is-active,
.tree-sublabel.is-active {
  color: #ffffff;
  opacity: 1;
}

/* Titre principal de la zone contenu (mis à jour en JS) */
.writing-title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #e9ecff;
  margin: 0 0 24px;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* =========================
   LISTES (WRITINGS / READINGS)
   ========================= */

/* base : caché, devient grille quand .is-active */
.writing-list {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;

  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 12px;
  line-height: 1.6;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: #e9ecff;
}

/* Grille de "books" */
.writing-list.is-active {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr));
  column-gap: 12px; /* espace entre livres */
  row-gap: 48px;
}

.writing-list li {
  margin: 0;
  display: flex;
  justify-content: center; /* centre le bookwrapper dans sa cellule */
}

/* Lien container */
.writing-link {
  display: block;
  color: inherit;
  text-decoration: none;
  border: none;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.writing-link:focus,
.writing-link:active {
  outline: none;
}

/* =========================
   BOOK DESIGN
   ========================= */

.bookwrapper {
  position: relative;
  width: 8rem;
  height: 11.6rem;
}

.bookwrapper__anchor {
  position: absolute;
  top: -.6rem;
  left: 0;
}

/* Livre (structure globale) */
.book {
  display: block;
  position: relative;
  height: 100%;
  margin: 0;
  padding: 0 0.7rem 0.7rem 0;
  color: #000;
  text-decoration: none;
  transition: transform 0.3s;
  font-family: Georgia, serif;
}

/* “Pages” + bordures (arrière du livre) */
.book__back {
  position: absolute;
  top: 0.7rem;
  right: 0;
  bottom: 0;
  left: 0.7rem;
  background-color: #000;          /* espace pages = fond noir */
  border-style: solid;
  border-width: 0 2px 2px 0;
  border-color: #fff;              /* bord des pages = blanc */
}

/* Couverture blanche */
.book__front {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 0.8rem 1rem 1.6rem;
  box-sizing: border-box;
  background-color: #ffffff;       /* cover blanche */
  color: #000000;                  /* texte noir */
}

/* Spine partant du coin inférieur gauche de la cover */
.book__spine {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 3px;
  height: 0.7rem;
  background-color: #fff;          /* même couleur que la bordure (pages blanches) */
  transform-origin: 0 0 0;
  transform: skewX(45deg);
}

/* Titre + meta dans la cover */

.book__title {
  display: block;
  margin: 0 0 0.5rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.75rem;
  line-height: 1.2;
  font-weight: 400;
}

.book__author {
  display: block;
  margin: 0;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-style: normal;
  color: #000000;
  opacity: 0.9;
}

/* (Optionnel si tu utilises un publisher plus tard) */
.book__publisher {
  position: absolute;
  bottom: 1.5rem;
  left: 2rem;
  font-size: 0.75rem;
}

/* Hover */
.book:hover,
.book:focus {
  color: #fff; /* n'affecte pas la cover (elle est blanche, texte noir) mais garde cohérence générale */
}

.book:hover {
  transform: translate(-0.25rem, -0.5rem);
  transition: transform 0.3s;
}

.book:hover .book__back {
  box-shadow: 0.8rem 0.8rem 1.2rem 0 #FFFFFF40;
  transition: all 0.3s;
}

/* BOOK — tag en noir (cover blanche) */
.book__front .tag-text {
  color: #000;
}

.book__front .tag-wrapper {
  border-color: rgba(0,0,0,0.4);
}

/* Tags dans les books : texte noir */
.book__tags--black .tag-text { color: #000; }
.book__tags--black .tag-wrapper { border-color: rgba(0,0,0,0.4); }

/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 768px) {
  .writing-nav {
    position: static;
    width: auto;
    margin-left: 0;
    margin-bottom: 24px;
  }

  .writing-content {
    margin-left: 0;
    padding-top: 40px;
  }

  .writing-list.is-active {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bookwrapper {
    width: 13rem;
    height: 18.5rem;
  }
}

/* === GALLERY PAGE === */

.image-body {
  background: #fbfbfb;        /* blanc très léger */
  color: #3f3f3f;

  /* OVERRIDE des règles globales du <body> */
  padding-right: 0;           /* enlève l’espace réservé au rail */
  min-height: 100vh;          /* garde un body plein écran */
  overflow-x: auto;           /* plus besoin de cacher le scroll horizontal */
}

.image-page {
  width: 100vw;
  max-width: 100vw;
  margin: 0;
  padding: 32px 8px 60px;
}

/* Grille petites tuiles serrées */
.image-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  width: 100%;
}

.image-item {
  display: block;
  background: #f2f2f2;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.image-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;   /* recadrage pour garder une grille propre */
  transition: opacity 0.25s ease;
}

.image-item:hover img {
  opacity: 0.9;        /* léger feedback au survol */
}

/* -----------------------------
   HEADER SUPER FIN POUR GALLERY
   ----------------------------- */

.image-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 32px;               /* ultra fin */
  background: #ffffff;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 18px;
  z-index: 3000;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 15px;
  color: #000;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* Liens + textes */
.image-header a,
.image-header div {
  text-decoration: none;
  color: #000;
  font-weight: 400;
  text-shadow: none;
}

/* Hover minimal : légère baisse d'opacité */
.image-header a:hover {
  opacity: 0.5;
}

/* Désactiver le hover pour l'onglet actif */
.image-header .active {
  opacity: 1 !important;     /* reste normal */
  pointer-events: none;      /* pas cliquable */
}

.image-header .active:hover {
  opacity: 1 !important;     /* pas de fade */
}

.image-header .ih-left  { justify-self: start; }
.image-header .ih-center{ justify-self: center; }
.image-header .ih-right { justify-self: end; }

/* =========================
   RADIO PAGE — BASE
   ========================= */

body.radio-page {
  background: #ffffff;
  color: #000000;
}

/* Décale le contenu sous le header fixe
   (header initial ≈ 50vh) */
body.radio-page main {
  padding-top: 50vh;
}

/* =========================
   RADIO HEADER — PROGRESSIVE SHRINK
   ========================= */

.radio-header {
  background: #000000;
  color: #ffffff;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;

  /* hauteur initiale = 50% de la fenêtre (ajustée par JS) */
  height: 50vh;
  overflow: hidden; /* le logo ne déborde jamais */
}

/* Conteneur interne : prend 100% de la hauteur du header */
.radio-header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;  /* player + chat à droite */
  height: 100%;
  padding: 24px 32px;
}

/* LOGO : centré, et prend 100% de la hauteur du header */
.header-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  height: 100%;                      /* = hauteur du header */
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-logo-img {
  height: 100%;                      /* suit la hauteur du header */
  width: auto;
  display: block;
}

/* =========================
   PLAYER (HEADER)
   ========================= */

/* Box PLAYER, masquée par défaut */
.header-player {
  display: flex;
  align-items: center;
  justify-content: center;

  padding: 0 10px;
  min-width: 140px;
  height: 40px;

  background: transparent;
  color: #ffffff;
  border: 1px solid #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;

  opacity: 0;              /* caché tant que header non compact */
  pointer-events: none;    /* non cliquable tant que caché */
  transition: opacity 0.25s ease;

  /* → prend maintenant toute la place ancien player + gap + chat */
  margin-right: 0;
  min-width: 460px;        /* 320 + 20 + 120 */
  width: 460px;            /* largeur fixe pour éviter les sauts */
  padding-left: 12px;
}

/* État : un audio est chargé */
.header-player.has-audio {
  justify-content: flex-start;
}

/* Le titre reprend l’espace uniquement quand il y a un audio */
.header-player.has-audio .header-player-title {
  flex: 1;
  text-align: left;
}

/* Affichage quand le header est compact */
.radio-header.header-compact .header-player {
  opacity: 1;
  pointer-events: auto;
}

/* On cache l'UI native de l'audio */
#radio-header-player {
  display: none;
}

/* Symbole PLAY/PAUSE (gros) à gauche */
.header-player-icon {
  font-size: 26px;         /* augmente si tu veux encore plus gros */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;             /* réserve un bloc fixe pour l’icône */
  flex-shrink: 0;
  margin-right: 12px;      /* espace entre l’icône et le texte */
  cursor: pointer;
}

/* Texte NOW PLAYING (au centre, prend l'espace) */
.header-player-title {
  font-size: 11px;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-right: 8px;
}

/* Timer aligné à droite de la box */
.header-player-time {
  font-size: 11px;
  line-height: 1.3;
  flex-shrink: 0;
  margin-left: 8px;
}

.player-skip-btn {
  border: none;
  background: transparent;
  color: #ffffff;

  font-size: 18px;     /* un peu plus fin que 20, plus élégant pour ⟲ ⟳ */
  line-height: 1;
  padding: 0 2px;      /* boutons plus proches */
  margin: 0 2px;       /* ← RAPPROCHEMENT ici */

  cursor: pointer;

  opacity: 0;
  pointer-events: none;

  transition: opacity 0.25s ease, transform 0.15s ease;
}

/* visibles seulement quand header compact + audio chargé */
.radio-header.header-compact .header-player.has-audio .player-skip-btn {
  opacity: 1;              /* bien blanc, pas gris */
  pointer-events: auto;
}

.player-skip-btn:hover {
  transform: scale(1.1);   /* léger hover, sans changer l’opacité */
}

.player-skip-btn:active {
  transform: scale(0.9);
}

/* =========================
   RADIO - MAIN CONTENT
   ========================= */

.main-content {
  max-width: 1000px;
  margin: 40px auto;
  padding: 0 20px;
}

.main-feature-box {
  width: 100%;
  height: 360px;
  border: 1px solid #000000;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  text-transform: uppercase;
  position: relative;
}

.main-feature-box {
  position: relative;
  overflow: hidden; /* évite tout débordement */
}

.main-feature-img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* remplit tout le cadre sans distorsion */
  object-position: center 40%;
  display: block;
}

.main-feature-text {
  position: absolute;
  top: 32px;           /* léger décalage vers le bas → padding haut */
  left: 32px;          /* padding à gauche pour ne pas coller la bordure */
  max-width: 45%;      /* largeur limitée → belles lignes courtes */

  margin: 0;

  font-size: 42px;     /* assez gros, tu peux passer à 20/24 selon ton œil */
  font-weight: 400;    /* normal pour commencer */
  line-height: 1.6;    /* espacement de lignes "plutôt haut" */
  color: #000000;      /* noir comme demandé */
  text-transform: none;/* pour désactiver l’uppercase de la box si héritée */
  font-family: "Knewave", sans-serif;
  color: #000;
  text-shadow:
    0 -1px 0 rgba(255,255,255,0.6),
    0  1px 0 rgba(0,0,0,0.25);
}


/* =========================
   RADIO - ARCHIVE SECTION
   ========================= */

.archive-section {
  max-width: 1000px;
  margin: 60px auto 80px;
  padding: 0 20px;
}

.archive-header {
  position: relative;
  margin-bottom: 32px;
  height: 40px;
}

.archive-header-line {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 50%;
  height: 1px;
  background: #000000;
}

.archive-filters {
  position: absolute;
  bottom: 100%;
  right: 0;
  display: flex;
  gap: 12px;
  font-size: 12px;
  text-transform: uppercase;
}

.filter-pill {
  padding: 4px 8px;
  border: 1px solid #000000;
  background: #ffffff;
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* Chaque item reste un carré strict */
.audio-item {
  position: relative;
  aspect-ratio: 1 / 1;
  border: 1px solid #000000;
  overflow: hidden;
  background: #000000;
}

/* Le lien occupe tout le carré */
.audio-item-link {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

/* Image plein cadre */
.audio-thumb {
  position: absolute;
  inset: 0;                  /* top:0 right:0 bottom:0 left:0 */
}

.audio-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Bandeau titre — état normal */
.audio-title {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;

  background: rgba(0, 0, 0, 0.65);
  color: #ffffff;

  padding: 6px 8px;           /* même padding tout le temps */
  font-size: 11px;
  text-transform: uppercase;
  line-height: 1.2;
  box-sizing: border-box;

  /* Hauteur initiale (bandeau fin) */
  height: 16%;                /* ajuste à 12–18% selon ton goût */
  min-height: 28px;           /* sécurité */
  
  display: flex;
  flex-direction: column;
  align-items: flex-start;    /* texte toujours en haut du bandeau */
  justify-content: flex-start;

  /* On n'anime QUE la hauteur → transition propre */
  transition: height 0.6s ease-out;
  z-index: 2;
}


/* État hover : le bandeau s'étend */
.audio-item:hover .audio-title {
  height: 40%;                /* taille finale du bandeau */
}

/* Conteneur tags : en ligne + retour à la ligne si manque de place */
.audio-title .tags {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* Caché tant que le bandeau n’est pas déplié (on anime le GROUPE) */
.audio-title .tags {
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

/* Visible uniquement au hover (quand le bandeau s’ouvre) */
.audio-item:hover .audio-title .tags {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* Sécurité : chaque tag ne force pas une ligne */
.audio-title .tag-link {
  display: inline-flex;
  text-decoration: none;
}

/* Tag plus petit dans le bandeau audio */
.audio-title .tag-wrapper {
  padding: 1px 3px;
  display: inline-flex;
  align-items: center;
  border-width: 1px;
}

.audio-title .tag-text {
  font-size: 9px;
  line-height: 1;
  letter-spacing: 0.08em;
}

/* Icône play au centre */
.audio-item::after {
  content: "▶";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 52px;
  color: #ffffff;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.audio-item:hover::after {
  opacity: 0.7;
}

.filter-pill {
  padding: 4px 8px;
  border: 1px solid #000000;
  background: #ffffff;
  cursor: pointer;
}

.filter-pill.is-active {
  background: #000000;
  color: #ffffff;
}

.audio-item.is-hidden {
  display: none;
}

.audio-type {
  position: absolute;
  left: 8px;
  bottom: 6px;

  font-size: 10px;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.audio-item:hover .audio-type {
  opacity: 1;
}

/* =========================
   BANDEAU DROIT (rail)
   ========================= */

.rail{
  position:fixed; top:0; right:0;
  width:var(--rail); height:100dvh;
  background:#fff; border-left:1px solid #e6e6e6;
  display:grid;
  grid-template-rows:auto 1fr auto; /* header tiles | scroll | footer */
  padding:12px 10px 14px; 
  gap:10px;
}
.vgrid{
  overflow:auto; 
  display:grid; 
  grid-auto-rows:min-content;
  gap:var(--gap); 
  padding-right:2px; 
  place-items:center;
}

/* Tuiles (Mixcloud) */
.tile{
  width:100%; 
  max-width:var(--size); 
  aspect-ratio:1/1;
  position:relative; 
  overflow:hidden; 
  background:transparent; 
  border:none; 
  outline:none;
}
.media{
  position:absolute; inset:0; z-index:0;
  clip-path:inset(50% 50% 50% 50%); opacity:0;
  transition:clip-path var(--dur) var(--ease), opacity .8s ease .2s;
}
.tile:hover .media, .tile:focus-within .media{
  clip-path:inset(0 0 0 0); opacity:1;
}
.media > img{
  width:100%; height:100%; object-fit:cover; display:block; user-select:none; pointer-events:none;
}

/* Seed anim */
.seed{ position:absolute; inset:0; z-index:2; }
.seed::before{
  content:""; position:absolute; left:50%; top:50%;
  width:var(--seed); height:var(--seed); transform:translate(-50%,-50%);
  background:#000; transition:width var(--dur) var(--ease), height var(--dur) var(--ease), opacity .8s ease .2s; opacity:1;
}
.seed::after{
  content:""; position:absolute; left:50%; top:50%;
  width:var(--seed); height:var(--seed); transform:translate(-50%,-50%);
  border:var(--border) solid #000; background:transparent;
  transition:width var(--dur) var(--ease), height var(--dur) var(--ease); pointer-events:none; z-index:3;
}
.tile:hover .seed::before, .tile:focus-within .seed::before,
.tile:hover .seed::after,  .tile:focus-within .seed::after{ width:100%; height:100%; }
.tile:hover .seed::before, .tile:focus-within .seed::before{ opacity:0; }

.rail-link,
.rail-link:visited{
  color:#000;
  text-decoration:underline;
  text-underline-offset:3px;
  text-decoration-thickness:2px;
  text-shadow:none;
  font-size:.9em;
}
.rail-link:hover{ color:#333; }

/* =========================
   SEARCH INPUT (Uiverse)
   ========================= */
.input {
  --input-focus: #2d8cf0;
  --font-color: #323232;
  --font-color-sub: #666;
  --bg-color: #fff;
  --main-color: #323232;
  width: 200px;
  height: 40px;
  border-radius: 5px;
  border: 2px solid var(--main-color);
  background-color: var(--bg-color);
  box-shadow: 4px 4px var(--main-color);
  font-size: 15px;
  font-weight: 600;
  color: var(--font-color);
  padding: 5px 10px;
  outline: none;
}
.input::placeholder { color: var(--font-color-sub); opacity:.8; }
.input:focus { border: 2px solid var(--input-focus); }

/* =========================
   RESPONSIVE
   ========================= */



/* =========================
   PAGE ABOUT — LAYOUT
   ========================= */

.about-page {
  padding-top: var(--header);
}

.about-layout {
  position: relative;
  max-width: 1300px;
  margin: 40px auto 0 auto;

  padding: 0 40px;
  padding-right: 360px;
  display: block;
}

/* Colonne gauche : bloc texte large, stable */
.about-text-box {
  background: #080808;
  border: 1px solid #444;

  display: flex;
  flex-direction: column;
  min-height: calc(100vh - var(--header) - 80px); /* remplit bien la hauteur */
}

/* Conteneur interne pour les panneaux */
.about-text-inner {
  position: relative;
  flex: 1 1 auto;
}

/* Panneaux superposés */
.about-panel {
  position: absolute;
  inset: 0;
  padding: 24px;

  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.about-panel.is-active {
  opacity: 1;
  pointer-events: auto;
}

.about-panel h1 {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 400;
  font-size: 1.6rem;
  letter-spacing: 1px;
  margin: 0 0 42px 0;
}

.about-panel p {
  margin: 0 0 10px 0;
  font-size: 0.85rem;
  line-height: 1.7;
  color: #ffffff;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 400;
}

/* =========================
   ABOUT — NAV GLITCH VERTICAL
   ========================= */

/* Sidebar fixe à droite, sous le header, avec marge en bas */
.about-sidebar {
  position: fixed;
  top: calc(var(--header) + 24px);             /* un peu sous le header */
  right: 40px;                                 /* même padding que le layout */
  width: 260px;
  max-width: 260px;
  height: calc(100vh - var(--header) - 24px - 40px); /* espace en bas */
  display: flex;
}

/* On réutilise btn-nav, mais pleine hauteur */
.about-sidebar .btn-nav {
  width: 100%;
  height: 100%;
  display: flex;
}

.about-sidebar .btn-list {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;  /* ← important */
  gap: 48px;                    /* tu ajustes ici maintenant */
  width: 100%;
  height: auto;                 /* ← pour que le contenu décide de la hauteur */
}

/* Chaque wrapper : largeur pleine, hauteur fixe */
.about-sidebar .radio-wrapper {
  position: relative;
  width: 100%;
  height: 80px;
}

/* Bouton glitch adapté à la hauteur verticale */
.about-sidebar .btn-nav .btn {
  --font-size: 11px;
  line-height: 80px;
}

/* Bouton actif : variation visuelle */
.about-sidebar .radio-wrapper.is-active .btn {
  --primary: #fff;
  --shadow-primary: #000;
  --color: #000;
}

/* =========================
   ABOUT — RESPONSIVE
   ========================= */

@media (max-width: 900px) {
  .about-page {
    padding-top: var(--header);
    padding-left: 20px;
    padding-right: 20px;
  }

  .about-layout {
    padding: 0;
    margin: 20px auto 60px;
    min-height: auto;
  }

  /* Sidebar redevient normale, sous le texte */
  .about-sidebar {
    position: static;
    width: 100%;
    max-width: none;
    height: auto;
    margin-top: 24px;
  }

  .about-sidebar .btn-nav {
    height: auto;
  }

  .about-sidebar .btn-list {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 18px;
  }

  .about-sidebar .radio-wrapper {
    width: 48%;
    height: 70px;
  }

  .about-sidebar .btn-nav .btn {
    line-height: 70px;
  }

  .about-text-inner {
    padding: 16px;
  }
}

.who-section {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
}

.who-image-stack {
  flex: 0 0 40%;
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  cursor: pointer;
}

.who-image-stack .who-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.who-image-stack .who-image.is-active {
  opacity: 1;
  pointer-events: auto;
}

.who-text {
  flex: 1;
}

.who-subtext{
  margin: 0 0 10px 0;
  font-size: 0.85rem;
  line-height: 1.7;
  color: #ffffff;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 400;
}

.who-text .accordion-item:first-of-type {
  margin-top: 32px;
}

/* =========================
   WHY — CLICKABLE IMAGE
   ========================= */

.why-image-link {
  display: block;
  width: 100%;
  height: 100%;
}

/* =========================
   WHO — ACCORDION
   ========================= */

.accordion-item {
  border: none;
  background: transparent;
}

.accordion-toggle {
  width: 100%;
  background: transparent;
  border: none;
  padding: 6px 0;
  margin: 0;

  display: flex;
  justify-content: space-between;
  align-items: center;

  color: #ffffff;
  font-size: 0.85rem;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 400;
  text-align: left;
  cursor: pointer;
}

.accordion-icon {
  display: inline-block;
  margin-left: 12px;
}

/* Panels cachés par défaut */
.accordion-panel {
  display: none;
}

/* Affichés uniquement si .is-open est ajoutée par le JS */
.accordion-panel.is-open {
  display: block;
  margin-top: 8px;
}

.accordion-panel p {
  margin: 0 0 10px 0;
  font-size: 0.85rem;
}

.accordion-item + .accordion-item {
  margin-top: 16px;
}

.what-image-wrapper {
  width: 100%;
  height: 100%;      /* prend toute la hauteur de la box */
  display: flex;     /* évite les déformations */
}

.what-image {
  width: 100%;
  height: 100%;      /* remplissage vertical + horizontal */
  object-fit: cover; /* découpe pour remplir sans distorsion */
  display: block;
}

/* =========================
   TAG INDEX PAGE
   ========================= */

.tag-index-body {
  background: #000;
  color: #fff;
}

.tag-index-page {
  max-width: 1400px;
  margin: 0;
  padding: 80px 20px 120px; /* MODIF : 40px -> 20px pour ancrer plus à gauche */
  width: min(1400px, 100%);
}

.tag-index-header {
  margin-bottom: 80px;
}

.tag-index-title {
  font-size: clamp(56px, 8vw, 120px);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: #fff;
  margin-left: 12px;
}

.tag-index-title::first-letter {
  font-weight: 300;      /* plus fin */
}

.tag-index-items {
  display: flex;
  flex-direction: column;
  gap: 120px;
  padding-left: 80px;
}

.tag-index-item {
  display: grid;
  grid-template-columns: minmax(320px, 520px) 1fr;
  gap: 80px;
  align-items: flex-start;
}

/* AJOUT : colonne gauche bien ancrée à gauche (évite l’effet “centré”) */
.tag-index-item-left {
  display: flex;
  justify-content: flex-start;
}

/* AJOUT : force les blocs avec max-width (ex: .audio-item) à coller à gauche */
.tag-index-item-left > * {
  margin-left: 0;
  margin-right: auto;
}

.tag-index-item-right {
  max-width: 520px;
  font-size: 13px;
  line-height: 1.45;
  color: rgba(255,255,255,0.7);
}

.tag-index-item-right p {
  white-space: pre-line;
}

/* Image simple */
.tag-index-image {
  width: 100%;
  display: block;
  border: 1px solid rgba(255,255,255,0.28);
}

.tag-index-empty {
  color: rgba(255,255,255,0.7);
  font-size: 16px;
}

/* TAG INDEX — remove bullets for are.na books */
.tag-index-page li {
  list-style: none;
  padding-left: 0;
  margin-left: 0;
}

/* optionnel : si ton <ul> garde un padding par défaut */
.tag-index-page ul {
  list-style: none;
  padding-left: 0;
  margin-left: 0;
}

/* TAG INDEX — livres XL */
.tag-index-page .bookwrapper {
  width: 14rem;
  height: 20.5rem;
}

/* TAG INDEX — titre de livre */
.tag-index-page .book__title {
  font-size: 1.05rem;      /* ← augmente franchement */
  line-height: 1.25;
  margin-bottom: 0.6rem;
}

/* TAG INDEX — meta livre */
.tag-index-page .book__author {
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  opacity: 0.9;
}

/* TAG INDEX — face avant plus aérée */
.tag-index-page .book__front {
  padding: 1.2rem 1.4rem 2.2rem;
}

/* TAG INDEX — hover plus affirmé */
.tag-index-page .book:hover {
  transform: translate(-0.4rem, -0.7rem);
}

.tag-index-page .book:hover .book__back {
  box-shadow: 1.2rem 1.2rem 1.8rem 0 #ffffff40;
}

/* audio-item dans tag-index : limite la taille + border clair */
.tag-index-page .audio-item {
  width: 100%;
  max-width: 420px;
  border-color: rgba(255,255,255,0.35);
}

/* Safe : toutes les images dans tag-index restent contenues */
.tag-index-page img {
  max-width: 100%;
  height: auto;
}

@media (max-width: 900px) {
  .tag-index-page { padding: 56px 20px 96px; }
  .tag-index-item { grid-template-columns: 1fr; gap: 28px; }
  .tag-index-item-right { max-width: none; }
}

