/* charte.css – charte « Bodic v2 » (née de la page d'accueil, novembre 2026).
   Chargée sur toutes les pages publiques par includes/header.php, après main.css.

   Deux étages :
   1. Les composants (.hv2-*) ne s'appliquent qu'à l'intérieur d'un conteneur .hv2 : une page
      passe à la charte en enveloppant son contenu dans <div class="hv2">. Les pages qui ne
      l'ont pas encore gardent le style de main.css, sans effet de bord.
   2. L'habillage de l'en-tête (.site-header) et du pied de page (.site-footer), communs à
      toutes les pages publiques : polices et couleurs de la charte.
   Les styles propres à une page vivent dans sa feuille (home.css pour l'accueil).
   Polices auto-hébergées (public/fonts, licence SIL OFL 1.1) : la CSP (font-src 'self') n'a pas
   à être élargie. */

@font-face {
  font-family: "DM Sans";
  src: url("../fonts/dm-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

/* Variables de la charte, sur :root pour servir aussi à l'en-tête et au pied de page. */
:root {
  --hv2-ink: #0E1B3D;
  --hv2-ink-hover: #2B3A66;
  --hv2-text: #3E4A66;
  --hv2-muted: #5A6684;
  --hv2-muted-2: #4A5571;
  --hv2-line: #E6E8EF;
  --hv2-line-2: #DCE1EC;
  --hv2-line-3: #EEF0F5;
  --hv2-sand: #F8F7F4;
  --hv2-white: #FFFFFF;
  --hv2-yellow: #F5C235;
  --hv2-yellow-soft: #FDF3D3;
  --hv2-blue-soft: #EEF1F7;
  --hv2-red: #A32A2D;
  --hv2-red-top: #CA3538;
  --hv2-red-soft: #FBE7E7;
  --hv2-grey-top: #8C97B3;
  --hv2-green: #1F9D5C;
  --hv2-green-dark: #3CCB7F;
  --hv2-on-dark: #C9D0E0;
  --hv2-on-dark-2: #AAB4CC;
  --hv2-sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --hv2-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --hv2-max: 1240px;
}

/* =====================================================================
   1. COMPOSANTS (sous .hv2)
   ===================================================================== */

.hv2 {
  --hv2-gutter: 32px;
  font-family: var(--hv2-sans);
  color: var(--hv2-ink);
  background: var(--hv2-white);
  overflow-x: clip;
}

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

/* Titres : pas de césure automatique (« ges-tion » est laid sur une page d'accueil). Un mot trop
   long pour la ligne passe quand même à la ligne (overflow-wrap) au lieu d'être rogné ; les mots
   allemands très longs portent une césure conditionnelle (&shy;) dans leur traduction. */
.hv2 h1, .hv2 h2, .hv2 h3 {
  overflow-wrap: break-word;
  -webkit-hyphens: manual;
  hyphens: manual;
}
.hv2 img, .hv2 video { max-width: 100%; }

.hv2 a:focus-visible,
.hv2 button:focus-visible,
.hv2 input:focus-visible,
.hv2 select:focus-visible {
  outline: 2px solid var(--hv2-ink);
  outline-offset: 3px;
}
.hv2 .hv2-dark a:focus-visible,
.hv2 .hv2-dark button:focus-visible,
.hv2 .hv2-dark:focus-visible {
  outline-color: var(--hv2-yellow);
}

.hv2-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Mise en page ---------- */

.hv2 .hv2-section { padding: 88px 0; background: var(--hv2-white); }
.hv2 .hv2-section--sand { background: var(--hv2-sand); }
.hv2 .hv2-section--tight { padding: 72px 0; }
.hv2 .hv2-section--flush-top { padding-top: 0; }
.hv2 .hv2-section--clip { overflow: hidden; }

.hv2-wrap {
  max-width: var(--hv2-max);
  margin: 0 auto;
  padding: 0 var(--hv2-gutter);
}

.hv2-stack { display: flex; flex-direction: column; gap: 40px; }
.hv2-stack--32 { gap: 32px; }
.hv2-stack--48 { gap: 48px; }

.hv2-head { display: flex; flex-direction: column; gap: 14px; max-width: 760px; }

/* ---------- Typographie ---------- */

.hv2-eyebrow {
  font-family: var(--hv2-mono);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hv2-muted);
}

.hv2-badge {
  align-self: flex-start;
  font-family: var(--hv2-mono);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--hv2-yellow);
  color: var(--hv2-ink);
  padding: 8px 14px;
  border-radius: 4px;
}

.hv2 .hv2-h1 {
  margin: 0;
  font-size: clamp(2rem, 1.25rem + 2.3vw, 3rem);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hv2 .hv2-h2 {
  margin: 0;
  font-size: clamp(1.75rem, 1.15rem + 1.6vw, 2.5rem);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.hv2 .hv2-h3 { margin: 0; font-size: 21px; font-weight: 700; line-height: 1.3; }

.hv2-lead { margin: 0; font-size: 18px; line-height: 1.6; color: var(--hv2-text); }

.hv2-mark {
  background: linear-gradient(transparent 62%, var(--hv2-yellow) 62%);
  padding: 0 4px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.hv2-textlink {
  display: inline-block;
  font-weight: 600;
  font-size: 16px;
  border-bottom: 2px solid var(--hv2-yellow);
  padding-bottom: 2px;
}
.hv2-textlink--grey { border-bottom-color: var(--hv2-line-2); }
.hv2-textlink:hover { color: var(--hv2-ink-hover); border-bottom-color: var(--hv2-ink); }

/* ---------- Boutons ---------- */

.hv2-btns { display: flex; flex-wrap: wrap; gap: 14px; }

.hv2-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 17px;
  line-height: 1.2;
  border: 1.5px solid transparent;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.hv2 .hv2-btn--primary { background: var(--hv2-ink); color: var(--hv2-white); }
.hv2 .hv2-btn--primary:hover { background: var(--hv2-ink-hover); color: var(--hv2-white); }
.hv2 .hv2-btn--ghost { border-color: var(--hv2-ink); color: var(--hv2-ink); }
.hv2 .hv2-btn--ghost:hover { background: var(--hv2-ink); color: var(--hv2-white); }
.hv2 .hv2-btn--yellow { background: var(--hv2-yellow); color: var(--hv2-ink); font-weight: 700; }
.hv2 .hv2-btn--yellow:hover { background: #FFD45C; color: var(--hv2-ink); }
.hv2 .hv2-btn--ghost-light { border-color: var(--hv2-white); color: var(--hv2-white); }
.hv2 .hv2-btn--ghost-light:hover { background: var(--hv2-white); color: var(--hv2-ink); }

/* ---------- Cartes et icônes ---------- */

.hv2-card {
  background: var(--hv2-white);
  border: 1px solid var(--hv2-line);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
a.hv2-card { transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
a.hv2-card:hover {
  border-color: var(--hv2-line-2);
  box-shadow: 0 10px 28px rgba(14, 27, 61, 0.08);
  transform: translateY(-2px);
}

.hv2-icon {
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--hv2-blue-soft);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hv2-icon--sm { width: 40px; height: 40px; border-radius: 10px; }
.hv2-icon--yellow { background: var(--hv2-yellow-soft); }
.hv2-icon--red { background: var(--hv2-red-soft); }
.hv2-icon--grey { background: var(--hv2-line-3); }

/* ---------- Médias (vidéos, schémas animés) ---------- */

.hv2-media { position: relative; margin: 0; }
.hv2-media video,
.hv2-media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
  background: var(--hv2-ink);
}
.hv2-media-btns {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  gap: 8px;
}
.hv2-media-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 10px;
  background: rgba(14, 27, 61, 0.72);
  color: var(--hv2-white);
  cursor: pointer;
  transition: background-color .2s ease;
}
.hv2-media-btn:hover { background: rgba(14, 27, 61, 0.92); }
.hv2-media-btn .hv2-ico-play { display: none; }
.hv2-media-btn[aria-pressed="true"] .hv2-ico-pause { display: none; }
.hv2-media-btn[aria-pressed="true"] .hv2-ico-play { display: block; }
.hv2-media video:fullscreen,
.hv2-media video:-webkit-full-screen {
  width: 100vw;
  height: 100vh;
  border-radius: 0;
  object-fit: contain;
  background: #000;
}

/* ---------- Bandeau de titre des pages intérieures ----------
   Fond bleu nuit, liseré jaune (choix de l'humain, novembre 2026) : fil d'Ariane, étiquette,
   titre, chapeau, puis éventuellement des méta (date, langues). */

.hv2 .hv2-pagehead {
  background: var(--hv2-ink);
  color: var(--hv2-white);
  padding: 56px 0 60px;
  border-bottom: 6px solid var(--hv2-yellow);
}
.hv2-pagehead-in { display: flex; flex-direction: column; gap: 18px; }
.hv2-crumb { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px 8px; font-size: 14px; color: var(--hv2-on-dark); }
.hv2-crumb li { display: flex; align-items: center; gap: 8px; min-width: 0; }
.hv2-crumb li + li::before { content: "›"; color: var(--hv2-on-dark-2); }
.hv2 .hv2-crumb a { color: var(--hv2-white); border-bottom: 1px solid rgba(255, 255, 255, 0.5); }
.hv2 .hv2-crumb a:hover { border-bottom-color: var(--hv2-yellow); }
.hv2-crumb [aria-current] { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 46ch; }
.hv2-pagehead .hv2-eyebrow { color: var(--hv2-yellow); }
.hv2 .hv2-pagehead .hv2-h1 { color: var(--hv2-white); max-width: 22ch; }
.hv2 .hv2-pagehead--long .hv2-h1 { max-width: 30ch; font-size: clamp(1.9rem, 1.2rem + 2.1vw, 2.75rem); }
.hv2-pagehead-lead { margin: 0; font-size: 19px; line-height: 1.6; color: var(--hv2-on-dark); max-width: 720px; }
.hv2-pagehead-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; font-size: 15px; color: var(--hv2-on-dark); }

/* Pastilles (filtres, langues disponibles) */
.hv2-pills-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.hv2 .hv2-pillink {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 8px 16px;
  border: 1.5px solid var(--hv2-line-2);
  border-radius: 999px;
  background: var(--hv2-white);
  color: var(--hv2-ink);
  font-size: 15px;
  font-weight: 600;
  transition: border-color .2s ease, background-color .2s ease, color .2s ease;
}
.hv2 .hv2-pillink:hover { border-color: var(--hv2-ink); }
.hv2 .hv2-pillink[aria-current] { background: var(--hv2-ink); border-color: var(--hv2-ink); color: var(--hv2-white); }
/* Variante sur fond bleu nuit (bandeau) */
.hv2 .hv2-pagehead .hv2-pillink { background: transparent; border-color: rgba(255, 255, 255, 0.35); color: var(--hv2-white); min-height: 36px; padding: 6px 14px; font-size: 14px; }
.hv2 .hv2-pagehead .hv2-pillink:hover { border-color: var(--hv2-yellow); }
.hv2 .hv2-pagehead .hv2-pillink[aria-current] { background: var(--hv2-yellow); border-color: var(--hv2-yellow); color: var(--hv2-ink); }

/* Recherche (accueil, actualités) */
.hv2-search {
  flex: 0 1 460px;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1.5px solid var(--hv2-ink);
  border-radius: 999px;
  padding: 6px 6px 6px 20px;
  background: var(--hv2-white);
}
.hv2-search:focus-within { box-shadow: 0 0 0 3px var(--hv2-yellow); }
.hv2-search label { display: flex; align-items: center; }
.hv2 .hv2-search input {
  flex: 1;
  min-width: 0;
  font-family: inherit;
  font-size: 16px;
  color: var(--hv2-ink);
  border: none;
  outline: none;
  background: transparent;
  padding: 8px 0;
}
.hv2 .hv2-search input::placeholder { color: var(--hv2-muted); }
.hv2 .hv2-search input:focus-visible { outline: none; }
.hv2-search button {
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--hv2-white);
  background: var(--hv2-ink);
  border: none;
  border-radius: 999px;
  padding: 12px 20px;
  min-height: 44px;
  cursor: pointer;
}
.hv2-search button:hover { background: var(--hv2-ink-hover); }

/* Barre d'outils d'une liste : filtres à gauche, recherche à droite. */
.hv2-news-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; }
.hv2-news-tools > nav { flex: 1 1 420px; min-width: 0; }

/* ---------- Cartes d'article (actualités, presse) ---------- */

.hv2-posts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.hv2-posts--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hv2 .hv2-post { padding: 0; gap: 0; overflow: hidden; height: 100%; }
.hv2-post-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--hv2-blue-soft);
  border-bottom: 1px solid var(--hv2-line);
}
.hv2-post-body { flex: 1; display: flex; flex-direction: column; gap: 12px; padding: 22px 24px 24px; }
.hv2-post-top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 12px; }
.hv2-post-cat {
  font-family: var(--hv2-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--hv2-red);
}
.hv2-post-date { font-size: 14px; color: var(--hv2-muted); }
.hv2 .hv2-post-title { margin: 0; font-size: 19px; font-weight: 700; line-height: 1.35; overflow-wrap: break-word; hyphens: manual; }
.hv2-post-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--hv2-muted-2);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: pre-line; /* retours à la ligne saisis dans l'extrait */
}
.hv2-post-more { margin-top: auto; padding-top: 4px; font-size: 15px; font-weight: 600; color: var(--hv2-ink); }
a.hv2-post:hover .hv2-post-more { text-decoration: underline; text-decoration-color: var(--hv2-yellow); text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* Pagination */
.hv2-pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 20px; }
.hv2-pager-info { font-size: 15px; color: var(--hv2-muted); }
.hv2 .hv2-pager [aria-disabled="true"] { opacity: 0.4; pointer-events: none; }

/* État vide */
.hv2-empty { text-align: center; align-items: center; padding: 48px 24px; }

/* ---------- Article (texte saisi dans l'éditeur du back-office) ---------- */

.hv2-article { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 32px; }
.hv2-figure { position: relative; margin: 0; }
.hv2-figure img { display: block; width: 100%; height: auto; border-radius: 16px; background: var(--hv2-blue-soft); }
/* Bannière d'article : formats libres (carrés compris), jamais plus haute que 460 px ; centrée
   sur un fond doux, sans recadrage. */
.hv2-figure--banner { display: flex; justify-content: center; background: var(--hv2-blue-soft); border-radius: 16px; overflow: hidden; }
.hv2-figure--banner img { width: auto; max-width: 100%; max-height: 460px; border-radius: 0; }
.hv2-figure-btn {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  background: rgba(14, 27, 61, 0.78);
  color: var(--hv2-white);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.hv2-figure-btn:hover { background: rgba(14, 27, 61, 0.95); }
.hv2-zoom { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }

.hv2-note { background: var(--hv2-sand); border: 1px solid var(--hv2-line); border-radius: 16px; padding: 24px 28px; display: flex; flex-direction: column; gap: 10px; }
.hv2-note p { margin: 0; font-size: 17px; line-height: 1.65; color: var(--hv2-text); }
.hv2 .hv2-note .hv2-h3 { font-size: 19px; }

.hv2-prose { font-size: 18px; line-height: 1.75; color: var(--hv2-text); overflow-wrap: break-word; }
.hv2-prose > :first-child { margin-top: 0; }
.hv2-prose > :last-child { margin-bottom: 0; }
.hv2-prose p { margin: 0 0 1.1em; }
.hv2 .hv2-prose h2,
.hv2 .hv2-prose h3,
.hv2 .hv2-prose h4 { color: var(--hv2-ink); font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; margin: 1.6em 0 0.6em; }
.hv2 .hv2-prose h2 { font-size: 28px; }
.hv2 .hv2-prose h3 { font-size: 23px; }
.hv2 .hv2-prose h4 { font-size: 19px; }
.hv2-prose ul,
.hv2-prose ol { margin: 0 0 1.1em; padding-left: 1.4em; }
.hv2-prose li { margin: 0.35em 0; }
.hv2-prose li::marker { color: var(--hv2-ink); }
.hv2 .hv2-prose a { color: var(--hv2-ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--hv2-yellow); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.hv2 .hv2-prose a:hover { text-decoration-color: var(--hv2-ink); }
.hv2-prose strong { color: var(--hv2-ink); }
.hv2-prose blockquote { margin: 1.4em 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--hv2-yellow); color: var(--hv2-ink); font-style: italic; }
.hv2-prose img { max-width: 100%; height: auto; border-radius: 12px; }
.hv2-prose pre, .hv2-prose code { font-family: var(--hv2-mono); font-size: 0.9em; background: var(--hv2-blue-soft); border-radius: 6px; }
.hv2-prose code { padding: 0.1em 0.35em; }
.hv2-prose pre { padding: 14px 16px; overflow-x: auto; }
/* Alignements produits par l'éditeur Quill */
.hv2-prose .ql-align-center { text-align: center; }
.hv2-prose .ql-align-right { text-align: right; }
.hv2-prose .ql-align-justify { text-align: justify; }

/* Visionneuse d'image (bannière et image sous l'article) */
.hv2-lightbox { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 56px 16px 16px; background: rgba(8, 14, 32, 0.88); }
.hv2-lightbox[hidden] { display: none; }
/* Agrandie jusqu'à 1100 px (et la largeur de l'écran), jamais plus haute que l'écran : une petite
   image (GIF de 500 px) s'ouvre plus grande que dans l'article, sans déformation (contain). */
.hv2-lightbox img { display: block; width: min(1100px, 100%); height: auto; max-height: calc(100vh - 80px); object-fit: contain; border-radius: 10px; }
.hv2-lightbox-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  background: rgba(14, 27, 61, 0.8);
  color: var(--hv2-white);
  cursor: pointer;
}
.hv2 .hv2-lightbox-close:focus-visible { outline-color: var(--hv2-yellow); }

/* ---------- Presse ---------- */

.hv2-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; align-items: start; }
.hv2-press-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.hv2-press-list--1 { grid-template-columns: minmax(0, 1fr); }
.hv2 .hv2-press-item { height: 100%; gap: 10px; }
.hv2-press-src { font-family: var(--hv2-mono); font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--hv2-red); }
.hv2-press-title { font-size: 17px; font-weight: 700; line-height: 1.4; }
.hv2-press-foot { margin-top: auto; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 14px; color: var(--hv2-muted); }
.hv2-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.hv2 .hv2-gallery a { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; padding: 12px; background: var(--hv2-white); border: 1px solid var(--hv2-line); border-radius: 16px; overflow: hidden; transition: border-color .2s ease, box-shadow .2s ease; }
.hv2 .hv2-gallery a:hover { border-color: var(--hv2-line-2); box-shadow: 0 10px 28px rgba(14, 27, 61, 0.08); }
.hv2-gallery img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; }

/* Carte bleu nuit (contact, appel à l'action) */
.hv2-panel { background: var(--hv2-ink); color: var(--hv2-white); border-radius: 24px; padding: 48px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; }
.hv2 .hv2-panel .hv2-h2 { color: var(--hv2-white); font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.25rem); }
.hv2-panel-text { display: flex; flex-direction: column; gap: 6px; font-size: 17px; color: var(--hv2-on-dark); }
.hv2-panel-text strong { color: var(--hv2-white); }

/* ---------- Grilles, listes, cartes numérotées, portraits (pages Conseil, Produits) ---------- */

.hv2-grid { display: grid; gap: 20px; margin: 0; padding: 0; list-style: none; }
.hv2-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hv2-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hv2-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hv2-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.hv2-grid > li { display: flex; min-width: 0; }
.hv2-grid > li > .hv2-card { flex: 1; }
/* Cartes des grilles (pages Conseil, Produits) : limité aux .hv2-grid pour ne pas changer les
   autres cartes (Presse, état vide des actualités…). */
.hv2-grid .hv2-card p,
.hv2-timeline .hv2-card p,
.hv2-card--top p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--hv2-muted-2); }
.hv2 .hv2-grid .hv2-card .hv2-h3,
.hv2 .hv2-timeline .hv2-card .hv2-h3,
.hv2 .hv2-card--top .hv2-h3 { font-size: 19px; }
.hv2-card-head { display: flex; align-items: center; gap: 14px; }

.hv2-head--wide { max-width: 860px; }
.hv2 .hv2-card--top { border-top: 4px solid var(--hv2-yellow); }
.hv2 .hv2-card .hv2-card-strong { color: var(--hv2-ink); font-weight: 600; }

/* Carte-lien avec image (missions Conseil, modules) */
.hv2 .hv2-mission { padding: 16px 16px 22px; gap: 12px; }
.hv2-mission > :not(.hv2-card-img) { padding: 0 8px; }
.hv2-mission-text { font-size: 15px; line-height: 1.6; color: var(--hv2-muted-2); }
a.hv2-mission:hover .hv2-post-more { text-decoration: underline; text-decoration-color: var(--hv2-yellow); text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* Phrase de positionnement : grand texte sur fond bleu nuit, guillemet jaune */
.hv2-statement { position: relative; background: var(--hv2-ink); color: var(--hv2-white); border-radius: 24px; padding: 56px 56px 56px 104px; }
.hv2-statement::before { content: "“"; position: absolute; left: 40px; top: 24px; font-size: 96px; line-height: 1; font-weight: 700; color: var(--hv2-yellow); }
.hv2-statement p { margin: 0; max-width: 900px; font-size: clamp(1.2rem, 1rem + 0.6vw, 1.55rem); line-height: 1.55; font-weight: 500; }

/* Liste à puces carrées jaunes */
.hv2-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.hv2-list li { position: relative; padding-left: 20px; font-size: 15px; line-height: 1.55; color: var(--hv2-text); }
.hv2-list li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 8px; height: 8px; border-radius: 2px; background: var(--hv2-yellow); }

/* Pastille numérotée (étapes d'une méthode) */
.hv2-num {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--hv2-yellow);
  color: var(--hv2-ink);
  font-weight: 700;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Image en tête de carte */
.hv2-card-img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 12px; background: var(--hv2-blue-soft); }
.hv2-card-logo { display: flex; align-items: center; height: 56px; }
.hv2-card-logo img { max-height: 48px; max-width: 180px; width: auto; height: auto; object-fit: contain; }
/* Logo cerné de grandes marges blanches (MBO+) : agrandi, les marges sortent du cadre. */
.hv2-card-logo--zoom { overflow: hidden; }
.hv2-card-logo--zoom img { max-height: none; max-width: none; height: 120px; margin-left: -34px; }

/* Portrait rond (équipe, consultants) */
.hv2-avatar { display: block; width: 112px; height: 112px; border-radius: 50%; object-fit: cover; background: var(--hv2-blue-soft); }
.hv2 .hv2-person { align-items: center; text-align: center; padding: 28px 24px; }

/* Portrait en ligne (consultant d'une mission) */
.hv2 .hv2-person-row { flex-direction: row; align-items: flex-start; gap: 20px; }
.hv2-person-row .hv2-avatar { width: 88px; height: 88px; flex: none; }
.hv2-person-text { display: flex; flex-direction: column; gap: 8px; min-width: 0; }

/* Déroulé d'une mission (jour par jour) */
.hv2-timeline { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 16px; }
.hv2 .hv2-timeline .hv2-card { border-top: 4px solid var(--hv2-ink); }
.hv2-timeline .hv2-eyebrow { color: var(--hv2-red); }

/* Bannière large (page de mission) : moins haute que celle d'un article */
.hv2-figure--wide img { max-height: 360px; }

/* Bouton discret dans une carte */
.hv2 .hv2-linkbtn {
  align-self: flex-start;
  margin-top: auto;
  padding: 0 0 2px;
  border: 0;
  border-bottom: 2px solid var(--hv2-yellow);
  background: none;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--hv2-ink);
  cursor: pointer;
}
.hv2 .hv2-linkbtn:hover { border-bottom-color: var(--hv2-ink); }

/* Fenêtre de dialogue native (<dialog>) : témoignages… */
.hv2-dialog {
  width: min(760px, calc(100% - 32px));
  max-height: calc(100vh - 48px);
  padding: 0;
  border: 0;
  border-radius: 20px;
  background: var(--hv2-white);
  color: var(--hv2-ink);
  box-shadow: 0 30px 80px rgba(8, 14, 32, 0.35);
}
.hv2-dialog::backdrop { background: rgba(8, 14, 32, 0.7); }
.hv2-dialog-in { position: relative; padding: 8px; }
.hv2-dialog .hv2-quote { border: 0; }
.hv2-dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--hv2-line-2);
  border-radius: 50%;
  background: var(--hv2-white);
  color: var(--hv2-ink);
  cursor: pointer;
}
.hv2-dialog-close:hover { background: var(--hv2-blue-soft); }

/* Témoignage (accueil, Conseil) */
.hv2-quote { margin: 0; padding: 28px; gap: 18px; }
.hv2-quote blockquote { margin: 0; font-size: 17px; line-height: 1.6; font-style: italic; color: var(--hv2-ink); }
.hv2-quote figcaption { margin-top: auto; display: flex; align-items: center; gap: 14px; padding-top: 16px; border-top: 1px solid var(--hv2-line); }
.hv2-quote-photo { flex: none; width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.hv2-quote-who { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.hv2-quote-who strong { font-size: 16px; }
.hv2-quote-role { font-size: 14px; color: var(--hv2-muted-2); }
.hv2-quote-tag { font-family: var(--hv2-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--hv2-muted); }

/* Bandeau bleu nuit de fin de page (appel à l'action) */
.hv2-cta { background: var(--hv2-ink); border-radius: 24px; padding: 64px 48px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; }
.hv2 .hv2-cta .hv2-h2 { flex: 1 1 420px; color: var(--hv2-white); max-width: 640px; line-height: 1.2; font-size: clamp(1.75rem, 1.2rem + 1.4vw, 2.375rem); }
.hv2-cta-text { flex: 1 1 420px; display: flex; flex-direction: column; gap: 12px; max-width: 680px; }
.hv2 .hv2-cta-text .hv2-h2 { flex: none; }
.hv2-cta-text p { margin: 0; font-size: 18px; line-height: 1.6; color: var(--hv2-on-dark); }
.hv2-cta-accent { color: var(--hv2-yellow); }

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

@media (max-width: 1200px) {
  .hv2-cols-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
  .hv2-posts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hv2-cols-3, .hv2-cols-4, .hv2-cols-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  .hv2 .hv2-pagehead { padding: 40px 0 44px; }
  .hv2-pagehead-lead { font-size: 17px; }
  .hv2-posts, .hv2-posts--2, .hv2-press-list, .hv2-grid-2,
  .hv2-cols-2, .hv2-cols-3, .hv2-cols-4, .hv2-cols-5 { grid-template-columns: minmax(0, 1fr); }
  .hv2-cta { padding: 40px 24px; }
  .hv2-statement { padding: 72px 24px 32px; }
  .hv2 .hv2-person-row { flex-direction: column; align-items: center; text-align: center; }
  .hv2-statement::before { left: 24px; top: 12px; font-size: 72px; }
  .hv2-search { flex-basis: 100%; }
  .hv2-panel { padding: 32px 24px; }
  .hv2-prose { font-size: 17px; }
  .hv2-crumb [aria-current] { max-width: 24ch; }
}
@media (max-width: 480px) {
  .hv2-search { padding-left: 14px; }
  .hv2-search button { padding: 12px 16px; }
}

@media (max-width: 1024px) {
  .hv2 .hv2-section { padding: 72px 0; }
  .hv2 .hv2-section--flush-top { padding-top: 0; }
}

@media (max-width: 768px) {
  .hv2 { --hv2-gutter: 20px; }
  .hv2 .hv2-section { padding: 56px 0; }
  .hv2 .hv2-section--flush-top { padding-top: 0; }
}

@media (max-width: 480px) {
  .hv2 { --hv2-gutter: 16px; }
  .hv2-btns .hv2-btn { flex: 1 1 100%; }
  .hv2-badge { font-size: 12px; letter-spacing: 0.05em; }
}

@media (prefers-reduced-motion: reduce) {
  .hv2 *, .hv2 *::before, .hv2 *::after { transition: none !important; }
  a.hv2-card:hover { transform: none; }
}

/* =====================================================================
   2. EN-TÊTE ET PIED DE PAGE (toutes les pages publiques)
   Ne fait que réhabiller les classes de main.css (.site-header, .nav-*, .site-footer,
   .footer-*, .newsletter-*) : polices, couleurs, largeur. Mêmes sélecteurs préfixés
   par .site-header / .site-footer, pour ne rien changer ailleurs (les .btn-primary des
   pages gardent leur style).
   ===================================================================== */

.site-header,
.site-footer {
  font-family: var(--hv2-sans);
  color: var(--hv2-ink);
}
.site-header button,
.site-header input,
.site-footer button,
.site-footer input {
  font-family: inherit;
}

/* Même largeur que les pages à la charte (1240 px, gouttière 32 px). */
.site-header > .container,
.site-footer > .container {
  max-width: var(--hv2-max);
  padding-left: 32px;
  padding-right: 32px;
}
@media (max-width: 768px) {
  .site-header > .container,
  .site-footer > .container { padding-left: 20px; padding-right: 20px; }
}
@media (max-width: 480px) {
  .site-header > .container,
  .site-footer > .container { padding-left: 16px; padding-right: 16px; }
}

/* ---------- En-tête ---------- */

.site-header { border-bottom-color: var(--hv2-line); }

.site-header .nav-list > li > a,
.site-header .nav-submenu li a,
.site-header .nav-megamenu-col ul li a,
.site-header .nav-megamenu-header a,
.site-header .nav-submenu-header a,
.site-header .connect-dropdown-item,
.site-header .lang-dropdown-toggle,
.site-header .lang-option,
.site-header .dropdown-arrow,
.site-header .check-icon {
  color: var(--hv2-ink);
}
.site-header .nav-list > li > a { font-size: 0.95rem; font-weight: 500; }
.site-header .nav-list a::after { background-color: var(--hv2-yellow); }
.site-header .nav-list > li > a::after { height: 3px; }
.site-header .nav-toggle-bar { background-color: var(--hv2-ink); }
.site-header .nav-megamenu-col-title {
  font-family: var(--hv2-mono);
  letter-spacing: 0.08em;
}

/* Survols des menus déroulants : fond bleu très clair de la charte. */
.site-header .connect-dropdown-item:hover,
.site-header .lang-option:hover,
.site-header .lang-option.active {
  background-color: var(--hv2-blue-soft);
}
.site-header .lang-dropdown-toggle { border-color: var(--hv2-line-2); border-radius: 8px; }

/* Boutons de l'en-tête (« Prendre RDV », « Bodic Connect ») : pilules de la charte, sans halo. */
.site-header .btn-primary,
.site-header .btn-secondary {
  font-weight: 600;
  font-size: 0.95rem;
  padding: 10px 20px;
  box-shadow: none;
}
.site-header .btn-primary {
  background-color: var(--hv2-ink);
  border-color: var(--hv2-ink);
  color: var(--hv2-white);
}
.site-header .btn-primary:hover {
  background-color: var(--hv2-ink-hover);
  border-color: var(--hv2-ink-hover);
  box-shadow: none;
}
.site-header .btn-primary::after { display: none; }
.site-header .btn-secondary {
  background-color: var(--hv2-white);
  border: 1.5px solid var(--hv2-ink);
  color: var(--hv2-ink);
}
.site-header .btn-secondary:hover {
  background-color: var(--hv2-ink);
  color: var(--hv2-white);
  box-shadow: none;
}
.site-header .btn-primary:hover,
.site-header .btn-secondary:hover { transform: none; }

/* Libellés sur une ligne ; entre la bascule en burger (900 px, main.css) et 1240 px, l'en-tête
   se resserre pour que les libellés longs (allemand : « Termin buchen ») tiennent. */
.site-header .nav-list > li > a,
.site-header .btn-primary,
.site-header .btn-secondary { white-space: nowrap; }
@media (min-width: 901px) and (max-width: 1240px) {
  .site-header .header-inner { gap: 16px; }
  .site-header .main-nav,
  .site-header .nav-right { gap: 12px; }
  .site-header .nav-list { gap: 12px; }
  .site-header .nav-list > li > a { font-size: 0.88rem; }
  .site-header .btn-primary,
  .site-header .btn-secondary { padding: 8px 14px; font-size: 0.88rem; }
  .site-header .header-logo img { height: 40px; }
}
/* Juste au-dessus de la bascule en burger : palier plus compact (l'italien déborde sinon de 65 px
   à 920 px). Le sélecteur de langue n'y garde que le drapeau, le code reste lu par l'attribut. */
@media (min-width: 901px) and (max-width: 1100px) {
  .site-header .header-inner { gap: 12px; }
  .site-header .main-nav,
  .site-header .nav-right { gap: 8px; }
  .site-header .nav-list { gap: 9px; }
  .site-header .nav-list > li > a { font-size: 0.82rem; }
  .site-header .btn-primary,
  .site-header .btn-secondary { padding: 7px 11px; font-size: 0.82rem; }
  .site-header .header-logo img { height: 34px; }
  .site-header .lang-dropdown-toggle .lang-code { display: none; }
  .site-header .lang-dropdown-toggle { padding: 6px 8px; }
}

.site-header a:focus-visible,
.site-header button:focus-visible {
  outline: 2px solid var(--hv2-ink);
  outline-offset: 3px;
}

/* ---------- Pied de page ---------- */

.site-footer {
  background-color: #F8F9FC;
  border-top-color: var(--hv2-line);
  font-size: 0.95rem;
}
.site-footer .footer-col a,
.site-footer .footer-link {
  color: var(--hv2-ink);
}
.site-footer .footer-col a:hover,
.site-footer .footer-link:hover {
  text-decoration: underline;
  text-decoration-color: var(--hv2-yellow);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.site-footer a:focus-visible,
.site-footer button:focus-visible,
.site-footer input:focus-visible {
  outline: 2px solid var(--hv2-ink);
  outline-offset: 3px;
}

/* Le PNG du logo a un fond blanc : la fusion « multiply » le fait disparaître sur le fond gris. */
.site-footer .footer-logo-img { mix-blend-mode: multiply; }

/* Carte newsletter du pied de page */
.site-footer .newsletter-card-title { color: var(--hv2-ink); font-weight: 700; }
.site-footer .newsletter-card-description { color: var(--hv2-muted); }
.site-footer .newsletter-input { border-color: var(--hv2-line-2); color: var(--hv2-ink); }
/* « background » (et non background-color) : main.css y pose un dégradé qui masquerait la couleur. */
.site-footer .newsletter-submit-btn {
  background: var(--hv2-ink);
  border-color: var(--hv2-ink);
  border-radius: 999px;
  color: var(--hv2-white);
}
.site-footer .newsletter-submit-btn:hover { background: var(--hv2-ink-hover); }
.site-footer .newsletter-input { border-radius: 999px; }
