/* =========================================
   SIT eLearning Solutions - Modern Design
   ========================================= */

/* ---- CSS Variables ---- */
:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #818cf8;
  --secondary: #0ea5e9;
  --secondary-dark: #0284c7;
  --accent: #8b5cf6;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;

  --bg-dark: #0a0e1a;
  --bg-card: #0f1629;
  --bg-card-hover: #151d35;
  --bg-surface: #111827;
  --bg-light: #f8fafc;

  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-dark: #0f172a;

  --border: rgba(255,255,255,0.07);
  --border-hover: rgba(99,102,241,0.4);

  --gradient-primary: linear-gradient(135deg, #6366f1 0%, #0ea5e9 100%);
  --gradient-bg: linear-gradient(135deg, #0a0e1a 0%, #0f1629 50%, #0a0e1a 100%);

  --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.4);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.5);
  --shadow-glow: 0 0 30px rgba(99,102,241,0.2);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --font-body: 'Inter', sans-serif;
  --font-display: 'Space Grotesk', sans-serif;

  --nav-height: 72px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Light Mode Theme ---- */
[data-theme="light"] {
  --bg-dark: #f0f4f8;
  --bg-card: #ffffff;
  --bg-card-hover: #f8fafc;
  --bg-surface: #eaeff6;

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-indicateur: #c0cee1;
  --text-muted: #94a3b8;

  --border: rgba(15,23,42,0.09);
  --border-hover: rgba(99,102,241,0.45);

  --gradient-bg: linear-gradient(135deg, #eef2ff 0%, #e0f2fe 50%, #eef2ff 100%);

  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.09);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.12);
  --shadow-glow: 0 0 30px rgba(99,102,241,0.15);

  --ghost-bg: rgba(15,23,42,0.05);
  --ghost-bg-hover: rgba(15,23,42,0.09);
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
select, input, textarea { font-family: inherit; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
  position: relative;
}

.mt-2 { margin-top: 2rem; }
.mt-4 { margin-top: 3rem; }
.text-center { text-align: center; }

/* ---- Gradient Text ---- */
.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 15px;
  transition: var(--transition);
  cursor: pointer;
  white-space: nowrap;
}

.btn i[data-lucide] { width: 18px; height: 18px; }

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 4px 20px rgba(99,102,241,0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(99,102,241,0.5);
}

.btn-ghost {
  background: rgba(255,255,255,0.07);
  color: var(--text-primary);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--primary-light);
  border: 1.5px solid var(--primary);
}
.btn-outline:hover {
  background: rgba(99,102,241,0.1);
  transform: translateY(-2px);
}

.btn-full { width: 100%; justify-content: center; }

/* ---- Section Headers ---- */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(99,102,241,0.12);
  border: 1px solid rgba(99,102,241,0.25);
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-light);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

.section-text {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 16px;
}

/* =========================================
   NAVBAR
   ========================================= */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-height);
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(10,14,26,0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo img {
  filter: brightness(0) invert(1);
  transition: var(--transition);
}

.nav-logo img:hover { opacity: 0.85; }

.logo-text {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
}

.logo-accent {
  color: var(--primary-light);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: 8px;
  transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
  background: rgba(255,255,255,0.05);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 9px 22px;
  background: var(--gradient-primary);
  color: white;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  margin-left: 8px;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(99,102,241,0.3);
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(99,102,241,0.45);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 32px;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* =========================================
   HERO
   ========================================= */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--nav-height);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--gradient-bg);
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
  animation: orbFloat 8s ease-in-out infinite;
}

.orb-1 {
  width: 600px; height: 600px;
  background: var(--primary);
  top: -200px; left: -150px;
  animation-delay: 0s;
}

.orb-2 {
  width: 400px; height: 400px;
  background: var(--secondary);
  top: 100px; right: -100px;
  animation-delay: 3s;
}

.orb-3 {
  width: 300px; height: 300px;
  background: var(--accent);
  bottom: -50px; left: 40%;
  animation-delay: 6s;
}

@keyframes orbFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-30px) scale(1.05); }
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(99,102,241,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99,102,241,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.07;
  mix-blend-mode: luminosity;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
  padding: 80px 24px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 18px;
  background: rgba(99,102,241,0.1);
  border: 1px solid rgba(99,102,241,0.3);
  border-radius: 50px;
  font-size: 13px;
  font-weight: 500;
  color: var(--primary-light);
  margin-bottom: 24px;
}

.badge-dot {
  width: 8px; height: 8px;
  background: var(--success);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--success);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(0.9); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 62px);
  font-weight: 800;
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.hero-desc {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 52px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
}

.hero-stat {
  display: flex;
  flex-direction: column;
}

.hero-stat span:first-child {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* Hero Visual */
.hero-visual { position: relative; height: 480px; }

.hero-card-stack { position: relative; width: 100%; height: 100%; }

.visual-card {
  position: absolute;
  background: rgba(15,22,41,0.85);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-lg);
  padding: 24px;
}

.card-main {
  width: 340px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.card-header-v {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.card-dots { display: flex; gap: 6px; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.red { background: #ef4444; }
.dot.yellow { background: #f59e0b; }
.dot.green { background: #10b981; }

.card-title-v {
  font-size: 13px;
  color: var(--text-muted);
  margin-left: auto;
}

.progress-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 13px;
  color: var(--text-indicateur);
}

.progress-item > span:first-child { flex: 1; min-width: 0; }
.progress-item > span:last-child { color: var(--primary-light); font-weight: 600; min-width: 32px; text-align: right; }

.progress-bar {
  flex: 1;
  height: 6px;
  background: rgba(255,255,255,0.06);
  border-radius: 3px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: 3px;
  animation: fillBar 2s ease-out;
}

@keyframes fillBar {
  from { width: 0; }
}

.card-footer-v {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.learner-avatars {
  display: flex;
}

.learner-avatars img {
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 2px solid var(--bg-card);
  margin-left: -6px;
  background: #334155;
}

.learner-avatars img:first-child { margin-left: 0; }

.learners-count {
  font-size: 12px;
  color: var(--text-muted);
}

.card-float {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  width: auto;
  min-width: 170px;
}

.card-score {
  top: 15%;
  right: -20px;
  animation: floatCard 4s ease-in-out infinite;
}

.card-cert {
  bottom: 20%;
  left: -20px;
  animation: floatCard 4s ease-in-out infinite;
  animation-delay: 2s;
}

@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.card-icon-v {
  width: 28px; height: 28px;
  color: var(--warning);
  flex-shrink: 0;
}

.card-icon-green { color: var(--success); }

.score-val {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}

.score-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 3px;
}

/* Scroll indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 12px;
  z-index: 1;
}

.scroll-mouse {
  width: 22px; height: 36px;
  border: 2px solid var(--text-muted);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}

.scroll-wheel {
  width: 3px; height: 8px;
  background: var(--text-muted);
  border-radius: 2px;
  animation: scrollWheel 1.5s ease-in-out infinite;
}

@keyframes scrollWheel {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(12px); opacity: 0; }
}

/* =========================================
   TRUSTED BY
   ========================================= */
.trusted {
  padding: 32px 0;
  background: rgba(255,255,255,0.02);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.trusted-label {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}

.trusted-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 32px;
  opacity: 0.5;
}

.trust-logo { display: flex; align-items: center; justify-content: center; }
.trust-logo img { height: 32px; width: auto; filter: brightness(0) invert(1); }
.trust-text {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.05em;
}

/* ---- Références grid ---- */
.refs-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 12px;
  align-items: center;
}

.refs-cta {
  margin-top: 32px;
  display: flex;
  justify-content: center;
}

.ref-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  height: 72px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.06);
  transition: background 0.25s ease;
}

.ref-logo img {
  max-height: 42px;
  width: 100%;
  object-fit: contain;
  filter: grayscale(0%) opacity(1);
  mix-blend-mode: multiply;
  transition: filter 0.3s ease, transform 0.3s ease;
}

.ref-logo:hover {
  background: rgba(255,255,255,0.12);
}

.ref-logo:hover img {
  filter: grayscale(0%) opacity(1);
  mix-blend-mode: multiply;
  transform: scale(1.1);
}

.ref-logo-lg img {
  max-height: 56px;
}

/* Mode sombre : inverser le blend pour logos à fond blanc */
[data-theme="dark"] .ref-logo img,
[data-theme="dark"] .ref-logo:hover img {
  mix-blend-mode: screen;
}

@media (max-width: 1100px) {
  .refs-grid { grid-template-columns: repeat(8, 1fr); }
}
@media (max-width: 768px) {
  .refs-grid { grid-template-columns: repeat(5, 1fr); gap: 8px; }
}
@media (max-width: 480px) {
  .refs-grid { grid-template-columns: repeat(4, 1fr); }
}

/* =========================================
   À PROPOS
   ========================================= */
.apropos-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}

.apropos-visual { position: relative; }

.apropos-img-wrap {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: visible;
}

.apropos-img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}

.apropos-badge-float {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(10px);
}

.apropos-badge-float i[data-lucide] {
  width: 28px; height: 28px;
  color: var(--warning);
}

.apropos-badge-float strong {
  display: block;
  font-size: 14px;
  color: var(--text-primary);
}

.apropos-badge-float span {
  font-size: 12px;
  color: var(--text-muted);
}

.apropos-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 36px;
}

.metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
}

.metric-card.accent {
  background: linear-gradient(135deg, rgba(99,102,241,0.15), rgba(14,165,233,0.1));
  border-color: rgba(99,102,241,0.25);
}

/* ---- Histoire / Timeline infographique ---- */
.hist-timeline-wrap {
  overflow-x: auto;
}

.hist-timeline {
  display: flex;
  align-items: stretch;
  min-width: 900px;
  position: relative;
  padding: 8px 0;
}

/* Ligne horizontale centrale */
.hist-timeline::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, #e53935, #1565c0, #e53935, #1565c0, #e53935, #1565c0, #e53935);
  transform: translateY(-50%);
  border-radius: 2px;
  z-index: 0;
}

.hist-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
  gap: 10px;
}

/* Éléments vers le haut : carte en bas, bulle + année en haut */
.hist-item.hist-top {
  justify-content: flex-start;
  padding-top: 0;
}

/* Éléments vers le bas : carte en haut, bulle + année en bas */
.hist-item.hist-bottom {
  justify-content: flex-end;
  padding-bottom: 0;
}

/* Bulles rondes */
.hist-bubble {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  border: 4px solid #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,0.18);
  flex-shrink: 0;
  z-index: 2;
}

.hist-bubble-red  { background: #e53935; }
.hist-bubble-blue { background: #1565c0; }

.hist-icon { line-height: 1; }

/* Années */
.hist-year {
  font-size: 0.85rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 20px;
  color: #fff;
  white-space: nowrap;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.hist-year-red  { background: #e53935; }
.hist-year-blue { background: #1565c0; }

/* Cartes de texte */
.hist-card {
  background: #fff;
  border: 1.5px solid #e0e7ff;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.78rem;
  line-height: 1.45;
  text-align: center;
  color: #1e293b;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  max-width: 140px;
}

.hist-card strong {
  display: block;
  font-size: 0.82rem;
  color: #1565c0;
  margin-bottom: 4px;
}

.hist-card p {
  margin: 0;
  color: #475569;
}

.hist-card em { color: #e53935; font-style: normal; font-weight: 600; }

/* En mode sombre : adapter les cartes */
[data-theme="dark"] .hist-card {
  background: var(--bg-card);
  border-color: var(--border);
  color: var(--text-primary);
}
[data-theme="dark"] .hist-card p { color: var(--text-secondary); }
[data-theme="dark"] .hist-timeline::before { opacity: 0.7; }
[data-theme="dark"] .hist-bubble { border-color: var(--bg-card); }

.metric-num {
  display: block;
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.metric-plus {
  font-size: 24px;
}

.metric-label {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 6px;
}

.apropos-content { }

.apropos-features {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 28px;
}

.apropos-feat {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.feat-icon {
  width: 44px; height: 44px;
  background: rgba(99,102,241,0.1);
  border: 1px solid rgba(99,102,241,0.2);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feat-icon i[data-lucide] {
  width: 20px; height: 20px;
  color: var(--primary-light);
}

.apropos-feat strong {
  display: block;
  font-size: 15px;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.apropos-feat p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* =========================================
   À PROPOS — éléments supplémentaires
   ========================================= */

/* Intro centrée */
.apropos-intro {
  text-align: center;
  margin-bottom: 64px;
}

.apropos-intro-text {
  font-size: 19px;
  color: var(--text-secondary);
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.75;
}

/* Titre de l'histoire */
.apropos-story-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
}

/* Citation fondatrice */
.apropos-quote {
  position: relative;
  background: linear-gradient(135deg, rgba(99,102,241,0.08), rgba(14,165,233,0.05));
  border: 1px solid rgba(99,102,241,0.25);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 24px 24px 20px 28px;
  margin: 28px 0;
}

.apropos-quote i[data-lucide] {
  width: 28px; height: 28px;
  color: var(--primary-light);
  opacity: 0.5;
  margin-bottom: 10px;
  display: block;
}

.apropos-quote p {
  font-size: 16px;
  color: var(--text-primary);
  line-height: 1.75;
  font-style: italic;
  margin-bottom: 10px;
}

.apropos-quote cite {
  font-size: 13px;
  color: var(--text-muted);
  font-style: normal;
  font-weight: 500;
}

/* ---- Mission & Valeurs ---- */
.apropos-mission {
  margin-top: 80px;
  padding-top: 60px;
  border-top: 1px solid var(--border);
}

.mission-header {
  text-align: center;
  margin-bottom: 48px;
}

.mission-header h3 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.mission-header p {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
}

.mission-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.mission-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: var(--transition);
}

.mission-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.mission-icon {
  width: 48px; height: 48px;
  background: var(--gradient-primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.mission-icon i[data-lucide] { width: 22px; height: 22px; color: white; }

.mission-card h4 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.mission-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ---- Timeline ---- */
.apropos-timeline {
  margin-top: 80px;
  padding-top: 60px;
  border-top: 1px solid var(--border);
}

.timeline-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 48px;
}

.timeline-track {
  display: flex;
  align-items: flex-start;
  gap: 0;
  position: relative;
  overflow-x: auto;
  padding-bottom: 8px;
}

.timeline-track::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  opacity: 0.25;
  z-index: 0;
}

.tl-item {
  flex: 1;
  min-width: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 1;
}

.tl-year {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-light);
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}

.tl-dot {
  width: 14px; height: 14px;
  background: var(--bg-card);
  border: 3px solid var(--primary);
  border-radius: 50%;
  margin-bottom: 16px;
  transition: var(--transition);
  flex-shrink: 0;
}

.tl-dot-active {
  background: var(--primary);
  box-shadow: 0 0 0 6px rgba(99,102,241,0.15);
}

.tl-content {
  padding: 0 12px;
}

.tl-content strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.tl-content p {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Responsive */
@media (max-width: 1000px) {
  .mission-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .mission-grid { grid-template-columns: 1fr; }
  .timeline-track { flex-direction: column; gap: 0; }
  .timeline-track::before { display: none; }
  .tl-item {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    gap: 16px;
    padding: 0 0 24px 0;
    min-width: auto;
  }
  .tl-dot { margin: 4px 0 0 0; flex-shrink: 0; }
  .tl-year { min-width: 42px; }
  .apropos-intro-text { font-size: 16px; }
}

/* =========================================
   SERVICES
   ========================================= */
.services {
  background: var(--bg-dark);
  overflow: hidden;
}

.services-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 800px 600px at 50% 100%, rgba(99,102,241,0.05) 0%, transparent 70%);
}

.services-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.tab-btn {
  padding: 10px 24px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  transition: var(--transition);
  cursor: pointer;
}

.tab-btn:hover { color: var(--text-primary); background: rgba(255,255,255,0.08); }

.tab-btn.active {
  background: var(--gradient-primary);
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(99,102,241,0.3);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  transition: var(--transition);
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: var(--transition);
}

.service-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.service-card:hover::before { opacity: 1; }

.service-card.featured {
  border-color: rgba(99,102,241,0.3);
  background: linear-gradient(135deg, rgba(99,102,241,0.08), rgba(14,165,233,0.05));
}

.service-card.featured::before { opacity: 1; }

.featured-badge {
  position: absolute;
  top: 16px; right: 16px;
  padding: 4px 12px;
  background: var(--gradient-primary);
  border-radius: 50px;
  font-size: 11px;
  font-weight: 600;
  color: white;
  letter-spacing: 0.05em;
}

.service-icon {
  width: 52px; height: 52px;
  background: rgba(99,102,241,0.1);
  border: 1px solid rgba(99,102,241,0.2);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.service-icon i[data-lucide] {
  width: 24px; height: 24px;
  color: var(--primary-light);
}

.service-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  font-family: var(--font-display);
}

.service-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
}

.service-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.service-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-secondary);
}

.service-list li i[data-lucide] {
  width: 14px; height: 14px;
  color: var(--success);
  flex-shrink: 0;
}

/* =========================================
   STATS
   ========================================= */
.stats-section {
  background: linear-gradient(135deg, rgba(99,102,241,0.08) 0%, rgba(14,165,233,0.06) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 80px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.stat-card {
  text-align: center;
  padding: 36px 20px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: var(--transition);
}

.stat-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  background: rgba(99,102,241,0.05);
}

.stat-icon {
  width: 56px; height: 56px;
  background: var(--gradient-primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.stat-icon i[data-lucide] { width: 24px; height: 24px; color: white; }

.stat-number {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 14px;
  color: var(--text-muted);
}

/* =========================================
   RÉALISATIONS
   ========================================= */
.realisations-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: auto auto;
  gap: 24px;
}

.real-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}

.real-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.real-card-large {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.real-img-wrap {
  position: relative;
  overflow: hidden;
}

.real-card-large .real-img-wrap { }

.real-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}

.real-card:not(.real-card-large) .real-img-wrap { height: 200px; }
.real-card:not(.real-card-large) .real-img-wrap img { height: 100%; }

.real-card-large .real-img-wrap img { min-height: 280px; }

.real-card:hover .real-img-wrap img { transform: scale(1.05); }

.real-tag {
  position: absolute;
  top: 16px; left: 16px;
  padding: 4px 12px;
  background: rgba(10,14,26,0.8);
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary-light);
  backdrop-filter: blur(10px);
}

.real-content { padding: 24px; }

.real-content h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.real-content p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}

.real-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.real-tags span {
  padding: 4px 12px;
  background: rgba(99,102,241,0.1);
  border: 1px solid rgba(99,102,241,0.2);
  border-radius: 50px;
  font-size: 12px;
  color: var(--primary-light);
}

/* =========================================
   ÉQUIPE
   ========================================= */
.equipe { overflow: hidden; }

.equipe-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 1000px 700px at 50% 0%, rgba(99,102,241,0.06) 0%, transparent 60%);
}

.equipe-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.team-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: var(--transition);
}

.team-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.team-img-wrap {
  position: relative;
  height: 220px;
  background: linear-gradient(135deg, rgba(99,102,241,0.15), rgba(14,165,233,0.1));
  overflow: hidden;
}

.team-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.5s ease;
}

.team-card:hover .team-img { transform: scale(1.05); }

.team-social {
  position: absolute;
  bottom: 12px;
  right: 12px;
  display: flex;
  gap: 8px;
  opacity: 0;
  transform: translateY(8px);
  transition: var(--transition);
}

.team-card:hover .team-social {
  opacity: 1;
  transform: translateY(0);
}

.team-social a {
  width: 34px; height: 34px;
  background: rgba(10,14,26,0.8);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  backdrop-filter: blur(10px);
  transition: var(--transition);
}

.team-social a:hover {
  color: var(--primary-light);
  border-color: var(--primary);
}

.team-social a i[data-lucide] { width: 16px; height: 16px; }

.team-info { padding: 24px; }

.team-info h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.team-role {
  display: block;
  font-size: 13px;
  font-weight: 600;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 2px;
}

.team-specialty {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.team-bio {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}

.team-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.team-tags span {
  padding: 3px 10px;
  background: rgba(99,102,241,0.08);
  border: 1px solid rgba(99,102,241,0.15);
  border-radius: 50px;
  font-size: 11.5px;
  color: var(--primary-light);
}

/* =========================================
   PROCESSUS
   ========================================= */
.processus {
  background: rgba(255,255,255,0.01);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.process-timeline {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding: 20px 0;
}

.process-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  min-width: 160px;
  flex: 1;
}

.step-number {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.step-content {
  text-align: center;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: var(--transition);
  width: 100%;
}

.step-content:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}

.step-icon {
  width: 48px; height: 48px;
  background: var(--gradient-primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}

.step-icon i[data-lucide] { width: 22px; height: 22px; color: white; }

.step-content h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  font-family: var(--font-display);
}

.step-content p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.process-connector {
  flex: 0 0 40px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(99,102,241,0.3), transparent);
  margin-top: 60px;
  align-self: flex-start;
}

/* =========================================
   PARTENAIRES
   ========================================= */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* Partners photo banner */
.partners-photo {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  height: 280px;
  margin-bottom: 32px;
  border: 1px solid var(--border);
}

.partners-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.partners-photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,14,26,0.8) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 24px;
}

.partners-grid img {
  transform: scale(1.7); /* Agrandissement de 70% */
  height: auto;
  width: 100%; /* S'assure que l'image reste proportionnelle */
}

.partners-photo-overlay span {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  font-style: italic;
}

.partner-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  transition: var(--transition);
  cursor: pointer;
}

.partner-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.partner-card img {
  max-height: 55px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.6;
  transition: var(--transition);
}

.partner-card:hover img { opacity: 1; }

.partner-name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-secondary);
}

/* =========================================
   ACTUALITÉS
   ========================================= */
.news-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto;
  gap: 24px;
}

.news-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}

.news-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.news-featured {
  grid-row: 1 / 3;
  display: flex;
  flex-direction: column;
}

.news-img-wrap {
  position: relative;
  overflow: hidden;
}

.news-featured .news-img-wrap { height: 280px; }
.news-card:not(.news-featured) .news-img-wrap { height: 180px; }

.news-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.news-card:hover .news-img-wrap img { transform: scale(1.05); }

.news-category {
  position: absolute;
  top: 14px; left: 14px;
  padding: 4px 12px;
  background: var(--gradient-primary);
  border-radius: 50px;
  font-size: 11px;
  font-weight: 600;
  color: white;
  letter-spacing: 0.05em;
}

.news-content {
  padding: 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news-date {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.news-date i[data-lucide] { width: 14px; height: 14px; }

.news-content h3 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.4;
  margin-bottom: 10px;
}

.news-featured .news-content h3 { font-size: 20px; }

.news-content p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  flex: 1;
  margin-bottom: 16px;
}

.news-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary-light);
  transition: var(--transition);
  margin-top: auto;
}

.news-link:hover { gap: 10px; }
.news-link i[data-lucide] { width: 14px; height: 14px; }

/* =========================================
   CONTENUS RÉCENTS
   ========================================= */
.contenus-recents {
  background: rgba(255,255,255,0.015);
  border-top: 1px solid var(--border);
}

.contenus-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}

.contenu-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: var(--transition);
  cursor: pointer;
}

.contenu-item:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.contenu-item img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.contenu-item:hover img { transform: scale(1.05); }

.contenu-item span {
  display: block;
  padding: 10px;
  font-size: 11.5px;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.4;
}

@media (max-width: 1100px) {
  .contenus-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 600px) {
  .contenus-grid { grid-template-columns: repeat(2, 1fr); }
}

/* =========================================
   GALERIE DE MODULES
   ========================================= */
.modules-gallery {
  margin-top: 60px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px;
}

.gallery-header {
  text-align: center;
  margin-bottom: 32px;
}

.gallery-header h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.gallery-header p {
  font-size: 15px;
  color: var(--text-secondary);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 16/9;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,14,26,0.85) 0%, transparent 50%);
  display: flex;
  align-items: flex-end;
  padding: 14px;
  opacity: 0;
  transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay span {
  font-size: 13px;
  font-weight: 600;
  color: white;
}

.gallery-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-muted);
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.gallery-note i[data-lucide] { width: 15px; height: 15px; color: var(--primary-light); flex-shrink: 0; }

.gallery-note a {
  color: var(--primary-light);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 768px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .modules-gallery { padding: 24px; }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
}

/* =========================================
   TÉMOIGNAGES
   ========================================= */
.testimonials {
  background: rgba(99,102,241,0.03);
  border-top: 1px solid var(--border);
}

.testimonials-slider {
  max-width: 800px;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
}

.testi-track {
  display: flex;
  direction: ltr;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.testi-card {
  min-width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 44px;
  text-align: center;
}

.testi-stars {
  font-size: 22px;
  color: var(--warning);
  margin-bottom: 20px;
  letter-spacing: 3px;
}

.testi-card p {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.8;
  font-style: italic;
  margin-bottom: 28px;
}

.testi-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.testi-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: white;
  font-size: 15px;
}

.testi-author strong {
  display: block;
  font-size: 15px;
  color: var(--text-primary);
  text-align: left;
}

.testi-author span {
  font-size: 18px;
  color: var(--text-muted);
}

.testi-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 28px;
}

.testi-btn {
  width: 40px; height: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: var(--transition);
  cursor: pointer;
}

.testi-btn:hover {
  border-color: var(--primary);
  color: var(--primary-light);
}

.testi-btn i[data-lucide] { width: 18px; height: 18px; }

.testi-dots {
  display: flex;
  gap: 6px;
}

.testi-dot {
  width: 8px; height: 8px;
  background: var(--border);
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition);
}

.testi-dot.active {
  background: var(--primary);
  width: 24px;
  border-radius: 4px;
}

/* =========================================
   CONTACT
   ========================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 50px;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.contact-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}

.contact-card > i[data-lucide] {
  width: 22px; height: 22px;
  color: var(--primary-light);
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-card strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.contact-card span {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.contact-social {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  transition: var(--transition);
  border: 1px solid var(--border);
}

.social-btn.facebook { background: rgba(24,119,242,0.1); color: #4267B2; border-color: rgba(24,119,242,0.2); }
.social-btn.facebook:hover { background: rgba(24,119,242,0.2); }
.social-btn.youtube { background: rgba(255,0,0,0.08); color: #FF0000; border-color: rgba(255,0,0,0.15); }
.social-btn.youtube:hover { background: rgba(255,0,0,0.15); }
.social-btn.linkedin { background: rgba(0,119,181,0.1); color: #0077B5; border-color: rgba(0,119,181,0.2); }
.social-btn.linkedin:hover { background: rgba(0,119,181,0.2); }
.social-btn i[data-lucide] { width: 16px; height: 16px; }

/* Form */
.contact-form-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px;
}

.contact-form { display: flex; flex-direction: column; gap: 20px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}

.form-group label span { color: var(--danger); }

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 14px;
  transition: var(--transition);
  outline: none;
  resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  background: rgba(99,102,241,0.05);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group select option { background: var(--bg-dark); }

/* =========================================
   FOOTER
   ========================================= */
.footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
}

.footer-top { padding: 70px 0 50px; }

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
}

.footer-brand { }

.footer-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 16px 0 24px;
  max-width: 280px;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a {
  width: 38px; height: 38px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: var(--transition);
}

.footer-social a:hover {
  color: var(--primary-light);
  border-color: var(--primary);
  background: rgba(99,102,241,0.1);
}

.footer-social a i[data-lucide] { width: 16px; height: 16px; }

.footer-nav h4,
.footer-contact h4 {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.footer-nav ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav a {
  font-size: 14px;
  color: var(--text-muted);
  transition: var(--transition);
}

.footer-nav a:hover { color: var(--primary-light); padding-left: 4px; }

.footer-contact p {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 12px;
  line-height: 1.5;
}

.footer-contact p i[data-lucide] {
  width: 16px; height: 16px;
  color: var(--primary-light);
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-cert {
  margin-top: 20px;
}

.cert-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(16,185,129,0.08);
  border: 1px solid rgba(16,185,129,0.2);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--success);
}

.cert-badge i[data-lucide] { width: 16px; height: 16px; }

.footer-bottom {
  padding: 20px 0;
  border-top: 1px solid var(--border);
}

.footer-bottom .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-bottom p {
  font-size: 13px;
  color: var(--text-muted);
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

.footer-bottom-links a {
  font-size: 13px;
  color: var(--text-muted);
  transition: var(--transition);
}

.footer-bottom-links a:hover { color: var(--primary-light); }

/* =========================================
   BACK TO TOP
   ========================================= */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px; height: 48px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 4px 20px rgba(99,102,241,0.4);
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: var(--transition);
  z-index: 99;
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.back-to-top:hover { transform: translateY(-4px); box-shadow: 0 8px 25px rgba(99,102,241,0.5); }
.back-to-top i[data-lucide] { width: 20px; height: 20px; }

/* =========================================
   TOAST
   ========================================= */
.toast {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(15,22,41,0.95);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 28px;
  font-size: 14px;
  color: var(--text-primary);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 2000;
  white-space: nowrap;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast.success { border-left: 3px solid var(--success); }
.toast.error { border-left: 3px solid var(--danger); }

/* =========================================
   VIDEO MODAL
   ========================================= */
.video-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
.video-modal.open { display: flex; }

.video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.82);
  cursor: pointer;
}

.video-modal-box {
  position: relative;
  z-index: 1;
  width: min(860px, 95vw);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #000;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}

.video-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0,0,0,0.6);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}
.video-modal-close:hover { background: rgba(255,255,255,0.2); }
.video-modal-close svg { width: 18px; height: 18px; }

.video-modal-frame {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
}
.video-modal-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Thumbnail avec bouton play */
.contenu-item-video { cursor: pointer; }

.contenu-play-wrap {
  position: relative;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  overflow: hidden;
}
.contenu-play-wrap img { display: block; width: 100%; }

.contenu-play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.3);
  transition: background 0.25s;
}
.contenu-play-btn svg {
  width: 56px;
  height: 56px;
  color: #fff;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
  transition: transform 0.2s;
}
.contenu-item-video:hover .contenu-play-btn { background: rgba(99,102,241,0.45); }
.contenu-item-video:hover .contenu-play-btn svg { transform: scale(1.12); }

/* =========================================
   AOS - Animations on scroll
   ========================================= */
[data-aos] {
  opacity: 0;
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.4,0,0.2,1);
}

[data-aos="fade-up"] { transform: translateY(30px); }
[data-aos="fade-left"] { transform: translateX(30px); }
[data-aos="fade-right"] { transform: translateX(-30px); }

[data-aos].aos-animate {
  opacity: 1;
  transform: translate(0);
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 1100px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .equipe-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .hero-container { grid-template-columns: 1fr; gap: 48px; padding: 60px 24px; }
  .hero-visual { display: none; }
  .apropos-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .real-card-large { grid-template-columns: 1fr; }
  .realisations-grid { grid-template-columns: 1fr; }
  .real-card-large { grid-column: 1; }
  .process-timeline { flex-wrap: wrap; justify-content: center; gap: 16px; }
  .process-connector { display: none; }
  .partners-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .section { padding: 70px 0; }
  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0; right: 0;
    background: rgba(10,14,26,0.97);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 20px 24px;
    gap: 4px;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
  .nav-link { padding: 12px 16px; }
  .nav-cta { margin: 8px 0 0; }
  .nav-toggle { display: flex; }
  .services-grid { grid-template-columns: 1fr; }
  .equipe-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .news-featured { grid-row: auto; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom .container { flex-direction: column; text-align: center; }
  .hero-stats { flex-wrap: wrap; gap: 16px; }
  .stat-divider { display: none; }
  .testi-card { padding: 28px; }
  .contact-form-wrap { padding: 24px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .btn { padding: 11px 20px; font-size: 14px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .partners-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .trusted-logos { gap: 20px; }
  .back-to-top { bottom: 20px; right: 20px; }
}

/* =========================================
   LANGUAGE SWITCHER
   ========================================= */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 3px;
  flex-shrink: 0;
}
.lang-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-primary);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 4px 8px;
  border-radius: 16px;
  cursor: pointer;
  transition: var(--transition);
  line-height: 1;
}
.lang-btn:hover {
  color: var(--primary);
  background: var(--bg-card-hover);
}
.lang-btn.active {
  background: var(--gradient-primary);
  color: #fff;
}
@media (max-width: 768px) {
  .lang-switcher { margin-left: 4px; }
  .lang-btn { padding: 3px 6px; font-size: 0.65rem; }
}

/* =========================================
   THEME TOGGLE BUTTON
   ========================================= */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
  margin-left: 8px;
}
.theme-toggle:hover {
  background: var(--bg-card-hover);
  color: var(--primary);
  border-color: var(--border-hover);
  transform: rotate(15deg);
}
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-moon { display: none; }

/* =========================================
   LIGHT MODE OVERRIDES
   ========================================= */

/* Navbar */
[data-theme="light"] .navbar.scrolled {
  background: rgba(240,244,248,0.92);
  box-shadow: 0 4px 30px rgba(0,0,0,0.08);
}
[data-theme="light"] .nav-links {
  background: rgba(240,244,248,0.97);
}
[data-theme="light"] .nav-link:hover,
[data-theme="light"] .nav-link.active {
  background: rgba(15,23,42,0.05);
}
[data-theme="light"] .nav-logo img {
  filter: none;
}

/* Buttons */
[data-theme="light"] .btn-ghost {
  background: rgba(15,23,42,0.05);
  color: var(--text-primary);
  border-color: var(--border);
}
[data-theme="light"] .btn-ghost:hover {
  background: rgba(15,23,42,0.09);
}

/* Hero */
[data-theme="light"] .hero {
  background: linear-gradient(135deg, #eef2ff 0%, #e0f2fe 60%, #f0fdf4 100%);
}
[data-theme="light"] .hero-orb {
  opacity: 0.25;
}
[data-theme="light"] .hero-grid {
  opacity: 0.3;
}
[data-theme="light"] .hero-badge {
  background: rgba(99,102,241,0.1);
  border-color: rgba(99,102,241,0.2);
  color: var(--primary-dark);
}

/* Cards & surfaces with hardcoded rgba whites */
[data-theme="light"] .service-card,
[data-theme="light"] .tab-btn,
[data-theme="light"] .real-card,
[data-theme="light"] .equipe-card,
[data-theme="light"] .news-card,
[data-theme="light"] .testi-card,
[data-theme="light"] .contact-form-wrap,
[data-theme="light"] .stat-card,
[data-theme="light"] .mission-card,
[data-theme="light"] .apropos-quote,
[data-theme="light"] .process-step,
[data-theme="light"] .content-card {
  background: #ffffff;
  border-color: rgba(15,23,42,0.08);
}

/* Partner cards: keep dark bg so white logos stay visible */
[data-theme="light"] .partner-card {
  background: #1e293b;
  border-color: rgba(255,255,255,0.08);
}
[data-theme="light"] .partner-card:hover {
  background: #273549;
  border-color: rgba(99,102,241,0.4);
}
[data-theme="light"] .partner-card .partner-name {
  color: #ffffff;
}
[data-theme="light"] .service-card:hover,
[data-theme="light"] .equipe-card:hover,
[data-theme="light"] .news-card:hover,
[data-theme="light"] .content-card:hover {
  background: #f8fafc;
}

/* Tab active */
[data-theme="light"] .tab-btn.active {
  background: rgba(99,102,241,0.1);
  color: var(--primary);
}
[data-theme="light"] .tab-btn:hover {
  background: rgba(15,23,42,0.05);
}

/* Sections alternate bg */
[data-theme="light"] .section-alt,
[data-theme="light"] .stats-section,
[data-theme="light"] .trusted-section,
[data-theme="light"] .temoignages {
  background: var(--bg-surface);
}

/* Footer */
[data-theme="light"] .footer {
  background: #1e293b;
}

/* Trusted logos */
[data-theme="light"] .trusted-logo img {
  filter: brightness(0) invert(0) opacity(0.6);
}

/* Références grid — light mode */
[data-theme="light"] .ref-logo {
  background: rgba(0,0,0,0.04);
}
[data-theme="light"] .ref-logo:hover {
  background: rgba(0,0,0,0.06);
}
[data-theme="light"] .ref-logo img {
  filter: grayscale(0%) opacity(1);
}
[data-theme="light"] .ref-logo:hover img {
  filter: grayscale(0%) opacity(1);
  transform: scale(1.1);
}

/* Nav toggle bars */
[data-theme="light"] .nav-toggle span {
  background: var(--text-primary);
}

/* Form inputs */
[data-theme="light"] .form-group input,
[data-theme="light"] .form-group select,
[data-theme="light"] .form-group textarea {
  background: #f8fafc;
  border-color: rgba(15,23,42,0.12);
  color: var(--text-primary);
}
[data-theme="light"] .form-group input::placeholder,
[data-theme="light"] .form-group textarea::placeholder {
  color: var(--text-muted);
}
[data-theme="light"] .form-group input:focus,
[data-theme="light"] .form-group select:focus,
[data-theme="light"] .form-group textarea:focus {
  background: #ffffff;
  border-color: var(--primary);
}

/* Timeline dot */
[data-theme="light"] .tl-dot {
  border-color: rgba(99,102,241,0.3);
}

/* Hero floating cards — keep dark bg + white text in light mode */
[data-theme="light"] .card-float {
  background: #1e293b;
  border-color: rgba(255,255,255,0.1);
  color: #ffffff;
}
[data-theme="light"] .card-float .score-val,
[data-theme="light"] .card-float .score-label,
[data-theme="light"] .card-float .learners-count {
  color: #ffffff;
}
[data-theme="light"] .card-float .score-label {
  color: rgba(255,255,255,0.7);
}

/* Back to top */
[data-theme="light"] .back-to-top {
  background: var(--gradient-primary);
  border-color: transparent;
}

/* Mobile nav override */
@media (max-width: 768px) {
  [data-theme="light"] .nav-links {
    background: rgba(240,244,248,0.98);
  }
}

/* ===== RÉFÉRENCES CATALOGUE MODAL ===== */
.refs-catalog-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
.refs-catalog-modal.active {
  display: flex;
  align-items: flex-end;
}
.refs-catalog-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.9);
  backdrop-filter: blur(8px);
}
.refs-catalog-box {
  position: relative;
  z-index: 1;
  background: var(--bg-card);
  border: 1px solid rgba(99,102,241,0.3);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  box-shadow: 0 -10px 60px rgba(0,0,0,0.6), 0 0 0 1px rgba(99,102,241,0.1);
  width: 95vw;
  max-width: 1600px;
  height: calc(100vh - 30px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: catalogIn 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes catalogIn {
  from { opacity: 0; transform: translateY(100%); }
  to   { opacity: 1; transform: translateY(0); }
}

/* --- Header --- */
.refs-catalog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background: linear-gradient(135deg, rgba(99,102,241,0.08) 0%, rgba(14,165,233,0.06) 100%);
  flex-shrink: 0;
}
.refs-catalog-header h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  letter-spacing: 0.02em;
}
.refs-catalog-counter {
  font-size: 0.82rem;
  color: var(--primary-light);
  background: rgba(99,102,241,0.15);
  padding: 5px 16px;
  border-radius: 30px;
  border: 1px solid rgba(99,102,241,0.3);
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: var(--transition);
  cursor: default;
}
.refs-catalog-counter:hover {
  background: rgba(99,102,241,0.28);
  border-color: rgba(99,102,241,0.6);
  transform: scale(1.08);
  box-shadow: 0 0 18px rgba(99,102,241,0.35);
  color: #fff;
}
.refs-catalog-close {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text-secondary);
  cursor: pointer;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.refs-catalog-close:hover {
  background: rgba(239,68,68,0.2);
  border-color: rgba(239,68,68,0.4);
  color: var(--danger);
  transform: rotate(90deg) scale(1.1);
}

/* --- Body / canvas --- */
.refs-catalog-body {
  flex: 1;
  overflow: visible; /* clip assuré par refs-catalog-box; visible ici pour le scale au survol */
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  background: #0d1120;
  padding: 1.5rem 1.25rem;
  min-height: 250px;
}
.refs-catalog-canvas-wrap {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  /* overflow géré par .refs-catalog-body pour ne pas rogner le scale au survol */
}
#refsCatalogCanvas {
  max-width: 100%;
  height: auto;
  display: none;
  border-radius: 6px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.05);
  cursor: zoom-in;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.3s ease;
}
#refsCatalogCanvas:not(.no-hover):hover {
  transform: scale(1.05);
  box-shadow: 0 20px 70px rgba(0,0,0,0.9), 0 0 45px rgba(99,102,241,0.3);
}
/* ===== VIDEO RÉALISATIONS OVERLAY ===== */
.reals-video-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 3000;
  align-items: center;
  justify-content: center;
}
.reals-video-overlay.active {
  display: flex;
}
.reals-video-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(6px);
}
.reals-video-wrap {
  position: relative;
  z-index: 1;
  width: min(92vw, 1280px);
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: realsVideoIn 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes realsVideoIn {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}
.reals-video-wrap video {
  width: 100%;
  max-height: 90vh;
  display: block;
  border-radius: 10px;
  background: #000;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.8);
  outline: none;
}
.reals-video-close {
  position: absolute;
  top: -16px;
  right: -16px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: background 0.2s, transform 0.2s;
  z-index: 2;
}
.reals-video-close:hover {
  background: rgba(239, 68, 68, 0.8);
  transform: scale(1.15);
}
.reals-video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: none;
  background: rgba(99, 102, 241, 0.85);
  backdrop-filter: blur(6px);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  transition: background 0.2s, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.2s;
  z-index: 2;
}
.reals-video-play:hover {
  background: rgba(99, 102, 241, 1);
  transform: translate(-50%, -50%) scale(1.15);
}
.reals-video-play.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.8);
}

.refs-catalog-loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  gap: 1rem;
  font-size: 0.9rem;
}
.refs-catalog-spinner {
  width: 46px;
  height: 46px;
  border: 3px solid rgba(99,102,241,0.15);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: refsSpin 0.7s linear infinite;
}
@keyframes refsSpin {
  to { transform: rotate(360deg); }
}

/* Transitions de pages — canvases positionnés en absolu centré (top:50% left:50%) */
@keyframes catalogExitLeft {
  from { transform: translate(-50%, -50%); opacity: 1; }
  to   { transform: translate(calc(-50% - 110vw), -50%); opacity: 0; }
}
@keyframes catalogExitRight {
  from { transform: translate(-50%, -50%); opacity: 1; }
  to   { transform: translate(calc(-50% + 110vw), -50%); opacity: 0; }
}
@keyframes catalogEnterRight {
  from { transform: translate(calc(-50% + 110vw), -50%); opacity: 0; }
  to   { transform: translate(-50%, -50%); opacity: 1; }
}
@keyframes catalogEnterLeft {
  from { transform: translate(calc(-50% - 110vw), -50%); opacity: 0; }
  to   { transform: translate(-50%, -50%); opacity: 1; }
}

/* Boutons ronds — à gauche et droite du canvas */
.refs-catalog-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  flex-shrink: 0;
  background: var(--gradient-primary);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.25s ease,
              opacity 0.2s ease;
  box-shadow: 0 4px 18px rgba(99,102,241,0.35);
}
.refs-catalog-btn svg {
  width: 26px;
  height: 26px;
  stroke-width: 2.5;
  transition: transform 0.2s ease;
}
.refs-catalog-btn:hover:not(:disabled) {
  transform: scale(1.25);
  box-shadow: 0 8px 30px rgba(99,102,241,0.6);
}
.refs-catalog-btn:hover:not(:disabled) svg {
  transform: scale(1.1);
}
.refs-catalog-btn:active:not(:disabled) {
  transform: scale(0.93);
}
.refs-catalog-btn:disabled {
  opacity: 0.2;
  cursor: not-allowed;
  box-shadow: none;
}

@media (max-width: 600px) {
  .refs-catalog-btn    { width: 42px; height: 42px; }
  .refs-catalog-header { padding: 0.8rem 1rem; }
  .refs-catalog-body   { padding: 1rem 0.5rem; gap: 0.5rem; }
}

/* ========== RTL (Arabic) overrides ========== */
[dir="rtl"] {
  --font-body:    'Cairo', sans-serif;
  --font-display: 'Cairo', sans-serif;
}
[dir="rtl"] [data-lucide="arrow-right"],
[dir="rtl"] [data-lucide="arrow-left"],
[dir="rtl"] [data-lucide="chevron-right"],
[dir="rtl"] [data-lucide="chevron-left"] {
  transform: scaleX(-1);
}
/* Preserve flip through hover and active states */
[dir="rtl"] .refs-catalog-btn:hover:not(:disabled) [data-lucide="chevron-left"],
[dir="rtl"] .refs-catalog-btn:hover:not(:disabled) [data-lucide="chevron-right"],
[dir="rtl"] .refs-catalog-btn:active:not(:disabled) [data-lucide="chevron-left"],
[dir="rtl"] .refs-catalog-btn:active:not(:disabled) [data-lucide="chevron-right"],
[dir="rtl"] .testi-btn:hover [data-lucide="chevron-left"],
[dir="rtl"] .testi-btn:hover [data-lucide="chevron-right"] {
  transform: scaleX(-1);
}
[dir="rtl"] .testi-card {
  direction: rtl;
  text-align: right;
}
[dir="rtl"] .testi-author {
  flex-direction: row-reverse;
  text-align: right;
}
[dir="rtl"] .testi-author > div {
  text-align: right;
}
[dir="rtl"] .section-tag,
[dir="rtl"] .section-title,
[dir="rtl"] .section-subtitle {
  text-align: center;
}
[dir="rtl"] .nav-links {
  flex-direction: row-reverse;
}
[dir="rtl"] .contact-form label,
[dir="rtl"] .contact-form input,
[dir="rtl"] .contact-form textarea,
[dir="rtl"] .contact-form select {
  direction: rtl;
  text-align: right;
}
[dir="rtl"] .team-info {
  text-align: right;
}
[dir="rtl"] .team-tags {
  justify-content: flex-end;
}
[dir="rtl"] .news-content {
  text-align: right;
}
[dir="rtl"] .real-content {
  text-align: right;
}
[dir="rtl"] .real-tags {
  justify-content: flex-end;
}
[dir="rtl"] .apropos-story {
  text-align: right;
}
[dir="rtl"] .footer-col {
  text-align: right;
}
