/* Group Gaïa : feuille unique, sans framework. */

@font-face { font-family: "Newsreader"; src: url("fonts/Newsreader-normal.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("fonts/Newsreader-italic.woff2") format("woff2"); font-weight: 200 800; font-style: italic; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("fonts/PublicSans-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --papier: #f5f2ea;
  --papier-2: #ece7da;
  --blanc: #fffdf8;
  --encre: #1d2621;
  --encre-2: #4a554e;
  --vert: #2d5a43;
  --vert-fonce: #1f4231;
  --mousse: #dde5d6;
  --ocre: #8a4f1d;
  --filet: #d6d0c1;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --large: 72rem;
  --texte: 40rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--papier);
  color: var(--encre);
  font: 400 1.0625rem/1.65 var(--sans);
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--vert); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--vert-fonce); text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--ocre); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.15; letter-spacing: -.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.15rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1.1em; }

.saut { position: absolute; left: -999px; top: 0; background: var(--encre); color: #fff; padding: .6rem 1rem; z-index: 100; }
.saut:focus { left: 1rem; top: 1rem; }

.cadre { width: 100%; max-width: var(--large); margin: 0 auto; padding: 0 1.25rem; }

/* ---------- En-tête ---------- */
.entete { border-bottom: 1px solid var(--filet); background: var(--papier); }
.entete .cadre { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.5rem; }
.marque { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--encre); }
.marque:hover { color: var(--encre); }
.marque svg { width: 30px; height: 30px; flex: none; }
.marque span { font-family: var(--serif); font-size: 1.45rem; font-weight: 500; letter-spacing: -.01em; }
.marque small { font-family: var(--sans); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--encre-2); margin-right: .35rem; font-weight: 600; }

.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem; }
.nav a { display: block; padding: .7rem .8rem; color: var(--encre); text-decoration: none; font-size: .95rem; font-weight: 500; border-radius: 3px; }
.nav a:hover { background: var(--papier-2); }
.nav a[aria-current="page"] { color: var(--vert); box-shadow: inset 0 -2px 0 var(--vert); border-radius: 0; }
.menu-btn { display: none; }

@media (max-width: 760px) {
  .menu-btn {
    display: inline-flex; align-items: center; gap: .5rem;
    background: none; border: 1px solid var(--filet); border-radius: 3px;
    font: 500 .95rem var(--sans); color: var(--encre); padding: .6rem .85rem; min-height: 44px; cursor: pointer;
  }
  .nav { position: absolute; left: 0; right: 0; top: 4.5rem; background: var(--papier); border-bottom: 1px solid var(--filet); display: none; z-index: 20; }
  .nav.ouvert { display: block; }
  .nav ul { flex-direction: column; padding: .5rem 1.25rem 1rem; }
  .nav a { padding: .85rem 0; border-bottom: 1px solid var(--filet); border-radius: 0; }
  .nav a[aria-current="page"] { box-shadow: none; }
  .entete { position: relative; }
}

/* ---------- Éléments communs ---------- */
.surtitre { font: 600 .75rem/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ocre); margin: 0 0 .9rem; }
.chapo { font-family: var(--serif); font-size: clamp(1.2rem, 2vw, 1.4rem); line-height: 1.5; color: var(--encre-2); }
.meta { font-size: .875rem; color: var(--encre-2); }
.lien-fleche { font-weight: 600; text-decoration: none; }
.lien-fleche::after { content: " →"; }
.lien-fleche:hover { text-decoration: underline; }
.section { padding: 4.5rem 0; }
.section + .section { border-top: 1px solid var(--filet); }
.tete-section { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap; }
.tete-section h2 { margin: 0; }
figure { margin: 0; }
figcaption { font-size: .8rem; color: var(--encre-2); margin-top: .5rem; }
figcaption a { color: inherit; }

/* ---------- Accueil : ouverture ---------- */
.ouverture { padding: 3.5rem 0 4rem; }
.ouverture .cadre { display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: center; }
.ouverture h1 { max-width: 15ch; }
.ouverture .chapo { max-width: 34rem; }
.ouverture .actions { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; margin-top: 1.75rem; }
.bouton {
  display: inline-flex; align-items: center; min-height: 48px; padding: .75rem 1.3rem;
  background: var(--vert); color: #fff; text-decoration: none; font-weight: 600; border-radius: 3px;
  transition: background-color .2s ease;
}
.bouton:hover { background: var(--vert-fonce); color: #fff; text-decoration: none; }
.ouverture img { aspect-ratio: 8 / 5; object-fit: cover; width: 100%; }
@media (min-width: 900px) {
  .ouverture .cadre { grid-template-columns: 1.05fr 1fr; gap: 4rem; }
}

/* ---------- Accueil : à la une ---------- */
.une { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
.une-principale img { aspect-ratio: 8 / 5; object-fit: cover; width: 100%; margin-bottom: 1.25rem; }
.une-principale h3 { font-size: clamp(1.5rem, 2.6vw, 1.95rem); }
.une-liste { list-style: none; margin: 0; padding: 0; }
.une-liste li { display: grid; grid-template-columns: 7.5rem 1fr; gap: 1.1rem; padding: 1.25rem 0; border-top: 1px solid var(--filet); }
.une-liste li:first-child { border-top: 0; padding-top: 0; }
.une-liste img { aspect-ratio: 1 / 1; object-fit: cover; width: 100%; }
.une-liste h3 { font-size: 1.15rem; margin-bottom: .35rem; }
.titre-lien { color: var(--encre); text-decoration: none; }
.titre-lien:hover { color: var(--vert); text-decoration: underline; }
@media (min-width: 900px) { .une { grid-template-columns: 1.35fr 1fr; gap: 3.5rem; } }

/* ---------- Accueil : repères chiffrés ---------- */
.reperes { background: var(--vert-fonce); color: #eef2ea; }
.reperes h2 { color: #fff; }
.reperes .grille { display: grid; grid-template-columns: 1fr; gap: 2rem; margin-top: 2rem; }
.repere { border-top: 1px solid rgba(255,255,255,.25); padding-top: 1.1rem; }
.repere strong { display: block; font: 500 clamp(2.4rem, 5vw, 3.2rem)/1 var(--serif); color: #fff; margin-bottom: .6rem; }
.repere p { margin: 0 0 .5rem; }
.repere small { color: #bccbbf; font-size: .8rem; }
.reperes a { color: #fff; }
@media (min-width: 760px) { .reperes .grille { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Accueil : carnet (brèves) ---------- */
.carnet { display: grid; grid-template-columns: 1fr; gap: 0 3.5rem; }
.breve { padding: 1.5rem 0; border-top: 1px solid var(--filet); }
.breve time { font-size: .8rem; color: var(--encre-2); letter-spacing: .04em; }
.breve h3 { font-size: 1.2rem; margin: .3rem 0 .5rem; }
.breve p { margin: 0; color: var(--encre-2); }
@media (min-width: 900px) { .carnet { grid-template-columns: 1fr 1fr; } }

/* ---------- Accueil : thèmes ---------- */
.themes { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
.theme { background: var(--blanc); border: 1px solid var(--filet); padding: 1.5rem; display: flex; flex-direction: column; }
.theme h3 { margin-bottom: .4rem; }
.theme p { color: var(--encre-2); font-size: .97rem; flex: 1; }
.theme .compte { font-size: .8rem; color: var(--encre-2); text-transform: uppercase; letter-spacing: .1em; font-weight: 600; }
@media (min-width: 640px) { .themes { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .themes { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Accueil : adresses ---------- */
.adresses-intro { max-width: var(--texte); color: var(--encre-2); }
.adresses { display: grid; grid-template-columns: 1fr; gap: 0 3rem; margin: 2rem 0 0; }
.adresses div { padding: 1.1rem 0; border-top: 1px solid var(--filet); }
.adresses dt { font-weight: 600; margin-bottom: .2rem; }
.adresses dd { margin: 0; color: var(--encre-2); font-size: .97rem; }
@media (min-width: 760px) { .adresses { grid-template-columns: 1fr 1fr; } }

/* ---------- Bloc citation / manifeste ---------- */
.manifeste { display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: center; }
.manifeste blockquote { margin: 0; font: italic 400 clamp(1.4rem, 2.6vw, 1.85rem)/1.4 var(--serif); }
.manifeste img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
@media (min-width: 900px) { .manifeste { grid-template-columns: 1fr 1fr; gap: 4rem; } }

/* ---------- Pages de contenu ---------- */
.fil { font-size: .85rem; color: var(--encre-2); padding-top: 1.5rem; }
.fil ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.fil li + li::before { content: "/"; margin-right: .4rem; color: var(--filet); }
.fil a { color: var(--encre-2); }

.article-tete { padding-top: 2.5rem; padding-bottom: 2rem; }
.article-tete h1 { max-width: 22ch; }
.article-tete .chapo { max-width: var(--texte); }
.article-image { margin-bottom: 3rem; }
.article-image img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }

.prose { max-width: var(--texte); margin: 0 auto 4rem; font-size: 1.1rem; line-height: 1.75; }
.prose h2 { font-size: 1.65rem; margin-top: 2.5rem; }
.prose h3 { margin-top: 2rem; }
.prose ul, .prose ol { padding-left: 1.3rem; margin: 0 0 1.2em; }
.prose li { margin-bottom: .45em; }
.prose blockquote { margin: 2rem 0; padding-left: 1.25rem; border-left: 3px solid var(--vert); font: italic 1.3rem/1.5 var(--serif); color: var(--encre-2); }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; margin: 1.5rem 0 2rem; }
.prose th, .prose td { text-align: left; padding: .6rem .5rem; border-bottom: 1px solid var(--filet); vertical-align: top; }
.prose th { font-weight: 600; }
.table-defile { overflow-x: auto; }
.encadre { background: var(--mousse); padding: 1.4rem 1.5rem; margin: 2rem 0; }
.encadre p:last-child { margin-bottom: 0; }
.encadre strong:first-child { display: block; font-family: var(--serif); font-size: 1.2rem; font-weight: 500; margin-bottom: .4rem; }
.sources { font-size: .9rem; color: var(--encre-2); border-top: 1px solid var(--filet); padding-top: 1.25rem; margin-top: 3rem; }
.sources ul { padding-left: 1.1rem; }

.a-lire { background: var(--papier-2); }
.cartes { display: grid; grid-template-columns: 1fr; gap: 2rem; }
.carte img { aspect-ratio: 8 / 5; object-fit: cover; width: 100%; margin-bottom: 1rem; }
.carte h3 { font-size: 1.25rem; margin-bottom: .4rem; }
.carte p { color: var(--encre-2); font-size: .97rem; }
@media (min-width: 700px) { .cartes { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .cartes { grid-template-columns: repeat(3, 1fr); } }

.filtres { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 2.5rem; padding: 0; list-style: none; }
.filtres a { display: inline-block; padding: .55rem .95rem; border: 1px solid var(--filet); border-radius: 99px; text-decoration: none; color: var(--encre); font-size: .9rem; min-height: 40px; }
.filtres a:hover { border-color: var(--vert); color: var(--vert); }
.rubrique { scroll-margin-top: 1.5rem; margin-bottom: 3.5rem; }
.rubrique > h2 { padding-bottom: .6rem; border-bottom: 1px solid var(--filet); margin-bottom: 1.75rem; }

.page-simple { max-width: var(--texte); margin: 0 auto; padding-top: 2.5rem; padding-bottom: 4.5rem; }
.page-simple h2 { margin-top: 2.2rem; font-size: 1.5rem; }

/* ---------- Pied de page ---------- */
.pied { background: var(--encre); color: #c9d0ca; padding: 3.5rem 0 2rem; font-size: .95rem; }
.pied a { color: #eef2ea; }
.pied .grille { display: grid; grid-template-columns: 1fr; gap: 2rem; }
.pied h2 { font: 600 .75rem var(--sans); letter-spacing: .14em; text-transform: uppercase; color: #8f9c92; margin-bottom: .9rem; }
.pied ul { list-style: none; margin: 0; padding: 0; }
.pied li { margin-bottom: .45rem; }
.pied .marque { color: #fff; margin-bottom: .8rem; }
.pied .marque small { color: #8f9c92; }
.pied .bas { border-top: 1px solid #3a453e; margin-top: 2.5rem; padding-top: 1.25rem; font-size: .82rem; color: #8f9c92; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem; }
@media (min-width: 760px) { .pied .grille { grid-template-columns: 1.6fr 1fr 1fr; } }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.points { margin: 1.5rem 0; }
.points div { padding: .9rem 0; border-top: 1px solid var(--filet); }
.points dt { font-family: var(--serif); font-size: 1.15rem; font-weight: 500; margin-bottom: .2rem; }
.points dd { margin: 0; color: var(--encre-2); }
