/* =========================================================
   ESETEC — CONNEXION & INSCRIPTION VENDEUR
   Chargé après espace_vendeur.css (et après les styles de la page).
   Ne touche qu'aux écrans .auth-section : le tableau de bord vendeur n'est pas concerné.
========================================================= */

/* Les anciens styles fixaient body à 100 % de hauteur : la page défilait à l'intérieur du body
   et le bas du formulaire était coupé sur certains téléphones */
html body{
    height: auto;
    min-height: 100vh;
}

.auth-section{
    --a-orange: #ff5e00;
    --a-orange-fonce: #e65400;
    --a-encre: #1c1c1e;
    --a-gris: #6b6b72;
    --a-bord: #dcdce0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    width: 100%;
    max-width: none;
    min-height: 100vh;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
    font-family: "Poppins", "Segoe UI", Arial, sans-serif;
    background: #f3f3f5;
}

/* ---------- Flèche retour ---------- */
.retour-arriere{
    position: fixed;
    top: 20px;
    left: 22px;
    z-index: 100;
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(28, 10, 4, 0.78);
    color: #fff;
    font-size: 26px;
    line-height: 1;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(0,0,0,0.3);
    transition: background 0.2s ease;
}
.retour-arriere:hover{ background: rgba(28, 10, 4, 0.95); }

/* ---------- Panneau visuel (gauche) ---------- */
.auth-section .auth-visuel{
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 70px 8% 50px;
    color: #fff;
    text-align: left;
    background: url("entete2.webp") center / cover no-repeat;
    overflow: hidden;
}
.auth-section .auth-visuel::before{
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        rgba(214, 84, 12, 0.93) 0%,
        rgba(150, 46, 6, 0.9) 45%,
        rgba(42, 12, 4, 0.92) 100%);
}
.auth-section .auth-visuel-contenu{
    position: relative;
    z-index: 1;
    display: block;
}

.auth-section .auth-logo-badge{
    width: 168px;
    height: 168px;
    margin: 0 0 22px;
    padding: 8px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}
.auth-section .auth-logo-badge img{
    object-fit: contain;
    border-radius: 50%;
}

.auth-section .auth-titre-marque{
    margin: 0 0 18px;
    font-size: clamp(42px, 5vw, 68px);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -0.01em;
    color: #fff;
    text-shadow: 0 3px 14px rgba(0,0,0,0.3);
}
.auth-section .auth-titre-marque span{ color: #ffa31a; }

.auth-section .auth-slogan{
    margin: 0 0 22px;
    font-size: clamp(18px, 1.7vw, 24px);
    font-style: italic;
    color: #fff;
}

.auth-section .auth-desc{
    max-width: 520px;
    margin: 0 0 30px;
    font-size: clamp(15px, 1.3vw, 19px);
    line-height: 1.75;
    color: rgba(255,255,255,0.92);
}

.auth-atouts{
    display: flex;
    flex-wrap: wrap;
    gap: 16px 28px;
}
.auth-atout{
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
}
.auth-atout i{
    flex: none;
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border: 2px solid #ff7a26;
    border-radius: 50%;
    background: rgba(255, 94, 0, 0.45);
}
.auth-atout svg{
    width: 28px;
    height: 28px;
}

/* Icônes en trait */
.auth-section svg:not(.g-logo){
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ---------- Zone formulaire (droite) ---------- */
.auth-panneau{
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 22px 34px;
    min-width: 0;
}

#connexion.auth-carte,
#inscription.auth-carte{
    width: 100%;
    max-width: 760px;
    margin: 0;
    padding: 24px 40px 28px;
    display: block;
    text-align: center;
    background: #fff;
    border: none;
    border-left: 6px solid var(--a-orange);
    border-radius: 22px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.08);
    transition: none;
}
#connexion.auth-carte:hover,
#inscription.auth-carte:hover{
    transform: none;
    box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}

/* Étapes d'inscription */
.auth-section .etapes{
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0;
    margin: 0 0 14px;
    flex-wrap: nowrap;
}
.auth-section .etape{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 92px;
    font-size: 15px;
    font-weight: 600;
    color: #6b6b72;
    white-space: nowrap;
}
.auth-section .etape .num{
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #c4c4c9;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}
.auth-section .etape.actif{ color: var(--a-orange); }
.auth-section .etape.actif .num{
    background: var(--a-orange);
    box-shadow: 0 0 0 4px rgba(255, 94, 0, 0.18);
}
.auth-section .etape.fait{ color: var(--a-orange); }
.auth-section .etape.fait .num{ background: var(--a-orange); }
.auth-section .separateur-etape{
    flex: 1 1 auto;
    width: auto;
    min-width: 20px;
    height: 2px;
    margin: 14px -20px 0;
    background: #dcdce0;
    align-self: flex-start;
}
.auth-section .separateur-etape.fait{ background: var(--a-orange); }

/* Titre */
.auth-section .auth-icone-badge{
    display: inline-grid;
    place-items: center;
    width: 46px;
    height: 46px;
    margin: 0 auto 4px;
    border-radius: 50%;
    background: var(--a-orange);
    color: #fff;
}
.auth-section .auth-icone-badge svg{ width: 24px; height: 24px; }

:is(#connexion, #inscription) .auth-titre{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin: 0 0 8px;
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    text-align: center;
    color: var(--a-orange);
}
:is(#connexion, #inscription) .auth-titre span{ color: var(--a-encre); }
:is(#connexion, #inscription) .auth-titre::before,
:is(#connexion, #inscription) .auth-titre::after{
    content: "";
    display: block;
    flex: 0 0 70px;
    width: 70px;
    height: 2px;
    margin: 0;
    background: var(--a-orange);
    border-radius: 2px;
}
:is(#connexion, #inscription) .auth-titre::before{ margin-right: 26px; }
:is(#connexion, #inscription) .auth-titre::after{ margin-left: 26px; }

.auth-section .auth-souscription{
    max-width: 440px;
    margin: 0 auto 6px;
    font-size: 14.5px;
    line-height: 1.5;
    color: #555;
}

/* Champs */
.auth-section form{
    display: block;
    text-align: left;
}
.champ-ligne{
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 14px;
    margin-top: 10px;
}
.champ-ico{
    display: flex;
    justify-content: center;
    padding-top: 1px;
    color: #333;
}
.champ-ico svg{ width: 21px; height: 21px; }
.champ-corps{ min-width: 0; }
.auth-section .champ-corps label{
    display: block;
    margin: 0 0 7px;
    font-size: 14.5px;
    font-weight: 600;
    color: var(--a-encre);
}
.champ-corps label b{ color: #e11d1d; }

.auth-section .champ-corps input,
.auth-section .champ-corps select{
    width: 100%;
    height: 44px;
    padding: 0 14px;
    font-family: inherit;
    font-size: 15px;
    color: var(--a-encre);
    background: #fff;
    border: 1px solid var(--a-bord);
    border-radius: 8px;
    box-shadow: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.auth-section .champ-corps input::placeholder{ color: #9a9aa2; }
.auth-section .champ-corps input:focus,
.auth-section .champ-corps select:focus{
    outline: none;
    border-color: var(--a-orange);
    box-shadow: 0 0 0 3px rgba(255, 94, 0, 0.14);
}
.auth-section .champ-corps input[readonly]{
    background: #f4f4f6;
    color: #555;
}

.champ-mdp{ position: relative; }
.auth-section .champ-mdp input{ padding-right: 50px; }
.auth-section .voir-mdp{
    position: absolute;
    top: 50%;
    right: 6px;
    width: 38px;
    height: 38px;
    margin: 0;
    padding: 0;
    display: grid;
    place-items: center;
    transform: translateY(-50%);
    color: #333;
    background: transparent;
    border: none;
    border-radius: 8px;
    box-shadow: none;
    cursor: pointer;
}
.auth-section .voir-mdp:hover{
    background: #f2f2f4;
    transform: translateY(-50%);
    box-shadow: none;
}
.auth-section .voir-mdp.actif{ color: var(--a-orange); }
.voir-mdp svg{ width: 20px; height: 20px; }

.auth-section .tel-groupe{
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px;
}
.auth-section .tel-groupe .tel-indicatif{ flex: none; }

.lien-oublie-ligne{
    margin: 8px 0 0;
    text-align: right;
}
.auth-section .lien-oublie{
    font-size: 13.5px;
    font-weight: 600;
    color: var(--a-orange);
    text-decoration: none;
}
.auth-section .lien-oublie:hover{ text-decoration: underline; }

/* Boutons */
.auth-section .auth-btn{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 46px;
    margin: 0;
    padding: 10px 18px;
    font-family: inherit;
    font-size: 15.5px;
    font-weight: 600;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
    color: #fff;
    border: none;
    border-radius: 8px;
    box-shadow: none;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}
.auth-section .auth-btn:hover{ transform: none; box-shadow: none; }
.auth-section .auth-btn:disabled{ opacity: 0.65; cursor: wait; }
.auth-section .auth-btn svg{ width: 20px; height: 20px; flex: none; }
.auth-section .auth-btn small{ font-weight: 400; opacity: 0.85; }

.auth-section .auth-btn-principal{
    margin-top: 18px;
    background: var(--a-orange);
}
.auth-section .auth-btn-principal:hover{ background: var(--a-orange-fonce); }

.auth-section .auth-btn-google{
    color: var(--a-encre);
    background: #fff;
    border: 1.5px solid #cfcfd5;
    font-size: 16.5px;
}
.auth-section .auth-btn-google:hover{
    background: #fafafa;
    border-color: #b5b5bd;
}
.g-logo{ width: 24px; height: 24px; flex: none; }

.auth-section .auth-btn-gris{ background: #eeeef0; color: #444; }
.auth-section .auth-btn-gris:hover{ background: #e2e2e6; }
.auth-section .auth-btn-wa{ background: #16a34a; }
.auth-section .auth-btn-wa:hover{ background: #15803d; }

.auth-ou{
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 12px 0;
    font-size: 14px;
    color: #777;
}
.auth-ou::before,
.auth-ou::after{
    content: "";
    flex: 1;
    height: 1px;
    background: #dcdce0;
}

.auth-section .auth-lien-bas,
.auth-section #lien_inscription{
    margin: 16px 0 0;
    font-size: 14.5px;
    text-align: center;
    color: #555;
}
.auth-section .auth-lien-bas a,
.auth-section #lien_inscription a{
    color: var(--a-orange);
    font-weight: 600;
    text-decoration: none;
}
.auth-section .auth-lien-bas a:hover,
.auth-section #lien_inscription a:hover{ text-decoration: underline; }

/* Bascule Connexion / Inscription */
.auth-bascule{
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-top: 18px;
    background: #f1f1f3;
    border: 1px solid #e2e2e6;
    border-radius: 10px;
    overflow: hidden;
}
.auth-bascule a{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 48px;
    font-size: 15.5px;
    font-weight: 600;
    color: var(--a-encre);
    text-decoration: none;
    transition: background 0.2s ease;
}
.auth-bascule a:hover{ background: #e8e8eb; }
.auth-bascule a.actif,
.auth-bascule a.actif:hover{
    color: #fff;
    background: var(--a-orange);
}
.auth-bascule a svg{ width: 20px; height: 20px; }
.auth-bascule-fleches{
    position: absolute;
    top: 50%;
    left: 50%;
    width: 42px;
    height: 34px;
    display: grid;
    place-items: center;
    transform: translate(-50%, -50%);
    color: var(--a-orange);
    background: #fff;
    border: 1.5px solid var(--a-orange);
    border-radius: 18px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 2px;
    pointer-events: none;
}

/* Messages */
.auth-msg{
    margin: 12px 0 0;
    padding: 11px 14px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    text-align: left;
    border-left: 4px solid;
    border-radius: 8px;
}
.auth-msg.err{ color: #b71c1c; background: #ffeceb; border-color: #e11d1d; }
.auth-msg.attente{ color: #7a5300; background: #fff7df; border-color: #f2a516; }
.auth-msg.ok{ color: #15803d; background: #dcfce7; border-color: #15803d; }

.auth-aide{
    margin: 14px 0 0;
    font-size: 14px;
    line-height: 1.6;
    text-align: left;
    color: #555;
}

/* Étapes 2 et 3 */
.auth-encart{
    margin: 14px 0 0;
    padding: 14px 16px;
    font-size: 14px;
    line-height: 1.65;
    text-align: left;
    border-left: 4px solid;
    border-radius: 8px;
}
.auth-encart.attente{ color: #6b5000; background: #fff8e1; border-color: #f9a825; }
.auth-encart.ok{ color: #15803d; background: #dcfce7; border-color: #15803d; }
.auth-encart s{ opacity: 0.6; }
.prix-promo{ color: #cc0000; }
.badge-promo{
    display: inline-block;
    margin-left: 6px;
    padding: 1px 8px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    background: #cc0000;
    border-radius: 10px;
}
.auth-section .rangee-boutons{
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}
.auth-section .rangee-boutons .auth-btn{
    flex: 1 1 160px;
    margin-top: 0;
}

/* =========================================================
   TABLETTES ET TÉLÉPHONES
========================================================= */
@media (max-width: 900px){
    .auth-section{
        grid-template-columns: 1fr;
        min-height: 0;
    }
    .auth-section .auth-visuel{
        position: relative;
        height: auto;
        padding: 84px 24px 56px;
        justify-content: center;
        text-align: center;
    }
    .auth-section .auth-visuel-contenu{
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .auth-section .auth-logo-badge{
        width: 110px;
        height: 110px;
        margin-bottom: 16px;
    }
    .auth-section .auth-desc{ margin-bottom: 22px; }
    .auth-atouts{ justify-content: center; }
    .auth-panneau{
        padding: 0 14px 24px;
        margin-top: -30px;
        position: relative;
        z-index: 2;
    }
    #connexion.auth-carte,
    #inscription.auth-carte{
        padding: 22px 20px 24px;
        border-left-width: 5px;
    }
    .retour-arriere{
        top: 14px;
        left: 14px;
        width: 46px;
        height: 46px;
        font-size: 22px;
    }
}

/* =========================================================
   TÉLÉPHONES : mise en page dédiée (pas une version PC rétrécie)
========================================================= */
@media (max-width: 600px){
    .auth-section{ background: #fff; }

    /* En-tête compact : logo + nom côte à côte */
    .retour-arriere{
        position: absolute;
        top: 12px;
        left: 12px;
        width: 40px;
        height: 40px;
        font-size: 20px;
        box-shadow: none;
        background: rgba(0,0,0,0.28);
    }
    .auth-section .auth-visuel{
        padding: 62px 18px 44px;
        text-align: left;
        justify-content: flex-start;
    }
    .auth-section .auth-visuel-contenu{
        display: grid;
        grid-template-columns: 64px minmax(0, 1fr);
        grid-template-areas: "logo titre" "logo slogan";
        align-items: center;
        column-gap: 14px;
        width: 100%;
    }
    .auth-section .auth-logo-badge{
        grid-area: logo;
        width: 64px;
        height: 64px;
        margin: 0;
        padding: 4px;
        box-shadow: 0 4px 14px rgba(0,0,0,0.3);
    }
    .auth-section .auth-titre-marque{
        grid-area: titre;
        margin: 0;
        font-size: 24px;
        line-height: 1.1;
        align-self: end;
    }
    .auth-section .auth-titre-marque br{ display: none; }
    .auth-section .auth-titre-marque span{ margin-left: 6px; }
    .auth-section .auth-slogan{
        grid-area: slogan;
        margin: 3px 0 0;
        font-size: 13.5px;
        align-self: start;
    }
    .auth-section .auth-desc,
    .auth-atouts{ display: none; }

    /* Carte pleine largeur qui recouvre le bas de l'en-tête */
    .auth-panneau{
        display: block;
        margin-top: -24px;
        padding: 0;
    }
    #connexion.auth-carte,
    #inscription.auth-carte{
        max-width: none;
        padding: 22px 18px 30px;
        border-left: none;
        border-radius: 24px 24px 0 0;
        box-shadow: 0 -6px 20px rgba(0,0,0,0.12);
        min-height: calc(100vh - 120px);
    }

    /* Titre */
    .auth-section .auth-icone-badge{ width: 40px; height: 40px; }
    .auth-section .auth-icone-badge svg{ width: 21px; height: 21px; }
    :is(#connexion, #inscription) .auth-titre{ font-size: 24px; }
    :is(#connexion, #inscription) .auth-titre::before,
    :is(#connexion, #inscription) .auth-titre::after{
        flex-basis: 28px;
        width: 28px;
    }
    :is(#connexion, #inscription) .auth-titre::before{ margin-right: 12px; }
    :is(#connexion, #inscription) .auth-titre::after{ margin-left: 12px; }
    .auth-section .auth-souscription{ font-size: 14px; }

    /* Étapes */
    .auth-section .etapes{ margin-bottom: 16px; }
    .auth-section .etape{
        min-width: 66px;
        gap: 4px;
        font-size: 12px;
    }
    .auth-section .etape .num{ width: 26px; height: 26px; font-size: 13px; }
    .auth-section .separateur-etape{ margin: 12px -12px 0; }

    /* Champs : une seule colonne, icône à l'intérieur du champ */
    .champ-ligne{
        position: relative;
        display: block;
        margin-top: 14px;
    }
    .champ-ico{
        position: absolute;
        left: 14px;
        bottom: 14px;
        z-index: 1;
        padding: 0;
        color: #8a8a92;
        pointer-events: none;
    }
    .champ-ico svg{ width: 20px; height: 20px; }
    .auth-section .champ-corps label{ font-size: 14px; margin-bottom: 6px; }
    .auth-section .champ-corps input,
    .auth-section .champ-corps select{
        height: 50px;
        font-size: 16px;          /* 16 px minimum : évite le zoom automatique sur iPhone */
        border-radius: 10px;
    }
    .auth-section .champ-corps > input,
    .auth-section .champ-mdp input,
    .auth-section .tel-groupe input{ padding-left: 46px; }
    .auth-section .champ-mdp input{ padding-right: 52px; }

    .auth-section .tel-groupe{
        grid-template-columns: 1fr;
        gap: 10px;
    }

    /* Boutons */
    .auth-section .auth-btn{
        min-height: 52px;
        font-size: 16px;
        border-radius: 10px;
    }
    .auth-section .auth-btn-principal{ margin-top: 20px; }
    .auth-section .rangee-boutons .auth-btn{ flex: 1 1 100%; }
    .lien-oublie-ligne{ margin-top: 10px; }
    .auth-section .lien-oublie{ font-size: 14px; }

    .auth-bascule{ margin-top: 20px; }
    .auth-bascule a{
        height: 50px;
        gap: 7px;
        font-size: 14.5px;
    }
    .auth-bascule a svg{ width: 18px; height: 18px; }
    .auth-bascule-fleches{ width: 36px; height: 30px; font-size: 13px; }
}

@media (max-width: 360px){
    .auth-section .etape span{ display: inline; }
    .auth-section .etape{ min-width: 58px; font-size: 11px; }
    .auth-bascule a svg{ display: none; }
}

/* =========================================================
   TAILLES RÉDUITES (plus compact sur PC et sur téléphone)
========================================================= */
@media (min-width: 601px){
    .auth-section .auth-visuel{ padding: 60px 7% 40px; }
    .auth-section .auth-logo-badge{ width: 118px; height: 118px; margin-bottom: 16px; padding: 6px; }
    .auth-section .auth-titre-marque{ font-size: clamp(34px, 3.8vw, 52px); margin-bottom: 12px; }
    .auth-section .auth-slogan{ font-size: clamp(15px, 1.35vw, 19px); margin-bottom: 16px; }
    .auth-section .auth-desc{ max-width: 440px; font-size: clamp(13.5px, 1.05vw, 16px); line-height: 1.65; margin-bottom: 22px; }
    .auth-atouts{ gap: 12px 20px; }
    .auth-atout{ font-size: 14px; gap: 9px; }
    .auth-atout i{ width: 44px; height: 44px; }
    .auth-atout svg{ width: 21px; height: 21px; }

    .auth-panneau{ padding: 18px 28px; }
    #connexion.auth-carte,
    #inscription.auth-carte{ max-width: 560px; padding: 18px 30px 22px; border-radius: 18px; border-left-width: 5px; }

    .auth-section .etapes{ margin-bottom: 8px; }
    .auth-section .etape{ font-size: 13px; min-width: 80px; gap: 4px; }
    .auth-section .etape .num{ width: 25px; height: 25px; font-size: 12.5px; }
    .auth-section .separateur-etape{ margin-top: 12px; }

    .auth-section .auth-icone-badge{ width: 38px; height: 38px; }
    .auth-section .auth-icone-badge svg{ width: 20px; height: 20px; }
    :is(#connexion, #inscription) .auth-titre{ font-size: clamp(22px, 2.2vw, 30px); margin-bottom: 4px; }
    :is(#connexion, #inscription) .auth-titre::before,
    :is(#connexion, #inscription) .auth-titre::after{ flex-basis: 50px; width: 50px; }
    :is(#connexion, #inscription) .auth-titre::before{ margin-right: 18px; }
    :is(#connexion, #inscription) .auth-titre::after{ margin-left: 18px; }
    .auth-section .auth-souscription{ font-size: 13px; max-width: 380px; }

    .champ-ligne{ grid-template-columns: 24px minmax(0, 1fr); gap: 10px; margin-top: 8px; }
    .champ-ico svg{ width: 18px; height: 18px; }
    .auth-section .champ-corps label{ font-size: 13px; margin-bottom: 5px; }
    .auth-section .champ-corps input,
    .auth-section .champ-corps select{ height: 39px; font-size: 14px; padding: 0 12px; }
    .auth-section .champ-mdp input{ padding-right: 44px; }
    .auth-section .voir-mdp{ width: 32px; height: 32px; }
    .voir-mdp svg{ width: 18px; height: 18px; }
    .auth-section .tel-groupe{ gap: 10px; }

    .auth-section .auth-btn{ min-height: 41px; font-size: 14px; padding: 8px 16px; }
    .auth-section .auth-btn svg{ width: 18px; height: 18px; }
    .auth-section .auth-btn-principal{ margin-top: 14px; }
    .auth-section .auth-btn-google{ font-size: 14.5px; }
    .g-logo{ width: 20px; height: 20px; }
    .auth-ou{ margin: 9px 0; font-size: 13px; }
    .auth-section .lien-oublie{ font-size: 12.5px; }
    .lien-oublie-ligne{ margin-top: 6px; }
    .auth-section .auth-lien-bas,
    .auth-section #lien_inscription{ margin-top: 12px; font-size: 13.5px; }
    .auth-bascule{ margin-top: 14px; }
    .auth-bascule a{ height: 41px; font-size: 14px; }
    .auth-bascule a svg{ width: 17px; height: 17px; }
    .auth-bascule-fleches{ width: 36px; height: 28px; font-size: 13px; }
    .auth-msg, .auth-encart{ font-size: 13px; padding: 9px 12px; }

    .retour-arriere{ width: 44px; height: 44px; font-size: 20px; top: 16px; left: 16px; }
}

@media (max-width: 600px){
    .auth-section .auth-visuel{ padding: 56px 16px 38px; }
    .auth-section .auth-visuel-contenu{ grid-template-columns: 52px minmax(0, 1fr); column-gap: 12px; }
    .auth-section .auth-logo-badge{ width: 52px; height: 52px; padding: 3px; }
    .auth-section .auth-titre-marque{ font-size: 20px; }
    .auth-section .auth-slogan{ font-size: 12.5px; }
    .retour-arriere{ width: 36px; height: 36px; font-size: 18px; top: 10px; left: 10px; }

    #connexion.auth-carte,
    #inscription.auth-carte{ padding: 18px 16px 24px; border-radius: 20px 20px 0 0; }

    .auth-section .auth-icone-badge{ width: 34px; height: 34px; }
    .auth-section .auth-icone-badge svg{ width: 18px; height: 18px; }
    :is(#connexion, #inscription) .auth-titre{ font-size: 20px; }
    :is(#connexion, #inscription) .auth-titre::before,
    :is(#connexion, #inscription) .auth-titre::after{ flex-basis: 22px; width: 22px; }
    .auth-section .auth-souscription{ font-size: 12.5px; }

    .auth-section .etape{ font-size: 11px; }
    .auth-section .etape .num{ width: 23px; height: 23px; font-size: 12px; }
    .auth-section .separateur-etape{ margin-top: 11px; }

    .champ-ligne{ margin-top: 10px; }
    .auth-section .champ-corps label{ font-size: 13px; margin-bottom: 5px; }
    .auth-section .champ-corps input,
    .auth-section .champ-corps select{ height: 44px; border-radius: 9px; }   /* police gardée à 16 px (pas de zoom iPhone) */
    .champ-ico{ bottom: 12px; left: 13px; }
    .champ-ico svg{ width: 18px; height: 18px; }
    .auth-section .champ-corps > input,
    .auth-section .champ-mdp input,
    .auth-section .tel-groupe input{ padding-left: 42px; }

    .auth-section .auth-btn{ min-height: 44px; font-size: 14.5px; border-radius: 9px; }
    .auth-section .auth-btn svg{ width: 18px; height: 18px; }
    .auth-section .auth-btn-principal{ margin-top: 16px; }
    .g-logo{ width: 20px; height: 20px; }
    .auth-ou{ margin: 9px 0; font-size: 13px; }
    .auth-section .lien-oublie{ font-size: 13px; }
    .auth-section .auth-lien-bas,
    .auth-section #lien_inscription{ font-size: 13.5px; margin-top: 12px; }
    .auth-bascule{ margin-top: 16px; }
    .auth-bascule a{ height: 42px; font-size: 13.5px; }
    .auth-bascule a svg{ width: 16px; height: 16px; }
    .auth-bascule-fleches{ width: 32px; height: 26px; font-size: 12px; }
    .auth-msg, .auth-encart{ font-size: 13px; padding: 9px 12px; }
}


/* =========================================================
   BASCULE : pastille orange qui glisse entre Connexion et Inscription
========================================================= */
.auth-bascule::before{
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 50%;
    background: var(--a-orange);
    transition: transform 0.35s cubic-bezier(.4, 0, .2, 1);
}
.auth-bascule[data-actif="inscription"]::before{ transform: translateX(100%); }
.auth-bascule.sans-transition::before,
.auth-bascule.sans-transition a{ transition: none; }
.auth-bascule a{
    position: relative;
    z-index: 1;
    transition: color 0.35s ease;
}
.auth-bascule a.actif,
.auth-bascule a.actif:hover{ background: transparent; }
.auth-bascule a:hover{ background: rgba(0,0,0,0.04); }
.auth-bascule[data-actif="connexion"] a[href="espace_vendeur.html"],
.auth-bascule[data-actif="inscription"] a[href="espace_vendeur_inscription.html"]{ color: #fff; }
.auth-bascule[data-actif="connexion"] a[href="espace_vendeur_inscription.html"],
.auth-bascule[data-actif="inscription"] a[href="espace_vendeur.html"]{ color: var(--a-encre); }
.auth-bascule[data-actif="connexion"] a[href="espace_vendeur.html"]:hover,
.auth-bascule[data-actif="inscription"] a[href="espace_vendeur_inscription.html"]:hover{ background: transparent; }
.auth-bascule-fleches{ z-index: 2; }

/* Carte : sortie / entrée en glissant */
@keyframes carteSortieGauche{ to{ opacity: 0; transform: translateX(-46px); } }
@keyframes carteSortieDroite{ to{ opacity: 0; transform: translateX(46px); } }
@keyframes carteEntreeDroite{ from{ opacity: 0; transform: translateX(46px); } }
@keyframes carteEntreeGauche{ from{ opacity: 0; transform: translateX(-46px); } }
.auth-carte.sortie-gauche{ animation: carteSortieGauche 0.33s ease-in forwards; }
.auth-carte.sortie-droite{ animation: carteSortieDroite 0.33s ease-in forwards; }
.auth-carte.entree-droite{ animation: carteEntreeDroite 0.4s ease-out both; }
.auth-carte.entree-gauche{ animation: carteEntreeGauche 0.4s ease-out both; }

/* =========================================================
   INSCRIPTION SUR PC : champs sur 2 colonnes (tient dans l'écran)
========================================================= */
@media (min-width: 901px){
    #inscription.auth-carte{ max-width: 640px; }
    #form_inscription{
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        column-gap: 18px;
        align-items: end;
    }
    #form_inscription > *{ grid-column: 1 / -1; }
    #form_inscription > .champ-ligne:nth-child(1),
    #form_inscription > .champ-ligne:nth-child(2),
    #form_inscription > #zone_mdp,
    #form_inscription > #zone_mdp2{ grid-column: auto; }
    #inscription .auth-souscription{ margin-bottom: 0; }
    #inscription .etapes{ margin-bottom: 4px; }
}


/* =========================================================
   PAIEMENT : un seul bouton principal par étape
========================================================= */
.auth-section .auth-btn-grand{
    min-height: 52px;
    margin-top: 16px;
    font-size: 16px;
    font-weight: 700;
    box-shadow: 0 8px 18px -8px rgba(0,0,0,0.35);
}
.auth-section .auth-btn-grand svg{ width: 22px; height: 22px; }
.auth-section .auth-btn-wa.auth-btn-grand{ box-shadow: 0 8px 18px -8px rgba(22,163,74,0.6); }
.auth-section .auth-btn-principal.auth-btn-grand{ box-shadow: 0 8px 18px -8px rgba(255,94,0,0.6); }

.auth-lien-retour,
.auth-lien{
    background: none;
    border: none;
    padding: 0;
    font-family: inherit;
    cursor: pointer;
}
.auth-section .auth-lien-retour{
    display: block;
    margin: 14px auto 0;
    font-size: 13.5px;
    color: #666;
}
.auth-section .auth-lien-retour:hover,
.auth-section .auth-lien:hover{ text-decoration: underline; }
.auth-section .auth-aide-centre{
    margin: 14px 0 0;
    font-size: 13.5px;
    text-align: center;
    color: #666;
}
.auth-section .auth-aide-centre a{
    color: var(--a-orange);
    font-weight: 600;
    text-decoration: none;
}
.auth-section .auth-lien{
    font-size: 13.5px;
    color: #666;
}
