/* ==========================================================================
   CEMID ACADEMY — couche de design (chargée après main.css)
   Règles : voir .claude/skills/design-craft/SKILL.md
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --default-font: var(--font-body);
  --heading-font: var(--font-body);
  --nav-font: var(--font-body);

  --ink: #0b1b33;
  --ink-soft: #3d4b61;
  --navy: #002b5b;
  --navy-deep: #00162f;
  --blue: #2f6fed;
  --gold: #f5a524;
  --gold-hover: #ffb73d;
  --paper: #ffffff;
  --mist: #f3f6fb;
  --line: rgba(11, 27, 51, 0.1);
  --wa: #1faa59;

  --accent-color: var(--navy);
  --heading-color: var(--ink);
  --default-color: var(--ink-soft);
  --nav-hover-color: var(--gold);

  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;

  --shadow-sm: 0 1px 2px rgba(11, 27, 51, 0.06), 0 2px 8px rgba(11, 27, 51, 0.04);
  --shadow-md: 0 2px 4px rgba(11, 27, 51, 0.05), 0 12px 32px rgba(11, 27, 51, 0.09);
  --shadow-lg: 0 4px 8px rgba(11, 27, 51, 0.06), 0 24px 56px rgba(11, 27, 51, 0.16);

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  /* Échelle typographique resserrée */
  --fs-h1: clamp(2rem, 2.4vw + 1rem, 3.25rem);
  --fs-h2: clamp(1.5rem, 1.4vw + 1rem, 2.25rem);
  --fs-lead: clamp(1rem, 0.25vw + 0.95rem, 1.125rem);
  --fs-sm: 0.875rem;
  --fs-xs: 0.8125rem;

  --section-y: clamp(56px, 6vw, 96px);
  --head-gap: clamp(28px, 3.5vw, 48px);
}

.light-background { --background-color: var(--mist); }
.dark-background { --background-color: var(--navy-deep); }

/* ---------- Base ---------- */
html { scroll-padding-top: 80px; }

body {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--ink-soft);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-body);
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-wrap: balance;
}

p { text-wrap: pretty; }

img { max-width: 100%; height: auto; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

section, .section {
  padding: var(--section-y) 0;
  scroll-margin-top: 80px;
}

.container, .container-xl, .container-fluid { --bs-gutter-x: 2rem; }

/* Barre de progression de lecture */
.scroll-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  z-index: 1000;
  background: linear-gradient(90deg, var(--gold), var(--gold-hover));
  transform-origin: 0 50%;
  transform: scaleX(0);
  pointer-events: none;
}

/* ---------- Titres de section ---------- */
/* Large : titre et sous-titre tiennent sur une ligne quand c'est possible */
.section-head {
  max-width: 960px;
  margin: 0 auto var(--head-gap);
  text-align: center;
}
.section-head.left { margin-left: 0; text-align: left; }

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
  background: rgba(47, 111, 237, 0.1);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.dark-background .eyebrow { color: var(--gold); background: rgba(245, 165, 36, 0.14); }

.section-head h2 {
  font-size: var(--fs-h2);
  font-weight: 800;
  margin: 0 0 12px;
}
.section-head p {
  font-size: 1rem;
  margin: 0;
  color: var(--ink-soft);
}
.dark-background .section-head h2 { color: #fff; }
.dark-background .section-head p { color: rgba(255, 255, 255, 0.78); }

/* ---------- Boutons ---------- */
.btn-cta,
.btn-ghost,
.btn-wa,
.btn-navy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  border: 2px solid transparent;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 160ms var(--ease-out), background-color 160ms ease-out, box-shadow 200ms ease-out, color 160ms ease-out, border-color 160ms ease-out;
  -webkit-tap-highlight-color: transparent;
}
.btn-cta:active, .btn-ghost:active, .btn-wa:active, .btn-navy:active { transform: scale(0.97); }

.btn-cta {
  background: var(--gold);
  color: var(--navy-deep);
  box-shadow: 0 6px 18px rgba(245, 165, 36, 0.32);
}
.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}
.btn-navy {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 6px 18px rgba(0, 43, 91, 0.22);
}
.btn-wa { background: var(--wa); color: #fff; }
.btn-ghost.on-light { color: var(--navy); border-color: rgba(0, 43, 91, 0.25); }

@media (hover: hover) and (pointer: fine) {
  .btn-cta:hover { background: var(--gold-hover); color: var(--navy-deep); transform: translateY(-2px); box-shadow: 0 10px 26px rgba(245, 165, 36, 0.42); }
  .btn-ghost:hover { background: rgba(255, 255, 255, 0.12); color: #fff; border-color: #fff; }
  .btn-ghost.on-light:hover { background: rgba(0, 43, 91, 0.06); color: var(--navy); border-color: var(--navy); }
  .btn-navy:hover { background: #003a78; color: #fff; transform: translateY(-2px); }
  .btn-wa:hover { background: #17964c; color: #fff; transform: translateY(-2px); }
}

/* ---------- En-tête ---------- */
.header {
  --background-color: transparent;
  padding: 12px 0;
  transition: background-color 250ms ease-out, padding 250ms var(--ease-out), box-shadow 250ms ease-out, transform 250ms var(--ease-out);
}
.header .logo img { max-height: 60px; width: auto; transition: max-height 250ms var(--ease-out); }
/* Le flou est porté par un pseudo-élément : un backdrop-filter (ou transform) sur .header
   en ferait le bloc conteneur du menu mobile en position fixed, qui serait alors invisible. */
.header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(0, 22, 47, 0.88);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  opacity: 0;
  transition: opacity 250ms ease-out;
  pointer-events: none;
}
.scrolled .header {
  --background-color: transparent;
  padding: 6px 0;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
}
.scrolled .header::before { opacity: 1; }
.scrolled .header .logo img { max-height: 48px; }
.header.header-solid {
  background-color: var(--navy-deep);
}
/* Masqué en défilant vers le bas, réapparaît en remontant */
.header-hidden:not(.mobile-nav-active) .header { transform: translateY(-100%); }
.mobile-nav-active .header { transform: none; transition: none; }

.navmenu a { font-weight: 600; letter-spacing: 0.01em; }
@media (min-width: 1200px) {
  .navmenu a, .navmenu a:focus { font-size: 0.875rem; padding-inline: 14px; }
  .navmenu .dropdown ul a { font-size: 0.875rem; }
}

.header .cta-btn,
.header .cta-btn:focus {
  background: var(--gold);
  color: var(--navy-deep);
  border: 0;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 10px 18px;
  transition: transform 160ms var(--ease-out), background-color 160ms ease-out;
}
.header .cta-btn:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .header .cta-btn:hover { background: var(--gold-hover); color: var(--navy-deep); border: 0; }
}

.mobile-nav-toggle { cursor: pointer; }
.mobile-nav-toggle:focus-visible { outline-offset: 4px; }

@media (max-width: 1199px) {
  .header .cta-btn { padding: 9px 14px; margin-right: 12px; min-height: 44px; display: inline-flex; align-items: center; }
  .navmenu ul { border-radius: var(--r-md); box-shadow: var(--shadow-lg); }
  .navmenu a, .navmenu a:focus { min-height: 44px; font-size: 0.9375rem; }
  /* Menu ouvert : panneau à la hauteur de son contenu, sous la barre */
  .mobile-nav-active .navmenu > ul { inset: 76px 16px auto 16px; max-height: calc(100dvh - 92px); animation: menu-in 200ms var(--ease-out) both; transform-origin: top right; }
  .mobile-nav-active .navmenu { background: rgba(0, 22, 47, 0.72); }
  .navmenu .active, .navmenu .active:focus, .navmenu a:hover { color: var(--navy); }
  .navmenu > ul > li > a.active { font-weight: 700; }
  /* Le bouton S'inscrire laisse la place à la croix de fermeture */
  .mobile-nav-active .header .cta-btn,
  .mobile-nav-active .scroll-top { visibility: hidden; }
  .mobile-nav-active .mobile-nav-toggle { top: 22px; right: 16px; }
}
@keyframes menu-in { from { opacity: 0; transform: scale(0.96) translateY(-6px); } to { opacity: 1; transform: none; } }
@media (max-width: 400px) {
  .header .logo img { max-height: 44px; }
  .header .cta-btn { font-size: 0.6875rem; padding: 8px 12px; margin-right: 6px; }
}

/* ---------- Hero ---------- */
.hero {
  min-height: min(92svh, 800px);
  padding: 128px 0 88px;
  align-items: center;
  justify-content: flex-start;
}
.hero > img { object-position: center 30%; }
/* Voile uniforme : le texte est centré, il doit rester lisible sur toute la largeur */
.hero:before {
  background:
    radial-gradient(ellipse 70% 60% at 50% 50%, rgba(0, 22, 47, 0.55), transparent 75%),
    linear-gradient(rgba(0, 22, 47, 0.72), rgba(0, 22, 47, 0.72)),
    linear-gradient(to top, rgba(0, 22, 47, 0.7), transparent 40%);
}
.hero .hero-inner { align-items: center; text-align: center; }
.hero .hero-inner > * { max-width: 760px; }

.hero .pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
  margin: 0 0 20px;
}
.hero .pill .dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3ddc84;
}
.hero .pill .dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  background: rgba(61, 220, 132, 0.35);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse { from { transform: scale(0.6); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }

.hero h1 {
  color: #fff;
  font-size: var(--fs-h1);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
}
.hero h1 em { font-style: normal; color: var(--gold); }
/* Grand écran : la ligne dorée ne se coupe pas */
@media (min-width: 992px) {
  .hero .hero-inner > h1 { max-width: none; }
  .hero h1 em { white-space: nowrap; }
  /* Sous-titre sur deux lignes équilibrées */
  .hero .hero-inner > .lead { max-width: 900px; text-wrap: balance; }
}

.hero .lead {
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.86);
  margin: 0 auto 28px;
  max-width: 600px;
}

.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 0 0 32px; }

.hero .hero-proof {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 24px;
  color: rgba(255, 255, 255, 0.85);
  font-size: var(--fs-sm);
  font-weight: 500;
}
.hero-proof li { display: inline-flex; align-items: center; gap: 8px; }
.hero-proof i { color: var(--gold); font-size: 1rem; }

.hero .hero-inner > * { animation: rise 600ms var(--ease-out) both; }
.hero .hero-inner > *:nth-child(2) { animation-delay: 60ms; }
.hero .hero-inner > *:nth-child(3) { animation-delay: 120ms; }
.hero .hero-inner > *:nth-child(4) { animation-delay: 180ms; }
.hero .hero-inner > *:nth-child(5) { animation-delay: 240ms; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

@media (max-width: 575px) {
  .hero { min-height: auto; padding: 104px 0 72px; }
  .hero .lead { margin-bottom: 24px; }
  .hero-actions { width: 100%; }
  .hero-actions .btn-cta, .hero-actions .btn-ghost { flex: 1 1 100%; }
  .hero .hero-proof { gap: 8px 16px; font-size: var(--fs-xs); }
}

/* Hero compact (pages intérieures) */
.page-hero {
  position: relative;
  padding: 128px 0 64px;
  background: linear-gradient(135deg, var(--navy-deep), var(--navy));
  color: #fff;
  overflow: hidden;
}
.page-hero.has-img > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.28; }
.page-hero .container { position: relative; }
.page-hero h1 { color: #fff; font-size: clamp(1.75rem, 2.6vw + 0.75rem, 2.75rem); font-weight: 800; margin: 0 0 12px; }
.page-hero p { color: rgba(255, 255, 255, 0.84); font-size: var(--fs-lead); max-width: 580px; margin: 0 0 24px; }
@media (max-width: 575px) { .page-hero { padding: 104px 0 48px; } }

/* ---------- Bandeau de chiffres ---------- */
.stats { padding: 0; margin-top: -48px; position: relative; z-index: 5; background: transparent; }
.stats .stats-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  padding: 10px;
  max-width: 1080px;
  margin: 0 auto;
  overflow: hidden;
}
/* Filet de couleur en haut de la carte */
.stats .stats-grid::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--navy), var(--blue) 55%, var(--gold));
}
.stat {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 16px;
  border-radius: var(--r-md);
  transition: background-color 220ms ease-out;
}
.stat + .stat::before { content: ""; position: absolute; left: -4px; top: 22%; bottom: 22%; width: 1px; background: var(--line); }
.stat-ico {
  flex: none;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  color: #fff;
  font-size: 1.25rem;
  box-shadow: 0 6px 16px rgba(0, 43, 91, 0.25);
  transition: transform 260ms var(--ease-out);
}
.stat:nth-child(2) .stat-ico { background: linear-gradient(135deg, #e08a00, var(--gold)); box-shadow: 0 6px 16px rgba(245, 165, 36, 0.32); }
.stat > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.stat strong {
  font-size: clamp(1.75rem, 1.4vw + 1.1rem, 2.25rem);
  font-weight: 800;
  line-height: 1;
  color: var(--navy);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.stat span.label { font-size: var(--fs-xs); font-weight: 600; color: var(--ink-soft); line-height: 1.3; }
@media (hover: hover) and (pointer: fine) {
  .stat:hover { background: var(--mist); }
  .stat:hover .stat-ico { transform: translateY(-2px) rotate(-6deg); }
}
@media (max-width: 991px) and (min-width: 768px) {
  .stat { flex-direction: column; align-items: flex-start; gap: 12px; }
}
@media (max-width: 767px) {
  .stats { margin-top: -36px; }
  .stats .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 6px; padding: 8px; }
  .stat + .stat::before { display: none; }
  .stat { flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 16px 8px; background: var(--mist); }
  .stat > div { align-items: center; }
  .stat-ico { width: 40px; height: 40px; border-radius: 12px; font-size: 1.0625rem; }
}

/* ---------- Formations ---------- */
.formations { padding-top: calc(var(--section-y) + 8px); }

.filter-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 0 28px; padding: 0; list-style: none; }
.filter-chips button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font: 600 var(--fs-sm) var(--font-body);
  cursor: pointer;
  transition: background-color 160ms ease-out, color 160ms ease-out, border-color 160ms ease-out, transform 160ms var(--ease-out);
}
.filter-chips button:active { transform: scale(0.97); }
.filter-chips button[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.filter-chips .count {
  min-width: 22px;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1.4;
  background: var(--mist);
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
  transition: background-color 160ms ease-out, color 160ms ease-out;
}
.filter-chips button[aria-pressed="true"] .count { background: rgba(255, 255, 255, 0.18); color: #fff; }
@media (hover: hover) and (pointer: fine) {
  .filter-chips button:not([aria-pressed="true"]):hover { border-color: var(--navy); }
}

.course-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 1199px) { .course-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 991px) { .course-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; } }

.course {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  transition: transform 220ms var(--ease-out), box-shadow 220ms ease-out, border-color 220ms ease-out;
}
.course[hidden] { display: none; }
.course.is-entering { animation: card-in 280ms var(--ease-out) both; }
@keyframes card-in { from { opacity: 0; transform: scale(0.96) translateY(8px); } to { opacity: 1; transform: none; } }

/* Halo qui suit le pointeur */
.course::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), rgba(47, 111, 237, 0.08), transparent 70%);
  opacity: 0;
  transition: opacity 200ms ease-out;
  pointer-events: none;
}

.course .thumb { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--mist); }
.course .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms var(--ease-out); }
.course .tag {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 10px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--navy);
  box-shadow: 0 1px 3px rgba(11, 27, 51, 0.12);
}
.course .body { display: flex; flex-direction: column; flex: 1; padding: 16px 18px 6px; }
.course h3 { font-size: 1.0625rem; font-weight: 700; margin: 0 0 6px; letter-spacing: -0.015em; }
.course p { font-size: var(--fs-sm); line-height: 1.55; margin: 0 0 14px; flex: 1; }
.course .enroll {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: var(--fs-xs);
  color: var(--navy);
  min-height: 44px;
  margin-top: auto;
  border-top: 1px solid var(--line);
  justify-content: space-between;
}
.course .enroll i {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--mist);
  transition: transform 200ms var(--ease-out), background-color 200ms ease-out, color 200ms ease-out;
}
/* Toute la carte est cliquable via le lien d'inscription */
.course .enroll::before { content: ""; position: absolute; inset: -9999px; }
.course { cursor: pointer; }
.course:has(.enroll:focus-visible) { outline: 2px solid var(--gold); outline-offset: 3px; }
.course .enroll:focus-visible { outline: none; }

@media (hover: hover) and (pointer: fine) {
  .course:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(0, 43, 91, 0.16); }
  .course:hover::after { opacity: 1; }
  .course:hover .thumb img { transform: scale(1.05); }
  .course:hover .enroll i { transform: translateX(3px); background: var(--navy); color: #fff; }
}

/* Carte d'appel à l'action dans la grille des formations */
.course.course-cta {
  justify-content: center;
  background: linear-gradient(135deg, var(--navy-deep), var(--navy));
  border: 0;
  padding: 28px;
  color: #fff;
  cursor: default;
  overflow: hidden;
}
.course.course-cta::before {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -80px;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(245, 165, 36, 0.28), transparent 65%);
  pointer-events: none;
}
.course.course-cta::after { display: none; }
.course.course-cta > * { position: relative; }
.course.course-cta h3 { color: #fff; font-size: 1.25rem; }
.course.course-cta p { color: rgba(255, 255, 255, 0.82); flex: 0; margin-bottom: 20px; max-width: 520px; }
.course.course-cta .btn-cta { align-self: flex-start; }
@media (hover: hover) and (pointer: fine) { .course.course-cta:hover { transform: none; } }

/* Mobile : carrousel horizontal plutôt qu'une longue pile de cartes */
@media (max-width: 575px) {
  .course-grid {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    margin-inline: calc(var(--bs-gutter-x) * -0.5);
    padding: 4px calc(var(--bs-gutter-x) * 0.5) 16px;
    scroll-padding-inline: calc(var(--bs-gutter-x) * 0.5);
    scrollbar-width: none;
  }
  .course-grid::-webkit-scrollbar { display: none; }
  .course-grid > .course { flex: 0 0 78%; scroll-snap-align: start; grid-column: auto !important; }
  .course-grid > .course.course-cta { padding: 24px 20px; }
}
.scroll-dots { display: none; }
@media (max-width: 575px) {
  .scroll-dots { display: flex; justify-content: center; gap: 6px; margin-top: 4px; }
  .scroll-dots span {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: rgba(11, 27, 51, 0.18);
    transition: width 200ms var(--ease-out), background-color 200ms ease-out;
  }
  .scroll-dots span.on { width: 18px; background: var(--navy); }
}

/* ---------- Étapes d'inscription ---------- */
.steps { background: var(--navy-deep); position: relative; overflow: hidden; }
.steps::before {
  content: "";
  position: absolute;
  inset: auto -10% -40% auto;
  width: 640px;
  height: 640px;
  background: radial-gradient(circle, rgba(47, 111, 237, 0.35), transparent 65%);
  pointer-events: none;
}
.steps .container { position: relative; }
.step-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; list-style: none; padding: 0; margin: 0; counter-reset: step; max-width: 1080px; margin-inline: auto; }
@media (max-width: 767px) { .step-list { grid-template-columns: 1fr; gap: 12px; } }
.step-list li {
  counter-increment: step;
  padding: 24px 22px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 220ms var(--ease-out), background-color 220ms ease-out, border-color 220ms ease-out;
}
.step-list li::before {
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--gold);
  color: var(--navy-deep);
  font-weight: 800;
  font-size: 1rem;
  margin-bottom: 14px;
}
.step-list h3 { color: #fff; font-size: 1.0625rem; font-weight: 700; margin: 0 0 6px; }
.step-list p { color: rgba(255, 255, 255, 0.76); margin: 0; font-size: var(--fs-sm); }
@media (hover: hover) and (pointer: fine) {
  .step-list li:hover { transform: translateY(-4px); background: rgba(255, 255, 255, 0.08); border-color: rgba(245, 165, 36, 0.4); }
}
@media (max-width: 767px) {
  .step-list li { display: grid; grid-template-columns: 36px 1fr; column-gap: 14px; padding: 18px; }
  .step-list li::before { margin: 0; grid-row: span 2; }
}
.steps .steps-cta { text-align: center; margin-top: 36px; }

/* ---------- Atouts / À propos ---------- */
.about-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 991px) { .about-split { grid-template-columns: 1fr; } }
.about-split .media { position: relative; }
.about-split .media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-lg); box-shadow: var(--shadow-md); }
@media (max-width: 991px) { .about-split .media img { aspect-ratio: 16 / 9; } }
.about-split h2 { font-size: var(--fs-h2); font-weight: 800; margin: 0 0 16px; }
.about-split .lead { font-size: var(--fs-lead); margin: 0 0 16px; color: var(--ink); }
.about-split p { font-size: 0.9375rem; }

.check-list { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 12px; }
.check-list li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: 0.9375rem; line-height: 1.55; }
.check-list i { color: var(--navy); font-size: 1.125rem; line-height: 1.35; }
.check-list strong { color: var(--ink); }
/* Piliers (À propos, mot de la PDG, mission) */
.pillars { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.pillars > li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px;
  align-items: start;
  padding: 14px 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: border-color 200ms ease-out, box-shadow 200ms ease-out, transform 200ms var(--ease-out);
}
.pillars .ico {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(0, 43, 91, 0.08);
  color: var(--navy);
  font-size: 1.125rem;
  transition: background-color 200ms ease-out, color 200ms ease-out;
}
.pillars h3, .pillars h4 { font-size: 0.9375rem; font-weight: 700; margin: 2px 0 2px; letter-spacing: -0.01em; }
.pillars p { font-size: var(--fs-sm); margin: 0; line-height: 1.5; }
@media (hover: hover) and (pointer: fine) {
  .pillars > li:hover { border-color: rgba(0, 43, 91, 0.2); box-shadow: var(--shadow-sm); transform: translateX(4px); }
  .pillars > li:hover .ico { background: var(--navy); color: #fff; }
}
.pillars.compact > li { padding: 10px 14px; background: transparent; border-color: transparent; }
.pillars.compact > li:hover { background: var(--mist); border-color: transparent; box-shadow: none; }
.about-split .lead + .pillars { margin-top: 4px; }

.cert-chips { list-style: none; padding: 0; margin: 6px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.cert-chips li {
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--navy);
  background: rgba(47, 111, 237, 0.1);
}

/* Citation (PDG / mission) */
.pdg-quote {
  position: relative;
  margin: 0 0 16px;
  padding: 4px 0 4px 18px;
  border-left: 3px solid var(--gold);
}
.pdg-quote p { margin: 0; font-size: var(--fs-lead); font-weight: 600; line-height: 1.5; color: var(--ink); }
.features .tab-content .pdg-quote p { font-size: var(--fs-lead); }
.features .pillars { margin: 4px 0 20px; }
.signoff { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.signature { display: flex; flex-direction: column; margin: 0; line-height: 1.3; }
.features .tab-content .signature { font-size: var(--fs-sm); }
.signature strong { color: var(--ink); font-size: 0.9375rem; }
.signature span { color: var(--ink-soft); font-size: var(--fs-xs); }

/* Liste en 2 colonnes quand la largeur le permet */
@media (min-width: 576px) and (max-width: 991px) {
  .check-list.check-grid { grid-template-columns: 1fr 1fr; gap: 14px 24px; }
}

/* ---------- Témoignages ---------- */
.testimonials {
  background: linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 100%);
}
.testimonials::before { display: none; }
.testimonials .swiper { padding-bottom: 4px; }
.testimonials .swiper-slide { height: auto; }
.testimonials .testimonial-item {
  display: flex;
  flex-direction: column;
  height: 100%;
  margin: 0;
  padding: 24px;
  text-align: left;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: background-color 220ms ease-out, border-color 220ms ease-out;
}
@media (hover: hover) and (pointer: fine) {
  .testimonials .testimonial-item:hover { background: rgba(255, 255, 255, 0.09); border-color: rgba(245, 165, 36, 0.35); }
}
.testimonials .stars { margin: 0 0 12px; font-size: 0.875rem; }
.testimonials .stars i { color: var(--gold); margin-right: 2px; }
.testimonials blockquote { margin: 0 0 20px; flex: 1; }
.testimonials .testimonial-item p { width: auto; margin: 0; font-style: normal; }
.testimonials blockquote p {
  font-size: 1rem;
  line-height: 1.6;
  font-weight: 500;
  color: #fff;
  font-style: normal;
  margin: 0;
}
.testimonials .author { display: flex; align-items: center; gap: 12px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.testimonials .avatar {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.9375rem;
  color: var(--navy-deep);
  background: var(--gold);
}
.testimonials .who { color: #fff; font-weight: 700; font-size: 0.9375rem; margin: 0; line-height: 1.3; }
.testimonials .what { color: rgba(255, 255, 255, 0.68); font-size: var(--fs-xs); margin: 0; line-height: 1.4; }
.testimonials .swiper-pagination { position: relative; margin-top: 24px; }
.testimonials .swiper-pagination-bullet { background: #fff; opacity: 0.35; width: 8px; height: 8px; transition: width 200ms var(--ease-out), opacity 200ms ease-out; }
.testimonials .swiper-pagination-bullet-active { background: var(--gold); opacity: 1; width: 20px; border-radius: 999px; }
.testimonials .swiper-pagination-lock { display: none; }

/* ---------- Mot de la PDG (onglets) ---------- */
.features .nav-tabs { border: 0; gap: 8px; justify-content: center; margin-bottom: 32px; }
.features .nav-tabs .nav-item { width: auto; flex: none; }
.features .nav-tabs .nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  height: auto;
  padding: 0 18px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  background-color: var(--paper);
  color: var(--ink);
  font-weight: 700;
  transition: background-color 160ms ease-out, color 160ms ease-out, border-color 160ms ease-out, transform 160ms var(--ease-out);
}
.features .nav-tabs .nav-link:active { transform: scale(0.97); }
.features .nav-tabs .nav-link h4 { display: block !important; margin: 0; font-size: var(--fs-sm); font-weight: 700; color: inherit; }
.features .nav-tabs .nav-link i { padding: 0; font-size: 1.0625rem; line-height: 1; }
.features .nav-tabs .nav-link.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.features .nav-tabs .nav-link.active h4 { color: #fff; }
@media (hover: hover) and (pointer: fine) {
  .features .nav-tabs .nav-link:not(.active):hover { border-color: var(--navy); }
}
.features .tab-content h3 { font-size: clamp(1.375rem, 1.2vw + 1rem, 1.875rem); font-weight: 800; margin: 0 0 14px; }
.features .tab-content img { border-radius: var(--r-lg); box-shadow: var(--shadow-md); max-height: 440px; width: 100%; object-fit: cover; }
.features .tab-content p { font-size: 0.9375rem; }
@media (max-width: 991px) { .features .tab-content img { aspect-ratio: 16 / 9; max-height: 360px; } }

/* ---------- Galerie (carrousel) ---------- */
.gallery-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 20px; }
.gallery-bar .filter-chips { margin: 0; justify-content: flex-start; }
.gallery-nav { display: flex; gap: 8px; }
.gallery-nav button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  background: var(--paper);
  color: var(--navy);
  font-size: 1.0625rem;
  cursor: pointer;
  transition: background-color 160ms ease-out, color 160ms ease-out, border-color 160ms ease-out, transform 160ms var(--ease-out), opacity 160ms ease-out;
}
.gallery-nav button:active { transform: scale(0.94); }
.gallery-nav button:disabled { opacity: 0.4; cursor: default; }
@media (hover: hover) and (pointer: fine) {
  .gallery-nav button:not(:disabled):hover { background: var(--navy); border-color: var(--navy); color: #fff; }
}

.gallery-swiper { overflow: hidden; border-radius: var(--r-md); }
.gallery-swiper .swiper-slide { height: auto; }
.gallery-swiper .swiper-slide.is-entering { animation: card-in 320ms var(--ease-out) both; }
.gallery-item {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--r-md);
  background: var(--line);
  color: #fff;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease-out); }
.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 22, 47, 0.82), rgba(0, 22, 47, 0.1) 55%, transparent);
  transition: opacity 240ms ease-out;
}
.gallery-item .cap {
  position: absolute;
  z-index: 1;
  left: 14px;
  right: 56px;
  bottom: 12px;
  display: flex;
  flex-direction: column;
  font-size: var(--fs-sm);
  font-weight: 600;
  line-height: 1.3;
  transition: transform 260ms var(--ease-out);
}
.gallery-item .cap small {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 2px;
}
.gallery-item .zoom {
  position: absolute;
  z-index: 1;
  right: 12px;
  bottom: 12px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
  font-size: 0.875rem;
  transition: transform 220ms var(--ease-out), background-color 200ms ease-out, color 200ms ease-out;
}
.gallery-item:focus-visible { outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) {
  .gallery-item:hover img { transform: scale(1.06); }
  .gallery-item .cap { transform: translateY(4px); }
  .gallery-item:hover .cap { transform: none; }
  .gallery-item:hover .zoom { background: var(--gold); color: var(--navy-deep); transform: scale(1.08); }
}

.gallery-progress { height: 3px; margin-top: 16px; border-radius: 999px; background: var(--line); overflow: hidden; }
.gallery-progress span { display: block; height: 100%; background: var(--navy); border-radius: inherit; transform-origin: 0 50%; transform: scaleX(0); transition: transform 400ms var(--ease-out); }

@media (max-width: 575px) {
  .gallery-bar { flex-wrap: nowrap; }
  .gallery-bar .filter-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .gallery-bar .filter-chips::-webkit-scrollbar { display: none; }
  .gallery-bar .filter-chips button { white-space: nowrap; padding: 0 14px; }
  .gallery-nav { display: none; }
}

/* ---------- Équipe ---------- */
.team-grid { justify-content: center; }
@media (min-width: 1200px) { .team-grid > [class*="col-"] { width: 20%; } }
.team .member {
  position: relative;
  background: var(--paper);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  height: 100%;
  transition: transform 220ms var(--ease-out), box-shadow 220ms ease-out;
}
.team .member .pic { aspect-ratio: 4 / 4.4; overflow: hidden; background: var(--mist); margin-bottom: 0; }
.team .member .pic img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform 500ms var(--ease-out); }
.team .member .member-info {
  position: static;
  box-shadow: none;
  background: transparent;
  padding: 14px 16px 16px;
  text-align: left;
  color: var(--ink-soft);
}
.team .member h4 { font-size: 0.9375rem; font-weight: 700; padding-bottom: 0; margin: 0 0 2px; }
.team .member h4::after { display: none; }
.team .member span { font-style: normal; font-size: var(--fs-xs); line-height: 1.4; display: block; color: var(--ink-soft); }
@media (hover: hover) and (pointer: fine) {
  .team .member:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
  .team .member:hover .pic img { transform: scale(1.04); }
}
@media (max-width: 575px) {
  .team-grid { --bs-gutter-x: 12px; --bs-gutter-y: 12px; }
  .team .member .member-info { padding: 10px 12px 12px; }
  .team .member h4 { font-size: 0.875rem; }
  .team .member span { font-size: 0.75rem; }
}

/* ---------- Services annexes : cartes horizontales compactes ---------- */
.extra-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.extra-grid > .course {
  flex: 0 1 calc((100% - 32px) / 3);
  flex-direction: row;
  min-height: 148px;
}
@media (max-width: 991px) { .extra-grid > .course { flex-basis: calc((100% - 16px) / 2); } }
@media (max-width: 575px) { .extra-grid { gap: 12px; } .extra-grid > .course { flex-basis: 100%; min-height: 0; } }
.extra-grid .course .thumb { flex: 0 0 34%; aspect-ratio: auto; }
.extra-grid .course .thumb img { position: absolute; inset: 0; }
.extra-grid .course .tag { display: none; }
.extra-grid .course .body { padding: 14px 16px 4px; }
.extra-grid .course h3 { font-size: 0.9375rem; }
.extra-grid .course p { font-size: var(--fs-xs); margin-bottom: 10px; }
/* Formations repliées (hors mobile, où la liste est déjà un carrousel) */
@media (min-width: 576px) {
  .course-grid.is-collapsed > .is-overflow { display: none; }
}
@media (max-width: 575px) {
  .formations-more { display: none; }
}
.formations-more[hidden] { display: none; }

/* Liste repliée : seules les 3 premières cartes sont visibles */
.extra-grid.is-collapsed > .is-extra { display: none; }
.extra-grid > .is-extra.is-entering { animation: card-in 320ms var(--ease-out) both; }
.show-more-wrap { display: flex; justify-content: center; margin-top: 24px; }
.show-more .sm-count {
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.6875rem;
  background: rgba(0, 43, 91, 0.08);
}
.show-more i { transition: transform 240ms var(--ease-out); }
.show-more[aria-expanded="true"] i { transform: rotate(180deg); }
.show-more[aria-expanded="true"] .sm-count { display: none; }

/* ---------- Coworking ---------- */
.cowork-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 991px) { .cowork-split { grid-template-columns: 1fr; } }
.cowork-split img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-lg); box-shadow: var(--shadow-md); }
@media (max-width: 991px) { .cowork-split img { aspect-ratio: 16 / 9; } }
.cowork-split h2 { font-size: var(--fs-h2); font-weight: 800; margin: 0 0 16px; }

/* ---------- Pré-inscription (formulaire) ---------- */
.enroll-section {
  background: linear-gradient(135deg, var(--navy-deep), var(--navy));
  position: relative;
  overflow: hidden;
}
.enroll-section::after {
  content: "";
  position: absolute;
  left: -160px;
  top: -160px;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(245, 165, 36, 0.22), transparent 65%);
  pointer-events: none;
}
.enroll-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 991px) { .enroll-grid { grid-template-columns: 1fr; } }
.enroll-copy h2 { color: #fff; font-size: clamp(1.625rem, 1.8vw + 1rem, 2.5rem); font-weight: 800; margin: 0 0 14px; }
.enroll-copy p { color: rgba(255, 255, 255, 0.82); font-size: var(--fs-lead); margin: 0 0 20px; }
.enroll-copy .check-list { margin-bottom: 0; }
.enroll-copy .check-list i { color: var(--gold); }
.enroll-copy .check-list li { color: rgba(255, 255, 255, 0.88); }
.enroll-copy .check-list strong { color: #fff; }

.form-card {
  --default-color: var(--ink-soft);
  color: var(--ink-soft);
  background: var(--paper);
  border-radius: var(--r-lg);
  padding: clamp(20px, 3vw, 32px);
  box-shadow: var(--shadow-lg);
}
.form-card p { color: var(--ink-soft); }
.form-card h3 { font-size: 1.25rem; font-weight: 800; margin: 0 0 4px; }
.form-card .sub { margin: 0 0 20px; font-size: var(--fs-sm); }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label, .field .label { font-size: var(--fs-xs); font-weight: 600; color: var(--ink); }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border: 1.5px solid rgba(11, 27, 51, 0.18);
  border-radius: var(--r-sm);
  background: var(--paper);
  font: 400 1rem var(--font-body); /* 16px : évite le zoom iOS */
  color: var(--ink);
  transition: border-color 160ms ease-out, box-shadow 160ms ease-out;
}
.field textarea { min-height: 112px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #7a8699; }
@media (hover: hover) and (pointer: fine) {
  .field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(11, 27, 51, 0.32); }
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(47, 111, 237, 0.18);
}
.field input.is-valid { border-color: rgba(31, 170, 89, 0.6); }
.field input[aria-invalid="true"] { border-color: #c0392b; box-shadow: 0 0 0 4px rgba(192, 57, 43, 0.12); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 575px) { .field-row { grid-template-columns: 1fr; gap: 0; } }

.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.seg label {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1.5px solid rgba(11, 27, 51, 0.18);
  border-radius: var(--r-sm);
  font-weight: 600;
  font-size: var(--fs-sm);
  color: var(--ink);
  cursor: pointer;
  transition: border-color 160ms ease-out, background-color 160ms ease-out, color 160ms ease-out, transform 160ms var(--ease-out);
}
.seg label:active { transform: scale(0.97); }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg label:has(input:checked) { border-color: var(--navy); background: rgba(0, 43, 91, 0.07); color: var(--navy); }
.seg label:has(input:focus-visible) { outline: 2px solid var(--gold); outline-offset: 2px; }

.form-card .btn-wa { width: 100%; min-height: 50px; font-size: 0.9375rem; margin-top: 6px; }
.form-note { font-size: 0.75rem; text-align: center; margin: 12px 0 0; color: #5b687c; }
.form-card .form-note { color: #5b687c; }
.form-card .error-text { color: #c0392b; font-size: var(--fs-xs); min-height: 1.1em; margin: 0; }

/* ---------- Contact ---------- */
.contact .info-grid { display: grid; gap: 12px; }
@media (min-width: 576px) and (max-width: 991px) { .contact .info-grid { grid-template-columns: repeat(3, 1fr); } }
.info-card {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  align-items: start;
  padding: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  transition: border-color 200ms ease-out, box-shadow 200ms ease-out;
}
@media (min-width: 576px) and (max-width: 991px) { .info-card { grid-template-columns: 1fr; } }
.info-card .ico { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: rgba(0, 43, 91, 0.08); color: var(--navy); font-size: 1.125rem; transition: background-color 200ms ease-out, color 200ms ease-out; }
.info-card h3 { font-size: 0.9375rem; font-weight: 700; margin: 0 0 2px; }
.info-card p, .info-card a { margin: 0; font-size: var(--fs-sm); color: var(--ink-soft); overflow-wrap: anywhere; }
.info-card a { display: block; padding: 4px 0; }
@media (hover: hover) and (pointer: fine) {
  .info-card:hover { border-color: rgba(0, 43, 91, 0.2); box-shadow: var(--shadow-md); }
  .info-card:hover .ico { background: var(--navy); color: #fff; }
  .info-card a:hover { color: var(--navy); text-decoration: underline; }
}
.contact .form-card { box-shadow: var(--shadow-md); border: 1px solid var(--line); }

/* ---------- Pied de page ---------- */
.footer { background: var(--navy-deep); font-size: var(--fs-sm); }
.footer .footer-top { padding-top: 56px; padding-bottom: 16px; }
.footer .logo img, .footer .footer-about .logo img { max-height: 56px; width: auto; }
.footer .footer-about .logo { margin-bottom: 8px; }
.footer h4 { font-size: 0.9375rem; color: #fff; font-weight: 700; margin: 0 0 12px; }
.footer p, .footer a, .footer span { color: rgba(255, 255, 255, 0.72); }
.footer a { transition: color 160ms ease-out; }
.footer a:hover { color: var(--gold); }
.footer .footer-links ul { list-style: none; padding: 0; margin: 0; }
.footer .footer-links li { padding: 4px 0; display: block; line-height: 1.5; }
.footer .footer-links li i { display: none; }
.footer .footer-links a { display: inline-block; padding: 2px 0; line-height: 1.5; }
.footer .social-links a {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin-right: 10px;
  color: #fff;
  transition: background-color 160ms ease-out, color 160ms ease-out, border-color 160ms ease-out;
}
.footer .social-links a:hover { background: var(--gold); color: var(--navy-deep); border-color: var(--gold); }
.footer .copyright { border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 20px; margin-top: 24px; }
.footer .copyright p { margin: 0; font-size: var(--fs-xs); }
@media (max-width: 575px) {
  .footer .footer-top { padding-top: 44px; }
  .footer .footer-top .row { --bs-gutter-y: 2rem; }
  .footer .copyright { padding-bottom: 80px; } /* laisse la place au bouton WhatsApp */
}

/* ---------- Bouton WhatsApp flottant ---------- */
.wa-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 996;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 20px 0 16px;
  border-radius: 999px;
  background: var(--wa);
  color: #fff;
  font-weight: 700;
  font-size: var(--fs-sm);
  box-shadow: 0 10px 30px rgba(31, 170, 89, 0.42);
  transition: transform 160ms var(--ease-out), box-shadow 200ms ease-out;
}
.wa-float i { font-size: 1.375rem; line-height: 1; }
.wa-float:active { transform: scale(0.96); }
@media (hover: hover) and (pointer: fine) { .wa-float:hover { color: #fff; transform: translateY(-3px); } }
@media (max-width: 575px) {
  .wa-float { right: 16px; bottom: 16px; padding: 0; width: 52px; min-height: 52px; justify-content: center; }
  .wa-float span { display: none; }
}

.scroll-top { right: 20px; bottom: 84px; border-radius: 50%; background: var(--navy); width: 44px; height: 44px; }
.scroll-top:hover { background: var(--blue); }
@media (max-width: 575px) { .scroll-top { right: 20px; bottom: 80px; } }

/* ---------- Tarifs coworking ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; align-items: stretch; }
@media (max-width: 1199px) { .pricing-grid { grid-template-columns: repeat(2, 1fr); max-width: 760px; margin-inline: auto; } }
@media (max-width: 575px) { .pricing-grid { grid-template-columns: 1fr; gap: 24px; } }

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 220ms var(--ease-out), box-shadow 220ms ease-out;
}
.plan.featured { border: 2px solid var(--navy); box-shadow: var(--shadow-md); }
.plan .badge {
  position: absolute;
  top: -12px;
  left: 22px;
  background: var(--gold);
  color: var(--navy-deep);
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
}
.plan h3 { font-size: 1.0625rem; font-weight: 700; margin: 0 0 2px; }
.plan .tier { font-size: var(--fs-xs); font-weight: 600; color: var(--blue); margin: 0 0 16px; }
.plan .price { font-size: 2rem; font-weight: 800; color: var(--ink); letter-spacing: -0.03em; line-height: 1; margin: 0 0 20px; font-variant-numeric: tabular-nums; }
.plan .price small { font-size: var(--fs-sm); font-weight: 600; color: var(--ink-soft); letter-spacing: 0; margin-left: 4px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 8px; flex: 1; }
.plan li { display: grid; grid-template-columns: 20px 1fr; gap: 8px; font-size: var(--fs-sm); }
.plan li i { color: var(--wa); font-size: 1rem; line-height: 1.5; }
.plan li.na { color: #7a8699; }
.plan li.na i { color: #b0b8c6; }
.plan .btn-cta, .plan .btn-navy { width: 100%; }
@media (hover: hover) and (pointer: fine) { .plan:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); } }

.perk-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 991px) { .perk-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) { .perk-grid { gap: 12px; } }
.perk { padding: 20px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-sm); transition: transform 220ms var(--ease-out), box-shadow 220ms ease-out; }
.perk .ico { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: rgba(0, 43, 91, 0.08); color: var(--navy); font-size: 1.25rem; margin-bottom: 12px; transition: background-color 200ms ease-out, color 200ms ease-out; }
.perk h3 { font-size: 0.9375rem; font-weight: 700; margin: 0 0 4px; }
.perk p { font-size: var(--fs-xs); margin: 0; }
@media (hover: hover) and (pointer: fine) {
  .perk:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
  .perk:hover .ico { background: var(--navy); color: #fff; }
}
@media (max-width: 575px) {
  .perk { padding: 16px; }
  .perk .ico { width: 36px; height: 36px; font-size: 1.0625rem; margin-bottom: 10px; }
}

/* ---------- Apparition au défilement (AOS) ---------- */
[data-aos] { will-change: auto; }

/* ---------- Illustrations (clip-art) : jamais rognées ---------- */
.course .thumb.illu { background: #fff; }
.course .thumb.illu img { object-fit: contain; padding: 14px; }

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  [data-aos] { opacity: 1 !important; transform: none !important; transition: none !important; }
  .header-hidden .header { transform: none; }
}
