/* ============================================================
   STYLE GLOBAL DES PARCOURS ET MISSIONS — STRATÉGIE MATHS
   Version finale avec halo différé fonctionnel
   ============================================================ */

/* === LARGEUR GLOBALE POUR PARCOURS ET MISSIONS === */
body.single-sm_parcours .ct-container,
body.single-sm_parcours .entry-content,
body.single-sm_etape .ct-container,
body.single-sm_etape .entry-content {
  max-width: none !important;
  padding: 0 !important;
}

/* === STRUCTURE GÉNÉRALE : 2 COLONNES === */
.sm-parcours-wrapper,
.sm-parcours-page,
.sm-etape-wrapper {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: nowrap;
  gap: 50px;
  margin: 40px auto;
  max-width: 1600px;
  padding: 0 40px;
  box-sizing: border-box;
}

/* === COLONNES 40 / 60 === */
.sm-parcours-description,
.sm-sidebar-parcours {
  flex: 0 0 45%;
  background: #f9f9f9;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  box-sizing: border-box;
}

.sm-parcours-missions,
.sm-etape-content {
  flex: 0 0 55%;
  background: #fff;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
  position: relative;
}

/* === TITRES === */
.sm-titre-parcours,
.sm-parcours-missions h1,

body.single-sm_parcours h1.entry-title,
body.single-sm_etape h1.entry-title {
  color: #6a1b9a; /* violet MathsWoman */
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
  padding-top: 14px;
}

/* === BARRE ORANGE ANIMÉE AU-DESSUS DU TITRE === */
.sm-parcours-missions h1::before,

body.single-sm_parcours h1.entry-title::before,
body.single-sm_etape h1.entry-title::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 5px;
  width: 0%;
  background: linear-gradient(90deg, #ff6600 0%, #ff944d 100%);
  border-radius: 3px;
  box-shadow: 0 1px 3px rgba(255, 102, 0, 0.3);
  animation: sm-barre-slide 1.3s ease-out forwards;
}

@keyframes sm-barre-slide {
  0% { width: 0%; opacity: 0.2; }
  30% { opacity: 1; }
  100% { width: 100%; opacity: 1; }
}

/* === SOUS-TITRES === */
.sm-parcours-missions h2,
.sm-etape-content h2 {
  color: #ff6600;
  font-weight: 600;
  margin-top: 30px;
  margin-bottom: 15px;
}

/* === TITRES SIDEBAR === */
.sm-sidebar-parcours h3,
.sm-parcours-description h3 {
  color: #6a1b9a;
  font-weight: 600;
  border-bottom: 2px solid #e6d7f7;
  padding-bottom: 6px;
  margin-bottom: 10px;
}

/* === BOUTON COMMENCER === */
.sm-bouton-start-wrapper {
  margin-top: 30px;
  text-align: center;
}

.sm-start-button {
  display: inline-block;
  background: #ff6600;
  color: #fff;
  padding: 14px 32px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1em;
  transition: background 0.2s ease;
}

.sm-start-button:hover {
  background: #ff8533;
}

/* === BARRE ULTRA FINE SOUS LES MISSIONS === */
.sm-parcours-missions .sm-liste-missions li strong {
  position: relative;
  display: inline-block;
  color: #ff6600;
  font-weight: 700;
  padding-bottom: 2px;
  margin-bottom: 4px;
  line-height: 1.15;
}

.sm-parcours-missions .sm-liste-missions li strong::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1px;
  transform: scaleY(0.6);
  transform-origin: bottom left;
  width: 100%;
  background-color: #ff6600;
  opacity: 0.9;
  border-radius: 1px;
}

/* === EFFET D’APPARITION DOUX === */
.sm-etape-content,
.sm-parcours-missions {
  opacity: 0;
  transform: scale(0.98);
  filter: blur(6px);
  animation: focusFadeIn 0.9s ease-out forwards;
}

@keyframes focusFadeIn {
  0% { opacity: 0; transform: scale(0.98); filter: blur(6px); }
  60% { opacity: 1; transform: scale(1.005); filter: blur(2px); }
  100% { opacity: 1; transform: scale(1); filter: blur(0); }
}



/* === RESPONSIVE === */
@media (max-width: 900px) {
  .sm-parcours-wrapper,
  .sm-parcours-page,
  .sm-etape-wrapper {
    flex-direction: column;
    gap: 30px;
    padding: 0 20px;
  }

  .sm-parcours-description,
  .sm-sidebar-parcours,
  .sm-parcours-missions,
  .sm-etape-content {
    flex: 1 1 100%;
  }
}




/* === STYLE DES BOUTONS DE STATUT DE MISSION === */
.sm-etape-content form[method="post"] button[name="sm_status"] {
  flex: 1 1 180px; /* même largeur, responsive */
  min-width: 160px;
  text-align: center;
  padding: 12px 16px;
  border-radius: 10px;
  border: none;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* Effet de clic / survol */
.sm-etape-content form[method="post"] button[name="sm_status"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

/* Violet : mission terminée */
.sm-etape-content button[name="sm_status"][value="done"] {
  background: #8e24aa;
}

/* Orange : en pause */
.sm-etape-content button[name="sm_status"][value="pause"] {
  background: #f57c00;
}

/* Cerise : Refaire la mission */
.sm-etape-content button[name="sm_status"][value="reset"] {
  background: #d81b60 !important;
  color: #fff !important;
  border: none;
  border-radius: 10px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.sm-etape-content button[name="sm_status"][value="reset"]:hover {
  background: #e91e63 !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

/* Ajustement mobile */
@media (max-width: 600px) {
  .sm-etape-content form[method="post"] {
    flex-direction: column;
  }

  .sm-etape-content form[method="post"] button[name="sm_status"] {
    width: 100%;
  }
}
/* === STYLE DES BADGES DE LA PAGE PARCOURS === */
.sm-liste-missions .sm-badge-done,
.sm-liste-missions .sm-badge-pause,
.sm-liste-missions .sm-badge-todo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

/* Effet hover doux */
.sm-liste-missions .sm-badge-done:hover,
.sm-liste-missions .sm-badge-pause:hover,
.sm-liste-missions .sm-badge-todo:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* ✅ Validée — fond violet */
.sm-liste-missions .sm-badge-done {
  background: #8e24aa;
}

/* ⏸️ En pause — fond orange */
.sm-liste-missions .sm-badge-pause {
  background: #f57c00;
}

/* 🕓 À faire — fond gris */
.sm-liste-missions .sm-badge-todo {
  background: #d81b60;
}
/* ==== LISTE DES MISSIONS ==== */
.sm-liste-missions {
    background: #fff8f0;
    padding: 20px;
    border-radius: 10px;
}

.sm-liste-missions h3 {
    margin-top: 0;
}

.sm-mission-item {
    margin: 10px 0;
    padding: 12px;
    background: #fff;
    border: 1px solid #f1c40f;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sm-mission-info a {
    color: #333;
    text-decoration: none;
}

/* === BADGES MODERNES ALIGNÉS === */
.sm-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 700;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 13px;
    min-width: 110px;
    text-align: center;
    line-height: 1;
}



/* 🟠 En cours : orange doux */
.sm-badge-pause {
    background: #ffe0b2;
    color: #e65100;
    border: 1px solid #f57c00;
}

/* ⚪ À faire : gris clair */
.sm-badge-todo {
    background: #eeeeee;
    color: #555;
    border: 1px solid #ccc;
}

/* ============================================================
   LARGEUR COLONNE GAUCHE SUR FOND VIOLET — PAGE MISSION (fix imbriquation)
   ============================================================ */

/* Un peu d’espace entre les deux colonnes */
body.single-sm_etape .sm-etape-wrapper {
  gap: 40px;
}

/* 1) Cible UNIQUEMENT la colonne gauche EXTERIEURE (enfant direct du wrapper) */
body.single-sm_etape .sm-etape-wrapper > .sm-sidebar-parcours {
  flex: 0 0 460px;     /* largeur fixe souhaitée */
  max-width: 460px;
}

/* 2) La colonne droite prend le reste proprement */
body.single-sm_etape .sm-etape-wrapper > .sm-etape-content {
  flex: 1 1 auto;
  min-width: 0;        /* évite les débordements de contenu */
}

/* 3) Neutralise la largeur inline (width: 280px) de l'ASIDE intérieur,
      et le force à occuper toute la largeur du bloc gris extérieur */
body.single-sm_etape .sm-etape-wrapper > .sm-sidebar-parcours .sm-sidebar-parcours {
  width: 100% !important;
  max-width: none !important;
  box-sizing: border-box;
}

/* ============================================================
   AJUSTEMENT LARGEUR COLONNE GAUCHE (forcé) — PAGE MISSION 
   ============================================================ */

/* On s'assure que le conteneur global autorise l'élargissement */
body.single-sm_etape .sm-etape-wrapper {
  max-width: 1800px !important;
}

/* On force la colonne gauche (bloc gris clair) à une largeur fixe plus grande */
body.single-sm_etape .sm-etape-wrapper > .sm-sidebar-parcours {
  flex: 0 0 430px !important; /* 👉 essaie avec 500px */
  max-width: 430px !important;
  width: 450px !important;
  box-sizing: border-box;
}

/* On garde la colonne droite fluide */
body.single-sm_etape .sm-etape-wrapper > .sm-etape-content {
  flex: 1 1 auto;
  min-width: 0;
}

/* ============================================================
   COULEUR DES TITRES DE MISSIONS SELON LEUR ÉTAT
   ============================================================ */

/* 🟣 Validée — même violet que le badge */
body.single-sm_etape .sm-sidebar-parcours .sm-liste-missions .sm-badge-done + .sm-mission-info a,
body.single-sm_etape .sm-sidebar-parcours .sm-mission-item .sm-badge-done ~ .sm-mission-info a {
  color: #8e24aa !important;
  font-weight: 700;
}

/* 🟠 En cours — même orange que le badge */
body.single-sm_etape .sm-sidebar-parcours .sm-liste-missions .sm-badge-pause + .sm-mission-info a,
body.single-sm_etape .sm-sidebar-parcours .sm-mission-item .sm-badge-pause ~ .sm-mission-info a {
  color: #f57c00 !important;
  font-weight: 700;
}

/* 🍒 À faire — même cerise que le badge */
body.single-sm_etape .sm-sidebar-parcours .sm-liste-missions .sm-badge-todo + .sm-mission-info a,
body.single-sm_etape .sm-sidebar-parcours .sm-mission-item .sm-badge-todo ~ .sm-mission-info a {
  color: #d81b60 !important;
  font-weight: 700;
}

/* ============================================================
   Couleur du titre de mission selon l'état + gras uniquement sur la mission ouverte
   (sidebar de la page mission)
   ============================================================ */

/* Par défaut : pas gras */
body.single-sm_etape .sm-sidebar-parcours .sm-mission-row .sm-mission-link {
  text-decoration: none;
  font-weight: 400;
  transition: color .15s ease;
}

/* Couleur du titre basée sur le badge d'état, via :has() */
body.single-sm_etape .sm-sidebar-parcours .sm-mission-row:has(.sm-state-done)  .sm-mission-link { color: #8e24aa; } /* violet */
body.single-sm_etape .sm-sidebar-parcours .sm-mission-row:has(.sm-state-pause) .sm-mission-link { color: #f57c00; } /* orange */
body.single-sm_etape .sm-sidebar-parcours .sm-mission-row:has(.sm-state-todo)  .sm-mission-link { color: #d81b60; } /* cerise */

/* Mission actuellement consultée : devient en gras */
body.single-sm_etape .sm-sidebar-parcours .sm-mission-row.current .sm-mission-link {
  font-weight: 700;
}

/* === Boutons de navigation : style minimaliste, léger et élégant === */
.sm-navigation-etapes .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.12);
    color: #d26d4e;
    font-weight: 500;
    font-size: 15px;
    padding: 10px 22px;
    border-radius: 9999px; /* effet pastille douce */
    text-decoration: none;
    box-shadow: none;
    transition: all 0.25s ease;
}

.sm-navigation-etapes .button:hover {
    background: rgba(0, 0, 0, 0.04);
    color: #922194; /* texte plus soutenu au survol */
    transform: translateY(-2px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

/* Supprime le fond spécial du bouton "suivant" pour tout unifier */
.sm-navigation-etapes .button-primary {
    background: transparent;
    border-color: rgba(0, 0, 0, 0.12);
}

/* Flèches fines intégrées (une seule fois, bien placée) */
.sm-navigation-etapes .button:first-child::before {
    content: "←";
    font-size: 16px;
    opacity: 0.6;
}


/* Ajustement mobile : empile les boutons proprement */
@media (max-width: 768px) {
    .sm-navigation-etapes {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .sm-navigation-etapes .button {
        justify-content: center;
        width: 100%;
    }
}

/* === Style du titre "Mission X : ..." sur les pages de mission === */
body.single-sm_etape .sm-titre-mission {
  font-size: 1.9rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 25px;
  line-height: 1.3;
  position: relative;
  display: inline-block;
}

/* Couleur du mot Mission + numéro */
body.single-sm_etape .sm-titre-mission strong {
  color: #d26d4e;
  font-weight: 700;
}

/* Icône 🎯 mieux alignée (pas collée au-dessus) */
body.single-sm_etape .sm-titre-mission::before {
  content: "🎯";
  color: #d26d4e;
  font-size: 1.4rem;
  position: relative;
  top: 0.1em; /* corrige le décalage vertical */
  margin-right: 8px;
}

/* Animation douce */
body.single-sm_etape .sm-titre-mission {
  opacity: 0;
  transform: translateY(6px);
  animation: fadeMissionIn 0.8s ease-out forwards;
}

@keyframes fadeMissionIn {
  0% {
    opacity: 0;
    transform: translateY(6px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === Correctif mission: couleur + icône bien alignée + animation === */
body.single-sm_etape h1.sm-titre-mission {
  font-size: 1.9rem;
  font-weight: 700;
  color: #1e293b; /* texte du titre */
  margin-bottom: 25px;
  line-height: 1.3;
  position: relative;
  display: inline-block;
}

/* met en avant "Mission X :" */
body.single-sm_etape h1.sm-titre-mission strong {
  color: #d26d4e; /* orange de ta charte */
  font-weight: 700;
}

/* icône 🎯 correctement alignée (pas au-dessus) */
body.single-sm_etape h1.sm-titre-mission::before {
  content: "🎯";
  color: #d26d4e;
  font-size: 1.2em;
  display: inline-block;
  margin-right: 8px;
  transform: translateY(0.08em); /* ajuste l’alignement vertical */
}

/* apparition douce du titre */
body.single-sm_etape h1.sm-titre-mission {
  opacity: 0;
  transform: translateY(6px);
  animation: fadeMissionIn 0.8s ease-out forwards;
}

@keyframes fadeMissionIn {
  0% { opacity: 0; transform: translateY(6px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* === Mission actuelle : effet de mise en avant subtil === */
.sm-mission-item.current-mission {
  position: relative;
  z-index: 2;
  transform: scale(1.03);
  border: 2px solid #d26d4e; /* ta couleur orangée */
  box-shadow: 0 6px 15px rgba(210, 109, 78, 0.3);
  transition: all 0.3s ease;
}

/* Petit effet d'animation douce à l'arrivée */
@keyframes missionFocus {
  0% { transform: scale(1); box-shadow: 0 0 0 rgba(0,0,0,0); }
  100% { transform: scale(1.03); box-shadow: 0 6px 15px rgba(210, 109, 78, 0.3); }
}

/* === Repérage doux de la mission en cours === */
.sm-mission-item.current-mission {
  background: #fff;
  border: 2px solid rgba(0, 0, 0, 0.15); /* bordure grise discrète */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08); /* effet relief doux */
  transform: translateY(-2px); /* léger décalage vers le haut */
  transition: all 0.3s ease;
}

.sm-mission-item.current-mission a {
  font-weight: 700;
  color: #333 !important;
  text-decoration: none;
}

/* === HEADER MINIMALISTE POUR LES PAGES MISSION ET PARCOURS === */

/* Masque tous les éléments du header sauf le logo et l’icône compte */
body.single-sm_etape .ct-header-left,
body.single-sm_parcours .ct-header-left,
body.single-sm_etape .ct-header-menu,
body.single-sm_parcours .ct-header-menu,
body.single-sm_etape .ct-header-actions .ct-contact,
body.single-sm_parcours .ct-header-actions .ct-contact,
body.single-sm_etape .ct-header-actions .ct-search,
body.single-sm_parcours .ct-header-actions .ct-search,
body.single-sm_etape .ct-header-actions .ct-socials,
body.single-sm_parcours .ct-header-actions .ct-socials {
  display: none !important;
}

/* Garde uniquement le logo et le bouton compte */
body.single-sm_etape .ct-header,
body.single-sm_parcours .ct-header {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  padding: 10px 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* Le logo reste centré */
body.single-sm_etape .ct-header .ct-logo,
body.single-sm_parcours .ct-header .ct-logo {
  margin: 0 auto !important;
}

/* L’icône compte reste visible (généralement dans .ct-header-actions) */
body.single-sm_etape .ct-header .ct-header-actions,
body.single-sm_parcours .ct-header .ct-header-actions {
  position: absolute !important;
  right: 40px !important;
  top: 50%;
  transform: translateY(-50%);
}

/* === Supprime la barre de texte défilant sur les pages Mission et Parcours === */
body.single-sm_etape .texte-defilant-item,
body.single-sm_parcours .texte-defilant-item {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
}

/* === Ajoute un petit espace sous le logo pour éviter le chevauchement === */
body.single-sm_etape .sm-etape-wrapper,
body.single-sm_parcours .sm-parcours-wrapper {
  margin-top: 100px !important; /* ajuste si besoin : 40 à 80px selon ton logo */
}

/* === Bloc "Découvrir d'autres parcours" === */
.sm-autres-parcours {
  margin-top: 40px;
  text-align: center;
  background: #faf5ff;
  border-radius: 0px;
  border-bottom: none;
  padding: 18px 24px;
  border: 1px solid #e6d7f7;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  animation: fadeInBlock 0.8s ease-out forwards;
}

.sm-autres-parcours p {
  color: #6a1b9a;
  font-weight: 600;
  margin-bottom: 8px;
}

.sm-bouton-autres {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 8px;
  background: #8e24aa;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s ease, transform 0.2s ease;
}

.sm-bouton-autres:hover {
  background: #d81b60;
  color: #fff;
  transform: translateY(-2px);
}

@keyframes fadeInBlock {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}


/* === Bloc "Parcours terminé" — version Stratégie Maths (violet/orange) === */
.sm-parcours-termine {
  background: #fff8f0; /* fond doux orangé */
  border-top: 2px solid #8e24aa;   /* bordure violette haut */
  border-bottom: 2px solid #8e24aa; /* bordure violette bas */
  border-left: none;
  border-right: none;
  border-bottom: none;
  border-radius: 10px;
  padding: 25px;
  margin-top: 40px;
  text-align: center;
  box-shadow: 0 -6px 14px rgba(142, 36, 170, 0.35); /* effet 3D visible en haut */
  transition: box-shadow 0.3s ease;
}

/* Optionnel : effet au survol (un peu plus lumineux) */
.sm-parcours-termine:hover {
  box-shadow: 0 -8px 16px rgba(142, 36, 170, 0.45);
}

.sm-parcours-termine p {
  color: #8e24aa;
  font-weight: 600;
  margin: 8px 0;
  font-size: 1.15em;
}

.sm-parcours-termine p:first-child {
  font-size: 1.25em;
  color: #e67e22; /* orange accent pour le bravo */
}

.sm-parcours-termine .sm-bouton-autres {
  display: inline-block;
  margin-top: 12px;
  background: linear-gradient(135deg, #8e24aa, #f57c00);
  color: #fff;
  padding: 10px 26px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1em;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sm-parcours-termine .sm-bouton-autres:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

@keyframes fadeInSuccess {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.sm-liste-missions {
    background: #f9f7ff;
    border-left: 4px solid #8e24aa;
    padding: 1em 1.2em;
    margin-top: 2em;
    border-radius: 12px;
}
.sm-liste-missions h3 {
    color: #8e24aa;
    margin-bottom: 0.5em;
}
.sm-liste-missions ul {
    margin: 0;
    padding-left: 1em;
}
.sm-liste-missions li {
    list-style: none;
    margin-bottom: 0.4em;
}

/* === Mini liste des missions dans la grille WooCommerce === */
.sm-mini-missions {
  background: #faf7ff;
  border-left: 3px solid #8e24aa;
  border-radius: 10px;
  padding: 8px 12px;
  margin-top: 10px;
  font-size: 0.9em;
  line-height: 1.4em;
}
.sm-mini-missions h3 {
  font-size: 1em;
  margin: 0 0 4px 0;
  color: #8e24aa;
}
.sm-mini-missions ul {
  margin: 0;
  padding-left: 1.2em;
  list-style-type: '📘 ';
}
.sm-mini-missions li {
  margin: 2px 0;
}

/* === Bloc déroulant des missions dans la grille WooCommerce === */
.sm-mini-missions-wrap {
  margin-top: 10px;
  text-align: center;
}

.sm-toggle-missions {
  background: #8e24aa;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
  cursor: pointer;
  font-size: 0.9em;
  transition: all 0.3s ease;
}

.sm-toggle-missions:hover {
  background: #a64ac9;
}

.sm-mini-missions-content {
  display: none;
  background: #faf7ff;
  border-left: 3px solid #8e24aa;
  border-radius: 10px;
  padding: 10px 14px;
  margin-top: 8px;
  font-size: 0.9em;
  text-align: left;
}

.sm-mini-missions-content ul {
  margin: 0;
  padding-left: 1.2em;
  list-style-type: '✨ ';
}

/* Ouvert */
.sm-mini-missions-wrap.active .sm-mini-missions-content {
  display: block;
}

.sm-mini-missions-wrap.active .sm-toggle-missions {
  background: #6a1b9a;
}

/* === Bloc déroulant des missions (grille WooCommerce) === */
.sm-mini-missions-wrap { margin-top: 10px; text-align: center; }

.sm-toggle-missions {
  background: #8e24aa;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
  cursor: pointer;
  font-size: 0.9em;
  transition: all 0.3s ease;
}
.sm-toggle-missions:hover { background: #6a1b9a; }

.sm-mini-missions-content {
  display: none !important; /* priorité max */
  background: #faf7ff;
  border-left: 3px solid #8e24aa;
  border-radius: 10px;
  padding: 10px 14px;
  margin-top: 8px;
  font-size: 0.9em;
  text-align: left;
}
.sm-mini-missions-wrap.active .sm-mini-missions-content { display: block !important; }

.sm-mini-missions-content ul {
  margin: 0;
  padding-left: 1.2em;
  list-style-type: '✨ ';
}

/* === Mes Parcours - Grille === */
.sm-mes-parcours-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 20px;
}

/* carte */
.sm-parcours-card {
  background: #ffffff;
  border-radius: 14px;
  border: 2px solid #f1e8f8;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  transition: transform .2s ease;
}
.sm-parcours-card:hover {
  transform: translateY(-4px);
}

/* image */
.sm-parcours-thumb {
  height: 160px;
  background: #faf7ff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sm-parcours-thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
}

/* contenu */
.sm-parcours-body { padding: 16px; }

/* titre + badge */
.sm-parcours-meta {
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:8px;
}
.sm-parcours-title {
  font-size: 18px;
  font-weight: 700;
  color: #6a1b9a;
}

/* badges */
.sm-badge {
  padding:2px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight:600;
  color:#fff;
}
.sm-badge.progress { background:#f57c00; }
.sm-badge.done { background:#2e7d32; }

/* barre progression */
.sm-progress-bar {
  background:#efe7f7;
  height:10px;
  border-radius:999px;
  overflow:hidden;
  margin:6px 0;
}
.sm-progress-fill {
  background:#6a1b9a;
  height:100%;
}

/* bouton */
.sm-btn-cerise {
  display:inline-block;
  margin-top:8px;
  padding:10px 14px;
  background:#d81b60;
  color:#fff;
  border-radius:8px;
  font-weight:600;
  text-align:center;
}
.sm-btn-cerise:hover {
  background:#b3154f;
}

.sm-stop-popup{
  position:fixed;
  inset:0;
  display:flex;
  justify-content:center;
  align-items:center;
  background:rgba(0,0,0,0.55);
  z-index:999999;
}
.sm-stop-popup-content{
  background:#fff;
  padding:22px;
  border-radius:12px;
  max-width:340px;
  width:90%;
  text-align:center;
  box-shadow:0 8px 20px rgba(0,0,0,0.2);
}


/* 💬 Bulle coach style app éducative */
.sm-coach-bubble {
    display: block;
    text-align: center;
    margin-top: 18px;
    padding: 16px 18px;
    border-radius: 14px;
    background: #f5efff;
    border: 2px solid #b89fff;
    animation: smPopIn 0.45s cubic-bezier(0.18, 0.89, 0.32, 1.28);
    transform-origin: center;
    box-shadow: 0 4px 14px rgba(106, 27, 154, 0.15);
}

/* ✨ Texte */
.sm-coach-msg {
    font-size: 14.5px;
    font-weight: 700;
    color: #6a1b9a;
    margin: 0;
    padding: 0;
}

/* 🫧 Petite animation rebond */
@keyframes smPopIn {
    0% { 
        transform: scale(0.7);
        opacity: 0;
    }
    60% { 
        transform: scale(1.08);
        opacity: 1;
    }
    100% { 
        transform: scale(1);
    }
}
@keyframes smCoachFade {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}




/* ✅ Décalage du titre pour laisser respirer le ruban */
.sm-qg-card.finished .sm-qg-title {
    padding-top: 18px;
}

/* ✅ Option : petit ajustement pour le ruban */
.sm-ribbon {
    top: 6px !important;
}

/* ✅ Barre violette = parcours terminé */
.sm-qg-bar.finished {
    background: var(--sm-color-violet, #6a1b9a) !important;
}


/* ✅ Donne de la place au ruban */
.sm-qg-card.finished .sm-qg-title {
    margin-top: 18px !important;
}

/* ✅ Réajuste le ruban (plus haut) */
.sm-ribbon {
    top: 50px !important;
    right: -6px !important;
}


/* ✅ Bulle de MathsWoman */
.sm-coach-bubble {
    text-align: center;
    background: #f4ecff;
    border: 2px solid #b79cff;
    border-radius: 14px;
    padding: 18px;
    font-size: 15px;
    font-weight: 600;
    color: #6a1b9a;
    margin-top: 12px;
    animation: sm-pop-soft .4s ease;
}

/* ✅ Animation pop */
@keyframes sm-pop-soft {
    0% { transform: scale(.8); opacity: 0; }
    70% { transform: scale(1.05); opacity: 1; }
    100% { transform: scale(1); }
}



/* ----- Popup ----- */
.sm-reset-popup {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 20000;
}

.sm-reset-popup-box {
    background: #fff;
    padding: 22px 28px;
    border-radius: 14px;
    width: 90%;
    max-width: 380px;
    text-align: center;
    animation: smPop .25s ease-out;
}

@keyframes smPop {
    from { transform: scale(.85); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}

.sm-confirm-reset {
    background: #d81b60;
    color: #fff;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    width: 100%;
    margin-bottom: 10px;
}

.sm-cancel-reset {
    background: #eee;
    color: #444;
    border: none;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
}




/* === RESET PARCOURS — Version propre, épurée et 100% cerise rond + slide === */

/* Conteneur en haut à droite */
.sm-reset-chip {
    position: absolute;
    top: 8px;
    right: -6px;
    z-index: 50;
}

/* Bouton rond cerise */
.sm-reset-round {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #d81b60;
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    border: none;
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    transition: transform .25s ease, box-shadow .25s ease;
    z-index: 3;
    position: relative;
}

/* Animation bouton */
.sm-reset-chip:hover .sm-reset-round {
    transform: scale(1.12);
    box-shadow: 0 6px 18px rgba(216, 27, 96, 0.35);
}

/* Slide Recommencer tout le parcours cerise qui se déploie */
.sm-reset-slide {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);

    background: #d81b60;
    color: #fff;
    font-size: 14px;
    font-weight: 700;

    padding: 10px 0; /* padding initial écrasé pour cacher */
    border-radius: 25px;
    white-space: nowrap;

    opacity: 0;
    width: 0;
    overflow: hidden;

    transition:
        opacity .25s ease,
        width .35s ease,
        padding .35s ease;
}

/* Déploiement au survol */
.sm-reset-chip:hover .sm-reset-slide {
    opacity: 1;
    width: 270px;
    right: 5px;
    padding: 12px 16px;
}



/* === Bulle de confirmation Reset — Style Stratégie Maths === */
.sm-reset-notice {
    position: relative;
    background: #f4ecff;
    border: 2px solid #b79cff;
    color: #6a1b9a;
    padding: 14px 18px;
    margin-bottom: 20px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 15px;
    text-align: center;
    box-shadow: 0 4px 14px rgba(106, 27, 154, 0.15);
    animation: smResetPop 0.45s ease-out, smResetFade 0.4s ease 12s forwards;
    z-index: 50;
}

/* Petit pop d'arrivée */
@keyframes smResetPop {
    0% { transform: scale(0.8); opacity: 0; }
    60% { transform: scale(1.07); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

/* Disparition douce après 4 secondes */
@keyframes smResetFade {
    to { opacity: 0; transform: translateY(-6px); }
}

.sm-start-orange {
    color: #f57c00;       /* orange Stratégie Maths */
    font-weight: 700;
    font-size: 15px;
}

.sm-start-cerise {
    color: #d12c5a;       /* cerise Stratégie Maths */
    font-weight: 700;
    font-size: 15px;
}







/* ============================================================
   STYLE DASHBOARD PREMIUM — UNIFICATION DES COLONNES
   ============================================================ */

/* Le grand container */
.sm-parcours-wrapper {
    background: #ffffff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
    max-width: 1600px;
    margin: 60px auto;
    display: flex;
    gap: 50px;
    align-items: stretch; /* ↓ Même hauteur */
}

/* Deux colonnes alignées Hauteur Égale */
.sm-parcours-description,
.sm-parcours-missions {
    background: #ffffff;           /* ✅ FOND BLANC POUR LES DEUX */
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
}

/* Supprime la couleur grise que tu avais avant */
.sm-parcours-description {
    background: #ffffff !important;
}

/* Pour être sûr qu’elles montent à la même hauteur */
.sm-parcours-description,
.sm-parcours-missions {
    height: auto;
}



/* Force le parent à être en position relative */
.sm-parcours-missions {
    position: relative;
}

/* Titre plus aéré */
.sm-titre-parcours {
    margin-top: 10px;
    margin-bottom: 25px;
}

/* Bouton démarrer — centrage */
.sm-bouton-start-wrapper {
    margin-top: auto; /* pousse vers le bas */
    text-align: center;
}







/* On supprime les fonds internes (gris et blanc isolés) */
body.single-sm_parcours .sm-parcours-description,
body.single-sm_parcours .sm-parcours-missions {
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
}

/* Espace harmonieux entre les deux colonnes */
body.single-sm_parcours .sm-parcours-wrapper {
    gap: 60px !important;
}

/* Arrondis du panneau */
body.single-sm_parcours .sm-parcours-wrapper {
    border-radius: 22px;
}

/* Un peu plus de respiration en mobile */
@media (max-width: 900px) {
    body.single-sm_parcours .sm-parcours-wrapper {
        padding: 30px 20px;
        border-radius: 16px;
    }
}






/* === Bouton DEMARRER (orange) === */
.sm-start-button.sm-demarrer {
    background: #ff6600;
    color: #fff;
    padding: 14px 32px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1.1em;
    display: inline-block;
    transition: background .25s ease, transform .25s ease;
}

.sm-start-button.sm-demarrer:hover {
    background: #ff7b26;
    transform: translateY(-2px);
}


/* === Bouton REPRENDRE (violet + pulse) === */
.sm-start-button.sm-reprendre {
    background: #8e24aa;
    color: #fff;
    padding: 14px 32px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1.1em;
    display: inline-block;

    /* Animation pulse douce */
    animation: smPulse 1.4s ease-in-out infinite;
    transition: transform .2s ease, box-shadow .2s ease;
}

.sm-start-button.sm-reprendre:hover {
    transform: scale(1.06);
    box-shadow: 0 6px 14px rgba(142, 36, 170, 0.35);
}

/* Pulse violet doux */
@keyframes smPulse {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.04); }
    100% { transform: scale(1); }
}



/* Message sous le bouton démarrer / reprendre */
.sm-next-step-msg {
    margin-top: 10px;
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    color: #6a1b9a;
    animation: fadeNextStep .6s ease-out;
}

.sm-next-step-msg strong {
    color: #d26d4e;
}

@keyframes fadeNextStep {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}





/* Bouton Démarrer / Reprendre */
.sm-start-button {
    display: inline-block;
    background: #ff6600;
    color: #fff;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1em;
    text-decoration: none;
    transition: background .25s ease, transform .25s ease;
}

.sm-start-button:hover {
    background: #ff7f2d;
    transform: translateY(-2px);
}

/* Version Parcours terminé */
.sm-finish-button {
    background: #8e24aa !important;
    cursor: default;
}
.sm-finish-button:hover {
    transform: none;
    background: #8e24aa !important;
}




/* 🎯 Bouton de base (démarrer = cerise) */
.sm-start-button {
  display: inline-block;
  background-color: #d12c5a; /* cerise */
  color: #fff;
  padding: 12px 28px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.sm-start-button:hover {
  background-color: #b11f48;
  transform: scale(1.04);
}

/* 🔄 Bouton "Reprendre" (orange) */
.sm-start-button.sm-reprendre {
  background-color: #f57c00;
}

.sm-start-button.sm-reprendre:hover {
  background-color: #e67300;
}

/* ✅ Bouton "Terminé" (violet) */
.sm-start-button.sm-finish-button {
  background-color: #8e24aa;
  cursor: default;
  opacity: 0.9;
}

.sm-start-button.sm-finish-button:hover {
  transform: none;
  background-color: #8e24aa;
}

.sm-finish-button {
    display: inline-flex;
    align-items: center; /* centre verticalement */
    justify-content: center;
    gap: 8px; /* espace entre l'image et le texte */
}

.sm-finish-icon {
    height: 30px; /* ajuste la taille si tu veux */
    width: auto;
    display: inline-block;
}


/* === POPUP RESET - STYLE PRO-PEP'S MATHSWOMAN 🍒✨ === */

.sm-reset-popup {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(8px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  animation: fadeIn 0.3s ease forwards;
}

/* --- Boîte principale --- */
.sm-reset-popup-box {
  background: linear-gradient(135deg, #fff 70%, #fde7ef 100%);
  border-radius: 18px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
  padding: 40px 45px 30px;
  width: 90%;
  max-width: 440px;
  text-align: center;
  font-family: "Poppins", "Segoe UI", sans-serif;
  animation: zoomIn 0.35s cubic-bezier(0.22,1.28,0.39,1);
  position: relative;
}

/* --- Avatar flottant MathsWoman --- */
.sm-reset-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #d12c5a, #8e24aa);
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  font-size: 40px;
  margin: -80px auto 10px;
  box-shadow: 0 4px 12px rgba(209,44,90,0.35);
  animation: floaty 3s ease-in-out infinite;
}

/* --- Titre --- */
.sm-reset-popup-box h3 {
  font-size: 1.45em;
  color: #8e24aa;
  font-weight: 700;
  margin-bottom: 12px;
}

/* --- Texte --- */
.sm-reset-popup-box p {
  color: #333;
  font-size: 1.05em;
  margin-bottom: 28px;
  line-height: 1.5;
}

/* --- Bouton confirmer --- */
.sm-confirm-reset {
  background: linear-gradient(135deg, #ff7043, #f57c00);
  border: none;
  color: #fff;
  padding: 12px 26px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  margin-right: 8px;
}

.sm-confirm-reset:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(245,124,0,0.4);
}

/* --- Bouton annuler --- */
.sm-cancel-reset {
  background: #f3d4e1;
  color: #8e24aa;
  border: none;
  padding: 12px 26px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.sm-cancel-reset:hover {
  background: #f0c7d9;
  transform: scale(1.05);
}

/* --- Animations --- */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes zoomIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}


.sm-reset-popup-box p strong {
  color: #8e24aa;
  font-weight: 700;
}

.sm-reset-popup-box p span {
  font-weight: 700;
}



/* === BOUTON RETOUR À MON COMPTE === */
.sm-back-chip {
    position: absolute;
    top: 110px;
    left: 40px;
    z-index: 50;
}

/* Bouton rond violet (plus doux que cerise) */
.sm-back-round {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #6a1b9a; /* violet */
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    border: none;
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    transition: transform .25s ease, box-shadow .25s ease;
    z-index: 3;
    position: relative;
}

.sm-back-round-cours {
  background: #6a1b9a;
}
.sm-back-round-methode {
  background: #ff7a00;
}
.sm-back-round-astuce {
  background: #d81b60;
}

/* Animation bouton */
.sm-back-chip:hover .sm-back-round {
    transform: scale(1.12);
    box-shadow: 0 6px 18px rgba(106, 27, 154, 0.35);
}

/* Slide texte "Retour à mon compte" */
.sm-back-slide {
    position: absolute;
    Left: 0px;
    top: 50%;
    transform: translateY(-50%);

    background: #6a1b9a;
    color: #fff;
    font-size: 14px;
    font-weight: 700;

    padding: 10px 0;
    border-radius: 25px;
    white-space: nowrap;

    opacity: 0;
    width: 0;
    overflow: hidden;

    text-align: right;         /* ⭐ texte aligné à gauche */
    box-sizing: border-box;   /* pour que padding + width se combinent bien */
    

    transition:
        opacity .25s ease,
        width .35s ease,
        padding .35s ease;
}

.sm-back-slide-cours {
  background: #6a1b9a;
}
.sm-back-slide-methode {
  background: #ff7a00;
}
.sm-back-slide-astuce {
  background: #d81b60;
}

/* Déploiement au survol */
.sm-back-chip:hover .sm-back-slide {
    opacity: 1;
    width: 220px;
    padding: 12px;
    padding-left: 20px;
}




.sm-mission-item {
    position: relative;
    cursor: pointer;
}

.sm-mission-item a {
    position: relative;
    z-index: 2;
}

/* Lien invisible qui couvre toute la mission */
.sm-mission-item .sm-fullclick {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}


/* ==== ANIMATION AU SURVOL DES MISSIONS ==== */

.sm-mission-item {
    transition: transform .18s ease, box-shadow .18s ease;
    cursor: pointer; /* toute la carte clickable */
}

.sm-mission-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

/* Le lien interne devient toute la surface */
.sm-mission-item a {
    display: inline-block;
    width: auto;
}




/* ---- Rendre toute la ligne cliquable ---- */
.sm-sidebar-mission-link {
    text-decoration: none;
    display: block;
}

/* Bloc complet cliquable */
.sm-sidebar-mission {
    background: #fff;
    margin: 10px 0;
    padding: 12px 16px;
    border-radius: 10px;
    border-left: 4px solid var(--state-color, #ccc);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: transform .25s ease, box-shadow .25s ease;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Effet hover */
.sm-sidebar-mission-link:hover .sm-sidebar-mission {
    transform: translateX(4px);
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
}

/* Titre */
.sm-sidebar-mission-title {
    font-weight: 600;
    font-size: 14px;
}

/* Badge état */
.sm-sidebar-mission-badge {
    display: inline-block;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: .4px;
    width: fit-content;
}

/* Mission courante (ta flèche est déjà dans le PHP) */
.sm-sidebar-mission.current {
    outline: 2px solid rgba(0,0,0,0.25);
    transform: scale(1.02);
}



/* Réduit les espaces dans le texte personnalisé du tableau de bord */
.sm-dashboard-intro p {
    margin-top: 6px !important;
    margin-bottom: 6px !important;
    line-height: 1.4 !important;
}

/* Réduit l’espace sous les titres */
.sm-dashboard-intro h2,
.sm-dashboard-intro h3,
.sm-dashboard-intro h4 {
    margin-top: 12px !important;
    margin-bottom: 8px !important;
    line-height: 1.3 !important;
}

/* Réduit l’espace dans les listes */
.sm-dashboard-intro ul li {
    margin-bottom: 4px !important;
}

/* Réduction globale du padding interne */
.sm-dashboard-intro {
    margin-bottom: 10px !important;
}


/* =======================================================
   MON COMPTE → MES PARCOURS 
   Forcer 2 cartes par ligne (au lieu de 3)
   ======================================================= */

/* Conteneur en grille flexible */
.woocommerce-account .woocommerce-MyAccount-content .sm-qg-grid {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 24px !important; /* espace horizontal + vertical */
}

/* Chaque carte = 50% - espace */
.woocommerce-account .woocommerce-MyAccount-content .sm-qg-grid .sm-qg-card {
    width: calc(50% - 12px) !important; 
    box-sizing: border-box !important;
}

/* Mobile → 1 carte par ligne */
@media (max-width: 800px) {
    .woocommerce-account .woocommerce-MyAccount-content .sm-qg-grid .sm-qg-card {
        width: 100% !important;
    }
}


/* FICHES */
.sm-liste-fiches li a {
    color: #ff7a00;
    text-decoration: none;
    font-size: 18px;
}

.sm-liste-fiches li a:hover {
    text-decoration: underline;
}



/* Placeholder vidéo */
.sm-video-placeholder {
    width: 100%;
    border-radius: 10px;
    opacity: 0.85;
}



/* Bloc description fiche */
.sm-fiche-desc {
    margin-top: 30px;
    padding: 20px 24px;
    border-radius: 16px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.06);
    background: #ffffff;
    font-size: 16px;
    line-height: 1.7;
}

/* ======================================================================
   STYLES DES TEXTES AUTOMATIQUES DES FICHES STRATÉGIE MATHS
   ====================================================================== */





/* ---------------------------
   COURS (MathsWoman — violet + orange)
   --------------------------- */


.sm-fiche-desc-type-cours {
    border-left: 6px solid #922194;
    box-shadow: 0 0 0 3px rgba(255,122,0,0.2);
}

.sm-fiche-desc-type-cours strong {
    color: #ff7a00; /* accents orange */
}

/* ---------------------------
   MÉTHODE (Léo — orange + marron)
   --------------------------- */


.sm-fiche-desc-type-methode {
    border-left: 6px solid #ff7a00;
    box-shadow: 0 0 0 3px rgba(122,74,0,0.15);
}

.sm-fiche-desc-type-methode strong {
    color: #7a4a00; /* accent marron */
}

/* ---------------------------
   ASTUCE (Léa — violet + cerise)
   --------------------------- */


.sm-fiche-desc-type-astuce {
    border-left: 6px solid #d81b60;
    box-shadow: 0 0 0 3px rgba(146,33,148,0.18);
}

.sm-fiche-desc-type-astuce strong {
    color: #d81b60; /* accent cerise vif */
}

/* ---------------------------
DESCRIPTION PARTIE FICHE 
   --------------------------- */

.sm-fiche-description-wrapper {
    position: relative;
    margin-top: 0px;
}

.sm-fiche-tag {
    position: absolute;
    top: 20px;
    right: -20px;
    padding: 8px 16px;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: rotate(3deg);
    z-index: 50;
}

/* Couleurs */
.sm-fiche-tag-cours {
    background: linear-gradient(135deg, #922194, #ff7a00);
}
.sm-fiche-tag-methode {
    background: linear-gradient(135deg, #ff7a00, #8a4b2b);
}
.sm-fiche-tag-astuce {
    background: linear-gradient(135deg, #d81b60, #922194);
}

/* Mobile */
@media(max-width: 900px) {
    .sm-fiche-tag {
        right: 0;
        left: 0;
        margin: auto;
        transform: rotate(0deg);
        top: -10px;
    }
}


/* ============================================
   PAGE FICHE — STYLE MODERNE FULL BLANC
   ============================================ */

.sm-fiche-page {
    max-width: 1200px;
    margin: 60px auto;
    padding: 20px;
    position: relative;
}

/* ----------------------
   TITRE
------------------------- */
.sm-fiche-title {
    font-size: 38px;
    margin-bottom: 25px;
    font-weight: 800;
    color: #222;
}

/* ----------------------
   POST-IT / TAG
------------------------- */
.sm-fiche-tag {
    position: absolute;
    top: -15px;
    right: -10px;
    background: #922194;
    padding: 10px 22px;
    color: #fff;
    font-weight: 700;
    font-size: 17px;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.sm-fiche-tag-cours {
    background: linear-gradient(90deg, #922194, #ff7a00);
}

.sm-fiche-tag-methode {
    background: linear-gradient(90deg, #ff7a00, #5a3b0c);
}

.sm-fiche-tag-astuce {
    background: linear-gradient(90deg, #922194, #d81b60);
}

/* ------------------------------------------------------------------
   DESCRIPTION : cadre orange avec barre verticale violette à gauche
--------------------------------------------------------------------- */
.sm-fiche-desc-body {
    background: #ffffff;
    padding: 18px 26px;
    border-radius: 12px;
    font-size: 14px !important;
    line-height: 1.6;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    margin-bottom: px;
}

/* ----------------------
   2 COLONNES
------------------------- */
.sm-fiche-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

/* Mobile */
@media(max-width: 920px) {
    .sm-fiche-columns {
        grid-template-columns: 1fr;
    }

    .sm-fiche-tag {
        position: static;
        display: inline-block;
        margin-bottom: 15px;
        border-radius: 12px;
    }
}

/* ----------------------
   BOXES
------------------------- */
.sm-fiche-box {
    background: #fff;
    padding: 20px;
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.sm-fiche-box h2 {
    margin-top: 0;
    font-size: 18px;
    margin-bottom: 12px;
    font-weight: 700;
    color: #922194;
}

/* PDF */
.sm-fiche-pdf-frame {
    width: 100%;
    height: 80vh;
    border: none;
    border-radius: 12px;
}

/* Vidéo */
.sm-fiche-video-frame {
    width: 100%;
    border-radius: 12px;
}

.sm-no-video {
    width: 100%;
    border-radius: 12px;
    opacity: 0.8;
}

/* Cadre global regroupant description + PDF + vidéo */
.sm-fiche-page {
    background: #ffffff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 6px 25px rgba(0,0,0,0.06);
}

/* Ajustement de l’espacement interne des colonnes */
.sm-fiche-columns {
    margin-top: 20px;
}

/* --- POST-IT du type de fiche --- */
.sm-fiche-postit {
    position: absolute;
    top: 100px;
    right: 20px;
    background: linear-gradient(135deg, #ff7a00 0%, #922194 100%);
    color: #fff;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 15px;
    box-shadow: 0 6px 14px rgba(0,0,0,0.18);
    transform: rotate(5deg);
    z-index: 20;
}


/* Base du post-it */
.sm-fiche-postit {
    position: absolute;
    top: 100px;
    right: 20px;
    padding: 10px 22px;
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    border-radius: 8px;
    box-shadow: 0 6px 14px rgba(0,0,0,0.15);
    transform: rotate(3deg);
    z-index: 20;
}

/* COURS = violet → orange */
.sm-fiche-postit-cours {
    background: linear-gradient(135deg, #922194, #ff7a00);
}

/* MÉTHODE = orange → marron */
.sm-fiche-postit-methode {
    background: linear-gradient(135deg, #ff7a00, #8a4b2b);
}

/* ASTUCE = violet → cerise */
.sm-fiche-postit-astuce {
    background: linear-gradient(135deg,#922194, #d81b60);
}

/* Mobile */
@media(max-width:900px){
    .sm-fiche-postit {
        position: static;
        transform: rotate(0deg);
        margin-bottom: 10px;
        right: 0;
    }
}


.sm-desc-wrapper h1,
.sm-desc-wrapper h2,
.sm-desc-wrapper h3 {
    margin-top: 16px;
    margin-bottom: 8px;
    font-weight: 700;
}

.sm-fiche-desc-type-cours .sm-desc-wrapper strong {
    color: #922194 !important;
}

.sm-fiche-desc-type-methode .sm-desc-wrapper strong {
    color: #ff7a00 !important;
}

.sm-fiche-desc-type-astuce .sm-desc-wrapper strong {
    color: #d81b60 !important;
}



.sm-back-icon {
    width: 28px;
    height: 28px;
    display: block;
    
}


/* --- Ruban des fiches comme Parcours --- */
.sm-fiche-ribbon {
    position: absolute;
    top: 12px;
    right: -8px;
    padding: 6px 14px;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    border-radius: 6px 0 0 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}

/* Couleurs selon type */
.sm-fiche-ribbon-cours {
    background: #6a1b9a;  /* violet */
}

.sm-fiche-ribbon-methode {
    background: #ff7a00; /* orange */
}

.sm-fiche-ribbon-astuce {
    background: #d81b60; /* cerise */
}

/* pour que le ruban s'affiche bien */
.sm-fiche-card {
    position: relative;
}




/* ============================================================
   🎓 STRATÉGIE MATHS — STYLE RECHERCHE + FILTRES PARCOURS
   (identique au design des fiches)
============================================================ */




/* ============================================================
   🔎 BARRE DE RECHERCHE
============================================================ */
.sm-parcours-search-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 14px;
}

.sm-parcours-search-wrapper {
    position: relative;
    width: 420px;      /* même largeur que les fiches */
}

#sm-parcours-search {
    width: 100%;
    padding: 9px 14px;
    padding-left: 34px;
    padding-right: 30px;
    font-size: 14px;
    border-radius: 14px;
    border: 2px solid #ccc;
    transition: border-color .25s ease;
}

.sm-parcours-clear-btn:hover { opacity: 1; }

/* ============================================================
   🔘 FILTRES (chips)
============================================================ */
.sm-parcours-filters {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}



/* Hover */
.sm-parcours-chip:hover {
    transform: scale(1.06);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}



/* ============================================================
   🔢 COMPTEUR
============================================================ */
.sm-parcours-counter {
    text-align: center;
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 6px;
}

.sm-parcours-counter.tous    { color: #d26d4e; }
.sm-parcours-counter.a-faire { color: #d81b60; }
.sm-parcours-counter.en-cours{ color: #f57c00; }
.sm-parcours-counter.valides { color: #6a1b9a; }

/* ============================================================
   MASQUAGE DES CARTES (filtrage JS)
============================================================ */
.sm-p-hidden {
    display: none !important;
}






/* ============================================================
   🎓 MES PARCOURS — STYLE DES CARTES & FILTRES (repris du PHP)
   ============================================================ */

/* Grille */
.sm-qg-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 20px;
    margin-top: 16px;
}
@media(max-width:1024px){ .sm-qg-grid { grid-template-columns: repeat(2,1fr); } }
@media(max-width:640px){ .sm-qg-grid { grid-template-columns: 1fr; } }

/* Cartes */
.sm-qg-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 14px;
    padding: 16px;
    box-shadow: 0 1px 6px rgba(0,0,0,.04);
    position: relative;
}
.sm-qg-title {
    font-weight: 700;
    margin: 0 0 6px;
    color: #222;
}
.sm-qg-desc {
    font-size: 13px;
    color: #666;
    margin: 0 0 12px;
}

/* Progress bar */
.sm-qg-progress {
    height: 10px;
    background: #f3e7f8;
    border-radius: 999px;
    overflow: hidden;
    margin: 8px 0 6px;
}
.sm-qg-bar {
    height: 100%;
    background: #f57c00; /* orange */
    width: 0;
    transition: width .4s;
}
.sm-qg-bar.finished {
    background: #6a1b9a !important; /* violet */
}

/* Boutons */
.sm-btn {
   
    border: none;
    border-radius: 10px;
    padding: 10px 14px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;

}
.sm-btn-start  { background: #d81b60; color:#fff; }
.sm-btn-primary{ background: #f57c00; color:#fff; }
.sm-btn-finish { background: #6a1b9a; color:#fff; }

.sm-enc { font-size:13px; margin-top:10px; text-align:center; }

/* Ruban état */
.sm-ribbon {
    position: absolute;
    top: 12px;
    right: -8px;
    background: #6a1b9a;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 6px 0 0 6px;
}

/* Bulle coach */
.sm-coach-bubble {
    margin-top: 8px;
    padding: 14px;
    border-radius: 14px;
    background: #f5efff;
    border: 2px solid #b89fff;
    text-align: center;
    font-weight: 600;
    color: #6a1b9a;
}

/* Conteneur visuel regroupant : recherche + filtres + compteur */
/* === Filtres / Recherche === */
.sm-parcours-filter-box {
        border: 2px solid #d26d4e;
        border-radius: 14px;
        padding: 20px;
        margin-bottom: 30px;
        box-shadow: 0 4px 14px rgba(0,0,0,0.06);
}

.sm-parcours-search-field {
    width: 100%;
    min-width: 380px;
    max-width: 380px;
    padding: 12px 16px;/private/var/folders/20/j10fxbfd67z0kl_cmgmvnrf40000gn/T/fz3temp-2/style-parcours.css
    border-radius: 14px;
    border: 2px solid #ccc;
    font-size: 15px;
    margin-bottom: 14px;
    /* ⭐ Centrage horizontal */
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Chips */
.sm-parcours-filters {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.sm-parcours-chip.active {
    background: #6a1b9a;
    color: #fff;
    border-color: #fff;
}

/* Compteur */
.sm-parcours-count {
    text-align: center;
    margin-top: 12px;
    color: #6a1b9a;
    font-weight: 700;
}

.hidden { display: none !important; }



/* === FILTRES PARCOURS – Couleurs Stratégie Maths === */
/* Bouton générique */
.sm-parcours-chip {
    padding: 10px 18px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    border: 2px solid transparent;
    background: #f3f3f3;
    transition: 
        background .25s ease,
        color .25s ease,
        transform .18s ease,
        box-shadow .25s ease,
        border-color .25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Tous */
.sm-parcours-chip.sm-chip-tous {
    color: #d26d4e;
    border-color: #d26d4e22;
}
.sm-parcours-chip.sm-chip-tous.active {
    background: #d26d4e;
    color: #fff;
    border-color: #fff;
}

/* À faire = cerise */
.sm-parcours-chip.sm-chip-a-faire {
    color: #d81b60;
    border-color: #d81b6022;
}
.sm-parcours-chip.sm-chip-a-faire.active {
    background: #d81b60;
    color: #fff;
    border-color: #fff;
}

/* En cours = orange */
.sm-parcours-chip.sm-chip-en-cours {
    color: #f57c00;
    border-color: #f57c0022;
}
.sm-parcours-chip.sm-chip-en-cours.active {
    background: #f57c00;
    color: #fff;
    border-color: #fff;
}

/* Validés = violet */
.sm-parcours-chip.sm-chip-valides {
    color: #6a1b9a;
    border-color: #6a1b9a22;
}
.sm-parcours-chip.sm-chip-valides.active {
    background: #6a1b9a;
    color: #fff;
    border-color: #fff;
}

/* === Compteur dynamique === */
.sm-parcours-count {
    text-align: center;
    font-weight: 700;
    margin-top: 14px;
}

/* Couleur selon filtre actif */
.sm-parcours-count.tous    { color: #d26d4e; }
.sm-parcours-count.a-faire { color: #d81b60; }
.sm-parcours-count.en-cours{ color: #f57c00; }
.sm-parcours-count.valides { color: #6a1b9a; }

/* ===== Couleurs dynamiques du compteur dans Mes Parcours ===== */

.sm-parcours-count {
    font-weight: 700;
    text-align: center;
    font-size: 15px;
    margin-top: 10px;
}

/* Tous = violet */
.sm-parcours-count.all {
    color: #d26d4e;
}

/* À faire = cerise */
.sm-parcours-count.todo {
    color: #d81b60;
}

/* En cours = orange */
.sm-parcours-count.progress {
    color: #f57c00;
}

/* Validés = violet foncé */
.sm-parcours-count.done {
    color: #6a1b9a;
}


/* ============================================================
   BARRE DE RECHERCHE – PARCOURS (avec icône)
============================================================ */

.sm-parcours-search-container {
    width: 100%;
    display: flex;
    justify-content: center; /* ⭐ centre le bloc */
    margin-bottom: 14px;
}

.sm-parcours-search-wrapper {
    position: relative;
    width: 400px; /* ⭐ même largeur que les 4 boutons */
    max-width: 400px;
}



/* Icône loupe */
.sm-parcours-search-icon {
    position: absolute;
    left: 20px;
    top: 40%;
    transform: translateY(-50%);
    opacity: .55;
    font-size: 15px; /* 🔧 légèrement plus petit pour meilleur centrage */
    line-height: 1;
}

/* Bouton effacer */
.sm-parcours-clear-btn {
    position: absolute;
    right: 20px;        /* 🔧 légèrement déplacée pour alignement parfait */
    top: 40%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    opacity: .55;
    font-size: 12px;    /* 🔧 plus fin */
    font-weight: 400;   /* 🔧 croix plus légère */
    line-height: 1;
    padding: 0;
}
.sm-parcours-clear-btn:hover { 
    opacity: 1; 
}


/* ============================================================
   ALIGNEMENT UNIFORME — Cartes Mes Parcours
   ============================================================ */


/* Harmonisation hauteur du titre + desc dans cartes */
.sm-qg-header {
    min-height: 110px;  /* Ajustable entre 76 et 110 */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.sm-qg-title {
    min-height: 48px; /* ajuste selon les titres les plus longs */
    display: flex;
    align-items: flex-start;
}

.sm-qg-desc {
    min-height: 20px;
}


/* ============================================================
   EMODJI LIVRES COURS METHODES ASTUCES — Cartes Mes Parcours
   ============================================================ */
.sm-qg-title::before {
    content: "";
    display: inline-block;
    width: 40px;
    height: 40px;
    background-image: url('/wp-content/themes/blocksy-child/images/cours-methodes-astuces.png');
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: middle;
    margin-right: 8px;
    margin-top: -8px;
    margin-left: -6px;
}



/* ============================================================
   HORLOGE A FAIRE — Cartes Mes Parcours
   ============================================================ */
.sm-ribbon-a-faire {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #d81b60 !important; /* cerise */
    padding: 2px 12px;
    border-radius: 6px 0 0 6px;
}
.sm-ribbon-icone {
    height: 25px;
    width: auto;
    display: inline-block;
}
.sm-ribbon-en-cours {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #f57c00;
    padding: 4px 10px;
    border-radius: 8px;
}
/* Ruban terminé */
.sm-ribbon-termine {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #6a1b9a; /* violet */
    padding: 4px 10px;
    border-radius: 6px;
    color: #fff;
    font-weight: 600;
}


.sm-emoji {
    width: 22px;
    height: 22px;
    vertical-align: middle;
    display: inline-block;
}

.sm-fiche-mini {
    display: inline-flex;
    justify-content: center;
    align-items: center;

    width: 48px;
    height: 48px;
    padding: 6px;

    background: #fff;
    border-radius: 12px;

    box-shadow: 0 4px 12px rgba(0,0,0,0.12);

    border: 1px solid #eee;

    margin-right: 8px;
}



/* =========================================================
   STRATÉGIE MATHS — SHOP / CATÉGORIES (fiches, parcours, exos)
   Mise en page 2 colonnes + couleurs
   ========================================================= */

.tax-product_cat .sm-shop-layout{
  max-width: 1240px;
  margin: 0 auto;
  padding: 26px 18px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
  align-items: start;
}

/* Responsive */
@media (max-width: 980px){
  .tax-product_cat .sm-shop-layout{
    grid-template-columns: 1fr;
  }
}

/* Sidebar filtres */
.tax-product_cat .sm-filter-sidebar{
  background: #fff;
  border: 1px solid rgba(106,27,154,.12); /* violet doux */
  border-radius: 16px;
  padding: 16px 16px 14px;
  box-shadow: 0 10px 24px rgba(0,0,0,.06);
  position: sticky;
  top: 200px;
}

@media (max-width: 980px){
  .tax-product_cat .sm-filter-sidebar{
    position: relative;
    top: auto;
  }
}

.tax-product_cat .sm-filter-sidebar h3{
  margin: 0 0 12px !important;
  font-size: 16px;
  font-weight: 800;
  color: #6A1B9A; /* violet */
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(106,27,154,.10);
}

/* Titres sections (Classe / Difficulté / Chapitre) */
.tax-product_cat .sm-filter-sidebar strong{
  display: block;
  margin: 10px 0 6px;
  font-size: 13px;
  color: #222;
}

/* Cases */
.tax-product_cat .sm-filter-sidebar label{
  display: flex !important;
  align-items: center;
  gap: 6px;
  margin: 2px 0 !important;
  font-size: 14px;
  color: #333;
  cursor: pointer;
}

.tax-product_cat .sm-filter-sidebar input[type="checkbox"]{
  width: 18px;
  height: 18px;
  accent-color: #ff7a00; /* orange Stratégie Maths */
}

/* Select Chapitre */
.tax-product_cat .sm-filter-sidebar select{
  width: 100% !important;
  margin-top: 6px;
  padding: 10px 12px;
  border: 1px solid rgba(0,0,0,.14);
  border-radius: 12px;
  background: #fff;
  font-size: 14px;
  outline: none;
}

.tax-product_cat .sm-filter-sidebar select:focus{
  border-color: rgba(255,122,0,.7);
  box-shadow: 0 0 0 4px rgba(255,122,0,.15);
}

/* Bouton "Effacer les filtres" */
.tax-product_cat .sm-filter-sidebar a{
  display: block;
  margin-top: 12px;
  text-align: center;
  padding: 10px 12px;
  border-radius: 12px;
  text-decoration: none !important;
  font-weight: 700;
  border: 1px solid rgba(255,122,0,.35) !important;
  color: #ff7a00 !important;
  background: rgba(255,122,0,.06);
  transition: transform .08s ease, background .15s ease;
}

.tax-product_cat .sm-filter-sidebar a:hover{
  background: rgba(255,122,0,.12);
  transform: translateY(-1px);
}

/* Zone produits */
.tax-product_cat .sm-products-area{
  min-width: 0;
}

/* Grille WooCommerce plus propre */
.tax-product_cat ul.products{
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px !important;
  margin: 0 !important;
}

@media (max-width: 1100px){
  .tax-product_cat ul.products{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px){
  .tax-product_cat ul.products{
    grid-template-columns: 1fr;
  }
}

/* Cartes produit */
.tax-product_cat ul.products li.product{
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 10px 24px rgba(0,0,0,.05);
  transition: transform .12s ease, box-shadow .12s ease;
}

.tax-product_cat ul.products li.product:hover{
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0,0,0,.08);
}

/* Image arrondie */
.tax-product_cat ul.products li.product a img{
  border-radius: 14px;
}

/* Titre produit */
.tax-product_cat ul.products li.product .woocommerce-loop-product__title{
  font-size: 15px !important;
  font-weight: 800 !important;
  color: #1f1f1f;
  margin: 10px 0 6px !important;
}

/* Prix */
.tax-product_cat ul.products li.product .price{
  font-weight: 800;
  color: #6A1B9A; /* violet */
}

/* Bouton Ajouter au panier */
.tax-product_cat ul.products li.product a.button{
  border-radius: 12px !important;
  font-weight: 800 !important;
  background: #ff7a00 !important;
  color: #fff !important;
  border: none !important;
  padding: 10px 12px !important;
}

.tax-product_cat ul.products li.product a.button:hover{
  filter: brightness(0.95);
}

/* Pagination */
.tax-product_cat nav.woocommerce-pagination ul{
  border: none !important;
}

.tax-product_cat nav.woocommerce-pagination ul li a,
.tax-product_cat nav.woocommerce-pagination ul li span{
  border-radius: 10px !important;
}

.tax-product_cat nav.woocommerce-pagination ul li span.current{
  background: rgba(255,122,0,.15) !important;
  color: #ff7a00 !important;
}


/* Nombre de résultats sous les filtres */
.sm-filter-sidebar .sm-results-count{
  margin: 6px 0 14px;
  font-size: 13px;
  font-weight: 700;
  color: #6A1B9A; /* violet Stratégie Maths */
  background: rgba(106,27,154,.08);
  padding: 6px 10px;
  border-radius: 10px;
  text-align: center;
}


/* ======================================
   SUPPRIMER LE COMPTEUR DE RÉSULTATS WOO
   ====================================== */

/* Texte "X résultats" en haut des produits */
.woocommerce-result-count {
  display: none !important;
}

/* Texte "tri par défaut" en haut des produits */
.woocommerce-ordering {
  display: none !important;
}

/* ======================================
   DESCENDRE TOUT LE BLOC SOUS LE MENU
   ====================================== */

.sm-shop-layout.sm-shop-layout--offset{
  display: flex;
  gap: 40px;
  align-items: flex-start;
  padding-top: 100px; /* <-- augmente si besoin */
}

/* Sur mobile : un peu moins */
@media (max-width: 900px){
  .sm-shop-layout.sm-shop-layout--offset{
    flex-direction: column;
    padding-top: 20px;
  }
}
