/* Génie des lieux : « Vert-de-gris ». Le cuivre oxydé des toits patrimoniaux et les courbes de niveau des cartes.
   Une seule audace : le cartouche « deux lieux, un même esprit ». Le reste est sobre. Polices servies par le site : Alegreya, Alegreya Sans. */

@font-face { font-family: 'Alegreya'; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url('/fonts/alegreya-latin-wght-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Alegreya'; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url('/fonts/alegreya-latin-ext-wght-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Alegreya'; font-style: italic; font-weight: 400 900; font-display: swap;
  src: url('/fonts/alegreya-latin-wght-italic.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Alegreya'; font-style: italic; font-weight: 400 900; font-display: swap;
  src: url('/fonts/alegreya-latin-ext-wght-italic.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Alegreya Sans'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('/fonts/alegreya-sans-latin-400-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Alegreya Sans'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('/fonts/alegreya-sans-latin-ext-400-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Alegreya Sans'; font-style: italic; font-weight: 400; font-display: swap;
  src: url('/fonts/alegreya-sans-latin-400-italic.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Alegreya Sans'; font-style: italic; font-weight: 400; font-display: swap;
  src: url('/fonts/alegreya-sans-latin-ext-400-italic.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Alegreya Sans'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('/fonts/alegreya-sans-latin-700-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Alegreya Sans'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('/fonts/alegreya-sans-latin-ext-700-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --lichen: #E3E7DC;      /* fond */
  --ardoise: #27323A;     /* texte, titres */
  --vert: #2F6B60;        /* vert-de-gris foncé : liens, onglet actif, focus */
  --courbe: #8DB3A8;      /* vert-de-gris clair : courbes de niveau, filets (jamais du texte) */
  --cuivre: #A0623A;      /* point de lieu du cartouche UNIQUEMENT (jamais du texte, jamais un accent) */
  --ecorce: #FAFAF6;      /* cards, cartouches */
  --doux: #4A5961;        /* texte secondaire : métadonnées, légendes, fil d'Ariane */
  --trait: rgba(39, 50, 58, .12);
  --measure-article: 820px;
  --serif: 'Alegreya', Georgia, 'Times New Roman', serif;
  --sans: 'Alegreya Sans', 'Segoe UI', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--lichen); color: var(--ardoise); font-family: var(--serif); font-size: 19px; line-height: 1.7; text-align: left; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--vert); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--vert); outline-offset: 2px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ardoise); color: var(--lichen); padding: .6rem 1rem; z-index: 50; font-family: var(--sans); }
.skip:focus { left: 8px; top: 8px; }

h1, h2, h3, h4 { font-family: var(--serif); color: var(--ardoise); line-height: 1.2; margin: 0 0 .6em; text-wrap: balance; }
h1 { font-weight: 800; font-size: clamp(2.05rem, 5vw, 3.1rem); letter-spacing: -.005em; }
h2 { font-weight: 700; font-size: clamp(1.55rem, 3.2vw, 2rem); margin-top: 2.2em; }
h3 { font-weight: 700; font-size: 1.3rem; margin-top: 1.8em; }
p, ul, ol { margin: 0 0 1.05em; }
em, i { font-style: italic; }

/* ---------- En-tête ---------- */
.site-header { border-bottom: 1px solid var(--courbe); background: var(--lichen); }
.site-header__top { max-width: 1120px; margin: 0 auto; padding: 14px 20px 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; }
.logo { display: inline-flex; align-items: center; gap: 12px; color: var(--ardoise); text-decoration: none; }
.logo__nom { font-family: var(--serif); font-weight: 800; font-size: 1.65rem; line-height: 1; }
.site-header__tagline { margin: 0; font-family: var(--sans); font-style: italic; font-size: 1.05rem; color: var(--doux); flex: 1 1 200px; }
.lang { font-family: var(--sans); font-size: 1rem; display: inline-flex; gap: 8px; align-items: center; margin-left: auto; }
.lang a, .lang span[aria-current] { padding: 4px 2px; }
.lang span[aria-current] { font-weight: 700; border-bottom: 2px solid var(--vert); }
.lang__sep { color: var(--courbe); }
.menu { max-width: 1120px; margin: 0 auto; padding: 0 20px 10px; font-family: var(--sans); }
.menu > summary { cursor: pointer; padding: 10px 0; font-size: 1.1rem; list-style: none; min-height: 44px; }
.menu > summary::-webkit-details-marker { display: none; }
.menu ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px 22px; }
.menu a { display: inline-block; padding: 8px 0 6px; font-size: 1.12rem; text-decoration: none; color: var(--ardoise); border-bottom: 2px solid transparent; }
.menu a:hover { border-bottom-color: var(--courbe); }
.menu a[aria-current='page'] { border-bottom-color: var(--vert); color: var(--vert); font-weight: 700; }
@media (min-width: 900px) { .menu > summary { display: none; } }
@media (max-width: 899px) { .menu ul { flex-direction: column; gap: 0; } .menu a { padding: 10px 0; } }

/* ---------- Hero et bande de courbes ---------- */
.hero-band { margin: 0; width: 100%; }
.img-hero, .img-card, .img-body, .img-portrait { overflow: hidden; background: var(--ecorce); }
.img-hero { aspect-ratio: 16 / 9; max-height: min(75vh, 44vw); width: 100%; }
.img-card, .img-body { aspect-ratio: 3 / 2; }
.img-portrait { aspect-ratio: 1 / 1; border-radius: 50%; }
.img-hero img, .img-card img, .img-body img, .img-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.credit { font-family: var(--sans); font-size: .9rem; color: var(--doux); margin: 6px 20px 0; max-width: 1120px; }
.bande-courbes { height: 72px; overflow: hidden; border-bottom: 1px solid var(--trait); }
.bande-courbes svg { width: 100%; height: 100%; display: block; }

/* ---------- Pages ---------- */
.page, .page--simple { max-width: calc(var(--measure-article) + 40px); margin: 0 auto; padding: 28px 20px 56px; }
.page-tete h1 { margin-top: .3em; }
.meta { font-family: var(--sans); font-size: 1rem; color: var(--doux); margin: 0 0 1.2em; }
.fil { font-family: var(--sans); font-size: .98rem; color: var(--doux); }
.fil ol { list-style: none; display: flex; flex-wrap: wrap; margin: 0; padding: 0; gap: 2px 0; }
.fil li + li::before { content: '/'; margin: 0 .55em; color: var(--courbe); }
.fil a { color: var(--doux); }
.accueil-tete { max-width: calc(var(--measure-article) + 40px); margin: 0 auto; padding: 32px 20px 8px; }
.chapeau { font-size: 1.3rem; line-height: 1.6; }

/* ---------- Cartouches : « deux lieux, un même esprit » ---------- */
.cartouches { position: relative; margin: 1.6rem 0 2rem; }
.cartouches__liste { list-style: none; margin: 0; padding: 0; position: relative; z-index: 1; display: grid; gap: 14px; }
.trace { position: absolute; z-index: 0; pointer-events: none; overflow: visible; }
.trace--h { display: none; left: 0; top: 0; width: 100%; height: 100%; }
.trace--v { left: 0; top: 0; height: 100%; width: 26px; }
.trace path { fill: none; stroke: var(--courbe); stroke-linecap: round; }
.trace__main { stroke-width: 2; stroke-dasharray: 1400; stroke-dashoffset: 0; animation: trace-dessin 600ms ease-out both; }
.trace__sec { stroke-width: 1; opacity: .6; }
@keyframes trace-dessin { from { stroke-dashoffset: 1400; } to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .trace__main { animation: none; } }
.cartouche { position: relative; background: var(--ecorce); border: 1px solid var(--trait); border-radius: 2px; padding: 14px 16px 12px 18px; margin-left: 34px; }
.cartouche__point { position: absolute; left: -22px; top: 22px; width: 13px; height: 13px; border-radius: 50%; background: var(--cuivre); box-shadow: 0 0 0 3px var(--lichen); }
.cartouche p { margin: 0; }
.cartouche__nom { font-family: var(--serif); font-weight: 700; font-size: 1.35rem; line-height: 1.2; }
.cartouche__nom em { font-style: italic; }
.cartouche__lieu, .cartouche__nation { font-family: var(--sans); font-size: 1.02rem; color: var(--doux); margin-top: 3px; }
.cartouche__coord { font-family: var(--sans); font-size: 1rem; margin-top: 8px; font-variant-numeric: tabular-nums; }
.cartouche__src { font-family: var(--sans); font-size: .92rem; display: inline-block; margin-top: 6px; }
@media (min-width: 720px) {
  .trace--v { display: none; }
  .trace--h { display: block; }
  .cartouches__liste { grid-auto-flow: column; grid-auto-columns: 1fr; gap: 0 64px; }
  .cartouches--3 .cartouches__liste { gap: 0 44px; }
  .cartouche { margin-left: 0; margin-top: 8px; padding-top: 22px; }
  .cartouche__point { left: 16px; top: -7px; }
}

/* ---------- Texte courant ---------- */
.prose { max-width: var(--measure-article); }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { margin-bottom: .4em; }
.prose blockquote { margin: 1.4em 0; padding: .2em 0 .2em 1.1em; border-left: 3px solid var(--courbe); font-style: italic; }
.prose blockquote.expert-question { margin: 1.8em 0 .5em; padding: 0; border: 0; font-style: normal; font-weight: 600; }
.prose .expert-answer { margin: 0 0 1.4em; padding-left: 1.1em; border-left: 1px solid var(--courbe); }
.prose blockquote.expert-answer, .prose blockquote.expert-question { font-style: normal !important; }
.prose blockquote.expert-answer { font-size: 1rem !important; }
.fig { margin: 2rem 0; }
.fig figcaption, .prose figcaption { font-family: var(--sans); font-size: .95rem; color: var(--doux); margin-top: 8px; }
.sommaire { background: var(--ecorce); border: 1px solid var(--trait); border-radius: 2px; padding: 14px 18px; margin: 0 0 2rem; font-family: var(--sans); font-size: 1.05rem; }
.sommaire__titre { font-weight: 700; margin: 0 0 6px; }
.sommaire ul { margin: 0; padding-left: 1.2em; }
.sommaire li { margin-bottom: 2px; }

/* ---------- Tableaux datés ---------- */
.tableau-date { margin: 1.8rem 0; }
.tableau-date__scroll { overflow-x: auto; border: 1px solid var(--trait); border-radius: 2px; background: var(--ecorce); }
.tableau-date table { border-collapse: collapse; width: 100%; min-width: 460px; font-family: var(--sans); font-size: 1.02rem; line-height: 1.45; }
.tableau-date caption { text-align: left; font-weight: 700; padding: 10px 12px 6px; caption-side: top; }
.tableau-date th, .tableau-date td { text-align: left; padding: 9px 12px; border-top: 1px solid var(--trait); vertical-align: top; }
.tableau-date thead th { background: var(--ardoise); color: var(--lichen); font-weight: 700; border-top: 0; }
.tableau-date tbody th { font-weight: 700; }
.tableau-date__source { font-family: var(--sans); font-size: .95rem; color: var(--doux); margin: 6px 0 0; }

/* ---------- À retenir, encadrés, FAQ, références ---------- */
.retenir, .encadre { background: var(--ecorce); border: 1px solid var(--trait); border-left: 4px solid var(--courbe); border-radius: 2px; padding: 14px 18px 8px; margin: 1.8rem 0; }
.retenir__titre, .encadre__titre { font-family: var(--sans); font-weight: 700; font-size: 1.12rem; margin: 0 0 6px; }
.retenir ul { margin: 0 0 .6em; padding-left: 1.2em; }
.encadre p:not(.encadre__titre) { font-size: 1.02rem; line-height: 1.6; }
.encadre--y-aller, .encadre--protocole { border-left-color: var(--vert); }
.encadre--juridique, .encadre--attention { border-left-color: var(--ardoise); }
.faq { margin-top: 2.4rem; }
.faq__item { border-top: 1px solid var(--trait); padding: 4px 0; }
.faq__item:last-of-type { border-bottom: 1px solid var(--trait); }
.faq__item summary { cursor: pointer; font-weight: 700; font-size: 1.12rem; padding: 10px 0; min-height: 44px; }
.faq__item p { margin: 0 0 .9em; }
.references { margin-top: 2.4rem; font-family: var(--sans); font-size: 1rem; color: var(--doux); }
.references ol { padding-left: 1.4em; }
.references li { margin-bottom: .45em; }

/* ---------- Cards, filtre, blog ---------- */
.zone-cards, .section-cards { max-width: 1120px; margin: 0 auto; padding: 28px 20px 8px; }
.cards { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.card { background: var(--ecorce); border: 1px solid var(--trait); border-radius: 2px; display: flex; flex-direction: column; }
.card[hidden] { display: none; }
.card__corps { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.card__cat { font-family: var(--sans); font-size: 1rem; color: var(--doux); margin: 0 0 4px; }
.card__titre { font-size: 1.3rem; margin: 0 0 .4em; }
.card__titre a { color: var(--ardoise); text-decoration: none; }
.card__titre a:hover { color: var(--vert); text-decoration: underline; }
.card__resume { font-size: 1rem; line-height: 1.55; margin: 0 0 .7em; }
.card time { font-family: var(--sans); font-size: .98rem; color: var(--doux); margin-top: auto; }
.filtre { display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 1.2rem 0 1.6rem; font-family: var(--sans); border-bottom: 1px solid var(--courbe); }
.filtre[hidden] { display: none; }
.filtre__btn { background: none; border: 0; border-bottom: 3px solid transparent; margin-bottom: -1px; padding: 10px 2px 8px; font: inherit; font-size: 1.1rem; color: var(--ardoise); cursor: pointer; min-height: 44px; }
.filtre__btn:hover { border-bottom-color: var(--courbe); }
.filtre__btn[aria-pressed='true'] { border-bottom-color: var(--vert); color: var(--vert); font-weight: 700; }
.section-cards__plus { margin-top: 1.2rem; }
.blog-vide { color: var(--doux); }
.methode { max-width: var(--measure-article); }
.btn { display: inline-block; background: var(--vert); color: var(--ecorce); font-family: var(--sans); font-weight: 700; font-size: 1.08rem; padding: 10px 22px; border: 0; border-radius: 2px; text-decoration: none; cursor: pointer; min-height: 44px; margin-right: 12px; }
.btn:hover { background: var(--ardoise); text-decoration: none; }

/* ---------- Formulaire ---------- */
.contact-form { max-width: 620px; margin-top: 1.6rem; font-family: var(--sans); }
.contact-form__ligne { display: flex; flex-direction: column; gap: 4px; margin: 0 0 1rem; }
.contact-form label { font-weight: 700; font-size: 1.05rem; }
.contact-form input, .contact-form select, .contact-form textarea { font: inherit; font-size: 1.1rem; padding: 10px 12px; border: 1px solid var(--ardoise); border-radius: 2px; background: var(--ecorce); color: var(--ardoise); }
.contact-form__piege { position: absolute; left: -9999px; }
#contact-status.ok { color: var(--vert); }
#contact-status.erreur { color: var(--ardoise); font-weight: 700; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--ardoise); color: var(--lichen); margin-top: 40px; }
.site-footer__in { max-width: 1120px; margin: 0 auto; padding: 28px 20px 32px; font-family: var(--sans); }
.site-footer__nom { font-family: var(--serif); font-weight: 800; font-size: 1.5rem; margin: 0 0 4px; }
.site-footer__mention { font-style: italic; margin: 0 0 14px; max-width: 70ch; }
.site-footer__liens { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; }
.site-footer a { color: var(--lichen); text-decoration-color: var(--courbe); }
.site-footer :focus-visible { outline-color: var(--courbe); }

@media (max-width: 640px) {
  body { font-size: 18px; }
  .site-header__tagline { flex-basis: 100%; order: 3; }
}

/* ---------- Classes de structure (déclarées explicitement) ---------- */
.pose { text-rendering: optimizeLegibility; }
.logo__mark { flex: 0 0 auto; display: block; }
.coord { font-variant-numeric: tabular-nums; white-space: nowrap; }
.article-body { min-width: 0; overflow-wrap: break-word; }
.article-sommaire { min-width: 0; }
.cartouches--2 .cartouches__liste { gap: 14px; }
@media (min-width: 900px) { .cartouches--2 .cartouches__liste { gap: 0 64px; } }
.prose--util { max-width: var(--measure-article); }
