/* ==========================================================================
   ConstatPIX by SIGEFOR — feuille de style centralisee
   Charte reprise de CartoMAESTRO : ambiance sobre, aeree, ancree terrain.
   Reutilisable pour l'ensemble des pages du site.
   ========================================================================== */

/* --- Jetons de design ----------------------------------------------------- */
:root {
  /* Couleurs */
  --paper:        #f7f9f8;   /* fond general, aere et froid */
  --surface:      #ffffff;   /* cartes, blocs */
  --wash:         #eef3f0;   /* lavis de section */
  --ink:          #15302a;   /* texte principal, vert-petrole profond */
  --ink-soft:     #51605b;   /* texte secondaire */
  --green:        #245c4a;   /* accent principal */
  --green-deep:   #16302b;   /* sections sombres */
  --line:         #e1e8e4;   /* filets, courbes de niveau */
  --marker:       #c26a33;   /* reperage chaud, usage tres parcimonieux */

  /* Typographie */
  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body:    "Inter", system-ui, -apple-system, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;

  /* Echelle typographique */
  --step-eyebrow: 0.78rem;
  --step-body:    1.05rem;
  --step-lead:    1.3rem;
  --h3:           1.35rem;
  --h2:           clamp(1.7rem, 1rem + 2.4vw, 2.6rem);
  --h1:           clamp(2.2rem, 1.1rem + 4.4vw, 4rem);

  /* Rythme */
  --maxw:         1180px;
  --gutter:       clamp(1.2rem, 4vw, 3rem);
  --section-y:    clamp(4rem, 8vw, 7.5rem);
  --radius:       14px;
  --radius-sm:    9px;

  /* Mouvement */
  --ease:         cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-body);
  line-height: 1.65;
  font-feature-settings: "ss01", "cv05";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 0 0.5em;
  text-wrap: balance;
}

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--green); text-decoration: none; }

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

em { font-style: normal; color: var(--green); }

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

/* --- Mise en page utilitaire --------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--step-eyebrow);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green);
  margin: 0 0 1.1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--green);
  opacity: 0.5;
}

.lead {
  font-size: var(--step-lead);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 56ch;
}

/* --- Boutons -------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 500;
  padding: 0.85rem 1.5rem;
  border-radius: 100px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease),
              color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }

.btn--primary {
  background: var(--green);
  color: #fff;
}
.btn--primary:hover { background: var(--ink); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn--ghost:hover { border-color: var(--green); color: var(--green); }

.btn--light {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
}
.btn--light:hover { background: #fff; color: var(--green-deep); }

.btn .arrow { transition: transform 0.25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* --- En-tete -------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 249, 248, 0.82);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.brand .pin { color: var(--green); }
.brand small {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: block;
  margin-top: 2px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.9rem;
}
.nav a {
  color: var(--ink-soft);
  font-size: 0.96rem;
  font-weight: 500;
  position: relative;
  z-index: 0;
  padding: 0.45rem 0.85rem;
  border-radius: 5px;
  transition: color 0.25s var(--ease);
}
/* Pave vert plein qui se deploie verticalement depuis le centre, au survol */
.nav > a::after,
.nav-item__link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--green-deep);
  border-radius: inherit;
  transform: scaleY(0);
  transition: transform 0.3s var(--ease);
}
.nav > a:hover::after,
.nav-item:hover .nav-item__link::after,
.nav-item:focus-within .nav-item__link::after,
.nav a.nav-current::after {
  transform: scaleY(1);
}
.nav > a:hover,
.nav-item:hover .nav-item__link,
.nav-item:focus-within .nav-item__link,
.nav a.nav-current { color: #fff; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  width: 42px; height: 42px;
  cursor: pointer;
  color: var(--ink);
}
.nav-toggle svg { margin: auto; }

/* --- Heros ---------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3.5rem, 7vw, 6.5rem) var(--section-y);
}
.hero__contours {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  color: var(--green);
  opacity: 0.1;
}
.hero__contours svg { width: 100%; height: 100%; }
.hero .wrap { position: relative; z-index: 1; }

.hero h1 { max-width: 17ch; margin-bottom: 0.6em; }
.hero .lead { margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }

.hero__coord {
  margin-top: 3rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.hero__coord span { display: inline-flex; gap: 0.5rem; }
.hero__coord b { color: var(--green); font-weight: 600; }

/* --- Piliers (cartes) ----------------------------------------------------- */
.pillars { background: var(--wash); }
.section-head { max-width: 60ch; margin-bottom: 3rem; }
.section-head h2 { margin-bottom: 0.6rem; }

.grid-pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 1.4rem;
}
.pillar {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.9rem 1.7rem;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
              border-color 0.3s var(--ease);
}
.pillar:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -28px rgba(21, 48, 42, 0.4);
  border-color: #cdd9d3;
}
.pillar__icon {
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--wash);
  color: var(--green);
  margin-bottom: 1.3rem;
}
.pillar h3 { font-size: var(--h3); margin-bottom: 0.5rem; }
.pillar p { color: var(--ink-soft); font-size: 0.99rem; margin: 0; }

/* --- Recit (Pourquoi) ----------------------------------------------------- */
.story__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.story__visual {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--green-deep);
  aspect-ratio: 4 / 5;
  position: relative;
}
.story__visual svg { width: 100%; height: 100%; }
.story__quote {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1rem + 1.6vw, 2.1rem);
  line-height: 1.25;
  color: var(--ink);
  margin: 0 0 1.6rem;
  text-wrap: balance;
}
.story__quote em { color: var(--green); }
.story p { color: var(--ink-soft); }

/* --- Bandeau CTA sombre --------------------------------------------------- */
.cta-band {
  background: var(--green-deep);
  color: #eaf2ee;
  position: relative;
  overflow: hidden;
}
.cta-band__contours {
  position: absolute;
  inset: 0;
  color: #fff;
  opacity: 0.06;
  pointer-events: none;
}
.cta-band__contours svg { width: 100%; height: 100%; }
.cta-band .wrap { position: relative; z-index: 1; text-align: center; }
.cta-band h2 { color: #fff; max-width: 22ch; margin-inline: auto; }
.cta-band p {
  color: rgba(234, 242, 238, 0.78);
  max-width: 52ch;
  margin-inline: auto;
  margin-bottom: 2rem;
}
.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  justify-content: center;
}

/* --- Pied de page --------------------------------------------------------- */
.site-footer {
  background: var(--paper);
  border-top: 1px solid var(--line);
  padding-block: 3.5rem 2rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
.footer__grid h4 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 500;
  margin-bottom: 1rem;
}
.footer__grid ul { list-style: none; margin: 0; padding: 0; }
.footer__grid li { margin-bottom: 0.55rem; }
.footer__grid a { color: var(--ink-soft); font-size: 0.95rem; }
.footer__grid a:hover { color: var(--green); }
.footer__brand p { color: var(--ink-soft); font-size: 0.95rem; max-width: 34ch; }
.footer__bottom {
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
}
.footer__bottom .mono {
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
}

/* --- Reveal au defilement -------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* --- Responsive ----------------------------------------------------------- */
@media (max-width: 860px) {
  .nav {
    position: fixed;
    inset: 72px 0 auto 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem var(--gutter) 1.2rem;
    transform: translateY(-130%);
    transition: transform 0.35s var(--ease);
    box-shadow: 0 22px 40px -30px rgba(21, 48, 42, 0.5);
  }
  .nav.is-open { transform: translateY(0); }
  .nav a { width: 100%; padding: 0.85rem 0; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav > a::after,
  .nav-item__link::after { display: none; }
  .nav > a:hover,
  .nav-item:hover .nav-item__link,
  .nav-item:focus-within .nav-item__link,
  .nav a.nav-current { color: var(--ink); }
  .nav-toggle { display: grid; place-items: center; }

  .story__grid { grid-template-columns: 1fr; }
  .story__visual { aspect-ratio: 16 / 10; order: -1; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 480px) {
  .footer__grid { grid-template-columns: 1fr; }
  .hero__actions .btn { flex: 1 1 auto; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   Composants des pages internes (Fonctionnalites, Bordereaux)
   ========================================================================== */

/* Intro de page interne (plus legere que le hero d'accueil) */
.pageintro {
  padding-block: clamp(3rem, 6vw, 5rem) 1rem;
  border-bottom: 1px solid var(--line);
}
.pageintro h1 { max-width: 20ch; }
.pageintro .lead { margin-top: 0.6rem; }

/* Lignes de fonctionnalite (texte + media en alternance) */
.feature { padding-block: clamp(2.6rem, 5vw, 4.2rem); }
.feature + .feature { border-top: 1px solid var(--line); }
.feature__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.2rem);
  align-items: center;
}
.feature--reverse .feature__media { order: -1; }
.feature__body h2 { font-size: var(--h2); margin-bottom: 0.5rem; }
.feature__body > p { color: var(--ink-soft); }

/* Figure (capture ou schema) */
.figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 24px 54px -36px rgba(21, 48, 42, 0.5);
}
.figure img,
.figure svg { width: 100%; height: auto; display: block; }
.figure figcaption {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 0.7rem 1rem;
  border-top: 1px solid var(--line);
}

/* Legende numerotee (pastilles de reperage) */
.callouts { list-style: none; margin: 1.4rem 0 0; padding: 0; display: grid; gap: 0.85rem; }
.callouts li { display: flex; gap: 0.8rem; align-items: flex-start; font-size: 0.98rem; color: var(--ink-soft); }
.callouts .num {
  flex: 0 0 auto;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--marker);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  display: grid;
  place-items: center;
  margin-top: 1px;
}
.callouts b { color: var(--ink); font-weight: 600; }

/* Liste de points simple (sous une capacite) */
.feat-points { list-style: none; margin: 1.2rem 0 0; padding: 0; display: grid; gap: 0.7rem; }
.feat-points li { position: relative; padding-left: 1.6rem; color: var(--ink-soft); }
.feat-points li::before {
  content: "";
  position: absolute;
  left: 2px; top: 0.6em;
  width: 8px; height: 8px;
  background: var(--green);
  transform: rotate(45deg);
}

/* "Ce que ca change" — cartes a coche */
.checks {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
}
.checks li {
  display: flex; gap: 0.75rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.2rem;
  font-size: 0.97rem;
  color: var(--ink-soft);
}
.checks svg { flex: 0 0 auto; color: var(--green); margin-top: 2px; }
.checks b { color: var(--ink); }

/* Pour qui ? */
.audience { display: grid; grid-template-columns: repeat(auto-fit, minmax(235px, 1fr)); gap: 1rem; margin-top: 1.6rem; }
.audience div {
  background: var(--wash);
  border-radius: var(--radius-sm);
  padding: 1.15rem 1.25rem;
  font-weight: 500;
  color: var(--ink);
  display: flex; gap: 0.7rem; align-items: flex-start;
  font-size: 0.97rem;
}
.audience svg { color: var(--green); flex: 0 0 auto; margin-top: 2px; }

/* Lien de continuite en bas de page */
.next-link { border-top: 1px solid var(--line); padding-top: 2rem; margin-top: 1rem; }

@media (max-width: 860px) {
  .feature__grid { grid-template-columns: 1fr; }
  .feature--reverse .feature__media { order: 0; }
}

/* ==========================================================================
   Back-office : cartes module avec points
   ========================================================================== */
.pillar .feat-points { margin-top: 1rem; }
.pillar .feat-points li { font-size: 0.92rem; }
.pillar__lead { color: var(--ink-soft); font-size: 0.99rem; margin: 0; }

/* ==========================================================================
   Galerie video
   ========================================================================== */
.video-group + .video-group { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.video-group__head { margin-bottom: 1.6rem; }
.video-group__head h2 { font-size: var(--h2); margin-bottom: 0.4rem; }
.video-group__head p { color: var(--ink-soft); max-width: 60ch; margin: 0; }

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.4rem;
}
.video-card {
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  color: var(--ink);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 44px -30px rgba(21, 48, 42, 0.45);
  border-color: #cdd9d3;
}
.video-card__thumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--wash); }
.video-card__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-card__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(to bottom, rgba(21, 48, 42, 0.04), rgba(21, 48, 42, 0.38));
}
.video-card__play span {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  display: grid;
  place-items: center;
  color: var(--green);
  transition: transform 0.3s var(--ease), background 0.3s var(--ease);
}
.video-card:hover .video-card__play span { transform: scale(1.08); background: #fff; }
.video-card__cap {
  padding: 1rem 1.15rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.7rem;
}
.video-card__cap span { font-size: 0.96rem; font-weight: 500; line-height: 1.35; }
.video-card__cap small {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
}

/* ==========================================================================
   Page Contact : disposition et formulaire
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.contact-aside p { color: var(--ink-soft); }
.contact-coords { list-style: none; margin: 1.6rem 0 0; padding: 0; display: grid; gap: 1rem; }
.contact-coords li { display: flex; gap: 0.8rem; align-items: flex-start; }
.contact-coords svg { color: var(--green); flex: 0 0 auto; margin-top: 2px; }
.contact-coords b { display: block; font-size: 0.72rem; font-family: var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 0.15rem; }
.contact-coords a { color: var(--ink); }
.contact-coords a:hover { color: var(--green); }

.form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.4rem);
  box-shadow: 0 24px 54px -38px rgba(21, 48, 42, 0.4);
}
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-size: 0.9rem; font-weight: 500; color: var(--ink); margin-bottom: 0.4rem; }
.field .req { color: var(--marker); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.form-card input,
.form-card select,
.form-card textarea {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.72rem 0.85rem;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.form-card input:focus,
.form-card select:focus,
.form-card textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(36, 92, 74, 0.12);
}
.form-card textarea { min-height: 150px; resize: vertical; }

.btn--block { width: 100%; justify-content: center; margin-top: 0.4rem; }

/* Champ piege anti-robot (masque) */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Bandeaux de retour */
.banner { border-radius: var(--radius-sm); padding: 1rem 1.2rem; margin-bottom: 1.5rem; font-size: 0.97rem; display: none; }
.banner.is-shown { display: block; }
.banner--ok { background: #e6f4ec; border: 1px solid #b7e0c6; color: #1c5b3a; }
.banner--err { background: #fbeae6; border: 1px solid #f0c7bd; color: #9a3a27; }

@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .field-row { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Menu deroulant (onglet Fonctionnalites)
   ========================================================================== */
.nav-item { position: relative; }
.nav-item__row { display: inline-flex; align-items: center; gap: 0.25rem; }
.nav-item__toggle {
  background: none; border: 0; padding: 0.25rem; margin: 0; cursor: pointer;
  color: var(--ink-soft); display: inline-flex; line-height: 0;
  transition: color 0.2s var(--ease);
}
.nav-item:hover .nav-item__toggle,
.nav-item:focus-within .nav-item__toggle { color: var(--ink); }
.nav-item__toggle svg { transition: transform 0.25s var(--ease); }

.nav-item--has-menu::after {
  content: ""; position: absolute; top: 100%; left: 0; right: 0; height: 12px;
}
.nav-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: -12px;
  min-width: 214px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: 0 24px 46px -26px rgba(21, 48, 42, 0.45);
  padding: 0.4rem;
  display: grid;
  gap: 2px;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
  z-index: 60;
}
.nav-item:hover .nav-menu,
.nav-item:focus-within .nav-menu { opacity: 1; visibility: visible; transform: none; }
.nav-item:hover .nav-item__toggle svg,
.nav-item:focus-within .nav-item__toggle svg { transform: rotate(180deg); }

.nav-menu a {
  display: block; width: auto;
  padding: 0.62rem 0.8rem;
  font-size: 0.93rem; font-weight: 500;
  color: var(--ink-soft);
  border-radius: 6px; border-bottom: 0;
}
.nav-menu a::after { display: none; }
.nav-menu a:hover { background: var(--wash); color: var(--ink); }
.nav-menu a[aria-current="page"] { color: var(--green); background: var(--wash); }

@media (max-width: 860px) {
  .nav-item { width: 100%; }
  .nav-item__row {
    display: flex; justify-content: space-between; align-items: center;
    width: 100%; border-bottom: 1px solid var(--line);
  }
  .nav-item__link { flex: 1; border-bottom: 0 !important; }
  .nav-item__link.is-active::after { display: none; }
  .nav-item__toggle { padding: 0.85rem 0.2rem; }
  .nav-item--has-menu::after { display: none; }
  .nav-menu {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; border-radius: 0; padding: 0;
    min-width: 0; display: none;
  }
  .nav-menu.is-open { display: grid; }
  .nav-menu a { padding: 0.7rem 0 0.7rem 1.5rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav-item__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
}

/* ==========================================================================
   Onglets : les trois types de constat
   ========================================================================== */
.tabs { margin-top: 2.4rem; }
.tablist {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.6rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 2.2rem;
}
.tab {
  appearance: none;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  padding: 0.8rem 0.15rem;
  font-family: var(--font-body);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--green); }
.tabpanel { animation: tabfade 0.4s var(--ease); }
.tabpanel[hidden] { display: none; }
.tabpanel__head { max-width: 62ch; margin-bottom: 1.6rem; }
.tabpanel__head h3 { font-size: var(--h2); margin-bottom: 0.5rem; }
.tabpanel__head .lead { max-width: 62ch; }
.tabpanel .grid-pillars { margin-top: 1.8rem; }
@keyframes tabfade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Etiquette de reperage (badge de tete d'onglet) */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  background: var(--wash);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 0.3rem 0.7rem;
  margin-bottom: 1rem;
}

/* ==========================================================================
   Composants repris du module (apercus, tableaux, administration, exemples)
   ========================================================================== */
.shots { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(0.7rem, 1.6vw, 1.2rem); margin-top: 1.6rem; }
@media (max-width: 860px) { .shots { grid-template-columns: repeat(2, 1fr); } }
.srcnote { margin-top: 0.4rem; color: var(--ink-soft); }

.table-wrap { margin-top: 1.4rem; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.srctable { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.srctable th, .srctable td { text-align: left; padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.srctable tbody tr:last-child td { border-bottom: 0; }
.srctable thead th { background: var(--green-deep); color: #fff; font-family: var(--font-display); font-weight: 600; }
.srctable tbody tr:nth-child(even) { background: var(--wash); }
.srctable td:first-child { font-weight: 600; color: var(--ink); }

.admin-block { margin-top: 2.4rem; }
.admin-block h3 { font-family: var(--font-display); font-size: 1.3rem; color: var(--ink); margin: 0 0 0.5rem; }
.admin-block p { max-width: 72ch; }
.admin-block .figure { margin-top: 1rem; }

.examples { width: 100%; border-collapse: collapse; margin-top: 1.4rem; }
.examples td { border: 0; vertical-align: top; padding: 0.4rem 0.9rem; width: 25%; }
.examples td:first-child { padding-left: 0; }
.examples td:last-child { padding-right: 0; }
.examples a { display: flex; flex-direction: column; gap: 0.35rem; text-decoration: none; color: inherit; }
.examples .ex-title { font-family: var(--font-display); font-weight: 600; color: var(--ink); font-size: 1rem; }
.examples .ex-desc { font-size: 0.88rem; color: var(--ink-soft); line-height: 1.4; }
.examples .ex-link { font-size: 0.85rem; color: var(--green-deep); font-weight: 600; }
.examples a:hover .ex-link { text-decoration: underline; }
@media (max-width: 760px) {
  .examples, .examples tbody, .examples tr, .examples td { display: block; width: 100%; }
  .examples td { padding: 0.9rem 0; }
}
