/* === Petit BAC — identité de la page d'accueil ===
   La mise en page (héros, cartes de mode, panneaux, règles, guides) vient du socle
   partagé accueil.css. Ici : les tuiles de lettres, les lignes de cahier, et les blocs
   propres au jeu (réglages de création, salons publics, barème, outils). */
.hero-jeu {
  --hero-motif: linear-gradient(color-mix(in srgb, var(--color-light) 14%, transparent) 1px, transparent 1px);
  --hero-motif-taille: 100% 20px;
  --hero-motif-2: linear-gradient(color-mix(in srgb, var(--color-mid) 14%, transparent) 1px, transparent 1px);
  --hero-motif-2-taille: 100% 16px;
}
.hero-decos .deco-flottante {
  width: 44px; height: 44px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.05rem;
  font-weight: 800;
  color: #d1fae5;
  background: #065f46;
  border: 1px solid rgba(110, 231, 183, 0.35);
  box-shadow: inset 0 -3px 0 rgba(5, 150, 105, 0.55);
}
.rules { --rules-symbole: '\270F'; }
a.mode-card { text-decoration: none; color: inherit; }
.modes { grid-template-columns: repeat(4, 1fr); }
.badge-multi { background: rgba(16, 185, 129, 0.18); color: #6ee7b7; border: 1px solid rgba(110, 231, 183, 0.3); }
.badge-defi { background: rgba(251, 191, 36, 0.16); color: #fde68a; border: 1px solid rgba(251, 191, 36, 0.35); }

/* Lien bien visible vers le classement, sous les modes */
.lien-classement-accueil {
  display: block;
  margin: 0 0 22px;
  padding: 12px 14px;
  min-height: 44px;
  text-align: center;
  font-weight: 700;
  color: var(--color-accent);
  background: rgba(110, 231, 183, 0.06);
  border: 1px solid rgba(110, 231, 183, 0.22);
  border-radius: 12px;
  text-decoration: none;
}
.lien-classement-accueil:hover { background: rgba(110, 231, 183, 0.12); }

/* Panneau « Créer une partie » */
.section-desc { font-size: 0.9rem; color: #cbd5e1; margin-bottom: 14px; line-height: 1.5; }
.alerte-compte {
  font-size: 0.9rem;
  color: #fde68a;
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.3);
  border-radius: 10px;
  padding: 10px;
  margin-top: 8px;
}
.alerte-actions { display: flex; gap: 8px; justify-content: center; margin-top: 12px; flex-wrap: wrap; }
.choix-ligne { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin: 8px 0 16px; }
.choix-btn {
  font-family: 'Inter', sans-serif;
  min-width: 56px;
  min-height: 46px;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.choix-btn:hover { border-color: rgba(110, 231, 183, 0.4); }
.choix-btn.actif { color: #fff; background: var(--color-btn1); border-color: transparent; }
.choix-aide { font-size: 0.82rem; color: #94a3b8; margin: -8px 0 16px; line-height: 1.45; }
.option-case {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 44px;
  padding: 6px 0;
  text-align: left;
  font-size: 0.9rem;
  color: #cbd5e1;
  cursor: pointer;
}
.option-case input { flex: none; width: 20px; height: 20px; margin-top: 2px; accent-color: var(--color-mid); }
.options-creer { max-width: 560px; margin: 0 auto 16px; }
.btn-full { display: inline-block; text-decoration: none; text-align: center; width: 100%; }

.champ-code { text-transform: uppercase; text-align: center; letter-spacing: 0.3em; font-size: 1.1rem; }
.titre-section { font-size: 1.15rem; margin: 0 0 12px; }
.faq-bloc { margin-top: 24px; }

/* Salons publics */
.publics { margin: 0 0 24px; padding: 18px; background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 16px; }
.publics h2 { font-size: 1.1rem; margin-bottom: 6px; }
.publics-intro { font-size: 0.88rem; color: #94a3b8; margin-bottom: 12px; line-height: 1.45; }
.publics-liste { display: grid; gap: 8px; margin-bottom: 12px; }
.public-ligne {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  background: rgba(110, 231, 183, 0.06);
  border: 1px solid rgba(110, 231, 183, 0.18);
  border-radius: 10px;
  text-align: left;
}
.public-nom { font-weight: 700; color: #e2e8f0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.public-detail { display: block; font-size: 0.82rem; font-weight: 400; color: #94a3b8; }
.public-rejoindre {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 8px 16px;
  background: var(--color-btn1); color: #fff; border-radius: 10px;
  font-weight: 700; font-size: 0.9rem; text-decoration: none;
}
.publics-vide { font-size: 0.9rem; color: #94a3b8; padding: 8px 0 12px; }

/* Barème en tableau, dans les règles */
.bareme { width: 100%; border-collapse: collapse; margin: 10px 0 16px; font-size: 0.92rem; }
.bareme th, .bareme td { padding: 8px 10px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); text-align: left; }
.bareme th { color: #94a3b8; font-weight: 600; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.4px; }
.bareme td:last-child { text-align: right; font-weight: 800; color: #fbbf24; white-space: nowrap; }

/* Outils et pages par lettre */
.outils { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0 0 24px; }
.outil-carte {
  display: block;
  padding: 16px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  text-decoration: none;
  color: #cbd5e1;
  font-size: 0.88rem;
  line-height: 1.45;
}
.outil-carte strong { display: block; color: var(--color-accent); font-size: 0.98rem; margin-bottom: 4px; }
.outil-carte:hover { border-color: rgba(110, 231, 183, 0.35); }
.lettres-liens { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 12px 0 0; }
.lettres-liens a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  background: #065f46; border: 1px solid rgba(110, 231, 183, 0.3); border-radius: 8px;
  color: #d1fae5; font-weight: 800; text-decoration: none;
}
.lettres-liens a:hover { background: #047857; }

.mes-chiffres-titre { margin: 0 0 10px; font-size: 1.05rem; font-weight: 700; color: #e2e8f0; text-align: center; }
.mes-chiffres { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 0 0 22px; }
.mes-chiffres:has(+ .mes-lettres) { margin-bottom: 10px; }
.mes-lettres { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 22px; margin: 0 0 22px; font-size: 0.9rem; color: #94a3b8; text-align: center; }
.mes-lettres strong { color: #fbbf24; font-size: 1.05rem; }
.mes-chiffres div { padding: 10px 6px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 10px; text-align: center; }
.mes-chiffres strong { display: block; font-size: 1.2rem; color: #fbbf24; }
.mes-chiffres span { font-size: 0.78rem; color: #94a3b8; }

@media (max-width: 760px) {
  .modes { grid-template-columns: repeat(2, 1fr); }
  .outils { grid-template-columns: 1fr; }
  .mes-chiffres { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .hero-decos .deco-flottante { width: 36px; height: 36px; font-size: 0.9rem; }
}

/* Questions fréquentes : mêmes règles que dans les guides (socle article.css), que
   l'accueil ne charge pas. */
.faq-item { border-top: 1px solid rgba(255, 255, 255, 0.1); }
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  min-height: 48px;
  padding: 14px 2px;
  background: none;
  border: none;
  cursor: pointer;
  font-weight: 600;
  color: #e6eaef;
  font-size: 0.95rem;
  font-family: inherit;
  text-align: left;
}
.faq-question:hover { color: var(--color-light); }
.faq-question:focus-visible { outline: 2px solid var(--color-light); outline-offset: -2px; }
.faq-question::after { content: '+'; font-size: 1.2rem; color: #94a3b8; flex-shrink: 0; margin-left: 12px; }
.faq-question[aria-expanded="true"]::after { content: '\2212'; }
.faq-answer { max-height: 0; overflow: hidden; padding: 0 2px; color: #cbd5e1; line-height: 1.7; font-size: 0.93rem; text-align: left; }
.faq-answer[aria-hidden="false"] { max-height: 600px; padding: 0 2px 18px; }
