/*
 * Espace « Mon compte pro » (/mon-compte-pro/…) — refonte du 2026-10-02 (inc/compte-2026.php).
 * Feuille seule, aucun gabarit modifié. Couvre la connexion / inscription (visiteur), le menu de
 * l'espace, le tableau de bord, Mes fiches, Option de visibilité, Favoris, Commandes et Détails du
 * compte. Les rubriques Leads et Mes demandes ont leur propre style (inc/leads/espace-pro/leads-ui.php) :
 * seul le menu commun s'y applique.
 */

body.woocommerce-account{
  --pc-orange:#fd5902;
  --pc-orange-dark:#d94901;
  --pc-orange-soft:#fff3e8;
  --pc-orange-line:#ffd2b3;
  --pc-ink:#1a1a1a;
  --pc-text:#2b2b2b;
  --pc-gray:#5c5c5c;
  --pc-line:#ece7e1;
  --pc-bg:#faf8f6;
  --pc-shadow:0 1px 2px rgba(26,26,26,.04), 0 8px 24px rgba(26,26,26,.06);
}
body.woocommerce-account #c27-site-wrapper{ background:var(--pc-bg); }
body.woocommerce-account .woocommerce,
body.woocommerce-account .woocommerce input,
body.woocommerce-account .woocommerce button,
body.woocommerce-account .woocommerce table{ font-family:'Google Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; }

/* =================== Connexion / inscription (visiteur) =================== */
body.woocommerce-account .sign-in-wrapper{ background:radial-gradient(ellipse 70% 60% at 50% 0%, #fff3e8 0%, rgba(255,243,232,0) 70%), var(--pc-bg) !important; }
body.woocommerce-account .login-container{ padding:56px 16px 72px; }
body.woocommerce-account .login-content{
  width:100%; max-width:440px; background:#fff; border:1px solid var(--pc-line); border-radius:22px;
  box-shadow:0 24px 60px rgba(26,26,26,.10); padding:30px 32px 26px;
}
body.woocommerce-account .login-tabs{ display:flex; gap:6px; margin:0 0 22px; padding:4px; background:#f3efea; border-radius:14px; height:auto; }
body.woocommerce-account .login-tabs li{ flex:1; margin:0; height:auto; }
body.woocommerce-account .login-tabs li h3{ margin:0; font-size:15px; line-height:1.2; }
body.woocommerce-account .login-tabs li a{ display:block; text-align:center; padding:10px 8px; border-radius:11px; color:var(--pc-gray) !important; font-weight:600; font-size:15px; opacity:1 !important; transition:background-color .15s ease, color .15s ease; }
body.woocommerce-account .login-tabs li.active a{ background:#fff; color:var(--pc-ink) !important; box-shadow:0 2px 8px rgba(26,26,26,.08); }
body.woocommerce-account .login-content .form-group input:focus{ border-bottom-color:var(--pc-orange) !important; }
body.woocommerce-account .login-content .buttons,
body.woocommerce-account .login-content button.buttons{ border-radius:12px !important; height:50px; font-size:15.5px !important; font-weight:700 !important; box-shadow:0 10px 24px rgba(253,89,2,.28); }
body.woocommerce-account .login-content .form-info a,
body.woocommerce-account .login-content .forgot-password a{ color:var(--pc-orange-dark) !important; }

/* =================== Menu de l'espace =================== */
body.woocommerce-account .mlduo-account-menu{ background:#fff; border-bottom:1px solid var(--pc-line); box-shadow:0 4px 18px rgba(26,26,26,.04); }
body.woocommerce-account .woocommerce-MyAccount-navigation ul li{ display:flex; align-items:center; padding:0 2px; }
body.woocommerce-account .woocommerce-MyAccount-navigation ul li a{
  padding:9px 14px !important; border-radius:999px; font-size:14px !important; font-weight:600 !important;
  color:var(--pc-gray) !important; border-bottom:0 !important; line-height:1.2; white-space:nowrap;
  transition:background-color .15s ease, color .15s ease;
}
body.woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover{ background:#f3efea; color:var(--pc-ink) !important; }
body.woocommerce-account .woocommerce-MyAccount-navigation ul li.current-menu-item a,
body.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a{ background:var(--pc-orange-soft); color:var(--pc-orange-dark) !important; }
/* Le thème impose 60 px de haut aux liens et souligne l'onglet actif par un ::after du <li> */
body.woocommerce-account .woocommerce-MyAccount-navigation > ul{ height:64px; align-items:center; }
body.woocommerce-account .woocommerce-MyAccount-navigation > ul > li{ flex:0 0 auto !important; height:64px; justify-content:center; }
body.woocommerce-account .woocommerce-MyAccount-navigation > ul{ justify-content:center; }
body.woocommerce-account .woocommerce-MyAccount-navigation ul li a{ height:auto !important; }
body.woocommerce-account .woocommerce-MyAccount-navigation > ul > li::after,
body.woocommerce-account .woocommerce-MyAccount-navigation ul li a::after,
body.woocommerce-account .woocommerce-MyAccount-navigation ul li a::before{ display:none !important; }

/* =================== Contenu : titres et cartes =================== */
body.woocommerce-account .woocommerce-MyAccount-content{ color:var(--pc-text); }
body.woocommerce-account .mlduo-welcome-message h1,
body.woocommerce-account .woocommerce-MyAccount-content > .row h1{ font-family:inherit; font-size:clamp(26px,3vw,34px); font-weight:700; letter-spacing:-.015em; color:var(--pc-ink); }

body.woocommerce-account .woocommerce-MyAccount-content .element{
  background:#fff; border:1px solid var(--pc-line); border-radius:18px; box-shadow:var(--pc-shadow); padding:22px 24px;
}
body.woocommerce-account .woocommerce-MyAccount-content .pf-head .title-style-1{ display:flex; align-items:center; gap:0; padding-left:0 !important; }
body.woocommerce-account .woocommerce-MyAccount-content .pf-head .title-style-1::after{ display:none; }
body.woocommerce-account .woocommerce-MyAccount-content .pf-head .title-style-1 h5{ padding-left:0 !important; position:static !important; left:auto !important; margin-left:0 !important; transform:none !important; }
body.woocommerce-account .woocommerce-MyAccount-content .pf-head .title-style-1 i{
  flex:none; width:32px; height:32px; border-radius:10px; display:inline-flex; align-items:center; justify-content:center;
  background:var(--pc-orange-soft) !important; color:var(--pc-orange-dark) !important; font-size:18px; position:static; margin:0 12px 0 0; padding:0;
}
body.woocommerce-account .woocommerce-MyAccount-content .pf-head h5{ font-family:inherit; font-size:16px; font-weight:700; color:var(--pc-ink); margin:0; }

/* Tableau de bord : chiffre de la semaine */
body.woocommerce-account .mlduo-stat-box{
  border-radius:18px !important; background:linear-gradient(135deg,#fd5902 0%,#ff7a29 60%,#ff9d4d 100%) !important;
  box-shadow:0 16px 36px rgba(253,89,2,.22);
}
body.woocommerce-account .mlduo-stat-box h2{ font-family:inherit; font-weight:700; }
body.woocommerce-account .mlduo-stat-box i{ opacity:.35; }
/* Listes déroulantes (select2) : « Type de statistiques / Filtrer par fiche »… Le thème collait
   le texte au bord gauche et plaçait la flèche 16 px AU-DESSUS de la case (signalé par Gomes le
   2026-10-02) ; la liste ouverte était carrée, avec des traits entre les lignes. */
body.woocommerce-account .woocommerce-MyAccount-content .select2-container--default .select2-selection--single{
  height:48px !important; border-radius:12px !important; border:1px solid #ddd5cc !important; background:#fff !important;
  display:flex !important; align-items:center; position:relative; transition:border-color .15s ease, box-shadow .15s ease;
}
body.woocommerce-account .woocommerce-MyAccount-content .select2-container--default .select2-selection--single:hover{ border-color:#c9bfb4 !important; }
body.woocommerce-account .woocommerce-MyAccount-content .select2-container--open .select2-selection--single,
body.woocommerce-account .woocommerce-MyAccount-content .select2-container--focus .select2-selection--single{ border-color:var(--pc-orange) !important; box-shadow:0 0 0 3px rgba(253,89,2,.14); }
body.woocommerce-account .woocommerce-MyAccount-content .select2-selection__rendered{
  padding:0 40px 0 14px !important; line-height:46px !important; font-size:14.5px !important; font-weight:600; color:var(--pc-ink) !important;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis; width:100%;
}
body.woocommerce-account .woocommerce-MyAccount-content .select2-selection__arrow{
  top:0 !important; right:12px !important; left:auto !important; height:100% !important; width:18px !important; position:absolute !important;
  display:flex !important; align-items:center; justify-content:center;
}
body.woocommerce-account .woocommerce-MyAccount-content .select2-selection__arrow b,
body.woocommerce-account .woocommerce-MyAccount-content .select2-selection__arrow::after{ display:none !important; }
/* Le thème dessine un triangle (icône de police) dans ::before : remplacé par un chevron. */
body.woocommerce-account .woocommerce-MyAccount-content .select2-selection__arrow::before{
  content:"" !important; font-size:0 !important; width:16px !important; height:16px !important; position:static !important;
  transition:transform .2s ease;
  background: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='%235c5c5c' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center no-repeat !important;
}
body.woocommerce-account .woocommerce-MyAccount-content .select2-container--open .select2-selection__arrow::before{ transform:rotate(180deg); }
/* Règles du thème plus précises que les nôtres : marge du texte (« Filtrer par fiche ») et trait sous la case */
body.woocommerce-account .woocommerce-MyAccount-content .select2-container--default .select2-selection--single .select2-selection__rendered,
body.woocommerce-account .woocommerce-MyAccount-content .dashboard-filter-stats ~ span.select2-container--default .select2-selection--single .select2-selection__rendered{
  padding:0 40px 0 14px !important; border-bottom:0 !important; height:46px; line-height:46px !important;
}
/* Soulignement orange animé du thème (::after du texte) : inutile avec le contour arrondi */
body.woocommerce-account .woocommerce-MyAccount-content .select2-selection__rendered::after{ display:none !important; }
/* Ordinateur : « Type de Statistiques » tenait dans 172 px et se faisait couper */
@media (min-width:992px){
  body.woocommerce-account .woocommerce-MyAccount-content .mlduo-welcome-message.col-md-7{ width:50%; }
  body.woocommerce-account .woocommerce-MyAccount-content .sort-my-listings.col-md-2{ width:22%; }
  body.woocommerce-account .woocommerce-MyAccount-content .sort-my-listings + .col-md-3{ width:28%; }
}
body.woocommerce-account .woocommerce-MyAccount-content .select2-selection__placeholder{ color:var(--pc-ink) !important; }

/* Liste ouverte (ajoutée en fin de page par select2, hors du contenu du compte) */
body.woocommerce-account .select2-container--open .select2-dropdown{
  margin-top:6px; border:1px solid #efe9e2 !important; border-radius:14px !important; overflow:hidden;
  box-shadow:0 22px 50px rgba(26,26,26,.14), 0 2px 6px rgba(26,26,26,.05) !important; background:#fff;
}
body.woocommerce-account .select2-container--open .select2-dropdown--above{ margin-top:-6px; }
body.woocommerce-account .select2-dropdown .select2-search--dropdown{ padding:8px 8px 4px; }
body.woocommerce-account .select2-dropdown .select2-search__field{
  height:40px; padding:0 12px !important; border:1px solid #ddd5cc !important; border-radius:10px !important; background:#faf8f6 !important;
  font-family:inherit; font-size:14px;
}
body.woocommerce-account .select2-dropdown .select2-search__field:focus{ outline:0; border-color:var(--pc-orange) !important; background:#fff !important; }
body.woocommerce-account .select2-dropdown .select2-results__options{ padding:4px 8px 8px !important; max-height:300px; }
body.woocommerce-account .select2-dropdown .select2-results__option{
  padding:9px 12px !important; margin:0 !important; border:0 !important; border-radius:9px; font-size:14px !important; line-height:1.35; color:var(--pc-ink) !important;
}
body.woocommerce-account .select2-dropdown .select2-results__option::after,
body.woocommerce-account .select2-dropdown .select2-results__option::before{ display:none !important; }
body.woocommerce-account .select2-dropdown .select2-results__option--highlighted,
body.woocommerce-account .select2-dropdown .select2-results__option[aria-selected=true]{ background:var(--pc-orange-soft) !important; color:var(--pc-orange-dark) !important; }

/* Mes fiches : cartes */
body.woocommerce-account table.job-manager-jobs tr.listing-cell{
  border:1px solid var(--pc-line) !important; border-radius:18px !important; box-shadow:var(--pc-shadow) !important; background:#fff;
  transition:box-shadow .18s ease, transform .18s ease;
}
body.woocommerce-account table.job-manager-jobs tr.listing-cell:hover{ transform:translateY(-2px); box-shadow:0 2px 4px rgba(26,26,26,.05), 0 16px 34px rgba(26,26,26,.11) !important; }
body.woocommerce-account table.job-manager-jobs .job_title a{ font-family:inherit; font-weight:700; color:var(--pc-ink) !important; letter-spacing:0; }
body.woocommerce-account table.job-manager-jobs .job_title a:hover{ color:var(--pc-orange-dark) !important; }
body.woocommerce-account ul.job-dashboard-actions li a{ border-radius:12px !important; color:var(--pc-gray) !important; transition:background-color .15s ease, color .15s ease; }
body.woocommerce-account ul.job-dashboard-actions li a:hover{ background:var(--pc-orange-soft) !important; color:var(--pc-orange-dark) !important; }
body.woocommerce-account ul.job-dashboard-actions li a i{ color:var(--pc-orange) !important; }

/* Favoris */
body.woocommerce-account table.c27-bookmarks-table tbody tr{
  border:1px solid var(--pc-line) !important; border-radius:18px !important; box-shadow:var(--pc-shadow) !important; background:#fff;
}
body.woocommerce-account table.c27-bookmarks-table .bookmark-title a{ color:var(--pc-ink) !important; font-weight:700; }
body.woocommerce-account table.c27-bookmarks-table .bookmark-title a:hover{ color:var(--pc-orange-dark) !important; }

/* Commandes */
body.woocommerce-account .woocommerce-orders-table{ border:0; border-collapse:separate; border-spacing:0; width:100%; }
body.woocommerce-account .woocommerce-orders-table thead th{ font-size:12.5px; font-weight:700; letter-spacing:.05em; text-transform:uppercase; color:#8a8178; border:0; border-bottom:1px solid var(--pc-line); padding:10px 12px; }
body.woocommerce-account .woocommerce-orders-table tbody td,
body.woocommerce-account .woocommerce-orders-table tbody th{ padding:14px 12px; border:0; border-bottom:1px solid #f1ece6; font-size:14.5px; vertical-align:middle; }
body.woocommerce-account .woocommerce-orders-table tbody tr:last-child td,
body.woocommerce-account .woocommerce-orders-table tbody tr:last-child th{ border-bottom:0; }
body.woocommerce-account .woocommerce-orders-table__cell-order-number a{ color:var(--pc-orange-dark) !important; font-weight:700; }
body.woocommerce-account .woocommerce-orders-table .button{
  display:inline-flex; align-items:center; margin:2px 4px 2px 0; padding:7px 12px !important; border-radius:999px !important;
  background:#fff !important; border:1px solid #e3dcd4 !important; color:var(--pc-ink) !important; font-size:13px !important; font-weight:600 !important;
  transition:border-color .15s ease, color .15s ease;
}
body.woocommerce-account .woocommerce-orders-table .button:hover{ border-color:var(--pc-orange) !important; color:var(--pc-orange-dark) !important; }

/* Messages WooCommerce */
body.woocommerce-account .woocommerce-info,
body.woocommerce-account .woocommerce-message{
  border:1px solid var(--pc-orange-line) !important; border-left:4px solid var(--pc-orange) !important; border-radius:14px !important;
  background:#fff8f2 !important; color:var(--pc-text) !important; box-shadow:none;
}
body.woocommerce-account .woocommerce-info::before,
body.woocommerce-account .woocommerce-message::before{ color:var(--pc-orange) !important; }
body.woocommerce-account .woocommerce-info .button,
body.woocommerce-account .woocommerce-message .button{ color:var(--pc-orange-dark) !important; font-weight:700; }

/* Option de visibilité (et autres listes vides) */
body.woocommerce-account .woocommerce-MyAccount-content .no-listings{
  max-width:560px; margin:24px auto; background:#fff; border:1px solid var(--pc-line); border-radius:22px; box-shadow:var(--pc-shadow);
  padding:44px 28px !important; height:auto !important;
}
body.woocommerce-account .woocommerce-MyAccount-content .no-listings i{ color:var(--pc-orange) !important; opacity:1; }
body.woocommerce-account .woocommerce-MyAccount-content .no-listings p,
body.woocommerce-account .woocommerce-MyAccount-content .no-listings{ font-size:15.5px; color:var(--pc-gray); }

/* Pictogramme des listes vides : le thème met un smiley qui grimace (« mood_bad ») partout.
   Remplacé par une icône liée à la page (demande de Gomes, 2026-10-02) ; le texte de l'icône
   (ligature de police) est masqué par font-size:0. Cœur par défaut (Favoris). */
body.woocommerce-account .woocommerce-MyAccount-content .no-listings i.mood_bad{
  display:inline-flex !important; width:64px; height:64px; margin:0 auto 16px; border-radius:50%;
  font-size:0 !important; color:transparent !important; opacity:1 !important;
  background:#fff3e8 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 24 24' fill='none' stroke='%23d94901' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z'/%3E%3C/svg%3E") center/28px no-repeat !important;
}
/* Option de visibilité : éclair (même symbole que « Promouvoir » sur les fiches) */
body.woocommerce-account .woocommerce-MyAccount-content .user-promotion-packages .no-listings i.mood_bad{
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 24 24' fill='none' stroke='%23d94901' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M13 2 3 14h9l-1 8 10-12h-9l1-8z'/%3E%3C/svg%3E") !important;
}
/* Mes fiches : fiche + */
body.woocommerce-account .woocommerce-MyAccount-content #job-manager-job-dashboard .no-listings i.mood_bad{
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 24 24' fill='none' stroke='%23d94901' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 2v6h6M12 18v-6M9 15h6'/%3E%3C/svg%3E") !important;
}
body.woocommerce-account .woocommerce-MyAccount-content .no-listings{ display:flex; flex-direction:column; align-items:center; text-align:center; }

/* Détails du compte */
body.woocommerce-account .edit-account .form-group input:focus{ border-bottom-color:var(--pc-orange) !important; }
body.woocommerce-account .edit-account fieldset{
  border:1px solid var(--pc-line) !important; border-radius:16px !important; padding:16px 18px 10px !important; margin:20px 0 !important; background:#fff;
}
body.woocommerce-account .edit-account fieldset legend{
  width:auto; display:inline-block; margin:0 0 0 -4px; padding:4px 12px !important; border:0 !important; border-radius:999px;
  background:var(--pc-orange-soft); color:var(--pc-orange-dark) !important; font-size:13.5px !important; font-weight:700;
}
body.woocommerce-account .woocommerce-MyAccount-content input[type=button],
body.woocommerce-account .woocommerce-MyAccount-content .switch-role-form button,
body.woocommerce-account .woocommerce-MyAccount-content .switch-role-form .buttons{ border-radius:12px !important; }
body.woocommerce-account .woocommerce-MyAccount-content button[type=submit].buttons,
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Button,
body.woocommerce-account .woocommerce-MyAccount-content button[name=save_account_details]{
  border-radius:12px !important; font-weight:700 !important; box-shadow:0 10px 24px rgba(253,89,2,.25);
}

/* =================== Mobile =================== */
@media (max-width:767px){
  body.woocommerce-account .login-container{ padding:28px 12px 48px; }
  body.woocommerce-account .login-content{ padding:22px 18px 18px; border-radius:18px; }
  body.woocommerce-account .woocommerce-MyAccount-content .element{ padding:18px 16px; border-radius:16px; }
  body.woocommerce-account .woocommerce-MyAccount-navigation ul li a{ padding:8px 12px !important; font-size:13.5px !important; }
  /* Le lien du message passe sous le texte au lieu de le couper */
  body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-info{ display:flex; flex-direction:column-reverse; align-items:flex-start; gap:8px; }
  body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-info .button{ float:none !important; margin:0 !important; }
}

@media (prefers-reduced-motion:reduce){
  body.woocommerce-account .woocommerce *{ transition:none !important; }
}
