/* =================================================================
   12. DESIGN NAVIGATION MON COMPTE (Barre Horizontale Centrée - FINALE)
   ================================================================= */
/* =========================================================
   MENU MON COMPTE — DESKTOP (INCHANGÉ)
   ========================================================= */

/* 1. Conteneur */
.woocommerce-MyAccount-navigation ul {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 26px !important;

    padding: 9px 0 !important;
    margin: 0px auto 0px auto !important;
    max-width: 900px !important;

    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* 2. Items */
.woocommerce-MyAccount-navigation li {
    margin: 0 !important;
}

/* 3. Liens */
.woocommerce-MyAccount-navigation li a {
    position: relative;
    display: flex !important;
    align-items: center !important;
    gap: 8px;

    padding: 6px 2px !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;

    color: #555 !important;
    text-decoration: none !important;
    background: none !important;
    border: none !important;

    transition: color 0.2s ease;
}

/* 4. Icônes */
.woocommerce-MyAccount-navigation li a i {
    font-size: 14px !important;
    color: #F24286 !important;
    transition: transform 0.25s ease;
}

/* 5. Hover (fun discret) */
.woocommerce-MyAccount-navigation li a:hover {
    color: #F24286 !important;
}

.woocommerce-MyAccount-navigation li a:hover i {
    transform: translateY(-1px);
}

/* 6. État actif (signature visuelle) */
.woocommerce-MyAccount-navigation li.current-menu-item a {
    color: #F24286 !important;
}

.woocommerce-MyAccount-navigation li.current-menu-item a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -6px;
    width: 22px;
    height: 2px;
    background: #F24286;
    border-radius: 2px;
    transform: translateX(-50%);
}

/* 7. Déconnexion (plus neutre) */
.woocommerce-MyAccount-navigation li a[href*="logout"] {
    opacity: 0.55;
}

.woocommerce-MyAccount-navigation li a[href*="logout"]:hover {
    opacity: 1;
    color: #e74c3c !important;
}

/* 8. Neutralisation MyListing */
.cts-carousel {
    --accent: transparent !important;
}

.mlduo-account-menu {
    border-bottom: 0 !important;
}

/* =========================================================
   MENU MON COMPTE — MOBILE / PETITS ÉCRANS
   ========================================================= */

@media (max-width: 768px) {

    /* Conteneur : une seule ligne */
    .woocommerce-MyAccount-navigation ul {
        flex-wrap: nowrap !important;
        justify-content: flex-start !important;

        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;

        gap: 18px !important;
        padding: 6px 12px !important;
        max-width: 100% !important;
    }

    /* Masque la scrollbar (clean) */
    .woocommerce-MyAccount-navigation ul::-webkit-scrollbar {
        display: none;
    }

    /* Items : pas de retour à la ligne */
    .woocommerce-MyAccount-navigation li {
        flex: 0 0 auto !important;
        white-space: nowrap;
    }

    /* Liens plus compacts */
    .woocommerce-MyAccount-navigation li a {
        font-size: 12.5px !important;
        padding: 4px 2px !important;
    }

    /* Icônes légèrement réduites */
    .woocommerce-MyAccount-navigation li a i {
        font-size: 13px !important;
    }

    /* Underline plus discret */
    .woocommerce-MyAccount-navigation li.current-menu-item a::after {
        width: 16px;
        bottom: -4px;
    }
}

/* =================================================================
   FIX MENU MOBILE (Utilisateur & Langue)
   ================================================================= */
/* =================================================================
   FIX MENU MOBILE (Basé sur ton code source)
   ================================================================= */

/* --- 1. LE BOUTON NL (Style "Badge" coloré) --- */
/* On cible l'ID exact présent dans ton HTML : menu-item-7506 */
#menu-item-7506 a {
    /* FORCE le fond coloré (écrase le blanc du thème) */
    background: linear-gradient(135deg, #f04c58 0%, #ffb200 100%) !important;
    color: #ffffff !important; /* Texte blanc forcé */
    
    /* Forme ronde */
    display: inline-flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 35px !important;
    height: 35px !important;
    border-radius: 50% !important;
    border: none !important;
    
    /* Typographie */
    font-weight: 800 !important;
    font-size: 11px !important;
    text-transform: uppercase !important;
    box-shadow: 0 4px 10px rgba(240, 76, 88, 0.4) !important;
    padding: 0 !important;
    margin-top: 5px !important;
}
/* --- 2. L'EFFET AU SURVOL (Le "Pop") --- */
#menu-item-7506 a:hover {
    transform: scale(1.15) rotate(5deg) !important; /* Grossit et penche un peu */
    box-shadow: 0 8px 20px rgba(240, 76, 88, 0.6) !important; /* L'ombre s'intensifie */
    color: #fff !important; /* Reste blanc */
}
/* --- 2. DÉSACTIVER LE PROFIL EN DOUBLE (Haut du menu) --- */
/* Ton HTML utilise la classe .user-profile-dropdown dans .mobile-nav-head */

/* On désactive les clics sur tout le bloc profil du haut */
.mobile-nav-head .user-profile-dropdown {
    pointer-events: none !important; /* Le clic passe au travers */
    cursor: default !important;
}

/* On cache la petite flèche (submenu-toggle) */
.mobile-nav-head .user-profile-dropdown .submenu-toggle,
.mobile-nav-head .user-profile-dropdown i.mi.arrow_drop_down {
    display: none !important;
}

/* On s'assure que l'avatar et le nom restent bien visibles */
.mobile-nav-head .user-profile-dropdown .avatar,
.mobile-nav-head .user-profile-dropdown .user-profile-name {
    opacity: 1 !important;
    display: flex !important; /* Garde l'alignement */
    color: #333 !important; /* Couleur du texte sombre */
}

/* =================================================================
   DESIGN ACTIONS MES ANNONCES (Booster, Éditer, etc.)
   ================================================================= */

/* 1. Nettoyage du conteneur */
ul.job-dashboard-actions {
    display: flex !important;
    justify-content: center !important; /* Centre les boutons sous la carte */
    align-items: center !important;
    gap: 15px !important; /* Espace entre les boutons */
    margin-top: 15px !important;
    padding: 0 !important;
    list-style: none !important;
    border-top: 1px solid #f0f0f0 !important; /* Petite ligne de séparation */
    padding-top: 15px !important;
}

/* 2. Style de base des éléments (li) */
ul.job-dashboard-actions li {
    margin: 0 !important;
    padding: 0 !important;
    border: none !important; /* Enlève les bordures par défaut du thème */
    background: transparent !important;
    width: auto !important;
}

/* 3. Style du lien (Texte + Icône) */
ul.job-dashboard-actions li a {
    display: flex !important;
    flex-direction: column !important; /* Icône au-dessus, texte en dessous */
    align-items: center !important;
    justify-content: center !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    color: #888 !important; /* Couleur du texte par défaut */
    text-decoration: none !important;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important; /* Animation rebond */
}

/* 4. DESIGN DES ICÔNES (Le cercle coloré) */
/* MyListing place l'icône dans le ::before du lien */
ul.job-dashboard-actions li a::before {
    font-family: "Material Icons"; /* S'assure que c'est la bonne police */
    font-size: 22px !important;
    width: 46px !important;
    height: 46px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important; /* Rond parfait */
    background-color: #f3f4f6 !important; /* Fond gris clair par défaut */
    color: #555 !important; /* Icône grise par défaut */
    margin-bottom: 6px !important;
    margin-right: 0 !important; /* Corrige le décalage du thème */
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05) !important;
    padding: 0 !important;
}

/* --- 5. COULEURS SPÉCIFIQUES PAR ACTION dans Mes annonces--- */

/* CORRECTIF BOUTON BOOSTER SANS RÉSIDUS */
body.woocommerce-account ul.job-dashboard-actions li.cts-listing-action-promote a::before {
    content: "\f135" !important;
    font-family: "Font Awesome 5 Free" !important;
    font-weight: 900 !important;
    
    /* 1. ON SUPPRIME LES BORDURES ET OMBRES DU THÈME */
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: #ffffff !important; /* Fond blanc propre au repos */
    
    /* 2. STRUCTURE & CENTRAGE */
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
    font-size: 20px !important;
    color: #F24286 !important;
    border-radius: 50% !important;
    
    /* On rajoute une petite bordure rose fine pour le repos (propre) */
    box-shadow: 0 0 0 2px #F24286 !important; 
    
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

/* 3. AU SURVOL : DÉGRADÉ TOTAL SANS BAVURES */
body.woocommerce-account ul.job-dashboard-actions li.cts-listing-action-promote a:hover::before {
    /* On change la couleur de l'ombre pour qu'elle soit invisible ou assortie */
    box-shadow: 0 8px 20px rgba(242, 66, 134, 0.4) !important;
    
    background: linear-gradient(135deg, #FFBC00 0%, #F24286 100%) !important;
    color: #fff !important;
    transform: scale(1.1) translateY(-5px) rotate(15deg) !important;
}


/* ÉDITER (Bleu) */
.cts-listing-action-edit a:hover::before {
    background-color: #e0f2fe !important; /* Bleu très pâle */
    color: #0ea5e9 !important; /* Bleu vif */
}
.cts-listing-action-edit a:hover { color: #0ea5e9 !important; }

/* PAUSE (Orange) */
.cts-listing-action-status a:hover::before {
    background-color: #fff7ed !important;
    color: #f97316 !important;
}
.cts-listing-action-status a:hover { color: #f97316 !important; }

/* DUPLIQUER (Violet) */
.cts-listing-action-duplicate a:hover::before {
    background-color: #f3e8ff !important;
    color: #9333ea !important;
}
.cts-listing-action-duplicate a:hover { color: #9333ea !important; }

/* EFFACER (Rouge) */
.cts-listing-action-delete a:hover::before {
    background-color: #fef2f2 !important;
    color: #ef4444 !important;
}
.cts-listing-action-delete a:hover { color: #ef4444 !important; }

/* --- 6. ANIMATION GÉNÉRALE AU SURVOL --- */
ul.job-dashboard-actions li a:hover {
    transform: translateY(-3px); /* Le bouton remonte légèrement */
}

/* Petit fix pour l'icône "Chargement" si elle apparait */
ul.job-dashboard-actions li a.loading::after {
    display: none !important;
}

/* =================================================================
   FIX & DESIGN ACTIONS (CORRECTIF UNICODE)
   ================================================================= */

/* --- 1. DUPLIQUER (Icône : Deux feuilles) --- */
.cts-listing-action-duplicate a::before {
    content: "\e14d" !important; /* Code officiel pour 'content_copy' */
    font-family: "Material Icons" !important; /* Force la police Google */
}
/* Style au survol (Violet) */
.cts-listing-action-duplicate a:hover::before {
    background-color: #f3e8ff !important;
    color: #9333ea !important;
}
.cts-listing-action-duplicate a:hover { color: #9333ea !important; }


/* --- 2. EFFACER (Icône : Poubelle) --- */
.cts-listing-action-delete a::before {
    content: "\e872" !important; /* Code officiel pour 'delete' (Poubelle standard) */
    font-family: "Material Icons" !important;
}
/* Style au survol (Rouge) */
.cts-listing-action-delete a:hover::before {
    background-color: #fef2f2 !important;
    color: #ef4444 !important;
    transform: rotate(15deg); 
}
.cts-listing-action-delete a:hover { color: #ef4444 !important; }


/* --- 3. REPRENDRE (Icône : Play) --- */
.cts-listing-action-resume a::before {
    content: "\e037" !important; /* Code officiel pour 'play_arrow' */
    font-family: "Material Icons" !important;
    background: #ecfdf5 !important;   /* Vert très pâle */
    color: #10b981 !important;        /* Vert Émeraude */
}
/* Style au survol (Vert) */
.cts-listing-action-resume a:hover::before {
    background: #10b981 !important;
    color: #fff !important;
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.4) !important;
}
.cts-listing-action-resume a { color: #10b981 !important; }








/* --- DASHBOARD --- */
#job-manager-job-dashboard table ul.job-dashboard-actions li.cts-listing-action-switch { display: none !important; }
.package-available.dropup { display:none; }


/* =================================================================
   2. DESIGN DASHBOARD STATS (VOS BOITES DE COULEUR)
   ================================================================= */

/* Style global de la boîte (Arrondi + Ombre) */
.mlduo-stat-box.second {
    border-radius: 16px !important;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
    position: relative !important;
    overflow: hidden !important;
    border: none !important;
    padding: 25px !important;
}

/* Effet de survol (Lévitation) */
.stat-card:hover .mlduo-stat-box.second {
    transform: translateY(-5px) !important;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2) !important;
}

/* Typographie (Chiffres et Texte) */
.mlduo-stat-box.second h2 {
    font-size: 38px !important; 
    font-weight: 800 !important; 
    color: #fff !important; 
    margin-bottom: 5px !important; 
    text-shadow: 0 2px 5px rgba(0,0,0,0.1) !important;
}
.mlduo-stat-box.second p {
    font-size: 11px !important; 
    text-transform: uppercase !important; 
    letter-spacing: 1px !important; 
    font-weight: 700 !important; 
    color: rgba(255,255,255,0.9) !important;
}

/* Icône en fond (Transparente) */
.mlduo-stat-box.second i {
    font-size: 60px !important; 
    position: absolute !important; 
    right: 10px !important; 
    top: 50% !important; 
    transform: translateY(-50%) !important; 
    color: rgba(255,255,255,0.15) !important; 
    margin: 0 !important;
}

/* --- COULEURS ET DÉGRADÉS --- */

/* 1. PUBLIÉE (Vert) */
.stat-card-status-publish .mlduo-stat-box.second {
    background: linear-gradient(135deg, #4CAF50 0%, #8BC34A 100%) !important;
}

/* 2. EN ATTENTE (Orange AllezGo) - Remplace le gris #b0bec5 */
.stat-card-status-pending-approval .mlduo-stat-box.second {
    background: linear-gradient(135deg, #FF9800 0%, #FFC107 100%) !important;
}

/* 3. EXPIRÉE (Rouge) */
.stat-card-status-expired .mlduo-stat-box.second {
    background: linear-gradient(135deg, #F44336 0%, #E57373 100%) !important;
}

/* =================================================================
   3. NETTOYAGE DASHBOARD (Masquer filtres inutiles)
   ================================================================= */

/* Masque la colonne contenant le filtre "Filtrer par référencement" */
.woocommerce-account .col-md-3:has(.dashboard-filter-stats) {
    display: none !important;
}

/* Sécurité pour anciens navigateurs (masque juste le menu) */
.dashboard-filter-stats,
.dashboard-filter-stats + .select2-container {
    display: none !important;
}

/* =================================================================
   DESIGN DASHBOARD : MESSAGE DE BIENVENUE (CIBLAGE PRÉCIS)
   ================================================================= */

/* 1. On cible UNIQUEMENT la page Dashboard principale */
/* La classe .woocommerce-dashboard est la clé pour ne pas toucher "Mes annonces" */

.woocommerce-dashboard .woocommerce-MyAccount-content > .row:first-child {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    margin-bottom: 40px !important;
}

/* 2. Style du bloc "Bonjour..." (Seulement sur Dashboard) */
.woocommerce-dashboard .mlduo-welcome-message {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    text-align: center !important;
    padding: 0 !important;
}

/* Typographie du Titre */
.woocommerce-dashboard .mlduo-welcome-message h1 {
    font-weight: 800 !important;
    color: #333 !important;
    font-size: 2.5rem !important;
    display: inline-block !important;
    margin-bottom: 10px !important;
    line-height: 1.2 !important;
}

/* 3. L'Emoji Main Animé 👋 (Seulement sur Dashboard) */
.woocommerce-dashboard .mlduo-welcome-message h1::after {
    content: " 👋";
    display: inline-block;
    animation: wave 2.5s infinite;
    transform-origin: 70% 70%;
    margin-left: 10px;
}

/* 4. Le Sous-titre (Seulement sur Dashboard) */
.woocommerce-dashboard .mlduo-welcome-message::after {
    content: "Ravi de vous revoir ! Prêt à faire bouger la communauté ?";
    display: block;
    font-size: 1.1rem;
    color: #6b7280; /* Gris moderne */
    font-weight: 500;
    margin-top: 8px;
}

/* 5. Masquer les filtres inutiles (Seulement sur Dashboard) */
.woocommerce-dashboard .sort-my-listings, 
.woocommerce-dashboard .dashboard-filter-stats,
.woocommerce-dashboard .col-md-3:has(.dashboard-filter-stats) {
    display: none !important;
}

/* 6. Centrage des Cartes Statistiques (Seulement sur Dashboard) */
.woocommerce-dashboard .row.my-account-stat-box {
    display: flex !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
    gap: 20px !important;
    margin-bottom: 40px !important;
}

.woocommerce-dashboard .row.my-account-stat-box .col-md-3 {
    float: none !important;
    width: auto !important;
    min-width: 280px !important;
    flex: 0 0 auto !important;
    margin: 0 !important;
}

/* L'Animation */
@keyframes wave {
    0% { transform: rotate( 0.0deg) }
    10% { transform: rotate(14.0deg) }
    20% { transform: rotate(-8.0deg) }
    30% { transform: rotate(14.0deg) }
    40% { transform: rotate(-4.0deg) }
    50% { transform: rotate(10.0deg) }
    60% { transform: rotate( 0.0deg) }
    100% { transform: rotate( 0.0deg) }
}

/* --- MOBILE RESPONSIVE (Dashboard Uniquement) --- */
@media screen and (max-width: 768px) {
    .woocommerce-dashboard .mlduo-welcome-message h1 {
        font-size: 24px !important;
        line-height: 1.4 !important;
        white-space: normal !important;
    }
    .woocommerce-dashboard .mlduo-welcome-message::after {
        font-size: 14px !important;
        padding: 0 15px !important;
    }
    .woocommerce-dashboard .row.my-account-stat-box .col-md-3 {
        min-width: 0 !important;
        width: 100% !important;
        max-width: 340px !important;
        margin: 0 auto 15px auto !important;
    }
}


/***** bloc pas d'annonce en invitation à créer *****/
/* --- STYLE BLOC "AUCUNE ANNONCE" (Call to Action) --- */

/* 1. Le conteneur principal */
#job-manager-job-dashboard .no-listings.ag-styled-empty {
    background-color: #fff;
    border: 2px dashed #e0e0e0;
    border-radius: 20px;
    padding: 60px 20px;
    margin-top: 30px;
    
    /* 2. LA CLÉ DU CENTRAGE (Flexbox) */
    display: flex !important;
    flex-direction: column !important; /* Empile les éléments verticalement */
    align-items: center !important;    /* Centre horizontalement */
    justify-content: center !important;
    text-align: center !important;
}

/* 3. L'icône (Fusée) */
.ag-empty-state .ag-empty-icon {
    font-size: 50px;
    margin-bottom: 20px;
    display: inline-block;
    animation: agFloat 3s ease-in-out infinite;
    line-height: 1;
}

/* 4. Le Titre */
.ag-empty-state h3 {
    font-size: 22px;
    font-weight: 800;
    color: #333;
    margin: 0 0 0 0;
    width: 100%;
}

/* 5. Le Texte (Largeur augmentée pour éviter le saut de ligne du ?) */
.ag-empty-state p {
    color: #777;
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 25px;
    max-width: 700px !important; /* Augmenté de 500px à 700px */
}

/* 6. Le Bouton Rose (Centrage parfait) */
.ag-empty-state .ag-cta-btn {
    background-color: #F24286 !important;
    color: #fff !important;
    border-radius: 50px !important;
    padding: 12px 35px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    font-size: 13px;
    border: none;
    box-shadow: 0 4px 15px rgba(242, 66, 134, 0.3);
    
    /* FLEXBOX : C'est ici que le centrage vertical se joue */
    display: inline-flex !important; 
    align-items: center !important; /* Centre verticalement icône + texte */
    justify-content: center !important;
    
    /* Annule les styles parasites */
    float: none !important; 
    margin: 0 auto !important; 
    transition: transform 0.2s;
    line-height: normal !important; /* Réinitialise la ligne de texte */
}

/* 7. L'icône dans le bouton (Avec correctif marge du thème) */
.ag-empty-state .ag-cta-btn i {
    font-size: 18px !important;
    line-height: 1 !important;
    display: inline-block !important; /* Annule le display:block du thème */
    
    /* Le correctif que vous avez trouvé : */
    margin-bottom: 0 !important; 
    margin-top: 0 !important;     /* On remet à zéro pour être sûr */
    margin-right: 8px !important; /* Espace avec le texte */
    margin-left: 0 !important;    /* Annule le margin:auto du thème */
}

.ag-empty-state .ag-cta-btn:hover {
    transform: translateY(-2px);
    background-color: #d63c7b !important;
    color: #ffffff !important;
}

/* Animation */
@keyframes agFloat {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}


/********** amélioration favoris ********/
/* Animation spécifique pour le cœur des favoris */
.heart-pulse {
    font-size: 50px;
    margin-bottom: 20px;
    display: inline-block;
    animation: agPulse 2s infinite;
    line-height: 1;
}
/* Force le bloc de texte à se centrer parfaitement */
.ag-empty-state p {
    margin-left: auto !important;
    margin-right: auto !important;
}

@keyframes agPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/****** cacher menu déroulant 'filtrer par' dans Mes annonces *****/
/* --- MASQUER LE FILTRE DÉROULANT DOUBLON --- */

/* 1. Cache la colonne contenant le menu déroulant */
.row.my-listings-tab-con .col-md-3 {
    display: none !important;
}

/* 2. (Optionnel) Centre le titre "Mes annonces" */
/* Puisque le menu à droite disparaît, on utilise toute la largeur pour le titre */
.row.my-listings-tab-con .col-md-6.mlduo-welcome-message {
    width: 100% !important;
    max-width: 100% !important;
    text-align: center !important;
    flex: 0 0 100% !important;
}


/* --- CENTRAGE DE LA PAGINATION --- */
.prev-next-pagination, 
.c27-explore-pagination,
ul.page-numbers {
    display: flex !important;
    justify-content: center !important; /* Centre horizontalement */
    align-items: center !important;     /* Aligne verticalement */
    gap: 10px !important;               /* Espace entre les numéros */
    margin: 40px auto !important;       /* Marges haut/bas et auto pour le bloc */
    width: 100% !important;
    padding: 0 !important;
    list-style: none !important;
}

/* Ajustement pour s'assurer que le bouton "Suivant" ne colle pas au bord */
.prev-next-pagination a.next, 
.prev-next-pagination a.prev {
    margin: 0 10px !important;
}