/* ==========================================================
   1. OVERLAY ET TIROIR (ÉPURÉ & MINIMALISTE)
   ========================================================== */
.account-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: rgba(0, 0, 0, 0.3);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.account-overlay.active {
    opacity: 1;
    visibility: visible;
}

.account-drawer {
    position: fixed;
    top: 0; right: 0;
    width: 50%;
    max-width: 550px;
    height: 100vh;
    background-color: #ffffff;
    z-index: 9999;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.05);
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    padding: 50px 40px;
    box-sizing: border-box;
    overflow-y: auto;
}

.account-drawer.active {
    transform: translateX(0);
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    margin-bottom: 35px;
    border-bottom: 1px solid #f2f2f2;
}

.drawer-header h2 {
    font-family: "Playfair Display", "Didot", serif;
    font-size: 24px;
    font-weight: 400;
    color: #000;
    margin: 0;
}

.close-btn {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    color: #000;
    font-weight: 300;
    padding: 0;
    transition: opacity 0.2s;
}

.close-btn:hover {
    opacity: 0.5;
}

/* ==========================================================
   2. FORMULAIRES & CHAMPS DE SAISIE
   ========================================================== */
.auth-view {
    display: none;
    flex-direction: column;
}

.auth-view.active {
    display: flex;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 22px;
}

.form-group label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #666;
}

.form-group input {
    /* [Haut/Bas : 12px] [Gauche/Droite : 12px] */
    padding: 12px 14px; 
    border: none;
    border-bottom: 1px solid #ccc;
    background: transparent;
    outline: none;
    font-size: 14px;
    color: #000;
    transition: border-color 0.3s ease;
    border-radius: 0;
    box-sizing: border-box; /* Garantit que le padding ne déforme pas la largeur */
}

.form-group input:focus {
    border-bottom-color: #000;
}

/* ==========================================================
   3. BOUTONS & BLOC NOUVEAU CLIENT (RECTANGULAIRES)
   ========================================================== */
.btn-primary {
    background: #000;
    color: #fff;
    padding: 16px;
    border: none;
    cursor: pointer;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 10px;
    width: 100%;
    border-radius: 0; /* Angles droits */
    transition: background 0.3s ease;
}

.btn-primary:hover {
    background: #222;
}

/* Section Nouveau Client */
.new-customer-section {
    margin-top: 45px;
    padding-top: 35px;
    border-top: 1px solid #f2f2f2;
}

.new-customer-title {
    font-family: "Playfair Display", "Didot", serif;
    font-size: 20px;
    font-weight: 400;
    color: #000;
    margin-bottom: 12px;
}

.new-customer-text {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 30px;
    font-weight: 300;
}

/* Bouton rectangulaire "Créer mon compte" */
.btn-rounded-outline {
    display: block;
    width: 100%;
    text-align: center;
    background: transparent;
    color: #000;
    border: 1px solid #000;
    padding: 16px 28px;
    border-radius: 0; /* Angles droits */
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 400;
    cursor: pointer;
    text-decoration: none;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.btn-rounded-outline:hover {
    background: #000;
    color: #fff;
}

.back-to-login {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 12px;
    color: #666;
    text-decoration: underline;
    margin-top: 20px;
    padding: 0;
    text-align: left;
}

/* Version Mobile */
@media (max-width: 768px) {
    .account-drawer {
        width: 100%;
        max-width: 100%;
        padding: 35px 25px;
    }
}