/* --- CHECKOUT --- */
.checkout-product-name { display: inline-flex; align-items: center; }
.checkout-product-name .remove { color: red; font-size: 16px; margin-left: 10px; text-decoration: none; }
.checkout-product-name .remove:hover { color: darkred; }

/* WOOPAYMENT */

/* --- 1. NETTOYAGE (Masquer les éléments inutiles & Admin) --- */
.wpa-test-msg,
.woocommerce-error,
.woocommerce-message,
.woocommerce-info,
#order_review_heading {
display: none !important;
}

/* --- 2. STRUCTURE GLOBALE (Tunnel Centré) --- */
form.woocommerce-checkout {
display: block !important;
max-width: 500px !important; /* Largeur idéale type "Ticket" */
margin: 40px auto !important;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
}

/* FIX MYLISTING : On "débloque" le conteneur du thème pour qu'il soit transparent */
.ts-billing-details,
.ts-billing-details.element {
width: 100% !important;
float: none !important;
background: transparent !important;
padding: 0 !important;
border: none !important;
box-shadow: none !important;
}

/* Force les colonnes internes à 100% */
.col2-set,
.col2-set .col-1,
#customer_details {
width: 100% !important;
float: none !important;
max-width: 100% !important;
flex: 0 0 100% !important;
margin-right: 0 !important;
}

/* Cache la colonne expédition vide */
.col2-set .col-2 {
position: absolute !important;
left: -9999px !important;
visibility: hidden !important;
}


/* --- 3. DESIGN DES CARTES (Facturation & Paiement) --- */
#customer_details,
.woocommerce-checkout-review-order {
background: #ffffff !important;
padding: 30px !important;
border-radius: 16px !important;
box-shadow: 0 4px 20px rgba(0,0,0,0.04) !important;
border: 1px solid #f0f0f0 !important;
margin-bottom: 25px !important;
width: 100% !important;
box-sizing: border-box !important;
float: none !important;
clear: both !important;
}

/* Titre Section */
.woocommerce-billing-fields h3 {
margin-top: 0 !important;
font-size: 18px !important;
font-weight: 700 !important;
border-bottom: 1px solid #f5f5f5;
padding-bottom: 15px;
margin-bottom: 20px;
color: #202125;
text-align: left !important;
}

/* --- 4. CHAMPS & INPUTS --- */
/* Alignement Prénom / Nom côte à côte (Gain de place) */
.woocommerce form .form-row { width: 100% !important; float: none !important; margin-bottom: 12px !important; }

#billing_first_name_field,
#billing_last_name_field {
width: 48% !important;
float: left !important;
margin-right: 0 !important;
clear: none !important;
}
#billing_last_name_field {
float: right !important;
}
.woocommerce-billing-fields__field-wrapper::after { content: ""; display: table; clear: both; }

/* Style des Inputs */
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row select {
padding: 12px 15px !important;
border-radius: 8px !important;
background-color: #fafafa !important;
border: 1px solid #e0e0e0 !important;
font-size: 14px !important;
width: 100% !important;
box-sizing: border-box !important;
}

.woocommerce form .form-row input.input-text:focus {
background-color: #fff !important;
border-color: #F24286 !important;
box-shadow: 0 0 0 3px rgba(242, 66, 134, 0.1) !important;
}

.woocommerce form .form-row label {
margin-left: 2px;
font-weight: 600 !important;
font-size: 12px !important;
color: #555;
margin-bottom: 5px !important;
display: block !important;
}


/* --- 5. TABLEAU PRODUITS (Pour la suppression) --- */
.woocommerce-checkout-review-order-table {
margin-bottom: 20px !important;
border: none !important;
width: 100% !important;
}
/* Cache l'entête et le sous-total redondant */
.woocommerce-checkout-review-order-table thead,
.woocommerce-checkout-review-order-table tfoot .cart-subtotal {
display: none !important;
}

/* Ligne Produit Épurée */
.woocommerce-checkout-review-order-table td {
padding: 10px 0 !important;
border-top: none !important;
border-bottom: 1px dashed #eee !important;
font-size: 14px !important;
color: #555 !important;
}
.product-name { font-weight: 500 !important; color: #333 !important; }

/* CROIX DE SUPPRESSION (Rouge et visible) */
.product-remove { display: block !important; width: 20px; }
.remove {
color: #ff4d4d !important;
font-weight: bold !important;
font-size: 20px !important;
text-decoration: none !important;
line-height: 1 !important;
display: block !important;
}
.remove:hover { color: #cc0000 !important; background: transparent !important; }


/* --- 6. PAIEMENT & HERO PRICE --- */
/* Total en mode "Héros" */
.order-total th { display: none !important; }
.order-total td {
text-align: center !important;
padding-top: 20px !important;
border: none !important;
display: block !important;
width: 100% !important;
}
.order-total .amount {
display: block;
font-size: 32px !important;
color: #F24286 !important;
font-weight: 800 !important;
margin-bottom: 5px !important;
letter-spacing: -1px;
}
/* --- TRADUCTION : TOTAL À PAYER --- */

/* Version Française (Par défaut) */
.order-total td::before {
    content: "Total à payer" !important;
    display: block !important;
    font-size: 12px !important;
    color: #888 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    font-weight: 600 !important;
}

/* Version Néerlandaise */
.lang-nl .order-total td::before,
[lang="nl-BE"] .order-total td::before {
    content: "Totaal te betalen" !important;
}

/* Méthodes de paiement */
.wc_payment_methods {
margin-bottom: 20px !important;
background: #f9f9f9;
padding: 15px !important;
border-radius: 10px;
border: 1px solid #eee;
}
.wc_payment_method { margin-bottom: 10px !important; font-size: 14px !important; }

/* Bouton Action */
#place_order {
background-color: #F24286 !important;
color: #fff !important;
font-size: 16px !important;
font-weight: 700 !important;
padding: 18px !important;
border-radius: 12px !important;
width: 100% !important;
margin-top: 10px !important;
box-shadow: 0 8px 25px rgba(242, 66, 134, 0.25) !important;
border: none !important;
text-transform: uppercase;
letter-spacing: 0.5px;
transition: transform 0.2s;
}
#place_order:hover { transform: translateY(-2px); }

/* Texte légal discret */
.woocommerce-privacy-policy-text {
font-size: 11px !important;
color: #aaa !important;
text-align: center;
margin-top: 15px;
line-height: 1.4;
}
.woocommerce-terms-and-conditions-wrapper { padding: 0 !important; background: transparent !important; }


/******* woocommerce validation de commande ****/
/* Amélioration Page Confirmation Commande */
.woocommerce-order {
max-width: 800px;
margin: 0 auto;
background: #fff;
padding: 40px;
border-radius: 12px;
box-shadow: 0 10px 30px rgba(0,0,0,0.05);
text-align: center;
}

/* Le message de succès */
.woocommerce-notice.woocommerce-notice--success {
background-color: #e8f5e9;
color: #2e7d32;
padding: 20px;
border-radius: 8px;
margin-bottom: 30px;
font-size: 1.2em;
font-weight: bold;
}

/* La liste des détails (Numéro, Date, etc) */
ul.woocommerce-order-overview {
display: flex;
justify-content: space-between;
list-style: none;
padding: 20px 0;
margin-bottom: 40px;
border-bottom: 1px solid #eee;
flex-wrap: wrap;
gap: 20px;
}

ul.woocommerce-order-overview li {
flex: 1;
text-align: center;
border-right: 1px solid #eee;
padding: 0 10px;
}
ul.woocommerce-order-overview li:last-child { border-right: none; }

ul.woocommerce-order-overview li strong {
display: block;
font-size: 1.1em;
margin-top: 5px;
color: #333;
}

/* ============================================================
NETTOYAGE PAGE "COMMANDE REÇUE" (Suppression du doublon)
============================================================ */

/* 1. Masquer l'en-tête du thème "Commande enregistrée" + l'icône panier */
.woocommerce-order-received .element .pf-head {
display: none !important;
}

/* 2. Rendre le conteneur externe transparent et sans bordure */
/* Cela supprime la "première boîte" blanche du thème */
.woocommerce-order-received .element {
background-color: transparent !important;
box-shadow: none !important;
border: none !important;
margin-bottom: 0 !important;
}

/* 3. Retirer les marges internes du conteneur pour remonter le tout */
.woocommerce-order-received .element .pf-body {
padding: 0 !important;
}

/* 4. Ajustement final : Remonter un peu le bloc principal */
.woocommerce-order-received .woocommerce-order {
margin-top: -20px !important; /* Remonte légèrement le bloc */
}

/* --- AMÉLIORATION PAGE REÇU (THANK YOU) --- */

/* Masquer les détails techniques inutiles */
.woocommerce-customer-details,
.woocommerce-order-details {
display: none !important;
}

/* Conteneur du bouton : Centrage et espace */
.woocommerce-order-received .job-manager-submitted-paid-listing-actions {
text-align: center !important;
margin-top: 30px !important;
margin-bottom: 40px !important;
padding-top: 20px !important; /* Espace pour l'animation hover */
overflow: visible !important;
display: block !important;
}

/* Le Bouton : Style de marque (Rose) */
.woocommerce-order-received .job-manager-submitted-paid-listing-actions .button {
display: inline-block !important;
float: none !important;
position: relative !important;
z-index: 10 !important;
background-color: #F24286 !important; /* Rose AllezGo */
color: #ffffff !important;
border-radius: 50px !important;
font-weight: 700 !important;
font-size: 14px !important;
text-transform: uppercase !important;
padding: 15px 35px !important;
border: none !important;
box-shadow: 0 4px 15px rgba(242, 66, 134, 0.3) !important;
transition: all 0.3s ease !important;
}

/* Le Bouton : Survol */
.woocommerce-order-received .job-manager-submitted-paid-listing-actions .button:hover {
background-color: #d63c7b !important;
transform: translateY(-3px) !important;
box-shadow: 0 8px 25px rgba(242, 66, 134, 0.4) !important;
color: #ffffff !important;
}


/* Code CSS Permanent pour le checkout */
p.form-row.woocommerce-SavedPaymentMethods-saveNew {
display: flex !important;
flex-direction: row !important;
align-items: flex-start !important;
justify-content: flex-start !important;
gap: 10px !important;
margin-top: 10px !important;
}

p.form-row.woocommerce-SavedPaymentMethods-saveNew input[type="checkbox"] {
width: 16px !important;
height: 16px !important;
min-width: 16px !important;
margin: 3px 0 0 0 !important;
position: static !important;
float: none !important;
}

p.form-row.woocommerce-SavedPaymentMethods-saveNew label {
width: auto !important;
margin: 0 !important;
display: inline-block !important;
padding: 0 !important;
line-height: 1.4 !important;
}

/* --- GLOBAL NOTIFICATION ICONS (SVG) --- */
.woocommerce-error, .woocommerce-message, .woocommerce-info {
    padding: 14px 20px 14px 55px !important;
    border-radius: 8px;
    list-style: none !important;
    position: relative !important;
}
/* Couleurs */
.woocommerce-info { background: #eff6ff !important; color: #1e40af !important; border: 1px solid #dbeafe !important; }
.woocommerce-error { background: #fef2f2 !important; color: #991b1b !important; border: 1px solid #fecaca !important; }
.woocommerce-message { background: #f0fdf4 !important; color: #166534 !important; border: 1px solid #bbf7d0 !important; }

/* L'icône SVG qui remplace le carré */
.woocommerce-error::before, .woocommerce-message::before, .woocommerce-info::before {
    content: "" !important;
    display: block !important;
    width: 24px !important;
    height: 24px !important;
    top: 50% !important;
    left: 15px !important;
    transform: translateY(-50%) !important;
    position: absolute !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    font-family: inherit !important; /* Neutralise l'icone carrée du thème */
}
/* Info (Bleu) */
.woocommerce-info::before { background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="%231e40af" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z" /></svg>') !important; }
/* Erreur (Rouge) */
.woocommerce-error::before { background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="%23991b1b" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z" /></svg>') !important; }
/* Succès (Vert) */
.woocommerce-message::before { background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="%23166534" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M5 13l4 4L19 7" /></svg>') !important; }


/* --- NOTIFICATIONS --- */
.col-md-12 > .woocommerce-message {
    background-color: #e6f4ea; border-left: 4px solid #34a853; color: #202124; padding: 16px 24px; border-radius: 8px; text-align: center; margin-top: 20px; font-size: 16px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); position: relative; transition: all 0.3s ease;
}
.col-md-12 > .woocommerce-message:before { display: none; }

/* Flash Animation */
@keyframes flashRed { 0% { color: grey; } 50% { color: red; } 100% { color: grey; } }
div.promo-item-icon i:before, li a.listing-dashboard-action-promote::before {
    content: "\f0a1"; font-family: "Font Awesome 5 Free" !important; font-weight: 600; color: grey; animation: flashRed 3s ease-in-out 1;
}


/* =================================================================
   PAGE RÉINITIALISATION MOT DE PASSE (CORRIGÉE & FRANÇAIS)
   ================================================================= */

/* --- 1. NETTOYAGE DU CONTENEUR MYLISTING --- */
.form-lost-pw .element {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
}

/* On cache l'en-tête par défaut pour mettre le nôtre */
.form-lost-pw .pf-head {
    display: none !important;
}

.form-lost-pw .pf-body {
    padding: 0 !important;
}

/* --- 2. DESIGN "CARTE" DU FORMULAIRE --- */
form.woocommerce-ResetPassword {
    background: #ffffff !important;
    padding: 40px !important;
    border-radius: 20px !important;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05) !important; /* Ombre douce */
    border: 1px solid #f0f0f0 !important;
    max-width: 500px !important;
    margin: 30px auto !important;
    position: relative;
}

/* --- 3. LE TITRE EN FRANÇAIS --- */
form.woocommerce-ResetPassword::before {
    content: "Réinitialisation du mot de passe"; /* ✅ Titre corrigé */
    display: block;
    font-size: 22px;
    font-weight: 800;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
    text-transform: uppercase;
}

/* Version Néerlandaise */
.lang-nl form.woocommerce-ResetPassword::before,
[lang="nl-BE"] form.woocommerce-ResetPassword::before {
    content: "Wachtwoord opnieuw instellen" !important;
}

/* Texte explicatif */
form.woocommerce-ResetPassword p {
    font-size: 14px !important;
    color: #666 !important;
    line-height: 1.5 !important;
    margin-bottom: 20px !important;
    text-align: center;
}

/* --- 4. CHAMPS DE SAISIE (PROPRES & BLANCS) --- */
.woocommerce-ResetPassword input.input-text {
    padding: 12px 15px !important;
    border-radius: 8px !important; /* Arrondi léger standard */
    background-color: #ffffff !important; /* ✅ Fond blanc */
    color: #333 !important;
    border: 1px solid #e0e0e0 !important;
    font-size: 15px !important;
    text-align: left !important; /* Texte à gauche (plus lisible) */
    width: 100% !important;
    margin-bottom: 5px !important;
    box-shadow: none !important;
}

/* --- STYLE BOUTON "ENREGISTRER" (Arrondi & Rose) --- */

/* On cible spécifiquement le bouton de soumission pour être sûr */
.woocommerce-ResetPassword button[type="submit"],
.woocommerce-lost_reset_password button[type="submit"] {
    background-color: #F24286 !important; /* Rose AllezGo */
    color: #ffffff !important;
    border-radius: 50px !important; /* L'arrondi "pilule" */
    padding: 15px 30px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    font-size: 14px !important;
    width: 100% !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(242, 66, 134, 0.3) !important;
    margin-top: 20px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

/* Effet au survol */
.woocommerce-ResetPassword button[type="submit"]:hover,
.woocommerce-lost_reset_password button[type="submit"]:hover {
    background-color: #d63c7b !important; /* Rose un peu plus foncé */
    transform: translateY(-3px) !important; /* Léger effet de levée */
    box-shadow: 0 8px 25px rgba(242, 66, 134, 0.4) !important;
}


/* Focus (quand on clique dedans) */
.woocommerce-ResetPassword input.input-text:focus {
    border-color: #F24286 !important;
    background-color: #fff !important;
    box-shadow: 0 0 0 3px rgba(242, 66, 134, 0.1) !important;
}

/* Réafficher les labels pour l'accessibilité */
.woocommerce-ResetPassword label {
    display: block !important;
    margin-bottom: 8px !important;
    font-weight: 600 !important;
    color: #444 !important;
    font-size: 13px !important;
    text-align: left;
}


/* --- 1. RESET DU CONTENEUR MYLISTING --- */
/* On efface le style "carré" par défaut du thème */
.form-confirm-pw .element {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
}

/* On cache l'en-tête gris avec le cadenas (pf-head) */
.form-confirm-pw .pf-head {
    display: none !important;
}

/* --- 2. CRÉATION DE LA CARTE CENTRÉE --- */
.form-confirm-pw .pf-body {
    background: #ffffff !important;
    padding: 50px 40px !important;
    border-radius: 20px !important; /* Arrondis modernes */
    box-shadow: 0 10px 40px rgba(0,0,0,0.05) !important;
    border: 1px solid #f0f0f0 !important;
    text-align: center !important; /* C'EST ICI QUE LE CENTRAGE SE FAIT */
    max-width: 500px !important;
    margin: 0 auto !important;
}

/* --- 3. ICONE FLOTTANTE (Enveloppe) --- */
/* On ajoute une icône avant tout le contenu */
.form-confirm-pw .pf-body::before {
    content: "📩"; 
    font-size: 60px;
    display: block;
    margin-bottom: 25px;
    animation: float 3s ease-in-out infinite;
}

/* --- 4. LE TITRE (Anciennement la barre verte WooCommerce) --- */
/* On transforme le message d'alerte en un joli titre */
.form-confirm-pw .woocommerce-message {
    background-color: transparent !important;
    border: none !important;
    color: #202125 !important; /* Couleur foncée */
    font-size: 24px !important;
    font-weight: 800 !important;
    padding: 0 !important;
    margin-bottom: 15px !important;
    box-shadow: none !important;
    display: block !important;
}

/* On cache la petite icône 'check' par défaut de Woo car on a mis l'enveloppe */
.form-confirm-pw .woocommerce-message::before {
    display: none !important;
}

/* --- 5. LE TEXTE EXPLICATIF --- */
.form-confirm-pw p {
    font-size: 16px !important;
    color: #666 !important;
    line-height: 1.6 !important;
    margin: 0 !important;
}

/* Animation douce pour l'enveloppe */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}



/* Le bouton "Tableau de bord" */
.job-manager-submitted-paid-listing-actions .button {
    background-color: #f04c58;
    color: #fff;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: bold;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-block;
    margin-top: 20px;
}
.job-manager-submitted-paid-listing-actions .button:hover {
    background-color: #333;
    transform: translateY(-2px);
}
