/* Pièces communes de l'application (A, B, C, D). S'ajoute après tama.css de la greffe v3 :
   mêmes couleurs nommées, mêmes traits. Rien n'est redéfini ici, on ajoute seulement ce qui manquait :
   champs, case à cocher, liens de 44 px, barre de l'appli, points de la semaine, tampon qui s'imprime. */

/* ---------- les sections de l'appli n'ont pas la marge des sections de la vitrine (tama.css : 92 px) ---------- */
main section { padding: 0; }

/* ---------- liens simples, toujours 44 px ---------- */
.lien { display: inline-flex; align-items: center; min-height: 44px; font-weight: 800; color: var(--encre); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.lien:hover { text-decoration-thickness: 3px; }
.nuit .lien { color: var(--nuit-texte); }

/* ---------- champs ---------- */
.champ { display: grid; gap: 6px; }
.champ label { font-weight: 900; font-size: 1rem; }
.champ input { width: 100%; min-height: 56px; padding: 0 18px; border: var(--trait); border-radius: 16px; background: var(--blanc); color: var(--encre); font: inherit; font-size: 1.1rem; font-weight: 700; }
.champ input::placeholder { color: var(--doux); font-weight: 600; }
.champ input:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.champ .aide { font-size: 1rem; font-weight: 600; color: var(--doux); }
.champ .mdp { position: relative; }
.champ .mdp input { padding-right: 112px; }
.champ .mdp button { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); min-height: 44px; padding: 0 12px; border: 0; border-radius: 12px; background: var(--papier-2); color: var(--encre); font: inherit; font-size: 1rem; font-weight: 900; cursor: pointer; }
.nuit .champ input { border-color: var(--nuit-doux); }

/* ---------- case à cocher : la case elle-même fait 44 px ---------- */
.coche { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: 1rem; font-weight: 700; line-height: 1.45; text-align: left; }
.coche input { appearance: none; -webkit-appearance: none; flex: none; width: 44px; height: 44px; margin: 0; border: var(--trait); border-radius: 12px; background: var(--blanc); display: grid; place-items: center; cursor: pointer; }
.coche input:checked { background: var(--matcha); }
.coche input:checked::after { content: ""; width: 16px; height: 9px; border-left: 4px solid var(--encre); border-bottom: 4px solid var(--encre); transform: translateY(-3px) rotate(-45deg); }
.coche span { padding-top: 9px; }
.nuit .coche input { border-color: var(--nuit-doux); }

/* ---------- formulaire de la liste d'attente (commun aux propositions) ---------- */
.inscription { display: grid; gap: 14px; text-align: left; }
.inscription .ligne-envoi { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.inscription .ligne-envoi .champ { flex: 1 1 240px; }
.inscription .ligne-envoi .btn { flex: 0 0 auto; }
.inscription .mention { font-size: 1rem; font-weight: 600; color: var(--doux); }
.nuit .inscription .mention { color: var(--nuit-doux); }
.maquette-note { font-size: 1rem; font-weight: 700; color: var(--doux); }
.nuit .maquette-note { color: var(--nuit-doux); }

/* ---------- repère de maquette : le reste de l'accueil n'a pas changé ---------- */
.reste { padding: 26px 0; text-align: center; border-block: 2.5px dashed var(--encre); background: var(--papier-2); }
.reste p { font-weight: 800; color: var(--encre-2); }

/* ---------- barre de l'appli (parent) ---------- */
.barre-app { position: sticky; top: 0; z-index: 30; background: var(--papier); border-bottom: var(--trait); }
.barre-app .wrap { display: flex; align-items: center; gap: 12px; height: 66px; }
.barre-app .logo { font-size: 1.5rem; }
.barre-app .droite { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.profil-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 48px; padding: 0 14px 0 6px; border: var(--trait); border-radius: 999px; background: var(--blanc); box-shadow: 0 3px 0 var(--encre); font-family: var(--display); font-weight: 700; font-size: 1.05rem; text-decoration: none; color: var(--encre); }

/* ---------- jours joués : sept pastilles ---------- */
.semaine { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.semaine li { width: 34px; height: 34px; border-radius: 50%; border: 2.5px solid var(--encre); display: grid; place-items: center; font-size: .95rem; font-weight: 900; background: var(--blanc); }
.semaine li.joue { background: var(--c, var(--tomate)); }
.semaine li.auj { outline: 3px dashed var(--encre); outline-offset: 2px; }
/* Le pointillé du jour sort de 5 px (3 + 2) : 4 px de plus de chaque côté où il a une voisine,
   pour garder 5 px entre le pointillé et la pastille d'à côté (écart de 6 px entre pastilles). */
.semaine li.auj:not(:first-child) { margin-left: 4px; }
.semaine li.auj:not(:last-child) { margin-right: 4px; }

/* ---------- tampon qui s'imprime (réussite) ---------- */
.tampon-reussite { --rot: -12deg; width: 168px; height: 168px; }
.tampon-reussite b { font-size: 2.6rem; }
.tampon-reussite small { font-size: 1.05rem; }
.rond.mini { width: 58px; height: 58px; }
.rond.mini b { font-size: 1.5rem; }
.imprime { animation: imprime .42s cubic-bezier(.2, .9, .3, 1.2) both; }
@keyframes imprime { from { opacity: 0; transform: rotate(var(--rot, -12deg)) scale(1.7); } to { opacity: 1; transform: rotate(var(--rot, -12deg)) scale(1); } }

/* ---------- leçon : boules à bouger (aide « pas encore ») ---------- */
.sb-bead.a-bouger { animation: invite 1.8s ease-in-out .3s infinite; }
.sb-bead.a-bouger::after { content: ""; position: absolute; inset: -5px -3px; border: 3px dashed var(--encre); border-radius: 46%; pointer-events: none; }
.unites-marquees .is-units { background: var(--soleil-doux); border-radius: 10px; }

/* ---------- bouton rond à icône (écouter, maison) ---------- */
.rond-btn { width: 52px; height: 52px; flex: none; display: grid; place-items: center; border: var(--trait); border-radius: 50%; background: var(--blanc); box-shadow: 0 4px 0 var(--encre); cursor: pointer; color: var(--encre); text-decoration: none; padding: 0; }
.rond-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--encre); }
.rond-btn svg { width: 26px; height: 26px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- états : le script pose hidden sur chaque bloc [data-si] qui n'est pas de l'état courant ---------- */
[hidden] { display: none !important; }

/* ---------- texte légal ---------- */
.legal h2 { font-size: clamp(1.45rem, 2.4vw, 1.8rem); }
.legal p, .legal li { font-weight: 600; color: var(--encre-2); max-width: 40em; }
.legal ul { padding-left: 1.2em; margin: 0; display: grid; gap: 6px; }
.provisoire { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border: 2.5px dashed var(--tampon); border-radius: 12px; color: var(--tampon); background: var(--tampon-fond); font-weight: 900; font-size: 1rem; }
