/* ==========================================================================
   BASE — reset, typographie de fond, accessibilité, textures
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  /* Les ancres ne doivent pas passer sous le bandeau démo ni sous le header
     collant. */
  scroll-padding-top: calc(var(--demo-bar-h) + var(--header-h) + var(--sp-4));
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--bg-page);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

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

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button { cursor: pointer; }

a { color: inherit; }

/* --- Texture béton ----------------------------------------------------------
   Grain généré en SVG (aucune image à charger), posé en overlay fixe sur
   toute la page. Il donne au fond clair une matière de voile bétonné plutôt
   qu'un aplat plat.
   -------------------------------------------------------------------------- */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: var(--z-watermark);
  pointer-events: none;
  opacity: 0.5;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)' opacity='0.24'/%3E%3C/svg%3E");
}

/* --- Filigrane DÉMO ---------------------------------------------------------
   Trame diagonale très pâle, purement décorative, jamais cliquable et
   retirée à l'impression.
   -------------------------------------------------------------------------- */
.demo-watermark {
  position: fixed;
  inset: 0;
  z-index: var(--z-watermark);
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Ctext x='130' y='130' font-family='Arial,sans-serif' font-size='26' font-weight='800' letter-spacing='5' fill='%2317191b' text-anchor='middle' transform='rotate(-30 130 130)'%3ED%C3%89MO%3C/text%3E%3C/svg%3E");
}

/* --- Titres -----------------------------------------------------------------
   Anton n'a qu'une seule graisse (dessinée noire) : la hiérarchie se fait par
   la taille et les capitales, pas par font-weight.
   -------------------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--text-heading);
  line-height: var(--lh-title);
  text-transform: uppercase;
}

h1 { font-size: var(--fs-h1); letter-spacing: var(--ls-display); line-height: var(--lh-tight); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }

/* Mot mis en avant dans un titre : bascule sur l'accent, jamais en italique
   (Anton n'a pas d'italique dessinée, et l'italique adoucirait le propos). */
.hl {
  color: var(--c-orange-deep);
}

/* --- Éléments de texte récurrents ------------------------------------------ */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--c-orange-deep);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 3px;
  background: currentColor;
  flex-shrink: 0;
}

.eyebrow--on-dark { color: var(--c-orange-soft); }

.lead {
  font-size: var(--fs-lead);
  color: var(--text-muted);
  max-width: 62ch;
}

.muted { color: var(--text-muted); }

strong, b { font-weight: 700; }

code {
  padding: 1px 5px;
  background: var(--c-concrete-3);
  font-family: var(--font-mono);
  font-size: 0.9em;
  color: var(--c-anthracite);
}

/* --- Accessibilité --------------------------------------------------------- */
:focus-visible {
  outline: 3px solid var(--c-orange);
  outline-offset: 2px;
}

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

.skip-link {
  position: absolute;
  top: -100px;
  left: var(--sp-4);
  z-index: 400;
  padding: var(--sp-3) var(--sp-5);
  background: var(--c-orange);
  color: #17191b;
  font-weight: 700;
  font-size: var(--fs-sm);
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: top var(--dur-fast) var(--ease-out);
}

.skip-link:focus { top: 0; }

/* --- Impression -------------------------------------------------------------
   Le devis est la page la plus souvent imprimée : on retire le décor et on
   passe le texte en noir sur blanc.
   -------------------------------------------------------------------------- */
@media print {
  body::before,
  .demo-watermark,
  .demo-bar,
  .site-header,
  .site-footer,
  .mobile-menu { display: none !important; }

  body { background: #fff; color: #000; }
}
