/* ==========================================================================
   AR Trade Referral Services — feuille de style
   Registre institutionnel : fond chaud sobre, noir profond, accent laiton.
   Thème clair par défaut, thème sombre par média-requête ET par [data-theme].
   ========================================================================== */

/* --- Tokens : thème clair ------------------------------------------------ */
:root {
  color-scheme: light;

  --bg:            #f7f4ec;
  --bg-alt:        #eee6d3;
  --surface:       #ffffff;
  --border:        #ddd6c4;
  --border-strong: #c9c0aa;

  --ink:           #17140f;
  --muted:         #5b5750;
  --accent:        #7a601f;
  --accent-quiet:  #96762c;
  --accent-soft:   rgba(150, 118, 44, .10);

  /* Panneau inversé (« Ce que nous ne faisons pas ») */
  --panel-bg:      #17140f;
  --panel-fg:      #ffffff;
  --panel-muted:   #ccc6ba;
  --panel-border:  #17140f;

  /* Boutons pleins */
  --btn-bg:        #17140f;
  --btn-fg:        #f7f4ec;
  --btn-bg-hover:  #2a251b;

  --header-bg:     rgba(247, 244, 236, .88);
  --shadow-sm:     0 8px 24px -12px rgba(23, 20, 15, .25);
  --shadow-md:     0 16px 32px -20px rgba(23, 20, 15, .35);
  --shadow-lg:     0 20px 40px -24px rgba(23, 20, 15, .35);
  --shadow-btn:    0 10px 24px -10px rgba(23, 20, 15, .5);

  --focus:         #96762c;

  --font-display:  'Newsreader', ui-serif, Georgia, 'Times New Roman', serif;
  --font-body:     'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --wide:          1180px;
  --narrow:        760px;
  --radius:        4px;
  --radius-sm:     3px;
}

/* --- Tokens : thème sombre ---------------------------------------------- */
/* Appliqué si l'OS est en sombre ET que l'utilisateur n'a pas forcé le clair. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    color-scheme: dark;

    --bg:            #14120e;
    --bg-alt:        #1b1813;
    --surface:       #1e1b15;
    --border:        #35312a;
    --border-strong: #4a453b;

    --ink:           #f2ede1;
    --muted:         #a7a091;
    --accent:        #d4af57;
    --accent-quiet:  #c8a447;
    --accent-soft:   rgba(212, 175, 87, .12);

    --panel-bg:      #242019;
    --panel-fg:      #f2ede1;
    --panel-muted:   #a7a091;
    --panel-border:  #443e33;

    --btn-bg:        #e8dfc9;
    --btn-fg:        #14120e;
    --btn-bg-hover:  #ffffff;

    --header-bg:     rgba(20, 18, 14, .88);
    --shadow-sm:     0 8px 24px -12px rgba(0, 0, 0, .7);
    --shadow-md:     0 16px 32px -20px rgba(0, 0, 0, .8);
    --shadow-lg:     0 20px 40px -24px rgba(0, 0, 0, .8);
    --shadow-btn:    0 10px 24px -10px rgba(0, 0, 0, .8);

    --focus:         #d4af57;
  }
}

/* Choix explicite de l'utilisateur : gagne dans les deux sens. */
:root[data-theme='dark'] {
  color-scheme: dark;

  --bg:            #14120e;
  --bg-alt:        #1b1813;
  --surface:       #1e1b15;
  --border:        #35312a;
  --border-strong: #4a453b;

  --ink:           #f2ede1;
  --muted:         #a7a091;
  --accent:        #d4af57;
  --accent-quiet:  #c8a447;
  --accent-soft:   rgba(212, 175, 87, .12);

  --panel-bg:      #242019;
  --panel-fg:      #f2ede1;
  --panel-muted:   #a7a091;
  --panel-border:  #443e33;

  --btn-bg:        #e8dfc9;
  --btn-fg:        #14120e;
  --btn-bg-hover:  #ffffff;

  --header-bg:     rgba(20, 18, 14, .88);
  --shadow-sm:     0 8px 24px -12px rgba(0, 0, 0, .7);
  --shadow-md:     0 16px 32px -20px rgba(0, 0, 0, .8);
  --shadow-lg:     0 20px 40px -24px rgba(0, 0, 0, .8);
  --shadow-btn:    0 10px 24px -10px rgba(0, 0, 0, .8);

  --focus:         #d4af57;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  transition: background-color .25s ease, color .25s ease;
}

a { color: inherit; }
img { max-width: 100%; display: block; }
/* Les navigateurs appliquent margin: 1em 40px aux <figure> : à neutraliser,
   sans quoi visuels et frise de trajet débordent de leur colonne. */
figure, figcaption { margin: 0; }
::selection { background: var(--accent-quiet); color: #fff; }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--btn-bg);
  color: var(--btn-fg);
  padding: 12px 20px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

.wrap { max-width: var(--wide); margin: 0 auto; padding-inline: 24px; }
.wrap--narrow { max-width: var(--narrow); }

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

/* --- Typographie --------------------------------------------------------- */
.eyebrow {
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 14px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -.01em;
  color: var(--ink);
}

.h1 { font-size: clamp(2.1rem, 4.4vw, 3.6rem); line-height: 1.08; margin: 0 0 22px; }
.h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1.15; margin: 0 0 16px; }
.h3 { font-size: 1.15rem; margin: 0 0 8px; }

.lead { font-size: 1.14rem; line-height: 1.6; color: var(--muted); max-width: 60ch; }
.lead--tight { max-width: 52ch; }

/* --- Boutons ------------------------------------------------------------- */
.btn {
  display: inline-block;
  font: inherit;
  font-weight: 600;
  font-size: .95rem;
  padding: 14px 26px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease, color .25s ease;
}
.btn--primary { background: var(--btn-bg); color: var(--btn-fg); }
.btn--primary:hover { background: var(--btn-bg-hover); transform: translateY(-2px); box-shadow: var(--shadow-btn); }
.btn--ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: var(--bg); }
.btn:disabled { opacity: .55; cursor: progress; transform: none; box-shadow: none; }

/* --- En-tête ------------------------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .3s ease, background-color .25s ease;
}
.header.is-scrolled { box-shadow: var(--shadow-sm); }

.header__progress {
  position: absolute;
  left: 0; top: 100%;
  height: 2px;
  width: 0;
  background: var(--accent-quiet);
  transition: width .1s linear;
}

.header__inner {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 72px;
}
.header__inner--narrow { max-width: var(--narrow); }

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 0;
}
.logo:hover { opacity: .78; }
.logo__mark {
  flex: none;
  width: 34px; height: 34px;
  border-radius: var(--radius-sm);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  letter-spacing: .02em;
}
.logo__text {
  font-weight: 700;
  letter-spacing: .08em;
  font-size: .82rem;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav { display: flex; align-items: center; gap: 26px; }
.nav__link { text-decoration: none; font-size: .92rem; color: var(--muted); transition: color .2s ease; }
.nav__link:hover, .nav__link[aria-current='true'] { color: var(--accent); }
.nav__cta { font-size: .88rem; padding: 11px 20px; }

.tools { display: flex; align-items: center; gap: 8px; }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 38px;
  min-width: 38px;
  padding: 0 10px;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--ink);
  font: inherit;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .04em;
  cursor: pointer;
  text-decoration: none;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.icon-btn:hover { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.icon-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* L'icône affichée dépend du thème résolu : géré en JS via .is-dark sur <html>. */
.theme-toggle .icon-moon { display: block; }
.theme-toggle .icon-sun  { display: none; }
:root.is-dark .theme-toggle .icon-moon { display: none; }
:root.is-dark .theme-toggle .icon-sun  { display: block; }

.burger { display: none; }

.mobile-nav {
  display: none;
  flex-direction: column;
  padding: 8px 24px 20px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.mobile-nav.is-open { display: flex; }
.mobile-nav a {
  text-decoration: none;
  padding: 13px 0;
  color: var(--ink);
  font-size: 1rem;
  border-bottom: 1px solid var(--border);
}
.mobile-nav a:last-child { border-bottom: 0; }
.mobile-nav .btn { text-align: center; margin-top: 14px; }

@media (max-width: 860px) {
  .nav { display: none; }
  .burger { display: inline-flex; }
  .logo__text { font-size: .72rem; }
}
@media (max-width: 420px) {
  .logo__text { display: none; }
}

/* --- Sections ------------------------------------------------------------ */
.section { padding: clamp(56px, 8vw, 96px) 0; border-top: 1px solid var(--border); }
.section--alt { background: var(--bg-alt); }
.section--hero { padding: clamp(48px, 8vw, 104px) 0 clamp(40px, 6vw, 64px); border-top: 0; }

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
  gap: 56px;
  align-items: center;
}
.grid-2--top { align-items: start; }

/* --- Hero ---------------------------------------------------------------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp .7s ease both; }
.fade-up--1 { animation-delay: .08s; }
.fade-up--2 { animation-delay: .16s; }
.fade-up--3 { animation-delay: .24s; }

.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

.facts {
  max-width: var(--wide);
  margin: 64px auto 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 28px 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr));
  gap: 28px;
}
.fact__value {
  display: block;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 500;
  letter-spacing: -.01em;
  line-height: 1.2;
  margin-bottom: 4px;
}
.fact__label { color: var(--muted); font-size: .9rem; }

/* --- Média (visuels et emplacements) ------------------------------------- */
.media {
  position: relative;
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-alt);
  border: 1px solid var(--border);
}
.media img { width: 100%; height: 100%; object-fit: cover; }

/* Emplacement décoratif utilisé tant que la photo réelle n'est pas fournie.
   Motif de fines stries laiton, registre « échantillon / document », pas de stock bullion. */
.media--slot {
  background-color: var(--bg-alt);
  background-image:
    repeating-linear-gradient(135deg,
      var(--accent-soft) 0 2px,
      transparent 2px 11px);
  display: flex;
  align-items: flex-end;
  padding: 16px;
}
.media--slot::before {
  content: '';
  position: absolute;
  inset: 12px;
  border: 1px solid var(--border-strong);
  border-radius: 2px;
  pointer-events: none;
}
.media__label {
  position: relative;
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--bg);
  border: 1px solid var(--border-strong);
  padding: 5px 10px;
  border-radius: 2px;
}

.media--hero { height: min(420px, 60vw); }
.media--lg   { height: 220px; }
.media--sm   { height: 130px; }

/* --- Cartes produits ----------------------------------------------------- */
/* Deux colonnes : l'or occupe la colonne gauche sur deux rangées,
   le cuivre et le projet minier s'empilent à droite. */
.products {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 40px;
}
.product {
  padding: 32px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  transition: box-shadow .3s ease, transform .3s ease;
}
.product:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.product--feature { grid-row: span 2; border-right: 1px solid var(--border); }
.product--split   { border-bottom: 1px solid var(--border); }
.product h3 { font-size: 1.3rem; margin: 0 0 10px; }
.product--split h3, .product:not(.product--feature) h3 { font-size: 1.15rem; }
.product p { color: var(--muted); margin: 0; font-size: .98rem; line-height: 1.6; }
.product .media { margin-bottom: 20px; }

@media (max-width: 760px) {
  .products { grid-template-columns: 1fr; }
  .product--feature { grid-row: auto; border-right: 0; border-bottom: 1px solid var(--border); }
}

/* --- Frise de procédure -------------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: 40px;
}
.step {
  background: var(--bg);
  padding: 26px;
  transition: transform .3s ease, box-shadow .3s ease;
}
.step:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); position: relative; z-index: 1; }
.step__n {
  font-family: var(--font-display);
  font-size: .85rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: .08em;
}
.step h3 { font-size: 1.1rem; margin: 10px 0 8px; }
.step p { color: var(--muted); font-size: .92rem; margin: 0 0 10px; line-height: 1.6; }
.step p:last-child { margin-bottom: 0; }

.stamp {
  display: inline-block;
  font-size: .68rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  font-weight: 600;
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: 999px;
  padding: 3px 10px;
}

/* --- Panneaux ------------------------------------------------------------ */
.panels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 24px;
  margin-top: 32px;
}
.panel {
  border-radius: var(--radius);
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
}
.panel--invert {
  background: var(--panel-bg);
  border-color: var(--panel-border);
  color: var(--panel-fg);
}
.panel h3, .panel h2 { margin: 0 0 14px; font-size: 1.3rem; }
.panel ul { padding-left: 1.1rem; margin: 0; color: var(--muted); font-size: .94rem; line-height: 1.7; }
.panel ul li + li { margin-top: 6px; }
.panel > p { margin: 0; color: var(--muted); font-size: .94rem; line-height: 1.7; }

/* Placé après .panel ul : à spécificité égale, c'est l'ordre qui tranche. */
.panel--invert h2, .panel--invert h3 { color: var(--panel-fg); }
.panel--invert ul, .panel--invert > p { color: var(--panel-muted); }

/* --- Accordéons ---------------------------------------------------------- */
.accordions { margin-top: 32px; display: flex; flex-direction: column; gap: 10px; }
.accordion {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  background: var(--surface);
}
.accordion > summary {
  cursor: pointer;
  font-weight: 600;
  font-size: .98rem;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.accordion > summary::-webkit-details-marker { display: none; }
.accordion > summary::after {
  content: '';
  flex: none;
  width: 9px; height: 9px;
  border-right: 1.5px solid var(--accent);
  border-bottom: 1.5px solid var(--accent);
  transform: rotate(45deg) translateY(-2px);
  transition: transform .25s ease;
}
.accordion[open] > summary::after { transform: rotate(-135deg) translateY(-2px); }
.accordion ul { padding-left: 1.1rem; margin: 14px 0 0; color: var(--muted); font-size: .92rem; line-height: 1.7; }
.accordion ul li + li { margin-top: 6px; }
.accordion > p { margin: 14px 0 0; color: var(--muted); font-size: .92rem; line-height: 1.7; }

/* --- Schéma de trajet ---------------------------------------------------- */
.route {
  margin-top: 8px;
  margin-bottom: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 26px 24px;
}
.route__caption {
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
}
.route__track {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: start;
  gap: 12px;
}
.route__node { text-align: center; }
.route__dot {
  width: 13px; height: 13px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  background: var(--bg);
  margin: 0 auto 12px;
}
.route__node--end .route__dot { background: var(--accent); }
.route__name { font-family: var(--font-display); font-size: 1.02rem; font-weight: 500; display: block; }
.route__note { color: var(--muted); font-size: .82rem; display: block; margin-top: 3px; }
.route__leg { padding-top: 5px; min-width: 90px; }
.route__line {
  height: 1px;
  background: repeating-linear-gradient(to right, var(--border-strong) 0 6px, transparent 6px 12px);
  margin-bottom: 8px;
}
.route__leg span { font-size: .74rem; color: var(--muted); display: block; text-align: center; }

@media (max-width: 760px) {
  .route__track { grid-template-columns: 1fr; gap: 4px; }
  .route__node { text-align: left; display: flex; gap: 12px; align-items: baseline; }
  .route__dot { margin: 0; flex: none; transform: translateY(-2px); }
  .route__leg { min-width: 0; padding: 6px 0 6px 5px; }
  .route__line {
    width: 1px; height: 22px; margin: 0 0 0 4px;
    background: repeating-linear-gradient(to bottom, var(--border-strong) 0 4px, transparent 4px 8px);
  }
  .route__leg span { text-align: left; padding-left: 14px; }
}

/* --- À propos ------------------------------------------------------------ */
.about__cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr));
  gap: 20px;
  align-content: start;
}
.about__card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  background: var(--surface);
}
.about__card b { display: block; font-family: var(--font-display); font-size: 1.05rem; font-weight: 500; }
.about__card span { color: var(--muted); font-size: .9rem; }

/* --- Équipe -------------------------------------------------------------- */
.team { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--border); }
.team__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 20px;
  margin-top: 16px;
}
.team__card {
  display: flex;
  gap: 16px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  background: var(--surface);
}
.team__initials {
  flex: none;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: .04em;
  display: flex; align-items: center; justify-content: center;
}
.team__card b { display: block; font-family: var(--font-display); font-size: 1.08rem; font-weight: 500; }
.team__role { display: block; color: var(--muted); font-size: .88rem; margin-top: 1px; }
.team__mail { display: block; color: var(--accent); font-size: .86rem; text-decoration: none; margin-top: 4px; word-break: break-all; }
.team__mail:hover { text-decoration: underline; }
.team__note { color: var(--muted); font-size: .88rem; margin: 16px 0 0; }

/* --- Crédits photographiques --------------------------------------------- */
.credits { margin: 16px 0 0; padding-left: 1.1rem; color: var(--muted); font-size: .9rem; line-height: 1.7; }
.credits li + li { margin-top: 6px; }
.credits a { color: var(--accent); text-decoration: none; }
.credits a:hover { text-decoration: underline; }

/* --- Coordonnées et formulaire ------------------------------------------- */
.contact__details { font-size: .98rem; color: var(--ink); line-height: 1.8; margin: 26px 0 0; }
.contact__details a { color: var(--accent); text-decoration: none; }
.contact__details a:hover { text-decoration: underline; }

.form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}
.form__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
  gap: 16px;
}
.field label {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  margin-bottom: 5px;
  color: var(--ink);
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: .95rem;
  background: var(--bg);
  color: var(--ink);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: 1; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.field textarea { min-height: 110px; resize: vertical; }
.field--full { margin-top: 16px; }
.field .req { color: var(--accent); margin-left: 2px; }

/* Piège à robots : invisible pour l'humain, rempli par les bots. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form__submit { margin-top: 18px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.form__status {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-size: .92rem;
  line-height: 1.6;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  color: var(--muted);
}
.form__status a { color: var(--accent); }
.form__status strong { color: var(--ink); display: block; margin-bottom: 4px; }
.form__status[hidden] { display: none; }

.form-success {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}
.form-success h3 { font-size: 1.3rem; margin: 0 0 10px; }
.form-success p { color: var(--muted); margin: 0; }
.form-success[hidden] { display: none; }

/* --- Pages document (procédure, légal) ----------------------------------- */
.doc-step { border-top: 1px solid var(--border); padding: 34px 0; }
.doc-step:last-child { border-bottom: 1px solid var(--border); }
.doc-step__label {
  font-family: var(--font-display);
  font-size: .85rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: .08em;
}
.doc-step p { font-size: 1.02rem; line-height: 1.7; color: var(--ink); margin: 12px 0 0; }
.doc-step p + p { margin-top: 14px; }
.doc-step .stamp { margin-top: 14px; }

.doc-blocks { display: flex; flex-direction: column; gap: 24px; margin-top: 8px; }
.doc-blocks .panel ul, .doc-blocks .panel > p { font-size: .98rem; line-height: 1.75; }
.doc-blocks .panel h2 { font-size: 1.35rem; }

.legal-block { border-top: 1px solid var(--border); padding-top: 32px; margin-top: 32px; }
.legal-block h2 { font-size: 1.5rem; margin: 0 0 16px; }
.legal-rows { display: flex; flex-direction: column; gap: 10px; font-size: .98rem; line-height: 1.7; color: var(--muted); }
.legal-rows p { margin: 0; }
.legal-rows b { color: var(--ink); }
.legal-sub { display: flex; flex-direction: column; gap: 20px; }
.legal-sub h3 { font-size: 1.1rem; margin: 0 0 8px; }
.legal-sub p { margin: 0; color: var(--muted); font-size: .98rem; line-height: 1.7; }
.note {
  margin: 20px 0 0;
  padding: 16px 18px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  font-size: .9rem;
  color: var(--muted);
}

/* --- Pied de page -------------------------------------------------------- */
.footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 40px;
  font-size: .9rem;
  color: var(--muted);
}
.footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 32px;
}
.footer b { color: var(--ink); }
.footer__col { display: flex; flex-direction: column; gap: 8px; }
.footer__col a { text-decoration: none; transition: color .2s ease; width: fit-content; }
.footer__col a:hover { color: var(--accent); }
.footer__title {
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 600;
  margin-bottom: 2px;
}
.footer__bottom {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  font-size: .84rem;
}
.footer a { color: inherit; }
.footer__bottom a { color: var(--accent); text-decoration: none; }
.footer__bottom a:hover { text-decoration: underline; }

/* --- Utilitaires --------------------------------------------------------- */
.mt-8  { margin-top: 8px; }
.mt-18 { margin-top: 18px; }
.mt-28 { margin-top: 28px; }
.mb-0  { margin-bottom: 0; }
.pb-48 { padding-bottom: 48px; }
.pb-56 { padding-bottom: 56px; }
.pb-64 { padding-bottom: 64px; }
.body-sm { font-size: 1rem; }
.h1--doc { font-size: clamp(2rem, 4vw, 2.9rem); }
address.contact__details { font-style: normal; }

/* --- Impression ---------------------------------------------------------- */
@media print {
  .header, .footer__col, .hero__actions, .form, .btn, .tools { display: none !important; }
  body { background: #fff; color: #000; }
  .section { border: 0; padding: 16px 0; }
  a[href^='http']::after { content: ' (' attr(href) ')'; font-size: .8em; }
}
