/* AstroPredict — formules, mot de passe et « Mon compte » (chantier F).
   Feuille à part : ne modifie aucune feuille existante, chargée après elles par les pages carte-du-ciel, formules, connexion, compte et merci.
   Charte Lumière (verre blanc, encre bleu-graphite, braise en accent), aucune flèche. Pensée mobile d'abord (390 px), puis ordinateur. */

/* ===== Champ de mot de passe et son œil ===== */
.mdp { position: relative; display: block; }
.mdp input { padding-right: 56px; }
.mdp__oeil { position: absolute; top: 50%; right: 4px; transform: translateY(-50%); width: 44px; height: 44px; padding: 0; border: 0; border-radius: 12px; background: transparent; color: var(--encre-2); cursor: pointer; display: grid; place-items: center; }
.mdp__oeil:hover { color: var(--encre); background: rgb(21 33 43 / .06); }
.mdp__oeil:focus-visible { outline: 2px solid var(--encre); outline-offset: 0; }
.mdp__oeil svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.mdp__oeil .oeil__barre { opacity: 0; }
.mdp__oeil[aria-pressed="true"] .oeil__barre { opacity: 1; }

/* ===== Règles du mot de passe, cochées en direct ===== */
.regles { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 7px; font-size: 14px; color: var(--encre-2); }
.regles li { position: relative; padding-left: 28px; line-height: 1.35; transition: color .2s ease; }
.regles li::before { content: ""; position: absolute; left: 0; top: .08em; width: 18px; height: 18px; border-radius: 50%; box-sizing: border-box; border: 1.5px solid var(--filet-fort); background: #fff center / 11px no-repeat; transition: background-color .2s ease, border-color .2s ease; }
.regles li.est-ok { color: var(--encre); }
.regles li.est-ok::before { border-color: #2F8F6A; background-color: #2F8F6A; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.2 4.2L19 7' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.mdp-astuce { margin: 12px 0 14px; font-size: 13.5px; line-height: 1.45; }

/* ===== Pourquoi le bouton est grisé ===== */
.mdp-etat { margin: 14px 0 12px; min-height: 2.9em; padding: 10px 14px; border-radius: 14px; background: rgb(21 33 43 / .05); color: var(--encre-2); font-size: 14.5px; font-weight: 500; line-height: 1.4; }
.mdp-etat.est-bloque { background: #FDEFE4; color: #7A3412; }
.mdp-etat.est-ok { background: #E9F6EF; color: #1F5F46; }
[data-inscription] .bouton[disabled] { opacity: .42; cursor: not-allowed; box-shadow: none; pointer-events: none; }

/* ===== Page des formules ===== */
.bandeau-formule { padding: 16px 20px; margin: 0 0 20px; max-width: 760px; display: grid; gap: 8px; }
.bandeau-formule__actuelle { font-weight: 600; }
.bandeau-formule__programme { font-size: 14.5px; color: var(--encre-2); }
.formule__badge { display: inline-flex; align-items: center; gap: 7px; margin: 0 0 10px; padding: 4px 12px; border-radius: 999px; background: var(--menthe); color: var(--encre); font-family: var(--f-mono); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.formule__badge[hidden] { display: none; }
.formule__note { margin-top: 8px; font-size: 13.5px; line-height: 1.4; }
.formule.est-actuelle { box-shadow: 0 0 0 2px var(--encre), 0 20px 50px -30px rgb(30 45 60 / .35); }
.formule--vedette.est-actuelle { box-shadow: 0 0 0 2px var(--abricot), 0 20px 50px -30px rgb(30 45 60 / .35); }
.formule--vedette .formule__badge { background: var(--peche); color: var(--encre); }
.formule .bouton[hidden] { display: none; }
.formule .bouton { white-space: normal; text-align: center; line-height: 1.25; min-height: 50px; height: auto; padding-top: 10px; padding-bottom: 10px; }
.panneau-formule { margin-top: 20px; max-width: 560px; padding: clamp(20px, 3vw, 28px); display: grid; gap: 14px; }
.panneau-formule__resume { font-weight: 600; font-size: 17px; }
.panneau-formule__cases { display: grid; gap: 10px; }
.panneau-formule .boutons .bouton { white-space: normal; text-align: center; line-height: 1.25; min-height: 50px; height: auto; padding-top: 10px; padding-bottom: 10px; }
.panneau-formule .bouton[disabled] { opacity: .5; cursor: progress; }
@media (max-width: 520px) { .panneau-formule .boutons { display: grid; grid-template-columns: minmax(0, 1fr); } .panneau-formule .boutons .bouton { width: 100%; } }

/* ===== Mon compte : échéance, changement programmé, passage à une formule supérieure ===== */
.compte-tete__echeance { margin-top: 10px; color: var(--encre-2); font-size: 15px; }
.compte-tete__programme { margin-top: 8px; font-size: 14.5px; color: var(--encre-2); }
.compte-tete__garde { margin-top: 8px; font-size: 14.5px; font-weight: 600; color: #1F5F46; }
.compte-tete__passer { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.compte-tete__passer .bouton { white-space: normal; text-align: center; line-height: 1.2; }
.compte-tete__passer [hidden] { display: none; }
@media (max-width: 520px) { .compte-tete__passer { display: grid; grid-template-columns: minmax(0, 1fr); } .compte-tete__passer .bouton { width: 100%; min-height: 44px; height: auto; padding-top: 8px; padding-bottom: 8px; } }

/* ===== Retour de paiement d'une formule ===== */
.merci__entrer { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 12px; }
.merci__entrer .bouton { white-space: normal; text-align: center; line-height: 1.25; }

/* ===== Page des formules : « Toi », les trois chiffres, l'espace karmique ===== */
.formule__toi { margin: 0; font-weight: 600; font-size: 16px; line-height: 1.35; }
.chiffres { margin: 0; display: grid; gap: 0; }
.chiffres > div { display: flex; justify-content: space-between; align-items: baseline; gap: 4px 16px; padding: 10px 0; border-top: 1px solid var(--filet); }
.chiffres > div:last-child { border-bottom: 1px solid var(--filet); }
.chiffres dt { margin: 0; font-size: 14px; line-height: 1.3; color: var(--encre-2); }
.chiffres dd { margin: 0; font-weight: 600; font-size: 15px; line-height: 1.3; text-align: right; overflow-wrap: anywhere; }
.formule--vedette .chiffres > div { border-color: rgb(251 246 238 / .22); }
.formule--vedette .chiffres dt { color: rgb(251 246 238 / .72); }
.formule .liste li { font-weight: 500; }
@media (max-width: 420px) { .chiffres > div { flex-direction: column; align-items: flex-start; gap: 2px; } .chiffres dd { text-align: left; } }

/* ===== Page des formules : « Accès complet ou limité ? » ===== */
.bloc__titre { margin-bottom: clamp(20px, 3vw, 32px); }
.acces { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.acces__carte { padding: clamp(20px, 2.6vw, 30px); display: grid; gap: 12px; align-content: start; min-width: 0; }
.acces__carte p { margin: 0; font-size: 15.5px; line-height: 1.45; }
.acces__verrou, .acces__libre { font-weight: 600; }
.acces__verrou { padding: 10px 14px; border-radius: 14px; background: #FFE9D9; color: #7A3412; }
.acces__libre { color: #1F5F46; }
.acces__puces { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.acces__puces li { padding: 6px 12px; border-radius: 999px; background: #fff; font-weight: 500; font-size: 14px; line-height: 1.3; box-shadow: inset 0 0 0 1px var(--filet); overflow-wrap: anywhere; }
@media (max-width: 760px) { .acces { grid-template-columns: minmax(0, 1fr); } }

/* ===== Création du compte : récapitulatif avant validation ===== */
.recap { display: grid; gap: 16px; }
.recap [data-recap-titre]:focus { outline: none; }
.recap__attention { margin: 0; padding: 14px 16px; border-radius: 14px; background: #FFE9D9; color: #7A3412; font-weight: 600; font-size: 15px; line-height: 1.45; }
.recap__liste { margin: 0; display: grid; }
.recap__liste > div { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 2px 16px; padding: 11px 0; border-top: 1px solid var(--filet); }
.recap__liste > div:last-child { border-bottom: 1px solid var(--filet); }
.recap__liste dt { margin: 0; font-size: 14px; color: var(--encre-2); }
.recap__liste dd { margin: 0; font-weight: 600; font-size: 16px; text-align: right; overflow-wrap: anywhere; min-width: 0; }
.recap__boutons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.recap__boutons .bouton { white-space: normal; text-align: center; line-height: 1.25; min-height: 50px; height: auto; padding-top: 10px; padding-bottom: 10px; }
@media (max-width: 460px) { .recap__boutons { grid-template-columns: minmax(0, 1fr); } .recap__boutons .bouton:last-child { order: -1; } .recap__liste dd { text-align: left; } }

/* ===== Mon compte : accès par personne ===== */
.compte-acces { margin: 16px 0 0; display: grid; gap: 0; max-width: 460px; }
.compte-acces[hidden], .compte-acces [hidden] { display: none; }
.compte-acces > div { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 2px 16px; padding: 9px 0; border-top: 1px solid var(--filet); }
.compte-acces > div:last-child { border-bottom: 1px solid var(--filet); }
.compte-acces dt { margin: 0; font-size: 14px; color: var(--encre-2); }
.compte-acces dd { margin: 0; font-weight: 600; font-size: 15px; text-align: right; }
@media (max-width: 460px) { .compte-acces dd { text-align: left; } }

/* le formulaire (ou son récapitulatif) se cale sous la barre du haut collée */
form[data-inscription] { scroll-margin-top: 92px; }

/* Mon compte : « Voir ma carte du ciel » puis « Voir les formules », sous la formule (30/10/2026) */
.compte-tete__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.compte-tete__actions .bouton { white-space: normal; text-align: center; line-height: 1.2; }
@media (max-width: 520px) { .compte-tete__actions { display: grid; grid-template-columns: minmax(0, 1fr); } .compte-tete__actions .bouton { width: 100%; min-height: 56px; height: auto; padding-top: 12px; padding-bottom: 12px; } }
