/* ============================================================
   Karla BRUNET — Avocat au Barreau du Mans
   Feuille de style principale
   S'appuie EXCLUSIVEMENT sur les tokens de tokens.css
   ============================================================ */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
button { font: inherit; cursor: pointer; }

/* ---------- Typographie ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--color-heading);
  font-weight: var(--w-reg);
  line-height: var(--lh-heading);
  letter-spacing: var(--ls-tight);
}
h1 { font-size: var(--fs-h1); line-height: var(--lh-tight); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-weight: var(--w-medium); }
h4 { font-size: var(--fs-h4); font-weight: var(--w-medium); }
p  { color: var(--color-text); }
.lead { font-size: var(--fs-lead); line-height: 1.6; color: var(--mute); }
strong { font-weight: var(--w-semi); }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
@media (max-width: 720px) {
  .container { padding-inline: var(--gutter-mobile); }
}

.section { padding-block: var(--sp-section); }
@media (max-width: 720px) {
  .section { padding-block: var(--sp-section-mobile); }
}
.section--tint { background: var(--greige); }
section[id] { scroll-margin-top: 92px; }

/* Cartes « Domaines d'intervention » (accueil) : logo + contenu centrés */
#domaines .card { align-items: center; text-align: center; }
#domaines .card__link { justify-content: center; }

/* Bandeau cookies */
.cookie-banner {
  position: fixed; left: 50%; bottom: 20px; z-index: 200;
  width: min(700px, calc(100% - 32px));
  background: var(--canard-ink); color: #fff;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg); box-shadow: 0 18px 50px rgba(14,57,63,0.35);
  padding: var(--sp-6);
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-4);
  opacity: 0; transform: translate(-50%, 14px);
  transition: opacity .3s ease, transform .3s ease;
}
.cookie-banner.is-visible { opacity: 1; transform: translate(-50%, 0); }
.cookie-banner__text { flex: 1 1 280px; font-size: var(--fs-small); line-height: 1.55; color: rgba(234,243,242,0.85); }
.cookie-banner__text a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.cookie-banner__actions { display: flex; gap: var(--sp-3); flex: 0 0 auto; }
.cookie-banner .btn { white-space: nowrap; }
.btn--ghost-light { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.42); }
.btn--ghost-light:hover { border-color: #fff; background: rgba(255,255,255,0.08); }
@media (max-width: 540px) {
  .cookie-banner__actions { width: 100%; }
  .cookie-banner__actions .btn { flex: 1; }
}

/* Corps de texte justifié */
.hero__intro .lead,
.page-hero .lead,
.split .lead,
.stack p,
.prose p, .prose li,
.domain-block__grid p { text-align: justify; }

.stack > * + * { margin-top: var(--sp-4); }
.measure { max-width: 62ch; }
.center { text-align: center; margin-inline: auto; }

/* ---------- Sur-titre à filet (eyebrow) ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  font-weight: var(--w-semi);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: var(--sp-4);
}
.eyebrow::before {
  content: "";
  width: 44px;
  height: 2px;
  background: var(--accent);
  flex: none;
}
.eyebrow--invert { color: var(--accent); }
.band .eyebrow--invert { color: var(--accent); } /* prime sur .band p (spécificité) */
.eyebrow--center { justify-content: center; }
.eyebrow--lg { font-size: 1.1rem; letter-spacing: 0.1em; margin-bottom: var(--sp-5); }

/* ---------- Filet de signature (2px canard + 1px accent) ---------- */
.rule-sig {
  width: 64px;
  height: 2px;
  background: var(--canard);
  position: relative;
  margin-top: var(--sp-6);
}
.rule-sig::before {
  content: "";
  position: absolute;
  top: -3px; left: 0;
  width: 32px;
  height: 1px;
  background: var(--accent);
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 14px 26px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: var(--w-semi);
  font-size: var(--fs-body);
  line-height: 1;
  border: 1px solid transparent;
  transition: transform .18s ease, filter .18s ease, background-color .18s ease, border-color .18s ease, color .18s ease;
  will-change: transform;
}
.btn:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 3px;
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-deep); transform: translateY(-1px); }

.btn--ghost {
  background: transparent;
  color: var(--canard-profond);
  border-color: var(--rule);
}
.btn--ghost:hover { border-color: var(--canard); background: var(--surface); transform: translateY(-1px); }

/* Ghost sur fond sombre */
.btn--ghost-invert {
  background: transparent;
  color: var(--color-text-invert);
  border-color: rgba(255,255,255,0.28);
}
.btn--ghost-invert:hover { border-color: rgba(255,255,255,0.6); background: rgba(255,255,255,0.06); transform: translateY(-1px); }

.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Liens texte ---------- */
.link {
  color: var(--color-link);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color .18s ease;
}
.link:hover { color: var(--color-link-hover); }

/* ============================================================
   EN-TÊTE (sticky, fond canard encre)
   ============================================================ */
.site-header {
  --header-h: 88px;
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--canard-ink);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: box-shadow .3s ease;
}
.site-header.is-scrolled { box-shadow: 0 10px 30px -18px rgba(0,0,0,0.6); }
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  height: var(--header-h);
}
.site-header__logo { display: flex; align-items: center; flex: none; }
.site-header__logo svg, .site-header__logo img { height: 42px; width: auto; }
@media (max-width: 640px) {
  .site-header { --header-h: 66px; }
  .site-header__logo svg, .site-header__logo img { height: 32px; }
}

.nav { display: flex; align-items: center; gap: var(--sp-8); }
.nav__list { display: flex; align-items: center; gap: var(--sp-6); }
.nav__link {
  color: #CFE3E1;
  font-size: var(--fs-small);
  font-weight: var(--w-medium);
  letter-spacing: 0.01em;
  padding: 6px 2px;
  position: relative;
  transition: color .18s ease;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.nav__link:hover, .nav__link[aria-current="page"] { color: #fff; }
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); }
.nav__link:focus-visible { outline: 2px solid var(--accent-soft); outline-offset: 4px; border-radius: 2px; }

.header-cta { padding: 11px 20px; font-size: var(--fs-small); }
.header-cta.btn--primary { background: var(--accent); }
.header-cta.btn--primary:hover { background: var(--accent-deep); filter: none; }

/* Burger */
.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  width: 44px; height: 44px;
  padding: 10px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: #EAF3F2;
  border-radius: 2px;
  transition: transform .3s ease, opacity .2s ease;
}
.nav-toggle span + span { margin-top: 5px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--canard-ink);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding: var(--sp-4) var(--gutter-mobile) var(--sp-8);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease, transform .25s ease;
    box-shadow: 0 24px 40px -24px rgba(0,0,0,0.7);
  }
  .nav.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__link { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.08); font-size: 1rem; }
  .nav__link::after { display: none; }
  .header-cta { margin-top: var(--sp-4); align-self: flex-start; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  background:
    radial-gradient(1100px 600px at 82% -10%, rgba(28,110,120,0.10), transparent 60%),
    var(--paper);
  overflow: hidden;
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: stretch;
}
.hero__portrait {
  position: relative;
  min-height: 480px;
  border-radius: var(--radius-lg);
  background: var(--greige);
  border: 1px solid var(--rule);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.hero__portrait img { width: 100%; height: 100%; object-fit: cover; }
.hero__portrait .placeholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: var(--sp-3);
  color: var(--mute);
  font-size: var(--fs-small);
  background:
    linear-gradient(135deg, var(--greige), #fff);
}
.hero__portrait .placeholder svg { width: 46px; height: 46px; opacity: .5; }
.hero h1 { margin-bottom: var(--sp-6); }
.hero h1 em { font-style: italic; color: var(--accent-deep); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-8); }
.hero__meta {
  display: flex; flex-wrap: wrap; gap: var(--sp-6);
  margin-top: var(--sp-8);
  padding-top: var(--sp-6);
  border-top: 1px solid var(--rule);
  font-size: var(--fs-small);
  color: var(--mute);
}
.hero__meta strong { color: var(--canard-profond); font-weight: var(--w-semi); }

@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__portrait { order: -1; max-width: 360px; aspect-ratio: 4/5; min-height: 0; margin-inline: auto; }
}

/* ============================================================
   VALEURS / LE CABINET
   ============================================================ */
.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }
.split--reverse { grid-template-columns: 1.1fr 0.9fr; }
.split--reverse .figure { order: 2; }
@media (max-width: 820px) { .split--reverse .figure { order: 0; } }

.figure {
  aspect-ratio: 5/4;
  border-radius: var(--radius-lg);
  background: var(--greige);
  border: 1px solid var(--rule);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.figure .placeholder { color: var(--mute); font-size: var(--fs-small); text-align: center; padding: var(--sp-6); }
.figure img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.figure--portrait { aspect-ratio: 4 / 5; }

.values { display: grid; gap: var(--sp-4); margin-top: var(--sp-8); }
.value {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--sp-4);
  align-items: start;
}
.value__icon {
  width: 44px; height: 44px;
  border-radius: var(--radius);
  background: var(--accent);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  flex: none;
}
.value__icon svg { width: 22px; height: 22px; }
.value h4 { margin-bottom: 2px; }
.value p { font-size: var(--fs-small); color: var(--mute); }

/* ============================================================
   DOMAINES — grille de cartes
   ============================================================ */
.section-head { max-width: 60ch; margin-bottom: var(--sp-12); }
.section-head.center { margin-inline: auto; }

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
}
@media (max-width: 900px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cards { grid-template-columns: 1fr; } }
.cards--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .cards--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cards--4 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  display: flex; flex-direction: column;
  gap: var(--sp-3);
  height: 100%;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
  border-color: var(--accent);
}
.card__icon {
  width: 48px; height: 48px;
  color: var(--accent);
  margin-bottom: var(--sp-2);
}
.card__icon svg { width: 100%; height: 100%; }
.card h3 { color: var(--canard-ink); }
.card p { font-size: var(--fs-small); color: var(--mute); }
.card__link {
  margin-top: auto;
  padding-top: var(--sp-3);
  font-size: var(--fs-small);
  font-weight: var(--w-semi);
  color: var(--accent-deep);
  display: inline-flex; align-items: center; gap: 6px;
}
.card__link .arrow { transition: transform .2s ease; }
.card:hover .card__link .arrow { transform: translateX(3px); }

/* ============================================================
   MÉTHODE — bandeau sombre
   ============================================================ */
.band {
  background: var(--canard-ink);
  color: var(--color-text-invert);
  position: relative;
  overflow: hidden;
}
.band h2, .band h3 { color: #fff; }
.band .lead { color: rgba(234,243,242,0.75); }
.band p { color: rgba(234,243,242,0.72); }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-8);
  margin-top: var(--sp-12);
}
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; gap: var(--sp-6); } }
.step { position: relative; padding-top: var(--sp-6); border-top: 1px solid rgba(255,255,255,0.15); }
.step__num {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: var(--sp-3);
}
.step h3 { margin-bottom: var(--sp-2); }
.step p { font-size: var(--fs-small); }

/* ============================================================
   HONORAIRES
   ============================================================ */
.notes { display: grid; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 1fr; gap: var(--sp-6); margin-top: var(--sp-8); }
@media (max-width: 640px) { .notes { grid-template-columns: 1fr; } }
.note {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 22px 24px;
  transition: background .2s ease, border-color .2s ease;
}
.note:hover { background: #F4E6DF; border-color: var(--accent); }
.note h4 { color: var(--canard-ink); margin-bottom: 6px; }
.note p { font-size: var(--fs-small); color: var(--mute); }

/* FAQ — accordéon natif (details/summary) */
.faq { max-width: 820px; margin-inline: auto; }
.faq-item { border: 1px solid var(--rule); border-radius: var(--radius); background: var(--surface); margin-bottom: var(--sp-6); transition: border-color .2s ease, box-shadow .2s ease; }
.faq-item:hover { border-color: var(--accent); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); padding: 20px 24px; font-family: var(--font-display); font-size: var(--fs-h4); color: var(--canard-ink); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 1.15rem; line-height: 1; }
.faq-item[open] summary::after { content: "–"; }
.faq-answer { padding: 0 24px 22px; }
.faq-answer p { color: var(--mute); text-align: justify; }
.faq-answer > * + * { margin-top: var(--sp-3); }
.faq-answer ul { padding-left: var(--sp-6); list-style: disc; color: var(--mute); display: grid; gap: 4px; }
.faq-answer li::marker { color: var(--accent); }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem,5vw,4rem); }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }

.coords { display: grid; gap: var(--sp-8); margin-top: var(--sp-8); }
.coord { display: grid; grid-template-columns: auto 1fr; gap: var(--sp-4); align-items: start; }
.coord__icon {
  width: 40px; height: 40px; flex: none;
  border-radius: var(--radius);
  background: var(--accent);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.coord__icon svg { width: 20px; height: 20px; }
.coord__label { font-size: var(--fs-caption); text-transform: uppercase; letter-spacing: 0.14em; color: var(--accent); }
.coord__value { font-size: var(--fs-body); color: var(--ink); }
.coord__value a:hover { color: var(--accent-deep); }

/* Horaires — planning jour par jour */
.hours { display: grid; gap: 5px; margin-top: var(--sp-1); }
.hours__row { display: flex; justify-content: space-between; gap: var(--sp-6); }
.hours__day { color: var(--canard-profond); font-weight: var(--w-semi); }
.hours__time { color: var(--ink); font-variant-numeric: tabular-nums; }
.hours__row--off .hours__day,
.hours__row--off .hours__time { color: var(--mute); }
.hours__note { margin-top: var(--sp-3); font-size: var(--fs-caption); color: var(--mute); }

/* Accès au cabinet — bus / tram / voiture */
.access__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-6); margin-top: var(--sp-8); }
@media (max-width: 720px) { .access__grid { grid-template-columns: 1fr; } }
.access-card {
  background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-lg);
  padding: var(--sp-8) var(--sp-6); text-align: center;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.access-card:hover { border-color: var(--accent); box-shadow: var(--shadow-card); transform: translateY(-2px); }
.access-card__icon {
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto var(--sp-5);
}
.access-card__icon svg { width: 28px; height: 28px; }
.access-card h3 { font-family: var(--font-display); font-size: var(--fs-h4); color: var(--canard-profond); margin-bottom: var(--sp-2); }
.access-card p { color: var(--mute); font-size: var(--fs-small); }
.access-list { list-style: none; margin-top: var(--sp-5); text-align: left; display: grid; gap: var(--sp-4); }
.access-list li { font-size: var(--fs-small); color: var(--mute); line-height: 1.5; padding-left: var(--sp-4); border-left: 2px solid var(--accent); }
.access-list strong { display: block; color: var(--canard-profond); font-weight: var(--w-semi); }
.access-card .access-note { margin-top: var(--sp-5); text-align: left; font-size: var(--fs-caption); color: var(--mute); font-style: italic; line-height: 1.55; }

/* Formulaire */
.form { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-lg); padding: clamp(1.5rem, 4vw, 2.25rem); box-shadow: var(--shadow-card); }
.field { margin-bottom: var(--sp-5); }
.field label { display: block; font-size: var(--fs-small); font-weight: var(--w-semi); color: var(--canard-profond); margin-bottom: var(--sp-2); }
.field input, .field textarea, .field select {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 13px 15px;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--canard);
  box-shadow: 0 0 0 3px var(--canard-pale);
}
.form__note { font-size: var(--fs-caption); color: var(--mute); margin-top: var(--sp-4); }
.form__note a { color: var(--accent-deep); text-decoration: underline; text-underline-offset: 2px; }

/* ============================================================
   PIED DE PAGE
   ============================================================ */
.site-footer { background: var(--canard-ink); color: var(--color-text-invert); padding-block: var(--sp-16) var(--sp-8); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--sp-12); }
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr; gap: var(--sp-8); } }
.site-footer__logo svg, .site-footer__logo img { height: 48px; width: auto; margin-bottom: var(--sp-5); }
.site-footer p { color: rgba(234,243,242,0.66); font-size: var(--fs-small); }
.footer-col h4 { color: #fff; font-family: var(--font-body); font-size: var(--fs-caption); text-transform: uppercase; letter-spacing: 0.16em; font-weight: var(--w-semi); margin-bottom: var(--sp-4); }
.footer-col ul { display: grid; gap: var(--sp-3); }
.footer-col a { color: rgba(234,243,242,0.72); font-size: var(--fs-small); transition: color .18s ease; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  margin-top: var(--sp-12);
  padding-top: var(--sp-6);
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex; flex-wrap: wrap; gap: var(--sp-4);
  justify-content: space-between;
  font-size: var(--fs-caption);
  color: rgba(234,243,242,0.55);
}
.footer-bottom a { color: rgba(234,243,242,0.7); }
.footer-bottom a:hover { color: var(--accent); }

/* ---------- Frise en losanges ---------- */
.frieze {
  height: 12px;
  width: 100%;
  background-image:
    linear-gradient(135deg, transparent 45%, var(--accent) 45%, var(--accent) 55%, transparent 55%),
    linear-gradient(45deg, transparent 45%, var(--canard-clair) 45%, var(--canard-clair) 55%, transparent 55%);
  background-size: 28px 12px;
  background-position: 0 0;
  opacity: 0.55;
}

/* ============================================================
   ANIMATIONS — révélation au défilement
   ============================================================ */
/* Le masquage n'est actif que si JS est présent (classe .js sur <html>),
   afin que le contenu reste visible sans JavaScript. */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s cubic-bezier(.2,.65,.3,1), transform .7s cubic-bezier(.2,.65,.3,1);
  transition-delay: var(--reveal-delay, 0ms);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card, .nav__link::after { transition: none; }
}

/* ============================================================
   PAGES INTÉRIEURES
   ============================================================ */

/* Bannière de page */
.page-hero {
  background:
    radial-gradient(900px 480px at 88% -20%, rgba(28,110,120,0.09), transparent 60%),
    var(--paper);
  padding-block: clamp(2.75rem, 6vw, 4.5rem) clamp(2.25rem, 5vw, 3.5rem);
  border-bottom: 1px solid var(--rule);
}
.page-hero h1 { max-width: 20ch; text-align: left; text-indent: 0; }
.page-hero h1 em { font-style: italic; color: var(--accent-deep); }
.page-hero h1 strong { font-weight: inherit; color: var(--accent); }
.page-hero .lead { margin-top: var(--sp-6); max-width: 60ch; }

/* Fil d'Ariane */
.breadcrumb { font-size: var(--fs-small); color: var(--mute); margin-bottom: var(--sp-8); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: var(--sp-2); align-items: center; }
.breadcrumb li { display: flex; align-items: center; gap: var(--sp-2); }
.breadcrumb li:not(:last-child)::after { content: "›"; color: var(--rule); }
.breadcrumb a { color: var(--mute); }
.breadcrumb a:hover { color: var(--accent-deep); }
.breadcrumb [aria-current="page"] { color: var(--canard-profond); }

/* Prose (pages légales, articles) */
.prose { max-width: 72ch; }
.prose > * + * { margin-top: var(--sp-5); }
.prose h2 { font-size: var(--fs-h3); margin-top: var(--sp-12); color: var(--canard-ink); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: var(--fs-h4); margin-top: var(--sp-8); }
.prose p, .prose li { color: var(--ink); }
.prose ul { display: grid; gap: var(--sp-2); padding-left: var(--sp-6); list-style: disc; }
.prose ul li::marker { color: var(--accent); }
.prose a { color: var(--color-link); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.prose a:hover { color: var(--accent-deep); }
.prose strong { color: var(--canard-ink); }
.prose .muted { color: var(--mute); font-size: var(--fs-small); }

/* Sommaire latéral (pages légales) */
.doc-layout { display: grid; grid-template-columns: 240px 1fr; gap: clamp(2rem,5vw,4rem); align-items: start; }
@media (max-width: 860px) { .doc-layout { grid-template-columns: 1fr; } .doc-toc { display: none; } }
.doc-toc { position: sticky; top: 98px; }
.doc-toc h4 { font-family: var(--font-body); font-size: var(--fs-caption); text-transform: uppercase; letter-spacing: 0.16em; color: var(--mute); margin-bottom: var(--sp-4); }
.doc-toc ul { display: grid; gap: var(--sp-2); border-left: 2px solid var(--rule); }
.doc-toc a { display: block; padding: 4px 0 4px var(--sp-4); margin-left: -2px; border-left: 2px solid transparent; font-size: var(--fs-small); color: var(--mute); }
.doc-toc a:hover { color: var(--accent-deep); border-left-color: var(--accent); }

/* Bloc domaine détaillé */
.domain-block { scroll-margin-top: 98px; padding-block: var(--sp-12); border-top: 1px solid var(--rule); }
.domain-block:first-of-type { border-top: 0; padding-top: var(--sp-4); }
.domain-block__grid { display: grid; grid-template-columns: auto 1fr; gap: clamp(1.5rem,4vw,3rem); align-items: start; }
@media (max-width: 700px) { .domain-block__grid { grid-template-columns: 1fr; } }
.domain-block__icon {
  width: 68px; height: 68px; flex: none;
  border-radius: var(--radius-lg);
  background: var(--accent);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.domain-block__icon svg { width: 32px; height: 32px; }
.domain-block h2 { font-size: var(--fs-h3); color: var(--canard-ink); margin-bottom: var(--sp-3); }
.tags { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-5); }
.tag {
  font-size: var(--fs-caption);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: var(--greige);
  color: var(--canard-profond);
  border: 1px solid var(--rule);
}

/* Domaine (page Domaines) : bloc centré, picto + titre majuscule + mots-clés sienne */
.domain {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  scroll-margin-top: 98px;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.domain + .domain { margin-top: var(--sp-6); }
.domain:hover { border-color: var(--accent); box-shadow: var(--shadow-card); }
.domain__head { display: flex; flex-direction: column; align-items: center; text-align: center; }
.domain__icon {
  width: 76px; height: 76px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto var(--sp-6);
  flex: none;
}
.domain__icon svg { width: 34px; height: 34px; }
.domain__head h2 {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: var(--fs-h3);
  font-weight: var(--w-semi);
  letter-spacing: 0.03em;
  line-height: 1.25;
  color: var(--accent);
}
.domain__body p { text-align: justify; }
.keywords { display: flex; flex-wrap: wrap; gap: var(--sp-2); justify-content: center; margin-top: var(--sp-6); }
@media (max-width: 760px) {
  .domain { grid-template-columns: 1fr; gap: var(--sp-6); }
}
.keyword {
  font-size: var(--fs-caption);
  padding: 6px 13px;
  border-radius: var(--radius-pill);
  background: #F4E6DF;
  color: var(--accent-deep);
  border: 1px solid #E7CDC0;
}

/* Cartes blog */
.posts { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-8); }
@media (max-width: 720px) { .posts { grid-template-columns: 1fr; } }
.post {
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.post:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); border-color: var(--accent); }
.post__cover {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--canard-profond), var(--canard));
  position: relative;
  display: flex; align-items: flex-end;
  padding: var(--sp-5);
  overflow: hidden;
}
.post__cover img, .post__cover .cover-art {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
}
.post__cover::after {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(to top, rgba(14,57,63,0.55), rgba(14,57,63,0) 60%);
}
.post__cat {
  position: relative; z-index: 1;
  font-size: var(--fs-caption);
  letter-spacing: 0.14em; text-transform: uppercase;
  color: #fff;
  background: rgba(14,57,63,0.45);
  border: 1px solid rgba(255,255,255,0.28);
  padding: 5px 12px; border-radius: var(--radius-pill);
  backdrop-filter: blur(2px);
}
/* Image de couverture en tête d'article */
.article-cover {
  width: 100%; aspect-ratio: 16/9; object-fit: cover;
  border-radius: var(--radius-lg); display: block;
  margin: var(--sp-8) 0 var(--sp-10);
}
.article-credit { font-size: var(--fs-caption); color: var(--mute); margin-bottom: var(--sp-8); }
.article-credit a { color: var(--mute); text-decoration: underline; text-underline-offset: 2px; }
.post__body { padding: 26px 28px; display: flex; flex-direction: column; gap: var(--sp-3); flex: 1; }
.post__date { font-size: var(--fs-caption); color: var(--mute); letter-spacing: 0.04em; }
.post h3 { color: var(--canard-ink); }
.post p { font-size: var(--fs-small); color: var(--mute); }
.post__link { margin-top: auto; padding-top: var(--sp-3); font-size: var(--fs-small); font-weight: var(--w-semi); color: var(--accent-deep); display: inline-flex; align-items: center; gap: 6px; }
.post:hover .post__link .arrow { transform: translateX(3px); }

/* Métadonnées d'article */
.article-meta { display: flex; flex-wrap: wrap; gap: var(--sp-4); align-items: center; margin-top: var(--sp-5); font-size: var(--fs-small); color: var(--mute); }
.article-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--accent); }

/* Timeline / parcours */
.timeline { display: grid; gap: 0; margin-top: var(--sp-8); }
.timeline li { display: grid; grid-template-columns: 80px 1fr; gap: var(--sp-5); padding-bottom: var(--sp-8); position: relative; }
.timeline li::before { content: ""; position: absolute; left: 79px; top: 8px; bottom: 0; width: 1px; background: var(--rule); }
.timeline li:last-child { padding-bottom: 0; }
.timeline li:last-child::before { display: none; }
.timeline__year { font-family: var(--font-display); color: var(--accent-deep); font-size: var(--fs-h4); }
.timeline__body { position: relative; }
.timeline__body::before { content: ""; position: absolute; left: -26px; top: 8px; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--paper); }
.timeline h4 { color: var(--canard-ink); margin-bottom: 2px; }
.timeline p { font-size: var(--fs-small); color: var(--mute); }

/* Panneau RDV */
.rdv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,3.5rem); align-items: start; }
@media (max-width: 820px) { .rdv-grid { grid-template-columns: 1fr; } }
.rdv-embed {
  border: 1px dashed var(--canard-clair);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: clamp(2rem,5vw,3rem);
  min-height: 420px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  gap: var(--sp-4);
  color: var(--mute);
}
.rdv-embed svg { width: 44px; height: 44px; color: var(--accent); }
.channels { display: grid; gap: var(--sp-3); margin-top: var(--sp-6); }
.channel { display: grid; grid-template-columns: auto 1fr; gap: var(--sp-4); align-items: center; padding: 16px 18px; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--surface); transition: border-color .2s ease, box-shadow .2s ease; }
.channel:hover { border-color: var(--accent); box-shadow: var(--shadow-card); }
.channel__icon { width: 44px; height: 44px; flex: none; border-radius: var(--radius); background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; }
.channel__icon svg { width: 22px; height: 22px; color: #fff; stroke: #fff; }
.channel strong { display: block; color: var(--canard-ink); }
.channel span { font-size: var(--fs-small); color: var(--mute); }
.channel a { color: var(--canard); text-decoration: none; }
.channel a:hover { color: var(--accent-deep); text-decoration: underline; text-underline-offset: 2px; }

/* Note du formulaire lisible sur fond bleu profond (.band) */
.band .form__note { color: var(--mute); }
.band .form__note a { color: var(--accent-deep); }

/* Bandeau CTA de bas de page intérieure */
.cta-band { background: var(--canard-profond); color: var(--color-text-invert); text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band .lead { color: rgba(234,243,242,0.75); margin: var(--sp-4) auto 0; max-width: 52ch; }
.cta-band .hero__actions { justify-content: center; }

/* Avis / encadré */
.callout {
  background: var(--greige);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 20px 24px;
  font-size: var(--fs-small);
  color: var(--mute);
}
.callout strong { color: var(--canard-ink); }

/* Utilitaires */
.mt-0 { margin-top: 0; }
.text-invert { color: var(--color-text-invert); }
.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--accent-deep); color: #fff;
  padding: 10px 16px; border-radius: 0 0 var(--radius) 0;
  z-index: 200;
}
.skip-link:focus { left: 0; }
