/* ==========================================================================
   hoomie dev — base & composants
   Ordre de chargement : tokens.css puis base.css, puis css/pages/<page>.css.
   Ce fichier contient les grandes lignes (reset, typo, layout, composants
   partagés). Les styles propres à une page vont dans css/pages/.
   Modifications : agent Fondations seulement.
   ========================================================================== */

/* ---------- 1. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--c-ink);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: var(--c-ink); text-decoration: none; }
a:hover { color: var(--c-accent-label); }

:focus-visible {
  outline: 3px solid var(--c-focus);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}
/* Les composants en pilule gardent leur forme au focus (sinon le rayon saute à 12 px) */
.btn:focus-visible,
.pill:focus-visible,
.nav a:focus-visible { border-radius: var(--r-pill); }

.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;
}

/* ---------- 2. Typographie ---------- */
.t-display {
  font-size: var(--fs-display);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-display);
  font-weight: var(--fw-bold);
}
.t-h2 {
  font-size: var(--fs-h2);
  line-height: var(--lh-heading);
  letter-spacing: var(--ls-heading);
  font-weight: var(--fw-bold);
}
.t-h3 { font-size: var(--fs-h3); line-height: 1.25; font-weight: var(--fw-bold); }
.t-soft { font-weight: var(--fw-regular); color: var(--c-subtle); } /* 2e partie d'un titre */
.t-lead { font-size: var(--fs-lead); line-height: var(--lh-body); color: var(--c-muted); max-width: 30em; }
.t-small { font-size: var(--fs-small); line-height: var(--lh-card); color: var(--c-muted); }
.t-caption { font-size: var(--fs-caption); color: var(--c-subtle); }
.t-eyebrow {
  font-size: var(--fs-caption);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--c-accent-label);
}

/* ---------- 3. Layout ---------- */
.page { padding: var(--page-pad-y) var(--space-4) var(--space-10); }
.shell {
  max-width: var(--container);
  margin: 0 auto;
  background: var(--c-surface);
  border-radius: var(--r-2xl);
  overflow: hidden;
}
.section { padding: var(--section-y) var(--gutter); }
.section--white { background: var(--c-white); }
.section__head {
  display: flex; flex-wrap: wrap; gap: var(--space-4);
  justify-content: space-between; align-items: flex-end;
  margin-bottom: var(--space-10);
}
.section__head > :first-child { max-width: 560px; }
.section__head .t-h2 { margin-top: 10px; }

.stack { display: flex; flex-direction: column; gap: var(--stack-gap, var(--space-6)); }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--row-gap, var(--space-3)); }

/* Grille 2 colonnes qui s'empile sous ~460px de large par colonne */
.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--split-min, 420px)), 1fr));
  gap: var(--split-gap, var(--space-8));
  align-items: center;
}
/* Grille de cartes : --grid-min règle la largeur mini d'une carte */
.grid-auto {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--grid-min, 260px)), 1fr));
  gap: var(--grid-gap, var(--space-4));
}

/* ---------- 4. En-tête & navigation ---------- */
.site-header {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: var(--space-4);
  padding: var(--header-pad-y) var(--gutter);
}
.logo { display: inline-flex; align-items: center; gap: 6px; color: var(--c-ink); }
/* Logo définitif (docs/06-logo.md) : 24 px de haut sur ordinateur, 22 px sur mobile */
.logo { min-height: var(--touch); }
.logo__img { display: block; width: auto; height: 24px; }
@media (max-width: 720px) { .logo__img { height: 22px; } }
/* Nom du pôle à côté du logo (« dev ») : graisse 400, gris, même procédé que la 2e partie des titres */
.logo__pole {
  font-size: var(--fs-h3);
  font-weight: var(--fw-regular);
  letter-spacing: var(--ls-heading);
  line-height: 1;
  color: var(--c-subtle);
  transform: translateY(2px); /* aligné sur la ligne de base du mot hoomie */
}
@media (max-width: 720px) { .logo__pole { font-size: var(--fs-body); } }
/* 320 px avec espacement de texte agrandi : on garde le mot hoomie seul (WCAG 1.4.12) */
@media (max-width: 360px) { .logo__pole { display: none; } }

/* Bouton de l'en-tête : libellé court sur mobile (« Devis ») pour laisser la place au logo */
.cta-lbl--short { display: none; }
@media (max-width: 720px) {
  .cta-lbl--long { display: none; }
  .cta-lbl--short { display: inline; }
}

.nav {
  display: flex; gap: 6px;
  background: var(--c-white);
  padding: 6px;
  border-radius: var(--r-pill);
  overflow-x: auto;
  scrollbar-width: none;
}
.nav a {
  display: inline-flex; align-items: center;
  flex-shrink: 0;
  min-height: var(--touch);
  white-space: nowrap;
  padding: 10px 18px;
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: var(--fw-semibold);
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.nav a:hover { background: var(--c-surface); color: var(--c-ink); }
.nav a:active { background: var(--c-surface-2); }
.nav a[aria-current="page"],
.nav a[aria-current="page"]:hover { background: var(--c-ink); color: var(--c-on-dark); }
/* La capsule défile (overflow) : le contour de focus passe à l'intérieur pour ne pas être rogné */
.nav a:focus-visible { outline-offset: calc(var(--space-1) * -1); }
.nav a[aria-current="page"]:focus-visible { outline-color: var(--c-accent); }

/* Tablette et mobile : logo + bouton sur la 1re ligne, capsule pleine largeur dessous
   (le bouton de devis reste sur la 1re ligne) */
@media (max-width: 960px) {
  .site-header .nav { order: 3; width: 100%; justify-content: space-between; }
}
/* Capsule qui défile : fondu sur le bord masqué (classes posées par js/motion.js) */
.nav.is-scrollable {
  --nav-fade-l: var(--c-ink);
  --nav-fade-r: var(--c-ink);
  -webkit-mask-image: linear-gradient(90deg, var(--nav-fade-l), var(--c-ink) var(--space-10), var(--c-ink) calc(100% - var(--space-10)), var(--nav-fade-r));
          mask-image: linear-gradient(90deg, var(--nav-fade-l), var(--c-ink) var(--space-10), var(--c-ink) calc(100% - var(--space-10)), var(--nav-fade-r));
}
.nav.is-scrollable:not(.is-start) { --nav-fade-l: transparent; }
.nav.is-scrollable:not(.is-end) { --nav-fade-r: transparent; }


/* ---------- 4 bis. Menu burger (≤ 720 px, avec JS) ----------
   html.has-nav-js est posé par le script en ligne de l'en-tête et retiré si
   js/nav.js ne se charge pas. Sans JS : capsule d'origine (règles ci-dessus).
   Entre 721 et 960 px, la capsule pleine largeur sur 2e ligne est conservée. */
.nav-toggle { display: none; }

@media (max-width: 720px) {
  .has-nav-js .site-header { position: relative; flex-wrap: nowrap; gap: var(--space-2); }
  .has-nav-js .site-header .logo { margin-right: auto; }
  .has-nav-js .site-header__cta { flex-shrink: 0; padding-inline: var(--space-4); }

  .has-nav-js .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    width: var(--touch); height: var(--touch);
    padding: 0;
    border: 0;
    border-radius: var(--r-pill);
    background: var(--c-white);
    color: var(--c-ink);
    cursor: pointer;
    transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
  }
  .has-nav-js .nav-toggle:hover { background: var(--c-surface-2); }
  .has-nav-js .nav-toggle[aria-expanded="true"] { background: var(--c-ink); color: var(--c-on-dark); }
  .nav-toggle:focus-visible { border-radius: var(--r-pill); }
  .nav-toggle__icon { width: var(--space-6); height: var(--space-6); }
  .nav-toggle__icon--close,
  .nav-toggle[aria-expanded="true"] .nav-toggle__icon--open { display: none; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__icon--close { display: block; }

  /* Panneau : carte blanche flottante sous la rangée logo / devis / burger */
  .has-nav-js .site-header .nav {
    display: none;
    position: absolute; z-index: 20;
    top: calc(100% - var(--space-4));
    left: var(--gutter); right: var(--gutter);
    order: 0; width: auto;
    flex-direction: column; justify-content: flex-start; gap: var(--space-1);
    max-height: var(--nav-panel-max-h, none);
    padding: var(--space-2);
    overflow-x: hidden; overflow-y: auto;
    border-radius: var(--r-xl);
    background: var(--c-white);
    box-shadow: var(--shadow-float-lg);
    -webkit-mask-image: none;
            mask-image: none;
  }
  .has-nav-js .site-header.is-open .nav { display: flex; }
  .has-nav-js .site-header .nav a {
    min-height: var(--space-12);
    padding: var(--space-3) var(--space-4);
    border-radius: var(--r-md);
    font-size: var(--fs-body);
    white-space: normal;
  }
  .has-nav-js .site-header .nav a:focus-visible { border-radius: var(--r-md); }

  /* Défilement de la page bloqué pendant l'ouverture */
  html.nav-open { overflow: hidden; }
}

/* Très petits écrans (320 px) : logo + « Devis gratuit » + burger tiennent sur une ligne */
@media (max-width: 360px) {
  .has-nav-js .site-header { gap: var(--space-1); }
  .has-nav-js .site-header__cta { padding-inline: var(--space-3); }
  .has-nav-js .site-header__cta svg { display: none; }
}

@media (max-width: 720px) and (prefers-reduced-motion: no-preference) {
  .has-nav-js .site-header.is-open .nav { animation: hoomie-nav-in var(--dur) var(--ease); }
}
@keyframes hoomie-nav-in {
  from { opacity: 0; transform: translateY(calc(var(--space-2) * -1)); }
  to   { opacity: 1; transform: none; }
}

/* ---------- 5. Boutons & pastilles ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: var(--touch);
  padding: 16px 26px;
  border: 0;
  border-radius: var(--r-pill);
  font-size: var(--fs-small);
  font-weight: var(--fw-bold);
  line-height: 1;
  text-align: center;
  cursor: pointer;
  transition:
    transform var(--dur-fast) var(--ease),
    background var(--dur-fast) var(--ease),
    box-shadow var(--dur-fast) var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn--sm { padding: 13px 20px; font-size: 14px; }
.btn--lg { padding: 18px 28px; font-size: var(--fs-body); }
/* Pleine largeur : le libellé peut passer sur 2 lignes à 375 px, on lui laisse de l'air */
.btn--block { width: 100%; line-height: var(--lh-heading); text-wrap: balance; }
.btn--primary { background: var(--c-ink); color: var(--c-on-dark); }
.btn--primary:hover { color: var(--c-on-dark); background: color-mix(in srgb, var(--c-ink) 86%, var(--c-white)); }
.btn--ghost { background: var(--c-white); color: var(--c-ink); }
.btn--ghost:hover { color: var(--c-ink); box-shadow: inset 0 0 0 1px var(--c-line-strong); }
.btn--accent { background: var(--c-accent); color: var(--c-ink); }
.btn--accent:hover { color: var(--c-ink); background: color-mix(in srgb, var(--c-accent) 88%, var(--c-accent-label)); }
/* Bouton secondaire posé sur fond sombre (bandeau CTA) : contour clair, texte blanc (17:1) */
.btn--ghost.btn--on-dark { background: transparent; color: var(--c-on-dark); box-shadow: inset 0 0 0 1px var(--c-on-dark-muted); }
.btn--ghost.btn--on-dark:hover {
  color: var(--c-on-dark);
  background: color-mix(in srgb, var(--c-ink) 86%, var(--c-white));
  box-shadow: inset 0 0 0 1px var(--c-on-dark);
}
.btn svg { width: 16px; height: 16px; flex-shrink: 0; transition: transform var(--dur) var(--ease); }
/* La flèche ↗ glisse légèrement vers sa direction */
.btn:hover svg { transform: translate(calc(var(--space-1) / 2), calc(var(--space-1) / -2)); }
/* Focus sur fond sombre (bandeau CTA) : contour lavande, lisible sur l'encre */
.cta-band :focus-visible { outline-color: var(--c-accent); }

.pill {
  display: inline-flex; align-items: center; gap: var(--space-2);
  align-self: flex-start;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  background: var(--c-white);
  font-size: var(--fs-caption);
  font-weight: var(--fw-semibold);
  color: var(--c-ink-2);
}
.pill--accent { background: var(--c-accent); color: var(--c-ink); font-weight: var(--fw-bold); }
/* Pastilles cliquables (liens, onglets) : mêmes transitions partout */
a.pill, button.pill {
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
a.pill:active, button.pill:active { transform: scale(0.97); }
.pill--dot::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--dot, var(--c-success));
}

/* ---------- 6. Cartes & tuiles ---------- */
.card {
  display: flex; flex-direction: column; gap: var(--space-3);
  padding: 26px;
  border-radius: var(--r-xl);
  background: var(--c-surface);
}
.card--white { background: var(--c-white); }
.card--accent { background: var(--c-accent); }
.card--accent .t-small { color: var(--c-accent-ink); }

.icon-tile {
  width: 48px; height: 48px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--r-md);
  background: var(--c-white);
  color: var(--c-ink);
}
.icon-tile--sm { width: 40px; height: 40px; border-radius: var(--r-sm); }
.icon-tile--accent { background: var(--c-accent); }
.icon-tile--lavender { background: var(--c-lavender); }
.icon-tile--lime { background: var(--c-lime); }
.icon-tile svg { width: 22px; height: 22px; }
.icon-tile--sm svg { width: 20px; height: 20px; }


/* ---------- 7. Hero visuel & widgets flottants ---------- */
.hero-visual {
  position: relative;
  display: flex; align-items: flex-end;
  min-height: 480px;
  padding: 64px var(--space-6) var(--space-10);
  border-radius: var(--r-2xl);
  background: var(--c-surface-2);
}

.widget {
  position: absolute;
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
  border-radius: var(--r-lg);
  background: var(--c-white);
  box-shadow: var(--shadow-float);
}
.widget--dark { background: var(--c-ink); color: var(--c-on-dark); box-shadow: none; }
.widget__title { font-size: var(--fs-caption); font-weight: var(--fw-bold); }
.widget__meta { font-size: var(--fs-micro); color: var(--c-subtle); }
.widget--dark .widget__meta { color: var(--c-on-dark-muted); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c-live); flex-shrink: 0; }

/* Sur mobile, les widgets sortent de l'image et s'empilent dessous */
@media (max-width: 720px) {
  .hero-visual { flex-direction: column; align-items: stretch; gap: var(--space-3); min-height: 0; }
  .hero-visual .widget { position: static; }
  .widget--hide-mobile { display: none; }
}

/* ---------- 9. Méthode ---------- */
.step { background: var(--c-white); }
.step__num {
  align-self: flex-start;
  padding: 6px 10px;
  border-radius: var(--r-pill);
  background: var(--c-accent);
  font-size: var(--fs-caption);
  font-weight: var(--fw-extrabold);
}

.feature {
  display: flex; align-items: center; gap: 14px;
  padding: 14px var(--space-4);
  border-radius: var(--r-lg);
  background: var(--c-surface);
  font-size: var(--fs-small); font-weight: var(--fw-semibold);
}

/* ---------- 11. Bandeau CTA ---------- */
.cta-band {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: var(--space-7);
  margin: 0 var(--gutter);
  padding: var(--space-14) var(--space-12);
  border-radius: var(--r-2xl);
  background: var(--c-ink);
  color: var(--c-on-dark);
}
.cta-band .t-h2 { max-width: 14em; line-height: 1.06; }
.cta-band__hl { color: var(--c-accent); }
.cta-band p { color: var(--c-on-dark-muted); font-size: 17px; }
@media (max-width: 720px) { .cta-band { padding: var(--space-10) var(--space-6); } }

/* ---------- 12. Formulaires ---------- */
.form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: var(--space-4);
  padding: var(--space-7);
  border-radius: var(--r-2xl);
  background: var(--c-white);
}
.form__full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: var(--fs-caption); font-weight: var(--fw-bold); }
.input {
  width: 100%;
  min-height: var(--touch);
  padding: 14px var(--space-4);
  border: 1px solid var(--c-input-border);
  border-radius: var(--r-md);
  background: var(--c-surface);
  font-size: var(--fs-small);
  font-weight: var(--fw-medium);
}
/* Contour transparent : invisible d'ordinaire, mais affiché en mode contraste élevé (RGAA 10.7) */
.input:focus { outline: 2px solid transparent; outline-offset: 2px; border-color: var(--c-ink); background: var(--c-white); }
textarea.input { resize: vertical; min-height: 120px; }
.form__legal { font-size: var(--fs-micro); color: var(--c-subtle); font-weight: var(--fw-medium); }
.form__legal a { color: var(--c-ink); text-decoration: underline; text-underline-offset: 0.2em; }
.form__legal a:hover { color: var(--c-accent-label); }
.form { position: relative; }
/* Zone de statut vide : sortie de la grille pour ne pas ajouter un « gap » fantôme
   (elle reste dans le DOM et l'arbre d'accessibilité, donc annoncée dès qu'elle se remplit) */
.form > .form__status:empty { position: absolute; }

/* États et compléments gérés par js/form.js (remontés de contact.css) */

/* En-tête du formulaire */
.form__intro { display: flex; flex-direction: column; gap: var(--space-2); }
.form__note { font-size: var(--fs-micro); font-weight: var(--fw-medium); color: var(--c-subtle); }

/* Astérisque des champs obligatoires (l'attribut required est annoncé par les lecteurs d'écran) */
.field__req { font-weight: var(--fw-extrabold); color: var(--c-ink); }

/* Aide sous un champ */
.field__hint { font-size: var(--fs-micro); font-weight: var(--fw-medium); color: var(--c-subtle); }

/* Message d'erreur créé par js/form.js sous chaque champ */
.field__error:not([hidden]) {
  display: flex; align-items: flex-start; gap: var(--space-2);
  font-size: var(--fs-caption);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-card);
  color: var(--c-danger);
}
.field__error::before {
  content: "";
  flex-shrink: 0;
  width: var(--space-2); height: var(--space-2);
  margin-top: 0.5em;
  border-radius: var(--r-pill);
  background: var(--c-danger);
}

/* Focus des champs renforcé (base.css retire l'outline des .input) */
.input:focus { box-shadow: inset 0 0 0 1px var(--c-ink); }

/* Champ en erreur */
.input[aria-invalid="true"] {
  border-color: var(--c-danger);
  box-shadow: inset 0 0 0 1px var(--c-danger);
}
.input[aria-invalid="true"]:focus {
  border-color: var(--c-ink);
  box-shadow: inset 0 0 0 1px var(--c-ink);
}

/* Liste déroulante avec chevron en SVG inline (currentColor, pas de data-URI) */
.select { position: relative; }
.select .input {
  appearance: none;
  -webkit-appearance: none;
  padding-right: var(--space-12);
  cursor: pointer;
}
.select__icon {
  position: absolute; top: 50%; right: var(--space-4);
  width: var(--space-5); height: var(--space-5);
  transform: translateY(-50%);
  color: var(--c-subtle);
  pointer-events: none;
}

/* Case à cocher (consentement) */
.field--check {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: var(--space-3);
  row-gap: var(--space-2);
  align-items: start;
  font-weight: var(--fw-medium);
  color: var(--c-muted);
}
.field--check input[type="checkbox"] {
  width: var(--space-6); height: var(--space-6);
  margin: 0;
  accent-color: var(--c-ink);
  cursor: pointer;
}
.field--check label { line-height: var(--lh-card); cursor: pointer; }
.field--check label a { color: var(--c-ink); text-decoration: underline; text-underline-offset: 0.2em; }
.field--check label a:hover { color: var(--c-accent-label); }
.field--check .field__error,
.field--check__hint { grid-column: 2; }
.field--check__hint a { color: var(--c-ink); text-decoration: underline; text-underline-offset: 0.2em; }
.field--check input[aria-invalid="true"] {
  outline: 2px solid var(--c-danger);
  outline-offset: 2px;
}

/* Pot de miel anti-spam : hors écran, hors tabulation (tabindex=-1), aria-hidden */
.form__hp {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Bouton pendant l'envoi (aria-disabled plutôt que disabled pour garder le focus) */
.btn[aria-disabled="true"] { opacity: 0.7; cursor: progress; transform: none; }

/* Zone de statut (role=status, aria-live=polite) : invisible tant qu'elle est vide */
.form__status:not(:empty) {
  padding: var(--space-3) var(--space-4);
  border-radius: var(--r-md);
  background: var(--c-surface);
  font-size: var(--fs-small);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-card);
  color: var(--c-ink);
}
.form__status[data-state="success"] { background: var(--c-accent); color: var(--c-accent-ink); }
.form__status[data-state="invalid"],
.form__status[data-state="error"] { box-shadow: inset var(--space-1) 0 0 var(--c-danger); }

@media (prefers-reduced-motion: no-preference) {
  .form__status:not(:empty) { animation: hoomie-status-in var(--dur) var(--ease); }
}
@keyframes hoomie-status-in {
  from { opacity: 0; transform: translateY(var(--space-1)); }
  to   { opacity: 1; transform: none; }
}

/* Texte indicatif des champs : contraste 5,7:1 (audit QA) */
.input::placeholder { color: var(--c-subtle); opacity: 1; }

/* Lien d'évitement (RGAA 12.7) : invisible jusqu'au focus clavier */
.skip-link {
  position: absolute; top: var(--space-2); left: var(--space-2); z-index: 100;
  display: inline-flex; align-items: center;
  min-height: var(--touch);
  padding: 0 var(--space-4);
  border-radius: var(--r-pill);
  background: var(--c-ink); color: var(--c-on-dark);
  font-size: var(--fs-small); font-weight: var(--fw-bold);
  transform: translateY(calc(-100% - var(--space-4)));
}
.skip-link:focus { transform: none; }

/* ---------- 13. Pied de page ---------- */
.site-footer {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: var(--space-6) var(--space-10);
  padding: var(--space-10) var(--gutter) var(--space-6);
  border-top: 1px solid var(--c-line);
  font-size: var(--fs-caption);
  color: var(--c-subtle);
}
.site-footer__brand { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-2); }
.site-footer__brand p { max-width: 26em; }
.site-footer__nav ul {
  display: flex; flex-direction: column;
  margin: 0; padding: 0;
  list-style: none;
}
.site-footer__title { font-weight: var(--fw-bold); color: var(--c-ink); }
/* Liens toujours soulignés : on les distingue du texte sans compter sur la couleur (RGAA 10.6) */
.site-footer a:not(.logo) {
  display: inline-flex; align-items: center;
  min-height: var(--touch);           /* cible tactile ≥ 44 px */
  color: var(--c-ink-2);
  text-decoration: underline;
  text-decoration-color: currentColor;
  text-underline-offset: 0.2em;
  transition: color var(--dur-fast) var(--ease);
}
.site-footer a:not(.logo):hover { color: var(--c-ink); }
.site-footer__legal {
  grid-column: 1 / -1;
  padding-top: var(--space-4);
  border-top: 1px solid var(--c-line);
}

/* ---------- 13 bis. Fil d'Ariane (pages intérieures) ---------- */
.breadcrumb { padding: var(--space-2) var(--gutter) 0; font-size: var(--fs-caption); color: var(--c-subtle); }
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; margin: 0; padding: 0; list-style: none; }
.breadcrumb li { display: inline-flex; align-items: center; }
.breadcrumb li + li::before { content: "/"; margin: 0 var(--space-2); color: var(--c-line-strong); }
.breadcrumb a { display: inline-flex; align-items: center; min-height: var(--touch); color: var(--c-ink-2); text-decoration: underline; text-underline-offset: 0.2em; }
.breadcrumb [aria-current="page"] { font-weight: var(--fw-semibold); color: var(--c-ink); }

/* ---------- 14. Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
