/* ==========================================================================
   Département de Sociologie — UFHB / Institut d'Ethno-Sociologie
   Feuille de style principale
   1.  Réglages généraux et variables
   2.  En-tête, navigation, bandeau d'annonce
   3.  Héros et en-têtes de page
   4.  Composants (cartes, listes, tableaux, accordéons, formulaires)
   5.  Sections spécifiques
   6.  Pied de page
   7.  Pages légales
   8.  Adaptations responsives
   ========================================================================== */

/* 1. Réglages généraux ---------------------------------------------------- */
:root {
  --vert-900: #06281f;
  --vert-800: #0b3b2e;
  --vert-700: #10513d;
  --vert-600: #146b4f;
  --vert-500: #1f8a66;
  --vert-050: #e8f1ec;
  --vert-025: #f2f7f4;

  --orange-700: #9a3412;
  --orange-600: #c2410c;
  --orange-500: #e0761a;
  --orange-050: #fdf2e7;

  --encre: #13211c;
  --encre-douce: #48594f;
  --encre-pale: #6d7f74;
  --trait: #dbe4de;
  --trait-fort: #c3d1c9;
  --fond: #f7f8f6;
  --blanc: #ffffff;

  --r-xs: 4px;
  --r-sm: 6px;
  --r-md: 8px;
  --r-lg: 12px;

  --ombre-1: 0 1px 2px rgba(6, 40, 31, 0.06), 0 2px 6px rgba(6, 40, 31, 0.05);
  --ombre-2: 0 10px 24px rgba(6, 40, 31, 0.09);
  --ombre-3: 0 22px 48px rgba(6, 40, 31, 0.16);

  --serif: "Playfair Display", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --contenu: 1180px;
  --gouttiere: 24px;
  --entete-h: 74px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* L'attribut « hidden » doit primer sur les règles d'affichage des composants. */
[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--entete-h) + 16px);
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

@supports (overflow: clip) {
  html {
    /* « clip » empêche le défilement horizontal sans casser l'en-tête collant. */
    overflow-x: clip;
  }
}

body {
  margin: 0;
  background: var(--fond);
  color: var(--encre);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.68;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.nav-ouverte {
  overflow: hidden;
}

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

a {
  color: var(--vert-700);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--orange-700);
}

h1,
h2,
h3,
h4 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.18;
  color: var(--vert-900);
  margin: 0 0 0.6em;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(2rem, 1.35rem + 2.6vw, 3.3rem);
}

h2 {
  font-size: clamp(1.55rem, 1.2rem + 1.5vw, 2.25rem);
}

h3 {
  font-size: clamp(1.15rem, 1.05rem + 0.5vw, 1.4rem);
}

h4 {
  font-family: var(--sans);
  font-size: 1.02rem;
  font-weight: 800;
  text-transform: none;
}

p {
  margin: 0 0 1.05em;
}

p:last-child,
ul:last-child,
ol:last-child {
  margin-bottom: 0;
}

ul,
ol {
  padding-left: 1.15em;
}

li {
  margin-bottom: 0.35em;
}

strong {
  font-weight: 700;
  color: var(--vert-900);
}

:focus-visible {
  outline: 3px solid var(--orange-500);
  outline-offset: 3px;
  border-radius: 3px;
}

.lien-evitement {
  position: absolute;
  left: 12px;
  top: -70px;
  z-index: 200;
  background: var(--vert-800);
  color: #fff;
  padding: 12px 18px;
  border-radius: var(--r-sm);
  font-weight: 700;
  transition: top 0.18s ease;
}

.lien-evitement:focus {
  top: 12px;
  color: #fff;
}

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

.conteneur--etroite {
  max-width: 880px;
}

.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;
}

.icon {
  width: 1.15em;
  height: 1.15em;
  flex: 0 0 auto;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.icon--lg {
  width: 1.5em;
  height: 1.5em;
}

/* 2. En-tête, navigation, bandeau d'annonce ------------------------------- */
.barre-institutionnelle {
  background: var(--vert-900);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.82rem;
}

.barre-institutionnelle .conteneur {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 42px;
  flex-wrap: wrap;
}

.barre-institutionnelle p {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.barre-institutionnelle a {
  color: #fff;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.barre-institutionnelle a:hover {
  color: #ffd7b0;
}

.barre-institutionnelle .barre-liens {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.barre-liens li {
  margin: 0;
}

.barre-liens li + li::before {
  content: "";
  display: inline-block;
  width: 1px;
  height: 12px;
  background: rgba(255, 255, 255, 0.28);
  margin: 0 12px;
  vertical-align: -1px;
}

.bandeau-annonce {
  background: var(--orange-050);
  border-bottom: 1px solid #f0d9c3;
  color: #6b2a0d;
  font-size: 0.9rem;
}

.bandeau-annonce .conteneur {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding-block: 11px;
}

.bandeau-annonce p {
  margin: 0;
}

.bandeau-annonce strong {
  color: var(--orange-700);
}

.bandeau-annonce__fermer {
  margin-left: auto;
  background: transparent;
  border: 1px solid rgba(107, 42, 13, 0.28);
  color: #6b2a0d;
  border-radius: var(--r-sm);
  padding: 3px 7px;
  cursor: pointer;
  line-height: 0;
}

.bandeau-annonce__fermer:hover {
  background: rgba(107, 42, 13, 0.09);
}

.entete-site {
  position: sticky;
  top: 0;
  z-index: 90;
  background: #ffffff;
  border-bottom: 1px solid var(--trait);
  box-shadow: 0 1px 0 rgba(6, 40, 31, 0.03);
}

.entete-site__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: var(--entete-h);
}

.marque {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  flex: 0 0 auto;
}

.marque:hover {
  color: inherit;
}

.marque__embleme {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--vert-800);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  border: 2px solid rgba(255, 255, 255, 0.45);
  box-shadow: inset 0 0 0 3px var(--vert-800), inset 0 0 0 4px rgba(255, 255, 255, 0.28);
  flex: 0 0 auto;
}

.marque__texte {
  display: flex;
  flex-direction: column;
  line-height: 1.16;
}

.marque__titre {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.06rem;
  color: var(--vert-900);
}

.marque__sous-titre {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--encre-pale);
  font-weight: 600;
}

.nav-principale {
  margin-left: auto;
}

.nav-principale ul {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-principale li {
  margin: 0;
}

.nav-principale a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  color: var(--encre-douce);
  font-size: 0.93rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.nav-principale a:hover {
  background: var(--vert-025);
  color: var(--vert-800);
}

.nav-principale a[aria-current="page"] {
  color: var(--vert-800);
  background: var(--vert-050);
  box-shadow: inset 0 -2px 0 var(--vert-600);
}

.entete-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bouton-menu {
  display: none;
  align-items: center;
  gap: 8px;
  background: var(--vert-800);
  color: #fff;
  border: 0;
  border-radius: var(--r-sm);
  padding: 10px 13px;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
}

.bouton-menu:hover {
  background: var(--vert-700);
}

/* Boutons ---------------------------------------------------------------- */
.bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 20px;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
  line-height: 1.2;
}

.bouton--principal {
  background: var(--orange-600);
  color: #fff;
}

.bouton--principal:hover {
  background: var(--orange-700);
  color: #fff;
}

.bouton--vert {
  background: var(--vert-700);
  color: #fff;
}

.bouton--vert:hover {
  background: var(--vert-800);
  color: #fff;
}

.bouton--contour {
  background: transparent;
  border-color: var(--trait-fort);
  color: var(--vert-800);
}

.bouton--contour:hover {
  border-color: var(--vert-600);
  background: var(--vert-025);
  color: var(--vert-900);
}

.bouton--clair {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.42);
  color: #fff;
}

.bouton--clair:hover {
  background: #fff;
  color: var(--vert-900);
}

.bouton--petit {
  padding: 9px 14px;
  font-size: 0.88rem;
}

.bouton--bloc {
  width: 100%;
}

.lien-fleche {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 700;
  text-decoration: none;
  color: var(--orange-700);
}

.lien-fleche:hover {
  gap: 11px;
  color: var(--orange-600);
}

/* 3. Héros et en-têtes de page ------------------------------------------- */
.heros {
  position: relative;
  isolation: isolate;
  color: #fff;
  background: var(--vert-900);
  overflow: hidden;
}

.heros__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.heros__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 62%;
}

.heros::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(104deg, rgba(4, 26, 20, 0.92) 0%, rgba(6, 40, 31, 0.8) 44%, rgba(6, 40, 31, 0.38) 76%, rgba(6, 40, 31, 0.22) 100%),
    linear-gradient(to top, rgba(4, 26, 20, 0.86) 0%, rgba(4, 26, 20, 0) 62%);
}

.heros__inner {
  padding-block: clamp(58px, 8vw, 104px) clamp(64px, 9vw, 112px);
  max-width: 760px;
}

.heros__etiquette {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 13px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #ffe6cd;
  margin-bottom: 20px;
}

.heros h1 {
  color: #fff;
  margin-bottom: 18px;
  max-width: 22ch;
}

.heros__accroche {
  font-size: clamp(1.02rem, 0.98rem + 0.35vw, 1.19rem);
  color: rgba(255, 255, 255, 0.88);
  max-width: 60ch;
  margin-bottom: 30px;
}

.heros__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.heros__chiffres {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: clamp(38px, 5vw, 58px);
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--r-md);
  overflow: hidden;
  max-width: 620px;
}

.heros__chiffre {
  background: rgba(4, 26, 20, 0.5);
  padding: 16px 18px;
}

.heros__chiffre dt {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
}

.heros__chiffre dd {
  margin: 3px 0 0;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.4;
}

/* Bandeau d'accès rapide qui chevauche le héros */
.acces-rapide {
  margin-top: -46px;
  position: relative;
  z-index: 5;
}

.acces-rapide__grille {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--trait);
  border: 1px solid var(--trait);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--ombre-2);
}

.acces-rapide__item {
  background: #fff;
  padding: 20px 20px 22px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 7px;
  transition: background-color 0.16s ease;
}

.acces-rapide__item:hover {
  background: var(--vert-025);
  color: inherit;
}

.acces-rapide__item .icon {
  color: var(--orange-600);
  width: 1.45em;
  height: 1.45em;
}

.acces-rapide__item strong {
  font-size: 0.97rem;
  color: var(--vert-900);
}

.acces-rapide__item span:last-child {
  font-size: 0.86rem;
  color: var(--encre-pale);
  line-height: 1.45;
}

.entete-page {
  position: relative;
  background: var(--vert-800);
  color: #fff;
  overflow: hidden;
}

.entete-page__media {
  position: absolute;
  inset: 0;
  opacity: 0.3;
}

.entete-page__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.entete-page::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(96deg, rgba(4, 26, 20, 0.9), rgba(6, 40, 31, 0.62));
}

.entete-page .conteneur {
  position: relative;
  z-index: 2;
  padding-block: clamp(34px, 4.6vw, 54px);
  max-width: var(--contenu);
}

.entete-page h1 {
  color: #fff;
  margin-bottom: 12px;
  max-width: 26ch;
}

.entete-page p {
  color: rgba(255, 255, 255, 0.84);
  max-width: 70ch;
  margin: 0;
}

.fil-ariane {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.83rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 16px;
  list-style: none;
  padding: 0;
}

.fil-ariane li {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.fil-ariane a {
  color: rgba(255, 255, 255, 0.86);
  text-decoration: none;
}

.fil-ariane a:hover {
  color: #fff;
  text-decoration: underline;
}

.fil-ariane li + li::before {
  content: "/";
  color: rgba(255, 255, 255, 0.42);
}

/* 4. Composants ----------------------------------------------------------- */
.section {
  padding-block: clamp(52px, 6.4vw, 88px);
}

.section--tint {
  background: var(--vert-025);
  border-block: 1px solid var(--trait);
}

.section--sombre {
  background: var(--vert-900);
  color: rgba(255, 255, 255, 0.85);
}

.section--sombre h2,
.section--sombre h3 {
  color: #fff;
}

.section--sombre strong {
  color: #fff;
}

.entete-section {
  max-width: 74ch;
  margin-bottom: clamp(28px, 3.4vw, 44px);
}

.entete-section--centre {
  margin-inline: auto;
  text-align: center;
}

.surtitre {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--orange-700);
  margin-bottom: 12px;
}

.surtitre::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--orange-500);
}

.section--sombre .surtitre {
  color: #f6b57c;
}

.entete-section p {
  color: var(--encre-douce);
  font-size: 1.02rem;
}

.section--sombre .entete-section p {
  color: rgba(255, 255, 255, 0.8);
}

.grille {
  display: grid;
  gap: 20px;
}

.grille--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grille--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grille--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.grille--asym {
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
}

/* Espacements utilitaires ------------------------------------------------- */
.espace-haut {
  margin-top: 24px;
}

.espace-haut--moyen {
  margin-top: 32px;
}

.espace-haut--grand {
  margin-top: 44px;
}

.liste-fiches--sans-trait {
  border-top: 0;
}

.carte {
  background: #fff;
  border: 1px solid var(--trait);
  border-radius: var(--r-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--ombre-1);
}

.carte h3 {
  margin: 0;
}

.carte p {
  margin: 0;
  color: var(--encre-douce);
  font-size: 0.95rem;
}

.carte--plat {
  box-shadow: none;
}

.carte--lien {
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.carte--lien:hover {
  transform: translateY(-3px);
  box-shadow: var(--ombre-2);
  border-color: var(--vert-500);
  color: inherit;
}

.carte__icone {
  width: 46px;
  height: 46px;
  border-radius: var(--r-sm);
  background: var(--vert-050);
  color: var(--vert-700);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.carte__icone .icon {
  width: 1.5em;
  height: 1.5em;
}

.carte__pied {
  margin-top: auto;
  padding-top: 6px;
}

.carte__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-size: 0.82rem;
  color: var(--encre-pale);
  font-weight: 600;
}

.carte__meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.etiquettes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.etiquettes li {
  margin: 0;
}

.etiquettes span,
.etiquette {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--vert-050);
  color: var(--vert-700);
  font-size: 0.84rem;
  font-weight: 600;
  border: 1px solid #cfe2d8;
}

.media-cadre {
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--ombre-2);
  border: 1px solid var(--trait);
  background: #fff;
}

.media-cadre img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
}

.media-cadre figcaption {
  padding: 12px 16px;
  font-size: 0.82rem;
  color: var(--encre-pale);
  border-top: 1px solid var(--trait);
}

.liste-verifications {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.liste-verifications li {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  margin: 0;
  font-size: 0.96rem;
  color: var(--encre-douce);
}

.liste-verifications .icon {
  color: var(--vert-600);
  margin-top: 4px;
}

.section--sombre .liste-verifications li {
  color: rgba(255, 255, 255, 0.84);
}

.section--sombre .liste-verifications .icon {
  color: #7fd3ad;
}

.liste-fiches {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--trait);
}

.liste-fiches li {
  margin: 0;
  border-bottom: 1px solid var(--trait);
}

.liste-fiches a,
.liste-fiches > li > div {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 4px;
  text-decoration: none;
  color: inherit;
}

.liste-fiches a:hover {
  color: var(--orange-700);
}

.liste-fiches .icon {
  color: var(--vert-600);
}

.liste-fiches__meta {
  margin-left: auto;
  font-size: 0.84rem;
  color: var(--encre-pale);
  font-weight: 600;
  white-space: nowrap;
}

.liste-actualites {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--trait);
}

.champ-recherche {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--trait-fort);
  border-radius: var(--r-sm);
  background: #fff;
  font: inherit;
  font-size: 0.96rem;
  color: var(--encre);
}

.champ-recherche:focus {
  border-color: var(--vert-600);
  outline: 3px solid rgba(31, 138, 102, 0.18);
  outline-offset: 0;
}

article.actualite {
  cursor: default;
}

.actualite {
  display: grid;
  grid-template-columns: 132px 1fr auto;
  gap: 22px;
  align-items: start;
  padding: 22px 4px;
  border-bottom: 1px solid var(--trait);
  text-decoration: none;
  color: inherit;
  transition: background-color 0.16s ease;
}

.actualite:hover {
  background: var(--vert-025);
  color: inherit;
}

.actualite__date {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--encre-pale);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.actualite__categorie {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--orange-700);
  margin-bottom: 7px;
}

.actualite h3 {
  margin: 0 0 6px;
  font-size: 1.16rem;
}

.actualite p {
  margin: 0;
  color: var(--encre-douce);
  font-size: 0.94rem;
}

.actualite__fleche {
  color: var(--vert-600);
  align-self: center;
}

.stat-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--trait);
  border: 1px solid var(--trait);
  border-radius: var(--r-md);
  overflow: hidden;
}

.stat-band.stat-band--colonne {
  grid-template-columns: 1fr;
}

.stat {
  background: #fff;
  padding: 24px 22px;
}

.stat dt {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.35rem);
  font-weight: 700;
  color: var(--vert-700);
  line-height: 1.05;
}

.stat dd {
  margin: 6px 0 0;
  font-size: 0.9rem;
  color: var(--encre-douce);
}

.section--sombre .stat {
  background: rgba(255, 255, 255, 0.05);
}

.section--sombre .stat dt {
  color: #fff;
}

.section--sombre .stat dd {
  color: rgba(255, 255, 255, 0.74);
}

.encadre {
  border-radius: var(--r-md);
  padding: 22px 24px;
  border: 1px solid #cfe2d8;
  background: var(--vert-050);
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.encadre .icon {
  color: var(--vert-700);
  width: 1.4em;
  height: 1.4em;
  margin-top: 3px;
}

.encadre h3,
.encadre h4 {
  margin: 0 0 6px;
}

.encadre p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--encre-douce);
}

.encadre--attention {
  background: var(--orange-050);
  border-color: #f0d9c3;
}

.encadre--attention .icon {
  color: var(--orange-700);
}

.citation {
  border-left: 3px solid var(--orange-500);
  padding: 4px 0 4px 22px;
  margin: 0 0 22px;
  font-family: var(--serif);
  font-size: clamp(1.1rem, 1.02rem + 0.5vw, 1.38rem);
  line-height: 1.5;
  color: var(--vert-900);
}

.section--sombre .citation {
  color: #fff;
  border-color: #f6b57c;
}

.encadre-signature {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
}

.encadre-signature__pastille {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--vert-800);
  color: #fff;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.encadre-signature strong {
  display: block;
}

.encadre-signature span {
  font-size: 0.88rem;
  color: var(--encre-pale);
}

.tableau-enveloppe {
  overflow-x: auto;
  border: 1px solid var(--trait);
  border-radius: var(--r-md);
  background: #fff;
}

table.tableau {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
  min-width: 620px;
}

table.tableau caption {
  text-align: left;
  padding: 16px 18px 4px;
  font-weight: 700;
  color: var(--vert-900);
}

table.tableau th,
table.tableau td {
  text-align: left;
  padding: 13px 18px;
  border-bottom: 1px solid var(--trait);
  vertical-align: top;
}

table.tableau thead th {
  background: var(--vert-025);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--encre-pale);
  font-weight: 800;
}

table.tableau tbody tr:last-child td {
  border-bottom: 0;
}

table.tableau tbody tr:hover {
  background: var(--vert-025);
}

details.accordeon {
  background: #fff;
  border: 1px solid var(--trait);
  border-radius: var(--r-md);
  margin-bottom: 12px;
  overflow: hidden;
}

details.accordeon[open] {
  border-color: var(--vert-500);
  box-shadow: var(--ombre-1);
}

details.accordeon summary {
  cursor: pointer;
  padding: 17px 20px;
  font-weight: 700;
  color: var(--vert-900);
  display: flex;
  align-items: center;
  gap: 12px;
  list-style: none;
}

details.accordeon summary::-webkit-details-marker {
  display: none;
}

details.accordeon summary::after {
  content: "+";
  margin-left: auto;
  font-family: var(--sans);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--orange-600);
  line-height: 1;
}

details.accordeon[open] summary::after {
  content: "\2212";
}

details.accordeon summary:hover {
  background: var(--vert-025);
}

.accordeon__corps {
  padding: 0 20px 20px;
  color: var(--encre-douce);
  font-size: 0.96rem;
}

.accordeon__corps ul {
  margin-bottom: 0;
}

/* Formulaires ------------------------------------------------------------- */
.formulaire {
  background: #fff;
  border: 1px solid var(--trait);
  border-radius: var(--r-md);
  padding: clamp(22px, 3vw, 32px);
  box-shadow: var(--ombre-1);
}

.champ {
  margin-bottom: 18px;
}

.champ label {
  display: block;
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 7px;
  color: var(--vert-900);
}

.champ .aide {
  display: block;
  font-weight: 500;
  font-size: 0.84rem;
  color: var(--encre-pale);
  margin-bottom: 7px;
}

.champ input[type="text"],
.champ input[type="email"],
.champ input[type="tel"],
.champ select,
.champ textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--trait-fort);
  border-radius: var(--r-sm);
  background: #fff;
  font: inherit;
  font-size: 0.96rem;
  color: var(--encre);
}

.champ textarea {
  min-height: 156px;
  resize: vertical;
}

.champ input:focus,
.champ select:focus,
.champ textarea:focus {
  border-color: var(--vert-600);
  outline: 3px solid rgba(31, 138, 102, 0.18);
  outline-offset: 0;
}

.champ--case {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  font-size: 0.92rem;
  color: var(--encre-douce);
}

.champ--case input {
  margin-top: 4px;
  width: 18px;
  height: 18px;
  accent-color: var(--vert-700);
  flex: 0 0 auto;
}

.champ--case label {
  margin: 0;
  font-weight: 500;
  color: var(--encre-douce);
  font-size: 0.92rem;
}

.champ--deux {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.erreur-champ {
  display: none;
  color: #a1210b;
  font-size: 0.86rem;
  font-weight: 600;
  margin-top: 6px;
}

.champ--erreur input,
.champ--erreur textarea,
.champ--erreur select {
  border-color: #c2410c;
  background: #fff8f4;
}

.champ--erreur .erreur-champ {
  display: block;
}

.message-formulaire {
  margin-top: 18px;
  border-radius: var(--r-sm);
  padding: 15px 17px;
  font-size: 0.94rem;
  display: none;
  border: 1px solid #cfe2d8;
  background: var(--vert-050);
  color: var(--vert-800);
}

.message-formulaire--visible {
  display: block;
}

.message-formulaire--erreur {
  border-color: #f0d9c3;
  background: var(--orange-050);
  color: var(--orange-700);
}

.bloc-coordonnees {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.bloc-coordonnees li {
  display: flex;
  gap: 13px;
  margin: 0;
}

.bloc-coordonnees .icon {
  color: var(--orange-600);
  margin-top: 4px;
  width: 1.25em;
  height: 1.25em;
}

.bloc-coordonnees strong {
  display: block;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--encre-pale);
}

.bloc-coordonnees span {
  font-size: 0.98rem;
}

.carte-google {
  border: 1px solid var(--trait);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--vert-025);
}

.carte-google iframe {
  width: 100%;
  height: 320px;
  border: 0;
  display: block;
  background: var(--vert-050);
}

.carte-google figcaption {
  padding: 11px 16px;
  font-size: 0.82rem;
  color: var(--encre-pale);
  border-top: 1px solid var(--trait);
  background: #fff;
}

.frise {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 2px solid var(--trait-fort);
}

.frise li {
  position: relative;
  padding: 0 0 26px 26px;
  margin: 0;
}

.frise li:last-child {
  padding-bottom: 0;
}

.frise li::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--orange-500);
}

.frise strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.12rem;
}

.frise span {
  font-size: 0.86rem;
  color: var(--encre-pale);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.frise p {
  margin: 6px 0 0;
  font-size: 0.95rem;
  color: var(--encre-douce);
}

/* 5. Sections spécifiques ------------------------------------------------ */
.a-propos-bandeau {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 30px;
  align-items: center;
  padding: 18px 22px;
  border-radius: var(--r-md);
  background: #fff;
  border: 1px solid var(--trait);
  box-shadow: var(--ombre-1);
  margin-bottom: 30px;
}

.a-propos-bandeau dl {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 34px;
}

.a-propos-bandeau div {
  display: flex;
  flex-direction: column;
}

.a-propos-bandeau dt {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--encre-pale);
  font-weight: 800;
}

.a-propos-bandeau dd {
  margin: 0;
  font-weight: 700;
  color: var(--vert-900);
}

.cta-final {
  background: linear-gradient(120deg, var(--vert-800), var(--vert-700));
  color: rgba(255, 255, 255, 0.88);
  border-radius: var(--r-lg);
  padding: clamp(28px, 4vw, 46px);
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}

.cta-final h2 {
  color: #fff;
  margin-bottom: 8px;
}

.cta-final p {
  margin: 0;
  max-width: 56ch;
}

.cta-final__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.cta-final__actions--centrees {
  justify-content: center;
}

.revue {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(24px, 4vw, 52px);
  align-items: center;
}

.revue__visuel {
  border-radius: var(--r-md);
  border: 1px solid var(--trait);
  background: linear-gradient(160deg, #fff, var(--vert-025));
  padding: 30px;
  display: grid;
  gap: 14px;
  box-shadow: var(--ombre-1);
}

.revue__logo {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 1.2rem + 1.3vw, 2.1rem);
  font-weight: 700;
  color: var(--vert-800);
  line-height: 1.1;
}

.revue__logo span {
  display: block;
  font-family: var(--sans);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--orange-700);
  margin-top: 8px;
  font-weight: 800;
}

.retour-haut {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 46px;
  height: 46px;
  border-radius: var(--r-sm);
  background: var(--vert-800);
  color: #fff;
  border: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: var(--ombre-2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 80;
}

.retour-haut--visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.retour-haut:hover {
  background: var(--orange-600);
}

/* 6. Pied de page -------------------------------------------------------- */
.pied {
  background: var(--vert-900);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.94rem;
  padding-top: clamp(44px, 5vw, 66px);
}

.pied a {
  color: rgba(255, 255, 255, 0.86);
  text-decoration: none;
}

.pied a:hover {
  color: #fff;
  text-decoration: underline;
}

.pied__grille {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 1.1fr;
  gap: 34px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.pied h2,
.pied h3 {
  color: #fff;
  font-family: var(--sans);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
  margin-bottom: 16px;
}

.pied__marque {
  display: flex;
  gap: 13px;
  align-items: center;
  margin-bottom: 16px;
}

.pied__marque .marque__embleme {
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: inset 0 0 0 3px var(--vert-800), inset 0 0 0 4px rgba(255, 255, 255, 0.2);
}

.pied__marque strong {
  color: #fff;
  font-family: var(--serif);
  font-size: 1.06rem;
  display: block;
}

.pied__marque span {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.6);
}

.pied ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pied li {
  margin-bottom: 10px;
}

.pied__coordonnees li {
  display: flex;
  gap: 10px;
}

.pied__coordonnees .icon {
  color: #8fd7b6;
  margin-top: 4px;
}

.pied__note {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.66);
}

.pied__bas {
  padding-block: 22px 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.62);
}

.pied__bas ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

/* 7. Pages légales ------------------------------------------------------- */
.prose {
  background: #fff;
  border: 1px solid var(--trait);
  border-radius: var(--r-md);
  padding: clamp(24px, 3.4vw, 44px);
  box-shadow: var(--ombre-1);
}

.prose > * + * {
  margin-top: 1.05em;
}

.prose h2 {
  font-size: clamp(1.25rem, 1.12rem + 0.6vw, 1.55rem);
  margin-top: 1.9em;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--trait);
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  font-size: 1.1rem;
  margin-top: 1.6em;
  font-family: var(--sans);
  font-weight: 800;
}

.prose p,
.prose li {
  color: var(--encre-douce);
}

.prose ul,
.prose ol {
  padding-left: 1.25em;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.prose table th,
.prose table td {
  border: 1px solid var(--trait);
  padding: 10px 13px;
  text-align: left;
  vertical-align: top;
}

.prose table th {
  background: var(--vert-025);
  font-weight: 800;
  color: var(--vert-900);
}

.sommaire-legal {
  border: 1px solid var(--trait);
  border-radius: var(--r-md);
  background: var(--vert-025);
  padding: 20px 22px;
  margin-bottom: 28px;
}

.sommaire-legal h2 {
  margin: 0 0 12px;
  border: 0;
  padding: 0;
  font-size: 1.05rem;
  font-family: var(--sans);
  font-weight: 800;
}

.sommaire-legal ol {
  columns: 2;
  column-gap: 32px;
  margin: 0;
  font-size: 0.92rem;
}

.sommaire-legal li {
  margin-bottom: 6px;
  break-inside: avoid;
}

.meta-legale {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  padding: 14px 20px;
  border-radius: var(--r-md);
  background: #fff;
  border: 1px solid var(--trait);
  margin-bottom: 26px;
  font-size: 0.88rem;
}

.meta-legale div {
  display: flex;
  gap: 8px;
}

.meta-legale dt {
  font-weight: 800;
  color: var(--vert-900);
}

.meta-legale dd {
  margin: 0;
  color: var(--encre-douce);
}

.page-404 {
  text-align: center;
  padding-block: clamp(60px, 10vw, 120px);
}

.page-404 h1 {
  font-size: clamp(3rem, 2rem + 6vw, 5rem);
  margin-bottom: 6px;
}

/* 8. Adaptations responsives -------------------------------------------- */
@media (max-width: 1080px) {
  .pied__grille {
    grid-template-columns: 1.3fr 1fr 1fr;
  }

  .pied__newsletter {
    grid-column: 1 / -1;
  }
}

@media (max-width: 980px) {
  /* L'en-tête reste au-dessus du voile afin que le bouton « Fermer » reste actif. */
  .entete-site {
    z-index: 96;
  }

  /* Le bouton « Menu / Fermer » doit rester au-dessus du panneau latéral. */
  .entete-actions {
    position: relative;
    z-index: 97;
    margin-left: auto;
  }

  /* À l'ouverture du menu, l'en-tête se fixe en haut de l'écran pour que le
     panneau se déploie juste en dessous. */
  body.nav-ouverte .entete-site {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
  }

  .bouton-menu {
    display: inline-flex;
  }

  .entete-actions .bouton {
    display: none;
  }

  .nav-principale {
    position: fixed;
    top: var(--entete-h);
    right: 0;
    bottom: 0;
    left: auto;
    width: min(360px, 88vw);
    background: #fff;
    border-left: 1px solid var(--trait);
    box-shadow: -18px 0 40px rgba(6, 40, 31, 0.18);
    padding: 22px 20px 30px;
    transform: translateX(20px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.24s ease, opacity 0.24s ease, visibility 0.24s ease;
    overflow-y: auto;
    z-index: 95;
  }

  .nav-principale--ouverte {
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav-principale ul {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  .nav-principale a {
    padding: 13px 14px;
    font-size: 1rem;
    justify-content: space-between;
  }

  .masque-nav {
    position: fixed;
    inset: 0;
    background: rgba(6, 40, 31, 0.42);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.26s ease, visibility 0.26s;
    z-index: 94;
  }

  .masque-nav--visible {
    opacity: 1;
    visibility: visible;
  }

  .grille--4,
  .stat-band {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grille--asym,
  .revue {
    grid-template-columns: 1fr;
  }

  .acces-rapide__grille {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .actualite {
    grid-template-columns: 1fr auto;
  }

  .actualite__date {
    grid-column: 1 / -1;
  }
}

@media (max-width: 820px) {
  .barre-institutionnelle__droite {
    display: none;
  }

  .grille--3,
  .grille--2 {
    grid-template-columns: 1fr;
  }

  .heros__chiffres {
    grid-template-columns: 1fr;
  }

  .sommaire-legal ol {
    columns: 1;
  }
}

@media (max-width: 620px) {
  :root {
    --gouttiere: 18px;
  }

  /* Tableaux transformés en fiches empilées pour rester lisibles sur mobile. */
  .tableau-enveloppe {
    overflow-x: visible;
    border: 0;
    background: transparent;
  }

  table.tableau,
  .prose table {
    min-width: 0;
  }

  table.tableau caption {
    padding: 0 0 10px;
  }

  table.tableau thead,
  .prose table thead {
    display: none;
  }

  table.tableau tr,
  .prose table tr {
    display: block;
    background: #fff;
    border: 1px solid var(--trait);
    border-radius: var(--r-sm);
    padding: 12px 15px;
    margin-bottom: 10px;
  }

  table.tableau td,
  .prose table td {
    display: block;
    border: 0;
    padding: 2px 0;
  }

  table.tableau td:first-child,
  .prose table td:first-child {
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--encre-pale);
    padding-bottom: 4px;
  }

  body {
    font-size: 16px;
  }

  .marque__sous-titre {
    display: none;
  }

  .marque__embleme {
    width: 40px;
    height: 40px;
  }

  .marque,
  .marque__texte {
    min-width: 0;
  }

  .marque__titre {
    font-size: 0.98rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .champ--deux {
    grid-template-columns: 1fr;
  }

  .acces-rapide__grille,
  .grille--4,
  .stat-band {
    grid-template-columns: 1fr;
  }

  .pied__grille {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .cta-final {
    border-radius: var(--r-md);
  }

  .heros__actions .bouton {
    width: 100%;
  }

  .bandeau-annonce .conteneur {
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }

  .apparition {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Apparition progressive au défilement (activée par le JavaScript) -------- */
.js .apparition {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.js .apparition--visible {
  opacity: 1;
  transform: none;
}

@media print {
  .barre-institutionnelle,
  .bandeau-annonce,
  .entete-site,
  .pied,
  .retour-haut {
    display: none;
  }

  body {
    background: #fff;
  }
}
