/* ═══════════════════════════════════════════════════════
   CACEM — Design System v2 (Refonte complète)
   Inspiré : Equita Logistics Theme
═══════════════════════════════════════════════════════ */

/* ── Variables ── */
:root {
  --primary:       #0d1b2e;
  --primary-mid:   #1a2f4a;
  --accent:        #f97316;
  --accent-dark:   #c2410c;
  --accent-light:  #fff7ed;
  --accent-glow:   rgba(249,115,22,.18);
  --blue:          #1e6fbf;
  --success:       #10b981;
  --danger:        #ef4444;
  --surface:       #f8fafc;
  --border:        #e2e8f0;
  --dark:          #060d1a;
  --text:          #1e293b;
  --text-mid:      #475569;
  --text-light:    #94a3b8;
  --white:         #ffffff;

  --gradient:      linear-gradient(135deg,#0d1b2e 0%,#1a3a6a 100%);
  --gradient-acc:  linear-gradient(135deg,#f97316 0%,#c2410c 100%);
  --gradient-hero: linear-gradient(105deg,rgba(6,13,26,.92) 0%,rgba(13,27,46,.75) 55%,rgba(13,27,46,.55) 100%);

  --sh-sm:  0 1px 4px rgba(0,0,0,.08);
  --sh-md:  0 4px 20px rgba(0,0,0,.10);
  --sh-lg:  0 12px 40px rgba(0,0,0,.14);
  --sh-xl:  0 24px 64px rgba(0,0,0,.18);
  --sh-acc: 0 8px 28px rgba(249,115,22,.35);

  --r:    6px;
  --r-lg: 12px;
  --r-xl: 20px;
  --tr:   all .28s cubic-bezier(.4,0,.2,1);

  --font-head: 'Barlow Condensed', 'Poppins', sans-serif;
  --font-body: 'Inter', 'Poppins', sans-serif;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-body); color: var(--text); background: var(--white); line-height: 1.6; overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1240px; margin: 0 auto; padding: 0 28px; }
.hidden { display: none !important; }

/* ── Scroll reveal ── */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-left { opacity: 0; transform: translateX(-36px); transition: opacity .65s ease, transform .65s ease; }
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(36px); transition: opacity .65s ease, transform .65s ease; }
.reveal-right.visible { opacity: 1; transform: translateX(0); }

/* ════════════════════════════════════════
   BOUTONS
════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 28px; border-radius: var(--r); font-family: var(--font-body);
  font-size: .9rem; font-weight: 600; cursor: pointer; border: none;
  transition: var(--tr); white-space: nowrap; letter-spacing: .3px;
}
.btn-lg { padding: 16px 36px; font-size: 1rem; }
.btn-primary {
  background: var(--gradient-acc); color: var(--white);
  box-shadow: var(--sh-acc);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(249,115,22,.45); filter: brightness(1.06); }
.btn-dark {
  background: var(--primary); color: var(--white);
  box-shadow: 0 4px 16px rgba(13,27,46,.3);
}
.btn-dark:hover { background: var(--primary-mid); transform: translateY(-2px); }
.btn-outline {
  background: transparent; color: var(--white);
  border: 2px solid rgba(255,255,255,.55);
}
.btn-outline:hover { background: rgba(255,255,255,.12); border-color: var(--white); }
.btn-outline-acc {
  background: transparent; color: var(--accent);
  border: 2px solid var(--accent);
}
.btn-outline-acc:hover { background: var(--accent); color: var(--white); }
.btn-ghost { background: var(--surface); color: var(--text); }
.btn-ghost:hover { background: var(--border); }
.btn-success { background: linear-gradient(135deg,#10b981,#059669); color: var(--white); box-shadow: 0 4px 15px rgba(16,185,129,.3); }
.btn-success:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(16,185,129,.4); }

/* ════════════════════════════════════════
   SECTION COMMONS
════════════════════════════════════════ */
.section-label {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-body); font-size: .75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 2px; color: var(--accent);
  margin-bottom: 14px;
}
.section-label::before {
  content: ''; width: 28px; height: 3px;
  background: var(--gradient-acc); border-radius: 2px; flex-shrink: 0;
}
.section-title {
  font-family: var(--font-head); font-size: 2.8rem; font-weight: 800;
  color: var(--primary); line-height: 1.12; margin-bottom: 18px;
  text-transform: uppercase; letter-spacing: .5px;
}
.section-title span { color: var(--accent); }
.section-title-white { color: var(--white); }
.section-title-white span { color: var(--accent); }
.section-desc { color: var(--text-mid); font-size: 1rem; max-width: 580px; line-height: 1.75; }
.section-header { margin-bottom: 60px; }
.section-header.center { text-align: center; }
.section-header.center .section-label { justify-content: center; }
.section-header.center .section-label::before { display: none; }
.section-header.center .section-desc { margin: 0 auto; }

/* ════════════════════════════════════════
   TOP BAR
════════════════════════════════════════ */
.topbar {
  background: var(--primary); padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.topbar-inner {
  display: flex; justify-content: space-between; align-items: center;
  max-width: 1240px; margin: 0 auto; padding: 0 28px;
}
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 20px; }
.topbar-item {
  display: flex; align-items: center; gap: 6px;
  font-size: .75rem; color: rgba(255,255,255,.65); font-family: var(--font-body);
}
.topbar-item i { color: var(--accent); font-size: .8rem; }
.topbar-item a { color: rgba(255,255,255,.65); transition: color .2s; }
.topbar-item a:hover { color: var(--accent); }
.topbar-social { display: flex; gap: 10px; }
.topbar-social a { color: rgba(255,255,255,.4); font-size: .85rem; transition: color .2s; }
.topbar-social a:hover { color: var(--accent); }

/* ════════════════════════════════════════
   NAVBAR
════════════════════════════════════════ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 0; transition: var(--tr);
  background: transparent;
}
.navbar.with-topbar { top: 36px; }
.navbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1240px; margin: 0 auto; padding: 0 28px;
  height: 72px;
}
.navbar.scrolled {
  background: rgba(6,13,26,.97);
  backdrop-filter: blur(16px);
  box-shadow: 0 4px 30px rgba(0,0,0,.3);
  top: 0;
}
.nav-logo { display: flex; align-items: center; gap: 14px; }
.logo-icon {
  width: 44px; height: 44px; background: var(--gradient-acc);
  border-radius: var(--r); display: flex; align-items: center; justify-content: center;
  color: var(--white); font-size: 1.2rem; flex-shrink: 0;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-main { font-family: var(--font-head); font-size: 1.3rem; font-weight: 800; color: var(--white); letter-spacing: 2px; text-transform: uppercase; }
.logo-sub { font-size: .65rem; color: rgba(255,255,255,.55); font-weight: 400; letter-spacing: .5px; }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a {
  color: rgba(255,255,255,.82); font-size: .875rem; font-weight: 500;
  padding: 8px 14px; border-radius: var(--r); transition: var(--tr);
  font-family: var(--font-body);
}
.nav-links a:hover { color: var(--accent); background: rgba(255,255,255,.06); }
.nav-cta {
  background: var(--gradient-acc) !important; color: var(--white) !important;
  font-weight: 700 !important; margin-left: 6px;
  box-shadow: var(--sh-acc) !important;
}
.nav-cta:hover { transform: translateY(-1px); filter: brightness(1.08); background: none !important; }
.nav-apprenant {
  border: 1.5px solid rgba(255,255,255,.35) !important;
  font-weight: 600 !important;
  display: inline-flex !important; align-items: center; gap: 6px;
}
.nav-apprenant:hover { border-color: var(--accent) !important; color: var(--accent) !important; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: var(--tr); }

/* ════════════════════════════════════════
   HERO
════════════════════════════════════════ */
.hero {
  position: relative; min-height: 850px; display: flex; align-items: center;
  overflow: hidden; padding-top: 72px;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background: var(--gradient-hero), url('/images/sections/bg_hero.jpg') center/cover no-repeat;
}
.hero-accent-line {
  position: absolute; top: 0; right: 0; width: 3px; height: 100%;
  background: var(--gradient-acc); z-index: 1;
}
.hero-particles { position: absolute; inset: 0; z-index: 0; }
.hero-inner {
  position: relative; z-index: 2; width: 100%; max-width: 1240px;
  margin: 0 auto; padding: 80px 28px 100px;
  display: grid; grid-template-columns: 1fr 400px; gap: 64px; align-items: center;
}
.hero-content {}
.hero-label {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(249,115,22,.15); border: 1px solid rgba(249,115,22,.35);
  color: var(--accent); padding: 7px 18px; border-radius: 4px;
  font-size: .75rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  margin-bottom: 24px;
}
.hero-label i { font-size: .7rem; }
.hero-title {
  font-family: var(--font-head); font-size: 4.4rem; font-weight: 800;
  color: var(--white); line-height: 1.05; margin-bottom: 22px;
  text-transform: uppercase; letter-spacing: 1px;
}
.hero-title .accent { color: var(--accent); }
.hero-title .line2 { display: block; }
.hero-subtitle { font-size: 1.05rem; color: rgba(255,255,255,.72); margin-bottom: 40px; line-height: 1.8; max-width: 480px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 56px; }
.hero-trust {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 20px; background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12); border-radius: var(--r);
  backdrop-filter: blur(8px);
}
.hero-trust i { font-size: 1.4rem; color: var(--accent); }
.hero-trust-text strong { display: block; color: var(--white); font-size: .9rem; font-weight: 700; }
.hero-trust-text span { color: rgba(255,255,255,.55); font-size: .78rem; }

/* Hero stats panel */
.hero-stats-panel {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--r-lg); padding: 36px 28px; backdrop-filter: blur(16px);
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
}
.hero-stat-item { text-align: center; }
.hero-stat-item .num {
  font-family: var(--font-head); font-size: 3rem; font-weight: 800; color: var(--white);
  line-height: 1; display: flex; align-items: flex-end; justify-content: center; gap: 2px;
}
.hero-stat-item .num sup { font-size: 1.2rem; color: var(--accent); margin-bottom: 6px; }
.hero-stat-item .lbl { font-size: .75rem; color: rgba(255,255,255,.5); margin-top: 6px; text-transform: uppercase; letter-spacing: 1px; font-weight: 600; }
.hero-stat-item .num-accent { color: var(--accent); }
.stat-divider-v { width: 1px; height: 100%; background: rgba(255,255,255,.1); margin: 0 auto; }

/* Hero scroll indicator */
.hero-scroll {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  color: rgba(255,255,255,.4); font-size: .72rem; letter-spacing: 1px; text-transform: uppercase;
  animation: scrollBounce 2.4s infinite;
}
.hero-scroll i { font-size: 1rem; }
@keyframes scrollBounce { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(8px); } }

/* Diagonal bottom */
.hero::after {
  content: ''; position: absolute; bottom: -2px; left: 0; right: 0;
  height: 80px; background: var(--white); clip-path: polygon(0 100%, 100% 0, 100% 100%);
  z-index: 3;
}

/* ════════════════════════════════════════
   STATS BAR
════════════════════════════════════════ */
.stats-bar {
  background: var(--primary);
  padding: 0; position: relative; z-index: 2;
  border-bottom: 3px solid rgba(249,115,22,.4);
}
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); }
.stat-item {
  text-align: center; padding: 40px 24px;
  border-right: 1px solid rgba(255,255,255,.07);
  position: relative; transition: var(--tr);
}
.stat-item:last-child { border-right: none; }
.stat-item::before {
  content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 0; height: 3px; background: var(--gradient-acc); transition: width .35s ease;
}
.stat-item:hover::before { width: 60%; }
.stat-item i { font-size: 1.6rem; color: var(--accent); margin-bottom: 10px; opacity: .85; }
.stat-number-wrap { display: flex; align-items: baseline; justify-content: center; gap: 2px; margin-bottom: 6px; }
.stat-number { font-family: var(--font-head); font-size: 2.8rem; font-weight: 800; color: var(--white); line-height: 1; }
.stat-suffix { font-family: var(--font-head); font-size: 1.4rem; font-weight: 700; color: var(--accent); }
.stat-label { font-size: .78rem; color: rgba(255,255,255,.45); text-transform: uppercase; letter-spacing: 1.2px; font-weight: 600; }

/* ════════════════════════════════════════
   ABOUT
════════════════════════════════════════ */
.about { padding: 110px 0; background: var(--surface); position: relative; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }

.about-visual { position: relative; }
.about-img-wrap {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--sh-xl);
}
.about-img-wrap img { width: 100%; height: 420px; object-fit: cover; display: block; }
.about-img-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(13,27,46,.6) 0%, transparent 50%);
}
.about-img-badge {
  position: absolute; bottom: 24px; left: 24px;
  background: var(--gradient-acc); padding: 16px 22px; border-radius: var(--r);
  display: flex; align-items: center; gap: 14px;
  box-shadow: var(--sh-acc);
}
.about-img-badge .big-num {
  font-family: var(--font-head); font-size: 2.4rem; font-weight: 800; color: var(--white); line-height: 1;
}
.about-img-badge .big-text { font-size: .75rem; color: rgba(255,255,255,.85); line-height: 1.4; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; }

.about-card-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.about-mini-card {
  background: var(--white); border-radius: var(--r); padding: 18px 16px;
  display: flex; align-items: center; gap: 12px; box-shadow: var(--sh-sm);
  border-left: 3px solid var(--accent); transition: var(--tr);
}
.about-mini-card:hover { transform: translateY(-3px); box-shadow: var(--sh-md); }
.about-mini-card i { font-size: 1.5rem; color: var(--accent); flex-shrink: 0; }
.about-mini-card strong { display: block; font-size: .88rem; color: var(--primary); font-weight: 700; line-height: 1.3; }
.about-mini-card span { font-size: .75rem; color: var(--text-light); }

.about-content {}
.about-features { display: flex; flex-direction: column; gap: 14px; margin: 24px 0 32px; }
.about-feat-item {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 16px; background: var(--white); border-radius: var(--r);
  box-shadow: var(--sh-sm); transition: var(--tr); border: 1px solid var(--border);
}
.about-feat-item:hover { border-color: var(--accent); box-shadow: var(--sh-md); }
.about-feat-icon {
  width: 44px; height: 44px; border-radius: var(--r); background: var(--accent-light);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.about-feat-icon i { color: var(--accent); font-size: 1.1rem; }
.about-feat-text strong { display: block; font-size: .9rem; color: var(--primary); font-weight: 700; margin-bottom: 3px; }
.about-feat-text span { font-size: .82rem; color: var(--text-light); }
.about-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ════════════════════════════════════════
   FORMATIONS
════════════════════════════════════════ */
.formations {
  padding: 110px 0;
  background: var(--white);
  position: relative;
}
.formations-tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-bottom: 52px; }
.tab-btn {
  display: flex; align-items: center; gap: 8px; padding: 10px 22px;
  border: 2px solid var(--border); border-radius: var(--r); background: var(--white);
  font-family: var(--font-body); font-size: .85rem; font-weight: 600; cursor: pointer; transition: var(--tr);
  color: var(--text-mid); text-transform: uppercase; letter-spacing: .5px;
}
.tab-btn.active { background: var(--primary); color: var(--white); border-color: var(--primary); box-shadow: 0 4px 16px rgba(13,27,46,.3); }
.tab-btn.active i { color: var(--accent); }
.tab-btn:hover:not(.active) { border-color: var(--primary); color: var(--primary); }
.formations-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.formation-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--r-lg);
  overflow: hidden; position: relative; transition: var(--tr);
  display: flex; flex-direction: column;
}
.formation-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 4px; background: var(--border); transition: background .3s; z-index: 1;
}
.formation-card:hover { transform: translateY(-6px); box-shadow: var(--sh-lg); border-color: transparent; }
.formation-card:hover::before { background: var(--gradient-acc); }
.formation-card.featured::before { background: var(--gradient-acc); }
.formation-card.featured { border-color: rgba(249,115,22,.25); box-shadow: 0 4px 24px rgba(249,115,22,.12); }

.card-badge {
  display: inline-flex; align-items: center; align-self: flex-start;
  background: var(--accent); color: var(--white);
  padding: 4px 12px; border-radius: var(--r); font-size: .7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .8px; margin-bottom: 14px;
}
.badge-gold { background: var(--gradient-acc); }

.card-body {
  padding: 28px 24px 20px; flex: 1;
  display: flex; flex-direction: column;
}
.card-icon {
  width: 56px; height: 56px; border-radius: var(--r); background: var(--accent-light);
  display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
  transition: var(--tr); flex-shrink: 0;
}
.formation-card.featured .card-icon { background: rgba(249,115,22,.15); }
.formation-card:hover .card-icon { background: var(--accent); }
.card-icon i { font-size: 1.4rem; color: var(--accent); transition: color .2s; }
.formation-card:hover .card-icon i { color: var(--white); }
.card-category { font-size: .72rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--text-light); font-weight: 700; margin-bottom: 4px; }
.card-title { font-family: var(--font-head); font-size: 1.15rem; font-weight: 800; color: var(--primary); margin-bottom: 4px; text-transform: uppercase; letter-spacing: .3px; line-height: 1.25; }
.card-level { font-size: .82rem; color: var(--accent); font-weight: 600; margin-bottom: 16px; }
.card-features { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-features li { display: flex; align-items: center; gap: 9px; font-size: .82rem; color: var(--text-mid); }
.card-features li i { color: var(--accent); font-size: .85rem; flex-shrink: 0; }
.card-price { margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--border); }
.price-amount { font-family: var(--font-head); font-size: 2rem; font-weight: 800; color: var(--primary); letter-spacing: .5px; }
.price-currency { font-size: .85rem; color: var(--text-light); font-weight: 500; margin-left: 4px; }

.card-footer {
  padding: 16px 24px; border-top: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 8px; background: var(--surface);
}
.formation-card.featured .card-footer { background: var(--accent-light); border-top-color: rgba(249,115,22,.2); }
.card-cta { width: 100%; justify-content: center; }
.btn-programme {
  background: none; border: 1.5px solid var(--border); color: var(--text-mid);
  border-radius: var(--r); padding: 9px 16px; font-size: .82rem; font-weight: 600;
  cursor: pointer; font-family: inherit; transition: var(--tr);
  display: flex; align-items: center; justify-content: center; gap: 7px; width: 100%;
}
.btn-programme:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-light); }

/* ════════════════════════════════════════
   INSCRIPTION
════════════════════════════════════════ */
.inscription {
  padding: 110px 0;
  background: var(--primary);
  position: relative;
}
.inscription::before {
  content: ''; position: absolute; inset: 0;
  background: url('/images/sections/bg_inscription.jpg') center/cover no-repeat;
  opacity: .08; pointer-events: none;
}
.inscription-inner { position: relative; z-index: 1; }
.inscription .section-label { color: var(--accent); }
.inscription .section-title { color: var(--white); }
.inscription .section-desc { color: rgba(255,255,255,.6); }

.form-wrapper {
  max-width: 760px; margin: 0 auto;
  background: var(--white); border-radius: var(--r-xl); padding: 52px;
  box-shadow: 0 32px 80px rgba(0,0,0,.35);
}
.form-steps { display: flex; align-items: center; margin-bottom: 44px; }
.step { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 1; }
.step-circle {
  width: 42px; height: 42px; border-radius: 50%; border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 700; font-size: 1rem;
  color: var(--text-light); transition: var(--tr);
}
.step.active .step-circle { background: var(--gradient-acc); border-color: transparent; color: var(--white); box-shadow: var(--sh-acc); }
.step.completed .step-circle { background: var(--success); border-color: transparent; color: var(--white); }
.step span { font-size: .7rem; font-weight: 700; color: var(--text-light); white-space: nowrap; text-transform: uppercase; letter-spacing: .5px; }
.step.active span, .step.completed span { color: var(--accent); }
.step-line { flex: 1; height: 2px; background: var(--border); margin: 0 6px; margin-bottom: 22px; transition: var(--tr); }
.step-line.completed { background: var(--success); }

.form-step { display: none; animation: fadeUp .4s ease; }
.form-step.active { display: block; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@keyframes popIn { 0% { transform: scale(0); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(239,68,68,.4); } 50% { box-shadow: 0 0 0 8px rgba(239,68,68,0); } }

.step-title { font-family: var(--font-head); font-size: 1.4rem; font-weight: 700; color: var(--primary); margin-bottom: 6px; display: flex; align-items: center; gap: 10px; text-transform: uppercase; letter-spacing: .3px; }
.step-title i { color: var(--accent); }
.step-desc { color: var(--text-light); font-size: .88rem; margin-bottom: 28px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: .82rem; font-weight: 700; color: var(--text); margin-bottom: 8px; text-transform: uppercase; letter-spacing: .5px; }
.required { color: var(--danger); }
.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="email"] {
  width: 100%; padding: 13px 16px; border: 2px solid var(--border); border-radius: var(--r);
  font-family: var(--font-body); font-size: .9rem; color: var(--text); transition: var(--tr); outline: none;
  background: var(--surface);
}
.form-group input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(249,115,22,.12); background: var(--white); }
.form-group input.error { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: .78rem; margin-top: 4px; min-height: 18px; }
.checkbox-label { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: .875rem; color: var(--text-mid); }
.checkbox-label input { margin-top: 3px; flex-shrink: 0; width: 16px; height: 16px; cursor: pointer; accent-color: var(--accent); }
.step-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--border); }
.step-nav .btn:only-child { margin-left: auto; }

/* Formation selector */
.formation-selector { display: flex; flex-direction: column; gap: 12px; margin-bottom: 8px; }
#formationSelect {
  width: 100%; padding: 14px 16px; border: 2px solid var(--border); border-radius: var(--r);
  font-family: var(--font-body); font-size: .95rem; color: var(--text);
  background: var(--surface); outline: none; cursor: pointer; transition: border-color .2s, box-shadow .2s;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 44px;
}
#formationSelect:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(249,115,22,.12); }
#formationSelect optgroup { font-weight: 700; color: var(--primary); font-size: .88rem; }
#formationSelect option { font-weight: 400; color: var(--text); }
.selected-formation-card {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 20px; border: 2px solid var(--accent);
  border-radius: var(--r); background: var(--accent-light);
  animation: fadeIn .25s ease;
}
.selected-formation-card .sfc-icon { font-size: 1.6rem; color: var(--accent); flex-shrink: 0; }
.selected-formation-card .sfc-name { font-weight: 700; font-size: .95rem; color: var(--primary); }
.selected-formation-card .sfc-meta { font-size: .82rem; color: var(--text-light); margin-top: 2px; }
.selected-formation-card .sfc-price { margin-left: auto; text-align: right; flex-shrink: 0; }
.selected-formation-card .sfc-price strong { display: block; font-family: var(--font-head); font-size: 1.2rem; font-weight: 800; color: var(--accent); }
.selected-formation-card .sfc-price span { font-size: .72rem; color: var(--text-light); }

/* Succès */
.inscription-success { text-align: center; padding: 40px 20px; }
.success-icon { font-size: 4rem; color: var(--success); margin-bottom: 16px; animation: popIn .5s cubic-bezier(.175,.885,.32,1.275); }
.inscription-success h3 { font-family: var(--font-head); font-size: 2rem; color: var(--primary); margin-bottom: 8px; text-transform: uppercase; }
.inscription-success > p { color: var(--text-mid); margin-bottom: 24px; }
.success-details { background: var(--surface); border-radius: var(--r); padding: 20px; text-align: left; margin-bottom: 24px; border: 1px solid var(--border); }
.success-details p { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-size: .9rem; }
.success-details p:last-child { margin-bottom: 0; }
.success-details i { color: var(--accent); width: 18px; }
.success-payment { background: var(--surface); border-radius: var(--r); padding: 20px; margin-bottom: 24px; border: 1px solid var(--border); }
.payment-question { font-weight: 700; color: var(--text-dark); margin-bottom: 8px; }
.payment-ussd { font-family: var(--font-mono, 'Courier New', monospace); color: var(--primary); font-weight: 800; margin-bottom: 14px; word-break: break-all; }
.payment-choice-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 10px; }
.payment-help { font-size: .82rem; color: var(--text-light); margin: 0; }
.payment-declare { margin-top: 16px; border-top: 1px solid var(--border); padding-top: 14px; display: grid; gap: 10px; }
.payment-declare input { width: 100%; border: 1px solid var(--border); border-radius: var(--r-sm); padding: 12px 14px; background: var(--white); color: var(--text-dark); }
.success-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 16px; }
.success-note { font-size: .82rem; color: var(--text-light); display: flex; align-items: center; gap: 6px; justify-content: center; }

/* Annuler */
.btn-cancel-link { background: none; border: none; color: var(--text-light); font-size: .82rem; cursor: pointer; display: block; margin: 14px auto 0; text-decoration: underline; font-family: inherit; transition: color .2s; }
.btn-cancel-link:hover { color: var(--danger); }
.cancel-overlay { position: fixed; inset: 0; background: rgba(6,13,26,.65); backdrop-filter: blur(6px); z-index: 9999; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity .25s; }
.cancel-overlay.visible { opacity: 1; pointer-events: all; }
.cancel-modal { background: var(--white); border-radius: var(--r-xl); padding: 44px 36px; max-width: 420px; width: 90%; text-align: center; transform: scale(.92); transition: transform .25s; box-shadow: var(--sh-xl); }
.cancel-overlay.visible .cancel-modal { transform: scale(1); }
.cancel-modal .cm-emoji { font-size: 3rem; margin-bottom: 12px; }
.cancel-modal h3 { font-family: var(--font-head); font-size: 1.5rem; font-weight: 700; color: var(--primary); margin-bottom: 10px; text-transform: uppercase; }
.cancel-modal p { color: var(--text-mid); font-size: .9rem; line-height: 1.65; margin-bottom: 28px; }
.cancel-modal .cm-actions { display: flex; flex-direction: column; gap: 10px; }
.btn-danger-ghost { background: none; border: 2px solid #fecaca; color: var(--danger); border-radius: var(--r); padding: 12px 24px; font-weight: 600; font-size: .9rem; cursor: pointer; font-family: inherit; transition: var(--tr); }
.btn-danger-ghost:hover { background: #fef2f2; border-color: var(--danger); }
.inscription-cancelled { text-align: center; padding: 48px 24px; animation: fadeIn .4s ease; }
.cancelled-icon { font-size: 3.5rem; margin-bottom: 16px; }
.inscription-cancelled h3 { font-family: var(--font-head); font-size: 1.8rem; font-weight: 700; color: var(--primary); margin-bottom: 10px; text-transform: uppercase; }
.inscription-cancelled p { color: var(--text-mid); font-size: .95rem; line-height: 1.7; max-width: 420px; margin: 0 auto 28px; }
.cancelled-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Modale détail formation */
.detail-overlay { position: fixed; inset: 0; background: rgba(6,13,26,.7); backdrop-filter: blur(8px); z-index: 9998; display: flex; align-items: center; justify-content: center; padding: 20px; opacity: 0; pointer-events: none; transition: opacity .25s; }
.detail-overlay.visible { opacity: 1; pointer-events: all; }
.detail-modal { background: var(--white); border-radius: var(--r-xl); max-width: 700px; width: 100%; max-height: 88vh; overflow-y: auto; transform: translateY(24px); transition: transform .3s cubic-bezier(.22,1,.36,1); box-shadow: var(--sh-xl); }
.detail-overlay.visible .detail-modal { transform: translateY(0); }
.detail-header { background: var(--gradient); padding: 32px 32px 28px; border-radius: var(--r-xl) var(--r-xl) 0 0; position: relative; }
.detail-close { position: absolute; top: 14px; right: 16px; background: rgba(255,255,255,.12); border: none; color: var(--white); width: 36px; height: 36px; border-radius: 50%; cursor: pointer; font-size: 1rem; display: flex; align-items: center; justify-content: center; transition: background .2s; }
.detail-close:hover { background: rgba(255,255,255,.25); }
.detail-icon { font-size: 2.4rem; color: var(--accent); margin-bottom: 10px; }
.detail-name { font-family: var(--font-head); font-size: 1.6rem; font-weight: 800; color: var(--white); margin-bottom: 6px; line-height: 1.2; text-transform: uppercase; }
.detail-cat { font-size: .75rem; color: rgba(255,255,255,.6); text-transform: uppercase; letter-spacing: 1.5px; font-weight: 600; }
.detail-body { padding: 28px; }
.detail-desc { font-size: .95rem; color: var(--text-mid); line-height: 1.75; margin-bottom: 22px; }
.detail-meta { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; }
.detail-chip { display: flex; align-items: center; gap: 8px; background: var(--surface); border-radius: var(--r); padding: 8px 16px; font-size: .83rem; font-weight: 600; color: var(--text); border: 1px solid var(--border); }
.detail-chip i { color: var(--accent); }
.detail-chip.chip-gold { background: #fef3c7; color: #92400e; border-color: #fde68a; }
.detail-chip.chip-gold i { color: #d97706; }
.detail-chip.chip-green { background: #d1fae5; color: #065f46; border-color: #a7f3d0; }
.detail-chip.chip-green i { color: #10b981; }
.detail-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.detail-section { margin-bottom: 20px; }
.detail-section h4 { font-size: .75rem; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px; display: flex; align-items: center; gap: 7px; border-bottom: 2px solid var(--border); padding-bottom: 8px; }
.detail-section ul { list-style: none; display: flex; flex-direction: column; gap: 7px; }
.detail-section ul li { display: flex; align-items: flex-start; gap: 9px; font-size: .87rem; color: var(--text); line-height: 1.5; }
.detail-section ul li::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex-shrink: 0; margin-top: 6px; }
.detail-footer { padding: 18px 28px; border-top: 1px solid var(--border); display: flex; gap: 12px; justify-content: flex-end; flex-wrap: wrap; background: var(--surface); border-radius: 0 0 var(--r-xl) var(--r-xl); }
@media (max-width: 560px) { .detail-cols { grid-template-columns: 1fr; } .detail-modal { border-radius: var(--r-lg) var(--r-lg) 0 0; } .detail-overlay { align-items: flex-end; padding: 0; } }

/* ════════════════════════════════════════
   GALERIE
════════════════════════════════════════ */
.galerie { padding: 110px 0; background: var(--dark); position: relative; }
.galerie::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 4px; background: var(--gradient-acc);
}
.galerie .section-label { color: var(--accent); }
.galerie .section-title { color: var(--white); }
.galerie .section-title span { color: var(--accent); }
.galerie .section-desc { color: rgba(255,255,255,.55); }

/* — Carrousel galerie — */
.gallery-carousel-wrapper { position: relative; padding: 0 32px; }
.gallery-carousel {
  display: flex; gap: 12px;
  overflow-x: auto; overflow-y: visible;
  scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 6px 2px 16px; cursor: grab;
}
.gallery-carousel:active { cursor: grabbing; }
.gallery-carousel::-webkit-scrollbar { height: 4px; }
.gallery-carousel::-webkit-scrollbar-track { background: rgba(255,255,255,.06); border-radius: 2px; }
.gallery-carousel::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 2px; }

.carousel-item {
  flex: 0 0 300px; height: 260px;
  scroll-snap-align: start;
  border-radius: var(--r); overflow: hidden; position: relative;
  background: var(--primary-mid);
  border: 1px solid rgba(255,255,255,.08);
  transition: border-color .25s, transform .25s;
}
.carousel-item:hover { border-color: rgba(249,115,22,.45); transform: translateY(-3px); }
.carousel-item--photo { cursor: pointer; }
.carousel-item--photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; display: block; }
.carousel-item--photo:hover img { transform: scale(1.07); }
.gallery-overlay { position: absolute; inset: 0; background: linear-gradient(to top,rgba(6,13,26,.6) 0%,transparent 60%); display: flex; align-items: flex-end; justify-content: flex-start; padding: 16px; opacity: 0; transition: opacity .3s; }
.gallery-overlay i { color: var(--white); font-size: 1.6rem; filter: drop-shadow(0 2px 6px rgba(0,0,0,.4)); }
.carousel-item--photo:hover .gallery-overlay { opacity: 1; }
.carousel-badge {
  position: absolute; top: 10px; left: 10px;
  background: rgba(6,13,26,.7); color: rgba(255,255,255,.75);
  font-size: .68rem; font-weight: 600; letter-spacing: .4px;
  padding: 3px 8px; border-radius: 20px; text-transform: uppercase;
  display: flex; align-items: center; gap: 5px; backdrop-filter: blur(4px);
}
.carousel-badge i { color: var(--accent); font-size: .65rem; }

.carousel-item--video { display: flex; flex-direction: column; }
.carousel-item--video video { flex: 1; width: 100%; min-height: 0; object-fit: cover; display: block; background: #000; }
.video-label { padding: 8px 12px; font-size: .74rem; color: rgba(255,255,255,.65); display: flex; align-items: center; gap: 6px; flex-shrink: 0; background: rgba(255,255,255,.04); }
.video-label i { color: var(--accent); }

.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-58%); z-index: 3;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(6,13,26,.8); color: var(--white);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  font-size: .95rem; transition: background .2s, border-color .2s;
  backdrop-filter: blur(6px);
}
.carousel-btn:hover { background: var(--accent); border-color: var(--accent); }
.carousel-btn--prev { left: -4px; }
.carousel-btn--next { right: -4px; }

/* Lightbox */
.lightbox-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.94); z-index: 10000; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity .25s; padding: 20px; }
.lightbox-overlay.visible { opacity: 1; pointer-events: all; }
.lightbox-overlay img { max-width: 90vw; max-height: 88vh; object-fit: contain; border-radius: var(--r); box-shadow: 0 0 80px rgba(0,0,0,.7); }
.lightbox-close { position: absolute; top: 16px; right: 20px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15); color: var(--white); width: 44px; height: 44px; border-radius: 50%; cursor: pointer; font-size: 1.1rem; display: flex; align-items: center; justify-content: center; transition: background .2s; }
.lightbox-close:hover { background: var(--accent); border-color: var(--accent); }
.lightbox-prev, .lightbox-next { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15); color: var(--white); width: 52px; height: 52px; border-radius: 50%; cursor: pointer; font-size: 1.1rem; display: flex; align-items: center; justify-content: center; transition: background .2s; }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }
.lightbox-prev:hover, .lightbox-next:hover { background: var(--accent); border-color: var(--accent); }

/* ════════════════════════════════════════
   FAQ
════════════════════════════════════════ */
.faq { padding: 110px 0; background: var(--surface); }
.faq-grid { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.faq-item { border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; transition: var(--tr); background: var(--white); }
.faq-item:hover { border-color: var(--accent); box-shadow: var(--sh-sm); }
.faq-item.open { border-color: var(--accent); box-shadow: 0 4px 20px rgba(249,115,22,.12); }
.faq-question {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 24px; background: none; border: none; cursor: pointer; font-family: var(--font-body);
  font-size: .92rem; font-weight: 600; color: var(--text); text-align: left; transition: var(--tr);
}
.faq-question:hover { color: var(--accent); }
.faq-question i { flex-shrink: 0; color: var(--text-light); transition: transform .3s ease; font-size: .85rem; }
.faq-item.open .faq-question i { transform: rotate(180deg); color: var(--accent); }
.faq-item.open .faq-question { color: var(--accent); }
.faq-number {
  width: 32px; height: 32px; border-radius: var(--r); background: var(--surface);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-size: .9rem; font-weight: 800; color: var(--text-light);
  flex-shrink: 0; transition: var(--tr);
}
.faq-item.open .faq-number { background: var(--accent); color: var(--white); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-answer p { padding: 0 24px 22px 72px; color: var(--text-mid); font-size: .88rem; line-height: 1.75; }

/* ════════════════════════════════════════
   CONTACT
════════════════════════════════════════ */
.contact { padding: 110px 0; background: var(--white); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 52px; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 14px; }
.contact-card {
  background: var(--surface); border-radius: var(--r); padding: 22px 20px;
  display: flex; align-items: flex-start; gap: 16px;
  border: 1px solid var(--border); transition: var(--tr);
}
.contact-card:hover { border-color: var(--accent); transform: translateX(5px); box-shadow: var(--sh-md); }
.contact-card-icon {
  width: 44px; height: 44px; border-radius: var(--r); background: var(--accent-light);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-card-icon i { font-size: 1.2rem; color: var(--accent); }
.contact-card h4 { font-size: .85rem; font-weight: 700; color: var(--primary); margin-bottom: 4px; text-transform: uppercase; letter-spacing: .5px; }
.contact-card p { font-size: .875rem; color: var(--text-mid); line-height: 1.6; }
.contact-card a { color: var(--accent); font-weight: 600; }
.contact-card a:hover { text-decoration: underline; }
.contact-map { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-lg); border: 1px solid var(--border); }
.contact-map iframe { width: 100%; height: 400px; border: none; display: block; }
.map-btn { display: block; width: 100%; padding: 14px; background: var(--primary); color: var(--white); text-align: center; font-weight: 700; font-size: .875rem; transition: var(--tr); font-family: var(--font-body); }
.map-btn:hover { background: var(--accent); }
.map-btn i { margin-right: 8px; }

/* ════════════════════════════════════════
   FOOTER
════════════════════════════════════════ */
.footer { background: var(--dark); padding: 72px 0 0; position: relative; }
.footer::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 3px; background: var(--gradient-acc);
}
.footer-grid { display: grid; grid-template-columns: 2.2fr 1fr 1.5fr 1.5fr; gap: 44px; margin-bottom: 56px; }
.footer-logo { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.footer-logo-icon {
  width: 44px; height: 44px; border-radius: var(--r); background: var(--gradient-acc);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; color: var(--white);
}
.footer-logo-text { font-family: var(--font-head); font-size: 1.25rem; font-weight: 800; color: var(--white); letter-spacing: 2px; text-transform: uppercase; }
.footer-brand p { font-size: .85rem; color: rgba(255,255,255,.45); line-height: 1.8; margin-bottom: 22px; max-width: 280px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 38px; height: 38px; border-radius: var(--r); background: rgba(255,255,255,.07);
  display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.5);
  font-size: .9rem; transition: var(--tr); border: 1px solid rgba(255,255,255,.08);
}
.footer-social a:hover { background: var(--accent); color: var(--white); border-color: var(--accent); }
.footer-links h4, .footer-formations h4, .footer-contact h4 {
  font-family: var(--font-head); font-size: .95rem; font-weight: 700; color: var(--white);
  margin-bottom: 20px; text-transform: uppercase; letter-spacing: 1px;
  padding-bottom: 12px; border-bottom: 2px solid rgba(249,115,22,.3);
}
.footer-links ul li, .footer-formations ul li { margin-bottom: 10px; }
.footer-links ul li a, .footer-formations ul li {
  font-size: .84rem; color: rgba(255,255,255,.45); transition: color .2s;
  display: flex; align-items: center; gap: 7px;
}
.footer-links ul li a::before { content: '›'; color: var(--accent); font-size: 1rem; }
.footer-links ul li a:hover { color: var(--accent); }
.footer-formations ul li { color: rgba(255,255,255,.45); }
.footer-formations ul li::before { content: '›'; color: var(--accent); font-size: 1rem; }
.footer-contact p { display: flex; align-items: center; gap: 10px; font-size: .84rem; color: rgba(255,255,255,.45); margin-bottom: 12px; }
.footer-contact i { color: var(--accent); width: 16px; flex-shrink: 0; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.07); padding: 24px 0;
  display: flex; justify-content: space-between; align-items: center;
  font-size: .8rem; color: rgba(255,255,255,.3); flex-wrap: wrap; gap: 8px;
}
.footer-bottom span { color: var(--accent); }

/* ════════════════════════════════════════
   CHAT WIDGET
════════════════════════════════════════ */
.chat-widget { position: fixed; bottom: 28px; right: 28px; z-index: 9999; }
.chat-toggle {
  width: 62px; height: 62px; border-radius: 50%; background: var(--gradient-acc);
  border: none; cursor: pointer; box-shadow: var(--sh-acc);
  display: flex; align-items: center; justify-content: center; color: var(--white);
  font-size: 1.5rem; transition: var(--tr); position: relative;
}
.chat-toggle:hover { transform: scale(1.1); filter: brightness(1.1); }
.chat-badge {
  position: absolute; top: -4px; right: -4px; background: var(--danger);
  color: var(--white); width: 21px; height: 21px; border-radius: 50%;
  font-size: .68rem; font-weight: 700; display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--dark); animation: pulse 2s infinite;
}
.chat-panel {
  position: absolute; bottom: 80px; right: 0;
  width: 370px; background: var(--white); border-radius: var(--r-xl);
  box-shadow: var(--sh-xl); display: none; flex-direction: column;
  overflow: hidden; border: 1px solid var(--border);
  animation: slideUp .3s ease; max-height: 540px;
}
.chat-panel.open { display: flex; }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.chat-header { background: var(--gradient); padding: 18px 20px; display: flex; align-items: center; gap: 12px; border-bottom: 2px solid rgba(249,115,22,.4); }
.chat-avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--gradient-acc); display: flex; align-items: center; justify-content: center; color: var(--white); font-size: 1.2rem; flex-shrink: 0; }
.chat-info { flex: 1; }
.chat-info strong { display: block; color: var(--white); font-size: .95rem; font-weight: 700; }
.chat-status { font-size: .72rem; color: rgba(255,255,255,.7); display: flex; align-items: center; gap: 5px; }
.chat-status i { font-size: .5rem; color: #4ade80; }
.chat-close-btn { background: none; border: none; color: rgba(255,255,255,.6); cursor: pointer; font-size: 1rem; padding: 4px; }
.chat-close-btn:hover { color: var(--white); }
.chat-messages { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; min-height: 280px; }
.chat-msg { display: flex; flex-direction: column; max-width: 85%; }
.chat-msg.bot { align-self: flex-start; }
.chat-msg.user { align-self: flex-end; }
.msg-bubble { padding: 10px 14px; border-radius: 14px; font-size: .875rem; line-height: 1.5; }
.chat-msg.bot .msg-bubble { background: var(--surface); color: var(--text); border-bottom-left-radius: 3px; border: 1px solid var(--border); }
.chat-msg.user .msg-bubble { background: var(--gradient-acc); color: var(--white); border-bottom-right-radius: 3px; }
.msg-time { font-size: .68rem; color: var(--text-light); margin-top: 4px; padding: 0 4px; }
.chat-msg.user .msg-time { text-align: right; }
.typing-indicator { display: flex; align-items: center; gap: 4px; padding: 10px 14px; background: var(--surface); border-radius: 14px; border-bottom-left-radius: 3px; width: fit-content; border: 1px solid var(--border); }
.typing-indicator span { width: 8px; height: 8px; border-radius: 50%; background: var(--text-light); animation: typing 1.4s infinite; }
.typing-indicator span:nth-child(2) { animation-delay: .2s; }
.typing-indicator span:nth-child(3) { animation-delay: .4s; }
@keyframes typing { 0%,60%,100% { transform: translateY(0); } 30% { transform: translateY(-6px); } }
.chat-input-area { padding: 12px 16px; border-top: 1px solid var(--border); display: flex; gap: 8px; background: var(--surface); }
#chatInput { flex: 1; padding: 10px 14px; border: 1.5px solid var(--border); border-radius: var(--r); font-family: var(--font-body); font-size: .875rem; outline: none; transition: var(--tr); background: var(--white); }
#chatInput:focus { border-color: var(--accent); }
#chatSend { width: 44px; height: 44px; border-radius: var(--r); background: var(--gradient-acc); border: none; cursor: pointer; color: var(--white); font-size: .9rem; display: flex; align-items: center; justify-content: center; transition: var(--tr); touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
#chatSend:hover { filter: brightness(1.1); transform: scale(1.05); }
.chat-toggle { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }

/* ════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════ */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-stats-panel { display: grid; grid-template-columns: repeat(2,1fr); max-width: 480px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-title { font-size: 3.4rem; }
  .formations-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .topbar { display: none; }
  .navbar.with-topbar { top: 0; }
  .hero { padding-top: 72px; }
  .hero-title { font-size: 2.6rem; }
  .hero-subtitle { font-size: .95rem; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .section-title { font-size: 2rem; }

  .nav-links { display: none; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0; background: var(--dark); padding: 16px 28px 24px; box-shadow: 0 20px 40px rgba(0,0,0,.4); border-top: 2px solid rgba(249,115,22,.3); gap: 0; }
  .nav-links.open { display: flex; }
  .nav-links a { color: rgba(255,255,255,.8); padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.07); border-radius: 0; }
  .nav-links a:last-child { border-bottom: none; }
  .nav-cta { background: var(--gradient-acc) !important; margin-top: 8px; border-radius: var(--r) !important; padding: 12px 0 !important; text-align: center; justify-content: center; }
  .nav-toggle { display: flex; }

  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,.07); }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-card-row { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-wrapper { padding: 32px 24px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .chat-panel { width: calc(100vw - 40px); right: -8px; }
  .carousel-item { flex: 0 0 260px; height: 220px; }
  .gallery-carousel-wrapper { padding: 0 20px; }
  .formations-tabs { gap: 6px; }
  .tab-btn { padding: 9px 16px; font-size: .78rem; }
  .hero::after { height: 48px; }
  .hero-stats-panel { display: none; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2rem; }
  .section-title { font-size: 1.75rem; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .chat-panel { width: calc(100vw - 32px); right: 0; }
  .carousel-item { flex: 0 0 240px; height: 200px; }
  .gallery-carousel-wrapper { padding: 0 12px; }
  .formations-grid { grid-template-columns: 1fr; }
  .faq-answer p { padding-left: 24px; }
}
