/* ══════════════════════════════════════════════════════
   auth_inscription.css - Écran d'inscription (register.html),
   maquette de Joe du 2026-10-19.

   En-tête logo + « Déjà inscrit ? », grand titre, ligne d'essai
   verte, trois sections titrées (association, accès, méthode
   comptable) séparées par un filet, choix de méthode en cartes,
   code promo repliable, œil sur les mots de passe.

   Chargée APRÈS auth_mire.css, bornée à `.auth-inscription`.
   En-tête, titre, champs et œil valent aussi pour `.auth-connexion`
   (login.html, demande de Joe du 2026-10-20 : la partie haute de la
   connexion reprend le style de l'inscription).
   ══════════════════════════════════════════════════════ */

.auth-inscription { max-width: 560px; padding: 28px 32px 30px; border-radius: 16px; }

/* En-tête : marque à gauche, lien de connexion à droite. */
:is(.auth-inscription, .auth-connexion) .ins-entete {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}
:is(.auth-inscription, .auth-connexion) .ins-marque {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 19px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #4f46e5;
}
:is(.auth-inscription, .auth-connexion) .ins-marque img { width: 32px; height: 32px; }
:is(.auth-inscription, .auth-connexion) .ins-deja { font-size: 12.5px; color: #64748b; white-space: nowrap; }
:is(.auth-inscription, .auth-connexion) .ins-deja a { font-weight: 600; color: #4338ca; text-decoration: underline; }

/* Titre et ligne d'essai. */
:is(.auth-inscription, .auth-connexion) .ins-titre {
    margin: 0 0 8px;
    font-size: 26px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #1e1b4b;
}
.auth-inscription .ins-essai {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 6px;
    margin: 0 0 4px;
    font-size: 13px;
    color: #15803d;
}
.auth-inscription .ins-essai strong { font-weight: 700; }
.auth-inscription .ins-essai-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #dcfce7;
    color: #16a34a;
}
.auth-inscription .ins-essai-ico svg { width: 14px; height: 14px; }

/* Sections : filet au-dessus, titre 16 px à l'icône indigo. */
.auth-inscription .ins-section {
    margin: 0;
    padding: 12px 0 2px;
    border: 0;
    border-top: 1px solid #e2e8f0;
    min-width: 0;
}
.auth-inscription .ins-section-titre {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 10px;
    padding: 0;
    font-size: 16px;
    font-weight: 700;
    color: #1e1b4b;
}
.auth-inscription .ins-section-titre svg { width: 20px; height: 20px; color: #4f46e5; display: block; }

/* Champs : 40 px, rayon 8 (les champs d'une page d'accueil restent confortables). */
:is(.auth-inscription, .auth-connexion) .form-group { margin-bottom: 12px; }
:is(.auth-inscription, .auth-connexion) .form-group label { font-size: 13px; font-weight: 600; color: #334155; margin-bottom: 5px; }
:is(.auth-inscription, .auth-connexion) .form-group input:not([type="checkbox"]):not([type="radio"]) {
    height: 40px;
    padding: 0 12px;
    border: var(--input-border, 1px solid #8a94a6);
    border-radius: 8px;
    font-size: 13px;
}
/* Même :not() que la règle de repos : sans eux, elle gagne en spécificité et la bordure ne change pas au focus (audit accessibilité 2026-10-29, B1). */
:is(.auth-inscription, .auth-connexion) .form-group input:not([type="checkbox"]):not([type="radio"]):focus { border-color: #6366f1; box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15); outline: none; }

/* Œil des mots de passe. */
:is(.auth-inscription, .auth-connexion) .ins-mdp { position: relative; display: block; }
:is(.auth-inscription, .auth-connexion) .ins-mdp input { padding-right: 42px !important; width: 100%; }
:is(.auth-inscription, .auth-connexion) .auth-oeil {
    position: absolute;
    top: 50%;
    right: 6px;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #64748b;
    cursor: pointer;
}
:is(.auth-inscription, .auth-connexion) .auth-oeil svg { width: 18px; height: 18px; pointer-events: none; }
:is(.auth-inscription, .auth-connexion) .auth-oeil:hover,
:is(.auth-inscription, .auth-connexion) .auth-oeil[aria-pressed="true"] { color: #4f46e5; background: #eef2ff; }
:is(.auth-inscription, .auth-connexion) .auth-oeil:focus-visible { outline: 2px solid #6366f1; outline-offset: 1px; }

/* Méthode comptable : cartes, la cochée en lavande bordée d'indigo. */
.auth-inscription .auth-methode legend { float: left; width: 100%; font-size: 16px; font-weight: 700; }
.auth-inscription .auth-methode legend + * { clear: both; }
.auth-inscription .auth-methode .auth-methode-choix {
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 12.5px;
}
.auth-inscription .auth-methode .auth-methode-choix strong { font-size: 14px; color: #1e1b4b; margin-bottom: 3px; }
.auth-inscription .auth-methode .auth-methode-choix input { width: 18px; height: 18px; accent-color: #4f46e5; }
.auth-inscription .auth-methode .auth-methode-choix:has(input:checked) {
    border-color: #a5b4fc;
    background: #f5f3ff;
    box-shadow: 0 0 0 1px #a5b4fc;
}
.auth-inscription .auth-methode-note { margin-top: 8px; }
/* Type d'association (2026-11-15) : deux cartes et une case droit local ; une carte par ligne au téléphone. Espacements resserrés pour que la carte tienne en 1536 x 864 (Joe). */
.auth-inscription .auth-regime .ins-regime-grille { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 560px) {
    .auth-inscription .auth-regime .ins-regime-grille { grid-template-columns: 1fr; }
}

/* Code promo replié. */
.auth-inscription .ins-promo { margin: 8px 0 12px; padding: 0; border-top: 1px solid #e2e8f0; border-bottom: 1px solid #e2e8f0; }
.auth-inscription .ins-promo summary {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    font-size: 13px;
    font-weight: 600;
    color: #4338ca;
    cursor: pointer;
    list-style: none;
}
.auth-inscription .ins-promo summary::-webkit-details-marker { display: none; }
.auth-inscription .ins-promo summary svg { width: 16px; height: 16px; display: block; }
.auth-inscription .ins-promo-chevron { margin-left: auto; color: #64748b; transition: transform .15s; }
.auth-inscription .ins-promo[open] .ins-promo-chevron { transform: rotate(180deg); }
.auth-inscription .ins-promo .form-group { margin: 0 0 12px; }

/* Acceptation et bouton. */
.auth-inscription .auth-consent-check { margin: 4px 0 16px; font-size: 12.5px; color: #475569; }
.auth-inscription .auth-consent-check input { width: 18px; height: 18px; accent-color: #4f46e5; }
.auth-inscription .btn-full { min-height: 46px; border-radius: 10px; font-size: 15px; font-weight: 600; }

@media (max-width: 560px) {
    .auth-inscription { padding: 22px 18px 24px; border-radius: 0; }
    :is(.auth-inscription, .auth-connexion) .ins-entete { flex-wrap: wrap; }
    :is(.auth-inscription, .auth-connexion) .ins-titre { font-size: 22px; }
    :is(.auth-inscription, .auth-connexion) .form-group input:not([type="checkbox"]):not([type="radio"]) { height: 44px; }
    :is(.auth-inscription, .auth-connexion) .auth-oeil { width: 40px; height: 40px; right: 2px; }
}

/* ── Tenir dans la hauteur d'un écran d'ordinateur (retour de Joe du 2026-10-19) ──
   Sans élargir la carte : champs aux 30 px standard de l'application, marges
   resserrées, bouton principal à 42 px comme la connexion. Au-dessus de 560 px
   seulement : le téléphone garde ses cibles de 44 px. */
@media (min-width: 561px) {
    .auth-inscription { padding: 20px 28px 22px; margin: 12px 0; }
    :is(.auth-inscription, .auth-connexion) .ins-entete { margin-bottom: 10px; }
    :is(.auth-inscription, .auth-connexion) .ins-marque { font-size: 17px; }
    :is(.auth-inscription, .auth-connexion) .ins-marque img { width: 28px; height: 28px; }
    .auth-inscription .ins-titre { margin-bottom: 4px; font-size: 24px; }
    .auth-inscription .ins-essai { margin-bottom: 2px; }
    .auth-inscription .ins-section { padding: 10px 0 0; }
    .auth-inscription .ins-section-titre { margin-bottom: 8px; font-size: 15px; }
    .auth-inscription .ins-section-titre svg { width: 18px; height: 18px; }
    :is(.auth-inscription, .auth-connexion) .form-group { margin-bottom: 8px; }
    :is(.auth-inscription, .auth-connexion) .form-group label { margin-bottom: 3px; }
    :is(.auth-inscription, .auth-connexion) .form-group input:not([type="checkbox"]):not([type="radio"]) { height: 30px; padding: 0 10px; }
    :is(.auth-inscription, .auth-connexion) .auth-oeil { width: 26px; height: 26px; right: 3px; }
    :is(.auth-inscription, .auth-connexion) .auth-oeil svg { width: 16px; height: 16px; }
    :is(.auth-inscription, .auth-connexion) .ins-mdp input { padding-right: 34px !important; }
    .auth-inscription .auth-methode .auth-methode-choix { padding: 9px 12px; font-size: 12px; line-height: 1.4; }
    .auth-inscription .auth-methode .auth-methode-choix strong { font-size: 13.5px; margin-bottom: 1px; }
    .auth-inscription .auth-methode-note { margin-top: 4px; }
    .auth-inscription .ins-promo { margin: 4px 0 8px; }
    .auth-inscription .ins-promo summary { min-height: 34px; }
    .auth-inscription .auth-consent-check { margin: 2px 0 12px; font-size: 12px; }
    .auth-inscription .btn-full { min-height: 42px; }
}

/* ── Connexion (login.html) : partie haute alignée sur l'inscription ──
   Demande de Joe du 2026-10-20. Marque à gauche, titre, sous-titre fermé
   par un filet, champs de 40 px. La carte reste plus étroite que
   l'inscription. Les boutons Google, Microsoft et clé d'accès sont dans
   auth_login.css. Le bouton principal fait 42 px, 40 sur ordinateur (bloc
   ci-dessous). */
.auth-connexion { max-width: 440px; padding: 26px 32px 28px; border-radius: 16px; }
.auth-connexion .ins-entete { margin-bottom: 16px; }
.auth-connexion .ins-titre { margin-bottom: 4px; font-size: 24px; }
.auth-connexion .ins-sous {
    margin: 0 0 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid #e2e8f0;
    font-size: 13px;
    color: #64748b;
}
.auth-connexion .btn-full { min-height: 42px; border-radius: 10px; font-size: 15px; font-weight: 600; }
@media (max-width: 560px) {
    .auth-connexion { padding: 22px 18px 24px; }
}
/* Compact sur ordinateur (Joe, 2026-10-20 : « éviter les espaces vides pour
   rien ») : champs aux 30 px de l'app via le bloc ci-dessus, marges serrées.
   Depuis le 2026-11-06 (Joe), au-dessus de 900 px, les champs de la connexion
   et ses quatre boutons font 40 px : voir le dernier bloc. */
@media (min-width: 561px) {
    .auth-connexion { padding: 20px 28px 22px; }
    .auth-connexion .ins-titre { margin-bottom: 2px; font-size: 22px; }
    .auth-connexion .ins-sous { margin-bottom: 12px; padding-bottom: 10px; }
    .auth-connexion .form-group:last-of-type { margin-bottom: 12px; }
    .auth-connexion .auth-divider { margin: 12px 0 2px; }
    .auth-connexion .social-login { gap: 8px; }
    .auth-connexion .auth-footer { margin-top: 12px; }
}
@media (min-width: 901px) {
    .auth-connexion .form-group input:not([type="checkbox"]):not([type="radio"]) { height: 40px; font-size: 15px; }
    .auth-connexion .btn-full { min-height: 40px; padding: 0 16px; border-radius: 8px; }
}
/* Case Alsace-Moselle sous les deux cartes du type d'association (2026-11-15). */
.auth-inscription .auth-regime .ins-droit-local { display: flex; align-items: center; gap: 8px; margin: 10px 0 2px; font-size: 13px; color: #334155; cursor: pointer; }
