/* ========================================
   NADINE - CSS COMPLET (Migration Nuxt-Sanity vers Kirby)
   ======================================== */

/* ========================================
   WEB FONTS (Local)
   ======================================== */

/* Outfit - Variable Font (weight axis: 100-900) */
@font-face {
  font-family: 'Outfit';
  src: url('../fonts/Outfit-VariableFont_wght.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* Knewave - Regular */
@font-face {
  font-family: 'Knewave';
  src: url('../fonts/Knewave-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Design System Colors: Beige/Blue/Black */
  --color-beige: #FFF8EE;
  --color-beige-light: #fdfcf4;

  --color-red: #7E1B1B;

  --color-blue: #7AC3FF;
  --color-blue-text: #45a4f2; /* Bleu plus foncé pour textes fins */
  --color-blue-light: #b9e1ff;
  --color-blue-dark: #062C43;

  --color-black: #1B1001;
  --color-gray: #4A4A4A;
  --color-gray-light: #E5E5E5;

  --color-white: #ffffff;

  /* Button backgrounds (stay dark in both themes) */
  --color-btn-bg: #062C43;
  --color-btn-bg-hover: #0a3a56;

  /* Scoped component aliases (global fallback for events/services) */
  --svc-bg: var(--color-beige);
  --svc-ink: var(--color-blue-dark);
  --svc-ink-light: var(--color-black);
  --svc-blue: var(--color-blue);
  --svc-white: var(--color-white);

  /* Semantic Colors */
  --primary-color: var(--color-blue);
  --secondary-color: var(--color-beige);
  --text-color: var(--color-black);
  --text-secondary: var(--color-gray);
  --bg-color: var(--color-beige);
  --border-color: var(--color-gray-light);

  /* Layout */
  --max-width: 1300px;
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 3rem;
  --spacing-xl: 4rem;

  /* Typography */
  --font-body: 'Outfit', Arial, sans-serif;
  --font-special: 'Knewave', serif;

  /* Header height (logo 50px + padding 2rem) */
  --header-height: calc(50px + 2rem);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/* Offset pour les ancres : ne pas être caché sous le header sticky */
:target,
[id] {
  scroll-margin-top: var(--header-height, 100px);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  font-family: var(--font-body);
  line-height: 130%;
  color: var(--text-color);
  background-color: var(--bg-color);
  /* overflow-x: clip > hidden : empeche le scroll horizontal mais ne crée
     PAS de contexte de scroll, ce qui preserve position: sticky */
  overflow-x: clip;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

/* ----------------------------------------
   LAYOUT: Container Width System (Spectra-style)
   Controls the outer container width
   ---------------------------------------- */
.container-full {
  max-width: 100%;
  padding: 0;
}

.container-wide {
  max-width: 1600px;
}

.container-boxed {
  max-width: var(--max-width); /* 1300px */
}

.container-narrow {
  max-width: 900px;
}

/* ----------------------------------------
   LAYOUT: Inner Wrapper
   Flexbox wrapper for content positioning
   ---------------------------------------- */
.inner-wrapper {
  width: 100%;
  display: flex;
}

/* Inner div uses inline style for width (10-100%) */
.inner-wrapper > div {
  max-width: 100%;
}

/* ----------------------------------------
   LAYOUT: Position du texte
   Alignement horizontal du contenu
   ---------------------------------------- */
.content-left {
  justify-content: flex-start;
}

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

.content-right {
  justify-content: flex-end;
}

/* Responsive: full width on mobile */
@media (max-width: 768px) {
  .container-full .inner-wrapper {
    padding: 1rem;
  }

  .inner-wrapper > div {
    width: 100% !important;
  }
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--primary-color);
  text-wrap: balance;
}

h2 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text-color);
  text-wrap: balance;
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  text-wrap: balance;
}

h1,
h2,
h3 {
  strong {
    display: block;
    font-family: var(--font-special);
    color: var(--color-blue);
    font-size: clamp(1.25rem, .65em, 3rem);
    font-weight: 200;
    translate: .35em -.3em;
    line-height: 1em;
  }
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--color-blue-dark);
}

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

/* ========================================
   UTILITY CLASSES
   ======================================== */
.text-center {
  text-align: center;
}

.text-blue {
  color: var(--color-blue-text); /* #45a4f2 - pour textes fins/petits */
}

/* ========================================
   BLOCK TITLES & SUBTITLES (global)
   Shared styles for all block headers
   ======================================== */

/* ----------------------------------------
   BLOCK HEADER: Base styles
   ---------------------------------------- */
.block-header,
.services-header,
.features-header,
.cta-header,
.service-hero-header {
  margin-bottom: var(--spacing-md);
}

/* ----------------------------------------
   BLOCK TITLE: Style variants
   ---------------------------------------- */
.block-title,
.services-title,
.features-title,
.cta-title,
.service-hero-title {
  font-family: var(--font-body);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 0.9;
  margin: 0;
  text-wrap: balance;
}

/* Title size: Large */
.block-title.style-large,
.services-title.style-large,
.features-title.style-large,
.cta-title.style-large,
.service-hero-title.style-large {
  font-size: clamp(2rem, 8vw, 6.3rem);
  line-height: 0.8;
}

/* Title size: Medium (default) */
.block-title.style-medium,
.services-title.style-medium,
.features-title.style-medium,
.cta-title.style-medium,
.service-hero-title.style-medium {
  font-size: clamp(1.75rem, 4vw, 3rem);
  line-height: 0.9;
}

/* Title size: Small */
.block-title.style-small,
.services-title.style-small,
.features-title.style-small,
.cta-title.style-small,
.service-hero-title.style-small {
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  line-height: 0.9;
}

/* ----------------------------------------
   BLOCK SUBTITLE: Style variants
   ---------------------------------------- */
.block-subtitle,
.services-subtitle,
.features-subtitle,
.cta-subtitle,
.service-hero-subtitle {
  margin: 0;
  text-wrap: balance;
}

/* Subtitle style: Special (Knewave) */
.block-subtitle.style-special,
.services-subtitle.style-special,
.features-subtitle.style-special,
.cta-subtitle.style-special,
.columns-subtitle.style-special,
.service-hero-subtitle.style-special {
  font-family: var(--font-special);
  font-size: clamp(1.75rem, 2.2vw, 3rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1;
  letter-spacing: -0.03em;
}

/* Subtitle special: offset only when text is left-aligned */
.text-left .block-subtitle.style-special,
.text-left .services-subtitle.style-special,
.text-left .features-subtitle.style-special,
.text-left .cta-subtitle.style-special,
.text-left .columns-subtitle.style-special,
.text-left .service-hero-subtitle.style-special {
  margin-top: -0.5em;
  margin-left: 0.5em;
}

/* Subtitle style: Normal */
.block-subtitle.style-normal,
.services-subtitle.style-normal,
.features-subtitle.style-normal,
.cta-subtitle.style-normal,
.service-hero-subtitle.style-normal {
  font-family: var(--font-body);
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-top: 0.5em;
}

/* Subtitle style: Basic */
.block-subtitle.style-basic,
.services-subtitle.style-basic,
.features-subtitle.style-basic,
.cta-subtitle.style-basic,
.service-hero-subtitle.style-basic {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  font-weight: 300;
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin-top: 0.5em;
}

/* ----------------------------------------
   BLOCK TITLE/SUBTITLE: Color variants
   ---------------------------------------- */
/* Default colors */
.block-title:not([class*="color-"]),
.services-title:not([class*="color-"]),
.features-title:not([class*="color-"]),
.cta-title:not([class*="color-"]),
.service-hero-title:not([class*="color-"]) {
  color: var(--color-blue-dark);
}

.block-subtitle.style-special:not([class*="color-"]),
.services-subtitle.style-special:not([class*="color-"]),
.features-subtitle.style-special:not([class*="color-"]),
.cta-subtitle.style-special:not([class*="color-"]),
.service-hero-subtitle.style-special:not([class*="color-"]) {
  color: var(--color-blue);
}

.block-subtitle.style-normal:not([class*="color-"]),
.block-subtitle.style-basic:not([class*="color-"]),
.services-subtitle.style-normal:not([class*="color-"]),
.services-subtitle.style-basic:not([class*="color-"]),
.features-subtitle.style-normal:not([class*="color-"]),
.features-subtitle.style-basic:not([class*="color-"]),
.cta-subtitle.style-normal:not([class*="color-"]),
.cta-subtitle.style-basic:not([class*="color-"]),
.service-hero-subtitle.style-normal:not([class*="color-"]),
.service-hero-subtitle.style-basic:not([class*="color-"]) {
  color: var(--color-black);
}

/* Explicit colors */
.color-blue-dark {
  color: var(--color-blue-dark) !important;
}

.color-blue {
  color: var(--color-blue) !important;
}

.color-black {
  color: var(--color-black) !important;
}

.color-white {
  color: var(--color-white) !important;
}

/* Screen reader only (hidden visually) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ----------------------------------------
   LEGACY: Section titles (backward compat)
   ---------------------------------------- */
.section h2,
.section h3 {
  color: var(--color-blue-dark);
  font-family: var(--font-body);
  font-size: clamp(2.5rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 100%;
  text-wrap: balance;
}

.section .subtitle,
.section p.text-blue {
  color: var(--color-blue);
  font-family: var(--font-special);
  font-size: clamp(1.75rem, 2.2vw, 3rem);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-top: -0.5em;
  margin-left: 0.5em;
  text-wrap: balance;
}

/* ========================================
   SECTIONS
   ======================================== */
.section {
  padding: var(--spacing-xl) 0;
}

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

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

/* ----------------------------------------
   SECTION: Padding Top/Bottom
   ---------------------------------------- */
.pt-none { padding-top: 0; }
.pt-small { padding-top: var(--spacing-md); }
.pt-default { padding-top: var(--spacing-xl); }
.pt-large { padding-top: var(--spacing-xxl); }

.pb-none { padding-bottom: 0; }
.pb-small { padding-bottom: var(--spacing-md); }
.pb-default { padding-bottom: var(--spacing-md); }
.pb-large { padding-bottom: var(--spacing-xxl); }

/* ----------------------------------------
   SECTION: Background Colors
   ---------------------------------------- */
.bg-white { background-color: var(--color-white); }
.bg-beige { background-color: var(--color-beige); }
.bg-blue { background-color: var(--color-blue); }
.bg-dark { background-color: var(--color-btn-bg); }

/* ----------------------------------------
   SECTION: Text Colors (for dark backgrounds)
   ---------------------------------------- */
.text-light,
.bg-blue,
.bg-dark {
  color: var(--color-white);
}

.text-light h1, .text-light h2, .text-light h3, .text-light h4,
.bg-blue h1, .bg-blue h2, .bg-blue h3, .bg-blue h4,
.bg-dark h1, .bg-dark h2, .bg-dark h3, .bg-dark h4 {
  color: var(--color-white);
}

/* ----------------------------------------
   SECTION: Text Alignment
   ---------------------------------------- */
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }

/* ----------------------------------------
   SECTION: Vertical Alignment
   ---------------------------------------- */
.section {
  display: flex;
  flex-direction: column;
}

.section > .container {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.section > .container > .inner-wrapper {
  flex: 1;
  display: flex;
}

.section.valign-top > .container > .inner-wrapper {
  align-items: flex-start;
}

.section.valign-center > .container > .inner-wrapper {
  align-items: center;
}

.section.valign-bottom > .container > .inner-wrapper {
  align-items: flex-end;
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
  font-family: var(--font-body);
  display: inline-block;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
  text-align: center;

  font-weight: 800;
  font-size: clamp(1rem, 1.3vw, 1.3rem);
  line-height: 0.83;
  letter-spacing: -0.04em;
  padding: clamp(0.875rem, 1.5vw, 1.25rem) clamp(1.5rem, 3vw, 2.5rem);
}

.btn-primary {
  background-color: var(--color-btn-bg);
  color: var(--color-beige);
}

.btn-primary:hover {
  background-color: var(--color-btn-bg-hover);
  color: var(--color-beige);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(6, 44, 67, 0.3);
}

.btn-secondary {
  background-color: var(--color-beige);
  color: var(--color-black);
}

.btn-secondary:hover {
  background-color: var(--color-beige);
  color: var(--color-blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(122, 195, 255, 0.2);
}

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

.btn-outline:hover {
  background-color: var(--color-black);
  color: var(--color-white);
}

/* Button Sparkle Stars */
.btn {
  position: relative;
  overflow: visible;
}

.btn-icon {
  display: inline-block;
  margin-right: 0.5em;
}

.btn.btn-icon-before {
  padding-left: 1.7em;
}

.btn.btn-has-icon .btn-text {
  translate: 0 -2px;
}

.btn-sparkles {
  pointer-events: none;
}

.btn-star {
  position: absolute;
  display: block;
  opacity: 0;
  top: 50%;
  left: 50%;
}

.btn-star svg {
  display: block;
  width: 100%;
  height: auto;
  fill: var(--color-blue);
}

.btn-star-1 { width: 25px; transition: all 0.8s cubic-bezier(0.05, 0.83, 0.43, 0.96); }
.btn-star-2 { width: 15px; transition: all 0.7s cubic-bezier(0, 0.4, 0, 1.01); }
.btn-star-3 { width: 5px;  transition: all 0.7s cubic-bezier(0, 0.4, 0, 1.01); }
.btn-star-4 { width: 8px;  transition: all 0.6s cubic-bezier(0, 0.4, 0, 1.01); }
.btn-star-5 { width: 15px; transition: all 0.5s cubic-bezier(0, 0.4, 0, 1.01); }
.btn-star-6 { width: 5px;  transition: all 0.6s ease; }

/* Sparkle float — single keyframe, desync via duration + delay */
@keyframes sparkle-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.btn:hover .btn-star { opacity: 1; }

.btn:hover .btn-star-1 {
  top: 60%;
  left: -1%;
  filter: drop-shadow(0 0 10px var(--color-blue-light));
  animation: sparkle-float 3.4s ease-in-out infinite;
  animation-delay: 0s;
}
.btn:hover .btn-star-2 {
  top: -30%;
  left: 5%;
  filter: drop-shadow(0 0 10px var(--color-blue-light));
  animation: sparkle-float 2.1s ease-in-out infinite;
  animation-delay: 0.6s;
}
.btn:hover .btn-star-3 {
  top: 55%;
  left: 20%;
  filter: drop-shadow(0 0 8px var(--color-blue-light));
  animation: sparkle-float 2.8s ease-in-out infinite;
  animation-delay: 1.3s;
}
.btn:hover .btn-star-4 {
  top: 25%;
  left: 90%;
  filter: drop-shadow(0 0 10px var(--color-blue-light));
  animation: sparkle-float 1.9s ease-in-out infinite;
  animation-delay: 0.3s;
}
.btn:hover .btn-star-5 {
  top: -25%;
  left: 105%;
  filter: drop-shadow(0 0 10px var(--color-blue-light));
  animation: sparkle-float 3.1s ease-in-out infinite;
  animation-delay: 0.9s;
}
.btn:hover .btn-star-6 {
  top: 5%;
  left: 65%;
  filter: drop-shadow(0 0 8px var(--color-blue-light));
  animation: sparkle-float 2.5s ease-in-out infinite;
  animation-delay: 1.7s;
}

/* Sparkle color per button style */
.btn-primary .btn-star svg { fill: var(--color-blue-light); }
.btn-secondary .btn-star svg { fill: var(--color-blue); }
.btn-outline .btn-star svg { fill: var(--color-blue); }
.btn-outline:hover .btn-star svg { fill: var(--color-blue-light); }

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  .btn-star { display: none; }
}

/* ========================================
   CARD
   ======================================== */
.card {
  background: var(--color-white);
  border: 1px solid var(--border-color);
  padding: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* ========================================
   HEADER
   ======================================== */
.header {
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-beige);
}

.header .container {
  max-width: 100%;
  padding: 0;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-md);
  padding: var(--spacing-sm) var(--spacing-xs);
  padding-left: 0;
}

.logo a {
  display: flex;
  align-items: center;
  padding: 0 var(--spacing-md);
}

@media (max-width: 768px) {
  .header-content {
    padding: 0.25em var(--spacing-xs);
  }

  .logo a {
    padding: 0 0.5em;
  }
}

.logo img {
  height: 50px;
  width: auto;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-blue);
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 101;
}

.mobile-menu-toggle span {
  width: 24px;
  height: 3px;
  background-color: var(--color-black);
  transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.nav-item {
  position: relative;
}

.nav .btn.btn-outline {
  padding: 0.8rem 1.7rem;
}

.nav-link {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  padding: var(--spacing-xs) var(--spacing-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link:hover {
  color: var(--color-blue);
}

.dropdown-arrow {
  font-size: 0.65rem;
  transition: transform 0.3s ease;
}

.nav-item:hover .dropdown-arrow {
  transform: rotate(180deg);
}

/* Dropdown Menu */
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--color-white);
  border: 1px solid var(--border-color);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  margin-top: 0.5rem;
}

.dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-link {
  display: block;
  padding: var(--spacing-sm) var(--spacing-md);
  color: var(--text-color);
  text-decoration: none;
  transition: all 0.3s ease;
  margin: 0.25rem;
}

.dropdown-link:hover {
  background-color: var(--color-beige-light);
  color: var(--color-blue);
}

/* Mega Menu */
.mega-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  min-width: 600px;
  max-width: 800px;
  background: var(--color-white);
  border: 1px solid var(--border-color);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  margin-top: 0.5rem;
}

.mega-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.mega-menu-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-md);
  padding: var(--spacing-md);
}

.mega-group {
  padding: var(--spacing-sm);
}

.mega-group-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-blue);
  margin-bottom: var(--spacing-xs);
}

.mega-group-description {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-sm);
}

.mega-group-items {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.mega-link {
  display: block;
  padding: var(--spacing-xs) var(--spacing-sm);
  color: var(--text-color);
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

.mega-link:hover {
  background-color: var(--color-beige-light);
  color: var(--color-blue);
}

/* ========================================
   HERO
   ======================================== */
.hero {
  position: relative;
  min-height: calc(100vh - 100px - 72px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-xl) 0;
  overflow: hidden;
}

/* ----------------------------------------
   HERO: Height variants
   ---------------------------------------- */
.hero.full-height {
  min-height: 100vh;
}

/* First full-height block: subtract header height */
.header + .full-height,
.header + main > .full-height:first-child,
main > .full-height:first-child {
  min-height: calc(100vh - var(--header-height));
}

.hero.min-height-small {
  min-height: 300px;
}

.hero.min-height-medium {
  min-height: 500px;
}

.hero.min-height-large {
  min-height: 700px;
}

/* ----------------------------------------
   HERO: Text alignment
   ---------------------------------------- */
.hero.text-left {
  text-align: left;
}

.hero.text-left .hero-content {
  margin-left: 0;
  margin-right: auto;
}

.hero.text-left .hero-cta {
  justify-content: flex-start;
}

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

.hero.text-center .hero-content {
  margin-left: auto;
  margin-right: auto;
}

.hero.text-center .hero-cta {
  justify-content: center;
}

.hero.text-right {
  text-align: right;
}

.hero.text-right .hero-content {
  margin-left: auto;
  margin-right: 0;
}

.hero.text-right .hero-cta {
  justify-content: flex-end;
}

/* ----------------------------------------
   HERO: Vertical alignment
   ---------------------------------------- */
.hero.valign-top {
  align-items: flex-start;
  padding-top: var(--spacing-xl);
}

.hero.valign-center {
  align-items: center;
}

.hero.valign-bottom {
  align-items: flex-end;
  padding-bottom: var(--spacing-xl);
}

/* ----------------------------------------
   HERO: Text colors
   ---------------------------------------- */
.hero.text-dark {
  color: var(--color-black);
}

.hero.text-dark .hero-title {
  color: var(--color-blue-dark);
}

.hero.text-light {
  color: var(--color-white);
}

.hero.text-light .hero-title,
.hero.text-light .hero-subtitle,
.hero.text-light .hero-description {
  color: var(--color-white);
}

/* ----------------------------------------
   HERO: Background colors
   ---------------------------------------- */
.hero.bg-beige {
  background-color: var(--color-beige);
}

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

.hero.bg-blue {
  background-color: var(--color-btn-bg);
}

.hero.bg-black {
  background-color: var(--color-black);
}

/* ----------------------------------------
   HERO: Background media (overlay & video)
   ---------------------------------------- */
.hero.media-background {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.hero-video-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-video-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero.media-background > .container {
  position: relative;
  z-index: 2;
}

/* ----------------------------------------
   HERO: Content
   ---------------------------------------- */
.hero-content {
  position: relative;
  z-index: 2;
}

/* ----------------------------------------
   HERO: Title styles (independent of HTML tag)
   Specs from Figma (values /2 for effective size)
   ---------------------------------------- */
.hero-title {
  margin-bottom: var(--spacing-md);
  text-wrap: balance;
}

/* Title style: Large (Gros titre) - 155px/2 ≈ 77px */
.hero-title.style-large {
  font-family: var(--font-body);
  font-size: clamp(2rem, 8vw, 6.3rem);
  font-weight: 800;
  line-height: 0.8;
  letter-spacing: -0.03em;
}

/* Title style: Medium (Titre moyen) - between large and small */
.hero-title.style-medium {
  font-family: var(--font-body);
  font-size: clamp(1.75rem, 4vw, 3.5rem);
  font-weight: 800;
  line-height: 0.83;
  letter-spacing: -0.03em;
}

/* Title style: Small (Petit titre) - 76px/2 = 38px */
.hero-title.style-small {
  font-family: var(--font-body);
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  font-weight: 800;
  line-height: 0.83;
  letter-spacing: -0.03em;
}

.hero-title.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ----------------------------------------
   HERO: Subtitle styles (independent of HTML tag)
   ---------------------------------------- */
.hero-subtitle {
  margin-bottom: var(--spacing-sm);
  text-wrap: balance;
}

/* Subtitle style: Special (Knewave) - 56px/2 = 28px */
.hero-subtitle.style-special {
  font-family: var(--font-special);
  font-size: clamp(1.2rem, 2vw, 1.75rem);
  font-weight: 400;
  font-style: normal;
  line-height: 0.82;
  letter-spacing: -0.03em;
}

/* Subtitle style: Normal - 38px/2 = 19px */
.hero-subtitle.style-normal {
  font-family: var(--font-body);
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  font-weight: 600;
  font-style: normal;
  line-height: 1.07;
  letter-spacing: -0.03em;
}

/* Subtitle style: Basic (Text normal) - 30px/2 = 15px, min 18px */
.hero-subtitle.style-basic {
  font-family: var(--font-body);
  font-size: clamp(1.125rem, 1.2vw, 1.125rem);
  font-weight: 300;
  font-style: normal;
  line-height: 1.07;
  letter-spacing: -0.03em;
}

/* ----------------------------------------
   HERO: Text colors (manual override)
   ---------------------------------------- */
.hero-title.color-black,
.hero-subtitle.color-black {
  color: var(--color-black);
}

.hero-title.color-blue-dark,
.hero-subtitle.color-blue-dark {
  color: var(--color-blue-dark);
}

.hero-title.color-blue,
.hero-subtitle.color-blue {
  color: var(--color-blue);
}

.hero-title.color-white,
.hero-subtitle.color-white {
  color: var(--color-white);
}

/* ----------------------------------------
   HERO: Default colors (when no manual override)
   ---------------------------------------- */
/* Light backgrounds (beige, white) - defaults */
.hero-title:not([class*="color-"]) {
  color: var(--color-blue-dark);
}

.hero-subtitle.style-special:not([class*="color-"]) {
  color: var(--color-blue);
}

.hero-subtitle.style-normal:not([class*="color-"]),
.hero-subtitle.style-basic:not([class*="color-"]) {
  color: var(--color-black);
}

/* Dark backgrounds override defaults */
.hero.bg-blue .hero-title:not([class*="color-"]),
.hero.bg-black .hero-title:not([class*="color-"]),
.hero.text-light .hero-title:not([class*="color-"]) {
  color: var(--color-white);
}

.hero.bg-blue .hero-subtitle.style-special:not([class*="color-"]),
.hero.bg-black .hero-subtitle.style-special:not([class*="color-"]),
.hero.text-light .hero-subtitle.style-special:not([class*="color-"]) {
  color: var(--color-blue-light);
}

.hero.bg-blue .hero-subtitle.style-normal:not([class*="color-"]),
.hero.bg-blue .hero-subtitle.style-basic:not([class*="color-"]),
.hero.bg-black .hero-subtitle.style-normal:not([class*="color-"]),
.hero.bg-black .hero-subtitle.style-basic:not([class*="color-"]),
.hero.text-light .hero-subtitle.style-normal:not([class*="color-"]),
.hero.text-light .hero-subtitle.style-basic:not([class*="color-"]) {
  color: var(--color-beige);
}

.hero-description {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  max-width: 800px;
  margin: 0 auto var(--spacing-md);
  color: var(--color-black);
  line-height: 130%;

  ul {
    padding-left: 2rem;
    margin-bottom: 1rem;
  }
}

.hero-cta {
  display: flex;
  gap: var(--spacing-sm);
  flex-wrap: wrap;
  margin-top: var(--spacing-md);
}

/* ----------------------------------------
   HERO: Grid layouts (left/right/top/bottom)
   ---------------------------------------- */
.hero-grid {
  display: grid;
  gap: var(--spacing-lg);
  align-items: center;
  width: 100%;
}

/* Horizontal layout: left/right */
.hero-grid--horizontal {
  grid-template-columns: 1fr 1fr;
}

/* Vertical layout: top/bottom */
.hero-grid--vertical {
  grid-template-columns: 1fr;
}

/* ----------------------------------------
   HERO: Inline media (not background)
   ---------------------------------------- */
.hero-media {
  position: relative;
  width: 100%;
}

.hero-figure {
  margin: 0;
  width: 100%;
  height: 100%;
  min-height: 300px;
  overflow: hidden;
}

.hero-image {
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
  display: block;
}

.hero-video {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  overflow: hidden;
  background-color: var(--color-black);
}

.hero-video iframe,
.hero-video video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Text alignment adjustments for side layouts */
.hero.media-left .hero-content,
.hero.media-right .hero-content {
  margin: 0;
}

.hero.media-left.text-center .hero-content,
.hero.media-right.text-center .hero-content {
  text-align: left;
}

.hero.media-left.text-center .hero-cta,
.hero.media-right.text-center .hero-cta {
  justify-content: flex-start;
}

/* ----------------------------------------
   HERO: Responsive
   ---------------------------------------- */
@media (max-width: 900px) {
  .hero-grid--horizontal {
    grid-template-columns: 1fr;
  }

  /* On mobile, media always on top */
  .hero.media-left .hero-grid--horizontal,
  .hero.media-right .hero-grid--horizontal {
    display: flex;
    flex-direction: column;
  }

  .hero.media-left .hero-grid--horizontal .hero-media,
  .hero.media-right .hero-grid--horizontal .hero-media {
    order: -1;
  }

  .hero-image {
    height: clamp(150px, 40vw, 480px);
    object-fit: contain;
  }

  .hero.media-left.text-center .hero-content,
  .hero.media-right.text-center .hero-content {
    text-align: center;
  }

  .hero.media-left.text-center .hero-cta,
  .hero.media-right.text-center .hero-cta {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .hero.full-height {
    min-height: 100vh;
  }

  /* Home uniquement : 1er hero plein viewport (override inline min-height) */
  .page-home main > section.hero:first-child {
    min-height: 100vh !important;
  }

  /* Home uniquement : margin-bottom sur hero-content pour décoller du bonhomme */
  .page-home main > section.hero:first-child .hero-content {
    margin-bottom: 20vh;
  }

  .hero-figure,
  .hero-image {
    min-height: auto;
  }

  /* Réduit le gap entre média et contenu sur mobile */
  .hero-grid {
    gap: var(--spacing-sm);
  }

  /* Image hero service (honorer/guidance/soins) plus petite pour fit dans la ligne de flottaison */
  .hero.media-left .hero-image,
  .hero.media-right .hero-image,
  .hero.media-top .hero-image,
  .hero.media-bottom .hero-image {
    height: clamp(200px, 40vw, 280px);
    object-fit: contain;
  }
}

/* ========================================
   TABS (dans Hero)
   ======================================== */
.tabs-container {
  margin-top: var(--spacing-md);
}

.tabs {
  display: flex;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-md);
  border-bottom: 2px solid var(--border-color);
  flex-wrap: wrap;
  justify-content: center;
}

.tab-button {
  padding: var(--spacing-sm) var(--spacing-md);
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.3s ease;
  color: var(--text-secondary);
  margin-bottom: -2px;
}

.tab-button:hover {
  color: var(--primary-color);
}

.tab-button.active {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
}

.tab-content {
  padding: var(--spacing-md) 0;
  font-size: 1.125rem;
  line-height: 1.8;
}

.tab-contents .tab-content {
  display: none;
}

.tab-contents .tab-content.active {
  display: block;
}

/* ========================================
   INTERNAL PAGE NAV - Fixed Bottom Bar
   ======================================== */
.internal-nav-fixed {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  background-color: var(--color-beige-light);
  border-top: 1px solid var(--color-black);
}

.internal-nav-item {
  flex: 1;
  position: relative;
  padding: 1rem 0.5rem;
  background: var(--color-beige);
  border: none;
  border-right: 1px solid var(--color-black);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-black);
  text-align: center;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.internal-nav-item:hover {
  color: var(--color-black);
  text-decoration: none;
}

.internal-nav-item.active {
  background: var(--color-black);
}

.internal-nav-item.active .internal-nav-label {
  color: var(--color-white);
}

.internal-nav-item:last-child {
  border-right: none;
}

.internal-nav-item:hover {
  background: var(--color-black);
}

/* Shape that morphs from rectangle to chevron on hover */
.internal-nav-item::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--color-beige);
  /* Rectangle shape (5 points, bottom is flat) */
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 100%, 0 100%);
  opacity: 0;
  transition: clip-path 0.3s ease, opacity 0.2s ease;
  pointer-events: none;
}

.internal-nav-item:hover::before {
  opacity: 1;
  /* Chevron shape - steep arrow pointing down */
  clip-path: polygon(0 0, 100% 0, 100% 10%, 50% 100%, 0 10%);
}

.internal-nav-label {
  position: relative;
  z-index: 1;
  display: block;
  transition: transform 0.3s ease;
}

.internal-nav-item:hover .internal-nav-label {
  transform: translateY(-8px);
}

/* Hide on mobile */
@media (max-width: 767px) {
  .internal-nav-fixed {
    display: none;
  }
}

/* Add padding to body to prevent content being hidden behind fixed nav */
body:has(.internal-nav-fixed) {
  padding-bottom: 60px;
}

@media (max-width: 767px) {
  body:has(.internal-nav-fixed) {
    padding-bottom: 0;
  }
}

/* ========================================
   FEATURES GRID
   ======================================== */
.features-grid {
  display: grid;
  gap: var(--spacing-md);
  margin-top: var(--spacing-md);
}

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

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

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

.feature-item {
  text-align: center;
  padding: var(--spacing-md);
  transition: all 0.3s ease;
}

.feature-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  width: 96px;
  height: 96px;
  margin: 0 auto var(--spacing-sm);
}

.feature-icon lottie-player {
  display: block;
  width: 100%;
  height: 100%;
}

/* Interactive mode styles */
.features-grid.interactive .feature-item.clickable {
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.features-grid.interactive .feature-item.checked {
  background-color: var(--color-beige-light);
}

.checkbox {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 24px;
  height: 24px;
  border: 2px solid var(--color-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-white);
}

.check-mark {
  color: var(--color-blue);
  font-weight: bold;
  font-size: 18px;
}

.interactive-feedback {
  text-align: center;
  padding: var(--spacing-lg);
  background-color: var(--color-beige-light);
}

.features-cta {
}

.text-center .features-cta,
.content-center .features-cta {
  text-align: center;
}

.checked-count {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-blue);
  margin-bottom: var(--spacing-sm);
}

/* Instruction "Coche ce qui te correspond" entre subtitle et grid */
.features-instruction {
  text-align: center;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-blue);
  margin: 0 0 var(--spacing-md);
}

.feedback-message {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-black);
  margin-bottom: var(--spacing-md);
  line-height: 1.4;
}

.features-cta .btn {
  margin-top: var(--spacing-md);
  font-size: 1.1rem;
  padding: 1rem 2rem;
}

/* Dynamic intensity classes */
.features-grid.une-case .interactive-feedback {
  background-color: #f0f9ff;
}

.features-grid.deux-cases .interactive-feedback {
  background-color: #e0f2fe;
}

.features-grid.trois-cases .interactive-feedback {
  background-color: #fef3c7;
}

.features-grid.quatre-cases .interactive-feedback {
  background-color: #fed7aa;
}

.features-grid.cinq-cases .interactive-feedback {
  background-color: #fecaca;
}

.features-grid.six-cases .interactive-feedback {
  background-color: #fca5a5;
}

.features-grid.sept-cases .interactive-feedback,
.features-grid.huit-cases .interactive-feedback {
  background-color: #f87171;
  animation: pulse 1s infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
}

/* ========================================
   SERVICE HERO
   ======================================== */
.service-hero-content {
  max-width: 100%;
}

.service-hero-icon {
  width: 120px;
  height: 120px;
  margin-bottom: var(--spacing-md);
}

/* Service Hero: Text alignment variants */
.service-hero.text-center .service-hero-content {
  text-align: center;
}

.service-hero.text-left .service-hero-content {
  text-align: left;
}

.service-hero.text-right .service-hero-content {
  text-align: right;
}

/* Service Hero: Description */
.service-hero-description {
  margin-top: var(--spacing-md);
  line-height: 130%;
  text-wrap: balance;
  font-size: clamp(1rem, 1.5vw, 1.25rem);
}

.service-hero-description p {
  margin-bottom: var(--spacing-sm);
  max-width: 500px;
}

.service-hero-description p:last-child {
  margin-bottom: 0;
}

/* Service Hero: CTA Buttons */
.service-hero-cta {
  margin-top: var(--spacing-lg);
  display: flex;
  gap: var(--spacing-sm);
  flex-wrap: wrap;
}

.service-hero.text-center .service-hero-cta {
  justify-content: center;
}

.service-hero.text-left .service-hero-cta {
  justify-content: flex-start;
}

.service-hero.text-right .service-hero-cta {
  justify-content: flex-end;
}

/* Service Hero: Dark background color overrides */
.service-hero.bg-blue .service-hero-title:not([class*="color-"]),
.service-hero.bg-dark .service-hero-title:not([class*="color-"]) {
  color: var(--color-white);
}

.service-hero.bg-blue .service-hero-subtitle.style-special:not([class*="color-"]),
.service-hero.bg-dark .service-hero-subtitle.style-special:not([class*="color-"]) {
  color: var(--color-beige);
}

.service-hero.bg-blue .service-hero-subtitle.style-normal:not([class*="color-"]),
.service-hero.bg-blue .service-hero-subtitle.style-basic:not([class*="color-"]),
.service-hero.bg-dark .service-hero-subtitle.style-normal:not([class*="color-"]),
.service-hero.bg-dark .service-hero-subtitle.style-basic:not([class*="color-"]) {
  color: var(--color-white);
}

.service-hero.bg-blue .service-hero-description,
.service-hero.bg-dark .service-hero-description {
  color: var(--color-white);
}

/* Legacy support */
.service-subtitle {
  font-size: 1.5rem;
  color: var(--color-blue);
  margin-bottom: var(--spacing-md);
}

.service-description {
  text-align: left;
  padding-top: var(--spacing-md);
}

/* ========================================
   COLUMNS
   ======================================== */
.columns-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-xl);
  margin-top: var(--spacing-md);
}

.column-subtitle {
  font-family: var(--font-special);
  font-weight: 400;
  font-size: clamp(1.75rem, 2.2vw, 3rem);
  font-style: italic;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--color-blue);
  margin-top: -0.5em;
  margin-left: 0.5em;
  margin-bottom: var(--spacing-md);
  text-wrap: balance;
}

.column-content {
  line-height: 1.8;
}

.column-content p {
  margin-bottom: var(--spacing-sm);
}

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

.column-list li {
  padding: var(--spacing-xs) 0;
  padding-left: 1.5rem;
  position: relative;
  line-height: 130%;
}

.column-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--color-blue);
  font-weight: bold;
  font-size: 1.2rem;
}

.columns-cta {
  text-align: center;
  justify-content: center;
}

/* ========================================
   CE QUE JE FAIS / NE FAIS PAS - Scoped
   ======================================== */
#ce-que-je-fais-ne-fais-pas {
  --truths-ink: var(--color-black);
  --truths-blue-light: var(--color-blue);
  --truths-blue-dark: var(--color-blue-dark);
  --truths-bg: var(--color-beige);

  background-color: var(--truths-bg);
  padding: var(--spacing-xl) 0;
}

/* Grid - 2 columns with border separator */
#ce-que-je-fais-ne-fais-pas .columns-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-top: 0;
}

/* Column styling with vertical border */
#ce-que-je-fais-ne-fais-pas .column {
  display: flex;
  flex-direction: column;
}

#ce-que-je-fais-ne-fais-pas .column:first-child {
  border-right: 2px solid var(--truths-ink);
}

/* Header zone (title + subtitle) with bottom border */
#ce-que-je-fais-ne-fais-pas .column h3 {
  margin: 0;
  padding: var(--spacing-lg) var(--spacing-lg) 0.5rem;
}

#ce-que-je-fais-ne-fais-pas .column-subtitle {
  font-family: var(--font-special);
  font-weight: 400;
  font-size: clamp(1.75rem, 2.2vw, 3rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--truths-blue-light);
  font-style: italic;
  margin-top: -0.5em;
  margin-left: calc(var(--spacing-lg) + .5em);
  padding: 0;
  border-bottom: none;
}

/* List zone */
#ce-que-je-fais-ne-fais-pas .column-list {
  list-style: none;
  padding: var(--spacing-lg);
  margin: 0;
  flex: 1;
  border-top: 2px solid var(--truths-ink);
}

#ce-que-je-fais-ne-fais-pas .column-list li {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(1.2rem, 1.5vw, 1.6rem);
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--truths-ink);
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
}

#ce-que-je-fais-ne-fais-pas .column-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--truths-ink);
  font-weight: 400;
  font-size: 1.2rem;
  line-height: 1.3;
}

/* CTA Button */
#ce-que-je-fais-ne-fais-pas .btn {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--truths-ink);
  background-color: transparent;
  border: 2px solid var(--truths-ink);
  padding: 1rem 2rem;
  text-transform: lowercase;
  transition: background-color 0.2s ease;
}

#ce-que-je-fais-ne-fais-pas .btn:hover {
  background-color: rgba(255, 255, 255, 0.5);
  color: var(--truths-ink);
  transform: none;
  box-shadow: none;
}

#ce-que-je-fais-ne-fais-pas .btn:focus {
  outline: 2px solid var(--truths-blue-dark);
  outline-offset: 2px;
}

/* ----------------------------------------
   RESPONSIVE < 900px
   ---------------------------------------- */
@media (max-width: 900px) {
  #ce-que-je-fais-ne-fais-pas .columns-grid {
    grid-template-columns: 1fr;
  }

  #ce-que-je-fais-ne-fais-pas .column:first-child {
    border-right: none;
    border-bottom: 1px solid var(--color-blue-dark);
  }

  #ce-que-je-fais-ne-fais-pas .column h3 {
    padding: var(--spacing-md) var(--spacing-sm) 0.5rem;
  }

  #ce-que-je-fais-ne-fais-pas .column-subtitle {
    margin-left: calc(var(--spacing-sm) + .5em);
    margin-bottom: 0;
  }

  #ce-que-je-fais-ne-fais-pas .column-list {
    padding: var(--spacing-md) var(--spacing-sm);
    border-top: none;
    padding-top: 1em;
  }
}

/* ========================================
   SERVICES GRID
   ======================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-md);
  margin-top: var(--spacing-md);
}

.service-card {
  width: 100%;
  max-width: 450px;
  margin-inline: auto;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.pricing-section {
  background: var(--color-beige-light);
  position: relative;
  z-index: 10;
}
.pricing-section .service-card {
  background: var(--color-white);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 100px 94px rgb(216 193 160 / 34%);
}

.service-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--spacing-sm);
}

.service-card .service-subtitle {
  font-size: 0.95rem;
  color: var(--color-blue);
  font-weight: 500;
  margin-bottom: var(--spacing-xs);
}

.service-link {
  display: inline-block;
  margin-top: var(--spacing-sm);
  color: var(--color-blue);
  font-weight: 500;
  text-decoration: none;
  transition: transform 0.3s ease;
}

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

/* ========================================
   TESTIMONIALS
   ======================================== */

/* Header */
.testimonials-header {
  margin-bottom: var(--spacing-lg);
}

.testimonials-title {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 0.9;
  letter-spacing: -0.03em;
  margin: 0;
  text-wrap: balance;
}

.testimonials-subtitle {
  margin: 0;
  text-wrap: balance;
}

.testimonials-subtitle.style-special {
  font-family: var(--font-special);
  font-size: clamp(1.75rem, 2.2vw, 3rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1;
  letter-spacing: -0.03em;
}

.text-left .testimonials-subtitle.style-special {
  margin-top: -0.5em;
  margin-left: 0.5em;
}

/* Masonry Grid */
.testimonials-masonry {
  column-count: 3;
  column-gap: clamp(1rem, 2vw, 1.5rem);
  max-width: 1100px;
  margin: var(--spacing-md) auto 0;
}

/* Card */
.testimonial-card {
  break-inside: avoid;
  margin-bottom: clamp(1rem, 2vw, 1.5rem);
  padding: clamp(1.25rem, 2vw, 1.75rem);
  text-align: center;
}

/* Card colors */
.testimonial-card.card-white {
  background-color: var(--color-white);
}

.testimonial-card.card-blue-light {
  background-color: var(--color-blue-light);
}

.testimonial-card.card-blue-dark {
  background-color: var(--color-btn-bg);
  color: var(--color-beige);
}

/* Content */
.testimonial-content {
  font-family: var(--font-body);
  font-size: clamp(0.875rem, 1.2vw, 1rem);
  font-weight: 400;
  line-height: 1.5;
  margin: 0 0 1em 0;
}

/* Author */
.testimonial-author {
  font-family: var(--font-body);
  font-size: clamp(0.875rem, 1vw, 1rem);
  font-weight: 600;
  margin: 0;
}

/* Responsive */
@media (max-width: 900px) {
  .testimonials-masonry {
    column-count: 2;
  }
}

@media (max-width: 600px) {
  .testimonials-masonry {
    column-count: 1;
  }
}

/* CTA */
.testimonials-cta {
  display: flex;
  gap: var(--spacing-sm);
  flex-wrap: wrap;
  margin-top: var(--spacing-lg);
}

.text-center .testimonials-cta,
.content-center .testimonials-cta {
  justify-content: center;
}

.text-left .testimonials-cta,
.content-left .testimonials-cta {
  justify-content: flex-start;
}

.text-right .testimonials-cta,
.content-right .testimonials-cta {
  justify-content: flex-end;
}

/* ========================================
   VALUES (Je fais / Je ne fais pas)
   ======================================== */
.values-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xl);
  align-items: start;
}

.values-content {
  padding-right: var(--spacing-lg);
}

.values-description {
  margin-bottom: var(--spacing-md);
}

.values-lists {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.value-list h3 {
  margin-bottom: var(--spacing-sm);
}

.list-check,
.list-cross {
  list-style: none;
  padding: 0;
}

.list-check li,
.list-cross li {
  padding-left: 2rem;
  position: relative;
  margin-bottom: var(--spacing-sm);
}

.list-check li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-blue);
  font-weight: bold;
  font-size: 1.2rem;
}

.list-cross li::before {
  content: '✗';
  position: absolute;
  left: 0;
  color: var(--color-red);
  font-weight: bold;
  font-size: 1.2rem;
}

.values-image img {
  width: 100%;
}

/* ========================================
   PROCESS STEPS
   ======================================== */
/* ── Process: Sticky Card Stack (GSAP) ── */
.process-stack {
  --nav-h: 100px;
  --stack-offset: 3.5rem;
}

/* Les pin-spacers GSAP ne doivent pas bloquer les events */
.process-stack .pin-spacer {
  pointer-events: none !important;
}

.process-card-inner {
  pointer-events: auto;
}

.process-card {
  margin-bottom: 4.5rem;
  text-wrap: balance;
}

.process-card:not(.process-card-title) {
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.process-card.process-card-title {
  margin-bottom: 7rem;
}

.process-card:last-child {
  margin-bottom: 0;
}

/* Title card */
.process-card-title-card {
  display: flex;
  align-items: center;
  padding: 1rem 1.5rem;
}

.process-card-title-card h2 {
  margin: 0;
}

.process-section {
  margin-bottom: 20vh;
}

/* Visual card */
.process-card-inner {
  background: var(--bg-color);
  xborder: 1px solid var(--border-color);
  xborder-radius: 0.75rem;
  xbox-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  cursor: pointer;
  transform-origin: center top;
  will-change: transform, box-shadow;
}

.process-card-title-card {
  background: none;
  box-shadow: none;
  border: none;
  text-align: center;
  justify-content: center;
}

.process-card-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  padding: 0.85rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.process-card .process-card-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  color: var(--color-blue-dark);
  letter-spacing: 0.02em;
}

.process-card-number {
  font-size: 1.5rem;
  font-weight: 800;
  xfont-family: var(--font-special);
  color: var(--color-blue);
  line-height: 1;
  flex-shrink: 0;
}

.process-card-body {
  padding: 1.25rem 1.5rem 1.5rem;
}

.process-card-body p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* Dark background variant */
.bg-dark .process-card-inner {
  background: var(--color-btn-bg);
  border-color: rgba(255, 255, 255, 0.15);
}

.bg-dark .process-card-header {
  border-bottom-color: rgba(255, 255, 255, 0.15);
}

.bg-dark .process-card-title {
  color: var(--color-white);
}

.bg-dark .process-card-body p {
  color: rgba(255, 255, 255, 0.8);
}

/* Mobile */
@media (max-width: 768px) {
  /* Pas de pin/stack sur mobile - flow normal */
  .process-stack {
    --stack-offset: 0;
  }

  .process-card {
    margin-bottom: 1.25rem;
    max-width: none;
  }

  .process-card:not(.process-card-title) {
    max-width: none;
  }

  .process-card.process-card-title {
    margin-bottom: 1rem;
  }

  .process-section {
    margin-bottom: 0;
  }

  .process-card-inner {
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
  }

  .process-card-title-card {
    border: none;
  }
}

@media (max-width: 640px) {
  .process-card-header {
    padding: 0.7rem 1rem;
  }

  .process-card-title {
    font-size: 0.95rem;
  }

  .process-card-number {
    font-size: 1.35rem;
  }

  .process-card-body {
    padding: 1rem;
  }
}

/* ========================================
   PRICING
   ======================================== */
/* ── Services & Tarifs (alternating layout) ── */
.services-list {
  margin-top: var(--spacing-md);
}

.pricing-section h2 {
  text-align: left;

  strong {
    translate: 0 -.25em;
  }
}

/* ── Service row: description + card side by side ── */
.service-row {
  display: grid;
  grid-template-columns: 0.6fr 1fr;
  align-items: start;
  gap: clamp(2rem, 4vw, 4rem);
  padding: clamp(2rem, 4vw, 3.5rem) 0;
  border-bottom: 1px solid var(--border-color);
}

.service-row:last-child {
  border-bottom: none;
}

/* Alternation: card goes right or left */
.service-row--card-left .service-card { order: -1; }

/* ── Service description ── */
.service-name {
  font-size: clamp(1.4rem, 2.2vw, 1.8rem);
  font-weight: 700;
  color: var(--color-blue-dark);
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.service-text {
  font-size: clamp(0.95rem, 1.1vw, 1.05rem);
  line-height: 1.6;
  color: var(--text-secondary);
  text-wrap: balance;
}

.service-text p {
  margin-bottom: 0.75rem;
}

.service-text p:last-child {
  margin-bottom: 0;
}

.service-text ul {
  padding-left: 1.2rem;
  margin-bottom: 0.75rem;
}

.service-text li {
  margin-bottom: 0.3rem;
}

.pointscles-section .pointscles-subtitle {
  font-family: var(--font-special);
  font-weight: 400;
  font-size: 2.5em;
  translate: 0 -.5em;
  color: var(--color-blue);
  letter-spacing: -0.02em;
}

/* ── Service card (price side) ── */
.service-card {
  position: relative;
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  transition: box-shadow 0.3s cubic-bezier(.2,.7,.2,1), transform 0.3s cubic-bezier(.2,.7,.2,1);
}

.service-card:has(.pricing-badge.is-visible) {
  border-color: var(--color-blue);
}

/* Badge */
.pricing-badge {
  position: absolute;
  top: 0;
  left: 1.75rem;
  transform: translate(0%, -50%);
  background: var(--color-blue);
  color: var(--color-black);
  font-size: 0.7rem;
  font-weight: 550;
  padding: 0.05rem 0.75rem;
  border-radius: 999px;
  letter-spacing: 0.03em;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(122, 195, 255, 0.3);
}

/* Card inner */
.service-card-inner {
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
  text-align: left;
}

.pricing-section .service-card {
  position: sticky;
  top: var(--nav-h);
}

/* Card header: title left, price right */
.service-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
  gap: 1rem;
}

/* Title group: title + duration stacked */
.service-card-title-group {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.service-card-duration {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-secondary);
  opacity: 0.6;
  letter-spacing: 0.01em;
}

/* Card title */
.service-card .service-card-title {
  font-size: clamp(24px, 2.25vw, 2.55rem);
  font-weight: 700;
  color: var(--color-blue-dark);
  letter-spacing: -0.02em;
  line-height: 1;
  margin: 0;
  margin-bottom: 0.25rem;
}

/* Price group (amount + subtitle stacked) */
.pricing-price-group {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  flex-shrink: 0;
  gap: 0.1rem;
  text-align: right;
  width: 140px;
}

/* Legacy simple wrapper (if still used) */
.pricing-price {
  margin: 0;
  display: flex;
  align-items: baseline;
  flex-shrink: 0;
}

.pricing-amount {
  font-size: clamp(1.1rem, 1.75vw, 1.4rem);
  font-weight: 600;
  color: var(--color-blue-dark);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-top: .5rem;
  white-space: nowrap;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.pricing-amount.is-changing {
  opacity: 0;
  transform: translateY(-4px);
}

/* Option toggles */
.pricing-options {
  display: flex;
  background: var(--color-beige);
  border-radius: 999px;
  padding: 0.2rem;
  gap: 0.15rem;
  flex-wrap: wrap;
  justify-content: center;
}

.pricing-option {
  font-family: var(--font-body);
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(.2,.7,.2,1);
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.pricing-option:hover {
  color: var(--color-blue-dark);
  background: rgba(255,255,255,0.6);
}

.pricing-option.active {
  background: var(--color-btn-bg);
  color: var(--color-beige);
  box-shadow: 0 2px 8px rgba(6, 44, 67, 0.2);
}

/* Features */
.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
  width: 100%;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  padding: 0.2rem 0;
  font-size: 0.8rem;
  color: var(--text-secondary);
  letter-spacing: -0.01em;
}

.pricing-features li::before {
  content: '✓';
  color: var(--color-blue-text);
  font-weight: 700;
  flex-shrink: 0;
  font-size: 0.8rem;
}

/* CTA button */
.service-cta {
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.85rem 1.5rem;
  text-align: center;
  margin: auto;
  margin-top: 1.5rem;
  letter-spacing: -0.01em;
}

/* ── Interactive configurator ── */
.pricing-configurator {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  width: 100%;
  padding-top: 0.5rem;
  padding-bottom: 0.75rem;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.config-step-row {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.config-step {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
  animation: configFadeIn 0.25s cubic-bezier(.2,.7,.2,1);
}

.config-step[hidden] {
  display: none;
}

@keyframes configFadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.config-label {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text-secondary);
  opacity: 0.7;
}

.config-choices {
  display: inline-flex;
  border: 1px solid var(--border-color);
  border-radius: 999px;
  padding: 0.2rem;
  gap: 0.15rem;
  translate: -.3rem 0;
}

.config-choice {
  font-family: var(--font-body);
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: none;
  background: transparent;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(.2,.7,.2,1);
  white-space: nowrap;
  letter-spacing: -0.02em;
}

.config-choice:hover {
  color: var(--color-blue-dark);
  background: rgba(0,0,0,0.07);
  background: var(--color-blue-light);
}

.config-choice.active {
  background: var(--color-btn-bg);
  color: var(--color-white);
  box-shadow: 0 1px 4px rgba(6, 44, 67, 0.25);
}

.config-result {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.1rem;
  flex-shrink: 0;
  text-align: right;
  width: 140px;
}

.config-result .pricing-amount.is-changing {
  opacity: 0;
  transform: translateY(-4px);
}

.config-note,
.pricing-subtitle{
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-wrap: balance;
  line-height: 1.1em;
  margin-top: 0.25rem;
  opacity: 0.7;
}

.config-note[hidden] {
  display: none;
}

/* Dynamic badge for interactive cards */
.pricing-badge--dynamic {
  opacity: 0;
  transform: translate(0, -50%) scale(0.9);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}

.pricing-badge--dynamic.is-visible {
  opacity: 1;
  transform: translate(0, -50%) scale(1);
}

/* ─── Bouton "En savoir plus" — masqué sur desktop, visible mobile ─── */
.service-details-trigger {
  display: none;
}

/* ─── Modal popup détails ─── */
.pricing-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-sm);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.pricing-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.pricing-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 25, 45, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  cursor: pointer;
}

.pricing-modal-content {
  position: relative;
  background: var(--color-white);
  border-radius: 1rem;
  max-width: 560px;
  width: 100%;
  max-height: 94vh;
  overflow-y: auto;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: 0 25px 60px rgba(15, 25, 45, 0.35);
  transform: translateY(20px) scale(0.98);
  transition: transform 0.25s cubic-bezier(.2,.7,.2,1);
}

.pricing-modal.is-open .pricing-modal-content {
  transform: translateY(0) scale(1);
}

.pricing-modal-close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  background: none;
  border: none;
  padding: 0.4rem;
  cursor: pointer;
  color: var(--color-blue-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s ease;
}

.pricing-modal-close:hover {
  background: var(--color-beige);
}

.pricing-modal-title {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: clamp(1.4rem, 4vw, 1.8rem);
  color: var(--color-blue-dark);
  margin: 0 2rem 1rem 0;
  line-height: 1;
  letter-spacing: -0.02em;
}

.pricing-modal-body {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.pricing-modal-body p {
  margin: 0 0 0.75rem;
}

.pricing-modal-body p:last-child {
  margin-bottom: 0;
}

.pricing-modal-body strong {
  color: var(--color-blue-dark);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  /* Cards pricing pleine largeur (les margins auto du container les compriment sinon) */
  .pricing-section > .container,
  .pricing-section .inner-wrapper > div {
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
  }
  .pricing-section .service-card {
    max-width: none;
  }

  .service-row {
    grid-template-columns: 1fr;
    gap: 0;
    padding: var(--spacing-md) 0;
  }
  /* Description masquée sur mobile : remplacée par le bouton + popup */
  .service-description {
    display: none;
  }
  /* Bouton "En savoir plus" : visible mobile, bien démarqué */
  .service-details-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    align-self: center;
    margin: 1rem auto 0;
    padding: 0.6rem 1.1rem;
    background: transparent;
    border: 1px solid var(--color-blue);
    color: var(--color-blue);
    border-radius: 999px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
  }
  .service-details-trigger:hover,
  .service-details-trigger:focus-visible {
    background: var(--color-blue);
    color: var(--color-white);
  }
  .service-details-trigger svg {
    flex-shrink: 0;
  }
  .service-card-inner {
    padding: 1.5rem 1rem;
  }
  /* Mobile : header en colonne, tout aligné à gauche */
  .service-card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .pricing-price-group,
  .config-result {
    align-items: flex-start;
    text-align: left;
    width: auto;
  }
  .service-card-title {
    font-size: 1.1rem;
  }
  .config-choice {
    padding: 0.4rem 0.75rem;
    font-size: 0.78rem;
  }
}

/* ═══════════════════════════════════════════
   FAQ ACCORDION
   ═══════════════════════════════════════════ */
.faq-section {
  padding-left: 1rem;
  padding-right: 1rem;
}

.faq-title {
  text-align: center;
  margin-bottom: var(--spacing-md);
}

.accordion {
  max-width: 900px;
  margin: 0 auto;
}

.accordion__item {
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  margin-bottom: 0.75rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.accordion__item.is-open {
  border-color: var(--color-blue);
  box-shadow: 0 2px 12px rgba(122, 195, 255, 0.1);
}

.accordion__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: clamp(1.1rem, 1.4vw, 1.3rem);
  font-weight: 500;
  color: var(--color-blue-dark);
  text-align: left;
  transition: color 0.2s ease;
  text-wrap: balance;
}

.accordion__trigger:hover {
  color: var(--color-blue-text);
}

.accordion__icon {
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(.2,.7,.2,1);
  color: var(--color-blue);
}

.accordion__item.is-open .accordion__icon {
  transform: rotate(180deg);
}

.accordion__content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(.2,.7,.2,1);
}

.accordion__body {
  padding: 0 1.5rem 1.5rem;
  font-size: clamp(1rem, 1.15vw, 1.1rem);
  line-height: 1.5;
  color: var(--text-secondary);
  text-align: left;
  text-wrap: balance;
}

.accordion__body p {
  margin-bottom: 0.75rem;
}

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

/* FAQ CTA */
.faq-cta {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: var(--spacing-md);
}

@media (max-width: 768px) {
  .accordion__trigger {
    padding: 1rem 1.15rem;
    font-size: clamp(1rem, 1.2vw, 1.1rem);
  }
  .accordion__body {
    padding: 0 1.15rem 1.15rem;
  }
}

/* ========================================
   CTA SECTION
   ======================================== */
.cta-section {
  text-align: center;
}

.cta-content {
  max-width: 800px;
  margin: 0 auto;
}

.cta-title {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-sm);
  text-wrap: balance;
}

.cta-description {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-md);
}

.features-cta .btns {
  display: flex;
  gap: var(--spacing-sm);
  justify-content: center;
  flex-wrap: wrap;
}

/* ========================================
   ARTICLES
   ======================================== */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-md);
  margin-top: var(--spacing-md);
}

.article-card {
  background: var(--color-white);
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.article-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.article-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.article-content {
  padding: var(--spacing-md);
}

.article-meta {
  display: flex;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-sm);
  font-size: 0.875rem;
}

.article-category {
  color: var(--color-blue);
  font-weight: 500;
}

.article-date {
  color: var(--text-secondary);
}

.article-card h3 {
  margin-bottom: var(--spacing-xs);
  color: var(--text-color);
}

.article-excerpt {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: var(--spacing-sm);
}

.read-more {
  color: var(--color-blue);
  font-weight: 500;
}

/* ========================================
   EVENTS / COURS & ATELIERS PAGE
   ======================================== */
.events-page {
  padding: clamp(4rem, 8vw, 6rem) 0;
  min-height: 60vh;
}

/* Header */
.events-header {
  text-align: center;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.events-header h1 {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--svc-ink);
  margin: 0;
  text-transform: lowercase;
}

.events-subtitle {
  font-family: var(--font-special);
  font-style: italic;
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  color: var(--color-blue);
  margin: 0.25rem 0 0 0;
  translate: 0 -.25em;
}

/* Filter tabs */
.events-filters {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
  flex-wrap: wrap;
}

.event-filter {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  padding: 0.5rem 1.25rem;
  border-radius: 2rem;
  border: 2px solid var(--svc-ink);
  color: var(--svc-ink);
  background: transparent;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.event-filter:hover {
  background: var(--svc-ink);
  color: #fff;
}

.event-filter.active {
  background: var(--svc-ink);
  color: #fff;
}

/* Events list */
.events-list {
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 2vw, 1.5rem);
  max-width: 800px;
  margin: 0 auto;
}

/* ----------------------------------------
   SINGLE EVENT CARD
   ---------------------------------------- */
.event-card {
  display: flex;
  border-radius: 1rem;
  background: var(--color-white);
  box-shadow: 0 2px 16px rgba(6, 44, 67, 0.06);
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.event-card:hover {
  box-shadow: 0 8px 32px rgba(6, 44, 67, 0.1);
}

/* Left column: price + date badge */
.event-left {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  flex-shrink: 0;
  width: 120px;
}

.event-left .event-price-block {
  display: flex;
  flex-direction: column;
  padding: 0.5rem 1rem;
  gap: 0.15rem;
}

.event-left .event-price {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: clamp(0.95rem, 1.5vw, 1.15rem);
  color: var(--color-blue-dark);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.event-left .event-price-note {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.2;
}

/* Date badge */
.event-date-badge {
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: start;
  padding: 1.25rem 1rem;
  background: var(--color-blue);
  color: #fff;
  flex: 1;
}

.event-date-badge .event-day {
  font-family: var(--font-body);
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
}

.event-date-badge .event-month {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  margin-top: 0.15rem;
}

.event-date-badge.on-demand {
  background: var(--svc-bg);
  color: var(--svc-ink-light);
}

.event-date-badge .event-on-demand {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  line-height: 1.4;
}

/* Content (right) */
.event-content {
  flex: 1;
  padding: clamp(1rem, 2vw, 1.25rem) clamp(1rem, 2vw, 1.5rem);
  min-width: 0;
}

/* Summary row: type+title left, price+cta right */
.event-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.event-summary-text {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
  flex: 1;
}

.event-type-badge {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.65rem;
  border-radius: 2rem;
  background: var(--svc-bg);
  color: var(--color-blue);
  white-space: nowrap;
  flex-shrink: 0;
}

.event-title {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--color-blue-dark);
  margin: 0;
  overflow: hidden;
}

.event-summary-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.event-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8rem;
  color: #fff;
  background: #25D366;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  text-decoration: none;
  text-transform: lowercase;
  transition: background 0.2s ease;
  white-space: nowrap;
}

.event-cta:hover {
  background: #1fb855;
  color: #fff;
}

.event-cta i {
  font-size: 1rem;
}

/* "En savoir plus" trigger → ouvre la modal */
.event-details-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 0.85rem;
  padding: 0.55rem 1.1rem;
  background: transparent;
  border: 1px solid var(--color-blue);
  border-radius: 999px;
  color: var(--color-blue);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.event-details-trigger:hover,
.event-details-trigger:focus-visible {
  background: var(--color-blue);
  color: var(--color-white);
}

.event-details-trigger svg {
  flex-shrink: 0;
}

/* ── Modal détails événement ── */
.event-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-sm);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.event-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.event-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 25, 45, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  cursor: pointer;
}

.event-modal-content {
  position: relative;
  background: var(--color-white);
  border-radius: 1rem;
  max-width: 560px;
  width: 100%;
  max-height: 94vh;
  overflow-y: auto;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: 0 25px 60px rgba(15, 25, 45, 0.35);
  transform: translateY(20px) scale(0.98);
  transition: transform 0.25s cubic-bezier(.2,.7,.2,1);
}

.event-modal.is-open .event-modal-content {
  transform: translateY(0) scale(1);
}

.event-modal-close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  background: none;
  border: none;
  padding: 0.4rem;
  cursor: pointer;
  color: var(--color-blue-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s ease;
}

.event-modal-close:hover {
  background: var(--color-beige);
}

.event-modal-title {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: clamp(1.4rem, 4vw, 1.8rem);
  color: var(--color-blue-dark);
  margin: 0 2rem 1rem 0;
  line-height: 1;
  letter-spacing: -0.02em;
}

.event-modal-body {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.event-modal-body .event-desc {
  border-top: none;
  margin-top: 0;
  padding-top: 0;
  font-size: 1rem;
}

.event-modal-body .event-desc p {
  margin: 0 0 0.75rem;
  padding: 0;
}

.event-modal-body .event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.25rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.event-modal-body .event-other-dates {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.75rem;
  align-items: center;
}

.event-modal-body .event-other-date {
  background: var(--color-beige);
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--color-blue-dark);
}

.event-details .event-desc {
  font-family: var(--font-body);
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--svc-ink-light);
  padding-top: 0.75rem;
  margin-top: 0.5rem;
  border-top: 1px solid rgba(6, 44, 67, 0.06);
}

.event-card.is-open .event-details .event-desc {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.event-details .event-desc p {
  margin: 0 0 1rem 0;
  padding: .5em 1rem;
}

.event-details .event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.25rem;
  margin-top: .5rem;
}

.event-card.is-open .event-details .event-meta {
  margin-top: 1rem;
}

.event-meta-item {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--svc-ink-light);
}

.event-meta-item i {
  font-size: 0.7rem;
  color: var(--color-blue);
  width: 14px;
  text-align: center;
}

/* Other dates */
.event-other-dates {
  margin-top: 0.75rem;
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--svc-ink-light);
}

.event-other-dates strong {
  color: var(--svc-ink);
}

.event-other-date {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0.15rem 0.5rem;
  background: var(--svc-bg);
  border-radius: 4px;
  font-weight: 600;
  color: var(--color-blue);
}

.event-other-date em {
  font-weight: 400;
  color: var(--svc-ink-light);
}

/* Empty state */
.events-empty {
  text-align: center;
  padding: 3rem 1rem;
}

.events-empty p {
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: var(--svc-ink-light);
  margin-bottom: 1.5rem;
}

/* ----------------------------------------
   EVENTS RESPONSIVE
   ---------------------------------------- */
@media (max-width: 600px) {
  .event-card {
    flex-direction: column;
  }

  .event-left {
    flex-direction: column-reverse;
    min-width: auto;
    width: auto;
  }

  .event-left .event-price-block {
    padding: 0.5rem 0.75rem;
    flex-direction: row;
    align-items: baseline;
    gap: 0.4rem;
  }

  .event-date-badge {
    flex-direction: row;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    min-width: auto;
    justify-content: flex-start;
    flex: 1;
  }

  .event-date-badge.on-demand {
    background: var(--color-blue-light);
    color: var(--color-blue-dark);
  }

  .event-date-badge .event-day {
    font-size: 1.5rem;
  }

  .event-summary {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .event-summary-text {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
  }

  .event-title {
    white-space: normal;
  }

  .event-summary-right {
    width: 100%;
    justify-content: space-between;
  }
}


/* ========================================
   BLOG PAGE
   ======================================== */
.blog-section {
  padding-top: var(--spacing-xl);
  padding-bottom: var(--spacing-xl);
}

.blog-section .container {
  max-width: inherit;
}

/* Blog Layout - Sidebar + Content */
.blog-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--spacing-sm);
  align-items: start;
}

/* Sidebar */
.blog-sidebar {
  position: sticky;
  top: 120px;
}

.blog-sidebar-header h1 {
  margin-bottom: var(--spacing-sm);
}

.blog-sidebar-description {
  color: var(--text-secondary);
  line-height: 130%;
  margin-bottom: var(--spacing-lg);
}

.blog-sidebar-categories h3 {
  font-size: 1rem;
  margin-bottom: var(--spacing-sm);
  color: var(--text-color);
}

/* Category Filters - Sidebar version */
.blog-sidebar .category-filters {
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0;
  justify-content: flex-start;
}

.blog-sidebar .category-filter {
  text-align: left;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Category Count */
.category-count {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 400;
  padding: 0.1rem 0.5rem;
  margin-left: 0.5rem;
}

.category-filter.active .category-count,
.category-filter:hover .category-count {
  background: rgba(255, 255, 255, 0.25);
}

/* Sidebar external link (cross-section navigation) */
.blog-sidebar-external-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: var(--spacing-md);
  padding: 0.75rem 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding-top: var(--spacing-md);
  color: var(--color-blue-dark);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease, gap 0.2s ease;
}

.blog-sidebar-external-link:hover {
  color: var(--color-blue);
  gap: 0.75rem;
}

.blog-sidebar-external-link-arrow {
  transition: transform 0.2s ease;
  font-size: 1.1em;
}

.blog-sidebar-external-link:hover .blog-sidebar-external-link-arrow {
  transform: translateX(2px);
}

/* Blog Content */
.blog-content {
  min-width: 0;
}

/* Responsive Blog */
@media (max-width: 992px) {
  .blog-layout {
    grid-template-columns: 1fr;
  }

  .blog-sidebar {
    position: static;
  }

  .blog-sidebar .category-filters {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

/* Category Filters */
.category-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: var(--spacing-xl);
}

.category-filter {
  border: 2px solid var(--cat-color, var(--color-black));
  color: var(--cat-color, var(--color-black));
  cursor: pointer;
  font-weight: 500;
  padding: 0.5rem 1rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.category-filter:hover,
.category-filter.active {
  background-color: var(--cat-color, var(--color-black));
  color: var(--cat-text, #fff);
}

/* Blog Grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

/* Blog Card */
.blog-card {
  position: relative;
  background-color: var(--color-white);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  color: inherit;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  transform: translateY(-4px);
  color: inherit;
}

.blog-card-link {
  position: absolute;
  inset: 0;
  z-index: 1;
  text-indent: -9999px;
  overflow: hidden;
}

.blog-card .category-tag {
  position: relative;
  z-index: 2;
}

.blog-card a.category-tag {
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.blog-card a.category-tag:hover {
  opacity: 0.85;
}

.blog-card-image {
  height: 240px;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.blog-card-image img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  width: 100%;
}

.blog-card:hover .blog-card-image img {
  transform: scale(1.05);
}

.featured-badge {
  background: var(--color-blue);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  position: absolute;
  right: 1rem;
  top: 1rem;
}

.blog-card-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: var(--spacing-md);
}

.blog-card-meta {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: space-between;
  margin-bottom: var(--spacing-sm);
}

.blog-card-date {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.blog-card-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.category-tag {
  background-color: var(--cat-color, var(--color-blue));
  color: var(--cat-text, #fff);
  font-size: 0.75rem;
  font-weight: 400;
  padding: 0.1rem 0.75rem;
  border-radius: 100px;
  text-decoration: none;
  display: inline-block;
  transition: opacity 0.2s ease;
}

a.category-tag:hover {
  opacity: 0.85;
  color: var(--cat-text, #fff);
}

.blog-card-content .blog-card-title {
  font-size: clamp(1.2rem, 1.6vw, 1.6rem);
  margin-bottom: var(--spacing-sm);
  color: var(--text-color);
}

.blog-card-excerpt {
  color: var(--text-secondary);
  flex: 1;
  line-height: 130%;
  margin-bottom: 0;
}

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

/* ========================================
   ARTICLE PAGE
   ======================================== */
.post-banner {
  width: 100%;
  max-height: 50vh;
  overflow: hidden;
  background: #000;
}

.post-banner img {
  width: 100%;
  height: 100%;
  max-height: 50vh;
  object-fit: cover;
  display: block;
}

.post-hero {
  padding: var(--spacing-md) 0 0;
}

.post-hero .container {
  max-width: 800px;
}

.post-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--color-blue);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  margin-bottom: var(--spacing-md);
  transition: opacity 0.2s ease;
}

.post-back-link:hover {
  opacity: 0.7;
  color: var(--color-blue);
}

.post-back-link svg {
  flex-shrink: 0;
}

.post-hero-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--spacing-lg);
  align-items: start;
}

.post-hero-main {
  min-width: 0;
}

.post-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1.2;
  color: var(--text-color);
  margin-bottom: var(--spacing-sm);
  text-wrap: balance;
}

.post-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: var(--spacing-sm);
}

.post-excerpt {
  font-size: 1.1rem;
  line-height: 1.5;
  color: var(--text-secondary);
  margin-bottom: 0;
  max-width: none;
}

.post-hero .post-date {
  color: var(--text-secondary);
  font-size: 0.9rem;
  white-space: nowrap;
  padding-top: 0.5rem;
}

@media (max-width: 768px) {
  .post-hero-inner {
    gap: var(--spacing-xs);
  }

  .post-back-link {
    margin-bottom: var(--spacing-sm);
  }

  .blog-card-content {
    padding: var(--spacing-sm);
  }

  /* Lien "méditations guidées" plus visible sur mobile (bouton chip) */
  .blog-sidebar-external-link {
    margin-top: var(--spacing-sm);
    padding: 0.75rem 1.1rem;
    border-top: none;
    border: 1px solid var(--color-blue);
    border-radius: 999px;
    background: var(--color-white);
    color: var(--color-blue);
    justify-content: center;
    gap: 0.6rem;
    box-shadow: 0 2px 6px rgba(122, 195, 255, 0.15);
  }

  .blog-sidebar-external-link:hover {
    background: var(--color-blue);
    color: var(--color-white);
  }
}

@media (max-width: 640px) {
  .post-hero-inner {
    grid-template-columns: 1fr;
  }

  .post-hero .post-date {
    padding-top: 0;
  }
}

.post-content {
  max-width: 800px;
  margin: var(--spacing-md) auto;
  padding: 0 1rem;
}

.post-content .block {
  margin-bottom: var(--spacing-md);
}

.post-content p {
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.post-navigation {
  text-align: center;
  padding: var(--spacing-lg) 0;
}

/* Related Articles */
.post-related {
  padding: var(--spacing-xl) 0 var(--spacing-md);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  margin-top: var(--spacing-xl);
}

.post-related-title {
  font-size: clamp(1.5rem, 2vw, 2rem);
  margin-bottom: var(--spacing-lg);
  color: var(--text-color);
}

.post-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

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

/* ========================================
   CAT ANIMATION (above footer)
   ======================================== */
.cat-animation-wrapper {
  position: relative;
  height: 150px;
  overflow: hidden;
  pointer-events: none;
  margin-top: var(--spacing-xl);
  margin-bottom: 0;
  transform: translateY(100%);
  will-change: transform;
}

.cat-animation {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 180px;
  height: auto;
}

.cat-animation svg {
  display: block;
}

@media (max-width: 768px) {
  .cat-animation-wrapper {
    height: 100px;
  }

  .cat-animation {
    width: 120px;
  }
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  background-color: var(--color-beige-light);
  padding: var(--spacing-xl) 0 var(--spacing-md);
  margin-top: 0;
  position: relative;
  z-index: 1;
}

.footer-main {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
}

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

.footer-logo-section {
  gap: var(--spacing-xs);
}

.footer-logo {
  display: flex;
  flex-direction: column;
  justify-content: start;
}

.footer-logo-img {
  height: 50px;
  width: auto;
  object-fit: contain;
  object-position: left center;
  margin-bottom: var(--spacing-xs);
}

.footer-logo .logo-text {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-blue-dark);
  line-height: 1.2;
}

.footer-logo .logo-subtitle {
  font-size: 0.85rem;
  color: var(--color-blue);
  letter-spacing: 0.05em;
}

.footer-tagline {
  color: var(--text-secondary);
  font-size: 0.95rem;
  max-width: 300px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-top: 0.75rem;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.85rem;
  text-decoration: none;
  transition: color 0.2s;
}

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

.footer-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-blue);
  margin-bottom: var(--spacing-xs);
}

.footer-address {
  margin-bottom: var(--spacing-sm);
}

.footer-address p {
  margin: 0.25rem 0;
  color: var(--text-color);
  font-size: 0.95rem;
}

.address-label {
  font-weight: 600;
  color: var(--color-blue) !important;
}

.footer-map-link {
  margin-top: 0.5rem !important;
  font-size: 0.85rem !important;
}

.footer-map-link a {
  color: var(--color-blue);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: opacity 0.2s ease;
}

.footer-map-link a:hover {
  opacity: 0.75;
}

.footer-service-area {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(127, 127, 127, 0.15);
}

.footer-service-label {
  font-size: 0.85rem !important;
  font-weight: 600;
  margin: 0 0 0.35rem 0 !important;
  color: var(--text-color);
  opacity: 0.85;
}

.footer-service-cities {
  font-size: 0.8rem !important;
  line-height: 1.5;
  margin: 0 !important;
  color: var(--text-color);
  opacity: 0.7;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

.footer-contact p {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  margin: 0;
}

.footer-contact i {
  width: 20px;
  color: var(--color-blue);
}

.footer-contact a {
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-contact a:hover {
  color: var(--color-blue);
}

.footer-social {
  display: flex;
  gap: var(--spacing-xs);
  flex-wrap: wrap;
  margin-top: var(--spacing-sm);
}

.social-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-blue);
  color: var(--color-white);
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1.1rem;
}

.social-link:hover {
  background-color: var(--color-btn-bg);
  transform: translateY(-2px) scale(1.1);
  box-shadow: 0 4px 12px rgba(43, 95, 158, 0.3);
}

.footer-bottom {
  padding-top: var(--spacing-md);
  border-top: 1px solid var(--border-color);
  text-align: center;
}

.footer-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-md);
  flex-wrap: wrap;
}

.site-copyright {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin: 0;
  text-align: left;
}

.site-copyright a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.site-copyright a:hover {
  color: var(--color-blue);
  text-decoration: underline;
}

.site-rights-notice {
  margin: var(--spacing-sm) 0 0;
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--text-secondary);
  opacity: 0.75;
  text-align: left;
  text-wrap: pretty;
}

/* ── FOC Studio credit ── */
.foc-copyright {
  flex-shrink: 0;
}

.focstudio-logo {
  display: inline-block;
}

.focstudio-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  color: var(--text-secondary);
  text-decoration: none;
  opacity: 1;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.focstudio-link:hover {
  color: var(--text-secondary);
}

.focstudio-link svg {
  width: 80px;
  height: auto;
  fill: currentColor;
  transition: background-color 0.25s ease;
}

.focstudio-link svg .st0 {
  fill: currentColor;
  transition: fill 0.25s ease;
}

/* Hover : fond rose sur le SVG + paths orange */
.focstudio-link:hover svg#focstudio {
  background: #ff99ff;
}

.focstudio-link:hover svg .st0 {
  fill: #ff3600;
}

@media (max-width: 600px) {
  .footer-bottom-row {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-sm);
  }
  .focstudio-link {
    font-size: 0.65rem;
  }
  .focstudio-link svg {
    width: 70px;
  }
}

/* ========================================
   WHY SECTION
   ======================================== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-md);
}

.why-column h3 {
  color: var(--color-blue);
  margin-bottom: var(--spacing-sm);
}

.why-content {
  line-height: 1.8;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding: var(--spacing-lg) var(--spacing-md);
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-title.style-large {
    font-family: var(--font-body);
    font-size: clamp(2rem, 9vw, 3rem);
    line-height: 0.9;
  }

  .hero-title.style-medium {
    font-size: clamp(1.75rem, 7vw, 2.5rem);
  }

  .hero-subtitle {
    font-size: 1.25rem;
  }

  .hero-description {
    font-size: 1rem;
    text-wrap: balance;

    ul {
      padding-left: 1rem;
    }
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  /* Hiérarchie titre section : h2 > h3 sur mobile */
  .section h2 {
    font-size: clamp(1.75rem, 7vw, 2.25rem);
    line-height: 0.95;
  }

  .section h3 {
    font-size: clamp(1.15rem, 4.5vw, 1.5rem);
    line-height: 0.95;
  }

  /* Subtitle special (Knewave) trop grands sur mobile */
  .block-subtitle.style-special,
  .services-subtitle.style-special,
  .features-subtitle.style-special,
  .cta-subtitle.style-special,
  .columns-subtitle.style-special,
  .service-hero-subtitle.style-special,
  .hero-subtitle.style-special {
    font-size: clamp(1.25rem, 5vw, 1.75rem);
  }

  /* Subtitle normal/basic */
  .block-subtitle.style-normal,
  .services-subtitle.style-normal,
  .features-subtitle.style-normal,
  .cta-subtitle.style-normal,
  .service-hero-subtitle.style-normal {
    font-size: 1rem;
  }

  .section {
    padding: var(--spacing-sm) 0;
  }

  /* Hero garde son propre padding interne (centrage vertical) */
  .hero.section {
    padding: var(--spacing-md) 0;
  }

  /* Pages détails services : aération du bloc CTA final */
  .cta-section {
    padding: var(--spacing-md) 0;
  }

  .cta-section .cta-title {
    font-size: clamp(1.6rem, 7vw, 2.2rem);
    line-height: 0.95;
    margin-bottom: 0.5em;
  }

  .cta-section .cta-description {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: var(--spacing-md);
  }

  .cta-section .cta-buttons {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  /* FAQ : aération + padding inner */
  .faq-section {
    padding: var(--spacing-md) var(--spacing-sm);
  }

  .accordion__trigger {
    font-size: 1rem;
  }

  .accordion__body {
    font-size: 0.95rem;
  }

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

  .columns-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }

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

  .values-content {
    padding-right: 0;
  }

  /* Mobile menu */
  .mobile-menu-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    top: 58px;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--color-white);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: var(--spacing-md);
    overflow-y: auto;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease;
  }

  .nav.mobile-open {
    transform: translateX(0);
    opacity: 1;
  }

  .nav-item {
    width: 100%;
  }

  .nav-link {
    width: 100%;
    padding: var(--spacing-sm) 0;
  }

  .dropdown,
  .mega-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    margin-top: 0.5rem;
    margin-left: 0;
    min-width: auto;
    max-width: none;
    box-shadow: none;
    border: none;
    background: none;
  }

  .dropdown-link {
    padding: 0.5em var(--spacing-sm);
  }

  .dropdown.active,
  .mega-menu.active {
    transform: none;
  }

  .mega-menu-content {
    grid-template-columns: 1fr;
  }

  .nav .btn.btn-outline {
    margin-top: 1.5rem;
  }

  /* Nav tabs mobile */
  .nav-tabs,
  .nav-buttons {
    flex-direction: column;
  }

  .nav-tab,
  .nav-buttons .btn {
    width: 100%;
    text-align: center;
  }

  /* Footer mobile */
  .footer-main {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }

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

  .footer-logo-section {
    align-items: center;
  }

  .footer-tagline {
    margin: 0 auto;
  }

  .footer-contact {
    align-items: center;
  }

  .footer-social {
    justify-content: center;
  }

  .post-title {
    font-size: 1.75rem;
  }
}

/* ========================================
   TON CORPS TE PARLE - Interactive Features
   Scoped styles with severity system
   ======================================== */

/* Design tokens for this section */
.features-interactive {
  --tctp-ink: var(--color-blue-dark);
  --tctp-blue-light: var(--color-blue);
  --tctp-orange: #FFA560;
  --tctp-pink-light: #FFBCBC;
  --tctp-red: #FF7070;
  --tctp-burgundy: var(--color-red);

  transition: background-color 0.3s ease;
}

/* Title styling */
/* Subtitle - special font (Knewave) */
.features-interactive .subtitle {
  font-family: var(--font-special);
  font-weight: 400;
  font-size: 1.5rem;
  color: var(--tctp-blue-light);
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

/* Grid container */
.features-interactive .features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--tctp-ink);
  margin: auto;
  max-width: 900px;
  overflow: hidden;
  transition: background-color 0.3s ease;
}

/* Feature items - grid cells */
.features-interactive .feature-item {
  border: 1px solid var(--tctp-ink);
  padding: 0 var(--spacing-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 200px;
  transition: background-color 0.3s ease;
  box-shadow: none;
  background: var(--bg-color);
  cursor: pointer;
}

.features-interactive .feature-item:hover {
  transform: none;
  box-shadow: none;
}

.features-interactive .feature-icon {
  margin-bottom: 0;
}

.features-interactive .feature-item h3 {
  translate: 0 -50%;
}

/* Subtle scale effect on inner content on hover */
.features-interactive .feature-item .feature-icon,
.features-interactive .feature-item h3 {
  transition: transform 0.2s ease;
}

.features-interactive .feature-item:hover .feature-icon {
  transform: scale(1.05);
}

.features-interactive .feature-item:hover h3 {
  transform: scale(1.02);
}

/* Checkbox - invisible but functional (for accessibility) */
.features-interactive .checkbox {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.features-interactive .check-mark {
  /* Hidden - used only for JS state tracking */
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Icon - size x1.8 (~100px) */
.features-interactive .feature-icon {
  width: 120px;
  height: 120px;
  margin-bottom: var(--spacing-sm);
}

/* Label */
.features-interactive .feature-item h3 {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--tctp-ink);
  text-align: center;
  margin: 0;
  line-height: 1.3;
}

.features-interactive .feature-item p {
  display: none;
}

/* ----------------------------------------
   SEVERITY STATES (0-7+)
   ---------------------------------------- */

/* severity-0: invitation message visible */
.features-interactive.severity-0 .feedback-message {
  color: var(--tctp-ink);
  font-style: italic;
}

/* severity 1: bleu clair */
.features-interactive.severity-1 .feature-item.checked {
  background-color: #a8d8ff; /* bleu très clair */
}
.features-interactive.severity-1 .checked-count {
  color: #a8d8ff;
}
.features-interactive.severity-1 .features-cta .btn {
  background-color: var(--tctp-ink);
}

/* severity 2: bleu un peu plus soutenu */
.features-interactive.severity-2 .feature-item.checked {
  background-color: var(--tctp-blue-light); /* #7AC3FF */
}
.features-interactive.severity-2 .checked-count {
  color: var(--tctp-blue-light);
}
.features-interactive.severity-2 .features-cta .btn {
  background-color: var(--tctp-ink);
}

/* severity 3: orange clair */
.features-interactive.severity-3 .feature-item.checked {
  background-color: #ffcb99; /* orange clair */
}
.features-interactive.severity-3 .checked-count {
  color: #ffcb99;
}
.features-interactive.severity-3 .features-cta .btn {
  background-color: var(--tctp-ink);
}

/* severity 4: orange plus soutenu */
.features-interactive.severity-4 .feature-item.checked {
  background-color: var(--tctp-orange); /* #FFA560 */
}
.features-interactive.severity-4 .checked-count {
  color: var(--tctp-orange);
}
.features-interactive.severity-4 .features-cta .btn {
  background-color: var(--tctp-ink);
}

/* severity 5: rouge/rose clair */
.features-interactive.severity-5 .feature-item.checked {
  background-color: var(--tctp-pink-light); /* #FFBCBC */
}
.features-interactive.severity-5 .checked-count {
  color: var(--tctp-red);
}
.features-interactive.severity-5 .features-cta .btn {
  background-color: var(--tctp-burgundy);
}

/* severity 6: rouge/rose plus soutenu */
.features-interactive.severity-6 .feature-item.checked {
  background-color: #ff9a9a; /* rose plus foncé */
}
.features-interactive.severity-6 .checked-count {
  color: var(--tctp-burgundy);
}
.features-interactive.severity-6 .features-cta .btn {
  background-color: var(--tctp-burgundy);
}

/* severity 7: rouge foncé */
.features-interactive.severity-7 .feature-item.checked {
  background-color: var(--tctp-red); /* #FF7070 */
}
.features-interactive.severity-7 .checked-count {
  color: var(--tctp-burgundy);
}
.features-interactive.severity-7 .features-cta .btn {
  background-color: var(--tctp-burgundy);
}

/* severity 8+: rouge très foncé */
.features-interactive.severity-8 .feature-item.checked {
  background-color: #e55555; /* rouge plus saturé */
}
.features-interactive.severity-8 .checked-count {
  color: #5a1414;
}
.features-interactive.severity-8 .features-cta .btn {
  background-color: #5a1414;
}

/* ----------------------------------------
   FEEDBACK SECTION
   ---------------------------------------- */
.features-interactive .interactive-feedback {
  text-align: center;
  padding: var(--spacing-sm) 0;
  background-color: transparent;
}

.features-interactive .checked-count {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: var(--spacing-xs);
  transition: color 0.3s ease;
}

.features-interactive .feedback-message {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--tctp-ink);
  margin-bottom: var(--spacing-xs);
  line-height: 1.3;
}

.features-interactive .features-cta .btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
  margin-top: 0;
}

.features-interactive .features-cta .btn:hover {
  transform: translateY(-2px);
}

/* ----------------------------------------
   RESPONSIVE
   ---------------------------------------- */
@media (max-width: 900px) {
  .features-interactive .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .features-interactive .subtitle {
    font-size: 1.25rem;
  }

  .features-interactive .feature-item {
    padding: var(--spacing-sm);
    padding-top: 0;
    padding-bottom: 0.5em;
    justify-content: flex-end;
  }

  .features-interactive .feature-item h3 {
    translate: 0 0;
    margin-bottom: 0;
  }

  .features-interactive .feature-icon {
    align-content: end;
    margin-bottom: var(--spacing-xs);
    height: 90px;
  }
}

@media (max-width: 520px) {
  .features-interactive .subtitle {
    font-size: 1.1rem;
  }

  .features-interactive .feature-item {
    min-height: inherit;
  }

  .features-interactive .feedback-message {
    font-size: 1.4rem;
  }

  .features-interactive .features-cta .btn {
    width: 100%;
    padding: 1rem 1.5rem;
  }
}

/* ========================================
   SERVICES SECTION - "Comment je t'accompagne"
   Design with featured card and hover states
   ======================================== */

.services-section {
  --svc-bg: var(--color-beige);
  --svc-ink: var(--color-blue-dark);
  --svc-ink-light: var(--color-black);
  --svc-blue: var(--color-blue);
  --svc-white: var(--color-white);
  --svc-radius: 8px;

  background-color: var(--svc-bg);
  padding: clamp(3rem, 6vw, 5rem) 0;
}

/* ----------------------------------------
   HEADER: Title + Subtitle
   ---------------------------------------- */
.services-header {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
  max-width: 700px;
}

.services-title {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: clamp(2.5rem, 4vw, 3rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--svc-ink);
  margin: 0;
  padding-bottom: 0.5rem;
  text-transform: lowercase;
  text-wrap: balance;
}

.services-subtitle {
  font-family: var(--font-special);
  font-weight: 400;
  font-size: clamp(1.75rem, 2.2vw, 3rem);
  font-style: italic;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--svc-blue);
  margin-top: -0.5em;
  margin-left: 0.5em;
  text-wrap: balance;
}

/* ----------------------------------------
   CARDS GRID
   ---------------------------------------- */
.services-section .services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: center;
  margin-top: 0;

}

/* Adjust for 2 cards */
.services-section .services-grid[data-count="2"] {
  grid-template-columns: repeat(2, 1fr);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* ----------------------------------------
   SINGLE CARD (face1/face2 hover animation)
   ---------------------------------------- */
.services-section .service-card {
  position: relative;
  cursor: pointer;
  border-radius: 1rem;
  text-align: center;
  z-index: 1;
}

.services-section .service-card:hover {
  z-index: 10;
}

/* Clickable link covering the entire card */
.services-section .service-card-link {
  position: absolute;
  inset: 0;
  z-index: 10;
  text-decoration: none;
  outline: none;
  border-radius: 1rem;
}

.services-section .service-card-link:focus-visible {
  outline: 2px solid var(--svc-blue);
  outline-offset: 4px;
}

/* ----------------------------------------
   FACE 1: Icon + Title + Subtitle
   ---------------------------------------- */
.services-section .service-face1 {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(1.5rem, 3vw, 2rem) clamp(1rem, 2vw, 1.5rem);
  border-radius: 1rem 1rem 0 0;
  position: relative;
  z-index: 1;
  background: var(--svc-bg);
  transform: translateY(80px);
  transition: transform 0.5s cubic-bezier(.2,.7,.2,1), background-color 0.5s ease;
}

.services-section .service-face1 .service-face-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.5s ease;
}

.services-section .service-card:hover .service-face1 {
  transform: translateY(0);
}

.services-section .service-card:hover .service-face1 .service-face-content {
  opacity: 1;
}

/* ----------------------------------------
   FACE 2: Description + "en savoir plus"
   ---------------------------------------- */
.services-section .service-face2 {
  background: none;
  border-radius: 0 0 1rem 1rem;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: .75em clamp(1rem, 2vw, 1.5rem) .25em;
  padding-top: .75em;
  box-sizing: border-box;
  transform: translateY(-80px);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(.2,.7,.2,1), opacity 0.4s ease;
}

.services-section .service-face2 .service-face-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(1rem, 2vw, 1.5rem) 0;
}

.services-section .service-card:hover .service-face2 {
  transform: translateY(0);
  background: var(--color-white);
  opacity: 1;
}

/* Illustration */
.services-section .service-illu {
  margin-bottom: clamp(0.75rem, 1.5vw, 1.25rem);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100px;
}

.services-section .service-icon {
  width: clamp(80px, 12vw, 120px);
  height: auto;
  max-height: 120px;
  object-fit: contain;
  margin: 0;
  transition: transform 0.4s cubic-bezier(.2,.7,.2,1), filter 0.4s ease;
}

/* Scale icon + blue tint on hover */
.services-section .service-card:hover .service-icon,
.services-section .service-card:focus-within .service-icon {
  transform: scale(1.08);
  filter: invert(66%) sepia(52%) saturate(354%) hue-rotate(176deg) brightness(101%) contrast(101%);
}

/* Title */
.services-section .service-title {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: clamp(1.4rem, 2.2vw, 1.75rem);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--svc-ink);
  margin: 0 0 0.5rem 0;
}

/* Subtitle */
.services-section .service-subtitle {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(0.95rem, 1.4vw, 1.15rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--svc-ink-light);
  margin: 0;
}

/* "En savoir plus" link in face2 */
.services-section .service-more {
  display: inline-block;
  font-family: var(--font-body);
  font-size: clamp(0.8rem, 1vw, .95rem);
  font-weight: 400;
  color: var(--svc-ink);
  text-align: center;
  margin-top: 1.25em;
  padding: 0.25rem 0;
  border-bottom: 1px solid var(--svc-ink);
}

/* Service list (prestations) in face2 */
.services-section .service-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.services-section .service-list li {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(1rem, 1.2vw, 1.4rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--color-blue-dark);
  padding: 0.25rem 0;
  text-align: center;
}

/* Service description (if not list) */
.services-section .service-desc {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(0.9rem, 1.2vw, 1rem);
  line-height: 1.5;
  color: var(--svc-ink-light);
  margin: 0;
  text-align: center;
}

/* ----------------------------------------
   TOUCH DEVICES: always show both faces
   ---------------------------------------- */
@media (hover: none) {
  .services-section .service-face1 {
    transform: translateY(0);
    background-color: var(--svc-bg);
  }
  .services-section .service-face1 .service-face-content {
    opacity: 1;
  }
  .services-section .service-face2 {
    transform: translateY(0);
    opacity: 1;
  }
}


/* ----------------------------------------
   CTA BUTTON
   ---------------------------------------- */
.services-cta {
  text-align: center;
  margin-top: clamp(2rem, 4vw, 3rem);
}

.services-cta-btn {
  display: inline-block;
  background-color: var(--svc-ink);
  color: var(--svc-white);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1;
  letter-spacing: -0.02em;
  text-decoration: none;
  padding: clamp(1rem, 1.8vw, 1.25rem) clamp(2rem, 4vw, 3rem);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.services-cta-btn:hover {
  background-color: var(--color-btn-bg-hover);
  transform: translateY(-2px);
  color: var(--svc-white);
}

.services-cta-btn:focus {
  outline: 2px solid var(--svc-blue);
  outline-offset: 3px;
}

/* ----------------------------------------
   RESPONSIVE
   ---------------------------------------- */

/* Tablet: 2 columns */
@media (max-width: 999px) {
  .services-section .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Featured card spans or stays in flow */
  .services-section .services-grid[data-count="3"] {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Center the 3rd card if 3 items */
  .services-section .services-grid[data-count="3"] .service-card:nth-child(3) {
    grid-column: 1 / -1;
    max-width: 400px;
    margin: 0 auto;
  }
}

/* Mobile: 1 column */
@media (max-width: 600px) {
  .services-section .services-grid,
  .services-section .services-grid[data-count="2"],
  .services-section .services-grid[data-count="3"] {
    grid-template-columns: 1fr;
  }

  .services-section .services-grid[data-count="3"] .service-card:nth-child(3) {
    grid-column: auto;
    max-width: none;
  }

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

  /* On mobile, show both faces without animation */
  .services-section .service-face1 {
    transform: translateY(0);
    background-color: var(--svc-bg);
    padding-bottom: 0;
  }
  .services-section .service-face1 .service-face-content {
    opacity: 1;
  }
  .services-section .service-face2 {
    transform: translateY(0);
    opacity: 1;
    padding-top: 0;
  }
  .services-section .service-face2 .service-face-content {
    padding-top: 0.5rem;
  }
  .services-section .service-illu {
    min-height: auto;
    margin-bottom: 0.5rem;
  }

  .services-section .service-subtitle {
    font-family: var(--font-special);
    color: var(--color-blue);
    font-size: clamp(1.2rem, 1.4vw, 1.15rem);
    translate: 0 -75%;
  }

  .services-cta-btn {
    width: 100%;
    max-width: 320px;
  }
}


/* ========================================
   POINTS CLES SECTION
   ======================================== */
.pointscles-section {
  padding: var(--spacing-xl) 0;
}

.pointscles-header {
  margin-bottom: var(--spacing-lg);
}

.pointscles-title {
  margin-bottom: var(--spacing-xs);
}

.pointscles-subtitle {
  margin-top: 0;
}

.pointscles-subtitle.subtitle-handwritten {
  font-family: "Knewave", cursive;
  font-size: 1.5rem;
  font-weight: 400;
}

/* Points List */
.pointscles-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-lg);
  position: relative;
  padding-top: var(--spacing-md);
}

/* Full-width line */
.pointscles-list::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 1px;
  background-color: var(--color-gray-light);
}

/* Specific column counts */
.pointscles-list[data-count="2"] {
  grid-template-columns: repeat(2, 1fr);
}

.pointscles-list[data-count="3"] {
  grid-template-columns: repeat(3, 1fr);
}

.pointscles-list[data-count="4"] {
  grid-template-columns: repeat(4, 1fr);
}

/* Horizontal scroll mode for 5+ items (GSAP) */
.pointscles-outer {
  position: relative;
}

.pointscles-outer .pointscles-horizontal {
  position: sticky;
  top: 0;
  width: 100%;
}

.pointscles-horizontal .pointscles-track {
  display: flex;
  flex-wrap: nowrap;
  width: calc(100vw / 3 * var(--slide-count, 6));
  position: relative;
  padding-top: var(--spacing-md);
}

.pointscles-horizontal .pointscles-track::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: var(--color-gray-light);
}

.pointscles-slide {
  flex: 0 0 calc(100vw / 3);
  width: calc(100vw / 3);
  padding: 0 var(--spacing-lg);
  box-sizing: border-box;
}

/* Item */
.pointscles-item {
  position: relative;
}

/* Bullet */
.pointscles-bullet {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-bottom: var(--spacing-sm);
  margin-top: calc(-1 * var(--spacing-md) - 6px);
}

.pointscles-bullet.bullet-green {
  background-color: #10b981;
}

.pointscles-bullet.bullet-beige {
  background-color: #d4a574;
}

.pointscles-bullet.bullet-blue {
  background-color: var(--color-blue);
}

.pointscles-bullet.bullet-blue-dark {
  background-color: var(--color-btn-bg);
}

.pointscles-bullet.bullet-red {
  background-color: #ef4444;
}

/* Item Content */
.pointscles-item-content {
  padding-right: var(--spacing-md);
}

.pointscles-item-title {
  font-size: clamp(1.3rem, 2.25vw, 2rem);
  font-weight: 700;
  color: var(--color-blue-dark);
  letter-spacing: -0.02em;
  margin-bottom: var(--spacing-xs);
}

.pointscles-item-subtitle {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-xs);
}

.pointscles-item-description {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.pointscles-item-description p {
  margin: 0;
}

.pointscles-item-image {
  margin-top: var(--spacing-sm);
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

.pointscles-item-link {
  display: inline-block;
  margin-top: var(--spacing-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-blue-dark);
  text-decoration: underline;
}

.pointscles-item-link:hover {
  color: var(--color-blue);
}

/* Responsive */
@media (max-width: 992px) {
  .pointscles-list[data-count="4"] {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .pointscles-list[data-count="2"],
  .pointscles-list[data-count="3"],
  .pointscles-list[data-count="4"] {
    grid-template-columns: 1fr;
  }

  /* Mobile: vertical timeline line */
  .pointscles-list {
    padding-left: 24px;
    padding-top: 0;
  }

  .pointscles-list::before {
    top: 6px;
    left: 5px;
    width: 1px;
    height: calc(100% - 12px);
    transform: none;
  }

  .pointscles-item {
    padding-left: var(--spacing-sm);
  }

  .pointscles-bullet {
    position: absolute;
    left: calc(-24px + -1px);
    top: 4px;
    margin: 0;
  }

  .pointscles-item-content {
    text-align: left;
  }
  /* Mobile: show 1 slide at a time */
  .pointscles-horizontal .pointscles-track {
    width: calc(100vw * var(--slide-count, 6));
  }

  .pointscles-slide {
    flex: 0 0 100vw;
    width: 100vw;
    padding: 0 var(--spacing-md);
  }

  .pointscles-subtitle.subtitle-handwritten {
    font-size: 1.25rem;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  /* Tablet: show 2 slides at a time */
  .pointscles-horizontal .pointscles-track {
    width: calc(100vw / 2 * var(--slide-count, 6));
  }

  .pointscles-slide {
    flex: 0 0 calc(100vw / 2);
    width: calc(100vw / 2);
  }
}

/* ========================================
   DARK MODE
   ======================================== */

/* --- Theme toggle button --- */
.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  display: none;
  align-items: center;
  justify-content: center;
  color: var(--text-color);
  transition: color 0.3s ease;
  border-radius: 50%;
}

.theme-toggle:hover {
  color: var(--color-blue);
}

/* Show moon in light mode, sun in dark mode */
[data-theme="light"] .theme-icon--sun,
:root:not([data-theme="dark"]) .theme-icon--sun {
  display: none;
}

[data-theme="light"] .theme-icon--moon,
:root:not([data-theme="dark"]) .theme-icon--moon {
  display: block;
}

[data-theme="dark"] .theme-icon--moon {
  display: none;
}

[data-theme="dark"] .theme-icon--sun {
  display: block;
}

/* Header actions wrapper */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* --- Dark mode variable overrides --- */
[data-theme="dark"] {
  --color-beige: #121820;
  --color-beige-light: #0e1419;
  --color-white: #1a2332;
  --color-black: #e8e0d4;
  --color-gray: #a0a0a0;
  --color-gray-light: #2a3544;
  --color-blue-text: #6bb8f7;
  --color-blue-light: #1a3650;
  --color-blue-dark: #e0d8cc;
  --color-red: #c0423f;
}

/* --- Component overrides for dark mode --- */

/* Buttons: ensure primary stays readable */
[data-theme="dark"] .btn-primary {
  color: #FFF8EE;
}

/* Secondary: surface background for contrast */
[data-theme="dark"] .btn-secondary {
  background-color: var(--color-white);
}

/* Outline: adjust for dark backgrounds */
[data-theme="dark"] .btn-outline {
  border-color: var(--color-gray);
  color: var(--color-black);
}

[data-theme="dark"] .btn-outline:hover {
  background-color: var(--color-black);
  color: var(--color-beige);
}

/* Dark background sections keep light text */
[data-theme="dark"] .bg-dark,
[data-theme="dark"] .testimonial-card.card-blue-dark {
  color: #FFF8EE;
}

[data-theme="dark"] .bg-dark h1,
[data-theme="dark"] .bg-dark h2,
[data-theme="dark"] .bg-dark h3,
[data-theme="dark"] .bg-dark h4 {
  color: #FFF8EE;
}

/* Pricing active states keep light text + dark shadows */
[data-theme="dark"] .pricing-option.active {
  color: #FFF8EE;
  box-shadow: 0 2px 8px rgba(122, 195, 255, 0.12);
}

[data-theme="dark"] .config-choice.active {
  color: #FFF8EE;
  box-shadow: 0 1px 4px rgba(122, 195, 255, 0.15);
}

/* Accordion: subtle border */
[data-theme="dark"] .accordion__item {
  border-color: var(--color-gray-light);
}

[data-theme="dark"] .accordion__item.is-open {
  box-shadow: 0 2px 12px rgba(122, 195, 255, 0.06);
}

/* Shadows: swap to subtle blue glow in dark */
[data-theme="dark"] .btn-primary:hover {
  box-shadow: 0 4px 12px rgba(122, 195, 255, 0.15);
}

[data-theme="dark"] .event-card {
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .event-card:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .blog-card {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .blog-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

/* Service cards hover (pricing + home services) : glow bleu doux en dark */
[data-theme="dark"] .service-card:hover {
  box-shadow: 0 20px 60px rgba(122, 195, 255, 0.12);
}

[data-theme="dark"] .services-section .service-card:hover .service-face2 {
  background: var(--color-btn-bg, #0d2540);
}

[data-theme="dark"] .pricing-section .service-card {
  background: var(--color-btn-bg, #0d2540);
}

[data-theme="dark"] .dropdown {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .mega-menu {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* Event details border */
[data-theme="dark"] .event-details .event-desc {
  border-top-color: rgba(255, 255, 255, 0.08);
}

/* Truths, TCTP, Services: cascade automatically via root var references */

/* Truths: btn hover overlay (white overlay invisible on dark bg) */
[data-theme="dark"] #ce-que-je-fais-ne-fais-pas .btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Pricing option hover (white overlay → subtle light) */
[data-theme="dark"] .pricing-option:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* Features interactive: heat-map dark variants */
[data-theme="dark"] .features-grid.une-case .interactive-feedback {
  background-color: rgba(122, 195, 255, 0.08);
}

[data-theme="dark"] .features-grid.deux-cases .interactive-feedback {
  background-color: rgba(122, 195, 255, 0.14);
}

[data-theme="dark"] .features-grid.trois-cases .interactive-feedback {
  background-color: rgba(255, 165, 96, 0.1);
}

[data-theme="dark"] .features-grid.quatre-cases .interactive-feedback {
  background-color: rgba(255, 165, 96, 0.18);
}

[data-theme="dark"] .features-grid.cinq-cases .interactive-feedback {
  background-color: rgba(255, 112, 112, 0.12);
}

[data-theme="dark"] .features-grid.six-cases .interactive-feedback {
  background-color: rgba(255, 112, 112, 0.2);
}

[data-theme="dark"] .features-grid.sept-cases .interactive-feedback,
[data-theme="dark"] .features-grid.huit-cases .interactive-feedback {
  background-color: rgba(255, 80, 80, 0.25);
}

/* TCTP severity: dark variants (muted backgrounds) */
[data-theme="dark"] .features-interactive.severity-1 .feature-item.checked {
  background-color: rgba(122, 195, 255, 0.2);
}

[data-theme="dark"] .features-interactive.severity-2 .feature-item.checked {
  background-color: rgba(122, 195, 255, 0.3);
}

[data-theme="dark"] .features-interactive.severity-3 .feature-item.checked {
  background-color: rgba(255, 165, 96, 0.2);
}

[data-theme="dark"] .features-interactive.severity-4 .feature-item.checked {
  background-color: rgba(255, 165, 96, 0.3);
}

[data-theme="dark"] .features-interactive.severity-5 .feature-item.checked {
  background-color: rgba(255, 188, 188, 0.2);
}

[data-theme="dark"] .features-interactive.severity-6 .feature-item.checked {
  background-color: rgba(255, 112, 112, 0.25);
}

[data-theme="dark"] .features-interactive.severity-7 .feature-item.checked {
  background-color: rgba(255, 112, 112, 0.35);
}

[data-theme="dark"] .features-interactive.severity-8 .feature-item.checked {
  background-color: rgba(229, 85, 85, 0.4);
}

/* TCTP severity count text: ensure readable in dark */
[data-theme="dark"] .features-interactive.severity-1 .checked-count {
  color: #a8d8ff;
}

[data-theme="dark"] .features-interactive.severity-3 .checked-count {
  color: #ffcb99;
}

[data-theme="dark"] .features-interactive.severity-6 .checked-count {
  color: var(--color-red);
}

[data-theme="dark"] .features-interactive.severity-8 .checked-count {
  color: #ff6b6b;
}

[data-theme="dark"] .features-interactive.severity-8 .features-cta .btn {
  background-color: #8b2020;
}

/* Category count overlay */
[data-theme="dark"] .category-count {
  background: rgba(255, 255, 255, 0.08);
}

/* Services CTA button stays dark */
[data-theme="dark"] .services-cta-btn {
  color: #FFF8EE;
}

/* Process cards dark bg variant */
[data-theme="dark"] .bg-dark .process-card-inner {
  border-color: rgba(255, 255, 255, 0.1);
}

/* Category filter active states */
[data-theme="dark"] .category-filter:hover,
[data-theme="dark"] .category-filter.active {
  background: var(--color-btn-bg);
  color: #fff;
  border-color: var(--color-btn-bg);
}

/* Breath widget: softer in dark */
[data-theme="dark"] .breath-widget {
  opacity: 0.5;
  filter: drop-shadow(0 2px 8px rgba(122, 195, 255, 0.1));
}

/* Header stays consistent */
[data-theme="dark"] .header {
  border-bottom: 1px solid var(--color-gray-light);
}

/* Mobile nav in dark */
@media (max-width: 768px) {
  [data-theme="dark"] .nav {
    background-color: var(--color-beige);
  }

  [data-theme="dark"] .dropdown,
  [data-theme="dark"] .mega-menu {
    background: var(--color-beige-light);
  }
}

/* Images: slight brightness reduction (except logo) */
[data-theme="dark"] img {
  filter: brightness(0.75);
}

[data-theme="dark"] .logo img {
  filter: none;
}

[data-theme="dark"] .service-illu,
[data-theme="dark"] .hero-figure {
  filter: invert(1)  brightness(100%);
}

[data-theme="dark"] .feature-icon {
  filter: none;
}

[data-theme="dark"] .services-section .service-card:hover .service-icon, .services-section .service-card:focus-within .service-icon {
  filter: invert(66%) sepia(52%) saturate(354%) hue-rotate(-14deg) brightness(68%) contrast(101%);
}
/* Smooth color transition on body only (non-disruptive) */
body {
  transition: background-color 0.3s ease, color 0.3s ease;
}

.header,
.section,
.section-white,
.section-beige,
.blog-card,
.event-card,
.accordion__item,
.dropdown,
.mega-menu,
.services-section {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* ========================================
   MEDITATIONS (card stack + player)
   ======================================== */
.meditations-section {
  --med-stack-offset: 50px;
  --med-card-h: 400px;
  padding: clamp(2rem, 6vw, 4rem) 0;
  min-height: 80vh;
}

/* Header */
.meditations-header {
  text-align: center;
}

.meditations-header h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--heading-color);
}

.meditations-subtitle {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-top: 0.5rem;
  max-width: 400px;
  margin-inline: auto;
}

/* ── Card Stack ── */
.med-card-stack {
  position: relative;
  width: 320px;
  height: calc((var(--med-card-count, 6) - 1) * var(--med-stack-offset) + var(--med-card-h));
  margin: 0 auto;
}

.med-card {
  position: absolute;
  width: 100%;
  height: var(--med-card-h);
  cursor: pointer;
  transition: top 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.med-card-inner {
  position: absolute;
  inset: 0;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: translate 0.15s cubic-bezier(0.4, 0, 1, 1),
              rotate 0.15s cubic-bezier(0.4, 0, 1, 1),
              transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.15s ease,
              border-color 0.15s ease,
              background 0.5s ease;
  translate: 0 0;
  rotate: 0deg;
}

.med-card-label {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: var(--med-stack-offset);
  padding: 11px 20px;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--heading-color);
  z-index: 2;
  border-radius: 20px 20px 0 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.3s;
}

.med-card-duration {
  position: absolute;
  top: 14px; right: 20px;
  font-size: 0.75rem;
  color: var(--text-secondary);
  z-index: 2;
  transition: opacity 0.4s;
}

.med-anim-container {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  transition: opacity 0.4s;
}

/* Stack positions (6 cards max) */
.med-card[data-pos="0"] { z-index: 6; top: calc(5 * var(--med-stack-offset)); }
.med-card[data-pos="1"] { z-index: 5; top: calc(4 * var(--med-stack-offset)); }
.med-card[data-pos="2"] { z-index: 4; top: calc(3 * var(--med-stack-offset)); }
.med-card[data-pos="3"] { z-index: 3; top: calc(2 * var(--med-stack-offset)); }
.med-card[data-pos="4"] { z-index: 2; top: calc(1 * var(--med-stack-offset)); }
.med-card[data-pos="5"] { z-index: 1; top: 0; }

/* Front card */
.med-card[data-pos="0"] .med-card-inner {
  background: linear-gradient(145deg, rgba(6,44,67,0.97), rgba(6,44,67,0.85));
  transform: scale(1);
}

/* Back cards — progressive fade + scale */
.med-card[data-pos="1"] .med-card-inner { background: linear-gradient(145deg, rgba(6,44,67,0.85), rgba(6,44,67,0.7)); transform: scale(.97); }
.med-card[data-pos="2"] .med-card-inner { background: linear-gradient(145deg, rgba(6,44,67,0.75), rgba(6,44,67,0.6)); transform: scale(0.94); }
.med-card[data-pos="3"] .med-card-inner { background: linear-gradient(145deg, rgba(6,44,67,0.65), rgba(6,44,67,0.5)); transform: scale(0.91); }
.med-card[data-pos="4"] .med-card-inner { background: linear-gradient(145deg, rgba(6,44,67,0.55), rgba(6,44,67,0.42)); transform: scale(0.88); }
.med-card[data-pos="5"] .med-card-inner { background: linear-gradient(145deg, rgba(6,44,67,0.45), rgba(6,44,67,0.35)); transform: scale(0.83); }

/* Hide animation + duration on back cards */
.med-card:not([data-pos="0"]) .med-anim-container { opacity: 0; }
.med-card:not([data-pos="0"]) .med-card-duration { opacity: 0; }

/* Hover: fan out */
.med-card:not([data-pos="0"]):hover .med-card-inner {
  translate: 50% -10%;
  rotate: 8deg;
  transform: scale(1) !important;
  box-shadow: -8px 8px 30px rgba(0,0,0,0.5), 0 0 20px rgba(122,195,255,0.15);
  border-color: rgba(122, 195, 255, 0.4);
  background: linear-gradient(145deg, rgba(6,44,67,0.95), rgba(6,44,67,0.85)) !important;
  transition: translate 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              rotate 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.4s ease,
              border-color 0.4s ease,
              background 0.4s ease;
}

.med-card:not([data-pos="0"]):hover .med-anim-container { opacity: 0.5; }
.med-card:not([data-pos="0"]):hover .med-card-label { color: var(--color-blue); }
.med-card:not([data-pos="0"]):hover .med-card-duration { opacity: 0.6; }

/* ── Animations: Circles ── */
.med-anim-circles {
  position: relative; width: 150px; height: 150px;
  animation: medPulse 4s cubic-bezier(0.5, 0, 0.5, 1) alternate infinite;
}
.med-circle {
  width: 120px; height: 120px; border-radius: 50%;
  position: absolute; top: 15px; left: 15px; mix-blend-mode: screen;
}
.med-anim-circles.palette-1 .med-circle:nth-child(odd) { background: #7AC3FF; }
.med-anim-circles.palette-1 .med-circle:nth-child(even) { background: #5B9BD5; }
.med-anim-circles.palette-2 .med-circle:nth-child(odd) { background: #61bea2; }
.med-anim-circles.palette-2 .med-circle:nth-child(even) { background: #529ca0; }
.med-anim-circles.palette-3 .med-circle:nth-child(odd) { background: #a78bfa; }
.med-anim-circles.palette-3 .med-circle:nth-child(even) { background: #7c6bbf; }
.med-circle:nth-child(1) { animation: medC1 4s ease alternate infinite; }
.med-circle:nth-child(2) { animation: medC2 4s ease alternate infinite; }
.med-circle:nth-child(3) { animation: medC3 4s ease alternate infinite; }
.med-circle:nth-child(4) { animation: medC4 4s ease alternate infinite; }
.med-circle:nth-child(5) { animation: medC5 4s ease alternate infinite; }
.med-circle:nth-child(6) { animation: medC6 4s ease alternate infinite; }
@keyframes medPulse { 0% { transform: scale(0.15) rotate(180deg); } 100% { transform: scale(1); } }
@keyframes medC1 { 0% { transform: translate(0,0); } 100% { transform: translate(-35px,-50px); } }
@keyframes medC2 { 0% { transform: translate(0,0); } 100% { transform: translate(35px,50px); } }
@keyframes medC3 { 0% { transform: translate(0,0); } 100% { transform: translate(-60px,0); } }
@keyframes medC4 { 0% { transform: translate(0,0); } 100% { transform: translate(60px,0); } }
@keyframes medC5 { 0% { transform: translate(0,0); } 100% { transform: translate(-35px,50px); } }
@keyframes medC6 { 0% { transform: translate(0,0); } 100% { transform: translate(35px,-50px); } }

/* ── Animations: Waves ── */
.med-anim-waves { width: 100%; height: 100%; position: relative; }
.med-anim-waves svg { position: absolute; bottom: 20%; left: 0; width: 100%; height: 60%; }
.med-wave-path { fill: none; stroke-width: 1.5; stroke-linecap: round; }
.med-anim-waves.palette-1 .med-wave-path:nth-child(1) { stroke: rgba(122,195,255,0.5); }
.med-anim-waves.palette-1 .med-wave-path:nth-child(2) { stroke: rgba(122,195,255,0.3); }
.med-anim-waves.palette-1 .med-wave-path:nth-child(3) { stroke: rgba(185,225,255,0.4); }
.med-anim-waves.palette-2 .med-wave-path:nth-child(1) { stroke: rgba(97,190,162,0.5); }
.med-anim-waves.palette-2 .med-wave-path:nth-child(2) { stroke: rgba(97,190,162,0.3); }
.med-anim-waves.palette-2 .med-wave-path:nth-child(3) { stroke: rgba(130,210,180,0.4); }
.med-wave-path:nth-child(1) { animation: medWave1 6s ease-in-out infinite; }
.med-wave-path:nth-child(2) { animation: medWave2 8s ease-in-out infinite; }
.med-wave-path:nth-child(3) { animation: medWave3 7s ease-in-out infinite; }
@keyframes medWave1 { 0%, 100% { d: path("M0,50 Q80,20 160,50 T320,50"); } 50% { d: path("M0,50 Q80,80 160,50 T320,50"); } }
@keyframes medWave2 { 0%, 100% { d: path("M0,60 Q80,40 160,60 T320,60"); } 50% { d: path("M0,60 Q80,90 160,60 T320,60"); } }
@keyframes medWave3 { 0%, 100% { d: path("M0,55 Q80,30 160,55 T320,55"); } 50% { d: path("M0,55 Q80,75 160,55 T320,55"); } }

/* ── Animations: Rings ── */
.med-anim-rings { position: relative; width: 160px; height: 160px; }
.med-ring { position: absolute; border-radius: 50%; border: 1.5px solid; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.med-ring:nth-child(1) { width: 60px; height: 60px; border-color: rgba(122,195,255,0.6); animation: medRingSpin 8s linear infinite; }
.med-ring:nth-child(2) { width: 100px; height: 100px; border-color: rgba(122,195,255,0.3); animation: medRingSpin 12s linear infinite reverse; }
.med-ring:nth-child(3) { width: 140px; height: 140px; border-color: rgba(122,195,255,0.15); animation: medRingSpin 16s linear infinite; }
.med-ring-dot {
  position: absolute; width: 6px; height: 6px;
  background: var(--color-blue); border-radius: 50%;
  top: -3px; left: 50%; transform: translateX(-50%);
  box-shadow: 0 0 10px rgba(122,195,255,0.8);
}
@keyframes medRingSpin { from { transform: translate(-50%, -50%) rotate(0deg); } to { transform: translate(-50%, -50%) rotate(360deg); } }

/* ── Overlay (detail view) ── */
.med-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(6, 44, 67, 0.92);
  backdrop-filter: blur(20px);
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: medFadeIn 0.3s ease;
}
.med-overlay.active { display: flex; }
@keyframes medFadeIn { from { opacity: 0; } to { opacity: 1; } }

.med-expanded {
  background: linear-gradient(160deg, rgba(6,44,67,0.98), rgba(10,60,90,0.95));
  border: 1px solid rgba(122, 195, 255, 0.2);
  border-radius: 24px;
  width: 100%; max-width: 380px;
  padding: 2rem 0;
  text-align: center;
  animation: medSlideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.med-expanded > *:not(.med-anim-container) {
  margin-left: 1.5rem;
  margin-right: 1.5rem;
}

.med-expanded > .med-audio-player {
  margin-left: 1rem;
  margin-right: 1rem;
}
@keyframes medSlideUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }

.med-expanded .med-anim-container {
  position: relative;
  height: 180px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.5rem;
}

.med-expanded h2 {
  font-size: 1.3rem; font-weight: 600;
  color: #FFF8EE;
  margin-bottom: 0.75rem;
}

.med-description {
  font-size: 0.9rem; line-height: 1.6;
  color: rgba(255, 248, 238, 0.6);
  margin-bottom: 1.5rem;
}

.med-meta {
  display: flex; justify-content: center; gap: 1.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.8rem; color: rgba(255, 248, 238, 0.4);
}
.med-meta-item { display: flex; align-items: center; gap: 0.4rem; }
.med-meta-icon { width: 16px; height: 16px; opacity: 0.6; }

/* ── Audio Player ── */
.med-audio-player {
  background: rgba(122,195,255,0.08);
  border: 1px solid rgba(122,195,255,0.15);
  border-radius: 16px;
  padding: 1rem 1.25rem;
}
.med-player-controls { display: flex; align-items: center; gap: 1rem; }

.med-btn-play {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--color-blue); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s, background 0.2s;
}
.med-btn-play:hover { transform: scale(1.08); background: #b9e1ff; }
.med-btn-play svg { width: 20px; height: 20px; fill: #062C43; }
.med-btn-play .med-icon-play { margin-left: 2px; }

.med-player-track { flex: 1; display: flex; flex-direction: column; gap: 0.4rem; }
.med-progress-bar { width: 100%; height: 4px; background: rgba(122,195,255,0.15); border-radius: 2px; cursor: pointer; }
.med-progress-fill { height: 100%; background: var(--color-blue); border-radius: 2px; width: 0%; transition: width 0.3s; }
.med-player-times { display: flex; justify-content: space-between; font-size: 0.7rem; color: rgba(255, 248, 238, 0.4); }

.med-btn-close {
  position: absolute; top: 1rem; right: 1rem;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(122,195,255,0.08); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: #FFF8EE; font-size: 1.2rem;
  transition: background 0.2s;
  z-index: 101;
}
.med-btn-close:hover { opacity: 0.7; }

.med-yt-link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  margin-top: 1rem; font-size: 0.75rem;
  color: rgba(255, 248, 238, 0.4); text-decoration: none;
  transition: color 0.2s;
}
.med-yt-link:hover { color: rgba(255, 248, 238, 0.6); }

.med-swipe-hint {
  margin-top: 2rem; font-size: 0.8rem;
  color: var(--text-secondary); text-align: center;
}

/* ── Light theme adjustments ── */
[data-theme="light"] .med-card[data-pos="0"] .med-card-inner { background: linear-gradient(145deg, #ffffff, #f5f0e8); }
[data-theme="light"] .med-card[data-pos="1"] .med-card-inner { background: linear-gradient(145deg, rgba(255,255,255,0.9), rgba(245,240,232,0.8)); }
[data-theme="light"] .med-card[data-pos="2"] .med-card-inner { background: linear-gradient(145deg, rgba(255,255,255,0.8), rgba(245,240,232,0.7)); }
[data-theme="light"] .med-card[data-pos="3"] .med-card-inner { background: linear-gradient(145deg, rgba(255,255,255,0.7), rgba(245,240,232,0.6)); }
[data-theme="light"] .med-card[data-pos="4"] .med-card-inner { background: linear-gradient(145deg, rgba(255,255,255,0.6), rgba(245,240,232,0.5)); }
[data-theme="light"] .med-card[data-pos="5"] .med-card-inner { background: linear-gradient(145deg, rgba(255,255,255,0.5), rgba(245,240,232,0.4)); }
[data-theme="light"] .med-card:not([data-pos="0"]):hover .med-card-inner {
  background: linear-gradient(145deg, #ffffff, #f0ebe3) !important;
  box-shadow: -8px 8px 30px rgba(0,0,0,0.12), 0 0 20px rgba(6,44,67,0.08);
  border-color: rgba(6, 44, 67, 0.3);
}
[data-theme="light"] .med-card-inner { border-color: rgba(6, 44, 67, 0.12); }
[data-theme="light"] .med-circle { mix-blend-mode: multiply; }

[data-theme="light"] .med-anim-circles.palette-1 .med-circle:nth-child(odd) { background: #4fa8e8; }
[data-theme="light"] .med-anim-circles.palette-1 .med-circle:nth-child(even) { background: #3b82b8; }
[data-theme="light"] .med-anim-circles.palette-2 .med-circle:nth-child(odd) { background: #3da88a; }
[data-theme="light"] .med-anim-circles.palette-2 .med-circle:nth-child(even) { background: #2d7a6e; }
[data-theme="light"] .med-anim-circles.palette-3 .med-circle:nth-child(odd) { background: #8b6fe0; }
[data-theme="light"] .med-anim-circles.palette-3 .med-circle:nth-child(even) { background: #6b4fb0; }
[data-theme="light"] .med-anim-waves.palette-1 .med-wave-path:nth-child(1) { stroke: rgba(42,122,181,0.6); }
[data-theme="light"] .med-anim-waves.palette-1 .med-wave-path:nth-child(2) { stroke: rgba(42,122,181,0.35); }
[data-theme="light"] .med-anim-waves.palette-1 .med-wave-path:nth-child(3) { stroke: rgba(42,122,181,0.45); }
[data-theme="light"] .med-anim-waves.palette-2 .med-wave-path:nth-child(1) { stroke: rgba(45,122,110,0.6); }
[data-theme="light"] .med-anim-waves.palette-2 .med-wave-path:nth-child(2) { stroke: rgba(45,122,110,0.35); }
[data-theme="light"] .med-anim-waves.palette-2 .med-wave-path:nth-child(3) { stroke: rgba(45,122,110,0.45); }
[data-theme="light"] .med-ring:nth-child(1) { border-color: rgba(42,122,181,0.5); }
[data-theme="light"] .med-ring:nth-child(2) { border-color: rgba(42,122,181,0.3); }
[data-theme="light"] .med-ring:nth-child(3) { border-color: rgba(42,122,181,0.15); }

[data-theme="light"] .med-overlay { background: rgba(255, 248, 238, 0.92); }
[data-theme="light"] .med-expanded { background: linear-gradient(160deg, #ffffff, #f8f3eb); border-color: rgba(6, 44, 67, 0.12); }
[data-theme="light"] .med-expanded h2 { color: var(--color-blue-dark); }
[data-theme="light"] .med-description { color: rgba(27, 16, 1, 0.55); }
[data-theme="light"] .med-meta { color: rgba(27, 16, 1, 0.35); }
[data-theme="light"] .med-audio-player { background: rgba(6,44,67,0.05); border-color: rgba(6,44,67,0.1); }
[data-theme="light"] .med-player-times { color: rgba(27, 16, 1, 0.35); }
[data-theme="light"] .med-progress-bar { background: rgba(6,44,67,0.1); }
[data-theme="light"] .med-btn-close { background: rgba(6,44,67,0.08); color: var(--color-blue-dark); }
[data-theme="light"] .med-yt-link { color: rgba(27, 16, 1, 0.35); }
[data-theme="light"] .med-yt-link:hover { color: rgba(27, 16, 1, 0.55); }

/* ── Meditations responsive ── */
@media (max-width: 400px) {
  .med-card-stack { width: 280px; }
  .med-expanded { padding: 1.5rem 1rem; }
}

/* ========================================
   BREATH WIDGET (animation respiration)
   ======================================== */
.breath-widget {
  position: fixed;
  bottom: 0;
  right: 2rem;
  width: 260px;
  z-index: -1;
  pointer-events: none;
  opacity: 0.8;
  will-change: transform, opacity;
}

/* Sit on top of the internal nav bar when it's present */
body:has(.internal-nav-fixed) .breath-widget {
  bottom: -13px;
}

.breath-widget img,
.breath-widget svg,
.breath-widget lottie-player {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 768px) {
  .breath-widget,
  body:has(.internal-nav-fixed) .breath-widget {
    width: 185px;
    bottom: -8vh;
    right: 1rem;
    opacity: 0.7;
  }
}

@media (prefers-reduced-motion: reduce) {
  .breath-widget {
    display: none;
  }
}


/* ========================================
   ABOUT SECTION
   ======================================== */
.about-section {
  position: relative;
  padding: 0;
  background: none;
}

.about-header {
  text-align: left;
  margin: 0 auto var(--spacing-md);
  max-width: 1200px;
  padding: 0 var(--spacing-md);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(320px, 440px) 1fr;
  gap: var(--spacing-xl);
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
  min-height: 220vh; /* assez de scroll pour 3 transitions de particules */
}

.about-image-right .about-grid {
  grid-template-columns: 1fr minmax(320px, 440px);
}
.about-image-right .about-figure  { order: 2; }
.about-image-right .about-content { order: 1; }

/* ─── Image stack ─── */
.about-figure {
  position: sticky;
  top: var(--header-height);
  /* Hauteur = espace utile sous le header. Le stack est flex-centre dedans. */
  height: calc(100vh - var(--header-height));
  margin: 0;
  align-self: start;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-stack {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  /* PAS d'overflow: les particules doivent voler en dehors du cadre */
}

.about-shape-circle .about-stack { aspect-ratio: 1 / 1; }

.about-stack-layer {
  position: absolute;
  inset: 0;
  /* Pas de filter / box-shadow ici : c'etait laid */
}

.about-stack-source,
.about-stack-fragment {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.about-stack-source {
  object-fit: cover;
}

.about-stack-fragment {
  pointer-events: none;
  will-change: opacity, transform;
  transform-origin: center center;
}

/* ─── Text content ─── */
.about-content {
  display: flex;
  flex-direction: column;
  max-width: 640px;
  padding-top: 18vh;
  text-align: left;
}

.about-paragraph {
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--color-gray);
  margin: 0 0 2rem;
  text-align: left;
}

.about-paragraph .word {
  display: inline-block;
  white-space: pre;
}

.about-paragraph strong { color: var(--color-blue-dark); font-weight: 600; }
.about-paragraph em     { color: var(--color-blue-text); font-style: italic; }
.about-paragraph a      {
  color: var(--color-blue-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.about-cta {
  margin-top: var(--spacing-lg);
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
}

/* ─── Responsive ─── */
@media (max-width: 900px) {
  .about-grid,
  .about-image-right .about-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    min-height: 0;
  }

  .about-figure {
    position: sticky;
    top: var(--header-height);
    /* Mobile : pas de hauteur 100vh (l'image au-dessus du texte = trop de place perdue),
       on retombe sur le comportement classique sticky-en-haut. */
    height: auto;
    display: block;
    max-width: 320px;
    margin: 0 auto;
    z-index: 5;
  }
  .about-image-right .about-figure  { order: 0; }
  .about-image-right .about-content { order: 1; }

  .about-stack { aspect-ratio: 4 / 5; }
}

/* Mosaique d'images : nadine grande a gauche + 3 photos a droite */
@media (max-width: 768px) {
  .about-grid,
  .about-image-right .about-grid {
    padding: 0;
  }

  .about-figure {
    position: static;
    max-width: 100%;
    width: 100%;
    padding: 0;
    margin-bottom: var(--spacing-md);
  }

  .about-stack {
    aspect-ratio: auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: repeat(2, 1fr);
    gap: 0.5rem;
    height: clamp(280px, 70vw, 420px);
  }

  .about-stack-layer {
    position: relative;
    inset: auto;
    overflow: hidden;
  }

  .about-stack-layer[data-index="0"] {
    grid-column: 1;
    grid-row: 1 / span 2;
  }

  .about-stack-layer[data-index="1"] { grid-column: 2; grid-row: 1; }
  .about-stack-layer[data-index="2"] { grid-column: 3; grid-row: 1; }
  .about-stack-layer[data-index="3"] { grid-column: 2 / span 2; grid-row: 2; }

  .about-stack-source {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block !important;
  }

  /* Cache d'eventuels fragments si JS desactive le hide */
  .about-stack-fragment {
    display: none;
  }

  .about-content {
    padding-top: 0;
  }
}

@media (max-width: 600px) {
  .about-paragraph { font-size: 1rem; }
}

/* ─── Reduced motion ─── */
@media (prefers-reduced-motion: reduce) {
  .about-stack-fragment {
    transform: none !important;
    opacity: 1 !important;
  }
  .about-paragraph {
    transform: none !important;
  }
  .about-paragraph .word {
    opacity: 1 !important;
  }
}
