/* ============================================================
   BASE CSS — Styles fondamentaux du site
   Typographie, liens, éléments HTML de base.
   ============================================================ */

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: var(--fw-normal);
  line-height: var(--lh-base);
}

/* Placeholder image (motif maquette) */
.ph {
  background-image: repeating-linear-gradient(135deg, #eaeeeb 0 11px, #e1e7e3 11px 22px);
  position: relative;
  overflow: hidden;
}

.ph > span {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8a978f;
  white-space: nowrap;
}

/* Fil d'Ariane commun */
.breadcrumb {
  font-size: 13px;
  color: var(--color-text-light);
  font-weight: 600;
}

.breadcrumb a {
  color: var(--color-text-light);
}

.breadcrumb a:hover {
  color: var(--color-brand-link);
}

/* Champs formulaire maquette */
.fld {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 13px 14px;
  background: #fff;
  outline: none;
  transition: border-color var(--transition-fast);
}

.fld:focus {
  border-color: var(--color-brand);
}

.lbl {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  color: var(--color-brand-dark);
  margin-bottom: 8px;
}

.page-banner {
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border-light);
  padding: 26px 0 30px;
}

.page-banner h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.75rem, 3vw, 34px);
  margin: 12px 0 8px;
  color: var(--color-text);
}

.page-banner p {
  color: var(--color-text-muted);
  font-size: 15px;
  margin: 0;
  max-width: 640px;
}

/* ─── Typographie ─────────────────────────────────────────────── */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  color: var(--color-text);
}

h1 { font-size: var(--fs-3xl); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-xl);  }
h4 { font-size: var(--fs-lg);  }
h5 { font-size: var(--fs-base);}
h6 { font-size: var(--fs-base);}

p {
  line-height: var(--lh-relaxed);
  color: var(--color-text-muted);
}

strong { font-weight: var(--fw-semibold); color: var(--color-text); }
em     { font-style: italic; }

/* ─── Liens ───────────────────────────────────────────────────── */

a {
  color: var(--color-brand-link, var(--color-brand));
  transition: color var(--transition-fast);
}

a:hover, a:focus-visible {
  color: #16693a;
}

a:focus-visible {
  outline: 2px solid var(--color-brand);
  outline-offset: 3px;
  border-radius: var(--radius-xs);
}

/* ─── Accessibilité : lien d'évitement ────────────────────────── */

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--sp-4);
  padding: var(--sp-3) var(--sp-5);
  background: var(--color-brand-dark);
  color: var(--color-text-inverse);
  font-weight: var(--fw-semibold);
  border-radius: var(--radius-sm);
  z-index: var(--z-toast);
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: var(--sp-4);
}

/* ─── Séparateur ──────────────────────────────────────────────── */

hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: var(--sp-8) 0;
}

/* ─── Images ──────────────────────────────────────────────────── */

img {
  height: auto;
}

/* ─── Texte utilitaires ───────────────────────────────────────── */

.text-brand   { color: var(--color-brand); }
.text-muted   { color: var(--color-text-muted); }
.text-inverse { color: var(--color-text-inverse); }
.text-center  { text-align: center; }
.text-small   { font-size: var(--fs-sm); }

/* ─── Focus global ────────────────────────────────────────────── */

:focus-visible {
  outline: 2px solid var(--color-brand);
  outline-offset: 2px;
}

/* ─── Section titre générique ─────────────────────────────────── */

.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--color-brand);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--sp-3);
}

.section-title {
  font-size: var(--fs-2xl);
  font-weight: var(--fw-extrabold);
  line-height: var(--lh-tight);
  color: var(--color-text);
  margin-bottom: var(--sp-4);
}

.section-subtitle {
  font-size: var(--fs-base);
  color: var(--color-text-muted);
  line-height: var(--lh-relaxed);
  max-width: 60ch;
}
