/* Pages d'accès : inscription, connexion, nouveau mot de passe.
   Une seule feuille au lieu d'un <style> recopié dans chaque gabarit. */
.auth { max-width: 520px; margin: 32px auto; padding: 24px;
        background: #fff; border: 1px solid #e3ebe7; border-radius: 12px; }
.auth.etroit { max-width: 440px; margin-top: 48px; }
.auth h1 { margin: 0 0 6px; font-size: 22px; }
.auth .sous { color: #678575; margin-bottom: 18px; font-size: 14px; }
.auth label { display: block; font-weight: 600; margin: 12px 0 4px; font-size: 14px; }
.auth input, .auth select { width: 100%; padding: 10px 12px; border-radius: 8px;
                            border: 1px solid #c8d3cd; font-size: 15px; box-sizing: border-box; }
.auth .radios { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.auth .radios label { font-weight: 400; border: 1px solid #c8d3cd;
                      padding: 8px 12px; border-radius: 20px; cursor: pointer;
                      display: inline-flex; align-items: center; gap: 6px; margin: 0; }
.auth .radios label:has(input:checked) { border-color: var(--vert); background: #e8f5ee; }
.auth .radios input { width: auto; margin: 0; }
.auth .case { display: flex; align-items: flex-start; gap: 8px; margin: 14px 0 0;
              font-weight: 400; cursor: pointer; }
.auth .case input { width: auto; margin: 3px 0 0; flex: none; }
.auth button[type="submit"] { width: 100%; background: var(--vert); color: #fff; border: none;
               padding: 12px; border-radius: 8px; font-size: 16px; font-weight: 600;
               margin-top: 18px; cursor: pointer; }
.auth button[type="submit"]:hover { background: #0e5f43; }
.auth .erreur { background: #fef0ef; color: #a1261b; padding: 10px 12px;
                border-radius: 8px; margin-bottom: 10px; font-size: 14px; }
/* `background: none` : le pied de page du site (pied.css) porte aussi la classe .pied */
.auth .pied { margin-top: 14px; font-size: 13px; color: #678575; text-align: center;
              background: none; }
.auth .pied a { color: var(--vert); }
.auth .aide { font-size: 12.5px; color: #678575; margin: 4px 0 0; }

/* Choix « professionnel / particulier » en tête de l'inscription */
.auth .profil-choix { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 6px 0 4px; }
.auth .profil-choix label { margin: 0; border: 1.5px solid #c8d3cd; border-radius: 10px;
                            padding: 10px 12px; cursor: pointer; font-weight: 600; }
.auth .profil-choix label:has(input:checked) { border-color: var(--vert); background: #e8f5ee; }
.auth .profil-choix input { width: auto; margin: 0 6px 0 0; }
html[dir="rtl"] .auth .profil-choix input { margin: 0 0 0 6px; }
.auth .profil-choix small { display: block; font-weight: 400; color: #678575; margin-top: 3px; }
.auth .encart { background: #fff8e6; border: 1px solid #f0c674; border-radius: 8px;
                padding: 10px 12px; font-size: 13px; margin-top: 12px; color: #5a4300; }

/* Mot de passe : bouton « afficher / masquer » (static/js/mot-de-passe.js) */
.mdp-champ { position: relative; }
.mdp-champ input { padding-right: 44px !important; }
html[dir="rtl"] .mdp-champ input { padding-right: 12px !important; padding-left: 44px !important; }
.mdp-oeil { position: absolute; top: 50%; right: 6px; transform: translateY(-50%);
            width: 34px; height: 34px; display: flex; align-items: center; justify-content: center;
            border: none; background: none; color: #678575; cursor: pointer; border-radius: 6px; padding: 0; }
html[dir="rtl"] .mdp-oeil { right: auto; left: 6px; }
.mdp-oeil:hover, .mdp-oeil:focus-visible { color: var(--vert); background: #eef5f1; }

/* Ce qui ne concerne qu'un pro ou qu'un particulier (static/js/inscription.js) */
.auth[data-profil="PARTICULIER"] .seul-pro { display: none; }
.auth:not([data-profil="PARTICULIER"]) .seul-particulier { display: none; }

/* Inscription express du flyer (templates/comptes/rejoindre.html) */
.auth fieldset { border: 0; padding: 0; margin: 14px 0 0; min-width: 0; }
.auth textarea { width: 100%; padding: 10px 12px; border-radius: 8px; border: 1px solid #c8d3cd;
                 font: inherit; box-sizing: border-box; }
.auth legend { font-weight: 600; font-size: 14px; padding: 0; margin-bottom: 6px; }
.auth .profil-choix.trois { grid-template-columns: repeat(3, 1fr); }
.auth .profil-choix.trois label { display: flex; align-items: center; }
.auth .aide.centre { text-align: center; margin-top: 10px; }
/* Pot de miel masqué sans décalage hors écran : en arabe (RTL), un left négatif
   ouvrirait un défilement horizontal de toute la largeur du décalage. */
.auth .pot { position: absolute; width: 1px; height: 1px; overflow: hidden;
             clip-path: inset(50%); white-space: nowrap; }
.auth a.bouton { display: block; text-align: center; background: var(--vert); color: #fff;
                 padding: 12px; border-radius: 8px; font-weight: 600; text-decoration: none;
                 margin-top: 18px; }
.auth.merci p { font-size: 15px; line-height: 1.5; }
@media (max-width: 560px) {
  .auth.express { margin: 12px 16px 24px; padding: 18px 16px; }
}
@media (max-width: 400px) {
  .auth .profil-choix.trois { grid-template-columns: 1fr; }
}
/* Après l'envoi : proposition de compte (e-mail + mot de passe, rien à retaper) */
.auth .compte { border-top: 1px solid #e3ebe7; margin-top: 18px; padding-top: 16px; }
.auth .compte h2 { font-size: 17px; margin: 0 0 6px; }
.auth a.plus-tard { display: block; text-align: center; margin-top: 12px; font-size: 14px;
                    color: #678575; }

/* Confirmer mon numéro (code WhatsApp / e-mail, D53) */
.auth input.code { font-size: 1.6rem; letter-spacing: .4em; text-align: center; direction: ltr; }
.auth button.lien { background: none; color: var(--vert); border: 0; padding: 8px 0;
  text-decoration: underline; font-weight: 500; width: 100%; }
.auth bdi { font-weight: 600; }

/* Inscription express : « pourquoi pas lui-même » seulement si quelqu'un remplit pour le patron */
.auth:has(input[name=lien][value=PATRON]:checked) .si-pour-un-autre { display: none; }

/* Votre compte (D72) : trois portes, puis « Mon compte » */
.auth .porte { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: 12px;
  border: 1.5px solid #c8d3cd; text-decoration: none; color: var(--fonce); margin-top: 10px; }
.auth .porte.principale { background: var(--vert); border-color: var(--vert); color: #fff; }
.auth .porte.principale small { color: #e3f3ea; }
.auth .porte small { font-size: 13px; color: #678575; }
.auth .porte.google { flex-direction: row; align-items: center; gap: 10px; justify-content: center; }
.auth .porte-mdp { margin-top: 14px; }
.auth .porte-mdp summary { cursor: pointer; color: var(--vert); font-weight: 600; padding: 8px 0; }
.auth .methode { border-top: 1px solid #eef3f0; padding-top: 12px; margin-top: 12px; }
.auth .methode h2 { font-size: 16px; margin: 0 0 6px; }
.auth .methode p { margin: 4px 0 8px; }
.auth .bouton { display: block; text-align: center; background: var(--vert); color: #fff; border-radius: 8px;
  padding: 11px; font-weight: 600; text-decoration: none; }
.auth .lien { color: var(--vert); }
.auth .encadre { background: #e8f5ee; color: var(--vert); padding: 10px 12px; border-radius: 8px; }
.auth .liens-compte { margin-top: 16px; text-align: center; }
.auth .deconnexion { text-align: center; }
.auth .deconnexion button.lien { width: auto; background: none; border: 0; text-decoration: underline;
  cursor: pointer; font-size: 14px; margin-top: 4px; padding: 6px; }
.auth .liens-compte a { color: var(--vert); font-weight: 600; }
