/* Charte DTK, police, couleurs, lisibilité générale et styles des boutons. */

/* Police locale : elle reste disponible sans service externe. */
@font-face {
  font-family: Bellefair;
  src: url("../fonts/Bellefair-Regular.ttf") format("truetype");
  font-display: swap;
}

/* Variables partagées : modifiez ici la palette et les espacements communs. */
:root {
  --ink: #211f1a;
  --muted: #60594e;
  --canvas: #f9f6f0;
  --cream: #fdf4ea;
  --white: #fffdfa;
  --line: #cfc4b4;
  --brand-orange: #e8762d;
  --orange: #a34219;
  --dark: #2b2b2b;
  --gutter: clamp(20px, 5.2vw, 170px);
  --gap: clamp(24px, 4vw, 110px);
  --display: Bellefair, Georgia, serif;
}
* { box-sizing: border-box; }

/* Texte, illustrations et indication du focus pour la navigation au clavier. */
html { color: var(--ink); background: var(--canvas); }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font: clamp(17px, .75vw + 7px, 22px)/1.58 "Segoe UI", Arial, sans-serif;
}
main { flex: 1; min-width: 0; }
a { color: inherit; text-underline-offset: .24em; }
/* La couleur change au survol. Le contour de focus qui suit rend le même lien repérable au clavier. */
a:hover { color: var(--orange); }
:focus-visible { outline: 3px solid #b75a32; outline-offset: 4px; }
.skip { position: absolute; transform: translateY(-150%); z-index: 20; padding: 10px 20px; background: var(--white); }
.skip:focus { transform: none; }
img { display: block; max-width: 100%; }
h1,h2,h3,p,figure,dl,ol,ul { margin-top: 0; }
h1,h2 { font-family: var(--display); font-weight: 400; letter-spacing: -.025em; }
h1 { margin-bottom: 0; font-size: clamp(54px, 5.9vw, 152px); line-height: .96; overflow-wrap: anywhere; }
h2 { font-size: clamp(38px, 3vw, 74px); line-height: 1.04; margin-bottom: .42em; }
h3 { font-size: clamp(20px, 1.35vw, 34px); line-height: 1.22; margin-bottom: .55em; }
p { max-width: 62ch; }

/* Boutons, liens d’action et textes d’introduction communs aux rubriques. */
.kicker { font-size: clamp(13px, .55vw, 19px); line-height: 1.35; letter-spacing: .12em; font-weight: 700; text-transform: uppercase; }
.lead { font-size: clamp(20px, 1.34vw, 34px); line-height: 1.38; letter-spacing: -.014em; }
.text-link { display: inline-block; font-weight: 650; color: var(--orange); }
/* La classe button sert aux boutons et aux liens d’action pour harmoniser leur apparence. */
.button {
  display: inline-flex; gap: 16px; align-items: center; justify-content: center;
  background: var(--orange); color: #fff; padding: 13px 20px; min-height: 48px;
  font: 650 clamp(15px, .62vw, 19px)/1.25 "Segoe UI", Arial, sans-serif;
  text-decoration: none; text-align: center; border: 1px solid transparent; cursor: pointer;
}
.button:hover { background: #803110; color: #fff; }

/* Adapte la mise en page aux écrans de 510 px et moins. */
@media (max-width: 510px) {
  h1 { font-size: clamp(43px,11vw,55px); }
}
