:root {
    --olive: #5c6b2f;
    --olive-sombre: #3b461d;
    --sable: #ece6d2;
    --creme: #f6f1e2;
    --ivoire: #fffdf6;
    --encre: #2f2b24;
    --encre-pale: #6a6354;
    --rayon: 22px;
  }

  * { box-sizing: border-box; }

  html, body { margin: 0; padding: 0; max-width: 100%; overflow-x: hidden; }
  html { scroll-behavior: smooth; }

  body {
    background: var(--creme);
    color: var(--encre);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 17px;
    line-height: 1.66;
  }

  h1, h2, h3, .marque-nom, .chiffre-valeur {
    font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
    font-weight: 800;
    letter-spacing: -0.015em;
    color: var(--olive-sombre);
  }

  a { color: var(--olive-sombre); text-decoration-thickness: 2px; text-underline-offset: 3px; }
  a:hover { color: var(--olive); }

  img { display: block; max-width: 100%; }

  .enclos { max-width: 72rem; margin: 0 auto; padding: 0 14px; }

  /* ---------- bandeau court, tout en haut ---------- */

  .bandeau {
    margin: 14px auto 0;
    max-width: calc(72rem - 0px);
    padding: 0 14px;
  }

  .bandeau-carte {
    position: relative;
    border-radius: 26px;
    overflow: hidden;
    min-height: 238px;
    display: flex;
    align-items: flex-end;
    background-image:
      linear-gradient(95deg, rgba(31, 29, 20, 0.82) 0%, rgba(31, 29, 20, 0.55) 48%, rgba(31, 29, 20, 0.22) 100%),
      url('../photos/pont-eygues.jpg');
    background-size: cover;
    background-position: 46% 57%;
  }

  .bandeau-texte { padding: 1.5rem 1.4rem 1.6rem; max-width: 42rem; }

  .jalon {
    display: inline-block;
    font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #efe9d4;
    background: rgba(92, 107, 47, 0.92);
    border-radius: 999px;
    padding: 0.26rem 0.8rem;
    margin-bottom: 0.8rem;
  }

  .bandeau h1 {
    color: #fffdf6;
    font-size: clamp(1.45rem, 3.6vw, 2.3rem);
    line-height: 1.2;
    margin: 0;
    text-shadow: 0 2px 14px rgba(20, 18, 12, 0.55);
  }

  /* ---------- en-tête opaque, sous le bandeau ---------- */

  .barre {
    position: sticky;
    top: 0;
    z-index: 30;
    background: var(--ivoire);
    border-bottom: 1px solid #ddd6bf;
    margin-top: 14px;
  }

  .barre-rangee {
    max-width: 72rem;
    margin: 0 auto;
    padding: 0.55rem 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem 1.2rem;
    flex-wrap: wrap;
  }

  .marque { display: flex; align-items: center; gap: 0.55rem; text-decoration: none; }
  .marque img { width: 36px; height: 36px; border-radius: 10px; background: var(--sable); padding: 3px; }
  .marque-nom { font-size: 1rem; color: var(--encre); letter-spacing: 0.005em; }

  .raccourcis {
    display: flex;
    flex-wrap: wrap;
    gap: 0.2rem 0.9rem;
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .raccourcis a {
    font-size: 0.84rem;
    font-weight: 500;
    color: var(--encre-pale);
    text-decoration: none;
    border-radius: 999px;
    padding: 0.18rem 0.55rem;
  }

  .raccourcis a:hover { background: var(--sable); color: var(--olive-sombre); }

  /* ---------- mosaïque d'ouverture ---------- */

  .mosaique {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin: 26px auto 34px;
  }

  .tuile {
    background: var(--ivoire);
    border: 1px solid #e3dcc5;
    border-radius: var(--rayon);
    padding: 1.4rem 1.5rem;
  }

  .tuile p { margin: 0 0 0.85rem; }
  .tuile p:last-child { margin-bottom: 0; }

  .tuile-amorce p { font-size: 1.08rem; }

  .tuile-compte {
    background: var(--olive);
    border-color: var(--olive);
    color: #f3efdd;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .chiffre-valeur {
    color: #fffdf6;
    font-size: clamp(2.4rem, 7vw, 3.4rem);
    line-height: 1;
    margin: 0 0 0.5rem;
  }

  .tuile-compte p { color: #eee9d6; font-size: 0.95rem; }

  .tuile-vue { padding: 0; overflow: hidden; border: none; margin: 0; height: 208px; }
  .tuile-vue img { width: 100%; height: 100%; object-fit: cover; object-position: center 62%; }

  .tuile-liste { background: var(--sable); border-color: #ddd5bb; }

  .intitule {
    font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--encre-pale);
    margin: 0 0 0.7rem;
  }

  .tuile-liste ul { margin: 0; padding-left: 1.05rem; }
  .tuile-liste li { margin-bottom: 0.45rem; }
  .tuile-liste li:last-child { margin-bottom: 0; }

  /* ---------- corps : sommaire collé + feuillet ---------- */

  .corps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
    padding-bottom: 36px;
  }

  .sommaire { align-self: start; }

  .sommaire ol {
    counter-reset: etape;
    list-style: none;
    margin: 0;
    padding: 0.9rem 1rem;
    background: var(--ivoire);
    border: 1px solid #e3dcc5;
    border-radius: 18px;
  }

  .sommaire li { counter-increment: etape; margin-bottom: 0.35rem; }
  .sommaire li:last-child { margin-bottom: 0; }

  .sommaire a {
    display: block;
    font-size: 0.85rem;
    line-height: 1.35;
    color: var(--encre-pale);
    text-decoration: none;
    padding: 0.28rem 0.4rem;
    border-radius: 10px;
  }

  .sommaire a::before {
    content: counter(etape) ". ";
    font-weight: 600;
    color: var(--olive);
  }

  .sommaire a:hover { background: var(--sable); color: var(--encre); }
  .sommaire a[aria-current="true"] { background: var(--olive); color: #fffdf6; }
  .sommaire a[aria-current="true"]::before { color: #e1dcc2; }

  .feuillet { min-width: 0; display: grid; gap: 14px; }

  .volet {
    background: var(--ivoire);
    border: 1px solid #e3dcc5;
    border-radius: var(--rayon);
    padding: 1.6rem 1.5rem;
    scroll-margin-top: 86px;
  }

  .volet--sable { background: var(--sable); border-color: #ddd5bb; }
  .volet--nu { background: none; border: none; padding: 0.4rem 0 0; }

  .volet h2 {
    font-size: clamp(1.3rem, 2.7vw, 1.7rem);
    line-height: 1.28;
    margin: 0 0 1rem;
  }

  .volet p { margin: 0 0 0.95rem; }
  .volet p:last-child { margin-bottom: 0; }

  .cliche-large {
    border-radius: 18px;
    overflow: hidden;
    margin: 1.2rem 0 0;
  }

  .cliche-large img { width: 100%; height: 260px; object-fit: cover; object-position: center 58%; }

  /* ---------- trois formats, blocs inégaux ---------- */

  .formats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 1.2rem;
  }

  .format {
    border-radius: 18px;
    padding: 1.15rem 1.2rem;
    background: var(--ivoire);
    border: 1px solid #e0d9c2;
  }

  .format h3 {
    font-size: 1.02rem;
    margin: 0 0 0.5rem;
    letter-spacing: 0;
  }

  .format p { margin: 0; font-size: 0.97rem; }

  .format--large { background: var(--olive); border-color: var(--olive); }
  .format--large h3 { color: #fffdf6; }
  .format--large p { color: #eee9d6; }

  /* ---------- pied ---------- */

  .pied {
    border-top: 1px solid #ded7c0;
    padding: 1.4rem 14px 1.8rem;
  }

  .pied p {
    max-width: 72rem;
    margin: 0 auto;
    font-size: 0.8rem;
    color: var(--encre-pale);
  }

  @media (min-width: 720px) {
    .bandeau-carte { min-height: 330px; }
    .bandeau-texte { padding: 2.2rem 2.4rem 2.2rem; }
    .mosaique { grid-template-columns: repeat(6, 1fr); }
    .tuile-amorce { grid-column: span 4; padding: 1.8rem 1.9rem; }
    .tuile-compte { grid-column: span 2; }
    .tuile-vue { grid-column: span 3; height: 240px; }
    .tuile-liste { grid-column: span 3; }
    .formats { grid-template-columns: repeat(5, 1fr); }
    .format--large { grid-column: span 3; padding: 1.5rem 1.6rem; }
    .format--moyen { grid-column: span 2; }
    .format--long { grid-column: span 5; }
    .volet { padding: 2rem 2.1rem; }
    .cliche-large img { height: 320px; }
  }

  @media (min-width: 980px) {
    .corps { grid-template-columns: 212px minmax(0, 1fr); gap: 40px; padding-top: 4px; }
    .sommaire { position: sticky; top: 84px; }
    .feuillet { gap: 16px; }
  }
