/* Site vitrine Quiz'in : charte « Plateau TV » (maquette direction A). */

@font-face {
  font-family: 'Bowlby One';
  src: url('/assets/fonts/bowlby-one-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'Nunito';
  src: url('/assets/fonts/nunito-700.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: 'Nunito';
  src: url('/assets/fonts/nunito-800.woff2') format('woff2');
  font-weight: 800;
  font-display: swap;
}

:root {
  --violet-bright: #5a2ac8;
  --violet: #2d1074;
  --violet-deep: #14064a;
  --violet-night: #0d0332;
  --ink: #1a0a4d;
  --frame: #0a0324;
  --menu-bg: #1f0d63;
  --yellow: #ffd23f;
  --yellow-shadow: #8a6d00;
  --pink: #f48aae;
  --pink-shadow: #7a2f6a;
  --cyan: #35d8f2;
  --white: #ffffff;
  --text-soft: #e6dcff;
  --text-muted: #cbb8ff;
  --text-link: #d9ccff;
  --dashed: #7c63d6;
  --card: rgba(255, 255, 255, 0.08);
  --line: rgba(255, 255, 255, 0.14);
  --font-display: 'Bowlby One', 'Arial Black', sans-serif;
  --font-text: 'Nunito', system-ui, sans-serif;
  --wrap: 1120px;
  --gutter: 24px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--violet-night);
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--violet-bright) 0, var(--violet) 420px, var(--violet-deep) 55%, var(--violet-night) 100%);
  color: var(--white);
  font-family: var(--font-text);
  font-weight: 700;
  line-height: 1.45;
  -webkit-text-size-adjust: 100%;
}

main {
  flex: 1;
}

a {
  color: var(--text-link);
}

a:hover {
  color: var(--yellow);
}

:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 6px;
}

h1,
h2,
h3,
p {
  margin: 0;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 10;
  padding: 10px 18px;
  border-radius: 20px;
  background: var(--yellow);
  color: var(--ink);
  font-weight: 800;
}

.skip-link:focus {
  top: 12px;
}

/* Boutons en pilule (ombre dure décalée) */
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 48px;
  padding: 13px 24px;
  border-radius: 30px;
  font-weight: 800;
  font-size: 19px;
  text-decoration: none;
  color: var(--ink);
}

.pill:hover {
  color: var(--ink);
  filter: brightness(1.06);
}

.pill-yellow {
  background: var(--yellow);
  box-shadow: 0 5px 0 var(--yellow-shadow);
}

.pill-pink {
  background: var(--pink);
  box-shadow: 0 5px 0 var(--pink-shadow);
}

.pill-small {
  min-height: 44px;
  padding: 10px 22px;
  font-size: 17px;
  box-shadow: 0 4px 0 var(--pink-shadow);
}

/* En-tête */
.site-header {
  padding-top: 20px;
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.logo {
  padding: 6px 0;
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1.2;
  color: var(--white);
  text-decoration: none;
  text-shadow: 3px 3px 0 var(--pink);
}

.logo:hover {
  color: var(--white);
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 6px 20px;
  font-weight: 800;
  font-size: 17px;
}

.nav-link {
  padding: 10px 4px;
  color: var(--white);
  text-decoration: none;
}

.lang-switch {
  display: flex;
  padding: 3px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.12);
}

.lang-switch a {
  min-width: 48px;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 20px;
  font-weight: 800;
  font-size: 15px;
  color: var(--white);
  text-decoration: none;
}

.lang-switch a[aria-current='true'] {
  background: var(--yellow);
  color: var(--ink);
}

.nav-mobile-tools {
  display: none;
  align-items: center;
  gap: 10px;
}

.burger {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
  cursor: pointer;
}

.menu-mobile {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 12px;
  padding: 12px 18px;
  border-radius: 22px;
  background: var(--menu-bg);
  font-weight: 800;
  font-size: 19px;
}

.menu-mobile[hidden] {
  display: none;
}

.menu-mobile a:not(.pill) {
  padding: 12px 0;
  color: var(--white);
  text-decoration: none;
}

.menu-mobile .pill {
  margin: 6px 0 8px;
}

/* Pied de page */
.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px 48px;
  margin-top: 40px;
  padding-top: 24px;
  padding-bottom: 36px;
  border-top: 2px solid rgba(255, 255, 255, 0.12);
  font-size: 16px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 300px;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.3;
}

.footer-tagline {
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 4px 24px;
  font-weight: 800;
}

.footer-links a {
  padding: 10px 0;
  color: var(--white);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--yellow);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Accueil : hero */
.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  padding-top: 48px;
  padding-bottom: 32px;
}

.hero-text {
  flex: 1 1 400px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(34px, 5.2vw, 60px);
  line-height: 1.2;
  text-shadow: 3px 3px 0 var(--pink);
}

.hero-sub {
  max-width: 520px;
  font-size: clamp(18px, 1.7vw, 21px);
  line-height: 1.45;
  color: var(--text-soft);
}

.hero-stores {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
  scroll-margin-top: 24px;
}

.store-button {
  justify-content: flex-start;
}

.store-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.store-prefix {
  font-size: 13px;
}

.store-name {
  font-size: 20px;
}

.hero-meta {
  font-size: 16px;
  color: var(--text-muted);
}

/* Illustration TV + téléphone : tout est proportionnel à sa largeur (unités cqw), 520 px au plus. */
.hero-art {
  flex: 1 1 400px;
  min-width: 0;
  max-width: 520px;
  margin: 0 auto;
  container-type: inline-size;
}

.art {
  position: relative;
  padding-bottom: 16cqw;
}

.tv {
  border: 1.6cqw solid var(--frame);
  border-radius: 2.4cqw;
  background: var(--frame);
  box-shadow: 0 3cqw 7cqw rgba(0, 0, 0, 0.45);
}

.tv-screen {
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 3cqw;
  overflow: hidden;
  padding: 3.6cqw 5cqw;
  border-radius: 1cqw;
  background: linear-gradient(180deg, #6a35d8 0%, var(--violet) 60%, var(--ink) 100%);
}

.tv-code {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.8cqw;
}

.tv-game {
  font-family: var(--font-display);
  font-size: 3.2cqw;
  color: var(--yellow);
}

.tv-label {
  font-size: 2.2cqw;
  font-weight: 800;
  letter-spacing: 0.5cqw;
  color: var(--text-muted);
}

.tv-digits {
  font-family: var(--font-display);
  font-size: 14cqw;
  line-height: 1.05;
  text-shadow: 0.8cqw 0.8cqw 0 var(--pink);
}

.tv-avatars {
  display: flex;
  gap: 1.4cqw;
  margin-top: 1.4cqw;
}

.tv-avatars span {
  width: 6.4cqw;
  height: 6.4cqw;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 3cqw;
  color: var(--ink);
}

.tv-avatars .empty {
  border: 0.4cqw dashed var(--dashed);
}

.tv-qr {
  align-self: flex-start;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8cqw;
  padding: 1.6cqw;
  border-radius: 2cqw;
  background: var(--white);
  font-size: 2cqw;
  font-weight: 800;
  color: var(--violet-deep);
}

.tv-qr-code {
  display: block;
  width: 17cqw;
  height: 17cqw;
}

.tv-neck {
  width: 9cqw;
  height: 2.6cqw;
  margin: 0 auto;
  background: var(--frame);
}

.tv-foot {
  width: 30cqw;
  height: 1.3cqw;
  margin: 0 auto;
  border-radius: 0.7cqw;
  background: var(--frame);
}

.phone {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 20cqw;
  aspect-ratio: 9 / 19;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.6cqw;
  padding: 4.4cqw 1.6cqw 1.8cqw;
  border: 0.9cqw solid var(--frame);
  border-radius: 4cqw;
  background: linear-gradient(180deg, var(--violet-bright), var(--ink));
  box-shadow: 0 2.4cqw 5cqw rgba(0, 0, 0, 0.5);
}

.phone-notch {
  position: absolute;
  top: 1.1cqw;
  left: 50%;
  width: 6cqw;
  height: 1cqw;
  margin-left: -3cqw;
  border-radius: 0.5cqw;
  background: var(--frame);
}

.phone-avatar {
  width: 8cqw;
  height: 8cqw;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--yellow);
  font-family: var(--font-display);
  font-size: 3.6cqw;
  color: var(--ink);
}

.phone-title {
  font-family: var(--font-display);
  font-size: 2.6cqw;
  color: var(--yellow);
}

.phone-field {
  width: 100%;
  padding: 1.2cqw 1.4cqw;
  border-radius: 1.4cqw;
  background: var(--white);
  font-size: 2.4cqw;
  font-weight: 800;
  color: var(--violet-deep);
}

.phone-button {
  width: 100%;
  padding: 1.3cqw 0;
  border-radius: 2cqw;
  background: var(--pink);
  box-shadow: 0 0.4cqw 0 var(--pink-shadow);
  font-family: var(--font-display);
  font-size: 2.1cqw;
  text-align: center;
  color: var(--ink);
}

.yellow {
  background: var(--yellow);
}

.cyan {
  background: var(--cyan);
}

.pink {
  background: var(--pink);
}

.ink {
  background: var(--ink);
}

.white {
  background: var(--white);
}

/* Accueil : sections */
.section {
  padding-top: 48px;
  padding-bottom: 16px;
  scroll-margin-top: 8px;
}

.section-narrow {
  max-width: 820px;
}

.section-title {
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.3;
}

.card {
  border-radius: 26px;
  background: var(--card);
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.step {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
}

.step-number {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--ink);
}

.step h3 {
  font-size: 23px;
  font-weight: 800;
  line-height: 1.3;
}

.step p {
  font-size: 17px;
  color: var(--text-soft);
}

.games {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.game-card {
  min-height: 230px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px;
  border-radius: 26px;
}

.game-card h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 27px;
  line-height: 1.3;
}

.game-card p {
  font-size: 17px;
  line-height: 1.4;
}

.game-motif {
  min-height: 48px;
  margin-top: auto;
  display: flex;
  align-items: flex-end;
}

.motif-answers {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.motif-answers span {
  height: 26px;
  border-radius: 10px;
}

.motif-lines {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.motif-lines span {
  height: 18px;
  border-radius: 10px;
}

.motif-lines .w90 {
  width: 90%;
}

.motif-lines .w80 {
  width: 80%;
}

.motif-lines .w70 {
  width: 70%;
}

.motif-svg {
  width: 100%;
  height: 48px;
}

/* Trait de Dessine-moi : proportions gardées (hauteur d'après la largeur), marge comprise dans le viewBox. */
.motif-scribble {
  height: auto;
}

.games-soon {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 18px;
  margin-top: 18px;
  padding: 20px 24px;
  border: 3px dashed var(--dashed);
  border-radius: 26px;
  font-size: 17px;
  color: var(--text-link);
}

.games-soon-title {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.3;
  color: var(--yellow);
}

/* Bande Gratuit / Sans compte / 2 à 20 joueurs : pastilles inclinées, fine ligne au-dessus.
   Une colonne centrée (éléments alignés à gauche entre eux) sur mobile, trois colonnes réparties au-delà. */
.band {
  display: grid;
  grid-template-columns: max-content;
  justify-content: center;
  gap: 20px 40px;
  margin: 0;
  padding: 28px 0 0;
  border-top: 3px solid var(--line);
  list-style: none;
}

.band-item {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 16px;
}

.band-badge {
  flex: none;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--ink);
  transform: rotate(-4deg);
}

.band-title {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.3;
}

/* Questions-réponses (accueil et Aide) */
.faq {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
}

.faq-item {
  padding: 16px 22px;
  border-radius: 20px;
}

.faq-item summary {
  display: flex;
  gap: 10px;
  min-height: 28px;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.4;
  list-style: none;
  cursor: pointer;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::before {
  content: '';
  flex: none;
  width: 0;
  height: 0;
  margin-top: 8px;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 10px solid currentColor;
  transition: transform 0.15s;
}

.faq-item[open] summary::before {
  transform: rotate(90deg);
}

.faq-item p {
  margin-top: 12px;
  font-size: 17px;
  line-height: 1.5;
  color: var(--text-soft);
}

.faq-more {
  margin-top: 16px;
  font-size: 17px;
  color: var(--text-link);
}

.faq-more a {
  font-weight: 800;
  color: var(--cyan);
}

.cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding-top: 44px;
  text-align: center;
}

.cta-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.3;
  text-shadow: 3px 3px 0 var(--pink);
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.cta-buttons .pill {
  padding: 15px 28px;
}

/* Pages de texte (Aide, Légal, Bientôt, 404) */
.page-narrow {
  max-width: 820px;
  padding-top: 48px;
  padding-bottom: 16px;
}

.page-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.3;
  text-shadow: 3px 3px 0 var(--pink);
}

.lead {
  font-size: 20px;
  line-height: 1.5;
  color: var(--text-soft);
}

.page-lead {
  margin: 10px 0 28px;
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 32px;
  padding: 24px 26px;
  border: 2px solid var(--yellow);
  border-radius: 26px;
  background: rgba(255, 210, 63, 0.12);
  font-size: 17px;
  color: var(--text-soft);
}

.contact-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 24px;
  line-height: 1.3;
  color: var(--yellow);
}

.contact-mail {
  font-weight: 800;
  font-size: 19px;
  color: var(--white);
  overflow-wrap: anywhere;
}

.legal-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 28px;
}

.legal-tab {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 24px;
  font-weight: 800;
  font-size: 17px;
  color: var(--white);
  text-decoration: none;
}

.legal-tab[aria-current='page'] {
  border-color: var(--yellow);
  background: var(--yellow);
  color: var(--ink);
}

.legal-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.legal-date {
  font-size: 15px;
  color: var(--text-muted);
}

.legal-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.legal-section h2 {
  margin-top: 12px;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.3;
  color: var(--yellow);
}

.legal-section p,
.legal-text {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-soft);
}

.not-found {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.not-found-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.not-found-block + .not-found-block {
  padding-top: 40px;
  border-top: 2px solid var(--line);
}

@media (max-width: 700px) {
  :root {
    --gutter: 20px;
  }

  .nav-desktop {
    display: none;
  }

  .nav-mobile-tools {
    display: flex;
  }

  .hero {
    padding-top: 28px;
  }
}

@media (min-width: 701px) {
  .menu-mobile {
    display: none !important;
  }
}

/* Trois éléments côte à côte seulement s'ils tiennent (environ 260 px chacun, plus les écarts). */
@media (min-width: 900px) {
  .band {
    grid-template-columns: repeat(3, max-content);
    justify-content: space-evenly;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
