@font-face {
  font-family: "Victorian Parlor";
  src: url("fonts/VictorianParlorVintageAlternate.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Great Victorian";
  src: url("fonts/GreatVictorian-Standard.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f3ecdd;
  --ink: #221812;
  --muted: #93816c;
  --muted-2: #a89a83;
  --accent: #801d11;
  --accent-dark: #801d11;
  --accent-bright: #e2432c;
  --line: #cdbea0;
  --border: #d8c9a8;
  --border-strong: #b8a480;
  --diamond: #a8291f;
  --club: #241a13;
  --radius-cut: 12px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

* {
  box-sizing: border-box;
}

/* Reset nécessaire car les navigateurs n'appliquent pas tous la même feuille
   de style par défaut aux boutons : iOS Safari les teinte en bleu système
   (couleur de lien) si `color` n'est pas explicitement fixé, contrairement
   à la plupart des navigateurs desktop qui héritent une couleur sombre. */
button {
  color: inherit;
  font: inherit;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  margin: 0;
  padding: 0;
  color: var(--ink);
  font-family: "Playfair Display", "Georgia", serif;
  min-height: 100%;
}

/* Sans ça, <html> n'a aucune couleur de fond propre : sous les
   barres translucides d'iOS, ce qui dépasse de body montrerait le
   blanc par défaut du navigateur au lieu du crème de l'app. */
html {
  background-color: #dfd3c4;
}

/* Texture papier aquarelle : quelques auréoles douces (le "wash") +
   un grain fin procédural (bruit SVG), sans image externe. */
body {
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 55% 40% at 12% 8%, rgba(150, 108, 62, 0.10), transparent 62%),
    radial-gradient(ellipse 50% 45% at 88% 12%, rgba(128, 29, 17, 0.06), transparent 60%),
    radial-gradient(ellipse 60% 50% at 78% 82%, rgba(150, 108, 62, 0.09), transparent 65%),
    radial-gradient(ellipse 50% 40% at 15% 90%, rgba(128, 29, 17, 0.05), transparent 60%),
    radial-gradient(ellipse 70% 55% at 50% 45%, rgba(205, 190, 160, 0.35), transparent 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0.13 0 0 0 0 0.09 0 0 0 0 0.06 0 0 0 0.16 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, repeat;
  background-size: auto, auto, auto, auto, auto, 220px 220px;
}

/* Sur la couverture, html et body reprennent le même fond que
   .cover-screen (au lieu de la texture aquarelle crème) : sous les
   barres translucides d'iOS 26, c'est ce fond qui reste visible dans
   les quelques pixels situés au-delà de .cover-screen. html doit
   suivre aussi, sinon on retrouve un décalage crème/rouge au même
   endroit dès que body ne couvre pas exactement tout le viewport. */
html:has(.cover-screen),
body:has(.cover-screen),
html:has(.qr-screen),
body:has(.qr-screen) {
  background-color: #5a0c0c;
  background-image:
    radial-gradient(ellipse 100% 60% at 50% 105%, rgba(0, 0, 0, 0.22), transparent 66%),
    radial-gradient(ellipse 140% 95% at 50% 50%, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.2) 100%),
    url("assets/fond-papier-rouge-2.webp");
  background-repeat: no-repeat, no-repeat, no-repeat;
  background-position: center, center, center;
  background-size: auto, auto, cover;
}

#app {
  min-height: 100vh;
  display: flex;
  justify-content: center;
}

.screen {
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 48px 28px 32px;
}

/* ---------- Écran de couverture (façon manuel de boxe vintage) ---------- */

.cover-screen {
  max-width: none;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  padding: min(4vh, 48px) clamp(8px, 2.5vw, 44px) min(2.4vh, 22px);
  gap: min(2.4vh, 18px);
  background-color: #8b1515;
  background-image:
    radial-gradient(ellipse 100% 60% at 50% 105%, rgba(0, 0, 0, 0.22), transparent 66%),
    radial-gradient(ellipse 140% 95% at 50% 50%, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.2) 100%),
    url("assets/fond-papier-rouge-2.webp");
  background-repeat: no-repeat, no-repeat, no-repeat;
  background-position: center, center, center;
  background-size: auto, auto, cover;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  position: relative;
}

.cover-orn {
  position: absolute;
  width: clamp(72px, 17vw, 128px);
  height: auto;
  filter: brightness(1.45) saturate(1.15);
}

.cover-orn-tl { top: clamp(14px, 3.4vw, 26px); left: clamp(14px, 3.4vw, 26px); }
.cover-orn-tr { top: clamp(14px, 3.4vw, 26px); right: clamp(14px, 3.4vw, 26px); }
.cover-orn-bl { bottom: clamp(14px, 3.4vw, 26px); left: clamp(14px, 3.4vw, 26px); }
.cover-orn-br { bottom: clamp(14px, 3.4vw, 26px); right: clamp(14px, 3.4vw, 26px); }

.cover-top {
  position: relative;
  width: 100%;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1 1 auto;
  justify-content: center;
  gap: min(2.6vh, 24px);
}

.cover-title-svg {
  width: 100%;
  max-width: 600px;
  max-height: 26vh;
  height: auto;
  flex: 0 1 auto;
  overflow: visible;
}

.cover-title-line {
  font-family: "Victorian Parlor", "Playfair Display", serif;
  font-size: 38px;
  letter-spacing: 0.02em;
  fill: #f6b93f;
  stroke: #f6b93f;
  stroke-width: 1.1px;
  paint-order: stroke fill;
}

.cover-emblem {
  display: block;
  width: min(300px, 72%);
  max-height: 24vh;
  object-fit: contain;
  flex: 0 1 auto;
  min-height: 0;
  height: auto;
  opacity: 0.95;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.28));
}

.cover-tagline {
  max-width: 400px;
  text-align: center;
  color: rgba(247, 238, 222, 0.9);
  font-size: min(clamp(13.5px, 3.7vw, 17px), 2.4vh);
  line-height: 1.5;
  font-style: italic;
  margin: 0;
}

.cover-pun {
  color: #f6b93f;
  font-family: "Victorian Parlor", "Playfair Display", serif;
  font-size: min(clamp(20px, 5.8vw, 32px), 4vh);
  line-height: 1.18;
  letter-spacing: 0.02em;
  font-weight: 400;
  margin: 0;
}

.cover-pun-a {
  position: relative;
  display: inline-block;
}

.cover-pun-a::before {
  content: "";
  position: absolute;
  left: 0.11em;
  top: 0.28em;
  width: 0.15em;
  height: 0.055em;
  border-radius: 0.03em;
  background: #f6b93f;
  transform: rotate(40deg);
  transform-origin: left center;
}

.cover-bottom {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.cover-edition {
  color: rgba(246, 185, 63, 0.92);
  font-size: clamp(11px, 2.8vw, 13px);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  margin: 0;
}

.cover-hint {
  color: rgba(247, 238, 222, 0.55);
  font-size: 10.5px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-style: normal;
  white-space: nowrap;
  margin: 0;
}

/* ---------- Bloc décoratif (séparateur cartes) ---------- */

.suit-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 14px 0 32px;
}

.suit-divider .line {
  flex: 1;
  max-width: 90px;
  height: 1px;
  background: var(--line);
}

.suit-divider .suit {
  font-size: 15px;
  line-height: 1;
}

.suit-divider .suit.red {
  color: var(--diamond);
}

.suit-divider .suit.black {
  color: var(--club);
}

/* ---------- Écran d'accueil : carte à double bordure dorée ---------- */

.home-screen {
  max-width: 600px;
  min-height: 100vh;
  min-height: 100dvh;
  /* overflow-y: auto (pas hidden) : si la carte est plus haute que
     l'espace dispo (barres translucides d'iOS 26 qui grignotent le
     dvh réel), on peut défiler pour la voir en entier plutôt que de
     couper silencieusement le haut/le bas. */
  overflow-y: auto;
  padding: min(2vh, 18px) 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.home-card {
  background: #f7ecdd;
  border: 2.25px solid #c9992f;
  padding: 5px;
  box-shadow: 0 16px 38px rgba(62, 40, 22, 0.17);
}

.home-card-inner {
  border: 1px solid rgba(201, 153, 47, 0.5);
  display: flex;
  flex-direction: column;
}

.home-header {
  position: relative;
  text-align: center;
  padding: min(3.4vh, 30px) clamp(18px, 5vw, 28px) min(2.6vh, 22px);
  background-color: #801d11;
  background-image: radial-gradient(ellipse 90% 70% at 50% 0%, rgba(255, 255, 255, 0.07), transparent 60%),
    radial-gradient(ellipse 120% 90% at 50% 110%, rgba(0, 0, 0, 0.42), transparent 70%);
}

.home-welcome {
  margin: 0 0 min(1.6vh, 13px);
  font-family: "Playfair Display", serif;
  font-size: 10.5px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: rgba(242, 199, 68, 0.74);
}

.home-script {
  margin: 0;
  font-family: "Victorian Parlor", "Playfair Display", serif;
  font-weight: 700;
  font-size: min(clamp(28px, 8.4vw, 42px), 5.4vh);
  line-height: 1.14;
  color: #f2c744;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
}

.home-header .orn-line {
  margin: min(2.2vh, 18px) auto 0;
  max-width: 200px;
  opacity: 1;
}

.home-content {
  padding: min(3.2vh, 30px) clamp(18px, 5.2vw, 40px) min(2.8vh, 26px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-height: 0;
}

.home-body {
  display: flex;
  flex-direction: column;
  gap: min(1.8vh, 15px);
  max-width: 430px;
}

.home-body p {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-size: min(clamp(14.5px, 3.9vw, 16.5px), 2.2vh);
  line-height: 1.58;
  font-weight: 400;
  color: #3a2b20;
}

.home-body .home-body-italic {
  font-style: italic;
  font-size: min(clamp(15px, 4.2vw, 17.5px), 2.3vh);
  color: #4a3729;
}

.home-body .home-body-strong {
  font-weight: 600;
  color: #801d11;
}

.home-body .home-body-muted {
  font-size: min(clamp(13.5px, 3.6vw, 15.5px), 2.05vh);
  color: #6b5747;
}

.home-content .orn-line {
  margin: min(2.6vh, 24px) auto min(2.2vh, 19px);
  max-width: 230px;
}

.orn-line {
  display: block;
  width: 100%;
  max-width: 220px;
  height: auto;
  margin: 14px auto;
  opacity: 0.85;
}

.home-kicker {
  margin: 0 0 min(3vh, 26px);
  font-family: "Playfair Display", serif;
  font-size: min(clamp(12.5px, 3.3vw, 15px), 1.95vh);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #7a6547;
}

.home-bottom {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: min(2vh, 16px);
}

.home-bottom .btn {
  width: 100%;
  max-width: 320px;
  background: var(--club);
  padding: 1.75px;
}

.home-bottom .btn-face {
  padding: min(2.4vh, 19px) 15px;
  font-size: min(clamp(15.5px, 4.4vw, 19px), 2.5vh);
}

.home-bottom .text-link {
  margin: 0;
}

/* ---------- En-tête de question ---------- */

.question-screen {
  min-height: 100vh;
  min-height: 100dvh;
  padding: min(3vh, 26px) 24px min(2.2vh, 18px);
}

.q-progress-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: min(2.2vh, 20px);
}

.q-progress-back {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border: none;
  background: none;
  color: var(--accent);
  font-size: 18px;
  cursor: pointer;
  padding: 0;
}

.q-progress-track {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: var(--line);
  overflow: hidden;
}

.q-progress-fill {
  height: 100%;
  background: var(--accent);
  transition: width 0.2s ease;
}

.q-progress-count {
  flex: 0 0 auto;
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
  margin: 0;
}

.q-header {
  text-align: center;
}

.q-header .orn-line {
  margin: min(1.8vh, 16px) auto;
}

.q-counter {
  color: var(--accent);
  font-size: clamp(24px, 6vw, 30px);
  font-weight: 600;
  margin: 0;
  letter-spacing: 0.02em;
}

.q-section {
  font-size: 11.5px;
  letter-spacing: 0.16em;
  color: #5a4a38;
  text-transform: uppercase;
  margin: 6px 0 0;
  font-weight: 600;
}

/* ---------- Corps de question ---------- */

.q-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.q-card {
  position: relative;
  background: #f7ecdd;
  border: 2.5px solid #e6d8b8;
  border-radius: 15px;
  padding: min(clamp(30px, 7vw, 40px), 4.4vh) clamp(26px, 6vw, 42px);
  margin: min(1.2vh, 6px) 0 min(2.2vh, 20px);
}

.q-card-orn {
  position: absolute;
  width: clamp(88px, 22vw, 112px);
  height: auto;
  pointer-events: none;
}

.q-card-orn-tl { top: 0.5px; left: -4px; }
.q-card-orn-br { bottom: -1.5px; right: -5px; }

.q-text {
  font-size: min(clamp(21px, 5.6vw, 26px), 3.6vh);
  line-height: 1.42;
  font-weight: 700;
  text-align: center;
  margin: 0;
}

/* ---------- Slider (type slider / dilemma) ---------- */

.slider-block {
  margin-top: min(3.4vh, 30px);
}

.slider-labels {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #5a4a38;
  margin-bottom: 12px;
  font-weight: 600;
}

.slider-labels span {
  max-width: 170px;
}

.slider-labels span:last-child {
  text-align: right;
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 3px;
  border-radius: 3px;
  background: var(--line);
  outline: none;
  margin: 0;
  -webkit-tap-highlight-color: transparent;
  tap-highlight-color: transparent;
}

input[type="range"]:focus,
input[type="range"]:focus-visible {
  outline: none;
}

input[type="range"]::-webkit-slider-thumb:focus,
input[type="range"]:focus::-webkit-slider-thumb {
  outline: none;
  box-shadow: none;
}

input[type="range"]::-moz-range-thumb:focus {
  outline: none;
  box-shadow: none;
}

input[type="range"]::-moz-focus-outer {
  border: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 36px;
  height: 36px;
  border-radius: 0;
  background-color: transparent;
  background-image: url("assets/thumb-diamond.png");
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  border: none;
  box-shadow: none;
  cursor: pointer;
  margin-top: -1px;
}

input[type="range"]::-moz-range-thumb {
  width: 36px;
  height: 36px;
  border-radius: 0;
  background: url("assets/thumb-diamond.png") center / contain no-repeat;
  border: none;
  cursor: pointer;
}

.slider-caption {
  font-size: 13px;
  color: #5a4a38;
  text-align: center;
  margin-top: min(1.8vh, 16px);
  font-style: italic;
}

/* ---------- Liste de choix (type choice) ---------- */

.choice-list {
  display: flex;
  flex-direction: column;
  gap: min(1.3vh, 12px);
}

.choice-list-compact {
  gap: min(0.9vh, 7px);
}

.choice-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: min(1.6vh, 16px) 18px;
  border: 2px solid var(--border-strong);
  border-radius: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: border-color 0.15s ease, border-width 0.15s ease, background 0.15s ease;
}

.choice-list-compact .choice-row {
  gap: 10px;
  padding: min(1vh, 9px) 14px;
}

.choice-list-compact .choice-radio {
  width: 19px;
  height: 19px;
}

.choice-list-compact .choice-label {
  font-size: min(clamp(13px, 3.6vw, 15px), 1.85vh);
  line-height: 1.32;
}

.choice-row:hover {
  border-color: var(--muted-2);
}

.choice-row.selected {
  border-width: 2.5px;
  border-color: var(--accent);
  background: #f7ecdd;
}

.choice-radio {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--club);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.choice-row.selected .choice-radio {
  background: url("assets/radio-selected.png") center / contain no-repeat;
  border: none;
}

.choice-radio .dot {
  display: none;
}

.choice-label {
  font-size: min(15px, 2vh);
  line-height: 1.35;
  font-weight: 500;
}

.choice-row.selected .choice-label {
  font-weight: 700;
}

/* ---------- Navigation bas de page ---------- */

.q-nav {
  display: flex;
  gap: 14px;
  margin-top: min(2.6vh, 24px);
}

.q-nav .btn {
  flex: 1;
}

/* Les boutons utilisent deux calques avec le même clip-path (coins coupés) :
   le calque extérieur (.btn) fait office de fine bordure sombre, le calque
   intérieur (.btn-face) porte la couleur de remplissage. Un border classique
   ne fonctionne pas ici car clip-path découpe aussi le trait de bordure sur
   la diagonale, ce qui laisse les coins "ouverts". */

.btn {
  display: flex;
  padding: 2.25px;
  border: none;
  background: #c9992f;
  cursor: pointer;
  text-decoration: none;
  clip-path: polygon(
    var(--radius-cut) 0, calc(100% - var(--radius-cut)) 0,
    100% var(--radius-cut), 100% calc(100% - var(--radius-cut)),
    calc(100% - var(--radius-cut)) 100%, var(--radius-cut) 100%,
    0 calc(100% - var(--radius-cut)), 0 var(--radius-cut)
  );
  transition: opacity 0.15s ease, transform 0.05s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-face {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 10px;
  font-family: "Instrument Serif", "Playfair Display", serif;
  font-size: clamp(15px, 4.7vw, 19px);
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
  clip-path: polygon(
    10px 0, calc(100% - 10px) 0,
    100% 10px, 100% calc(100% - 10px),
    calc(100% - 10px) 100%, 10px 100%,
    0 calc(100% - 10px), 0 10px
  );
}

.btn-secondary .btn-face {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.05)), var(--bg);
  color: var(--ink);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.65), 0 -1px 0 rgba(0, 0, 0, 0.12);
}

.btn-primary .btn-face {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, 0.2)), var(--accent-dark);
  color: var(--bg);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.45), 0 -1px 0 rgba(255, 255, 255, 0.14);
}

.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ---------- Écran résultats ---------- */

.results-screen {
  gap: 0;
}

.results-title {
  font-size: clamp(26px, 7vw, 32px);
  font-weight: 700;
  margin: 10px 0 2px;
}

.results-match {
  color: var(--accent);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin: 0;
}

.radar-card {
  border: 1.5px solid var(--border-strong);
  padding: 18px 10px 6px;
  margin-bottom: 28px;
  background: rgba(255, 255, 255, 0.28);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5), inset 0 0 0 2px #d8c6a2;
}

.radar-legend {
  display: flex;
  justify-content: center;
  gap: 22px;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 4px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.legend-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
}

.legend-user {
  background: var(--club);
}

.legend-other {
  background: var(--accent);
}

.radar-svg {
  width: 100%;
  height: auto;
}

.radar-user {
  fill: rgba(36, 26, 19, 0.16);
  stroke: var(--club);
  stroke-width: 2;
}

.radar-other {
  fill: rgba(138, 42, 32, 0.2);
  stroke: var(--accent);
  stroke-width: 2;
}

.radar-label {
  font-family: "Playfair Display", serif;
  font-size: 10px;
  fill: #5a4a38;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.radar-dot-user {
  fill: var(--club);
}

.radar-dot-other {
  fill: var(--accent);
}

/* Purement décoratif : ne doit jamais intercepter le clic/tap, sinon il
   passerait devant le cercle de tap élargi (.radar-dot-hit) posé dessous
   et bloquerait l'interaction pile au centre, là où on vise le plus. */
.radar-dot-visual {
  pointer-events: none;
}

/* Zone de tap élargie et invisible superposée à chaque petit point du
   radar (voir buildRadarSVG) : sans elle, il faut viser très précisément
   le point (3-4px) pour que la bulle de valeur s'ouvre au toucher. */
.radar-dot-hit {
  fill: transparent;
  cursor: pointer;
}

.radar-tooltip {
  position: absolute;
  left: 0;
  top: 0;
  transform: translate(-50%, -135%);
  padding: 5px 9px;
  background: #221812;
  color: #f3ecdd;
  font-family: "Playfair Display", serif;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
  border-radius: 4px;
  pointer-events: none;
  opacity: 0;
  z-index: 5;
}

.radar-tooltip.visible {
  opacity: 1;
}

.radar-card {
  position: relative;
}

.radar-info-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1.4px solid #b8a480;
  background: #f7f0e0;
  color: #801d11;
  font-size: 13px;
  font-weight: 700;
  font-style: italic;
  font-family: "Playfair Display", serif;
  line-height: 1;
  cursor: help;
  padding: 0 3px 0 0;
  transition: border-color 0.15s ease;
}

.radar-info-btn:hover {
  border-color: #801d11;
}

.radar-info-pop {
  position: absolute;
  top: 36px;
  right: 10px;
  left: 10px;
  z-index: 5;
  background: var(--bg);
  border: 1.5px solid var(--border-strong);
  border-radius: 8px;
  padding: 14px 16px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

.radar-info-title {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 8px;
}

.radar-info-text {
  font-size: 12.5px;
  line-height: 1.5;
  margin: 0 0 8px;
}

.radar-info-link {
  display: block;
  background: none;
  border: none;
  padding: 0;
  color: var(--muted);
  font-size: 12px;
  font-style: italic;
  text-decoration: underline;
  cursor: pointer;
  text-align: left;
}

.ranking-block {
  margin-bottom: 24px;
}

.ranking-title {
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin: 0 0 14px;
  text-align: center;
}

.ranking-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  border: 1.5px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.28);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5), inset 0 0 0 2px #d8c6a2;
}

.ranking-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1.5px solid transparent;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.ranking-row:hover {
  border-color: var(--border);
}

.ranking-row.selected {
  border-color: var(--accent);
  background: #f7ecdd;
}

.ranking-row.selected .ranking-name {
  font-weight: 700;
}

.ranking-rank {
  flex: 0 0 auto;
  width: 16px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

.ranking-name {
  flex: 1 1 auto;
  font-size: 13px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-bar-track {
  flex: 0 0 70px;
  height: 8px;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
}

.ranking-bar-fill {
  display: block;
  height: 100%;
  background: var(--accent);
}

.ranking-row.selected .ranking-bar-fill {
  background: var(--accent-dark);
}

.ranking-pct {
  flex: 0 0 34px;
  text-align: right;
  font-size: 12px;
  font-weight: 700;
}

/* ---------- Lien discret (texte seul, sans chrome de bouton) ---------- */

.text-link {
  display: block;
  margin: 20px auto 0;
  padding: 4px 8px;
  background: none;
  border: none;
  color: var(--muted);
  font-family: "Playfair Display", serif;
  font-size: 13px;
  font-style: italic;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  text-align: center;
}

.text-link:hover {
  color: var(--ink);
}

.back-link {
  margin: 0 0 18px;
  text-align: left;
  text-decoration: none;
  font-style: normal;
  letter-spacing: 0.04em;
}

/* ---------- Écran podium ---------- */

.podium-screen {
  gap: 0;
}

.podium-title {
  font-family: "Victorian Parlor", "Playfair Display", serif;
  font-size: clamp(30px, 8vw, 44px);
  font-weight: 700;
  color: var(--accent);
  margin: 24px 0 6px;
  line-height: 1;
}

.podium-subtitle {
  font-size: 14px;
  color: #5a4a38;
  margin: 0;
}

.podium-columns {
  position: relative;
  max-width: 420px;
  margin: 8px auto 32px;
}

.podium-info-btn {
  position: absolute;
  top: 0;
  right: 0;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1.4px solid #b8a480;
  background: #f7f0e0;
  color: #801d11;
  font-size: 13px;
  font-weight: 700;
  font-style: italic;
  font-family: "Playfair Display", serif;
  line-height: 1;
  cursor: help;
  padding: 0 3px 0 0;
  transition: border-color 0.15s ease;
  z-index: 2;
}

.podium-info-btn:hover {
  border-color: #801d11;
}

.podium-info-pop {
  position: absolute;
  top: 26px;
  right: 0;
  left: 0;
  z-index: 5;
  background: var(--bg);
  border: 1.5px solid var(--border-strong);
  border-radius: 8px;
  padding: 12px 14px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

.podium-info-pop .radar-info-text {
  margin: 0;
}

.podium-columns-svg {
  width: 100%;
  height: auto;
  display: block;
}

.podium-col {
  cursor: pointer;
  transform-box: fill-box;
  transform-origin: center;
}

.podium-col-enter {
  animation: podium-col-in 350ms var(--ease-out) backwards;
}

.podium-col-enter[data-podium-col="0"] { animation-delay: 0ms; }
.podium-col-enter[data-podium-col="1"] { animation-delay: 80ms; }
.podium-col-enter[data-podium-col="2"] { animation-delay: 160ms; }

@keyframes podium-col-in {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .podium-col-enter {
    animation: podium-col-in-fade 350ms var(--ease-out) backwards;
  }
  .podium-col-enter[data-podium-col="1"],
  .podium-col-enter[data-podium-col="2"] {
    animation-delay: 0ms;
  }
}

@keyframes podium-col-in-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.podium-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.podium-actions .btn {
  width: 100%;
}

.podium-note {
  margin: -4px 0 0;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  font-style: italic;
}

/* ---------- Sommaire (carnet des XII) ---------- */

.sommaire-screen {
  gap: 0;
  max-width: 560px;
  position: relative;
  background: #f6efdd;
  border: 1px solid #d8c9a6;
  box-shadow: 0 18px 40px rgba(62, 40, 22, 0.16);
}

.sommaire-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.sommaire-topbar .text-link {
  margin: 0;
}

.sommaire-eyebrow {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}

.sommaire-heading {
  text-align: center;
  margin-bottom: 22px;
}

.sommaire-kicker {
  font-size: 13.5px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin: 0;
}

.sommaire-title {
  font-size: clamp(34px, 9vw, 64px);
  font-weight: 700;
  line-height: 0.98;
  margin: 12px 0 10px;
}

.sommaire-subtitle {
  font-size: 14.5px;
  font-style: italic;
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.6;
}

.sommaire-recommended {
  margin-bottom: 38px;
}

.sommaire-recommended-title {
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  text-align: left;
  margin: 0 0 14px;
}

.sommaire-recommended-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.sommaire-recommended-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
  border: 1.5px solid var(--border-strong);
  border-top: 3px solid var(--accent);
  background: rgba(255, 255, 255, 0.42);
  padding: 18px 20px;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.sommaire-recommended-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(34, 24, 18, 0.12);
}

.sommaire-recommended-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  width: 100%;
}

.sommaire-recommended-roman {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: #c98a2e;
}

.sommaire-recommended-pct {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
}

.sommaire-recommended-name {
  font-size: 21px;
  line-height: 1.15;
  font-weight: 700;
}

.sommaire-recommended-tagline {
  font-size: 13px;
  font-style: italic;
  color: #5a4a38;
  line-height: 1.45;
}

.sommaire-families {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-bottom: 24px;
  padding: 20px 18px;
  border: 1.5px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.28);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5), inset 0 0 0 2px #d8c6a2;
}

.sommaire-family-title {
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--club);
  margin: 0 0 6px;
}

.sommaire-disc-row {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 12px 8px;
  border: none;
  border-bottom: 1px solid var(--line);
  background: none;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
}

.sommaire-disc-row:hover {
  background: rgba(128, 29, 17, 0.05);
}

.sommaire-disc-num {
  flex: 0 0 auto;
  width: 26px;
  font-size: 11.5px;
  letter-spacing: 0.14em;
  font-weight: 600;
  color: #c98a2e;
}

.sommaire-disc-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sommaire-disc-name {
  font-size: 17px;
  line-height: 1.2;
  font-weight: 700;
}

.sommaire-disc-tagline {
  font-size: 12.5px;
  font-style: italic;
  color: #5a4a38;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sommaire-disc-pct {
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}

.sommaire-disc-pct.high {
  color: var(--accent);
}

.sommaire-footer {
  margin-top: 8px;
  text-align: center;
}

.sommaire-footer-text {
  font-size: 14.5px;
  line-height: 1.65;
  color: #5a4a38;
  font-style: italic;
  margin: 12px 0 0;
}

/* ---------- Fiche (détail d'une discipline) ---------- */

.fiche-screen {
  gap: 0;
  max-width: 1400px;
  padding: 0;
}

.fiche-topbar {
  position: sticky;
  top: 0;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 10px;
  padding: 14px clamp(16px, 3vw, 34px) 12px;
  background: rgba(243, 236, 221, 0.93);
  backdrop-filter: blur(6px);
  border-bottom: 2px solid var(--line);
}

.fiche-topbar .text-link {
  margin: 0;
}

.fiche-topbar-title {
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0;
  text-align: center;
  flex: 1;
}

.fiche-topbar-num {
  font-size: 11px;
  color: var(--muted-2);
  margin: 0;
}

.fiche-layout {
  display: flex;
  gap: 0;
  align-items: stretch;
  margin: 0 clamp(16px, 3vw, 34px) 40px;
  border: 1.5px solid #b8a480;
  border-radius: 10px;
  background: #efe5cd;
  box-shadow: 0 14px 34px rgba(34, 24, 18, 0.12);
}

.fiche-sidebar {
  flex: 0 0 232px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px 0 24px;
  background: #e8dcc0;
  border-right: 1.5px solid var(--line);
  border-radius: 10px 0 0 10px;
  position: sticky;
  top: 24px;
  align-self: flex-start;
}

.fiche-sidebar-group {
  margin-left: 10px;
  padding: 10px 0 8px;
  border: 1px solid transparent;
  border-right: none;
  border-radius: 8px 0 0 8px;
  background: transparent;
}

.fiche-sidebar-group.active {
  background: #f7f0dd;
  border-color: #ddcda6;
}

.fiche-sidebar-family {
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
  font-weight: 700;
  margin: 0 0 6px;
  padding: 0 12px;
}

.fiche-sidebar-group.active .fiche-sidebar-family {
  color: var(--accent);
}

.fiche-sidebar-item {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  border-left: 3px solid transparent;
  padding: 6px 12px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  color: #5a4a38;
  cursor: pointer;
}

.fiche-sidebar-item.active {
  background: #fdfaf0;
  border-left-color: #c9992f;
  color: var(--accent);
  font-weight: 700;
}

.fiche-mobile-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 16px 10px;
  margin: 0;
  background: #e8dcc0;
  border-radius: 10px 10px 0 0;
}

.fiche-mobile-tab {
  flex: 0 0 auto;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1.5px solid var(--border-strong);
  background: none;
  font-family: inherit;
  font-size: 12.5px;
  color: var(--ink);
  cursor: pointer;
  white-space: nowrap;
}

.fiche-mobile-tab.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}

.fiche-main {
  flex: 1;
  min-width: 0;
  background: #fdfaf0;
  border-radius: 10px;
}

.fiche-sidebar ~ .fiche-main {
  border-radius: 0 10px 10px 0;
}

.fiche-content {
  padding: 24px clamp(16px, 3vw, 34px) 30px;
}

.fiche-family {
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin: 0;
}

.fiche-name {
  font-size: clamp(26px, 6vw, 36px);
  font-weight: 700;
  margin: 6px 0 4px;
}

.fiche-tagline {
  font-size: 14px;
  font-style: italic;
  color: #c98a2e;
  margin: 0;
}

.fiche-pct {
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  margin: 8px 0 0;
}

.fiche-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
}

.fiche-section {
  margin-bottom: 30px;
}

.fiche-section-title {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin: 0 0 12px;
}

.fiche-teaser {
  font-size: clamp(16px, 4vw, 18px);
  font-style: italic;
  line-height: 1.6;
  margin: 0 0 10px;
}

.fiche-paragraphs {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fiche-paragraphs p {
  font-size: 14px;
  line-height: 1.65;
  margin: 0;
}

.fiche-paragraphs-bordered {
  border-left: 2px solid var(--line);
  padding-left: 14px;
}

.fiche-toggle {
  display: block;
  margin-top: 6px;
  background: none;
  border: none;
  padding: 0;
  color: var(--muted);
  font-family: "Playfair Display", serif;
  font-size: 12.5px;
  font-style: italic;
  text-decoration: underline;
  cursor: pointer;
}

.fiche-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.fiche-tab {
  padding: 8px 14px;
  border-radius: 0;
  border: 1px solid var(--border-strong);
  background: none;
  font-family: inherit;
  font-size: 12.5px;
  color: var(--ink);
  cursor: pointer;
}

.fiche-tab.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}

.fiche-axes-head {
  margin-bottom: 12px;
}

.fiche-axes-title {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin: 0;
}

.fiche-axes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  align-items: start;
  gap: 12px;
}

.fiche-axis-card {
  border: 1.5px solid var(--border-strong);
  border-radius: 0;
  background: #fffdf7;
  overflow: hidden;
}

.fiche-axis-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px 14px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.fiche-axis-head-text {
  display: flex;
  align-items: center;
  gap: 10px;
}

.fiche-axis-roman {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

.fiche-axis-label {
  font-size: 14px;
  font-weight: 700;
}

.fiche-axis-sign {
  font-size: 16px;
  color: var(--accent);
  font-weight: 700;
}

.fiche-axis-body {
  padding: 0 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fiche-axis-body p {
  font-size: 13.5px;
  line-height: 1.6;
  margin: 0;
  color: var(--ink);
}

.fiche-pager {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.fiche-pager-btn {
  background: none;
  border: none;
  padding: 0;
  font-family: "Playfair Display", serif;
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
  max-width: 45%;
  text-align: left;
}

.fiche-pager-next {
  text-align: right;
  margin-left: auto;
}

.fiche-pager-btn:hover {
  color: var(--accent);
}

/* ---------- Modal "Les salles près de moi" ---------- */

.salles-overlay {
  position: fixed;
  inset: 0;
  background: rgba(34, 24, 18, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 50;
}

.salles-modal {
  width: 100%;
  max-width: 480px;
  max-height: 86vh;
  overflow-y: auto;
  background: var(--bg);
  border-radius: 10px;
  border: 1.5px solid var(--border-strong);
  padding: 24px 22px 26px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.salles-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.salles-kicker {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #5a4a38;
  margin: 0 0 4px;
}

.salles-title {
  font-size: 21px;
  font-weight: 700;
  margin: 0;
}

.salles-close {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: none;
  font-size: 20px;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
}

.salles-orn-line,
.salles-modal .orn-line {
  margin: 12px auto 18px;
  max-width: 160px;
}

.salles-intro {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink);
  margin: 0 0 18px;
}

.salles-modal .btn {
  width: 100%;
}

.salles-error {
  font-size: 12.5px;
  color: var(--accent);
  margin: 10px 0 0;
}

.social-modal .salles-intro {
  margin-bottom: 22px;
}

.social-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  border: 1.5px solid var(--border-strong);
  border-radius: 8px;
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.social-link:hover {
  border-color: var(--accent);
  background: rgba(128, 29, 17, 0.05);
}

.social-link-main {
  display: flex;
  align-items: center;
  gap: 10px;
}

.social-link-icon {
  display: flex;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  color: var(--accent);
}

.social-link-icon svg {
  width: 100%;
  height: 100%;
}

.social-link-platform {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.social-link-handle {
  font-size: 12.5px;
  color: var(--muted);
  font-style: italic;
}

.salles-or {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 20px 0;
  color: var(--muted);
  font-size: 12px;
}

.salles-or span {
  flex: 1;
  height: 1px;
  background: var(--line);
}

.salles-label {
  display: block;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.salles-ville-row {
  display: flex;
  gap: 8px;
}

.salles-ville-input {
  flex: 1;
  min-width: 0;
  padding: 11px 12px;
  border: 1.5px solid var(--border-strong);
  border-radius: 6px;
  font-family: inherit;
  font-size: 14px;
  background: #fff;
}

.salles-search-btn {
  flex: 0 0 auto;
  padding: 0 16px;
  border: 1.5px solid var(--accent);
  border-radius: 6px;
  background: var(--accent);
  color: var(--bg);
  font-family: "Instrument Serif", serif;
  font-size: 14px;
  cursor: pointer;
}

.salles-loading {
  text-align: center;
  font-style: italic;
  color: var(--muted);
  padding: 30px 0;
}

.salles-results-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.salles-count {
  font-size: 12.5px;
  color: var(--muted);
  margin: 0;
}

.salles-group-tabs {
  display: flex;
  gap: 6px;
}

.salles-tab {
  padding: 5px 11px;
  border-radius: 999px;
  border: 1.5px solid var(--border-strong);
  background: none;
  font-family: inherit;
  font-size: 11.5px;
  color: var(--ink);
  cursor: pointer;
}

.salles-tab.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}

.salles-group {
  margin-bottom: 14px;
}

.salles-group-title {
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin: 0 0 8px;
}

.salle-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.salle-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.salle-nom {
  font-size: 14px;
  font-weight: 700;
}

.salle-adresse {
  font-size: 12px;
  color: var(--muted);
}

.salle-discipline {
  font-size: 11.5px;
  color: var(--accent);
}

.salle-meta {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.salle-distance {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

.salle-maps {
  font-size: 11.5px;
  color: var(--accent);
  text-decoration: underline;
}

.salles-demo-note {
  font-size: 11px;
  color: var(--muted-2);
  font-style: italic;
  text-align: center;
  margin: 14px 0 0;
}

/* ---------- Adaptation grands écrans ---------- */

@media (min-width: 900px) {
  .screen {
    max-width: 640px;
    padding-top: 64px;
  }

  .cover-screen {
    max-width: none;
    padding-top: min(4vh, 48px);
  }

  .fiche-screen {
    max-width: 1400px;
    padding: 0;
  }

  .fiche-axes-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .sommaire-screen {
    max-width: 1140px;
    padding: 34px clamp(20px, 4vw, 54px) 44px;
  }

  .sommaire-screen::before {
    content: "";
    position: absolute;
    inset: 14px;
    border-left: 2.25px solid #c9992f;
    border-right: 2.25px solid #c9992f;
    pointer-events: none;
  }
}

/* ---------- Cadre "livre" (question/podium en desktop) ---------- */

.book-screen {
  max-width: 1160px;
  width: 100%;
  padding: min(1.8vh, 18px) 40px;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
}

.book-frame {
  position: relative;
  width: 100%;
  max-width: 1000px;
  max-height: calc(100vh - 36px);
  max-height: calc(100dvh - 36px);
  padding: min(2.4vh, 30px) clamp(28px, 5vw, 56px);
  background: #f6efdd;
  border: 1px solid #d8c9a6;
  box-shadow: 0 18px 40px rgba(62, 40, 22, 0.16);
  display: flex;
  flex-direction: column;
  margin: 0 auto;
  overflow-y: auto;
}

.book-frame-podium {
  max-width: 1080px;
  min-height: min(700px, calc(100vh - 36px));
  min-height: min(700px, calc(100dvh - 36px));
}

.podium-body-wide .podium-title {
  font-size: min(clamp(30px, 8vw, 44px), 6.2vh);
}

.podium-body-wide .podium-subtitle {
  font-size: min(14px, 2vh);
}

.book-gold-inset {
  position: absolute;
  inset: 22px;
  border-left: 2.25px solid #c9992f;
  border-right: 2.25px solid #c9992f;
  pointer-events: none;
}

.book-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  flex: 0 0 auto;
  padding-bottom: min(1.4vh, 14px);
  border-bottom: 1px solid #ddd0b2;
}

.book-header-title,
.book-header-section {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.book-header-title {
  letter-spacing: 0.24em;
}

.book-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: min(1.4vh, 16px);
  padding: min(1.4vh, 16px) clamp(20px, 7vw, 110px);
  text-align: center;
}

.book-body .orn-line {
  margin: 0 auto;
  max-width: min(220px, 22vw);
}

.q-body-wide .q-card,
.q-body-wide .slider-block,
.q-body-wide .choice-list,
.q-body-wide .q-nav {
  width: 100%;
}

.q-body-wide .q-card {
  margin: 0;
}

.q-body-wide .q-nav {
  margin-top: 6px;
}

.podium-body-wide {
  justify-content: flex-start;
}

.podium-body-wide .podium-title,
.podium-body-wide .podium-subtitle {
  margin: 0;
}

.podium-body-wide .podium-columns {
  width: 100%;
  max-width: 520px;
  margin: 0;
}

.podium-body-wide .podium-actions {
  flex-direction: row;
  width: 100%;
  max-width: 820px;
  margin-top: auto;
}

.podium-body-wide .podium-actions .btn {
  width: auto;
  flex: 1;
}

.book-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex: 0 0 auto;
  padding-top: min(1.4vh, 14px);
  border-top: 1px solid #ddd0b2;
}

.book-progress-track {
  width: 120px;
  height: 3px;
  background: #dfd2b5;
  position: relative;
  overflow: hidden;
}

.book-progress-fill {
  position: absolute;
  inset: 0 auto 0 0;
  height: 100%;
  background: var(--accent);
}

.book-progress-roman {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--muted);
}

/* ---------- Page d'accueil QR code (qr.html, page à part, hors SPA) ---------- */

.qr-screen {
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-y: auto;
  padding: min(4vh, 40px) clamp(8px, 2.5vw, 44px);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #8b1515;
  background-image:
    radial-gradient(ellipse 100% 60% at 50% 105%, rgba(0, 0, 0, 0.22), transparent 66%),
    radial-gradient(ellipse 140% 95% at 50% 50%, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.2) 100%),
    url("assets/fond-papier-rouge-2.webp");
  background-repeat: no-repeat, no-repeat, no-repeat;
  background-position: center, center, center;
  background-size: auto, auto, cover;
  position: relative;
  font-family: "Playfair Display", "Georgia", serif;
}

.qr-content {
  width: 100%;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  text-align: center;
}

.qr-kicker {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(246, 185, 63, 0.85);
}

.qr-title {
  margin: 0;
  font-family: "Victorian Parlor", "Playfair Display", serif;
  font-size: clamp(34px, 11vw, 46px);
  font-weight: 400;
  color: #f6b93f;
  line-height: 1.05;
}

.qr-subtitle {
  margin: 0 0 8px;
  font-size: 14px;
  font-style: italic;
  color: rgba(247, 238, 222, 0.85);
}

.qr-btn {
  width: 100%;
}

.qr-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 4px 0;
  color: rgba(247, 238, 222, 0.6);
  font-size: 12px;
  font-style: italic;
}

.qr-divider span {
  flex: 1;
  height: 1px;
  background: rgba(247, 238, 222, 0.3);
}

.qr-video-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.qr-video-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.25)), #221812;
  border: 1.5px solid rgba(246, 185, 63, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-video-play {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #f6b93f;
  color: #221812;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  padding-left: 3px;
}

.qr-video-label {
  margin: 0;
  font-size: 13.5px;
  color: rgba(247, 238, 222, 0.9);
}

.qr-social-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.qr-social-links .social-link {
  background: rgba(247, 238, 222, 0.06);
  border-color: rgba(247, 238, 222, 0.3);
}

.qr-social-links .social-link:hover {
  border-color: #f6b93f;
  background: rgba(247, 238, 222, 0.12);
}

.qr-social-links .social-link-platform {
  color: #f7eede;
}

.qr-social-links .social-link-handle {
  color: rgba(247, 238, 222, 0.6);
}

.qr-social-links .social-link-icon {
  color: #f6b93f;
}

