/* ============================================
   CLARTÉ COMPÉTENCE — Design System
   Partenaire du réseau Formexa
   ============================================ */

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

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

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: #2C3E50;
  background-color: #FFFFFF;
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
}

/* ---------- CSS Variables ---------- */
:root {
  --primary: #1a56db;
  --primary-light: #5e88e5;
  --primary-dark: #1444af;
  --secondary: #0e9f6e;
  --secondary-light: #56bb99;
  --secondary-dark: #0b875d;
  --accent: #0b875d;
  --white: #FFFFFF;
  --bg-alt: #F5F7FA;
  --bg-dark: #1444af;
  --text-main: #37474F;
  --text-secondary: #607D8B;
  --text-light: #90A4AE;
  --border: #E2E8F0;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --shadow-xl: 0 16px 48px rgba(0,0,0,0.15);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1200px;
  --header-height: 80px;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'DM Serif Display', serif;
  color: var(--primary);
  line-height: 1.2;
  font-weight: 400;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 1.8rem; margin-bottom: 1rem; }
h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }
h4 { font-size: 1.1rem; }

p { margin-bottom: 1rem; }

.text-secondary { color: var(--text-secondary); }
.text-light { color: var(--text-light); }
.text-white { color: var(--white); }
.text-center { text-align: center; }

.lead {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 700px;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-header h2 {
  margin-bottom: 1rem;
}

.section-header .lead {
  margin: 0 auto;
}

.badge-label {
  display: inline-block;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--secondary);
  background: rgba(25, 118, 210, 0.1);
  padding: 0.35rem 1rem;
  border-radius: 50px;
  margin-bottom: 1rem;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

.section-alt {
  background-color: var(--bg-alt);
}

.section-dark {
  background-color: var(--bg-dark);
  color: var(--white);
}

.section-dark h2,
.section-dark h3 {
  color: var(--white);
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }
.grid-6 { grid-template-columns: repeat(2, 1fr); }

@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-6 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-6 { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .grid-6 { grid-template-columns: repeat(3, 1fr); }
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Header & Navigation ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.header .container,
.header .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'DM Serif Display', serif;
  font-size: 1.35rem;
  color: var(--primary);
  white-space: nowrap;
}

.logo-icon,
.logo-mark {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.1rem;
}

.logo-text {
  font-family: 'DM Serif Display', serif;
  font-size: 1.35rem;
  color: var(--primary);
}

.nav,
.nav-desktop {
  display: none;
  align-items: center;
  gap: 0.25rem;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav a,
.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  white-space: nowrap;
  text-decoration: none;
}

.nav a:hover,
.nav a.active,
.nav-link:hover,
.nav-link.active {
  color: var(--primary);
  background: var(--bg-alt);
}

.nav-cta {
  margin-left: 0.5rem;
}

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

.burger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0.5rem;
  background: none;
  z-index: 1001;
}

.burger span,
.burger-line {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: var(--transition);
}

.burger.active span:nth-child(1),
.burger.active .burger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger.active span:nth-child(2),
.burger.active .burger-line:nth-child(2) {
  opacity: 0;
}

.burger.active span:nth-child(3),
.burger.active .burger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 380px;
  height: 100vh;
  background: var(--white);
  z-index: 999;
  padding: 6rem 2rem 2rem;
  transition: var(--transition-slow);
  box-shadow: var(--shadow-xl);
  overflow-y: auto;
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu-inner {
  height: 100%;
}

.mobile-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-menu a,
.mobile-nav-list a,
.mobile-nav-link {
  display: block;
  padding: 0.9rem 0;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-main);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
  text-decoration: none;
}

.mobile-menu a:hover,
.mobile-nav-list a:hover,
.mobile-nav-link:hover {
  color: var(--secondary);
  padding-left: 0.5rem;
}

.mobile-menu .btn {
  margin-top: 1.5rem;
  width: 100%;
  text-align: center;
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}

@media (min-width: 1024px) {
  .nav,
  .nav-desktop { display: flex; }
  .burger { display: none; }
  .mobile-menu { display: none; }
  .overlay { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.8rem 1.8rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--secondary);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(25, 118, 210, 0.3);
}

.btn-primary:hover {
  background: var(--secondary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(25, 118, 210, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.4);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.7);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--primary);
  background: var(--bg-alt);
}

.btn-dark {
  background: var(--primary);
  color: var(--white);
}

.btn-dark:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(60, 72, 88, 0.3);
}

.btn-sm {
  padding: 0.55rem 1.2rem;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 1rem 2.2rem;
  font-size: 1rem;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

/* ---------- Cards ---------- */
.card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
}

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

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.5rem;
}

.card-icon-primary {
  background: rgba(60, 72, 88, 0.08);
  color: var(--primary);
}

.card-icon-secondary {
  background: rgba(25, 118, 210, 0.08);
  color: var(--secondary);
}

.card-icon-accent {
  background: rgba(59, 130, 246, 0.08);
  color: var(--accent);
}

.card h3 {
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* Step Card (numbered) */
.step-card {
  position: relative;
  padding-left: 0;
}

.step-number {
  font-family: 'DM Serif Display', serif;
  font-size: 3rem;
  color: rgba(60, 72, 88, 0.08);
  line-height: 1;
  margin-bottom: 0.75rem;
}

/* ---------- Hero Section ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  background: linear-gradient(135deg, #263238 0%, #37474F 40%, #1e3355 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(25, 118, 210, 0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 2.5rem;
  color: var(--white);
  margin-bottom: 1.5rem;
  max-width: 750px;
}

.hero .lead {
  color: rgba(255,255,255,0.75);
  margin-bottom: 2.5rem;
  max-width: 620px;
  font-size: 1.1rem;
}

/* Hero variant classes (from index.html) */
.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #263238 0%, #37474F 40%, #1e3355 100%);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-animated-title {
  margin-bottom: 1.5rem;
}

.hero-line {
  font-family: 'DM Serif Display', serif;
  font-size: 2.5rem;
  color: var(--white);
  line-height: 1.2;
}

.hero-subtitle {
  color: rgba(255,255,255,0.75);
  margin-bottom: 2.5rem;
  max-width: 620px;
  font-size: 1.1rem;
  line-height: 1.8;
}

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

@media (min-width: 768px) {
  .hero-line { font-size: 3.2rem; }
}

@media (min-width: 1024px) {
  .hero-line { font-size: 3.5rem; }
}

/* Page Hero (inner pages) */
.page-hero {
  padding: 8rem 0 4rem;
  background: linear-gradient(135deg, #263238 0%, #37474F 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -15%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(25, 118, 210, 0.12) 0%, transparent 70%);
  border-radius: 50%;
}

.page-hero h1 {
  color: var(--white);
  margin-bottom: 1rem;
  position: relative;
}

.page-hero .lead {
  color: rgba(255,255,255,0.7);
  position: relative;
}

/* ---------- Target Badges ---------- */
.target-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.target-badge {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--white);
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.target-badge:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.target-badge svg {
  width: 20px;
  height: 20px;
  color: var(--secondary);
}

/* ---------- Stats / Counters ---------- */
.stats-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3rem;
  padding: 2rem 0;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-family: 'DM Serif Display', serif;
  font-size: 2.5rem;
  color: var(--white);
  line-height: 1.2;
}

.stat-label {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  margin-top: 0.25rem;
}

/* ---------- CTA Banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--secondary) 0%, #1565C0 100%);
  padding: 4rem 0;
  text-align: center;
  color: var(--white);
}

.cta-banner h2 {
  color: var(--white);
  margin-bottom: 1.5rem;
}

.cta-banner p {
  color: rgba(255,255,255,0.85);
  max-width: 550px;
  margin: 0 auto 2rem;
}

.cta-banner .btn {
  background: var(--white);
  color: var(--secondary);
  font-weight: 700;
}

.cta-banner .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

/* ---------- Formexa Banner ---------- */
.formexa-banner {
  background: linear-gradient(135deg, #263238 0%, #37474F 100%);
  padding: 5rem 0;
  color: var(--white);
}

.formexa-banner .container {
  text-align: center;
}

.formexa-banner h2 {
  color: var(--white);
  margin-bottom: 1rem;
}

.formexa-banner > .container > p {
  color: rgba(255,255,255,0.75);
  max-width: 650px;
  margin: 0 auto 2.5rem;
  font-size: 1.05rem;
}

/* ---------- Catalogue Specific ---------- */
.search-bar {
  position: relative;
  max-width: 500px;
  margin: 0 auto 2rem;
}

.search-bar input {
  width: 100%;
  padding: 1rem 1.5rem 1rem 3rem;
  border: 2px solid var(--border);
  border-radius: 50px;
  font-size: 1rem;
  background: var(--white);
  transition: var(--transition);
}

.search-bar input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(60, 72, 88, 0.08);
}

.search-bar svg {
  position: absolute;
  left: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  width: 20px;
  height: 20px;
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.filter-pill {
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  background: var(--white);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.filter-pill:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.filter-pill.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

/* Formation Card */
.formation-card {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
}

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

.formation-card-header {
  padding: 1.5rem 1.5rem 0;
}

.formation-category {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  margin-bottom: 0.75rem;
}

.cat-btp { background: #FEF3C7; color: #92400E; }
.cat-commerce { background: #DBEAFE; color: #1E40AF; }
.cat-digital { background: #EDE9FE; color: #6D28D9; }
.cat-gestion { background: #D1FAE5; color: #065F46; }
.cat-hygiene { background: #FEE2E2; color: #991B1B; }
.cat-rse { background: #E0F2FE; color: #075985; }

.formation-card-body {
  padding: 0 1.5rem 1.5rem;
}

.formation-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.formation-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}

.formation-meta span {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.formation-meta svg {
  width: 14px;
  height: 14px;
}

.formation-card .btn {
  width: 100%;
}

/* ---------- Forms ---------- */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  transition: var(--transition);
  color: var(--text-main);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(60, 72, 88, 0.06);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%236B7B8D' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.4rem;
}

.radio-group label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 400;
  cursor: pointer;
  padding: 0.5rem 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  transition: var(--transition);
  font-size: 0.875rem;
}

.radio-group label:hover {
  border-color: var(--primary);
}

.radio-group input[type="radio"] {
  width: auto;
  accent-color: var(--primary);
}

.radio-group input[type="radio"]:checked + span {
  color: var(--primary);
  font-weight: 600;
}

.radio-group label:has(input:checked) {
  border-color: var(--primary);
  background: rgba(60, 72, 88, 0.04);
}

.form-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .form-grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Form Success */
.form-success {
  display: none;
  text-align: center;
  padding: 3rem 2rem;
}

.form-success.show {
  display: block;
}

.form-success svg {
  width: 64px;
  height: 64px;
  color: var(--secondary);
  margin-bottom: 1.5rem;
}

.form-success h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

/* ---------- Contact Layout ---------- */
.contact-grid {
  display: grid;
  gap: 3rem;
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr 380px;
  }
}

.contact-info-card {
  display: flex;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}

.contact-info-card:last-child {
  border-bottom: none;
}

.contact-info-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(60, 72, 88, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--primary);
}

.contact-info-icon svg {
  width: 20px;
  height: 20px;
}

.contact-info-card h4 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.contact-info-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0;
}

/* ---------- Timeline ---------- */
.timeline {
  position: relative;
  padding-left: 2.5rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0.75rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  padding-bottom: 2.5rem;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -2.5rem;
  top: 0.25rem;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--secondary);
  z-index: 1;
}

.timeline-item h3 {
  margin-bottom: 0.5rem;
}

.timeline-item p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ---------- Process Steps (horizontal) ---------- */
.process-steps {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .process-steps {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

.process-step {
  text-align: center;
  position: relative;
}

.process-step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'DM Serif Display', serif;
  font-size: 1.2rem;
  margin: 0 auto 1rem;
}

.process-step h3 {
  margin-bottom: 0.5rem;
}

.process-step p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* ---------- Info Box ---------- */
.info-box {
  background: rgba(60, 72, 88, 0.04);
  border-left: 4px solid var(--primary);
  padding: 1.5rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1.5rem 0;
}

.info-box h4 {
  margin-bottom: 0.5rem;
}

.info-box p {
  color: var(--text-secondary);
  margin-bottom: 0;
  font-size: 0.95rem;
}

/* Highlight Box */
.highlight-box {
  background: linear-gradient(135deg, rgba(25, 118, 210, 0.06), rgba(60, 72, 88, 0.04));
  border: 1px solid rgba(25, 118, 210, 0.15);
  border-radius: var(--radius-md);
  padding: 2rem;
  margin: 1.5rem 0;
}

/* ---------- Case Study Card ---------- */
.case-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 2rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.case-card .case-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--secondary);
  margin-bottom: 0.75rem;
}

.case-card h3 {
  margin-bottom: 1rem;
}

.case-card .case-amount {
  font-family: 'DM Serif Display', serif;
  font-size: 2rem;
  color: var(--secondary);
  margin-bottom: 0.75rem;
}

/* ---------- Modal ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  max-width: 600px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  padding: 2.5rem;
  transform: translateY(20px);
  transition: var(--transition);
}

.modal-overlay.active .modal {
  transform: translateY(0);
}

.modal-close {
  float: right;
  background: none;
  cursor: pointer;
  padding: 0.25rem;
  color: var(--text-secondary);
  transition: var(--transition);
}

.modal-close:hover {
  color: var(--text-main);
}

.modal h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  padding-right: 2rem;
}

.modal .formation-category {
  margin-bottom: 1rem;
}

.modal-section {
  margin-top: 1.5rem;
}

.modal-section h4 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.modal-section p,
.modal-section li {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.modal-section ul {
  padding-left: 1.25rem;
  list-style: disc;
}

.modal-section ul li {
  margin-bottom: 0.3rem;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.7);
  padding: 4rem 0 0;
}

.footer-grid,
.footer-top {
  display: grid;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

@media (min-width: 640px) {
  .footer-grid,
  .footer-top {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .footer-grid,
  .footer-top {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

.footer-brand .logo {
  color: var(--white);
  margin-bottom: 1rem;
}

.footer-brand p,
.footer-tagline {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 0;
}

.footer h4,
.footer-heading {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--white);
  margin-bottom: 1rem;
}

.footer-nav {
  display: contents;
}

.footer-nav-col {
  min-width: 0;
}

.footer-contact {
  min-width: 0;
}

.footer-address {
  font-style: normal;
}

.footer-address p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.footer-address svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 3px;
  opacity: 0.6;
}

.footer-links a,
.footer-links li a {
  display: block;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  padding: 0.3rem 0;
  transition: var(--transition);
}

.footer-links li {
  list-style: none;
}

.footer-links a:hover,
.footer-links li a:hover {
  color: var(--white);
  padding-left: 0.25rem;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 0;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}

.footer-bottom a {
  color: rgba(255,255,255,0.4);
  transition: var(--transition);
}

.footer-bottom a:hover {
  color: rgba(255,255,255,0.7);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

.footer-legal a {
  color: rgba(255,255,255,0.4);
  transition: var(--transition);
}

.footer-legal a:hover {
  color: rgba(255,255,255,0.7);
}

.footer-copy {
  color: rgba(255,255,255,0.4);
  margin-bottom: 0;
}

/* ---------- Scroll Animations ---------- */
/* By default content is visible. JS adds .reveal-ready when observer is set up. */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-ready .reveal,
body.js-ready .reveal {
  opacity: 0;
  transform: translateY(30px);
}

.reveal-ready .reveal.visible,
body.js-ready .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ---------- Responsive Typography ---------- */
@media (min-width: 768px) {
  h1 { font-size: 3rem; }
  h2 { font-size: 2.2rem; }
  .hero h1 { font-size: 3.2rem; }
  .section { padding: 6rem 0; }
}

@media (min-width: 1024px) {
  h1 { font-size: 3.5rem; }
  h2 { font-size: 2.5rem; }
  .hero h1 { font-size: 3.5rem; }
  .section { padding: 7rem 0; }
}

/* ---------- Utility ---------- */
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

/* ---------- Values Grid ---------- */
.value-card {
  text-align: center;
  padding: 2.5rem 2rem;
}

.value-card .card-icon {
  margin: 0 auto 1.25rem;
  width: 64px;
  height: 64px;
}

/* ---------- Avatar / Team ---------- */
.avatar-placeholder {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-family: 'DM Serif Display', serif;
  font-size: 2.5rem;
  margin: 0 auto 1.5rem;
}

/* ---------- Check List ---------- */
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.5rem 0;
  font-size: 0.95rem;
}

.check-list li svg {
  width: 20px;
  height: 20px;
  color: var(--secondary);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ---------- Criteria List ---------- */
.criteria-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.criteria-item:last-child {
  border-bottom: none;
}

.criteria-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(25, 118, 210, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--secondary);
}

.criteria-icon svg {
  width: 18px;
  height: 18px;
}

/* ---------- Engagement Section ---------- */
.engagement-box {
  background: linear-gradient(135deg, rgba(60, 72, 88, 0.03), rgba(25, 118, 210, 0.03));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 3rem;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.engagement-box h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.engagement-box p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 0;
}

/* ---------- No Results ---------- */
.no-results {
  text-align: center;
  padding: 3rem 1rem;
  display: none;
}

.no-results svg {
  width: 48px;
  height: 48px;
  color: var(--text-light);
  margin-bottom: 1rem;
}

.no-results h3 {
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.no-results p {
  color: var(--text-light);
  font-size: 0.9rem;
}

/* ---------- Compatibility: variant classes from pages ---------- */

/* Section title (standalone, not in section-header) */
.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

/* Card sub-elements */
.card-title {
  color: var(--primary);
  margin-bottom: 0.5rem;
  font-family: 'DM Serif Display', serif;
  font-size: 1.3rem;
}

.card-text {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 0;
  line-height: 1.7;
}

.card-step .card-icon {
  color: var(--primary);
}

.card-domaine .card-icon {
  color: var(--secondary);
}

/* Badges / Pills (index.html cibles section) */
.badges-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--white);
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.badge:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--secondary);
}

/* Formexa section variant (nested banner) */
.section-formexa .formexa-banner {
  background: linear-gradient(135deg, #263238 0%, #37474F 100%);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  color: var(--white);
  text-align: center;
}

.formexa-content {
  margin-bottom: 2rem;
}

.formexa-title {
  font-family: 'DM Serif Display', serif;
  font-size: 1.8rem;
  color: var(--white);
  margin-bottom: 1rem;
}

.formexa-text {
  color: rgba(255,255,255,0.75);
  max-width: 650px;
  margin: 0 auto;
  font-size: 1.05rem;
}

.formexa-counters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.counter-item {
  text-align: center;
}

.counter-number {
  font-family: 'DM Serif Display', serif;
  font-size: 2.5rem;
  color: var(--white);
  line-height: 1.2;
}

.counter-suffix {
  font-family: 'DM Serif Display', serif;
  font-size: 2.5rem;
  color: var(--white);
}

.counter-label {
  display: block;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  margin-top: 0.25rem;
}

/* CTA section variant (nested banner) */
.section-cta .cta-banner {
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
}

.cta-title {
  font-family: 'DM Serif Display', serif;
  color: var(--white);
  margin-bottom: 1rem;
}

.cta-text {
  color: rgba(255,255,255,0.85);
  max-width: 550px;
  margin: 0 auto 2rem;
}

/* Grid without parent .grid class */
.grid-2,
.grid-3,
.grid-4,
.grid-6 {
  display: grid;
  gap: 1.5rem;
}

/* Page hero badge styling */
.page-hero .badge-label {
  color: rgba(255,255,255,0.9);
  background: rgba(255,255,255,0.15);
}

/* SVG icon sizing in cards */
.card-icon svg {
  width: 32px;
  height: 32px;
}

/* ---------- Hero & Page Hero with Background Images ---------- */
.hero-with-img {
  background-size: cover;
  background-position: center;
}

.hero-with-img .hero-bg {
  background: linear-gradient(135deg, rgba(38,50,56,0.82), rgba(30,51,85,0.82));
}

.page-hero-img {
  background-size: cover;
  background-position: center;
}

.page-hero-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(38,50,56,0.82), rgba(55,71,79,0.82));
  z-index: 0;
}

.page-hero-img .container {
  position: relative;
  z-index: 1;
}

.page-hero-img h1,
.page-hero-img .lead,
.page-hero-img .badge-label {
  position: relative;
  z-index: 1;
}

/* ---------- Section Images ---------- */
.section-img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.section-img-tall {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.section-img-round {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.img-float {
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 768px) {
  .section-img { height: 380px; }
  .section-img-tall { height: 480px; }
  .section-img-round { height: 360px; }
}
