/* ========================================================================
   ACCOUNT PAGE - Paramètres du compte
   ======================================================================== */

/* Container principal */
.ls-profile-form {
    width: 100%;
    max-width: none !important;
}

/* ========================================================================
   TITRES DE SECTION (h4)
   ======================================================================== */

.ls-profile-form h4 {
    background-color: var(--wp--preset--color--patchwork-turquoise);
    color: var(--wp--preset--color--patchwork-white);
    padding: 0.75rem 1.25rem;
    margin: 1.5rem 0 1rem 0;
    font-family: "Muli", "Muli Light", sans-serif;
    font-weight: 600;
    border-radius: 0;
}

.ls-profile-form h4:first-of-type {
    margin-top: 0;
}

/* ========================================================================
   GROUPES DE FORMULAIRE
   ======================================================================== */

.ls-profile-form .form-group {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-bottom: 1rem;
    gap: 1rem;
}

.ls-profile-form .form-group.row {
    flex-wrap: wrap;
}

/* Labels */
.ls-profile-form .col-form-label {
    font-weight: 400;
    color: #333;
    min-width: 150px;
    padding: 0;
    margin: 0;
}

/* Inputs */
.ls-profile-form .form-control {
    width: 100%;
    padding: 0.5rem 0.75rem;
    font-size: 1rem;
    font-family: inherit;
    color: #333;
    background-color: var(--wp--preset--color--patchwork-white) ;
    border: 1px solid var(--wp--preset--color--patchwork-black-transparent-20) !important;
    border-radius: 0.25rem;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ls-profile-form .form-control:focus {
    border-color: var(--wp--preset--color--patchwork-turquoise);
    box-shadow: 0 0 0 0.15rem rgba(0, 172, 193, 0.2);
    outline: none;
}

.ls-profile-form .form-control::placeholder {
    color: #999;
}

/* ========================================================================
   DISPOSITION EN GRILLE (Bootstrap-like)
   ======================================================================== */

.ls-profile-form .col-sm-2 {
    flex: 0 0 auto;
    width: auto;
    min-width: 150px;
}

.ls-profile-form .col-sm-6,
.ls-profile-form .col-lg-4 {
    flex: 1;
    max-width: 350px;
}

.ls-profile-form .col-12 {
    width: 100%;
    flex: 0 0 100%;
}

.ls-profile-form .col {
    flex: 1;
}

/* ========================================================================
   ALERTE DANGER (Close account)
   ======================================================================== */
.alert {
    padding: 1rem 1.25rem;
    border-radius: 0.25rem;
    font-size: 0.9375rem;
    line-height: 1.5;
}

.alert-danger {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}
.alert-info {
    background-color: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
}

/* ========================================================================
   BOUTONS
   ======================================================================== */

.ls-profile-form .btn {
    display: inline-block;
    padding: 1rem 1.5rem;
    font-family: inherit;
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.03rem;
    text-align: center;
    text-decoration: none;
    border-width: 0;
    border-radius: 0.5rem;
    cursor: pointer;
    box-sizing: border-box;
    transition: all 0.4s ease-in-out;
    will-change: transform, opacity, filter, color, background-color, border, box-shadow;
    
}

.ls-profile-form .btn:hover {
    filter: brightness(0.9);
}

/* Bouton Save (secondary/disabled) */
.ls-profile-form .btn-secondary {
    background-color: var(--wp--preset--color--patchwork-turquoise);
    color: #fff;
}

.ls-profile-form .btn-secondary:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    filter: none;
}

/* Bouton Close account (danger) */
.ls-profile-form .btn-danger {
    background-color: #c9302c;
    color: #fff;
}

.ls-profile-form .btn-danger:hover {
    filter: brightness(0.85);
}

/* Alignement des boutons à droite */
.ls-profile-form .d-flex {
    display: flex;
}

.ls-profile-form .ml-auto {
    margin-left: auto;
}
.ml-auto {
    width: max-content !important;
}
/* ========================================================================
   RESPONSIVE
   ======================================================================== */

@media (max-width: 768px) {
    .ls-profile-form .form-group.row {
        flex-direction: column;
        align-items: flex-start;
    }

    .ls-profile-form .col-sm-2,
    .ls-profile-form .col-sm-6,
    .ls-profile-form .col-lg-4 {
        width: 100%;
        max-width: none;
        min-width: auto;
    }

    .ls-profile-form .col-form-label {
        margin-bottom: 0.5rem;
    }

    .ls-profile-form h4 {
        font-size: 1rem;
        padding: 0.625rem 1rem;
    }
}
