/* ==========================================================================
   Rise & Align by Clem — feuille de style principale
   Design system : design-system/rise-and-align/MASTER.md
   CSS natif, mobile d'abord. Aucun framework, aucune étape de build.
   ========================================================================== */

/* ---------- Polices auto-hébergées (SIL OFL) ---------- */

/* Titres : Mazius Display (Alberto Casagrande, Collletttivo, SIL OFL) — test branche test-mazius.
   L'Extra Italic est déclarée comme style « italic » de la famille, la Regular comme style « normal ». */
@font-face {
  font-family: "Mazius Display";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/mazius-display-extraitalic-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Mazius Display";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/mazius-display-regular-latin.woff2") format("woff2");
}

/* Lora : conservée pour revenir en arrière. Déclarée mais utilisée nulle part,
   donc jamais téléchargée (voir --font-heading-lora). */
@font-face {
  font-family: "Lora";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/lora-variable-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Lora";
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/lora-italic-variable-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Raleway";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/raleway-variable-latin.woff2") format("woff2");
}

/* ---------- Variables ---------- */
:root {
  /* Couleurs */
  --color-bg: #fbf7f2;
  --color-surface: #ffffff;
  --color-nude: #f4e7dc;
  --color-blush: #efd5c6;
  --color-sand: #d4a373;
  --color-terracotta-soft: #cd7d59;
  --color-terracotta: #a4553a;
  --color-terracotta-dark: #8a4430;
  --color-link: #8a4430;
  --color-link-hover: #6f3524;
  --color-text: #3b2a22;
  --color-text-muted: #6a5246;
  --color-slate: #55657a;
  --color-border: #e6d3c4;
  --color-ring: #8a4430;

  /* Fond animé (Grainient) */
  --grain-1: #fbf7f2;
  --grain-2: #ebc9b5;
  --grain-3: #f3e3d6;

  /* Voiles de section et verre dépoli */
  --veil: rgba(251, 247, 242, 0.35);
  --veil-nude: rgba(244, 231, 220, 0.5);
  --glass-bg: rgba(255, 255, 255, 0.6);
  --glass-bg-fallback: rgba(255, 255, 255, 0.92);
  --glass-border: rgba(255, 255, 255, 0.75);
  --glass-blur: 16px;
  --glass-shadow: 0 10px 32px -14px rgba(59, 42, 34, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.7);

  /* Typographie */
  --font-heading: "Mazius Display", Georgia, "Times New Roman", serif;
  /* Retour à Lora : remplacer --font-heading par cette valeur et rétablir les styles d'origine */
  --font-heading-lora: "Lora", Georgia, "Times New Roman", serif;
  --font-body: "Raleway", "Helvetica Neue", Arial, sans-serif;
  --fs-body: 1.0625rem;
  --fs-small: 0.9375rem;
  --fs-eyebrow: 0.8125rem;
  /* Mazius : corps réduits de 15 % après test (H1 37–68 px, H2 30–48 px, H3 19 px) */
  --fs-h1: clamp(2.35rem, 1.6rem + 3.6vw, 4.25rem);
  --fs-h2: clamp(1.9rem, 1.45rem + 2.2vw, 3rem);
  --fs-h3: 1.1875rem;
  --lh-body: 1.7;
  --lh-heading: 1.1;

  /* Espacements (densité 3/10 — aéré) */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;
  --section-pad: clamp(var(--space-2xl), 10vw, 7.5rem);
  --gutter: clamp(1rem, 4vw, 2rem);
  --container: 75rem;

  /* Formes */
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --radius-organic: 48% 52% 40% 60% / 55% 45% 55% 45%;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(59, 42, 34, 0.06);
  --shadow-md: 0 8px 24px -12px rgba(59, 42, 34, 0.18);
  --shadow-lg: 0 24px 48px -24px rgba(59, 42, 34, 0.28);

  /* Mouvement */
  --duration: 200ms;
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-zen: cubic-bezier(0.22, 1, 0.36, 1);
  --reveal-distance: 28px;

  /* Couches */
  --z-header: 100;
  --header-h: 4.5rem;
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 400;
  /* Pas de faux gras ni de fausse italique générés par le navigateur */
  font-synthesis: none;
  line-height: var(--lh-heading);
  color: var(--color-text);
  text-wrap: balance;
}

/* H1 seul en Mazius Display Extra Italic : hiérarchie plus calme */
h1 {
  font-style: italic;
}

h1 {
  font-size: var(--fs-h1);
  letter-spacing: -0.01em;
}

/* H2, H3 et titres plus petits : Mazius Display Regular */
h2 {
  font-size: var(--fs-h2);
  font-style: normal;
  letter-spacing: -0.005em;
}

h3 {
  font-size: var(--fs-h3);
  font-style: normal;
  line-height: 1.2;
  letter-spacing: 0.005em;
}

p {
  margin: 0;
}

a {
  color: var(--color-link);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color var(--duration) var(--ease);
}

a:hover {
  color: var(--color-link-hover);
}

:focus-visible {
  outline: 3px solid var(--color-ring);
  outline-offset: 3px;
  border-radius: 4px;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

address {
  font-style: normal;
}

.nowrap {
  white-space: nowrap;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 1000;
  padding: 0.75rem 1.25rem;
  background: var(--color-text);
  color: var(--color-bg);
  border-radius: var(--radius-pill);
  font-weight: 600;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
  color: var(--color-bg);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--section-pad);
}

/* ---------- Fond animé ---------- */
.grainient {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  /* Repli statique (avant chargement, sans WebGL2 ou sans JS) */
  background:
    radial-gradient(60% 50% at 20% 15%, var(--grain-2) 0%, transparent 70%),
    radial-gradient(55% 45% at 85% 60%, var(--grain-3) 0%, transparent 70%),
    radial-gradient(50% 40% at 30% 90%, var(--grain-2) 0%, transparent 70%),
    var(--grain-1);
}

/* Sections : voile léger pour laisser passer le fond tout en garantissant la lisibilité */
.section {
  background: var(--veil);
}

.section--nude {
  background: var(--veil-nude);
}

/* Section qui suit un bloc déjà espacé sur le même fond */
.section--flush-top {
  padding-top: 0;
}

.icon {
  width: 1.25em;
  height: 1.25em;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Typo utilitaires ---------- */
/* Accroche : texte seul, sans tiret ni filet décoratif (règle de marque) */
.eyebrow {
  display: block;
  margin-bottom: var(--space-md);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-link);
}

.prose {
  max-width: 62ch;
  color: var(--color-text-muted);
}

.prose > * + * {
  margin-top: 1.1em;
}

.section-head {
  max-width: 44rem;
  margin-bottom: var(--space-xl);
}

.section-head__text {
  margin-top: var(--space-md);
}

/* En-tête de section seul dans son bloc (texte sans composant à la suite) */
.section-head:last-child {
  margin-bottom: 0;
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 48px;
  padding: 0.875rem 1.75rem;
  border: 1.5px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color var(--duration) var(--ease), color var(--duration) var(--ease),
    border-color var(--duration) var(--ease);
}

.btn .icon {
  width: 1.1em;
  height: 1.1em;
  transition: transform var(--duration) var(--ease);
}

.btn:hover .icon {
  transform: translateX(3px);
}

.btn--primary {
  background: var(--color-terracotta);
  color: #fff;
}

.btn--primary:hover {
  background: var(--color-terracotta-dark);
  color: #fff;
}

.btn--secondary {
  background: transparent;
  border-color: var(--color-text);
  color: var(--color-text);
}

.btn--secondary:hover {
  background: var(--color-text);
  color: var(--color-bg);
}

/* ---------- En-tête ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: rgba(251, 247, 242, 0.96);
  border-bottom: 1px solid transparent;
  transition: background-color 400ms var(--ease), border-color 400ms var(--ease), box-shadow 400ms var(--ease);
}

@supports (backdrop-filter: blur(8px)) {
  .site-header {
    background: rgba(251, 247, 242, 0.88);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }
}

.js .site-header:not(.is-scrolled):not(:has(.site-nav.is-open)) {
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.site-header.is-scrolled {
  border-bottom-color: var(--color-border);
  box-shadow: var(--shadow-sm);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--color-text);
  text-decoration: none;
}

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

.brand__mark {
  width: 48px;
  height: auto;
}

.brand__name {
  display: flex;
  flex-direction: column;
  font-family: var(--font-heading);
  font-size: 1.375rem;
  font-weight: 400;
  font-synthesis: none;
  line-height: 1.05;
}

.brand__by {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-slate);
}

/* Bouton du menu mobile */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 48px;
  min-width: 48px;
  padding: 0.5rem 1rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  color: var(--color-text);
  font: 600 0.9375rem/1 var(--font-body);
  cursor: pointer;
}

.nav-toggle .icon--close {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon--open {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon--close {
  display: block;
}

/* Navigation — mobile (panneau déroulant) */
.site-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: calc(100dvh - var(--header-h));
  overflow-y: auto;
  padding: var(--space-md) var(--gutter) var(--space-lg);
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
}

.js .site-nav:not(.is-open) {
  display: none;
}

.site-nav.is-open {
  animation: nav-in var(--duration) var(--ease);
}

@keyframes nav-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
}

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

.nav-list > li {
  border-bottom: 1px solid var(--color-border);
}

.nav-list > li:last-child {
  border-bottom: 0;
  padding-top: var(--space-md);
}

.nav-link {
  display: flex;
  align-items: center;
  min-height: 52px;
  color: var(--color-text);
  font-weight: 500;
  text-decoration: none;
}

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

.nav-link[aria-current="page"] {
  font-weight: 700;
}

.nav-item--parent {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
}

.submenu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--color-text);
  cursor: pointer;
}

.submenu-toggle .icon {
  transition: transform var(--duration) var(--ease);
}

.submenu-toggle[aria-expanded="true"] .icon {
  transform: rotate(180deg);
}

.submenu {
  grid-column: 1 / -1;
  padding: 0 0 var(--space-sm) var(--space-md);
}

.js .submenu:not(.is-open) {
  display: none;
}

.submenu a {
  display: flex;
  align-items: center;
  min-height: 44px;
  color: var(--color-text-muted);
  text-decoration: none;
}

.submenu a:hover {
  color: var(--color-link);
}

.submenu a[aria-current="page"] {
  color: var(--color-link);
  font-weight: 700;
}

.nav-cta {
  width: 100%;
}

/* Navigation — bureau */
@media (min-width: 960px) {
  .nav-toggle {
    display: none;
  }

  .site-nav,
  .js .site-nav:not(.is-open) {
    position: static;
    display: block;
    max-height: none;
    overflow: visible;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
    animation: none;
  }

  .nav-list {
    flex-direction: row;
    align-items: center;
    gap: var(--space-lg);
  }

  .nav-list > li,
  .nav-list > li:last-child {
    border: 0;
    padding: 0;
  }

  .nav-list > li:last-child {
    margin-left: var(--space-sm);
  }

  .nav-link {
    min-height: 44px;
    position: relative;
  }

  .nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 8px;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--duration) var(--ease);
  }

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

  .nav-item--parent {
    position: relative;
    display: flex;
    gap: 0.125rem;
  }

  .submenu-toggle {
    width: 32px;
    height: 32px;
  }

  .submenu,
  .js .submenu:not(.is-open) {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: -1.25rem;
    display: block;
    min-width: 15rem;
    padding: var(--space-sm);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity var(--duration) var(--ease), transform var(--duration) var(--ease),
      visibility 0s linear var(--duration);
  }

  /* Pont invisible pour ne pas perdre le survol entre le lien et le sous-menu */
  .submenu::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -0.75rem;
    height: 0.75rem;
  }

  .nav-item--parent:hover .submenu,
  .submenu.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition-delay: 0s;
  }

  .submenu a {
    padding-inline: 0.75rem;
    border-radius: 8px;
    color: var(--color-text);
  }

  .submenu a:hover {
    background: var(--color-nude);
    color: var(--color-text);
  }

  .nav-cta {
    width: auto;
    min-height: 44px;
    padding: 0.7rem 1.4rem;
  }
}

/* ---------- Hero plein écran ---------- */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: 100vh;
  min-height: 100svh;
  /* Le hero passe sous l'en-tête collant pour occuper tout l'écran */
  margin-top: calc(-1 * var(--header-h));
  /* Mobile : la photo reste visible en haut, le texte s'installe en bas */
  padding-top: calc(var(--header-h) + 40svh);
  padding-bottom: var(--space-2xl);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0 0 auto;
  /* Mobile : photo limitée au haut de l'écran pour éviter un recadrage trop serré */
  height: 72svh;
  z-index: -2;
  translate: 0 var(--hero-shift, 0px);
  /* Fondu du bas de la photo dans le fond animé */
  -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 70%, transparent 100%);
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Cadrage réglable par page : style="--hero-pos: …; --hero-pos-lg: …" sur .hero__bg */
  object-position: var(--hero-pos, 74% 30%);
}

/* Voile crème : garantit le contraste du texte au-dessus de la photo */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(251, 247, 242, 0) calc(var(--header-h) + 18svh),
    rgba(251, 247, 242, 0.9) calc(var(--header-h) + 38svh),
    rgba(251, 247, 242, 0.96) calc(var(--header-h) + 50svh)
  );
}

/* Photo chargée : bande crème sous l'en-tête transparent pour garder logo et menu lisibles */
.hero--veil-strong::after {
  background:
    linear-gradient(
      to bottom,
      rgba(251, 247, 242, 0.85) 0,
      rgba(251, 247, 242, 0) calc(var(--header-h) + 3rem)
    ),
    linear-gradient(
      to bottom,
      rgba(251, 247, 242, 0) calc(var(--header-h) + 18svh),
      rgba(251, 247, 242, 0.9) calc(var(--header-h) + 38svh),
      rgba(251, 247, 242, 0.96) calc(var(--header-h) + 50svh)
    );
}

.hero__inner {
  width: 100%;
}

.hero__text {
  max-width: 40rem;
}

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

.hero__lead {
  max-width: 62ch;
  margin-bottom: var(--space-md);
  font-size: 1.0625rem;
  color: var(--color-text-muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: var(--space-lg);
}

@media (min-width: 1024px) {
  .hero {
    align-items: center;
    padding-top: calc(var(--header-h) + var(--space-xl));
    padding-bottom: var(--space-3xl);
  }

  .hero__bg {
    inset: 0;
    height: auto;
    -webkit-mask-image: linear-gradient(to bottom, #000 82%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 82%, transparent 100%);
  }

  .hero__bg img {
    object-position: var(--hero-pos-lg, 70% 50%);
  }

  .hero::after {
    background: linear-gradient(
      90deg,
      rgba(251, 247, 242, 0.94) 0%,
      rgba(251, 247, 242, 0.85) 36%,
      rgba(251, 247, 242, 0.5) 54%,
      rgba(251, 247, 242, 0) 68%
    );
  }

  /* Photo chargée derrière la colonne de texte : voile plus couvrant (bande crème conservée) */
  .hero--veil-strong::after {
    background:
      linear-gradient(
        to bottom,
        rgba(251, 247, 242, 0.85) 0,
        rgba(251, 247, 242, 0) calc(var(--header-h) + 3rem)
      ),
      linear-gradient(
        90deg,
        rgba(251, 247, 242, 0.95) 0%,
        rgba(251, 247, 242, 0.9) 52%,
        rgba(251, 247, 242, 0.55) 62%,
        rgba(251, 247, 242, 0) 74%
      );
  }

  .hero__text {
    max-width: min(40rem, 46vw);
  }

  .hero__lead {
    font-size: 1.125rem;
  }
}

/* ---------- Blocs texte + image ---------- */
.split {
  display: grid;
  gap: var(--space-xl);
  align-items: center;
}

.split__media {
  position: relative;
  max-width: 28rem;
  margin-inline: auto;
  width: 100%;
}

.split__media::before {
  content: "";
  position: absolute;
  inset: auto -1.5rem -1.5rem auto;
  width: 70%;
  aspect-ratio: 1;
  background: var(--color-blush);
  border-radius: var(--radius-organic);
  z-index: 0;
}

.section--nude .split__media::before {
  background: var(--color-bg);
}

.split__media img {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 200px 200px var(--radius-lg) var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.split__text h1,
.split__text h2 {
  margin-bottom: var(--space-md);
}

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

.split__text .prose:last-child {
  margin-bottom: 0;
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: 5fr 6fr;
    gap: clamp(var(--space-xl), 7vw, 7rem);
  }

  .split--reverse .split__media {
    order: 2;
  }

  .split__media {
    max-width: none;
  }

  .split__media::before {
    inset: auto -2rem -2rem auto;
  }

  .split--reverse .split__media::before {
    inset: auto auto -2rem -2rem;
  }
}

/* ---------- Services ---------- */
.cards {
  display: grid;
  gap: var(--space-md);
}

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

  /* Tablette : la 3e carte occupe toute la largeur plutôt que de rester seule */
  .cards--3 > :last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1024px) {
  .cards--3 {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
  }

  .cards--3 > :last-child:nth-child(odd) {
    grid-column: auto;
  }
}

/* Deux colonnes dès la tablette (4 cartes sans bouton : 2 × 2) */
@media (min-width: 768px) {
  .cards--2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .cards--2 {
    gap: var(--space-lg);
  }
}

/* Cinq cartes : 2 colonnes (la 5e en pleine largeur), puis 3 + 2 plus larges */
@media (min-width: 768px) {
  .cards--5 {
    grid-template-columns: repeat(2, 1fr);
  }

  .cards--5 > :last-child {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1024px) {
  .cards--5 {
    grid-template-columns: repeat(6, 1fr);
    gap: var(--space-lg);
  }

  .cards--5 > * {
    grid-column: span 2;
  }

  .cards--5 > :nth-child(n+4) {
    grid-column: span 3;
  }
}

.card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: var(--space-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.card__icon {
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  margin-bottom: var(--space-md);
  background: var(--color-nude);
  border-radius: var(--radius-organic);
  color: var(--color-terracotta);
}

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

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

.card p {
  margin-bottom: var(--space-lg);
  color: var(--color-text-muted);
}

.card .btn {
  margin-top: auto;
}

/* Repères d'une offre (page Services) : pour qui, ce qu'on travaille, lieu */
.card__facts {
  display: grid;
  gap: 0.75rem;
  width: 100%;
  margin: 0 0 var(--space-lg);
}

.card__facts dt {
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-link);
}

.card__facts dd {
  margin: 0.15rem 0 0;
  color: var(--color-text);
}

.card__facts:last-child {
  margin-bottom: 0;
}

.card__link {
  display: inline-block;
  padding-block: 0.4rem;
  color: var(--color-text);
  font-weight: 600;
  overflow-wrap: anywhere;
}

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

/* ---------- Avis ---------- */
.rating-badge {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1.25rem;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto var(--space-xl);
  padding: 0.75rem 1.5rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
}

.rating-badge__score {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
}

/* Mobile : badge empilé (étoiles, note, lien) pour éviter une coupure de ligne au milieu de la note */
@media (max-width: 639px) {
  .rating-badge {
    flex-direction: column;
    gap: 0.25rem;
    border-radius: var(--radius-md);
    text-align: center;
  }

  .rating-badge__score {
    flex-direction: column;
    gap: 0.4rem;
  }
}

.rating-badge a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 44px;
  font-weight: 600;
}

.rating-badge a .icon {
  width: 1em;
  height: 1em;
}

.stars {
  display: inline-flex;
  gap: 2px;
  color: var(--color-terracotta);
}

.stars svg {
  width: 1.05rem;
  height: 1.05rem;
  fill: currentColor;
}

.reviews {
  display: grid;
  gap: var(--space-md);
  align-items: start;
}

@media (min-width: 900px) {
  .reviews {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
  }
}

.review {
  position: relative;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: var(--space-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.review__quote-mark {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  width: 2.5rem;
  height: 2.5rem;
  color: var(--color-blush);
}

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

.review blockquote {
  margin: 0;
  color: var(--color-text);
}

.review__text.is-clamped {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  overflow: hidden;
}

.review__toggle {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 44px;
  margin-top: var(--space-xs);
  padding: 0;
  border: 0;
  background: none;
  color: var(--color-link);
  font: 600 var(--fs-small) / 1.2 var(--font-body);
  text-decoration: underline;
  text-underline-offset: 0.25em;
  cursor: pointer;
}

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

.review__toggle .icon {
  width: 1em;
  height: 1em;
  transition: transform var(--duration) var(--ease);
}

.review__toggle[aria-expanded="true"] .icon {
  transform: rotate(180deg);
}

.review figcaption {
  display: flex;
  flex-direction: column;
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-border);
}

.review__name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 400;
  font-synthesis: none;
}

.review__source {
  font-size: var(--fs-small);
  color: var(--color-slate);
}

/* ---------- Réservation ---------- */
.booking {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(var(--space-xl), 7vw, 5rem) clamp(var(--space-md), 6vw, 5rem);
  background: rgba(239, 213, 198, 0.6);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(140%);
  backdrop-filter: blur(var(--glass-blur)) saturate(140%);
  border-radius: var(--radius-lg);
  text-align: center;
}

.booking::before,
.booking::after {
  content: "";
  position: absolute;
  border-radius: var(--radius-organic);
  background: rgba(255, 255, 255, 0.35);
}

.booking::before {
  width: 16rem;
  aspect-ratio: 1;
  top: -6rem;
  left: -5rem;
}

.booking::after {
  width: 12rem;
  aspect-ratio: 1;
  bottom: -5rem;
  right: -3rem;
}

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

.booking h2 {
  max-width: 36rem;
  margin: 0 auto var(--space-md);
}

.booking__text {
  max-width: 38rem;
  margin: 0 auto var(--space-lg);
  color: var(--color-text);
}

.input {
  width: 100%;
  min-height: 52px;
  padding: 0.75rem 1.5rem;
  border: 1.5px solid var(--color-text-muted);
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  color: var(--color-text);
  font: 400 1rem/1.4 var(--font-body);
}

.input::placeholder {
  color: var(--color-text-muted);
  opacity: 1;
}

/* ---------- Pages légales (mentions, confidentialité) ---------- */
.legal {
  max-width: 46rem;
}

.legal h2 {
  margin-top: var(--space-xl);
  margin-bottom: var(--space-sm);
  font-size: clamp(1.5rem, 1.3rem + 1vw, 2rem);
}

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

.legal__date {
  margin-top: var(--space-xl);
  font-size: 0.9375rem;
}

/* ---------- Formulaire (page Contact) ---------- */
.form {
  display: grid;
  gap: var(--space-md);
  max-width: 48rem;
}

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

  .form__field--full {
    grid-column: 1 / -1;
  }
}

.form__field {
  display: grid;
  gap: 0.45rem;
  align-content: start;
}

.form__label {
  font-weight: 600;
  color: var(--color-text);
}

.form__optional {
  font-weight: 400;
  color: var(--color-text-muted);
}

.form__hint {
  margin-top: -0.2rem;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}

.input--area {
  min-height: 10rem;
  padding: 0.875rem 1.25rem;
  border-radius: var(--radius-md);
  resize: vertical;
}

.input--select {
  appearance: none;
  padding-right: 3rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A4553A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.25rem center;
  background-size: 1.1rem;
  cursor: pointer;
}

.form__consent {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  color: var(--color-text-muted);
}

.form__consent input {
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.2rem;
  accent-color: var(--color-terracotta);
}

.form__status {
  padding: var(--space-md);
  border-radius: var(--radius-md);
  background: var(--color-nude);
  color: var(--color-text);
  font-weight: 600;
}

.form__status--error {
  background: var(--color-surface);
  border: 1.5px solid var(--color-terracotta);
}

/* Retour sans JavaScript : /contact/#envoi-ok ou #envoi-erreur affiche le message ciblé */
.form__status:target {
  display: block;
}

.form__turnstile {
  min-height: 65px;
}

.form > noscript {
  grid-column: 1 / -1;
}

/* ---------- Liste « fait pour vous si » ---------- */
.checklist {
  display: grid;
  gap: 0.9rem;
  margin-top: var(--space-md);
  color: var(--color-text-muted);
}

.checklist li {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.checklist strong {
  color: var(--color-text);
  font-weight: 600;
}

.checklist .icon {
  width: 1.5rem;
  height: 1.5rem;
  padding: 0.25rem;
  margin-top: 0.1rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.75);
  color: var(--color-terracotta);
}

/* ---------- Étapes du premier rendez-vous ---------- */
.steps {
  display: grid;
  gap: var(--space-md);
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 768px) {
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Trois étapes : trois colonnes dès la tablette */
@media (min-width: 768px) {
  .steps--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Cinq étapes : même logique que .cards--5 */
@media (min-width: 768px) {
  .steps--5 > :last-child {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1100px) {
  .steps--5 {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .steps--5 > * {
    grid-column: span 2;
  }

  .steps--5 > :nth-child(n+4) {
    grid-column: span 3;
  }
}

.step {
  padding: var(--space-lg);
  border-radius: var(--radius-md);
}

.step__num {
  display: block;
  margin-bottom: var(--space-sm);
  font-family: var(--font-heading);
  font-style: italic;
  font-synthesis: none;
  font-size: 2.75rem;
  line-height: 1;
  color: var(--color-terracotta);
}

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

.step strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--color-text);
  font-weight: 600;
}

/* ---------- Lieux des séances ---------- */
.places {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  max-width: 52rem;
  margin-inline: auto;
  padding: clamp(var(--space-lg), 5vw, var(--space-xl));
  border-radius: var(--radius-lg);
}

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

.places__body {
  flex: 1;
  min-width: 0;
}

/* Carte Google Maps : emplacement réservé, iframe chargée au clic (main.js) */
.map {
  display: grid;
  place-items: center;
  align-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
  aspect-ratio: 16 / 10;
  padding: var(--space-md);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--glass-border);
  text-align: center;
}

.map.is-loaded {
  display: block;
  padding: 0;
  overflow: hidden;
}

.map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.map__note {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.map__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  margin-top: var(--space-sm);
  color: var(--color-link);
  font-weight: 600;
}

.places .card__icon {
  margin-bottom: 0;
}

@media (min-width: 768px) {
  .places {
    flex-direction: row;
    align-items: flex-start;
    gap: var(--space-lg);
  }
}

/* ---------- FAQ ---------- */
.faq {
  display: grid;
  gap: var(--space-md);
  max-width: 48rem;
  margin-inline: auto;
}

.faq__item {
  border-radius: var(--radius-md);
}

.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  min-height: 48px;
  padding: var(--space-md) var(--space-lg);
  cursor: pointer;
  list-style: none;
  border-radius: var(--radius-md);
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item summary h3 {
  font-size: 1.25rem;
}

.faq__icon {
  width: 1.4rem;
  height: 1.4rem;
  color: var(--color-terracotta);
  transition: transform var(--duration) var(--ease);
}

.faq__item[open] .faq__icon {
  transform: rotate(180deg);
}

.faq__answer {
  padding: 0 var(--space-lg) var(--space-lg);
  color: var(--color-text-muted);
}

/* ---------- Appel à l'action final : coordonnées ---------- */
.booking__contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.75rem;
  margin-top: var(--space-lg);
}

.booking__contact li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.booking__contact .icon {
  color: var(--color-terracotta);
}

.booking__contact a {
  display: inline-block;
  padding-block: 0.6rem;
  color: var(--color-text);
  font-weight: 600;
  overflow-wrap: break-word;
}

@media (max-width: 479px) {
  .booking__contact {
    flex-direction: column;
    align-items: center;
    gap: 0;
  }

  .booking__contact a {
    font-size: var(--fs-small);
  }
}

/* Horaires (alignés sur la fiche Google) */
.hours {
  display: grid;
  gap: 0.35rem;
  margin: var(--space-sm) 0 0;
  font-size: var(--fs-small);
}

.hours > div {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
}

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

.hours dd {
  margin: 0;
  font-weight: 600;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.hours--footer {
  margin-top: 0;
  max-width: 16rem;
}

.hours--footer dd {
  font-weight: 500;
}

/* ---------- Pied de page ---------- */
.site-footer {
  padding-top: var(--space-2xl);
  background: rgba(244, 231, 220, 0.72);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: var(--color-text);
  font-size: var(--fs-small);
}

.footer-grid {
  display: grid;
  gap: var(--space-xl);
  padding-bottom: var(--space-xl);
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1.4fr 1.25fr 0.8fr;
    gap: var(--space-lg);
  }
}

.footer-logo {
  width: 120px;
}

.footer-title {
  margin-bottom: var(--space-md);
  font-family: var(--font-body);
  font-style: normal;
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-link);
}

.footer-list li + li {
  margin-top: 0.75rem;
}

.footer-list li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  color: var(--color-text-muted);
}

.footer-list .icon {
  margin-top: 0.2em;
  color: var(--color-terracotta);
}

.site-footer a {
  color: var(--color-text);
  overflow-wrap: anywhere;
}

.site-footer a:hover {
  color: var(--color-link);
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  font-weight: 600;
}

.social-link .icon {
  color: var(--color-terracotta);
}

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

.footer-legal a {
  display: inline-block;
  padding-block: 0.6rem;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  padding-block: var(--space-md);
  border-top: 1px solid var(--color-border);
  color: var(--color-text-muted);
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* ---------- Verre dépoli (glassmorphism) ---------- */
.card,
.review,
.rating-badge,
.step,
.places,
.faq__item {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(140%);
  backdrop-filter: blur(var(--glass-blur)) saturate(140%);
}

@media (max-width: 767px) {
  :root {
    --glass-blur: 10px;
  }
}

/* Navigateurs sans backdrop-filter : verre plus opaque pour rester lisible */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .card,
  .review,
  .rating-badge,
  .step,
  .places,
  .faq__item {
    background: var(--glass-bg-fallback);
  }

  .booking {
    background: var(--color-blush);
  }

  .site-footer {
    background: var(--color-nude);
  }
}

/* ---------- Animations d'entrée et de sortie (douces, « zen ») ---------- */
@media (prefers-reduced-motion: no-preference) {
  /* Hero : la photo « respire » à l'ouverture, le texte monte en douceur */
  .hero__bg img {
    animation: hero-breathe 2.8s var(--ease-zen) both;
  }

  .hero__item {
    animation: rise-in 1.2s var(--ease-zen) both;
    animation-delay: calc(0.25s + var(--i, 0) * 0.14s);
  }

  /* Défilement : apparition à l'entrée, disparition à la sortie (plus rapide) */
  .reveal-ready [data-reveal] {
    opacity: 0;
    translate: 0 var(--reveal-distance);
    transition:
      opacity 0.7s var(--ease-zen),
      translate 0.7s var(--ease-zen),
      scale 0.7s var(--ease-zen);
  }

  .reveal-ready [data-reveal="soft-zoom"] {
    scale: 0.97;
  }

  /* Élément sorti par le haut : il repart vers le haut */
  .reveal-ready [data-reveal].is-above {
    translate: 0 calc(-1 * var(--reveal-distance));
  }

  .reveal-ready [data-reveal].is-visible {
    opacity: 1;
    translate: 0 0;
    scale: 1;
    transition-duration: 1.1s, 1.3s, 1.4s;
    transition-delay: calc(var(--i, 0) * 110ms);
  }
}

@keyframes hero-breathe {
  from {
    transform: scale(1.08);
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    translate: 0 22px;
  }
}

/* ---------- Mouvement réduit ---------- */
@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;
  }
}
