/* ==========================================================================
   MagiClic — feuille de style commune
   Principes : sobriété, espace, typographie système, animations rares.
   ========================================================================== */

/* ---------- Jetons de design ---------- */
:root {
  color-scheme: light dark;

  /* Couleurs — mode clair */
  --bg: #ffffff;
  --bg-alt: #f4f7fb;
  --surface: #ffffff;
  --text: #16274a;
  --text-2: #4b5a75;
  --accent: #1b6bd0;          /* bleu accessible pour texte et boutons */
  --accent-hover: #155bb3;
  --on-accent: #ffffff;
  --brand-sky: #42a0ff;       /* bleu du logo, décoratif */
  --border: #e2e8f0;
  --glass: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(22, 39, 74, 0.08);
  --shadow-sm: 0 1px 2px rgba(22, 39, 74, 0.06);
  --shadow-md: 0 1px 2px rgba(22, 39, 74, 0.04), 0 8px 24px rgba(22, 39, 74, 0.08);
  --shadow-lg: 0 2px 4px rgba(22, 39, 74, 0.04), 0 24px 48px rgba(22, 39, 74, 0.12);
  --glow: rgba(66, 160, 255, 0.18);

  /* Typographie */
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display",
    "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --fs-display: clamp(2.25rem, 1.35rem + 4vw, 3.75rem);
  --fs-h2: clamp(1.75rem, 1.3rem + 2vw, 2.5rem);
  --fs-h3: 1.1875rem;
  --fs-lead: clamp(1.125rem, 1.02rem + 0.45vw, 1.3125rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.9375rem;
  --fs-xs: 0.8125rem;

  /* Espacements et formes */
  --gutter: clamp(1rem, 0.5rem + 2.5vw, 2.5rem);
  --section: clamp(4rem, 2.75rem + 5vw, 7.5rem);
  --max: 72rem;
  --radius-sm: 0.625rem;
  --radius: 1rem;
  --radius-lg: 1.375rem;
  --header-h: 4rem;
  --callbar-h: 4.75rem;

  /* Mouvement — courbe type « ressort amorti » d'iOS, sans rebond */
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1424;
    --bg-alt: #101b30;
    --surface: #131f36;
    --text: #f1f5fa;
    --text-2: #a6b3c8;
    --accent: #42a0ff;
    --accent-hover: #6cb5ff;
    --on-accent: #0b1424;
    --border: #22314f;
    --glass: rgba(11, 20, 36, 0.72);
    --glass-border: rgba(255, 255, 255, 0.08);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, 0.3), 0 24px 48px rgba(0, 0, 0, 0.35);
    --glow: rgba(66, 160, 255, 0.14);
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.6;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent;
}

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

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text);
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

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

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

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

.skip-link {
  position: absolute;
  top: 0.75rem; left: 0.75rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; color: var(--on-accent); }

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

/* ---------- Typographie : taille, interlignage et approche vont ensemble ---------- */
.display {
  font-size: var(--fs-display);
  line-height: 1.06;
  letter-spacing: -0.028em;
  font-weight: 700;
}
.h2 {
  font-size: var(--fs-h2);
  line-height: 1.12;
  letter-spacing: -0.022em;
}
.h3 {
  font-size: var(--fs-h3);
  line-height: 1.3;
  letter-spacing: -0.01em;
  font-weight: 650;
}
.lead {
  font-size: var(--fs-lead);
  line-height: 1.55;
  letter-spacing: -0.005em;
  color: var(--text-2);
}
.muted { color: var(--text-2); }
.small { font-size: var(--fs-small); line-height: 1.55; }

/* Étiquette encadrée de crochets, reprise du logo */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text-2);
}
.eyebrow::before,
.eyebrow::after {
  color: var(--brand-sky);
  font-weight: 500;
  font-size: 1.25em;
  line-height: 1;
}
.eyebrow::before { content: "["; }
.eyebrow::after { content: "]"; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.75rem 1.375rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease,
    transform 200ms var(--ease-out);
}
/* Retour immédiat à l'appui, pas au relâchement */
.btn:active { transform: scale(0.97); transition-duration: 80ms; }

.btn--primary { background: var(--accent); color: var(--on-accent); box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--accent-hover); color: var(--on-accent); }

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

.btn--small { min-height: 2.5rem; padding: 0.5rem 1rem; font-size: var(--fs-small); }
.btn--large { min-height: 3.5rem; padding: 1rem 1.75rem; font-size: 1.0625rem; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-weight: 600;
}
.link-arrow .icon { transition: transform 250ms var(--ease-out); }
.link-arrow:hover .icon { transform: translateX(3px); }

/* ---------- En-tête translucide ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--glass);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid transparent;
  transition: border-color 250ms ease, box-shadow 250ms ease;
}
/* Séparation uniquement quand du contenu passe dessous */
.site-header.is-scrolled { border-bottom-color: var(--glass-border); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: var(--header-h);
}

.brand { display: inline-flex; align-items: center; flex: none; padding: 0.25rem 0; }
.brand img { width: auto; height: 2rem; }

.nav { display: none; }
.nav ul { display: flex; align-items: center; gap: 0.25rem; }
.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  padding: 0.5rem 0.875rem;
  border-radius: 999px;
  color: var(--text-2);
  font-size: var(--fs-small);
  font-weight: 500;
  transition: color 200ms ease, background-color 200ms ease;
}
.nav a:hover { color: var(--text); background: var(--bg-alt); }
.nav a[aria-current="page"] { color: var(--text); font-weight: 600; }

.header-actions { display: flex; align-items: center; gap: 0.5rem; }
.header-call { display: none; }

/* Bouton menu (mobile) */
.menu-toggle {
  display: inline-grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-right: -0.5rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: background-color 150ms ease, transform 150ms var(--ease-out);
}
.menu-toggle:active { background: var(--bg-alt); transform: scale(0.94); }
.menu-toggle span {
  grid-area: 1 / 1;
  display: block;
  width: 1.125rem;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 350ms var(--ease);
}
.menu-toggle span:nth-child(1) { transform: translateY(-3.5px); }
.menu-toggle span:nth-child(2) { transform: translateY(3.5px); }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { transform: rotate(-45deg); }

/* Panneau du menu mobile : descend de l'en-tête et y remonte (même trajet) */
.mobile-menu {
  position: fixed;
  inset: var(--header-h) 0 auto 0;
  z-index: 49;
  max-height: calc(100dvh - var(--header-h));
  overflow-y: auto;
  padding: 0.5rem var(--gutter) 1.5rem;
  background: var(--glass);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--shadow-lg);
  transform-origin: top center;
  opacity: 0;
  transform: translateY(-0.75rem) scale(0.985);
  visibility: hidden;
  transition: opacity 250ms ease, transform 450ms var(--ease), visibility 0s linear 450ms;
}
.mobile-menu.is-open {
  opacity: 1;
  transform: none;
  visibility: visible;
  transition: opacity 200ms ease, transform 450ms var(--ease), visibility 0s;
}
.mobile-menu a:not(.btn) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 3.25rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.mobile-menu a[aria-current="page"] { color: var(--accent); }
.mobile-menu .btn { width: 100%; margin-top: 1.25rem; }

.menu-scrim {
  position: fixed;
  inset: 0;
  z-index: 48;
  background: rgba(11, 20, 36, 0.25);
  opacity: 0;
  visibility: hidden;
  transition: opacity 300ms ease, visibility 0s linear 300ms;
}
.menu-scrim.is-open { opacity: 1; visibility: visible; transition: opacity 300ms ease, visibility 0s; }

/* ---------- Sections ---------- */
.section { padding-block: var(--section); }
.section--alt { background: var(--bg-alt); }
.section--cta { padding-top: 0; } /* suit une section de même fond */

.section-head { max-width: 40rem; margin-bottom: clamp(2.5rem, 2rem + 2vw, 3.5rem); }
.section-head .eyebrow { margin-bottom: 1rem; }
.section-head .lead { margin-top: 1rem; }
.section-head--center { margin-inline: auto; text-align: center; }

/* ---------- Accueil : introduction ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3rem, 2rem + 5vw, 6.5rem) clamp(3.5rem, 2.5rem + 5vw, 7rem);
}
/* Halo bleu fixe et discret, rappel du logo */
.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto auto;
  width: min(48rem, 110vw);
  aspect-ratio: 1;
  background: radial-gradient(closest-side, var(--glow), transparent);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  gap: clamp(2.5rem, 2rem + 3vw, 4.5rem);
  align-items: center;
}
.hero .eyebrow { margin-bottom: 1.25rem; }
.hero .lead { max-width: 34rem; margin-top: 1.25rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  margin-top: 2.25rem;
  color: var(--text-2);
  font-size: var(--fs-small);
}
.hero-facts li { display: inline-flex; align-items: center; gap: 0.5rem; }
.hero-facts .icon { color: var(--accent); }

/* Carte contact — matière translucide posée sur le halo */
.contact-card {
  padding: clamp(1.5rem, 1.25rem + 1.5vw, 2.25rem);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}
.contact-card .eyebrow { margin-bottom: 0.75rem; }
.contact-card__title { font-size: 1.25rem; line-height: 1.3; letter-spacing: -0.012em; }
.contact-card__phone {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  margin-top: 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 1.4rem + 1.6vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}
.contact-card__phone:hover { color: var(--accent); }
.contact-card__note { margin-top: 0.875rem; color: var(--text-2); font-size: var(--fs-small); }
.contact-card__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0.625rem; margin-top: 1.5rem; }
.contact-card__actions .btn { padding-inline: 1rem; }
.contact-card__list {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: var(--fs-small);
}
.contact-card__list li { display: flex; align-items: center; gap: 0.75rem; color: var(--text-2); }
.contact-card__list .icon { color: var(--accent); }
.contact-card__list a { color: var(--text); font-weight: 500; }
.contact-card__list a:hover { color: var(--accent); }

/* ---------- Cartes de services ---------- */
.cards { display: grid; gap: 1rem; }
.card {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.card__icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 0.5rem;
  border-radius: 0.75rem;
  background: color-mix(in srgb, var(--brand-sky) 14%, transparent);
  color: var(--accent);
}
.card__icon .icon { width: 1.375rem; height: 1.375rem; }
.card p { color: var(--text-2); font-size: var(--fs-small); }

.card--link {
  justify-content: center;
  align-items: flex-start;
  background: transparent;
  border-style: dashed;
}
.card--link p { margin-bottom: 0.5rem; }

/* ---------- Pourquoi MagiClic ---------- */
.why { display: grid; gap: clamp(2.5rem, 2rem + 3vw, 5rem); align-items: start; }
.why__text p + p { margin-top: 1.125rem; }
.why__text .lead { color: var(--text); }
.why__sign { margin-top: 1.75rem; font-weight: 600; }
.why__sign span { display: block; color: var(--text-2); font-weight: 400; font-size: var(--fs-small); }

.values { display: grid; gap: 1.5rem; }
.value { display: grid; grid-template-columns: auto 1fr; gap: 0.25rem 1rem; }
.value .card__icon { grid-row: span 2; margin: 0; }
.value p { color: var(--text-2); font-size: var(--fs-small); }

/* ---------- Tarifs (aperçu) ---------- */
.prices { display: grid; gap: 1rem; }
.price {
  padding: 1.75rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.price__who { color: var(--text-2); font-size: var(--fs-small); font-weight: 600; }
.price__amount {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.375rem;
  margin-top: 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 1.9rem + 1.5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}
.price__amount small { font-size: 1rem; font-weight: 500; letter-spacing: 0; color: var(--text-2); }
.price__desc { margin-top: 0.75rem; color: var(--text-2); font-size: var(--fs-small); }
.prices-note {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
  margin-top: 1.5rem;
  color: var(--text-2);
  font-size: var(--fs-small);
}
.prices-note li, .conditions li { display: flex; gap: 0.5rem; }
.prices-note .icon, .conditions .icon { color: var(--accent); margin-top: 0.15em; }

/* Volet dépliable : frais de déplacement et conditions */
.disclosure {
  margin-top: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.disclosure summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.5rem;
  padding: 1rem 1.5rem;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
  user-select: none;
  border-radius: var(--radius);
  transition: background-color 150ms ease;
}
.disclosure summary::-webkit-details-marker { display: none; }
.disclosure summary:active { background: var(--bg-alt); }
.disclosure summary .icon { color: var(--text-2); transition: transform 350ms var(--ease); }
.disclosure[open] summary .icon { transform: rotate(180deg); }
.disclosure__body {
  display: grid;
  gap: 2rem;
  padding: 0.25rem 1.5rem 1.75rem;
}
.disclosure__body .h3 { margin-bottom: 0.5rem; }
.conditions { display: grid; gap: 0.625rem; font-size: var(--fs-small); color: var(--text-2); }

.fees {
  width: 100%;
  max-width: 22rem;
  margin-top: 1rem;
  border-collapse: collapse;
  font-size: var(--fs-small);
  font-variant-numeric: tabular-nums;
}
.fees th, .fees td { padding: 0.5rem 0; border-bottom: 1px solid var(--border); text-align: left; }
.fees th { color: var(--text-2); font-weight: 600; font-size: var(--fs-xs); letter-spacing: 0.02em; }
.fees td:last-child, .fees th:last-child { text-align: right; }
.fees td:last-child { font-weight: 600; }

/* ---------- Zone d'intervention ---------- */
.zone { display: grid; gap: clamp(2rem, 1.5rem + 3vw, 4rem); align-items: start; }
.zone .section-head { margin-bottom: 0; }
.zone__remote {
  display: flex;
  gap: 0.875rem;
  margin-top: 1.75rem;
  padding: 1.25rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: var(--fs-small);
  color: var(--text-2);
}
.zone__remote strong { display: block; color: var(--text); font-size: 1rem; margin-bottom: 0.125rem; }
.zone__remote .icon { color: var(--accent); width: 1.5rem; height: 1.5rem; }

.towns { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.towns li {
  padding: 0.4375rem 0.875rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  font-size: var(--fs-small);
  line-height: 1.4;
  color: var(--text-2);
}
.towns li.is-home {
  border-color: transparent;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
}
.towns li.is-more { border-style: dashed; }

/* ---------- Bandeau d'appel final ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  padding: clamp(2.5rem, 2rem + 3vw, 4.5rem) clamp(1.5rem, 1rem + 3vw, 4rem);
  border-radius: var(--radius-lg);
  background: #16274a;
  color: #f1f5fa;
  text-align: center;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: auto -20% -60% -20%;
  height: 120%;
  background: radial-gradient(closest-side, rgba(66, 160, 255, 0.28), transparent);
  pointer-events: none;
}
.cta-band > * { position: relative; }
.cta-band .h2 { color: #fff; }
.cta-band p { max-width: 32rem; margin: 1rem auto 0; color: #c3cee0; }
.cta-band .eyebrow { color: #c3cee0; margin-bottom: 1rem; }
.cta-band__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin-top: 2rem; }
.cta-band .btn--primary { background: #42a0ff; color: #0b1424; }
.cta-band .btn--primary:hover { background: #6cb5ff; }
.cta-band .btn--secondary { color: #fff; border-color: rgba(255, 255, 255, 0.24); }
.cta-band .btn--secondary:hover { background: rgba(255, 255, 255, 0.08); }
@media (prefers-color-scheme: dark) {
  .cta-band { background: #16274a; border: 1px solid rgba(255, 255, 255, 0.06); }
}

/* ---------- Pages de texte (légal) ---------- */
.page-head {
  padding-block: clamp(3rem, 2rem + 4vw, 5rem) clamp(2rem, 1.5rem + 2vw, 3rem);
  background: var(--bg-alt);
}
.page-head .eyebrow { margin-bottom: 1rem; }
.page-head .h1 {
  font-size: clamp(2rem, 1.5rem + 2.5vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
}
.page-head p { margin-top: 0.875rem; color: var(--text-2); font-size: var(--fs-small); }

.prose {
  max-width: 46rem;
  padding-block: clamp(2.5rem, 2rem + 2vw, 4rem) var(--section);
  color: var(--text);
}
.prose h2 {
  margin-top: 2.75rem;
  font-size: 1.375rem;
  line-height: 1.3;
  letter-spacing: -0.015em;
  scroll-margin-top: calc(var(--header-h) + 1rem);
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.75rem; font-size: 1.0625rem; line-height: 1.4; letter-spacing: -0.005em; }
.prose p, .prose ul, .prose ol, .prose .table-wrap, .prose .info-card { margin-top: 0.875rem; }
.prose p, .prose li { color: var(--text-2); }
.prose strong { color: var(--text); font-weight: 600; }
.prose ul { padding-left: 1.25rem; list-style: disc; }
.prose ul li { padding-left: 0.25rem; }
.prose li + li { margin-top: 0.375rem; }
.prose li::marker { color: var(--brand-sky); }
.prose a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose hr { margin: 3rem 0 0; border: 0; border-top: 1px solid var(--border); }

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  -webkit-overflow-scrolling: touch;
}
.prose table { width: 100%; min-width: 34rem; border-collapse: collapse; font-size: var(--fs-small); }
.prose th, .prose td { padding: 0.75rem 1rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
.prose th { background: var(--bg-alt); color: var(--text); font-weight: 600; }
.prose td { color: var(--text-2); }
.prose tr:last-child td { border-bottom: 0; }

.info-card {
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  font-size: var(--fs-small);
}
.info-card p { margin: 0; }
.info-card p + p { margin-top: 0.25rem; }

.toc { margin-top: 2rem; }
.toc ol {
  display: grid;
  gap: 0.375rem;
  padding: 0 1.5rem 1.5rem;
  font-size: var(--fs-small);
  list-style: none;
}
.toc ol a { color: var(--text-2); text-decoration: none; }
.toc ol a:hover { color: var(--accent); }

.form-model {
  margin-top: 1rem;
  padding: 1.5rem;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}

/* ---------- Page 404 ---------- */
.not-found {
  display: grid;
  place-items: center;
  min-height: calc(100dvh - var(--header-h) - var(--callbar-h));
  padding-block: 4rem;
  text-align: center;
}
.not-found__code {
  font-family: var(--font-display);
  font-size: clamp(4rem, 3rem + 6vw, 7rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.not-found__code span { color: var(--brand-sky); font-weight: 400; }
.not-found .h2 { margin-top: 1.5rem; }
.not-found p { max-width: 28rem; margin: 1rem auto 0; color: var(--text-2); }
.not-found .hero-actions { justify-content: center; }

/* ---------- Pied de page ---------- */
.site-footer {
  padding-block: clamp(3rem, 2.5rem + 2vw, 4.5rem) 2rem;
  border-top: 1px solid var(--border);
  font-size: var(--fs-small);
  color: var(--text-2);
}
.footer-grid { display: grid; gap: 2.5rem; }
.footer-brand img { height: 1.75rem; width: auto; }
.footer-brand p { margin-top: 1rem; max-width: 22rem; }
.footer-col h2 {
  margin-bottom: 0.875rem;
  font-family: var(--font);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
}
.footer-col ul { display: grid; gap: 0.5rem; }
.footer-col a { color: var(--text-2); }
.footer-col a:hover { color: var(--accent); }
.footer-col address { font-style: normal; line-height: 1.7; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: var(--fs-xs);
}
.footer-bottom--solo { margin-top: 0; padding-top: 0; border-top: 0; }
.footer-bottom a[aria-current="page"] { color: var(--text); font-weight: 600; }
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
.footer-bottom a { color: var(--text-2); }

/* ---------- Barre d'appel fixe (mobile) ---------- */
.callbar {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 40;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 0.625rem;
  padding: 0.75rem var(--gutter) calc(0.75rem + env(safe-area-inset-bottom));
  background: var(--glass);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border-top: 1px solid var(--glass-border);
}
.callbar .btn { min-height: 3.125rem; }
body { padding-bottom: calc(var(--callbar-h) + env(safe-area-inset-bottom)); }

/* ---------- Apparition au défilement : une seule fois, discrète ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(1rem);
  transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out);
  transition-delay: calc(var(--i, 0) * 70ms);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   Grands écrans
   ========================================================================== */
@media (min-width: 40em) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .prices { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 56em) {
  .disclosure__body { grid-template-columns: 1fr 1fr; gap: 3rem; }
  .why { grid-template-columns: 1.15fr 1fr; }
  .zone { grid-template-columns: 1fr 1.1fr; }
}

@media (min-width: 64em) {
  :root { --header-h: 4.25rem; }
  .nav { display: block; }
  .menu-toggle, .mobile-menu, .menu-scrim { display: none; }
  .header-call { display: inline-flex; }
  .brand img { height: 2.125rem; }

  .hero-grid { grid-template-columns: 1.25fr 1fr; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .card { padding: 1.75rem; }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; }

  .callbar { display: none; }
  body { padding-bottom: 0; }
}

@media (hover: hover) {
  .card:not(.card--link) { transition: border-color 250ms ease, box-shadow 250ms ease; }
  .card:not(.card--link):hover { border-color: color-mix(in srgb, var(--accent) 35%, var(--border)); box-shadow: var(--shadow-md); }
}

/* ==========================================================================
   Accessibilité : préférences du système
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
    animation: none !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
  .mobile-menu { transform: none; transition: opacity 150ms ease, visibility 0s linear 150ms !important; }
  .mobile-menu.is-open { transition: opacity 150ms ease !important; }
  .btn:active, .menu-toggle:active { transform: none; }
}

@media (prefers-reduced-transparency: reduce) {
  .site-header, .mobile-menu, .callbar {
    background: var(--bg);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

@media (prefers-contrast: more) {
  :root { --border: currentColor; --glass-border: currentColor; --text-2: var(--text); }
  .site-header, .mobile-menu, .callbar { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; }
}

@media print {
  .site-header, .callbar, .mobile-menu, .menu-scrim, .hero::before { display: none !important; }
  body { padding: 0; }
}
