/* 
 * Studies Learning - Eduma Style Formations 
 * ===========================================
 */

/* ====================================================================
   RESET GLOBAL PAGE — Supprime l'image de fond du body sur cette page
==================================================================== */
.page-template-page-formations {
  background-image: none !important;
  background: #ffffff !important;
}

:root {
  --fp-primary: #0047ff;
  --fp-deep: #0f172a;
  --fp-accent: #00d4aa;
  --fp-border: #f1f5f9;
  --fp-text: #1e293b;
  --fp-text-muted: #64748b;
  --fp-cyan: #00f2ff;
}

/* ====================================================================
   LAYOUT GLOBAL — Conteneur centré avec marges généreuses
==================================================================== */
.studies-p-main {
  max-width: 100%;
  overflow-x: hidden;
}

.studies-p-courses-section {
  max-width: 1400px;
  margin: auto 8rem;
  padding: 0 3rem 5rem;
}

@media (max-width: 1100px) {
  .studies-p-courses-section {
    margin: auto 2rem;
    padding: 0 2rem 4rem;
  }
}

@media (max-width: 768px) {
  .studies-p-courses-section {
    margin: auto 0; /* Suppression des 8rem qui rendaient la page fine */
    padding: 0 1rem 3rem;
  }
}

/* ====================================================================
   HERO BANNER — Identique à l'accueil (couleurs indigo/violet restaurées)
==================================================================== */
.eduma-hero-banner {
  background: linear-gradient(135deg, #2e1d65 0%, #3730a3 55%, #1e3a8a 100%);
  border-radius: 2.5rem;
  padding: 4rem 5rem;
  position: relative;
  overflow: hidden;
  margin: 120px 5rem 2rem;
  /* 110px du haut pour le header fixe ; 3rem L/R */
  height: 380px;
  display: flex;
  align-items: center;
  gap: 3rem;
  color: #fff;
  box-shadow: 0 28px 70px rgba(46, 29, 101, 0.4);
}

/* Blob décoratif haut-droite */
.eduma-hero-banner::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -10%;
  width: 500px;
  height: 380px;
  background: radial-gradient(
    circle,
    rgba(99, 102, 241, 0.55) 0%,
    transparent 70%
  );
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}

/* Blob décoratif bas-gauche */
.eduma-hero-banner::after {
  content: "";
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(
    circle,
    rgba(139, 92, 246, 0.4) 0%,
    transparent 70%
  );
  filter: blur(50px);
  pointer-events: none;
  z-index: 0;
}

.eduma-hero-content {
  position: relative;
  z-index: 2;
  flex: 1;
  min-width: 0;
}

.eduma-hero-content .hero-title,
.eduma-hero-content h1 {
  font-family: "Plus Jakarta Sans", "Outfit", sans-serif;
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1rem;
  color: #fff;
}

.eduma-hero-content .hero-subtitle,
.eduma-hero-content p {
  font-family: "Plus Jakarta Sans", "Outfit", sans-serif;
  font-size: 1.05rem;
  opacity: 0.85;
  max-width: 500px;
  color: #e0e7ff;
  line-height: 1.7;
  margin-bottom: 0;
}

/* Stats badges */
.eduma-hero-stats {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.eduma-hero-stat {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 0.6rem 1.4rem;
  text-align: center;
}

.eduma-hero-stat strong {
  display: block;
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  margin-bottom: 0.2rem;
}

.eduma-hero-stat span {
  font-size: 0.75rem;
  opacity: 0.7;
  color: #c7d2fe;
}

/* ---- Robot image & speech bubble (reprend les classes de l'accueil) ---- */
.eduma-hero-image {
  position: relative;
  z-index: 10;
  flex-shrink: 0;
  width: 450px;
}

/* Le robot réutilise .robot-image de style.css (floatRobot animation) */
.eduma-hero-image .robot-image {
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* Speech bubble reprend .speech-bubble-modern de style.css */
.eduma-hero-image .speech-bubble-modern {
  top: 60px;
  right: 60px;
  z-index: 15;
}

/* ---- Sphères flottantes (reprennent les classes de style.css) ---- */
/* Les animations sphere-X sont déjà définies dans style.css */
.eduma-hero-banner .floating-sphere {
  z-index: 1 !important;
  /* Derrière le texte */
}

.eduma-hero-content {
  position: relative;
  z-index: 10;
}

@media (max-width: 1100px) {
  .eduma-hero-banner {
    margin: 110px 2rem 3rem;
    padding: 3.5rem 3rem;
    gap: 2rem;
    height: auto;
    min-height: 320px;
  }

  .eduma-hero-image {
    width: 240px;
  }
}

@media (max-width: 768px) {
  .eduma-hero-banner {
    flex-direction: column;
    text-align: center;
    padding: 3rem 1.5rem;
    margin: 100px 1rem 2.5rem;
    gap: 1.5rem;
    border-radius: 2rem;
    height: auto;
  }

  .eduma-hero-content .hero-title,
  .eduma-hero-content h1 {
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
  }

  .eduma-hero-content .hero-subtitle,
  .eduma-hero-content p {
    font-size: 0.95rem;
    margin: 0 auto;
  }

  .eduma-hero-stats {
    justify-content: center;
    margin-top: 1.5rem;
    gap: 0.8rem;
  }

  .eduma-hero-stat {
    padding: 0.5rem 1rem;
    flex: 1 1 40%;
  }

  .eduma-hero-image {
    width: 160px;
    margin: 0 auto;
    order: -1;
    /* Robot en premier pour le visuel mobile */
  }

  .eduma-hero-image .speech-bubble-modern {
    right: -10px;
    top: 0;
    width: 130px;
    font-size: 0.7rem;
    padding: 0.5rem 0.8rem;
  }
}

/* ====================================================================
   EN-TÊTE DE SECTION — Centré
==================================================================== */
.studies-p-section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.studies-p-section-title-block h2 {
  font-family: "Plus Jakarta Sans", "Outfit", sans-serif;
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.sp-typewriter-heading {
  min-height: 1.4em;
  display: flex;
  justify-content: center;
  align-items: center;
}

.sp-typewriter-wrap {
  display: inline-flex;
  align-items: baseline;
}

.sp-typewriter-text {
  transition: color 0.3s ease;
}

.sp-typewriter-cursor {
  display: inline-block;
  font-weight: 300;
  font-size: 1em;
  margin-left: 2px;
  animation: spCursorBlink 0.7s step-end infinite;
  transition:
    color 0.3s ease,
    text-shadow 0.3s ease;
}

@keyframes spCursorBlink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

.studies-p-section-title-block p {
  font-size: 1.2rem;
  color: #64748b;
  margin: 0 auto;
  max-width: 650px;
  line-height: 1.7;
}

.accent-line {
  width: 48px;
  height: 4px;
  background: linear-gradient(90deg, #4f46e5, #7c3aed);
  border-radius: 4px;
  margin: 0.7rem auto 0;
}

/* ====================================================================
   ZONE DE RECHERCHE + CATÉGORIES
   ==================================================================== */
.formations-search-area {
  margin-bottom: 2rem;
}

/* ── Barre de recherche large ── */
.formations-search-box {
  position: relative;
  max-width: 720px;
  margin: 0 auto 1.5rem;
}

.formations-search-box i {
  position: absolute;
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.35rem;
  color: #94a3b8;
  pointer-events: none;
  z-index: 2;
}

.formations-search-box input {
  width: 100%;
  padding: 1rem 1.25rem 1rem 3.5rem;
  border-radius: 60px;
  border: 2px solid #e2e8f0;
  background: #ffffff;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 500;
  color: #0f172a;
  transition: all 0.35s ease;
  outline: none;
  box-sizing: border-box;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.formations-search-box input:focus {
  border-color: #0047ff;
  box-shadow: 0 0 0 5px rgba(0, 71, 255, 0.06), 0 4px 20px rgba(0, 71, 255, 0.08);
}

.formations-search-box input::placeholder {
  color: #94a3b8;
  font-weight: 400;
}

/* ── Catégories : teaser + assistant ── */
.formations-categories-area {
  max-width: 820px;
  margin: 0 auto;
}

.formations-categories-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: center;
}

.formations-cat-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.25rem;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  color: #475569;
  background: #ffffff;
  border: 2px solid #e2e8f0;
  transition: all 0.25s ease;
  white-space: nowrap;
  line-height: 1.4;
  cursor: pointer;
  font-family: inherit;
}

.formations-cat-chip:hover {
  border-color: #0047ff;
  color: #0047ff;
  background: rgba(0, 71, 255, 0.03);
  transform: translateY(-2px);
}

.formations-cat-chip.active {
  background: #0047ff;
  border-color: #0047ff;
  color: #fff;
  box-shadow: 0 4px 16px rgba(0, 71, 255, 0.2);
}

.formations-cat-chip-count {
  font-size: 0.7rem;
  font-weight: 700;
  opacity: 0.65;
  background: rgba(0, 0, 0, 0.04);
  padding: 1px 9px;
  border-radius: 100px;
}

.formations-cat-chip.active .formations-cat-chip-count {
  background: rgba(255, 255, 255, 0.2);
  opacity: 1;
}

/* ── Bouton "Toutes les catégories" ── */
.formations-cat-all-btn {
  background: #f1f5f9;
  border-color: #e2e8f0;
  color: #334155;
}

.formations-cat-all-btn:hover {
  background: #e2e8f0;
  border-color: #cbd5e1;
  transform: translateY(-2px);
}

.formations-cat-all-icon {
  display: flex;
}

/* Promo chip */
.is-promo-chip {
  color: #dc2626;
  border-color: rgba(220, 38, 38, 0.2);
  background: rgba(220, 38, 38, 0.04);
}

.is-promo-chip:hover {
  border-color: #dc2626;
  color: #dc2626;
  background: rgba(220, 38, 38, 0.06);
}

.is-promo-chip.active {
  background: #dc2626;
  border-color: #dc2626;
  color: #fff;
  box-shadow: 0 4px 16px rgba(220, 38, 38, 0.25);
}

/* Auction chip */
.is-auction-chip {
  color: #0047ff;
  border-color: rgba(0, 71, 255, 0.2);
  background: rgba(0, 71, 255, 0.04);
}

.is-auction-chip:hover {
  border-color: #0047ff;
  color: #0047ff;
  background: rgba(0, 71, 255, 0.06);
  transform: translateY(-2px);
}

.formations-cat-all-btn:hover {
  background: #e2e8f0;
  border-color: transparent;
  color: #0f172a;
}

.formations-cat-all-icon {
  display: inline-flex;
  align-items: center;
  opacity: 0.7;
}

.formations-cat-all-btn:hover .formations-cat-all-icon {
  opacity: 1;
}

/* ── Assistant message ── */
.formations-cat-assistant {
  text-align: center;
  font-size: 0.85rem;
  color: #94a3b8;
  margin: 1rem 0 0;
  line-height: 1.5;
}

.formations-cat-assistant strong {
  color: #475569;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s;
}

.formations-cat-assistant strong:hover {
  color: #0047ff;
}

.formations-cat-assistant-icon {
  display: inline-block;
  margin-right: 0.3rem;
  font-size: 0.9rem;
}

/* ====================================================================
   MODAL — Toutes les catégories (style verre premium)
   ==================================================================== */
.formations-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 7, 34, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  animation: formationsModalFadeIn 0.3s ease;
}

.formations-modal-overlay.open {
  display: flex;
}

@keyframes formationsModalFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.formations-modal {
  width: min(800px, calc(100vw - 2rem));
  max-height: min(600px, calc(100vh - 3rem));
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(0, 71, 255, 0.08);
  border-radius: 28px;
  box-shadow:
    0 40px 100px -20px rgba(0, 7, 34, 0.25),
    0 0 0 1px rgba(0, 71, 255, 0.04);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: formationsModalSlideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes formationsModalSlideIn {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.formations-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem 0.75rem;
  border-bottom: 1px solid #eef0f4;
  flex-shrink: 0;
}

.formations-modal-title {
  font-size: 1rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
}

.formations-modal-close {
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
  color: #94a3b8;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.formations-modal-close:hover {
  background: #f1f5f9;
  color: #475569;
}

.formations-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem 1.5rem;
  scrollbar-width: thin;
  scrollbar-color: #dce0e8 transparent;
}

.formations-modal-body::-webkit-scrollbar {
  width: 5px;
}

.formations-modal-body::-webkit-scrollbar-thumb {
  background: #dce0e8;
  border-radius: 4px;
}

.formations-modal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.6rem;
}

.formations-modal-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 1rem;
  border-radius: 12px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  color: #475569;
  background: #f8fafc;
  border: 1px solid #eef0f4;
  transition: all 0.2s ease;
}

.formations-modal-chip:hover {
  background: #eef2ff;
  border-color: rgba(0, 71, 255, 0.15);
  color: #0047ff;
  transform: translateY(-1px);
}

.formations-modal-chip.active,
.formations-modal-chip.selected {
  background: #0047ff;
  border-color: #0047ff;
  color: #fff;
  font-weight: 700;
}

.formations-modal-chip.selected {
  box-shadow: 0 0 0 2px #0047ff, 0 0 0 4px rgba(0,71,255,0.15);
}

.formations-modal-chip-name {
  flex: 1;
  min-width: 0;
}

.formations-modal-chip-count {
  font-size: 0.68rem;
  font-weight: 600;
  color: #94a3b8;
  background: #fff;
  padding: 1px 8px;
  border-radius: 100px;
  flex-shrink: 0;
  margin-left: 0.5rem;
}

.formations-modal-chip.active .formations-modal-chip-count,
.formations-modal-chip.selected .formations-modal-chip-count {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.formations-modal-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.75rem 1.5rem 1.25rem;
  border-top: 1px solid #eef0f4;
  flex-shrink: 0;
}

.formations-modal-apply {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.5rem;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
  background: #0047ff;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: inherit;
}

.formations-modal-apply:hover {
  background: #0036cc;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 71, 255, 0.25);
}

/* Toast notification */
#formations-toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #0f172a;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: "DM Sans", "Inter", sans-serif;
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
  z-index: 99999;
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.16,1,0.3,1);
  pointer-events: none;
}
#formations-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 640px) {
  .formations-modal-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .formations-modal-chip {
    font-size: 0.8rem;
    padding: 0.6rem 0.8rem;
  }
}

/* ====================================================================
   BARRE D'OUTILS — Niveau + Compteur + Toggle
   ==================================================================== */
.formations-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2.5rem;
  padding: 1rem 1.5rem;
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #eef0f4;
}

.formations-level-pills {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.formations-level-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94a3b8;
  margin-right: 0.3rem;
}

.formations-level-pill {
  padding: 0.45rem 1rem;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  transition: all 0.2s ease;
  border: 2px solid #e2e8f0;
  color: #64748b;
  background: transparent;
}

.formations-level-pill:hover {
  border-color: #0047ff;
  color: #0047ff;
  background: rgba(0, 71, 255, 0.03);
}

.formations-level-pill.active {
  background: #0047ff;
  border-color: #0047ff;
  color: #fff;
  box-shadow: 0 3px 12px rgba(0, 71, 255, 0.18);
}

.formations-toolbar-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .formations-toolbar {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }

  .formations-level-pills {
    justify-content: center;
  }

  .formations-toolbar-right {
    justify-content: space-between;
  }

  .formations-categories-chips {
    gap: 0.4rem;
  }

  .formations-cat-chip {
    font-size: 0.8rem;
    padding: 0.4rem 0.9rem;
  }
}

/* ====================================================================
   GRID HEADER — Compteur + Toggle Vues
   ==================================================================== */









/* ====================================================================
   GRID HEADER — Compteur + Toggle Vues
==================================================================== */
.eduma-grid-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-top: 2rem;
  border-top: 1.5px solid #f1f5f9;
}

@media (max-width: 768px) {
  .eduma-grid-header {
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    text-align: center;
  }

  .eduma-view-toggle {
    display: flex;
    margin-top: 0.5rem;
  }
}

.eduma-results-count {
  color: #64748b;
  font-weight: 600;
  font-size: 1rem;
}

.eduma-results-count strong {
  color: #0f172a;
  font-size: 1.15rem;
}

/* Toggle Grille / Liste */
.eduma-view-toggle {
  display: flex;
  gap: 0.3rem;
  background: #f1f5f9;
  border-radius: 10px;
  padding: 0.3rem;
}

.view-btn {
  background: transparent;
  border: none;
  border-radius: 7px;
  padding: 0.45rem 0.7rem;
  cursor: pointer;
  color: #94a3b8;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  line-height: 1;
}

.view-btn:hover {
  color: #475569;
}

.view-btn.active {
  background: #fff;
  color: #4f46e5;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

/* ====================================================================
   COURSE GRID — Mode Grille (défaut)
==================================================================== */
.eduma-courses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

@media (max-width: 1100px) {
  .eduma-courses-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .eduma-courses-grid {
    grid-template-columns: 1fr;
  }
}

/* ====================================================================
   COURSE GRID — Mode Liste
==================================================================== */
.eduma-courses-grid.list-view {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.eduma-courses-grid.list-view .eduma-course-card {
  flex-direction: row;
  max-height: 200px;
  /* Hauteur fixe pour éviter déformation */
}

.eduma-courses-grid.list-view .eduma-course-img-wrap {
  width: 240px;
  min-width: 240px;
  height: 200px;
  flex-shrink: 0;
  border-radius: 16px 0 0 16px;
}

.eduma-courses-grid.list-view .eduma-course-content {
  flex: 1;
  min-width: 0;
  /* Empêche le débordement du texte */
  padding: 1.2rem 1.5rem;
  overflow: hidden;
}

.eduma-courses-grid.list-view .eduma-course-title {
  padding-bottom: 0.5rem;
  /* Tronquer si trop long */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 640px) {
  .eduma-courses-grid.list-view .eduma-course-card {
    flex-direction: row; /* Keep horizontal list even on mobile */
    max-height: 140px; /* More compact on mobile */
    gap: 0;
  }

  .eduma-courses-grid.list-view .eduma-course-img-wrap {
    width: 120px; /* Small square-ish image on mobile list */
    min-width: 120px;
    height: 140px;
  }

  .eduma-courses-grid.list-view .eduma-course-content {
    padding: 0.8rem 1rem;
    justify-content: center;
  }

  .eduma-courses-grid.list-view .eduma-course-title {
    font-size: 0.95rem;
    margin-bottom: 0.3rem;
  }

  .eduma-courses-grid.list-view .eduma-course-footer {
    padding-top: 0.5rem;
    border-top: none;
  }

  .eduma-courses-grid.list-view .eduma-course-meta-icons {
    display: none; /* Hide icons in mobile list for space */
  }

  .eduma-courses-grid.list-view .eduma-course-price {
    font-size: 1rem;
  }
}

@media (max-width: 380px) {
  .eduma-courses-grid.list-view .eduma-course-img-wrap {
    width: 100px;
    min-width: 100px;
  }
  .eduma-courses-grid.list-view .eduma-course-title {
    font-size: 0.85rem;
  }
}

/* ====================================================================
   COURSE CARD — Style premium, pas de noir
   ==================================================================== */
.formations-course-card {
  background: #ffffff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0, 71, 255, 0.04);
  border: 1px solid #eef0f4;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}

.formations-course-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(0, 71, 255, 0.1);
  border-color: rgba(0, 71, 255, 0.1);
}

/* ── Media ── */
.formations-card-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
}

.formations-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.formations-course-card:hover .formations-card-img {
  transform: scale(1.06);
}

.formations-card-img-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  background: linear-gradient(135deg, #eef2ff, #e0e7ff);
}

.formations-card-img-fallback i {
  font-size: 3.5rem;
  color: #a5b4fc;
}

.formations-card-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: #16a34a;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.3rem 0.85rem;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.formations-card-badge.is-promo {
  background: #dc2626;
}

.formations-card-badge.is-auction {
  left: auto;
  right: 1rem;
  background: #7c3aed;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.formations-card-badge.is-auction.is-scheduled {
  background: #f59e0b;
}

.formations-card-badge.is-auction i {
  font-size: 0.85rem;
}

/* Promo countdown timer on card media */
.formations-card-promo-countdown {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  background: linear-gradient(135deg, #0047ff, #2563eb);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  border-radius: 100px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 12px rgba(0, 71, 255, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.formations-card-promo-countdown i {
  font-size: 0.85rem;
  color: #fcd34d;
}

.formations-card-promo-countdown .js-countdown-text {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

/* Prevent € from wrapping */
.formations-card-price {
  white-space: nowrap;
}

.fp-price-original,
.fp-price-sale {
  white-space: nowrap;
}

/* Sale price display */
.fp-price-original {
  text-decoration: line-through;
  color: #94a3b8;
  font-weight: 400;
  font-size: 0.8rem;
  margin-right: 0.3rem;
}

.fp-price-sale {
  color: #dc2626;
  font-weight: 700;
}

/* Auction timer */
.fp-auction-timer {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0.5rem 1.75rem 0;
  padding: 0.4rem 0.75rem;
  background: rgba(124, 58, 237, 0.06);
  border: 1px solid rgba(124, 58, 237, 0.12);
  border-radius: 8px;
  font-size: 0.78rem;
  color: #7c3aed;
  font-weight: 600;
}

.fp-auction-timer i {
  font-size: 0.9rem;
}

.fp-auction-bid {
  margin-left: auto;
  font-weight: 700;
}

/* ── Body ── */
.formations-card-body {
  padding: 1.5rem 1.75rem 1.25rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.formations-card-author {
  font-size: 0.82rem;
  color: #94a3b8;
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 500;
}

.formations-card-author i {
  font-size: 0.95rem;
}

.formations-card-title {
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.35;
  margin: 0 0 0.75rem;
  color: #1e293b;
}

.formations-card-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.formations-card-title a:hover {
  color: #0047ff;
}

/* ── Stats ── */
.formations-card-stats {
  display: flex;
  gap: 1rem;
  color: #64748b;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.formations-card-stats span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.formations-card-stats i {
  color: #94a3b8;
  font-size: 1rem;
}

/* ── Footer ── */
.formations-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid #eef0f4;
}

.formations-card-footer.is-sale-footer {
  flex-direction: column;
  align-items: stretch;
  gap: 0.4rem;
}

.formations-card-price-row {
  margin-bottom: 0.15rem;
}

.formations-card-cta-row {
  display: flex;
}

.formations-card-footer.is-sale-footer .formations-card-cta {
  width: 100%;
  text-align: center;
}

.formations-card-price {
  font-size: 1.3rem;
  font-weight: 900;
  color: #0047ff;
  letter-spacing: -0.01em;
}

.formations-card-price.is-free {
  color: #16a34a;
  font-size: 0.9rem;
  font-weight: 700;
}

.formations-card-cta {
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #0047ff, #2563eb);
  padding: 0.4rem 1.2rem;
  border-radius: 100px;
  transition: all 0.3s ease;
  letter-spacing: 0.01em;
}

.formations-course-card:hover .formations-card-cta {
  background: linear-gradient(135deg, #0037cc, #1d4ed8);
  box-shadow: 0 4px 14px rgba(0, 71, 255, 0.25);
  transform: translateY(-1px);
}

/* ====================================================================
   ÉTAT VIDE
==================================================================== */
.studies-p-empty {
  text-align: center;
  padding: 5rem 2rem;
  color: #64748b;
}

.studies-p-empty-icon {
  font-size: 4rem;
  color: #c7d2fe;
  margin-bottom: 1.5rem;
}

.studies-p-empty p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.studies-p-btn-reset {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: #fff;
  padding: 0.75rem 1.8rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.3);
}

.studies-p-btn-reset:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(79, 70, 229, 0.4);
  color: #fff;
}

/* ====================================================================
   PAGINATION — WordPress génère <ul> quand type='list'
==================================================================== */
.eduma-pagination {
  margin: 3.5rem auto 1rem;
  display: flex;
  justify-content: center;
}

.eduma-pagination ul {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.eduma-pagination ul li {
  display: flex;
}

.eduma-pagination ul li a,
.eduma-pagination ul li span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid var(--fp-border);
  color: var(--fp-text-muted);
  background: #fff;
}

.eduma-pagination ul li a:hover {
  background: #0047ff;
  color: #fff;
  border-color: #0047ff;
  transform: translateY(-2px);
}

.eduma-pagination ul li span.current {
  background: #0047ff;
  border-color: #0047ff;
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 71, 255, 0.25);
}

.eduma-pagination ul li span.dots {
  background: transparent;
  border-color: transparent;
  color: #94a3b8;
  cursor: default;
}

/* ====================================================================
   AUCTIONS SECTION — Elite Corporate Style
==================================================================== */
.studies-p-auctions-section {
  padding: 6rem 0;
  background: #fcfcfc;
  border-top: 1px solid var(--fp-border);
}

.studies-p-auctions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.studies-p-auction-card {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--fp-border);
  transition: all 0.5s cubic-bezier(0.2, 1, 0.3, 1);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.02);
}

.studies-p-auction-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.08);
}

.studies-p-auction-image {
  height: 220px;
  position: relative;
  overflow: hidden;
}

.studies-p-auction-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.studies-p-auction-card:hover .studies-p-auction-image img {
  transform: scale(1.08);
}

.studies-p-auction-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.5rem 1rem;
  background: var(--fp-primary);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 4px;
  box-shadow: 0 5px 15px rgba(0, 71, 255, 0.3);
}

.studies-p-auction-content {
  padding: 2rem;
}

.studies-p-auction-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--fp-deep);
  margin-bottom: 1.5rem;
  line-height: 1.4;
}

.studies-p-auction-price-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--fp-border);
  padding-top: 1.5rem;
}

.studies-p-auction-price-label {
  display: block;
  font-size: 0.65rem;
  text-transform: uppercase;
  color: var(--fp-text-muted);
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.studies-p-auction-price-value {
  font-size: 1.4rem;
  font-weight: 850;
  color: var(--fp-deep);
}

.studies-p-btn-auction {
  padding: 0.8rem 1.5rem;
  background: var(--fp-deep);
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.85rem;
  transition: all 0.3s ease;
}

.studies-p-btn-auction:hover {
  background: var(--fp-primary);
  transform: translateY(-2px);
}

@media (max-width: 1024px) {
  .studies-p-auctions-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .studies-p-auctions-grid {
    grid-template-columns: 1fr;
  }
}


