/* =====================================================
   MISTER QUIZ : refonte « planche de manga »
   Noir, blanc, un seul rouge. Chargé après style.css.
   ===================================================== */

@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/barlow-condensed-700.woff2) format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-style: italic; font-weight: 800; font-display: swap; src: url(/fonts/barlow-condensed-800i.woff2) format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-style: italic; font-weight: 900; font-display: swap; src: url(/fonts/barlow-condensed-900i.woff2) format('woff2'); }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/barlow-500.woff2) format('woff2'); }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/barlow-700.woff2) format('woff2'); }

:root {
  --titre: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --corps: 'Barlow', Arial, sans-serif;
  --rouge: #e0140b;
  --rouge-vif: #ff2014;
  --encre: #111;
  --trame: radial-gradient(circle, #111 1.1px, transparent 1.3px);

  /* Anciennes variables de style.css, remappées */
  --primary: var(--rouge);
  --primary-light: var(--rouge-vif);
  --primary-pale: #f1f1f1;
  --gold: var(--rouge);
  --gold-light: #f1f1f1;
  --dark: #111;
  --dark-deeper: #000;
  --text: #111;
  --text-light: #333;
  --bg: #fff;
  --bg-alt: #f5f5f5;
  --border: #111;
  --shadow: rgba(0, 0, 0, .15);
  --success: #111;
  --error: var(--rouge);
  --radius: 4px;
  --radius-lg: 4px;
  --gouttiere: clamp(14px, 3vw, 44px);
}

body { font-weight: 500; line-height: 1.6; }
a { color: var(--rouge); }
.container { max-width: 1760px; padding: 0 var(--gouttiere); }

h2 { font-family: var(--titre); font-style: italic; font-weight: 900; text-transform: uppercase; line-height: 1.05; color: #111; }

/* ---- Trois gestes du style : titre penché, bouton biseauté, trame ---- */
.bouton-une, .btn-start, .btn-next, .btn-retry, .btn-start-hard, .btn-switch-mode,
.btn-home-quiz, .btn-home-404, .case-bouton, .carte-quiz-jouer, .quiz-ligne-jouer {
  display: inline-block;
  font-family: var(--titre);
  font-style: italic;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .01em;
  line-height: 1.1;
  color: #fff;
  background: var(--rouge);
  border: 0;
  border-radius: 0;
  box-shadow: none;
  clip-path: polygon(3.5% 0, 100% 0, 96.5% 100%, 0 100%);
  cursor: pointer;
  transition: background .15s;
}
.bouton-une:hover, .btn-start:hover, .btn-next:hover, .btn-retry:hover,
.carte-quiz:hover .carte-quiz-jouer, .quiz-ligne:hover .quiz-ligne-jouer {
  background: #111;
  transform: none;
  box-shadow: none;
  text-decoration: none;
}
.btn-start-hard, .btn-switch-mode, .btn-home-quiz, .case-bouton { background: #111; color: #fff; border: 0; }
.btn-start-hard:hover, .btn-switch-mode:hover, .btn-home-quiz:hover { background: var(--rouge); transform: none; text-decoration: none; }
.btn-start, .btn-retry { font-size: 1.5rem; padding: .55em 1.5em; }
.btn-start-hard, .btn-switch-mode, .btn-home-quiz { font-size: 1.25rem; padding: .55em 1.3em; }
.btn-next { font-size: 1.3rem; padding: .55em 1.4em; display: none; }
.btn-next.visible { display: inline-block; background: var(--rouge); color: #fff; }

/* ---- En-tête ---- */
.site-header { background: #fff; border-bottom: 3px solid #111; box-shadow: none; }
.header-inner { height: 74px; gap: 24px; }
.site-logo { flex-shrink: 0; }
.site-logo img { height: 62px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 18px; flex: 1; justify-content: flex-end; }
.site-nav > ul { gap: 2px; flex-wrap: nowrap; }
.site-nav a {
  color: #111;
  font-family: var(--titre);
  font-size: 1.14rem;
  font-weight: 700;
  padding: 6px 11px;
  white-space: nowrap;
  border-radius: 0;
}
.site-nav a:hover { background: #111; color: #fff; }
.lang-switch a { border: 2px solid #111; font-size: 1rem; padding: 2px 9px; letter-spacing: 0; }
.lang-switch a:hover { border-color: #111; color: #fff; background: #111; }
.burger span { background: #111; }

/* ---- Recherche ---- */
.mq-recherche { position: relative; width: 100%; max-width: 280px; }
.mq-recherche input {
  width: 100%;
  font: 500 1rem var(--corps);
  color: #111;
  padding: 8px 12px 8px 38px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='2.4'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='m15.5 15.5 5 5'/%3E%3C/svg%3E") 11px center / 19px no-repeat;
  border: 2px solid #111;
  border-radius: 0;
}
.mq-recherche input::placeholder { color: #333; opacity: 1; }
.mq-recherche input:focus { outline: 3px solid var(--rouge); outline-offset: 1px; }
.mq-recherche-liste {
  position: absolute;
  z-index: 150;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #fff;
  border: 3px solid #111;
  max-height: 360px;
  overflow: auto;
}
.mq-recherche-liste a { display: block; font-family: var(--corps); font-weight: 700; font-size: 1rem; padding: 9px 12px; color: #111; white-space: normal; }
.mq-recherche-liste a:hover { background: var(--rouge); color: #fff; text-decoration: none; }
.mq-recherche-vide { padding: 9px 12px; color: #333; }
.mq-recherche-une { max-width: 560px; margin-bottom: 20px; }
.mq-recherche-une input { font-size: 1.2rem; padding: 13px 14px 13px 46px; border-width: 3px; background-position: 14px center; background-size: 22px; }

/* ---- Haut de l'accueil ---- */
.une {
  position: relative;
  overflow: hidden;
  border-bottom: 3px solid #111;
  background:
    var(--trame) 0 0 / 9px 9px no-repeat;
  background-size: 9px 9px;
  background-repeat: repeat;
  background-color: #fff;
}
.une::before {
  /* la trame s'efface vers le centre : elle reste dans le coin, comme sur une planche */
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 85% 120% at 62% 60%, #fff 62%, rgba(255, 255, 255, .55) 82%, transparent 100%);
}
.une-grille {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(10px, 3vw, 50px);
  align-items: center;
}
.une-texte { padding: clamp(24px, 4vw, 56px) 0; }
.une h1 {
  font-family: var(--titre);
  font-style: italic;
  font-weight: 900;
  text-transform: uppercase;
  color: #111;
  font-size: clamp(2.9rem, 6vw, 6.4rem);
  line-height: .92;
  letter-spacing: -.01em;
  transform: rotate(-3deg);
  transform-origin: left center;
  margin-bottom: 26px;
}
.une h1 span { display: block; text-wrap: balance; }
.une h1 .une-l2 { color: var(--rouge); }
.une-sous-titre { font-size: clamp(1.1rem, 1.5vw, 1.45rem); font-weight: 700; color: #111; margin-bottom: 20px; }
.bouton-une { font-size: clamp(1.8rem, 2.6vw, 2.5rem); padding: .4em 1.7em; }
.bouton-une::after { content: ' \2192'; font-style: normal; }
.bouton-une span { color: #fff; }
.une-image {
  width: 100%;
  height: auto;
  align-self: end;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%);
  mask-image: linear-gradient(90deg, transparent, #000 12%);
}

/* ---- Six cases de catégorie ---- */
.cases { padding: clamp(16px, 2.4vw, 32px) 0 8px; }
.cases-grille { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.case {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1.2;
  overflow: hidden;
  border: 3px solid #111;
  background: #fff;
  transform: skewX(-2deg);
  color: #111;
}
.case img { position: absolute; left: 0; bottom: 0; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; transition: transform .25s; }
.case:hover img { transform: scale(1.04); }
.case:hover { text-decoration: none; }
.case-titre {
  position: absolute;
  top: 8px;
  left: -4px;
  z-index: 1;
  max-width: 90%;
  font-family: var(--titre);
  font-style: italic;
  font-weight: 900;
  font-size: clamp(1.2rem, 1.4vw, 1.7rem);
  line-height: .98;
  text-transform: uppercase;
  background: #fff;
  border: 3px solid #111;
  padding: .28em .55em .28em .7em;
  transform: rotate(-3deg);
}
.case-bouton {
  position: absolute;
  bottom: 10px;
  left: 50%;
  translate: -50% 0;
  white-space: nowrap;
  font-size: clamp(1rem, 1.2vw, 1.25rem);
  padding: .42em 1.1em;
}
.case-bouton::after { content: ' \2192'; font-style: normal; }
.case:hover .case-bouton { background: var(--rouge); }

/* Cases « Publicité » retirées : ceci les masque pour qui a encore l'ancien quiz.js en cache */
.mq-pub { display: none; }

/* ---- Titres de section ---- */
.titre-trait, .rubrique-titre h2, .quiz-desc-section h2, .related-head h2, .difficulty-section .rubrique-titre {
  font-family: var(--titre);
  font-style: italic;
  font-weight: 900;
  text-transform: uppercase;
  color: #111;
  line-height: 1.02;
}
.titre-trait {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: clamp(2rem, 3.4vw, 3rem);
  margin-bottom: 20px;
}
.titre-trait::before { content: ''; width: 20px; height: .9em; background: var(--rouge); transform: skew(-14deg); flex-shrink: 0; }
.titre-trait::after { content: ''; flex: 1; height: 3px; background: #111; }

/* ---- Quiz populaires ---- */
.populaires { padding-bottom: 20px; }
.populaires-grille { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.carte-quiz {
  display: grid;
  grid-template-columns: minmax(110px, 34%) 1fr;
  border: 2px solid #111;
  color: #111;
  background: #fff;
  overflow: hidden;
  min-height: 136px;
}
.carte-quiz:hover { text-decoration: none; }
.carte-quiz img { width: 100%; height: 100%; object-fit: cover; clip-path: polygon(0 0, 100% 0, 92% 100%, 0 100%); }
.carte-quiz-texte { padding: 10px 12px 12px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.carte-quiz strong { font-family: var(--titre); font-style: italic; font-weight: 900; font-size: clamp(1.45rem, 2.1vw, 2rem); line-height: 1.02; }
.carte-quiz small { font-size: .95rem; margin: 2px 0 8px; }
.carte-quiz-jouer { font-size: 1.2rem; padding: .3em 1.1em; }

/* ---- Toutes les rubriques en lignes ---- */
.quiz-section { padding: clamp(26px, 3.4vw, 46px) 0; }
.quiz-section-alt { background: #f5f5f5; }
.rubrique-titre { text-align: left; margin-bottom: 18px; }
.rubrique-titre h2 { font-size: clamp(1.9rem, 3vw, 2.7rem); margin-bottom: 2px; }
.rubrique-titre h2 a { color: inherit; }
.rubrique-titre p { color: #222; font-size: 1.05rem; }
.quiz-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 0 26px; }
.quiz-ligne {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 2px solid #111;
  color: #111;
}
.quiz-ligne:hover { text-decoration: none; }
.quiz-ligne:hover strong { color: var(--rouge); }
.quiz-ligne-texte strong { display: block; font-size: 1.05rem; font-weight: 700; line-height: 1.2; }
.quiz-ligne-texte small { font-size: .88rem; color: #333; }
.quiz-ligne-jouer { font-size: 1.05rem; padding: .28em .95em; }

/* ---- Bandeau des pages de quiz et de hub ---- */
.quiz-bandeau {
  background: #fff;
  border-bottom: 3px solid #111;
  text-align: left;
  padding: 18px 0 22px;
  overflow: visible;
}
.quiz-bandeau::before { display: none; }
.quiz-bandeau h1 {
  font-style: italic;
  font-weight: 900;
  text-transform: uppercase;
  color: #111;
  font-size: clamp(2.2rem, 4.6vw, 4.4rem);
  line-height: .98;
  margin-bottom: 8px;
}
.quiz-sous-titre { color: #111; font-size: 1.1rem; margin: 0 0 12px; max-width: none; }
.quiz-bandeau .breadcrumb { margin-bottom: 10px; }
.breadcrumb ol { justify-content: flex-start; font-size: .92rem; }
.breadcrumb a { color: #111; text-decoration: underline; }
.breadcrumb a:hover { color: var(--rouge); }
.breadcrumb li:last-child span { color: #111; }
.breadcrumb ol li:not(:last-child)::after { color: #111; }
.quiz-bandeau-eyebrow { background: #111; color: #fff; border: 0; border-radius: 0; font-size: .95rem; font-family: var(--titre); font-style: italic; font-weight: 800; letter-spacing: 0; padding: 2px 12px; margin-bottom: 8px; }
.quiz-badges { justify-content: flex-start; gap: 8px; }
.quiz-badge { background: #fff; border: 2px solid #111; color: #111; border-radius: 0; font-size: .9rem; padding: 2px 10px; margin: 0; }

/* ---- Zone de jeu ---- */
.quiz-wrapper { max-width: none; margin: 0; padding: clamp(14px, 2vw, 26px) var(--gouttiere) 26px; }

.quiz-start-card {
  border: 3px solid #111;
  border-radius: 0;
  box-shadow: none;
  text-align: left;
  padding: clamp(22px, 3vw, 40px);
  padding-right: clamp(22px, 34vw, 500px);
  background: #fff url(/img/manga/poses/01-defi.webp) right bottom / auto 100% no-repeat;
  min-height: 400px;
}
.quiz-start-icon { display: none; }
.quiz-start-card h2 { font-style: italic; font-weight: 900; text-transform: uppercase; font-size: clamp(1.9rem, 3vw, 2.8rem); line-height: 1; }
.quiz-start-card p { color: #111; font-size: 1.05rem; margin-bottom: 18px; }
.quiz-info-grid { justify-content: flex-start; margin-bottom: 22px; }
.quiz-info-item strong { color: var(--rouge); font-family: var(--titre); font-style: italic; font-weight: 900; font-size: 2rem; }
.quiz-info-item span { color: #111; font-size: .9rem; }
.quiz-hard-start { border-top: 2px solid #111; margin-top: 22px; padding-top: 18px; }

.quiz-game.active {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 30%);
  grid-template-areas: 'barre barre' 'info rival' 'question rival' 'pied rival';
  grid-template-rows: auto auto 1fr auto;
  border: 3px solid #111;
  border-radius: 0;
  box-shadow: none;
}
.quiz-progress-bar-wrap { grid-area: barre; height: 12px; background: #fff; border-bottom: 2px solid #111; }
.quiz-progress-bar { background: var(--rouge); }
.quiz-header-info { grid-area: info; padding: 12px clamp(14px, 2vw, 28px) 0; border: 0; }
.quiz-question-count { font-family: var(--titre); font-style: italic; font-weight: 900; font-size: 1.5rem; color: #111; text-transform: uppercase; }
.quiz-score-live { background: #111; color: #fff; border-radius: 0; font-size: 1rem; font-weight: 700; padding: 2px 12px; }
.quiz-question-body { grid-area: question; padding: 8px clamp(14px, 2vw, 28px) 12px; }
.quiz-question-body h2 {
  font-family: var(--titre);
  font-style: normal;
  font-weight: 700;
  text-transform: none;
  font-size: clamp(1.75rem, 2.8vw, 2.7rem);
  line-height: 1.12;
  color: #000;
  margin-bottom: 16px;
}
.quiz-options { gap: 10px; }
.quiz-option {
  position: relative;
  border: 2px solid #111;
  border-radius: 4px;
  font-family: var(--corps);
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.3;
  color: #111;
  padding: 13px 16px;
  min-height: 56px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.quiz-option:hover:not(:disabled) { background: #fff; border-color: #111; color: #111; transform: none; }
@media (hover: hover) {
  .quiz-option:hover:not(:disabled) { background: #111; color: #fff; }
  .quiz-option:hover:not(:disabled) .option-letter { background: #fff; color: #111; }
}
.quiz-option .option-letter { flex-shrink: 0; margin: 0; background: #111; color: #fff; border-radius: 0; font-weight: 700; }
.quiz-option:disabled { color: #111; cursor: default; }
/* Juste en noir, faux en rouge : le verdict se lit sans se fier à une seule couleur */
.quiz-option.correct { background: #111; border-color: #111; color: #fff; font-weight: 700; }
.quiz-option.correct .option-letter { background: #fff; color: #111; }
.quiz-option.wrong { background: var(--rouge); border-color: var(--rouge); color: #fff; }
.quiz-option.wrong .option-letter { background: #fff; color: var(--rouge); }
.option-verdict {
  margin-left: auto;
  flex-shrink: 0;
  white-space: nowrap;
  font-family: var(--titre);
  font-style: italic;
  font-weight: 900;
  font-size: 1.35rem;
  line-height: 1.1;
  text-transform: uppercase;
  transform: rotate(-4deg);
  animation: claque .22s ease-out;
}
@keyframes claque { from { transform: rotate(-4deg) scale(1.9); opacity: 0; } to { transform: rotate(-4deg) scale(1); opacity: 1; } }
.quiz-explanation { background: #f1f1f1; border-left: 6px solid #111; border-radius: 0; font-size: 1.02rem; color: #111; }
.quiz-footer { grid-area: pied; border: 0; padding: 0 clamp(14px, 2vw, 28px) 16px; min-height: 12px; }

/* ---- Mister Quiz dans le jeu et sur le résultat ---- */
.rival { position: relative; margin: 0; }
.quiz-game, .quiz-result { scroll-margin-top: 84px; }
.btn-partage { display: block; width: 100%; margin-bottom: 6px; font-family: var(--titre); font-style: italic; font-weight: 900; font-size: 1.7rem; line-height: 1.1; text-transform: uppercase; color: #fff; background: var(--rouge); border: 0; padding: .55em .5em; clip-path: polygon(2% 0, 100% 0, 98% 100%, 0 100%); cursor: pointer; }
.partage-natif .btn-retry { background: #111; }
.rival img { display: block; width: 100%; height: auto; }
.rival-bulle {
  position: relative;
  z-index: 1;
  background: #fff;
  border: 3px solid #111;
  border-radius: 50% / 46%;
  padding: 16px 24px;
  font-family: var(--titre);
  font-style: italic;
  font-weight: 800;
  font-size: clamp(1.25rem, 1.7vw, 1.65rem);
  line-height: 1.08;
  text-align: center;
  text-wrap: balance;
  color: #111;
  margin: 0 8px -8px;
}
.rival-bulle::before, .rival-bulle::after {
  content: '';
  position: absolute;
  left: 54%;
  clip-path: polygon(0 0, 100% 0, 30% 100%);
}
.rival-bulle::before { bottom: -25px; width: 34px; height: 25px; margin-left: -3px; background: #111; }
.rival-bulle::after { bottom: -18px; width: 26px; height: 19px; background: #fff; }
.rival-jeu { grid-area: rival; border-left: 3px solid #111; padding-top: 12px; background: #fff; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; }

.quiz-result {
  border: 3px solid #111;
  border-radius: 0;
  box-shadow: none;
  text-align: left;
  padding: clamp(18px, 2.6vw, 36px);
  overflow: hidden;
}
.quiz-result.active { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 32%); column-gap: 28px; align-items: start; }
.quiz-result.active > * { grid-column: 1; }
.quiz-result .rival-fin { grid-column: 2; grid-row: 1 / span 9; align-self: end; }
.result-emoji { display: none; }
.result-score-display {
  font-family: var(--titre);
  font-style: italic;
  font-weight: 900;
  color: #000;
  font-size: clamp(5rem, 11vw, 10rem);
  line-height: .9;
  margin-bottom: 4px;
}
.result-score-display span { font-size: 1em; color: #000; }
.result-title {
  font-style: italic;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--rouge);
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1;
  transform: rotate(-2deg);
  transform-origin: left center;
  margin-bottom: 14px;
}
.result-message { color: #111; font-size: 1.1rem; max-width: none; margin: 0 0 18px; }
.result-bar-wrap { max-width: none; height: 14px; background: #fff; border: 2px solid #111; border-radius: 0; margin: 0 0 24px; }
.result-bar { background: var(--rouge); border-radius: 0; }
.result-actions { justify-content: flex-start; }
.result-share { text-align: left; }
.result-share-label { font-family: var(--titre); font-style: italic; font-weight: 900; font-size: 1.5rem; letter-spacing: 0; color: #111; margin-bottom: 8px; }
.result-share-buttons { justify-content: flex-start; }
.share-btn { background: #fff !important; color: #111 !important; border: 2px solid #111 !important; border-radius: 0; font-size: .98rem; font-weight: 700; }
.share-btn:hover { background: #111 !important; color: #fff !important; opacity: 1; transform: none; }

/* ---- Tests de personnalité ---- */
.quiz-option.personality-selected { background: #111; color: #fff; border-color: #111; }
.result-char-name { font-style: italic; font-weight: 900; color: var(--rouge); text-transform: uppercase; font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1; }
.result-traits { justify-content: flex-start; margin: 12px 0 24px; max-width: none; }
.personality-trait { background: #111; color: #fff; border-radius: 0; font-weight: 700; }

/* ---- Texte sous le quiz ---- */
.quiz-desc-section { max-width: none; padding: 0 var(--gouttiere) 44px; }
.quiz-desc-section h2 { font-size: clamp(1.7rem, 2.6vw, 2.3rem); margin-top: 30px; margin-bottom: 8px; }
.quiz-desc-section p, .quiz-desc-section ul li { font-size: 1.05rem; color: #111; }
.quiz-questions-reponses details { border: 2px solid #111; border-radius: 0; }
.quiz-questions-reponses summary { font-size: 1.05rem; font-weight: 700; color: #111; }
.quiz-questions-reponses summary:hover { background: #f1f1f1; }
.quiz-questions-reponses .question-choix li, .quiz-questions-reponses .question-reponse, .quiz-questions-reponses .question-explication { font-size: 1rem; color: #111; }

/* ---- Cartes des hubs et quiz similaires ---- */
.quiz-card { border: 2px solid #111; border-radius: 0; color: #111; }
.quiz-card:hover { transform: none; box-shadow: none; background: #111; color: #fff; }
.quiz-card:hover h3, .quiz-card:hover p { color: #fff; }
.quiz-grid:has(> .quiz-card) { row-gap: 14px; }
.quiz-card h3 { padding: 16px 16px 0; font-family: var(--titre); font-style: italic; font-weight: 900; font-size: 1.5rem; line-height: 1.05; color: #111; }
.quiz-card p { padding: 0 16px; font-size: 1rem; color: #222; }
.quiz-card-count { margin: 0 16px 14px; background: #111; color: #fff; border-radius: 0; font-size: .85rem; }

.related-quizzes { background: #f5f5f5; border-top: 3px solid #111; margin-top: 16px; }
.related-head { text-align: left; }
.related-head h2 { font-size: clamp(1.9rem, 3vw, 2.7rem); }
.related-head p { color: #222; font-size: 1.05rem; }
.related-card { border: 2px solid #111; border-radius: 0; }
.related-card:hover { transform: none; box-shadow: none; border-color: #111; background: #111; }
.related-card:hover h3, .related-card:hover p, .related-card:hover .related-cta { color: #fff; }
.related-body h3 { color: #111; font-family: var(--titre); font-style: italic; font-weight: 900; font-size: 1.4rem; line-height: 1.05; }
.related-body p { color: #222; font-size: .95rem; }
.related-cta { color: var(--rouge); font-weight: 700; font-size: .95rem; }

/* ---- Niveaux de culture générale ---- */
.difficulty-card, .difficulty-card.easy, .difficulty-card.medium, .difficulty-card.hard { background: #fff; border: 3px solid #111; border-radius: 0; }
.difficulty-card:hover { transform: none; box-shadow: none; background: #f1f1f1; }
.difficulty-section .rubrique-titre { text-align: left; font-size: clamp(1.9rem, 3vw, 2.7rem); margin-bottom: 18px; }
.difficulty-card-icon { display: none; }
.difficulty-card h3 { font-family: var(--titre); font-style: italic; font-weight: 900; font-size: 1.7rem; line-height: 1.05; }
.difficulty-card .difficulty-card-level, .difficulty-card.easy .difficulty-card-level, .difficulty-card.medium .difficulty-card-level, .difficulty-card.hard .difficulty-card-level,
.difficulty-card .difficulty-card-meta, .difficulty-card.easy .difficulty-card-meta, .difficulty-card.medium .difficulty-card-meta, .difficulty-card.hard .difficulty-card-meta { color: #111; }
.difficulty-card p { color: #222; font-size: 1rem; }
.difficulty-card.easy .difficulty-card-cta, .difficulty-card.medium .difficulty-card-cta, .difficulty-card.hard .difficulty-card-cta { background: var(--rouge); color: #fff; border-radius: 0; }

/* ---- Pied de page ---- */
.site-footer { background: #111; color: #fff; }
.footer-brand .site-logo { display: inline-block; background: #fff; padding: 8px 14px; clip-path: polygon(4% 0, 100% 0, 96% 100%, 0 100%); }
.footer-brand .site-logo img { height: 66px; width: auto; }
.footer-brand p, .footer-col a, .footer-bottom p, .footer-legal-links a { color: #e8e8e8; }
.footer-col a { font-size: 1rem; }
.footer-col a:hover, .footer-legal-links a:hover { color: #fff; text-decoration: underline; }
.site-footer h4 { font-family: var(--titre); font-style: italic; font-weight: 900; font-size: 1.4rem; letter-spacing: 0; color: #fff; }
.footer-inner { border-bottom-color: #555; }

/* ---- 404 ---- */
.error-code { font-style: italic; font-weight: 900; color: var(--rouge); }
.error-404 p, .error-suggestions h2 { color: #111; }
.btn-home-404 { color: #fff; font-size: 1.3rem; padding: .5em 1.3em; }

/* =====================================================
   ÉCRANS MOYENS ET TÉLÉPHONES
   ===================================================== */
@media (max-width: 1500px) {
  .cases-grille { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .case { aspect-ratio: 1 / .8; }
  .case img { height: 100%; aspect-ratio: auto; }
  .case-titre { font-size: clamp(1.4rem, 2.6vw, 2.2rem); }
  .case-bouton { font-size: clamp(1.05rem, 1.9vw, 1.4rem); }
}

@media (max-width: 1240px) {
  .burger { display: flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 77px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 3px solid #111;
    padding: 12px var(--gouttiere) 18px;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .site-nav.open { display: flex; }
  .site-nav > ul { flex-direction: column; align-items: flex-start; }
  .site-nav > ul > li { width: 100%; }
  .site-nav > ul > li > a { display: block; font-size: 1.4rem; padding: 7px 4px; white-space: normal; }
  .site-nav > ul > li.lang-switch > a { display: inline-block; font-size: 1.05rem; padding: 2px 10px; margin-top: 4px; }
  .mq-recherche { max-width: none; }
}

@media (max-width: 900px) {
  .populaires-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quiz-result.active { grid-template-columns: minmax(0, 1fr); }
  .quiz-result .rival-fin { grid-column: 1; grid-row: auto; max-width: 420px; margin: 0 auto 8px; order: -1; }
  .quiz-result.active > .result-score-display { order: -2; }
  .quiz-result.active > .result-title { order: -2; }
  /* Jeu : les réponses d'abord, Mister Quiz dessous, jamais l'inverse */
  .quiz-game.active { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'barre' 'info' 'question' 'pied' 'rival'; grid-template-rows: none; }
  .rival-jeu { border-left: 0; border-top: 3px solid #111; display: grid; grid-template-columns: minmax(0, 1fr) 150px; align-items: center; gap: 4px; padding: 8px 8px 0; }
  .rival-jeu .rival-bulle { font-size: 1.2rem; padding: 10px 12px; margin: 0 8px 0 0; }
  .rival-jeu .rival-bulle::before, .rival-jeu .rival-bulle::after { left: auto; top: 50%; bottom: auto; clip-path: polygon(0 0, 100% 45%, 0 100%); }
  .rival-jeu .rival-bulle::before { right: -24px; width: 24px; height: 26px; margin: -13px 0 0; }
  .rival-jeu .rival-bulle::after { right: -17px; width: 19px; height: 18px; margin: -9px 0 0; }
  .quiz-start-card { padding-right: clamp(22px, 3vw, 40px); background-image: none; min-height: 0; }
}

@media (max-width: 760px) {
  .une-grille { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .une-texte { padding-bottom: 8px; }
  .une h1 { font-size: clamp(2.9rem, 13.4vw, 4.6rem); margin-bottom: 18px; }
  .une-image { -webkit-mask-image: none; mask-image: none; }
  .une::before { background: rgba(255, 255, 255, .88); }
  .cases-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .case { aspect-ratio: 1 / 1; }
  .case-titre { font-size: clamp(1.15rem, 5.4vw, 1.75rem); max-width: 92%; }
  .case-bouton { font-size: clamp(.92rem, 4vw, 1.2rem); bottom: 7px; }
  .populaires-grille { grid-template-columns: minmax(0, 1fr); }
  .quiz-bandeau { padding: 12px 0 14px; }
  .quiz-badges, .quiz-bandeau .quiz-sous-titre, .quiz-bandeau-eyebrow { display: none; }
  .header-inner { height: 62px; }
  .site-logo img { height: 52px; }
  .site-nav { top: 65px; }
  .quiz-option { font-size: 1.05rem; padding: 11px 12px; }
  .option-verdict { font-size: 1.15rem; }
  .result-actions { flex-direction: row; justify-content: flex-start; align-items: flex-start; }
}

/* =====================================================
   PAGES DE QUIZ : la page entière reste une planche
   ===================================================== */

/* Tout s'aligne sur la même largeur */
.quiz-wrapper, .quiz-desc-section {
  max-width: 1760px;
  margin-left: auto;
  margin-right: auto;
}

/* Bandeau : trame à gauche, case illustrée à droite */
.quiz-bandeau {
  position: relative;
  overflow: hidden;
  padding: 18px 0 24px;
  background: linear-gradient(90deg, rgba(255, 255, 255, .2) 0, #fff var(--gouttiere)), var(--trame) 0 0 / 9px 9px;
  background-color: #fff;
}
.quiz-bandeau > .container { position: relative; z-index: 1; }
.avec-illustration .quiz-bandeau { --illu-l: clamp(220px, 27vw, 450px); --illu-d: max(var(--gouttiere), calc((100% - 1760px) / 2 + var(--gouttiere))); }
.avec-illustration .quiz-bandeau > .container { padding-right: calc(var(--illu-l) + var(--gouttiere) + 16px); }
.avec-illustration .quiz-bandeau::before, .avec-illustration .quiz-bandeau::after {
  content: '';
  display: block;
  position: absolute;
  top: 0;
  bottom: 0;
  left: auto; /* style.css pose inset: 0 sur ::before : sans ça, le bloc part à gauche */
  right: var(--illu-d);
  width: var(--illu-l);
  clip-path: polygon(13% 0, 100% 0, 100% 100%, 0 100%);
}
.avec-illustration .quiz-bandeau::before { background: #111; right: calc(var(--illu-d) + 5px); }
.avec-illustration .quiz-bandeau::after { background: var(--illu) center 42% / cover no-repeat; }
.quiz-bandeau .breadcrumb { margin-bottom: 8px; }
.quiz-badge { font-family: var(--titre); font-style: italic; font-weight: 800; font-size: 1.06rem; letter-spacing: 0; text-transform: uppercase; }

/* Départ : le texte à gauche, Mister Quiz sur une case rouge à droite */
.quiz-start-card {
  --case-rouge: clamp(280px, 30%, 540px);
  position: relative;
  min-height: 420px;
  padding-right: calc(clamp(280px, 30%, 540px) + clamp(20px, 3vw, 44px));
  background:
    url(/img/manga/poses/01-defi.webp) right 2% bottom / auto 96% no-repeat,
    radial-gradient(circle, rgba(0, 0, 0, .2) 1.2px, transparent 1.4px) 0 0 / 8px 8px,
    var(--rouge-vif);
  background-clip: border-box;
  border-width: 3px;
  isolation: isolate;
}
.quiz-start-card::before {
  /* la partie blanche, biseautée, recouvre le rouge à gauche */
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0 calc(var(--case-rouge) - 34px) 0 0;
  background: #fff;
  clip-path: polygon(0 0, 100% 0, calc(100% - 44px) 100%, 0 100%);
}
.quiz-start-card::after {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0 calc(var(--case-rouge) - 39px) 0 0;
  background: #111;
  clip-path: polygon(calc(100% - 5px) 0, 100% 0, calc(100% - 44px) 100%, calc(100% - 49px) 100%);
}
.quiz-info-grid { display: none; }
.quiz-start-card h2 { margin-bottom: 8px; }
.quiz-start-card p { font-size: 1.14rem; }
.btn-start { font-size: clamp(1.8rem, 2.5vw, 2.4rem); padding: .42em 1.5em; }
.btn-start::after { content: ' \2192'; font-style: normal; }
.quiz-hard-start { border-top: 0; margin-top: 26px; padding-top: 0; position: relative; }
.quiz-hard-start::before { content: ''; display: block; width: 74px; height: 8px; margin-bottom: 14px; background: repeating-linear-gradient(-62deg, #111 0 9px, transparent 9px 16px); }
.btn-start-hard { font-size: 1.45rem; }

/* Jeu : question grande, Mister Quiz sur sa case rouge */
.quiz-game.active { grid-template-columns: minmax(0, 1fr) clamp(280px, 26%, 460px); }
#pquizGame.active { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'barre' 'info' 'question' 'pied'; }
.quiz-question-body { padding-top: 6px; }
.quiz-question-body h2 { font-size: clamp(1.9rem, 3vw, 3.1rem); margin-bottom: 20px; }
.quiz-option { font-size: clamp(1.1rem, 1.25vw, 1.32rem); min-height: 62px; }
.rival-jeu, .quiz-result .rival-fin {
  background:
    repeating-conic-gradient(from 0deg at 50% 62%, rgba(255, 255, 255, .22) 0 3deg, transparent 3deg 11deg),
    radial-gradient(circle, rgba(0, 0, 0, .22) 1.2px, transparent 1.4px) 0 0 / 8px 8px,
    var(--rouge-vif);
}
.rival-jeu { padding: 14px 12px 0; }
.rival img { position: relative; }
.rival-bulle { margin-bottom: 8px; }

/* Résultat : même case rouge, collée au bord */
.quiz-result { padding: 0; }
.quiz-result.active { column-gap: 0; grid-template-columns: minmax(0, 1fr) clamp(300px, 30%, 500px); }
.quiz-result.active > * { margin-left: clamp(18px, 2.6vw, 36px); margin-right: clamp(18px, 2.6vw, 36px); }
.quiz-result.active > .result-score-display { margin-top: clamp(18px, 2.4vw, 32px); }
.quiz-result.active > .result-actions { margin-bottom: clamp(18px, 2.4vw, 32px); }
.quiz-result .rival-fin { margin: 0; align-self: stretch; padding: 16px 14px 0; border-left: 3px solid #111; display: flex; flex-direction: column; justify-content: flex-end; }

/* Texte sous le quiz : deux colonnes, et de vrais titres de section */
.quiz-desc-section { padding-top: 22px; }
.quiz-desc-section h2 {
  font-size: clamp(1.8rem, 2.5vw, 2.5rem);
  margin: 26px 0 8px;
  break-after: avoid;
}
.quiz-desc-section p { font-size: 1.1rem; line-height: 1.6; }
.quiz-desc-section:not(.quiz-questions-reponses) { column-count: 2; column-gap: clamp(28px, 4vw, 64px); }
.quiz-desc-section:not(.quiz-questions-reponses) > h2:first-child { margin-top: 0; }
.quiz-desc-section:not(.quiz-questions-reponses) ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; break-inside: avoid; }
.quiz-desc-section:not(.quiz-questions-reponses) ul li { margin: 0; }
.quiz-desc-section ul li a { display: inline-block; font-family: var(--titre); font-style: italic; font-weight: 800; font-size: 1.15rem; line-height: 1.2; text-decoration: none; text-transform: uppercase; color: #111; border: 2px solid #111; padding: 4px 12px; }
.quiz-desc-section ul li a:hover { background: #111; color: #fff; }
.quiz-questions-reponses ul.question-choix { list-style: none; }

/* Questions et réponses : deux colonnes, le mode difficile en noir */
.quiz-questions-reponses { columns: 2; column-gap: 14px; padding-top: 30px; padding-bottom: 34px; }
.quiz-questions-reponses > h2, .quiz-questions-reponses > p:not(.question-reponse) { column-span: all; }
.quiz-questions-reponses > h2 { display: flex; align-items: center; gap: 14px; margin-top: 0; }
.quiz-questions-reponses > h2::before { content: ''; width: 18px; height: .9em; flex-shrink: 0; background: var(--rouge); transform: skew(-14deg); }
.quiz-questions-reponses > p:not(.question-reponse) { margin-bottom: 14px; }
.quiz-questions-reponses details { break-inside: avoid; margin-bottom: 8px; }
.quiz-questions-reponses summary { font-size: 1.04rem; line-height: 1.3; padding: 13px 44px 13px 16px; }
.quiz-questions-reponses summary::after { font-size: 1.7rem; font-weight: 700; color: var(--rouge); }
.quiz-questions-reponses details[open] summary { background: #111; color: #fff; }
.quiz-questions-reponses details[open] summary::after { color: #fff; }
.quiz-questions-reponses .question-choix { padding-top: 10px; }
.quiz-questions-reponses .question-choix li span { color: #111; }
.quiz-questions-reponses .question-choix li.bonne-reponse { background: #111; color: #fff; }
.quiz-questions-reponses .question-choix li.bonne-reponse span { color: #fff; }

#mode-difficile { max-width: none; background: #111; border-top: 0; padding-left: max(var(--gouttiere), calc((100% - 1760px) / 2 + var(--gouttiere))); padding-right: max(var(--gouttiere), calc((100% - 1760px) / 2 + var(--gouttiere))); }
#mode-difficile > h2, #mode-difficile > p:not(.question-reponse) { color: #fff; }
#mode-difficile details { border-color: #fff; background: #111; }
#mode-difficile summary { color: #fff; }
#mode-difficile summary:hover { background: #2a2a2a; }
#mode-difficile summary::after { color: var(--rouge-vif); }
#mode-difficile details[open] { background: #fff; }
#mode-difficile details[open] summary { background: var(--rouge); }

/* Quiz similaires : du texte et un bouton, plus de vignettes grises */
.related-quizzes { margin-top: 0; padding: 34px 0 42px; background: #fff; border-top: 3px solid #111; }
#mode-difficile + .related-quizzes { border-top: 0; }
.related-head { margin-bottom: 16px; }
.related-head h2 { display: flex; align-items: center; gap: 14px; margin: 0; }
.related-head h2::before { content: ''; width: 18px; height: .9em; flex-shrink: 0; background: var(--rouge); transform: skew(-14deg); }
.related-head h2::after { content: ''; flex: 1; height: 3px; background: #111; }
.related-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 12px; }
.related-body { padding: 14px 14px 16px; }
.related-body h3 { font-size: 1.6rem; margin-bottom: 4px; }
.related-body p { font-size: 1rem; margin-bottom: 12px; }
.related-cta { display: inline-block; align-self: flex-start; font-family: var(--titre); font-style: italic; font-weight: 900; font-size: 1.15rem; line-height: 1.1; text-transform: uppercase; color: #fff; background: var(--rouge); padding: .3em 1em; clip-path: polygon(5% 0, 100% 0, 95% 100%, 0 100%); }
.related-card:hover { background: #fff; }
.related-card:hover h3, .related-card:hover p { color: #111; }
.related-card:hover .related-cta { color: #fff; background: #111; }
.related-card:hover h3 { color: var(--rouge); }

@media (max-width: 1100px) {
  .quiz-desc-section:not(.quiz-questions-reponses), .quiz-questions-reponses { column-count: 1; columns: auto; }
}

@media (max-width: 900px) {
  .quiz-start-card {
    padding: 186px 18px 22px;
    min-height: 0;
    background: url(/img/manga/poses/01-defi.webp) right 8px top 6px / auto 170px no-repeat,
      radial-gradient(circle, rgba(0, 0, 0, .2) 1.2px, transparent 1.4px) 0 0 / 8px 8px, var(--rouge-vif);
    background-size: auto 170px, 8px 8px, auto;
  }
  .quiz-start-card::before { inset: 170px 0 0 0; clip-path: polygon(0 16px, 100% 0, 100% 100%, 0 100%); }
  .quiz-start-card::after { inset: 170px 0 auto 0; height: 19px; clip-path: polygon(0 16px, 100% 0, 100% 3px, 0 19px); }
  .quiz-game.active { grid-template-columns: minmax(0, 1fr); }
  .rival-jeu { padding: 8px 8px 0; border-top: 3px solid #111; }
  .quiz-result.active { grid-template-columns: minmax(0, 1fr); }
  .quiz-result .rival-fin { order: -1; max-width: none; margin: 14px 0; padding: 12px 12px 0; border-left: 0; border-top: 3px solid #111; border-bottom: 3px solid #111; }
  .quiz-result .rival-fin img { max-width: 300px; margin: 0 auto; }
}

@media (max-width: 760px) {
  .avec-illustration .quiz-bandeau { --illu-l: 104px; }
  .quiz-bandeau h1 { font-size: clamp(1.9rem, 8.2vw, 3rem); }
  .quiz-desc-section p { font-size: 1.05rem; }
}

/* Défi du jour */
.nav-defi a { color: var(--rouge); font-weight: 900; }
.defi-une { display: block; background: #111; color: #fff; text-decoration: none; margin-top: clamp(14px, 2vw, 24px); border-top: 6px solid var(--rouge); }
.defi-une:hover { text-decoration: none; background: #1e1e1e; }
.defi-une-grille { display: flex; align-items: center; gap: clamp(12px, 2vw, 28px); padding-top: 8px; padding-bottom: 8px; }
.defi-une img { width: clamp(84px, 9vw, 130px); height: auto; background: #fff; flex: none; clip-path: polygon(12% 0, 100% 0, 88% 100%, 0 100%); }
.defi-une-texte { flex: 1; display: block; }
.defi-une-texte strong { display: block; font-family: var(--titre); font-style: italic; font-weight: 900; font-size: clamp(1.7rem, 3.4vw, 2.8rem); line-height: 1; text-transform: uppercase; }
.defi-une-texte span { display: block; margin-top: 4px; font-size: clamp(.95rem, 1.4vw, 1.15rem); }
.defi-une-bouton { flex: none; font-family: var(--titre); font-style: italic; font-weight: 900; font-size: clamp(1.1rem, 2vw, 1.6rem); text-transform: uppercase; background: var(--rouge); color: #fff; padding: .5em 1.3em; clip-path: polygon(6% 0, 100% 0, 94% 100%, 0 100%); }
#defiSerie { font-weight: 700; color: #111; }
.defi-bilan { margin: 14px 0 6px; }
.defi-grille { display: flex; gap: 8px; }
.defi-grille span { width: clamp(44px, 6vw, 64px); aspect-ratio: 1; background: #111; }
.defi-grille span.juste { background: var(--rouge); }
.defi-serie { margin: 12px 0 0; font-family: var(--titre); font-style: italic; font-weight: 900; font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.05; text-transform: uppercase; color: #111; }
.defi-record, .defi-rebours { margin: 4px 0 0; font-weight: 700; color: #111; }
.defi-partage { display: flex; flex-wrap: wrap; align-items: stretch; gap: 8px; margin: 14px 0 0; }
.defi-partage .btn-partage { width: auto; flex: 1 1 220px; margin: 0; }
.defi-sources { margin: 14px 0 0; }
.defi-sources a { font-weight: 700; color: var(--rouge); }
.btn-carte { display: block; margin-top: 8px; font-family: var(--titre); font-style: italic; font-weight: 900; font-size: 1.35rem; line-height: 1.1; text-transform: uppercase; background: #fff; color: #111; border: 3px solid #111; padding: .45em 1.1em; cursor: pointer; }
.btn-carte:hover { background: #111; color: #fff; }
.btn-carte:disabled { opacity: .6; cursor: progress; }
.defi-partage .btn-carte { margin-top: 0; flex: 1 1 220px; }

/* Duel entre amis */
.duel-accroche { background: #111; color: #fff; border-bottom: 6px solid var(--rouge); }
.duel-accroche[hidden] { display: none; }
.duel-grille { display: flex; align-items: center; justify-content: space-between; gap: clamp(12px, 3vw, 40px); padding-top: clamp(14px, 2vw, 26px); padding-bottom: clamp(14px, 2vw, 26px); }
.duel-surtitre { margin: 0 0 4px; font-weight: 700; color: #fff; }
.duel-accroche h2 { margin: 0; font-family: var(--titre); font-style: italic; font-weight: 900; font-size: clamp(2.2rem, 6vw, 4.6rem); line-height: 1; text-transform: uppercase; color: #fff; }
.duel-accroche h2 span { color: var(--rouge-vif); white-space: nowrap; }
.duel-defi { margin: 8px 0 14px; font-size: clamp(1.05rem, 2vw, 1.4rem); font-weight: 700; color: #fff; }
.duel-accroche .bouton-une { border: 0; cursor: pointer; }
.duel-pose { width: clamp(120px, 22vw, 300px); height: auto; flex: none; background: #fff; clip-path: polygon(10% 0, 100% 0, 90% 100%, 0 100%); }
.duel-prenom { display: block; margin-bottom: 10px; font-weight: 700; color: #111; }
.duel-prenom span { display: block; margin-bottom: 4px; }
.duel-prenom input { width: 100%; font: inherit; font-weight: 500; border: 3px solid #111; padding: .45em .7em; background: #fff; color: #111; border-radius: 0; }
.duel-verdict { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: clamp(18px, 2.4vw, 32px) 0 8px; }
.duel-phrase { grid-column: 1 / -1; margin: 0; font-family: var(--titre); font-style: italic; font-weight: 900; font-size: clamp(1.7rem, 3.4vw, 2.6rem); line-height: 1.02; text-transform: uppercase; color: #111; }
.duel-colonne { background: #eee; color: #111; padding: 8px 14px; }
.duel-colonne.devant { background: var(--rouge); color: #fff; }
.duel-nom { display: block; font-weight: 700; }
.duel-colonne strong { display: block; font-family: var(--titre); font-style: italic; font-weight: 900; font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1; }
.quiz-result.active > .duel-verdict + .result-score-display { margin-top: 6px; }

@media (max-width: 760px) {
  .defi-une-grille { flex-wrap: wrap; }
  .defi-une-texte { flex: 1 1 60%; }
  .defi-une-bouton { flex: 1 1 100%; text-align: center; margin-bottom: 6px; }
  .quiz-result.active > .duel-verdict { order: -3; }
}

.quiz-start-card .defi-replique { font-family: var(--titre); font-style: italic; font-weight: 800; font-size: clamp(1.3rem, 2.2vw, 1.7rem); line-height: 1.1; color: var(--rouge); }
.duel-prenom input { box-sizing: border-box; }
.result-actions a.voir-tous { color: #fff; }
@media (max-width: 760px) { .duel-texte { min-width: 0; } .duel-accroche .bouton-une span { font-size: 1.25rem; white-space: nowrap; } .duel-pose { width: 104px; } .duel-accroche .bouton-une { padding-left: .9em; padding-right: .9em; } }

/* Haut de page : l'illustration fait partie du fond, collée au bandeau du haut et au bord droit de l'écran */
@media (min-width: 761px) {
  .une { position: relative; overflow: hidden; }
  .une-grille { display: block; position: static; min-height: clamp(460px, 42vw, 720px); }
  .une-texte { position: relative; z-index: 2; width: 48%; }
  .une-image { position: absolute; z-index: 1; top: 0; right: 0; bottom: 0; width: 58%; height: 100%; max-width: none; object-fit: cover; object-position: 60% 38%; -webkit-mask-image: linear-gradient(to right, transparent 0, #000 16%); mask-image: linear-gradient(to right, transparent 0, #000 16%); }
}


/* Choix du niveau sur la carte de départ */
.niveaux-titre { font-weight: 700; margin: 18px 0 10px; }
.niveaux { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-niveau { font-family: inherit; font-weight: 800; font-style: italic; font-size: clamp(1.35rem, 2vw, 1.8rem); padding: .42em 1.3em; border: 3px solid #111; cursor: pointer; transform: skewX(-6deg); transition: transform .12s, background .12s, color .12s; }
.btn-niveau:hover { transform: skewX(-6deg) translateY(-2px); }
.btn-niveau-facile { background: #fff; color: #111; }
.btn-niveau-moyen { background: var(--rouge); color: #fff; }
.btn-niveau-difficile { background: #111; color: #fff; }
.autres-niveaux { display: contents; }
