:root {
  --papier: #f5f6f8;
  --encre: #1c2230;
  --gris: #5a6272;
  --filet: #d7dbe2;
  --cadastre: #2d5b4c;
  --surligneur: #ffe15a;
  --blanc: #ffffff;
  --mesure: 68ch;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--papier);
  color: var(--encre);
  font-family: "Archivo", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
  font-variant-numeric: tabular-nums;
}

a { color: var(--cadastre); text-underline-offset: 0.18em; }
a:hover { color: var(--encre); }
:focus-visible { outline: 3px solid var(--cadastre); outline-offset: 3px; border-radius: 2px; }

.cadre { max-width: 72rem; margin: 0 auto; padding: 0 clamp(1.1rem, 4vw, 2.5rem); }

/* en-tête */
.entete { border-bottom: 1px solid var(--filet); background: var(--papier); }
.entete .cadre { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-block: 1rem; }
.marque {
  font-weight: 800;
  font-stretch: 118%;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  color: var(--encre);
  text-decoration: none;
}
.marque span { font-stretch: 70%; font-weight: 600; color: var(--cadastre); }
.nav { display: flex; gap: 1.25rem; flex-wrap: wrap; font-size: 0.95rem; }
.nav a { color: var(--encre); text-decoration: none; }
.nav a:hover { text-decoration: underline; }

/* accroche : la ligne-produit elle-même */
.accroche { padding-block: clamp(3rem, 9vw, 6.5rem) clamp(2.5rem, 6vw, 4.5rem); }
.ligne-produit {
  margin: 0;
  font-size: clamp(2.3rem, 6.6vw, 5.4rem);
  line-height: 1.02;
  font-weight: 700;
  font-stretch: 72%;
  letter-spacing: -0.02em;
  max-width: 26ch;
  min-height: 3.1em;
}
@media (min-width: 900px) { .ligne-produit { min-height: 2.1em; } }
.ligne-produit .nombre {
  font-stretch: 125%;
  font-weight: 800;
  padding: 0 0.08em;
  background-image: linear-gradient(transparent 52%, var(--surligneur) 52%, var(--surligneur) 92%, transparent 92%);
  background-repeat: no-repeat;
  background-size: 100% 100%;
}
.ligne-produit.passe .nombre { animation: surligne 0.7s ease-out both; }
@keyframes surligne { from { background-size: 0% 100%; } to { background-size: 100% 100%; } }

.sous-titre { max-width: var(--mesure); margin: 1.6rem 0 0; font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--gris); }
.actions { display: flex; gap: 0.9rem 1.4rem; flex-wrap: wrap; align-items: center; margin-top: 2rem; }
.bouton {
  display: inline-block;
  background: var(--encre);
  color: var(--blanc);
  padding: 0.85rem 1.3rem;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
}
.bouton:hover { background: var(--cadastre); color: var(--blanc); }

/* sections */
.section { padding-block: clamp(2.5rem, 6vw, 4.5rem); border-top: 1px solid var(--filet); }
.section h2 {
  margin: 0 0 1.4rem;
  font-size: clamp(1.6rem, 3.2vw, 2.3rem);
  line-height: 1.1;
  font-weight: 700;
  font-stretch: 80%;
  letter-spacing: -0.01em;
}
.section p { max-width: var(--mesure); }
.deux-colonnes { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); }
@media (max-width: 760px) { .deux-colonnes { grid-template-columns: 1fr; } }

/* tableaux */
.tableau { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.98rem; }
caption { text-align: left; font-weight: 700; font-stretch: 90%; font-size: 1.1rem; padding-bottom: 0.6rem; }
th, td { text-align: left; padding: 0.62rem 0.75rem 0.62rem 0; border-bottom: 1px solid var(--filet); vertical-align: top; }
thead th { font-weight: 600; color: var(--gris); border-bottom: 2px solid var(--encre); }
td.prix, th.prix { text-align: right; white-space: nowrap; padding-right: 0; }
td.prix { font-weight: 700; font-stretch: 110%; }
.colonne { font-weight: 600; white-space: nowrap; }

/* étapes : un vrai déroulé, d'où la numérotation */
.etapes { list-style: none; margin: 0; padding: 0; counter-reset: etape; display: grid; gap: 1.4rem; max-width: 52rem; }
.etapes li { counter-increment: etape; display: grid; grid-template-columns: 2.4rem 1fr; gap: 0.2rem 1rem; }
.etapes li::before {
  content: counter(etape);
  grid-row: span 2;
  font-weight: 800;
  font-stretch: 125%;
  font-size: 1.6rem;
  line-height: 1.1;
  color: var(--cadastre);
}
.etapes strong { font-weight: 700; }
.etapes p { margin: 0; color: var(--gris); }

/* familles de fichiers */
.familles { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1.2rem 2.5rem; margin: 0; }
.familles div { border-left: 3px solid var(--surligneur); padding-left: 0.9rem; }
.familles dt { font-weight: 700; }
.familles dd { margin: 0.15rem 0 0; color: var(--gris); }

.note { color: var(--gris); font-size: 0.95rem; }

/* pages de texte */
.texte { padding-block: clamp(2.5rem, 6vw, 4.5rem); max-width: var(--mesure); }
.texte h1 { font-size: clamp(2rem, 4.5vw, 3rem); line-height: 1.05; font-weight: 700; font-stretch: 78%; margin: 0 0 1.5rem; }
.texte h2 { font-size: 1.25rem; font-weight: 700; margin: 2.2rem 0 0.5rem; }
.texte ul { padding-left: 1.2rem; }
.texte li { margin-bottom: 0.3rem; }

/* pied */
.pied { border-top: 1px solid var(--filet); padding-block: 2rem 2.5rem; color: var(--gris); font-size: 0.93rem; }
.pied .cadre { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.pied a { color: var(--gris); }
.liens-pied { display: flex; gap: 1.2rem; }

@media (prefers-reduced-motion: reduce) {
  .ligne-produit.passe .nombre { animation: none; }
}
