/* ============================================================
   WOOCOMMERCE — PAGE MON COMPTE (LOGIN / REGISTER)
   Charte Moutarde Manon : or/doré + Cormorant Garamond
   ============================================================
   Sélecteurs ciblés pour Divi 5 (.et-db #et-boc .et-l)
   ============================================================ */

/* ----------------------------------------------------------
   BASE GLOBALE — conteneur login/register
   ---------------------------------------------------------- */

.et-db #et-boc .et-l .et_pb_text_3_tb_body .woocommerce,
body.woocommerce-account .woocommerce {
    font-family: 'Cormorant Garamond', Georgia, serif !important;
    font-size: 20px !important;
    color: #221b0d !important;
}

/* ----------------------------------------------------------
   LAYOUT 2 COLONNES (Se connecter / S'inscrire)
   ---------------------------------------------------------- */

.et-db #et-boc .et-l .et_pb_text_3_tb_body #customer_login,
.et-db #et-boc .et-l .et_pb_text_3_tb_body .u-columns.col2-set,
body.woocommerce-account #customer_login,
body.woocommerce-account .u-columns.col2-set {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 30px !important;
    max-width: 1100px !important;
    margin: 0 auto 40px !important;
    padding: 0 !important;
    width: 100% !important;
    float: none !important;
}

/* Neutralise les pseudo-éléments clearfix de WC */
.et-db #et-boc .et-l .et_pb_text_3_tb_body #customer_login::before,
.et-db #et-boc .et-l .et_pb_text_3_tb_body #customer_login::after,
body.woocommerce-account #customer_login::before,
body.woocommerce-account #customer_login::after {
    display: none !important;
    content: none !important;
}

/* Colonnes individuelles — cartes */
.et-db #et-boc .et-l .et_pb_text_3_tb_body #customer_login > .u-column1,
.et-db #et-boc .et-l .et_pb_text_3_tb_body #customer_login > .u-column2,
.et-db #et-boc .et-l .et_pb_text_3_tb_body #customer_login > .col-1,
.et-db #et-boc .et-l .et_pb_text_3_tb_body #customer_login > .col-2,
body.woocommerce-account #customer_login > .u-column1,
body.woocommerce-account #customer_login > .u-column2 {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    margin: 0 !important;
    padding: 40px !important;
    background: #ffffff !important;
    border: 1px solid #c8a852 !important;
    border-radius: 0 !important;
    box-sizing: border-box !important;
    box-shadow: 0 4px 16px rgba(200, 168, 82, 0.08) !important;
    align-self: stretch !important;
    transition: box-shadow 0.3s ease, transform 0.3s ease !important;
}

.et-db #et-boc .et-l .et_pb_text_3_tb_body #customer_login > .u-column1:hover,
.et-db #et-boc .et-l .et_pb_text_3_tb_body #customer_login > .u-column2:hover,
body.woocommerce-account #customer_login > .u-column1:hover,
body.woocommerce-account #customer_login > .u-column2:hover {
    box-shadow: 0 8px 24px rgba(200, 168, 82, 0.18) !important;
    transform: translateY(-2px) !important;
}

/* ----------------------------------------------------------
   TITRES H2 ("Se connecter" / "S'inscrire")
   ---------------------------------------------------------- */

.et-db #et-boc .et-l .et_pb_text_3_tb_body #customer_login h2,
body.woocommerce-account #customer_login h2 {
    font-family: 'Cormorant Garamond', Georgia, serif !important;
    font-size: 32px !important;
    font-weight: 700 !important;
    color: #221b0d !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    text-align: center !important;
    margin: 0 0 30px 0 !important;
    padding-bottom: 15px !important;
    border-bottom: 2px solid #c8a852 !important;
    position: relative !important;
}

/* Petit ornement sous le titre */
.et-db #et-boc .et-l .et_pb_text_3_tb_body #customer_login h2::after,
body.woocommerce-account #customer_login h2::after {
    content: "" !important;
    position: absolute !important;
    bottom: -2px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 60px !important;
    height: 4px !important;
    background: #F4C940 !important;
}

/* ----------------------------------------------------------
   FORMULAIRES — reset base
   ---------------------------------------------------------- */

.et-db #et-boc .et-l .et_pb_text_3_tb_body form.login,
.et-db #et-boc .et-l .et_pb_text_3_tb_body form.register,
body.woocommerce-account form.login,
body.woocommerce-account form.register {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* ----------------------------------------------------------
   LABELS
   ---------------------------------------------------------- */

.et-db #et-boc .et-l .et_pb_text_3_tb_body #customer_login label,
body.woocommerce-account #customer_login label {
    display: block !important;
    font-family: 'Cormorant Garamond', Georgia, serif !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    color: #221b0d !important;
    margin-bottom: 8px !important;
    line-height: 1.3 !important;
    letter-spacing: 0.02em !important;
}

.et-db #et-boc .et-l .et_pb_text_3_tb_body #customer_login .required,
body.woocommerce-account #customer_login .required {
    color: #a00 !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    border-bottom: none !important;
}

/* ----------------------------------------------------------
   CHAMPS INPUT (text, email, password)
   ---------------------------------------------------------- */

.et-db #et-boc .et-l .et_pb_text_3_tb_body #customer_login input[type="text"],
.et-db #et-boc .et-l .et_pb_text_3_tb_body #customer_login input[type="email"],
.et-db #et-boc .et-l .et_pb_text_3_tb_body #customer_login input[type="password"],
.et-db #et-boc .et-l .et_pb_text_3_tb_body #customer_login input.input-text,
.et-db #et-boc .et-l .et_pb_text_3_tb_body #customer_login input.woocommerce-Input,
body.woocommerce-account #customer_login input[type="text"],
body.woocommerce-account #customer_login input[type="email"],
body.woocommerce-account #customer_login input[type="password"],
body.woocommerce-account #customer_login input.input-text {
    width: 100% !important;
    padding: 14px 16px !important;
    height: 48px !important;
    background: #ffffff !important;
    color: #221b0d !important;
    border: 1px solid #c8a852 !important;
    border-radius: 0 !important;
    font-family: 'Cormorant Garamond', Georgia, serif !important;
    font-size: 20px !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
    box-sizing: border-box !important;
    box-shadow: none !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease !important;
}

.et-db #et-boc .et-l .et_pb_text_3_tb_body #customer_login input[type="text"]:focus,
.et-db #et-boc .et-l .et_pb_text_3_tb_body #customer_login input[type="email"]:focus,
.et-db #et-boc .et-l .et_pb_text_3_tb_body #customer_login input[type="password"]:focus,
.et-db #et-boc .et-l .et_pb_text_3_tb_body #customer_login input.input-text:focus,
body.woocommerce-account #customer_login input[type="text"]:focus,
body.woocommerce-account #customer_login input[type="email"]:focus,
body.woocommerce-account #customer_login input[type="password"]:focus {
    outline: none !important;
    border-color: #F4C940 !important;
    background: #fdfaf3 !important;
    box-shadow: 0 0 0 3px rgba(244, 201, 64, 0.2) !important;
}

.et-db #et-boc .et-l .et_pb_text_3_tb_body #customer_login input::placeholder,
body.woocommerce-account #customer_login input::placeholder {
    color: #8a8070 !important;
    font-style: italic !important;
    opacity: 1 !important;
}

/* États de validation */
.et-db #et-boc .et-l .et_pb_text_3_tb_body #customer_login .woocommerce-invalid input.input-text,
body.woocommerce-account #customer_login .woocommerce-invalid input.input-text {
    border-color: #a00 !important;
    box-shadow: 0 0 0 2px rgba(170, 0, 0, 0.1) !important;
}

.et-db #et-boc .et-l .et_pb_text_3_tb_body #customer_login .woocommerce-validated input.input-text,
body.woocommerce-account #customer_login .woocommerce-validated input.input-text {
    border-color: #008a20 !important;
}

/* ----------------------------------------------------------
   FORM ROWS — espacement
   ---------------------------------------------------------- */

.et-db #et-boc .et-l .et_pb_text_3_tb_body #customer_login .form-row,
.et-db #et-boc .et-l .et_pb_text_3_tb_body #customer_login .woocommerce-form-row,
body.woocommerce-account #customer_login .form-row,
body.woocommerce-account #customer_login .woocommerce-form-row {
    display: block !important;
    margin-bottom: 20px !important;
    padding: 0 !important;
    width: 100% !important;
    float: none !important;
}

.et-db #et-boc .et-l .et_pb_text_3_tb_body #customer_login .password-input,
body.woocommerce-account #customer_login .password-input {
    display: block !important;
    position: relative !important;
    width: 100% !important;
}

/* ----------------------------------------------------------
   BOUTON "AFFICHER LE MOT DE PASSE"
   ---------------------------------------------------------- */

.et-db #et-boc .et-l .et_pb_text_3_tb_body #customer_login .show-password-input,
body.woocommerce-account #customer_login .show-password-input {
    position: absolute !important;
    top: 14px !important;
    right: 14px !important;
    cursor: pointer !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
}

.et-db #et-boc .et-l .et_pb_text_3_tb_body #customer_login .show-password-input::after,
body.woocommerce-account #customer_login .show-password-input::after {
    color: #c8a852 !important;
    font-size: 20px !important;
}

.et-db #et-boc .et-l .et_pb_text_3_tb_body #customer_login .show-password-input:hover::after,
body.woocommerce-account #customer_login .show-password-input:hover::after {
    color: #F4C940 !important;
}

/* ----------------------------------------------------------
   CHECKBOX "Se souvenir de moi"
   ---------------------------------------------------------- */

.et-db #et-boc .et-l .et_pb_text_3_tb_body #customer_login .woocommerce-form-login__rememberme,
body.woocommerce-account #customer_login .woocommerce-form-login__rememberme {
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    cursor: pointer !important;
    font-family: 'Cormorant Garamond', Georgia, serif !important;
    font-size: 18px !important;
    color: #221b0d !important;
    line-height: 1.4 !important;
    margin-bottom: 20px !important;
    font-weight: 500 !important;
}

.et-db #et-boc .et-l .et_pb_text_3_tb_body #customer_login input[type="checkbox"],
.et-db #et-boc .et-l .et_pb_text_3_tb_body #customer_login .woocommerce-form__input-checkbox,
body.woocommerce-account #customer_login input[type="checkbox"] {
    width: 20px !important;
    height: 20px !important;
    margin: 0 !important;
    cursor: pointer !important;
    accent-color: #F4C940 !important;
    flex-shrink: 0 !important;
    vertical-align: middle !important;
}

.et-db #et-boc .et-l .et_pb_text_3_tb_body #customer_login .woocommerce-form-login__rememberme span,
body.woocommerce-account #customer_login .woocommerce-form-login__rememberme span {
    font-family: 'Cormorant Garamond', Georgia, serif !important;
    font-size: 18px !important;
    color: #221b0d !important;
    font-weight: 500 !important;
}

/* ----------------------------------------------------------
   BOUTONS "Se connecter" / "S'inscrire"
   ---------------------------------------------------------- */

.et-db #et-boc .et-l .et_pb_text_3_tb_body #customer_login button.woocommerce-button,
.et-db #et-boc .et-l .et_pb_text_3_tb_body #customer_login button.woocommerce-Button,
.et-db #et-boc .et-l .et_pb_text_3_tb_body #customer_login button.button,
.et-db #et-boc .et-l .et_pb_text_3_tb_body #customer_login .woocommerce-form-login__submit,
.et-db #et-boc .et-l .et_pb_text_3_tb_body #customer_login .woocommerce-form-register__submit,
body.woocommerce-account #customer_login button.woocommerce-button,
body.woocommerce-account #customer_login button.button {
    display: block !important;
    width: 100% !important;
    padding: 16px 24px !important;
    height: auto !important;
    margin-top: 10px !important;
    background: #c8a852 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 0 !important;
    font-family: 'Cormorant Garamond', Georgia, serif !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
    text-shadow: none !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 6px rgba(200, 168, 82, 0.25) !important;
}

.et-db #et-boc .et-l .et_pb_text_3_tb_body #customer_login button.woocommerce-button:hover,
.et-db #et-boc .et-l .et_pb_text_3_tb_body #customer_login button.button:hover,
body.woocommerce-account #customer_login button.woocommerce-button:hover,
body.woocommerce-account #customer_login button.button:hover {
    background: #a88a3e !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 14px rgba(200, 168, 82, 0.4) !important;
}

.et-db #et-boc .et-l .et_pb_text_3_tb_body #customer_login button.woocommerce-button:active,
body.woocommerce-account #customer_login button.woocommerce-button:active {
    transform: translateY(0) !important;
    box-shadow: 0 2px 4px rgba(200, 168, 82, 0.3) !important;
}

/* ----------------------------------------------------------
   LIEN "MOT DE PASSE PERDU"
   ---------------------------------------------------------- */

.et-db #et-boc .et-l .et_pb_text_3_tb_body #customer_login .lost_password,
.et-db #et-boc .et-l .et_pb_text_3_tb_body #customer_login .woocommerce-LostPassword,
body.woocommerce-account #customer_login .lost_password {
    text-align: center !important;
    margin-top: 20px !important;
    margin-bottom: 0 !important;
    padding-top: 15px !important;
    border-top: 1px solid rgba(200, 168, 82, 0.2) !important;
}

.et-db #et-boc .et-l .et_pb_text_3_tb_body #customer_login .lost_password a,
body.woocommerce-account #customer_login .lost_password a {
    font-family: 'Cormorant Garamond', Georgia, serif !important;
    font-size: 18px !important;
    color: #c8a852 !important;
    font-weight: 600 !important;
    text-decoration: underline !important;
    transition: color 0.2s ease !important;
}

.et-db #et-boc .et-l .et_pb_text_3_tb_body #customer_login .lost_password a:hover,
body.woocommerce-account #customer_login .lost_password a:hover {
    color: #F4C940 !important;
}

/* ----------------------------------------------------------
   PARAGRAPHE EXPLICATIF INSCRIPTION
   "Un lien permettant de définir un nouveau mot de passe..."
   ---------------------------------------------------------- */

.et-db #et-boc .et-l .et_pb_text_3_tb_body #customer_login form.register > p,
body.woocommerce-account #customer_login form.register > p {
    font-family: 'Cormorant Garamond', Georgia, serif !important;
    font-size: 17px !important;
    color: #554433 !important;
    font-style: italic !important;
    line-height: 1.6 !important;
    padding: 14px 16px !important;
    margin: 0 0 20px 0 !important;
    background: #F5E6D2 !important;
    border-left: 4px solid #F4C940 !important;
}

/* ----------------------------------------------------------
   TEXTE POLITIQUE DE CONFIDENTIALITÉ
   ---------------------------------------------------------- */

.et-db #et-boc .et-l .et_pb_text_3_tb_body #customer_login .woocommerce-privacy-policy-text,
body.woocommerce-account #customer_login .woocommerce-privacy-policy-text {
    margin: 20px 0 !important;
}

.et-db #et-boc .et-l .et_pb_text_3_tb_body #customer_login .woocommerce-privacy-policy-text p,
body.woocommerce-account #customer_login .woocommerce-privacy-policy-text p {
    font-family: 'Cormorant Garamond', Georgia, serif !important;
    font-size: 16px !important;
    color: #554433 !important;
    font-style: italic !important;
    line-height: 1.6 !important;
    margin: 0 !important;
}

.et-db #et-boc .et-l .et_pb_text_3_tb_body #customer_login .woocommerce-privacy-policy-link,
body.woocommerce-account #customer_login .woocommerce-privacy-policy-link {
    color: #c8a852 !important;
    font-weight: 600 !important;
    text-decoration: underline !important;
    transition: color 0.2s ease !important;
}

.et-db #et-boc .et-l .et_pb_text_3_tb_body #customer_login .woocommerce-privacy-policy-link:hover,
body.woocommerce-account #customer_login .woocommerce-privacy-policy-link:hover {
    color: #F4C940 !important;
}

/* ----------------------------------------------------------
   MESSAGES D'ERREUR / SUCCÈS
   ---------------------------------------------------------- */

.et-db #et-boc .et-l .et_pb_text_3_tb_body .woocommerce-error,
body.woocommerce-account .woocommerce-error {
    background: #fee2e2 !important;
    border: 1px solid #a00 !important;
    border-left: 4px solid #a00 !important;
    border-radius: 0 !important;
    padding: 14px 20px !important;
    margin-bottom: 20px !important;
    font-family: 'Cormorant Garamond', Georgia, serif !important;
    font-size: 18px !important;
    color: #991b1b !important;
    list-style: none !important;
}

.et-db #et-boc .et-l .et_pb_text_3_tb_body .woocommerce-message,
body.woocommerce-account .woocommerce-message {
    background: #d1fae5 !important;
    border: 1px solid #008a20 !important;
    border-left: 4px solid #008a20 !important;
    border-radius: 0 !important;
    padding: 14px 20px !important;
    margin-bottom: 20px !important;
    font-family: 'Cormorant Garamond', Georgia, serif !important;
    font-size: 18px !important;
    color: #065f46 !important;
}

.et-db #et-boc .et-l .et_pb_text_3_tb_body .woocommerce-info,
body.woocommerce-account .woocommerce-info {
    background: #F5E6D2 !important;
    border: 1px solid #c8a852 !important;
    border-left: 4px solid #F4C940 !important;
    border-radius: 0 !important;
    padding: 14px 20px !important;
    margin-bottom: 20px !important;
    font-family: 'Cormorant Garamond', Georgia, serif !important;
    font-size: 18px !important;
    color: #221b0d !important;
}

/* ----------------------------------------------------------
   RESPONSIVE — Tablette et mobile
   ---------------------------------------------------------- */

@media (max-width: 980px) {

    /* Colonnes en une seule */
    .et-db #et-boc .et-l .et_pb_text_3_tb_body #customer_login,
    .et-db #et-boc .et-l .et_pb_text_3_tb_body .u-columns.col2-set,
    body.woocommerce-account #customer_login {
        grid-template-columns: 1fr !important;
        gap: 25px !important;
        max-width: 600px !important;
    }

    .et-db #et-boc .et-l .et_pb_text_3_tb_body #customer_login > .u-column1,
    .et-db #et-boc .et-l .et_pb_text_3_tb_body #customer_login > .u-column2,
    body.woocommerce-account #customer_login > .u-column1,
    body.woocommerce-account #customer_login > .u-column2 {
        padding: 30px !important;
    }

    .et-db #et-boc .et-l .et_pb_text_3_tb_body #customer_login h2,
    body.woocommerce-account #customer_login h2 {
        font-size: 28px !important;
    }
}

@media (max-width: 768px) {

    .et-db #et-boc .et-l .et_pb_text_3_tb_body .woocommerce,
    body.woocommerce-account .woocommerce {
        font-size: 18px !important;
    }

    .et-db #et-boc .et-l .et_pb_text_3_tb_body #customer_login > .u-column1,
    .et-db #et-boc .et-l .et_pb_text_3_tb_body #customer_login > .u-column2,
    body.woocommerce-account #customer_login > .u-column1,
    body.woocommerce-account #customer_login > .u-column2 {
        padding: 25px 20px !important;
    }

    .et-db #et-boc .et-l .et_pb_text_3_tb_body #customer_login h2,
    body.woocommerce-account #customer_login h2 {
        font-size: 24px !important;
    }

    /* Inputs : 16px pour éviter zoom iOS */
    .et-db #et-boc .et-l .et_pb_text_3_tb_body #customer_login input[type="text"],
    .et-db #et-boc .et-l .et_pb_text_3_tb_body #customer_login input[type="email"],
    .et-db #et-boc .et-l .et_pb_text_3_tb_body #customer_login input[type="password"],
    .et-db #et-boc .et-l .et_pb_text_3_tb_body #customer_login input.input-text,
    body.woocommerce-account #customer_login input[type="text"],
    body.woocommerce-account #customer_login input[type="email"],
    body.woocommerce-account #customer_login input[type="password"] {
        font-size: 16px !important;
        height: 44px !important;
    }

    .et-db #et-boc .et-l .et_pb_text_3_tb_body #customer_login button.woocommerce-button,
    .et-db #et-boc .et-l .et_pb_text_3_tb_body #customer_login button.button,
    body.woocommerce-account #customer_login button.woocommerce-button {
        font-size: 18px !important;
        padding: 14px 20px !important;
    }
}

@media (max-width: 480px) {

    .et-db #et-boc .et-l .et_pb_text_3_tb_body #customer_login,
    body.woocommerce-account #customer_login {
        gap: 20px !important;
    }

    .et-db #et-boc .et-l .et_pb_text_3_tb_body #customer_login > .u-column1,
    .et-db #et-boc .et-l .et_pb_text_3_tb_body #customer_login > .u-column2,
    body.woocommerce-account #customer_login > .u-column1,
    body.woocommerce-account #customer_login > .u-column2 {
        padding: 20px 15px !important;
    }

    .et-db #et-boc .et-l .et_pb_text_3_tb_body #customer_login h2,
    body.woocommerce-account #customer_login h2 {
        font-size: 22px !important;
    }
}