/* ═══════════════════════════════════════════════════════════
   LES QUARTIERS DU CHEVALIER
   Mise en page éditoriale, asymétrique, brute et aérée.
   Aucune carte « glassmorphic », aucun arrondi décoratif.
   S'appuie sur les variables de css/style.css.
   ═══════════════════════════════════════════════════════════ */

.quartiers { padding-top: clamp(6rem, 12vh, 9rem); }

/* ─────────────── titres partagés ─────────────── */
.qt-titre,
.qt-section-titre {
  font-family: var(--blackletter);
  font-weight: 400;
  color: var(--fer);
  margin: 0;
}
.qt-titre {
  font-size: clamp(3rem, 10.5vw, 11rem);
  line-height: .86;
  letter-spacing: -0.01em;
}
.qt-section-titre {
  font-size: clamp(2.4rem, 6vw, 5.2rem);
  line-height: .9;
}
.qt-section-sous {
  margin: 1.1rem 0 0;
  max-width: 46ch;
  color: var(--fer-dim);
  font-size: clamp(.9rem, 1.2vw, 1.05rem);
}

.qt-section {
  max-width: 1500px;
  margin: 0 auto;
  padding: clamp(4.5rem, 12vh, 9rem) clamp(1.2rem, 5vw, 4rem);
}
.qt-section-tete { margin-bottom: clamp(2.5rem, 6vh, 4.5rem); }

/* ═══════════════ 1. EN-TÊTE ═══════════════ */
.qt-entete {
  max-width: 1500px;
  margin: 0 auto;
  padding: clamp(2rem, 6vh, 5rem) clamp(1.2rem, 5vw, 4rem) clamp(3rem, 8vh, 6rem);
}
.qt-fil {
  margin: 0 0 1.6rem;
  font-size: .7rem;
  letter-spacing: .45em;
  text-transform: uppercase;
  color: var(--or);
}
.qt-intro {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 3fr);
  gap: clamp(2rem, 6vw, 6rem);
  margin-top: clamp(2.5rem, 6vh, 4.5rem);
}
.qt-chapeau {
  font-family: var(--blackletter);
  font-weight: 400;
  font-size: clamp(1.8rem, 3.4vw, 3rem);
  line-height: 1;
  margin: 0 0 1.4rem;
  color: var(--or);
}
.qt-texte {
  margin: 0;
  max-width: 62ch;
  color: var(--fer-dim);
  font-size: clamp(1rem, 1.25vw, 1.15rem);
  line-height: 1.85;
}
/* colonne étroite : une simple ligne de force */
.qt-intro-etroite { display: flex; justify-content: center; }
.qt-ligne {
  display: block;
  width: 1px;
  min-height: 100%;
  background: linear-gradient(180deg, transparent, var(--fer-faible) 18%, var(--fer-faible) 82%, transparent);
}

/* ═══════════════ 2. VINYLES — L'ARSENAL SONORE ═══════════════
   Une grille franche, alignée comme un rayon de bibliothèque monastique.
   Toute l'irrégularité est portée par la patine : sépia, rousseurs,
   auréole du disque imprimée dans le carton, cornières dorées. */
.vinyles-grille {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(230px, 100%), 1fr));
  gap: clamp(1.8rem, 3.4vw, 3.4rem);
  align-items: start;
}

/* chaque disque est désormais un lien vers l'album (Spotify), sans en avoir l'air */
.vinyle { display: block; text-decoration: none; color: inherit; }

.vinyle-scene { position: relative; aspect-ratio: 1; }
/* la pochette survolée passe devant ses voisines : le disque sort du bac */
.vinyle:hover .vinyle-scene { z-index: 6; }

/* le disque, tapi derrière la pochette */
.vinyle-disque {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: 50%;
  transform: translateX(0);
  transition: transform .7s var(--ease-acier);
  background:
    radial-gradient(circle at 50% 50%, var(--or) 0 5.5%, transparent 6%),
    radial-gradient(circle at 50% 50%, var(--sang) 0 17%, transparent 17.5%),
    repeating-radial-gradient(circle at 50% 50%, #0a0e16 0 2px, #141b29 2px 4px);
}
/* un disque sur deux tire vers le bleu roi */
.vinyle:nth-child(even) .vinyle-disque {
  background:
    radial-gradient(circle at 50% 50%, var(--or) 0 5.5%, transparent 6%),
    radial-gradient(circle at 50% 50%, var(--fer) 0 17%, transparent 17.5%),
    repeating-radial-gradient(circle at 50% 50%, #16294a 0 2px, #1d3557 2px 4px);
}
/* le disque ne fait plus que pointer dans la gouttière entre deux pochettes :
   sa sortie reste sous la largeur du gap, il ne chevauche jamais le voisin */
.vinyle:hover .vinyle-disque { transform: translateX(clamp(1rem, 2.6vw, 2.4rem)); }

/* le carton : bords mangés, coins assombris */
.vinyle-pochette {
  position: relative;
  z-index: 2;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid rgb(var(--fer-rgb) / .2);
  background: var(--nuit-2);
  box-shadow:
    0 24px 50px -22px rgba(0, 0, 0, .85),
    inset 0 0 0 1px rgba(0, 0, 0, .55),
    inset 0 0 34px rgba(0, 0, 0, .5);
}

/* auréole du disque, gravée dans le carton par des décennies de rangement */
.vinyle-pochette::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 50%, transparent 0 41%, rgba(0, 0, 0, .3) 41% 42.4%, transparent 42.6%),
    radial-gradient(circle at 50% 50%, transparent 0 39.4%, rgb(var(--fer-rgb) / .07) 39.4% 40.2%, transparent 40.4%),
    radial-gradient(130% 130% at 50% 45%, transparent 52%, rgba(0, 0, 0, .55));
}

/* grain du papier + rousseurs (foxing) : les taches brunes de l'âge */
.vinyle-pochette::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  opacity: .4;
  mix-blend-mode: overlay;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23g)'/%3E%3C/svg%3E"),
    radial-gradient(ellipse at 20% 16%, rgba(198, 158, 102, .55), transparent 46%),
    radial-gradient(ellipse at 84% 78%, rgba(120, 86, 48, .5), transparent 42%);
}

/* cornières dorées, comme sur les albums de famille */
.vinyle-scene::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  opacity: .7;
  background-repeat: no-repeat;
  background-size: 24px 24px;
  background-position: left top, right top, left bottom, right bottom;
  background-image:
    linear-gradient(135deg, var(--or) 0 44%, transparent 44%),
    linear-gradient(225deg, var(--or) 0 44%, transparent 44%),
    linear-gradient(45deg,  var(--or) 0 44%, transparent 44%),
    linear-gradient(315deg, var(--or) 0 44%, transparent 44%);
  transition: opacity .5s var(--ease-acier);
}
.vinyle:hover .vinyle-scene::after { opacity: 1; }

/* le sépia du temps ; il ne se retire qu'au survol */
.vinyle-defaut,
.vinyle-img {
  display: block;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: sepia(.6) saturate(.7) contrast(1.06) brightness(.9);
  transition: filter .6s var(--ease-acier);
}
.vinyle:hover .vinyle-defaut,
.vinyle:hover .vinyle-img { filter: sepia(.18) saturate(.95) contrast(1.02) brightness(1); }

/* la cartouche : toujours lisible, jamais tributaire du survol */
.vinyle-titre {
  font-family: var(--blackletter);
  font-weight: 400;
  font-size: clamp(1.35rem, 1.9vw, 1.9rem);
  line-height: 1.05;
  margin: 1.1rem 0 .35rem;
  color: var(--fer);
}
.vinyle-artiste {
  margin: 0;
  font-size: .66rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--fer-faible);
  transition: color .3s;
}
.vinyle:hover .vinyle-artiste { color: var(--or); }

/* au doigt, pas de survol : la pochette reste sortie de son sépia */
@media (hover: none) {
  .vinyle-defaut,
  .vinyle-img { filter: sepia(.34) saturate(.85) contrast(1.04) brightness(.96); }
}

/* ═══════════════ 4. FOOTBALL — LA SOULE DES ONZE ═══════════════
   Les fanions d'avant-match : comme les capitaines échangent leurs fanions au
   coup d'envoi, trois étendards pendent d'une même lance — un par club, dans
   l'ordre des serments, l'année sous la pointe. */
.soule-tete {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: end;
  margin-bottom: clamp(3.5rem, 9vh, 6rem);
}
.soule-corps {
  margin: 0;
  max-width: 52ch;
  color: var(--fer-dim);
  font-size: clamp(.95rem, 1.15vw, 1.08rem);
  line-height: 1.85;
  border-left: 2px solid var(--sang);
  padding-left: clamp(1.1rem, 2.5vw, 1.9rem);
}

.soule-tribune {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding-top: 30px;
}
/* la lance : une seule hampe pour tous les serments, pointée vers demain */
.soule-lance {
  position: absolute;
  top: 0;
  left: 1%; right: 3%;
  height: 7px;
  background: linear-gradient(180deg, #7a5526, #3c2812);
  box-shadow: 0 3px 8px rgba(0, 0, 0, .5), inset 0 1px 0 rgb(var(--or-rgb) / .4);
}
.soule-lance::before {                    /* le talon */
  content: "";
  position: absolute;
  left: -10px; top: -3px;
  width: 10px; height: 13px;
  background: var(--or);
}
.soule-lance::after {                     /* la pointe : le temps file à droite */
  content: "";
  position: absolute;
  right: -28px; top: 50%;
  translate: 0 -50%;
  border-left: 28px solid var(--or);
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
}

.fanions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.2rem, 4vw, 3.5rem);
}
.fanion {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  filter: drop-shadow(0 16px 22px rgba(0, 0, 0, .45));
}
/* les anneaux qui pendent le drap à la lance */
.fanion::before,
.fanion::after {
  content: "";
  position: absolute;
  top: -26px;
  width: 11px; height: 24px;
  border: 2px solid var(--or);
  border-radius: 50%;
  opacity: .9;
}
.fanion::before { left: 24%; }
.fanion::after  { right: 24%; }

/* Tinctures : chaque club porte ses couleurs.
   nth-of-type et non nth-child : le <template> du back office est un enfant
   du conteneur, il décalerait tout le monde d'un cran. */
.fanion:nth-of-type(1) { --champ-1: #ececec; --champ-2: #14171c; --emaux: var(--sang); }
.fanion:nth-of-type(2) { --champ-1: #f2d024; --champ-2: #14171c; --emaux: var(--sang); }
.fanion:nth-of-type(3) { --champ-1: #cf2027; --champ-2: #f2d024; --emaux: #2f62d0; }

/* le drap : pointu comme un fanion, tissé comme une bannière */
.fanion-drap {
  position: relative;
  width: min(100%, 250px);
  aspect-ratio: 3 / 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(1.8rem, 3vw, 2.4rem) .9rem 0;
  clip-path: polygon(0 0, 100% 0, 100% 74%, 50% 100%, 0 74%);
  background-color: var(--nuit-2);
  background-image: repeating-linear-gradient(45deg, rgb(var(--fer-rgb) / .04) 0 2px, transparent 2px 6px);
  transform-origin: 50% 0;
  transition: transform .55s var(--ease-acier);
}
.fanion:hover .fanion-drap { transform: rotate(-2.6deg); }
.fanion:nth-of-type(even):hover .fanion-drap { transform: rotate(2.6deg); }

/* la bande de tinctures en tête du drap, soulignée d'or */
.fanion-tinctures {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 11px;
  background: linear-gradient(90deg, var(--champ-1) 0 50%, var(--champ-2) 50% 100%);
}
.fanion-tinctures::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 100%;
  height: 2px;
  background: rgb(var(--or-rgb) / .55);
}

.fanion-blason {
  width: clamp(86px, 10vw, 118px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}
.blason,
.fanion-img { display: block; width: 100%; height: 100%; }
.fanion-img { object-fit: contain; }

.blason-dextre   { fill: var(--champ-1); }
.blason-senestre { fill: var(--champ-2); }
/* le tourteau reste sombre en toute heure : l'or des initiales doit s'y lire */
.blason-tourteau { fill: #14171c; opacity: .88; }
.blason-trait    { fill: none; stroke: var(--or); stroke-width: 2.5; }
.blason-initiales {
  font-family: var(--blackletter);
  font-size: 30px;
  fill: var(--or);
  letter-spacing: 1px;
}
.fanion:hover .blason-trait { stroke: var(--emaux); }

.fanion-club {
  font-family: var(--blackletter);
  font-weight: 400;
  font-size: clamp(1.25rem, 1.9vw, 1.7rem);
  line-height: 1.05;
  margin: .9rem 0 0;
  color: var(--fer);
  text-align: center;
}
.fanion-pointe {
  position: absolute;
  bottom: 4.5%;
  left: 50%;
  translate: -50% 0;
  color: var(--or);
  font-size: .8rem;
  opacity: .85;
}
/* l'année, au fil à plomb sous la pointe */
.fanion-annees {
  margin: 1.2rem 0 0;
  font-size: .74rem;
  font-style: italic;
  letter-spacing: .14em;
  color: var(--or);
}
.fanion-annees::before {
  content: "";
  display: block;
  width: 1px; height: 16px;
  margin: 0 auto .5rem;
  background: var(--fer-faible);
}

/* le cri, tendu entre deux filets comme une écharpe de tribune */
.soule-cri {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2rem);
  max-width: 1100px;
  margin: clamp(3.5rem, 8vh, 5.5rem) auto 0;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--or);
  text-align: center;
}
.soule-cri::before,
.soule-cri::after {
  content: "";
  flex: 1;
  height: 1px;
}
.soule-cri::before { background: linear-gradient(90deg, transparent, var(--fer-faible)); }
.soule-cri::after  { background: linear-gradient(90deg, var(--fer-faible), transparent); }

@media (max-width: 720px) {
  .soule-tete { grid-template-columns: 1fr; gap: 1.6rem; }
  .soule-tribune { padding-top: 0; }
  .soule-lance,
  .fanion::before,
  .fanion::after { display: none; }
  /* le chemin se redresse : une corde verticale relie les serments */
  .soule-tribune::before {
    content: "";
    position: absolute;
    left: 50%; top: 0; bottom: 0;
    width: 1px;
    background: linear-gradient(180deg, transparent, var(--fer-faible) 8%, var(--fer-faible) 92%, transparent);
  }
  .fanions { grid-template-columns: 1fr; gap: clamp(2.6rem, 7vh, 4rem); }
  .fanion { z-index: 1; }
  .fanion-drap { width: min(72vw, 250px); }
}

/* ═══════════════ 5. BOTANIQUE — LES SIMPLES DU DONJON ═══════════════ */
.planches {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: clamp(2rem, 4vw, 4rem) clamp(2rem, 5vw, 5rem);
}
.plante {
  display: grid;
  grid-template-columns: clamp(88px, 9vw, 120px) 1fr;
  gap: clamp(1.1rem, 2vw, 1.8rem);
  align-items: start;
  border-top: 1px solid var(--fer-faible);
  padding-top: 1.6rem;
}
.plante-dessin {
  border: 1px solid var(--fer-faible);
  background: rgb(var(--nuit-rgb) / .18);
  aspect-ratio: 200 / 240;
  overflow: hidden;
}
.plante-svg,
.plante-img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* une planche par variante, choisie selon le rang de la plante */
.plante-svg g[class^="v"] { display: none; }
.plante[data-variante="0"] .v0,
.plante[data-variante="1"] .v1,
.plante[data-variante="2"] .v2,
.plante[data-variante="3"] .v3 { display: block; }

.plante-nom {
  font-family: var(--blackletter);
  font-weight: 400;
  font-size: clamp(1.6rem, 2.4vw, 2.3rem);
  line-height: 1;
  margin: 0;
  color: var(--fer);
}
.plante-latin {
  margin: .35rem 0 .9rem;
  font-size: .68rem;
  font-style: italic;
  letter-spacing: .14em;
  color: var(--or);
}
.plante-note {
  margin: 0 0 1.4rem;
  font-size: .88rem;
  line-height: 1.7;
  color: var(--fer-dim);
}

/* jauges de « vie », façon RPG médiéval : segments rectilignes */
.jauges { display: grid; gap: .7rem; }
.jauge-ligne { display: grid; grid-template-columns: 4.6rem 1fr; align-items: center; gap: .8rem; }
.jauge-nom {
  font-size: .6rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--fer-faible);
}
.jauge {
  position: relative;
  height: 12px;
  border: 1px solid rgb(var(--fer-rgb) / .25);
  background: rgb(var(--fer-rgb) / .05);
  overflow: hidden;
}
.jauge-remplissage {
  display: block;
  height: 100%;
  width: 0;
  background: repeating-linear-gradient(90deg, var(--fer) 0 7px, transparent 7px 10px);
}
.jauge--or .jauge-remplissage {
  background: repeating-linear-gradient(90deg, var(--or) 0 7px, transparent 7px 10px);
}

/* ═══════════════ retour ═══════════════ */
.qt-retour {
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 clamp(1.2rem, 5vw, 4rem) clamp(4rem, 10vh, 7rem);
}
.qt-retour a {
  font-family: var(--blackletter);
  font-size: 1.6rem;
  color: var(--fer-dim);
  text-decoration: none;
}
.qt-retour a:hover { color: var(--or); }

/* ═══════════════ mouvement réduit ═══════════════ */
body[data-motion="reduced"] [data-qt-fade],
body[data-motion="reduced"] [data-qt-titre] { opacity: 1 !important; transform: none !important; }
body[data-motion="reduced"] .trace path,
body[data-motion="reduced"] .trace circle { stroke-dashoffset: 0 !important; }
