/* Habillage des pages de connexion (accueil.aspx / accueilEtape2.aspx) */

:root {
    --psqs-nuit: #212B3C;
    --psqs: #3498db;
    --psqs-fonce: #1f6fa8;
    --psqs-clair: #EBF4FC;
    --psqs-texte: #3D4852;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--psqs-texte);
}

.page-connexion {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background-color: #0B3050; /* teinte du bord droit de l'image, visible pendant son chargement */
    background-image: url("../images/Cover%20France.Sport.png"); /* chemin relatif au CSS */
    background-repeat: no-repeat;
    background-size: cover;
    background-position: left center;
}

/* Écran large : carte à droite, le coq reste visible à gauche */
@media (min-width: 1100px) {
    .page-connexion {
        justify-content: flex-end;
        padding-right: clamp(48px, 10vw, 200px);
    }
}

/* Mobile : on garde le coq visible derrière la carte */
@media (max-width: 700px) {
    .page-connexion {
        background-position: 30% center;
    }
}

.carte-connexion {
    width: 100%;
    max-width: 400px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(15, 30, 50, 0.35);
    padding: 40px 32px 28px;
}

.carte-connexion__logo {
    display: block;
    margin: 0 auto 12px;
    max-width: 240px;
    width: 100%;
    height: auto;
}

.carte-connexion__soustitre {
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--psqs-texte);
    margin: 0 0 28px;
}

.champ-groupe {
    margin-bottom: 18px;
}

.champ-groupe label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--psqs-nuit);
    margin-bottom: 6px;
}

.champ-groupe input[type="text"],
.champ-groupe input[type="password"] {
    width: 100%;
    padding: 10px 12px;
    font-size: 14px;
    color: var(--psqs-texte);
    background: #fff;
    border: 1px solid #d7dee6;
    border-radius: 8px;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.champ-groupe input[type="text"]:focus,
.champ-groupe input[type="password"]:focus {
    outline: none;
    border-color: var(--psqs);
    box-shadow: 0 0 0 3px var(--psqs-clair);
}

.message-erreur {
    background: #fdecea;
    border: 1px solid #f5c6cb;
    color: #b42318;
    font-size: 13px;
    padding: 10px 12px;
    border-radius: 8px;
    margin: 0 0 18px;
}

.message-erreur span {
    display: block;
}

.bouton-connexion {
    width: 100%;
    padding: 12px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    background: var(--psqs);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color .15s ease;
}

.bouton-connexion:hover {
    background: var(--psqs-fonce);
}

.captcha-bloc .captcha-image-cadre {
    display: inline-block;
    padding: 6px;
    background: #f8fafc;
    border: 1px solid #d7dee6;
    border-radius: 8px;
    margin-bottom: 6px;
}

.captcha-bloc img#imgCaptcha {
    display: block;
    border-radius: 4px;
    max-width: 100%;
}

.captcha-refresh {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    padding: 0;
    margin: 0 0 10px;
    font-size: 12px;
    color: var(--psqs);
    cursor: pointer;
}

.captcha-refresh:hover {
    color: var(--psqs-fonce);
    text-decoration: underline;
}

.captcha-refresh svg {
    width: 13px;
    height: 13px;
    fill: currentColor;
}

.liens-bas {
    margin-top: 22px;
    text-align: center;
}

.liens-bas a {
    display: block;
    font-size: 12px;
    color: var(--psqs-texte);
    text-decoration: none;
    margin-bottom: 6px;
}

.liens-bas a:hover {
    color: var(--psqs);
    text-decoration: underline;
}

.lien-mobile {
    text-align: center;
    margin-top: 16px;
}

.lien-mobile img {
    width: 40px;
    height: 40px;
    opacity: .7;
    transition: opacity .15s ease;
}

.lien-mobile img:hover {
    opacity: 1;
}

@media (max-width: 420px) {
    .carte-connexion {
        padding: 28px 20px 22px;
        border-radius: 12px;
    }
}
