/* ========================================
   Design System - Rémy Potier
   ======================================== */

:root {
  /* Fond */
  --bg-primary: #fafaf9;
  --bg-warm: #f5f5f4;
  --bg-card: #ffffff;

  /* Texte */
  --text-primary: #1c1917;
  --text-secondary: #44403c;
  --text-muted: #78716c;

  /* Stone (dominante) */
  --stone-50: #fafaf9;
  --stone-100: #f5f5f4;
  --stone-200: #e7e5e4;
  --stone-300: #d6d3d1;
  --stone-400: #a8a29e;
  --stone-500: #78716c;
  --stone-600: #57534e;
  --stone-700: #44403c;
  --stone-800: #292524;
  --stone-900: #1c1917;

  /* Vert sapin (accent) */
  --accent-400: #5a9e78;
  --accent-500: #2d6a4f;
  --accent-600: #1b4332;
  --accent-700: #14312a;

  /* Tailles typographiques (fluid) */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.375vw, 1rem);
  --text-base: clamp(1rem, 0.9rem + 0.5vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.625vw, 1.25rem);
  --text-xl: clamp(1.25rem, 1.1rem + 0.75vw, 1.5rem);
  --text-2xl: clamp(1.5rem, 1.25rem + 1.25vw, 2rem);
  --text-3xl: clamp(1.875rem, 1.5rem + 1.875vw, 2.5rem);
  --text-4xl: clamp(2.25rem, 1.75rem + 2.5vw, 3.5rem);

  /* Espacements */
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-5xl: 8rem;

  /* Typographie */
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Inter', system-ui, sans-serif;

  /* Rayons */
  --radius-sm: 4px;

  /* Ombres (elevation tokens) */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.10);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.12);

  /* Easing premium */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);

  /* Taille hero headline */
  --text-5xl: clamp(2.75rem, 2rem + 3.75vw, 4.5rem);

  /* Layout */
  --max-width: 1200px;
  --content-width: 720px;
  --header-height: 80px;
}

/* ========================================
   Base Styles
   ======================================== */

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: var(--text-base);
  font-weight: 400;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  line-height: 1.6;
  font-feature-settings: 'kern' 1, 'liga' 1;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
  line-height: 1.2;
  color: var(--text-primary);
}

h1 {
  font-size: var(--text-4xl);
  font-weight: 600;
  letter-spacing: -0.02em;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

h2 {
  font-size: var(--text-3xl);
  letter-spacing: -0.02em;
}

h3 {
  font-size: var(--text-2xl);
  word-break: normal;
  overflow-wrap: break-word;
}

h4 {
  font-size: var(--text-xl);
}

p {
  margin-bottom: 1rem;
}

p:last-child {
  margin-bottom: 0;
}

a {
  text-decoration: none;
  transition: color 0.2s ease;
}

/* ========================================
   Layout
   ======================================== */

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.container--narrow {
  max-width: var(--content-width);
}

.section {
  padding: var(--space-2xl) 0;
}

.section--large {
  padding: var(--space-5xl) 0;
}

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

/* Section gradient dividers */
.section-divider {
  height: 60px;
  pointer-events: none;
  position: relative;
}

.section-divider--to-warm {
  background: var(--bg-warm);
  clip-path: polygon(0 0, 100% 40%, 100% 100%, 0 100%);
}

.section-divider--from-warm {
  background: var(--bg-primary);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 60%);
}

.section-divider--to-dark {
  height: 80px;
  background: #14312a;
  clip-path: polygon(0 30%, 100% 0, 100% 100%, 0 100%);
}

@media (max-width: 768px) {
  .section-divider { height: 40px; }
  .section-divider--to-dark { height: 50px; }
}

/* ========================================
   Header & Navigation
   ======================================== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(250, 250, 249, 0.85);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  height: var(--header-height);
  transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.header.scrolled {
  box-shadow: var(--shadow-sm);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.logo {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--text-primary);
}

.logo:hover {
  color: var(--accent-600);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav-links a {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-links a.active {
  color: var(--text-primary);
}

.btn-nav {
  background: var(--accent-500);
  color: #fff !important;
  padding: 0.5rem 1rem;
  font-weight: 500;
  transition: background 0.2s ease;
}

.btn-nav:hover {
  background: var(--accent-600);
}

/* Language Switcher */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--text-sm);
  margin-left: var(--space-lg);
}

.lang-active {
  color: var(--text-primary);
  font-weight: 500;
}

.lang-link {
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.lang-link:hover {
  color: var(--accent-600);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  font-size: 1.5rem;
  color: var(--text-primary);
  padding: 0.5rem;
}

/* Mobile Navigation */
@media (max-width: 1024px) {
  .nav-links {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(250, 250, 249, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    justify-content: flex-start;
    padding: var(--space-2xl);
    gap: var(--space-lg);
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }

  .nav-links.active {
    transform: translateX(0);
  }

  .nav-links a {
    font-size: var(--text-lg);
  }

  .menu-toggle {
    display: block;
  }

  .lang-switch {
    margin-left: var(--space-md);
  }
}

/* ========================================
   Hero Section
   ======================================== */

.hero {
  padding-top: calc(var(--header-height) + var(--space-5xl));
  padding-bottom: var(--space-5xl);
}

.hero--home {
  min-height: 80vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero__image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  max-width: 500px;
  margin: 0 auto;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  animation: word-reveal 1s ease forwards 0.4s;
}

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

@media (max-width: 1024px) {
  .hero__grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--space-xl);
  }
  .hero__content {
    justify-content: center;
    max-width: 100%;
  }
  .hero__content::after {
    margin: var(--space-xl) auto;
  }
  .hero-ctas {
    justify-content: center;
  }
}

/* Hero ambient gradient */
@keyframes hero-gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero--home::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    #fafaf9 0%,
    rgba(45, 106, 79, 0.04) 30%,
    #fafaf9 50%,
    rgba(90, 158, 120, 0.06) 70%,
    #fafaf9 100%);
  background-size: 200% 200%;
  animation: hero-gradient-shift 12s ease infinite;
  transform: translateY(calc(var(--scroll, 0) * -40px));
  will-change: transform;
  z-index: 0;
  pointer-events: none;
}

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

.hero__decoration {
  position: absolute;
  top: 50%;
  right: 10%;
  transform: translate(50%, -50%);
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--accent-500) 0%, transparent 70%);
  opacity: 0.04;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}

.hero__content {
  max-width: 100%;
  display: flex;
  flex-direction: column;
}

.hero__tagline {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: var(--text-4xl);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-xl);
  line-height: 1.2;
}

/* Hero text reveal animation */
@keyframes word-reveal {
  from {
    opacity: 0;
    transform: translateY(12px);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

.hero__tagline .word {
  display: inline-block;
  opacity: 0;
  animation: word-reveal 0.5s ease forwards;
}

.hero__name,
.hero__title {
  opacity: 0;
  animation: word-reveal 0.6s ease forwards;
}

.hero__name { animation-delay: 0.8s; }
.hero__title { animation-delay: 1.0s; }

/* Accent line under hero */
@keyframes line-expand {
  to { width: 80px; }
}

.hero__content::after {
  content: '';
  display: block;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-500), var(--accent-400));
  margin-top: var(--space-xl);
  animation: line-expand 1s ease 1.2s forwards;
}

.hero__name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: var(--text-xl);
  font-style: italic;
  color: var(--text-secondary);
  margin-bottom: var(--space-xs);
}

.hero__title {
  font-size: var(--text-base);
  color: var(--text-muted);
}

.hero__subtitle {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  max-width: 600px;
  margin-top: var(--space-lg);
}

.hero-ctas {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-xl);
  opacity: 0;
  animation: word-reveal 0.6s ease forwards 1.4s;
}

@media (max-width: 768px) {
  .hero-ctas {
    flex-direction: column;
    width: 100%;
  }
  .hero-ctas .btn-primary, .hero-ctas .btn-secondary {
    width: 100%;
    text-align: center;
  }
}

/* Consultations Grid */
.consultations-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: start;
}

.consultations-visual {
  position: sticky;
  top: calc(var(--header-height) + var(--space-2xl));
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.consultations-visual img {
  width: 100%;
  height: auto;
  display: block;
}

.consult-quote-box {
  background: var(--bg-warm);
  padding: var(--space-2xl);
  border-left: 3px solid var(--accent-500);
  margin-top: var(--space-2xl);
}

.consult-quote-box p {
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  font-style: italic;
  color: var(--text-secondary);
  margin-bottom: 0;
}

@media (max-width: 1024px) {
  .consultations-grid {
    grid-template-columns: 1fr;
  }
  .consultations-visual {
    display: none; /* Hide visual on mobile to keep focus on text */
  }
}

/* Empty States */
.empty-state {
  text-align: center;
  padding: var(--space-4xl) var(--space-lg);
  background: var(--bg-card);
  border: 1px dashed var(--stone-300);
  border-radius: var(--radius-sm);
  margin-top: var(--space-2xl);
}

.empty-state__icon {
  font-size: 3rem;
  margin-bottom: var(--space-md);
  opacity: 0.5;
}

.empty-state__title {
  font-family: var(--font-serif);
  font-size: var(--text-2xl);
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

.empty-state__text {
  color: var(--text-secondary);
  font-size: var(--text-sm);
}

@media (max-width: 768px) {
  .hero__content {
    max-width: 100%;
  }

  .hero--home {
    min-height: auto;
  }
}

/* Affiliations Marquee */
@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.affiliations-marquee {
  overflow: hidden;
  padding: var(--space-sm) 0;
  border-top: 1px solid var(--stone-200);
  border-bottom: 1px solid var(--stone-200);
  background: var(--bg-primary);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}

.affiliations-marquee__track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 30s linear infinite;
}

.affiliations-marquee__content {
  font-family: 'Inter', sans-serif;
  font-size: var(--text-xs);
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  padding: 0 var(--space-xs);
}

/* ========================================
   Visitor Paths (Home)
   ======================================== */

.paths {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

.path-card {
  padding: var(--space-xl) var(--space-lg);
  background: var(--bg-card);
  border: 1px solid var(--stone-200);
  box-shadow: var(--shadow-xs);
  transition: border-color 0.4s var(--ease-out-expo), transform 0.4s var(--ease-out-expo), box-shadow 0.4s var(--ease-out-expo);
  position: relative;
  overflow: hidden;
  will-change: transform, box-shadow;
}

/* Spotlight hover effect */
.path-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    300px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(45, 106, 79, 0.06) 0%,
    transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 0;
}

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

.path-card > * {
  position: relative;
  z-index: 1;
}

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

.path-card__label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-sm);
}

.path-card__title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: var(--text-2xl);
  font-weight: 600;
  margin-bottom: var(--space-md);
  white-space: nowrap;
  hyphens: none !important;
  word-break: normal !important;
  overflow: visible;
}

.path-card__description {
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
  font-size: var(--text-sm);
}

@media (max-width: 1024px) {
  .paths {
    grid-template-columns: repeat(2, 1fr);
  }
  .path-card__title {
    font-size: var(--text-2xl);
    white-space: normal;
  }
}

@media (max-width: 600px) {
  .paths {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .path-card {
    padding: var(--space-lg);
  }

  .path-card__title {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-sm);
  }

  .path-card__description {
    margin-bottom: var(--space-sm);
  }
}

/* ========================================
   About Preview (Home)
   ======================================== */

.about-preview {
  display: grid;
  grid-template-columns: 60% 40%;
  gap: var(--space-3xl);
  align-items: start;
  padding-top: var(--space-3xl);
  border-top: 1px solid var(--stone-200);
}

.about-preview__content p {
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
}

.about-preview__content p:last-of-type {
  margin-bottom: var(--space-xl);
}

@media (max-width: 768px) {
  .about-preview {
    grid-template-columns: 1fr;
  }
}

/* Testimonials */
.section--testimonials {
  padding: var(--space-3xl) 0;
}

.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-xl);
  max-width: 1000px;
  margin: 0 auto;
}

.testimonial {
  padding: var(--space-xl);
  border-left: 3px solid var(--accent-500);
  background: var(--bg-card);
  box-shadow: var(--shadow-xs);
  transition: box-shadow 0.4s var(--ease-out-expo), transform 0.4s var(--ease-out-expo);
}

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

.testimonial__text {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: var(--text-lg);
  font-style: italic;
  line-height: 1.6;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}

.testimonial__author {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.testimonial__name {
  font-family: 'Inter', sans-serif;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-primary);
}

.testimonial__org {
  font-family: 'Inter', sans-serif;
  font-size: var(--text-xs);
  color: var(--text-secondary);
}

/* ========================================
   Buttons & Links
   ======================================== */

.btn-primary {
  display: inline-block;
  background: var(--accent-500);
  color: #fff;
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  font-size: var(--text-sm);
  transition: background 0.3s ease, transform 0.15s ease, box-shadow 0.3s ease;
}

.btn-primary:hover {
  background: var(--accent-600);
  color: #fff;
  box-shadow: var(--shadow-md);
}

.btn-primary:active {
  transform: scale(0.97);
  box-shadow: var(--shadow-xs);
}

.btn-secondary {
  display: inline-block;
  padding: 0.625rem 1.5rem;
  border: 1.5px solid var(--accent-600);
  color: var(--accent-600);
  font-family: 'Inter', sans-serif;
  font-size: var(--text-sm);
  font-weight: 500;
  text-decoration: none;
  text-align: center;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.btn-secondary:hover {
  background: var(--accent-600);
  color: #fff;
}

.btn-secondary:active {
  transform: scale(0.97);
}

.link-arrow {
  color: var(--accent-600);
  font-weight: 500;
  font-size: var(--text-sm);
  transition: color 0.3s ease;
  position: relative;
}

.link-arrow::before {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s var(--ease-out-expo);
}

.link-arrow:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

.link-arrow::after {
  content: ' \2192';
  display: inline-block;
  transition: transform 0.3s var(--ease-out-expo);
}

.link-arrow:hover {
  color: var(--accent-700);
}

.link-arrow:hover::after {
  transform: translateX(4px);
}

/* ========================================
   Offer Cards
   ======================================== */

.offers-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
}

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

.offer-card {
  background: var(--bg-card);
  border: 1px solid var(--stone-200);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-xs);
  transition: border-color 0.3s ease, box-shadow 0.4s var(--ease-out-expo), transform 0.4s var(--ease-out-expo);
  will-change: transform, box-shadow;
}

.offer-card:hover {
  border-color: var(--accent-500);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.offer-code {
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-sm);
}

.offer-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: var(--text-xl);
  font-weight: 500;
  margin-bottom: var(--space-sm);
}

.offer-meta {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
}

.offer-meta span {
  display: inline-block;
  margin-right: var(--space-md);
}

.offer-price {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--accent-600);
  margin-top: var(--space-md);
}

.offer-content {
  margin: var(--space-lg) 0;
  color: var(--text-secondary);
}

.offer-content ul {
  padding-left: 1.25rem;
  list-style: disc;
}

.offer-content li {
  margin-bottom: 0.25rem;
}

.offer-note {
  font-size: var(--text-sm);
  color: var(--text-muted);
  font-style: italic;
  margin-top: var(--space-md);
}

/* Credibility Banner */
.credibility-banner {
  max-width: var(--content-width);
  margin: 0 auto var(--space-xl);
  padding: var(--space-xl);
  border-left: 3px solid var(--accent-500);
  background: var(--bg-warm);
  color: var(--text-secondary);
  font-size: var(--text-base);
  line-height: 1.6;
}

/* Offer Category Sections */
.offer-category {
  margin-bottom: var(--space-2xl);
}

.offer-category:last-child {
  margin-bottom: 0;
}

.offer-category__title {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-sm);
}

.offer-category__intro {
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
  max-width: var(--content-width);
}

/* Offer Badge */
.offer-badge {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.125rem 0.5rem;
  line-height: 1.4;
  margin-bottom: var(--space-sm);
}

.offer-badge--formation { background: var(--accent-600); color: white; }
.offer-badge--ecosysteme { background: var(--accent-700); color: white; }
.offer-badge--supervision { background: var(--stone-800); color: white; }
.offer-badge--conseil { background: var(--stone-500); color: white; }
.offer-badge--ressource { background: var(--stone-300); color: var(--stone-700); }

/* Category accent on cards */
.offer-card--formation { border-left: 3px solid var(--accent-500); }
.offer-card--ecosysteme { border-left: 3px solid var(--accent-700); }
.offer-card--supervision { border-left: 3px solid var(--stone-800); }
.offer-card--conseil { border-left: 3px solid var(--stone-500); }
.offer-card--ressource { border-left: 3px solid var(--stone-300); }

/* Offer Card CTA */
.offer-card__cta {
  margin-top: var(--space-lg);
  width: 100%;
}

/* Featured Offer Card */
.offer-card--featured {
  border-color: var(--accent-500);
  box-shadow: var(--shadow-md);
  position: relative;
}

.offer-card--featured::before {
  content: 'Populaire';
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  padding: 0.25rem 0.75rem;
  background: var(--accent-600);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

:lang(en) .offer-card--featured::before {
  content: 'Popular';
}

/* Offers CTA Section */
.offers-cta {
  text-align: center;
  padding-top: var(--space-3xl);
  border-top: 1px solid var(--stone-200);
  margin-top: var(--space-2xl);
}

.offers-cta h2 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-md);
}

.offers-cta p {
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto var(--space-xl);
}

/* ========================================
   Page Content
   ======================================== */

.page-header {
  padding-top: calc(var(--header-height) + var(--space-3xl));
  padding-bottom: var(--space-xl);
}

.page-header h1 {
  margin-bottom: var(--space-md);
}

.page-header__subtitle {
  font-size: var(--text-xl);
  color: var(--text-secondary);
  max-width: 600px;
}

.content-section {
  margin-bottom: var(--space-4xl);
}

.content-section:last-child {
  margin-bottom: 0;
}

.content-section h2 {
  margin-bottom: var(--space-lg);
}

.content-section h3 {
  margin-bottom: var(--space-md);
}

.content-section p {
  color: var(--text-secondary);
}

.content-section ul {
  padding-left: 1.25rem;
  list-style: disc;
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
}

.content-section li {
  margin-bottom: 0.5rem;
}

/* ========================================
   Research Page
   ======================================== */

.research-area {
  margin-bottom: var(--space-3xl);
  padding-bottom: var(--space-3xl);
  border-bottom: 1px solid var(--stone-200);
}

.research-area:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.research-area h3 {
  margin-bottom: var(--space-md);
}

.research-area p {
  color: var(--text-secondary);
}

.publication {
  margin-bottom: var(--space-xl);
  padding-left: var(--space-lg);
  border-left: 2px solid var(--stone-200);
}

.publication__year {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.publication__title {
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.publication__note {
  font-size: var(--text-sm);
  color: var(--text-muted);
  font-style: italic;
}

.project {
  margin-bottom: var(--space-xl);
}

.project__period {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.project__title {
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.project__description {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

/* ========================================
   Consultations Page
   ======================================== */

.consult-page .page-header__subtitle {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
}

.consult-page .content-section {
  margin-bottom: var(--space-3xl);
}

.consult-page .content-section h2 {
  font-size: var(--text-3xl);
  font-weight: 600;
  margin-bottom: var(--space-lg);
}

.consult-page .consult-concerns p {
  color: var(--text-secondary);
  padding-left: var(--space-lg);
  text-indent: calc(-1 * var(--space-lg));
  margin-bottom: var(--space-sm);
}

.consult-page .consult-details strong {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  min-width: 7rem;
}

.consult-legal {
  border-left: 2px solid var(--stone-300);
  padding-left: var(--space-xl);
}

.consult-legal p {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.consult-cta {
  border-top: 1px solid var(--stone-200);
  padding-top: var(--space-3xl);
  text-align: center;
}

@media (max-width: 768px) {
  .consult-page .content-section {
    margin-bottom: var(--space-2xl);
  }

  .consult-page .content-section h2 {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-md);
  }
}

/* ========================================
   Publication Filters & Dynamic List
   ======================================== */

.pub-filters {
  margin-bottom: var(--space-xl);
}

.pub-search {
  position: relative;
  margin-bottom: var(--space-lg);
}

.pub-search__input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.5rem;
  border: 1px solid var(--stone-300);
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: var(--text-base);
  font-family: inherit;
  transition: border-color 0.2s ease;
}

.pub-search__input:focus {
  outline: none;
  border-color: var(--accent-500);
}

.pub-search__input::placeholder {
  color: var(--stone-400);
}

.pub-search__icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--stone-400);
  font-size: var(--text-base);
  pointer-events: none;
}

.pub-filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

.pub-filter-btn {
  padding: 0.375rem 0.875rem;
  border: 1px solid var(--stone-300);
  background: var(--stone-100);
  color: var(--stone-600);
  font-size: var(--text-sm);
  font-family: inherit;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.pub-filter-btn:hover {
  background: var(--stone-200);
}

.pub-filter-btn.active {
  background: var(--accent-600);
  color: white;
  border-color: var(--accent-600);
}

.pub-counter {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-top: var(--space-md);
  margin-bottom: var(--space-xl);
}

.pub-list {
  display: flex;
  flex-direction: column;
}

.pub-item {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: var(--space-md);
  padding: var(--space-lg) 0;
  border-bottom: 1px solid var(--stone-200);
}

.pub-item:first-child {
  padding-top: 0;
}

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

.pub-item[hidden] {
  display: none;
}

.pub-item__year {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-muted);
  padding-top: 0.125rem;
}

.pub-item__body {
  min-width: 0;
}

.pub-item__header {
  display: flex;
  align-items: baseline;
  gap: var(--space-sm);
  margin-bottom: 0.25rem;
  flex-wrap: wrap;
}

.pub-badge {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.125rem 0.375rem;
  line-height: 1.4;
}

.pub-badge--acli { background: var(--accent-600); color: white; }
.pub-badge--acln { background: var(--stone-500); color: white; }
.pub-badge--os { background: var(--stone-300); color: var(--stone-700); }
.pub-badge--editorial { background: var(--stone-200); color: var(--stone-600); }

.pub-item__title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.4;
  margin-bottom: 0.25rem;
}

.pub-item__meta {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-bottom: 0;
}

.pub-item__meta a {
  color: var(--accent-600);
  font-weight: 500;
}

.pub-item__meta a:hover {
  color: var(--accent-700);
}

.pub-loading {
  padding: var(--space-2xl) 0;
  text-align: center;
  color: var(--text-muted);
}

.pub-no-results {
  padding: var(--space-2xl) 0;
  text-align: center;
  color: var(--text-muted);
  font-style: italic;
  display: none;
}

.pub-error {
  padding: var(--space-xl);
  background: var(--stone-100);
  border-left: 3px solid var(--accent-500);
  color: var(--text-secondary);
  font-size: var(--text-sm);
  display: none;
}

@media (max-width: 768px) {
  .pub-item {
    grid-template-columns: 1fr;
    gap: var(--space-xs);
  }

  .pub-filter-buttons {
    gap: 0.375rem;
  }

  .pub-filter-btn {
    font-size: var(--text-xs);
    padding: 0.25rem 0.625rem;
  }
}

/* ========================================
   Articles List (Reflexions/Writing)
   ======================================== */

/* Filters */
.article-filters {
  margin-bottom: var(--space-xl);
}

.article-search {
  position: relative;
  margin-bottom: var(--space-md);
}

.article-search__icon {
  position: absolute;
  left: var(--space-sm);
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.article-search__input {
  width: 100%;
  padding: var(--space-sm) var(--space-sm) var(--space-sm) var(--space-xl);
  border: 1px solid var(--stone-300);
  border-radius: 4px;
  font-family: 'Inter', sans-serif;
  font-size: var(--text-sm);
  background: var(--stone-50);
  transition: border-color 0.2s;
}

.article-search__input:focus {
  outline: none;
  border-color: var(--accent-600);
}

.article-filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-bottom: var(--space-sm);
}

.article-filter-btn {
  padding: var(--space-xs) var(--space-sm);
  border: 1px solid var(--stone-300);
  border-radius: 4px;
  background: transparent;
  font-family: 'Inter', sans-serif;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.article-filter-btn:hover {
  border-color: var(--stone-400);
  color: var(--text-primary);
}

.article-filter-btn.active {
  background: var(--accent-600);
  border-color: var(--accent-600);
  color: white;
}

.article-counter {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

/* List */
.article-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.article-item {
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid var(--stone-200);
}

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

.article-item__header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-xs);
}

.article-item__date {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.article-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.article-badge--article {
  background: #d1fae5;
  color: var(--accent-700);
}

.article-badge--note {
  background: var(--stone-200);
  color: var(--stone-700);
}

.article-item__title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: var(--text-xl);
  font-weight: 500;
  margin-bottom: var(--space-sm);
}

.article-item__title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.article-item__title a:hover {
  color: var(--accent-600);
}

.article-item__excerpt {
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
}

.article-item__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

.article-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 0.7rem;
  background: var(--stone-100);
  color: var(--text-muted);
}

/* Loading / Error / No results */
.article-loading,
.article-no-results {
  text-align: center;
  color: var(--text-muted);
  padding: var(--space-xl) 0;
  display: none;
}

.article-loading {
  display: block;
}

.article-error {
  text-align: center;
  color: var(--text-muted);
  padding: var(--space-xl) 0;
  display: none;
}

/* Article full page */
.article-full {
  max-width: 720px;
  margin: 0 auto;
}

.article-full__header {
  margin-bottom: var(--space-2xl);
}

.article-full__meta {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.article-full__title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: var(--space-md);
}

.article-full__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

.article-full__content {
  font-size: var(--text-base);
  line-height: 1.8;
  color: var(--text-primary);
}

.article-full__content h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: var(--text-xl);
  font-weight: 500;
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-md);
}

.article-full__content h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: var(--text-lg);
  font-weight: 500;
  margin-top: var(--space-xl);
  margin-bottom: var(--space-sm);
}

.article-full__content p {
  margin-bottom: var(--space-md);
}

.article-full__content blockquote {
  border-left: 3px solid var(--accent-600);
  padding-left: var(--space-md);
  margin: var(--space-lg) 0;
  color: var(--text-secondary);
  font-style: italic;
}

.article-full__content ul,
.article-full__content ol {
  margin-bottom: var(--space-md);
  padding-left: var(--space-lg);
}

.article-full__content li {
  margin-bottom: var(--space-xs);
}

.article-full__content code {
  background: var(--stone-100);
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 0.9em;
}

.article-full__content pre {
  background: var(--stone-100);
  padding: var(--space-md);
  border-radius: 4px;
  overflow-x: auto;
  margin-bottom: var(--space-md);
}

.article-full__content pre code {
  background: none;
  padding: 0;
}

.article-full__content img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin: var(--space-lg) 0;
}

.article-full__nav {
  margin-top: var(--space-3xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--stone-200);
}

/* Responsive */
@media (max-width: 768px) {
  .article-filter-buttons {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  .article-filter-btn {
    white-space: nowrap;
  }
}

/* ========================================
   Contact Form
   ======================================== */

.contact-form {
  max-width: 600px;
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-group label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--stone-300);
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: var(--text-base);
  transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-500);
}

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

.form-group--checkbox {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
}

.form-group--checkbox input {
  width: auto;
  margin-top: 0.25rem;
}

.form-group--checkbox label {
  font-weight: 400;
  margin-bottom: 0;
}

.form-note {
  margin-top: var(--space-2xl);
  padding: var(--space-lg);
  background: var(--bg-warm);
  color: var(--text-secondary);
  font-size: var(--text-sm);
}

/* Icon System */
.icon {
  width: 1.5em;
  height: 1.5em;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: middle;
  flex-shrink: 0;
}

.icon--sm {
  width: 1.25em;
  height: 1.25em;
}

.icon--lg {
  width: 2em;
  height: 2em;
}

/* Contact Options (Cal.com cards) */
.contact-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-xl);
  max-width: 900px;
}

.contact-card {
  display: block;
  padding: var(--space-xl);
  background: var(--bg-card);
  border: 1px solid var(--stone-200);
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-xs);
  transition: border-color 0.3s ease, box-shadow 0.4s var(--ease-out-expo), transform 0.4s var(--ease-out-expo);
  will-change: transform, box-shadow;
}

.contact-card:hover {
  border-color: var(--accent-500);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.contact-card__icon {
  font-size: 2rem;
  margin-bottom: var(--space-md);
  color: var(--accent-600);
  transition: transform 0.4s var(--ease-out-expo), color 0.3s ease;
}

.contact-card__icon .icon {
  width: 2rem;
  height: 2rem;
}

.contact-card:hover .contact-card__icon {
  transform: scale(1.1) rotate(-3deg);
  color: var(--accent-500);
}

.contact-card__title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: var(--text-xl);
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.contact-card__description {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: 1.6;
  margin-bottom: var(--space-md);
}

.contact-note {
  margin-top: var(--space-2xl);
  color: var(--text-secondary);
  font-size: var(--text-sm);
}

.emergency-box {
  margin-top: var(--space-3xl);
  padding: var(--space-xl);
  background: var(--stone-100);
  border-left: 3px solid var(--accent-500);
}

.emergency-box h3 {
  font-family: 'Inter', sans-serif;
  font-size: var(--text-base);
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.emergency-box p {
  color: var(--text-secondary);
  margin-bottom: var(--space-xs);
}

/* Intervention Cards */
.intervention-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-xl);
  margin-top: var(--space-xl);
}

.intervention-card {
  padding: var(--space-xl);
  background: var(--bg-card);
  border: 1px solid var(--stone-200);
  box-shadow: var(--shadow-xs);
  transition: border-color 0.3s ease, box-shadow 0.4s var(--ease-out-expo), transform 0.4s var(--ease-out-expo);
  will-change: transform, box-shadow;
}

.intervention-card:hover {
  border-color: var(--accent-400);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.intervention-card__icon {
  color: var(--accent-600);
  margin-bottom: var(--space-md);
}

.intervention-card__icon .icon {
  width: 1.75rem;
  height: 1.75rem;
}

.intervention-card__title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.intervention-card__list {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  padding-left: var(--space-md);
}

.intervention-card__list li {
  margin-bottom: var(--space-xs);
}

/* ========================================
   Footer
   ======================================== */

.footer {
  background: var(--stone-900);
  color: var(--stone-300);
  padding: var(--space-4xl) 0 var(--space-2xl);
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-3xl);
}

.footer-name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: var(--text-xl);
  font-weight: 500;
  color: var(--stone-100);
  margin-bottom: var(--space-xs);
}

.footer-title {
  font-size: var(--text-sm);
  margin-bottom: var(--space-xs);
}

.footer-affiliation {
  font-size: var(--text-sm);
  color: var(--stone-400);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-links a {
  font-size: var(--text-sm);
  color: var(--stone-300);
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--accent-400);
}

.footer-legal {
  font-size: var(--text-sm);
  color: var(--stone-400);
}

.footer-legal a {
  color: var(--stone-300);
  transition: color 0.2s ease;
}

.footer-legal a:hover {
  color: var(--accent-400);
}

.footer-emergency {
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--stone-700);
  font-size: var(--text-xs);
}

@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }
}

/* ========================================
   Utility Classes
   ======================================== */

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

.text-muted {
  color: var(--text-muted);
}

.mt-lg {
  margin-top: var(--space-lg);
}

.mt-xl {
  margin-top: var(--space-xl);
}

.mt-2xl {
  margin-top: var(--space-2xl);
}

.mb-lg {
  margin-bottom: var(--space-lg);
}

.mb-xl {
  margin-bottom: var(--space-xl);
}

/* ========================================
   Mobile Global Overrides
   ======================================== */

@media (max-width: 768px) {
  .page-header {
    text-align: center;
    padding-left: var(--space-lg);
    padding-right: var(--space-lg);
  }

  .page-header h1 {
    font-size: var(--text-2xl); /* Even smaller to be safe */
    text-align: center;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .page-header__subtitle {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    font-size: var(--text-lg);
  }

  .section {
    padding: var(--space-2xl) 0;
  }

  .section--large {
    padding: var(--space-3xl) 0;
  }

  .hero {
    padding-top: calc(var(--header-height) + var(--space-2xl));
    padding-bottom: var(--space-2xl);
  }

  .hero__tagline {
    margin-bottom: var(--space-md);
  }

  .page-header {
    padding-top: calc(var(--header-height) + var(--space-2xl));
    padding-bottom: var(--space-lg);
  }

  .content-section {
    margin-bottom: var(--space-2xl);
  }

  .content-section h2 {
    margin-bottom: var(--space-md);
  }
}

/* ========================================
   Animations
   ======================================== */

.fade-in {
  opacity: 0;
  transform: translateY(20px) scale(0.97);
  transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Staggered animations for lists */
.fade-in-stagger > * {
  opacity: 0;
  transform: translateY(20px) scale(0.97);
  transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
}

.fade-in-stagger.visible > *:nth-child(1) { transition-delay: 0s; }
.fade-in-stagger.visible > *:nth-child(2) { transition-delay: 0.08s; }
.fade-in-stagger.visible > *:nth-child(3) { transition-delay: 0.16s; }
.fade-in-stagger.visible > *:nth-child(4) { transition-delay: 0.24s; }
.fade-in-stagger.visible > *:nth-child(5) { transition-delay: 0.32s; }
.fade-in-stagger.visible > *:nth-child(6) { transition-delay: 0.40s; }

.fade-in-stagger.visible > * {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Slide-in animations (lateral) */
.slide-in-left {
  opacity: 0;
  transform: translateX(-30px) scale(0.97);
  transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
}

.slide-in-right {
  opacity: 0;
  transform: translateX(30px) scale(0.97);
  transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
}

.slide-in-left.visible,
.slide-in-right.visible {
  opacity: 1;
  transform: translateX(0) scale(1);
}

/* Stagger delays for slide-in cards */
.path-card.slide-in-left:nth-child(1),
.path-card.slide-in-right:nth-child(1) { transition-delay: 0s; }
.path-card.slide-in-right:nth-child(2),
.path-card.slide-in-left:nth-child(2) { transition-delay: 0.1s; }
.path-card.slide-in-left:nth-child(3),
.path-card.slide-in-right:nth-child(3) { transition-delay: 0.2s; }
.path-card.slide-in-right:nth-child(4),
.path-card.slide-in-left:nth-child(4) { transition-delay: 0.3s; }

/* Scroll progress bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  border-radius: 0 2px 2px 0;
  background: linear-gradient(90deg, var(--accent-500), var(--accent-400));
  box-shadow: 0 0 8px var(--accent-400);
  z-index: 101;
  width: 0%;
  pointer-events: none;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }

  .scroll-progress {
    display: none;
  }

  .testimonial:hover {
    transform: none;
  }
}

/* Mobile: slide-in fallback to vertical */
@media (max-width: 768px) {
  .slide-in-left,
  .slide-in-right {
    transform: translateY(20px) scale(0.97);
  }

  .hero__decoration {
    width: 250px;
    height: 250px;
    right: 5%;
  }

  .testimonials {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   Legal Pages
   ======================================== */

.legal-content {
  max-width: var(--content-width);
}

.legal-content h2 {
  margin-top: var(--space-3xl);
  margin-bottom: var(--space-lg);
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p {
  color: var(--text-secondary);
}

/* ========================================
   CTA B2B Section
   ======================================== */

.section--cta-b2b {
  background: #14312a;
  padding: var(--space-2xl) 0;
}

.cta-b2b {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.cta-b2b__title {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 500;
  color: #fff;
  margin-bottom: var(--space-md);
}

.cta-b2b__offer {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: var(--space-xl);
}

.cta-b2b__btn {
  background: #fff;
  color: #14312a;
  padding: 0.875rem 2rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  display: inline-block;
  transition: transform 0.3s var(--ease-out-expo), box-shadow 0.3s var(--ease-out-expo);
}

.cta-b2b__btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
}

.cta-b2b__btn:active {
  transform: translateY(-1px) scale(0.97);
  box-shadow: var(--shadow-sm);
}

/* ========================================
   Focus States (Accessibility)
   ======================================== */

:focus-visible {
  outline: 2px solid var(--accent-500);
  outline-offset: 3px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent-500);
  outline-offset: 3px;
  transition: outline-offset 0.15s ease;
}

a:focus-visible:hover,
button:focus-visible:hover {
  outline-offset: 2px;
}

/* Remove default browser outline on non-keyboard focus */
:focus:not(:focus-visible) {
  outline: none;
}

/* CTA glow pulse */
@keyframes cta-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(45, 106, 79, 0); }
  50% { box-shadow: 0 0 20px 4px rgba(45, 106, 79, 0.25); }
}

.cta-b2b__btn {
  animation: cta-glow 4s ease-in-out 2s infinite;
}

/* ========================================
   Dark Mode
   ======================================== */

@media (prefers-color-scheme: dark) {
  :root {
    /* Fond */
    --bg-primary: #1c1917;
    --bg-warm: #292524;
    --bg-card: #292524;

    /* Texte */
    --text-primary: #fafaf9;
    --text-secondary: #d6d3d1;
    --text-muted: #a8a29e;

    /* Ombres dark (opacites doublees) */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.08);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.12);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.16);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.20);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.24);

    /* Stone inversee */
    --stone-50: #1c1917;
    --stone-100: #292524;
    --stone-200: #44403c;
    --stone-300: #57534e;
    --stone-400: #78716c;
    --stone-500: #a8a29e;
    --stone-600: #d6d3d1;
    --stone-700: #e7e5e4;
    --stone-800: #f5f5f4;
    --stone-900: #fafaf9;

    /* Vert sapin (plus clair sur fond sombre) */
    --accent-400: #2d6a4f;
    --accent-500: #5a9e78;
    --accent-600: #6db88e;
    --accent-700: #8fcca8;
  }

  /* Header glassmorphism dark */
  .header {
    background: rgba(28, 25, 23, 0.85);
    border-bottom-color: rgba(255, 255, 255, 0.06);
  }

  /* Footer — inversé en dark */
  .footer {
    background: var(--stone-100);
    color: var(--stone-500);
  }
  .footer-name { color: var(--stone-900); }
  .footer-links a { color: var(--stone-600); }
  .footer-links a:hover { color: var(--accent-500); }
  .footer-legal { color: var(--stone-500); }
  .footer-legal a { color: var(--stone-600); }
  .footer-emergency { border-top-color: var(--stone-300); }

  /* Badges */
  .offer-badge--formation,
  .pub-badge--acli { background: var(--accent-500); color: #1c1917; }
  .offer-badge--conseil,
  .pub-badge--acln { background: var(--stone-400); color: #1c1917; }

  /* Boutons */
  .btn-nav {
    background: var(--accent-500);
    color: #1c1917 !important;
  }
  .btn-nav:hover {
    background: var(--accent-600);
  }
  .btn-primary {
    background: var(--accent-500);
    color: #1c1917;
  }
  .btn-primary:hover {
    background: var(--accent-600);
    color: #1c1917;
  }

  /* Article tag vert */
  .article-tag--ia { background: #1b4332; color: var(--accent-500); }

  /* Hero gradient dark */
  .hero--home::before {
    background: linear-gradient(135deg,
      #1c1917 0%,
      rgba(90, 158, 120, 0.05) 30%,
      #1c1917 50%,
      rgba(109, 184, 142, 0.07) 70%,
      #1c1917 100%);
  }

  .hero__decoration {
    opacity: 0.06;
  }

  /* Spotlight dark */
  .path-card::before {
    background: radial-gradient(
      300px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
      rgba(109, 184, 142, 0.08) 0%,
      transparent 60%);
  }

  /* CTA glow dark */
  @keyframes cta-glow-dark {
    0%, 100% { box-shadow: 0 0 0 0 rgba(90, 158, 120, 0); }
    50% { box-shadow: 0 0 24px 4px rgba(90, 158, 120, 0.3); }
  }
  .cta-b2b__btn { animation-name: cta-glow-dark; }
}

/* ========================================
   Print Styles
   ======================================== */

@media print {
  .header,
  .footer,
  .btn-primary,
  .btn-secondary,
  .link-arrow {
    display: none;
  }

  body {
    font-size: 12pt;
    color: #000;
    background: #fff;
  }

  .hero {
    padding-top: 0;
  }
}
