/* ---------- écran de démarrage ---------- */
/* pas de justify-content:center ici (même piège que #ecran-son .corps-page,
   voir son commentaire) : avec 4 boutons, le contenu peut déborder sur un
   petit écran -- centré en apparence par le padding haut, toujours
   défilable jusqu'en bas sans bug Safari iOS. */
#ecran-demarrage{ align-items:center; gap:14px; padding:36px 24px 32px; overflow-y:auto; }
/* Lien discret, jamais un mur : taille de texte normale mais contraste
   volontairement faible (couleur neutre) pour ne pas rivaliser avec les
   tuiles d'activité en dessous. */
.profil-lien{ font-family:inherit; font-size:14px; font-weight:700; color:var(--neutre); background:none; border:none; padding:6px 10px; cursor:pointer; }
/* Total d'étoiles (ADR-018) : discret comme profil-lien, jamais un score
   intimidant -- juste un petit rappel positif des leçons déjà réussies. */
.etoiles-total{ font-family:inherit; font-size:15px; font-weight:800; color:var(--attention-texte); background:none; border:none; padding:6px 10px; cursor:pointer; }
.bouton-pastille-pleine{ font-family:inherit; font-size:17px; font-weight:700; padding:12px 22px; border-radius:99px; border:4px solid var(--accent); background:var(--accent); color:#fff; cursor:pointer; box-shadow:0 5px 0 rgba(0,0,0,.12); }
.bouton-pastille-contour{ font-family:inherit; font-size:17px; font-weight:700; padding:12px 22px; border-radius:99px; border:4px solid var(--accent); background:#fff; color:var(--accent); cursor:pointer; box-shadow:0 5px 0 rgba(0,0,0,.12); }
/* overflow-y:auto indispensable : sans ça, un contenu plus haut que l'écran
   (clavier virtuel ouvert, petit téléphone) devient inatteignable -- même
   piège qu'en commit 4c187eb (.corps-page sans règle dédiée), reproduit ici
   une fois avant d'être corrigé. Voir .ai/lessons.md. */
#ecran-profil .profil-corps{ flex:1 1 auto; overflow-y:auto; -webkit-overflow-scrolling:touch; max-width:480px; width:100%; margin:0 auto; padding:0 20px 28px; display:flex; flex-direction:column; gap:18px; }
.accueil-section{ width:min(560px, 100%); display:flex; flex-direction:column; gap:10px; }
/* Pas de majuscules forcées pour "Apprendre"/"S'entraîner" : une marque
   courte (ligne + losange, écho discret au motif en fond d'écran) fait le
   même travail de repère de section, sans le ton "étiquette système". */
.accueil-label{ margin:14px 6px 0; display:flex; align-items:center; gap:10px; font-size:17px; font-weight:700; color:var(--encre); }
.accueil-label::before{ content:""; width:22px; height:22px; flex:0 0 auto; background:var(--attention); transform:rotate(45deg); border-radius:5px; }
/* flex plutôt que grid auto-fit : avec seulement 2 tuiles (section
   "S'entraîner"), auto-fit calcule quand même ~6 pistes possibles sur un
   écran large, en collapse 4 vides et redistribue leur espace aux 2
   pistes restantes (1fr) -- les deux tuiles se retrouvent écartées aux
   deux bouts de la rangée au lieu de rester groupées. flex-wrap groupe et
   centre naturellement, quel que soit le nombre de tuiles. */
.accueil-grille{ display:flex; flex-wrap:wrap; justify-content:center; gap:14px; }
.tuile-accueil{ position:relative; flex:1 1 155px; max-width:240px; border:none; border-radius:28px; background:var(--c, var(--accent)); color:#fff; padding:16px 10px 14px; min-height:136px; box-shadow:0 8px 0 rgba(0,0,0,.14); cursor:pointer; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px; transition:transform .12s ease, box-shadow .12s ease; }
.tuile-accueil:active{ transform:translateY(5px); box-shadow:0 3px 0 rgba(0,0,0,.14); }
.ta-badge{ width:78px; height:78px; border-radius:50%; background:rgba(255,255,255,.22); display:flex; align-items:center; justify-content:center; margin-bottom:4px; box-shadow:inset 0 -3px 0 rgba(0,0,0,.08); }
.ta-badge img{ width:56px; height:56px; object-fit:contain; filter:drop-shadow(0 3px 2px rgba(0,0,0,.18)); }
.ta-glyphe{ font-size:42px; line-height:1.7; color:#fff; font-weight:700; }
.ta-chiffres{ font-size:34px; line-height:1; letter-spacing:.02em; font-weight:800; }
.ta-texte{ font-size:17px; font-weight:800; text-align:center; }
.ta-ar{ font-size:19px; opacity:.92; line-height:1.4; }
.ta-prog{ position:absolute; top:10px; right:12px; font-size:12px; font-weight:800; background:rgba(255,255,255,.26); padding:2px 9px; border-radius:999px; }
.ta-prog:empty{ display:none; }
@media (min-width:900px){
  .accueil-section{ width:min(980px, 100%); }
  .tuile-accueil{ min-height:156px; }
  .ta-badge{ width:88px; height:88px; }
  .ta-badge img{ width:64px; height:64px; }
  .ta-glyphe{ font-size:48px; }
}

