/**
 * Jenile Frontend CSS
 * Styles pour le footer et autres composants frontend
 * 
 * @since 1.0.0
 */

/* --- VARIABLES --- */
.jenile-modern-footer {
    --brand-green: #8cbf3f;       /* Vert Jenile */
    --brand-green-dark: #76a333;  /* Hover */
    --text-dark: #111111;
    --text-light: #666666;
    --bg-footer: #f9f9f9;         /* Gris très clair */
    --white: #ffffff;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-footer);
    color: var(--text-light);
    padding: 80px 20px 40px;
    position: relative;
    border-top: 5px solid var(--brand-green);
    font-size: 0.95rem;
    line-height: 1.6;
}

.jenile-modern-footer * { box-sizing: border-box; }

.jenile-footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

/* --- COLONNES --- */
.footer-col h3 {
    color: var(--text-dark);
    font-size: 1.1rem;
    margin-bottom: 25px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    display: inline-block;
}

/* Petite ligne verte sous les titres */
.footer-col h3::after {
    content: '';
    position: absolute;
    width: 40px; height: 3px;
    background: var(--brand-green);
    bottom: -10px; left: 0;
    border-radius: 2px;
}

/* LOGO & BIO */
.brand-logo {
    font-size: 1.8rem; font-weight: 900; color: var(--brand-green);
    margin-bottom: 15px; display: inline-block; text-transform: uppercase;
}
.brand-logo span { color: var(--text-dark); }

.brand-desc { margin-bottom: 25px; font-size: 0.95rem; max-width: 300px; }

/* RÉSEAUX SOCIAUX */
.social-links { display: flex; gap: 15px; }
.social-icon {
    width: 40px; height: 40px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-dark);
    transition: all 0.3s ease;
    text-decoration: none;
}
.social-icon svg {
    width: 20px;
    height: 20px;
    display: block;
}
.social-icon:hover {
    background: var(--brand-green);
    color: #fff; border-color: var(--brand-green);
    transform: translateY(-3px);
}
.social-icon:hover svg {
    color: #fff;
}

/* LIENS */
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 12px; }
.footer-links a {
    text-decoration: none; color: var(--text-light);
    transition: 0.3s; display: inline-block;
}
.footer-links a:hover {
    color: var(--brand-green);
    transform: translateX(5px);
}

/* CONTACT INFO */
.contact-info li {
    display: flex; align-items: flex-start; margin-bottom: 15px;
}
.icon-placeholder {
    min-width: 25px; color: var(--brand-green);
    margin-right: 10px; font-size: 1.1rem;
}

/* NEWSLETTER SIMPLIFIÉE */
.newsletter-form { display: flex; gap: 10px; margin-top: 15px; }
.newsletter-input {
    flex: 1; padding: 12px 15px;
    border-radius: 8px; border: 1px solid #ddd;
    font-size: 0.9rem; outline: none;
}
.newsletter-input:focus { border-color: var(--brand-green); }
.newsletter-btn {
    background-color: var(--text-dark);
    color: white; border: none;
    padding: 0 20px; border-radius: 8px;
    cursor: pointer; font-weight: 700;
    text-transform: uppercase; font-size: 0.8rem;
    transition: 0.3s;
}
.newsletter-btn:hover { background-color: var(--brand-green); }

/* COPYRIGHT */
.footer-bottom {
    margin-top: 60px; padding-top: 30px;
    border-top: 1px solid #eee;
    text-align: center; font-size: 0.85rem; color: #999;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .jenile-footer-container { grid-template-columns: 1fr; gap: 50px; }
    .newsletter-form { flex-direction: column; }
    .newsletter-btn { padding: 15px; width: 100%; }
}

/* BOUTON REMONTER */
.jenile-scroll-top {
    position: fixed; bottom: 30px; right: 30px;
    width: 50px; height: 50px;
    background: var(--text-dark); color: #fff;
    border-radius: 50%; border: none;
    font-size: 1.5rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden;
    transition: all 0.4s ease; z-index: 999;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
.jenile-scroll-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.jenile-scroll-top:hover { background: var(--brand-green); transform: translateY(-5px); }

/* ============================================================
   CHECKOUT PERSONNALISATION
   ============================================================ */

/* Variables pour le checkout */
body.woocommerce-checkout {
    --brand-green: #8cbf3f;
    --brand-green-dark: #76a333;
    --text-dark: #111111;
    --text-light: #666666;
    --border-color: #e0e0e0;
    --bg-light: #f9f9f9;
}

/* Conteneur principal */
body.woocommerce-checkout .woocommerce {
    max-width: 1400px !important;
    margin: 40px auto !important;
    padding: 0 30px !important;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important;
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Assurer que le formulaire checkout utilise le grid */
body.woocommerce-checkout form.checkout {
    display: block !important;
    width: 100% !important;
}

/* Layout en deux colonnes - CORRECTION GRID */
body.woocommerce-checkout .col2-set,
body.woocommerce-checkout #customer_details {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 40px !important;
    margin-bottom: 40px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    clear: both !important; /* Annule les floats */
    overflow: visible !important;
}

/* CORRECTION CRITIQUE : Désactiver les pseudo-éléments clearfix qui cassent le grid */
body.woocommerce-checkout .woocommerce .col2-set::before,
body.woocommerce-checkout .woocommerce .col2-set::after,
body.woocommerce-checkout .woocommerce-page .col2-set::before,
body.woocommerce-checkout .woocommerce-page .col2-set::after,
body.woocommerce-checkout .col2-set::before,
body.woocommerce-checkout .col2-set::after {
    content: none !important;
    display: none !important;
}

/* Colonnes individuelles - CORRECTION pour le grid */
body.woocommerce-checkout .col-1,
body.woocommerce-checkout .col-2 {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    float: none !important; /* Annule les floats WooCommerce */
    display: block !important; /* Assure que c'est un block pour le grid */
    box-sizing: border-box !important;
    margin-left: 0 !important; /* Annule les marges de float */
    margin-right: 0 !important;
    clear: none !important; /* Pas de clear dans le grid */
    position: relative !important; /* Pour le positionnement interne */
}

/* Sections de formulaire - Styles renforcés */
body.woocommerce-checkout .woocommerce-billing-fields,
body.woocommerce-checkout .woocommerce-shipping-fields,
body.woocommerce-checkout #billing,
body.woocommerce-checkout #shipping {
    background: #fff !important;
    padding: 35px !important;
    border-radius: 20px !important;
    border: 1px solid var(--border-color) !important;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08) !important;
}

/* Styles pour les colonnes col-1 et col-2 */
body.woocommerce-checkout .col-1,
body.woocommerce-checkout .col-2 {
    background: #fff !important;
    padding: 35px !important;
    /* border-radius: 20px !important; - Désactivé */
    /* border: 1px solid var(--border-color) !important; - Désactivé */
    /* box-shadow: 0 5px 20px rgba(0,0,0,0.08) !important; - Désactivé */
    margin-bottom: 0 !important; /* Pas de margin-bottom dans le grid */
}

/* Wrapper des champs de formulaire */
body.woocommerce-checkout .woocommerce-billing-fields__field-wrapper,
body.woocommerce-checkout .woocommerce-shipping-fields__field-wrapper,
body.woocommerce-checkout .woocommerce-additional-fields__field-wrapper {
    margin-top: 20px !important;
}

/* Wrapper des inputs WooCommerce */
body.woocommerce-checkout .woocommerce-input-wrapper {
    display: block !important;
    width: 100% !important;
}

/* Assurer que les inputs dans les wrappers sont stylisés */
body.woocommerce-checkout .woocommerce-input-wrapper .input-text {
    width: 100% !important;
    padding: 14px 18px !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 12px !important;
    font-size: 1rem !important;
    background: #fff !important;
    color: var(--text-dark) !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05) !important;
    transition: all 0.3s ease !important;
}

body.woocommerce-checkout .woocommerce-input-wrapper .input-text:focus {
    outline: none !important;
    border-color: var(--brand-green) !important;
    box-shadow: 0 0 0 3px rgba(140, 191, 63, 0.15) !important;
}

/* Titres de section - Styles renforcés - SÉLECTEURS PRÉCIS pour éviter le footer */
body.woocommerce-checkout .woocommerce-billing-fields h3,
body.woocommerce-checkout .woocommerce-shipping-fields h3,
body.woocommerce-checkout .woocommerce-checkout-review-order h3,
body.woocommerce-checkout #order_review_heading,
body.woocommerce-checkout .col-1 h3,
body.woocommerce-checkout .col-2 h3,
body.woocommerce-checkout #ship-to-different-address h3 {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    color: var(--text-dark) !important;
    margin-bottom: 25px !important;
    padding-bottom: 15px !important;
    border-bottom: 2px solid var(--brand-green) !important;
}

/* Exclure explicitement les h3 du footer */
body.woocommerce-checkout .jenile-modern-footer h3,
body.woocommerce-checkout .jenile-footer-container h3,
body.woocommerce-checkout footer h3 {
    border-bottom: none !important;
    padding-bottom: 0 !important;
}

/* Champs de formulaire - Styles renforcés avec !important */
/* Cibler tous les inputs dans les wrappers WooCommerce */
body.woocommerce-checkout .form-row input[type="text"],
body.woocommerce-checkout .form-row input[type="email"],
body.woocommerce-checkout .form-row input[type="tel"],
body.woocommerce-checkout .form-row input[type="number"],
body.woocommerce-checkout .form-row input[type="password"],
body.woocommerce-checkout .form-row select,
body.woocommerce-checkout .form-row textarea,
body.woocommerce-checkout input[type="text"],
body.woocommerce-checkout input[type="email"],
body.woocommerce-checkout input[type="tel"],
body.woocommerce-checkout select,
body.woocommerce-checkout textarea,
body.woocommerce-checkout .input-text,
body.woocommerce-checkout .woocommerce-input-wrapper input,
body.woocommerce-checkout .woocommerce-input-wrapper select,
body.woocommerce-checkout .woocommerce-input-wrapper textarea,
body.woocommerce-checkout .woocommerce-billing-fields__field-wrapper input,
body.woocommerce-checkout .woocommerce-billing-fields__field-wrapper select,
body.woocommerce-checkout .woocommerce-billing-fields__field-wrapper textarea,
body.woocommerce-checkout .woocommerce-shipping-fields__field-wrapper input,
body.woocommerce-checkout .woocommerce-shipping-fields__field-wrapper select,
body.woocommerce-checkout .woocommerce-shipping-fields__field-wrapper textarea {
    width: 100% !important;
    padding: 14px 18px !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 12px !important;
    font-size: 1rem !important;
    font-family: inherit !important;
    background: #fff !important;
    color: var(--text-dark) !important;
    transition: all 0.3s ease !important;
    box-sizing: border-box !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05) !important;
}

body.woocommerce-checkout .form-row input:focus,
body.woocommerce-checkout .form-row select:focus,
body.woocommerce-checkout .form-row textarea:focus,
body.woocommerce-checkout input:focus,
body.woocommerce-checkout select:focus,
body.woocommerce-checkout textarea:focus,
body.woocommerce-checkout .input-text:focus,
body.woocommerce-checkout .woocommerce-input-wrapper input:focus,
body.woocommerce-checkout .woocommerce-input-wrapper select:focus,
body.woocommerce-checkout .woocommerce-input-wrapper textarea:focus {
    outline: none !important;
    border-color: var(--brand-green) !important;
    box-shadow: 0 0 0 3px rgba(140, 191, 63, 0.15) !important;
}

/* Labels - Styles renforcés */
body.woocommerce-checkout .form-row label,
body.woocommerce-checkout label {
    font-weight: 600 !important;
    color: var(--text-dark) !important;
    margin-bottom: 8px !important;
    display: block !important;
    font-size: 0.95rem !important;
}

/* Champs requis */
body.woocommerce-checkout .form-row.required label::after {
    content: ' *';
    color: #e74c3c;
}

/* Espacement entre les champs - Styles renforcés */
body.woocommerce-checkout .form-row {
    margin-bottom: 20px !important;
}

/* Assurer que tous les champs dans les sections billing/shipping sont stylisés */
body.woocommerce-checkout #billing input,
body.woocommerce-checkout #billing select,
body.woocommerce-checkout #billing textarea,
body.woocommerce-checkout #shipping input,
body.woocommerce-checkout #shipping select,
body.woocommerce-checkout #shipping textarea,
body.woocommerce-checkout .shipping_address input,
body.woocommerce-checkout .shipping_address select,
body.woocommerce-checkout .shipping_address textarea {
    width: 100% !important;
    padding: 14px 18px !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 12px !important;
    font-size: 1rem !important;
    background: #fff !important;
    color: var(--text-dark) !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05) !important;
}

body.woocommerce-checkout #billing input:focus,
body.woocommerce-checkout #billing select:focus,
body.woocommerce-checkout #billing textarea:focus,
body.woocommerce-checkout #shipping input:focus,
body.woocommerce-checkout #shipping select:focus,
body.woocommerce-checkout #shipping textarea:focus,
body.woocommerce-checkout .shipping_address input:focus,
body.woocommerce-checkout .shipping_address select:focus,
body.woocommerce-checkout .shipping_address textarea:focus {
    outline: none !important;
    border-color: var(--brand-green) !important;
    box-shadow: 0 0 0 3px rgba(140, 191, 63, 0.15) !important;
}

/* Styliser Select2 (pour les selects de pays) */
body.woocommerce-checkout .select2-container--default .select2-selection--single {
    height: auto !important;
    min-height: 48px !important;
    padding: 12px 40px 12px 18px !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 12px !important;
    background: #fff !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05) !important;
    transition: all 0.3s ease !important;
}

body.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 1.5 !important;
    padding: 0 !important;
    color: var(--text-dark) !important;
    font-size: 1rem !important;
}

body.woocommerce-checkout .select2-container--default.select2-container--focus .select2-selection--single,
body.woocommerce-checkout .select2-container--default.select2-container--open .select2-selection--single {
    border-color: var(--brand-green) !important;
    box-shadow: 0 0 0 3px rgba(140, 191, 63, 0.15) !important;
}

body.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100% !important;
    right: 12px !important;
    top: 0 !important;
}

body.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: var(--text-dark) transparent transparent transparent !important;
    border-width: 6px 5px 0 5px !important;
    margin-top: -3px !important;
}

/* Dropdown Select2 */
body.woocommerce-checkout .select2-dropdown {
    border: 1px solid var(--border-color) !important;
    border-radius: 12px !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1) !important;
    margin-top: 5px !important;
}

body.woocommerce-checkout .select2-results__option {
    padding: 12px 18px !important;
    font-size: 1rem !important;
}

body.woocommerce-checkout .select2-results__option--highlighted {
    background: var(--brand-green) !important;
    color: #fff !important;
}

/* Checkbox et radio */
body.woocommerce-checkout .form-row input[type="checkbox"],
body.woocommerce-checkout .form-row input[type="radio"] {
    width: auto;
    margin-right: 8px;
    accent-color: var(--brand-green);
}

body.woocommerce-checkout .form-row label.checkbox {
    display: flex;
    align-items: center;
    font-weight: normal;
    cursor: pointer;
}

/* Section récapitulatif de commande - Styles renforcés */
body.woocommerce-checkout .woocommerce-checkout-review-order,
body.woocommerce-checkout #order_review {
    background: #fff !important;
    padding: 35px !important;
    border-radius: 20px !important;
    border: 1px solid var(--border-color) !important;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08) !important;
    position: sticky !important;
    top: 30px !important;
    margin-top: 0 !important;
}

/* Titre "Votre commande" */
body.woocommerce-checkout #order_review_heading {
    background: #fff !important;
    padding: 35px 35px 0 35px !important;
    border-radius: 20px 20px 0 0 !important;
    border: 1px solid var(--border-color) !important;
    border-bottom: none !important;
    margin-bottom: 0 !important;
    margin-top: 40px !important;
}

/* Titre du récapitulatif */
body.woocommerce-checkout .woocommerce-checkout-review-order h3 {
    margin-top: 0;
}

/* Tableau de commande - Design amélioré */
body.woocommerce-checkout .shop_table {
    width: 100% !important;
    border: none !important;
    border-spacing: 0 !important;
    margin-bottom: 25px !important;
}

body.woocommerce-checkout .shop_table thead {
    display: none !important; /* Cache l'en-tête sur desktop */
}

/* Lignes des produits */
body.woocommerce-checkout .shop_table tbody tr {
    border-bottom: 1px solid #eee !important;
}

body.woocommerce-checkout .shop_table tbody tr:last-child {
    border-bottom: none !important;
}

body.woocommerce-checkout .shop_table tbody td {
    padding: 15px 0 !important;
    vertical-align: middle !important;
    border: none !important;
}

body.woocommerce-checkout .shop_table .product-name {
    font-weight: 600 !important;
    color: var(--text-dark) !important;
}

body.woocommerce-checkout .shop_table .product-total {
    text-align: right !important;
    font-weight: 600 !important;
    color: var(--text-dark) !important;
}

/* Section récapitulatif (tfoot) - Design amélioré pour plus de clarté */
body.woocommerce-checkout .shop_table tfoot {
    border-top: 2px solid var(--border-color) !important;
    margin-top: 20px !important;
    padding-top: 20px !important;
}

body.woocommerce-checkout .shop_table tfoot tr {
    border-bottom: none !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    padding: 12px 0 !important;
    margin-bottom: 8px !important;
}

body.woocommerce-checkout .shop_table tfoot tr:last-child {
    margin-bottom: 0 !important;
}

body.woocommerce-checkout .shop_table tfoot th,
body.woocommerce-checkout .shop_table tfoot td {
    padding: 0 !important;
    border: none !important;
    vertical-align: top !important;
}

/* Label (Sous-total, Envoi, Total) */
body.woocommerce-checkout .shop_table tfoot th {
    font-weight: 600 !important;
    color: var(--text-dark) !important;
    font-size: 1rem !important;
    flex: 0 0 auto !important;
    margin-right: 20px !important;
    min-width: 120px !important;
}

/* Valeur (montants, texte) */
body.woocommerce-checkout .shop_table tfoot td {
    text-align: right !important;
    font-weight: 600 !important;
    color: var(--text-dark) !important;
    font-size: 1rem !important;
    flex: 1 1 auto !important;
    word-wrap: break-word !important;
}

/* Ligne Sous-total */
body.woocommerce-checkout .shop_table tfoot .cart-subtotal {
    padding-top: 5px !important;
}

body.woocommerce-checkout .shop_table tfoot .cart-subtotal th,
body.woocommerce-checkout .shop_table tfoot .cart-subtotal td {
    font-size: 1.05rem !important;
    color: var(--text-light) !important;
}

/* Ligne Envoi - Design amélioré */
body.woocommerce-checkout .shop_table tfoot .woocommerce-shipping-totals {
    padding-top: 5px !important;
}

body.woocommerce-checkout .shop_table tfoot .woocommerce-shipping-totals th {
    font-size: 1rem !important;
    color: var(--text-light) !important;
}

body.woocommerce-checkout .shop_table tfoot .woocommerce-shipping-totals td {
    font-size: 0.9rem !important;
    color: var(--text-light) !important;
    font-weight: normal !important;
    text-align: left !important; /* Texte descriptif aligné à gauche pour plus de clarté */
    line-height: 1.5 !important;
}

/* Ligne Total - Mise en évidence */
body.woocommerce-checkout .shop_table tfoot .order-total {
    border-top: 2px solid var(--border-color) !important;
    margin-top: 15px !important;
    padding-top: 20px !important;
    padding-bottom: 5px !important;
}

body.woocommerce-checkout .shop_table tfoot .order-total th,
body.woocommerce-checkout .shop_table tfoot .order-total td {
    font-size: 1.4rem !important;
    font-weight: 800 !important;
    color: var(--text-dark) !important;
    padding-top: 0 !important;
}

body.woocommerce-checkout .shop_table tfoot .order-total th {
    font-size: 1.3rem !important;
}

body.woocommerce-checkout .shop_table tfoot .order-total td {
    text-align: right !important;
    font-size: 1.5rem !important;
}

/* Méthodes de paiement */
body.woocommerce-checkout .wc_payment_methods {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
}

body.woocommerce-checkout .wc_payment_methods li {
    margin-bottom: 15px;
    padding: 15px;
    background: var(--bg-light);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

body.woocommerce-checkout .wc_payment_methods li:hover {
    border-color: var(--brand-green);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

body.woocommerce-checkout .wc_payment_methods label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    margin: 0;
}

body.woocommerce-checkout .wc_payment_methods input[type="radio"] {
    margin-right: 12px;
}

/* Bouton de commande - Styles renforcés */
body.woocommerce-checkout #place_order,
body.woocommerce-checkout button#place_order {
    width: 100% !important;
    background: #111 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 20px !important;
    font-size: 1.2rem !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1) !important;
}

body.woocommerce-checkout #place_order:hover,
body.woocommerce-checkout button#place_order:hover {
    background: #333 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2) !important;
}

body.woocommerce-checkout #place_order:disabled,
body.woocommerce-checkout button#place_order:disabled {
    opacity: 0.6 !important;
    cursor: not-allowed !important;
    transform: none !important;
}

/* Messages d'erreur et info - Correction de la bordure bleue */
body.woocommerce-checkout .woocommerce-error,
body.woocommerce-checkout .woocommerce-info,
body.woocommerce-checkout .woocommerce-message,
body.woocommerce-checkout .woocommerce-info[role="alert"],
body.woocommerce-checkout .woocommerce .woocommerce-info {
    background: #fff !important;
    border-left: 5px solid !important;
    border-radius: 12px !important;
    padding: 20px 25px !important;
    margin-bottom: 25px !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08) !important;
}

body.woocommerce-checkout .woocommerce-error {
    border-left-color: #e74c3c !important;
    color: #c0392b !important;
}

/* CORRECTION : Bordure verte au lieu de bleue pour les messages info */
body.woocommerce-checkout .woocommerce-info,
body.woocommerce-checkout .woocommerce-info[role="alert"],
body.woocommerce-checkout .woocommerce .woocommerce-info {
    border-left-color: var(--brand-green) !important;
    color: #27ae60 !important;
}

body.woocommerce-checkout .woocommerce-message {
    border-left-color: var(--brand-green) !important;
    color: #27ae60 !important;
}

/* Liens dans les messages */
body.woocommerce-checkout .woocommerce-error a,
body.woocommerce-checkout .woocommerce-info a,
body.woocommerce-checkout .woocommerce-message a {
    color: inherit;
    text-decoration: underline;
    font-weight: 600;
}

/* Coupon code - Styles renforcés */
body.woocommerce-checkout .woocommerce-form-coupon,
body.woocommerce-checkout .checkout_coupon {
    background: var(--bg-light) !important;
    padding: 25px !important;
    border-radius: 12px !important;
    margin-bottom: 30px !important;
    border: 1px solid var(--border-color) !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05) !important;
}

body.woocommerce-checkout .woocommerce-form-coupon .form-row-first {
    flex: 1;
}

body.woocommerce-checkout .woocommerce-form-coupon .form-row-last {
    margin-left: 15px;
}

body.woocommerce-checkout .woocommerce-form-coupon input[type="text"] {
    width: 100%;
}

body.woocommerce-checkout .woocommerce-form-coupon button {
    background: var(--brand-green);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 14px 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

body.woocommerce-checkout .woocommerce-form-coupon button:hover {
    background: var(--brand-green-dark);
    transform: translateY(-2px);
}

/* Classes JavaScript pour validation visuelle */
body.woocommerce-checkout .form-row.jenile-field-focused input,
body.woocommerce-checkout .form-row.jenile-field-focused select,
body.woocommerce-checkout .form-row.jenile-field-focused textarea {
    border-color: var(--brand-green);
    box-shadow: 0 0 0 3px rgba(140, 191, 63, 0.15);
}

body.woocommerce-checkout .form-row.jenile-field-filled input,
body.woocommerce-checkout .form-row.jenile-field-filled select,
body.woocommerce-checkout .form-row.jenile-field-filled textarea {
    border-color: #27ae60;
}

body.woocommerce-checkout .form-row.jenile-field-valid input {
    border-color: #27ae60;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2327ae60' stroke-width='2'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

body.woocommerce-checkout .form-row.jenile-field-invalid input {
    border-color: #e74c3c;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23e74c3c' stroke-width='2'%3E%3Cline x1='18' y1='6' x2='6' y2='18'%3E%3C/line%3E%3Cline x1='6' y1='6' x2='18' y2='18'%3E%3C/line%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

/* Bouton en cours de traitement */
body.woocommerce-checkout #place_order.jenile-processing {
    opacity: 0.7;
    cursor: wait;
    position: relative;
}

body.woocommerce-checkout #place_order.jenile-processing::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: jenile-spin 0.6s linear infinite;
}

@keyframes jenile-spin {
    to { transform: rotate(360deg); }
}

/* Responsive - Mobile */
@media (max-width: 900px) {
    body.woocommerce-checkout .woocommerce {
        padding: 0 20px;
    }
    
    body.woocommerce-checkout .col2-set,
    body.woocommerce-checkout #customer_details {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
    
    body.woocommerce-checkout .col-1,
    body.woocommerce-checkout .col-2 {
        margin-bottom: 30px !important;
    }
    
    body.woocommerce-checkout .woocommerce-billing-fields,
    body.woocommerce-checkout .woocommerce-shipping-fields,
    body.woocommerce-checkout .woocommerce-checkout-review-order {
        padding: 25px 20px;
    }
    
    body.woocommerce-checkout .woocommerce-checkout-review-order {
        position: static; /* Plus sticky sur mobile */
    }
    
    body.woocommerce-checkout .woocommerce-form-coupon {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }
    
    body.woocommerce-checkout .woocommerce-form-coupon .form-row-last {
        margin-left: 0;
    }
    
    body.woocommerce-checkout .shop_table .product-total {
        text-align: left;
        margin-top: 5px;
    }
    
    body.woocommerce-checkout .shop_table td {
        display: block;
        padding: 10px 0;
    }
    
    body.woocommerce-checkout .shop_table td::before {
        content: attr(data-label);
        font-weight: 600;
        display: block;
        margin-bottom: 5px;
        color: var(--text-light);
    }
}
