/* ============================================================
   PLANETEGROUP — Design System Premium
   Palette : Vert nuit #0D2110 · Vert royal #3AAA35 · Vert vif #8DC63F · Bleu accent #29AAE1
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Syne:wght@600;700;800&display=swap');

/* ── VARIABLES ─────────────────────────────────────────── */
/*
   PALETTE OFFICIELLE PLANETE GROUP (d'après logo)
   ─────────────────────────────────────────────────
   Vert vif    : #8DC63F  (anneau supérieur logo)
   Vert foncé  : #3AAA35  (anneau inférieur logo)
   Bleu globe  : #29ABE2  (globe terrestre logo)
   Noir texte  : #231F20  (typographie logo)
   ─────────────────────────────────────────────────
*/
:root {
  /* ── Couleurs principales ── */
  --navy:       #0D2110;   /* Fond sombre vert nuit */
  --royal:      #3AAA35;   /* Vert foncé logo */
  --blue:       #8DC63F;   /* Vert vif logo */
  --blue-light: #F0F8E8;   /* Vert très clair */
  --white:      #FFFFFF;
  --gray-50:    #F6F9F2;
  --gray-100:   #EAF0E4;
  --gray-200:   #D0DFC8;
  --gray-400:   #7A9870;
  --gray-600:   #3D5C38;
  --gray-800:   #1A2A18;
  --success:    #3AAA35;
  --warning:    #F59E0B;
  --danger:     #EF4444;
  --info:       #29ABE2;   /* Bleu globe logo */

  /* ── Couleurs complémentaires ── */
  --accent:        #29ABE2;  /* Bleu globe logo */
  --accent-light:  #E3F5FD;
  --green-vivid:   #8DC63F;  /* Vert vif logo */
  --green-dark:    #3AAA35;  /* Vert foncé logo */
  --green-night:   #0D2110;  /* Vert nuit */
  --gold:          #C9962F;  /* Or premium */

  --gradient-main:   linear-gradient(135deg, #0D2110 0%, #3AAA35 65%, #5DBF38 100%);
  --gradient-blue:   linear-gradient(135deg, #3AAA35, #8DC63F);
  --gradient-accent: linear-gradient(135deg, #3AAA35, #29ABE2);
  --gradient-light:  linear-gradient(135deg, #F0F8E8, #F6F9F2);
  --shadow-sm:       0 1px 3px rgba(13,33,16,.08);
  --shadow-md:       0 4px 16px rgba(13,33,16,.12);
  --shadow-lg:       0 8px 32px rgba(13,33,16,.16);
  --shadow-xl:       0 20px 60px rgba(13,33,16,.20);
  --radius-sm:       8px;
  --radius-md:       12px;
  --radius-lg:       20px;
  --radius-xl:       28px;
  --transition:      all .25s cubic-bezier(.4,0,.2,1);
}

/* ── RESET & BASE ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden; /* empêche le débordement horizontal global */
}
body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden; /* empêche le débordement horizontal global */
  min-height: 100vh;  /* remplace height:100% qui bloquait le scroll */
}
/* Les pages dashboard ont besoin de height:100vh — géré par .dashboard-layout */
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ── TYPOGRAPHIE ───────────────────────────────────────── */
.font-display { font-family: 'Syne', sans-serif; }
h1,h2,h3,h4 { line-height: 1.2; font-weight: 700; }
.text-gradient {
  background: var(--gradient-blue);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── LAYOUT ────────────────────────────────────────────── */
.container     { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.container-sm  { max-width: 900px;  margin: 0 auto; padding: 0 24px; }
.section       { padding: 96px 0; }
.section-sm    { padding: 64px 0; }
.grid-2  { display: grid; grid-template-columns: repeat(2,1fr); gap: 32px; }
.grid-3  { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.grid-4  { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.flex    { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-12  { gap: 12px; }
.gap-16  { gap: 16px; }
.gap-24  { gap: 24px; }

/* ── BOUTONS ───────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: var(--radius-md);
  font-size: 15px; font-weight: 600; cursor: pointer;
  border: none; transition: var(--transition);
  white-space: nowrap; letter-spacing: .01em;
}
.btn-primary {
  background: var(--gradient-blue);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(141,198,63,.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(141,198,63,.45);
}
.btn-white {
  background: var(--white);
  color: var(--royal);
  box-shadow: var(--shadow-md);
}
.btn-white:hover { background: var(--gray-50); transform: translateY(-2px); }
.btn-outline {
  background: transparent;
  border: 2px solid rgba(255,255,255,.35);
  color: var(--white);
}
.btn-outline:hover { background: rgba(255,255,255,.1); border-color: var(--white); }
.btn-outline-blue {
  background: transparent;
  border: 2px solid var(--blue);
  color: var(--blue);
}
.btn-outline-blue:hover { background: var(--blue); color: var(--white); }
.btn-sm { padding: 8px 18px; font-size: 13px; }
.btn-lg { padding: 16px 36px; font-size: 17px; border-radius: var(--radius-lg); }
.btn-danger { background: var(--danger); color: #fff; }

/* ── CARDS ─────────────────────────────────────────────── */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-100);
  transition: var(--transition);
  overflow: hidden;
}
.card:hover { box-shadow: var(--shadow-xl); transform: translateY(-4px); }
.card-glass {
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius-lg);
}
.card-body { padding: 28px; }
.card-header { padding: 20px 28px; border-bottom: 1px solid var(--gray-100); font-weight: 600; font-size: 16px; display: flex; align-items: center; gap: 10px; }
.card-footer { padding: 16px 28px; border-top: 1px solid var(--gray-100); background: var(--gray-50); }

/* ── FORMULAIRES ───────────────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 14px; font-weight: 500; color: var(--gray-600); margin-bottom: 6px; }
.form-control {
  width: 100%; padding: 12px 16px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 15px; font-family: inherit;
  color: var(--gray-800); background: var(--white);
  transition: var(--transition);
  outline: none;
}
.form-control:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(141,198,63,.12);
}
.form-control::placeholder { color: var(--gray-400); }
select.form-control { appearance: none; cursor: pointer; }
.form-hint { font-size: 12px; color: var(--gray-400); margin-top: 4px; }

/* ── BADGES ────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 12px; border-radius: 99px;
  font-size: 12px; font-weight: 600; letter-spacing: .02em;
}
.badge-success  { background: #D1FAE5; color: #065F46; }
.badge-warning  { background: #FEF3C7; color: #92400E; }
.badge-danger   { background: #FEE2E2; color: #991B1B; }
.badge-info     { background: #E8F8E8; color: #1E40AF; }
.badge-secondary{ background: var(--gray-100); color: var(--gray-600); }
.badge-primary  { background: var(--blue-light); color: var(--royal); }

/* ── ALERTES ───────────────────────────────────────────── */
.alert {
  padding: 14px 18px; border-radius: var(--radius-sm);
  font-size: 14px; display: flex; align-items: center; gap: 10px;
  margin-bottom: 20px; border-left: 4px solid transparent;
}
.alert-success { background: #D1FAE5; color: #065F46; border-color: var(--success); }
.alert-error   { background: #FEE2E2; color: #991B1B; border-color: var(--danger); }
.alert-info    { background: #E8F8E8; color: #1E40AF; border-color: var(--info); }
.alert-warning { background: #FEF3C7; color: #92400E; border-color: var(--warning); }

/* ── NAVBAR ─ styles gérés dans includes/header.php ────── */
/* Les règles navbar sont inline dans header.php pour isolation */

/* ── HERO ──────────────────────────────────────────────── */
.hero {
  min-height: 100vh; position: relative;
  background: var(--gradient-main);
  display: flex; align-items: center; padding-top: 70px;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-image: url('../img/hero-students.jpg');
  background-size: cover; background-position: center;
  opacity: .12;
}
.hero-particles {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none;
}
.hero-particles::before, .hero-particles::after {
  content: ''; position: absolute; border-radius: 50%;
  background: rgba(141,198,63,.08);
}
.hero-particles::before { width: 600px; height: 600px; top: -200px; right: -100px; }
.hero-particles::after  { width: 400px; height: 400px; bottom: -150px; left: -100px; }
.hero-content { position: relative; z-index: 2; color: var(--white); }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(141,198,63,.15); border: 1px solid rgba(141,198,63,.3);
  color: var(--blue); padding: 6px 18px; border-radius: 99px;
  font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  margin-bottom: 28px;
}
.hero-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(36px, 5vw, 68px);
  font-weight: 800; line-height: 1.1;
  color: var(--white); margin-bottom: 24px;
}
.hero-title span { color: var(--blue); }
.hero-desc { font-size: 18px; color: rgba(255,255,255,.80); max-width: 600px; margin-bottom: 40px; line-height: 1.7; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 64px; }
.hero-stats { display: flex; gap: 40px; flex-wrap: wrap; }
.hero-stat-num { font-family: 'Syne', sans-serif; font-size: 36px; font-weight: 800; color: var(--white); }
.hero-stat-label { font-size: 13px; color: rgba(255,255,255,.60); margin-top: 2px; }
.hero-divider { width: 2px; background: rgba(255,255,255,.15); margin: 4px 0; }

/* ── SECTION HEADER ────────────────────────────────────── */
.section-eyebrow {
  display: inline-block; color: var(--blue); font-size: 13px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; margin-bottom: 12px;
}
.section-title {
  font-family: 'Syne', sans-serif; font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 700; color: var(--navy); margin-bottom: 18px; line-height: 1.2;
}
.section-desc { font-size: 17px; color: var(--gray-600); max-width: 600px; line-height: 1.7; }
.section-header-center { text-align: center; }
.section-header-center .section-desc { margin: 0 auto; }

/* ── SERVICE CARDS ─────────────────────────────────────── */
.service-card {
  background: var(--white); border-radius: var(--radius-lg); padding: 36px;
  box-shadow: var(--shadow-md); border: 1px solid var(--gray-100);
  transition: var(--transition); position: relative; overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--gradient-blue); transform: scaleX(0);
  transform-origin: left; transition: var(--transition);
}
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover { box-shadow: var(--shadow-xl); transform: translateY(-6px); }
.service-icon {
  width: 60px; height: 60px; border-radius: var(--radius-md);
  background: var(--blue-light); display: flex; align-items: center; justify-content: center;
  font-size: 26px; margin-bottom: 20px; color: var(--royal);
}
.service-card h3 { font-size: 20px; font-weight: 700; color: var(--navy); margin-bottom: 12px; }
.service-card p  { font-size: 15px; color: var(--gray-600); line-height: 1.7; }

/* ── STATS BAR ─────────────────────────────────────────── */
.stats-bar {
  background: var(--gradient-main); padding: 60px 0;
}
.stat-item { text-align: center; }
.stat-num {
  font-family: 'Syne', sans-serif; font-size: 48px; font-weight: 800;
  color: var(--white); display: block; line-height: 1;
}
.stat-label { font-size: 14px; color: rgba(255,255,255,.65); margin-top: 6px; display: block; }

/* ── FORMATION CARDS ───────────────────────────────────── */
.formation-card {
  background: var(--white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md); overflow: hidden;
  border: 1px solid var(--gray-100); transition: var(--transition);
}
.formation-card:hover { box-shadow: var(--shadow-xl); transform: translateY(-4px); }
.formation-card-img { height: 180px; object-fit: cover; width: 100%; }
.formation-card-body { padding: 24px; }
.formation-badge {
  display: inline-block; background: var(--gradient-blue);
  color: var(--white); font-size: 11px; font-weight: 700;
  padding: 4px 12px; border-radius: 99px; margin-bottom: 14px; letter-spacing: .04em;
}
.formation-card h3 { font-size: 18px; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.formation-card p  { font-size: 14px; color: var(--gray-600); margin-bottom: 16px; line-height: 1.6; }
.formation-meta    { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.formation-meta span { font-size: 13px; color: var(--gray-400); display: flex; align-items: center; gap: 5px; }
.formation-price   { font-size: 22px; font-weight: 800; color: var(--royal); margin-bottom: 16px; }
.formation-price small { font-size: 13px; font-weight: 500; color: var(--gray-400); }

/* ── DESTINATIONS ──────────────────────────────────────── */
.destination-card {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  height: 240px; cursor: pointer;
}
.destination-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.destination-card:hover img { transform: scale(1.08); }
.destination-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(13,33,16,.85) 0%, transparent 60%);
  display: flex; align-items: flex-end; padding: 24px;
}
.destination-name { font-family: 'Syne', sans-serif; font-size: 22px; font-weight: 700; color: var(--white); }
.destination-count { font-size: 13px; color: rgba(255,255,255,.70); margin-top: 4px; }
.destination-flag  { position: absolute; top: 16px; right: 16px; font-size: 28px; }

/* ── TÉMOIGNAGES ───────────────────────────────────────── */
.testimonial-card {
  background: var(--white); border-radius: var(--radius-lg); padding: 32px;
  box-shadow: var(--shadow-md); border: 1px solid var(--gray-100);
  position: relative; transition: var(--transition);
}
.testimonial-card:hover { box-shadow: var(--shadow-xl); transform: translateY(-4px); }
.testimonial-quote { font-size: 48px; color: var(--blue-light); line-height: 1; font-family: serif; margin-bottom: 16px; }
.testimonial-text  { font-size: 15px; color: var(--gray-600); line-height: 1.8; font-style: italic; margin-bottom: 24px; }
.testimonial-author { display: flex; align-items: center; gap: 14px; }
.testimonial-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--gradient-blue); display: flex; align-items: center;
  justify-content: center; color: var(--white); font-weight: 700; font-size: 16px;
}
.testimonial-name { font-weight: 700; font-size: 15px; color: var(--navy); }
.testimonial-role { font-size: 13px; color: var(--gray-400); }
.stars { color: #F59E0B; font-size: 14px; letter-spacing: 2px; margin-bottom: 16px; }

/* ── DASHBOARD SIDEBAR ─────────────────────────────────── */
/* ── DASHBOARD LAYOUT ──────────────────────────────────── */
.dashboard-layout {
  display: flex;
  height: 100vh;
  overflow: hidden;
  background: var(--gray-50);
}

/* ── SIDEBAR ────────────────────────────────────────────── */
.sidebar {
  width: 260px;
  height: 100vh;
  background: var(--navy);
  position: fixed;
  top: 0; left: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: var(--transition);
  box-shadow: 2px 0 20px rgba(0,0,0,.20);
}
.sidebar-brand {
  padding: 20px 20px 16px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  display: flex; align-items: center; gap: 12px;
  flex-shrink: 0;
}
.sidebar-brand img  { height: 36px; }
.sidebar-brand span { font-family: 'Syne', sans-serif; font-size: 16px; font-weight: 700; color: var(--white); }

/* scrollable nav zone */
.sidebar-nav {
  flex: 1;
  padding: 12px 12px 8px;
  overflow-y: auto;
  overflow-x: hidden;
  min-height: 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.15) transparent;
}
.sidebar-nav::-webkit-scrollbar { width: 4px; }
.sidebar-nav::-webkit-scrollbar-track { background: transparent; }
.sidebar-nav::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,.18);
  border-radius: 99px;
}
.sidebar-nav::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,.35); }

.sidebar-section-label {
  font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: rgba(255,255,255,.30); padding: 8px 10px; margin-top: 8px;
}
.sidebar-link {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; border-radius: var(--radius-sm);
  color: rgba(255,255,255,.65); font-size: 14px; font-weight: 500;
  transition: var(--transition); margin-bottom: 2px;
  white-space: nowrap;
}
.sidebar-link:hover { background: rgba(141,198,63,.15); color: var(--white); }
.sidebar-link.active { background: rgba(141,198,63,.22); color: var(--blue); }
.sidebar-link svg, .sidebar-link .icon { width: 18px; height: 18px; flex-shrink: 0; }
.sidebar-badge {
  margin-left: auto; background: var(--blue); color: var(--white);
  font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 99px;
  flex-shrink: 0;
}

/* pinned footer */
.sidebar-footer {
  padding: 14px 12px;
  border-top: 1px solid rgba(255,255,255,.08);
  flex-shrink: 0;
  background: var(--navy);
}
.sidebar-user {
  display: flex; align-items: center; gap: 12px;
  padding: 10px; border-radius: var(--radius-sm);
  color: rgba(255,255,255,.80);
  transition: var(--transition);
}
.sidebar-user:hover { background: rgba(255,255,255,.05); }
.sidebar-user-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--gradient-blue);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px; color: var(--white);
  flex-shrink: 0;
}
.sidebar-user-name { font-size: 13px; font-weight: 600; color: var(--white); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-user-role { font-size: 11px; color: rgba(255,255,255,.45); }

/* ── DASHBOARD MAIN ────────────────────────────────────── */
.dashboard-main {
  margin-left: 260px;
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--gray-200) transparent;
}
.dashboard-main::-webkit-scrollbar { width: 6px; }
.dashboard-main::-webkit-scrollbar-track { background: var(--gray-50); }
.dashboard-main::-webkit-scrollbar-thumb { background: var(--gray-200); border-radius: 99px; }
.dashboard-main::-webkit-scrollbar-thumb:hover { background: var(--gray-400); }

.topbar {
  height: 64px; background: var(--white);
  border-bottom: 1px solid var(--gray-100);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 28px;
  position: sticky; top: 0; z-index: 50;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}
.topbar-title { font-family: 'Syne', sans-serif; font-size: 20px; font-weight: 700; color: var(--navy); }
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.topbar-notif {
  position: relative; width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm); background: var(--gray-50);
  cursor: pointer; transition: var(--transition); color: var(--gray-600);
}
.topbar-notif:hover { background: var(--blue-light); color: var(--royal); }
.notif-dot {
  position: absolute; top: 6px; right: 6px;
  width: 8px; height: 8px; background: var(--danger); border-radius: 50%;
}
.dashboard-content { padding: 28px; flex: 1; min-height: 0; }

/* ── KPI CARDS ─────────────────────────────────────────── */
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin-bottom: 28px; }
.kpi-card {
  background: var(--white); border-radius: var(--radius-lg); padding: 24px;
  border: 1px solid var(--gray-100); box-shadow: var(--shadow-sm);
  transition: var(--transition); position: relative; overflow: hidden;
}
.kpi-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.kpi-card::after {
  content: ''; position: absolute; top: 0; right: 0;
  width: 60px; height: 60px; border-radius: 0 var(--radius-lg) 0 60px;
}
.kpi-card.blue::after  { background: rgba(141,198,63,.08); }
.kpi-card.green::after { background: rgba(16,185,129,.08); }
.kpi-card.amber::after { background: rgba(245,158,11,.08); }
.kpi-card.royal::after { background: rgba(58,170,53,.08); }
.kpi-icon {
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; margin-bottom: 16px;
}
.kpi-card.blue  .kpi-icon { background: rgba(141,198,63,.12);  color: var(--blue); }
.kpi-card.green .kpi-icon { background: rgba(16,185,129,.12);  color: var(--success); }
.kpi-card.amber .kpi-icon { background: rgba(245,158,11,.12);  color: var(--warning); }
.kpi-card.royal .kpi-icon { background: rgba(58,170,53,.12);   color: var(--royal); }
.kpi-num   { font-family: 'Syne', sans-serif; font-size: 32px; font-weight: 800; color: var(--navy); }
.kpi-label { font-size: 13px; color: var(--gray-400); margin-top: 4px; }
.kpi-trend { font-size: 12px; font-weight: 600; margin-top: 8px; display: flex; align-items: center; gap: 4px; }
.kpi-trend.up   { color: var(--success); }
.kpi-trend.down { color: var(--danger); }

/* ── PROGRESS BAR ──────────────────────────────────────── */
.progress { height: 8px; background: var(--gray-100); border-radius: 99px; overflow: hidden; }
.progress-bar { height: 100%; background: var(--gradient-blue); border-radius: 99px; transition: width .6s ease; }
.progress-label { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 6px; }

/* ── TIMELINE ──────────────────────────────────────────── */
.timeline { position: relative; padding-left: 28px; }
.timeline::before { content: ''; position: absolute; left: 9px; top: 0; bottom: 0; width: 2px; background: var(--gray-100); }
.timeline-item { position: relative; padding-bottom: 28px; }
.timeline-dot {
  position: absolute; left: -28px; top: 4px;
  width: 20px; height: 20px; border-radius: 50%;
  border: 3px solid var(--white); box-shadow: 0 0 0 3px var(--gray-200);
  background: var(--gray-200);
}
.timeline-dot.done   { background: var(--success); box-shadow: 0 0 0 3px rgba(16,185,129,.2); }
.timeline-dot.active { background: var(--blue);    box-shadow: 0 0 0 3px rgba(141,198,63,.2); }
.timeline-title { font-weight: 600; font-size: 15px; color: var(--navy); margin-bottom: 4px; }
.timeline-desc  { font-size: 13px; color: var(--gray-600); }
.timeline-date  { font-size: 12px; color: var(--gray-400); margin-top: 4px; }

/* ── TABLE ─────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
table { width: 100%; border-collapse: collapse; background: var(--white); }
thead th {
  background: var(--navy); color: rgba(255,255,255,.80);
  padding: 14px 18px; font-size: 12px; font-weight: 600;
  text-align: left; letter-spacing: .06em; text-transform: uppercase;
}
tbody td { padding: 14px 18px; font-size: 14px; border-bottom: 1px solid var(--gray-100); }
tbody tr:hover { background: var(--gray-50); }
tbody tr:last-child td { border-bottom: none; }

/* ── UPLOAD ZONE ───────────────────────────────────────── */
.upload-zone {
  border: 2px dashed var(--gray-200); border-radius: var(--radius-lg);
  padding: 48px 24px; text-align: center; cursor: pointer;
  transition: var(--transition); background: var(--gray-50);
}
.upload-zone:hover, .upload-zone.dragover {
  border-color: var(--blue); background: var(--blue-light);
}
.upload-icon { font-size: 48px; margin-bottom: 16px; }
.upload-text  { font-size: 16px; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.upload-sub   { font-size: 13px; color: var(--gray-400); }

/* ── PAGINATION ────────────────────────────────────────── */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 24px; }
.page-btn {
  width: 38px; height: 38px; display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm); font-size: 14px; font-weight: 500;
  border: 1px solid var(--gray-200); color: var(--gray-600); transition: var(--transition);
}
.page-btn:hover  { background: var(--blue-light); color: var(--royal); border-color: var(--blue); }
.page-btn.active { background: var(--gradient-blue); color: var(--white); border-color: transparent; }

/* ── MODAL ─────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(13,33,16,.6);
  z-index: 2000; display: flex; align-items: center; justify-content: center;
  padding: 20px; backdrop-filter: blur(4px);
}
.modal {
  background: var(--white); border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl); width: 100%; max-width: 560px;
  max-height: 90vh; overflow-y: auto;
}
.modal-header { padding: 24px 28px; border-bottom: 1px solid var(--gray-100); display: flex; align-items: center; justify-content: space-between; }
.modal-title  { font-family: 'Syne', sans-serif; font-size: 20px; font-weight: 700; color: var(--navy); }
.modal-close  { width: 36px; height: 36px; border: none; background: var(--gray-100); border-radius: var(--radius-sm); cursor: pointer; font-size: 18px; color: var(--gray-600); display: flex; align-items: center; justify-content: center; transition: var(--transition); }
.modal-close:hover { background: var(--danger); color: var(--white); }
.modal-body   { padding: 28px; }
.modal-footer { padding: 20px 28px; border-top: 1px solid var(--gray-100); display: flex; gap: 12px; justify-content: flex-end; }

/* ── AUTH PAGE ─────────────────────────────────────────── */
.auth-page {
  min-height: 100vh; background: var(--gradient-main);
  display: flex; align-items: center; justify-content: center;
  padding: 24px; position: relative; overflow: hidden;
}
.auth-page::before {
  content: ''; position: absolute; width: 600px; height: 600px;
  background: rgba(141,198,63,.06); border-radius: 50%;
  top: -200px; right: -100px;
}
.auth-card {
  width: 100%; max-width: 460px; background: var(--white);
  border-radius: var(--radius-xl); box-shadow: var(--shadow-xl);
  padding: 48px; position: relative; z-index: 2;
}
.auth-logo { text-align: center; margin-bottom: 32px; }
.auth-logo img { height: 52px; margin: 0 auto 12px; }
.auth-logo h1 { font-family: 'Syne', sans-serif; font-size: 22px; font-weight: 800; color: var(--navy); }
.auth-logo p  { font-size: 14px; color: var(--gray-400); }
.auth-title { font-family: 'Syne', sans-serif; font-size: 26px; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.auth-subtitle { font-size: 14px; color: var(--gray-400); margin-bottom: 28px; }
.auth-divider { text-align: center; margin: 20px 0; color: var(--gray-400); font-size: 13px; position: relative; }
.auth-divider::before, .auth-divider::after { content: ''; position: absolute; top: 50%; width: 40%; height: 1px; background: var(--gray-200); }
.auth-divider::before { left: 0; }
.auth-divider::after  { right: 0; }

/* ── FOOTER ────────────────────────────────────────────── */
.footer {
  background: var(--navy); color: rgba(255,255,255,.75);
  padding: 72px 0 32px;
}
.footer-brand img  { height: 44px; margin-bottom: 16px; }
.footer-brand p    { font-size: 14px; line-height: 1.7; max-width: 280px; }
.footer-title      { font-family: 'Syne', sans-serif; font-size: 14px; font-weight: 700; color: var(--white); margin-bottom: 20px; letter-spacing: .06em; text-transform: uppercase; }
.footer-links      { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a    { font-size: 14px; color: rgba(255,255,255,.60); transition: var(--transition); }
.footer-links a:hover { color: var(--blue); padding-left: 4px; }
.footer-bottom     { border-top: 1px solid rgba(255,255,255,.08); padding-top: 28px; margin-top: 48px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-bottom p   { font-size: 13px; color: rgba(255,255,255,.40); }

/* ── WHATSAPP FLOAT ────────────────────────────────────── */
.whatsapp-float {
  position: fixed; bottom: 28px; right: 28px; z-index: 900;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; box-shadow: 0 6px 24px rgba(37,211,102,.40);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; cursor: pointer; transition: var(--transition);
  text-decoration: none;
}
.whatsapp-float:hover { transform: scale(1.1) translateY(-3px); box-shadow: 0 12px 32px rgba(37,211,102,.5); }

/* ── Règles responsive globales supplémentaires ─────────── */
/* padding-top navbar : 62px depuis header.php refait */
.pg-padtop { padding-top: 62px; }
/* grille form 2 colonnes → 1 sur mobile */
@media(max-width:600px){
  .consult-form-grid, .f-form-grid { grid-template-columns:1fr !important; }
  .f-price-row { flex-direction:column; align-items:flex-start; gap:8px; }
}
/* tables overflow partout */
.table-responsive { overflow-x:auto; -webkit-overflow-scrolling:touch; }
/* textes longs */
.text-break { overflow-wrap:break-word; word-break:break-word; }

/* ══════════════════════════════════════════════════════════
   RESPONSIVE COMPLET — Mobile First
   ══════════════════════════════════════════════════════════ */

/* ── 1024px : Tablette ──────────────────────────────────── */
@media (max-width: 1024px) {
  .container  { padding: 0 20px; }
  .grid-4     { grid-template-columns: repeat(2,1fr); gap: 16px; }
  .grid-3     { grid-template-columns: repeat(2,1fr); gap: 20px; }
  .navbar-nav { display: none; }
  .hamburger  { display: flex; }
  .section    { padding: 72px 0; }
  .kpi-grid   { grid-template-columns: repeat(3,1fr); }
  .topbar     { padding: 0 20px; }
}

/* ── 768px : Mobile ─────────────────────────────────────── */
@media (max-width: 768px) {

  /* ── Base ── */
  html, body { overflow-x: hidden; }
  .container  { padding: 0 16px; max-width: 100%; }
  .section    { padding: 52px 0; }
  .section-sm { padding: 36px 0; }
  .grid-2,.grid-3,.grid-4 { grid-template-columns: 1fr; gap: 16px; }

  /* ── Navbar ── */
  .navbar {
    padding: 0 16px;
    height: 60px;
    max-width: 100vw;
    overflow: visible;
  }
  .navbar-brand img { height: 48px; }
  .navbar-nav  { display: none; }
  .navbar-actions { display: none; }
  .hamburger   { display: flex; z-index: 1001; position: relative; }

  /* Menu ouvert */
  .navbar-nav.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 60px; left: 0; right: 0;
    background: #0D2110;
    padding: 8px 16px 16px;
    gap: 2px;
    z-index: 1000;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0,0,0,.5);
    border-top: 1px solid rgba(255,255,255,.1);
  }
  .navbar-nav.open .nav-link {
    padding: 13px 16px;
    font-size: 15px;
    border-radius: 8px;
    color: rgba(255,255,255,.9);
    border-bottom: 1px solid rgba(255,255,255,.06);
    display: block;
  }
  .navbar-nav.open .nav-link:last-child { border-bottom: none; }

  /* Boutons dans menu mobile */
  .navbar-nav.open::after {
    content: '';
    display: block;
    height: 16px;
  }

  /* ── Hero ── */
  .hero {
    min-height: 100svh;
    padding-top: 60px;
    padding-bottom: 40px;
    overflow: hidden;
  }
  .hero-content { padding: 32px 0 20px; }
  .hero-eyebrow { font-size: 11px; padding: 5px 14px; margin-bottom: 18px; }
  .hero-title {
    font-size: clamp(24px, 7vw, 38px);
    margin-bottom: 14px;
    word-break: break-word;
  }
  .hero-desc {
    font-size: 15px;
    margin-bottom: 24px;
    max-width: 100%;
  }
  .hero-actions {
    flex-direction: column;
    gap: 10px;
    margin-bottom: 32px;
  }
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
  .hero-stats {
    gap: 20px;
    flex-wrap: wrap;
  }
  .hero-stat-num   { font-size: 26px; }
  .hero-stat-label { font-size: 12px; }
  .hero-divider    { display: none; }
  .hero-particles::before { width: 300px; height: 300px; }
  .hero-particles::after  { width: 200px; height: 200px; }

  /* ── Section headers ── */
  .section-title { font-size: clamp(22px, 6vw, 34px); }
  .section-desc  { font-size: 15px; }

  /* ── Services ── */
  .service-card { padding: 22px; }
  .service-card h3 { font-size: 17px; }
  .service-card p  { font-size: 14px; }
  .service-icon { width: 50px; height: 50px; font-size: 22px; margin-bottom: 14px; }

  /* ── Formations ── */
  .formation-card-img  { height: 160px; }
  .formation-card-body { padding: 18px; }
  .formation-card h3   { font-size: 16px; }
  .formation-price     { font-size: 20px; }
  .formation-meta      { gap: 8px; }
  .formation-meta span { font-size: 12px; }

  /* ── Destinations : 2 colonnes ── */
  .destination-grid {
    grid-template-columns: repeat(2,1fr) !important;
    gap: 12px !important;
  }
  .destination-card    { height: 160px; border-radius: 12px; }
  .destination-name    { font-size: 16px; }
  .destination-count   { font-size: 12px; }
  .destination-flag    { font-size: 20px; top: 10px; right: 10px; }
  .destination-overlay { padding: 14px; }

  /* ── Stats bar ── */
  .stats-bar { padding: 36px 0; }
  .stat-num  { font-size: 36px; }
  .stat-label { font-size: 13px; }

  /* ── Témoignages ── */
  .testimonial-card { padding: 20px; }
  .testimonial-text { font-size: 14px; }
  .testimonial-quote { font-size: 40px; }

  /* ── Footer ── */
  .footer .grid-4 { grid-template-columns: 1fr !important; gap: 28px !important; }
  .footer-bottom  { flex-direction: column !important; text-align: center; gap: 12px; }
  .footer-bottom > div { flex-wrap: wrap; justify-content: center; gap: 12px; }

  /* ── Auth ── */
  .auth-wrap { padding: 16px; }
  .auth-card { padding: 24px 18px; border-radius: 16px; }

  /* ── Boutons ── */
  .btn    { padding: 11px 20px; font-size: 14px; }
  .btn-sm { padding: 7px 14px;  font-size: 12px; }
  .btn-lg { padding: 13px 24px; font-size: 15px; }

  /* ── Dashboard sidebar ── */
  .dashboard-layout { overflow: hidden; }
  .sidebar {
    transform: translateX(-100%);
    width: 280px;
    box-shadow: none;
    position: fixed;
    z-index: 200;
  }
  .sidebar.open {
    transform: translateX(0);
    box-shadow: 6px 0 32px rgba(0,0,0,.5);
  }
  .sidebar-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0,0,0,.55);
    z-index: 199;
    backdrop-filter: blur(2px);
  }
  .sidebar-overlay.show { display: block; }
  .dashboard-main   { margin-left: 0; height: 100vh; overflow-y: auto; overflow-x: hidden; }
  .dashboard-content { padding: 16px; overflow-x: hidden; }
  .topbar { padding: 0 16px; height: 56px; }
  .topbar-title { font-size: 15px; }
  .topbar-actions { gap: 6px; }
  .topbar-actions > a.btn { display: none; }

  /* ── KPI ── */
  .kpi-grid { grid-template-columns: repeat(2,1fr); gap: 12px; }
  .kpi-num  { font-size: 26px; }
  .kpi-card { padding: 16px; }

  /* ── Grilles dashboard inline ── */
  .dashboard-content [style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }

  /* ── Tables ── */
  .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 8px; }
  table       { min-width: 540px; }
  th, td      { font-size: 12px; padding: 10px 12px; white-space: nowrap; }

  /* ── Cards ── */
  .card { border-radius: 12px; }
  .card-header { padding: 14px 16px; font-size: 14px; }

  /* ── WhatsApp ── */
  .whatsapp-float { bottom: 16px; right: 16px; width: 50px; height: 50px; font-size: 22px; }

  /* ── Auto-évaluation ── */
  .eval-hero   { padding: 60px 0 44px; }
  .eval-wrap   { padding: 1rem .9rem 4rem; }
  .score-grid  { grid-template-columns: repeat(2,1fr); }
  .ns-opts     { grid-template-columns: 1fr; gap: .5rem; }
  .mr-items    { grid-template-columns: 1fr; }
  .cta-btns    { flex-direction: column; }
  .cta-btns a, .cta-btns button { width: 100%; justify-content: center; text-align: center; }
  .res-top     { flex-direction: column; gap: 1rem; }
  .intro-card  { padding: 1.2rem; }
  .q-card      { padding: 1rem 1.1rem; }
  .nav-row     { flex-wrap: wrap; gap: .6rem; }

  /* ── Ressources gratuites ── */
  .videos-grid { grid-template-columns: 1fr; gap: 14px; }
  .guides-grid { grid-template-columns: 1fr; gap: 10px; }
  .yt-banner   { flex-direction: column; text-align: center; gap: 1rem; }
  .yt-btn      { margin-left: 0; width: 100%; justify-content: center; }
  .cat-filter  { gap: 6px; }
  .cat-btn     { padding: 6px 12px; font-size: 12px; }

  /* ── Pages formations / détail ── */
  .f-meta { flex-wrap: wrap; gap: 6px; }
  .f-hero-price { font-size: 24px; }
}

/* ── 480px ──────────────────────────────────────────────── */
@media (max-width: 480px) {
  .container { padding: 0 14px; }
  .section   { padding: 44px 0; }

  /* Navbar */
  .navbar-brand img { height: 40px; }

  /* Hero */
  .hero { padding-top: 60px; padding-bottom: 32px; }
  .hero-title { font-size: clamp(21px, 8vw, 30px); }
  .hero-stats { gap: 16px; }
  .hero-stat-num { font-size: 24px; }

  /* Destinations : 1 colonne */
  .destination-grid { grid-template-columns: 1fr !important; }
  .destination-card { height: 180px; }

  /* KPI */
  .kpi-grid { grid-template-columns: 1fr 1fr; gap: 10px; }

  /* Formations */
  .formation-price { font-size: 18px; }

  /* Dashboard */
  .topbar-title { font-size: 14px; }
  .dashboard-content { padding: 12px; }

  /* Boutons */
  .btn    { padding: 10px 18px; font-size: 13px; }
  .btn-lg { padding: 12px 20px; font-size: 14px; }

  /* Auto-éval */
  .sec-title  { font-size: 1.1rem; }
  .score-grid { grid-template-columns: 1fr 1fr; }

  /* Stats bar */
  .stats-bar .grid-4 { grid-template-columns: repeat(2,1fr); gap: 24px; }
  .stat-num  { font-size: 32px; }
}

/* ── 360px ──────────────────────────────────────────────── */
@media (max-width: 360px) {
  html { font-size: 14px; }
  .container { padding: 0 12px; }
  .hero-title { font-size: 20px; }
  .navbar { padding: 0 12px; }
  .kpi-grid { grid-template-columns: 1fr; }
  .formation-card-body { padding: 14px; }
  .card-header { padding: 12px 14px; }
  .destination-card { height: 160px; }
  .stats-bar .grid-4 { grid-template-columns: repeat(2,1fr); gap: 16px; }
}

/* ── ANIMATIONS ────────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: .5; }
}
.animate-fade-in-up { animation: fadeInUp .6s ease both; }
.animate-fade-in    { animation: fadeIn .4s ease both; }
.delay-100 { animation-delay: .1s; }
.delay-200 { animation-delay: .2s; }
.delay-300 { animation-delay: .3s; }
.delay-400 { animation-delay: .4s; }

/* ── UTILITIES ─────────────────────────────────────────── */
.text-center  { text-align: center; }
.text-right   { text-align: right; }
.text-navy    { color: var(--navy); }
.text-blue    { color: var(--blue); }
.text-muted   { color: var(--gray-400); }
.text-white   { color: var(--white); }
.text-success { color: var(--success); }
.text-danger  { color: var(--danger); }
.text-warning { color: var(--warning); }
.fw-600  { font-weight: 600; }
.fw-700  { font-weight: 700; }
.fw-800  { font-weight: 800; }
.fs-sm   { font-size: 13px; }
.fs-lg   { font-size: 18px; }
.mb-0    { margin-bottom: 0; }
.mb-8    { margin-bottom: 8px; }
.mb-16   { margin-bottom: 16px; }
.mb-24   { margin-bottom: 24px; }
.mb-32   { margin-bottom: 32px; }
.mt-8    { margin-top: 8px; }
.mt-16   { margin-top: 16px; }
.mt-24   { margin-top: 24px; }
.mt-32   { margin-top: 32px; }
.p-0     { padding: 0; }
.w-full  { width: 100%; }
.d-none  { display: none; }
.d-flex  { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.rounded { border-radius: var(--radius-md); }
.rounded-full { border-radius: 99px; }
.bg-light { background: var(--gray-50); }
.bg-navy  { background: var(--navy); }
.border   { border: 1px solid var(--gray-100); }
