/* ==========================================================================
   Cabinet Maē - Design System
   Accompagnement périnatal & massages bien-être à Riom
   ========================================================================== */

/* ==========================================================================
   1. Design Tokens - Variables CSS
   ========================================================================== */
:root {
  /* Couleurs - Palette principale */
  --color-terracotta: #C99A86;
  --color-terracotta-dark: #B07A65;
  --color-terracotta-light: #E5C5B5;
  --color-sage: #A8B5A0;
  --color-sage-dark: #8A9A82;
  --color-sage-light: #C9D2C2;
  --color-cream: #F8F1E7;
  --color-cream-dark: #EDE0D0;
  --color-sand: #EDE0D0;
  --color-ink: #3A2F2A;
  --color-ink-soft: #5C504A;
  --color-ink-light: #75665D;
  --color-gold: #C9A961;
  --color-white: #FFFFFF;
  --color-black: #1A1614;

  /* Couleurs sémantiques */
  --color-bg: var(--color-cream);
  --color-bg-alt: var(--color-cream-dark);
  --color-text: var(--color-ink);
  --color-text-soft: var(--color-ink-soft);
  --color-primary: var(--color-terracotta);
  --color-primary-hover: var(--color-terracotta-dark);
  --color-secondary: var(--color-sage);
  --color-accent: var(--color-gold);
  --color-border: rgba(58, 47, 42, 0.12);

  /* Typographie */
  --font-display: 'Cormorant Garamond', 'Georgia', serif;
  --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-handwriting: 'Caveat', 'Brush Script MT', cursive;

  /* Échelle typographique (modular scale 1.25 - major third) */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.5rem;
  --text-5xl: 3.5rem;
  --text-6xl: 4.5rem;
  --text-7xl: 6rem;

  /* Espacements (8pt grid) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-8: 3rem;
  --space-10: 4rem;
  --space-12: 5rem;
  --space-16: 7rem;
  --space-20: 9rem;
  --space-24: 12rem;

  /* Layout */
  --container-narrow: 720px;
  --container: 1140px;
  --container-wide: 1320px;

  /* Bordures et arrondis */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  /* Ombres */
  --shadow-sm: 0 1px 2px rgba(58, 47, 42, 0.04);
  --shadow-md: 0 4px 12px rgba(58, 47, 42, 0.06), 0 1px 3px rgba(58, 47, 42, 0.04);
  --shadow-lg: 0 16px 32px rgba(58, 47, 42, 0.08), 0 4px 8px rgba(58, 47, 42, 0.04);
  --shadow-xl: 0 24px 48px rgba(58, 47, 42, 0.12);

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Z-index */
  --z-base: 1;
  --z-dropdown: 10;
  --z-sticky: 100;
  --z-header: 1000;
  --z-modal: 5000;
  --z-tooltip: 9000;

  /* Tailles header */
  --header-height: 84px;
  --header-height-scrolled: 68px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, picture, svg, video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

ul, ol {
  list-style: none;
}

::selection {
  background: var(--color-terracotta-light);
  color: var(--color-ink);
}

/* ==========================================================================
   3. Typographie
   ========================================================================== */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  color: var(--color-ink);
  letter-spacing: -0.01em;
}

h1, .h1 {
  font-size: clamp(2.25rem, 5vw + 1rem, var(--text-6xl));
  line-height: 1.05;
  font-weight: 500;
  letter-spacing: -0.02em;
}

h2, .h2 {
  font-size: clamp(1.75rem, 3vw + 1rem, var(--text-5xl));
  line-height: 1.1;
}

h3, .h3 {
  font-size: clamp(1.5rem, 2vw + 0.75rem, var(--text-3xl));
  line-height: 1.2;
}

h4, .h4 {
  font-size: var(--text-2xl);
  line-height: 1.3;
}

h5, .h5 {
  font-size: var(--text-xl);
}

h6, .h6 {
  font-size: var(--text-lg);
  font-family: var(--font-body);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

p {
  margin-bottom: var(--space-4);
  color: var(--color-text-soft);
}

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

.lead {
  font-size: clamp(1.125rem, 1vw + 0.875rem, var(--text-xl));
  line-height: 1.55;
  color: var(--color-text);
}

.handwriting {
  font-family: var(--font-handwriting);
  font-weight: 400;
  font-size: 1.4em;
  color: var(--color-terracotta);
  line-height: 1;
}

.eyebrow {
  display: inline-block;
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--color-terracotta);
  margin-bottom: var(--space-4);
}

.eyebrow::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--color-terracotta);
  vertical-align: middle;
  margin-right: var(--space-3);
}

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

strong, b {
  font-weight: 600;
  color: var(--color-ink);
}

blockquote {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  line-height: 1.4;
  font-style: italic;
  color: var(--color-ink);
  padding-left: var(--space-6);
  border-left: 3px solid var(--color-terracotta);
  margin: var(--space-8) 0;
}

/* ==========================================================================
   4. Layout - Container, Grid, Section
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--space-5);
  padding-right: var(--space-5);
}

.container-narrow {
  width: 100%;
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding-left: var(--space-5);
  padding-right: var(--space-5);
}

.container-wide {
  width: 100%;
  max-width: var(--container-wide);
  margin: 0 auto;
  padding-left: var(--space-5);
  padding-right: var(--space-5);
}

.section {
  padding-top: clamp(var(--space-12), 8vw, var(--space-20));
  padding-bottom: clamp(var(--space-12), 8vw, var(--space-20));
}

.section-sm {
  padding-top: var(--space-10);
  padding-bottom: var(--space-10);
}

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

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

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

.section-bg-ink h1, .section-bg-ink h2, .section-bg-ink h3,
.section-bg-ink h4, .section-bg-ink h5, .section-bg-ink h6 {
  color: var(--color-cream);
}

.section-bg-ink p {
  color: rgba(248, 241, 231, 0.75);
}

/* ==========================================================================
   5. Header & Navigation
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(248, 241, 231, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  z-index: var(--z-header);
  transition: height var(--transition), background var(--transition), border-color var(--transition);
}

.site-header.scrolled {
  height: var(--header-height-scrolled);
  background: rgba(248, 241, 231, 0.96);
  border-bottom-color: var(--color-border);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: var(--color-terracotta);
  color: var(--color-cream);
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 500;
  font-style: italic;
}

/* Variante image : on garde le même cadrage circulaire 44×44 que la pastille,
   mais sans fond ni typo. object-fit contain pour respecter le ratio du logo. */
.brand-mark-image {
  background: transparent;
  padding: 0;
  object-fit: contain;
  object-position: center;
}

.brand-name {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 500;
  color: var(--color-ink);
  letter-spacing: -0.01em;
  line-height: 1;
}

.brand-tagline {
  display: block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-ink-soft);
  margin-top: 2px;
}

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

.nav-link {
  position: relative;
  display: inline-block;
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-ink-soft);
  letter-spacing: 0.01em;
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  color: var(--color-ink);
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 6px;
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  width: 16px;
  height: 2px;
  background: var(--color-terracotta);
  border-radius: var(--radius-full);
  transition: transform var(--transition);
}

.nav-link:hover::after,
.nav-link[aria-current="page"]::after {
  transform: translateX(-50%) scaleX(1);
}

/* Dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% - 4px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  min-width: 280px;
  padding: var(--space-3);
  background: var(--color-cream);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
  z-index: var(--z-dropdown);
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-menu .nav-link {
  display: block;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
}

.nav-dropdown-menu .nav-link:hover {
  background: var(--color-cream-dark);
}

.nav-dropdown-menu .nav-link::after {
  display: none;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  color: var(--color-ink);
  background: transparent;
  transition: background var(--transition), color var(--transition);
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
  background: var(--color-cream-dark);
}

.nav-toggle[aria-expanded="true"] {
  background: var(--color-terracotta-light);
  color: var(--color-terracotta-dark);
}

.nav-toggle-bars {
  display: block;
  width: 22px;
  height: 14px;
  position: relative;
}

.nav-toggle-bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), top 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease, width 0.3s ease;
}

.nav-toggle-bars span:nth-child(1) { top: 0; }
.nav-toggle-bars span:nth-child(2) { top: 6px; width: 70%; }
.nav-toggle-bars span:nth-child(3) { top: 12px; }

.nav-toggle:hover .nav-toggle-bars span:nth-child(2) {
  width: 100%;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(1) {
  top: 6px;
  transform: rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(2) {
  opacity: 0;
  width: 100%;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(3) {
  top: 6px;
  transform: rotate(-45deg);
}

.skip-link {
  position: absolute;
  top: 0;
  left: 0;
  background: var(--color-ink);
  color: var(--color-cream);
  padding: var(--space-3) var(--space-4);
  z-index: var(--z-tooltip);
  transform: translateY(-110%);
  transition: transform var(--transition);
}

.skip-link:focus {
  transform: translateY(0);
}

/* ==========================================================================
   6. Boutons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-6);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-terracotta);
  color: var(--color-cream);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background: var(--color-terracotta-dark);
  color: var(--color-cream);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: var(--color-ink);
  color: var(--color-cream);
}

.btn-secondary:hover {
  background: var(--color-black);
  color: var(--color-cream);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--color-ink);
  border-color: var(--color-ink);
}

.btn-outline:hover {
  background: var(--color-ink);
  color: var(--color-cream);
}

.btn-ghost {
  background: transparent;
  color: var(--color-ink);
  padding-left: 0;
  padding-right: 0;
}

.btn-ghost::after {
  content: '→';
  margin-left: var(--space-2);
  transition: transform var(--transition);
}

.btn-ghost:hover {
  color: var(--color-terracotta);
}

.btn-ghost:hover::after {
  transform: translateX(4px);
}

.btn-lg {
  padding: var(--space-5) var(--space-8);
  font-size: var(--text-base);
}

.btn-sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-xs);
}

.btn-block {
  display: flex;
  width: 100%;
}

/* ==========================================================================
   7. Hero Section — Full-bleed image with editorial overlay
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  /* padding-top de la hauteur du header pour que le contenu se centre
     dans l'espace visible (sous le header), pas dans le viewport entier. */
  padding: var(--header-height) 0 0;
  margin: 0;
  overflow: hidden;
  isolation: isolate;
}

/* Full-bleed image fills the section behind everything */
.hero-image {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(135deg, var(--color-terracotta-light), var(--color-sage-light));
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  /* Darken bright golden-hour image while keeping its warm soul */
  filter: brightness(0.62) saturate(1.05) contrast(1.05);
}

/* Bottom-anchored dark gradient for text legibility.
   On garde l'opacité maximale jusqu'en bas pour une coupure nette
   (plus de fade-to-cream qui couvrait la base précédemment). */
.hero-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(58, 47, 42, 0.30) 0%,
      rgba(58, 47, 42, 0.10) 18%,
      rgba(58, 47, 42, 0.20) 45%,
      rgba(58, 47, 42, 0.70) 72%,
      rgba(58, 47, 42, 0.85) 86%,
      rgba(58, 47, 42, 0.85) 100%
    );
  z-index: -1;
}

/* Warm editorial vignette */
.hero-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 130% 90% at 50% 35%,
    transparent 45%,
    rgba(58, 47, 42, 0.30) 100%
  );
  z-index: -1;
  pointer-events: none;
}

/* Pas de dégradé bas : coupure nette entre le hero et la section suivante. */

/* Container du contenu éditorial : centré verticalement par le flex parent,
   centré horizontalement à gauche par sa max-width interne. */
.hero > .container-wide {
  position: relative;
  width: 100%;
  z-index: 1;
}

.hero-content {
  max-width: 720px;
  color: var(--color-cream);
}

.hero-content .eyebrow,
.hero-content .eyebrow::before {
  color: rgba(248, 241, 231, 0.82);
}

.hero-content .eyebrow::before {
  background: rgba(248, 241, 231, 0.6);
}

.hero-title {
  color: var(--color-cream);
  font-size: clamp(2.25rem, 4.5vw, 3.75rem);
  line-height: 1.05;
  margin-bottom: var(--space-6);
  text-shadow: 0 2px 24px rgba(58, 47, 42, 0.35);
  letter-spacing: -0.015em;
}

.hero-title em {
  font-style: italic;
  color: #f0c8a8;
}

.hero-lead {
  color: rgba(248, 241, 231, 0.92);
  max-width: 560px;
  margin-bottom: var(--space-8);
  text-shadow: 0 1px 12px rgba(58, 47, 42, 0.4);
}

/* Quill produit du <p>...</p>. La règle globale `p { color: var(--color-text-soft) }`
   l'emporte sur la couleur du wrapper (.hero-lead, .lead, .page-banner-text…).
   On force l'héritage de la couleur, du shadow et on supprime les marges
   verticales par défaut sur le premier/dernier <p> pour garder le rendu propre. */
.hero-lead p,
.lead p,
.page-banner-text p,
.cta-banner-text p {
  color: inherit;
  text-shadow: inherit;
}
.hero-lead > p:first-child,
.lead > p:first-child,
.page-banner-text > p:first-child {
  margin-top: 0;
}
.hero-lead > p:last-child,
.lead > p:last-child,
.page-banner-text > p:last-child {
  margin-bottom: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

/* Outline button on dark image: glass-like, light border */
.hero-actions .btn-outline {
  background: rgba(248, 241, 231, 0.10);
  border-color: rgba(248, 241, 231, 0.55);
  color: var(--color-cream);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.hero-actions .btn-outline:hover,
.hero-actions .btn-outline:focus-visible {
  background: var(--color-cream);
  color: var(--color-ink);
  border-color: var(--color-cream);
}

/* Meta items: subtle, no top border, light tone on dark image */
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-5) var(--space-7);
  padding-top: var(--space-5);
  margin-top: var(--space-3);
  border-top: 1px solid rgba(248, 241, 231, 0.20);
}

.hero-meta-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: rgba(248, 241, 231, 0.88);
  font-weight: 500;
}

.hero-meta-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: rgba(248, 241, 231, 0.16);
  color: var(--color-cream);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  flex-shrink: 0;
}

/* Scroll cue at bottom */
.hero::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: var(--space-5);
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, transparent, rgba(248, 241, 231, 0.5));
  transform: translateX(-50%);
  z-index: 1;
  pointer-events: none;
  animation: heroScrollCue 2.4s ease-in-out infinite;
}

@keyframes heroScrollCue {
  0%, 100% { opacity: 0.3; transform: translate(-50%, 0); }
  50% { opacity: 1; transform: translate(-50%, 6px); }
}

/* ==========================================================================
   8. Cards & Components
   ========================================================================== */
.card {
  position: relative;
  background: var(--color-cream);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  border: 1px solid var(--color-border);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.card-elevated {
  background: var(--color-white);
  box-shadow: var(--shadow-md);
  border: none;
}

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

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

.card-link:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-terracotta-light);
}

/* Service card */
.service-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  height: 100%;
}

.service-card-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-terracotta-light);
  color: var(--color-terracotta-dark);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-2);
}

.service-card-icon svg {
  width: 28px;
  height: 28px;
}

.service-card-title {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-2);
}

.service-card-text {
  flex: 1;
  font-size: var(--text-base);
}

.service-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-4);
  margin-top: var(--space-4);
  border-top: 1px solid var(--color-border);
  font-size: var(--text-sm);
}

.service-card-price {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 500;
  color: var(--color-ink);
}

.service-card-price-from {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-ink-light);
  display: block;
}

.service-card-link {
  color: var(--color-terracotta);
  font-weight: 600;
  font-size: var(--text-sm);
}

/* Grid utilities */
.grid {
  display: grid;
  gap: var(--space-6);
}

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

.grid-feature {
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-12);
  align-items: center;
}

@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4, .grid-feature { grid-template-columns: 1fr; }
}

/* Table de tarifs à 4 offres : le conteneur du site est limité en largeur
   (~1100px), donc 4 colonnes tassent le texte même sur grand écran. On affiche
   2 colonnes (2x2), puis 1 colonne sur mobile, pour un rendu aéré et lisible.
   Ciblé sur .pricing-grid pour ne pas toucher les autres grilles à 4 colonnes. */
.pricing-grid.grid-4 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 600px) {
  .pricing-grid.grid-4 { grid-template-columns: 1fr; }
}

/* Section header */
.section-header {
  max-width: 720px;
  margin-bottom: var(--space-12);
}

.section-header.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-header-title {
  margin-bottom: var(--space-5);
}

.section-header-text {
  font-size: var(--text-lg);
  color: var(--color-text-soft);
}

/* ==========================================================================
   9. Listes décoratives
   ========================================================================== */
.list-check {
  list-style: none;
  padding: 0;
}

.list-check li {
  position: relative;
  padding-left: var(--space-8);
  margin-bottom: var(--space-3);
  color: var(--color-text-soft);
}

.list-check li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 20px;
  height: 20px;
  background: var(--color-terracotta-light);
  border-radius: var(--radius-full);
}

.list-check li::after {
  content: '';
  position: absolute;
  /* Centré sur le centre de la pastille (::before : left 0 + 20/2 = 10 ;
     top 8 + 20/2 = 18). translate(-50%,-50%) centre la coche, puis rotation.
     -1px d'ajustement optique vertical pour un ✓ visuellement centré. */
  left: 10px;
  top: 17px;
  width: 9px;
  height: 5px;
  border-left: 2px solid var(--color-terracotta-dark);
  border-bottom: 2px solid var(--color-terracotta-dark);
  transform: translate(-50%, -50%) rotate(-45deg);
}

.list-numbered {
  counter-reset: numlist;
  padding: 0;
}

.list-numbered > li {
  counter-increment: numlist;
  position: relative;
  padding-left: var(--space-10);
  margin-bottom: var(--space-6);
}

.list-numbered > li::before {
  content: counter(numlist, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: -2px;
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-style: italic;
  color: var(--color-terracotta);
}

/* ==========================================================================
   10. Pricing
   ========================================================================== */
.pricing-card {
  position: relative;
  background: var(--color-cream);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  border: 1px solid var(--color-border);
  transition: all var(--transition);
}

.pricing-card-featured {
  background: var(--color-ink);
  color: var(--color-cream);
  border-color: var(--color-ink);
  transform: scale(1.02);
}

.pricing-card-featured h3,
.pricing-card-featured h4,
.pricing-card-featured .pricing-price {
  color: var(--color-cream);
}

.pricing-card-featured p,
.pricing-card-featured li {
  color: rgba(248, 241, 231, 0.8);
}

.pricing-card-featured .list-check li::before {
  background: rgba(201, 154, 134, 0.3);
}

.pricing-card-featured .list-check li::after {
  border-color: var(--color-terracotta-light);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-terracotta);
  color: var(--color-cream);
  padding: var(--space-1) var(--space-4);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.pricing-name {
  font-size: var(--text-xl);
  margin-bottom: var(--space-2);
}

.pricing-duration {
  font-size: var(--text-sm);
  color: var(--color-ink-light);
  margin-bottom: var(--space-5);
}

.pricing-price {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
}

.pricing-price-amount {
  font-family: var(--font-display);
  font-size: var(--text-5xl);
  font-weight: 500;
  line-height: 1;
}

.pricing-price-currency {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  opacity: 0.75;
}

.pricing-features {
  margin-bottom: var(--space-6);
}

/* ==========================================================================
   11. Testimonials
   ========================================================================== */
.testimonial {
  background: var(--color-cream);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  position: relative;
  height: 100%;
}

.testimonial::before {
  content: '"';
  position: absolute;
  top: var(--space-4);
  right: var(--space-6);
  font-family: var(--font-display);
  font-size: 8rem;
  line-height: 1;
  color: var(--color-terracotta-light);
  opacity: 0.6;
}

.testimonial-text {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  line-height: 1.5;
  font-style: italic;
  color: var(--color-ink);
  margin-bottom: var(--space-6);
  position: relative;
  z-index: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.testimonial-author-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: var(--color-terracotta-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--color-terracotta-dark);
}

.testimonial-author-name {
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--color-ink);
}

.testimonial-author-meta {
  font-size: var(--text-xs);
  color: var(--color-ink-light);
}

.testimonial-stars {
  display: flex;
  gap: 2px;
  margin-bottom: var(--space-4);
  color: var(--color-gold);
  font-size: var(--text-base);
  letter-spacing: 1px;
}

/* ==========================================================================
   12. FAQ Accordion
   ========================================================================== */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.faq-item {
  background: var(--color-cream);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: border-color var(--transition), background var(--transition);
}

.faq-item[open] {
  background: var(--color-cream-dark);
  border-color: var(--color-terracotta-light);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-6);
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 500;
  color: var(--color-ink);
  cursor: pointer;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: '+';
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-terracotta);
  color: var(--color-cream);
  border-radius: var(--radius-full);
  /* Police sans-serif + line-height serré : le glyphe +/− est alors
     géométriquement centré dans la pastille (le serif hérité et le line-height
     du body le décalaient vers le haut/gauche). */
  font-family: var(--font-body);
  font-size: var(--text-xl);
  font-weight: 400;
  line-height: 1;
  transition: transform var(--transition);
}

.faq-item[open] .faq-question::after {
  content: '−';
  transform: rotate(0);
}

.faq-answer {
  padding: 0 var(--space-6) var(--space-6);
}

.faq-answer p:not(:last-child) {
  margin-bottom: var(--space-3);
}

/* Titre de groupe de FAQ : nettement séparé du groupe précédent (grand espace
   au-dessus) et rattaché à ses propres questions (espace modéré en dessous).
   Remplace l'ancienne classe utilitaire .mb-12 qui n'existait pas. */
.faq-group-title {
  color: var(--color-terracotta);
  margin-top: var(--space-12);
  margin-bottom: var(--space-6);
}
.faq-group-title:first-child {
  margin-top: 0;
}

/* ==========================================================================
   13. Forms
   ========================================================================== */
.form {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form-label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-ink);
  letter-spacing: 0.02em;
}

.form-label-required::after {
  content: ' *';
  color: var(--color-terracotta);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: var(--space-4) var(--space-5);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-ink);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--color-terracotta);
  box-shadow: 0 0 0 4px rgba(201, 154, 134, 0.15);
}

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

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

.form-checkbox {
  margin-top: 4px;
  flex-shrink: 0;
}

.form-checkbox-label {
  font-size: var(--text-sm);
  color: var(--color-text-soft);
  line-height: 1.5;
}

.form-input.is-invalid,
.form-textarea.is-invalid,
.form-select.is-invalid,
.form-input[aria-invalid="true"],
.form-textarea[aria-invalid="true"],
.form-select[aria-invalid="true"] {
  border-color: var(--color-terracotta-dark);
  box-shadow: 0 0 0 3px rgba(195, 109, 80, 0.15);
}

.form-success {
  color: var(--color-sage-dark);
  background: var(--color-sage-light);
  padding: var(--space-4);
  border-radius: var(--radius-sm);
  margin-top: var(--space-3);
}

.form-error {
  color: var(--color-terracotta-dark);
  margin-top: var(--space-3);
  font-weight: 500;
}

/* ==========================================================================
   14. Footer
   ========================================================================== */
.site-footer {
  background: var(--color-ink);
  color: rgba(248, 241, 231, 0.75);
  padding: var(--space-16) 0 var(--space-8);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--space-10);
  margin-bottom: var(--space-12);
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }
}

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

.footer-brand .brand-name {
  color: var(--color-cream);
}

.footer-brand .brand-tagline {
  color: rgba(248, 241, 231, 0.6);
}

.footer-tagline {
  margin-top: var(--space-5);
  max-width: 320px;
  font-size: var(--text-sm);
  line-height: 1.6;
  color: rgba(248, 241, 231, 0.75);
}

.footer-heading {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--color-cream);
  margin-bottom: var(--space-5);
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  list-style: none;
  padding: 0;
}

.footer-list a {
  font-size: var(--text-sm);
  color: rgba(248, 241, 231, 0.65);
  transition: color var(--transition);
}

.footer-list a:hover {
  color: var(--color-terracotta-light);
}

.footer-contact-line {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  font-size: var(--text-sm);
}

.footer-contact-line svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--color-terracotta-light);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  padding-top: var(--space-8);
  border-top: 1px solid rgba(248, 241, 231, 0.1);
  font-size: var(--text-xs);
  color: rgba(248, 241, 231, 0.5);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-5);
}

.footer-social {
  display: flex;
  gap: var(--space-3);
}

.footer-social-link {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: rgba(248, 241, 231, 0.08);
  color: var(--color-cream);
  transition: background var(--transition), color var(--transition);
}

.footer-social-link:hover {
  background: var(--color-terracotta);
  color: var(--color-cream);
}

/* Bouton Planity : même style que les icônes sociales, mais largeur auto pour
   accueillir le wordmark « planity » en blanc (crème) à côté des réseaux. */
.footer-social-link--planity {
  width: auto;
  padding: 0 0.875rem;
}

.footer-planity-logo {
  height: 13px;
  width: auto;
  display: block;
}

/* ==========================================================================
   CTA sticky mobile : "Réserver une séance"
   Caché par défaut (desktop). En mobile, apparaît après ~50vh de scroll
   et disparaît quand le footer entre dans le viewport. Géré par main.js
   via la classe .is-visible.
   ========================================================================== */
.cta-sticky-mobile {
  display: none;
}

@media (max-width: 768px) {
  .cta-sticky-mobile {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    left: var(--space-4);
    right: var(--space-4);
    bottom: calc(var(--space-4) + env(safe-area-inset-bottom, 0px));
    padding: var(--space-4) var(--space-6);
    background: var(--color-terracotta);
    color: var(--color-cream);
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-decoration: none;
    border-radius: var(--radius-full);
    box-shadow: 0 12px 32px rgba(58, 47, 42, 0.30);
    z-index: 90;
    transform: translateY(calc(100% + var(--space-6)));
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.25s ease;
  }

  .cta-sticky-mobile.is-visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .cta-sticky-mobile:hover,
  .cta-sticky-mobile:focus-visible {
    color: var(--color-cream);
    background: var(--color-ink);
  }

  /* Respect prefers-reduced-motion : pas d'animation, juste fade. */
  @media (prefers-reduced-motion: reduce) {
    .cta-sticky-mobile {
      transition: opacity 0.2s ease;
      transform: none;
    }
  }
}

/* ==========================================================================
   15. Page Banner / Breadcrumb
   ========================================================================== */
.page-banner {
  padding-top: calc(var(--header-height) + var(--space-12));
  padding-bottom: var(--space-10);
  background: var(--color-cream-dark);
  position: relative;
  overflow: hidden;
}

.page-banner-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: var(--color-ink-light);
  margin-bottom: var(--space-5);
  letter-spacing: 0.04em;
}

.breadcrumb a {
  color: var(--color-ink-soft);
  text-transform: uppercase;
}

.breadcrumb a:hover {
  color: var(--color-terracotta);
}

.breadcrumb-separator {
  color: var(--color-ink-light);
}

.breadcrumb-current {
  text-transform: uppercase;
  color: var(--color-ink);
  font-weight: 600;
}

.page-banner-title {
  margin-bottom: var(--space-4);
}

.page-banner-text {
  font-size: var(--text-lg);
  color: var(--color-text-soft);
  max-width: 560px;
}

/* ==========================================================================
   16. Article / Blog
   ========================================================================== */
.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4);
  font-size: var(--text-xs);
  color: var(--color-ink-light);
  margin-bottom: var(--space-5);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.article-meta-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.article-tag {
  display: inline-block;
  padding: var(--space-1) var(--space-3);
  background: var(--color-terracotta-light);
  color: var(--color-terracotta-dark);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
}

.article-content {
  font-size: var(--text-lg);
  line-height: 1.75;
}

.article-content h2 {
  margin-top: var(--space-10);
  margin-bottom: var(--space-5);
}

.article-content h3 {
  margin-top: var(--space-8);
  margin-bottom: var(--space-4);
}

.article-content p {
  margin-bottom: var(--space-5);
}

.article-content ul,
.article-content ol {
  padding-left: var(--space-6);
  margin-bottom: var(--space-5);
}

.article-content ul li {
  list-style: disc;
  margin-bottom: var(--space-2);
  color: var(--color-text-soft);
}

.article-content ol li {
  list-style: decimal;
  margin-bottom: var(--space-2);
  color: var(--color-text-soft);
}

.article-content a {
  color: var(--color-terracotta);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.article-content a:hover {
  color: var(--color-terracotta-dark);
}

/* Tables responsives dans les articles : scroll horizontal sur mobile
   plutôt que de pousser toute la page hors du viewport. */
.article-content table {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-collapse: collapse;
  margin: var(--space-6) 0;
  font-size: var(--text-sm);
}

.article-content table thead {
  background: var(--color-cream-dark);
}

.article-content table th,
.article-content table td {
  padding: var(--space-3) var(--space-4);
  text-align: left;
  border-bottom: 1px solid var(--color-border);
  white-space: nowrap;
}

.article-content table th {
  font-weight: 600;
  color: var(--color-ink);
  font-family: var(--font-display);
}

.article-content table td:first-child {
  font-weight: 500;
  white-space: normal;
}

.article-card {
  display: flex;
  flex-direction: column;
  background: var(--color-cream);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: transform var(--transition), box-shadow var(--transition);
  height: 100%;
}

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

.article-card-image {
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, var(--color-terracotta-light), var(--color-sage-light));
  position: relative;
  overflow: hidden;
}

.article-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.article-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: var(--space-6);
}

.article-card-title {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-3);
  flex: 0;
}

.article-card-excerpt {
  flex: 1;
  font-size: var(--text-base);
  margin-bottom: var(--space-4);
}

/* ==========================================================================
   17. CTA Banner
   ========================================================================== */
.cta-banner {
  background: var(--color-ink);
  color: var(--color-cream);
  border-radius: var(--radius-xl);
  padding: clamp(var(--space-8), 5vw, var(--space-16));
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--color-terracotta) 0%, transparent 70%);
  opacity: 0.25;
  border-radius: 50%;
}

.cta-banner-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.cta-banner-title {
  color: var(--color-cream);
  margin-bottom: var(--space-5);
}

.cta-banner-text {
  font-size: var(--text-lg);
  color: rgba(248, 241, 231, 0.85);
  margin-bottom: var(--space-8);
}

@media (max-width: 600px) {
  .cta-banner .btn {
    display: flex;
    width: 100%;
    padding: var(--space-4) var(--space-5);
    white-space: normal;
    text-align: center;
  }
}

/* ==========================================================================
   18. Stats / Numbers
   ========================================================================== */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-8);
  padding: var(--space-10) 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

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

.stat-number {
  font-family: var(--font-display);
  font-size: var(--text-5xl);
  line-height: 1;
  font-weight: 500;
  color: var(--color-terracotta);
  margin-bottom: var(--space-2);
}

.stat-label {
  font-size: var(--text-sm);
  color: var(--color-text-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ==========================================================================
   19. Process Steps
   ========================================================================== */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-8);
  position: relative;
}

.step {
  position: relative;
  padding-left: var(--space-10);
}

.step-number {
  position: absolute;
  left: 0;
  top: -8px;
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 500;
  color: var(--color-terracotta);
  line-height: 1;
}

.step-title {
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
}

.step-text {
  font-size: var(--text-base);
}

/* ==========================================================================
   20. Image utilities
   ========================================================================== */
.image-block {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-terracotta-light), var(--color-sage-light));
  position: relative;
}

.image-block img,
.image-block picture {
  width: 100%;
  height: 100%;
  display: block;
}

.image-block img {
  object-fit: cover;
}

.image-block-tall {
  aspect-ratio: 3/4;
}

.image-block-wide {
  aspect-ratio: 4/3;
}

.image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.5);
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-style: italic;
  padding: var(--space-6);
  text-align: center;
}

.image-collage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: var(--space-4);
  aspect-ratio: 1;
}

.image-collage > div:nth-child(1) {
  grid-column: 1;
  grid-row: 1 / span 2;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-6);
}

/* ==========================================================================
   21. Animations
   ========================================================================== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-up {
  opacity: 0;
  animation: fadeUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.fade-up-delay-1 { animation-delay: 0.1s; }
.fade-up-delay-2 { animation-delay: 0.2s; }
.fade-up-delay-3 { animation-delay: 0.3s; }
.fade-up-delay-4 { animation-delay: 0.4s; }

/* Reveal animation : slide-in subtil au scroll. PAS d'opacity:0 par défaut
   pour que le contenu reste lisible même si le JS échoue ou si les
   transitions sont bloquées par le navigateur. */
[data-reveal] {
  transform: translateY(24px);
  transition: transform 0.7s ease;
}

[data-reveal].is-visible {
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    transform: none;
  }
}

/* ==========================================================================
   22. Utilities
   ========================================================================== */
.text-center { text-align: center; }
.text-right { text-align: right; }

.mt-0 { margin-top: 0; }
.mt-2 { margin-top: var(--space-2); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }

.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: var(--space-2); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }

.hide-mobile {
  display: initial;
}

.show-mobile {
  display: none;
}

@media (max-width: 768px) {
  .hide-mobile { display: none; }
  .show-mobile { display: initial; }
}

.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;
}

/* ==========================================================================
   23. Mobile Navigation
   ========================================================================== */
/* Brand area + footer injectés via JS, masqués sur desktop */
.nav-brand-area,
.nav-footer {
  display: none;
}

@media (max-width: 1024px) {
  /* Disable backdrop-filter on header (would trap fixed-position descendants) */
  .site-header {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(248, 241, 231, 0.96);
  }

  /* Lock body scroll + soft backdrop */
  body.nav-is-open {
    overflow: hidden;
  }

  body.nav-is-open::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(58, 47, 42, 0.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 998;
    animation: navBackdropFadeIn 0.4s ease;
  }

  @keyframes navBackdropFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }

  /* Hamburger button */
  .nav-toggle {
    display: flex;
    position: relative;
    z-index: 5;
  }

  /* Menu panel */
  .nav-primary {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(420px, 100vw);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0;
    background:
      radial-gradient(circle at 100% 0%, rgba(201, 154, 134, 0.20) 0%, transparent 45%),
      radial-gradient(circle at 0% 100%, rgba(168, 181, 160, 0.14) 0%, transparent 50%),
      var(--color-cream);
    transform: translateX(100%);
    transition: transform 0.55s cubic-bezier(0.32, 0.72, 0, 1), box-shadow 0.3s ease;
    overflow-y: auto;
    overscroll-behavior: contain;
    z-index: 4;
  }

  .nav-primary[data-open="true"] {
    transform: translateX(0);
    box-shadow: -32px 0 80px rgba(58, 47, 42, 0.22);
  }

  /* Fermeture instantanée lors d'un clic sur un lien : évite que
     l'animation de fermeture (0.55s) se chevauche avec la navigation
     vers la nouvelle page. */
  .nav-primary.nav-no-transition {
    transition: none;
  }

  /* ---------- Brand area (top of menu) ---------- */
  .nav-brand-area {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: calc(var(--header-height) + 1.75rem) 2rem 1.5rem;
    flex-shrink: 0;
    position: relative;
  }

  .nav-brand-area::after {
    content: '';
    position: absolute;
    left: 2rem;
    right: 2rem;
    bottom: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(58, 47, 42, 0.12), transparent);
  }

  .nav-brand-mark {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--color-terracotta);
    color: var(--color-cream);
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.875rem;
    font-weight: 500;
    line-height: 1;
    box-shadow: 0 6px 20px rgba(201, 154, 134, 0.4);
  }

  .nav-brand-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
  }

  .nav-brand-name {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--color-ink);
    line-height: 1;
    letter-spacing: -0.01em;
  }

  .nav-brand-tagline {
    font-family: var(--font-body);
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--color-ink-light);
    line-height: 1;
  }

  /* ---------- Top-level nav links ---------- */
  .nav-primary > .nav-link,
  .nav-primary > .nav-dropdown > .nav-link {
    display: block;
    width: auto;
    margin: 0 2rem;
    padding: 1.125rem 0;
    font-family: var(--font-display);
    font-size: 1.875rem;
    font-weight: 500;
    color: var(--color-ink);
    line-height: 1.15;
    letter-spacing: -0.015em;
    position: relative;
    transition: color 0.25s ease;
  }

  .nav-primary > .nav-link {
    border-bottom: 1px solid rgba(58, 47, 42, 0.08);
  }

  .nav-primary > .nav-link::after,
  .nav-primary > .nav-dropdown > .nav-link::after {
    display: none;
  }

  .nav-primary > .nav-link:hover,
  .nav-primary > .nav-link:focus-visible,
  .nav-primary > .nav-dropdown > .nav-link:hover,
  .nav-primary > .nav-dropdown > .nav-link:focus-visible {
    color: var(--color-terracotta);
  }

  /* Active state: graceful underline */
  .nav-primary > .nav-link[aria-current="page"],
  .nav-primary > .nav-dropdown > .nav-link[aria-current="page"] {
    color: var(--color-terracotta);
    font-style: italic;
  }

  .nav-primary > .nav-link[aria-current="page"]::before,
  .nav-primary > .nav-dropdown > .nav-link[aria-current="page"]::before {
    content: '';
    position: absolute;
    left: -1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 24px;
    border-radius: 2px;
    background: var(--color-terracotta);
  }

  /* ---------- Dropdown groups ---------- */
  .nav-dropdown {
    border-bottom: 1px solid rgba(58, 47, 42, 0.08);
    padding-bottom: 0.5rem;
  }

  /* Dropdown sub-menu : no box, delicate vertical hairline on the left */
  .nav-dropdown-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0.25rem 0 0.75rem;
    margin: 0 2rem 0 calc(2rem + 1rem);
    min-width: 0;
    border-left: 1px solid rgba(201, 154, 134, 0.35);
    padding-left: 1.25rem;
  }

  .nav-dropdown-menu .nav-link {
    display: block;
    width: 100%;
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-style: italic;
    font-weight: 400;
    color: var(--color-ink-soft);
    padding: 0.625rem 0;
    border-bottom: none;
    letter-spacing: 0;
    line-height: 1.3;
    transition: color 0.2s ease;
  }

  .nav-dropdown-menu .nav-link::after {
    display: none;
  }

  .nav-dropdown-menu .nav-link:hover,
  .nav-dropdown-menu .nav-link:focus-visible {
    color: var(--color-terracotta);
  }

  .nav-dropdown-menu .nav-link[aria-current="page"] {
    color: var(--color-terracotta);
    font-style: italic;
  }

  /* ---------- CTA button ---------- */
  .nav-cta-mobile {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 1.75rem 2rem 0;
    padding: 1.125rem 2rem;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: none;
    border-radius: 999px;
    background: var(--color-ink);
    color: var(--color-cream);
    box-shadow: 0 12px 32px rgba(58, 47, 42, 0.25);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
  }

  .nav-cta-mobile:hover,
  .nav-cta-mobile:focus-visible {
    color: var(--color-cream);
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(58, 47, 42, 0.32);
  }

  /* ---------- Footer (contact + social) ---------- */
  .nav-footer {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    margin-top: auto;
    padding: 2rem 2rem 1.75rem;
    flex-shrink: 0;
    position: relative;
  }

  .nav-footer::before {
    content: '';
    position: absolute;
    left: 2rem;
    right: 2rem;
    top: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(58, 47, 42, 0.12), transparent);
  }

  .nav-footer-link {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-family: var(--font-body);
    font-size: 0.8125rem;
    color: var(--color-ink-soft);
    transition: color 0.2s ease;
  }

  .nav-footer-link:hover,
  .nav-footer-link:focus-visible {
    color: var(--color-terracotta);
  }

  .nav-footer-link svg {
    flex-shrink: 0;
    color: var(--color-terracotta);
    opacity: 0.7;
  }

  .nav-footer-social {
    display: flex;
    gap: 0.625rem;
    margin-top: 0.25rem;
  }

  .nav-footer-social a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(201, 154, 134, 0.15);
    color: var(--color-terracotta-dark);
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
  }

  .nav-footer-social a:hover,
  .nav-footer-social a:focus-visible {
    background: var(--color-terracotta);
    color: var(--color-cream);
    transform: translateY(-2px);
  }

  /* Show injected elements on mobile only */
  .nav-brand-area,
  .nav-footer {
    display: flex;
  }
}

/* Très petits écrans : ajustements typographiques */
@media (max-width: 480px) {
  .nav-primary {
    width: 100%;
    max-width: 100vw;
  }

  .nav-primary > .nav-link,
  .nav-primary > .nav-dropdown > .nav-link {
    font-size: 1.625rem;
  }

  .nav-dropdown-menu .nav-link {
    font-size: 1.0625rem;
  }

  .nav-dropdown-menu {
    min-width: 0;
  }
}

/* ==========================================================================
   24. Hero responsive
   ========================================================================== */
@media (max-width: 768px) {
  .hero-content {
    max-width: 100%;
  }

  .hero-title {
    font-size: clamp(1.875rem, 7.5vw, 2.5rem);
    margin-bottom: var(--space-4);
  }

  .hero-lead {
    font-size: var(--text-base);
    margin-bottom: var(--space-6);
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-3);
    margin-bottom: var(--space-6);
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  /* Meta hidden on mobile — surfaced as a strip below the hero instead */
  .hero-meta {
    display: none;
  }

  .hero::after {
    display: none;
  }

  /* Stronger bottom blackout on mobile so text always reads clearly */
  .hero-image::before {
    background:
      linear-gradient(
        180deg,
        rgba(58, 47, 42, 0.30) 0%,
        rgba(58, 47, 42, 0) 18%,
        rgba(58, 47, 42, 0) 42%,
        rgba(58, 47, 42, 0.75) 65%,
        rgba(58, 47, 42, 0.94) 85%,
        rgba(58, 47, 42, 0.98) 100%
      );
  }
}

/* Laptops avec écran 13"-14" : hero compacté pour tenir dans la hauteur du viewport */
@media (min-width: 769px) and (max-height: 850px) {
  .hero-title {
    font-size: clamp(1.875rem, 3.6vw, 2.75rem);
    margin-bottom: var(--space-4);
  }

  .hero-content .eyebrow {
    margin-bottom: var(--space-3);
  }

  .hero-lead {
    font-size: var(--text-base);
    margin-bottom: var(--space-5);
  }

  .hero-actions {
    margin-bottom: var(--space-5);
  }

  .hero-meta {
    padding-top: var(--space-3);
    margin-top: var(--space-2);
    gap: var(--space-3) var(--space-6);
  }

  .hero > .container-wide {
    padding-bottom: clamp(var(--space-5), 4vh, var(--space-10));
  }
}

/* Largeurs intermédiaires (tablettes paysage / petits laptops) — titre encore réduit */
@media (min-width: 769px) and (max-width: 1100px) {
  .hero-title {
    font-size: clamp(1.875rem, 4vw, 3rem);
  }
}

/* ==========================================================================
   25. Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   26. Print
   ========================================================================== */
@media print {
  .site-header, .site-footer, .nav-toggle, .btn { display: none; }
  body { color: black; background: white; }
}
