/*
Fichier : css_connexion.css
Chemin  : D:\speedclicV2\www\assets\css\css_connexion.css
Rôle    : CONNEXION ET RÉINITIALISATION DU MOT DE PASSE — la modale de connexion de
          la page publique, son panneau « mot de passe oublié », et la page
          reinitialiser.php où aboutit le lien du courriel.

          Fichier dédié plutôt qu'un ajout à speedclic_layout.css : ce n'est pas de la
          mise en page, c'est un parcours (règles 37 et 39). speedclic_layout.css garde
          la boîte modale elle-même (.sc-modal-*), commune à tout le site ; ce qui vit
          À L'INTÉRIEUR pour la connexion est ici.

          LE MESSAGE DE REFUS EST SOUS LES BOUTONS. Il était au-dessus des champs : une
          réponse ne précède pas la question. Elle découle de l'action, elle se place
          donc après le geste qui l'a provoquée — et elle ne s'arrête pas au constat,
          elle propose la sortie.

Date : 31/07/2026
*/

/* ---------------------------------------------- Modale de connexion : bas de la boîte */

/* Tout ce qui suit les boutons : le refus, puis la porte de secours.

   RESPIRATION ET AXE (31/07/2026, Ramon : « on dirait une maison mal construite »).
   Les trois blocs se touchaient et s'alignaient à gauche pendant que les boutons, eux,
   occupaient toute la largeur : rien ne se répondait. Ils sont désormais CENTRÉS sur le
   même axe, et séparés par une vraie ligne d'espace. Un message n'est pas un paragraphe
   de plus dans une colonne : c'est une réponse, elle se pose seule et au milieu. */
.sc-login-apres {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #e3e7ec;
    text-align: center;
}

.sc-login-error-modal {
    padding: 9px 12px;
    background: #ffecec;
    border: 1px solid #d00;
    color: #900;
    font-size: 13px;
    border-radius: 4px;
    text-align: center;
    /* Une ligne pleine sous le refus, avant qu'on propose autre chose. */
    margin: 0 0 18px;
}

.sc-login-oubli {
    font-size: 13px;
    line-height: 1.5;
    color: #55616e;
    text-align: center;
    margin: 0;
}

/* Le lien passe SOUS la question plutôt qu'à sa suite : deux temps, deux lignes — et
   ils ne se touchent pas. La place ne manque pas dans cette modale ; une question et sa
   réponse collées l'une à l'autre se lisent comme un seul bloc illisible. */
.sc-login-oubli .sc-login-lien {
    display: block;
    margin: 14px auto 0;
    line-height: 1.6;
}

.sc-login-lien {
    background: none;
    border: 0;
    padding: 0;
    font: inherit;
    color: #0f7fb0;
    text-decoration: underline;
    cursor: pointer;
}

.sc-login-lien:hover {
    color: #0a5d82;
}

/* ------------------------------------------------------- Panneau « mot de passe oublié » */

.sc-reset-bloc {
    margin-top: 20px;
    padding: 12px;
    background: #f4f7fa;
    border: 1px solid #dbe3ea;
    border-radius: 4px;
    text-align: center;
}

.sc-reset-bloc[hidden] {
    display: none;
}

.sc-reset-intro {
    font-size: 13px;
    color: #33404f;
    text-align: center;
    margin: 0 0 12px;
}

.sc-reset-ligne {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.sc-reset-ligne input {
    flex: 1 1 200px;
    padding: 7px 9px;
    font-size: 13px;
    border: 1px solid #cfd6de;
    border-radius: 4px;
}

.sc-reset-msg {
    margin-top: 14px;
    font-size: 13px;
    padding: 8px 10px;
    border-radius: 4px;
    text-align: center;
}

.sc-reset-msg[hidden] {
    display: none;
}

.sc-reset-msg.ok {
    background: #eefaf0;
    border: 1px solid #9ad3a8;
    color: #215e33;
}

.sc-reset-msg.ko {
    background: #fdeeee;
    border: 1px solid #e0a3a3;
    color: #8a2b2b;
}

/* L'invitation à s'inscrire est TOUJOURS là, connu ou pas : c'est elle qui remplace le
   « adresse inconnue » qu'on ne dira jamais. */
.sc-reset-inscription {
    margin-top: 16px;
    font-size: 13px;
    color: #55616e;
    text-align: center;
}

/* ------------------------------------------------------------- Page reinitialiser.php */

.cnx-page {
    margin: 0;
    padding: 0;
    background: #eef2f6;
    font-family: system-ui, "Segoe UI", Arial, sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cnx-carte {
    width: min(28rem, calc(100vw - 2rem));
    background: #fff;
    border: 1px solid #dbe3ea;
    border-radius: 8px;
    padding: 1.6rem 1.5rem;
    box-shadow: 0 2px 14px rgba(0, 0, 0, .08);
}

.cnx-carte-titre {
    margin: 0 0 1rem;
    font-size: 1.15rem;
    color: #1a2535;
}

.cnx-form label {
    display: block;
    margin: 0.8rem 0 0.25rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: #33404f;
}

.cnx-input {
    width: 100%;
    box-sizing: border-box;
    padding: 0.5rem 0.6rem;
    font-size: 0.9rem;
    border: 1px solid #cfd6de;
    border-radius: 4px;
}

.cnx-aide {
    margin: 0.6rem 0 0;
    font-size: 0.78rem;
    color: #6b7a8c;
}

.cnx-actions {
    display: flex;
    gap: 0.6rem;
    margin-top: 1.1rem;
}

.cnx-btn {
    display: inline-block;
    padding: 0.5rem 0.9rem;
    border: 0;
    border-radius: 4px;
    background: #5a6b7b;
    color: #fff;
    font-size: 0.88rem;
    text-decoration: none;
    cursor: pointer;
}

.cnx-btn-primaire {
    background: #13a8d8;
}

.cnx-btn-gris {
    background: #8794a1;
}

.cnx-erreur {
    padding: 0.6rem 0.7rem;
    background: #fdeeee;
    border: 1px solid #e0a3a3;
    color: #8a2b2b;
    border-radius: 4px;
    font-size: 0.86rem;
    margin-bottom: 1rem;
}

.cnx-ok {
    padding: 0.6rem 0.7rem;
    background: #eefaf0;
    border: 1px solid #9ad3a8;
    color: #215e33;
    border-radius: 4px;
    font-size: 0.86rem;
    margin-bottom: 1rem;
}

/* === FIN DU FICHIER : D:\speedclicV2\www\assets\css\css_connexion.css === */
