/* ════════════════════════════════════════════════════════════
   Teatch.io — CSS vanilla (conversion Next.js → HTML/CSS/JS)
   ════════════════════════════════════════════════════════════ */

/* ── 1. Reset ─────────────────────────────────────────────── */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; padding: 0; border: 0; }

html { scroll-behavior: smooth; }

img, svg { display: block; max-width: 100%; }

button { background: none; cursor: pointer; font: inherit; color: inherit; }

a { color: inherit; text-decoration: none; }

input, textarea { font: inherit; color: inherit; }

ul { list-style: none; }

/* ── 2. Design tokens (copie exacte de globals.css) ────────── */
:root {
  --background: #ffffff;
  --foreground: #1A1033;
  --card: #ffffff;
  --card-foreground: #1A1033;
  --popover: #ffffff;
  --popover-foreground: #1A1033;
  --primary: #7A5DB6;
  --primary-foreground: #ffffff;
  --secondary: #f8f7fa;
  --secondary-foreground: #534B63;
  --muted: #f5f4f7;
  --muted-foreground: #534B63;
  --accent: #DBBA61;
  --accent-foreground: #1A1033;
  --success: #22c55e;
  --success-foreground: #ffffff;
  --destructive: #ef4444;
  --destructive-foreground: #ffffff;
  --border: #e5e3e8;
  --input: #e5e3e8;
  --ring: #7A5DB6;
  --navy: #1A1033;
  --navy-light: #534B63;
  --radius: 0.75rem;
}

.dark {
  --background: #1A1033;
  --foreground: #f0ecf5;
  --card: #241845;
  --card-foreground: #f0ecf5;
  --popover: #241845;
  --popover-foreground: #f0ecf5;
  --primary: #9b7dd4;
  --primary-foreground: #ffffff;
  --secondary: #2a1f4a;
  --secondary-foreground: #d4cce0;
  --muted: #2a1f4a;
  --muted-foreground: #a899c2;
  --accent: #DBBA61;
  --accent-foreground: #1A1033;
  --success: #22c55e;
  --destructive: #ef4444;
  --border: #3a2d5c;
  --input: #3a2d5c;
  --ring: #9b7dd4;
}

/* ── 3. Base ──────────────────────────────────────────────── */
body {
  font-family: 'Inter', 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--background);
  color: var(--foreground);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  transition: background-color 500ms cubic-bezier(0.4, 0, 0.2, 1), color 300ms;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.page main { flex: 1; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--muted); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }

/* ── 4. Utilitaires layout ────────────────────────────────── */
.container { max-width: 80rem; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 640px) { .container { padding: 0 1.5rem; } }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.icon { width: 1rem; height: 1rem; flex-shrink: 0; }
.icon-sm { width: 0.875rem; height: 0.875rem; flex-shrink: 0; }
.icon-lg { width: 1.25rem; height: 1.25rem; flex-shrink: 0; }

/* ── 5. Navbar (top) ──────────────────────────────────────── */
.scroll-progress {
  position: fixed; top: 0; left: 0;
  height: 3px; background: var(--primary);
  z-index: 9999;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}

.navbar {
  position: relative;
  z-index: 100;
  width: 100%;
  background: transparent;
  border-bottom: 1px solid transparent;
}

.navbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 4.5rem; gap: 1.25rem;
}

.nav-logo {
  display: inline-flex; align-items: baseline; gap: 0;
  font-family: 'Plus Jakarta Sans','Inter',-apple-system,sans-serif;
  font-size: 1.65rem; font-weight: 800;
  color: var(--primary); letter-spacing: -0.045em;
  text-decoration: none; flex-shrink: 0;
  line-height: 1;
}
.nav-logo-img { height: 38px; width: auto; display: block; }

/* Logo CSS-only "Teatch.o" with gold accent under the small o */
.logo-period {
  color: var(--primary);
  margin-left: 0.02em;
  line-height: 1;
}
.logo-o {
  position: relative;
  font-size: 0.62em;
  font-weight: 800;
  color: var(--primary);
  margin-left: 0.04em;
  letter-spacing: -0.02em;
  line-height: 1;
}
.logo-o::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -0.18em;
  width: 0.7em;
  height: 0.18em;
  border-radius: 9999px;
  background: var(--accent);
  transform: translateX(-50%);
}

/* Backward-compat: kept in case markup still uses .nav-logo-dot */
.nav-logo-dot {
  display: inline-block; width: 8px; height: 8px;
  border-radius: 50%; background: var(--primary);
  margin-left: 2px; transform: translateY(2px);
}

.nav-links {
  display: flex; align-items: center; gap: 2.25rem;
  list-style: none; margin: 0; padding: 0;
}
.nav-links a {
  font-size: 0.95rem; font-weight: 600;
  color: var(--navy);
  position: relative; padding: 0.4rem 0;
  transition: color 200ms;
}
.nav-links a::after {
  content: ""; position: absolute;
  left: 50%; bottom: 0;
  width: 0; height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: width 250ms ease;
}
.nav-links a:hover { color: var(--primary); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  display: flex; align-items: center; gap: 0.75rem;
  flex-shrink: 0;
}
.nav-cta .btn-primary {
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.7rem 1.4rem;
  height: auto;
  border-radius: 9999px;
  border: none;
  box-shadow: 0 6px 18px -8px rgba(122,93,182,0.55);
  transition: transform 200ms, box-shadow 200ms, background 200ms;
}
.nav-cta .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -8px rgba(122,93,182,0.65);
  background: #6a4ea4;
  color: #fff;
}

/* Burger */
.burger {
  display: none;
  flex-direction: column; justify-content: center;
  gap: 5px; width: 32px; height: 32px;
  cursor: pointer; padding: 4px;
}
.burger span {
  display: block; width: 22px; height: 2px;
  background: var(--navy); border-radius: 2px;
  transition: transform 250ms, opacity 200ms;
}

@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .burger { display: flex; }
  .navbar-inner { height: 4rem; }
}

/* Mobile overlay & nav */
.mobile-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(26,16,51,0.45);
  backdrop-filter: blur(2px);
  z-index: 998;
  opacity: 0;
  transition: opacity 250ms;
}
.mobile-overlay.open {
  display: block; opacity: 1;
}

.mobile-nav {
  position: fixed; top: 0; right: 0;
  width: 82%; max-width: 340px; height: 100vh;
  background: #fff;
  z-index: 999;
  display: flex; flex-direction: column;
  gap: 0.5rem;
  padding: 5rem 1.75rem 2rem;
  transform: translateX(100%);
  transition: transform 320ms cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -10px 0 40px -10px rgba(26,16,51,0.2);
  border: none;
  border-top: none;
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav a {
  font-size: 1.05rem; font-weight: 600;
  color: var(--navy);
  padding: 0.85rem 0.25rem;
  border-bottom: 1px solid var(--border);
  transition: color 200ms, padding-left 200ms;
}
.mobile-nav a:hover {
  color: var(--primary);
  padding-left: 0.5rem;
}
.mobile-nav a.btn-primary {
  margin-top: 1.25rem;
  background: var(--primary);
  color: #fff;
  text-align: center;
  border: none;
  border-radius: 9999px;
  padding: 0.85rem 1rem;
}
.mobile-nav a.btn-primary:hover {
  background: #6a4ea4;
  color: #fff;
  padding-left: 1rem;
}

/* ── 6. Buttons ───────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.5rem; padding: 0 1rem; height: 2.25rem;
  font-size: 0.875rem; font-weight: 500;
  border-radius: calc(var(--radius) - 2px);
  transition: background-color 200ms, color 200ms, border-color 200ms, transform 200ms;
  white-space: nowrap;
}

.btn-outline {
  border: 1px solid var(--primary);
  color: var(--primary); background: transparent;
}
.btn-outline:hover { background: var(--primary); color: #fff; }

.btn-primary {
  background: var(--accent); color: var(--navy); font-weight: 600;
  padding: 0 1.5rem; height: 2.75rem;
}
.btn-primary:hover { background: #c9a850; }

.btn-dark {
  background: var(--navy); color: #fff; font-weight: 700;
  padding: 0.625rem 1.25rem; border-radius: 9999px; font-size: 0.8125rem;
}
.btn-dark:hover { background: var(--primary); }
.dark .btn-dark { background: var(--primary); }
.dark .btn-dark:hover { background: #9b7dd4; }

.btn-gold-pill {
  background: var(--accent); color: var(--navy); font-weight: 700;
  padding: 0.75rem 1.5rem; border-radius: 9999px;
  height: auto;
}
.btn-gold-pill:hover { filter: brightness(1.05); }

.btn-full { width: 100%; }

/* Shimmer overlay for hero/CTA buttons */
.shimmer-wrap { position: relative; display: inline-block; overflow: hidden; border-radius: 9999px; }
.shimmer-wrap.rect { border-radius: calc(var(--radius) - 2px); }
.shimmer-overlay {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.25) 50%, transparent 60%);
  animation: shimmer 6s cubic-bezier(0.25,0.1,0.25,1) infinite;
  will-change: transform;
}
@keyframes shimmer {
  0% { transform: translateX(-100%); }
  16%, 100% { transform: translateX(200%); }
}

/* Ripple */
.ripple-btn { position: relative; overflow: hidden; }
.ripple {
  position: absolute; border-radius: 9999px; background: rgba(255,255,255,0.3);
  transform: translate(-50%, -50%); pointer-events: none;
  animation: ripple-anim 500ms ease-out forwards;
}
@keyframes ripple-anim {
  from { width: 10px; height: 10px; opacity: 0.3; }
  to { width: 200px; height: 200px; opacity: 0; }
}

/* ── 7. (Theme toggle removed — light mode only) ──────────── */

/* ── 8. Hero ──────────────────────────────────────────────── */
.hero-section {
  position: relative; overflow: hidden; min-height: 420px;
}
.hero-bg {
  position: absolute; inset: 0;
  background-image: url('https://images.unsplash.com/photo-1552664730-d307ca884978?w=1600&h=900&fit=crop&q=80');
  background-size: cover; background-position: center;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(26,16,51,0.9), rgba(26,16,51,0.7), transparent);
}
.dark .hero-overlay {
  background: linear-gradient(to right, rgba(26,16,51,0.95), rgba(26,16,51,0.85), rgba(26,16,51,0.5));
}

.hero-inner {
  position: relative; max-width: 80rem; margin: 0 auto;
  padding: 3rem 1rem; min-height: 420px;
  display: flex; align-items: center;
}
@media (min-width: 640px) { .hero-inner { padding: 3rem 1.5rem; } }
@media (min-width: 768px) { .hero-inner { padding: 4rem 1.5rem; } }

.hero-content {
  display: flex; flex-direction: column; gap: 2.5rem; width: 100%;
}
@media (min-width: 1024px) {
  .hero-content { flex-direction: row; align-items: center; justify-content: space-between; }
}

.hero-text { max-width: 600px; }

.hero-badge {
  display: inline-flex; align-items: center;
  background: rgba(26,16,51,0.6); backdrop-filter: blur(4px);
  color: #fff; padding: 0.5rem 1rem;
  border-radius: 9999px; font-size: 0.875rem;
  margin-bottom: 1.25rem;
  animation: fade-up 0.6s 0.25s both cubic-bezier(0.4,0,0.2,1);
}
.hero-badge .gold-icon { color: var(--accent); margin-left: 0.5rem; }
.hero-badge svg { margin-right: 0.5rem; }
.hero-badge .gold-icon { margin-right: 0; }

.hero-title {
  font-size: 2.25rem; font-weight: 700; color: #fff;
  line-height: 1.1; margin-bottom: 1.25rem;
}
@media (min-width: 768px) { .hero-title { font-size: 54px; } }
.hero-title .part-1 {
  display: inline-block;
  animation: fade-left 0.6s 0.37s both cubic-bezier(0.4,0,0.2,1);
}
.hero-title .part-2 {
  position: relative; display: inline-block; color: var(--accent);
  animation: fade-right 0.7s 0.57s both cubic-bezier(0.4,0,0.2,1);
}
.hero-underline {
  position: absolute; bottom: -0.5rem; left: 0; width: 100%;
}
.hero-underline path {
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: draw 1.2s 1.5s forwards cubic-bezier(0.4,0,0.2,1);
}
@keyframes draw { to { stroke-dashoffset: 0; } }

.hero-subtitle {
  font-size: 1.125rem; color: rgba(255,255,255,0.8);
  line-height: 1.7; margin-bottom: 2rem; max-width: 32rem;
  animation: fade-up 0.8s 0.6s both cubic-bezier(0.4,0,0.2,1);
}
.hero-cta-wrap {
  animation: fade-scale 0.6s 0.75s both cubic-bezier(0.4,0,0.2,1);
}

@keyframes fade-up { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fade-left { from { opacity: 0; transform: translateX(-30px); } to { opacity: 1; transform: translateX(0); } }
@keyframes fade-right { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: translateX(0); } }
@keyframes fade-scale { from { opacity: 0; transform: scale(0.92); } to { opacity: 1; transform: scale(1); } }

.hero-wave {
  position: absolute; bottom: -1px; left: 0; right: 0;
}
.hero-wave svg { width: 100%; height: auto; display: block; }
.hero-wave path { fill: #fff; transition: fill 500ms; }
.dark .hero-wave path { fill: var(--navy); }

/* ── 9. Orbital Stats ─────────────────────────────────────── */
.orbital-container {
  position: relative;
  width: 380px; height: 380px;
  display: none;
  align-self: center;
}
@media (min-width: 768px) { .orbital-container { display: block; } }

.orbital-ring {
  position: absolute; pointer-events: none;
  width: 280px; height: 280px;
  top: 50px; left: 50px;
  border-radius: 50%;
  border: 1px dashed rgba(122,93,182,0.25);
}

.orbital-card {
  position: absolute; width: 156px; height: 76px;
  top: 0; left: 0;
  transform: translate(-999px, -999px);
}

.orbital-card-inner {
  position: relative; width: 100%; height: 100%;
  border-radius: 1rem;
  background: rgba(122,93,182,0.25);
  padding: 1.5px;
}
@property --border-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}
@keyframes rotate-border { to { --border-angle: 360deg; } }

.orbital-card-body {
  width: 100%; height: 100%;
  border-radius: 14px;
  display: flex; align-items: center; gap: 0.75rem;
  padding: 10px 14px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(4px);
  overflow: hidden;
  transition: box-shadow 600ms ease;
}

.orbital-icon {
  width: 2rem; height: 2rem; border-radius: 0.5rem;
  background: rgba(122,93,182,0.1);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; color: var(--primary);
}
.orbital-icon svg { width: 1.25rem; height: 1.25rem; }

.orbital-num {
  font-size: 22px; font-weight: 800; line-height: 1.1; color: var(--navy);
}
.orbital-label {
  font-size: 9px; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--navy-light); font-weight: 500;
}

/* Mobile 2×2 stats grid */
.orbital-mobile {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; width: 100%;
}
@media (min-width: 768px) { .orbital-mobile { display: none; } }

.stat-card-mobile {
  border-radius: 1rem; display: flex; align-items: center;
  gap: 0.75rem; padding: 10px 14px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(122,93,182,0.2);
  opacity: 1;
}

/* ── 10. Sections (formations + blog) ─────────────────────── */
#formations { background: transparent; }

.filter-bar {
  position: sticky; top: 3.5rem; z-index: 40;
  transition: background 300ms, border-color 300ms, box-shadow 300ms;
  background: transparent;
  will-change: transform;
}
.filter-bar.sticky {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(4px);
  border-bottom: 1px solid #f0f0f0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.dark .filter-bar.sticky {
  background: rgba(26,16,51,0.95);
  border-bottom-color: rgba(255,255,255,0.1);
}

.filter-row {
  display: flex; align-items: center; justify-content: center; height: 3.5rem;
}

.filter-categories {
  display: flex; align-items: center; gap: 0.375rem;
  overflow-x: auto; min-width: 0; flex-shrink: 1;
  scrollbar-width: none;
}
.filter-categories::-webkit-scrollbar { display: none; }

.pill-category {
  position: relative;
  display: inline-flex; align-items: center; gap: 0.25rem;
  padding: 0.5rem 1rem; border-radius: 9999px;
  font-size: 0.875rem; font-weight: 500; white-space: nowrap;
  border: 1px solid #e5e7eb; background: transparent;
  color: #4b5563; flex-shrink: 0;
  transition: border-color 200ms, color 200ms, transform 150ms, background-color 200ms;
}
.dark .pill-category { border-color: rgba(255,255,255,0.1); color: rgba(255,255,255,0.7); }
.pill-category:hover { border-color: var(--primary); color: var(--primary); }
.dark .pill-category:hover { border-color: #c4b5fd; color: #c4b5fd; }
.pill-category:active { transform: scale(0.97); }

.pill-category.active {
  background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 600;
}
.pill-category.active:hover { color: #fff; }

.pill-count {
  font-size: 12px; border-radius: 9999px; padding: 1px 7px; margin-left: 0.375rem;
  color: #6b7280;
}
.dark .pill-count { color: rgba(255,255,255,0.4); }
.pill-category.active .pill-count { background: rgba(255,255,255,0.2); color: #fff; }

.filter-separator {
  width: 1px; height: 1.25rem; background: #e5e7eb;
  margin: 0 1rem; align-self: center; flex-shrink: 0;
}
.dark .filter-separator { background: rgba(255,255,255,0.1); }

.filter-format-wrap {
  display: flex; align-items: center; gap: 0.5rem; margin-left: auto; flex-shrink: 0;
}
.filter-format-label {
  font-size: 0.8125rem; color: #9ca3af; margin-right: 0.25rem;
  display: none;
}
@media (min-width: 640px) { .filter-format-label { display: inline; } }
.dark .filter-format-label { color: rgba(255,255,255,0.4); }

.format-toggle {
  display: inline-flex; align-items: center;
  background: #f5f5f5; border-radius: 9999px; padding: 0.25rem;
}
.dark .format-toggle { background: rgba(255,255,255,0.1); }

.format-btn {
  position: relative; padding: 0.375rem 0.75rem; border-radius: 9999px;
  font-size: 0.8125rem; color: #6b7280; white-space: nowrap;
  transition: color 150ms;
}
.format-btn:hover { color: #1f2937; }
.dark .format-btn { color: rgba(255,255,255,0.5); }
.dark .format-btn:hover { color: rgba(255,255,255,0.8); }

.format-btn.active {
  background: #fff; color: var(--navy); font-weight: 600;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.dark .format-btn.active { background: rgba(255,255,255,0.2); color: #fff; }

/* Grid container */
.grid-section {
  background: var(--secondary);
  padding: 1.25rem 0;
  transition: background-color 500ms;
}
.dark .grid-section { background: #150e2b; }
@media (min-width: 768px) { .grid-section { padding: 1.5rem 0; } }

.results-row {
  display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.5rem;
}
.results-count {
  font-size: 1rem; font-weight: 600; color: var(--navy);
  display: inline-flex; align-items: center; gap: 0.25rem;
}
.dark .results-count { color: #fff; }
.results-sep { color: #534B63; }
.dark .results-sep { color: rgba(255,255,255,0.4); }
.results-certified {
  display: inline-flex; align-items: center; color: #22c55e;
  font-size: 0.875rem; font-weight: 500;
}
.results-dot {
  width: 0.5rem; height: 0.5rem; border-radius: 9999px;
  background: #22c55e; margin-right: 0.5rem;
}

.grid-cards {
  display: grid; grid-template-columns: 1fr; gap: 1rem;
}
@media (min-width: 640px) { .grid-cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .grid-cards { grid-template-columns: 1fr 1fr 1fr; } }

.empty-state {
  text-align: center; padding: 4rem 0;
  display: flex; flex-direction: column; align-items: center; gap: 1rem;
}
.empty-state .empty-icon { font-size: 3rem; }
.empty-state p { color: #9ca3af; }
.dark .empty-state p { color: rgba(255,255,255,0.4); }

.reset-filters-btn {
  border: 1px solid var(--primary); color: var(--primary);
  border-radius: 9999px; padding: 0.5rem 1.5rem;
  font-size: 0.875rem; font-weight: 500;
  transition: all 200ms; margin-top: 0.5rem;
}
.reset-filters-btn:hover { background: var(--primary); color: #fff; }

/* ── 11. Formation card ───────────────────────────────────── */
.card-enter {
  animation: card-in 0.5s both cubic-bezier(0.22,1,0.36,1);
}
@keyframes card-in {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.formation-card {
  position: relative;
  background: #fff; border: 1px solid #e5e7eb;
  border-radius: 1rem; padding: 1rem;
  display: flex; flex-direction: column; height: 100%;
  transition: transform 350ms cubic-bezier(0.22,1,0.36,1), background-color 500ms, border-color 500ms;
  transform-style: preserve-3d;
  perspective: 800px;
}
.dark .formation-card { background: #241845; border-color: rgba(255,255,255,0.1); }
.formation-card:hover { transform: translateY(-6px); }
.formation-card::before,
.formation-card::after {
  content: ''; position: absolute; inset: 0;
  border-radius: 1rem; pointer-events: none;
  transition: opacity 200ms;
}
.formation-card::before { box-shadow: 0 4px 12px rgba(0,0,0,0.06); opacity: 1; }
.formation-card::after { box-shadow: 0 20px 40px -12px rgba(0,0,0,0.15); opacity: 0; }
.formation-card:hover::before { opacity: 0; }
.formation-card:hover::after { opacity: 1; }

.formation-card-glare {
  position: absolute; inset: 0; border-radius: 1rem;
  pointer-events: none; z-index: 2; opacity: 0;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255,255,255,0.5) 0%, transparent 60%);
  transition: opacity 300ms;
}
.formation-card:hover .formation-card-glare { opacity: 0.15; }

.formation-card > * { position: relative; z-index: 1; }

.formation-card-header {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.format-badge {
  display: inline-flex; align-items: center; white-space: nowrap;
  padding: 0.2rem 0.6rem; border-radius: 9999px;
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.03em; flex-shrink: 0;
  margin-top: 0.15rem;
}
.format-badge--presentiel {
  background: rgba(122,93,182,0.12); color: var(--primary);
  border: 1px solid rgba(122,93,182,0.25);
}
.dark .format-badge--presentiel {
  background: rgba(155,125,212,0.15); color: #c4b5fd;
  border-color: rgba(155,125,212,0.3);
}
.format-badge--enligne {
  background: rgba(34,197,94,0.1); color: #16a34a;
  border: 1px solid rgba(34,197,94,0.25);
}
.dark .format-badge--enligne {
  background: rgba(34,197,94,0.12); color: #4ade80;
  border-color: rgba(34,197,94,0.3);
}

.formation-title {
  font-size: 1.125rem; font-weight: 700; color: var(--navy);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.dark .formation-title { color: #fff; }

.formation-image-wrap {
  position: relative; aspect-ratio: 16/9; overflow: hidden;
  border-radius: 0.75rem; background: #f3f4f6;
  margin-bottom: 1rem; will-change: transform;
}
.dark .formation-image-wrap { background: rgba(255,255,255,0.05); }
.formation-image-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 400ms ease-out;
}
.formation-card:hover .formation-image-wrap img { transform: scale(1.04); }

.formation-meta-row {
  display: flex; gap: 1rem; margin-bottom: 1rem;
}
.formation-desc {
  flex: 0.6;
}
.formation-desc p {
  font-size: 0.8125rem; color: #6b7280; line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.dark .formation-desc p { color: rgba(255,255,255,0.5); }

.formation-rating {
  flex: 0.4; text-align: right;
}
.formation-stars {
  display: inline-flex; gap: 0.125rem; justify-content: flex-end;
}
.formation-stars .star { width: 1rem; height: 1rem; }
.formation-stars .star.filled { fill: var(--accent); color: var(--accent); }
.formation-stars .star.half { fill: rgba(219,186,97,0.5); color: var(--accent); }
.formation-stars .star.empty { fill: #e5e7eb; color: #e5e7eb; }

.formation-rating-num {
  font-size: 0.9375rem; font-weight: 700; color: var(--navy); margin-top: 0.25rem;
}
.dark .formation-rating-num { color: #fff; }
.formation-review-count {
  font-size: 0.75rem; color: #9ca3af;
}
.dark .formation-review-count { color: rgba(255,255,255,0.4); }

.formation-duration {
  border-top: 1px solid #f0f0f0; border-bottom: 1px solid #f0f0f0;
  padding: 0.75rem 0; text-align: center; margin-bottom: 1rem;
  font-size: 0.9375rem; font-weight: 500; color: #4b5563;
}
.dark .formation-duration { border-color: rgba(255,255,255,0.1); color: rgba(255,255,255,0.6); }

.formation-footer {
  display: flex; align-items: center; justify-content: space-between; margin-top: auto;
}
.formation-footer--centered {
  justify-content: center;
}
.formation-footer--centered .btn {
  width: 100%; justify-content: center;
}

/* ── 12. CTA section ──────────────────────────────────────── */
.cta-section {
  padding: 4rem 0; background: #fff;
  transition: background-color 500ms;
}
.dark .cta-section { background: var(--navy); }

.cta-inner { max-width: 780px; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 640px) { .cta-inner { padding: 0 1.5rem; } }

.cta-card {
  position: relative;
  background: #fff; border: 1px solid #e5e7eb;
  border-radius: 1rem; border-top-left-radius: 0; border-bottom-left-radius: 0;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(122,93,182,0.08);
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.5s, transform 0.5s cubic-bezier(0.16,1,0.3,1);
}
.dark .cta-card { background: #241845; border-color: rgba(255,255,255,0.1); box-shadow: 0 4px 24px rgba(0,0,0,0.3); }
.cta-card.in-view { opacity: 1; transform: translateY(0); }

.cta-left-border {
  position: absolute; left: 0; top: 0; width: 4px; height: 100%;
  background: var(--primary); transform-origin: top; transform: scaleY(0);
  transition: transform 0.5s 0.2s cubic-bezier(0.16,1,0.3,1);
}
.cta-card.in-view .cta-left-border { transform: scaleY(1); }

.cta-body { padding: 2rem 1.5rem; margin-left: 0.25rem; }
@media (min-width: 640px) { .cta-body { padding: 2rem 2.5rem; } }

.cta-badge {
  display: inline-flex; align-items: center; gap: 0.375rem;
  background: rgba(122,93,182,0.1); color: var(--primary);
  border-radius: 9999px; padding: 0.375rem 0.75rem;
  font-size: 0.75rem; font-weight: 500; margin-bottom: 1rem;
}
.cta-title {
  font-size: 26px; font-weight: 700; color: var(--navy); margin-bottom: 0.5rem;
}
.dark .cta-title { color: #fff; }
.cta-subtitle {
  font-size: 0.9375rem; color: #6b7280; margin-bottom: 1.25rem;
}
.dark .cta-subtitle { color: rgba(255,255,255,0.6); }

.cta-pills {
  display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1.5rem;
}
.cta-pill {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: #fff; border: 1px solid #e5e7eb;
  border-radius: 9999px; padding: 0.5rem 1rem;
  font-size: 0.8125rem; color: #4b5563;
  opacity: 0; transform: translateY(10px);
  animation: pill-in 0.4s both ease-out;
}
.dark .cta-pill { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.1); color: rgba(255,255,255,0.7); }
.cta-pill svg { color: var(--navy-light); }
.dark .cta-pill svg { color: rgba(255,255,255,0.5); }

.cta-card.in-view .cta-pill:nth-child(1) { animation-delay: 0.45s; }
.cta-card.in-view .cta-pill:nth-child(2) { animation-delay: 0.55s; }
.cta-card.in-view .cta-pill:nth-child(3) { animation-delay: 0.65s; }
@keyframes pill-in { to { opacity: 1; transform: translateY(0); } }

.cta-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem;
}
.cta-note {
  font-size: 0.8125rem; color: #9ca3af;
}
.dark .cta-note { color: rgba(255,255,255,0.4); }

/* ── 13. Footer ───────────────────────────────────────────── */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.85);
  padding: 4rem 0 1.75rem;
  margin-top: 4rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
  padding-bottom: 2.25rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
@media (min-width: 768px) {
  .footer-top {
    grid-template-columns: 1.2fr 1.4fr 1fr;
    gap: 3rem;
  }
}

.footer-logo {
  font-family: 'Plus Jakarta Sans','Inter',-apple-system,sans-serif;
  font-size: 1.85rem; font-weight: 800;
  color: #fff; letter-spacing: -0.045em;
  display: inline-flex; align-items: baseline;
  line-height: 1;
}
.footer-logo .logo-period { color: #fff; }
.footer-logo .logo-o      { color: #fff; }
.footer-logo .logo-o::after { background: var(--accent); }
/* legacy */
.footer-logo .nav-logo-dot { background: var(--accent); }

.footer-tagline {
  margin-top: 0.75rem;
  font-size: 0.875rem; color: rgba(255,255,255,0.5);
  max-width: 22rem; line-height: 1.6;
}

.footer-nav {
  display: flex; flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
}
@media (min-width: 768px) {
  .footer-nav { justify-content: center; }
}
.footer-nav a {
  font-size: 0.95rem; font-weight: 500;
  color: rgba(255,255,255,0.75);
  position: relative; padding: 0.25rem 0;
  transition: color 200ms;
}
.footer-nav a::after {
  content: ""; position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 250ms ease;
}
.footer-nav a:hover { color: var(--accent); }
.footer-nav a:hover::after { width: 100%; }

.footer-socials {
  display: flex; gap: 0.6rem;
  justify-content: flex-start;
}
@media (min-width: 768px) {
  .footer-socials { justify-content: flex-end; }
}
.footer-social {
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.85);
  cursor: pointer;
  transition: background 200ms, color 200ms, transform 200ms, border-color 200ms;
}
.footer-social:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--navy);
  transform: translateY(-2px);
}
.footer-social svg {
  width: 16px; height: 16px;
}

.footer-qualiopi {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.8125rem; font-weight: 500;
  color: rgba(255,255,255,0.7);
  background: rgba(219,186,97,0.1);
  border: 1px solid rgba(219,186,97,0.25);
  padding: 0.5rem 0.85rem;
  border-radius: 9999px;
  align-self: flex-start;
}
@media (min-width: 768px) {
  .footer-qualiopi { align-self: flex-end; }
}

.footer-bottom {
  display: flex; flex-direction: column;
  gap: 0.75rem;
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.45);
}
@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}
.footer-copy { color: rgba(255,255,255,0.5); }
.footer-legal {
  display: flex; gap: 1.25rem;
  justify-content: center;
}
.footer-legal a {
  color: rgba(255,255,255,0.5);
  transition: color 200ms;
}
.footer-legal a:hover { color: var(--accent); }

/* Scroll-to-top */
.scroll-top {
  position: fixed; right: 1.5rem; bottom: 1.5rem;
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--primary); color: #fff;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 8px 24px -8px rgba(122,93,182,0.55);
  opacity: 0; pointer-events: none;
  transform: translateY(10px);
  transition: opacity 250ms, transform 250ms, background 200ms;
  z-index: 95;
}
.scroll-top.visible {
  opacity: 1; pointer-events: auto;
  transform: translateY(0);
}
.scroll-top:hover { background: #6a4ea4; }
.scroll-top svg { width: 18px; height: 18px; }

/* ── 14. Blog hero ────────────────────────────────────────── */
.blog-hero {
  background: #fff; padding: 2.5rem 0 2rem;
  transition: background 500ms;
}
.dark .blog-hero { background: var(--navy); }

.blog-hero-inner {
  display: flex; flex-direction: column; gap: 2.5rem;
}
@media (min-width: 1024px) {
  .blog-hero-inner { flex-direction: row; align-items: center; }
}
.blog-hero-text { max-width: 520px; }
@media (min-width: 1024px) { .blog-hero-text { width: 50%; } .blog-hero-featured { width: 50%; } }

.blog-hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(122,93,182,0.1); color: var(--primary);
  border-radius: 9999px; padding: 0.5rem 1rem;
  font-size: 0.875rem; font-weight: 500; margin-bottom: 1.25rem;
  animation: fade-up 0.6s 0.2s both cubic-bezier(0.4,0,0.2,1);
}

.blog-hero-title {
  font-size: 48px; font-weight: 800; color: var(--navy);
  line-height: 1.1; margin-bottom: 1.25rem;
}
.dark .blog-hero-title { color: #fff; }
.blog-hero-title .part-1 {
  display: inline-block;
  animation: fade-left 0.6s 0.3s both cubic-bezier(0.4,0,0.2,1);
}
.blog-hero-title .part-2 {
  position: relative; display: inline-block; color: var(--accent);
  animation: fade-right 0.6s 0.45s both cubic-bezier(0.4,0,0.2,1);
}
.blog-hero-title .hero-underline path {
  animation: draw 1.2s 1.1s forwards cubic-bezier(0.4,0,0.2,1);
}

.blog-hero-subtitle {
  font-size: 1rem; color: #6b7280; line-height: 1.7;
  margin-bottom: 2rem; max-width: 32rem;
  animation: fade-up 0.6s 0.55s both cubic-bezier(0.4,0,0.2,1);
}
.dark .blog-hero-subtitle { color: rgba(255,255,255,0.6); }

.search-wrap {
  position: relative; max-width: 420px;
  animation: fade-up 0.6s 0.7s both cubic-bezier(0.4,0,0.2,1);
}
.search-icon {
  position: absolute; left: 1rem; top: 50%; transform: translateY(-50%);
  color: #9ca3af; pointer-events: none;
}
.search-input {
  width: 100%; border-radius: 9999px;
  border: 1px solid #e5e7eb; padding: 0.75rem 1rem 0.75rem 3rem;
  font-size: 0.875rem; color: var(--navy); background: #fff;
  transition: all 200ms;
}
.dark .search-input { background: #241845; border-color: rgba(255,255,255,0.1); color: #fff; }
.search-input::placeholder { color: #9ca3af; }
.search-input:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(122,93,182,0.2);
}

/* Featured article in blog hero */
.blog-hero-featured { animation: fade-left-strong 0.6s 0.4s both cubic-bezier(0.16,1,0.3,1); }
@keyframes fade-left-strong { from { opacity: 0; transform: translateX(-30px); } to { opacity: 1; transform: translateX(0); } }

.featured-hero-card {
  position: relative; border-radius: 1rem; overflow: hidden; cursor: pointer;
}
.featured-hero-card .img-wrap { aspect-ratio: 16/9; overflow: hidden; }
.featured-hero-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 400ms ease-out;
}
.featured-hero-card:hover img { transform: scale(1.04); }

.featured-hero-gradient {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0.2), transparent);
}
.featured-hero-new-badge {
  position: absolute; top: 1rem; left: 1rem;
  background: var(--accent); color: var(--navy);
  font-size: 11px; font-weight: 700; padding: 0.25rem 0.75rem;
  border-radius: 9999px; text-transform: uppercase; letter-spacing: 0.05em;
}
.featured-hero-cat-pill {
  position: absolute; top: 1rem; right: 1rem;
  background: var(--primary); color: #fff;
  font-size: 11px; font-weight: 500; padding: 0.25rem 0.75rem;
  border-radius: 9999px;
}
.featured-hero-title {
  position: absolute; bottom: 0; left: 0; right: 0; padding: 1.25rem;
  color: #fff; font-size: 1.25rem; font-weight: 700;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* ── 15. Blog article card ────────────────────────────────── */
.blog-article-card {
  position: relative; background: #fff; border: 1px solid #e5e7eb;
  border-radius: 1rem; overflow: hidden;
  display: flex; flex-direction: column; height: 100%;
  cursor: pointer;
  transition: transform 300ms cubic-bezier(0.22,1,0.36,1), background-color 500ms, border-color 500ms;
}
.dark .blog-article-card { background: #241845; border-color: rgba(255,255,255,0.1); }
.blog-article-card:hover { transform: translateY(-5px); }
.blog-article-card::before, .blog-article-card::after {
  content: ''; position: absolute; inset: 0; border-radius: 1rem;
  pointer-events: none; transition: opacity 200ms;
}
.blog-article-card::before { box-shadow: 0 2px 8px rgba(0,0,0,0.04); opacity: 1; }
.blog-article-card::after { box-shadow: 0 16px 32px -8px rgba(0,0,0,0.12); opacity: 0; }
.blog-article-card:hover::before { opacity: 0; }
.blog-article-card:hover::after { opacity: 1; }

.blog-article-img-wrap {
  position: relative; aspect-ratio: 16/9; overflow: hidden; will-change: transform;
}
.blog-article-img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 400ms ease-out;
}
.blog-article-card:hover .blog-article-img-wrap img { transform: scale(1.04); }

.blog-article-cat {
  position: absolute; top: 0.75rem; left: 0.75rem; z-index: 1;
  background: var(--primary); color: #fff;
  font-size: 11px; font-weight: 500; padding: 0.25rem 0.75rem; border-radius: 9999px;
}

.blog-article-body {
  padding: 1.25rem; display: flex; flex-direction: column; flex: 1; position: relative; z-index: 1;
}
.blog-article-tag {
  font-size: 11px; font-weight: 600; color: var(--primary);
  text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.375rem;
}
.blog-article-title {
  font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 0.5rem;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.dark .blog-article-title { color: #fff; }
.blog-article-desc {
  font-size: 0.8125rem; color: #6b7280; line-height: 1.55; margin-bottom: 0.75rem;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.dark .blog-article-desc { color: rgba(255,255,255,0.5); }

.blog-article-sep {
  border-top: 1px solid #f0f0f0; margin: 0.75rem 0;
}
.dark .blog-article-sep { border-color: rgba(255,255,255,0.1); }

.blog-article-meta {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.8125rem; color: #9ca3af; margin-bottom: 0.75rem;
}
.blog-article-meta span { display: inline-flex; align-items: center; gap: 0.375rem; }

.blog-read-link {
  display: inline-flex; align-items: center; gap: 0.375rem;
  font-size: 0.8125rem; font-weight: 700; color: var(--primary);
  margin-top: auto;
  transition: transform 200ms;
}
.blog-read-link:hover { text-decoration: underline; }
.blog-article-card:hover .blog-read-link { transform: translateX(4px); }

/* ── 16. Featured article (blog section) ─────────────────── */
.blog-featured {
  position: relative; background: #fff; border: 1px solid #e5e7eb;
  border-radius: 1rem; overflow: hidden; cursor: pointer;
}
.dark .blog-featured { background: #241845; border-color: rgba(255,255,255,0.1); }
.blog-featured::before, .blog-featured::after {
  content: ''; position: absolute; inset: 0; border-radius: 1rem;
  pointer-events: none; transition: opacity 200ms;
}
.blog-featured::before { box-shadow: 0 2px 8px rgba(0,0,0,0.04); opacity: 1; }
.blog-featured::after { box-shadow: 0 16px 32px -8px rgba(0,0,0,0.12); opacity: 0; }
.blog-featured:hover::before { opacity: 0; }
.blog-featured:hover::after { opacity: 1; }

.blog-featured-inner {
  display: flex; flex-direction: column; position: relative; z-index: 1;
}
@media (min-width: 768px) { .blog-featured-inner { flex-direction: row; } }

.blog-featured-img {
  position: relative; width: 100%;
}
@media (min-width: 768px) { .blog-featured-img { width: 60%; } }
.blog-featured-img .img-crop { aspect-ratio: 16/9; overflow: hidden; }
@media (min-width: 768px) { .blog-featured-img .img-crop { aspect-ratio: auto; height: 100%; } }
.blog-featured-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 400ms ease-out;
}
.blog-featured:hover .blog-featured-img img { transform: scale(1.04); }
.blog-featured-cat {
  position: absolute; top: 1rem; left: 1rem;
  background: var(--primary); color: #fff;
  font-size: 11px; font-weight: 500; padding: 0.25rem 0.75rem; border-radius: 9999px;
}
.blog-featured-new {
  position: absolute; top: 1rem; left: calc(1rem + 80px + 8px);
  background: var(--accent); color: var(--navy);
  font-size: 11px; font-weight: 700; padding: 0.25rem 0.75rem; border-radius: 9999px;
  text-transform: uppercase; letter-spacing: 0.05em;
}

.blog-featured-body {
  padding: 1.5rem; display: flex; flex-direction: column; justify-content: center;
}
@media (min-width: 768px) { .blog-featured-body { width: 40%; padding: 2rem; } }

.blog-featured-tag {
  font-size: 11px; font-weight: 600; color: var(--primary);
  text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.5rem;
}
.blog-featured-title {
  font-size: 26px; font-weight: 700; color: var(--navy); line-height: 1.2;
  margin-bottom: 0.75rem;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.dark .blog-featured-title { color: #fff; }
.blog-featured-desc {
  font-size: 0.9375rem; color: #6b7280; line-height: 1.55;
  margin-bottom: 1.25rem;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.dark .blog-featured-desc { color: rgba(255,255,255,0.6); }

.blog-featured-meta {
  display: flex; align-items: center; gap: 1rem;
  font-size: 0.8125rem; color: #9ca3af; margin-bottom: 1.5rem;
}
.blog-featured-meta span { display: inline-flex; align-items: center; gap: 0.375rem; }

.blog-featured-btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--navy); color: #fff;
  border-radius: 9999px; padding: 0.625rem 1.5rem;
  font-size: 0.875rem; font-weight: 700;
  transition: background 200ms, transform 200ms;
  width: fit-content;
}
.blog-featured-btn:hover { background: var(--primary); transform: translateX(4px); }

/* ── 17. Load more ────────────────────────────────────────── */
.load-more-wrap { display: flex; justify-content: center; margin-top: 2.5rem; }
.load-more-btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  border: 1px solid var(--primary); color: var(--primary);
  border-radius: 9999px; padding: 0.75rem 2rem;
  font-size: 0.875rem; font-weight: 500;
  transition: all 200ms;
}
.load-more-btn:hover { background: var(--primary); color: #fff; }
.load-more-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── 18. Newsletter ───────────────────────────────────────── */
.newsletter-section { padding: 4rem 0; background: #fff; transition: background 500ms; }
.dark .newsletter-section { background: var(--navy); }

.newsletter-inner { max-width: 780px; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 640px) { .newsletter-inner { padding: 0 1.5rem; } }

.newsletter-card {
  position: relative;
  background: #fff; border: 1px solid #e5e7eb;
  border-radius: 1rem; border-top-left-radius: 0; border-bottom-left-radius: 0;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(219,186,97,0.08);
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.5s, transform 0.5s cubic-bezier(0.16,1,0.3,1);
}
.dark .newsletter-card { background: #241845; border-color: rgba(255,255,255,0.1); }
.newsletter-card.in-view { opacity: 1; transform: translateY(0); }

.newsletter-left-border {
  position: absolute; left: 0; top: 0; width: 4px; height: 100%;
  background: var(--accent); transform-origin: top; transform: scaleY(0);
  transition: transform 0.5s 0.2s cubic-bezier(0.16,1,0.3,1);
}
.newsletter-card.in-view .newsletter-left-border { transform: scaleY(1); }

.newsletter-body { padding: 2rem 1.5rem; margin-left: 0.25rem; }
@media (min-width: 640px) { .newsletter-body { padding: 2rem 2.5rem; } }

.newsletter-grid {
  display: flex; flex-direction: column; gap: 2rem;
}
@media (min-width: 768px) {
  .newsletter-grid { flex-direction: row; align-items: center; }
  .newsletter-grid > div { width: 50%; }
}

.newsletter-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(219,186,97,0.15); color: var(--accent);
  border-radius: 9999px; padding: 0.375rem 0.75rem;
  font-size: 0.75rem; font-weight: 500; margin-bottom: 1rem;
}
.newsletter-title {
  font-size: 22px; font-weight: 700; color: var(--navy); margin-bottom: 0.5rem;
}
.dark .newsletter-title { color: #fff; }
.newsletter-subtitle {
  font-size: 0.875rem; color: #6b7280;
}
.dark .newsletter-subtitle { color: rgba(255,255,255,0.6); }

.newsletter-form {
  position: relative; margin-bottom: 0.75rem;
}
.newsletter-form input {
  width: 100%; border-radius: 9999px;
  border: 1px solid #e5e7eb; padding: 0.75rem 8rem 0.75rem 1rem;
  font-size: 0.875rem; color: var(--navy); background: #fff;
  transition: all 200ms;
}
.dark .newsletter-form input { background: #241845; border-color: rgba(255,255,255,0.1); color: #fff; }
.newsletter-form input::placeholder { color: #9ca3af; }
.newsletter-form input:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(122,93,182,0.2);
}
.newsletter-submit {
  position: absolute; right: 0.375rem; top: 50%; transform: translateY(-50%);
  background: var(--navy); color: #fff;
  border-radius: 9999px; padding: 0.5rem 1.25rem;
  font-size: 0.8125rem; font-weight: 500;
  transition: background 200ms;
}
.newsletter-submit:hover { background: var(--primary); }

.newsletter-features {
  font-size: 0.75rem; color: #9ca3af;
  display: flex; gap: 0.75rem; flex-wrap: wrap;
}
.dark .newsletter-features { color: rgba(255,255,255,0.4); }

/* ── 19. Helpers ──────────────────────────────────────────── */
.hide-mobile { display: none; }
@media (min-width: 768px) { .hide-mobile { display: inline-flex; } }

.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s, transform 0.6s cubic-bezier(0.22,1,0.36,1); }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ── 20. Reduced motion ───────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .orbital-card { animation: none !important; }
}

/* ════════════════════════════════════════════════════════════
   ANIMATIONS SUBTILES & PRO — Hero / Cartes / Scroll reveals
   ════════════════════════════════════════════════════════════ */

/* ── A. Keyframes ──────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeLeft {
  from { opacity: 0; transform: translateX(-22px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeRight {
  from { opacity: 0; transform: translateX(22px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes drawUnderline {
  from { stroke-dashoffset: 1; }
  to   { stroke-dashoffset: 0; }
}
@keyframes floatSoft {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-4px); }
}
@keyframes shimmerSweep {
  0%   { transform: translateX(-130%) skewX(-20deg); }
  100% { transform: translateX(230%)  skewX(-20deg); }
}
@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ── B. Page load : fondu global discret ──────────────────── */
body { animation: fadeIn 400ms ease-out both; }

/* ── C. Reveals au scroll (utilitaire [data-anim]) ─────────── */
[data-anim] {
  opacity: 0;
  will-change: opacity, transform;
}
[data-anim="fade-up"]    { transform: translateY(24px); }
[data-anim="fade-left"]  { transform: translateX(-24px); }
[data-anim="fade-right"] { transform: translateX(24px); }
[data-anim="zoom"]       { transform: scale(0.96); }

[data-anim].reveal-in {
  opacity: 1;
  transform: none;
  transition:
    opacity 700ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* Délais en cascade */
[data-anim-delay="100"].reveal-in { transition-delay: 100ms; }
[data-anim-delay="150"].reveal-in { transition-delay: 150ms; }
[data-anim-delay="200"].reveal-in { transition-delay: 200ms; }
[data-anim-delay="250"].reveal-in { transition-delay: 250ms; }
[data-anim-delay="300"].reveal-in { transition-delay: 300ms; }
[data-anim-delay="400"].reveal-in { transition-delay: 400ms; }
[data-anim-delay="500"].reveal-in { transition-delay: 500ms; }

/* ── D. Hero : entrée séquencée + finitions ───────────────── */

/* Badge : fade-up + léger float continu après entrée */
.hero-badge {
  animation:
    fadeUp 700ms cubic-bezier(0.22, 1, 0.36, 1) 100ms both,
    floatSoft 5s ease-in-out 2s infinite;
}

/* Icônes du badge : la "gold-icon" (l'éclair) tourne très lentement */
.hero-badge .gold-icon {
  animation: spinSlow 14s linear infinite;
  transform-origin: center;
}

/* Titre : deux parties qui glissent depuis chaque côté */
.hero-title .part-1 {
  display: inline-block;
  animation: fadeLeft 800ms cubic-bezier(0.22, 1, 0.36, 1) 200ms both;
}
.hero-title .part-2 {
  display: inline-block;
  animation: fadeRight 800ms cubic-bezier(0.22, 1, 0.36, 1) 350ms both;
}

/* Trait gold qui se dessine sous le titre */
.hero-underline path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: drawUnderline 1.1s ease-out 1000ms forwards;
}

/* Subtitle + CTA en cascade */
.hero-subtitle  { animation: fadeUp 800ms cubic-bezier(0.22, 1, 0.36, 1) 500ms both; }
.hero-cta-wrap  { animation: fadeUp 800ms cubic-bezier(0.22, 1, 0.36, 1) 700ms both; }

/* CTA principal : élévation propre au hover (pas de pulsation permanente) */
.hero-cta-wrap .btn-primary {
  position: relative;
  overflow: hidden;
  transition:
    transform 250ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 250ms ease;
}
.hero-cta-wrap .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -10px rgba(122, 93, 182, 0.5);
}
.hero-cta-wrap .btn-primary:active { transform: translateY(0); }

/* Shimmer subtil qui balaye le CTA au hover (1 seule fois) */
.hero-cta-wrap .btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg,
    transparent 30%,
    rgba(255, 255, 255, 0.35) 50%,
    transparent 70%);
  transform: translateX(-130%) skewX(-20deg);
  pointer-events: none;
}
.hero-cta-wrap .btn-primary:hover::before {
  animation: shimmerSweep 850ms ease-out;
}

/* La flèche du CTA glisse vers la droite au hover */
.hero-cta-wrap .btn-primary .icon {
  transition: transform 250ms cubic-bezier(0.22, 1, 0.36, 1);
}
.hero-cta-wrap .btn-primary:hover .icon {
  transform: translateX(3px);
}

/* ── E. Blog hero : même principe, plus discret ───────────── */
.blog-hero-badge {
  animation: fadeUp 700ms cubic-bezier(0.22, 1, 0.36, 1) 100ms both;
}
.blog-hero-title .part-1 {
  display: inline-block;
  animation: fadeLeft 800ms cubic-bezier(0.22, 1, 0.36, 1) 200ms both;
}
.blog-hero-title .part-2 {
  display: inline-block;
  animation: fadeRight 800ms cubic-bezier(0.22, 1, 0.36, 1) 350ms both;
}
.blog-hero-subtitle { animation: fadeUp 800ms cubic-bezier(0.22, 1, 0.36, 1) 500ms both; }
.search-wrap        { animation: fadeUp 800ms cubic-bezier(0.22, 1, 0.36, 1) 650ms both; }

/* Champ de recherche : focus ring soigné */
.search-input {
  transition: border-color 200ms ease, box-shadow 250ms ease;
}
.search-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(122, 93, 182, 0.12);
}

/* ── F. Cartes (formations & articles) : élévation propre ── */

/* Toutes les cartes du grid */
.grid-cards > * {
  position: relative;
  overflow: hidden;
  transition:
    transform 350ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 350ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 250ms ease;
  will-change: transform;
}

/* Hover : carte qui monte avec ombre douce */
.grid-cards > *:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 36px -18px rgba(26, 16, 51, 0.22),
              0 6px 12px -8px  rgba(26, 16, 51, 0.12);
}

/* Halo subtil de couleur primaire au hover (très léger) */
.grid-cards > *::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%),
              rgba(122, 93, 182, 0.08), transparent 45%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms ease;
  z-index: 0;
}
.grid-cards > *:hover::after { opacity: 1; }

/* S'assurer que le contenu des cartes reste au-dessus du halo */
.grid-cards > * > * { position: relative; z-index: 1; }

/* Image de carte : zoom doux au hover */
.grid-cards > * img,
.grid-cards > * .card-image,
.grid-cards > * .card-thumb {
  transition: transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
}
.grid-cards > *:hover img,
.grid-cards > *:hover .card-image,
.grid-cards > *:hover .card-thumb {
  transform: scale(1.04);
}

/* Bouton à l'intérieur d'une carte : flèche qui glisse */
.grid-cards > * .btn .icon,
.grid-cards > * a .icon {
  transition: transform 250ms cubic-bezier(0.22, 1, 0.36, 1);
}
.grid-cards > *:hover .btn .icon,
.grid-cards > *:hover a .icon {
  transform: translateX(3px);
}

/* ── G. CTA card (section "programme sur-mesure") ─────────── */
.cta-card {
  transition: transform 400ms cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 400ms ease;
}
.cta-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 45px -22px rgba(26, 16, 51, 0.2);
}

/* Pills CTA : petit lift individuel */
.cta-pill {
  transition: transform 250ms cubic-bezier(0.22, 1, 0.36, 1),
              background 250ms ease, color 250ms ease;
}
.cta-pill:hover { transform: translateY(-2px); }

/* ── H. Boutons globaux : feedback au clic ────────────────── */
.btn {
  transition:
    transform 200ms cubic-bezier(0.34, 1.4, 0.64, 1),
    box-shadow 250ms ease,
    background-color 200ms ease,
    color 200ms ease,
    border-color 200ms ease;
}
.btn:active { transform: scale(0.97); }

/* ── I. Navbar : finitions discrètes ───────────────────────── */

/* Logo : léger lift au hover */
.nav-logo {
  transition: transform 250ms cubic-bezier(0.34, 1.4, 0.64, 1);
}
.nav-logo:hover { transform: translateY(-1px); }

/* Burger : animation en croix quand actif */
.burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── J. Footer : interactions discrètes ────────────────────── */
.footer-social { transition: transform 250ms cubic-bezier(0.34, 1.4, 0.64, 1),
                            background 250ms, color 250ms, border-color 250ms; }
.footer-social:hover { transform: translateY(-3px); }

/* ── K. Respect strict de prefers-reduced-motion ──────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  [data-anim] { opacity: 1 !important; transform: none !important; }
}

/* ── Lien actif dans la navbar ──────────────────────────── */
.nav-links a.nav-active { color: var(--primary); }
.nav-links a.nav-active::after { width: 100%; }
.mobile-nav a.nav-active { color: var(--primary); }

/* ════════════════════════════════════════════════════════════
   COHÉRENCE AVEC LA PAGE D'ACCUEIL
   ════════════════════════════════════════════════════════════ */

/* Plus Jakarta Sans sur les titres (aligné avec index.html) */
body,
.hero-title,
.hero-subtitle,
.cta-title,
.cta-subtitle,
.formation-title,
.filter-bar,
.results-row {
  font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Bouton CTA navbar cohérent avec la home */
.nav-cta .btn-primary {
  background: var(--primary);
  color: #fff;
}

/* ════════════════════════════════════════════════════════════
   SECTION "SUR MESURE" — DESIGN PREMIUM DARK
   Cible : <section class="cta-section" id="entreprises">
   ════════════════════════════════════════════════════════════ */
#entreprises.cta-section {
  background: linear-gradient(135deg, #0a061e 0%, #1A1033 45%, #1f1540 100%);
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

/* Halo décoratif en arrière-plan */
#entreprises.cta-section::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(122,93,182,0.18) 0%, transparent 65%);
  pointer-events: none;
}

#entreprises .cta-inner {
  max-width: 900px;
}

/* Carte : fond transparent, pas de bordure — layout plein fond */
#entreprises .cta-card {
  background: transparent;
  border: none;
  border-radius: 0;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  box-shadow: none;
  opacity: 1;
  transform: none;
}
#entreprises .cta-card.in-view {
  opacity: 1;
  transform: none;
}

/* Barre gauche : en or plutôt que violet */
#entreprises .cta-left-border {
  background: var(--accent);
  width: 3px;
}

/* Corps */
#entreprises .cta-body {
  padding: 0 2rem;
  margin-left: 0;
}
@media (min-width: 640px) {
  #entreprises .cta-body { padding: 0 2.5rem; }
}

/* Badge */
#entreprises .cta-badge {
  background: rgba(219,186,97,0.15);
  color: var(--accent);
  border: 1px solid rgba(219,186,97,0.3);
  font-size: 0.8125rem;
}

/* Titre grand + blanc */
#entreprises .cta-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-bottom: 1rem;
}

/* Sous-titre discret */
#entreprises .cta-subtitle {
  font-size: 1.0625rem;
  color: rgba(255,255,255,0.62);
  margin-bottom: 2rem;
  max-width: 38rem;
}

/* Pills sur fond sombre */
#entreprises .cta-pill {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
#entreprises .cta-pill svg {
  color: var(--accent);
}

/* Note */
#entreprises .cta-note {
  color: rgba(255,255,255,0.4);
}

/* Bouton en or, taille plus généreuse */
#entreprises .btn-gold-pill {
  font-size: 1rem;
  padding: 0.875rem 2rem;
  box-shadow: 0 8px 28px -8px rgba(219,186,97,0.45);
  transition: filter 200ms, transform 200ms, box-shadow 200ms;
}
#entreprises .btn-gold-pill:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
  box-shadow: 0 14px 36px -10px rgba(219,186,97,0.55);
}

/* ════════════════════════════════════════════════════════════
   HERO — Catégories : 3 tuiles premium individuelles
   ════════════════════════════════════════════════════════════ */
.hero-categories {
  width: 100%;
  margin-top: 1rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}
/* Mobile : 1 colonne pleine largeur */
@media (max-width: 639px) {
  .hero-categories {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }
}
@media (min-width: 1024px) {
  .hero-categories {
    display: flex; flex-direction: column;
    width: 440px;
    margin-top: 0;
    flex-shrink: 0;
    gap: 0.85rem;
  }
}
@media (max-width: 1023px) {
  .hero-cat-tile {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0.75rem 0.85rem;
    gap: 0.65rem;
    height: auto;
    min-height: 0;
  }
  .hero-cat-tile-cta { display: none; }
  .hero-cat-tile-desc { display: none; }
  .hero-cat-tile-icon { width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0; }
  .hero-cat-tile-icon svg { width: 17px; height: 17px; }
  .hero-cat-tile-body { min-width: 0; }
  .hero-cat-tile-title { font-size: 0.82rem; white-space: normal; line-height: 1.25; overflow: visible; text-overflow: unset; }
}
/* Mobile : tuiles plus confortables en 1 colonne */
@media (max-width: 639px) {
  .hero-cat-tile {
    padding: 0.85rem 1rem;
    gap: 0.75rem;
  }
  .hero-cat-tile-icon { width: 40px; height: 40px; }
  .hero-cat-tile-icon svg { width: 19px; height: 19px; }
  .hero-cat-tile-title { font-size: 0.95rem; }
  .hero-cat-tile-desc {
    display: block;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.55);
  }
}

/* Per-category accents */
.hero-cat-tile[data-cat-color="management"]              { --cat-a: #f3d77f; --cat-b: #c69b3a; --cat-glow: rgba(243,215,127,0.35); }
.hero-cat-tile[data-cat-color="performance-commerciale"] { --cat-a: #b8a4ff; --cat-b: #7A5DB6; --cat-glow: rgba(184,164,255,0.35); }
.hero-cat-tile[data-cat-color="innovation"]              { --cat-a: #a8edca; --cat-b: #2ecc8f; --cat-glow: rgba(168,237,202,0.32); }
.hero-cat-tile[data-cat-color="rse"]                     { --cat-a: #ffd9a0; --cat-b: #e08b3a; --cat-glow: rgba(255,217,160,0.32); }

.hero-cat-tile {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.1rem;
  padding: 1.05rem 1.1rem 1.05rem 1.25rem;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.10) 0%, rgba(255,255,255,0.04) 100%);
  border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  text-decoration: none; color: #fff;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 18px 40px -22px rgba(0,0,0,0.55);
  transition: transform 380ms cubic-bezier(.2,.8,.2,1),
              border-color 280ms ease,
              box-shadow 380ms ease;
}

/* Coloured gradient layer that fades in on hover */
.hero-cat-tile-bg {
  position: absolute; inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(120% 100% at 0% 0%, color-mix(in srgb, var(--cat-a) 22%, transparent) 0%, transparent 60%),
    linear-gradient(135deg, color-mix(in srgb, var(--cat-b) 18%, transparent), transparent 70%);
  opacity: 0;
  transition: opacity 380ms ease;
  z-index: -1;
}

/* Top corner luminescence — always visible, subtle */
.hero-cat-tile::before {
  content: '';
  position: absolute; top: -40%; right: -20%;
  width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, var(--cat-glow) 0%, transparent 60%);
  opacity: 0.55;
  pointer-events: none;
  z-index: -1;
  transition: opacity 380ms ease, transform 480ms ease;
}

.hero-cat-tile:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--cat-a) 45%, rgba(255,255,255,0.14));
  box-shadow:
    0 26px 60px -22px rgba(0,0,0,0.65),
    0 0 0 1px color-mix(in srgb, var(--cat-a) 30%, transparent) inset;
}
.hero-cat-tile:hover .hero-cat-tile-bg { opacity: 1; }
.hero-cat-tile:hover::before {
  opacity: 0.85;
  transform: scale(1.15);
}

/* Icône — pastille avec gradient coloré */
.hero-cat-tile-icon {
  width: 52px; height: 52px; flex-shrink: 0;
  border-radius: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--cat-a) 0%, var(--cat-b) 100%);
  color: #1A1033;
  box-shadow:
    0 6px 16px -6px var(--cat-glow),
    0 1px 0 rgba(255,255,255,0.4) inset;
  transition: transform 380ms cubic-bezier(.2,.8,.2,1);
}
.hero-cat-tile-icon svg { width: 24px; height: 24px; stroke-width: 2; }
.hero-cat-tile:hover .hero-cat-tile-icon {
  transform: scale(1.06) rotate(-3deg);
}

/* Body */
.hero-cat-tile-body {
  display: flex; flex-direction: column; gap: 3px;
  min-width: 0;
}
.hero-cat-tile-title {
  font-family: 'Plus Jakarta Sans','Inter',sans-serif;
  font-size: 1.125rem; font-weight: 800;
  color: #fff;
  letter-spacing: -0.015em;
  line-height: 1.15;
}
.hero-cat-tile-desc {
  font-size: 0.825rem;
  color: rgba(255,255,255,0.62);
  line-height: 1.3;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* CTA "Découvrir →" — pill discret qui s'illumine au hover */
.hero-cat-tile-cta {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.45rem 0.7rem 0.45rem 0.85rem;
  border-radius: 9999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.85);
  font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.01em;
  transition: background 280ms ease, color 280ms ease, border-color 280ms ease, transform 280ms ease;
}
.hero-cat-tile-cta-label {
  display: none;
}
@media (min-width: 1100px) {
  .hero-cat-tile-cta-label { display: inline; }
}
.hero-cat-tile-cta svg {
  width: 14px; height: 14px;
  transition: transform 280ms ease;
}
.hero-cat-tile:hover .hero-cat-tile-cta {
  background: var(--cat-a);
  color: #1A1033;
  border-color: transparent;
}
.hero-cat-tile:hover .hero-cat-tile-cta svg {
  transform: translateX(3px);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hero-cat-tile,
  .hero-cat-tile:hover,
  .hero-cat-tile-icon,
  .hero-cat-tile-cta,
  .hero-cat-tile-cta svg,
  .hero-cat-tile::before { transition: none; transform: none; }
}
