/* -------------------------------------------------------------------------- */
/*                         Page de connexion A2Presse Pro                     */
/* -------------------------------------------------------------------------- */

html,
body {
    min-height: 100%;
    height: auto;
    overflow-x: hidden;
    overflow-y: auto;
}

.main {
    min-height: 100vh;
    height: auto;
    overflow: visible;
}

.connexion-a2p {
    min-height: 100vh;
    height: auto;
}

.connexion-a2p__entete-mobile {
    background-color: #f8f9fa;
    padding: 0.85rem 1.25rem 0;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.connexion-a2p__logo-mobile img {
    max-width: 110px;
    height: auto;
}

.connexion-a2p__actions-mobile {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    justify-content: flex-end;
}

.connexion-a2p__gauche {
    background-color: #f8f9fa;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 1.5rem 3rem 1.75rem 2.25rem;
    overflow: visible;
}

.connexion-a2p__contact {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 2rem;
    width: 100%;
    margin-top: auto;
    padding-top: 2rem;
    text-align: left;
}

.connexion-a2p__contact-titre {
    margin: 0 0 0.2rem;
    color: #1a1a1a;
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.3;
}

.connexion-a2p__contact-detail {
    margin: 0;
    color: #5c6b7a;
    font-size: 0.875rem;
    line-height: 1.35;
}

.connexion-a2p__contact-detail strong {
    color: #243140;
    font-weight: 700;
}

.connexion-a2p__contact-tel {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    flex: 0 0 auto;
    padding: 0.45rem 1.15rem 0.45rem 0.45rem;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
    color: #0b1f44;
    text-decoration: none;
}

.connexion-a2p__contact-tel:hover {
    color: #0b1f44;
}

.connexion-a2p__contact-pastille {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.7rem;
    height: 2.7rem;
    border-radius: 50%;
    background: #ff2d78;
    color: #fff;
}

.connexion-a2p__contact-icone {
    color: #fff;
    font-size: 1.05rem;
}

.connexion-a2p__contact-numero {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.connexion-a2p__contenu {
    width: 100%;
    max-width: 550px;
}

.connexion-a2p__logo {
    display: inline-block;
    margin-bottom: 5rem;
}

.connexion-a2p__logo img {
    max-width: 145px;
    height: auto;
}

.connexion-a2p__titre {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.25;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.connexion-a2p__description {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #344050;
    margin-bottom: 1.5rem;
}

.connexion-a2p__confiance {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.75rem;
}

.connexion-a2p__avatars {
    display: flex;
    flex-shrink: 0;
}

.connexion-a2p__avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid #fff;
    background-color: #dee2e6;
    margin-left: -10px;
}

.connexion-a2p__avatar:first-child {
    margin-left: 0;
}

.connexion-a2p__avatar--1 {
    background-color: #b8d4e8;
}

.connexion-a2p__avatar--2 {
    background-color: #c8e6c9;
}

.connexion-a2p__avatar--3 {
    background-color: #ffe0b2;
}

.connexion-a2p__confiance-texte {
    font-size: 0.875rem;
    color: #748194;
}

.connexion-a2p__label {
    font-weight: 600;
    font-size: 0.9rem;
    color: #344050;
    margin-bottom: 0.4rem;
}

.connexion-a2p__champ {
    margin-bottom: 1.25rem;
}

.connexion-a2p__input {
    border-radius: 8px;
    border: 1px solid #d8e2ef;
    padding: 0.65rem 1rem;
    font-size: 0.95rem;
}

.connexion-a2p__input:focus {
    border-color: #00558c;
    box-shadow: 0 0 0 0.2rem rgba(0, 85, 140, 0.15);
}

.connexion-a2p__input-wrapper {
    position: relative;
}

.connexion-a2p__oeil {
    position: absolute;
    top: 50%;
    right: 0.85rem;
    transform: translateY(-50%);
    cursor: pointer;
    color: #9da9bb;
    border: none;
    background: none;
    padding: 0;
    line-height: 1;
}

.connexion-a2p__oeil:hover {
    color: #5e6e82;
}

/* Cases OTP (1 chiffre = 1 case) */
.connexion-a2p__otp {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.55rem;
    justify-content: flex-start;
    margin-top: 0.35rem;
}

.connexion-a2p__otp-case {
    width: 3rem;
    height: 3.4rem;
    border: 1px solid #d8e2ef;
    border-radius: 10px;
    background: #fff;
    text-align: center;
    font-size: 1.35rem;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1;
    padding: 0;
    caret-color: #00558c;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.connexion-a2p__otp-case:hover {
    border-color: #b6c7db;
}

.connexion-a2p__otp-case:focus {
    outline: none;
    border-color: #00558c;
    box-shadow: 0 0 0 0.2rem rgba(0, 85, 140, 0.18);
    background-color: #fff;
}

.connexion-a2p__btn-submit {
    background-color: #00558c;
    border-color: #00558c;
    border-radius: 8px;
    padding: 0.6rem 1.25rem;
    font-weight: 600;
    font-size: 0.9rem;
    width: auto;
    margin-top: 0.5rem;
}

.connexion-a2p__btn-submit:hover,
.connexion-a2p__btn-submit:focus {
    background-color: #004470;
    border-color: #004470;
}

.connexion-a2p__lien-mdp {
    display: block;
    margin-top: 0.75rem;
    font-size: 0.875rem;
    color: #00558c;
    text-decoration: none;
}

.connexion-a2p__lien-mdp:hover {
    text-decoration: underline;
    color: #004470;
}

.connexion-a2p__droite {
    background-color: #fff;
    position: relative;
    min-height: 300px;
}

.connexion-a2p__actions {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    display: flex;
    gap: 0.75rem;
    z-index: 2;
}

.connexion-a2p__btn-souscrire {
    border-radius: 8px;
    border: 1px solid #d8e2ef;
    background-color: #fff;
    color: #344050;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 1.25rem;
    text-decoration: none;
    white-space: nowrap;
}

.connexion-a2p__btn-souscrire:hover {
    background-color: #f8f9fa;
    color: #1a1a1a;
    border-color: #b6c1d2;
}

.connexion-a2p__btn-contact {
    border-radius: 8px;
    background-color: #00558c;
    border: 1px solid #00558c;
    color: #fff;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 1.25rem;
    text-decoration: none;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.connexion-a2p__btn-contact:hover {
    background-color: #004470;
    border-color: #004470;
    color: #fff;
}

.connexion-a2p__visuels {
    height: 100%;
    overflow: hidden;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
}

.connexion-a2p__visuels--mur {
    background: #eef2f6;
    overflow: hidden;
}

.connexion-a2p__mur-scene {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

.connexion-a2p__mur {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 185%;
    height: 195%;
    display: flex;
    align-items: stretch;
    gap: 0.55rem;
    transform: translate(-50%, -50%) rotate(28deg);
    transform-origin: center center;
}

.connexion-a2p__mur-colonne {
    flex: 1 1 0;
    min-width: 0;
    height: 100%;
    overflow: hidden;
}

.connexion-a2p__mur-piste {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    width: 100%;
    will-change: transform;
}

.connexion-a2p__mur-colonne--haut .connexion-a2p__mur-piste {
    animation: connexion-mur-scroll-haut 48s linear infinite;
}

.connexion-a2p__mur-colonne--bas .connexion-a2p__mur-piste {
    animation: connexion-mur-scroll-bas 48s linear infinite;
}

.connexion-a2p__mur-colonne--lente .connexion-a2p__mur-piste {
    animation-duration: 62s;
}

.connexion-a2p__mur-colonne--moyenne .connexion-a2p__mur-piste {
    animation-duration: 48s;
}

.connexion-a2p__mur-colonne--rapide .connexion-a2p__mur-piste {
    animation-duration: 36s;
}

.connexion-a2p__mur-carte {
    margin: 0;
    flex: 0 0 auto;
    border-radius: 4px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 6px 18px rgba(15, 40, 70, 0.12);
}

.connexion-a2p__mur-carte img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    background: #d8e2ef;
}

.connexion-a2p__mur-voile {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(248, 249, 250, 0.5) 0%, transparent 12%),
        linear-gradient(180deg, rgba(238, 242, 246, 0.35) 0%, transparent 16%, transparent 84%, rgba(238, 242, 246, 0.3) 100%);
}

@keyframes connexion-mur-scroll-haut {
    from { transform: translate3d(0, 0, 0); }
    to { transform: translate3d(0, -50%, 0); }
}

@keyframes connexion-mur-scroll-bas {
    from { transform: translate3d(0, -50%, 0); }
    to { transform: translate3d(0, 0, 0); }
}

@media (prefers-reduced-motion: reduce) {
    .connexion-a2p__mur-piste {
        animation: none !important;
        transform: none !important;
    }

    .connexion-a2p__mur {
        transform: translate(-50%, -50%) rotate(18deg);
    }
}

@media (min-width: 992px) {
    html,
    body {
        height: 100%;
        overflow: hidden;
    }

    .main {
        height: 100%;
        overflow: hidden;
    }

    .connexion-a2p {
        height: 100%;
        min-height: 100%;
    }

    .connexion-a2p__gauche {
        overflow-y: auto;
        max-height: 100%;
        -webkit-overflow-scrolling: touch;
    }

    .connexion-a2p__droite {
        height: 100%;
        overflow: hidden;
    }
}

@media (max-width: 991.98px) {
    .connexion-a2p {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
    }

    .connexion-a2p__droite {
        order: -1;
        min-height: auto;
        background-color: #f8f9fa;
        padding: 0;
    }

    .connexion-a2p__actions {
        display: none;
    }

    .connexion-a2p__btn-souscrire,
    .connexion-a2p__btn-contact {
        border-radius: 7px;
        font-size: 0.8rem;
        padding: 0.45rem 0.9rem;
        white-space: normal;
    }

    .connexion-a2p__visuels {
        display: none;
    }

    .connexion-a2p__gauche {
        padding: 1.5rem 1.25rem 1.75rem;
        overflow: visible;
    }

    .connexion-a2p__contact {
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 1.25rem;
        margin-top: 2rem;
    }

    .connexion-a2p__contenu {
        max-width: none;
        padding-bottom: 1rem;
    }

    .connexion-a2p__logo {
        display: none;
    }

    .connexion-a2p__titre {
        font-size: 1.45rem;
        line-height: 1.25;
    }

    .connexion-a2p__description {
        font-size: 0.9rem;
        margin-bottom: 1.35rem;
    }

    .connexion-a2p__confiance {
        align-items: center;
        gap: 0.6rem;
        margin-bottom: 1.6rem;
    }
}

@media (max-width: 575.98px) {
    .connexion-a2p__entete-mobile {
        padding: 0.75rem 1rem 0;
    }

    .connexion-a2p__actions-mobile {
        width: 100%;
        justify-content: stretch;
    }

    .connexion-a2p__actions-mobile .connexion-a2p__btn-souscrire,
    .connexion-a2p__actions-mobile .connexion-a2p__btn-contact {
        flex: 1 1 auto;
        text-align: center;
        justify-content: center;
    }

    .connexion-a2p__gauche {
        padding: 1.25rem 1rem 1.5rem;
    }

    .connexion-a2p__contact-numero {
        font-size: 1.05rem;
    }

    .connexion-a2p__titre {
        font-size: 1.3rem;
    }
}

@media (max-height: 800px) {
    .connexion-a2p__logo {
        margin-bottom: 2rem;
    }

    .connexion-a2p__titre {
        margin-bottom: 0.75rem;
    }

    .connexion-a2p__description,
    .connexion-a2p__confiance {
        margin-bottom: 1rem;
    }

    .connexion-a2p__champ {
        margin-bottom: 0.85rem;
    }

    .connexion-a2p__otp {
        gap: 0.4rem;
    }

    .connexion-a2p__otp-case {
        width: 2.55rem;
        height: 3rem;
        font-size: 1.15rem;
        border-radius: 8px;
    }
}
