/**
 * La palette est celle de l'application (apps/web/src/styles.css, 10-interface §3) : quelqu'un
 * qui arrive du site sur son espace ne doit pas avoir l'impression de changer de produit.
 * Recopiée et non importée — le site n'a pas Tailwind, et n'a aucune raison de l'avoir.
 */
:root {
  --rose: #d91b5c;
  --rose-dark: #b0134a;
  --turquoise: #00adbb;
  --gray-line: #e5e4e1;
  --gray-fill: #f6f5f3;
  --ink: #1c1c1e;
  --ink-soft: #5c5c63;
  --sans:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--sans);
  /* Plus grand que dans l'application : ici on lit des paragraphes, pas des tableaux. */
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: #ffffff;
}

a {
  color: var(--rose-dark);
}

/* Le premier lien de la page, visible seulement au clavier. */
.saut {
  position: absolute;
  left: -9999px;
}
.saut:focus {
  left: 1rem;
  top: 1rem;
  z-index: 10;
  background: #ffffff;
  padding: 0.6rem 1rem;
  border: 2px solid var(--rose);
  border-radius: 8px;
}

.bande {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── En-tête ─────────────────────────────────────────────────────────────── */

.entete {
  border-bottom: 1px solid var(--gray-line);
}
.entete .bande {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1rem;
}

.marque {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
  text-decoration: none;
}
.logo {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--rose);
  color: #ffffff;
  font-weight: 700;
}

.menu {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.94rem;
}
.menu a {
  color: var(--ink-soft);
  text-decoration: none;
}
.menu a:hover,
.menu a:focus-visible {
  color: var(--ink);
}
.menu a[aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
}

/* ── Contenu ─────────────────────────────────────────────────────────────── */

main {
  padding-block: 3rem 4rem;
}

h1 {
  font-size: 2rem;
  line-height: 1.25;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}
h2 {
  font-size: 1.25rem;
  margin: 2.5rem 0 0.75rem;
  letter-spacing: -0.01em;
}
h3 {
  font-size: 1.02rem;
  margin: 1.75rem 0 0.5rem;
}
p,
li {
  margin: 0 0 1rem;
}
ul {
  padding-left: 1.25rem;
}
li {
  margin-bottom: 0.5rem;
}
.chapo {
  font-size: 1.12rem;
  color: var(--ink-soft);
  margin-bottom: 2rem;
}

.date {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-bottom: 2rem;
}

/* Un bloc qui insiste — la promesse centrale, ou une mise en garde. */
.encadre {
  border-left: 3px solid var(--turquoise);
  background: var(--gray-fill);
  padding: 1rem 1.25rem;
  border-radius: 0 10px 10px 0;
  margin: 1.75rem 0;
}
.encadre > :last-child {
  margin-bottom: 0;
}

/* Ce qui reste à renseigner avant publication : impossible à rater. */
.a-completer {
  background: #fff3cd;
  border: 1px dashed var(--rose);
  border-radius: 6px;
  padding: 0.1rem 0.4rem;
  font-weight: 600;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0 1.75rem;
  font-size: 0.95rem;
}
th,
td {
  text-align: left;
  vertical-align: top;
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--gray-line);
}
th {
  background: var(--gray-fill);
  font-weight: 600;
}
/* Un tableau ne doit jamais élargir la page sur un téléphone. */
.defilant {
  overflow-x: auto;
}

/* ── Pied ────────────────────────────────────────────────────────────────── */

.pied {
  border-top: 1px solid var(--gray-line);
  padding-block: 1.75rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.pied .bande {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.pied p {
  margin: 0;
}
.pied nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}
.pied a {
  color: var(--ink-soft);
  text-decoration: none;
}
.pied a:hover,
.pied a:focus-visible {
  color: var(--ink);
  text-decoration: underline;
}
