/* L'Échelle du souffle — tout le site est une échelle de perception de l'effort, de 0 à 10.
   Chaque graduation est une page ; les pages gardent une jauge latérale qui indique où l'on se trouve. */
@font-face { font-family: "Unbounded"; src: url("polices/unbounded-normal-400-800.woff2") format("woff2"); font-weight: 400 800; font-display: swap; }
@font-face { font-family: "Onest"; src: url("polices/onest-normal-400-700.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("polices/instrument-normal-400.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("polices/instrument-italic-400.woff2") format("woff2"); font-style: italic; font-display: swap; }

:root {
  --fond: #f2f5f6;
  --carte: #ffffff;
  --encre: #14212b;
  --gris: #536370;
  --trait: #d4dde2;
  --n0: #3a6f8f;   /* repos : bleu ardoise */
  --n2: #2f9488;   /* très léger : sarcelle */
  --n4: #7fb24a;   /* modéré : vert tendre */
  --n6: #e8b730;   /* soutenu : jaune */
  --n8: #ec8436;   /* difficile : orange */
  --n10: #d2452c;  /* maximal : vermillon */
  --lien: #1f5f80;
  --degrade: linear-gradient(90deg, var(--n0), var(--n2) 20%, var(--n4) 40%, var(--n6) 60%, var(--n8) 80%, var(--n10));
  --degrade-v: linear-gradient(180deg, var(--n0), var(--n2) 20%, var(--n4) 40%, var(--n6) 60%, var(--n8) 80%, var(--n10));
  --titre: "Unbounded", system-ui, sans-serif;
  --serif: "Instrument Serif", serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--fond); color: var(--encre); font: 17px/1.65 "Onest", system-ui, sans-serif; overflow-wrap: break-word; }
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--n6); outline-offset: 2px; border-radius: 3px; }
img { display: block; max-width: 100%; height: auto; }
.cadre { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.saut { position: absolute; left: -9999px; top: 8px; background: var(--encre); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 10; }
.saut:focus { left: 16px; }

/* ---------- En-tête : nom + mini-jauge de navigation ---------- */
.entete { padding: 22px 0 0; }
.entete .cadre { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 28px; }
.nom { font-family: var(--titre); font-weight: 700; font-size: 1.05rem; letter-spacing: -.01em; text-decoration: none; display: flex; align-items: center; gap: 10px; }
.nom i { display: inline-block; flex: none; width: 46px; height: 10px; border-radius: 5px; background: var(--degrade); }
.nom small { display: block; font: 400 .78rem/1.3 "Onest", sans-serif; color: var(--gris); letter-spacing: 0; }
.jauge-nav { flex: 1 1 520px; max-width: 660px; }
.jauge-nav ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(11, minmax(0, 1fr)); position: relative; }
.jauge-nav ol::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; border-radius: 3px; background: var(--degrade); }
.jauge-nav li { position: relative; text-align: center; padding-bottom: 14px; font: 600 .7rem/1.2 var(--titre); color: var(--gris); }
.jauge-nav li::after { content: ""; position: absolute; left: 50%; bottom: 6px; width: 1px; height: 8px; background: var(--gris); }
.jauge-nav li a { display: block; text-decoration: none; color: var(--encre); }
.jauge-nav li a span { display: block; font: 400 .7rem/1.15 "Onest", sans-serif; color: var(--gris); margin-top: 3px; }
.jauge-nav li a:hover span, .jauge-nav li a[aria-current] span { color: var(--encre); text-decoration: underline; }
.jauge-nav li.ici::before { content: ""; position: absolute; left: 50%; bottom: -5px; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: var(--carte); border: 3px solid var(--encre); z-index: 1; }

/* ---------- Accueil : ouverture sans photo ---------- */
.ouverture { padding: 56px 0 30px; display: grid; grid-template-columns: 1.35fr 1fr; gap: 40px; align-items: end; }
.ouverture h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.4rem, 5.6vw, 4.6rem); line-height: 1.02; margin: 0 0 18px; letter-spacing: -.01em; }
.ouverture h1 em { color: var(--n2); }
.ouverture p { margin: 0 0 12px; max-width: 58ch; }
.parole { background: var(--carte); border-radius: 18px; padding: 20px 22px; border: 1px solid var(--trait); }
.parole h2 { font: 700 .78rem/1.3 var(--titre); text-transform: uppercase; letter-spacing: .06em; margin: 0 0 12px; color: var(--gris); }
.parole dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; align-items: center; }
.parole dt { font: 800 1rem/1 var(--titre); width: 3.4em; white-space: nowrap; text-align: center; padding: 8px 0; border-radius: 10px; color: #fff; }
.parole dd { margin: 0; font-size: .95rem; }
.parole dd b { font-family: var(--serif); font-weight: 400; font-style: italic; font-size: 1.15rem; }
.parole p { margin: 12px 0 0; font-size: .85rem; color: var(--gris); }
.t1 { background: var(--n2); } .t2 { background: #5f9a2c; } .t3 { background: var(--n6); color: var(--encre) !important; } .t4 { background: var(--n10); }

/* ---------- L'échelle verticale (cœur de l'accueil) ---------- */
.echelle { position: relative; margin: 26px 0 0; padding-left: 0; list-style: none; }
.echelle > li { display: grid; grid-template-columns: 120px 18px minmax(0, 1fr) minmax(0, 330px); gap: 0 26px; align-items: stretch; }
.echelle .num { font: 800 clamp(3rem, 6vw, 5.2rem)/1 var(--titre); text-align: right; padding-top: 18px; letter-spacing: -.04em; color: var(--ct); }
.echelle .barre { position: relative; }
.echelle .barre::before { content: ""; position: absolute; inset: 0; background: linear-gradient(var(--c0), var(--c)); }
.echelle > li:first-child .barre::before { border-radius: 9px 9px 0 0; }
.echelle > li:last-child .barre::before { border-radius: 0 0 9px 9px; }
.echelle .barre::after { content: ""; position: absolute; left: -10px; right: -10px; top: 40px; height: 3px; background: var(--encre); }
.echelle .texte { padding: 22px 0 34px; border-bottom: 1px solid var(--trait); }
.echelle .sans-photo .texte { grid-column: 3 / -1; }
.echelle .texte .dit { font-family: var(--serif); font-style: italic; font-size: clamp(1.45rem, 2.6vw, 2rem); line-height: 1.15; margin: 0 0 6px; }
.echelle .texte h2 { font: 700 .82rem/1.3 var(--titre); text-transform: uppercase; letter-spacing: .05em; margin: 0 0 10px; }
.echelle .texte h2 a { color: var(--lien); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.echelle .texte p { margin: 0 0 10px; max-width: 62ch; }
.echelle .vue { margin: 0; padding: 22px 0 34px; }
.echelle .vue img { width: 100%; height: 170px; object-fit: cover; border-radius: 10px; }
.echelle .vue.haute img { height: 240px; }

/* Bande photo graduée bord à bord */
.bande { position: relative; margin: 46px 0; }
.bande img { width: 100%; height: clamp(180px, 26vw, 320px); object-fit: cover; }
.bande::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 26px;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.95) 0 2px, transparent 2px 9.09%), linear-gradient(transparent 60%, rgba(20,33,43,.35)); }
.bande p { position: absolute; left: 16px; bottom: 36px; margin: 0; color: #fff; font: 400 clamp(1.2rem, 2.4vw, 1.8rem)/1.2 var(--serif); font-style: italic; text-shadow: 0 1px 12px rgba(0,0,0,.55); max-width: 30ch; }

/* Pages ajoutées depuis (accueil) */
.ajouts { margin: 40px 0 0; padding: 22px 24px; background: var(--carte); border: 1px solid var(--trait); border-radius: 18px; }
.ajouts h2 { font: 700 .82rem/1.3 var(--titre); text-transform: uppercase; letter-spacing: .05em; margin: 0 0 10px; color: var(--gris); }
.ajouts ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px 22px; }
.ajouts li b { display: inline-block; min-width: 2.2em; margin-right: 8px; padding: 2px 0; border-radius: 6px; text-align: center; color: #fff; background: var(--encre); font: 700 .75rem/1.4 var(--titre); }
.ajouts a { color: var(--lien); }

/* Encadré information générale : « zone de repos » */
.repos { margin: 40px 0; border: 2px dashed var(--n0); border-radius: 18px; padding: 22px 24px 22px 92px; position: relative; background: #eaf1f4; }
.repos::before { content: "0"; position: absolute; left: 24px; top: 18px; font: 800 2.6rem/1 var(--titre); color: var(--n0); }
.repos h2, .repos h3 { font: 700 .82rem/1.3 var(--titre); text-transform: uppercase; letter-spacing: .05em; margin: 0 0 6px; }
.repos p { margin: 0; max-width: 78ch; }

/* Trois vignettes en escalier (dernier bloc de l'accueil) */
.marches { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: end; margin: 30px 0 10px; }
.marches figure { margin: 0; }
.marches figure:nth-child(1) img { height: 180px; } .marches figure:nth-child(2) img { height: 250px; } .marches figure:nth-child(3) img { height: 320px; }
.marches img { width: 100%; object-fit: cover; border-radius: 12px; }
.marches figcaption { font-size: .82rem; color: var(--gris); margin-top: 6px; }

/* ---------- Pages intérieures : jauge latérale + texte ---------- */
.page { display: grid; grid-template-columns: 92px minmax(0, 1fr) 280px; gap: 40px; padding: 46px 0 30px; }
.page.simple { grid-template-columns: 92px minmax(0, 1fr); }
.cote { position: sticky; top: 24px; align-self: start; height: min(76vh, 620px); display: flex; flex-direction: column; justify-content: space-between; padding: 4px 0;
  border-radius: 12px; background: var(--degrade-v); color: #fff; font: 800 .9rem/1 var(--titre); text-align: center; }
.cote span { opacity: .6; }
.cote span.ici { opacity: 1; background: var(--carte); color: var(--encre); margin: 0 -10px; padding: 9px 0; border-radius: 10px; box-shadow: 0 6px 18px rgba(20,33,43,.2); }
.cote span.ici small { display: block; font: 600 .62rem/1.2 "Onest", sans-serif; margin-top: 4px; }
.fil { font-size: .85rem; color: var(--gris); margin: 0 0 14px; }
.fil a { color: var(--gris); }
article h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.1rem, 4.4vw, 3.4rem); line-height: 1.05; margin: 0 0 16px; }
article .chapo { font-size: 1.15rem; color: var(--gris); margin: 0 0 26px; max-width: 60ch; }
article h2 { font: 700 1.05rem/1.3 var(--titre); margin: 34px 0 10px; letter-spacing: -.01em; scroll-margin-top: 70px; }
article h2[data-n]::before { content: attr(data-n); display: inline-block; min-width: 2.4em; margin-right: 10px; padding: 3px 4px; border-radius: 6px; text-align: center; color: #fff; background: var(--encre); font-size: .8rem; vertical-align: 2px; }
article h3 { font: 600 1.25rem/1.25 var(--serif); font-style: italic; margin: 22px 0 6px; }
article p, article li { max-width: 66ch; }
article ul, article ol { padding-left: 1.2em; }
article li { margin-bottom: 4px; }
article p a, article li a { color: var(--lien); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.vue-page { margin: 28px 0; max-width: 66ch; }
.vue-page img { width: 100%; height: 320px; object-fit: cover; border-radius: 12px; }
.vue-page.etroite { max-width: 420px; }
.vue-page.etroite img { height: 380px; }
.vue-page figcaption { font-size: .85rem; color: var(--gris); margin-top: 6px; padding-left: 12px; border-left: 4px solid var(--c, var(--n2)); }
.encadre { margin: 24px 0; padding: 16px 20px; background: var(--carte); border-left: 6px solid var(--c, var(--n2)); border-radius: 0 14px 14px 0; max-width: 66ch; }
.encadre p { margin: 0 0 8px; } .encadre p:last-child { margin: 0; }
.reperes { align-self: start; position: sticky; top: 24px; }
.reperes .boite { background: var(--carte); border: 1px solid var(--trait); border-radius: 16px; padding: 18px 20px; margin-bottom: 16px; }
.reperes h2 { font: 700 .75rem/1.3 var(--titre); text-transform: uppercase; letter-spacing: .06em; color: var(--gris); margin: 0 0 8px; }
.reperes p, .reperes li { font-size: .93rem; margin: 0 0 6px; }
.reperes ol { padding-left: 1.4em; margin: 0; }
.reperes ol a { color: var(--lien); }
.reperes .repos { margin: 0; padding: 16px 18px 16px 62px; }
.reperes .repos::before { font-size: 1.8rem; left: 18px; top: 14px; }
.verifier { margin-top: 34px; padding-top: 18px; border-top: 1px solid var(--trait); font-size: .92rem; }
.verifier h2 { font: 700 .82rem/1.3 var(--titre); text-transform: uppercase; letter-spacing: .05em; margin: 0 0 8px; }
.verifier ul { list-style: none; padding: 0; margin: 0; }
.verifier li { margin-bottom: 6px; padding-left: 18px; position: relative; }
.verifier li::before { content: ""; position: absolute; left: 0; top: .6em; width: 9px; height: 4px; border-radius: 2px; background: var(--degrade); }
.verifier a { color: var(--lien); }
.voisine { margin: 26px 0 0; font-size: .95rem; }
.voisine a { color: var(--lien); }
.suite { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 34px 0 0; }
.suite a { display: block; padding: 14px 16px; background: var(--carte); border: 1px solid var(--trait); border-radius: 14px; text-decoration: none; font-weight: 600; }
.suite a:hover { border-color: var(--encre); }
.suite a small { display: block; font: 600 .7rem/1.3 var(--titre); text-transform: uppercase; letter-spacing: .05em; color: var(--gris); margin-bottom: 4px; }
.suite a.d { text-align: right; }
.liste-404 { columns: 2 260px; padding-left: 1.2em; }

/* ---------- Pied de page ---------- */
.pied { margin-top: 50px; background: var(--encre); color: #dfe7ec; padding: 34px 0 40px; font-size: .92rem; }
.pied .cadre { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 28px; }
.pied a { color: #fff; }
.pied b { display: block; font: 700 .75rem/1.3 var(--titre); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 10px; color: #fff; }
.pied .reglette { height: 8px; border-radius: 4px; background: var(--degrade); margin-bottom: 14px; max-width: 260px; }
.pied ul { list-style: none; margin: 0; padding: 0; }
.pied li { margin-bottom: 6px; }
.pied p { margin: 0 0 10px; }

/* ---------- Mobile ---------- */
@media (max-width: 900px) {
  .ouverture { grid-template-columns: 1fr; padding-top: 34px; gap: 24px; }
  .echelle > li { grid-template-columns: 64px 12px minmax(0, 1fr); gap: 0 14px; }
  .echelle .vue { grid-column: 3; grid-row: 2; padding-top: 0; }
  .echelle .sans-photo .texte { grid-column: 3; }
  .echelle .barre { grid-column: 2; grid-row: 1 / span 2; }
  .echelle .num { grid-row: 1; font-size: 2.4rem; padding-top: 20px; }
  .echelle .texte { border-bottom: 0; padding-bottom: 12px; }
  .echelle .barre::after { top: 34px; left: -6px; right: -6px; }
  .page, .page.simple { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 26px; }
  .cote { position: sticky; top: 0; z-index: 3; height: auto; flex-direction: row; padding: 6px 4px; background: var(--degrade); font-size: .72rem; border-radius: 0 0 10px 10px; }
  .cote span.ici { margin: -10px 0; padding: 8px 6px; }
  .cote span.ici small { display: none; }
  .reperes { position: static; }
  .pied .cadre { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .jauge-nav li a span { display: none; }
  .marches { grid-template-columns: 1fr 1fr; }
  .marches figure:nth-child(3) { grid-column: 1 / -1; }
  .marches figure:nth-child(3) img { height: 220px; }
  .vue-page img, .vue-page.etroite img { height: 230px; }
  .repos { padding: 64px 18px 18px; }
  .repos::before { left: 18px; top: 14px; }
  .suite { grid-template-columns: 1fr; }
  .suite a.d { text-align: left; }
}
