/* =========================================================================
   accueil.css — Page d'accueil (présentation pour les parents + SEO)
   et bulles du tutoriel en jeu.
   ========================================================================= */

/* Tant que l'accueil est affiché, la page défile normalement et le jeu est caché. */
html { overflow: auto; }
body.accueil-ouvert { overflow: auto; height: auto; }
body.accueil-ouvert #monde, body.accueil-ouvert #joystick { display: none; }

#accueil { color: var(--encre); }
.acc-large { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.acc-entete { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 18px; padding-bottom: 8px; }
.acc-logo { display: flex; align-items: center; gap: 10px; font-family: var(--titre); font-weight: 700; font-size: 24px; text-decoration: none; color: var(--encre); }
.acc-logo svg { width: 44px; height: 44px; }
.acc-nav { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.acc-nav a { font-weight: 800; color: var(--encre); text-decoration: none; padding: 8px 4px; }
.acc-nav a:hover { text-decoration: underline; }

.acc-heros { display: flex; flex-wrap: wrap; align-items: center; gap: 36px; padding-top: 18px; padding-bottom: 48px; }
.acc-heros > div { flex: 1 1 400px; min-width: 0; }
.acc-heros h1 { font-size: clamp(36px, 5.4vw, 58px); letter-spacing: -0.01em; margin: 14px 0; }
.acc-heros p.chapo { font-size: 20px; line-height: 1.55; color: var(--encre-douce); max-width: 560px; }
.acc-badge { display: inline-flex; font-weight: 800; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; background: var(--soleil-clair); padding: 7px 14px; border-radius: 999px; }
.acc-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 22px; }
.acc-illu svg { width: 100%; height: auto; display: block; }
#accueil-reprise { margin-top: 12px; font-weight: 800; }

.acc-section { padding-top: 52px; padding-bottom: 52px; }
.acc-section h2 { font-size: clamp(28px, 3.6vw, 38px); margin-bottom: 10px; }
.acc-section .intro { font-size: 18px; color: var(--encre-douce); max-width: 760px; margin-bottom: 24px; }
.acc-bande { background: var(--papier); border-top: 3px solid var(--encre); border-bottom: 3px solid var(--encre); }
.acc-grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.acc-carte { background: var(--papier); border: 3px solid var(--encre); border-radius: 24px; padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.acc-bande .acc-carte { background: var(--fond); }
.acc-carte h3 { font-size: 22px; }
.acc-carte p, .acc-carte li { font-size: 16px; line-height: 1.55; color: var(--encre-douce); }
.acc-carte ul { margin: 0; padding-left: 20px; }
.acc-numero { width: 44px; height: 44px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-family: var(--titre); font-weight: 700; font-size: 22px; background: var(--soleil-clair); border: 3px solid var(--encre); }
.acc-classes { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.acc-classes span { border: 2px solid var(--encre); border-radius: 999px; padding: 6px 14px; font-weight: 800; background: var(--papier); }

.acc-parents { background: var(--encre); color: #fff; }
.acc-parents h2, .acc-parents h3 { color: #fff; }
.acc-parents .intro { color: #DCDBF0; }
.acc-parents .acc-carte { background: #3A3962; border-color: #3A3962; }
.acc-parents .acc-carte p, .acc-parents .acc-carte li { color: #DCDBF0; }
.acc-parents .acc-carte.alerte { background: var(--soleil-clair); border-color: var(--soleil-clair); }
.acc-parents .acc-carte.alerte h3, .acc-parents .acc-carte.alerte p { color: var(--encre); }

.acc-faq details { background: var(--papier); border: 3px solid var(--encre); border-radius: 20px; padding: 14px 18px; margin-bottom: 12px; }
.acc-faq summary { cursor: pointer; font-family: var(--titre); font-weight: 600; font-size: 19px; }
.acc-faq details p { margin-top: 10px; color: var(--encre-douce); line-height: 1.55; }

.acc-pied { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-top: 24px; padding-bottom: 40px; font-size: 15px; color: var(--encre-douce); }

/* ---------- Bulles du tutoriel (le jeu continue derrière) ---------- */
.tuto {
  position: fixed; z-index: 30; left: 50%; bottom: 104px; transform: translateX(-50%);
  width: min(94vw, 520px); background: var(--papier); border: 3px solid var(--encre); border-radius: 22px;
  padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 6px 0 rgba(43, 42, 74, .25);
  animation: monter .25s ease-out;
}
@media (max-width: 640px) { .tuto { bottom: 84px; } }
.tuto-cible { animation: tuto-pulse 1.1s ease-in-out infinite; }
@keyframes tuto-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(246, 196, 69, .9); } 50% { box-shadow: 0 0 0 10px rgba(246, 196, 69, 0); } }
