/* Charte des pages publiques : les titres partagent une échelle et une seule encre dorée. */
:root {
  --or-titre: #b77d36;
  --titre-1: clamp(2.65rem, 5.35vw, 4.75rem);
  --titre-2: clamp(2.15rem, 4vw, 3.5rem);
  --titre-3: clamp(1.4rem, 2vw, 1.875rem);
  --titre-4: clamp(1.18rem, 1.55vw, 1.5rem);
  --titre-5: 1.1rem;
  --titre-6: 1rem;
}
body:not(.admin-page) #contenu :is(h1,h2,h3,h4,h5,h6) {
  font-family:var(--serif); font-weight:400; font-size:var(--taille-titre);
  line-height:1.14; letter-spacing:-.035em; text-wrap:balance; overflow-wrap:break-word;
}
h1 { --taille-titre:var(--titre-1); }
h2 { --taille-titre:var(--titre-2); }
h3 { --taille-titre:var(--titre-3); }
h4 { --taille-titre:var(--titre-4); }
h5 { --taille-titre:var(--titre-5); }
h6 { --taille-titre:var(--titre-6); }
/* Les titres de cartes, de fiches et de sommaires restent des intertitres. */
:is(.encounter,.case-sections,.case-contact,.news-item,.news-empty) h2 { --taille-titre:var(--titre-3); }
:is(.encounter,.agenda-item,.legal-section) h3 { --taille-titre:var(--titre-4); }
.includes-heading { --taille-titre:var(--titre-4); }
#contenu :is(h1,h2,h3,h4,h5,h6) :is(.title-accent,em),
#contenu h1 span { color:var(--or-titre); font-family:inherit; font-style:normal; }
body:not(.admin-page) #contenu .manifesto-question {
  font:600 clamp(20px,2.1vw,28px)/1.45 var(--sans); letter-spacing:normal; margin-bottom:24px;
}
.home-service-links { display:flex; flex-wrap:wrap; align-items:baseline; gap:.35em .65em; margin-top:22px; }
.home-service-links a { color:var(--gold-dark); font-weight:650; text-decoration:underline; text-underline-offset:.25em; }
.home-service-links a:hover { color:var(--ink); }
.home-service-links a:focus-visible { outline:2px solid var(--gold-dark); outline-offset:4px; }

/* Mêmes proportions que l’accueil : chaque illustration carrée est montrée en entier. */
.audit-hero .audit-hero-grid, .cases-hero {
  grid-template-columns:minmax(0,1.08fr) minmax(0,.92fr); gap:clamp(18px,3vw,45px);
}
.audit-hero-media, .cases-hero > img { width:100%; max-width:none; margin:0; }
.audit-hero-media img, .cases-hero img {
  display:block; width:100%; height:auto; max-height:none; aspect-ratio:1; object-fit:contain;
}
.backstage-end-grid > img { border-radius:0; object-fit:contain; }
.site-header .header-action { background:var(--gold-dark); color:white; }
.site-header .header-action:hover { background:#754b1a; }
@media (max-width:850px) {
  .audit-hero .audit-hero-grid, .cases-hero { grid-template-columns:1fr; }
  .audit-hero-media, .cases-hero > img { width:min(100%,590px); margin:4px auto 0; }
  .backstage-end-grid > img { display:block; width:110px; }
  .backstage-end-grid { grid-template-columns:110px minmax(0,1fr); }
  .backstage-end-grid > div:last-child { grid-column:1/-1; border-left:0; padding:20px 0 0; border-top:1px solid #65533b; }
}
@media (max-width:620px) {
  .site-header .header-inner { display:grid; grid-template-columns:minmax(0,1fr) auto 40px; align-items:center; gap:7px; }
  .site-header .logo { grid-column:1; grid-row:1; gap:5px; }
  .site-header .logo-icon { width:25px; height:28px; }
  .site-header .logo-type { font-size:clamp(17px,5.4vw,24px); }
  .site-header .header-action {
    display:inline-flex; grid-column:2; grid-row:1; min-height:42px; align-items:center; justify-content:center;
    max-width:36vw; white-space:normal; text-align:center; text-wrap:balance; padding:5px 8px; font-size:12px; line-height:1.2;
  }
  .site-header .header-action .arrow { display:none; }
  .site-header .menu-toggle { grid-row:1; grid-column:3; margin:0; }
  .site-header .nav-links { grid-column:1/-1; }
}

/* Une place pour le quizz dans la navigation publique. */
@media (min-width:1181px) { .site-header .nav-links { gap:clamp(13px,1.15vw,20px); } }
