/* ==========================================================================
   TARN COMPTA — site vitrine
   Charte cabinet : bordeaux #8D1F4F · Fraunces (titres) · Inter (texte)
   Direction : « feuille de grand livre » — filets, colonne de marge,
   lignes à points de conduite, encre plum sur papier mauve froid.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Polices (auto-hébergées — aucun appel à un CDN tiers, RGPD-safe)
   -------------------------------------------------------------------------- */
@font-face {
  font-family: "Fraunces";
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/Fraunces-Medium.woff2") format("woff2");
}
@font-face {
  font-family: "Fraunces";
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/Fraunces-SemiBold.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/Inter-Regular.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/Inter-Medium.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/Inter-SemiBold.woff2") format("woff2");
}

/* --------------------------------------------------------------------------
   2. Jetons
   -------------------------------------------------------------------------- */
:root {
  /* Encres et papiers */
  --ink: #1a0c14;          /* plum-noir : fond des bandes sombres */
  --ink-soft: #2a1620;     /* plum-noir éclairci : cartes sur fond sombre */
  --bordeaux: #8d1f4f;     /* accent de la charte */
  --bordeaux-deep: #6d1740;
  --bordeaux-bright: #d1477f; /* accent lisible sur fond sombre */
  --paper: #f6f2f3;        /* papier, neutre biaisé mauve (pas de crème chaude) */
  --paper-warm: #ede5e8;   /* second papier, pour les cartes */
  --chalk: #ffffff;
  --slate: #5c5158;        /* texte secondaire sur papier */
  --slate-light: #b6a3ad;  /* texte secondaire sur encre */

  /* Filets */
  --rule: rgba(26, 12, 20, 0.14);
  --rule-strong: rgba(26, 12, 20, 0.32);
  --rule-ink: rgba(255, 255, 255, 0.16);
  --rule-ink-strong: rgba(255, 255, 255, 0.34);

  /* Typographie */
  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --text: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --fs-display: clamp(2.9rem, 7.6vw, 6.6rem);
  --fs-h2: clamp(2rem, 4.4vw, 3.6rem);
  --fs-h3: clamp(1.25rem, 1.9vw, 1.6rem);
  --fs-lead: clamp(1.05rem, 1.55vw, 1.35rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.9375rem;
  --fs-label: 0.72rem;

  /* Rythme */
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --rail: 11rem;           /* colonne de marge du grand livre */
  --max: 78rem;
  --band-y: clamp(4rem, 8vw, 7.5rem);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: var(--fs-body);
  line-height: 1.65;
  font-feature-settings: "kern" 1;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.025em;
  text-wrap: balance;
  margin: 0;
}

h2 { font-size: var(--fs-h2); line-height: 1.04; }
h3 { font-size: var(--fs-h3); line-height: 1.14; }

p { margin: 0; max-width: 62ch; }

a { color: inherit; }

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

ul { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--bordeaux); color: #fff; }

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

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--bordeaux);
  color: #fff;
  padding: 0.75rem 1.25rem;
  font-weight: 600;
}
.skip:focus { left: 0; }

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

/* --------------------------------------------------------------------------
   4. Éléments de « grand livre »
   -------------------------------------------------------------------------- */

/* Libellé en petites capitales, façon intitulé de colonne comptable */
.label {
  font-family: var(--text);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bordeaux);
  margin: 0;
}
.band--ink .label { color: var(--bordeaux-bright); }

/* Ligne « libellé ······ valeur » */
.entries {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.entry {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  padding: 0.62rem 0;
  border-bottom: 1px solid var(--rule);
}
.entry__key {
  font-size: var(--fs-small);
  color: var(--slate);
  white-space: nowrap;
}
.entry__dots {
  flex: 1;
  height: 0;
  border-bottom: 1px dotted var(--rule-strong);
  transform: translateY(-0.25rem);
}
.entry__val {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.band--ink .entry { border-bottom-color: var(--rule-ink); }
.band--ink .entry__key { color: var(--slate-light); }
.band--ink .entry__dots { border-bottom-color: var(--rule-ink-strong); }
.entry__val a { text-decoration: none; border-bottom: 1px solid currentColor; }
.entry__val a:hover { color: var(--bordeaux-bright); }

/* --------------------------------------------------------------------------
   5. Bandes et grille
   -------------------------------------------------------------------------- */
.band {
  position: relative;
  padding: var(--band-y) 0;
  border-top: 1px solid var(--rule);
}
.band--ink {
  background: var(--ink);
  color: var(--chalk);
  border-top-color: transparent;
}
.band--ink h2, .band--ink h3 { color: var(--chalk); }
.band--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }

.inner {
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
}

/* Feuille : colonne de marge à gauche + contenu, séparés par un filet vertical */
.sheet {
  display: grid;
  grid-template-columns: var(--rail) minmax(0, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
}
.sheet__rail {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-right: clamp(1rem, 2vw, 2rem);
  border-right: 1px solid var(--rule);
}
.band--ink .sheet__rail { border-right-color: var(--rule-ink); }
.sheet__rail p {
  font-size: var(--fs-small);
  color: var(--slate);
  max-width: 20ch;
}
.band--ink .sheet__rail p { color: var(--slate-light); }
.sheet__body { min-width: 0; }

@media (max-width: 62rem) {
  .sheet { grid-template-columns: 1fr; gap: 1.25rem; }
  .sheet__rail {
    border-right: 0;
    border-bottom: 1px solid var(--rule);
    padding: 0 0 1rem;
    flex-direction: row;
    align-items: baseline;
    gap: 1rem;
    flex-wrap: wrap;
  }
  .band--ink .sheet__rail { border-bottom-color: var(--rule-ink); }
  .sheet__rail p { max-width: none; }
}

.stack { display: flex; flex-direction: column; gap: clamp(1.5rem, 3vw, 2.5rem); }
.stack--sm { gap: 1rem; }

.lead {
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: var(--slate);
}
.band--ink .lead { color: #e6d9df; }

/* --------------------------------------------------------------------------
   6. En-tête
   -------------------------------------------------------------------------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--ink);
  color: var(--chalk);
  border-bottom: 1px solid var(--rule-ink);
}
.topbar__inner {
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 4.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  margin-right: auto;
}
.brand__mark { width: 2.1rem; height: 2.1rem; flex: none; }
.brand__name {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.16rem;
  letter-spacing: -0.02em;
  line-height: 1;
  display: block;
}
.brand__sub {
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--slate-light);
  display: block;
  margin-top: 0.22rem;
  white-space: nowrap;
}

.nav { display: flex; align-items: center; gap: clamp(0.7rem, 1.3vw, 1.4rem); }
.nav a {
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  color: #efe4e9;
  padding: 0.35rem 0;
  white-space: nowrap;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}
.nav a:hover { color: #fff; border-bottom-color: var(--bordeaux-bright); }

.topbar__cta { display: flex; align-items: center; gap: 0.6rem; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--rule-ink-strong);
  color: inherit;
  font: inherit;
  font-size: var(--fs-small);
  padding: 0.45rem 0.8rem;
  cursor: pointer;
}

@media (max-width: 84rem) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute;
    inset: 100% 0 auto 0;
    background: var(--ink);
    border-bottom: 1px solid var(--rule-ink);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem var(--gutter) 1.5rem;
    display: none;
  }
  .nav[data-open="true"] { display: flex; }
  .nav a { padding: 0.85rem 0; border-bottom: 1px solid var(--rule-ink); }
  .topbar__cta .btn--phone { display: none; }
}

/* Téléphones : la barre doit tenir dans 360 px de large. */
@media (max-width: 48rem) {
  .topbar__inner { gap: 0.6rem; min-height: 4rem; }
  .brand { min-width: 0; gap: 0.5rem; }
  .brand__mark { width: 1.8rem; height: 1.8rem; }
  .brand__name { font-size: 1rem; }
  .brand__sub { display: none; }
  .nav-toggle { padding: 0.42rem 0.65rem; }
  .topbar__cta .btn { padding: 0.55rem 0.75rem; font-size: 0.8rem; }
  .topbar__cta .btn--rdv { display: none; }
  .topbar__cta .btn--phone { display: inline-flex; }
}

/* --------------------------------------------------------------------------
   7. Boutons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--text);
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  padding: 0.78rem 1.35rem;
  border: 1px solid var(--bordeaux);
  background: var(--bordeaux);
  color: #fff;
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s, color 0.18s, transform 0.18s;
}
.btn:hover { background: var(--bordeaux-deep); border-color: var(--bordeaux-deep); transform: translateY(-1px); }

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--rule-strong); }
.btn--ghost:hover { background: var(--ink); border-color: var(--ink); color: #fff; }

/* Fonds sombres : le bouton fantôme passe en blanc. */
.band--ink .btn--ghost,
.hero .btn--ghost,
.page-hero .btn--ghost,
.topbar .btn--ghost { color: #fff; border-color: var(--rule-ink-strong); }
.band--ink .btn--ghost:hover,
.hero .btn--ghost:hover,
.page-hero .btn--ghost:hover,
.topbar .btn--ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }

.btn--lg { padding: 0.95rem 1.7rem; font-size: 1rem; }

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.actions--espacees { margin-top: 2rem; }

/* --------------------------------------------------------------------------
   8. Hero
   -------------------------------------------------------------------------- */
.hero {
  background: var(--ink);
  color: var(--chalk);
  position: relative;
  overflow: hidden;
  padding: clamp(3.5rem, 8vw, 7rem) 0 clamp(2.5rem, 5vw, 4rem);
}
/* Réglure du grand livre en fond */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.05) 0 1px,
    transparent 1px 3.25rem
  );
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  right: -14vw;
  top: -18vw;
  width: 46vw;
  height: 46vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(141, 31, 79, 0.55), transparent 62%);
  pointer-events: none;
}
.hero > * { position: relative; z-index: 1; }

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: end;
}
@media (max-width: 62rem) {
  .hero__grid { grid-template-columns: 1fr; align-items: stretch; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #f3dde6;
  border: 1px solid var(--rule-ink-strong);
  padding: 0.42rem 0.9rem;
  border-radius: 100px;
}
.eyebrow .dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--bordeaux-bright);
}

.hero h1 {
  font-size: var(--fs-display);
  letter-spacing: -0.035em;
  line-height: 0.94;
  margin: 1.6rem 0 0;
  max-width: 15ch;
}
.hero h1 .rank {
  color: var(--bordeaux-bright);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.hero h1 .rule-under {
  display: inline-block;
  border-bottom: 3px solid var(--bordeaux);
  padding-bottom: 0.06em;
}

.hero__lead {
  font-size: var(--fs-lead);
  color: #e6d9df;
  margin-top: 1.7rem;
  max-width: 46ch;
  line-height: 1.55;
}

.hero__actions { margin-top: 2rem; }

.hero__signature {
  margin-top: 2rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--rule-ink);
  font-size: var(--fs-small);
  color: var(--slate-light);
  max-width: 48ch;
}
.hero__signature strong { color: #fff; font-weight: 600; }

/* Carte « extrait de compte » */
.idcard {
  background: var(--ink-soft);
  border: 1px solid var(--rule-ink);
  padding: clamp(1.25rem, 2.4vw, 1.9rem);
}
.idcard__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding-bottom: 0.9rem;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid var(--rule-ink-strong);
}
.idcard__head span:last-child {
  font-size: var(--fs-label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate-light);
}
.idcard .entry:last-child { border-bottom: 0; }

/* --------------------------------------------------------------------------
   9. Bandeau défilant (bande de contrôle)
   -------------------------------------------------------------------------- */
.ticker {
  background: var(--bordeaux);
  color: #fff;
  overflow: hidden;
  border-block: 1px solid var(--bordeaux-deep);
  padding: 0.85rem 0;
  white-space: nowrap;
}
.ticker__track {
  display: inline-flex;
  gap: 2.5rem;
  padding-right: 2.5rem;
  animation: slide 46s linear infinite;
  will-change: transform;
}
.ticker span {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 2.5rem;
}
.ticker span::after {
  content: "◆";
  font-size: 0.5rem;
  opacity: 0.7;
  letter-spacing: 0;
}
@keyframes slide {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* --------------------------------------------------------------------------
   10. Cartes et grilles de contenu
   -------------------------------------------------------------------------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15.5rem, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.band--ink .cards { background: var(--rule-ink); border-color: var(--rule-ink); }

.card {
  background: var(--paper);
  padding: clamp(1.4rem, 2.4vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  transition: background 0.2s;
}
.band--ink .card { background: var(--ink); }
.card:hover { background: var(--paper-warm); }
.band--ink .card:hover { background: var(--ink-soft); }
.card h3 { font-size: var(--fs-h3); }
.card p { font-size: var(--fs-small); color: var(--slate); }
.band--ink .card p { color: var(--slate-light); }
/* Sélecteur avec l'élément : même spécificité que « .card p », déclaré après,
   pour que l'intitulé de la carte garde sa couleur et sa taille. */
p.card__num {
  font-family: var(--display);
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
  color: var(--bordeaux);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 0.5rem;
  margin-bottom: 0.2rem;
}
.band--ink p.card__num { color: var(--bordeaux-bright); border-bottom-color: var(--rule-ink); }

/* Illustration animée (comptable + infirmière devant l'écran) */
.scene { margin: 0; }
.scene img {
  width: 100%;
  height: auto;
  border: 1px solid var(--rule);
  background: var(--paper);
}
.band--ink .scene img,
.page-hero .scene img { border-color: var(--rule-ink); }
.scene figcaption {
  margin-top: 0.9rem;
  font-size: var(--fs-small);
  color: var(--slate);
  max-width: 62ch;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.8rem;
}
.band--ink .scene figcaption,
.page-hero .scene figcaption { color: var(--slate-light); }
.page-hero .scene figcaption .label { color: var(--bordeaux-bright); }

/* Texte à gauche, illustration à droite */
.hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}
@media (max-width: 68rem) {
  .hero-split { grid-template-columns: 1fr; }
}

/* Étiquettes de métiers */
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.42rem 0.85rem;
  border: 1px solid var(--rule-strong);
  border-radius: 100px;
  color: var(--ink);
  background: transparent;
}
.band--ink .chip { border-color: var(--rule-ink-strong); color: #f0e6ea; }
.chip--accent { background: var(--bordeaux); border-color: var(--bordeaux); color: #fff; }

/* Citation */
.quote {
  border-left: 3px solid var(--bordeaux);
  padding: 0.4rem 0 0.4rem clamp(1.2rem, 2.5vw, 2rem);
  margin: 0;
}
.quote p {
  font-family: var(--display);
  font-size: clamp(1.35rem, 2.6vw, 2.05rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  max-width: 24ch;
}
.quote footer {
  margin-top: 1rem;
  font-size: var(--fs-small);
  color: var(--slate);
}
.band--ink .quote footer { color: var(--slate-light); }

/* Deux colonnes de texte */
.duo {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: clamp(1.5rem, 3vw, 3rem);
}

/* Étapes numérotées (séquence réelle) */
.steps { display: grid; gap: 0; }
.step {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr);
  gap: clamp(1rem, 2vw, 2rem);
  padding: 1.5rem 0;
  border-top: 1px solid var(--rule);
  align-items: start;
}
.band--ink .step { border-top-color: var(--rule-ink); }
.step:last-child { border-bottom: 1px solid var(--rule); }
.band--ink .step:last-child { border-bottom-color: var(--rule-ink); }
.step h3 { font-size: var(--fs-h3); margin-bottom: 0.35rem; }
.step p { color: var(--slate); font-size: var(--fs-small); }
.band--ink .step p { color: var(--slate-light); }
/* Déclaré après « .step p », avec l'élément, pour ne pas être écrasé. */
p.step__num {
  font-family: var(--display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  line-height: 1;
  color: var(--bordeaux);
  font-variant-numeric: tabular-nums;
}
.band--ink p.step__num { color: var(--bordeaux-bright); }

/* FAQ */
.faq { border-top: 1px solid var(--rule); }
.faq details {
  border-bottom: 1px solid var(--rule);
  padding: 0.35rem 0;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.5rem;
  padding: 1.1rem 0;
  font-family: var(--display);
  font-size: clamp(1.05rem, 1.7vw, 1.35rem);
  font-weight: 600;
  letter-spacing: -0.015em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--text);
  font-size: 1.4rem;
  line-height: 1;
  color: var(--bordeaux);
  flex: none;
  transition: transform 0.2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > p {
  padding: 0 0 1.2rem;
  color: var(--slate);
  max-width: 68ch;
}

/* --------------------------------------------------------------------------
   11. Contact
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr));
  gap: clamp(1.75rem, 4vw, 3.5rem);
}

.form { display: flex; flex-direction: column; gap: 1rem; }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field label {
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate-light);
}
.field input,
.field select,
.field textarea {
  font: inherit;
  font-size: var(--fs-small);
  color: #fff;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--rule-ink-strong);
  padding: 0.6rem 0;
  border-radius: 0;
}
.field textarea { resize: vertical; min-height: 5.5rem; }
.field select option { color: var(--ink); }
.field input::placeholder,
.field textarea::placeholder { color: rgba(255, 255, 255, 0.38); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--bordeaux-bright);
}
.form__note { font-size: 0.8rem; color: var(--slate-light); max-width: 46ch; }
.form__feedback:empty { display: none; }
.form__feedback[data-etat="ok"] { color: #8fd6ae; }
.form__feedback[data-etat="erreur"] { color: #f0a8c0; }
.btn[aria-busy="true"] { opacity: 0.7; pointer-events: none; }

/* Piège à robots : hors écran, hors tabulation, hors lecteurs d'écran. */
.field--piege {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.hours { font-variant-numeric: tabular-nums; }

/* --------------------------------------------------------------------------
   12. Pied de page
   -------------------------------------------------------------------------- */
.footer {
  background: var(--ink);
  color: var(--slate-light);
  padding: clamp(2.5rem, 5vw, 4rem) 0 2rem;
  border-top: 1px solid var(--rule-ink);
  font-size: var(--fs-small);
}
.footer a { color: #efe4e9; text-decoration: none; border-bottom: 1px solid transparent; }
.footer a:hover { border-bottom-color: var(--bordeaux-bright); }
.footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--rule-ink);
}
.footer h4 {
  font-family: var(--text);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 0.9rem;
}
.footer li { margin-bottom: 0.45rem; }
.footer p { color: inherit; max-width: 34ch; }
.footer__legal {
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
  font-size: 0.8rem;
}

/* --------------------------------------------------------------------------
   13. Pages intérieures (BNC, mentions légales)
   -------------------------------------------------------------------------- */
.page-hero {
  background: var(--ink);
  color: var(--chalk);
  padding: clamp(3rem, 6vw, 5.5rem) 0 clamp(2.5rem, 5vw, 4rem);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.05) 0 1px,
    transparent 1px 3.25rem
  );
  pointer-events: none;
}
.page-hero > * { position: relative; z-index: 1; }
.page-hero h1 {
  font-size: clamp(2.4rem, 5.6vw, 4.6rem);
  line-height: 0.98;
  margin: 1.2rem 0 0;
  max-width: 18ch;
}
.page-hero .lead { color: #e6d9df; margin-top: 1.4rem; }

.prose { max-width: 68ch; display: flex; flex-direction: column; gap: 1.1rem; }
.prose h2 {
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  margin-top: 1.4rem;
}
.prose h3 { font-size: var(--fs-h3); margin-top: 0.8rem; }
.prose p, .prose li { color: var(--slate); }
.prose ul { display: flex; flex-direction: column; gap: 0.5rem; padding-left: 1.1rem; list-style: disc; }
.prose a { color: var(--bordeaux); }
.todo {
  background: #fdf2c6;
  border-left: 3px solid #b58a00;
  color: #4a3a00;
  padding: 0.15rem 0.5rem;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   14. Animations
   -------------------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
[data-reveal].is-in { opacity: 1; transform: none; }

.hero [data-rise] {
  opacity: 0;
  transform: translateY(20px);
  animation: rise 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.hero [data-rise="1"] { animation-delay: 0.05s; }
.hero [data-rise="2"] { animation-delay: 0.16s; }
.hero [data-rise="3"] { animation-delay: 0.27s; }
.hero [data-rise="4"] { animation-delay: 0.38s; }
.hero [data-rise="5"] { animation-delay: 0.49s; }
@keyframes rise {
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .hero [data-rise] { opacity: 1; transform: none; }
  .ticker__track { animation: none; }
}

/* --------------------------------------------------------------------------
   15. Impression
   -------------------------------------------------------------------------- */
@media print {
  .topbar, .ticker, .nav-toggle, .form { display: none; }
  body { background: #fff; color: #000; }
  .band--ink, .hero, .footer, .page-hero { background: #fff !important; color: #000 !important; }
  .band--ink h2, .band--ink h3, .hero h1 { color: #000 !important; }
}
