/* ConsoLab : site de présentation. Couleurs du logo, une seule police (Inter), aucune ressource extérieure. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("polices/inter-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("polices/inter-latin-600-normal.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --fond: #f8f9fa;          /* blanc cassé */
  --nuit: #142b43;          /* bleu nuit du logo : texte et titres */
  --petrole: #147d86;       /* bleu pétrole du logo : liens et bouton */
  --petrole-appuye: #0f6168;
  --trait: #d4d9df;         /* séparateurs fins */
  --police: "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gouttiere: 3rem;
  --colonne: 2rem;          /* espace entre colonnes */
  --largeur: 76rem;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 1.5rem; }

body {
  margin: 0;
  background: var(--fond);
  color: var(--nuit);
  font-family: var(--police);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-kerning: normal;
  font-feature-settings: "kern", "calt";
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

h1, h2, h3, p, ol, ul { margin: 0; }
p { text-wrap: pretty; }
img { display: block; max-width: 100%; height: auto; }

a { color: var(--petrole); text-decoration-thickness: 1px; text-underline-offset: .22em; }
a:hover { color: var(--petrole-appuye); text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid var(--nuit); outline-offset: 3px; border-radius: 2px; }

.evitement {
  position: absolute; left: var(--gouttiere); top: -4rem; z-index: 2;
  background: var(--fond); color: var(--nuit); padding: .5rem .75rem;
}
.evitement:focus { top: .75rem; }

/* Largeur utile et grille : douze colonnes ; les textes courants partent tous de la sixième. */
.cadre {
  max-width: calc(var(--largeur) + 2 * var(--gouttiere));
  margin: 0 auto;
  padding-left: var(--gouttiere);
  padding-right: var(--gouttiere);
}

/* ------------------------------------------------------------------ entête */
.entete { border-bottom: 1px solid var(--trait); }
.barre {
  display: flex; align-items: center; gap: 2rem;
  padding-top: 1.125rem; padding-bottom: 1.125rem;
}
.logo { flex: none; display: block; border-radius: 2px; }
.logo img { width: 160px; height: 50px; }
.navigation { display: flex; align-items: center; gap: 1.75rem; margin-left: auto; font-size: .9375rem; }
.navigation a { color: var(--nuit); text-decoration: none; }
.navigation a:hover { color: var(--petrole); text-decoration: underline; text-decoration-thickness: 1px; }
.navigation .acces { padding-left: 1.75rem; border-left: 1px solid var(--trait); }

.bouton {
  display: inline-block; background: var(--petrole); color: #ffffff;
  font-weight: 600; font-size: 1rem; line-height: 1.25; letter-spacing: -.005em; text-decoration: none;
  padding: .875rem 1.375rem; border-radius: 4px;
}
.bouton:hover { background: var(--petrole-appuye); color: #ffffff; text-decoration: none; }
.bouton-entete { flex: none; font-size: .9375rem; padding: .6875rem 1.125rem; }

/* ------------------------------------------------------------------ premier écran */
.ouverture {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--colonne);
  padding-top: 4rem; padding-bottom: 5.5rem;
}
.mention { grid-column: 1 / -1; font-weight: 600; font-size: 1rem; letter-spacing: -.005em; }
h1 {
  grid-column: 1 / 11;
  margin-top: 1.25rem;
  font-weight: 600; font-size: clamp(2.375rem, 1.1rem + 3.9vw, 4.5rem); line-height: 1.04; letter-spacing: -.032em;
  max-width: 13.5em;
  text-wrap: balance;
}
.ouverture-texte { grid-column: 6 / 13; margin-top: 2.75rem; max-width: 37rem; }
.chapeau { font-size: 1.3125rem; line-height: 1.5; letter-spacing: -.011em; text-wrap: pretty; }
.public { margin-top: 1rem; text-wrap: pretty; }
.appel { margin-top: 2rem; }
.normes { margin-top: 1.125rem; font-size: .9375rem; }

/* ------------------------------------------------------------------ sections */
.bloc {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--colonne);
  position: relative;
  padding-top: 4.5rem; padding-bottom: 5.5rem;
}
/* filet de séparation, sur la largeur utile seulement */
.bloc::before {
  content: ""; position: absolute; top: 0; left: var(--gouttiere); right: var(--gouttiere);
  border-top: 1px solid var(--trait);
}
h2 {
  grid-column: 1 / 5;
  font-weight: 600; font-size: 2rem; line-height: 1.15; letter-spacing: -.024em;
  text-wrap: balance;
}
.corps { grid-column: 6 / 13; max-width: 37rem; }
.corps p + p { margin-top: 1rem; }
.precision {
  margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--trait);
  font-size: .9375rem;
}

/* De la collecte à la consolidation : deux étapes, dans l'ordre où elles se déroulent. */
.etapes {
  grid-column: 6 / 13; max-width: 37rem;
  list-style: none; padding: 0;
}
.etapes li + li { margin-top: 2.5rem; padding-top: 2.5rem; border-top: 1px solid var(--trait); }
h3 { font-weight: 600; font-size: 1.3125rem; line-height: 1.3; letter-spacing: -.014em; }
.etapes p { margin-top: .625rem; text-wrap: pretty; }

/* Référentiels : les quatre noms, alignés sur la largeur utile. */
.referentiels {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 3.5rem; padding: 0; list-style: none;
  border-top: 1px solid var(--nuit); border-bottom: 1px solid var(--trait);
}
.referentiels li {
  padding: 1.75rem 1rem 1.875rem 1.25rem;
  font-weight: 600; font-size: clamp(1.375rem, .9rem + 1.1vw, 1.875rem); line-height: 1.15; letter-spacing: -.024em;
}
.referentiels li:first-child { padding-left: 0; }
.referentiels li + li { border-left: 1px solid var(--trait); }

/* Dernier bloc : même construction que le premier écran. */
.final h2 { grid-column: 1 / 11; font-size: clamp(2rem, 1.2rem + 2.2vw, 3rem); line-height: 1.08; letter-spacing: -.03em; }
.final .corps { margin-top: 2rem; }

.note-espace { padding-top: 0; padding-bottom: 3.5rem; }
.note-espace p { font-size: .9375rem; max-width: 37rem; }

/* ------------------------------------------------------------------ pied */
.pied {
  display: flex; flex-wrap: wrap; gap: .5rem 2rem;
  position: relative;
  padding-top: 1.5rem; padding-bottom: 3rem;
  font-size: .9375rem;
}
.pied::before {
  content: ""; position: absolute; top: 0; left: var(--gouttiere); right: var(--gouttiere);
  border-top: 1px solid var(--trait);
}

/* ------------------------------------------------------------------ mentions légales */
.texte { padding-top: 4rem; padding-bottom: 4.5rem; }
.texte h1 { grid-column: auto; margin: 0 0 3rem; font-size: clamp(2.25rem, 1.4rem + 2.4vw, 3.25rem); line-height: 1.08; }
.rubrique {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--colonne);
  padding-top: 1.5rem; padding-bottom: 2.5rem; border-top: 1px solid var(--trait);
}
.rubrique h2 { font-size: 1.3125rem; line-height: 1.3; letter-spacing: -.014em; }
.rubrique p { text-wrap: pretty; }
.rubrique p + p { margin-top: 1rem; }

/* ------------------------------------------------------------------ tablette */
@media (max-width: 60rem) {
  :root { --gouttiere: 2rem; }
  .navigation { gap: 1.25rem; }
  .navigation .acces { padding-left: 1.25rem; }
  h1 { grid-column: 1 / -1; }
  .ouverture-texte { grid-column: 4 / 13; }
  h2 { grid-column: 1 / -1; margin-bottom: 1.75rem; }
  .corps, .etapes { grid-column: 4 / 13; }
  .final h2 { grid-column: 1 / -1; margin-bottom: 0; }
  .rubrique h2 { margin-bottom: .75rem; }
  .rubrique .corps { grid-column: 1 / -1; }
}

/* ------------------------------------------------------------------ téléphone : une colonne, dans l'ordre de lecture */
@media (max-width: 40rem) {
  :root { --gouttiere: 1rem; }
  body { font-size: 1rem; }
  .barre { flex-wrap: wrap; gap: .75rem; padding-top: .75rem; padding-bottom: .75rem; }
  .logo img { width: 112px; height: 35px; }
  .bouton-entete { margin-left: auto; font-size: .875rem; padding: .5625rem .75rem; }
  /* les ancres passent sur une seconde ligne, sous le logo et le bouton */
  .navigation {
    order: 3; flex-basis: 100%; flex-wrap: wrap; margin-left: 0; gap: .5rem 1.125rem;
    padding-top: .625rem; border-top: 1px solid var(--trait); font-size: .875rem;
  }
  .navigation .acces { margin-left: auto; padding-left: 0; border-left: 0; }
  .ouverture, .bloc { display: block; }
  .ouverture { padding-top: 2.25rem; padding-bottom: 3.5rem; }
  .mention { font-size: .9375rem; }
  h1 { margin-top: .875rem; font-size: 2.375rem; letter-spacing: -.03em; }
  .ouverture-texte { margin-top: 1.75rem; }
  .chapeau { font-size: 1.1875rem; }
  .appel { margin-top: 1.75rem; }
  .bloc { padding-top: 3rem; padding-bottom: 3.5rem; }
  h2 { font-size: 1.625rem; margin-bottom: 1.5rem; }
  .final h2 { font-size: 1.875rem; }
  .final .corps { margin-top: 1.25rem; }
  .etapes li + li { margin-top: 1.75rem; padding-top: 1.75rem; }
  h3 { font-size: 1.1875rem; }
  .referentiels { grid-template-columns: 1fr 1fr; margin-top: 2.25rem; }
  .referentiels li { padding: 1.125rem .75rem 1.25rem 0; font-size: 1.25rem; }
  .referentiels li + li { border-left: 0; }
  .referentiels li:nth-child(even) { padding-left: 1rem; border-left: 1px solid var(--trait); }
  .referentiels li:nth-child(n+3) { border-top: 1px solid var(--trait); }
  .note-espace { padding-bottom: 2.5rem; }
  .pied { flex-direction: column; gap: .75rem; padding-bottom: 2.5rem; }
  .texte { padding-top: 2.25rem; padding-bottom: 3rem; }
  .texte h1 { margin-bottom: 2rem; font-size: 2.125rem; }
  .rubrique { display: block; padding-bottom: 2rem; }
}

@media (max-width: 22.5rem) {
  .logo img { width: 104px; height: 32.5px; }
  .bouton-entete { font-size: .8125rem; padding: .5rem .625rem; }
}

/* ================================================================== version 14.2 : pages et composants nouveaux */

/* Première page : capture de l'outil sous l'ouverture, pleine largeur utile. */
.ouverture-page { padding-bottom: 3.5rem; }
.ouverture-page h1 { grid-column: 1 / 12; }
.heros { padding-bottom: 5rem; }
.heros figure { margin: 0; }
.heros img {
  width: 100%; border: 1px solid var(--trait); border-radius: 6px;
  box-shadow: 0 18px 40px -24px rgba(20, 43, 67, .35);
}
.legende { margin-top: .875rem; font-size: .9375rem; color: #4a5a6a; }

/* Chiffres : trois nombres sur un filet, le texte sous chacun. */
.chiffres {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--colonne);
  margin-top: 3rem; padding: 1.5rem 0 0; border-top: 1px solid var(--nuit);
}
.chiffres li { list-style: none; }
.chiffres strong {
  display: block; font-weight: 600; font-size: clamp(2.5rem, 1.5rem + 2.6vw, 3.75rem); line-height: 1; letter-spacing: -.03em;
  color: var(--petrole);
}
.chiffres p { margin-top: .75rem; max-width: 22rem; }
.source { grid-column: 1 / -1; margin-top: 2rem; font-size: .875rem; color: #4a5a6a; }

/* Écrans : texte à gauche, capture à droite, puis l'inverse. */
.ecran {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--colonne); align-items: start;
  position: relative; padding-top: 4rem; padding-bottom: 4rem;
}
.ecran::before {
  content: ""; position: absolute; top: 0; left: var(--gouttiere); right: var(--gouttiere);
  border-top: 1px solid var(--trait);
}
.ecran .texte-ecran { grid-column: 1 / 5; }
.ecran figure { grid-column: 5 / 13; margin: 0; }
.ecran.inverse .texte-ecran { grid-column: 9 / 13; grid-row: 1; }
.ecran.inverse figure { grid-column: 1 / 9; grid-row: 1; }
.ecran img { width: 100%; border: 1px solid var(--trait); border-radius: 6px; background: #fff; }
.ecran h2 { grid-column: auto; font-size: 1.625rem; }
.numero { display: block; font-weight: 600; font-size: .9375rem; color: var(--petrole); letter-spacing: .02em; margin-bottom: .75rem; }
.texte-ecran p { margin-top: 1rem; }
.texte-ecran a { font-weight: 600; }

/* Ligne de temps : huit étapes, numéros en couleur. */
.ligne-temps {
  grid-column: 1 / -1; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 0;
  margin-top: 2.5rem; padding: 0; list-style: none; counter-reset: etape;
}
.ligne-temps li { position: relative; padding: 1.5rem .875rem 0 0; border-top: 2px solid var(--trait); }
.ligne-temps li::before {
  counter-increment: etape; content: counter(etape);
  position: absolute; top: -1.125rem; left: 0;
  width: 2.125rem; height: 2.125rem; border-radius: 50%; background: var(--petrole); color: #fff;
  font-weight: 600; font-size: .9375rem; line-height: 2.125rem; text-align: center;
}
.ligne-temps h3 { font-size: 1.0625rem; line-height: 1.3; margin-top: .5rem; }
.ligne-temps p { margin-top: .5rem; font-size: .9375rem; line-height: 1.45; color: #3a4a5c; }

/* Tableau sobre. */
.tableau { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.tableau th, .tableau td { text-align: left; vertical-align: top; padding: .75rem .75rem .75rem 0; border-bottom: 1px solid var(--trait); }
.tableau th { font-weight: 600; border-bottom: 1px solid var(--nuit); }
.tableau-large { grid-column: 1 / -1; margin-top: 2.5rem; }
.tableau-large .tableau { font-size: 1rem; }
.tableau-large th, .tableau-large td { padding: 1rem 1rem 1rem 0; }
.tableau a { font-weight: 600; }

/* Deux colonnes de texte (pour qui). */
.deux-colonnes { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--colonne); margin-top: 2.5rem; }
.deux-colonnes > div { padding-top: 1.25rem; border-top: 1px solid var(--nuit); }
.deux-colonnes h3 { font-size: 1.3125rem; }
.deux-colonnes p { margin-top: .75rem; }

/* Listes à puces de points forts. */
.liste-points { grid-column: 6 / 13; max-width: 40rem; margin: 0; padding: 0; list-style: none; }
.liste-points li { padding: 1rem 0; border-top: 1px solid var(--trait); }
.liste-points li:first-child { border-top: 0; padding-top: 0; }
.liste-points strong { font-weight: 600; }
.liste-points code { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: .9em; }

/* Étapes numérotées (mise en place). */
.etapes-numerotees { grid-column: 6 / 13; max-width: 37rem; margin: 0; padding: 0; list-style: none; counter-reset: etape; }
.etapes-numerotees li { position: relative; padding-left: 3.25rem; }
.etapes-numerotees li + li { margin-top: 2.25rem; }
.etapes-numerotees li::before {
  counter-increment: etape; content: counter(etape);
  position: absolute; left: 0; top: .1rem;
  width: 2.125rem; height: 2.125rem; border-radius: 50%; background: var(--petrole); color: #fff;
  font-weight: 600; font-size: .9375rem; line-height: 2.125rem; text-align: center;
}
.etapes-numerotees p { margin-top: .5rem; }

/* Questions-réponses : dépliables, sans script. */
.questions details { border-top: 1px solid var(--trait); }
.questions details:last-child { border-bottom: 1px solid var(--trait); }
.questions summary {
  cursor: pointer; padding: 1.125rem 2rem 1.125rem 0; font-weight: 600; font-size: 1.125rem; line-height: 1.35;
  list-style: none; position: relative;
}
.questions summary::-webkit-details-marker { display: none; }
.questions summary::after {
  content: "+"; position: absolute; right: 0; top: 1rem; font-weight: 400; font-size: 1.5rem; line-height: 1; color: var(--petrole);
}
.questions details[open] summary::after { content: "–"; }
.questions .reponse { padding: 0 0 1.5rem; max-width: 40rem; }
.questions .reponse p + p { margin-top: .75rem; }

/* Articles. */
.article { padding-top: 4rem; padding-bottom: 5rem; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--colonne); }
.article > * { grid-column: 3 / 11; }
.article .mention { grid-column: 3 / 11; }
.article h1 { grid-column: 3 / 11; margin-top: 1rem; font-size: clamp(2.125rem, 1.2rem + 2.6vw, 3.25rem); line-height: 1.08; max-width: none; }
.article .date { margin-top: 1.25rem; font-size: .9375rem; color: #4a5a6a; }
.article .chapeau { margin-top: 2rem; }
.article h2 { grid-column: 3 / 11; margin-top: 3rem; font-size: 1.625rem; line-height: 1.2; }
.article h3 { margin-top: 2rem; font-size: 1.25rem; }
.article p { margin-top: 1rem; }
.article ul, .article ol { margin-top: 1rem; padding-left: 1.25rem; }
.article li + li { margin-top: .5rem; }
.article .tableau { margin-top: 1.5rem; }
.article .encadre { margin-top: 2rem; padding: 1.5rem 1.75rem; border-left: 3px solid var(--petrole); background: #fff; }
.article .encadre p:first-child { margin-top: 0; }
.article .sources { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--nuit); font-size: .9375rem; }
.article .sources ol { padding-left: 1.25rem; }
.article .sources li { overflow-wrap: anywhere; }
.liste-articles { grid-column: 6 / 13; max-width: 40rem; margin: 0; padding: 0; list-style: none; }
.liste-articles li { padding: 1.5rem 0; border-top: 1px solid var(--trait); }
.liste-articles li:first-child { border-top: 0; padding-top: 0; }
.liste-articles h3 { font-size: 1.3125rem; }
.liste-articles h3 a { color: var(--nuit); text-decoration: none; }
.liste-articles h3 a:hover { color: var(--petrole); text-decoration: underline; }
.liste-articles .date { display: block; margin-bottom: .375rem; font-size: .875rem; color: #4a5a6a; }
.liste-articles p { margin-top: .5rem; }

/* Pied de page en colonnes. */
.pied { display: block; }
.pied-colonnes { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; column-gap: var(--colonne); row-gap: 2rem; }
.pied-colonnes a { display: block; color: var(--nuit); text-decoration: none; margin-top: .5rem; }
.pied-colonnes a:hover { color: var(--petrole); text-decoration: underline; }
.pied-colonnes p { margin-top: .5rem; max-width: 22rem; }
.pied-titre { font-weight: 600; margin-top: 0 !important; }

@media (max-width: 60rem) {
  .ouverture-page h1 { grid-column: 1 / -1; }
  .chiffres { grid-template-columns: 1fr 1fr 1fr; }
  .ecran .texte-ecran, .ecran figure, .ecran.inverse .texte-ecran, .ecran.inverse figure { grid-column: 1 / -1; grid-row: auto; }
  .ecran figure { margin-top: 1.75rem; }
  .ligne-temps { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 2.5rem; }
  .liste-points, .etapes-numerotees, .liste-articles { grid-column: 1 / -1; }
  .article > *, .article .mention, .article h1, .article h2 { grid-column: 1 / -1; }
  .pied-colonnes { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 40rem) {
  .heros { padding-bottom: 3rem; }
  .chiffres { display: block; margin-top: 2rem; }
  .chiffres li + li { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--trait); }
  .ecran { display: block; padding-top: 3rem; padding-bottom: 3rem; }
  .ecran h2 { font-size: 1.375rem; }
  .ligne-temps { display: block; margin-top: 1.5rem; }
  .ligne-temps li { border-top: 0; border-left: 2px solid var(--trait); padding: 0 0 1.5rem 2.75rem; margin-left: 1rem; }
  .ligne-temps li::before { top: -.125rem; left: -1.125rem; }
  .ligne-temps h3 { margin-top: 0; }
  .tableau-large { overflow-x: auto; }
  .deux-colonnes { display: block; }
  .deux-colonnes > div + div { margin-top: 2rem; }
  .article { display: block; padding-top: 2.25rem; padding-bottom: 3rem; }
  .article h1 { font-size: 2rem; }
  .pied-colonnes { display: block; }
  .pied-colonnes > div + div { margin-top: 1.5rem; }
}

/* Ouverture : bouton et lien secondaire côte à côte ; faits sous la capture. */
.appel .lien-second { display: inline-block; margin-left: 1.5rem; font-weight: 600; }
.preuves {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--colonne);
  margin: 3rem 0 0; padding: 1.5rem 0 0; list-style: none; border-top: 1px solid var(--nuit);
}
.preuves strong { display: block; font-weight: 600; font-size: 1.125rem; margin-bottom: .375rem; }
.preuves li { font-size: .9375rem; line-height: 1.5; color: #3a4a5c; }
.suite { grid-column: 6 / 13; margin-top: 1.5rem; font-weight: 600; }
#questions .questions { grid-column: 6 / 13; max-width: 40rem; }
@media (max-width: 60rem) { .suite, #questions .questions { grid-column: 1 / -1; } }
@media (max-width: 40rem) {
  .appel .lien-second { display: block; margin: 1rem 0 0; }
  .preuves { display: block; margin-top: 2rem; }
  .preuves li + li { margin-top: 1rem; }
}
