/* =========================================================
   Träcy PALIE — Ostéopathe D.O.
   Feuille de style principale
   (les couleurs sont définies dans theme.css)
   ========================================================= */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--brand); }

h1, h2, h3, h4 {
  font-family: var(--font-title);
  color: var(--brand);
  line-height: 1.15;
  margin: 0 0 .6em;
  font-weight: 600;
}

h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
h2 { font-size: clamp(1.9rem, 4.2vw, 2.9rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.45rem); }

p { margin: 0 0 1.1em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 22px; }
.container--narrow { max-width: 820px; }

/* ---------------- En-tête ---------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 248, 246, .94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

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

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--brand); }
.brand__mark { width: 42px; height: 42px; flex: none; }
.brand__name {
  font-family: var(--font-title);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.1;
  display: block;
  letter-spacing: .01em;
}
.brand__role {
  display: block;
  font-size: .7rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav { display: flex; align-items: center; gap: 4px; }

.nav a {
  color: var(--brand);
  text-decoration: none;
  font-size: .95rem;
  padding: 8px 12px;
  border-radius: 8px;
  transition: background .2s, color .2s;
}

.nav a:hover { background: var(--bg-alt); }
.nav a.is-active { color: var(--accent-deep); font-weight: 600; }

/* le bouton RDV du menu ne sert qu'en version mobile */
.nav > .btn { display: none; }

.header__actions { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  display: none;
  width: 48px; height: 48px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  color: var(--brand);
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 22px; height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle span::before { transform: translateY(-7px); }
.nav-toggle span::after { transform: translateY(5px); }

/* ---------------- Boutons ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .96rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }

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

.btn--sage { background: var(--accent); color: var(--brand-dark); }
.btn--sage:hover { background: var(--accent-dark); }

.btn--ghost { background: transparent; color: var(--brand); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--brand); }

.btn--light { background: #fff; color: var(--brand); }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn--outline-light:hover { border-color: #fff; background: rgba(255,255,255,.08); }

.btn--sm { padding: 10px 20px; font-size: .9rem; }

/* ---------------- Hero ---------------- */

.hero {
  position: relative;
  min-height: min(86vh, 740px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding: clamp(70px, 10vw, 120px) 0;
  background:
    radial-gradient(circle at 78% 18%, rgba(167, 195, 171, .42), transparent 58%),
    radial-gradient(circle at 10% 90%, rgba(167, 195, 171, .22), transparent 55%),
    linear-gradient(155deg, var(--brand) 0%, var(--brand-dark) 100%);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

/* Variante avec photo de fond : ajouter la classe hero--photo sur la section
   et l'image en style inline, par exemple :
   <section class="hero hero--photo" style="background-image:url('assets/img/cabinet.jpg')"> */
.hero--photo {
  background-color: var(--brand-dark);
  background-blend-mode: normal;
}
.hero--photo::before {
  content: "";
  position: absolute;
  inset: 0;
  /* voile assez dense pour garantir la lisibilité du texte sur la photo */
  background:
    radial-gradient(circle at 78% 15%, rgba(167, 195, 171, .22), transparent 60%),
    linear-gradient(180deg, rgba(40, 29, 39, .9) 0%, rgba(63, 47, 61, .84) 50%, rgba(40, 29, 39, .92) 100%);
}
.hero--photo > .container { position: relative; z-index: 1; }

.hero h1 { color: #fff; margin-bottom: .2em; }

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.28);
  color: #fff;
  font-size: .74rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  padding: 8px 18px;
  border-radius: 999px;
  margin-bottom: 26px;
}

.hero__badge::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.hero__role {
  display: block;
  font-size: clamp(.82rem, 1.8vw, .95rem);
  letter-spacing: .26em;
  text-transform: uppercase;
  color: rgba(255,255,255,.94);
  margin-bottom: 22px;
}

.hero__lead {
  font-size: clamp(1rem, 2vw, 1.14rem);
  color: rgba(255,255,255,.88);
  max-width: 58ch;
  margin: 0 auto 30px;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

.hero__reviews {
  margin-top: 44px;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,.2);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: rgba(255,255,255,.9);
  font-size: .95rem;
}

.stars { color: #f0c05a; letter-spacing: 2px; }

/* ---------------- Sections ---------------- */

.section { padding: clamp(58px, 8vw, 100px) 0; }
.section--alt { background: var(--bg-alt); }
.section--brand { background: var(--brand); color: rgba(255,255,255,.85); }
.section--brand h2, .section--brand h3 { color: #fff; }
.section--sage { background: var(--bg-sage); }
.section--sage h2, .section--sage h3 { color: var(--brand-dark); }

.section__head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section__head--left { margin-left: 0; text-align: left; }

.eyebrow {
  display: block;
  font-size: .76rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 14px;
  font-weight: 600;
}
.section--brand .eyebrow { color: var(--accent); }

.lead { font-size: 1.06rem; color: var(--muted); }
.section--brand .lead { color: rgba(255,255,255,.8); }

/* Accroche typographique pleine largeur */
.statement {
  padding: clamp(56px, 8vw, 96px) 0;
  text-align: center;
}
.statement p {
  font-family: var(--font-title);
  font-size: clamp(1.6rem, 3.6vw, 2.5rem);
  line-height: 1.35;
  color: var(--brand);
  max-width: 24ch;
  margin: 0 auto;
}
.statement p + p { margin-top: .5em; max-width: 30ch; font-size: clamp(1.25rem, 2.6vw, 1.8rem); color: var(--muted); }

/* ---------------- Grilles & cartes ---------------- */

.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); }

/* exactement deux colonnes au-delà de 760 px (blocs de 4 cartes) */
@media (min-width: 760px) {
  .grid--pair { grid-template-columns: 1fr 1fr; }
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  box-shadow: var(--shadow);
}
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }

.card--bar { border-left: 4px solid var(--accent); }

.card--brand {
  background: var(--brand-soft);
  border-color: rgba(255,255,255,.14);
  color: rgba(255,255,255,.84);
}

.card__icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  background: var(--accent-light);
  color: var(--accent-deep);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}

.card--center { text-align: center; }
.card--center .card__icon { margin-left: auto; margin-right: auto; }

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(28px, 5vw, 62px);
  align-items: center;
}
.split--reverse > *:first-child { order: 2; }

.media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: linear-gradient(150deg, var(--accent), var(--brand-soft));
  aspect-ratio: 4 / 3;
}
.media--portrait { aspect-ratio: 4 / 5; }
.media img { width: 100%; height: 100%; object-fit: cover; }

.media__placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.85);
  font-size: .9rem;
  text-align: center;
  padding: 20px;
}

/* Listes */

.check-list { list-style: none; padding: 0; margin: 0 0 1.4em; }
.check-list li { position: relative; padding-left: 30px; margin-bottom: 11px; }
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: .55em;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--accent);
}
.section--brand .check-list li::before { background: var(--accent); }

/* Étapes numérotées */

.steps { counter-reset: step; }
.step { text-align: center; }
.step__num {
  display: block;
  font-family: var(--font-title);
  font-size: 2.6rem;
  color: var(--accent-deep);
  line-height: 1;
  margin-bottom: 10px;
}
.step h3 { margin-bottom: .35em; }
.step p { color: var(--muted); font-size: .95rem; margin: 0; }

/* Onglets « Pour qui ? » (CSS pur, sans JavaScript) */

.tabs { display: grid; grid-template-columns: 260px 1fr; gap: 26px; align-items: start; }
.tabs input { position: absolute; opacity: 0; pointer-events: none; }

.tabs__labels { display: grid; gap: 8px; }

.tabs__labels label {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 20px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 500;
  color: var(--brand);
  background: transparent;
  border: 1px solid transparent;
  transition: background .2s, color .2s;
}
.tabs__labels label:hover { background: var(--surface); }

.tabs__panel {
  display: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 34px;
  box-shadow: var(--shadow);
}

#tab-1:checked ~ .tabs__body #panel-1,
#tab-2:checked ~ .tabs__body #panel-2,
#tab-3:checked ~ .tabs__body #panel-3,
#tab-4:checked ~ .tabs__body #panel-4,
#tab-5:checked ~ .tabs__body #panel-5,
#tab-6:checked ~ .tabs__body #panel-6 { display: block; }

#tab-1:checked ~ .tabs__labels label[for="tab-1"],
#tab-2:checked ~ .tabs__labels label[for="tab-2"],
#tab-3:checked ~ .tabs__labels label[for="tab-3"],
#tab-4:checked ~ .tabs__labels label[for="tab-4"],
#tab-5:checked ~ .tabs__labels label[for="tab-5"],
#tab-6:checked ~ .tabs__labels label[for="tab-6"] {
  background: var(--brand);
  color: #fff;
}

.tabs input:focus-visible ~ .tabs__labels label { outline: none; }
.tabs input:focus-visible + .tabs__labels { }

/* ---------------- Tarifs ---------------- */

.price-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 34px 30px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.price-card--highlight { border-color: var(--accent-dark); box-shadow: 0 20px 48px rgba(127,162,133,.25); }

.price-card__tag {
  align-self: flex-start;
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-deep);
  background: var(--accent-light);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
  font-weight: 600;
}

.price-card__amount {
  font-family: var(--font-title);
  font-size: 2.8rem;
  color: var(--brand);
  line-height: 1;
  margin: 6px 0 4px;
}
.price-card__meta { color: var(--muted); font-size: .92rem; margin-bottom: 20px; }
.price-card .check-list { margin-top: auto; }

/* ---------------- Cabinet ---------------- */

.office {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.office__map { border: 0; width: 100%; height: 260px; background: var(--bg-alt); }
.office__body { padding: 30px; }
.office__list { list-style: none; padding: 0; margin: 0 0 22px; }
.office__list li {
  display: flex; gap: 12px; align-items: flex-start;
  margin-bottom: 12px; color: var(--muted); font-size: .96rem;
}
.office__list svg { flex: none; color: var(--accent-deep); margin-top: 4px; }
.office__list strong { color: var(--ink); font-weight: 600; }

.hours { width: 100%; border-collapse: collapse; font-size: .95rem; }
.hours th, .hours td { text-align: left; padding: 9px 0; border-bottom: 1px solid var(--line); }
.hours th { font-weight: 500; color: var(--ink); }
.hours td { color: var(--muted); text-align: right; }

/* ---------------- Galerie ---------------- */

.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.gallery__item {
  aspect-ratio: 1;
  border-radius: var(--radius);
  overflow: hidden;
  margin: 0;
  background: var(--accent-light);
  display: flex; align-items: center; justify-content: center;
  color: var(--brand);
  font-size: .82rem;
  text-align: center;
}
.gallery__item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.gallery__item:hover img { transform: scale(1.04); }

/* ---------------- Portrait de la praticienne ---------------- */

.portrait-block { position: relative; padding-bottom: 46px; }

.portrait-scene {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
  aspect-ratio: 4 / 5;
}

.portrait-round {
  position: absolute;
  left: 24px;
  bottom: 0;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  object-fit: cover;
  border: 6px solid var(--bg);
  box-shadow: var(--shadow);
  background: var(--accent-light);
  z-index: 1;
}

/* ---------------- Avis ---------------- */

.review {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
  margin: 0;
  display: flex;
  flex-direction: column;
}
.review .stars { font-size: .95rem; margin-bottom: 14px; }
.review blockquote { margin: 0 0 18px; }
.review blockquote p { font-style: italic; color: var(--ink); margin: 0; }
.review figcaption {
  margin-top: auto;
  color: var(--muted);
  font-size: .88rem;
  font-weight: 600;
}

/* ---------------- Parcours (frise) ---------------- */

.timeline { list-style: none; margin: 0; padding: 0 0 0 34px; position: relative; }
.timeline::before {
  content: "";
  position: absolute;
  left: 7px; top: 8px; bottom: 8px;
  width: 2px;
  background: var(--accent);
}
.timeline li { position: relative; margin-bottom: 30px; }
.timeline li:last-child { margin-bottom: 0; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -34px; top: 8px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--accent-deep);
  box-shadow: 0 0 0 4px var(--bg-alt);
}
.timeline__year {
  display: inline-block;
  font-size: .78rem;
  letter-spacing: .14em;
  font-weight: 600;
  color: var(--accent-deep);
  margin-bottom: 4px;
}
.timeline h3 { margin-bottom: .25em; }
.timeline p { color: var(--muted); margin: 0; }

/* ---------------- Liste des cabinets ---------------- */

.offices { display: grid; gap: 26px; }

.office__photo {
  width: 100%;
  height: 260px;
  object-fit: cover;
  object-position: center;
}

@media (min-width: 900px) {
  .office {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    grid-template-rows: auto auto;
    align-items: stretch;
  }
  .office__photo { grid-column: 1; grid-row: 1; height: 100%; min-height: 240px; }
  .office__map   { grid-column: 1; grid-row: 2; height: 100%; min-height: 200px; }
  .office__body  { grid-column: 2; grid-row: 1 / span 2; }

  /* on alterne le côté de l'image d'un cabinet à l'autre */
  .office:nth-child(even) .office__photo,
  .office:nth-child(even) .office__map { grid-column: 2; }
  .office:nth-child(even) .office__body { grid-column: 1; grid-row: 1 / span 2; }
}

/* ---------------- FAQ ---------------- */

.faq { display: grid; gap: 14px; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2px 24px;
  box-shadow: 0 6px 18px rgba(91,70,87,.05);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 36px 20px 0;
  font-weight: 600;
  color: var(--brand);
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 2px; top: 50%;
  transform: translateY(-50%);
  font-size: 1.6rem; font-weight: 300;
  color: var(--accent-deep);
  line-height: 1;
}
.faq details[open] summary::after { content: "–"; }
.faq details > *:not(summary) { padding-bottom: 8px; color: var(--muted); }

/* ---------------- Articles ---------------- */

.post-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column;
  text-decoration: none; color: inherit;
  transition: transform .2s ease, box-shadow .2s ease;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.post-card__cover { height: 168px; background: linear-gradient(140deg, var(--accent), var(--brand-soft)); }
.post-card__body { padding: 26px; display: flex; flex-direction: column; flex: 1; }
.post-card__meta {
  font-size: .74rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent-deep); font-weight: 600; margin-bottom: 10px;
}
.post-card h3 { font-size: 1.25rem; }
.post-card p { color: var(--muted); font-size: .95rem; }
.post-card__more { margin-top: auto; font-weight: 600; color: var(--brand); }

.article { padding: clamp(40px, 6vw, 70px) 0 clamp(56px, 8vw, 92px); }
.article__meta { color: var(--muted); font-size: .92rem; margin-bottom: 28px; }
.article h2 { margin-top: 1.6em; }
.article ul, .article ol { padding-left: 22px; }
.article li { margin-bottom: 8px; }

.page-hero {
  background: linear-gradient(140deg, var(--brand) 0%, var(--brand-soft) 100%);
  color: #fff;
  padding: clamp(54px, 7vw, 92px) 0;
  text-align: center;
}
.page-hero h1 { color: #fff; margin-bottom: .25em; font-size: clamp(2.1rem, 5vw, 3.2rem); }
.page-hero p { color: rgba(255,255,255,.82); max-width: 62ch; margin: 0 auto; }

.breadcrumb { font-size: .84rem; color: rgba(255,255,255,.65); margin-bottom: 16px; }
.breadcrumb a { color: rgba(255,255,255,.85); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ---------------- Bandeau d'appel ---------------- */

.cta-band {
  background: linear-gradient(120deg, var(--brand), var(--brand-soft));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(34px, 5vw, 56px);
  display: flex; flex-wrap: wrap; gap: 24px;
  align-items: center; justify-content: space-between;
}
.cta-band h2 { color: #fff; margin-bottom: .25em; }
.cta-band p { color: rgba(255,255,255,.86); margin: 0; max-width: 52ch; }

/* ---------------- Encadré d'information ---------------- */

.notice {
  border-left: 4px solid var(--accent);
  background: var(--bg-alt);
  padding: 20px 24px;
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--muted);
  font-size: .95rem;
}
.notice strong { color: var(--brand); }
.notice p:last-child { margin-bottom: 0; }

/* ---------------- Pied de page ---------------- */

.site-footer {
  background: var(--brand-dark);
  color: rgba(255,255,255,.72);
  padding: 66px 0 30px;
  font-size: .95rem;
}
.site-footer h4 {
  color: #fff;
  font-family: var(--font-body);
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.site-footer a { color: rgba(255,255,255,.76); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); gap: 34px; }
.footer__list { list-style: none; padding: 0; margin: 0; }
.footer__list li { margin-bottom: 9px; }
.footer__bottom {
  margin-top: 46px; padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.14);
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  font-size: .86rem; color: rgba(255,255,255,.55);
}

/* ---------------- Barre mobile « Prendre RDV » ---------------- */

.mobile-cta {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(250,248,246,.96);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  gap: 10px;
}
.mobile-cta .btn { flex: 1; }

/* ---------------- Responsive ---------------- */

@media (max-width: 980px) {
  .tabs { grid-template-columns: 1fr; }
  .tabs__labels { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
  .tabs__labels label { justify-content: center; text-align: center; font-size: .92rem; padding: 12px 14px; background: var(--surface); }
}

@media (max-width: 900px) {
  .nav-toggle { display: flex; }

  .nav {
    position: fixed;
    inset: 0;
    background: var(--brand);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transform: translateX(100%);
    transition: transform .32s cubic-bezier(.4,0,.2,1);
    padding: 90px 24px 40px;
    overflow-y: auto;
  }
  .nav.is-open { transform: translateX(0); }
  .nav a {
    color: rgba(255,255,255,.9);
    font-size: 1.6rem;
    font-family: var(--font-title);
    padding: 12px 20px;
  }
  .nav a:hover { background: rgba(255,255,255,.07); }
  .nav a.is-active { color: var(--accent); }
  .nav > .btn {
    display: inline-flex;
    margin-top: 22px;
    font-family: var(--font-body);
    font-size: 1rem;
    background: var(--accent);
    color: var(--brand-dark);
  }

  .header__actions .btn--primary { display: none; }

  body.nav-open { overflow: hidden; }
  body.nav-open .nav-toggle { color: #fff; border-color: rgba(255,255,255,.35); position: relative; z-index: 120; }
  body.nav-open .nav-toggle span { background: transparent; }
  body.nav-open .nav-toggle span::before { transform: rotate(45deg); }
  body.nav-open .nav-toggle span::after { transform: rotate(-45deg); }

  .mobile-cta { display: flex; }
  body { padding-bottom: 74px; }
  body.nav-open .mobile-cta { display: none; }

  .split--reverse > *:first-child { order: 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Accessibilité */

a:focus-visible, button:focus-visible, summary:focus-visible, label:focus-within,
.tabs input:focus-visible + * {
  outline: 3px solid var(--accent-dark);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--brand); color: #fff;
  padding: 12px 20px; z-index: 200;
}
.skip-link:focus { left: 0; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* Apparition au défilement.
   L'effet n'est appliqué que si JavaScript est actif (classe « js » posée sur <html>),
   afin que le contenu reste toujours visible en cas d'échec du script. */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
