/* Feuille partagée par les trois pages du site vitrine.
   Palette et typographie : docs/DESIGN.md §2 et §3.

   Un fichier plutôt que trois blocs <style> inline : depuis l'ajout des pages
   légales, les tokens et la base seraient recopiés à l'identique trois fois, et
   c'est ainsi qu'une couleur finit par diverger d'une page à l'autre. Ça ne
   remet pas en cause la règle « rester statique » d'AGENTS.md : c'est une
   feuille de style de même origine, ni build ni dépendance externe. */

:root {
  --onyx: #0d0d0d;
  --gold: #e5b85c;
  --ivory: #f9f9f6;
  --charcoal: #2a2a2a;
  --muted: #a8a596;
  --dim: #8a8778;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--onyx);
  color: var(--ivory);
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica,
    Arial, sans-serif;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

a {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid rgba(229, 184, 92, 0.4);
  padding-bottom: 1px;
}

a:hover {
  border-bottom-color: var(--gold);
}

.tagline {
  margin: 0;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
}

/* --- Accueil : héros centré ------------------------------------------- */

.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 2rem 1.5rem;
  text-align: center;
}

.hero img {
  width: min(280px, 70vw);
  height: auto;
}

.hero .lede {
  margin: 0;
  max-width: 34rem;
  font-size: 1.05rem;
  color: #d9d7cf;
}

/* --- Pages de texte long ---------------------------------------------- */

.doc {
  max-width: 44rem;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

.doc-head {
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--charcoal);
}

.doc-head img {
  width: 180px;
  height: auto;
}

.doc h1 {
  margin: 2rem 0 0.25rem;
  font-size: clamp(1.6rem, 5vw, 2.1rem);
  line-height: 1.2;
  letter-spacing: 0.01em;
}

.doc h2 {
  margin: 2.75rem 0 0.75rem;
  font-size: 1.15rem;
  color: var(--gold);
}

.doc h3 {
  margin: 1.75rem 0 0.5rem;
  font-size: 1rem;
}

.doc p,
.doc li {
  color: #d9d7cf;
}

.doc ul {
  padding-left: 1.1rem;
}

.doc li {
  margin: 0.35rem 0;
}

.doc li::marker {
  color: var(--gold);
}

.meta {
  margin: 0;
  font-size: 0.85rem;
  color: var(--dim);
}

/* Encadré « en résumé » et blocs de définition d'un rôle. */
.callout {
  margin: 1.5rem 0;
  padding: 1.25rem 1.4rem;
  border: 1px solid var(--charcoal);
  border-left: 3px solid var(--gold);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.02);
}

.callout > :first-child {
  margin-top: 0;
}

.callout > :last-child {
  margin-bottom: 0;
}

/* Un tableau ne doit jamais élargir la page sur un téléphone. */
.table-wrap {
  overflow-x: auto;
  margin: 1.25rem 0;
}

table {
  width: 100%;
  min-width: 32rem;
  border-collapse: collapse;
  font-size: 0.92rem;
}

th,
td {
  padding: 0.6rem 0.75rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--charcoal);
  color: #d9d7cf;
}

th {
  color: var(--ivory);
  font-weight: 600;
}

dl {
  margin: 1rem 0;
}

dt {
  margin-top: 1rem;
  font-weight: 600;
  color: var(--ivory);
}

dd {
  margin: 0.25rem 0 0;
  color: #d9d7cf;
}

/* --- Pied de page commun ---------------------------------------------- */

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 1.25rem;
  font-size: 0.8rem;
  color: var(--dim);
}

.doc .site-footer {
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--charcoal);
}

.site-footer a {
  color: var(--muted);
  border-bottom-color: rgba(168, 165, 150, 0.35);
}

.site-footer a:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}
