/* Container */
.container-custom {
  max-width: 1320px;
  padding-left: 32px;
  padding-right: 32px;
}

/* ── Full-width hero wrapper ──────────────────────────────────── */
.cat-hero {
  position: relative;
  width: 100%;
  background: #e3ecf6;
  margin: 0 0 56px 0;
}
.cat-hero__container {
  position: relative;
  z-index: 1;
  /* On élargit le contenu du hero au-delà du container-custom (1320px) — uniquement dans le hero */
  max-width: 80%;
}

/* ── Flèche de scroll — à cheval entre .cat-hero et le main ────── */
.cat-hero__scroll {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--navy, #0079bf);
  box-shadow: 0 10px 28px rgba(26, 52, 96, .15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy, #1a3460);
  text-decoration: none;
  z-index: 10;
  transform: translate(-50%, 50%);
  transition: box-shadow .25s ease, background .25s ease;
}
.cat-hero__scroll svg {
  width: 24px;
  height: 24px;
  animation: catHeroScrollBounce 2.2s ease-in-out infinite;
}
.cat-hero__scroll:hover {
  background: var(--navy);
  color: #fff;
}
@keyframes catHeroScrollBounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(5px); }
}
html.dark-mode .cat-hero__scroll {
  background: var(--white);
  border-color: var(--navy);
  color: var(--text);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .45);
}

/* ── Split Hero ──────────────────────────────────────────────── */
.cat-hero-split {
  display: flex;
  align-items: stretch;
  gap: 40px;
  padding: 64px 0 72px;
  min-height: clamp(600px, calc(100vh - 140px), 780px);
  /* Permet aux popovers (CTA) de dépasser */
  overflow: visible;
}

/* Left panel */
.hero-left {
  width: calc(46% - 20px);
  flex-shrink: 0;
  background: transparent;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0;
  position: relative;
  overflow: visible;
}
.hero-left__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 580px;
}

.hero-left__title {
  font-size: clamp(28px, 2.6vw, 42px);
  font-weight: 800;
  color: var(--navy, #1a3460);
  line-height: 1.18;
  letter-spacing: -.02em;
  margin: 0 0 18px;
}

.hero-left__stats {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 38px;
}
.hero-left__stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  background: #fff;
  border: 1px solid rgba(26,52,96,.08);
  border-radius: 999px;
  color: var(--text2, #475569);
  font-weight: 500;
  font-size: 13px;
  box-shadow: 0 2px 8px rgba(26,52,96,.05);
}
.hero-left__stat-pill strong {
  color: var(--navy, #1a3460);
  font-weight: 800;
  font-size: 14px;
}

.hero-left__btns-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text3, #94a3b8);
  margin-bottom: 14px;
}
.hero-left__btns-label-line {
  width: 28px;
  height: 1px;
  background: rgba(26,52,96,.18);
}

.hero-left__btns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
/* 4 parcours → grille 2×2 remplie par colonnes (1,2 | 3,4) */
.hero-left__btns:has(.hero-left__cta:nth-child(4)):not(.hero-left__btns--carousel) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, auto);
  grid-auto-flow: column;
}

/* ── Carrousel parcours (≥ 3) — 1 colonne / slide, largeur 100% (2 boutons empilés) ── */
.parcours-carousel {
  width: 100%;
}
.parcours-carousel__viewport {
  position: relative;
  overflow: hidden;
  width: 100%;
  container-type: inline-size;
  container-name: parcours-carousel;
}
.parcours-carousel--active .hero-left__cta.ga-popover-open {
  position: relative;
  z-index: 25;
}
.parcours-carousel.parcours-carousel--active {
  --parcours-gap: 12px;
  --parcours-peek: 0px;
  --parcours-page: 0;
}
.parcours-carousel.parcours-carousel--active.parcours-carousel--peek {
  --parcours-peek: 36px;
}
.parcours-carousel--peek .parcours-carousel__viewport::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 48px;
  background: linear-gradient(90deg, transparent 0%, #e3ecf6 72%);
  pointer-events: none;
  z-index: 1;
}
.parcours-carousel--active .hero-left__btns--carousel {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: var(--parcours-gap);
  width: max-content;
  transform: translateX(calc(
    -1 * var(--parcours-page) *
    (100cqi - var(--parcours-peek) + var(--parcours-gap))
  ));
  transition: transform .45s cubic-bezier(.22, .61, .36, 1);
  will-change: transform;
}
.parcours-carousel__col {
  flex: 0 0 calc(100cqi - var(--parcours-peek));
  width: calc(100cqi - var(--parcours-peek));
  min-width: calc(100cqi - var(--parcours-peek));
  max-width: calc(100cqi - var(--parcours-peek));
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}
.parcours-carousel__col--current {
  pointer-events: auto;
}
.parcours-carousel__col .hero-left__cta {
  width: 100%;
  max-width: 100%;
}
.parcours-carousel__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 18px;
}
.parcours-carousel__arrow {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: #fff;
  color: #475569;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(26, 52, 96, .12);
  transition: transform .2s ease, box-shadow .2s ease, color .2s ease;
  user-select: none;
  padding: 0 0 2px;
}
.parcours-carousel__arrow:hover {
  color: var(--navy, #1a3460);
  box-shadow: 0 6px 18px rgba(26, 52, 96, .16);
  transform: scale(1.04);
}
.parcours-carousel__arrow:active {
  transform: scale(.96);
}
.parcours-carousel__dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 10px;
}
.parcours-carousel__dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: none;
  padding: 0;
  cursor: pointer;
  background: rgba(52, 103, 231, .28);
  transition: width .3s ease, background .25s ease, transform .2s ease;
}
.parcours-carousel__dot:hover {
  background: rgba(52, 103, 231, .45);
}
.parcours-carousel__dot.is-active {
  width: 28px;
  background: #3467e7;
}

/* ── CTA training button — fond blanc au repos, teinte colorée au hover ── */
.hero-left__cta {
  --cta-icon-size: 50px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  width: 100%;
  background: #fff;
  color: var(--navy, #1a3460);
  border: 1px solid color-mix(in srgb, var(--cta-hover-bg, var(--navy)) 15%, transparent);
  cursor: pointer;
  padding: 14px 16px;
  border-radius: 16px;
  text-align: left;
  font-family: inherit;
  position: relative;
  overflow: visible;
  box-shadow: 0 4px 14px rgba(26,52,96,.06);
  transition: transform .35s cubic-bezier(.22,.61,.36,1),
              background .25s ease,
              border-color .25s ease,
              box-shadow .35s ease;
}
.hero-left__cta-main {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.hero-left__cta:hover {
  background: color-mix(in srgb, var(--cta-hover-bg, var(--navy)) 20%, transparent);
  border-color: color-mix(in srgb, var(--cta-hover-bg, var(--navy)) 50%, transparent);
  box-shadow: 0 14px 28px -14px color-mix(in srgb, var(--cta-hover-bg, #1a3460) 22%, transparent),
              0 6px 12px rgba(26,52,96,.06);
}
.hero-left__cta:hover:not(.ga-popover-open) {
  transform: translateY(-3px);
}
.hero-left__cta.ga-popover-open,
.hero-left__cta.ga-popover-open:hover {
  transform: none;
  z-index: 20;
}

.hero-left__cta-icon {
  width: var(--cta-icon-size);
  height: var(--cta-icon-size);
  align-self: center;
  flex-shrink: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--cta-hover-bg, var(--navy)) 0%, color-mix(in srgb, var(--cta-hover-bg, var(--navy)) 75%, #000) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  position: relative;
  z-index: 1;
  box-shadow: 0 10px 22px -6px color-mix(in srgb, var(--cta-hover-bg, #1a3460) 55%, transparent);
  transition: background .25s ease, box-shadow .3s ease, border-radius .3s ease;
}
.hero-left__cta:hover .hero-left__cta-icon {
  background: transparent;
  box-shadow: none;
  border-radius: 50%;
}
.hero-left__cta-icon-emoji {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  transition: opacity .25s ease, transform .3s cubic-bezier(.22,.61,.36,1);
}
.hero-left__cta:hover .hero-left__cta-icon-emoji {
  opacity: 0;
  transform: scale(.7);
}

/* YouTube-style play overlay — cercle gris qui apparaît, flèche slide-in */
.hero-left__cta-icon-play {
  position: absolute;
  /* Légèrement plus grand que l'icône pour "déborder" et taper à l'œil */
  inset: -4px;
  background: #e5e7eb;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(.7);
  transition: opacity .25s ease, transform .4s cubic-bezier(.34, 1.4, .64, 1);
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(55, 65, 81, .12);
  z-index: 2;
}
.hero-left__cta:hover .hero-left__cta-icon-play {
  opacity: 1;
  transform: scale(1);
}
.hero-left__cta-icon-play svg {
  width: 22px;
  height: 22px;
  /* Décalage optique du triangle pour paraître centré */
  margin-left: 2px;
  /* Slide-in fluide depuis la gauche à l'arrivée */
  transform: translateX(-14px);
  opacity: 0;
  transition: transform .55s cubic-bezier(.22, .61, .36, 1) .2s,
              opacity .3s ease .25s;
}
.hero-left__cta:hover .hero-left__cta-icon-play svg {
  transform: translateX(0);
  opacity: 1;
}
.hero-left__cta-icon-play svg polygon {
  fill: #374151;
}

.hero-left__cta-heading {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
  min-width: 0;
  position: relative;
  z-index: 1;
}
.hero-left__cta-sub {
  font-size: 10px;
  font-weight: 700;
  color: var(--text3, #94a3b8);
  text-transform: uppercase;
  letter-spacing: .14em;
  transition: color .25s ease;
}
.hero-left__cta:hover .hero-left__cta-sub {
  color: var(--cta-hover-bg, var(--navy));
}
.hero-left__cta-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy, #1a3460);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Stats — sous le bloc icône + titre */
.hero-left__cta-stats {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 10px;
  font-size: 12px;
  color: var(--text3, #64748b);
  font-weight: 500;
  width: 100%;
  box-sizing: border-box;
}
.hero-left__cta-stat {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
.hero-left__cta-stat-icon {
  font-size: 13px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.hero-left__cta-stat-sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(26,52,96,.2);
  flex-shrink: 0;
}

/* hero-right devient le wrapper du laptop SVG (cadre + carousel à l'intérieur) */
.hero-right.laptop-wrap {
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  height: auto !important;
  overflow: visible !important;
  align-self: center;
  position: relative;
  aspect-ratio: 520 / 300.5;
}
/* Laptop visible dès le chargement (capot fermé) — pas de width: 0 qui cacherait tout.
   Sur mobile/tablette, la règle !important des media queries reprend le dessus avec width: 100%. */
.hero-right.laptop-wrap.hero-right--loading {
  width: calc(54% - 20px);
}

/* CAPOT ANIMÉ — wrapper unique qui contient SVG du cadre + carousel.
   Un seul transform appliqué ici → le SVG et le carousel pivotent ensemble
   en parfaite synchronisation, donc bordures gauche/droite identiques.
   L'animation se déclenche AUTOMATIQUEMENT au rendu de la page. */
.laptop-lid-wrap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  /* Hauteur du capot = 284 SVG / 300.5 (total) ≈ 94.5092% du wrap */
  height: 94.5092%;
  /* Pivot sur la charnière (bord bas du capot = exactement y=433.5 SVG) */
  transform-origin: 50% 100%;
  transform: scaleY(0);
  backface-visibility: hidden;
  animation: laptopLidOpen 1s cubic-bezier(.34, 1.06, .64, 1) forwards;
}

/* SVG du capot : cadre, bordure noire, hinge line, webcam */
.laptop-lid-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* Carousel positionné PIXEL PERFECT dans la zone écran.
   ViewBox du SVG capot = (40, 149.5, 520, 284)
   Zone écran d'origine (coords SVG natives) = x=101 y=169.5 w=398 h=248
   En % du viewBox capot :
     left   = (101 - 40) / 520      = 11.7308%
     top    = (169.5 - 149.5) / 284 = 7.0423%
     width  = 398 / 520              = 76.5385%
     height = 248 / 284              = 87.3239% */
.hero-right .laptop-screen {
  position: absolute;
  left: 11.7308%;
  top: 7.0423%;
  width: 76.5385%;
  height: 87.3239%;
  border-radius: 0;
  overflow: hidden;
  z-index: 2;
  /* Écran noir tant que le carousel n'est pas chargé */
  background: #000;
}

/* Loader visible dans la zone écran tant que le carousel n'est pas prêt */
.laptop-screen-loader {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  z-index: 5;
  transition: opacity .35s ease;
}
/* Disparaît dès que le carousel est construit (--reveal ajouté par le JS) */
.hero-right--reveal .laptop-screen-loader {
  opacity: 0;
  pointer-events: none;
}

/* SVG base statique : charnière + base + notch */
.laptop-base-svg {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  /* Hauteur de la base = 16.5 SVG / 300.5 ≈ 5.4908% du wrap */
  height: 5.4908%;
  pointer-events: none;
}

/* Animation déclenchée quand le carousel est prêt (--reveal ajouté par JS).
   - 0%  : scaleY(0) (état hérité de repos, totalement invisible)
   - 1%  : passage en 3D à rotateX(-90deg) (edge-on, toujours 0px visible)
   - 100% : rotateX(0deg) → capot ouvert. Perspective réelle pendant
            tout le reste de l'animation, sans morceau noir au démarrage. */
.hero-right--reveal .laptop-lid-wrap {
  animation: laptopLidOpen 1s cubic-bezier(.34, 1.06, .64, 1) forwards;
}
@keyframes laptopLidOpen {
  0%   { transform: scaleY(0); }
  1%   { transform: perspective(1400px) rotateX(-90deg); }
  100% { transform: perspective(1400px) rotateX(0deg); }
}
.cat-hero-split--revealed .hero-left {
  /* override legacy border-radius rule */
  border-radius: 0;
}

/* Popover à droite du bouton hero CTA (chevauche le carousel) */
.hero-left__cta {
  position: relative;
}
.hero-left__cta .ga-training-popover-wrap {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 60;
}
.hero-left__cta .ga-training-popover {
  position: absolute;
  top: 50%;
  left: calc(100% + 16px);
  right: auto;
  transform: translateY(-50%) scale(.85);
  transform-origin: left center;
  width: 340px;
  max-width: 50vw;
}
.hero-left__cta .ga-training-popover.visible {
  transform: translateY(-50%) scale(1);
}
.hero-left__cta .ga-training-popover.left {
  left: auto;
  right: calc(100% + 16px);
  transform-origin: right center;
}
.hero-left__cta .ga-training-popover::before {
  top: 50%;
  left: -7px;
  right: auto;
  transform: translateY(-50%) rotate(-45deg);
  border-left: 1px solid rgba(15, 23, 42, 0.10);
  border-top: 0;
  border-right: 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.10);
}
.hero-left__cta .ga-training-popover.left::before {
  left: auto;
  right: -7px;
  border-left: 0;
  border-bottom: 0;
  border-right: 1px solid rgba(15, 23, 42, 0.10);
  border-top: 1px solid rgba(15, 23, 42, 0.10);
  transform: translateY(-50%) rotate(-45deg);
}

/* ── Popover en mode portal (append au body) ─ au-dessus de TOUT ── */
.ga-popover-floating {
  position: fixed !important;
  inset: auto !important;
  top: 0 !important;
  left: 0 !important;
  width: auto !important;
  height: auto !important;
  pointer-events: none;
  z-index: 99999 !important;
  isolation: isolate;
}
.ga-popover-floating--hero .ga-training-popover {
  width: 340px;
  max-width: min(90vw, 420px);
}
.ga-popover-floating .ga-training-popover {
  position: fixed;
  top: 0;
  left: 0;
  right: auto;
  margin: 0;
  pointer-events: auto;
  transform-origin: left center;
  transform: scale(.85);
  opacity: 0;
  transition: opacity .25s ease, transform .35s cubic-bezier(.22,.61,.36,1);
  width: 340px;
  max-width: 90vw;
  /* overflow: visible → laisse le triangle de bulle (::before) dépasser à gauche */
  overflow: visible;
  /* Au-dessus de la navbar (z-index 1030) et de toute la page */
  z-index: 99999 !important;
}
.ga-popover-floating .ga-training-popover.visible {
  opacity: 1;
  transform: scale(1);
}
.ga-popover-floating .ga-training-popover.left {
  transform-origin: right center;
}
.ga-popover-floating .ga-training-popover::before {
  /* Position verticale calculée par JS pour pointer pile sur le centre du bouton */
  top: var(--ga-triangle-top, 50%);
  left: -7px;
  right: auto;
  transform: translateY(-50%) rotate(-45deg);
  border-left: 1px solid rgba(15, 23, 42, 0.10);
  border-top: 0;
  border-right: 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.10);
}
.ga-popover-floating .ga-training-popover.left::before {
  left: auto;
  right: -7px;
  border-left: 0;
  border-bottom: 0;
  border-right: 1px solid rgba(15, 23, 42, 0.10);
  border-top: 1px solid rgba(15, 23, 42, 0.10);
  transform: translateY(-50%) rotate(-45deg);
}

/* Popover hero CTA : titre + stats plus visibles */
.hero-left__cta .ga-training-popover .ga-popover-title,
.ga-popover-floating .ga-training-popover .ga-popover-title {
  font-size: 15px;
  line-height: 1.3;
  margin-bottom: 6px;
}
.hero-left__cta .ga-training-popover .ga-popover-kind,
.ga-popover-floating .ga-training-popover .ga-popover-kind {
  font-size: 11px;
}
.hero-left__cta .ga-training-popover .ga-popover-meta,
.ga-popover-floating .ga-training-popover .ga-popover-meta {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  gap: 6px;
  margin-bottom: 6px;
}

/* Right panel — carousel */
.hero-left { position: relative; z-index: 2; }
.hero-right {
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
  z-index: 1;
  border-radius: 0 6px 6px 0;
}
.hero-right--loading {
  width: 0;
}
.hero-right--reveal {
  width: calc(54% - 20px);
  transition: width .5s cubic-bezier(.22,.61,.36,1);
}
.hero-carousel {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}
.hero-carousel__track {
  display: flex;
  height: 100%;
  transition: transform .4s cubic-bezier(.4, 0, .2, 1);
}

/* Slides */
.hero-slide {
  min-width: 100%;
  height: 100%;
  flex-shrink: 0;
  position: relative;
  cursor: pointer;
  overflow: hidden;
  background-repeat: no-repeat;
  background-size: 110% !important;
  background-position: center !important;
  transition: background-size .2s ease;
}
.hero-slide:hover {
  background-size: 100% !important;
}
.hero-slide__detail {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, .80), rgba(0, 0, 0, .0));
  padding: 14px 20px 16px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  transition: top .35s ease, background .35s ease;
  top: auto;
}
.hero-slide:hover .hero-slide__detail {
  top: 0;
  background: rgba(0, 0, 0, .80);
  justify-content: flex-end;
}

/* Description — hidden by default, visible on hover */
.hero-slide__desc-hover {
  font-size: 13px;
  color: rgba(255, 255, 255, .85);
  line-height: 1.55;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity .2s .15s ease, max-height .3s ease;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  -webkit-box-orient: vertical;
}
.hero-slide:hover .hero-slide__desc-hover {
  opacity: 1;
  max-height: 120px;
}

/* Meta + footer — hidden by default, visible on hover */
.hero-slide__meta,
.hero-slide__footer {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity .2s .1s ease, max-height .3s ease;
}
.hero-slide:hover .hero-slide__meta,
.hero-slide:hover .hero-slide__footer {
  opacity: 1;
  max-height: 80px;
}

.hero-slide__line1 {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.hero-slide__title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hero-slide__job {
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  padding: 3px 10px;
  border-radius: 20px;
  color: #fff;
}
.hero-slide__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: rgba(255, 255, 255, .80);
}
.hero-slide__sep { color: rgba(255, 255, 255, .35); }
.hero-slide__footer {
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero-slide__prog-wrap { flex: 1; min-width: 0; }
.hero-slide__prog-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, .85);
  margin-bottom: 4px;
}
.hero-slide__prog-track {
  height: 4px;
  background: rgba(255, 255, 255, .25);
  border-radius: 3px;
  overflow: hidden;
}
.hero-slide__prog-fill {
  height: 100%;
  border-radius: 3px;
  transition: width .6s ease;
}
.hero-slide__btn {
  flex-shrink: 0;
  border: none;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 8px;
  color: #fff;
  white-space: nowrap;
  transition: opacity .15s;
}
.hero-slide__btn:hover { opacity: .88; }

/* Carousel arrows */
.hero-carousel__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(0, 0, 0, .40);
  backdrop-filter: blur(4px);
  color: #fff;
  border: none;
  cursor: pointer;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 26px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .25s ease, background .15s;
  user-select: none;
}
.hero-right:hover .hero-carousel__arrow { opacity: 1; }
.hero-carousel__arrow:hover { background: rgba(0, 0, 0, .65); }
.hero-carousel__arrow--prev { left: 12px; }
.hero-carousel__arrow--next { right: 12px; }

/* Search in filter row */
.search-wrap {
  position: relative;
}
/* Le style de l'input est mutualisé dans config.css (.sb-search-*) */

/* ── Search Suggestions ──────────────────────────────────────── */
.search-suggestions {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 8px 40px rgba(0,0,0,.13);
  z-index: 999;
  display: none;
  max-height: 400px;
  overflow-y: auto;
  overflow-x: hidden;
}
.search-suggestions.open { display: block; }

.suggestion-summary {
  padding: 8px 13px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text3);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--white);
  z-index: 1;
}
.suggestion-group-header {
  padding: 7px 13px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.suggestion-group-header:not(:first-child) {
  border-top: 1px solid var(--border);
}

.suggestion-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  border-left: 3px solid var(--sugg-border, transparent);
  background: var(--sugg-bg, transparent);
  transition: background .1s;
}
.suggestion-item:last-child { border-bottom: none; }
.suggestion-item:hover,
.suggestion-item.focused { background: var(--bg2, #f8f9fa); }

.suggestion-content {
  flex: 1;
  min-width: 0;
}
.suggestion-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.suggestion-sub {
  font-size: 11px;
  color: var(--text3);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.suggestion-badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: 3px 10px;
  border-radius: 20px;
  color: #fff;
  white-space: nowrap;
  flex-shrink: 0;
}

.suggestion-video-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 16px;
  border-bottom: 1px solid var(--border);
  border-left: 3px solid var(--sugg-border, transparent);
  background: var(--sugg-bg, var(--white));
  cursor: pointer;
  transition: background .1s;
}
.suggestion-video-item:last-child { border-bottom: none; }
.suggestion-video-item:hover { background: var(--bg2, #f8f9fa); }
.suggestion-video-title {
  font-size: 12px;
  color: var(--text2, #666);
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.suggestion-video-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  color: var(--navy2, #3467e7);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(52, 103, 231, .1);
  transition: background .12s;
}
.suggestion-video-link:hover { background: rgba(52, 103, 231, .18); }
.suggestion-video-link svg { width: 13px; height: 13px; flex-shrink: 0; }

/* Filter tabs */
.filter-row {
  gap: 10px;
  align-items: center;
}

.filter-tab {
  padding: 8px 18px;
  border-radius: 22px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid var(--border);
  background: var(--white);
  color: var(--text2);
  transition: var(--t);
}

.filter-tab:hover {
  border-color: var(--navy2);
  color: var(--navy);
}

.filter-tab.active {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

.filter-count {
  display: inline-block;
  background: rgba(255, 255, 255, .25);
  padding: 1px 7px;
  border-radius: 10px;
  font-size: 10px;
  margin-left: 3px;
}

.filter-sep {
  width: 1px;
  height: 24px;
  background: var(--border);
  margin: 0 4px;
}

.sort-label {
  font-size: 12px;
  color: var(--text3);
  white-space: nowrap;
}

/* Empty */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--text3);
}

.empty-state-icon {
  font-size: 48px;
  margin-bottom: 14px;
}

.empty-state-text {
  font-size: 14px;
}


/* ── NEW RIBBON ──────────────────────────────────────────────── */
.lms-new-ribbon {
  position: absolute;
  border-bottom: 20px solid #c0392b;
  border-left: 20px solid transparent;
  border-right: 20px solid transparent;
  height: 0;
  width: 102px;
  text-align: center;
  transform: rotate(-45deg);
  left: -33px;
  top: 8px;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  z-index: 2;
  pointer-events: none;
}
.lms-new-ribbon::before {
  content: "";
    border-bottom: 11px solid #8e2018;
    border-left: 11px solid transparent;
    transform: rotate(45deg);
    left: -18px;
    top: 15px;
    position: absolute;
}
.lms-new-ribbon::after {
  content: "";
  border-bottom: 11px solid #8e2018;
  border-left: 11px solid transparent;
  transform: rotate(45deg);
  left: 69px;
  top: 15px;
  position: absolute;
}

/* ── NEW CARD SYSTEM ─────────────────────────────────────────── */

/* Course card training note (yellow block) */
.lms-card__training-note {
  background: #fef9c3;
  border: 1px solid #fde68a;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 12px;
  color: #92400e;
  margin: 0 0 14px;
  line-height: 1.5;
}
.lms-card__training-note strong { color: #78350f; }

.lms-card {
  background: var(--white);
  border-radius: 16px;
  overflow: visible;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform .2s ease, box-shadow .2s ease;
}
.lms-card:hover { transform: scale(1.02); }
.lms-card-wrap--course:hover { transform: scale(1.02); }
.lms-card-wrap--course:hover > .lms-card { transform: none; }

/* Clip background/image overflow while letting ribbon bleed out */
.lms-card > *:first-child { border-radius: 16px 16px 0 0; overflow: hidden; }
.lms-card > *:last-child { border-radius: 0 0 16px 16px; }

/* Training cards have their own natural height — don't stretch to row */
.lms-card--training { height: auto; }

/* Training card — header as image banner */
.lms-card--training .lms-card__header {
  border-bottom: none;
}
.lms-card__header--img {
  position: relative;
  height: 220px;
  flex-shrink: 0;
  background-repeat: no-repeat;
}
.lms-card__type-badge {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .07em;
  padding: 4px 10px;
  border-radius: 20px;
}
.lms-card__type-badge--abs {
  position: absolute;
  top: 12px;
  right: 12px;
}

/* Course card — header zone */
.lms-card--course .lms-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 22px;
  border-bottom: 1px solid var(--border);
  gap: 8px;
  position: relative;
}
.lms-card__type-badge--course {
  background: var(--bg2);
  color: var(--text3);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  padding: 3px 10px;
  border-radius: 20px;
  flex-shrink: 0;
}

/* Body */
.lms-card__body {
  padding: 20px 22px 16px;
  flex: 1;
}
.lms-card__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
  margin: 0 0 10px;
}
.lms-card__desc {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.65;
  margin: 0 0 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.lms-card__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text3);
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.lms-card__sep { color: var(--border); }
.lms-card__cat-badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  padding: 3px 10px;
  border-radius: 20px;
  flex-shrink: 0;
  white-space: nowrap;
  color: #fff;
}

.lms-card__meta span:not(.lms-card__sep) {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.lms-card--training .lms-card__meta span:nth-child(1)::before { content: '📚'; font-size: 14px; }
.lms-card--training .lms-card__meta span:nth-child(3)::before { content: '🎬'; font-size: 14px; }
.lms-card--training .lms-card__meta span:nth-child(5)::before { content: '⏱️'; font-size: 14px; }
.lms-card--course .lms-card__meta span:nth-child(1)::before { content: '🎬'; font-size: 14px; }
.lms-card--course .lms-card__meta span:nth-child(3)::before { content: '⏱️'; font-size: 14px; }

/* Footer */
.lms-card__footer {
  padding: 14px 22px 18px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.lms-card__progress-wrap { width: 100%; }
.lms-card__progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 5px;
}
.lms-card__progress-track {
  height: 6px;
  background: var(--bg2);
  border-radius: 4px;
  overflow: hidden;
}
.lms-card__progress-fill {
  height: 100%;
  border-radius: 4px;
  transition: width .8s ease;
}

/* Training card CTA */
.lms-card--training .lms-card__footer {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}
.lms-card--training .lms-card__progress-wrap { flex: 1; }
.lms-card__cta {
  flex-shrink: 0;
  border: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: 10px;
  white-space: nowrap;
  transition: opacity .15s;
}
.lms-card__cta:hover { opacity: .88; }

/* Course card actions */
.lms-card__actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
.lms-card__btn-secondary {
  flex: 1;
  border-width: 1.5px;
  border-style: solid;
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 9px;
  white-space: nowrap;
  transition: opacity .15s;
}
.lms-card__btn-secondary:hover { opacity: .75; }
.lms-card__btn-primary {
  flex: 1;
  border: none;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 9px;
  white-space: nowrap;
  transition: opacity .15s;
}
.lms-card__btn-primary:hover { opacity: .88; }

#catalogueGrid { padding-top: 20px; }
#catalogueGrid > [class*="col-"] { display: flex; }
#catalogueGrid > [class*="col-"] > .lms-card-wrap--course { width: 100%; height: 100%; }

.lms-card-wrap { position: relative; }
.lms-card-wrap--training { border-radius: 18px; }
.lms-card-wrap--course { border-radius: 16px; transition: transform .2s ease; display: flex; flex-direction: column; flex: 1; }

/* ─── hover popover for trainings ──────────────────────────────── */
.ga-training-popover-wrap { position: absolute; inset: 0; pointer-events: none; z-index: 50; }
.ga-training-popover {
  position: absolute;
  top: 14px;
  left: calc(100% + 4px);
  width: 360px;
  max-width: 80vw;
  /* overflow: visible pour que le triangle de bulle dépasse à gauche/droite.
     Le scroll est délégué à .ga-popover-scroll en interne. */
  overflow: visible;
  /* Au-dessus de la navbar et de tout le reste */
  z-index: 99999 !important;
  background: var(--white);
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0,0,0,.14);
  padding: 14px 16px 12px;
  pointer-events: auto;
  opacity: 0;
  transform: scale(0.82);
  transform-origin: center center;
  transition: opacity .5s ease, transform .5s ease;
}
.ga-training-popover.visible { opacity: 1; transform: scale(1); }
.ga-training-popover.left { left: auto; right: calc(100% + 4px); }
/* Wrapper interne qui porte la hauteur max — état compact par défaut.
   Le bouton "Voir plus" déclenche le passage en .is-expanded pour atteindre
   la hauteur max réelle du popover. */
.ga-popover-scroll {
  /* Hauteur compacte : le bouton "Voir plus" apparaît dès qu'il y a un peu plus de contenu */
  max-height: 220px;
  overflow: hidden;
  position: relative;
  transition: max-height .4s cubic-bezier(.4, 0, .2, 1);
}
.ga-training-popover.is-expanded .ga-popover-scroll {
  /* Hauteur max autorisée du popover (sensiblement plus haute que l'état compact) */
  max-height: 60vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(15, 23, 42, .2) transparent;
}
.ga-training-popover.is-expanded .ga-popover-scroll::-webkit-scrollbar { width: 6px; }
.ga-training-popover.is-expanded .ga-popover-scroll::-webkit-scrollbar-thumb {
  background: rgba(15, 23, 42, .2);
  border-radius: 3px;
}

/* Fade de continuité au bas quand le contenu est tronqué */
.ga-training-popover.has-more:not(.is-expanded) .ga-popover-scroll::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 56px;
  background: linear-gradient(to bottom, transparent 0%, var(--white) 80%);
  pointer-events: none;
}

/* "Voir plus" — simple lien texte bleu souligné, sans bordure ni fond */
.ga-popover-more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: fit-content;
  /* Margin-top + padding deviennent animables (collapsing au clic) */
  margin: 8px auto 0;
  padding: 4px 6px;
  /* Hauteur "ouverte" suffisante pour le texte ; collapse à 0 au clic */
  max-height: 40px;
  overflow: hidden;
  background: transparent;
  border: none;
  color: var(--blue, #3467e7);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  transition: color .15s ease,
              text-decoration-thickness .15s ease,
              opacity .25s ease,
              max-height .35s cubic-bezier(.4, 0, .2, 1),
              margin-top .35s cubic-bezier(.4, 0, .2, 1),
              padding .35s cubic-bezier(.4, 0, .2, 1);
}
.ga-popover-more[hidden] { display: none; }
.ga-popover-more:hover {
  color: var(--navy, #1a3460);
  text-decoration-thickness: 2px;
}
/* Au clic (.is-expanded) → le bouton se replie en synchro avec l'expansion
   du scroll wrapper : pas de "shrink" abrupt de la modale */
.ga-training-popover.is-expanded .ga-popover-more {
  opacity: 0;
  max-height: 0;
  margin-top: 0;
  padding-top: 0;
  padding-bottom: 0;
  pointer-events: none;
}
.ga-popover-more-chevron {
  width: 14px;
  height: 14px;
}
.ga-training-popover::before {
  content: "";
  position: absolute;
  top: 20px;
  left: -7px;
  width: 12px;
  height: 12px;
  background: var(--white);
  border-left: 1px solid rgba(15, 23, 42, 0.10);
  border-top: 1px solid rgba(15, 23, 42, 0.10);
  transform: rotate(-45deg);
}
.ga-training-popover.left::before {
  left: auto;
  right: -7px;
  border-left: 0;
  border-top: 0;
  border-right: 1px solid rgba(15, 23, 42, 0.10);
  border-bottom: 1px solid rgba(15, 23, 42, 0.10);
  transform: rotate(-45deg);
}
.ga-popover-title { font-weight: 900; font-size: 13px; color: var(--text); line-height: 1.25; margin-bottom: 3px; }
.ga-popover-dash { color: var(--text); font-weight: 900; margin-right: 4px; }
.ga-popover-kind { font-size: 10px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; margin-right: 6px; }
.ga-popover-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: 11px; color: var(--text2); margin-bottom: 4px; }
.ga-popover-section { margin-top: 8px; }
.ga-popover-h { font-size: 12px; font-weight: 900; color: var(--text); margin-bottom: 4px; }
.ga-popover-ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.ga-popover-li { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; color: var(--text2); line-height: 1.35; }
.ga-popover-check { width: 14px; height: 14px; border-radius: 4px; background: rgba(5,150,105,.12); color: var(--green); display: inline-flex; align-items: center; justify-content: center; font-weight: 900; font-size: 9px; flex-shrink: 0; margin-top: 1px; }
.ga-popover-muted { font-size: 11px; color: var(--text3); margin-top: 2px; }
.ga-popover-cta {
  width: 100%;
  margin-top: 10px;
  border: 0;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 900;
  background: #7c3aed;
  color: #fff;
}
.ga-popover-cta:hover { opacity: .92; }
.lms-card-wrap--training::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 20px;
  background: var(--card-color, #3467e7);
  opacity: 0;
  filter: blur(4px);
  z-index: 0;
  pointer-events: none;
  animation: training-glow-pulse 2s ease-in-out infinite;
}
@keyframes training-glow-pulse {
  0%, 100% { opacity: 0.20; }
  50%       { opacity: 0.40; }
}
.lms-card-wrap--training > .lms-card {
  position: relative;
  z-index: 1;
}

/* Job badge — bottom-left of training card header */
.lms-card__job-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(0, 0, 0, .45);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  padding: 3px 10px;
  border-radius: 20px;
  pointer-events: none;
}

/* Training card — larger, bolder */
.lms-card--training .lms-card__body {
  padding: 22px 24px 18px;
}
.lms-card--training .lms-card__title {
  font-size: 17px;
  font-weight: 800;
}
.lms-card--training .lms-card__footer {
  padding: 16px 24px 20px;
}
.lms-card--training .lms-card__cta {
  padding: 11px 22px;
  font-size: 14px;
  border-radius: 11px;
}

/* ─── Responsive tablette ───────────────────────────────────────────────────── */
@media (max-width: 991px) {
  .cat-hero-split {
    flex-direction: column;
    height: auto;
    min-height: 0;
    gap: 24px;
    padding: 48px 0 56px;
  }
  .hero-left {
    width: 100%;
    padding: 0;
  }
  .hero-left__inner { max-width: 100%; }
  .cat-hero-split--revealed .hero-left {
    border-radius: 0;
  }
  .hero-right,
  .hero-right--reveal {
    width: 100% !important;
    height: 360px;
    border-radius: 18px !important;
    transition: none;
  }
  /* Flèches toujours visibles sur tactile */
  .hero-carousel__arrow { opacity: 1; }
  /* Détail slide toujours visible (pas de hover sur tactile) */
  .hero-slide__detail {
    top: 0;
    background: rgba(0,0,0,.68);
    justify-content: flex-end;
  }
  .hero-slide__desc-hover,
  .hero-slide__meta,
  .hero-slide__footer {
    opacity: 1;
    max-height: 120px;
  }
  .cat-hero__scroll {
    width: 50px;
    height: 50px;
  }
  .cat-hero__scroll svg { width: 20px; height: 20px; }
}

/* ─── Responsive mobile ─────────────────────────────────────────────────────── */
@media (max-width: 767px) {
  .container-custom {
    padding-left: 16px;
    padding-right: 16px;
  }

  /* Hero */
  .cat-hero { margin-bottom: 36px; }
  .cat-hero-split { padding: 36px 0 44px; gap: 20px; }
  .cat-hero__scroll { width: 44px; height: 44px; }
  .cat-hero__scroll svg { width: 18px; height: 18px; }
  .hero-left__title { font-size: 28px; margin-bottom: 12px; }
  .hero-left__stats { gap: 6px; margin-bottom: 24px; }
  /* Sur mobile, on force 1 colonne (hors carrousel multi-pages) */
  .hero-left__btns:not(.hero-left__btns--carousel),
  .hero-left__btns:not(.hero-left__btns--carousel):has(.hero-left__cta:nth-child(4)) {
    grid-template-columns: 1fr;
  }
  .parcours-carousel.parcours-carousel--active.parcours-carousel--peek {
    --parcours-peek: 28px;
  }
  .parcours-carousel--peek .parcours-carousel__viewport::after {
    width: 40px;
  }
  .parcours-carousel__nav {
    gap: 12px;
    margin-top: 14px;
  }
  .parcours-carousel__arrow {
    width: 36px;
    height: 36px;
    font-size: 20px;
  }
  .hero-left__stat-pill { font-size: 12px; padding: 6px 11px; }
  .hero-left__stat-pill strong { font-size: 13px; }
  .hero-left__btns-label { font-size: 10px; margin-bottom: 10px; }
  .hero-left__btns { gap: 10px; }
  .hero-left__cta {
    --cta-icon-size: 44px;
    padding: 12px 14px;
    gap: 8px;
    border-radius: 14px;
  }
  .hero-left__cta-main { gap: 12px; }
  .hero-left__cta-icon { font-size: 18px; border-radius: 12px; }
  .hero-left__cta-stats { padding-left: calc(var(--cta-icon-size) + 12px); }
  .hero-left__cta-title { font-size: 14px; }
  .hero-left__cta-sub { font-size: 9px; }
  .hero-left__cta-stats { font-size: 11px; }
  /* Play overlay toujours visible sur tactile (pas de hover) */
  .hero-left__cta-icon-emoji { opacity: 0; transform: scale(.85); }
  .hero-left__cta-icon-play { opacity: 1; transform: scale(1); }
  .hero-left__cta-icon-play svg { width: 18px; height: 18px; opacity: 1; transform: translateX(0); }

  /* Carousel */
  .hero-right,
  .hero-right--reveal { height: 260px; }
  .hero-slide__title { font-size: 13px; }
  .hero-slide__meta { font-size: 11px; }
  .hero-slide__desc-hover { max-height: 60px; -webkit-line-clamp: 3; line-clamp: 3; font-size: 12px; }
  .hero-slide__btn { font-size: 11px; padding: 7px 12px; }
  .hero-carousel__arrow { width: 30px; height: 30px; font-size: 20px; }

  /* Filtres — scroll horizontal sur les tabs */
  .filter-row { gap: 8px; }
  .filter-sep { display: none; }
  .sort-label { display: none; }
  #categoryTabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
  }
  #categoryTabs::-webkit-scrollbar { display: none; }
  #catFilterTabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  #catFilterTabs::-webkit-scrollbar { display: none; }
  .filter-tab { white-space: nowrap; padding: 6px 14px; font-size: 12px; }
  .sort-select { font-size: 12px; }
  .sb-search-input { font-size: 13px; }

  /* Cards */
  .lms-card__header--img { height: 160px; }
  .lms-card__body { padding: 14px 14px 10px; }
  .lms-card__title { font-size: 14px; }
  .lms-card__desc { font-size: 12px; -webkit-line-clamp: 2; line-clamp: 2; }
  .lms-card__footer { padding: 10px 14px 12px; gap: 8px; }
  .lms-card--training .lms-card__body { padding: 14px 16px 10px; }
  .lms-card--training .lms-card__footer {
    flex-direction: column;
    align-items: stretch;
    padding: 12px 16px 14px;
  }
  .lms-card--training .lms-card__cta { text-align: center; padding: 10px; font-size: 13px; }
}

/* ─── Pagination catalogue ─────────────────────────────────────────────────── */
.catalogue-pagination {
  padding: 8px 0 4px;
}
.catalogue-pagination__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.catalogue-pagination__info {
  font-size: 13px;
  color: var(--text3, #64748b);
  margin: 0;
}
.catalogue-pagination__info-strong {
  font-weight: 700;
  color: var(--navy, #1a3460);
}
.catalogue-pagination__controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2px 4px;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}
.catalogue-pagination__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--navy, #1a3460);
  text-decoration: none;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: color .15s ease, background .15s ease, text-decoration-color .15s ease;
}
a.catalogue-pagination__link:hover {
  color: var(--navy, #1a3460);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  background: rgba(26, 52, 96, .06);
}
.catalogue-pagination__link--current {
  font-weight: 800;
  color: var(--navy, #1a3460);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  cursor: default;
}
.catalogue-pagination__link--disabled {
  opacity: .42;
  color: var(--text3, #94a3b8);
  cursor: not-allowed;
  pointer-events: none;
}
.catalogue-pagination__gap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text3, #94a3b8);
  user-select: none;
}

/* ─── Dark mode ─────────────────────────────────────────────────────────────── */
html.dark-mode .sort-select {
  background-color: var(--bg2) !important;
  color: var(--text) !important;
  border-color: var(--border) !important;
}
/* .sb-search-input en dark mode : voir config.css (règle partagée) */
html.dark-mode .search-suggestions {
  background: var(--white) !important;
  border-color: var(--border) !important;
}
html.dark-mode .search-suggestion-item { color: var(--text) !important; }
html.dark-mode .search-suggestion-item:hover { background: var(--bg2) !important; }

/* ─── Dark mode — catalogue hero ─────────────────────────────────────────── */
html.dark-mode .cat-hero {
  background: #15203a;
}
html.dark-mode .hero-left__title {
  color: var(--text);
}
html.dark-mode .parcours-carousel__arrow {
  background: var(--white);
  color: var(--text2);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .35);
}
html.dark-mode .parcours-carousel__arrow:hover {
  color: var(--text);
}
html.dark-mode .parcours-carousel__dot {
  background: rgba(52, 103, 231, .35);
}
html.dark-mode .parcours-carousel__dot.is-active {
  background: #5b8def;
}
html.dark-mode .parcours-carousel--peek .parcours-carousel__viewport::after {
  background: linear-gradient(90deg, transparent 0%, #15203a 72%);
}
html.dark-mode .hero-left__stat-pill {
  background: var(--white);
  border-color: var(--border);
  color: var(--text2);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
}
html.dark-mode .hero-left__stat-pill strong {
  color: var(--text);
}
html.dark-mode .hero-left__btns-label {
  color: var(--text3);
}
html.dark-mode .hero-left__btns-label-line {
  background: rgba(255, 255, 255, .15);
}
html.dark-mode .hero-left__cta {
  background: var(--white);
  border-color: color-mix(in srgb, var(--cta-hover-bg, var(--navy)) 25%, transparent);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .3);
}
html.dark-mode .hero-left__cta:hover {
  border-color: rgba(255, 255, 255, .14);
  box-shadow: 0 14px 28px -14px color-mix(in srgb, var(--cta-hover-bg, #1a3460) 28%, transparent),
              0 6px 12px rgba(0, 0, 0, .25);
}
html.dark-mode .hero-left__cta-title {
  color: var(--text);
}
html.dark-mode .hero-left__cta-sub {
  color: var(--text3);
}
html.dark-mode .hero-left__cta-stats {
  color: var(--text3);
}
html.dark-mode .hero-left__cta-stat-sep {
  background: rgba(255, 255, 255, .2);
}
html.dark-mode .hero-right {
  box-shadow: 0 20px 50px -12px rgba(0, 0, 0, .55);
}