/* ======================================================================
   Accueil 6.48.5 – correction section formateurs mobile
   ====================================================================== */

.home-hub .hero-home .hero-inner {
  max-width: 980px;
}

.home-hub .hero-home .hero-title {
  max-width: 900px;
  margin-inline: auto;
  font-size: clamp(2.25rem, 5.4vw, 4.9rem);
  line-height: 1.02;
}

.home-hub .hero-home .hero-subtitle {
  max-width: 820px;
  margin-inline: auto;
}

.home-hub .hero-home .hero-description {
  max-width: 760px;
  margin-inline: auto;
}

.home-hub .hero-home .stats-mystiques {
  max-width: 980px;
  margin-inline: auto;
}

.home-hub .home-nav .nav-rapide-list,
.home-hub .home-nav ul {
  justify-content: center;
}

.home-hub .home-disciplines .gfe-discipline-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/*
 * Le composant générique utilise une grille de 12 colonnes et applique
 * grid-column: span 6 / span 12 aux cartes. Sur la grille spécifique de
 * l'accueil (3 colonnes), ces valeurs créaient des colonnes implicites :
 * la carte Médiumnité se retrouvait comprimée en bande verticale.
 */
.home-hub .home-disciplines .gfe-discipline-card {
  grid-column: auto !important;
  min-width: 0;
  overflow: hidden;
}

.home-hub .home-disciplines .gfe-discipline-card.is-featured {
  grid-column: 1 / -1 !important;
}

.home-hub .home-disciplines .gfe-discipline-card__head {
  flex-wrap: wrap;
}

.home-hub .home-disciplines .gfe-discipline-card__label {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.home-hub .home-orientation .gfe-audience__aside .btn-landing {
  width: 100%;
  margin-top: 4px;
  text-align: center;
}

.home-hub .home-sessions {
  background:
    radial-gradient(circle at 12% 20%, rgba(34,211,238,.16), transparent 30%),
    radial-gradient(circle at 88% 80%, rgba(245,158,11,.12), transparent 28%),
    linear-gradient(145deg, #1d123f, #312066 52%, #1c163c);
}

.home-hub .home-session-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.home-hub .home-session-card {
  display: flex;
  min-height: 260px;
  flex-direction: column;
  padding: 26px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(255,255,255,.12), rgba(255,255,255,.045));
  box-shadow: 0 18px 48px rgba(0,0,0,.22);
}

.home-hub .home-session-card__date {
  margin: 0 0 12px;
  color: #fbbf24;
  font-size: .82rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.home-hub .home-session-card h3 {
  margin: 0 0 14px;
  color: #fff;
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  line-height: 1.2;
}

.home-hub .home-session-card h3 a {
  color: inherit;
  text-decoration: none;
}

.home-hub .home-session-card__meta {
  margin: 0 0 10px;
  color: rgba(255,255,255,.78);
  line-height: 1.6;
}

.home-hub .home-session-card .gfe-text-link {
  margin-top: auto;
  padding-top: 16px;
}

.home-hub .home-section-actions {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}

.home-hub .home-proof .gfe-outcome-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.home-hub .home-path {
  background: linear-gradient(180deg, rgba(255,255,255,.018), rgba(255,255,255,.045));
}

.home-hub .home-path-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.home-hub .home-path-step {
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(255,255,255,.095), rgba(255,255,255,.035));
  box-shadow: 0 16px 38px rgba(0,0,0,.16);
}

.home-hub .home-path-step summary {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 14px;
  align-items: center;
  padding: 20px 22px;
  cursor: pointer;
  color: #fff;
  list-style: none;
}

.home-hub .home-path-step summary::-webkit-details-marker {
  display: none;
}

.home-hub .home-path-step summary span {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 14px;
  background: var(--btn-grad);
  color: var(--btn-text, #111827);
  font-weight: 900;
}

.home-hub .home-path-step summary strong {
  font-size: 1.15rem;
}

.home-hub .home-path-step__content {
  padding: 0 22px 22px 82px;
  color: rgba(255,255,255,.8);
}

.home-hub .home-path-step__content p {
  margin-top: 0;
  line-height: 1.7;
}

.home-hub .home-path-step__content ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.home-hub .home-path-step__content li {
  padding: 6px 10px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  font-size: .86rem;
}

.home-hub .home-path-step__content a {
  color: #a5f3fc;
  font-weight: 800;
  text-decoration: none;
}

.home-hub .home-mentor .mentor-image img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center top;
}

.home-hub .home-mentor .mentor-bio p {
  line-height: 1.75;
}

.home-hub .home-review-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.home-hub .home-review-card {
  display: flex;
  min-height: 220px;
  flex-direction: column;
  justify-content: space-between;
  margin: 0;
  padding: 28px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(255,255,255,.10), rgba(255,255,255,.035));
  box-shadow: 0 16px 38px rgba(0,0,0,.16);
}

.home-hub .home-review-card p {
  margin: 0;
  color: #fff;
  font-size: 1.08rem;
  line-height: 1.72;
}

.home-hub .home-review-card footer {
  margin-top: 22px;
  color: #fbbf24;
  font-weight: 850;
}

.home-hub .home-final-cta .cta-finale-actions,
.home-hub .home-final-cta .cta-group {
  gap: 12px;
}

@media (max-width: 980px) {
  .home-hub .home-disciplines .gfe-discipline-grid,
  .home-hub .home-proof .gfe-outcome-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-hub .home-disciplines .gfe-discipline-card.is-featured,
  .home-hub .home-disciplines .gfe-discipline-card:last-child {
    grid-column: 1 / -1 !important;
  }

  .home-hub .home-session-grid,
  .home-hub .home-review-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-hub .home-session-card:last-child,
  .home-hub .home-review-card:last-child {
    grid-column: 1 / -1;
  }

  .home-hub .home-path-grid {
    grid-template-columns: 1fr;
  }

  .home-hub .home-path-step__content {
    padding-left: 82px;
  }
}

@media (max-width: 767px) {
  .home-hub .gfe-section {
    padding-block: 54px;
  }

  .home-hub .hero-home {
    min-height: auto;
    padding: 68px 0 48px;
  }

  .home-hub .hero-home .hero-title {
    font-size: clamp(2rem, 10vw, 3rem);
    line-height: 1.06;
  }

  .home-hub .hero-home .hero-subtitle {
    font-size: 1.05rem;
  }

  .home-hub .hero-home .hero-description {
    font-size: .98rem;
    line-height: 1.65;
  }

  .home-hub .hero-home .cta-hero-main {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .home-hub .hero-home .cta-hero-main .btn-landing {
    width: 100%;
  }

  .home-hub .hero-home .stats-mystiques {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .home-hub .hero-home .separator-vertical {
    display: none;
  }

  .home-hub .hero-home .stat-mystique {
    min-width: 0;
    padding: 12px 8px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 14px;
    background: rgba(255,255,255,.055);
  }

  .home-hub .hero-home .stat-nombre {
    font-size: .95rem;
  }

  .home-hub .hero-home .stat-label {
    font-size: .72rem;
  }

  .home-hub .home-disciplines .gfe-discipline-grid,
  .home-hub .home-proof .gfe-outcome-grid,
  .home-hub .home-session-grid,
  .home-hub .home-review-grid {
    grid-template-columns: 1fr;
  }

  .home-hub .home-disciplines .gfe-discipline-card,
  .home-hub .home-disciplines .gfe-discipline-card.is-featured,
  .home-hub .home-session-card:last-child,
  .home-hub .home-review-card:last-child {
    grid-column: auto !important;
  }

  .home-hub .home-disciplines .gfe-inline-facts {
    display: none;
  }

  .home-hub .home-session-card,
  .home-hub .home-review-card {
    min-height: 0;
    padding: 22px;
  }

  .home-hub .home-orientation .gfe-audience__aside {
    position: static;
  }

  .home-hub .home-path-step summary {
    grid-template-columns: 42px 1fr;
    padding: 17px 18px;
  }

  .home-hub .home-path-step summary span {
    width: 40px;
    height: 40px;
  }

  .home-hub .home-path-step__content {
    padding: 0 18px 20px;
  }

  .home-hub .home-path-step__content ul {
    gap: 6px;
  }

  .home-hub .home-mentor .mentor-image {
    max-width: 310px;
    margin-inline: auto;
  }

  .home-hub .home-mentor .mentor-image img {
    border-radius: 22px;
  }

  .home-hub .home-mentor .cta-group {
    display: grid;
    grid-template-columns: 1fr;
  }

  .home-hub .home-mentor .btn-landing,
  .home-hub .home-section-actions .btn-landing {
    width: 100%;
    text-align: center;
  }
}


/* ========================================================================
   6.48.5 — Section formateurs : empilement fiable sur tablette et mobile
   ======================================================================== */
@media (max-width: 980px) {
  .home-hub .home-mentor .container {
    width: min(100% - 32px, 760px);
    max-width: 760px;
    margin-inline: auto;
  }

  .home-hub .home-mentor .mentor-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 28px !important;
    align-items: start !important;
    width: 100% !important;
  }

  .home-hub .home-mentor .mentor-image,
  .home-hub .home-mentor .mentor-content,
  .home-hub .home-mentor .mentor-bio,
  .home-hub .home-mentor [data-gfe-responsive-copy] {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  .home-hub .home-mentor .mentor-image {
    order: -1;
    max-width: 260px !important;
    margin: 0 auto !important;
  }

  .home-hub .home-mentor .mentor-content,
  .home-hub .home-mentor .mentor-content h2,
  .home-hub .home-mentor .mentor-bio,
  .home-hub .home-mentor .mentor-bio p {
    text-align: center !important;
  }

  .home-hub .home-mentor .mentor-bio p,
  .home-hub .home-mentor .btn-landing {
    hyphens: none !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
  }

  .home-hub .home-mentor .cta-group {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 14px !important;
    width: min(100%, 520px) !important;
    margin: 26px auto 0 !important;
  }

  .home-hub .home-mentor .btn-landing {
    display: flex !important;
    width: 100% !important;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    padding: 13px 18px !important;
    white-space: normal !important;
    line-height: 1.25 !important;
    text-align: center !important;
  }
}

@media (max-width: 480px) {
  .home-hub .home-mentor .container {
    width: min(100% - 24px, 100%);
  }

  .home-hub .home-mentor .mentor-grid {
    gap: 22px !important;
  }

  .home-hub .home-mentor .mentor-image {
    max-width: 180px !important;
  }

  .home-hub .home-mentor .mentor-image img {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1 !important;
    object-fit: cover !important;
    object-position: center top !important;
    border-radius: 24px !important;
  }

  .home-hub .home-mentor .section-title {
    font-size: clamp(1.65rem, 8vw, 2.15rem) !important;
    line-height: 1.12 !important;
  }

  .home-hub .home-mentor .mentor-bio p {
    font-size: 1rem !important;
    line-height: 1.65 !important;
  }
}


/* ========================================================================
   6.48.6 — Restauration de la barre d’actions fixe sur mobile
   ======================================================================== */
@media (max-width: 768px) {
  .home-hub {
    padding-bottom: calc(86px + env(safe-area-inset-bottom, 0px));
  }

  .home-hub .sticky-mobile-cta {
    position: fixed !important;
    left: 50% !important;
    right: auto !important;
    bottom: max(10px, env(safe-area-inset-bottom, 0px)) !important;
    z-index: 100000 !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    width: min(calc(100% - 20px), 520px) !important;
    max-width: 520px !important;
    min-height: 62px;
    margin: 0 !important;
    padding: 7px !important;
    gap: 7px !important;
    border: 1px solid rgba(224, 190, 99, .42) !important;
    border-radius: 18px !important;
    background: rgba(32, 10, 55, .96) !important;
    box-shadow: 0 16px 45px rgba(0, 0, 0, .48) !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translate(-50%, calc(100% + 28px)) !important;
    transition: transform .28s ease, opacity .22s ease, visibility .22s ease !important;
  }

  .home-hub .sticky-mobile-cta.is-visible {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translate(-50%, 0) !important;
  }

  .home-hub .sticky-mobile-cta .btn-landing {
    display: flex !important;
    min-width: 0 !important;
    width: 100% !important;
    min-height: 48px !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 9px 8px !important;
    border-radius: 12px !important;
    font-size: clamp(.76rem, 3.4vw, .88rem) !important;
    font-weight: 800 !important;
    line-height: 1.12 !important;
    text-align: center !important;
    white-space: normal !important;
    hyphens: none !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
  }

  .home-hub .sticky-mobile-cta .btn-secondary {
    border: 1px solid rgba(255, 255, 255, .28) !important;
    background: rgba(255, 255, 255, .07) !important;
    color: #fff !important;
  }

  .home-hub .sticky-mobile-cta .btn-primary {
    border: 1px solid rgba(232, 202, 112, .75) !important;
    background: linear-gradient(135deg, #e7c96e, #b98a32) !important;
    color: #241033 !important;
    box-shadow: none !important;
  }
}

@media (min-width: 769px) {
  .home-hub .sticky-mobile-cta {
    display: none !important;
  }
}
