/* =========================================================
   Vallée de la Cance — feuille de style principale
   Palette : forêt de résineux, eau de la Cance, granite, genêt
   ========================================================= */

@font-face { font-family: "Alegreya"; src: url("../fonts/alegreya-latin-wght-normal.woff2") format("woff2"); font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Alegreya"; src: url("../fonts/alegreya-latin-wght-italic.woff2") format("woff2"); font-weight: 400 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Alegreya Sans"; src: url("../fonts/alegreya-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Alegreya Sans"; src: url("../fonts/alegreya-sans-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Alegreya Sans"; src: url("../fonts/alegreya-sans-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --foret: #1e3a2f;
  --foret-2: #2b4f40;
  --cance: #2f6f7e;
  --cance-clair: #8fbcc4;
  --granite: #5e6461;
  --brume: #dde3de;
  --papier: #f2f4f0;
  --encre: #16201b;
  --genet: #e2b714;
  --blanc: #ffffff;

  --serif: "Alegreya", Georgia, "Times New Roman", serif;
  --sans: "Alegreya Sans", "Segoe UI", system-ui, sans-serif;

  --mesure: 34rem;
  --large: 72rem;
  --gouttiere: clamp(1rem, 4vw, 2.5rem);
  --rayon: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--papier);
  color: var(--encre);
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--cance); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--foret); }
:focus-visible { outline: 3px solid var(--genet); outline-offset: 3px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.1; margin: 0 0 .5em; color: var(--foret); }
h2 { font-size: clamp(2rem, 4.5vw, 3.25rem); letter-spacing: -.01em; }
h3 { font-size: 1.5rem; }
p { margin: 0 0 1em; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.lien-evitement { position: absolute; left: 1rem; top: -4rem; background: var(--genet); color: var(--encre); padding: .5rem 1rem; z-index: 100; }
.lien-evitement:focus { top: 1rem; }

.conteneur { width: 100%; max-width: var(--large); margin-inline: auto; padding-inline: var(--gouttiere); }
.mesure { max-width: var(--mesure); }

/* ---------- En-tête ---------- */
.entete {
  position: absolute; inset: 0 0 auto 0; z-index: 20;
  color: var(--blanc);
}
.entete--plein { position: sticky; top: 0; background: var(--foret); }
.entete__barre { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.5rem; }
.marque { display: flex; align-items: center; gap: .6rem; color: inherit; text-decoration: none; font-family: var(--serif); font-size: 1.35rem; font-weight: 700; line-height: 1; }
.marque:hover { color: inherit; }
.marque svg { width: 2rem; height: 2rem; flex: none; }
.marque small { display: block; font-family: var(--sans); font-weight: 400; font-size: .85rem; opacity: .85; margin-top: .2rem; }

.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(.75rem, 2vw, 1.75rem); }
.nav a { color: inherit; text-decoration: none; font-weight: 700; font-size: 1rem; padding: .4rem 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--genet); color: inherit; }
.nav__bouton { display: none; background: none; border: 1px solid currentColor; color: inherit; border-radius: var(--rayon); padding: .45rem .8rem; font: inherit; font-size: 1rem; cursor: pointer; }

@media (max-width: 60rem) {
  .nav__bouton { display: inline-block; }
  .nav ul { display: none; position: absolute; right: var(--gouttiere); top: 4.25rem; flex-direction: column; gap: 0; background: var(--foret); border-radius: var(--rayon); padding: .5rem 0; min-width: 14rem; box-shadow: 0 10px 30px rgba(10, 25, 18, .35); }
  .nav ul.ouvert { display: flex; }
  .nav a { display: block; padding: .7rem 1.25rem; border: 0; }
  .nav a[aria-current="page"] { color: var(--genet); }
}

/* ---------- Héros d'accueil ---------- */
.heros {
  position: relative; min-height: min(100svh, 56rem); display: grid; align-items: end;
  color: var(--blanc); background: var(--foret);
  overflow: hidden;
}
.heros__image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.heros::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(14, 30, 23, .55) 0%, rgba(14, 30, 23, 0) 22%, rgba(14, 30, 23, 0) 45%, rgba(14, 30, 23, .82) 100%);
}
.heros__texte { position: relative; z-index: 1; padding-block: 8rem clamp(2.5rem, 7vw, 5rem); }
.heros h1 {
  color: var(--blanc);
  font-size: clamp(3rem, 10vw, 7.5rem);
  font-weight: 800; line-height: .92; letter-spacing: -.02em;
  margin-bottom: .3em;
}
.heros h1 span { display: block; font-style: italic; font-weight: 500; font-size: .42em; letter-spacing: 0; margin-bottom: .35em; }
.heros__chapo { font-size: clamp(1.15rem, 2vw, 1.4rem); max-width: 34rem; margin-bottom: 1.75rem; }
.heros__credit { position: absolute; right: var(--gouttiere); bottom: 1rem; z-index: 1; font-size: .8rem; opacity: .75; }

@media (prefers-reduced-motion: no-preference) {
  .heros__image { animation: lever 2.4s cubic-bezier(.2,.7,.2,1) both; }
  .heros__texte > * { animation: monter .9s cubic-bezier(.2,.7,.2,1) both; }
  .heros__texte > *:nth-child(2) { animation-delay: .15s; }
  .heros__texte > *:nth-child(3) { animation-delay: .3s; }
}
@keyframes lever { from { transform: scale(1.06); filter: brightness(.7); } to { transform: none; filter: none; } }
@keyframes monter { from { opacity: 0; transform: translateY(1.25rem); } to { opacity: 1; transform: none; } }

/* ---------- Boutons ---------- */
.boutons { display: flex; flex-wrap: wrap; gap: .75rem; }
.bouton {
  display: inline-block; padding: .8rem 1.4rem; border-radius: var(--rayon);
  font-weight: 700; text-decoration: none; line-height: 1.2;
  background: var(--genet); color: var(--encre); border: 2px solid var(--genet);
}
.bouton:hover { background: #f0c935; border-color: #f0c935; color: var(--encre); }
.bouton--contour { background: transparent; color: inherit; border-color: currentColor; }
.bouton--contour:hover { background: rgba(255,255,255,.12); color: inherit; border-color: currentColor; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(4rem, 9vw, 7.5rem); }
.section--foret { background: var(--foret); color: #e8eee9; }
.section--foret h2, .section--foret h3 { color: var(--blanc); }
.section--foret a { color: var(--cance-clair); }
.section--brume { background: var(--brume); }
.intro-section { max-width: 40rem; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.intro-section p { font-size: 1.2rem; color: var(--granite); }
.section--foret .intro-section p { color: #c9d6cd; }

/* ---------- Le nom : Vallis Cantiae ---------- */
.nom { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.nom__latin {
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: clamp(3.5rem, 11vw, 8.5rem); line-height: .85; color: var(--cance);
  margin: 0;
}
.nom__latin span { display: block; padding-left: 1.2em; }
.nom__trad { font-family: var(--sans); font-style: normal; font-size: 1.05rem; color: var(--granite); display: block; margin-top: 1.25rem; }
.nom__texte p:first-child { font-family: var(--serif); font-size: 1.45rem; line-height: 1.45; color: var(--foret); }
.chiffres { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 2rem 0 0; padding: 1.5rem 0 0; border-top: 1px solid #c5cdc7; }
.chiffres dt { font-size: .95rem; color: var(--granite); }
.chiffres dd { margin: 0; font-family: var(--serif); font-weight: 700; font-size: 1.6rem; color: var(--foret); line-height: 1.1; order: -1; }
.chiffres div { display: flex; flex-direction: column; gap: .25rem; }
@media (max-width: 48rem) { .nom { grid-template-columns: 1fr; } }
@media (max-width: 30rem) { .chiffres { grid-template-columns: 1fr; } }

/* ---------- Au fil de la Cance (carte + villages) ---------- */
.fil { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.carte { position: sticky; top: 6rem; }
.carte svg { width: 100%; height: auto; }
.carte figcaption { font-size: .9rem; color: #a9bbb0; margin-top: .5rem; }
.carte .riviere { fill: none; stroke: var(--cance-clair); stroke-width: 7; stroke-linecap: round; }
.carte .affluent { fill: none; stroke: var(--cance-clair); stroke-width: 3.5; stroke-linecap: round; opacity: .8; }
.carte .route { fill: none; stroke: #6f8a7b; stroke-width: 1.5; stroke-dasharray: 5 6; }
.carte .relief { fill: #2b4f40; }
.carte .ext { font: italic 15px var(--serif); fill: #a9bbb0; }
.carte .village circle { fill: var(--foret); stroke: var(--genet); stroke-width: 3; transition: r .2s; }
.carte .village text { font: 700 17px var(--sans); fill: #e8eee9; }
.carte .village.actif circle, .carte .village:hover circle { fill: var(--genet); }
.carte .village.actif text { fill: var(--genet); }
.carte a:focus-visible { outline: none; }
.carte a:focus-visible circle { stroke: var(--blanc); stroke-width: 5; }
@media (prefers-reduced-motion: no-preference) {
  .carte.a-tracer .riviere { stroke-dasharray: 900; stroke-dashoffset: 900; }
  .carte.trace .riviere { transition: stroke-dashoffset 2.6s cubic-bezier(.45,.05,.3,1); stroke-dashoffset: 0; }
}

.villages { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; }
.village-carte {
  display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: 1.25rem; align-items: center;
  padding: .75rem; border-radius: var(--rayon); color: inherit; text-decoration: none;
  border: 1px solid rgba(255,255,255,.12);
}
.village-carte:hover, .village-carte.actif { background: var(--foret-2); border-color: rgba(226,183,20,.55); color: inherit; }
.village-carte img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 2px; }
.village-carte h3 { margin-bottom: .2rem; font-size: 1.55rem; }
.village-carte p { margin: 0; font-size: 1rem; color: #c9d6cd; }
.village-carte .situ { display: block; font-size: .9rem; color: var(--genet); margin-bottom: .3rem; }
@media (max-width: 56rem) {
  .fil { grid-template-columns: 1fr; }
  .carte { position: static; max-width: 34rem; }
}
@media (max-width: 30rem) { .village-carte { grid-template-columns: 6.5rem minmax(0, 1fr); gap: .9rem; } .village-carte h3 { font-size: 1.3rem; } }

/* ---------- Randonnées ---------- */
.randos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.25rem, 3vw, 2rem); }
.rando { background: var(--blanc); border-radius: var(--rayon); overflow: hidden; display: flex; flex-direction: column; border: 1px solid #d3dad5; }
.rando img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.rando__corps { padding: 1.25rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.rando h3 { margin-bottom: .4rem; }
.rando__mesures { display: flex; gap: 1.25rem; margin: 0 0 .9rem; font-size: .95rem; color: var(--granite); }
.rando__mesures dd { margin: 0; font-weight: 700; color: var(--foret); font-size: 1.15rem; }
.rando__mesures dt { font-size: .85rem; }
.rando__mesures div { display: flex; flex-direction: column-reverse; }
.rando p { font-size: 1.02rem; }
.rando .lien { margin-top: auto; font-weight: 700; }
@media (max-width: 56rem) { .randos { grid-template-columns: 1fr; max-width: 36rem; } }

/* ---------- Frise historique ---------- */
.frise { list-style: none; margin: 0; padding: 0; position: relative; display: grid; gap: 0; }
.frise::before { content: ""; position: absolute; left: 6.25rem; top: .6rem; bottom: .6rem; width: 2px; background: #c5cdc7; }
.frise li { display: grid; grid-template-columns: 5rem minmax(0, 1fr); gap: 2.5rem; padding-block: .9rem; position: relative; }
.frise li::before { content: ""; position: absolute; left: calc(6.25rem - 5px); top: 1.45rem; width: 12px; height: 12px; border-radius: 50%; background: var(--papier); border: 2px solid var(--cance); }
.frise time { font-family: var(--serif); font-weight: 800; font-size: 1.6rem; color: var(--cance); text-align: right; line-height: 1.3; }
.frise p { margin: 0; max-width: 38rem; padding-top: .25rem; }
.histoire { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.histoire figure { margin: 0; }
.histoire figure img { border-radius: var(--rayon); }
.histoire figcaption, .legende { font-size: .92rem; color: var(--granite); margin-top: .5rem; font-style: italic; }
@media (max-width: 56rem) { .histoire { grid-template-columns: 1fr; } }
@media (max-width: 30rem) {
  .frise::before { left: 4.1rem; }
  .frise li { grid-template-columns: 3.4rem minmax(0, 1fr); gap: 1.6rem; }
  .frise li::before { left: calc(4.1rem - 5px); }
  .frise time { font-size: 1.25rem; }
}

/* ---------- Autrefois ---------- */
.bande { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem 1rem; }
@media (max-width: 48rem) { .bande { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.photo { margin: 0; position: relative; }
.photo button { all: unset; cursor: zoom-in; display: block; width: 100%; border-radius: var(--rayon); overflow: hidden; }
.photo button:focus-visible { outline: 3px solid var(--genet); outline-offset: 3px; }
.photo img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 2; filter: sepia(.15); }
.photo figcaption { font-size: .9rem; color: #c9d6cd; margin-top: .4rem; line-height: 1.35; }
.section:not(.section--foret) .photo figcaption { color: var(--granite); }
.galerie { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 1.25rem; }
.galerie .photo img { aspect-ratio: 4 / 3; }

/* ---------- Pratique ---------- */
.pratique { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 3rem); }
.pratique h3 { font-size: 1.4rem; border-top: 3px solid var(--genet); padding-top: .9rem; }
.pratique ul, .liste { padding-left: 1.1rem; margin: 0 0 1rem; }
.pratique li, .liste li { margin-bottom: .35rem; }
.note { font-size: .95rem; color: var(--granite); border-left: 3px solid var(--cance-clair); padding-left: .9rem; }
@media (max-width: 56rem) { .pratique { grid-template-columns: 1fr; max-width: 38rem; } }

/* ---------- Pages intérieures ---------- */
.bandeau { position: relative; min-height: clamp(22rem, 62vh, 38rem); display: grid; align-items: end; color: var(--blanc); background: var(--foret); overflow: hidden; }
.bandeau img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bandeau::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,30,23,.5) 0%, rgba(14,30,23,0) 30%, rgba(14,30,23,.8) 100%); }
.bandeau .conteneur { position: relative; z-index: 1; padding-block: 7rem 2.5rem; }
.bandeau h1 { color: var(--blanc); font-size: clamp(2.75rem, 8vw, 5.5rem); font-weight: 800; letter-spacing: -.02em; margin-bottom: .15em; }
.bandeau p { font-size: 1.25rem; margin: 0; max-width: 36rem; }
.fil-ariane { font-size: .95rem; margin-bottom: 1rem; }
.fil-ariane a { color: inherit; }
.fil-ariane ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; }
.fil-ariane li + li::before { content: "/"; margin-right: .4rem; opacity: .6; }

.article { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.article__texte { max-width: 40rem; }
.article__texte > p:first-of-type { font-family: var(--serif); font-size: 1.4rem; line-height: 1.5; color: var(--foret); }
.article__texte h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-top: 2.5rem; }
.encart { background: var(--blanc); border: 1px solid #d3dad5; border-radius: var(--rayon); padding: 1.5rem 1.6rem; position: sticky; top: 6rem; }
.encart h2 { font-size: 1.5rem; }
.encart ul { margin: 0; padding-left: 1.1rem; }
.encart li { margin-bottom: .45rem; }
.encart dl { margin: 1.25rem 0 0; padding-top: 1rem; border-top: 1px solid #d3dad5; }
.encart dt { font-size: .9rem; color: var(--granite); }
.encart dd { margin: 0 0 .6rem; font-weight: 700; }
@media (max-width: 56rem) { .article { grid-template-columns: 1fr; } .encart { position: static; } }

.suite { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; border-top: 1px solid #c5cdc7; padding-top: 1.5rem; margin-top: 3rem; }
.suite a { text-decoration: none; font-family: var(--serif); font-size: 1.3rem; font-weight: 700; }
.suite small { display: block; font-family: var(--sans); font-weight: 400; font-size: .9rem; color: var(--granite); }
.suite a:last-child { text-align: right; margin-left: auto; }

/* Itinéraire de randonnée */
.etapes { list-style: none; counter-reset: etape; margin: 0; padding: 0; display: grid; gap: 1.5rem; }
.etape { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 1.5rem; align-items: start; background: var(--blanc); border: 1px solid #d3dad5; border-radius: var(--rayon); padding: 1.4rem; counter-increment: etape; }
.etape h3 { font-size: 1.25rem; }
.etape h3::before { content: counter(etape) ". "; color: var(--cance); }
.etape .km { display: inline-block; font-weight: 700; color: var(--cance); margin-bottom: .5rem; }
.etape img { background: var(--blanc); border: 1px solid #e3e8e4; border-radius: 2px; width: 100%; max-width: 18rem; margin-left: auto; }
.etape p { margin: 0; }
@media (max-width: 40rem) { .etape { grid-template-columns: 1fr; } .etape img { margin-left: 0; } }
.rando-bloc { scroll-margin-top: 5rem; }
.rando-bloc + .rando-bloc { margin-top: clamp(4rem, 8vw, 6rem); }
.rando-entete { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 2rem; align-items: end; margin-bottom: 2rem; }
.rando-entete img { border-radius: var(--rayon); aspect-ratio: 16/10; object-fit: cover; width: 100%; }
@media (max-width: 48rem) { .rando-entete { grid-template-columns: 1fr; } }

/* ---------- Visionneuse ---------- */
.visionneuse { border: 0; padding: 0; background: transparent; max-width: min(92vw, 70rem); max-height: 92vh; color: var(--blanc); }
.visionneuse::backdrop { background: rgba(10, 18, 14, .92); }
.visionneuse img { max-height: 80vh; width: auto; margin-inline: auto; border-radius: 2px; }
.visionneuse p { text-align: center; margin: .75rem 0 0; }
.visionneuse__fermer { position: fixed; top: 1rem; right: 1rem; background: var(--genet); color: var(--encre); border: 0; border-radius: var(--rayon); font: 700 1rem var(--sans); padding: .6rem 1rem; cursor: pointer; }
.visionneuse__nav { position: fixed; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.14); color: var(--blanc); border: 0; border-radius: var(--rayon); width: 3rem; height: 3rem; font-size: 1.6rem; cursor: pointer; }
.visionneuse__nav:hover { background: rgba(255,255,255,.28); }
.visionneuse__prec { left: 1rem; } .visionneuse__suiv { right: 1rem; }

/* ---------- Pied de page ---------- */
.pied { background: var(--encre); color: #b9c6bd; padding-block: 3.5rem 2rem; font-size: 1rem; }
.pied a { color: #e8eee9; }
.pied__grille { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 2rem; }
.pied h2 { font-size: 1.1rem; color: var(--blanc); font-family: var(--sans); margin-bottom: .75rem; }
.pied ul { list-style: none; margin: 0; padding: 0; }
.pied li { margin-bottom: .35rem; }
.pied .marque { color: var(--blanc); margin-bottom: 1rem; }
.pied__bas { border-top: 1px solid #2c3a32; margin-top: 2.5rem; padding-top: 1.25rem; font-size: .9rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
@media (max-width: 48rem) { .pied__grille { grid-template-columns: 1fr; } }

/* ---------- Photos de classe ---------- */
.ecoles { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.ecoles__menu { position: sticky; top: 1.5rem; max-height: calc(100vh - 3rem); overflow: auto; padding-right: .5rem; }
.ecoles__menu h2 { font-size: 1.15rem; font-family: var(--sans); margin: 1.25rem 0 .5rem; color: var(--granite); }
.ecoles__menu h2:first-child { margin-top: 0; }
.ecoles__menu ul { list-style: none; margin: 0; padding: 0; }
.ecoles__menu a { display: block; padding: .35rem .6rem; border-radius: var(--rayon); text-decoration: none; color: var(--encre); line-height: 1.3; font-size: 1rem; }
.ecoles__menu a small { color: var(--granite); }
.ecoles__menu a:hover { background: var(--brume); color: var(--encre); }
.ecoles__menu a.actif { background: var(--foret); color: var(--blanc); }
.ecoles__menu a.actif small { color: #c9d6cd; }

.classe { scroll-margin-top: 1rem; }
.classe h2 { margin-bottom: .15rem; font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
.classe__ens { color: var(--granite); margin-bottom: 1rem; }
.classe__photo { position: relative; background: var(--encre); border-radius: var(--rayon); overflow: hidden; }
.classe__photo img { width: 100%; height: auto; }
.classe__points { position: absolute; inset: 0; }
.tete {
  position: absolute; transform: translate(-50%, -50%); aspect-ratio: 1; padding: 0; margin: 0;
  background: transparent; border: 2px solid transparent; border-radius: 50%; cursor: pointer;
}
.avec-reperes .tete { border-color: rgba(255, 255, 255, .55); }
.tete:hover, .tete:focus-visible, .tete.actif { border-color: var(--genet); box-shadow: 0 0 0 2px rgba(22, 32, 27, .55); outline: none; }
.tete span {
  position: absolute; left: 50%; top: 100%; transform: translate(-50%, .35rem); white-space: nowrap;
  background: var(--encre); color: var(--blanc); font: 700 .9rem/1.2 var(--sans); padding: .3rem .55rem; border-radius: 3px;
  pointer-events: none; opacity: 0; z-index: 2;
}
.tete:hover span, .tete:focus-visible span, .tete.actif span { opacity: 1; }
.tete.trouve { border-color: var(--genet); }
@media (prefers-reduced-motion: no-preference) { .tete.trouve { animation: pulse 1.2s ease-out 3; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(226,183,20,.9); } 100% { box-shadow: 0 0 0 18px rgba(226,183,20,0); } }

.classe__nom { min-height: 2.2rem; margin: .75rem 0; font-family: var(--serif); font-size: 1.5rem; color: var(--granite); font-style: italic; }
.classe__nom.plein { color: var(--foret); font-style: normal; font-weight: 700; }
.classe__outils { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; font-size: 1rem; color: var(--granite); margin-bottom: 1rem; }
.classe__outils label { display: inline-flex; gap: .4rem; align-items: center; cursor: pointer; }
.classe__liste { columns: 3 12rem; column-gap: 1.5rem; padding-left: 1.6rem; margin: .5rem 0 0; font-size: 1rem; }
.classe__liste li { break-inside: avoid; }
.classe__liste button { all: unset; cursor: pointer; padding: .1rem .25rem; border-radius: 2px; }
.classe__liste button:hover, .classe__liste button.actif { background: var(--genet); color: var(--encre); }
.classe__liste button:focus-visible { outline: 2px solid var(--cance); }
.classe__liste .inconnu { color: var(--granite); font-style: italic; }
details.eleves summary { cursor: pointer; font-weight: 700; color: var(--cance); }

.recherche { background: var(--blanc); border: 1px solid #d3dad5; border-radius: var(--rayon); padding: 1.25rem 1.4rem; margin-bottom: 2.5rem; }
.recherche label { display: block; font-family: var(--serif); font-weight: 700; font-size: 1.35rem; color: var(--foret); margin-bottom: .5rem; }
.recherche input { width: 100%; max-width: 28rem; font: inherit; padding: .65rem .8rem; border: 1px solid #aab5ae; border-radius: var(--rayon); background: var(--papier); }
.recherche input:focus { outline: 3px solid var(--genet); outline-offset: 1px; }
.resultats { list-style: none; margin: .9rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: .4rem; }
.resultats button { all: unset; cursor: pointer; display: block; padding: .45rem .65rem; border-radius: var(--rayon); background: var(--papier); width: 100%; box-sizing: border-box; line-height: 1.3; }
.resultats button:hover, .resultats button:focus-visible { background: var(--genet); }
.resultats span { display: block; font-size: .9rem; color: var(--granite); }
.resultats .vide { color: var(--granite); }

@media (max-width: 56rem) {
  .ecoles { grid-template-columns: 1fr; }
  .ecoles__menu { position: static; max-height: none; overflow: visible; padding: 0; }
  .ecoles__menu ul { display: flex; flex-wrap: wrap; gap: .35rem; }
  .ecoles__menu a { background: var(--blanc); border: 1px solid #d3dad5; font-size: .95rem; }
  .tete span { font-size: .8rem; }
}

/* ---------- Croquis des randonnées ---------- */
.etape__croquis { margin: 0; }
.croquis { display: block; width: 100%; max-width: 20rem; height: auto; margin-left: auto; }
.c-fond { fill: #f7f9f6; stroke: #d3dad5; stroke-width: 1; }
.c-chemin { fill: none; stroke: #8a928d; stroke-width: 2.5; stroke-dasharray: 9 6; stroke-linecap: round; }
.c-riviere { fill: none; stroke: var(--cance); stroke-width: 7; stroke-linecap: round; opacity: .85; }
.c-ruisseau { fill: none; stroke: var(--cance-clair); stroke-width: 2; }
.c-lac { fill: var(--cance); opacity: .85; }
.c-route { fill: none; stroke: #b5432f; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.c-raccourci { fill: none; stroke: #3d7a4a; stroke-width: 2.5; stroke-dasharray: 3 4; stroke-linecap: round; }
.c-depart { fill: var(--blanc); stroke: #b5432f; stroke-width: 3.5; }
.c-col { fill: var(--cance-clair); stroke: var(--foret); stroke-width: 2.5; }
.c-sommet { fill: var(--genet); stroke: var(--foret); stroke-width: 2; stroke-linejoin: round; }
.c-gr rect { fill: #fff; stroke: #16201b; stroke-width: 1; }
.c-gr rect.r { fill: #c8102e; stroke: none; }
.c-gr text { font: 700 13px var(--sans); fill: var(--encre); }
.c-nom { font: 700 15px var(--sans); fill: var(--encre); paint-order: stroke; stroke: #f7f9f6; stroke-width: 4px; stroke-linejoin: round; }
.c-nom.c-petit { font-weight: 400; font-style: italic; font-size: 13px; fill: var(--granite); }
.c-nom.c-fort { font-family: var(--serif); font-size: 17px; fill: var(--foret); }
.c-nom.c-vert { fill: #3d7a4a; }
@media (max-width: 40rem) { .croquis { margin-left: 0; max-width: 24rem; } }

.legende-bloc { background: var(--blanc); border: 1px solid #d3dad5; border-radius: var(--rayon); padding: 1rem 1.25rem; margin-bottom: 2rem; }
.legende-titre { font-family: var(--sans); font-size: 1rem; color: var(--granite); margin-bottom: .6rem; }
.croquis-legende { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; font-size: .98rem; }
.croquis-legende li { display: inline-flex; align-items: center; gap: .5rem; }
.croquis-legende svg { height: 1.1rem; width: auto; overflow: visible; }

/* ---------- Parcours OpenRunner ---------- */
.or-bloc { margin-bottom: clamp(3.5rem, 7vw, 5rem); }
.or-entete { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 2rem; align-items: end; margin-bottom: 1.75rem; }
.or-entete p { color: var(--granite); max-width: 40rem; margin: 0; }
.or-tout { display: block; background: var(--foret); color: var(--blanc); text-decoration: none; border-radius: var(--rayon); padding: 1.25rem 1.4rem; border-left: 6px solid var(--genet); }
.or-tout:hover { background: var(--foret-2); color: var(--blanc); }
.or-tout strong { display: block; font-family: var(--serif); font-size: 1.35rem; line-height: 1.2; }
.or-tout span { display: block; font-size: .98rem; color: #c9d6cd; margin-top: .3rem; }
.or-grille { list-style: none; margin: 0 0 1.25rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 1rem; }
.or-carte { background: var(--blanc); border: 1px solid #d3dad5; border-radius: var(--rayon); padding: 1.1rem 1.25rem 1.2rem; display: flex; flex-direction: column; position: relative; }
.or-carte h3 { font-size: 1.3rem; margin: .5rem 0 .25rem; }
.or-act { align-self: flex-start; font-size: .85rem; font-weight: 700; padding: .15rem .55rem; border-radius: 99px; }
.or-act--pied { background: #e4efe7; color: var(--foret); }
.or-act--vtt { background: #fbefc4; color: #5c4a05; }
.or-dep { font-size: .95rem; color: var(--granite); margin: 0 0 .75rem; }
.or-mesures { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 1.25rem; margin: 0 0 .75rem; }
.or-mesures div { display: flex; flex-direction: column-reverse; }
.or-mesures dt { font-size: .8rem; color: var(--granite); }
.or-mesures dd { margin: 0; font-weight: 700; color: var(--foret); }
.or-auteur { font-size: .88rem; color: var(--granite); margin: 0 0 .9rem; }
.or-lien { margin-top: auto; font-weight: 700; }
.or-lien::after { content: ""; position: absolute; inset: 0; }
.or-carte:hover { border-color: var(--cance); }
.or-carte:focus-within { outline: 3px solid var(--genet); outline-offset: 2px; }
.or-lien:focus-visible { outline: none; }
.titre-historiques { font-size: clamp(1.75rem, 3.5vw, 2.5rem); margin-bottom: 1rem; }
@media (max-width: 48rem) { .or-entete { grid-template-columns: 1fr; } }

/* ---------- Tuiles avec mini-carte IGN ---------- */
.or-carte { padding: 0; overflow: hidden; height: 32rem; justify-content: flex-end; background: #e9eee6; }
.or-carte[hidden] { display: none; }
.or-carte__carte { position: absolute; inset: 0; z-index: 0; background: #e9eee6; }
.or-carte__carte .leaflet-container, .or-carte__carte.leaflet-container { background: #e9eee6; font: inherit; }
.or-carte__corps {
  position: relative; z-index: 1; display: flex; flex-direction: column;
  padding: 1rem 1.2rem 1.1rem; background: rgba(255, 255, 255, .94);
  border-top: 1px solid rgba(30, 58, 47, .12);
}
@supports (backdrop-filter: blur(4px)) { .or-carte__corps { background: rgba(255, 255, 255, .86); backdrop-filter: blur(6px); } }
.or-carte__corps h3 { margin-top: .45rem; }
.or-lien::after { z-index: 2; }
.or-act--trail { background: #dcebf0; color: #1f5361; }
.or-act--cheval { background: #f1e3d6; color: #6b3d16; }

.vr-dif { align-self: flex-start; font-size: .85rem; font-weight: 700; padding: .15rem .55rem; border-radius: 99px; }
.vr-dif--facile { background: #e2f0dc; color: #2f5d22; }
.vr-dif--moyenne { background: #fbefc4; color: #5c4a05; }
.vr-dif--difficile { background: #f6dcd6; color: #8a2f1d; }
.vr-tout { background: #34495e; border-left-color: #8fbcc4; }
.vr-tout:hover { background: #2c3e50; }

.filtres { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-bottom: 1.25rem; }
.filtre { font: inherit; font-size: .98rem; font-weight: 700; padding: .45rem .9rem; border-radius: 99px; border: 1px solid #b9c4bd; background: var(--blanc); color: var(--foret); cursor: pointer; }
.filtre:hover { border-color: var(--foret); }
.filtre[aria-pressed="true"] { background: var(--foret); border-color: var(--foret); color: var(--blanc); }
.filtres__compte { color: var(--granite); font-size: .95rem; margin-left: .5rem; }

/* Hauteur identique des tuiles : titre sur 2 lignes, lignes de détail sur 1 ligne */
.or-carte h3 { display: flex; gap: .5rem; align-items: flex-start; font-size: 1.22rem; line-height: 1.2; min-height: 2.4em; }
.or-carte h3 span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.or-carte .logo-source { width: 1.25rem; height: 1.25rem; flex: none; margin-top: .05rem; border-radius: 50%; }
.or-dep, .or-auteur { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.or-mesures { flex-wrap: nowrap; }
.titre-source { display: flex; align-items: center; gap: .75rem; }
.titre-source .logo-source { width: clamp(2rem, 4vw, 2.75rem); height: auto; border-radius: 50%; flex: none; }

/* ---------- Histoire des villages (page Autrefois) ---------- */
.histoires { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 4vw, 3.5rem) clamp(2rem, 5vw, 4.5rem); }
.histoire-village { border-top: 3px solid var(--genet); padding-top: 1.1rem; scroll-margin-top: 5rem; }
.histoire-village h3 { font-size: clamp(1.6rem, 3vw, 2rem); margin-bottom: .1rem; }
.histoire-village__sous { font-family: var(--serif); font-style: italic; color: var(--cance); font-size: 1.15rem; margin-bottom: .9rem; }
.histoire-village p { max-width: 38rem; }
.histoire-village a { font-weight: 700; }
.histoire-village:first-child { grid-column: 1 / -1; }
.histoire-village:first-child { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(2rem, 5vw, 4.5rem); align-content: start; }
.histoire-village:first-child > h3, .histoire-village:first-child > .histoire-village__sous, .histoire-village:first-child > a { grid-column: 1 / -1; }
.histoire-village:first-child > a { justify-self: start; }
@media (max-width: 52rem) { .histoires, .histoire-village:first-child { grid-template-columns: 1fr; } }

/* ---------- Alentours : sites et restaurants (page Infos pratiques) ---------- */
.al-carte .or-carte__corps h3 span { -webkit-line-clamp: 2; }
.al-desc { font-size: .98rem; margin: 0 0 .5rem; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; min-height: 6.2em; line-height: 1.55; }
.al-periode { font-size: .88rem; color: var(--granite); margin: 0 0 .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.al-cat { align-self: flex-start; font-size: .85rem; font-weight: 700; padding: .15rem .55rem; border-radius: 99px; background: #e4efe7; color: var(--foret); }
.al-cat--patrimoine { background: #efe6d8; color: #5d4220; }
.al-cat--musee { background: #e6e2f0; color: #43356b; }
.al-cat--loisirs { background: #dcebf0; color: #1f5361; }
.al-cat--gastro { background: #fbefc4; color: #5c4a05; }
.al-cat--velo { background: #e2f0dc; color: #2f5d22; }
.al-carte { height: 33rem; }

.resto .al-desc { min-height: 0; -webkit-line-clamp: 2; }
.resto__liens { margin-top: auto; display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; font-weight: 700; }
.al-tel { color: var(--foret); text-decoration: none; }
.al-tel::before { content: "☎ "; color: var(--cance); }

/* Tuiles avec photo sous le texte : voile sombre pour la lisibilité */
.al-photo {
  color: #f4f7f3; border-top: 0;
  background-color: #1e3a2f; background-position: center; background-size: cover; background-repeat: no-repeat;
  backdrop-filter: none !important;
}
.al-photo::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(10, 22, 16, .42) 0%, rgba(10, 22, 16, .68) 38%, rgba(10, 22, 16, .84) 100%);
}
.al-photo { isolation: isolate; text-shadow: 0 1px 3px rgba(0, 0, 0, .7); }
.al-photo .al-cat { text-shadow: none; }
.al-photo h3, .al-photo h3 span { color: var(--blanc); }
.al-photo .or-dep, .al-photo .al-periode { color: #cfdcd3; }
.al-photo .al-desc { color: #eef3ef; }
.al-photo .or-lien, .al-photo .al-tel { color: var(--genet); }
.al-photo .or-lien:hover { color: #f0c935; }
.al-photo .al-tel::before { color: var(--genet); }
.al-credit { position: absolute; right: .6rem; bottom: .35rem; z-index: 3; font-size: .7rem; color: rgba(255, 255, 255, .62); text-decoration: none; max-width: 60%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
a.al-credit:hover { color: var(--blanc); text-decoration: underline; }
.al-carte .or-lien { margin-bottom: .5rem; }
.al-carte.resto { height: 30rem; }
.resto .al-desc { min-height: 3.1em; -webkit-line-clamp: 2; }
.resto__liens { margin-top: auto; margin-bottom: .5rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem 1.25rem; font-weight: 700; }
.resto__liens .or-lien { margin: 0; }

/* ---------- Page Contact ---------- */
@font-face { font-family: "Caveat"; src: url("../fonts/caveat-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Caveat"; src: url("../fonts/caveat-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
.contact-section { padding-top: clamp(2rem, 5vw, 3.5rem); }
.contact-section .fil-ariane { color: var(--granite); }
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact h1 { font-size: clamp(2.4rem, 6vw, 3.6rem); }
.contact__intro { color: var(--granite); font-size: 1.15rem; max-width: 34rem; }
.champ { margin-bottom: 1.1rem; }
.champ label { display: block; font-weight: 700; margin-bottom: .35rem; color: var(--foret); }
.champ input, .champ textarea { width: 100%; font: inherit; padding: .7rem .85rem; border: 1px solid #aab5ae; border-radius: var(--rayon); background: var(--blanc); color: var(--encre); }
.champ textarea { resize: vertical; min-height: 9rem; }
.champ input:focus, .champ textarea:focus { outline: 3px solid var(--genet); outline-offset: 1px; border-color: var(--foret); }
.champ--captcha { min-height: 78px; }
.form-rgpd { font-size: .9rem; color: var(--granite); max-width: 34rem; }
.form-etat { margin-top: 1rem; padding: .8rem 1rem; border-radius: var(--rayon); font-weight: 700; }
.form-etat--ok { background: #e2f0dc; color: #2f5d22; }
.form-etat--erreur { background: #f6dcd6; color: #8a2f1d; }
.contact button[disabled] { opacity: .6; cursor: wait; }
.contact__plan { margin: 0; position: sticky; top: 6rem; }
.contact__plan figcaption { font-family: "Caveat", cursive; font-size: 1.25rem; color: var(--granite); text-align: center; margin-top: .3rem; }
@media (max-width: 56rem) { .contact { grid-template-columns: 1fr; } .contact__plan { position: static; } }

/* Plan à main levée */
.plan-main { width: 100%; height: auto; display: block; }
.pl-papier { fill: #fbf8ef; stroke: #d8cfb8; stroke-width: 1.5; }
.pl-hach { stroke: #e2b714; stroke-width: 2; opacity: .55; }
.pl-zone { fill: url(#hachures); stroke: #c79a0e; stroke-width: 1.6; stroke-dasharray: 6 5; }
.pl-rhone, .pl-rhone2 { fill: none; stroke: #2f6f7e; stroke-width: 2.2; stroke-linecap: round; }
.pl-riv { fill: none; stroke: #2f6f7e; stroke-width: 2.4; stroke-linecap: round; }
.pl-riv--fin { stroke-width: 1.6; }
.pl-mont { fill: none; stroke: #5e6461; stroke-width: 1.8; stroke-linejoin: round; }
.pl-sapin { fill: none; stroke: #2b4f40; stroke-width: 1.6; stroke-linejoin: round; }
.pl-pt { fill: #fbf8ef; stroke: #3a2f25; stroke-width: 1.8; }
.pl-pt--ville { fill: #3a2f25; }
.pl-pt--vallee { fill: #b5432f; stroke: #3a2f25; }
.pl-txt { font: 400 19px "Caveat", cursive; fill: #3a2f25; }
.pl-txt--ville { font-weight: 700; font-size: 22px; }
.pl-txt--vallee { font-weight: 700; font-size: 21px; fill: #8e2f1f; }
.pl-eau { font: 400 20px "Caveat", cursive; fill: #2f6f7e; }
.pl-region { font: 700 20px "Caveat", cursive; fill: #b3a68a; letter-spacing: .25em; }
.pl-note { font: 400 18px "Caveat", cursive; fill: #5e6461; }
.pl-titre-zone { font: 700 26px "Caveat", cursive; fill: #8e2f1f; }
.pl-fleche { fill: none; stroke: #8e2f1f; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pl-nord path { fill: #3a2f25; }
.pl-nord text { font: 700 22px "Caveat", cursive; fill: #3a2f25; }
.pl-echelle { fill: none; stroke: #3a2f25; stroke-width: 2; }
.champ-piege { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.champ--captcha input { max-width: 8rem; }
.champ__aide { font-size: .88rem; color: var(--granite); margin: .3rem 0 0; }

/* Contact : formulaire en carte, champs alignés */
.contact { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; }
.contact__form { background: var(--blanc); border: 1px solid #d3dad5; border-radius: 10px; padding: clamp(1.25rem, 3vw, 2.25rem); box-shadow: 0 1px 2px rgba(22, 32, 27, .05); }
.contact__form h1 { margin-bottom: .4rem; }
.contact__intro { margin-bottom: 1.75rem; }
#form-contact { display: grid; gap: 1.15rem; }
#form-contact .champ { margin: 0; display: grid; gap: .35rem; }
#form-contact .champ label { margin: 0; }
#form-contact input[type=text], #form-contact input[type=email], #form-contact textarea { box-sizing: border-box; width: 100%; background: var(--papier); border: 1px solid #c5cdc7; border-radius: 6px; padding: .75rem .9rem; font-size: 1.05rem; }
#form-contact input:focus, #form-contact textarea:focus { background: var(--blanc); }
#form-contact .champ--captcha { min-height: 0; background: #f3efe2; border-radius: 6px; padding: .9rem 1rem; }
#form-contact .champ--captcha input { max-width: 7rem; background: var(--blanc); }
#form-contact .form-rgpd { margin: 0; }
#form-contact .bouton { justify-self: start; border: 0; cursor: pointer; font: 700 1.05rem var(--sans); padding: .85rem 1.6rem; }
#form-contact .form-etat { margin: 0; }
.contact__plan { background: var(--blanc); border: 1px solid #d3dad5; border-radius: 10px; padding: .75rem; align-self: start; }
@media (max-width: 56rem) { .contact { grid-template-columns: 1fr; } }

/* Tableau des sources sous chaque village (page Autrefois) */
.sources-village { margin: 1.25rem 0 1rem; overflow-x: auto; }
.histoire-village:first-child > .sources-village { grid-column: 1 / -1; }
.sources-village table { width: 100%; border-collapse: collapse; font-size: .95rem; background: var(--blanc); border: 1px solid #d3dad5; border-radius: 6px; }
.sources-village caption { text-align: left; font-family: var(--serif); font-weight: 700; font-size: 1.05rem; color: var(--foret); padding: 0 0 .5rem; }
.sources-village th { text-align: left; font-size: .82rem; font-weight: 700; color: var(--granite); background: #eef1ec; padding: .45rem .7rem; border-bottom: 1px solid #d3dad5; }
.sources-village td { padding: .6rem .7rem; vertical-align: top; border-bottom: 1px solid #e4e9e5; line-height: 1.4; }
.sources-village tr:last-child td { border-bottom: 0; }
.sources-village td:first-child strong { display: block; color: var(--foret); margin-bottom: .15rem; }
.sources-village td:first-child span { color: #3d4642; }
.sources-village td:nth-child(2), .sources-village td:nth-child(3) { white-space: nowrap; }
.sources-village td:nth-child(2) a { font-weight: 700; }
.sources-village td:nth-child(3) { color: var(--granite); font-size: .88rem; }
@media (max-width: 40rem) {
  .sources-village thead { position: absolute; left: -10000px; }
  .sources-village tr { display: grid; grid-template-columns: 1fr auto; gap: .2rem .8rem; padding: .6rem .7rem; border-bottom: 1px solid #e4e9e5; }
  .sources-village td { display: block; padding: 0; border: 0; white-space: normal !important; }
  .sources-village td:first-child { grid-column: 1 / -1; }
  .sources-village td:nth-child(3) { text-align: right; }
}

/* Mentions légales */
.mentions { max-width: 46rem; }
.mentions h1 { font-size: clamp(2rem, 5vw, 2.8rem); }
.mentions h2 { margin-top: 2.25rem; font-size: 1.55rem; }
.mentions h3 { margin-top: 1.5rem; font-size: 1.15rem; }
.credits-photos { overflow-x: auto; margin: 1rem 0; }
.credits-photos table { width: 100%; border-collapse: collapse; font-size: .9rem; background: var(--blanc); border: 1px solid #d3dad5; }
.credits-photos th { text-align: left; background: #eef1ec; color: var(--granite); padding: .45rem .6rem; font-size: .8rem; }
.credits-photos td { padding: .45rem .6rem; border-top: 1px solid #e4e9e5; vertical-align: top; }
.credits-photos td:last-child a { word-break: break-word; }
.credits-photos td:nth-child(3) { white-space: nowrap; }
@media (max-width: 40rem) {
  .credits-photos thead { position: absolute; left: -10000px; }
  .credits-photos tr { display: block; padding: .55rem .6rem; border-top: 1px solid #e4e9e5; }
  .credits-photos td { display: inline; padding: 0; border: 0; }
  .credits-photos td:first-child { display: block; font-weight: 700; }
  .credits-photos td:nth-child(2)::after, .credits-photos td:nth-child(3)::after { content: " · "; }
}
