/* ==========================================================================
   Les Compagnons du Temps — feuille de style principale
   Public principal : seniors et familles. Priorités : lisibilité, contraste,
   grandes zones cliquables, parcours simples.
   ========================================================================== */

@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("../fonts/atkinson-next.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("../fonts/atkinson-next-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces.woff2") format("woff2");
  font-weight: 500 650;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #1f2a2c;
  --ink-soft: #4b5a5c;
  --cream: #fbf7f2;
  --paper: #ffffff;
  --sand: #f4eadf;
  --sand-line: #e3d4c3;
  --line: #e7dfd5;
  --input-line: #6f7f80;

  --sage-900: #17302a;
  --sage-800: #244a41;
  --sage-700: #2d5a4f;
  --sage-100: #e3eee8;
  --sage-50: #f0f6f3;

  --coral-700: #a23f2c;
  --coral-500: #e8836f;
  --coral-100: #f9dcd3;
  --coral-50: #fdf1ec;

  --focus: #a23f2c;

  --font-body: "Atkinson Hyperlegible Next", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;

  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 1px 2px rgb(31 42 44 / 0.06), 0 4px 14px rgb(31 42 44 / 0.05);
  --shadow: 0 18px 40px -18px rgb(31 42 44 / 0.3);

  --container: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 84px;
}

/* ---------- Base ---------- */

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

html {
  font-size: 112.5%; /* 18 px */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
html.texte-grand { font-size: 128%; }

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 { margin: 0 0 0.5em; line-height: 1.2; color: var(--ink); }
h1, h2 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); line-height: 1.1; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.2rem; font-weight: 700; }

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

a {
  color: var(--sage-800);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.2em;
}
a:hover { color: var(--coral-700); }

strong { font-weight: 700; }

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

[id] { scroll-margin-top: 24px; }
@media (min-width: 1200px) {
  [id] { scroll-margin-top: calc(var(--header-h) + 24px); }
}

main:focus { outline: none; }

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

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 12px 20px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  border-radius: var(--radius-sm);
}
.skip-link:focus { top: 12px; color: #fff; }

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: calc(860px + 2 * var(--gutter)); }
.center { text-align: center; }
.center .section__lead { margin-inline: auto; }

.js .nojs-only { display: none; }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 10px 24px;
  border: 2px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: none; }
.btn--lg { min-height: 60px; padding-inline: 28px; font-size: 1.05rem; }
.btn--block { width: 100%; }

.btn--primary { background: var(--sage-700); color: #fff; }
.btn--primary:hover { background: var(--sage-800); color: #fff; }

.btn--secondary { background: var(--paper); color: var(--sage-800); border-color: var(--sage-700); }
.btn--secondary:hover { background: var(--sage-50); color: var(--sage-800); }

.btn--light { background: #fff; color: var(--sage-900); }
.btn--light:hover { background: var(--coral-50); color: var(--sage-900); }

.btn--outline-light { background: transparent; color: #fff; border-color: rgb(255 255 255 / 0.7); }
.btn--outline-light:hover { background: rgb(255 255 255 / 0.1); color: #fff; border-color: #fff; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}
.link-arrow .icon:last-child { transition: transform .15s ease; }
.link-arrow:hover .icon:last-child { transform: translateX(3px); }

.button-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-block: 8px 24px; }

/* ---------- Barre supérieure ---------- */

/* En-tête et barre supérieure en px : ils ne grossissent pas avec « Agrandir le texte »,
   pour que le menu reste sur une ligne (le zoom du navigateur, lui, fonctionne normalement). */
.topbar {
  background: var(--sage-900);
  color: var(--sage-100);
  font-size: 16px;
}
.topbar__inner {
  display: flex;
  align-items: center;
  gap: 8px 24px;
  min-height: 44px;
}
.topbar__item { display: inline-flex; align-items: center; gap: 8px; margin: 0; }
.topbar__item--wide { display: none; }
.text-toggle {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 4px 12px;
  border: 1px solid rgb(227 238 232 / 0.4);
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.text-toggle:hover { background: rgb(255 255 255 / 0.1); }
html:not(.js) .text-toggle { display: none; }
.text-toggle[aria-pressed="true"] { background: #fff; color: var(--sage-900); }
.topbar :focus-visible { --focus: #fff; outline-color: #fff; }

@media (max-width: 479px) {
  .topbar__item { display: none; }
}
@media (min-width: 820px) {
  .topbar__item--wide { display: inline-flex; }
}

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

.site-header {
  position: relative;
  z-index: 40;
  background: rgb(251 247 242 / 0.96);
  border-bottom: 1px solid var(--line);
}
@supports (backdrop-filter: blur(8px)) {
  .site-header { background: rgb(251 247 242 / 0.88); backdrop-filter: blur(10px); }
}
@media (min-width: 1200px) {
  .site-header { position: sticky; top: 0; }
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: var(--header-h);
  padding-block: 10px;
  font-size: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--ink);
  text-decoration: none;
  margin-right: auto;
}
.brand:hover { color: var(--ink); }
.brand__logo { height: 52px; width: auto; flex-shrink: 0; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name { font-family: var(--font-display); font-weight: 600; font-size: 20px; }
.brand__tag { font-size: 15px; color: var(--ink-soft); }
.site-header .brand__name { white-space: nowrap; }

@media (max-width: 559px) {
  .site-header .brand__tag { display: none; }
  .site-header .brand__name { white-space: normal; font-size: 17px; max-width: 8.6em; }
  .brand__logo { height: 46px; }
}

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

.header-call { min-height: 48px; padding-inline: 18px; white-space: nowrap; }
@media (max-width: 719px) {
  .header-call { display: none; }
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 8px 16px;
  border: 2px solid var(--sage-700);
  border-radius: 999px;
  background: var(--paper);
  color: var(--sage-800);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
@media (max-width: 379px) {
  .menu-toggle { padding-inline: 12px; }
}
.menu-toggle__open,
.menu-toggle__close { display: inline-flex; align-items: center; gap: 8px; }
.menu-toggle .menu-toggle__close,
.menu-toggle[aria-expanded="true"] .menu-toggle__open { display: none; }
.menu-toggle[aria-expanded="true"] .menu-toggle__close { display: inline-flex; }
html:not(.js) .menu-toggle { display: none; }

/* Navigation — mobile d'abord */
.site-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav__list a {
  display: flex;
  align-items: center;
  min-height: 56px;
  padding: 8px 4px;
  color: var(--ink);
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.site-nav__list a:hover { color: var(--sage-800); }
.site-nav__list a[aria-current="page"] { color: var(--sage-800); box-shadow: inset 4px 0 0 var(--coral-500); padding-left: 16px; }
.site-nav__contact { padding-top: 20px; }
.site-nav__contact p { margin: 0 0 10px; color: var(--ink-soft); }

/* Sans JavaScript : menu toujours visible, en ligne sous le logo */
html:not(.js) .site-header__inner { flex-wrap: wrap; }
html:not(.js) .site-nav { order: 3; width: 100%; }
html:not(.js) .site-nav__list { display: flex; flex-wrap: wrap; gap: 0 20px; }
html:not(.js) .site-nav__list a { border: 0; min-height: 44px; }
html:not(.js) .site-nav__contact { display: none; }

@media (max-width: 1199px) {
  .js .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 8px var(--gutter) 24px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    max-height: calc(100vh - 140px);
    overflow-y: auto;
  }
  .js .site-nav.is-open { display: block; }
}

@media (min-width: 1200px) {
  .menu-toggle, .js .menu-toggle { display: none; }
  .site-nav { display: block; }
  .site-nav__list { display: flex; gap: 4px; }
  .site-nav__home { display: none; }
  .site-nav__list a,
  html:not(.js) .site-nav__list a {
    min-height: 44px;
    padding: 8px 14px;
    border: 0;
    border-radius: 999px;
    font-size: 17px;
    white-space: nowrap;
  }
  .site-nav__list a:hover { background: var(--sage-50); }
  .site-nav__list a[aria-current="page"] { background: var(--sage-100); box-shadow: none; padding-left: 14px; }
  .site-nav__contact { display: none; }
  html:not(.js) .site-nav { order: 0; width: auto; }
  html:not(.js) .site-header__inner { flex-wrap: nowrap; }
}

/* ---------- Structure des sections ---------- */

.section { padding-block: clamp(56px, 8vw, 104px); }
.section--tight { padding-block: clamp(40px, 6vw, 72px); }
.section--sand { background: var(--sand); }
.section--sage { background: var(--sage-100); }

.section__head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 48px); }
.section__head.center,
.center .section__head { margin-inline: auto; }
.section__lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 62ch; }
.section__more { margin-top: 36px; text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--coral-700);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--coral-500);
  border-radius: 2px;
}

/* ---------- Accueil : héros ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(36px, 5vw, 72px) clamp(56px, 7vw, 96px);
  background:
    radial-gradient(60% 70% at 100% 0%, var(--coral-50) 0%, transparent 70%),
    radial-gradient(50% 60% at 0% 100%, var(--sage-50) 0%, transparent 70%),
    var(--cream);
}
.hero__grid { display: grid; gap: clamp(36px, 5vw, 64px); align-items: center; }
.hero__title { margin-bottom: 20px; }
.hero__lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--ink-soft); max-width: 36em; margin-bottom: 32px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.hero__points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-weight: 700;
}
.hero__points li { display: inline-flex; align-items: center; gap: 8px; }
.hero__points .icon { color: var(--sage-700); width: 1.4em; height: 1.4em; }

.hero__media { position: relative; }
.hero__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.hero__badge {
  position: absolute;
  left: 12px;
  bottom: -20px;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: calc(100% - 24px);
  padding: 14px 18px;
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.hero__badge .icon { width: 36px; height: 36px; color: var(--coral-700); }
.hero__badge p { margin: 0; display: flex; flex-direction: column; line-height: 1.3; }
.hero__badge span { color: var(--ink-soft); font-size: 0.9rem; }

.hero__price {
  position: absolute;
  top: -18px;
  right: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 132px;
  height: 132px;
  padding: 12px;
  border-radius: 50%;
  background: var(--coral-700);
  color: #fff;
  text-align: center;
  line-height: 1.15;
  font-size: 0.78rem;
  box-shadow: var(--shadow);
  transform: rotate(6deg);
}
.hero__price strong { font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; margin: 2px 0; }

@media (min-width: 960px) {
  .hero__grid { grid-template-columns: 1.05fr 0.95fr; }
  .hero__badge { left: -28px; bottom: 28px; }
  .hero__price { right: -18px; top: -26px; width: 148px; height: 148px; }
}
@media (max-width: 479px) {
  .hero__price { width: 112px; height: 112px; font-size: 0.72rem; }
  .hero__price strong { font-size: 1.35rem; }
  .hero__actions .btn { width: 100%; }
}

/* ---------- Bandeau de confiance ---------- */

.trust { padding-block: 36px 28px; background: var(--paper); border-block: 1px solid var(--line); }
.trust__list {
  display: grid;
  gap: 20px 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.trust__item { display: flex; align-items: center; gap: 14px; }
.trust__item > .icon {
  width: 52px;
  height: 52px;
  padding: 12px;
  border-radius: 50%;
  background: var(--sage-100);
  color: var(--sage-800);
}
.trust__item div { display: flex; flex-direction: column; line-height: 1.35; }
.trust__item span { color: var(--ink-soft); font-size: 0.95rem; }

@media (min-width: 600px) { .trust__list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .trust__list { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Cartes ---------- */

.card-grid {
  display: grid;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 640px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) {
  .card-grid { grid-template-columns: repeat(3, 1fr); }
  .card-grid--4 { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 640px) and (max-width: 999px) {
  .card-grid--3 > :last-child:nth-child(odd) { grid-column: 1 / -1; }
}

.card {
  padding: clamp(22px, 3vw, 30px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.card--plain { box-shadow: none; }
.card__icon {
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--coral-50);
  color: var(--coral-700);
}
.card__icon .icon { width: 28px; height: 28px; }
.card__title { margin-bottom: 8px; }
.card p { color: var(--ink-soft); }

/* Carte entièrement cliquable : le lien du titre s'étend à toute la carte */
.card--link { position: relative; }
.card--link:hover { border-color: var(--sage-700); box-shadow: var(--shadow); }
.card--link .card__title a { color: inherit; text-decoration: none; }
.card--link .card__title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card--link:hover .card__title a { color: var(--coral-700); text-decoration: underline; }

/* ---------- Mise en page 2 colonnes ---------- */

.split { display: grid; gap: clamp(32px, 5vw, 64px); }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; align-items: center; }
}

/* ---------- Carte tarif ---------- */

.price-card {
  padding: clamp(24px, 4vw, 36px);
  background: var(--paper);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.price-card__row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 16px;
  padding-block: 16px;
  border-bottom: 1px dashed var(--sand-line);
}
.price-card__label { font-weight: 700; }
.price-card__value { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; }
.price-card__value--muted { color: var(--ink-soft); font-size: 1.3rem; }
.price-card__row--total {
  margin-top: 16px;
  padding: 20px;
  border: 0;
  border-radius: var(--radius);
  background: var(--sage-700);
  color: #fff;
}
.price-card__row--total .price-card__value { font-size: clamp(1.7rem, 3vw, 2.1rem); }
.price-card__row--total small { font-family: var(--font-body); font-size: 1rem; font-weight: 400; margin-left: 4px; }
.price-card__note { margin: 16px 0 0; color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- Étapes ---------- */

.steps {
  display: grid;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.steps__item { position: relative; }
.steps__num {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--sage-700);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
}
.steps__title { margin-bottom: 6px; }
.steps__item p { color: var(--ink-soft); }

@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 32px; }
  .steps__item:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 26px;
    left: 68px;
    right: -20px;
    border-top: 2px dashed var(--sand-line);
  }
}

/* ---------- Histoire / blocs image + texte ---------- */

.story { display: grid; gap: clamp(32px, 5vw, 64px); align-items: center; }
.story__media { margin: 0; }
.story__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
}
.story__media figcaption { margin-top: 8px; color: var(--ink-soft); font-size: 0.85rem; }
@media (min-width: 960px) {
  .story { grid-template-columns: 1fr 1fr; }
  .story--reverse .story__media { order: 2; }
}

.award {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin: 24px 0;
  padding: 18px 20px;
  background: var(--coral-50);
  border-left: 4px solid var(--coral-500);
  border-radius: var(--radius-sm);
}
.award .icon { width: 32px; height: 32px; color: var(--coral-700); }
.award p { margin: 0; }

.award-card {
  padding: clamp(24px, 4vw, 36px);
  background: var(--paper);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border-top: 6px solid var(--coral-500);
}
.award-card__icon {
  display: inline-grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--coral-50);
  color: var(--coral-700);
}
.award-card__icon .icon { width: 34px; height: 34px; }
.award-card__kicker { margin-bottom: 4px; color: var(--coral-700); font-weight: 700; }
.award-card__title { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; }
.award-card p { color: var(--ink-soft); }
.award-card__partners { font-size: 0.95rem; }

/* ---------- Listes à cocher ---------- */

.checklist { margin: 0; padding: 0; list-style: none; }
.checklist li { display: flex; align-items: flex-start; gap: 10px; padding-block: 5px; }
.checklist .icon {
  width: 24px;
  height: 24px;
  margin-top: 2px;
  padding: 4px;
  border-radius: 50%;
  background: var(--sage-100);
  color: var(--sage-800);
  stroke-width: 2.6;
}
.checklist--card {
  padding: clamp(22px, 3vw, 32px);
  background: var(--paper);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  font-weight: 700;
}
.checklist--card li { padding-block: 10px; border-bottom: 1px solid var(--line); }
.checklist--card li:last-child { border-bottom: 0; }

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

.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
  padding: 18px 4px;
  font-size: 1.12rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.faq__question::-webkit-details-marker { display: none; }
.faq__question:hover { color: var(--sage-800); }
.faq__chevron {
  width: 36px;
  height: 36px;
  padding: 7px;
  border-radius: 50%;
  background: var(--sage-100);
  color: var(--sage-800);
  transition: transform .2s ease;
}
.faq__item[open] .faq__chevron { transform: rotate(180deg); }
.faq__answer { padding: 0 4px 24px; color: var(--ink-soft); max-width: 68ch; }

/* ---------- Bandeau d'appel à l'action ---------- */

.cta-band {
  position: relative;
  overflow: hidden;
  padding-block: clamp(48px, 7vw, 80px);
  background: var(--sage-800);
  color: #fff;
  --focus: #fff;
}
.cta-band::before,
.cta-band::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: var(--coral-500);
  opacity: 0.18;
}
.cta-band::before { width: 340px; height: 340px; right: -80px; top: -160px; }
.cta-band::after { width: 180px; height: 180px; left: -60px; bottom: -90px; opacity: 0.12; }
.cta-band__inner { position: relative; display: grid; gap: 24px; align-items: center; }
.cta-band__title { color: #fff; margin-bottom: 8px; }
.cta-band__text { color: var(--sage-100); font-size: 1.15rem; margin: 0; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (min-width: 900px) {
  .cta-band__inner { grid-template-columns: 1fr auto; }
}

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

.site-footer {
  padding-block: clamp(48px, 6vw, 72px) 24px;
  background: var(--sage-900);
  color: #c9d6d2;
  --focus: #fff;
}
.site-footer a { color: #fff; text-decoration-color: rgb(255 255 255 / 0.4); }
.site-footer a:hover { color: var(--coral-100); text-decoration-color: currentColor; }
.site-footer__grid { display: grid; gap: 36px; }
@media (min-width: 640px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .site-footer__grid { grid-template-columns: 1.5fr 1.2fr 0.9fr 0.9fr; } }

.brand--footer { margin-bottom: 16px; color: #fff; }
.brand--footer:hover { color: #fff; }
.brand--footer .brand__tag { color: #c9d6d2; }
.site-footer__brand p { max-width: 36ch; }

.site-footer__title {
  margin-bottom: 14px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
}
.site-footer__links,
.site-footer__contact { margin: 0; padding: 0; list-style: none; }
.site-footer__links li { padding-block: 5px; }
.site-footer__contact li { display: flex; align-items: flex-start; gap: 10px; padding-block: 6px; overflow-wrap: anywhere; }
.site-footer__contact .icon { margin-top: 3px; color: var(--coral-500); }

.social { display: flex; gap: 10px; margin: 20px 0 0; padding: 0; list-style: none; }
.social a {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgb(255 255 255 / 0.3);
  border-radius: 50%;
}
.social a:hover { background: rgb(255 255 255 / 0.1); }
.social .icon { width: 22px; height: 22px; }

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgb(255 255 255 / 0.15);
  font-size: 0.9rem;
}
.site-footer__bottom p { margin: 0; }

/* ---------- Barre d'actions mobile ---------- */

.action-bar { display: none; }
@media (max-width: 719px) {
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .action-bar {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 30;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: var(--paper);
    border-top: 1px solid var(--line);
    box-shadow: 0 -8px 24px -12px rgb(31 42 44 / 0.25);
  }
  .action-bar__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 54px;
    border: 2px solid var(--sage-700);
    border-radius: 14px;
    color: var(--sage-800);
    font-weight: 700;
    text-decoration: none;
  }
  .action-bar__btn--call { background: var(--sage-700); color: #fff; }
  .action-bar__btn--call:hover { color: #fff; }
}

/* ---------- En-tête des pages intérieures ---------- */

.page-hero {
  padding-block: clamp(44px, 7vw, 88px) clamp(36px, 5vw, 64px);
  background:
    radial-gradient(55% 80% at 100% 0%, var(--coral-50) 0%, transparent 70%),
    var(--cream);
  border-bottom: 1px solid var(--line);
}
.page-hero--compact { padding-block: clamp(36px, 5vw, 64px) clamp(28px, 4vw, 48px); }
.page-hero__title { max-width: 20ch; }
.center .page-hero__title { margin-inline: auto; }
.page-hero__lead { font-size: clamp(1.1rem, 1.6vw, 1.25rem); color: var(--ink-soft); max-width: 60ch; }
.center .page-hero__lead { margin-inline: auto; }

.jump { margin-top: 28px; }
.jump ul { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.jump a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 8px 20px;
  border: 2px solid var(--sage-700);
  border-radius: 999px;
  background: var(--paper);
  color: var(--sage-800);
  font-weight: 700;
  text-decoration: none;
}
.jump a:hover { background: var(--sage-50); }

/* ---------- Page services ---------- */

.service-block { display: grid; gap: clamp(28px, 4vw, 56px); }
.service-block__media { margin: 24px 0 0; }
.service-block__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
}
.service-block__items { display: grid; gap: 16px; align-content: start; }
.service-item {
  display: grid;
  grid-template-columns: minmax(155px, 36%) minmax(0, 1fr);
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.service-item__photo {
  width: 100%;
  height: 100%;
  min-height: 190px;
  object-fit: cover;
}
.service-item__body { display: grid; align-content: center; gap: 8px; min-width: 0; padding: clamp(18px, 2.4vw, 24px); }
.service-item__head { display: flex; align-items: center; gap: 12px; }
.service-item .card__icon { flex: none; margin-bottom: 0; }
.service-item__title { margin: 0; }

@media (min-width: 1120px) {
  .service-block { grid-template-columns: 5fr 6fr; align-items: start; }
  .service-block__intro { position: sticky; top: calc(var(--header-h) + 32px); }
  .service-block--reverse .service-block__intro { order: 2; }
}
@media (min-width: 640px) and (max-width: 1119px) {
  .service-block__media { max-width: 620px; }
}
@media (max-width: 639px) {
  .service-item { grid-template-columns: 1fr; }
  .service-item__photo { height: auto; min-height: 0; aspect-ratio: 16 / 9; }
}
.note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0;
  padding: 16px 20px;
  background: var(--coral-50);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
}
.note .icon { margin-top: 2px; color: var(--coral-700); }
.note--wide { margin-top: 36px; }

/* ---------- Crédit d'impôt ---------- */

.stats { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 720px) { .stats { grid-template-columns: repeat(3, 1fr); } }
.stats__item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
}
.stats__item strong {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 600;
  line-height: 1.1;
  color: var(--sage-800);
}
.stats__item span { color: var(--ink-soft); }

.simulator { display: grid; gap: clamp(28px, 4vw, 56px); }
@media (min-width: 960px) { .simulator { grid-template-columns: 5fr 6fr; align-items: start; } }
.simulator__hint {
  display: flex;
  gap: 10px;
  padding: 16px 18px;
  background: var(--paper);
  border-radius: var(--radius-sm);
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.simulator__hint .icon { margin-top: 2px; color: var(--sage-700); }
.simulator__panel {
  padding: clamp(22px, 4vw, 36px);
  background: var(--paper);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.stepper { display: flex; align-items: center; gap: 10px; }
.stepper__btn {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 2px solid var(--sage-700);
  border-radius: 14px;
  background: var(--sage-50);
  color: var(--sage-800);
  cursor: pointer;
}
.stepper__btn:hover { background: var(--sage-100); }
.stepper__btn .icon { width: 26px; height: 26px; stroke-width: 2.4; }
html:not(.js) .stepper__btn { display: none; }
.stepper__input {
  width: 110px;
  height: 58px;
  border: 2px solid var(--input-line);
  border-radius: 14px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  text-align: center;
  -moz-appearance: textfield;
  appearance: textfield;
}
.stepper__input::-webkit-outer-spin-button,
.stepper__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.simulator__result { margin-top: 28px; padding-top: 12px; border-top: 1px solid var(--line); }
.result-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 16px;
  padding-block: 12px;
}
.result-line strong { font-size: 1.15rem; }
.result-line--total {
  margin-top: 8px;
  padding: 18px 20px;
  border-radius: var(--radius);
  background: var(--sage-700);
  color: #fff;
  font-weight: 700;
}
.result-line--total strong { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 1.9rem); font-weight: 600; }
.result-note { margin: 12px 0 0; color: var(--coral-700); font-weight: 700; font-size: 0.95rem; }

.table-wrap { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--paper); }
.table { width: 100%; border-collapse: collapse; }
.table th,
.table td { padding: 16px 20px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.table thead th { background: var(--sage-700); color: #fff; font-weight: 700; }
.table tbody th { font-weight: 700; }
.table tbody tr:last-child > * { border-bottom: 0; }
.table td:last-child { font-weight: 700; color: var(--sage-800); white-space: nowrap; }

@media (max-width: 719px) {
  .table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .table tr { display: block; padding: 16px 18px; border-bottom: 1px solid var(--line); }
  .table tbody tr:last-child { border-bottom: 0; }
  .table th,
  .table td { display: block; padding: 2px 0; border: 0; }
  .table tbody th { margin-bottom: 6px; font-size: 1.05rem; }
  .table td::before { content: attr(data-label) " : "; color: var(--ink-soft); font-weight: 400; }
  .table td:last-child { white-space: normal; }
}

.legal-note { margin-top: 20px; color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- Formulaires ---------- */

.field { margin: 0 0 24px; padding: 0; border: 0; min-width: 0; }
.field__label { display: block; margin-bottom: 6px; padding: 0; font-weight: 700; font-size: 1.05rem; }
.field__hint { margin: 0 0 8px; color: var(--ink-soft); font-size: 0.95rem; }
.field__optional { font-weight: 400; color: var(--ink-soft); font-size: 0.95rem; }
.req { color: var(--coral-700); }
.field__error {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0 0 8px;
  color: var(--coral-700);
  font-weight: 700;
}
.field__error .icon { margin-top: 2px; }

.input {
  display: block;
  width: 100%;
  min-height: 56px;
  padding: 12px 16px;
  border: 2px solid var(--input-line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 1.05rem;
}
.input:focus { outline: none; border-color: var(--sage-700); box-shadow: 0 0 0 4px var(--sage-100); }
.input[aria-invalid="true"] { border-color: var(--coral-700); background: var(--coral-50); }
.input--area { min-height: 140px; resize: vertical; line-height: 1.5; }

.field-row { display: grid; gap: 0 20px; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }

.choice-row { display: flex; flex-wrap: wrap; gap: 10px; }
.choice-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }

.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice span {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 10px 18px;
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  font-weight: 700;
  transition: border-color .15s ease, background-color .15s ease;
}
.choice span::before {
  content: "";
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border: 2px solid var(--input-line);
  border-radius: 50%;
  background: var(--paper) center / 14px no-repeat;
}
.choice--check span::before { border-radius: 6px; }
.choice:hover span { border-color: var(--sage-700); }
.choice input:checked + span { border-color: var(--sage-700); background: var(--sage-50); }
.choice input:checked + span::before {
  border-color: var(--sage-700);
  background-color: var(--sage-700);
  box-shadow: inset 0 0 0 4px var(--paper);
}
.choice--check input:checked + span::before {
  box-shadow: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E");
}
.choice input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.alert {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 28px;
  padding: 20px 22px;
  border: 2px solid;
  border-radius: var(--radius);
}
.alert > .icon { width: 30px; height: 30px; }
.alert__title { margin-bottom: 6px; font-family: var(--font-body); font-size: 1.2rem; font-weight: 700; }
.alert ul { margin: 0; padding-left: 1.1em; }
.alert--success { border-color: var(--sage-700); background: var(--sage-50); }
.alert--success > .icon { color: var(--sage-700); }
.alert--error { border-color: var(--coral-700); background: var(--coral-50); }
.alert--error > .icon { color: var(--coral-700); }
.alert--error a { color: var(--coral-700); font-weight: 700; }
.alert:focus { outline: none; }

.form-privacy { margin-top: 18px; color: var(--ink-soft); font-size: 0.92rem; }

/* ---------- Page contact ---------- */

.contact { display: grid; gap: clamp(28px, 4vw, 48px); }
@media (min-width: 960px) {
  .contact { grid-template-columns: 4fr 7fr; align-items: start; }
}
.contact__channels { display: grid; gap: 12px; }
.channel {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  text-decoration: none;
}
a.channel:hover { border-color: var(--sage-700); color: var(--ink); }
.channel__icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--sage-100);
  color: var(--sage-800);
}
.channel__body { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.channel__label { color: var(--ink-soft); font-size: 0.95rem; }
.channel__value { font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; }
.channel__value--small { font-family: var(--font-body); font-size: 1rem; font-weight: 700; overflow-wrap: anywhere; }
.channel--primary { background: var(--sage-700); border-color: var(--sage-700); color: #fff; --focus: var(--coral-700); }
a.channel--primary:hover { background: var(--sage-800); color: #fff; }
.channel--primary .channel__label { color: var(--sage-100); }
.channel--primary .channel__icon { background: rgb(255 255 255 / 0.15); color: #fff; }

.reassure { margin-top: 12px; padding: 24px; background: var(--sand); border-radius: var(--radius); }
.reassure__title { font-family: var(--font-body); font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; }
.reassure__list { margin: 0; padding-left: 1.3em; }
.reassure__list li { padding-block: 4px; }

.contact__form {
  padding: clamp(22px, 4vw, 40px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.contact__form:focus { outline: none; }
.contact__title { font-size: clamp(1.5rem, 2.6vw, 1.9rem); }
.contact__intro { color: var(--ink-soft); margin-bottom: 24px; }

/* ---------- Mentions légales ---------- */

.legal { display: grid; gap: 36px; }
@media (min-width: 960px) {
  .legal { grid-template-columns: 260px 1fr; gap: 56px; align-items: start; }
  .legal__toc { position: sticky; top: calc(var(--header-h) + 32px); }
}
.legal__toc { padding: 22px 24px; background: var(--sand); border-radius: var(--radius); }
.legal__toc-title { font-weight: 700; margin-bottom: 8px; }
.legal__toc ol { margin: 0; padding-left: 1.2em; }
.legal__toc li { padding-block: 4px; }

.prose { max-width: 72ch; }
.prose h2 { margin-top: 56px; padding-top: 8px; font-size: clamp(1.5rem, 2.6vw, 1.9rem); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 28px; font-size: 1.1rem; }
.prose ul { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { padding-block: 3px; }

/* ---------- Mouvements réduits & impression ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

@media print {
  .topbar, .site-header__actions, .site-nav, .action-bar, .cta-band, .skip-link { display: none !important; }
  body { background: #fff; padding: 0; }
  .site-footer { background: #fff; color: #000; }
}
