@font-face {
  font-family: "CNDT Sans";
  src: url("assets/URWGothic-Book.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "CNDT Sans";
  src: url("assets/URWGothic-Demi.otf") format("opentype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --green-950: #0d2e20;
  --green-900: #15472f;
  --green-800: #1d5a3b;
  --green-700: #286d48;
  --green-600: #3b8059;
  --green-100: #e3eee7;
  --green-50: #f3f7f4;
  --gold: #c7a65d;
  --ink: #202923;
  --muted: #667069;
  --line: #dce4de;
  --white: #fff;
  --surface: #f7f9f7;
  --container: min(1160px, calc(100% - 44px));
  --shadow: 0 15px 38px rgba(13, 46, 32, 0.09);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "CNDT Sans", "Aptos", "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

.container {
  width: var(--container) !important;
  margin-inline: auto !important;
}

.skip-link {
  position: fixed;
  z-index: 200;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  color: var(--white);
  background: var(--green-950);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: relative;
  z-index: 50;
  background: var(--white);
  box-shadow: 0 1px 0 rgba(13, 46, 32, 0.12);
}

.utility-bar {
  color: rgba(255, 255, 255, 0.88);
  background: var(--green-950);
  font-size: 0.78rem;
}

.utility-inner {
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 1%;
}

.utility-inner p {
  margin: 0;
  letter-spacing: 0.03em;
}

.utility-inner p span {
  margin-left: 15px;
  color: rgba(255, 255, 255, 0.6);
}

.utility-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.utility-links a:hover,
.utility-links a:focus-visible {
  color: var(--gold);
}

.main-nav {
  /* min-height: 94px; */
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 1%;
}

.brand {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.brand img {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  object-fit: contain;
}

.brand-copy {
  max-width: 500px;
  display: flex;
  flex-direction: column;
  text-align: center;
  line-height: 1.2;
}

.brand-copy strong {
  color: var(--green-900);
  font-size: 0.8rem;
  font-weight: 700;
}

.brand-copy small {
  margin-top: 6px;
  color: var(--gold);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.primary-nav a {
  position: relative;
  padding: 30px 10px 30px;
  color: #3b463f;
  font-size: 0.82rem;
  font-weight: 600;
}

.primary-nav > a::after {
  content: "";
  position: absolute;
  right: 10px;
  bottom: 26px;
  left: 10px;
  height: 2px;
  background: var(--green-600);
  transform: scaleX(0);
  transition: transform 180ms ease;
}

.primary-nav a:hover,
.primary-nav a:focus-visible,
.primary-nav a.active {
  color: var(--green-700);
}

.primary-nav a:hover::after,
.primary-nav a:focus-visible::after,
.primary-nav a.active::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  border: 0;
  color: var(--green-900);
  background: transparent;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
}

.menu-toggle-lines {
  width: 24px;
  display: grid;
  gap: 5px;
}

.menu-toggle-lines i {
  width: 100%;
  height: 2px;
  display: block;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

/* Bande principale */
.hero {
  position: relative;
  height: clamp(430px, 54vh, 520px);
  min-height: 500px;
  overflow: hidden;
  background: var(--green-950);
}

.hero-track,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  visibility: hidden;
  transition: opacity 650ms ease, visibility 650ms ease;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
}

.hero-slide > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
}

.hero-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding-bottom: 5px;
  color: var(--white);
}

.eyebrow {
  margin: 0 0 12px;
  color: #edd79e;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero-content h1,
.hero-content h2 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(0.55rem, 2.5vw, 2.2rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.hero-content > p:not(.eyebrow) {
  max-width: 660px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1rem;
}

.button {
  min-height: 44px;
  margin-top: 4px;
  padding: 10px 18px;
  display: inline-flex;
  align-items: center;
  /* justify-content: center; */
  gap: 20px;
  border: 1px solid transparent;
  font-size: 0.82rem;
  font-weight: 700;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.button-light {
  color: var(--green-950);
  background: var(--white);
  margin-top: 30px;
}

.button-light:hover,
.button-light:focus-visible {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.7);
  background: transparent;
}

.hero-controls {
  position: absolute;
  z-index: 4;
  right: 0;
  bottom: 22px;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hero-dots {
  display: flex;
  gap: 9px;
}

.hero-dot {
  width: 32px;
  height: 16px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.hero-dot::before {
  content: "";
  width: 100%;
  height: 2px;
  display: block;
  background: rgba(255, 255, 255, 0.45);
}

.hero-dot.is-active::before {
  height: 3px;
  background: var(--gold);
}

.hero-arrows {
  display: flex;
}

.hero-arrow {
  width: 44px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: var(--white);
  background: rgba(9, 43, 29, 0.32);
  cursor: pointer;
}

.hero-arrow + .hero-arrow {
  border-left: 0;
}

.hero-arrow:hover,
.hero-arrow:focus-visible {
  background: var(--green-700);
}

/* Accueil : contenu principal et colonne droite */
.home-content {
  padding: 30px 0 30px;
  background: var(--surface);
}

.home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  align-items: start;
  gap: 44px;
}

.main-column {
  min-width: 0;
}

.block-heading {
  margin-bottom: 22px;
}

.block-heading p,
.sidebar-heading p,
.page-kicker {
  margin: 0 0 6px;
  color: var(--green-600);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.block-heading h2,
.sidebar-heading h2,
.inner-hero h1,
.page-heading h2 {
  margin: 0;
  color: var(--green-950);
  font-size: clamp(1.65rem, 2.5vw, 2rem);
  font-weight: 600;
  line-height: 1.17;
  letter-spacing: -0.025em;
}

.page-heading h2 {
  background: var(--green-600);
  color: #fff !important;
  padding: 0.5rem 1rem;
  display: inline-block;
}

.secretary-card {
  padding: 22px;
  display: grid;
  grid-template-columns: 205px minmax(0, 1fr);
  gap: 26px;
  background: var(--white);
  border-top: 3px solid var(--green-700);
  box-shadow: 0 8px 28px rgba(13, 46, 32, 0.06);
}

.secretary-card figure {
  margin: 0;
}

.secretary-card figure img {
  width: 100%;
  aspect-ratio: 4 / 4.6;
  object-fit: cover;
  object-position: center 26%;
}

.secretary-card figcaption {
  padding: 11px 12px;
  display: flex;
  flex-direction: column;
  text-align: center;
  color: var(--white);
  background: var(--green-800);
}

.secretary-card figcaption strong {
  font-size: 0.83rem;
  font-weight: 700;
}

.secretary-card figcaption span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.7rem;
}

.secretary-copy {
  position: relative;
  padding: 6px 6px 3px 0;
}

.opening-quote {
  position: absolute;
  top: -5px;
  left: -5px;
  color: var(--green-100);
  font-size: 5rem;
  font-weight: 600;
  line-height: 1;
}

.secretary-copy p {
  position: relative;
  margin: 0 0 13px;
  color: #4f5c54;
  font-size: 0.93rem;
}

.secretary-copy p:first-of-type {
  color: #26342c;
  font-size: 1rem;
  font-weight: 600;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  color: var(--green-700);
  border-bottom: 1px solid rgba(40, 109, 72, 0.28);
  font-size: 0.79rem;
  font-weight: 700;
}

.text-link:hover,
.text-link:focus-visible {
  color: var(--green-950);
  border-color: var(--green-950);
}

.secretariats-block {
  /* margin-top: 55px; */
  padding-top: 25px;
  margin-bottom: 55px;
}

.heading-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.heading-row .text-link {
  margin-bottom: 5px;
  white-space: nowrap;
}

.secretariat-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: var(--white);
}

.secretariat-list a {
  min-height: 112px;
  padding: 19px 18px;
  display: grid;
  grid-template-columns: 32px 1fr auto;
  align-items: start;
  gap: 12px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: color 180ms ease, background-color 180ms ease;
}

/* .secretariat-list a:last-child {
  grid-column: 1 / -1;
} */

.secretariat-list a:hover,
.secretariat-list a:focus-visible {
  color: var(--white);
  background: var(--green-800);
}

.secretariat-list span {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
}

.secretariat-list strong {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.42;
}

.secretariat-list i {
  color: var(--green-600);
  font-size: 0.88rem;
  font-style: normal;
}

.secretariat-list a:hover i,
.secretariat-list a:focus-visible i {
  color: var(--gold);
}

.sidebar {
  display: grid;
  gap: 30px;
}

.news-agenda,
.resource-module {
  background: var(--white);
  box-shadow: 0 8px 28px rgba(13, 46, 32, 0.05);
}

.sidebar-heading {
  padding: 18px 0 14px;
  /* border-bottom: 3px solid var(--green-600); */
  background: var(--green-600);
}


.sidebar-heading h2 {
  font-size: 2rem;
  color: var(--white);
}

.agenda-list a {
  /* min-height: 112px; */
  padding: 10px 6px;
  display: grid;
  grid-template-columns: 62px 1fr;
  align-items: start;
  gap: 15px;
  border-bottom: 1px solid var(--line);
}

.agenda-list a:hover p,
.agenda-list a:focus-visible p {
  color: var(--green-950);
}

.agenda-list time {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  align-items: end;
  color: #303a34;
  line-height: 1;
  text-align: center;
}

.agenda-list time small {
  grid-column: 1 / -1;
  margin-bottom: 5px;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.22em;
}

.agenda-list time strong {
  font-size: 1.95rem;
  font-weight: 600;
}

.agenda-list time span {
  padding-bottom: 2px;
  color: #69726c;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.35;
}

.agenda-list p {
  margin: 1px 0 0;
  color: var(--green-600);
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.37;
  transition: color 180ms ease;
}

.sidebar-more {
  padding: 15px 6px 2px;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  color: var(--green-700);
  font-size: 0.78rem;
  font-weight: 700;
}

.sidebar-more:hover,
.sidebar-more:focus-visible {
  color: var(--green-950);
}

.resource-module h2 {
  margin: 0;
  padding: 18px 20px;
  color: var(--white);
  background: var(--green-600);
  font-size: 1.5rem;
  font-weight: 700;
  /* letter-spacing: 0.045em; */
  text-transform: uppercase;
}

.resource-module nav {
  padding: 25px 20px;
}

.resource-module nav a {
  padding: 15px 4px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: #69726c;
  border-bottom: 1px solid var(--line);
  font-size: 1rem;
}

.resource-module nav a:last-child {
  border-bottom: 0;
}

.resource-module nav a span {
  color: var(--green-600);
  font-size: 1.05rem;
}

.resource-module nav a:hover,
.resource-module nav a:focus-visible {
  color: var(--green-700);
}

/* Pages intérieures */
.inner-hero {
  position: relative;
  min-height: 240px;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--white);
  background: var(--green-950);
}

.inner-hero > img,
.inner-hero::after {
  position: absolute;
  inset: 0;
}

.inner-hero > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
}

.inner-hero::after {
  content: "";
  background: linear-gradient(90deg, rgba(8, 40, 27, 0.94), rgba(8, 40, 27, 0.5));
}

.inner-hero .container {
  position: relative;
  z-index: 1;
}

.inner-hero h1 {
  color: var(--white);
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.inner-hero p:not(.page-kicker) {
  max-width: 650px;
  margin: 11px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.94rem;
}

.inner-section {
  padding: 22px 0 36px;
  /* background: var(--surface); */
}

.page-heading {
  margin-bottom: 34px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
}

.page-heading > p {
  max-width: 450px;
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Actualités */
.archive-toolbar {
  margin-bottom: 28px;
  padding-bottom: 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
}

.archive-toolbar p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.archive-toolbar strong {
  color: var(--green-900);
}

.archive-filter {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.archive-filter button {
  min-height: 36px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  color: var(--green-800);
  background: var(--white);
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
}

.archive-filter button.is-active,
.archive-filter button:hover,
.archive-filter button:focus-visible {
  color: var(--white);
  border-color: var(--green-700);
  background: var(--green-700);
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.archive-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-bottom: 3px solid transparent;
  box-shadow: 0 10px 28px rgba(13, 46, 32, 0.06);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.archive-card:hover {
  transform: translateY(-3px);
  border-bottom-color: var(--green-600);
  box-shadow: var(--shadow);
}

.archive-card.is-hidden {
  display: none;
}

.archive-image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--green-100);
}

.archive-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 350ms ease;
}

.archive-card:hover .archive-image img {
  transform: scale(1.025);
}

.archive-body {
  padding: 21px 22px 23px;
  display: flex;
  flex: 1;
  flex-direction: column;
}

.archive-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: var(--muted);
  font-size: 0.68rem;
  text-transform: uppercase;
}

.archive-meta span {
  color: var(--green-600);
  font-weight: 700;
  letter-spacing: 0.07em;
}

.archive-card h2 {
  margin: 14px 0 10px;
  color: var(--green-950);
  font-size: 1.06rem;
  font-weight: 600;
  line-height: 1.4;
}

.archive-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.archive-card .text-link {
  margin-top: auto;
  padding-top: 18px;
  align-self: flex-start;
}

/* Organigramme */
.org-intro {
  margin-bottom: 38px;
  padding: 22px 25px;
  color: #445048;
  background: var(--white);
  border-left: 4px solid var(--green-600);
  box-shadow: 0 8px 26px rgba(13, 46, 32, 0.05);
  font-size: 0.9rem;
}

.org-intro p {
  margin: 0;
}

.org-chart {
  --connector: #b7c8bc;
  position: relative;
  padding-bottom: 12px;
}

.org-level {
  position: relative;
  display: flex;
  justify-content: center;
}

.org-card {
  position: relative;
  z-index: 2;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 9px 28px rgba(13, 46, 32, 0.06);
}

.org-governance {
  width: min(520px, 100%);
  padding: 20px 24px;
  color: var(--white);
  background: var(--green-950);
  border-bottom: 3px solid var(--gold);
  text-align: center;
  box-shadow: 0 9px 28px rgba(13, 46, 32, 0.09);
}

.org-governance .org-label {
  color: var(--gold);
}

.org-governance h2 {
  margin: 6px 0 2px;
  font-size: 1.05rem;
  font-weight: 700;
}

.org-governance p {
  margin: 0;
  color: rgba(255, 255, 255, 0.67);
  font-size: 0.74rem;
}

.org-card.leader {
  width: min(430px, 100%);
  padding: 18px;
  display: grid;
  grid-template-columns: 118px 1fr;
  align-items: center;
  gap: 18px;
  border-top: 4px solid var(--green-700);
}

.org-card.leader img {
  width: 118px;
  height: 126px;
  object-fit: cover;
  object-position: center 24%;
}

.org-card.leader.secondary {
  width: min(390px, 100%);
  grid-template-columns: 96px 1fr;
  border-top-color: var(--gold);
}

.org-card.leader.secondary img {
  width: 96px;
  height: 108px;
}

.org-label {
  display: block;
  color: var(--green-600);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.org-card h2,
.org-card h3 {
  margin: 5px 0 2px;
  color: var(--green-950);
  font-size: 1.03rem;
  font-weight: 700;
  line-height: 1.3;
}

.org-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
}

.org-connector {
  width: 1px;
  height: 34px;
  margin-inline: auto;
  background: var(--connector);
}

.org-branches {
  position: relative;
  padding-top: 34px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 13px;
}

.org-branches::before {
  content: "";
  position: absolute;
  top: 0;
  right: 10%;
  left: 10%;
  height: 1px;
  background: var(--connector);
}

.org-branches article {
  position: relative;
  min-height: 146px;
  padding: 20px 16px;
  background: var(--white);
  border-top: 3px solid var(--green-600);
  box-shadow: 0 8px 25px rgba(13, 46, 32, 0.05);
}

.org-branches article::before {
  content: "";
  position: absolute;
  top: -37px;
  left: 50%;
  width: 1px;
  height: 34px;
  background: var(--connector);
}

.org-branches span {
  color: var(--gold);
  font-size: 0.7rem;
  font-weight: 700;
}

.org-branches h3 {
  margin: 8px 0 0;
  color: var(--green-950);
  font-size: 0.81rem;
  font-weight: 600;
  line-height: 1.42;
}

.staff-section {
  margin-top: 68px;
}

.staff-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.staff-card {
  padding: 22px 0 0;
  text-align: center;
  background: var(--white);
  border-top: 3px solid var(--green-600);
  box-shadow: 0 8px 22px rgba(13, 46, 32, 0.06);
  transition: transform 180ms ease, box-shadow 180ms ease, border-top-color 180ms ease;
}

.staff-card:hover {
  transform: translateY(-3px);
}

.staff-card img {
  width: 96px;
  height: 96px;
  margin: 0 auto 14px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 22%;
  background: var(--green-50);
}

.staff-info {
  padding: 15px 16px 17px;
}

.staff-info strong {
  display: block;
  color: var(--green-950);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.3;
}

.staff-info span {
  margin-top: 4px;
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
}


/* =========================================================
   Cartes cliquables (membres & projets)
   ========================================================= */

/* Reset des liens : texte hérité, pas de soulignement */
a.staff-card,
a.project-card {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  outline-offset: 3px;
}

/* Focus clavier visible et cohérent avec le site */
a.staff-card:focus-visible,
a.project-card:focus-visible {
  outline: 2px solid var(--green-700);
  outline-offset: 3px;
}

/* Carte membre : survol + focus */
a.staff-card {
  display: block;
  transition: transform 180ms ease, box-shadow 180ms ease, border-top-color 180ms ease;
}
a.staff-card:hover,
a.staff-card:focus-visible {
  transform: translateY(-3px);
  border-top-color: var(--gold);
  box-shadow: var(--shadow);
}

/* Carte projet : survol + focus */
a.project-card {
  display: flex;
  transition: transform 180ms ease, box-shadow 180ms ease, border-top-color 180ms ease;
}
a.project-card:hover,
a.project-card:focus-visible {
  transform: translateY(-3px);
  border-top-color: var(--gold);
  box-shadow: var(--shadow);
}

/* Petit chevron discret en bas à droite du projet (indique le clic) */
a.project-card::after {
  content: "→";
  position: absolute;
  right: 18px;
  bottom: 14px;
  color: var(--green-600);
  font-size: 0.9rem;
  font-weight: 700;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 180ms ease, transform 180ms ease;
}
a.project-card:hover::after,
a.project-card:focus-visible::after {
  opacity: 1;
  transform: translateX(0);
}

/* Publications */
.simple-hero {
  min-height: 220px;
  background:
    linear-gradient(120deg, rgba(13, 46, 32, 0.97), rgba(29, 90, 59, 0.92)),
    var(--green-950);
}

.publication-list {
  background: var(--white);
  border-top: 4px solid var(--green-600);
  box-shadow: 0 10px 30px rgba(13, 46, 32, 0.06);
}

.publication-row {
  min-height: 108px;
  padding: 21px 24px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid var(--line);
}

.publication-row:last-child {
  border-bottom: 0;
}

.publication-number {
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 700;
}

.publication-row h3 {
  margin: 0;
  color: var(--green-950);
  font-size: 1rem;
  font-weight: 700;
}

.publication-row p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.publication-row > a {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  color: var(--green-700);
  font-size: 0.76rem;
  font-weight: 700;
}

.publication-row > a:hover,
.publication-row > a:focus-visible {
  color: var(--green-950);
}

/* Pied de page */
.site-footer {
  padding-top: 54px;
  color: rgba(255, 255, 255, 0.72);
  background: #0b271b;
}

.footer-grid {
  padding-bottom: 46px;
  display: grid;
  grid-template-columns: 1.3fr 1.2fr 0.8fr 1.25fr;
  gap: clamp(30px, 5vw, 64px);
}

.footer-grid > div > div {
  display: flex;
  flex-direction: row;
  gap: 15px;
}

.footer-brand img {
  width: 104px;
  height: 76px;
  object-fit: contain;
  background: var(--white);
}

.footer-brand p {
  max-width: 250px;
  margin: 15px 0 0;
  color: var(--white);
  font-size: 0.92rem;
  font-weight: 600;
}

.footer-grid h2 {
  margin: 0 0 15px;
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-grid address,
.footer-grid p {
  margin: 0 0 10px;
  font-size: 0.81rem;
  font-style: normal;
  line-height: 1.65;
}

.footer-grid > div:not(.footer-brand) > a,
.footer-grid > div:not(.footer-brand) > div > a {
  width: fit-content;
  margin-top: 6px;
  display: block;
  font-size: 0.79rem;
}

.footer-grid > div:not(.footer-brand) > a:hover,
.footer-grid > div:not(.footer-brand) > a:focus-visible,
.footer-grid > div:not(.footer-brand) > div > a:focus-visible  {
  color: var(--white);
}

.footer-external {
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}

.footer-bottom {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.11);
  color: rgba(255, 255, 255, 0.46);
  font-size: 0.71rem;
}

.footer-bottom p {
  margin: 0;
}



@media (max-width: 1060px) {
  .brand-copy {
    max-width: 290px;
  }

  .brand-copy strong {
    font-size: 0.88rem;
  }

  .primary-nav a {
    padding-inline: 7px;
    font-size: 0.74rem;
  }

  .home-grid {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 32px;
  }

  .secretary-card {
    grid-template-columns: 180px 1fr;
    gap: 22px;
  }

  .org-branches {
    grid-template-columns: repeat(3, 1fr);
  }

  .org-branches::before,
  .org-branches article::before {
    display: none;
  }

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

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

@media (max-width: 840px) {
  :root {
    --container: min(100% - 34px, 720px);
  }

  .utility-links a:first-child,
  .utility-links span {
    display: none;
  }

  .brand img {
    width: 25px;
    height: 25px;
  }

  .brand-copy {
    max-width: 355px;
  }

  .menu-toggle {
    display: flex;
  }

  .primary-nav {
    position: fixed;
    z-index: 100;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(350px, 88vw);
    padding: 92px 28px 30px;
    flex-direction: column;
    align-items: stretch;
    color: var(--white);
    background: var(--green-950);
    box-shadow: -18px 0 48px rgba(5, 23, 15, 0.22);
    transform: translateX(105%);
    transition: transform 220ms ease;
  }

  .primary-nav.is-open {
    transform: translateX(0);
  }

  .primary-nav a {
    padding: 10px 4px;
    color: rgba(255, 255, 255, 0.84);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.9rem;
  }

  .primary-nav a::after {
    display: none;
  }

  .primary-nav a.active,
  .primary-nav a:hover,
  .primary-nav a:focus-visible {
    color: var(--gold);
  }

  .menu-open .menu-toggle {
    position: fixed;
    z-index: 110;
    top: 28px;
    right: 20px;
    color: var(--white);
  }

  .menu-open .menu-toggle-lines i:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .menu-open .menu-toggle-lines i:nth-child(2) {
    opacity: 0;
  }

  .menu-open .menu-toggle-lines i:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

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

  .sidebar {
    grid-template-columns: 1.3fr 1fr;
    align-items: start;
  }

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

  .org-branches {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 640px) {
  :root {
    --container: calc(100% - 28px);
  }

  .utility-inner {
    min-height: 29px;
  }

  .utility-inner p span,
  .brand-copy small {
    display: none;
  }

  .brand {
    gap: 9px;
  }

  .brand-copy {
    max-width: 205px;
  }

  .brand-copy strong {
    font-size: 0.74rem;
  }

  .hero {
    height: 500px;
    min-height: 500px;
  }

  .hero-content {
    justify-content: flex-end;
    padding-bottom: 82px;
  }

  .hero-content h1,
  .hero-content h2 {
    font-size: clamp(1.95rem, 10vw, 2.55rem);
  }

  .hero-content > p:not(.eyebrow) {
    margin-top: 14px;
    font-size: 0.9rem;
  }

  .hero-arrows {
    display: none;
  }

  .home-content,
  .inner-section {
    padding: 48px 0 60px;
  }

  .secretary-card {
    padding: 17px;
    grid-template-columns: 132px 1fr;
    gap: 17px;
  }

  .secretary-card figcaption {
    padding: 9px;
  }

  .secretary-card figcaption strong {
    font-size: 0.7rem;
  }

  .secretary-copy p {
    font-size: 0.83rem;
  }

  .secretary-copy p:first-of-type {
    font-size: 0.9rem;
  }

  .opening-quote {
    display: none;
  }

  .secretariat-list {
    grid-template-columns: 1fr;
  }

  .secretariat-list a:last-child {
    grid-column: auto;
  }

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

  .page-heading,
  .archive-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .org-card.leader,
  .org-card.leader.secondary {
    grid-template-columns: 92px 1fr;
  }

  .org-card.leader img,
  .org-card.leader.secondary img {
    width: 92px;
    height: 106px;
  }

  .org-branches {
    grid-template-columns: 1fr;
    padding-top: 10px;
  }

  .staff-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .publication-row {
    padding: 18px;
    grid-template-columns: 28px 1fr;
    gap: 12px;
  }

  .publication-row > a {
    grid-column: 2;
    justify-self: start;
  }

  .staff-info {
    padding: 12px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-bottom {
    padding: 16px 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }
}

@media (max-width: 430px) {
  .menu-toggle > span:last-child {
    display: none;
  }

  .secretary-card {
    grid-template-columns: 1fr;
  }

  .secretary-card figure {
    width: 155px;
  }

  .heading-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

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

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Ajustements institutionnels V3 */
.block-heading h2,
.sidebar-heading h2,
.inner-hero h1,
.page-heading h2 {
  position: relative;
  padding-left: 22px;
}

.block-heading h2::before,
.sidebar-heading h2::before,
.inner-hero h1::before,
.page-heading h2::before {
  content: "";
  position: absolute;
  top: 0.27em;
  left: 4px;
  width: 11px;
  height: 11px;
  background: var(--white);
  box-shadow: 4px 4px 0 var(--green-100);
}

.inner-hero h1::before { background: #58a575; box-shadow: 4px 4px 0 rgba(255, 255, 255, 0.2); }
.secretary-card { align-items: start; }
.secretary-card figure img { height: 164px; aspect-ratio: auto; object-position: center 22%; }

.deputy-grid { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.deputy-card { position: relative; z-index: 2; min-height: 178px; padding: 22px 16px 18px; display: flex; flex-direction: column; align-items: center; text-align: center; background: var(--white); border-top: 3px solid var(--gold); box-shadow: 0 8px 24px rgba(13, 46, 32, 0.06); }
.deputy-card img { width: 76px; height: 76px; margin-bottom: 11px; border: 4px solid var(--green-50); border-radius: 50%; object-fit: cover; object-position: center 20%; box-shadow: 0 0 0 1px var(--line); }
.deputy-card h2 { margin: 4px 0 2px; color: var(--green-950); font-size: 0.9rem; line-height: 1.25; }
.deputy-card p { margin: 0; color: var(--muted); font-size: 0.7rem; }

.org-branches > a { position: relative; min-height: 156px; padding: 20px 16px; background: var(--white); border-top: 3px solid var(--green-600); box-shadow: 0 8px 25px rgba(13, 46, 32, 0.05); transition: transform 180ms ease, background-color 180ms ease; }
.org-branches > a::before { content: ""; position: absolute; top: -37px; left: 50%; width: 1px; height: 34px; background: var(--connector); }
.org-branches i { margin-top: 12px; display: block; color: var(--green-600); font-size: 0.68rem; font-style: normal; font-weight: 700; }
.org-branches > a:hover, .org-branches > a:focus-visible { background: var(--green-50); transform: translateY(-2px); }

.secretariat-details { margin-top: 68px; }
.secretariat-accordion { display: grid; gap: 10px; }
.secretariat-panel { background: var(--white); border: 1px solid var(--line); box-shadow: 0 7px 22px rgba(13, 46, 32, 0.04); }
.secretariat-panel summary { min-height: 70px; padding: 16px 20px; display: grid; grid-template-columns: 38px 1fr 28px; align-items: center; gap: 14px; color: var(--green-950); cursor: pointer; list-style: none; }
.secretariat-panel summary::-webkit-details-marker { display: none; }
.secretariat-panel summary > span { color: var(--gold); font-size: 0.74rem; font-weight: 700; }
.secretariat-panel summary > strong { font-size: 0.9rem; line-height: 1.35; }
.secretariat-panel summary > i { color: var(--green-600); font-size: 1.35rem; font-style: normal; text-align: center; transition: transform 180ms ease; }
.secretariat-panel[open] summary { color: var(--white); background: var(--green-800); }
.secretariat-panel[open] summary > span, .secretariat-panel[open] summary > i { color: #f0d58e; }
.secretariat-panel[open] summary > i { transform: rotate(45deg); }
.secretariat-body { padding: 28px; display: grid; grid-template-columns: minmax(210px, 0.7fr) minmax(0, 1.3fr); align-items: center; gap: 34px; border-top: 1px solid var(--line); }
.mission h3 { margin: 0 0 9px; color: var(--green-900); font-size: 1rem; }
.mission p { margin: 0; color: var(--muted); font-size: 0.86rem; }
.team-tree { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; text-align: center; }
.team-tree > article, .team-members article { min-width: 0; display: flex; flex-direction: column; align-items: center; }
.team-tree img { width: 68px; height: 68px; margin-bottom: 8px; border: 3px solid var(--green-50); border-radius: 50%; object-fit: cover; object-position: center top; box-shadow: 0 0 0 1px var(--line); }
.team-tree strong { color: var(--green-950); font-size: 0.76rem; line-height: 1.25; }
.team-tree span { margin-top: 2px; color: var(--muted); font-size: 0.66rem; }
.team-members { grid-column: 1 / -1; padding-top: 17px; display: flex; justify-content: center; gap: 34px; border-top: 1px solid var(--line); }
.team-members img { width: 54px; height: 54px; }

@media (max-width: 840px) {
  .deputy-grid { gap: 12px; }
  .secretariat-body { grid-template-columns: 1fr; }
  .org-branches > a::before { display: none; }
}

@media (max-width: 640px) {
  .secretary-card figure img { height: 142px; }
  .deputy-grid { grid-template-columns: 1fr; }
  .deputy-card { min-height: 0; flex-direction: row; gap: 14px; text-align: left; }
  .deputy-card img { flex: 0 0 68px; width: 68px; height: 68px; margin: 0; }
  .secretariat-body { padding: 22px 18px; }
}

@media (max-width: 430px) {
  .secretary-card figure { width: 100%; }
  .secretary-card figure img { height: 190px; }
  .team-tree { gap: 12px; }
  .team-members { gap: 18px; }
}


/* Style de la carte contenant l'image */
.partner-card {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 90px;
    padding: 10px;
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.partner-card:hover {
    border-color: #059669;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

/* Ajustement des logos */
.partner-card img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.instituts {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    margin-bottom: 1rem;

    padding-left: 1rem;
    padding-right: 1rem;

    @media (min-width: 640px) {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    @media (min-width: 1024px) {
        padding-left: 0.625rem;
        padding-right: 0.625rem;
    }

    .sub-content {
        color: #000;
    }
}

@media (min-width: 640px) {
    .instituts-section { padding: 0 1.5rem; }
}

@media (min-width: 1024px) {
    .instituts-section { padding: 0 2rem; }
}

/* --- Cartes du carrousel --- */
.instituts-carousel {
    padding: 1.5rem 0.5rem 3.5rem 0.5rem !important;
}

.partner-card {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
    padding: 0.5rem;
    background-color: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
}

.partner-card img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    /* filter: grayscale(80%); */
    opacity: 0.8;
    transition: all 0.3s ease;
}

/* Survol de la carte */
.partner-card:hover {
    border-color: var(--gold);
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(27, 67, 50, 0.1);
}

.partner-card:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* --- Customisation Swiper Navigation & Pagination --- */
.swiper-button-prev,
.swiper-button-next {
    color: var(--forest) !important;
    background: #ffffff;
    width: 40px !important;
    height: 40px !important;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    border: 1px solid var(--line);
    transition: all 0.3s ease;
    top: 40% !important;
}

.swiper-button-prev {
    left: 0.9px !important;
}

.swiper-button-next {
    right: 0.9px !important;
}

.swiper-button-prev::after,
.swiper-button-next::after {
    font-size: 1rem !important;
    font-weight: bold;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
    background-color: var(--forest);
    color: #ffffff !important;
    border-color: var(--forest);
}

.swiper-pagination-bullet {
    background: var(--muted) !important;
    opacity: 0.4;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    background: var(--forest) !important;
    opacity: 1;
    width: 24px !important;
    border-radius: 4px !important;
}

/* Boutons de navigation personnalisés */
.instituts-carousel .swiper-button-next,
.instituts-carousel .swiper-button-prev {
    color: #059669;
    width: 30px;
    height: 30px;
}

.instituts-carousel .swiper-button-next::after,
.instituts-carousel .swiper-button-prev::after {
    font-size: 16px;
    font-weight: bold;
}

.sp-title, .secretariats-title {
  background: var(--green-600);
  color: #fff !important;
  padding: 0.5rem 1rem;
  display: inline-block;
}

/* Grille principale */
.cndt-grid {
  margin: 22px 0;
  display: grid;
  /* Par défaut (Mobile) : 1 colonne */
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: stretch;
  padding: 16px;
  background: var(--white);
  border-top: 3px solid var(--green-700);
  box-shadow: 0px 22px 55px rgba(15, 35, 50, 0.08);
}

/* Tablettes (à partir de 600px) : 2 colonnes */
@media (min-width: 600px) {
  .cndt-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Écrans d'ordinateur (à partir de 1024px) : 4 colonnes */
@media (min-width: 1024px) {
  .cndt-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Carte individuel */
.cndt-card {
  background: #f7fbf8;
  /* border-radius: 28px; */
  padding: 8px 4px;
  text-align: center;
  box-shadow: 0px 22px 55px rgba(15, 35, 50, 0.08);
  border-width: 1px 1px 5px 1px;
  border-style: solid;
  border-color: #e4e7ec #e4e7ec var(--green-600) #e4e7ec;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Effet au survol (optionnel) */
.cndt-card:hover {
  transform: translateY(-5px);
  box-shadow: 0px 28px 60px rgba(15, 35, 50, 0.12);
}

/* Icônes / Images */
.cndt-card-img {
  margin: 0 auto;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: contain;
  padding: 14px;
  border: 6px solid var(--green-600);
  margin-bottom: 2px;
  background: black;
  box-sizing: border-box;
}

/* Titres */
.cndt-card-title {
  margin: 0;
  color: #041c32;
  font-size: 14px;
  font-weight: 900;
}

/* Textes descriptifs */
.cndt-card-text {
  /* margin: 8px 0 0; */
  color: #475467;
  font-size: 12px;
  line-height: 1.1;
}

.missions-block {
  margin: 22px 0;
}




/* =========================================================
   PAGES SECRÉTARIATS — composants additionnels
   ========================================================= */

/* Fil d'Ariane */
.breadcrumb {
  margin-bottom: 26px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 0.76rem;
}
.breadcrumb a { color: var(--green-700); font-weight: 600; }
.breadcrumb a:hover,
.breadcrumb a:focus-visible { color: var(--green-950); }
.breadcrumb span[aria-hidden] { color: #b8c2ba; }
.breadcrumb [aria-current="page"] { color: var(--green-950); font-weight: 600; }

/* Domaines d'intervention (chips) */
.chip-list {
  margin: 0 0 52px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  padding: 7px 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 3px solid var(--green-600);
  color: var(--green-800);
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.3;
}

/* ---------- HERO avec MISSION intégrée ---------- */
.inner-hero--secretariat {
  min-height: 460px;
  padding: 60px 0;
  align-items: flex-start;
}
.inner-hero--secretariat .container {
  padding-top: 10px;
}
.inner-hero--secretariat h1 {
  max-width: 900px;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
}
.inner-hero--secretariat > p:not(.page-kicker) {
  max-width: 720px;
}

.hero-mission {
  position: relative;
  max-width: 780px;
  margin-top: 26px;
  padding: 18px 22px 18px 24px;
  background: rgba(255, 255, 255, 0.08);
  border-left: 4px solid var(--green-700);
  backdrop-filter: blur(2px);
  border-radius: 2px;
}
.hero-mission__label {
  display: block;
  margin-bottom: 6px;
  color: var(--green-700);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.hero-mission p {
  margin: 0;
  color: rgba(255, 255, 255, 0.94);
  font-size: 0.94rem;
  line-height: 1.55;
}

/* ---------- Barre de filtres (membres / projets) ---------- */
.filter-bar {
  margin: 34px 0 22px;
  padding-bottom: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
}
.filter-bar__label {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
}
.filter-bar__label strong {
  color: var(--green-900);
}
.filter-bar__label span[data-count-target] {
  color: var(--green-700);
  font-weight: 700;
}

/* État masqué (commun aux 2 grilles) */
.filter-item.is-hidden {
  display: none;
}

/* Grille projets */
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.project-card {
  position: relative;
  padding: 22px 22px 20px;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-top: 3px solid var(--green-600);
  box-shadow: 0 10px 28px rgba(13, 46, 32, 0.06);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}
.project-card:hover {
  transform: translateY(-3px);
  border-top-color: var(--gold);
  box-shadow: var(--shadow);
}

.project-card .project-status {
  align-self: flex-start;
  margin-bottom: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.project-status.is-ongoing  { color: var(--green-800); background: var(--green-100); }
.project-status.is-done     { color: #7a5a1a;         background: #fbf3dd; }
.project-status.is-planned  { color: #475467;         background: #eef2f6; }

.project-card h3 {
  margin: 0 0 8px;
  color: var(--green-950);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
}
.project-card p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.83rem;
}
.project-meta {
  margin-top: auto;
  padding-top: 14px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.project-meta strong { color: var(--green-800); font-weight: 700; }

/* Responsive */
@media (max-width: 840px) {
  .project-grid { grid-template-columns: repeat(2, 1fr); }
  .filter-bar { flex-direction: column; align-items: flex-start; gap: 12px; }
}
@media (max-width: 640px) {
  .project-grid { grid-template-columns: 1fr; }
  .breadcrumb { font-size: 0.72rem; }
  .inner-hero--secretariat { min-height: auto; padding: 44px 0 40px; }
  .hero-mission { padding: 14px 16px; font-size: 0.88rem; }
}













/* =========================================================
   PAGE PROJET — layout, TOC, contenu, rapports, galerie
   ========================================================= */

/* ---------- HERO projet ---------- */
.inner-hero--project {
  min-height: 380px;
  padding: 55px 0 45px;
  align-items: flex-start;
}
.inner-hero--project h1 {
  max-width: 900px;
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  line-height: 1.18;
}
.inner-hero--project > .container > p:not(.page-kicker) {
  max-width: 720px;
}

/* Métadonnées du projet dans le hero */
.project-hero-meta {
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 30px;
}
.project-hero-meta li {
  min-width: 130px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.project-hero-meta span {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.project-hero-meta strong {
  color: #fff;
  font-size: 0.92rem;
  font-weight: 600;
}
.project-hero-meta .status-ongoing {
  color: #a6f0c0;
}

/* ---------- Layout 2 colonnes ---------- */
.project-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 48px;
  align-items: start;
}

/* ---------- TOC collante ---------- */
.project-toc {
  position: sticky;
  top: 24px;
  padding: 22px 20px;
  background: var(--white);
  border-top: 3px solid var(--green-600);
  box-shadow: 0 8px 24px rgba(13, 46, 32, 0.06);
}
.project-toc__title {
  margin: 0 0 14px;
  color: var(--green-900);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.project-toc__nav ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: toc;
}
.project-toc__nav ol ol {
  margin: 4px 0 10px 14px;
  padding-left: 12px;
  border-left: 1px solid var(--line);
  counter-reset: sub;
}
.project-toc__nav li {
  counter-increment: toc;
}
.project-toc__nav ol ol li {
  counter-increment: sub;
}
.project-toc__nav a {
  display: block;
  padding: 6px 8px 6px 30px;
  position: relative;
  color: #55625a;
  font-size: 0.83rem;
  line-height: 1.35;
  border-radius: 3px;
  transition: color 160ms ease, background-color 160ms ease;
}
.project-toc__nav ol > li > a::before {
  content: counter(toc, decimal-leading-zero);
  position: absolute;
  left: 4px;
  top: 7px;
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 700;
}
.project-toc__nav ol ol a {
  padding-left: 22px;
  font-size: 0.76rem;
  color: var(--muted);
}
.project-toc__nav ol ol a::before {
  content: counter(sub, decimal-leading-zero);
  position: absolute;
  left: 4px;
  top: 7px;
  color: #b8c2ba;
  font-size: 0.62rem;
  font-weight: 700;
}
.project-toc__nav a:hover,
.project-toc__nav a:focus-visible {
  color: var(--green-900);
  background: var(--green-50);
}
.project-toc__nav a.is-active {
  color: var(--green-900);
  font-weight: 700;
  background: var(--green-100);
}
.project-toc__nav a.is-active::before {
  color: var(--green-700);
}
.project-toc__foot {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

/* ---------- Contenu projet ---------- */
.project-content {
  min-width: 0;
}
.project-section {
  margin-bottom: 54px;
  scroll-margin-top: 90px; /* évite que le titre soit collé au top lors de l'ancre */
}
.project-section > h2 {
  margin: 0 0 18px;
  padding-bottom: 10px;
  color: var(--green-950);
  font-size: 1.5rem;
  font-weight: 600;
  border-bottom: 2px solid var(--green-100);
}
.project-section > h3 {
  margin: 28px 0 10px;
  color: var(--green-800);
  font-size: 1.05rem;
  font-weight: 700;
}
.project-section > p {
  margin: 0 0 14px;
  color: #4f5c54;
  font-size: 0.94rem;
  line-height: 1.65;
}
.project-section .lead {
  color: #26342c;
  font-size: 1.02rem;
}

/* Listes */
.project-list {
  margin: 12px 0 0;
  padding-left: 20px;
  color: #4f5c54;
  font-size: 0.92rem;
}
.project-list li {
  margin-bottom: 8px;
  line-height: 1.55;
}
.project-list--numbered {
  list-style: decimal;
}

/* Timeline (phases) */
.project-timeline {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  position: relative;
}
.project-timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--green-100);
}
.project-timeline li {
  position: relative;
  padding: 0 0 24px 34px;
}
.project-timeline li:last-child {
  padding-bottom: 0;
}
.project-timeline .phase-dot {
  position: absolute;
  left: 0;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--green-600);
}
.project-timeline strong {
  display: block;
  color: var(--green-950);
  font-size: 0.95rem;
}
.project-timeline em {
  display: block;
  margin: 2px 0 6px;
  color: var(--gold);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.project-timeline p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

/* Livrables */
.deliverables-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 8px;
}
.deliverable {
  padding: 18px 18px 16px;
  background: var(--white);
  border-left: 3px solid var(--green-600);
  box-shadow: 0 6px 18px rgba(13, 46, 32, 0.05);
}
.deliverable__num {
  display: block;
  margin-bottom: 6px;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 700;
}
.deliverable strong {
  display: block;
  margin-bottom: 4px;
  color: var(--green-950);
  font-size: 0.95rem;
}
.deliverable p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

/* Galerie */
.project-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 8px;
}
.project-gallery figure {
  margin: 0;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 6px 20px rgba(13, 46, 32, 0.06);
}
.project-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 300ms ease;
}
.project-gallery figure:hover img {
  transform: scale(1.03);
}
.project-gallery figcaption {
  padding: 11px 14px;
  color: var(--muted);
  font-size: 0.76rem;
  border-top: 1px solid var(--line);
}

/* Illustrations inline d'article */
.project-figure {
  margin: 22px 0;
  background: var(--white);
  box-shadow: 0 6px 20px rgba(13, 46, 32, 0.06);
}
.project-figure img {
  width: 100%;
  display: block;
  object-fit: cover;
}
.project-figure figcaption {
  padding: 11px 14px;
  color: var(--muted);
  font-size: 0.76rem;
  border-top: 1px solid var(--line);
}

/* Badge auteur d'article */
.author-badge {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
  padding: 10px 20px 10px 10px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 6px 20px rgba(13, 46, 32, 0.06);
  text-decoration: none;
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.author-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(13, 46, 32, 0.12);
}
.author-badge img {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
}
.author-badge__body {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}
.author-badge__label {
  color: var(--muted);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.author-badge strong {
  color: var(--green-900);
  font-size: 0.95rem;
}
.author-badge__role {
  color: var(--muted);
  font-size: 0.78rem;
}

/* Rapports */
.report-list {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.report-item {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 18px 4px;
  border-bottom: 1px solid var(--line);
}
.report-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 4px;
  background: var(--green-100);
  color: var(--green-800);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}
.report-icon.is-doc { background: #e3ecfb; color: #28508f; }
.report-icon.is-img { background: #fbf3dd; color: #7a5a1a; }

.report-body strong {
  display: block;
  color: var(--green-950);
  font-size: 0.95rem;
  line-height: 1.3;
}
.report-body p {
  margin: 3px 0 5px;
  color: var(--muted);
  font-size: 0.82rem;
}
.report-meta {
  color: #8a928c;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.report-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--green-700);
  color: var(--green-800);
  font-size: 0.74rem;
  font-weight: 700;
  white-space: nowrap;
  transition: background-color 160ms ease, color 160ms ease;
}
.report-link:hover,
.report-link:focus-visible {
  color: var(--white);
  background: var(--green-700);
}

/* Partenaires (chips) */
.partner-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}
.partner-chip {
  padding: 7px 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  color: var(--green-800);
  font-size: 0.78rem;
  font-weight: 600;
}

/* Lien retour bas de page */
.project-back {
  margin-top: 60px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

/* ---------- Responsive ---------- */
@media (max-width: 1060px) {
  .project-layout {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 34px;
  }
}

@media (max-width: 840px) {
  .project-layout {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .project-toc {
    position: static;
  }
  .deliverables-grid,
  .project-gallery {
    grid-template-columns: 1fr;
  }
  .report-item {
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 14px;
  }
  .report-link {
    grid-column: 2;
    justify-self: start;
  }
}

@media (max-width: 640px) {
  .inner-hero--project { min-height: auto; padding: 40px 0 36px; }
  .project-hero-meta { gap: 12px 20px; }
  .project-hero-meta li { min-width: 100px; }
  .project-section { margin-bottom: 40px; }
  .project-section > h2 { font-size: 1.28rem; }
}












/* =========================================================
   PAGE PERSONNEL — liste hiérarchique + recherche
   ========================================================= */

/* ---------- Accessibilité : masqué visuellement ---------- */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Barre de recherche ---------- */
.staff-search {
  margin: 8px 0 34px;
  padding: 18px 20px;
  background: var(--white);
  border-top: 3px solid var(--green-600);
  box-shadow: 0 8px 24px rgba(13, 46, 32, 0.06);
}

.staff-search__label {
  position: relative;
  display: flex;
  align-items: center;
}

.staff-search__icon {
  position: absolute;
  left: 16px;
  width: 20px;
  height: 20px;
  fill: var(--green-700);
  pointer-events: none;
}

.staff-search input[type="search"] {
  width: 100%;
  min-height: 52px;
  padding: 12px 120px 12px 50px;
  color: var(--ink);
  background: var(--green-50);
  border: 1px solid var(--line);
  border-radius: 4px;
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}
.staff-search input[type="search"]::placeholder {
  color: #8a928c;
}
.staff-search input[type="search"]:focus {
  outline: none;
  background: #fff;
  border-color: var(--green-600);
  box-shadow: 0 0 0 3px rgba(40, 109, 72, 0.12);
}
/* Croix native du champ search (Chrome/Edge) */
.staff-search input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none;
}

.staff-search__meta {
  margin: 12px 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: var(--muted);
  font-size: 0.78rem;
}
.staff-search__meta [data-staff-count] {
  color: var(--green-800);
  font-weight: 700;
}

.staff-search__reset {
  padding: 5px 12px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--green-800);
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}
.staff-search__reset:hover,
.staff-search__reset:focus-visible {
  color: var(--white);
  background: var(--green-700);
  border-color: var(--green-700);
}
.staff-search__reset--lg {
  padding: 10px 18px;
  font-size: 0.8rem;
}

/* ---------- Liste hiérarchique ---------- */
.staff-hierarchy { margin-top: 8px; }

.staff-level {
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}
.staff-level:first-child { padding-top: 6px; }
.staff-level:last-child { border-bottom: 0; padding-bottom: 0; }

/* Niveau masqué par la recherche (aucun résultat dedans) */
.staff-level.is-hidden { display: none; }

.staff-level__head {
  margin-bottom: 20px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.staff-level__title {
  margin: 0;
  padding-left: 16px;
  position: relative;
  color: var(--green-950);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.staff-level__title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 8px;
  height: 8px;
  background: var(--green-600);
  box-shadow: 3px 3px 0 var(--green-100);
}
.staff-level__count {
  padding: 3px 10px;
  color: var(--green-800);
  background: var(--green-100);
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ---------- Grille ---------- */
.staff-level__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
}

/* ---------- Carte personne (lien cliquable) ---------- */
.staff-person {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px 12px 12px;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  background: var(--white);
  border-left: 3px solid var(--green-600);
  box-shadow: 0 4px 14px rgba(13, 46, 32, 0.05);
  transition: transform 160ms ease, box-shadow 160ms ease, border-left-color 160ms ease;
}
.staff-person:hover,
.staff-person:focus-visible {
  transform: translateX(3px);
  border-left-color: var(--gold);
  box-shadow: 0 6px 18px rgba(13, 46, 32, 0.09);
}
.staff-person:focus-visible {
  outline: 2px solid var(--green-700);
  outline-offset: 3px;
}

/* Avatar rond */
.staff-person img {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 22%;
  background: var(--green-50);
  border: 2px solid var(--green-600);
  box-shadow: 0 0 0 3px var(--green-50);
  transition: border-color 160ms ease;
}
.staff-person:hover img,
.staff-person:focus-visible img {
  border-color: var(--gold);
}

/* Textes */
.staff-person__info { min-width: 0; line-height: 1.3; }
.staff-person__info strong {
  display: block;
  color: var(--green-950);
  font-size: 0.88rem;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
}
.staff-person__info span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.35;
}

/* Petit chevron discret */
.staff-person::after {
  content: "→";
  margin-left: auto;
  color: var(--green-600);
  font-size: 0.9rem;
  font-weight: 700;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 160ms ease, transform 160ms ease;
}
.staff-person:hover::after,
.staff-person:focus-visible::after {
  opacity: 1;
  transform: translateX(0);
}

/* ---------- État vide ---------- */
.staff-empty {
  margin-top: 30px;
  padding: 40px 24px;
  text-align: center;
  background: var(--white);
  border: 1px dashed var(--line);
  box-shadow: 0 4px 14px rgba(13, 46, 32, 0.04);
}
.staff-empty p { margin: 0 0 8px; color: var(--muted); font-size: 0.9rem; }
.staff-empty p:first-child { color: var(--green-950); font-size: 1.05rem; }
.staff-empty button { margin-top: 12px; }

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .staff-search { padding: 14px 14px; }
  .staff-search input[type="search"] {
    min-height: 46px;
    padding: 10px 90px 10px 44px;
    font-size: 0.9rem;
  }
  .staff-search__icon { left: 13px; width: 18px; height: 18px; }
  .staff-search__meta { flex-direction: column; align-items: flex-start; gap: 8px; }

  .staff-level { padding: 22px 0; }
  .staff-level__title { font-size: 1rem; }
  .staff-level__grid { grid-template-columns: 1fr; }
  .staff-person { padding: 10px 14px 10px 10px; }
  .staff-person img { width: 46px; height: 46px; }
  .staff-person__info strong { font-size: 0.82rem; }
  .staff-person__info span { font-size: 0.68rem; }
}






/* =========================================================
   PAGE PROFIL INDIVIDUEL
   ========================================================= */

/* ---------- HERO du profil ---------- */
.profile-hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: var(--green-950);
  padding: 34px 0 46px;
}

.profile-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  opacity: 0.22;
}

.profile-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(8, 40, 27, 0.96), rgba(8, 40, 27, 0.62));
  pointer-events: none;
}

.profile-hero__inner {
  position: relative;
  z-index: 1;
}

.profile-hero .breadcrumb {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 26px;
}
.profile-hero .breadcrumb a {
  color: rgba(255, 255, 255, 0.88);
}
.profile-hero .breadcrumb a:hover,
.profile-hero .breadcrumb a:focus-visible {
  color: var(--gold);
}
.profile-hero .breadcrumb [aria-current="page"] {
  color: #fff;
}
.profile-hero .breadcrumb span[aria-hidden] {
  color: rgba(255, 255, 255, 0.4);
}

/* Corps du hero */
.profile-hero__body {
  display: grid;
  grid-template-columns: 400px minmax(0, 1fr);
  gap: 32px;
  align-items: center;
}

/* Photo */
.profile-hero__photo {
  margin: 0;
  position: relative;
}
.profile-hero__photo img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center 22%;
  border-radius: 4px;
  border: 3px solid var(--gold);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

/* Info */
.profile-hero__kicker {
  margin: 0 0 6px;
  color: var(--gold);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.profile-hero__info h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.6rem, 3.2vw, 2.3rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.profile-hero__role {
  margin: 6px 0 18px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1rem;
}

/* Métadonnées */
.profile-hero__meta {
  margin: 0 0 22px;
  padding: 16px 0 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 34px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}
.profile-hero__meta li {
  min-width: 120px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.profile-hero__meta span {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.profile-hero__meta strong {
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
}

/* Actions */
.profile-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.profile-hero__actions .button {
  margin-top: 0;
}
.button-outline {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: transparent;
}
.button-outline:hover,
.button-outline:focus-visible {
  color: var(--green-950);
  border-color: #fff;
  background: #fff;
}

/* ---------- Layout du contenu (TOC + sections) ---------- */
.profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 48px;
  align-items: start;
}

/* Timeline parcours — réutilise la structure projet */
.profile-timeline {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  position: relative;
}
.profile-timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--green-100);
}
.profile-timeline li {
  position: relative;
  padding: 0 0 22px 34px;
}
.profile-timeline li:last-child { padding-bottom: 0; }

.profile-timeline .phase-dot {
  position: absolute;
  left: 0;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--green-600);
}
.profile-timeline strong {
  display: block;
  color: var(--green-950);
  font-size: 0.95rem;
}
.profile-timeline em {
  display: block;
  margin: 2px 0 6px;
  color: var(--gold);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.profile-timeline p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.55;
}

/* Publications */
.profile-publications {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.profile-publications li {
  padding: 16px 4px;
  border-bottom: 1px solid var(--line);
}
.profile-publications strong {
  display: block;
  color: var(--green-800);
  font-size: 0.82rem;
  font-weight: 700;
}
.profile-publications em {
  display: block;
  margin: 4px 0 4px;
  color: var(--green-950);
  font-size: 0.9rem;
  font-style: italic;
}
.profile-publications span {
  color: var(--muted);
  font-size: 0.78rem;
}

/* Contact */
.profile-contact {
  margin: 12px 0 20px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.profile-contact__item {
  padding: 16px 18px;
  background: var(--white);
  border-left: 3px solid var(--green-600);
  box-shadow: 0 6px 18px rgba(13, 46, 32, 0.05);
}
.profile-contact__item:first-child {
  grid-column: 1 / -1;
  border-left-color: var(--gold);
}
.profile-contact__label {
  display: block;
  margin-bottom: 6px;
  color: var(--gold);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.profile-contact__item strong {
  display: block;
  color: var(--green-950);
  font-size: 0.9rem;
  margin-bottom: 3px;
}
.profile-contact__item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}
.profile-contact__item a {
  color: var(--green-800);
  font-size: 0.88rem;
  font-weight: 600;
}
.profile-contact__item a:hover,
.profile-contact__item a:focus-visible {
  color: var(--green-950);
  text-decoration: underline;
}
.profile-contact__btn {
  color: var(--green-800);
  border-color: var(--green-700);
}
.profile-contact__btn:hover,
.profile-contact__btn:focus-visible {
  color: var(--white);
  background: var(--green-700);
  border-color: var(--green-700);
}

/* ---------- Responsive ---------- */
@media (max-width: 1060px) {
  .profile-layout { grid-template-columns: 220px minmax(0, 1fr); gap: 34px; }
  .profile-hero__body { grid-template-columns: 170px minmax(0, 1fr); gap: 26px; }
}

@media (max-width: 840px) {
  .profile-layout { grid-template-columns: 1fr; gap: 26px; }
  .profile-hero__body { grid-template-columns: 150px minmax(0, 1fr); gap: 22px; }
  .profile-contact { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .profile-hero { padding: 26px 0 34px; }
  .profile-hero__body {
    grid-template-columns: 1fr;
    text-align: left;
    gap: 18px;
  }
  .profile-hero__photo {
    width: 140px;
  }
  .profile-hero__photo img {
    aspect-ratio: 3 / 4;
  }
  .profile-hero__meta { gap: 12px 20px; }
  .profile-hero__meta li { min-width: 100px; }
  .profile-hero__actions { flex-direction: column; align-items: stretch; }
  .profile-hero__actions .button { justify-content: center; }
}

/* =========================================================
   Réseaux sociaux — profil individuel
   ========================================================= */

.profile-socials {
  margin: 22px 0 0;
  padding: 18px 0 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.profile-socials li {
  display: flex;
}

/* Lien pilule */
.profile-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 9px 15px 9px 11px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.profile-socials a:hover,
.profile-socials a:focus-visible {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--green-950);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22);
}

.profile-socials a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

/* Icône */
.profile-socials svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: currentColor;
  transition: transform 200ms ease;
  margin-left: 2px;
}

.profile-socials a:hover svg,
.profile-socials a:focus-visible svg {
  transform: scale(1.08);
}

/* Texte */
.profile-socials span {
  /* line-height: 1; */
  display: block;
  margin-top: 1px;
}

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .profile-socials {
    gap: 8px;
    margin-top: 18px;
    padding-top: 14px;
  }
  .profile-socials a {
    padding: 8px 12px 8px 10px;
    font-size: 0.74rem;
  }
  .profile-socials svg {
    width: 16px;
    height: 16px;
  }
}

@media (max-width: 430px) {
  /* Sur très petits écrans : icône seule, libellé masqué */
  .profile-socials a span {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
  }
  .profile-socials a {
    width: 40px;
    height: 40px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
  }
}


/* =========================================================
   PAGES ORGANISATION
   ========================================================= */

.org-layout {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 44px;
  align-items: start;
}

.org-sidebar {
  position: sticky;
  top: 24px;
  padding: 20px;
  background: var(--white);
  border-top: 3px solid var(--green-600);
  box-shadow: 0 8px 24px rgba(13, 46, 32, 0.06);
}

.org-content { min-width: 0; }

/* Chapitre : cartes des unités */
.org-chapter-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}
.org-chapter-card {
  padding: 18px 20px;
  background: var(--white);
  border-top: 3px solid var(--green-600);
  box-shadow: 0 6px 20px rgba(13, 46, 32, 0.05);
  transition: transform 180ms ease, border-top-color 180ms ease, box-shadow 180ms ease;
}
.org-chapter-card:hover {
  transform: translateY(-3px);
  border-top-color: var(--gold);
  box-shadow: var(--shadow);
}
.org-chapter-card span { color: var(--gold); font-size: 0.7rem; font-weight: 700; }
.org-chapter-card h3 { margin: 6px 0 6px; color: var(--green-950); font-size: 1rem; }
.org-chapter-card p { margin: 0; color: var(--muted); font-size: 0.82rem; }

@media (max-width: 840px) {
  .org-layout { grid-template-columns: 1fr; }
  .org-sidebar { position: static; }
  .org-chapter-grid { grid-template-columns: 1fr; }
}

.ecart {
  margin-top: 60px; 
  margin-bottom: 60px;
}





/* =========================================================
   BARRE DE RECHERCHE DANS LA NAVBAR
   ========================================================= */

/* ---------- Conteneur général (desktop) ---------- */
.nav-search {
  position: relative;
  margin-left: 14px;
  align-self: center;
}

.nav-search__form {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-search__icon {
  position: absolute;
  left: 12px;
  width: 16px;
  height: 16px;
  fill: var(--green-700);
  pointer-events: none;
  transition: fill 160ms ease;
}

.nav-search__input {
  width: 180px;
  height: 36px;
  padding: 0 36px 0 36px;
  color: var(--ink);
  background: var(--green-50);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.78rem;
  transition: width 220ms ease, border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}
.nav-search__input::placeholder {
  color: #8a928c;
}
.nav-search__input:focus {
  outline: none;
  width: 240px;
  background: #fff;
  border-color: var(--green-600);
  box-shadow: 0 0 0 3px rgba(40, 109, 72, 0.14);
}
.nav-search__input::-webkit-search-cancel-button {
  -webkit-appearance: none;
}

/* Bouton effacer */
.nav-search__clear {
  position: absolute;
  right: 8px;
  width: 24px;
  height: 24px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 160ms ease;
}
.nav-search__clear svg {
  width: 12px;
  height: 12px;
  fill: var(--muted);
}
.nav-search__clear:hover,
.nav-search__clear:focus-visible {
  background: var(--green-100);
}

/* ---------- Résultats (dropdown) ---------- */
.nav-search__results {
  position: absolute;
  z-index: 90;
  top: calc(100% + 10px);
  right: 0;
  width: 340px;
  max-height: 420px;
  overflow-y: auto;
  background: #fff;
  border-top: 3px solid var(--green-600);
  box-shadow: 0 16px 40px rgba(13, 46, 32, 0.18);
}

.nav-search__results[hidden] {
  display: none;
}

.nav-search__group {
  padding: 12px 14px 6px;
  color: var(--green-700);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--green-50);
}

.nav-search__item {
  display: block;
  padding: 11px 16px;
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  transition: background-color 140ms ease, padding-left 140ms ease;
}
.nav-search__item:last-child {
  border-bottom: 0;
}
.nav-search__item:hover,
.nav-search__item:focus-visible,
.nav-search__item.is-active {
  background: var(--green-50);
  padding-left: 20px;
  outline: none;
}

.nav-search__item strong {
  display: block;
  color: var(--green-950);
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.3;
}

.nav-search__item span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.nav-search__item mark {
  padding: 0 2px;
  background: #fbf3dd;
  color: var(--green-950);
  font-weight: 700;
}

.nav-search__empty {
  padding: 28px 18px;
  text-align: center;
  color: var(--muted);
  font-size: 0.82rem;
}
.nav-search__empty strong {
  display: block;
  margin-bottom: 4px;
  color: var(--green-950);
  font-size: 0.9rem;
}

.nav-search__hint {
  padding: 10px 16px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #8a928c;
  background: var(--green-50);
  font-size: 0.66rem;
  letter-spacing: 0.04em;
  border-top: 1px solid var(--line);
}
.nav-search__hint kbd {
  padding: 1px 6px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 3px;
  font-family: inherit;
  font-size: 0.62rem;
  font-weight: 700;
}

/* ---------- Responsive ---------- */
@media (max-width: 1060px) {
  .nav-search__input { width: 150px; }
  .nav-search__input:focus { width: 200px; }
}

/* Tablette / mobile : le nav devient un panneau coulissant */
@media (max-width: 860px) {
  .nav-search {
    order: -1;              /* La recherche passe en haut du panneau */
    margin: 0 0 22px;
    width: 100%;
  }

  .nav-search__input {
    width: 100%;
    height: 46px;
    padding: 0 40px 0 40px;
    font-size: 0.9rem;
    color: var(--white);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.22);
  }
  .nav-search__input::placeholder {
    color: rgba(255, 255, 255, 0.5);
  }
  .nav-search__input:focus {
    width: 100%;
    color: var(--white);
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(199, 166, 93, 0.2);
  }
  .nav-search__icon {
    left: 14px;
    fill: rgba(255, 255, 255, 0.7);
  }
  .nav-search__clear svg {
    fill: rgba(255, 255, 255, 0.8);
  }
  .nav-search__clear:hover,
  .nav-search__clear:focus-visible {
    background: rgba(255, 255, 255, 0.15);
  }

  .nav-search__results {
    position: static;
    width: 100%;
    max-height: 300px;
    margin-top: 8px;
    border-top-width: 2px;
  }

  /* On masque les hints clavier sur mobile (pas de raccourci) */
  .nav-search__hint { display: none; }
}

/* Accessibilité : masqué visuellement (si absent du CSS global) */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}


















/* =========================================================
   GRILLE DE TUILES — inspirée du composant DSFR
   (adaptée à la charte CNDT)
   ========================================================= */

/* ---------- Grille ---------- */
.cndt-tiles {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
  margin: 22px 0;
}

/* ---------- Carte (tuile) ---------- */
.cndt-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 260px;
  padding: 0;
  color: inherit;
  text-decoration: none;
  background: var(--white);
  border: 1px solid var(--line);
  border-bottom: 4px solid var(--green-600);
  box-shadow: 0 4px 14px rgba(13, 46, 32, 0.05);
  overflow: hidden;
  transition:
    transform 220ms cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 220ms ease,
    border-bottom-color 220ms ease;
  cursor: pointer;
}

.cndt-tile:hover,
.cndt-tile:focus-visible {
  transform: translateY(-4px);
  border-bottom-color: var(--gold);
  box-shadow: 0 14px 34px rgba(13, 46, 32, 0.14);
  outline: none;
}
.cndt-tile:focus-visible {
  outline: 2px solid var(--green-700);
  outline-offset: 3px;
}

/* ---------- En-tête (pictogramme / image) ---------- */
.cndt-tile__header {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 26px 20px 8px;
  background: transparent;
}

.cndt-tile__pictogram {
  width: 80px;
  height: 80px;
  object-fit: contain;
  transition: transform 260ms cubic-bezier(0.16, 1, 0.3, 1);
}
.cndt-tile:hover .cndt-tile__pictogram,
.cndt-tile:focus-visible .cndt-tile__pictogram {
  transform: scale(1.06);
}

/* ---------- Corps ---------- */
.cndt-tile__body {
  flex: 1;
  padding: 14px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: center;
}

/* Titre */
.cndt-tile__title {
  margin: 0;
  color: var(--green-950);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.005em;
}
.cndt-tile:hover .cndt-tile__title,
.cndt-tile:focus-visible .cndt-tile__title {
  color: #041c32;
}

/* Description */
.cndt-tile__desc {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Appel à l'action */
.cndt-tile__cta {
  margin-top: auto;
  padding-top: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--green-700);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: gap 220ms ease, color 220ms ease;
}
.cndt-tile__cta span {
  display: inline-block;
  transition: transform 220ms ease;
}
.cndt-tile:hover .cndt-tile__cta,
.cndt-tile:focus-visible .cndt-tile__cta {
  color: var(--green-950);
  gap: 12px;
}
.cndt-tile:hover .cndt-tile__cta span,
.cndt-tile:focus-visible .cndt-tile__cta span {
  transform: translateX(3px);
}

/* ---------- Variante sans image (header masqué) ---------- */
.cndt-tile:not(:has(.cndt-tile__header)) .cndt-tile__body,
.cndt-tile__header:empty + .cndt-tile__body {
  padding-top: 28px;
}

/* ---------- Variante avec image de fond ---------- */
.cndt-tile--with-bg .cndt-tile__header {
  height: 150px;
  padding: 0;
  overflow: hidden;
}
.cndt-tile--with-bg .cndt-tile__pictogram {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cndt-tile--with-bg:hover .cndt-tile__pictogram {
  transform: scale(1.04);
}

/* ---------- Responsive ---------- */
@media (max-width: 1060px) {
  .cndt-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
}

@media (max-width: 640px) {
  .cndt-tiles {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .cndt-tile {
    min-height: 0;
  }
  .cndt-tile__pictogram {
    width: 64px;
    height: 64px;
  }
  .cndt-tile__body {
    padding: 12px 18px 18px;
  }
  .cndt-tile__title {
    font-size: 0.95rem;
  }
  .cndt-tile__desc {
    font-size: 0.76rem;
  }
}

/* ---------- Mode sombre (optionnel) ---------- */
@media (prefers-color-scheme: dark) {
  .cndt-tile {
    background: #fff;
    /* border-color: #1f3528; */
  }
  .cndt-tile__title { color: #041c32; }
  .cndt-tile__desc  { color: #475467; }
  .cndt-tile:hover  { border-bottom-color: var(--gold); }
}




/* =========================================================
   PAGE CONTACT
   ========================================================= */

/* ---------- Cartes coordonnées (3 colonnes) ---------- */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 60px;
}

.contact-card {
  padding: 24px 22px 22px;
  background: var(--white);
  border-top: 3px solid var(--green-600);
  box-shadow: 0 8px 22px rgba(13, 46, 32, 0.06);
}

.contact-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--green-100);
}
.contact-card__icon svg {
  width: 22px;
  height: 22px;
  fill: var(--green-700);
}

.contact-card h3 {
  margin: 0 0 8px;
  color: var(--green-950);
  font-size: 0.94rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.contact-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.6;
}
.contact-card p a {
  color: var(--green-800);
  font-weight: 600;
}
.contact-card p a:hover,
.contact-card p a:focus-visible {
  color: var(--green-950);
  text-decoration: underline;
}
.contact-muted {
  color: #8a928c;
  font-size: 0.75rem;
}

/* ---------- Layout formulaire + aside ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr);
  gap: 40px;
  align-items: start;
  margin-bottom: 60px;
}

/* ---------- Formulaire ---------- */
.contact-form-wrapper {
  padding: 32px 30px;
  background: var(--white);
  border-top: 3px solid var(--green-600);
  box-shadow: 0 10px 28px rgba(13, 46, 32, 0.06);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-form__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.contact-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-field__label {
  color: var(--green-900);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.contact-field__label em {
  color: #b93636;
  font-style: normal;
}

.contact-field input,
.contact-field select,
.contact-field textarea {
  width: 100%;
  padding: 11px 13px;
  color: var(--ink);
  background: var(--green-50);
  border: 1px solid var(--line);
  border-radius: 4px;
  font-family: inherit;
  font-size: 0.88rem;
  transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}
.contact-field textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.55;
}
.contact-field input::placeholder,
.contact-field textarea::placeholder {
  color: #8a928c;
}
.contact-field input:focus,
.contact-field select:focus,
.contact-field textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--green-600);
  box-shadow: 0 0 0 3px rgba(40, 109, 72, 0.12);
}

.contact-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.5;
  cursor: pointer;
}
.contact-checkbox input {
  margin-top: 2px;
  accent-color: var(--green-700);
  flex-shrink: 0;
}

.contact-form__foot {
  padding-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
}
.contact-form__note {
  margin: 0;
  color: var(--muted);
  font-size: 0.74rem;
}
.contact-form__note em {
  color: #b93636;
  font-style: normal;
}

.button__contact {
  min-height: 44px;
  margin-top: 4px;
  padding: 10px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  border: 1px solid transparent;
  font-size: 0.82rem;
  font-weight: 700;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
  color: var(--white);
  background: var(--green-700);
  border: 1px solid var(--green-700);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--green-900);
  border-color: var(--green-900);
  cursor: pointer;
}

.contact-form__feedback {
  margin: 0;
  padding: 12px 16px;
  border-radius: 4px;
  font-size: 0.82rem;
  line-height: 1.5;
}
.contact-form__feedback.is-success {
  color: var(--green-900);
  background: var(--green-100);
  border-left: 3px solid var(--green-600);
}
.contact-form__feedback.is-error {
  color: #7a2020;
  background: #fbe6e6;
  border-left: 3px solid #b93636;
}

/* ---------- Aside : réseaux + horaires ---------- */
.contact-aside {
  display: grid;
  gap: 24px;
  position: sticky;
  top: 24px;
}

.contact-social,
.contact-hours {
  padding: 26px 24px;
  background: var(--white);
  border-top: 3px solid var(--green-600);
  box-shadow: 0 8px 22px rgba(13, 46, 32, 0.06);
}

.contact-social h2,
.contact-hours h2 {
  margin: 0 0 10px;
  color: var(--green-950);
  font-size: 1rem;
  font-weight: 700;
}

.contact-social > p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

/* Liens réseaux sociaux */
.social-links {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px 10px 10px;
  color: var(--green-950);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 0.84rem;
  font-weight: 600;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;

  span {
    margin: 3px 0 0 0;
    line-height: 0;
  }
}
.social-link:hover,
.social-link:focus-visible {
  transform: translateX(3px);
  box-shadow: 0 4px 12px rgba(13, 46, 32, 0.10);
  outline: none;
}
.social-link:focus-visible {
  outline: 2px solid var(--green-700);
  outline-offset: 2px;
}

.social-link svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  transition: transform 200ms ease;
}
.social-link:hover svg {
  transform: scale(1.1);
}

/* Couleur de marque de chaque icône */
.social-link--facebook  svg { fill: #1877f2; }
.social-link--linkedin  svg { fill: #0a66c2; }
.social-link--x         svg { fill: #000; }
.social-link--youtube   svg { fill: #ff0000; }
.social-link--instagram svg { fill: #c13584; }

/* Horaires */
.contact-hours ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.contact-hours li {
  padding: 9px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  font-size: 0.82rem;
}
.contact-hours li:last-child {
  border-bottom: 0;
}
.contact-hours li span {
  color: var(--muted);
}
.contact-hours li strong {
  color: var(--green-950);
  font-weight: 700;
}

/* ---------- Carte Google Maps ---------- */
.contact-map {
  margin-top: 20px;
}

.contact-map__embed {
  overflow: hidden;
  border-top: 4px solid var(--green-600);
  box-shadow: 0 10px 28px rgba(13, 46, 32, 0.10);
  background: var(--green-50);
}
.contact-map__embed iframe {
  display: block;
  width: 100%;
  height: 450px;
  border: 0;
  filter: saturate(0.95);
}

.contact-map__foot {
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--white);
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.contact-map__foot p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
}
.contact-map__foot strong {
  color: var(--green-950);
}

.button-outline-dark {
  color: var(--green-800);
  background: transparent;
  border: 1px solid var(--green-700);
}
.button-outline-dark:hover,
.button-outline-dark:focus-visible {
  color: var(--white);
  background: var(--green-700);
  border-color: var(--green-700);
}

/* ---------- Responsive ---------- */
@media (max-width: 1060px) {
  .contact-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .contact-aside {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }
}

@media (max-width: 640px) {
  .contact-cards {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .contact-form-wrapper {
    padding: 22px 18px;
  }
  .contact-form__row {
    grid-template-columns: 1fr;
  }
  .contact-form__foot {
    flex-direction: column-reverse;
    align-items: stretch;
    text-align: center;
  }
  .contact-aside {
    grid-template-columns: 1fr;
  }
  .contact-map__embed iframe {
    height: 320px;
  }
  .contact-map__foot {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  .contact-map__foot .button {
    justify-content: center;
  }
}


/* =========================================================
   MEGA-MENU — panneau déroulant sous la navbar
   ========================================================= */

/* ---------- Trigger (bouton) ---------- */
.primary-nav__trigger {
  position: relative;
  padding: 30px 2px 30px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 0;
  color: #3b463f;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 180ms ease;
}

.primary-nav__trigger::after {
  content: "";
  position: absolute;
  right: 0px;
  bottom: 26px;
  left: -1px;
  height: 2px;
  background: var(--green-600);
  transform: scaleX(0);
  transition: transform 180ms ease;
}
.primary-nav__trigger:hover,
.primary-nav__trigger:focus-visible,
.primary-nav__trigger[aria-expanded="true"],
.primary-nav__trigger.active {
  color: var(--green-700);
  outline: none;
}
.primary-nav__trigger:hover::after,
.primary-nav__trigger:focus-visible::after,
.primary-nav__trigger[aria-expanded="true"]::after,
.primary-nav__trigger.active::after {
  transform: scaleX(1);
}

.primary-nav__chevron {
  width: 12px;
  height: 12px;
  fill: currentColor;
  transition: transform 200ms ease;
}
.primary-nav__trigger[aria-expanded="true"] .primary-nav__chevron {
  transform: rotate(180deg);
}

/* ---------- Panneau mega-menu ---------- */
.mega-menu {
  position: absolute;
  z-index: 60;
  top: 100%;           /* juste sous le header */
  left: 0;
  right: 0;

  color: var(--white);
  background: var(--green-950);
  border-top: 3px solid var(--gold);
  box-shadow: 0 22px 48px rgba(5, 23, 15, 0.32);

  visibility: hidden;
  opacity: 0;
  transform: translateY(-10px);
  transition:
    opacity 220ms ease,
    transform 220ms ease,
    visibility 220ms;
}
.mega-menu.is-open {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.mega-menu__inner {
  padding: 34px 0 28px;
}

/* En-tête */
.mega-menu__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.mega-menu__eyebrow {
  margin: 0;
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.mega-menu__close {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.85);
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}
.mega-menu__close svg {
  margin-bottom: 6px;
  width: 12px;
  height: 12px;
  fill: currentColor;
}
.mega-menu__close:hover,
.mega-menu__close:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--gold);
  color: var(--gold);
  outline: none;
}

/* Grille des colonnes */
.mega-menu__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
}

.mega-menu__col {
  min-width: 0;
}

.mega-menu__title {
  margin: 0 0 16px;
  padding-bottom: 10px;
  color: var(--white);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.mega-menu__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mega-menu__list a {
  position: relative;
  padding: 10px 12px 10px 14px;
  display: block;
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: background-color 160ms ease, border-color 160ms ease, padding-left 160ms ease;
}

.mega-menu__list a:hover,
.mega-menu__list a:focus-visible {
  background: rgba(255, 255, 255, 0.05);
  border-left-color: var(--gold);
  padding-left: 18px;
  outline: none;
}
.mega-menu__list a span {
  display: block;
  color: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.3;
}
.mega-menu__list a small {
  display: block;
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.72rem;
  line-height: 1.4;
}
.mega-menu__list a:hover small,
.mega-menu__list a:focus-visible small {
  color: rgba(255, 255, 255, 0.7);
}

/* Pied */
.mega-menu__foot {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  justify-content: flex-end;
}

.mega-menu__cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-bottom: 1px solid rgba(199, 166, 93, 0.4);
  transition: color 160ms ease, gap 200ms ease, border-color 160ms ease;
}
.mega-menu__cta:hover,
.mega-menu__cta:focus-visible {
  color: #e8cf87;
  gap: 16px;
  border-bottom-color: #e8cf87;
  outline: none;
}

/* =========================================================
   RESPONSIVE — Mobile : transforme le mega-menu en accordéon
   ========================================================= */
@media (max-width: 860px) {

  /* Le trigger devient un lien de menu classique */
  .primary-nav__trigger {
    width: 100%;
    padding: 14px 4px;
    justify-content: space-between;
    color: rgba(255, 255, 255, 0.84);
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }
  .primary-nav__trigger::after {
    display: none;
  }
  .primary-nav__trigger:hover,
  .primary-nav__trigger:focus-visible,
  .primary-nav__trigger[aria-expanded="true"] {
    color: var(--gold);
  }

  /* Le panneau devient un bloc inline dans le menu coulissant */
  .mega-menu {
    position: static;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    visibility: visible;
    opacity: 1;
    transform: none;
    background: rgba(255, 255, 255, 0.03);
    border-top: 0;
    border-left: 2px solid var(--gold);
    box-shadow: none;
    transition: max-height 320ms ease;
  }
  .mega-menu.is-open {
    max-height: 1200px;   /* suffisant pour tout le contenu */
  }

  .mega-menu__inner {
    padding: 18px 14px 22px;
  }

  /* On masque la barre de titre + bouton Fermer */
  .mega-menu__head {
    display: none;
  }

  /* Colonnes empilées */
  .mega-menu__grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .mega-menu__title {
    margin: 0 0 10px;
    padding-bottom: 6px;
    color: var(--gold);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border-bottom-color: rgba(255, 255, 255, 0.1);
  }

  .mega-menu__list a {
    padding: 8px 8px 8px 12px;
  }
  .mega-menu__list a span {
    font-size: 0.86rem;
  }
  .mega-menu__list a small {
    font-size: 0.68rem;
  }
  .mega-menu__list a:hover,
  .mega-menu__list a:focus-visible {
    padding-left: 16px;
  }

  .mega-menu__foot {
    margin-top: 18px;
    padding-top: 14px;
    justify-content: flex-start;
  }
}

/* Très petits écrans */
@media (max-width: 640px) {
  .mega-menu__inner {
    padding: 14px 8px 18px;
  }
  .mega-menu__list a span {
    font-size: 0.82rem;
  }
}




/* =========================================================
   RÉSEAUX SOCIAUX — à droite de la recherche (navbar)
   ========================================================= */

.nav-socials {
  margin: 0 0 0 12px;
  padding: 0;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.nav-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
  width: 32px;
  height: 32px;
  color: #fff;
  border-radius: 50%;
  font-size: 0.85rem;
  text-decoration: none;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease;
}

.nav-social i {
  line-height: 1;
  transition: transform 180ms ease;
}

/* Couleurs de marque */
.nav-social--facebook {
  background: transparent;
}
.nav-social--youtube {
  background: transparent;
}

/* Survol et focus */
.nav-social:hover,
.nav-social:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(13, 46, 32, 0.22);
  outline: none;
}
.nav-social:hover i,
.nav-social:focus-visible i {
  transform: scale(1.08);
}
.nav-social:focus-visible {
  outline: 2px solid var(--green-700);
  outline-offset: 2px;
}

/* ---------- Responsive ---------- */

/* Tablette : icônes légèrement réduites */
@media (max-width: 1060px) {
  .nav-socials {
    margin-left: 8px;
    gap: 5px;
  }
  .nav-social {
    width: 30px;
    height: 30px;
    font-size: 0.78rem;
  }
}

/* Mobile : les icônes passent en haut du panneau coulissant,
   juste sous la barre de recherche */
@media (max-width: 860px) {
  .nav-socials {
    order: -1;                  /* placées avant les liens du menu */
    margin: 0 0 18px;
    padding: 0 0 16px;
    justify-content: center;
    gap: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }
  .nav-social {
    width: 40px;
    height: 40px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.22);
  }
  .nav-social--facebook,
  .nav-social--youtube {
    background: rgba(255, 255, 255, 0.08);
  }
  .nav-social--facebook:hover,
  .nav-social--facebook:focus-visible {
    background: #1877f2;
    border-color: #1877f2;
  }
  .nav-social--youtube:hover,
  .nav-social--youtube:focus-visible {
    background: #ff0000;
    border-color: #ff0000;
  }
}

/* Petit mobile : icônes légèrement réduites */
@media (max-width: 640px) {
  .nav-socials {
    gap: 12px;
    padding-bottom: 14px;
  }
  .nav-social {
    width: 36px;
    height: 36px;
    font-size: 0.92rem;
  }
}


/* =========================================================
   RÉSEAUX SOCIAUX DANS LE FOOTER — version circulaire
   ========================================================= */

.footer-socials {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-socials li {
  display: flex;
}

/* ---------- Bouton circulaire ---------- */
.footer-social {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;                 /* cercle parfait */
  aspect-ratio: 1 / 1;                /* garantit la forme carrée */
  text-decoration: none;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.footer-social i {
  font-size: 1rem;
  line-height: 1;
  transition: transform 200ms ease;
}

/* Le libellé est masqué visuellement (mais reste lisible par les lecteurs d'écran
   grâce au aria-label du <a>) */
.footer-social span {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Survol générique */
.footer-social:hover,
.footer-social:focus-visible {
  color: #fff;
  transform: translateY(-2px);
  outline: none;
}

.footer-social:hover i,
.footer-social:focus-visible i {
  transform: scale(1.15);
}

.footer-social:focus-visible {
  box-shadow: 0 0 0 3px rgba(199, 166, 93, 0.5);
}

/* Couleurs de marque au survol */
.footer-social--facebook:hover,
.footer-social--facebook:focus-visible {
  background: #1877f2;
  border-color: #1877f2;
  box-shadow: 0 6px 14px rgba(24, 119, 242, 0.35);
}
.footer-social--youtube:hover,
.footer-social--youtube:focus-visible {
  background: #ff0000;
  border-color: #ff0000;
  box-shadow: 0 6px 14px rgba(255, 0, 0, 0.35);
}

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .footer-socials {
    gap: 8px;
    margin-top: 14px;
  }
  .footer-social {
    width: 40px;
    height: 40px;
  }
  .footer-social i {
    font-size: 0.92rem;
  }
}

@media (max-width: 430px) {
  .footer-social {
    width: 38px;
    height: 38px;
  }
}





/* =========================================================
   TABLEAU DES MEMBRES DU COMITÉ
   ========================================================= */

.comite-table-wrap {
  margin: 0 0 32px;
  overflow-x: auto;
  background: var(--white);
  border-top: 3px solid var(--green-600);
  box-shadow: 0 8px 24px rgba(13, 46, 32, 0.06);
  border-radius: 2px;
  /* Scrollbar discret sur mobile */
  scrollbar-width: thin;
  scrollbar-color: var(--green-300, #a6c9b3) transparent;
}

/* ---------- Titre du tableau ---------- */
.comite-table__caption {
  padding: 16px 22px;
  text-align: left;
  color: #fff;
  background: var(--green-800);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  caption-side: top;
}

/* ---------- Tableau ---------- */
.comite-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 0.88rem;
  color: var(--ink);
}

/* En-tête des colonnes */
.comite-table thead th {
  padding: 14px 20px;
  text-align: left;
  color: var(--green-900);
  background: var(--green-50);
  border-bottom: 2px solid var(--green-600);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.comite-table__num {
  width: 60px;
  text-align: center !important;
}

/* Lignes du corps */
.comite-table tbody tr {
  border-bottom: 1px solid var(--line);
  transition: background-color 180ms ease;
}
.comite-table tbody tr:last-child {
  border-bottom: 0;
}
.comite-table tbody tr:nth-child(even) {
  background: #fafcfb;
}
.comite-table tbody tr:hover {
  background: var(--green-50);
}

.comite-table tbody td {
  padding: 14px 20px;
  vertical-align: middle;
  line-height: 1.4;
}

/* Colonne N° */
.comite-table tbody td:first-child {
  width: 60px;
  text-align: center;
  color: var(--gold);
  font-weight: 700;
  font-size: 0.82rem;
}

/* Nom */
.comite-table tbody td strong {
  display: block;
  color: var(--green-950);
  font-size: 0.92rem;
  font-weight: 700;
}

/* Colonne Institution */
.comite-table tbody td:last-child {
  color: var(--muted);
  font-size: 0.84rem;
}

/* Étiquette sigle */
.comite-tag {
  display: inline-block;
  min-width: 76px;
  margin-right: 8px;
  padding: 3px 8px;
  color: var(--green-800);
  background: var(--green-100);
  border-radius: 3px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-align: center;
  vertical-align: middle;
}

/* ---------- Variantes ---------- */
.comite-table--invites .comite-table__caption {
  background: var(--gold);
  color: var(--green-950);
}
.comite-table--invites .comite-tag {
  background: #fbf3dd;
  color: #7a5a1a;
}

.comite-table--secretaire .comite-table__caption {
  background: var(--green-950);
}
.comite-table--secretaire .comite-tag {
  background: #e3ecfb;
  color: #28508f;
}

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .comite-table__caption {
    padding: 12px 16px;
    font-size: 0.72rem;
  }
  .comite-table thead th {
    padding: 10px 12px;
    font-size: 0.64rem;
  }
  .comite-table tbody td {
    padding: 11px 12px;
    font-size: 0.82rem;
  }
  .comite-table tbody td strong {
    font-size: 0.86rem;
  }
  .comite-table tbody td:last-child {
    font-size: 0.76rem;
  }
  .comite-tag {
    display: block;
    margin: 0 0 4px;
    min-width: 0;
    width: fit-content;
  }
  .comite-table__num {
    width: 40px;
  }
  .comite-table tbody td:first-child {
    width: 40px;
    font-size: 0.72rem;
  }
}

/* ---------- Variante : tableau compact sans colonne N° ---------- */
.comite-table--compact tbody td:first-child,
.comite-table--compact thead th:first-child {
  display: none;
}

/* =========================================================
   DIPLÔME SUR LES CARTES DU PERSONNEL
   ========================================================= */

.staff-person__degree {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 6px;
  padding: 3px 9px 3px 7px;
  color: var(--green-800);
  background: var(--green-50);
  border-left: 2px solid var(--gold);
  border-radius: 2px;
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.01em;
  transition: background-color 180ms ease, border-left-color 180ms ease;
}

/* Icône diplôme — petite toque stylisée en CSS */
.staff-person__degree::before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%231d5a3b'><path d='M12 3 1 9l11 6 9-4.91V17h2V9L12 3Zm0 13.09L4.5 11.95 12 7.86l7.5 4.09L12 16.09Z'/></svg>");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* Effet au survol : la pastille s'illumine */
.staff-person:hover .staff-person__degree,
.staff-person:focus-visible .staff-person__degree {
  background: #fbf7ea;
  border-left-color: var(--green-700);
}

/* Variante : si vous préférez une icône emoji */
.staff-person__degree--emoji::before {
  content: "🎓";
  background: none;
  width: auto;
  height: auto;
  font-size: 0.75rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .staff-person__degree {
    margin-top: 5px;
    padding: 2px 7px 2px 6px;
    font-size: 0.62rem;
  }
  .staff-person__degree::before {
    width: 10px;
    height: 10px;
  }
}

/* =========================================================
   CARTES DU PERSONNEL — VERSION ÉQUILIBRÉE
   Rééquilibre les proportions quand les textes sont longs
   ========================================================= */

/* Grille : cartes plus larges, hauteur uniforme */
.staff-level__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
}

/* Carte : layout 2 colonnes (avatar | texte) */
.staff-person {
  position: relative;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  align-items: start;
  gap: 14px;
  padding: 16px 44px 16px 16px;  /* espace à droite pour le chevron */
  min-height: 130px;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  background: var(--white);
  border-left: 3px solid var(--green-600);
  box-shadow: 0 4px 14px rgba(13, 46, 32, 0.05);
  transition: transform 160ms ease, box-shadow 160ms ease, border-left-color 160ms ease;
}

.staff-person:hover,
.staff-person:focus-visible {
  transform: translateX(3px);
  border-left-color: var(--gold);
  box-shadow: 0 6px 18px rgba(13, 46, 32, 0.09);
}
.staff-person:focus-visible {
  outline: 2px solid var(--green-700);
  outline-offset: 3px;
}

/* Avatar */
.staff-person img {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 22%;
  background: var(--green-50);
  border: 2px solid var(--green-600);
  box-shadow: 0 0 0 3px var(--green-50);
  transition: border-color 160ms ease;
}
.staff-person:hover img,
.staff-person:focus-visible img {
  border-color: var(--gold);
}

/* Bloc texte */
.staff-person__info {
  min-width: 0;             /* essentiel pour l'ellipsis */
  display: flex;
  flex-direction: column;
  gap: 4px;
  line-height: 1.3;
}

/* Nom — 2 lignes max */
.staff-person__info strong {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--green-950);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.3;
}

/* Fonction — 2 lignes max */
.staff-person__info span {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.4;
}

/* Diplôme — 1 ligne, pastille dorée */
.staff-person__degree {
  display: inline-block;
  align-self: flex-start;
  max-width: 100%;
  margin-top: 4px;
  padding: 2px 8px;
  color: var(--green-800);
  background: var(--green-50);
  border-left: 2px solid var(--gold);
  border-radius: 2px;
  font-size: 0.66rem;
  font-style: normal;
  font-weight: 600;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background-color 180ms ease, border-left-color 180ms ease;
}

.staff-person:hover .staff-person__degree,
.staff-person:focus-visible .staff-person__degree {
  background: #fbf7ea;
  border-left-color: var(--green-700);
}

/* Diplôme vide : ne pas afficher de pastille */
.staff-person__degree:empty {
  display: none;
}

/* Chevron discret à droite */
.staff-person::after {
  content: "→";
  position: absolute;
  right: 14px;
  bottom: 14px;
  color: var(--green-600);
  font-size: 0.9rem;
  font-weight: 700;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 160ms ease, transform 160ms ease;
}
.staff-person:hover::after,
.staff-person:focus-visible::after {
  opacity: 1;
  transform: translateX(0);
}

/* Responsive */
@media (max-width: 640px) {
  .staff-level__grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .staff-person {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 12px;
    padding: 12px 38px 12px 12px;
    min-height: 0;
  }
  .staff-person img {
    width: 48px;
    height: 48px;
  }
  .staff-person__info strong {
    font-size: 0.82rem;
  }
  .staff-person__info span {
    font-size: 0.7rem;
  }
  .staff-person__degree {
    font-size: 0.62rem;
  }
}



/* =========================================================
   MEGA-MENU — Variante MODAL sur mobile
   Le HTML ne change pas : c'est le CSS qui transforme
   le panneau déroulant en fenêtre centrée sur mobile.
   ========================================================= */
@media (max-width: 860px) {

  /* ---------- Conteneur plein écran (backdrop) ---------- */
  .mega-menu {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;

    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;

    background: rgba(13, 46, 32, 0.72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);

    visibility: hidden;
    opacity: 0;
    transform: none !important;
    transition: opacity 220ms ease, visibility 220ms;
  }

  .mega-menu.is-open {
    visibility: visible;
    opacity: 1;
  }

  /* ---------- Panneau centré ---------- */
  .mega-menu__inner {
    position: relative;
    width: 100%;
    max-width: 480px;
    max-height: calc(100vh - 40px);
    display: flex;
    flex-direction: column;
    padding: 0;
    transform: scale(0.96);
    transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1);
  }

  .mega-menu.is-open .mega-menu__inner {
    transform: scale(1);
  }

  .mega-menu__inner > .container {
    width: 100%;
    max-width: 100%;
    overflow-y: auto;
    padding: 0;
    background: var(--white);
    color: var(--green-950);
    border-top: 4px solid var(--gold);
    border-radius: 4px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
  }

  /* ---------- En-tête du modal (titre + bouton Fermer) ---------- */
  .mega-menu__head {
    display: flex !important;
    margin: 0;
    padding: 20px 22px 16px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 2;
  }

  .mega-menu__eyebrow {
    color: var(--green-700) !important;
    font-size: 0.68rem;
    margin: 0;
  }

  .mega-menu__close {
    background: var(--green-50);
    border-color: var(--line);
    color: var(--green-900);
  }

  /* ---------- Grille : 1 colonne empilée ---------- */
  .mega-menu__grid {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
    padding: 16px 20px 20px;
    margin: 0;
  }

  .mega-menu__col + .mega-menu__col {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
  }

  /* ---------- Liens : version fond clair ---------- */
  .mega-menu__list a {
    color: var(--green-950) !important;
    padding: 10px 12px !important;
    border-left: 2px solid transparent;
    border-radius: 3px;
    transition: color 160ms ease, background-color 160ms ease,
                border-left-color 160ms ease, padding-left 160ms ease;
  }

  .mega-menu__list a:hover,
  .mega-menu__list a:focus-visible {
    color: var(--green-700) !important;
    background: var(--green-50) !important;
    border-left-color: var(--gold) !important;
    padding-left: 18px !important;
    outline: none;
  }

  /* ---------- Empêcher le scroll arrière ---------- */
  body.menu-open {
    overflow: hidden;
  }
}



/* =========================================================
   BLOCAGE DU SCROLL — Menu mobile & mega-menu modal
   Technique compatible iOS Safari
   ========================================================= */

/* Quand le menu hamburger est ouvert */
body.menu-open {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  overflow: hidden;
  /* top est mis à jour dynamiquement par JS pour conserver la position */
}

/* Quand le mega-menu modal est ouvert sur mobile */
body.mega-modal-open {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  overflow: hidden;
}

/* =========================================================
   TABLEAU DU COMITÉ — Responsive
   ========================================================= */

/* ---------- Base ---------- */
.comite-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.comite-table__caption {
  text-align: left;
  font-weight: 700;
  font-size: 1rem;
  padding: 12px 16px;
  background: var(--green-900, #15472f);
  color: #fff;
  letter-spacing: 0.03em;
}

.comite-table thead th {
  text-align: left;
  padding: 12px 16px;
  background: var(--green-50, #f3f7f4);
  color: var(--green-900, #15472f);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 2px solid var(--line, #dce4de);
}

.comite-table tbody tr {
  border-bottom: 1px solid var(--line, #dce4de);
  transition: background 160ms ease;
}

.comite-table tbody tr:hover {
  background: var(--green-50, #f3f7f4);
}

.comite-table tbody td {
  padding: 12px 16px;
  vertical-align: top;
  line-height: 1.5;
  color: var(--ink, #202923);
}

.comite-table__num {
  width: 60px;
  text-align: center;
  color: var(--gold, #c7a65d);
  font-weight: 700;
}

/* Petit badge institution */
.comite-tag {
  display: inline-block;
  padding: 2px 8px;
  margin-right: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  background: var(--green-100, #e3eee7);
  color: var(--green-800, #1d5a3b);
  border-radius: 3px;
  letter-spacing: 0.04em;
}

/* =========================================================
   MOBILE — Transformation en cartes empilées
   ========================================================= */
@media (max-width: 700px) {

  .comite-table {
    display: block;
    width: 100%;
  }

  /* On masque l'en-tête desktop */
  .comite-table thead {
    display: none;
  }

  /* Chaque ligne devient une carte */
  .comite-table tbody,
  .comite-table tbody tr,
  .comite-table tbody td {
    display: block;
    width: 100%;
  }

  .comite-table tbody tr {
    position: relative;
    padding: 16px 16px 16px 52px;   /* place pour le numéro à gauche */
    margin-bottom: 12px;
    border: 1px solid var(--line, #dce4de);
    border-left: 4px solid var(--green-600, #3b8059);
    border-radius: 4px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(13, 46, 32, 0.05);
  }

  .comite-table tbody tr:hover {
    background: #fff;
    box-shadow: 0 6px 18px rgba(13, 46, 32, 0.09);
  }

  /* Numéro : pastille en haut à gauche de la carte */
  .comite-table tbody td.comite-table__num,
  .comite-table tbody td:first-child {
    position: absolute;
    top: 16px;
    left: 12px;
    width: auto;
    padding: 0;
    font-size: 0.8rem;
    color: var(--gold, #c7a65d);
    font-weight: 700;
    text-align: left;
  }

  /* Nom (2ᵉ cellule) : affiché en évidence */
  .comite-table tbody td:nth-child(2) {
    padding: 0 0 8px 0;
    font-size: 0.95rem;
    color: var(--green-950, #0d2e20);
  }

  .comite-table tbody td:nth-child(2) strong {
    display: block;
    font-weight: 700;
  }

  /* Institution (3ᵉ cellule) : passe en sous-titre */
  .comite-table tbody td:nth-child(3) {
    padding: 0;
    font-size: 0.82rem;
    color: var(--muted, #667069);
    line-height: 1.45;
  }

  /* Étiquette institution : plus compacte */
  .comite-tag {
    margin-bottom: 4px;
    padding: 2px 6px;
    font-size: 0.68rem;
  }

  /* Décale l'institution sur une nouvelle ligne si nécessaire */
  .comite-table tbody td:nth-child(3) .comite-tag {
    display: inline-block;
    margin-right: 6px;
  }
}

/* =========================================================
   TRÈS PETITS ÉCRANS (< 380 px)
   ========================================================= */
@media (max-width: 380px) {
  .comite-table tbody tr {
    padding: 14px 12px 14px 46px;
  }
  .comite-table tbody td:nth-child(2) {
    font-size: 0.88rem;
  }
  .comite-table tbody td:nth-child(3) {
    font-size: 0.76rem;
  }
}
















/* =========================================================
   CORRECTIF MOBILE — Anti-débordement horizontal
   ========================================================= */

/* ---------- Garde-fou global ---------- */
html,
body {
  overflow-x: hidden;
  max-width: 100%;
}

/* Tous les éléments doivent respecter la largeur du parent */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Empêche les mots longs / URL de déborder */
p,
h1, h2, h3, h4,
li,
a,
td, th {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

/* Les images ne doivent jamais dépasser */
img,
svg,
video,
iframe {
  max-width: 100%;
  height: auto;
}

/* =========================================================
   CORRECTIFS SPÉCIFIQUES — Page Comité
   ========================================================= */

/* ---------- Utility bar & navbar : respecter le container ---------- */
.utility-inner,
.main-nav {
  /* max-width: var(--container);
  width: var(--container);
  margin: 20px auto; */
  /* margin-inline: auto; */
}

/* ---------- Liste à 2 colonnes → 1 colonne sur mobile ---------- */
@media (max-width: 700px) {
  .project-list[style*="columns"] {
    columns: 1 !important;
  }
  .project-list {
    columns: 1 !important;
    padding-left: 18px;
  }
}

/* ---------- Cartes Secrétaire : colonne fixe → flexible ---------- */
@media (max-width: 640px) {
  .secretary-card {
    grid-template-columns: 1fr !important;
    padding: 16px !important;
    gap: 16px !important;
  }
  .secretary-card figure {
    max-width: 180px;
    margin-inline: auto;
  }
  .secretary-card figure img {
    height: auto !important;
    aspect-ratio: 4 / 4.6;
  }
  .secretary-card figcaption {
    text-align: center;
  }
  .secretary-copy {
    padding: 0 !important;
  }
}

/* ---------- Grille principale : 2 col → 1 col ---------- */
@media (max-width: 840px) {
  .home-grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
  .sidebar {
    grid-template-columns: 1fr !important;
  }
}

/* ---------- Tableau : empêche le débordement ---------- */
.comite-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Sur mobile, on retire le min-width : le tableau s'adapte */
@media (max-width: 700px) {
  .comite-table {
    min-width: 0 !important;
  }
}

/* ---------- Section instituts & carrousel ---------- */
.instituts {
  max-width: 100%;
  padding-inline: 1rem;
}

.swiper.instituts-carousel {
  max-width: 100%;
  overflow: hidden;
}

/* ---------- Report list (textes de référence) ---------- */
.report-item {
  grid-template-columns: 46px minmax(0, 1fr) auto;
}
@media (max-width: 640px) {
  .report-item {
    grid-template-columns: 46px minmax(0, 1fr);
  }
  .report-link {
    grid-column: 2;
    justify-self: start;
    margin-top: 8px;
  }
}

/* ---------- Chapter path (fonctionnement) ---------- */
.chapter-path li {
  padding-left: 28px;
}
.chapter-path strong,
.chapter-path em {
  overflow-wrap: break-word;
}

/* ---------- Fix du `.container` pour tous les enfants ---------- */
/* .container {
  max-width: 100%;
} */



/* =========================================================
   PROFIL — Photo agrandie et centrée
   ========================================================= */

/* 1. Le hero passe en disposition verticale centrée */
.profile-hero__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 30px;
}

/* 2. Photo : taille augmentée + centrée */
.profile-hero__photo {
  margin: 0 auto;
  width: min(360px, 80%);
}

.profile-hero__photo img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center 22%;
  border-radius: 6px;
  border: 4px solid var(--gold);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45);
}

/* 3. Bloc texte centré */
.profile-hero__info {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
}

.profile-hero__info h1 {
  text-align: center;
  margin-bottom: 6px;
}

.profile-hero__role {
  text-align: center;
}

/* 4. Métadonnées : centrées horizontalement */
.profile-hero__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px 44px;
  text-align: center;
}

.profile-hero__meta li {
  min-width: 130px;
  align-items: center;
  text-align: center;
}

/* 5. Réseaux sociaux : centrés */
.profile-socials {
  justify-content: center;
}


/* =========================================================
   TABLEAU — Attachés de Recherche (responsive)
   ========================================================= */

/* ---------- Conteneur (scroll horizontal si nécessaire) ---------- */
.staff-recherche-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 18px;
  border-radius: 4px;
  box-shadow: 0 6px 20px rgba(13, 46, 32, 0.06);
}

/* ---------- Tableau ---------- */
.staff-recherche-table {
  width: 100%;
  min-width: 780px;
  border-collapse: collapse;
  background: var(--white);
  font-size: 0.88rem;
}

.staff-recherche-table__caption {
  padding: 14px 18px;
  text-align: left;
  background: var(--green-800);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.staff-recherche-table thead th {
  padding: 12px 16px;
  text-align: left;
  background: var(--green-50);
  color: var(--green-900);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 2px solid var(--green-600);
  white-space: nowrap;
}

.staff-recherche-table__num {
  width: 50px;
  text-align: center !important;
}

.staff-recherche-table tbody tr {
  border-bottom: 1px solid var(--line);
  transition: background-color 160ms ease;
}

.staff-recherche-table tbody tr:nth-child(even) {
  background: #fafcfb;
}

.staff-recherche-table tbody tr:hover {
  background: var(--green-50);
}

.staff-recherche-table tbody td {
  padding: 12px 16px;
  vertical-align: top;
  line-height: 1.5;
  color: var(--ink);
}

.staff-recherche-table tbody td:first-child {
  width: 50px;
  text-align: center;
  color: var(--gold);
  font-weight: 700;
  font-size: 0.82rem;
}

.staff-recherche-table tbody td strong {
  color: var(--green-950);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.35;
}

/* Étiquette du grade */
.staff-tag {
  display: inline-block;
  padding: 3px 9px;
  background: var(--green-100);
  color: var(--green-800);
  border-radius: 3px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

/* =========================================================
   MOBILE — Transformation en cartes empilées (< 700 px)
   ========================================================= */
@media (max-width: 700px) {

  .staff-recherche-wrap {
    overflow-x: visible;
    box-shadow: none;
    background: transparent;
  }

  .staff-recherche-table {
    display: block;
    min-width: 0;
    background: transparent;
  }

  .staff-recherche-table__caption {
    border-radius: 4px 4px 0 0;
    margin-bottom: 10px;
  }

  /* Masquer l'en-tête desktop */
  .staff-recherche-table thead {
    display: none;
  }

  .staff-recherche-table tbody {
    display: block;
  }

  .staff-recherche-table tbody tr {
    display: block;
    position: relative;
    margin-bottom: 12px;
    padding: 14px 16px 14px 52px;
    background: var(--white);
    border: 1px solid var(--line);
    border-left: 4px solid var(--green-600);
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(13, 46, 32, 0.05);
  }

  .staff-recherche-table tbody tr:nth-child(even) {
    background: var(--white);
  }

  .staff-recherche-table tbody tr:hover {
    box-shadow: 0 6px 18px rgba(13, 46, 32, 0.09);
  }

  .staff-recherche-table tbody td {
    display: block;
    padding: 0;
    color: var(--muted);
    font-size: 0.82rem;
  }

  /* Numéro — pastille dorée en haut à gauche */
  .staff-recherche-table tbody td:first-child {
    position: absolute;
    top: 14px;
    left: 14px;
    width: auto;
    padding: 0;
    text-align: left;
    font-size: 0.8rem;
    color: var(--gold);
    font-weight: 700;
  }

  /* Nom — mis en avant */
  .staff-recherche-table tbody td:nth-child(2) {
    margin-bottom: 6px;
  }

  .staff-recherche-table tbody td:nth-child(2) strong {
    font-size: 0.95rem;
    color: var(--green-950);
  }

  /* Grade — petite pastille verte */
  .staff-recherche-table tbody td:nth-child(3) {
    margin-bottom: 6px;
  }

  /* Diplôme */
  .staff-recherche-table tbody td:nth-child(4) {
    padding-top: 6px;
    border-top: 1px solid var(--line);
    font-size: 0.78rem;
    line-height: 1.5;
  }
}

/* ---------- Très petits écrans ---------- */
@media (max-width: 400px) {
  .staff-recherche-table tbody tr {
    padding: 12px 12px 12px 44px;
  }
  .staff-recherche-table tbody td:first-child {
    top: 12px;
    left: 12px;
  }
  .staff-recherche-table tbody td:nth-child(2) strong {
    font-size: 0.88rem;
  }
  .staff-recherche-table tbody td:nth-child(4) {
    font-size: 0.72rem;
  }
}





/* =========================================================
   GALERIE PHOTO — Style "téléphone"
   ========================================================= */

/* ---------- Vue : bascule entre albums et album ---------- */
.gallery-view[hidden] {
  display: none !important;
}

/* =========================================================
   VUE 1 — Grille d'albums
   ========================================================= */
.gallery-albums {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.gallery-album {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-bottom: 3px solid var(--green-600);
  border-radius: 4px;
  cursor: pointer;
  text-align: left;
  transition: transform 220ms ease, box-shadow 220ms ease, border-bottom-color 220ms ease;
  color: inherit;
  font: inherit;
}

.gallery-album:hover,
.gallery-album:focus-visible {
  transform: translateY(-4px);
  border-bottom-color: var(--gold);
  box-shadow: 0 14px 34px rgba(13, 46, 32, 0.14);
  outline: none;
}

.gallery-album__cover {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--green-100);
}
.gallery-album__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms ease;
}
.gallery-album:hover .gallery-album__cover img,
.gallery-album:focus-visible .gallery-album__cover img {
  transform: scale(1.06);
}

.gallery-album__badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 10px;
  background: rgba(13, 46, 32, 0.85);
  color: #fff;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  backdrop-filter: blur(4px);
}

.gallery-album__body {
  padding: 14px 16px 16px;
}

.gallery-album__title {
  margin: 0 0 4px;
  color: var(--green-950);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gallery-album__date {
  margin: 0 0 6px;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* =========================================================
   VUE 2 — Photos d'un album
   ========================================================= */
.gallery-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 8px 10px;
  margin-bottom: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--green-800);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}
.gallery-back:hover,
.gallery-back:focus-visible {
  background: var(--green-700);
  border-color: var(--green-700);
  color: #fff;
  outline: none;
}
.gallery-back svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.gallery-album-head {
  margin-bottom: 26px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--green-100);
}

.gallery-album-title {
  margin: 0 0 6px;
  color: var(--green-950);
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  font-weight: 700;
  line-height: 1.2;
}

.gallery-album-meta {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.82rem;
}
.gallery-album-meta span {
  color: var(--green-700);
  font-weight: 700;
}

.gallery-album-desc {
  margin: 0;
  max-width: 700px;
  color: #4f5c54;
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ---------- Grille de photos ---------- */
.gallery-photos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 8px;
}

.gallery-photo {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--green-50);
  border-radius: 4px;
  cursor: pointer;
  padding: 0;
  border: 0;
  transition: transform 200ms ease;
}

.gallery-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms ease, filter 200ms ease;
}

.gallery-photo:hover img,
.gallery-photo:focus-visible img {
  transform: scale(1.06);
  filter: brightness(0.92);
}

.gallery-photo:focus-visible {
  outline: 3px solid var(--green-600);
  outline-offset: 2px;
}

/* =========================================================
   VISIONNEUSE — Lightbox plein écran
   ========================================================= */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  background: #000;
  color: #fff;
  visibility: hidden;
  opacity: 0;
  transition: opacity 220ms ease, visibility 220ms;
}

.lightbox.is-open {
  visibility: visible;
  opacity: 1;
}

body.lightbox-open {
  overflow: hidden;
}

.lightbox__top {
  flex-shrink: 0;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
}

.lightbox__close {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  color: #fff;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 160ms ease;
}
.lightbox__close svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}
.lightbox__close:hover,
.lightbox__close:focus-visible {
  background: rgba(255, 255, 255, 0.15);
  outline: none;
}

.lightbox__counter {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.85);
}
.lightbox__counter span[data-lb-index] {
  color: #fff;
  font-weight: 700;
}

.lightbox__stage {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.lightbox__figure {
  margin: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.lightbox__figure img {
  max-width: 100%;
  max-height: calc(100vh - 200px);
  object-fit: contain;
  border-radius: 3px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  user-select: none;
}

.lightbox__caption {
  margin: 14px 0 0;
  max-width: 700px;
  text-align: center;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.5;
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 160ms ease, transform 160ms ease;
}
.lightbox__nav:hover,
.lightbox__nav:focus-visible {
  background: rgba(255, 255, 255, 0.28);
  outline: none;
}
.lightbox__nav svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.lightbox__nav--prev { left: 16px; }
.lightbox__nav--next { right: 16px; }

.lightbox__thumbs {
  flex-shrink: 0;
  min-height: 92px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  overflow-x: auto;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}
.lightbox__thumbs::-webkit-scrollbar { height: 6px; }
.lightbox__thumbs::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.25);
  border-radius: 3px;
}

.lightbox__thumb {
  flex-shrink: 0;
  width: 68px;
  height: 68px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 4px;
  overflow: hidden;
  background: #222;
  cursor: pointer;
  transition: border-color 160ms ease, transform 160ms ease, opacity 160ms ease;
  opacity: 0.55;
}
.lightbox__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.lightbox__thumb:hover,
.lightbox__thumb:focus-visible {
  opacity: 1;
  outline: none;
}
.lightbox__thumb.is-current {
  border-color: var(--gold);
  opacity: 1;
  transform: scale(1.05);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 640px) {
  .gallery-albums { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .gallery-album__body { padding: 10px 12px 12px; }
  .gallery-album__title { font-size: 0.82rem; }
  .gallery-album__date { font-size: 0.64rem; }
  .gallery-photos { grid-template-columns: repeat(3, 1fr); gap: 4px; }

  .lightbox__nav { width: 42px; height: 42px; }
  .lightbox__nav svg { width: 20px; height: 20px; }
  .lightbox__nav--prev { left: 8px; }
  .lightbox__nav--next { right: 8px; }

  .lightbox__figure img { max-height: calc(100vh - 220px); }

  .lightbox__thumb { width: 56px; height: 56px; }
  .lightbox__thumbs { min-height: 76px; padding: 10px 12px; justify-content: flex-start; }
}

@media (max-width: 400px) {
  .gallery-albums { grid-template-columns: 1fr; }
  .gallery-photos { grid-template-columns: repeat(2, 1fr); }
}

/* =========================================================
   PAGE ORGANIGRAMME — arbre rendu depuis organisation-data.js
   ========================================================= */
.org-tree {
  margin-top: 34px;
}

.org-tree__root {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 560px;
  margin: 0 auto 34px;
  padding: 22px 28px;
  text-align: center;
  color: var(--white);
  background: var(--green-950);
  border-bottom: 4px solid var(--gold);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.org-tree__root small {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.82rem;
}

.org-tree__root strong {
  font-size: 1.06rem;
  line-height: 1.3;
}

.org-tree__code {
  display: inline-block;
  margin-right: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--green-100);
  color: var(--green-800);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  vertical-align: middle;
}

.org-tree__root .org-tree__code {
  background: var(--gold);
  color: var(--green-950);
}

.org-tree__chapters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
  padding-top: 26px;
  border-top: 2px dashed var(--line);
}

.org-tree__chapter {
  background: var(--green-50);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
}

.org-tree__chapter-head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 14px;
  font-size: 1rem;
  line-height: 1.35;
}

.org-tree__chapter-head strong {
  flex: 1;
}

a.org-tree__chapter-head {
  transition: color 0.2s ease;
}

a.org-tree__chapter-head:hover,
a.org-tree__chapter-head:focus-visible {
  color: var(--green-700);
}

.org-tree__units,
.org-tree__sub {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.org-tree__unit > a,
.org-tree__unit > p {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0;
  padding: 10px 12px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 0.92rem;
  line-height: 1.35;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.org-tree__unit > a:hover,
.org-tree__unit > a:focus-visible {
  border-color: var(--green-600);
  box-shadow: 0 4px 14px rgba(13, 46, 32, 0.08);
}

.org-tree__sub {
  margin-top: 8px;
  padding-left: 16px;
  border-left: 2px solid var(--green-100);
}

.org-tree__sub .org-tree__unit > a,
.org-tree__sub .org-tree__unit > p {
  font-size: 0.86rem;
}

@media (max-width: 640px) {
  .org-tree__chapters {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   CONTENU D'ACTUALITÉ DYNAMIQUE (page article générique)
   Aligné sur la typographie des pages d'articles d'origine
   ========================================================= */
.article-content {
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.6;
}
.article-content p {
  margin: 0 0 12px;
  color: var(--ink);
}
.article-content h2 {
  margin: 26px 0 14px;
  padding-bottom: 8px;
  color: var(--green-950);
  font-size: 1.3rem;
  font-weight: 600;
  border-bottom: 2px solid var(--green-100);
}
.article-content h3 {
  margin: 22px 0 10px;
  color: var(--green-950);
  font-size: 1.08rem;
  font-weight: 600;
}
.article-content h4 {
  margin: 18px 0 8px;
  color: var(--green-950);
  font-size: 1rem;
  font-weight: 600;
}
.article-content ul,
.article-content ol {
  margin: 10px 0 14px;
  padding-left: 20px;
  color: #4f5c54;
  font-size: 0.92rem;
}
.article-content ul { list-style: disc; }
.article-content ol { list-style: decimal; }
.article-content li {
  margin-bottom: 8px;
  line-height: 1.55;
}
.article-content strong { color: var(--green-950); font-weight: 600; }
.article-content em { color: #40514a; }
.article-content a {
  color: var(--green-800, #1f663f);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.article-content blockquote {
  margin: 14px 0;
  padding: 6px 14px;
  border-left: 3px solid var(--green-800, #1f663f);
  color: #4f5c54;
  font-style: italic;
  background: var(--green-100);
}
.article-content img {
  max-width: 100%;
  height: auto;
  margin: 14px 0;
  border-radius: 10px;
  border: 1px solid #e3eee7;
}
.article-content hr {
  border: none;
  border-top: 1px solid var(--green-100);
  margin: 22px 0;
}

/* ============================================================
   Page Techno Mag — grille des magazines (PDF)
   ============================================================ */
.technomag-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 30px;
}

@media (max-width: 1023px) {
  .technomag-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .technomag-grid { grid-template-columns: 1fr; }
}

.technomag-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--green-100);
  border-radius: 12px;
  background: var(--white);
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.technomag-card:hover,
.technomag-card:focus-within {
  transform: translateY(-6px);
  border-color: var(--green-600);
  box-shadow: 0 18px 30px -14px rgba(13, 46, 32, 0.35);
}

/* ---- Couverture ---- */
.technomag-card__cover {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: linear-gradient(160deg, #e6f4ea 0%, #f2faf4 55%, #d4eee5 100%);
}

.technomag-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 260ms ease;
}

.technomag-card:hover .technomag-card__cover img {
  transform: scale(1.05);
}

.technomag-card__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--green-700);
}

.technomag-card__placeholder::before {
  content: 'PDF';
  font-size: 1.6rem;
}

.technomag-card__placeholder span {
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--green-600);
}

/* ---- Badge PDF sur la couverture ---- */
.technomag-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--white);
  background: var(--green-950);
  box-shadow: 0 4px 10px -4px rgba(13, 46, 32, 0.5);
}

/* ---- Corps ---- */
.technomag-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 6px;
  padding: 16px 16px 18px;
  border-top: 3px solid var(--green-100);
}

.technomag-card__date {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-600);
}

.technomag-card__body h3 {
  font-size: 1rem;
  line-height: 1.3;
}

.technomag-card__body p {
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--green-700);
}

/* ---- Actions ---- */
.technomag-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.technomag-card__read {
  flex: 1;
  min-height: 40px;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 8px;
  color: var(--white);
  background: var(--green-950);
}

.technomag-card__read:hover,
.technomag-card__read:focus-visible {
  background: var(--green-700);
}

.technomag-card__download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 14px;
  border: 1.5px solid var(--green-600);
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--green-950);
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.technomag-card__download:hover,
.technomag-card__download:focus-visible {
  color: var(--white);
  border-color: var(--green-950);
  background: var(--green-950);
}

.technomag-card__soon {
  align-self: flex-start;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--green-700);
  background: var(--green-50);
}

/* « Charger plus » (page actualités, fond clair) : inversion verte
   au survol — l'ancien état transparent rendait le texte illisible. */
#actualites-more.button-light:hover,
#actualites-more.button-light:focus-visible {
  color: var(--white);
  border-color: var(--green-950);
  background: var(--green-950);
}

/* Curseur pointer sur tous les éléments cliquables */
a,
button,
.button,
[role='button'],
[role='switch'],
[role='tab'],
summary,
select {
  cursor: pointer;
}

input[type='checkbox'],
input[type='radio'] {
  cursor: pointer;
}
