/* ============================================================
   base.css — remise à zéro, lettrage, boutons, icônes, chrome
   commun aux deux pages du site.
   ============================================================ */

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

html {
  scroll-behavior: smooth;
  /* La barre d'alimentation est collante : sans cette marge, une ancre
     glisse son titre sous le bandeau. */
  scroll-padding-top: 5.5rem;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--panel-deep);
  color: var(--on-panel);
  font-family: var(--face-text);
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

/* --- Titres : Archivo étendu (axe de chasse à 112 %), le plus lourd,
       en capitales très serrées — le lettrage estampé d'une plaque
       d'appareillage, pas une graisse de titrage générique. ---------- */
h1, h2, h3 {
  font-family: var(--face-display);
  font-weight: 900;
  font-stretch: 112%;
  font-variation-settings: 'wdth' 112;
  text-transform: uppercase;
  letter-spacing: -.03em;
  line-height: .94;
  text-wrap: balance;
  margin: 0 0 1rem;
}
h1 { font-size: clamp(2.9rem, 8.4vw, 6rem); }
h2 { font-size: clamp(1.9rem, 4.2vw, 3.1rem); }
h3 {
  font-size: 1.12rem;
  font-weight: 800;
  font-stretch: 100%;
  font-variation-settings: 'wdth' 100;
  text-transform: none;
  letter-spacing: -.012em;
  line-height: 1.2;
}

p { margin: 0 0 1rem; max-width: var(--max-read); }
p:last-child { margin-bottom: 0; }

a { color: inherit; }

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

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--live); color: var(--panel-deep);
  padding: .8rem 1.2rem; font-weight: 700; text-decoration: none;
}
.skip-link:focus { left: 0; }

/* --- Repères : Azeret Mono, réservé aux codes, calibres et étiquettes
       du schéma — jamais comme costume « technique » sur du texte courant. */
.mark {
  font-family: var(--face-mark);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
}

/* --- Icônes dessinées : un seul trait, une seule graisse ------------ */
.ico {
  width: 1.1em; height: 1.1em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* --- Boutons -------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--face-text);
  font-weight: 700;
  font-size: .98rem;
  line-height: 1.1;
  min-height: 52px;
  padding: .9rem 1.6rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  transition: background-color .18s var(--ease-out), color .18s var(--ease-out),
              box-shadow .18s var(--ease-out), transform .18s var(--ease-out);
}
.btn:focus-visible { outline: 3px solid var(--live); outline-offset: 3px; }

/* Le bouton sous tension : c'est le conducteur qui devient cliquable. */
.btn-live {
  background: var(--live);
  color: var(--panel-deep);
  box-shadow: 0 2px 4px rgba(2, 12, 7, .2), 0 14px 30px -14px rgba(255, 234, 50, .55);
}
.btn-live:hover {
  background: var(--live-warm);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(2, 12, 7, .24), 0 20px 40px -14px rgba(255, 234, 50, .7);
}
.btn-live:active { transform: translateY(0); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule);
}
.btn-ghost:hover { background: var(--plate-2); }

/* --- Barre d'alimentation (en-tête collant) -------------------------- */
.feed {
  position: sticky; top: 0; z-index: 40;
  background: var(--panel-deep);
  border-bottom: 1px solid var(--hairline);
}
/* Le liseré jaune : le jeu de barres sous tension qui alimente la page. */
.feed::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: linear-gradient(90deg, var(--live) 0%, var(--live-warm) 55%, rgba(255,197,49,.25) 100%);
}
.feed-rail {
  max-width: var(--max); margin: 0 auto;
  padding: .7rem var(--gutter);
  display: flex; align-items: center; gap: 1.5rem;
}
.feed-mark { display: flex; align-items: center; flex: none; }
.feed-mark img {
  height: 2.7rem; width: auto;
  background: var(--plate);
  padding: .3rem .55rem;
  border-radius: 2px;
}
.feed-mark:focus-visible { outline: 3px solid var(--live); outline-offset: 3px; }

.feed-meta {
  margin: 0; flex: 1 1 auto; max-width: none;
  display: flex; align-items: center; gap: .8rem;
  font-family: var(--face-mark);
  font-size: .68rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--on-panel-soft);
}
.feed-sep { width: 22px; height: 1px; background: var(--hairline-strong); }

.feed-nav { display: flex; align-items: center; gap: .3rem; flex: none; }
.feed-nav a {
  display: flex; align-items: center; gap: .45rem;
  padding: .8rem .75rem;
  font-size: .82rem; font-weight: 600; letter-spacing: .01em;
  color: var(--on-panel-soft); text-decoration: none;
}
.feed-nav a:hover { color: var(--live); }
.feed-nav a:focus-visible { outline: 3px solid var(--live); outline-offset: -3px; }
.feed-call {
  color: var(--on-panel) !important;
  font-family: var(--face-mark); font-weight: 600 !important;
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius);
  margin-left: .4rem;
}
.feed-call:hover { border-color: var(--live); }

@media (max-width: 940px) {
  .feed-meta { display: none; }
  .feed-rail { justify-content: space-between; gap: .8rem; }
}
@media (max-width: 560px) {
  .feed-nav a:not(.feed-call) { display: none; }
}

/* --- Barre d'action fixe, sous 720px --------------------------------- */
.quick-bar { display: none; }
@media (max-width: 720px) {
  body { padding-bottom: 62px; }
  .quick-bar {
    display: flex;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    box-shadow: 0 -2px 6px rgba(2, 12, 7, .2), 0 -14px 30px -18px rgba(2, 12, 7, .8);
  }
  .quick-bar a {
    flex: 1 1 50%;
    display: flex; align-items: center; justify-content: center; gap: .5rem;
    min-height: 62px;
    font-weight: 800; font-size: .95rem;
    text-decoration: none;
  }
  .quick-call { background: var(--forest); color: var(--on-panel); }
  .quick-ask  { background: var(--live);   color: var(--panel-deep); }
  .quick-call:focus-visible { outline: 3px solid var(--live); outline-offset: -4px; }
  .quick-ask:focus-visible  { outline: 3px solid var(--panel-deep); outline-offset: -4px; }
}
