/* ==========================================================================
   YLANG PRO ANALYTICS - DESIGN SYSTEM & STYLES (100% RESPONSIVE)
   Charte graphique officielle : Bleu marine Ylang, Blanc épuré, Or Ylang
   ========================================================================== */

:root {
  /* Palette officielle */
  --navy-950: #051329;
  --navy-900: #0a2240; /* Bleu marine Ylang */
  --navy-850: #0e2d53;
  --navy-800: #143865;
  --navy-700: #1b4982;
  --navy-100: #e8f0fa;
  --navy-50:  #f3f7fd;

  --gold-500: #d49a37; /* Or Ylang */
  --gold-400: #e5a93c;
  --gold-300: #f5c463;
  --gold-600: #b88026;
  --gold-light: #fef8ee;

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-light: #f8fafc;

  --bg-body: #f8fafd;
  --bg-card: #ffffff;
  --bg-subtle: #f1f5f9;

  --border-light: #e2e8f0;
  --border-gold: rgba(212, 154, 55, 0.35);

  --shadow-sm: 0 1px 3px rgba(10, 34, 64, 0.06);
  --shadow-md: 0 4px 12px rgba(10, 34, 64, 0.08);
  --shadow-lg: 0 12px 28px rgba(10, 34, 64, 0.12);
  --shadow-gold: 0 8px 20px rgba(212, 154, 55, 0.25);

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

  --font-main: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset de base universel */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  width: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-body);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  width: 100%;
  overflow-x: hidden;
}

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

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  transition: var(--transition);
}

input, select, textarea {
  font-family: inherit;
  max-width: 100%;
}

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

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ==========================================================================
   BARRE SUPÉRIEURE (TOPBAR)
   ========================================================================== */
.header-topbar {
  background: var(--navy-900);
  color: #e2e8f0;
  font-size: 0.8rem;
  padding: 0.45rem 0;
  border-bottom: 2px solid var(--gold-500);
}

.topbar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.topbar-info {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.topbar-info span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn-topbar {
  color: var(--gold-300);
  font-size: 0.78rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.08);
  white-space: nowrap;
}
.btn-topbar:hover {
  background: rgba(212, 154, 55, 0.2);
  color: #fff;
}

/* ==========================================================================
   NAVIGATION PRINCIPALE & HEADER RESPONSIVE
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 990;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 2px 10px rgba(10, 34, 64, 0.04);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  gap: 1rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-symbol {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.logo-text-wrap {
  display: flex;
  flex-direction: column;
}

.logo-primary {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--navy-900);
  letter-spacing: 0.04em;
  line-height: 1.1;
  display: flex;
  align-items: baseline;
}

.logo-secondary {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.logo-sub {
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--gold-600);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* Liens bureau */
.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 1.5rem;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--navy-900);
  padding: 0.4rem 0;
  position: relative;
  transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
  color: var(--gold-600);
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2.5px;
  background: var(--gold-500);
  border-radius: 2px;
}

.nav-cta-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Bouton Hamburger Mobile */
.mobile-nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: #f1f5f9;
  color: var(--navy-900);
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-light);
  font-size: 1.25rem;
  flex-shrink: 0;
}
.mobile-nav-toggle:hover {
  background: #e2e8f0;
}

/* Tiroir de menu mobile (Drawer) */
.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  height: 100vh;
  background: #ffffff;
  z-index: 1100;
  box-shadow: -5px 0 25px rgba(5, 19, 41, 0.25);
  display: flex;
  flex-direction: column;
  transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
}

.mobile-nav-drawer.open {
  right: 0;
}

.mobile-drawer-header {
  padding: 1.25rem 1.5rem;
  background: var(--navy-900);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-drawer-links {
  list-style: none;
  padding: 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.mobile-drawer-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  color: var(--navy-900);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: var(--transition);
}

.mobile-drawer-link:hover, .mobile-drawer-link.active {
  background: var(--navy-50);
  color: var(--gold-600);
}

.mobile-drawer-footer {
  margin-top: auto;
  padding: 1.5rem;
  background: #f8fafc;
  border-top: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mobile-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 19, 41, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1050;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-drawer-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

/* Boutons d'action */
.btn-primary {
  background: linear-gradient(135deg, var(--gold-500) 0%, var(--gold-400) 100%);
  color: var(--navy-950);
  font-weight: 700;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: var(--shadow-gold);
  border: 1px solid rgba(255, 255, 255, 0.4);
  white-space: nowrap;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(212, 154, 55, 0.35);
}

.btn-outline {
  border: 1.5px solid var(--navy-900);
  color: var(--navy-900);
  font-weight: 600;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #fff;
  white-space: nowrap;
}
.btn-outline:hover {
  background: var(--navy-900);
  color: #fff;
}

.btn-outline-gold {
  border: 1.5px solid var(--gold-500);
  color: var(--gold-500);
  font-weight: 600;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(212, 154, 55, 0.05);
  white-space: nowrap;
}
.btn-outline-gold:hover {
  background: var(--gold-500);
  color: var(--navy-950);
}

/* ==========================================================================
   HERO SECTION RESPONSIVE
   ========================================================================== */
.hero-section {
  position: relative;
  background: radial-gradient(circle at 85% 20%, rgba(212, 154, 55, 0.12) 0%, transparent 45%),
              linear-gradient(145deg, #061933 0%, var(--navy-900) 50%, #0b2545 100%);
  color: #ffffff;
  padding: 4.5rem 0 5.5rem;
  overflow: hidden;
}

.hero-curve-gold {
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  z-index: 2;
}
.hero-curve-gold svg {
  display: block;
  width: 100%;
  height: 48px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 3rem;
  position: relative;
  z-index: 3;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  background: rgba(212, 154, 55, 0.15);
  border: 1px solid rgba(212, 154, 55, 0.4);
  color: var(--gold-300);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  width: fit-content;
}

.hero-title {
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.01em;
}

.hero-title .gold-accent {
  color: var(--gold-400);
}

.gold-accent-underline {
  position: relative;
  display: inline-block;
  color: var(--gold-400);
}
.gold-accent-underline::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 4px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 12' preserveAspectRatio='none'%3E%3Cpath d='M0,8 Q25,0 50,6 T100,4' fill='none' stroke='%23d49a37' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center bottom;
  background-size: 100% 6px;
}

.hero-description {
  font-size: clamp(0.95rem, 2vw, 1.12rem);
  color: #cbd5e1;
  line-height: 1.65;
}

.hero-cta-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-stats-row {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-top: 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  flex-wrap: wrap;
}

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

.stat-value {
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  font-weight: 800;
  color: var(--gold-400);
  line-height: 1;
}

.stat-label {
  font-size: 0.8rem;
  color: #94a3b8;
  margin-top: 0.25rem;
}

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

.hero-card-glow {
  position: absolute;
  inset: -15px;
  background: radial-gradient(circle, rgba(212, 154, 55, 0.2) 0%, transparent 70%);
  filter: blur(20px);
  z-index: 1;
}

.hero-preview-frame {
  position: relative;
  z-index: 2;
  background: #ffffff;
  border-radius: var(--radius-xl);
  padding: 1.25rem;
  box-shadow: 0 25px 50px -12px rgba(5, 19, 41, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-primary);
  width: 100%;
}

.preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 0.75rem;
}

.preview-badge {
  font-size: 0.75rem;
  background: var(--navy-50);
  color: var(--navy-900);
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
}

.preview-footer-note {
  background: var(--navy-900);
  color: #fff;
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.preview-footer-note .gold-text {
  color: var(--gold-400);
  font-weight: 700;
}

/* ==========================================================================
   SECTION FORMATIONS & THÉMATIQUES DU FLYER
   ========================================================================== */
.section-formations {
  padding: 4.5rem 0;
  background: #ffffff;
  position: relative;
}

.section-header-block {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 2.5rem;
}

.section-tag {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gold-600);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 0.4rem;
  display: inline-block;
}

.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.25rem);
  font-weight: 800;
  color: var(--navy-900);
  line-height: 1.25;
  margin-bottom: 0.75rem;
}

.section-subtitle {
  font-size: clamp(0.9rem, 2vw, 1.05rem);
  color: var(--text-secondary);
}

/* Grille des 7 cartes thématiques */
.thematics-container {
  margin-bottom: 3rem;
  width: 100%;
}

.thematics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  width: 100%;
}

.thematic-card-wide {
  grid-column: 1 / -1;
}

.thematic-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.4rem;
  box-shadow: 0 4px 16px rgba(10, 34, 64, 0.05);
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  transition: var(--transition);
  cursor: pointer;
  width: 100%;
}

.thematic-card:hover {
  transform: translateY(-4px);
  border-color: rgba(212, 154, 55, 0.5);
  box-shadow: 0 12px 28px rgba(10, 34, 64, 0.09);
}

.thematic-card.active-theme {
  border: 2px solid var(--gold-500);
  background: #fffdf9;
  box-shadow: 0 8px 24px rgba(212, 154, 55, 0.15);
}

.thematic-card.thematic-card-wide {
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  gap: 1.75rem;
  padding: 1.5rem 1.75rem;
}

.thematic-icon-wrapper {
  width: 68px;
  height: 68px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  flex-shrink: 0;
}

.thematic-card-wide .thematic-icon-wrapper {
  margin-bottom: 0;
}

.thematic-title {
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--navy-900);
  margin-bottom: 0.3rem;
  line-height: 1.3;
}

.thematic-subtitle {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.thematic-gold-bar {
  width: 40px;
  height: 3px;
  background: var(--gold-500);
  border-radius: 2px;
  margin: 0 auto 0.85rem;
}

.thematic-card-wide .thematic-gold-bar {
  margin: 0 0 0.75rem;
}

.thematic-desc {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 1rem;
}

.thematic-card-wide .thematic-desc {
  margin-bottom: 0;
  max-width: 650px;
}

.thematic-action-wrap {
  margin-top: auto;
  display: flex;
  align-items: center;
}

.thematic-card-wide .thematic-action-wrap {
  margin-top: 0;
  margin-left: auto;
}

.thematic-btn {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--navy-900);
  background: var(--navy-50);
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.thematic-card:hover .thematic-btn, .thematic-card.active-theme .thematic-btn {
  background: var(--gold-500);
  color: var(--navy-950);
}

/* ==========================================================================
   BARRE DE FILTRES ET RECHERCHE
   ========================================================================== */
.formations-filter-bar {
  background: var(--bg-body);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  width: 100%;
}

.filter-search-box {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-full);
  padding: 0.5rem 1rem;
  gap: 0.6rem;
  flex: 1;
  min-width: 240px;
}

.filter-search-box input {
  border: none;
  outline: none;
  font-size: 0.9rem;
  width: 100%;
  color: var(--text-primary);
}

.filter-select-group {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.filter-select {
  padding: 0.55rem 0.9rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-light);
  background: #ffffff;
  font-size: 0.85rem;
  color: var(--navy-900);
  font-weight: 500;
  outline: none;
  cursor: pointer;
}

.filter-status-count {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* ==========================================================================
   GRILLE DES COURS
   ========================================================================== */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: 1.75rem;
  width: 100%;
}

.course-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  width: 100%;
}

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

.course-card-top {
  padding: 1.4rem 1.4rem 1rem;
  border-bottom: 1px solid var(--border-light);
  background: linear-gradient(180deg, #ffffff 0%, #fafcff 100%);
}

.course-badges-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}

.badge-thematic { background: var(--navy-100); color: var(--navy-900); }
.badge-level { background: #f1f5f9; color: var(--text-secondary); }
.badge-seats { background: #ecfdf5; color: #059669; font-weight: 600; }
.badge-seats.low { background: #fef2f2; color: #dc2626; }

.course-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--navy-900);
  line-height: 1.35;
  margin-bottom: 0.4rem;
}

.course-pitch {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.course-card-body {
  padding: 1.2rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}

.course-meta-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.course-meta-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.course-meta-item svg {
  color: var(--gold-500);
  flex-shrink: 0;
}

.course-card-footer {
  padding: 1.2rem 1.4rem;
  background: var(--bg-body);
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.course-price-wrap {
  display: flex;
  flex-direction: column;
}

.price-main {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--navy-900);
  line-height: 1;
}

.price-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

.course-actions-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.btn-detail {
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  border: 1px solid var(--border-light);
  background: #ffffff;
  color: var(--navy-900);
}
.btn-detail:hover {
  border-color: var(--gold-500);
  color: var(--gold-600);
}

.btn-enroll-quick {
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  background: var(--navy-900);
  color: #ffffff;
}
.btn-enroll-quick:hover {
  background: var(--gold-500);
  color: var(--navy-950);
}

/* ==========================================================================
   SERVICES & CONSEIL
   ========================================================================== */
.section-services {
  padding: 4.5rem 0;
  background: var(--navy-900);
  color: #ffffff;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  width: 100%;
}

.service-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(212, 154, 55, 0.25);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: var(--transition);
}
.service-box:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--gold-500);
  transform: translateY(-4px);
}

.service-box-icon {
  width: 48px;
  height: 48px;
  background: rgba(212, 154, 55, 0.15);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-400);
  margin-bottom: 1.1rem;
}

.service-box-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.65rem;
}

.service-box-text {
  font-size: 0.9rem;
  color: #cbd5e1;
  line-height: 1.6;
}

/* ==========================================================================
   WIZARD, MODAL & FORMULAIRES
   ========================================================================== */
.wizard-header {
  background: var(--navy-900);
  color: #ffffff;
  padding: 1.5rem 1.75rem;
  border-bottom: 3px solid var(--gold-500);
}

.wizard-steps-indicator {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.25rem;
  position: relative;
  width: 100%;
}

.wizard-steps-indicator::before {
  content: "";
  position: absolute;
  top: 16px;
  left: 15px;
  right: 15px;
  height: 2px;
  background: rgba(255, 255, 255, 0.2);
  z-index: 1;
}

.step-indicator-item {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  background: var(--navy-900);
  padding: 0 0.35rem;
}

.step-bubble {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
}
.step-indicator-item.active .step-bubble {
  background: var(--gold-500);
  color: var(--navy-950);
}
.step-indicator-item.completed .step-bubble {
  background: #10b981;
  color: #ffffff;
}

.step-name {
  font-size: 0.72rem;
  color: #94a3b8;
  font-weight: 600;
}
.step-indicator-item.active .step-name {
  color: var(--gold-400);
}

.wizard-body {
  padding: 2rem;
  width: 100%;
}

.wizard-step-pane {
  display: none;
}
.wizard-step-pane.active {
  display: block;
}

.profile-selection-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  width: 100%;
}

.profile-card-option {
  border: 2px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  background: #ffffff;
}
.profile-card-option.selected {
  border-color: var(--gold-500);
  background: #fffdf9;
}

.profile-card-icon {
  width: 42px;
  height: 42px;
  background: var(--navy-100);
  color: var(--navy-900);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}
.profile-card-option.selected .profile-card-icon {
  background: var(--gold-500);
  color: var(--navy-950);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1.2rem;
  width: 100%;
}

.form-label {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--navy-900);
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.65rem 0.95rem;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  outline: none;
  background: #ffffff;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--gold-500);
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  width: 100%;
}

.participants-list-box {
  background: var(--bg-body);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.15rem;
}

.participant-entry-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 36px;
  gap: 0.65rem;
  align-items: center;
  margin-bottom: 0.65rem;
}

.summary-recap-box {
  background: #f8fafc;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.recap-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.45rem 0;
  border-bottom: 1px dashed var(--border-light);
  font-size: 0.9rem;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.recap-row.total-row {
  border-bottom: none;
  border-top: 2px solid var(--navy-900);
  margin-top: 0.5rem;
  padding-top: 0.75rem;
  font-size: 1.15rem;
  font-weight: 800;
}

.wizard-footer {
  padding: 1.25rem 2rem;
  background: #f8fafc;
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* ==========================================================================
   SUIVI DE DOSSIER (TIMELINE RESPONSIVE)
   ========================================================================== */
.client-search-card {
  max-width: 680px;
  margin: 0 auto 2.5rem;
  background: #ffffff;
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  text-align: center;
  width: 100%;
}

.dossier-timeline-wrap {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  margin-top: 1.5rem;
  width: 100%;
}

.timeline-steps {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin: 2rem 0 1.5rem;
  width: 100%;
}

.timeline-steps::before {
  content: "";
  position: absolute;
  top: 16px;
  left: 20px;
  right: 20px;
  height: 3px;
  background: #e2e8f0;
  z-index: 1;
}

.timeline-step-node {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  text-align: center;
  width: 110px;
}

.step-node-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
}
.timeline-step-node.active .step-node-circle {
  border-color: var(--gold-500);
  background: var(--gold-500);
  color: var(--navy-950);
}
.timeline-step-node.passed .step-node-circle {
  border-color: #10b981;
  background: #10b981;
  color: #fff;
}

.step-node-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: var(--navy-950);
  color: #94a3b8;
  padding: 4rem 0 2rem;
  border-top: 3px solid var(--gold-500);
  width: 100%;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
  width: 100%;
}

.footer-col-title {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1.1rem;
  position: relative;
  display: inline-block;
}
.footer-col-title::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--gold-500);
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.88rem;
}
.footer-links-list a:hover {
  color: var(--gold-400);
}

.footer-bottom {
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Modal Popup Styles */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 19, 41, 0.65);
  backdrop-filter: blur(5px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}
.modal-container {
  background: #ffffff;
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 840px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
}
.modal-header {
  padding: 1.5rem 1.75rem;
  background: linear-gradient(135deg, var(--navy-900) 0%, #0d3260 100%);
  color: #ffffff;
  position: relative;
}
.modal-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 34px;
  height: 34px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}
.modal-body {
  padding: 1.5rem 1.75rem;
  overflow-y: auto;
  flex: 1;
}
.modal-footer {
  padding: 1.25rem 1.75rem;
  background: #f8fafc;
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.modal-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
  background: var(--bg-body);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1rem;
  width: 100%;
}
.meta-box {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.meta-box-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
}
.meta-box-value {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--navy-900);
}

.detail-section-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1.5px solid var(--navy-100);
  padding-bottom: 0.35rem;
}
.detail-section-title svg { color: var(--gold-500); }

.objectives-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.objective-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.objective-item svg { color: #10b981; flex-shrink: 0; margin-top: 0.2rem; }

.program-modules-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.module-card {
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-left: 4px solid var(--gold-500);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
}
.module-card-header {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 0.25rem;
}
.module-card-body {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.sessions-cards-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.85rem;
}
.session-badge-card {
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.session-badge-card.active {
  border-color: var(--gold-500);
  background: #fffdfa;
}

.modal-pricing-box {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}
.modal-price-big {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--navy-900);
}
.modal-price-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.modal-footer-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

/* Toast Notification */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  max-width: 90vw;
}
.toast {
  background: var(--navy-900);
  color: #ffffff;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border-left: 4px solid var(--gold-500);
  font-size: 0.88rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

/* ==========================================================================
   BREAKPOINTS RESPONSIVE MAJEURS
   ========================================================================== */

/* TABLETTES ET PETITS ÉCRANS (<= 1024px) */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2.5rem;
  }
  .hero-content {
    align-items: center;
  }
  .hero-cta-bar {
    justify-content: center;
  }
  .hero-stats-row {
    justify-content: center;
  }
  .thematics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

/* SMARTPHONES ET TABLETTES EN PORTRAIT (<= 768px) */
@media (max-width: 768px) {
  /* Topbar */
  .header-topbar {
    padding: 0.35rem 0;
  }
  .topbar-content {
    justify-content: center;
    text-align: center;
    gap: 0.4rem;
  }
  .topbar-info {
    justify-content: center;
    gap: 0.75rem;
    font-size: 0.74rem;
  }
  .topbar-actions {
    justify-content: center;
  }

  /* Navigation Bar & Hamburger */
  .nav-links, .nav-cta-group {
    display: none; /* Remplacé par le tiroir mobile */
  }
  .mobile-nav-toggle {
    display: flex; /* Visible sur mobile */
  }

  /* Hero */
  .hero-section {
    padding: 2.5rem 0 3.5rem;
  }
  .hero-title {
    font-size: 1.85rem;
  }
  .hero-cta-bar {
    flex-direction: column;
    width: 100%;
  }
  .hero-cta-bar a, .hero-cta-bar button {
    width: 100%;
    justify-content: center;
  }
  .hero-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    text-align: center;
  }

  /* Thematics */
  .thematics-grid {
    grid-template-columns: 1fr;
    gap: 1.15rem;
  }
  .thematic-card.thematic-card-wide {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem 1.25rem;
  }
  .thematic-card-wide .thematic-gold-bar {
    margin: 0 auto 0.75rem;
  }
  .thematic-card-wide .thematic-action-wrap {
    margin: 1rem auto 0;
  }

  /* Filter Bar */
  .formations-filter-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .filter-search-box {
    width: 100%;
  }
  .filter-select-group {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }
  .filter-select {
    width: 100%;
  }
  .filter-status-count {
    grid-column: 1 / -1;
    text-align: center;
    margin-top: 0.35rem;
  }

  /* Courses Grid */
  .courses-grid {
    grid-template-columns: 1fr;
  }
  .course-card-footer {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  .course-actions-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    width: 100%;
  }
  .btn-detail, .btn-enroll-quick {
    text-align: center;
    justify-content: center;
  }

  /* Services Grid */
  .services-grid {
    grid-template-columns: 1fr;
  }

  /* Fiche Détails */
  .modal-meta-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }
  .modal-footer {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  .modal-pricing-box {
    justify-content: center;
  }
  .modal-footer-actions {
    display: flex;
    flex-direction: column;
    width: 100%;
  }
  .modal-footer-actions a, .modal-footer-actions button {
    width: 100%;
    justify-content: center;
  }

  /* Wizard */
  .profile-selection-grid {
    grid-template-columns: 1fr;
  }
  .form-grid-2 {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .participant-entry-row {
    grid-template-columns: 1fr;
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    padding: 0.75rem;
    margin-bottom: 0.75rem;
  }
  .wizard-footer {
    flex-direction: column-reverse;
    gap: 0.75rem;
  }
  .wizard-footer button {
    width: 100%;
    justify-content: center;
  }
  .wizard-steps-indicator::before {
    display: none;
  }
  .step-name {
    display: none; /* Ne garde que les bulles 1, 2, 3, 4 sur mobile pour éviter la surcharge */
  }

  /* Timeline Client Verticale sur Mobile */
  .timeline-steps {
    flex-direction: column;
    align-items: flex-start;
    padding-left: 2rem;
    gap: 1.25rem;
    margin: 1.5rem 0;
  }
  .timeline-steps::before {
    top: 8px;
    bottom: 8px;
    left: 15px;
    right: auto;
    width: 3px;
    height: auto;
  }
  .timeline-step-node {
    flex-direction: row;
    width: 100%;
    text-align: left;
    gap: 0.85rem;
    align-items: center;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-col-title::after {
    left: 50%;
    transform: translateX(-50%);
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* TRÈS PETITS SMARTPHONES (<= 480px) */
@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }
  .hero-title {
    font-size: 1.6rem;
  }
  .hero-stats-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .filter-select-group {
    grid-template-columns: 1fr;
  }
  .course-actions-wrap {
    grid-template-columns: 1fr;
  }
  .modal-meta-grid {
    grid-template-columns: 1fr;
  }
}
