/* ============================================================
   SyntaxLab Academy — thème principal
   Design system : page « Livre » (vente.html)
   Plus Jakarta Sans (texte) + Space Grotesk (titres)
   Palette navy / bleu clair — style épuré et professionnel
   ============================================================ */

/* Les jetons de design (couleurs, ombres, rayons) sont centralisés dans tokens.css,
   qui doit être chargé AVANT cette feuille. Ne pas redéfinir de :root ici. */


/* ============================================================
   BASE
   ============================================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--sl-white);
  color: var(--sl-navy);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

h1,
h2,
h3,
h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  color: var(--sl-navy);
}

/* Le focus clavier, le lien d'évitement, .sr-only, [hidden] et le respect de
   « prefers-reduced-motion » sont définis une seule fois dans base.css,
   chargé avant cette feuille sur toutes les pages. */

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 2rem;
}

.container-narrow {
  max-width: 800px;
}

.section-pad {
  padding: 80px 0;
}

.section-alt {
  background: var(--sl-gray-light);
}

.mt-3 {
  margin-top: 2.5rem;
}

/* ============================================================
   BOUTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  border: none;
  border-radius: var(--radius-md);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s, color 0.2s;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--sl-blue);
  color: #fff;
}

.btn-primary:hover {
  background: var(--sl-navy);
  box-shadow: var(--sl-shadow-md);
}

.btn-whatsapp {
  background: var(--wa-green);
  color: #fff;
}

.btn-whatsapp:hover {
  background: var(--wa-green-dark);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.3);
}

.btn-ghost {
  background: transparent;
  color: var(--sl-navy);
  border: 1.5px solid var(--sl-border-strong);
}

.btn-ghost:hover {
  background: var(--sl-blue-pale);
  border-color: var(--sl-blue);
}

.btn-ghost-white {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
}

.btn-ghost-white:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
}

.btn-sm,
.btn-small {
  padding: 9px 18px;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

.btn-full {
  width: 100%;
}

/* ============================================================
   HEADER / NAVIGATION
   ============================================================ */

header#header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--sl-border);
  transition: box-shadow 0.25s;
}

header#header.scrolled {
  box-shadow: var(--sl-shadow-sm);
}

.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-img-wrap {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1.5px solid var(--sl-border-md);
  flex-shrink: 0;
  display: block;
  background: var(--sl-gray-light);
  transition: border-color 0.25s, box-shadow 0.25s;
}

.logo-img-wrap.sm {
  width: 34px;
  height: 34px;
  min-width: 34px;
  border-radius: 6px;
  border-color: rgba(255, 255, 255, 0.25);
}

.logo:hover .logo-img-wrap {
  border-color: var(--sl-blue);
  box-shadow: var(--sl-shadow-sm);
}

.logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.logo-name {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--sl-navy);
}

.logo-sub {
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--sl-gray);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--sl-gray);
  transition: color 0.2s;
}

.nav-link:hover,
.nav-link.active {
  color: var(--sl-navy);
}

.nav-link.active,
.nav-link[aria-current="page"] {
  font-weight: 700;
  color: var(--sl-navy);
}

/* La page courante reste identifiable dans le pied de page */
.footer-nav a[aria-current="page"] {
  color: #fff;
  font-weight: 700;
}

.nav-cta {
  background: var(--sl-blue);
  color: #fff !important;
  padding: 9px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 700;
  transition: background 0.2s, transform 0.15s;
}

.nav-cta:hover {
  background: var(--sl-navy);
  transform: translateY(-1px);
}

/* Burger */

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 6px;
}

.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--sl-navy);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.burger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger.open span:nth-child(2) {
  opacity: 0;
}

.burger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Menu mobile (panneau latéral) */

.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 26, 61, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  z-index: 1090;
}

.mobile-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, 85vw);
  background: #fff;
  box-shadow: -12px 0 40px rgba(26, 43, 107, 0.15);
  transform: translateX(105%);
  transition: transform 0.3s ease;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
}

.mobile-menu-panel {
  /* Fermé = hors écran ET hors de l'ordre de tabulation / de l'arbre d'accessibilité.
     Le JS pose également l'attribut `inert` sur le panneau pour les navigateurs récents. */
  visibility: hidden;
  pointer-events: none;
}

.mobile-menu-panel.open {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--sl-border);
  margin-bottom: 0.5rem;
}

.mobile-menu-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1rem;
}

.mobile-close-btn {
  background: var(--sl-gray-light);
  border: 1px solid var(--sl-border);
  border-radius: var(--radius-sm);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--sl-navy);
  transition: background 0.2s;
}

.mobile-close-btn:hover {
  background: var(--sl-blue-pale);
}

.mobile-menu-links {
  display: flex;
  flex-direction: column;
}

.mobile-link {
  padding: 0.9rem 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--sl-navy);
  border-bottom: 1px solid var(--sl-border);
}

.mobile-link.active {
  color: var(--sl-blue);
}

.mobile-menu-cta {
  margin-top: auto;
  padding-top: 1.5rem;
}

.mobile-cta-btn {
  display: block;
  text-align: center;
  background: var(--sl-blue);
  color: #fff;
  padding: 13px 20px;
  border-radius: var(--radius-md);
  font-weight: 700;
  transition: background 0.2s;
}

.mobile-cta-btn:hover {
  background: var(--sl-navy);
}

/* ============================================================
   HERO (page d'accueil)
   ============================================================ */

.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse 90% 60% at 50% 0%, rgba(74, 127, 229, 0.07) 0%, transparent 70%);
  padding: 90px 0 70px;
}

/* Grande image d'arrière-plan (desktop) — à remplacer plus tard */
.hero-bg-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-bg-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  opacity: 0.16;
}

.hero-bg-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #fff 30%, rgba(255, 255, 255, 0.75) 60%, rgba(255, 255, 255, 0.35) 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 640px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--sl-blue-pale);
  color: var(--sl-blue);
  border: 1px solid var(--sl-border-strong);
  padding: 7px 16px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 1.75rem;
}

.badge-dot {
  width: 7px;
  height: 7px;
  min-width: 7px;
  border-radius: 50%;
  background: var(--sl-blue);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.4;
    transform: scale(0.85);
  }
}

.hero-title {
  font-size: clamp(2.2rem, 5.5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.035em;
  margin-bottom: 1.25rem;
}

.hero-title em {
  font-style: normal;
  /* Grand texte (clamp 2.2rem-3.4rem, gras) : seuil WCAG de 3:1, l'accent clair est conforme. */
  color: var(--sl-blue-bright);
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--sl-gray);
  line-height: 1.75;
  margin-bottom: 2.25rem;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Bande de chiffres du hero */
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  margin-top: 3rem;
  padding-top: 2.25rem;
  border-top: 1px solid var(--sl-border);
  max-width: 560px;
  position: relative;
  z-index: 1;
}

.hero-stats .stat {
  text-align: left;
}

.stat-num {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--sl-navy);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--sl-gray);
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* ============================================================
   EN-TÊTES DE SECTIONS
   ============================================================ */

.section-header {
  margin-bottom: 3rem;
  max-width: 640px;
}

.section-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sl-blue);
  margin-bottom: 0.75rem;
}

.section-label::before {
  content: '';
  width: 26px;
  height: 2px;
  background: var(--sl-blue);
  border-radius: 2px;
}

.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.section-title em {
  font-style: normal;
  /* Grand texte (>= 25,6 px gras) : seuil de 3:1. */
  color: var(--sl-blue-bright);
}

.section-sub {
  font-size: 1rem;
  color: var(--sl-gray);
  line-height: 1.7;
}

/* ============================================================
   HERO DE PAGE (formations / contact)
   ============================================================ */

.page-hero {
  background: linear-gradient(180deg, var(--sl-blue-pale) 0%, var(--sl-white) 100%);
  padding: 60px 0 50px;
  border-bottom: 1px solid var(--sl-border);
}

.breadcrumb {
  font-size: 0.82rem;
  color: var(--sl-gray);
  margin-bottom: 1.25rem;
  font-weight: 500;
}

.breadcrumb a {
  color: var(--sl-gray);
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: var(--sl-blue);
}

.breadcrumb span {
  margin: 0 6px;
  color: var(--sl-border-strong);
}

.page-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin-bottom: 1rem;
}

.page-title em {
  font-style: normal;
  /* Grand texte (>= 32 px gras) : seuil de 3:1. */
  color: var(--sl-blue-bright);
}

.page-desc {
  font-size: 1.05rem;
  color: var(--sl-gray);
  line-height: 1.75;
  max-width: 680px;
  margin-bottom: 1.75rem;
}

.page-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 2rem;
}

.page-facts li {
  background: #fff;
  border: 1px solid var(--sl-border-md);
  border-radius: 100px;
  padding: 8px 18px;
  font-size: 0.85rem;
  color: var(--sl-gray);
  font-weight: 500;
}

.page-facts strong {
  color: var(--sl-navy);
  font-weight: 800;
}

.page-hero .hero-actions {
  margin-top: 0.5rem;
}

/* ============================================================
   BANDEAU INSCRIPTIONS
   ============================================================ */

.enroll-wrap {
  padding: 0;
  position: relative;
  z-index: 2;
}

.enroll-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--sl-border-md);
  border-left: 4px solid var(--sl-blue);
  border-radius: var(--radius-md);
  box-shadow: var(--sl-shadow-sm);
  padding: 1.1rem 1.4rem;
  font-size: 0.92rem;
  color: var(--sl-gray);
  line-height: 1.6;
  transform: translateY(-24px);
}

.enroll-banner .badge-dot {
  margin-top: 8px;
  background: var(--wa-green);
}

.enroll-banner strong {
  color: var(--sl-navy);
}

/* ============================================================
   CARTES FORMATIONS EN VEDETTE (accueil)
   ============================================================ */

.featured-formations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.featured-formation-card {
  background: #fff;
  border: 1px solid var(--sl-border-md);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.featured-formation-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--sl-shadow-lg);
  border-color: var(--sl-blue-light);
}

.featured-card-image {
  height: 180px;
  overflow: hidden;
  background: var(--sl-gray-light);
}

.featured-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.featured-formation-card:hover .featured-card-image img {
  transform: scale(1.05);
}

.featured-card-content {
  padding: 1.35rem 1.4rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.featured-card-content h3 {
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

.featured-card-content p {
  font-size: 0.86rem;
  color: var(--sl-gray);
  line-height: 1.65;
  margin-bottom: 1.25rem;
  flex: 1;
}

.featured-card-content .btn {
  align-self: flex-start;
}

/* ============================================================
   PORTFOLIO / RÉALISATIONS
   ============================================================ */

.real-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.real-card {
  background: #fff;
  border: 1px solid var(--sl-border-md);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: block;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.real-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--sl-shadow-lg);
  border-color: var(--sl-blue-light);
}

.real-card-wide {
  grid-column: 1 / -1;
}

.real-img-wrap {
  position: relative;
  overflow: hidden;
}

.real-img-placeholder {
  height: 240px;
  background: var(--sl-gray-light);
}

.real-img-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.real-card:hover .real-img-placeholder img {
  transform: scale(1.04);
}

.real-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 26, 61, 0) 40%, rgba(15, 26, 61, 0.88) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 4px;
  padding: 1.25rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.real-card:hover .real-overlay {
  opacity: 1;
}

.real-cat {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sl-blue-light);
}

.real-view {
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
}

.real-info {
  padding: 1.1rem 1.25rem 1.25rem;
}

.real-tag {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--sl-blue);
  margin-bottom: 4px;
}

.real-info h4 {
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.3;
}

/* ============================================================
   BANDEAU DE CHIFFRES (preuve sociale)
   ============================================================ */

.stats-band {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  background: #fff;
  border: 1px solid var(--sl-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-bottom: 2.5rem;
}

.stats-band .stat {
  text-align: left;
  padding: 0.5rem 1rem;
  border-left: 2px solid var(--sl-blue-pale);
}

.stats-band .stat strong {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--sl-navy);
  line-height: 1.1;
  margin-bottom: 4px;
}

.stats-band .stat span {
  font-size: 0.8rem;
  color: var(--sl-gray);
  font-weight: 500;
}

/* ============================================================
   POURQUOI (cartes arguments)
   ============================================================ */

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.why-card {
  background: #fff;
  border: 1px solid var(--sl-border);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.why-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sl-shadow-md);
  border-color: var(--sl-blue-light);
}

.why-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  background: var(--sl-blue-pale);
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
}

.why-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.why-card p {
  font-size: 0.87rem;
  color: var(--sl-gray);
  line-height: 1.7;
}

/* ============================================================
   FILTRES DU CATALOGUE
   ============================================================ */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 2.5rem;
}

.filter-chip {
  background: #fff;
  color: var(--sl-gray);
  border: 1px solid var(--sl-border-md);
  border-radius: 100px;
  padding: 9px 20px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.filter-chip:hover {
  border-color: var(--sl-blue);
  color: var(--sl-navy);
}

.filter-chip.active {
  background: var(--sl-navy);
  border-color: var(--sl-navy);
  color: #fff;
}

/* ============================================================
   FICHES FORMATIONS DÉTAILLÉES
   ============================================================ */

.fdetail {
  background: #fff;
  border: 1px solid var(--sl-border-md);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 2rem;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.fdetail:hover {
  box-shadow: var(--sl-shadow-md);
  border-color: var(--sl-blue-light);
}

.fdetail.is-hidden {
  display: none;
}

.fdetail-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.5rem;
  align-items: start;
  padding: 2rem 2rem 1.5rem;
}

.fdetail-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--sl-blue-pale);
  line-height: 1;
  -webkit-text-stroke: 1px var(--sl-blue-light);
}

.fdetail-title-block {
  min-width: 0;
}

.fdetail-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sl-blue);
  margin-bottom: 0.5rem;
}

.fdetail-title-block h2 {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 0.6rem;
}

.fdetail-title-block>p {
  font-size: 0.93rem;
  color: var(--sl-gray);
  line-height: 1.7;
  max-width: 640px;
  margin-bottom: 1rem;
}

.fdetail-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.fdetail-facts li {
  background: var(--sl-gray-light);
  border: 1px solid var(--sl-border);
  border-radius: 100px;
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--sl-navy);
}

.fdetail-cta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 160px;
}

.fdetail-media {
  padding: 0 2rem;
}

.fdetail-media img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid var(--sl-border);
}

/* Visuel déjà composé (logo, affiche) : on le montre en entier, sans recadrage */
.fdetail-media img.fdetail-img-contain {
  object-fit: contain;
  background: var(--sl-white);
}

.fdetail-modules {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem 1.5rem;
  padding: 1.5rem 2rem;
}

.fmodule {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--sl-gray-light);
  border-radius: var(--radius-md);
  padding: 0.9rem 1rem;
}

.fmodule-dot {
  width: 8px;
  height: 8px;
  min-width: 8px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--sl-blue);
}

.fmodule strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--sl-navy);
  margin-bottom: 2px;
}

.fmodule p {
  font-size: 0.8rem;
  color: var(--sl-gray);
  line-height: 1.55;
}

.fdetail-jobs {
  margin: 0 2rem 2rem;
  background: var(--sl-blue-pale);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  font-size: 0.87rem;
  color: var(--sl-navy);
  line-height: 1.65;
}

.fdetail-jobs strong {
  color: var(--sl-blue);
}

/* ============================================================
   MINI-QUIZ
   ============================================================ */

.quiz {
  background: #fff;
  border: 1px solid var(--sl-border-md);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.quiz-step {
  margin-bottom: 1.75rem;
}

.quiz-q {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--sl-navy);
  margin-bottom: 1rem;
}

.quiz-q span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  min-width: 30px;
  border-radius: 50%;
  background: var(--sl-blue);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
}

.quiz-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.quiz-opt {
  background: #fff;
  color: var(--sl-navy);
  border: 1.5px solid var(--sl-border-md);
  border-radius: var(--radius-md);
  padding: 11px 18px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.quiz-opt:hover {
  border-color: var(--sl-blue);
  background: var(--sl-blue-pale);
}

.quiz-opt.selected {
  background: var(--sl-navy);
  border-color: var(--sl-navy);
  color: #fff;
}

.quiz-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.quiz-result {
  margin-top: 1.75rem;
  background: var(--sl-blue-pale);
  border: 1px solid var(--sl-border-md);
  border-radius: var(--radius-md);
  padding: 1.75rem;
}

.quiz-result-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sl-blue);
  margin-bottom: 0.5rem;
}

.quiz-result h3 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.quiz-result p {
  font-size: 0.9rem;
  color: var(--sl-gray);
  line-height: 1.7;
}

.quiz-reco-sec:not(:empty) {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--sl-navy);
}

.quiz-reco-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 1.25rem;
}

/* ============================================================
   ACTUALITÉS
   ============================================================ */

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.news-card {
  background: #fff;
  border: 1px solid var(--sl-border);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sl-shadow-md);
  border-color: var(--sl-blue-light);
}

.news-card time {
  font-size: 0.78rem;
  color: var(--sl-gray);
  font-weight: 500;
}

.news-tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--sl-blue);
  background: var(--sl-blue-pale);
  padding: 4px 10px;
  border-radius: 100px;
  margin: 0.6rem 0 0.8rem;
}

.news-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.6rem;
}

.news-card p {
  font-size: 0.87rem;
  color: var(--sl-gray);
  line-height: 1.7;
  margin-bottom: 1rem;
  flex: 1;
}

.news-link {
  font-size: 0.87rem;
  font-weight: 700;
  color: var(--sl-blue);
  transition: color 0.2s;
}

.news-link:hover {
  color: var(--sl-navy);
}

/* ============================================================
   FAQ (accordéon natif details/summary)
   ============================================================ */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: #fff;
  border: 1px solid var(--sl-border-md);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.25s;
}

.faq-item[open] {
  border-color: var(--sl-blue-light);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.1rem 1.25rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--sl-navy);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: background 0.2s;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary:hover {
  background: var(--sl-blue-pale);
}

.faq-item summary::after {
  content: '+';
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--sl-blue);
  transition: transform 0.3s;
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-item p {
  padding: 0 1.25rem 1.2rem;
  font-size: 0.9rem;
  color: var(--sl-gray);
  line-height: 1.75;
}

.faq-item p strong {
  color: var(--sl-navy);
}

/* ============================================================
   CTA FINAL (bloc sombre)
   ============================================================ */

.section-cta {
  padding: 40px 0 80px;
}

.cta-box {
  position: relative;
  overflow: hidden;
  background: linear-gradient(140deg, var(--sl-navy-dark) 0%, var(--sl-navy) 55%, #1d3480 100%);
  border-radius: var(--radius-xl);
  padding: 3.5rem 3rem;
  color: #fff;
}

.cta-glow {
  position: absolute;
  top: -120px;
  right: -80px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(74, 127, 229, 0.25) 0%, transparent 65%);
  pointer-events: none;
}

.cta-box h2 {
  position: relative;
  z-index: 1;
  color: #fff;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 0.75rem;
}

.cta-box h2 em {
  font-style: normal;
  color: var(--sl-blue-light);
}

.cta-box p {
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, 0.65);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 560px;
  margin-bottom: 2rem;
}

.cta-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ============================================================
   CONTACT
   ============================================================ */

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 2.5rem;
  align-items: start;
}

.contact-h2 {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
}

.contact-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.ccard {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--sl-border);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.25rem;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.ccard:hover {
  border-color: var(--sl-blue-light);
  box-shadow: var(--sl-shadow-sm);
}

.ccard-icon {
  width: 42px;
  height: 42px;
  min-width: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--sl-blue-pale);
  border-radius: var(--radius-sm);
  color: var(--sl-blue);
}

.ccard-icon svg {
  width: 20px;
  height: 20px;
}

.ccard-body {
  min-width: 0;
}

.ccard-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sl-gray);
  margin-bottom: 3px;
}

.ccard-value {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--sl-navy);
  word-break: break-word;
  transition: color 0.2s;
}

a.ccard-value:hover {
  color: var(--sl-blue);
}

.contact-direct-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.contact-form-wrap {
  background: #fff;
  border: 1px solid var(--sl-border-md);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--sl-shadow-sm);
}

.form-notice {
  font-size: 0.87rem;
  color: var(--sl-gray);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.form-notice strong {
  color: var(--sl-navy);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--sl-navy);
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.92rem;
  color: var(--sl-navy);
  background: var(--sl-gray-light);
  border: 1.5px solid transparent;
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  width: 100%;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--sl-gray);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--sl-blue);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(44, 95, 196, 0.22);
}

.form-group textarea {
  resize: vertical;
  min-height: 96px;
}

.form-hint {
  font-size: 0.78rem;
  color: var(--sl-gray);
  line-height: 1.6;
}

.form-hint strong {
  color: var(--sl-navy);
}

/* ============================================================
   VALIDATION DE FORMULAIRE ACCESSIBLE
   ============================================================ */

.req-mark {
  color: var(--sl-error);
  font-weight: 800;
}

.form-group input[aria-invalid='true'],
.form-group select[aria-invalid='true'],
.form-group textarea[aria-invalid='true'] {
  border-color: var(--sl-error);
  background: #FEF2F2;
}

.form-error {
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--sl-error);
}

.form-error[hidden] {
  display: none !important;
}

.form-status {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.6;
}

.form-status[hidden] {
  display: none !important;
}

.form-status--error {
  background: #FEF2F2;
  border-color: #E5A3A3;
  color: var(--sl-error-ink);
}

.form-status--ok {
  background: #E8F6F2;
  border-color: #7FC9BD;
  color: var(--sl-success-ink);
}

/* Envoi direct : la messagerie du candidat s'ouvre avec la demande pré-remplie. */
.form-status--warn {
  background: #FFF8E7;
  border-color: #E0C36A;
  color: #7A5D12;
}

.form-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ============================================================
   BARRE CTA MOBILE (sticky) + BOUTON WHATSAPP FLOTTANT
   ============================================================ */

.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 950;
  display: none;
  gap: 10px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--sl-border);
  transform: translateY(110%);
  transition: transform 0.3s ease;
}

.sticky-cta.show {
  transform: translateY(0);
}

.sticky-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 13px 16px;
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
}

.sticky-btn-primary {
  background: var(--sl-blue);
}

.sticky-btn-wa {
  background: var(--wa-green);
}

.floating-wa {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 950;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--wa-green);
  color: #fff;
  border-radius: 50%;
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.35);
  transition: transform 0.2s, background 0.2s;
}

.floating-wa:hover {
  transform: scale(1.08);
  background: var(--wa-green-dark);
}

/* ============================================================
   FOOTER
   ============================================================ */

footer {
  background: var(--sl-navy-dark);
  padding: 2.75rem 0;
  color: #fff;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-name {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
}

.footer-tagline {
  font-size: 0.75rem;
  /* 0,45 -> 4,39:1 (non conforme). 0,72 -> 9,25:1 mesuré sur #0F1A3D. */
  color: rgba(255, 255, 255, 0.72);
}

.footer-nav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-nav a {
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: #fff;
}

.footer-right {
  text-align: right;
}

.footer-status {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 4px;
}

.status-dot {
  width: 7px;
  height: 7px;
  min-width: 7px;
  border-radius: 50%;
  background: var(--wa-green);
  animation: pulse-dot 2s ease-in-out infinite;
}

.footer-copy {
  font-size: 0.75rem;
  /* 0,35 -> 3,17:1 (non conforme). 0,68 -> 8,38:1 mesuré sur #0F1A3D. */
  color: rgba(255, 255, 255, 0.68);
}

/* ============================================================
   ANIMATIONS D'APPARITION
   ============================================================ */

.reveal-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-right {
  opacity: 0;
  transform: translateX(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-up.visible,
.reveal-right.visible {
  opacity: 1;
  transform: none;
}

.delay-1 {
  transition-delay: 0.1s;
}

.delay-2 {
  transition-delay: 0.2s;
}

.delay-3 {
  transition-delay: 0.3s;
}

@media (prefers-reduced-motion: reduce) {

  .reveal-up,
  .reveal-right {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .badge-dot,
  .status-dot {
    animation: none;
  }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1024px) {
  .fdetail-header {
    grid-template-columns: auto 1fr;
  }

  .fdetail-cta {
    grid-column: 1 / -1;
    flex-direction: row;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .burger {
    display: flex;
  }

  .hero {
    padding: 60px 0 50px;
  }

  .hero-bg-media {
    display: none;
  }
}

@media (max-width: 768px) {
  .section-pad {
    padding: 55px 0;
  }

  .container {
    padding: 0 1.25rem;
  }

  .nav-inner {
    padding: 0 1.25rem;
  }

  .hero-stats {
    gap: 1.5rem;
  }

  .stat-num {
    font-size: 1.5rem;
  }

  .fdetail-header {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1.5rem 1.25rem 1.25rem;
  }

  .fdetail-cta {
    flex-direction: row;
    min-width: 0;
  }

  .fdetail-media {
    padding: 0 1.25rem;
  }

  .fdetail-media img {
    height: 170px;
  }

  .fdetail-modules {
    grid-template-columns: 1fr;
    padding: 1.25rem;
  }

  .fdetail-jobs {
    margin: 0 1.25rem 1.5rem;
  }

  .real-grid {
    grid-template-columns: 1fr;
  }

  .real-card-wide {
    grid-column: auto;
  }

  .quiz {
    padding: 1.4rem 1.25rem;
  }

  .cta-box {
    padding: 2.5rem 1.5rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .footer-right {
    text-align: left;
  }

  .footer-status {
    justify-content: flex-start;
  }

  .sticky-cta {
    display: flex;
  }

  .floating-wa {
    display: none;
  }

  .enroll-banner {
    transform: translateY(-16px);
  }
}

/* ============================================================
   FORMULAIRE D'INSCRIPTION — compléments (contact.html)
   ============================================================ */

.field-hint {
  font-size: 0.78rem;
  color: var(--sl-gray);
  line-height: 1.55;
}

/* Case à cocher : libellé aligné sur la case, cliquable sur toute la ligne. */
.form-check {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
}

.form-check input[type='checkbox'] {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--sl-blue);
  cursor: pointer;
}

.form-check label {
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--sl-navy);
  line-height: 1.55;
}

/* Coordonnées : sous-titre et liste de modalités (contact.html) */
.contact-h3 {
  font-size: 1.02rem;
  font-weight: 800;
  margin-bottom: 0.9rem;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 1.75rem;
}

.contact-list li {
  position: relative;
  padding-left: 22px;
  font-size: 0.87rem;
  color: var(--sl-gray);
  line-height: 1.65;
}

.contact-list li strong {
  color: var(--sl-navy);
}

.contact-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sl-blue);
}

/* ============================================================
   FICHE PARCOURS NORMALISÉE (formations.html)
   Chaque fiche affiche les mêmes informations : prérequis,
   volume, modalités, financement, accessibilité, validation.
   ============================================================ */

.fdetail-pratique {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem 1.5rem;
  margin: 0 2rem 1.75rem;
  padding: 1.25rem 1.5rem;
  background: var(--sl-gray-light);
  border: 1px solid var(--sl-border);
  border-radius: var(--radius-md);
}

.fdetail-pratique > div > dt {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sl-blue);
  margin-bottom: 4px;
}

.fdetail-pratique > div > dd {
  font-size: 0.83rem;
  color: var(--sl-navy);
  line-height: 1.6;
}

@media (max-width: 900px) {
  .fdetail-pratique {
    margin: 0 1.25rem 1.5rem;
    padding: 1rem 1.15rem;
    gap: 0.9rem 1.1rem;
  }
}
