/* modules/mon_compte/module.css - mise en forme de BASE (le Template la complete). */
/* ---- zone de l'en-tete ---- */
.compte-zone { display: inline-flex; align-items: center; gap: 8px; }
.compte-zone .compte-icone { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: inherit; cursor: pointer; text-decoration: none; }
.compte-zone .compte-icone:hover { background: rgba(255, 255, 255, .16); }
.compte-zone .compte-etat-connecte { color: #5fd16b; }
.compte-zone[data-statut="attente"] .compte-etat-connecte, .compte-zone[data-statut="invalide"] .compte-etat-connecte { color: #f5b041; }
.compte-zone .compte-icone-sortie { color: inherit; }
.compte-zone[data-connecte="1"] .compte-etat-deconnecte { display: none; }
.compte-zone[data-connecte="0"] .compte-etat-connecte, .compte-zone[data-connecte="0"] .compte-nom { display: none; }
.compte-zone .compte-nom { font-size: .9rem; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---- fenetre de connexion ---- */
/* Voile plein ecran qui DEFILE s'il le faut, et boite centree par marges automatiques : centree quand elle tient, alignee en haut (donc entierement
   atteignable) quand elle est plus haute que la fenetre. Pas d'align-items: center (il coupe le haut), pas de max-height en vh (faux sur mobile). */
.compte-modal { display: none; position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 2147483000; background: rgba(15, 23, 42, .6); overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 16px; box-sizing: border-box; }
.compte-modal.ouvert { display: flex; }
.compte-modal-boite { background: #fff; color: #1d2433; width: 100%; max-width: 440px; margin: auto; border-radius: 14px; box-shadow: 0 20px 50px rgba(0, 0, 0, .35); }
.compte-modal-entete { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid #e5e9f0; }
.compte-modal-entete h2 { margin: 0; font-size: 1.25rem; }
.compte-modal-fermer { background: none; border: 0; font-size: 1.8rem; line-height: 1; cursor: pointer; color: #5b6578; }
.compte-verrouille .compte-modal-fermer { display: none; }
.compte-modal-corps { padding: 18px 20px 22px; }
.compte-ecran[hidden], [data-titre][hidden] { display: none; }
.compte-champ { margin-bottom: 14px; }
.compte-champ label { display: block; font-weight: 600; margin-bottom: 4px; }
.compte-champ input, .compte-champ select { width: 100%; box-sizing: border-box; padding: 9px 11px; border: 1px solid #c9d2e0; border-radius: 8px; font: inherit; }
.compte-champ small { display: block; margin-top: 4px; color: #5b6578; font-size: .82rem; }
.compte-champ-double { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.compte-bouton { display: inline-block; padding: 10px 18px; border: 0; border-radius: 8px; background: #1f5fbf; color: #fff; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; }
.compte-bouton:disabled { opacity: .6; cursor: wait; }
.compte-bouton-secondaire { background: #5b6578; }
.compte-liens { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.compte-lien { background: none; border: 0; padding: 0; color: #1f5fbf; cursor: pointer; text-decoration: underline; font: inherit; }
.compte-intro { margin: 0 0 14px; color: #3b4558; }
.compte-erreur { margin: 0 0 12px; padding: 9px 12px; border-radius: 8px; background: #fdecea; color: #a12622; }
.compte-regles { margin: 8px 0 14px 18px; padding: 0; color: #5b6578; font-size: .85rem; }
.compte-confirmation { margin-bottom: 14px; padding: 12px 14px; border-radius: 8px; background: #e8f6ec; color: #1d5c2c; }

/* ---- page Mon compte ---- */
.mc-page { max-width: 760px; margin: 0 auto; }
.mc-statut { margin: 0 0 18px; padding: 12px 16px; border-radius: 10px; font-weight: 600; }
.mc-statut-valide { background: #e8f6ec; color: #1d5c2c; border: 1px solid #b6dfc0; }
.mc-statut-attente { background: #fff4e0; color: #8a5200; border: 1px solid #f1d19a; }
.mc-statut-invalide { background: #fdecea; color: #a12622; border: 1px solid #f0b8b4; }
.mc-bloc { background: #fff; border: 1px solid #e1e7f0; border-radius: 12px; padding: 18px 20px; margin-bottom: 16px; }
.mc-bloc h2 { margin: 0 0 12px; font-size: 1.15rem; }
.mc-resume-ligne { display: flex; gap: 10px; flex-wrap: wrap; }
.mc-note { margin: 8px 0; color: #5b6578; font-size: .88rem; }
.mc-retour { margin: 0 0 12px; padding: 9px 12px; border-radius: 8px; background: #fdecea; color: #a12622; }
.mc-retour-ok { background: #e8f6ec; color: #1d5c2c; }
.mc-case { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; cursor: pointer; }
.mc-case input { margin-top: 5px; }
.mc-case small { display: block; color: #5b6578; }
.mc-pied { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
@media (max-width: 560px) { .compte-champ-double { grid-template-columns: 1fr; } }

/* Oeil voir / cacher le mot de passe : un PETIT bouton dans le champ, quelles que soient les regles generiques « button » du Template
   (largeur, marges, fond...) : specificite elevee et dimensions imposees. */
.ese-mdp { position: relative; display: block; }
.ese-mdp > input { padding-right: 44px !important; }
.ese-mdp .ese-mdp-oeil { position: absolute !important; top: 50% !important; right: 6px !important; left: auto !important; bottom: auto !important; transform: translateY(-50%); display: inline-flex !important; align-items: center; justify-content: center; flex: none !important; box-sizing: border-box !important; width: 34px !important; min-width: 0 !important; max-width: 34px !important; height: 34px !important; min-height: 0 !important; margin: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 6px !important; background: transparent !important; box-shadow: none !important; color: #5b6578; line-height: 1; font-size: inherit; cursor: pointer; text-transform: none; }
.ese-mdp .ese-mdp-oeil:hover, .ese-mdp .ese-mdp-oeil:focus-visible { color: #1d2433; background: rgba(0,0,0,.06) !important; }
.ese-mdp .ese-mdp-oeil svg { display: block; width: 20px; height: 20px; flex: none; }
