/* ==========================================================================
   CRKN — Cédric Rouxhet, kinésithérapeute
   Design system : tokens, primitives, composants
   Palette dérivée du logo : bleu profond, bleu clair, orange.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Bleus */
  --navy-900: #08243f;
  --navy-800: #0d2f52;
  --navy-700: #123c68;
  --navy-600: #1a4f83;
  --blue-500: #3aa5e0;
  --blue-400: #5fbaec;
  --blue-300: #8ad0f4;
  --blue-100: #e9f4fd;
  --blue-050: #f4fafe;

  /* Orange */
  --orange-600: #d8611b;
  --orange-500: #ef7c2b;
  --orange-400: #f79447;
  --orange-100: #fdeee2;

  /* Neutres */
  --ink: #0c1a28;
  --ink-soft: #33475c;
  --muted: #5f7386;
  --line: #e1e8f0;
  --line-strong: #cbd7e4;
  --surface: #ffffff;
  --surface-2: #f4f7fa;
  --surface-3: #eef3f8;

  /* Sémantique */
  --color-bg: var(--surface);
  --color-text: var(--ink);
  --color-primary: var(--navy-800);
  --color-accent: var(--orange-500);

  /* Typo */
  --font-sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: var(--font-sans);

  /* Rayons */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  /* Ombres */
  --shadow-xs: 0 1px 2px rgba(8, 36, 63, 0.06);
  --shadow-sm: 0 2px 8px rgba(8, 36, 63, 0.06), 0 1px 2px rgba(8, 36, 63, 0.04);
  --shadow-md: 0 10px 30px -12px rgba(8, 36, 63, 0.22), 0 2px 8px rgba(8, 36, 63, 0.05);
  --shadow-lg: 0 28px 60px -24px rgba(8, 36, 63, 0.34), 0 6px 18px rgba(8, 36, 63, 0.07);
  --shadow-inset-line: inset 0 0 0 1px var(--line);

  /* Rythme */
  --space-section: clamp(3.75rem, 7vw, 7rem);
  --container: min(1200px, calc(100% - 2.5rem));
  --header-h: 0px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  /* Icones (masques SVG) */
  --icon-pin: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 6-8 12-8 12s-8-6-8-12a8 8 0 0 1 16 0Z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
  --icon-phone: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1 1 .4 1.9.7 2.8a2 2 0 0 1-.5 2.1L8.1 9.9a16 16 0 0 0 6 6l1.3-1.3a2 2 0 0 1 2.1-.4c.9.3 1.8.6 2.8.7a2 2 0 0 1 1.7 2Z'/%3E%3C/svg%3E");
  --icon-clock: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3.5 2'/%3E%3C/svg%3E");
  --icon-calendar: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4'/%3E%3C/svg%3E");
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "kern" 1;
  overflow-x: hidden;
}

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

a {
  color: var(--navy-700);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color 0.18s var(--ease-out);
}

a:hover {
  color: var(--orange-600);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  color: var(--navy-900);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.022em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.35rem, 5.2vw, 3.9rem);
}

h2 {
  font-size: clamp(1.85rem, 3.4vw, 2.6rem);
}

h3 {
  font-size: clamp(1.2rem, 1.9vw, 1.45rem);
  letter-spacing: -0.014em;
}

p {
  margin: 0 0 1.1em;
}

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

strong {
  font-weight: 700;
  color: var(--navy-900);
}

::selection {
  background: var(--navy-800);
  color: #fff;
}

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

/* --------------------------------------------------------------------------
   3. Utilitaires
   -------------------------------------------------------------------------- */
.container {
  width: var(--container);
  margin-inline: auto;
}

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

.section--surface {
  background: var(--surface-2);
}

.section--tight {
  padding-block: clamp(2.5rem, 4.5vw, 4rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange-600);
}

.eyebrow::before {
  content: "";
  width: 1.75rem;
  height: 2px;
  background: var(--orange-500);
  border-radius: 2px;
}

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

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 10000;
  padding: 0.8rem 1.35rem;
  background: var(--navy-900);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: top 0.2s var(--ease-out);
}

.skip-link:focus {
  top: 1rem;
  color: #fff;
}

.layout-error {
  padding: 1rem 1.25rem;
  background: var(--orange-100);
  color: var(--orange-600);
  border-radius: var(--radius-sm);
  margin: 1rem;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   4. Boutons
   -------------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--navy-800);
  --btn-fg: #fff;
  --btn-border: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 1.7rem;
  border: 1.5px solid var(--btn-border);
  border-radius: var(--radius-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out),
    background-color 0.2s var(--ease-out), color 0.2s var(--ease-out),
    border-color 0.2s var(--ease-out);
}

.btn:hover {
  color: var(--btn-fg);
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn svg {
  flex: none;
  width: 1.05em;
  height: 1.05em;
}

.btn--primary {
  --btn-bg: var(--orange-500);
  box-shadow: 0 10px 22px -12px rgba(216, 97, 27, 0.9);
}

.btn--primary:hover {
  --btn-bg: var(--orange-600);
  box-shadow: 0 16px 30px -14px rgba(216, 97, 27, 0.95);
}

.btn--secondary {
  --btn-bg: var(--navy-800);
  box-shadow: 0 10px 22px -14px rgba(8, 36, 63, 0.9);
}

.btn--secondary:hover {
  --btn-bg: var(--navy-900);
  box-shadow: 0 16px 30px -16px rgba(8, 36, 63, 0.95);
}

.btn--light {
  --btn-bg: #fff;
  --btn-fg: var(--navy-900);
  --btn-border: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-sm);
}

.btn--light:hover {
  --btn-bg: #fff;
  --btn-fg: var(--orange-600);
}

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--navy-800);
  --btn-border: var(--line-strong);
}

.btn--ghost:hover {
  --btn-fg: var(--navy-900);
  --btn-border: var(--navy-800);
  --btn-bg: rgba(8, 36, 63, 0.04);
}

.btn--on-dark {
  --btn-fg: #fff;
  --btn-border: rgba(255, 255, 255, 0.45);
}

.btn--on-dark:hover {
  --btn-fg: var(--navy-900);
  --btn-bg: #fff;
  --btn-border: #fff;
}

.btn--compact {
  padding: 0.7rem 1.25rem;
  font-size: 0.875rem;
}

/* --------------------------------------------------------------------------
   5. Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--surface);
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  margin: 0;
  border: 0;
  background: rgba(8, 36, 63, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s var(--ease-out), visibility 0.3s;
}

.site-header--menu-open .nav-backdrop {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.site-header > .header-meta,
.site-header > .header-primary {
  position: relative;
  z-index: 1;
}

/* Bandeau haut */
.header-meta {
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.8125rem;
  letter-spacing: 0.01em;
}

.header-meta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 2.5rem;
  padding-block: 0.35rem;
}

.header-meta__hours {
  margin: 0;
  font-weight: 500;
}

.header-meta__links {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 600;
}

.header-meta a {
  color: #fff;
  text-decoration: none;
}

.header-meta a:hover {
  color: var(--orange-400);
}

.header-meta__sep {
  color: rgba(255, 255, 255, 0.35);
}

/* Barre principale */
.header-primary {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s var(--ease-out);
}

.site-header--stuck .header-primary {
  box-shadow: 0 8px 26px -18px rgba(8, 36, 63, 0.5);
}

.header-primary__inner {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  min-height: 5rem;
  padding-block: 0.75rem;
}

.logo {
  flex: none;
  display: block;
  line-height: 0;
}

.logo img {
  width: clamp(170px, 18vw, 210px);
  height: auto;
}

.nav-main {
  margin-left: auto;
}

.nav-main__list {
  display: flex;
  align-items: center;
  gap: clamp(0.5rem, 1.6vw, 1.4rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-main__list a {
  position: relative;
  display: block;
  padding: 0.5rem 0.15rem;
  color: var(--ink-soft);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}

.nav-main__list a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.1rem;
  height: 2px;
  border-radius: 2px;
  background: var(--orange-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s var(--ease-out);
}

.nav-main__list a:hover,
.nav-main__list a.is-active {
  color: var(--navy-900);
}

.nav-main__list a:hover::after,
.nav-main__list a.is-active::after {
  transform: scaleX(1);
}

.header-rdv {
  flex: none;
}

/* Bouton burger */
.nav-toggle {
  display: none;
  flex: none;
  margin-left: auto;
  width: 2.85rem;
  height: 2.85rem;
  padding: 0;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  transition: border-color 0.2s var(--ease-out), background 0.2s var(--ease-out);
}

.nav-toggle:hover {
  border-color: var(--navy-700);
}

.nav-toggle__bar {
  display: block;
  width: 1.15rem;
  height: 2px;
  border-radius: 2px;
  background: var(--navy-900);
  transition: transform 0.28s var(--ease-out), opacity 0.2s var(--ease-out);
}

.nav-toggle.is-open .nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-open .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open .nav-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

body.nav-scroll-lock {
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   6. Hero (accueil)
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--navy-900);
}

.hero__slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.4s var(--ease-in-out), transform 8s linear;
}

.hero__slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
      104deg,
      rgba(8, 36, 63, 0.94) 0%,
      rgba(8, 36, 63, 0.82) 45%,
      rgba(8, 36, 63, 0.55) 100%
    );
}

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

.hero__content {
  max-width: 40rem;
  padding-block: clamp(4rem, 11vw, 8rem);
  color: #fff;
}

.hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1.1rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange-400);
}

.hero__kicker::before {
  content: "";
  width: 2rem;
  height: 2px;
  border-radius: 2px;
  background: var(--orange-500);
}

.hero__title {
  margin: 0 0 1rem;
  color: #fff;
  font-size: clamp(2.6rem, 6.4vw, 4.6rem);
  letter-spacing: -0.032em;
  line-height: 1.02;
}

.hero__lead {
  max-width: 34rem;
  margin: 0 0 2rem;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.88);
}

.hero__lead strong {
  color: #fff;
  box-shadow: inset 0 -0.42em 0 rgba(239, 124, 43, 0.32);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.hero__actions .btn {
  padding-inline: 1.4rem;
}

@media (min-width: 64rem) {
  .hero {
    background: var(--surface);
  }

  .hero::before {
    content: "";
    position: absolute;
    inset: 0 50% 0 0;
    z-index: 0;
    background: radial-gradient(
        70% 90% at 12% 30%,
        var(--blue-050) 0%,
        rgba(242, 248, 252, 0) 100%
      ),
      var(--surface);
  }

  .hero .container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    min-height: clamp(30rem, 44vw, 38rem);
  }

  .hero__content {
    grid-column: 1;
    align-self: center;
    max-width: 33rem;
    padding: clamp(4rem, 7vw, 6rem) 2.75rem clamp(4rem, 7vw, 6rem) 0;
    color: var(--ink);
  }

  .hero__slides,
  .hero__overlay {
    left: 50%;
    clip-path: polygon(11% 0, 100% 0, 100% 100%, 0 100%);
  }

  .hero__overlay {
    background: linear-gradient(
      100deg,
      rgba(8, 36, 63, 0.5) 0%,
      rgba(8, 36, 63, 0.1) 34%,
      rgba(8, 36, 63, 0) 62%
    );
  }

  /* Fine diagonale orange le long du bord de l'image */
  .hero::after {
    content: "";
    position: absolute;
    z-index: 2;
    inset: 0 0 0 50%;
    background: var(--orange-500);
    clip-path: polygon(10.2% 0, 11% 0, 0.8% 100%, 0 100%);
    pointer-events: none;
  }

  .hero__title {
    color: var(--navy-900);
    font-size: clamp(2.6rem, 4.6vw, 3.7rem);
  }

  .hero__lead {
    color: var(--ink-soft);
    font-size: 1.125rem;
  }

  .hero__lead strong {
    color: var(--navy-900);
  }

  .hero .btn--light {
    --btn-fg: var(--navy-900);
    --btn-border: var(--line-strong);
    box-shadow: none;
  }

  .hero .btn--light:hover {
    --btn-border: var(--navy-800);
  }

  .hero .btn--ghost.btn--on-dark {
    --btn-fg: var(--navy-800);
    --btn-border: var(--line-strong);
  }

  .hero .btn--ghost.btn--on-dark:hover {
    --btn-fg: #fff;
    --btn-bg: var(--navy-800);
    --btn-border: var(--navy-800);
  }
}

/* --------------------------------------------------------------------------
   7. Services (accueil)
   -------------------------------------------------------------------------- */
.home-services__intro {
  max-width: 46rem;
  margin-bottom: clamp(2.25rem, 4vw, 3.25rem);
}

.home-services__title {
  margin-bottom: 0.75rem;
}

.home-services__lede {
  margin: 0;
  font-size: 1.0625rem;
  color: var(--muted);
  line-height: 1.75;
}

.cards-3 {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
}

/* Tablette : bandeaux pleine largeur plutot qu'une colonne orpheline */
@media (min-width: 40rem) and (max-width: 61.99rem) {
  .cards-3 {
    grid-template-columns: 1fr;
  }

  .cards-3 .service-card__img {
    aspect-ratio: 24 / 9;
  }

  .cards-3 .service-card__body {
    padding-inline: 2rem;
  }
}

.service-card {
  --card-accent: var(--blue-400);
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--navy-900);
  color: #fff;
  text-decoration: none;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.service-card--sport {
  --card-accent: var(--orange-400);
}

.service-card--ortho {
  --card-accent: var(--blue-400);
}

.service-card--general {
  --card-accent: var(--blue-300);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  color: #fff;
}

.service-card__img {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.service-card__img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(8, 36, 63, 0.1) 0%,
    rgba(8, 36, 63, 0.35) 55%,
    var(--navy-900) 100%
  );
}

.service-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.service-card:hover .service-card__img img {
  transform: scale(1.05);
}

.service-card__body {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 1.25rem;
  padding: 0 1.75rem 1.75rem;
  margin-top: -1.75rem;
}

.service-card__main {
  flex: 1;
}

.service-card__eyebrow {
  display: block;
  margin: 0 0 0.45rem;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--card-accent);
}

.service-card h3 {
  margin: 0 0 0.65rem;
  color: #fff;
  font-size: 1.375rem;
}

.service-card__text {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.72);
}

.service-card__more {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--card-accent);
}

.service-card__more::after {
  content: "";
  width: 1.4rem;
  height: 0.6rem;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 10'%3E%3Cpath d='M0 5h20M16 1l4 4-4 4' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    no-repeat center / contain;
  mask: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 10'%3E%3Cpath d='M0 5h20M16 1l4 4-4 4' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    no-repeat center / contain;
  transition: transform 0.28s var(--ease-out);
}

.service-card:hover .service-card__more::after {
  transform: translateX(5px);
}

/* --------------------------------------------------------------------------
   8. Split (texte + visuel)
   -------------------------------------------------------------------------- */
.split {
  display: grid;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

@media (min-width: 60rem) {
  .split {
    grid-template-columns: 0.85fr 1fr;
  }
}

.split__visual {
  position: relative;
  align-self: start;
}

.split__visual::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: auto auto -1.15rem -1.15rem;
  width: 58%;
  height: 58%;
  border-radius: var(--radius-lg);
  background: var(--blue-100);
}

.split__visual::after {
  content: "";
  position: absolute;
  z-index: 2;
  top: 1.5rem;
  right: -0.5rem;
  width: 4.5rem;
  height: 4px;
  border-radius: 4px;
  background: var(--orange-500);
}

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

.split__content > h2 {
  margin-bottom: 0.9rem;
}

.split__content > h3 {
  margin-top: 2rem;
  font-size: 1.15rem;
  color: var(--navy-800);
}

.split__content > p {
  color: var(--ink-soft);
}

.split__content .btn {
  margin-top: 1.75rem;
}

/* --------------------------------------------------------------------------
   9. Bande CTA
   -------------------------------------------------------------------------- */
.cta-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--navy-900);
  color: #fff;
}

.cta-band__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
}

.cta-band__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    105deg,
    rgba(8, 36, 63, 0.97) 0%,
    rgba(8, 36, 63, 0.93) 52%,
    rgba(18, 60, 104, 0.85) 100%
  );
}

.cta-band .container {
  position: relative;
  z-index: 2;
}

.cta-band__inner {
  padding-block: clamp(3.5rem, 7vw, 6rem);
}

.cta-band__grid {
  display: grid;
  gap: clamp(2rem, 3.5vw, 3rem);
  counter-reset: cta-step;
}

@media (min-width: 58rem) {
  .cta-band__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.cta-item {
  position: relative;
  counter-increment: cta-step;
  padding-top: 1.6rem;
  border-top: 2px solid rgba(255, 255, 255, 0.13);
}

.cta-item::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  width: 2.75rem;
  height: 2px;
  background: var(--orange-500);
}

.cta-item h3 {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  margin: 0 0 0.75rem;
  color: #fff;
  font-size: clamp(1.2rem, 1.9vw, 1.4rem);
}

.cta-item h3::before {
  content: "0" counter(cta-step);
  flex: none;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--orange-400);
}

.cta-item p {
  margin: 0;
  font-size: 0.9688rem;
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.75;
}

.cta-item strong {
  color: #fff;
}

.cta-band__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: clamp(1.75rem, 3.5vw, 2.5rem);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.cta-band__footnote {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

/* --------------------------------------------------------------------------
   10. Hero de page interne
   -------------------------------------------------------------------------- */
.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--navy-900);
  color: #fff;
  padding-block: clamp(3.25rem, 8vw, 6rem);
}

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

.page-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(
    100deg,
    rgba(8, 36, 63, 0.95) 0%,
    rgba(8, 36, 63, 0.86) 50%,
    rgba(18, 60, 104, 0.72) 100%
  );
}

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

.page-hero__title,
.page-hero__subtitle {
  max-width: 24ch;
}

.page-hero__subtitle {
  max-width: 46ch;
}

.page-hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 0.9rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--orange-400);
}

.page-hero__kicker::before {
  content: "";
  width: 1.9rem;
  height: 2px;
  border-radius: 2px;
  background: var(--orange-500);
}

.page-hero__title {
  margin: 0;
  color: #fff;
  font-size: clamp(2.2rem, 5.4vw, 3.5rem);
  letter-spacing: -0.03em;
  text-transform: none;
}

.page-hero__title::first-letter {
  text-transform: uppercase;
}

.page-hero__subtitle {
  margin: 0.75rem 0 0;
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
  color: rgba(255, 255, 255, 0.78);
}

.page-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

/* --------------------------------------------------------------------------
   11. Prose
   -------------------------------------------------------------------------- */
.prose {
  color: var(--ink-soft);
  font-size: 1.0625rem;
  line-height: 1.8;
}

.prose-wide {
  max-width: 46rem;
}

/* Colonne de lecture calee a gauche, alignee sur le hero */
.container.prose-wide {
  max-width: none;
}

.container.prose-wide > * {
  max-width: 48rem;
}

.prose > h2 {
  margin-top: 2.75rem;
  margin-bottom: 0.85rem;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
}

.prose > h2:first-child,
.prose > h3:first-child {
  margin-top: 0;
}

.prose > h3 {
  margin-top: 2.25rem;
  margin-bottom: 0.7rem;
  font-size: 1.2rem;
  color: var(--navy-800);
}

.prose > p:first-child {
  font-size: 1.1875rem;
  line-height: 1.7;
  color: var(--navy-800);
  font-weight: 500;
}

.prose ul,
.prose ol {
  margin: 0 0 1.4em;
  padding: 0;
  list-style: none;
}

.prose li {
  position: relative;
  padding-left: 1.9rem;
  margin-bottom: 0.6rem;
}

.prose ul > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 2px;
  background: var(--orange-500);
  transform: rotate(45deg);
}

.prose ol {
  counter-reset: prose-ol;
}

.prose ol > li {
  counter-increment: prose-ol;
  padding-left: 2.4rem;
  margin-bottom: 0.85rem;
}

.prose ol > li::before {
  content: counter(prose-ol);
  position: absolute;
  left: 0;
  top: 0.2em;
  display: grid;
  place-items: center;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: var(--navy-800);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
}

.prose a {
  color: var(--navy-700);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(239, 124, 43, 0.5);
  text-decoration-thickness: 2px;
}

.prose a:hover {
  color: var(--orange-600);
  text-decoration-color: currentColor;
}

.section-cta-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding: clamp(2.5rem, 5vw, 3.5rem) clamp(1.5rem, 4vw, 3.5rem);
  border-radius: var(--radius-lg);
  background: var(--surface-2);
  box-shadow: var(--shadow-inset-line);
  text-align: center;
}

.section-cta-bottom .eyebrow {
  margin: 0;
}

.section-cta-bottom h1,
.section-cta-bottom h2 {
  max-width: 26ch;
  margin: 0;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
}

.section-cta-bottom h1 {
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
}

.section-cta-bottom > p {
  max-width: 58ch;
  margin: 0;
  color: var(--muted);
}

.section-cta-bottom .hero__actions {
  justify-content: center;
}

/* --------------------------------------------------------------------------
   12. Spécialisations
   -------------------------------------------------------------------------- */
.spec-layout {
  display: grid;
  gap: clamp(2rem, 4vw, 3.5rem);
}

@media (min-width: 62rem) {
  .spec-layout {
    grid-template-columns: 20.5rem 1fr;
    align-items: start;
  }

  .spec-cert {
    position: sticky;
    top: calc(var(--header-h) + 1.5rem);
  }
}

.spec-cert {
  padding: clamp(1.75rem, 3vw, 2.25rem);
  border-radius: var(--radius-lg);
  background: var(--navy-900);
  color: #fff;
  box-shadow: var(--shadow-md);
}

.spec-cert__title {
  margin: 0 0 1.35rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 1.2rem;
}

.spec-cert__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.85rem;
}

.spec-cert__list li {
  position: relative;
  padding-left: 1.75rem;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.94);
}

.spec-cert__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.28em;
  width: 1rem;
  height: 1rem;
  background: var(--orange-500);
  -webkit-mask: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2.5 8.5l3.5 3.5 7.5-8' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    no-repeat center / contain;
  mask: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2.5 8.5l3.5 3.5 7.5-8' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    no-repeat center / contain;
}

.spec-cert__detail {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.6);
}

.spec-cert__ongoing {
  margin-top: 1.75rem;
  padding: 1.15rem 1.25rem;
  border-radius: var(--radius);
  background: rgba(239, 124, 43, 0.12);
  border: 1px solid rgba(239, 124, 43, 0.35);
}

.spec-cert__subtitle {
  margin: 0 0 0.4rem;
  color: var(--orange-400);
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.spec-cert__ongoing-item {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: #fff;
}

.spec-cert__ongoing-item strong {
  color: #fff;
}

.spec-cert__ongoing-item span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.8125rem;
}

.spec-details {
  max-width: none;
}

.spec-group + .spec-group {
  margin-top: clamp(2.75rem, 5vw, 4rem);
}

.spec-group__title {
  margin: 0 0 1.75rem;
  padding-bottom: 0.9rem;
  border-bottom: 2px solid var(--line);
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
}

.spec-group__blocks {
  display: grid;
  gap: 1.25rem;
}

.spec-block {
  position: relative;
  padding: clamp(1.5rem, 3vw, 2rem);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm), var(--shadow-inset-line);
  transition: box-shadow 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}

.spec-block:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md), inset 0 0 0 1px var(--line-strong);
}

.spec-block::before {
  content: "";
  position: absolute;
  left: 0;
  top: clamp(1.5rem, 3vw, 2rem);
  bottom: clamp(1.5rem, 3vw, 2rem);
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--orange-500);
}

.spec-block h3 {
  margin: 0 0 0.8rem;
  font-size: 1.15rem;
}

.spec-block__content {
  font-size: 0.9688rem;
  line-height: 1.75;
  color: var(--ink-soft);
}

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

/* --------------------------------------------------------------------------
   13. Contact & formulaire
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  gap: clamp(1.75rem, 3.5vw, 2.75rem);
}

@media (min-width: 60rem) {
  .contact-grid {
    grid-template-columns: 21rem 1fr;
    align-items: start;
  }
}

.contact-stack {
  display: grid;
  gap: 1rem;
}

.contact-card {
  padding: 1.5rem 1.6rem;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm), var(--shadow-inset-line);
}

.contact-card h3 {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 0.7rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--orange-600);
}

.contact-card h3::before {
  content: "";
  flex: none;
  width: 1.15rem;
  height: 1.15rem;
  background: currentColor;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.contact-card--address h3::before {
  -webkit-mask-image: var(--icon-pin);
  mask-image: var(--icon-pin);
}

.contact-card--phone h3::before {
  -webkit-mask-image: var(--icon-phone);
  mask-image: var(--icon-phone);
}

.contact-card--hours h3::before {
  -webkit-mask-image: var(--icon-clock);
  mask-image: var(--icon-clock);
}

.progenda-box h3::before {
  -webkit-mask-image: var(--icon-calendar);
  mask-image: var(--icon-calendar);
}

.contact-card p {
  margin: 0 0 0.75rem;
  font-size: 0.9688rem;
  line-height: 1.65;
  color: var(--ink-soft);
}

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

.contact-card a {
  font-weight: 600;
}

.progenda-box {
  background: var(--navy-900);
  box-shadow: var(--shadow-md);
}

.progenda-box h3 {
  color: var(--orange-400);
}

.progenda-box p {
  color: rgba(255, 255, 255, 0.78);
}

.progenda-box a {
  color: #fff;
  text-decoration-color: var(--orange-500);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}

.progenda-box a:hover {
  color: var(--orange-400);
}

.contact-lead {
  margin-bottom: 1.5rem;
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--navy-800);
  font-weight: 500;
}

.form {
  padding: clamp(1.5rem, 3vw, 2.25rem);
}

.form-field {
  margin-bottom: 1.15rem;
}

.form-field label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--navy-900);
}

.form-field .req {
  color: var(--orange-600);
}

.form-field .optional {
  font-weight: 500;
  color: var(--muted);
}

.form input[type="text"],
.form input[type="email"],
.form input[type="tel"],
.form textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  transition: border-color 0.18s var(--ease-out), box-shadow 0.18s var(--ease-out),
    background 0.18s var(--ease-out);
}

.form input::placeholder,
.form textarea::placeholder {
  color: #9aabbb;
}

.form input:focus,
.form textarea:focus {
  outline: none;
  background: var(--surface);
  border-color: var(--navy-700);
  box-shadow: 0 0 0 3px rgba(18, 60, 104, 0.14);
}

.form textarea {
  min-height: 10rem;
  resize: vertical;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
}

.checkbox-row input[type="checkbox"] {
  flex: none;
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.2rem;
  accent-color: var(--navy-800);
}

.checkbox-row label {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.55;
  color: var(--ink-soft);
}

.field-error {
  display: none;
  margin: 0.4rem 0 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #b42318;
}

.form-field--error .field-error {
  display: block;
}

.form-field--error input,
.form-field--error textarea {
  border-color: #e0736a;
  background: #fef5f4;
}

.form-feedback {
  display: none;
  margin: 0 0 1.25rem;
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-weight: 600;
}

.form-feedback.is-visible {
  display: block;
}

.form-feedback--success {
  background: #e7f6ee;
  color: #10693f;
  border: 1px solid #b6e2ca;
}

.form-feedback--error {
  background: #fdecea;
  color: #b42318;
  border: 1px solid #f3c0bb;
}

.form-note {
  margin: 1rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--muted);
}

.form .btn {
  width: 100%;
}

.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   14. Témoignages
   -------------------------------------------------------------------------- */
.footer-testimonials {
  padding-block: var(--space-section);
  background: var(--surface-2);
}

.footer-testimonials__eyebrow {
  margin-bottom: 0.85rem;
}

.footer-testimonials__title {
  max-width: 22ch;
  margin: 0 0 clamp(2rem, 4vw, 3rem);
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
}

.testimonial-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}

.testimonial-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 0;
  padding: 2.5rem 1.6rem 1.6rem;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm), var(--shadow-inset-line);
}

.testimonial-card::before {
  content: "\201C";
  position: absolute;
  top: 0.35rem;
  left: 1.4rem;
  font-family: Georgia, serif;
  font-size: 3.6rem;
  line-height: 1;
  color: var(--blue-100);
}

.testimonial-card p {
  flex: 1;
  margin: 0;
  font-size: 0.9688rem;
  line-height: 1.65;
  color: var(--ink-soft);
}

.testimonial-card footer {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--navy-800);
}

.testimonial-card--featured {
  background: var(--navy-900);
  box-shadow: var(--shadow-md);
}

.testimonial-card--featured::before {
  color: rgba(239, 124, 43, 0.55);
}

.testimonial-card--featured p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.0625rem;
}

.testimonial-card--featured footer {
  color: var(--orange-400);
}

@media (min-width: 62rem) {
  .testimonial-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .testimonial-card--featured {
    grid-column: span 2;
    grid-row: span 2;
    padding: 3.25rem 2.25rem 2.25rem;
  }

  .testimonial-card--featured footer {
    margin-top: auto;
  }

  .testimonial-card--featured::before {
    font-size: 5rem;
    left: 1.9rem;
  }

  .testimonial-card--featured p {
    flex: none;
    font-size: 1.25rem;
    line-height: 1.6;
  }
}

.footer-google {
  margin: 2rem 0 0;
}

/* --------------------------------------------------------------------------
   15. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.72);
}

.footer-main {
  padding-block: clamp(3rem, 6vw, 4.5rem);
}

.footer-grid {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
}

@media (min-width: 62rem) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
  }
}

.footer-brand img {
  width: 220px;
  height: auto;
  margin-bottom: 1.25rem;
  padding: 0.75rem 1rem;
  background: #fff;
  border-radius: var(--radius-sm);
}

.footer-brand p {
  max-width: 30ch;
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.7;
}

.footer-heading {
  margin: 0 0 1.1rem;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-links {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.6rem;
  font-size: 0.9375rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--orange-400);
  text-decoration: underline;
}

.footer-address {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.75;
}

.footer-address a {
  color: rgba(255, 255, 255, 0.78);
}

.footer-address a:hover {
  color: var(--orange-400);
}

.footer-bar {
  padding-block: 1.35rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8125rem;
  line-height: 1.65;
}

.footer-bar .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
}

.footer-legal,
.footer-copyright {
  margin: 0;
  color: rgba(255, 255, 255, 0.55);
}

.footer-bar a {
  color: rgba(255, 255, 255, 0.72);
}

.footer-bar a:hover {
  color: var(--orange-400);
}

/* --------------------------------------------------------------------------
   16. Responsive — navigation mobile
   -------------------------------------------------------------------------- */
@media (max-width: 68.75rem) {
  .nav-toggle {
    display: flex;
    order: 3;
    margin-left: 0.6rem;
  }

  .header-rdv {
    order: 2;
    margin-left: auto;
  }

  .nav-main {
    order: 4;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 0;
    background: var(--surface);
    border-top: 1px solid var(--line);
    box-shadow: 0 24px 40px -24px rgba(8, 36, 63, 0.4);
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    transition: max-height 0.34s var(--ease-out), visibility 0.34s;
  }

  .nav-main.is-open {
    max-height: 32rem;
    visibility: visible;
  }

  .header-primary__inner {
    position: relative;
    flex-wrap: nowrap;
    gap: 0.6rem;
  }

  .nav-main__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: var(--container);
    margin-inline: auto;
    padding-block: 0.5rem 1rem;
  }

  .nav-main__list li + li {
    border-top: 1px solid var(--line);
  }

  .nav-main__list a {
    padding: 0.95rem 0.25rem;
    font-size: 0.875rem;
  }

  .nav-main__list a::after {
    left: 0;
    right: auto;
    top: 50%;
    bottom: auto;
    width: 3px;
    height: 1.6rem;
    transform: translateY(-50%) scaleY(0);
    transform-origin: center;
  }

  .nav-main__list a:hover::after,
  .nav-main__list a.is-active::after {
    transform: translateY(-50%) scaleY(1);
  }
}

@media (max-width: 40rem) {
  :root {
    --container: min(1200px, calc(100% - 2rem));
  }

  .split__visual::before {
    inset: auto auto -0.75rem -0.75rem;
    width: 45%;
    height: 45%;
  }

  .split__visual::after {
    right: 0.9rem;
  }

  .header-meta__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
    padding-block: 0.5rem;
  }

  .header-meta__hours {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.65);
  }

  .header-primary__inner {
    min-height: 4.25rem;
    gap: 0.5rem;
  }

  .logo img {
    width: min(140px, 38vw);
  }

  .header-rdv {
    padding: 0.62rem 0.85rem;
    font-size: 0.8125rem;
  }

  .nav-toggle {
    width: 2.6rem;
    height: 2.6rem;
    margin-left: 0.35rem;
  }

  .hero__actions .btn,
  .page-hero__actions .btn,
  .cta-band__actions .btn {
    width: 100%;
  }

  .footer-bar .container {
    flex-direction: column;
  }
}

/* --------------------------------------------------------------------------
   17. Préférences de mouvement
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
