/* ============================================================
   CCIMA Design System — ccima.css
   Fichier unique regroupant les styles globaux et homepage.
   ============================================================ */

/* ============================================================
   1. TOKENS (Custom Properties)
   ============================================================ */
:root {
  /* Couleurs */
  --color-primary: #2F386F;
  --color-secondary: #A8A8B1;
  --color-accent: #F3A152;
  --color-link: #3F53C2;
  --color-surface: #ffffff;
  --color-surface-dim: #F7F7F8;
  --color-on-surface: #000000;
  --color-on-surface-variant: #495057;
  --color-outline: #dee2e6;
  --color-outline-variant: #ced4da;
  --color-error: #dc3545;
  --color-success: #28a745;
  --color-footer-bg: #212529;
  --color-footer-text: #ffffff;
  --color-topbar-bg: #212529;
  --color-topbar-text: #ffffff;
  --color-breadcrumb-divider: #A8A8B1;
  --color-breadcrumb-active: #3F3F3F;

  /* Typographie */
  --font-family: 'Open Sans', sans-serif;
  --font-weight-normal: 400;
  --font-weight-semi-bold: 600;
  --font-weight-bold: 700;

  /* Spacing */
  --spacing-unit: 1rem;
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 3rem;
  --spacing-section: 5rem;

  /* Layout */
  --container-max-width: 1140px;
  --container-padding: 1.5rem;
  --margin-mobile: 2rem;
  --margin-desktop: 6.4rem;

  /* Shapes */
  --border-radius: 0.4rem;

  /* Transitions */
  --transition: 0.25s ease-in-out;

  /* Ombres */
  --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-card-hover: 0 4px 16px rgba(0, 0, 0, 0.12);
}

/* ============================================================
   POLICES LOCALES — Poppins
   ============================================================ */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/static/fonts/poppins/Poppins-Regular.ttf') format('truetype');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/static/fonts/poppins/Poppins-SemiBold.ttf') format('truetype');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/static/fonts/poppins/Poppins-Bold.ttf') format('truetype');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/static/fonts/poppins/Poppins-ExtraBold.ttf') format('truetype');
}

/* ============================================================
   2. RESET & BASE
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 62.5%; /* 1rem = 10px */
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-family);
  font-weight: var(--font-weight-normal);
  font-size: 1.6rem;
  line-height: 1.6;
  color: var(--color-on-surface);
  background-color: var(--color-surface);
  -webkit-font-smoothing: antialiased;
}

/* Homepage base overrides */
body.home-page {
  font-family: 'Inter', sans-serif;
  background: #ffffff;
  color: #334155;
}

.home-page a {
  text-decoration: none;
}

/* Typographie */
h1, .h1 {
  font-family: var(--font-family);
  font-size: 2.5rem;
  font-weight: var(--font-weight-bold);
  line-height: 1.2;
  color: var(--color-primary);
  margin-bottom: 3rem;
}

h2, .h2,
h3, .h3 {
  font-family: var(--font-family);
  font-size: 2rem;
  font-weight: var(--font-weight-bold);
  line-height: 1.3;
  color: var(--color-primary);
}

h4, .h4 {
  font-family: var(--font-family);
  font-size: 1.8rem;
  font-weight: var(--font-weight-bold);
  line-height: 1.3;
  color: var(--color-accent);
}

h5, .h5 {
  font-family: var(--font-family);
  font-size: 1.8rem;
  font-weight: var(--font-weight-bold);
  line-height: 1.3;
  color: var(--color-primary);
}

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

a:hover {
  color: var(--color-primary);
}

strong {
  color: var(--color-primary);
}

small, .caption {
  font-size: 1.3rem;
  line-height: 1.4;
  color: var(--color-secondary);
}

/* Focus visible */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

body p {
  margin-bottom: 1.5rem;
}
/* ============================================================
   3. UTILITAIRES
   ============================================================ */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  z-index: 10000;
  padding: 1rem 2rem;
  background: var(--color-primary);
  color: var(--color-surface);
  font-size: 1.4rem;
  font-weight: var(--font-weight-bold);
  text-decoration: none;
  border-radius: 0 0 var(--border-radius) var(--border-radius);
}

.skip-link:focus {
  top: 0;
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* Layout helpers */
.mt-40 { margin-top: 40px; }
.position-relative { position: relative; }
.z-index-1 { z-index: 1; }
.z-index-0 { z-index: 0; }
.gx-30 { --bs-gutter-x: 30px; }
.mb-20 { margin-bottom: 20px; }
.mb-lg-0 { margin-bottom: 0; }
.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.p-20 { padding: 20px; }
.pb-10 { padding-bottom: 10px; }
.me-lg-n80 { margin-right: -80px; }
.my-4 { margin-top: 1.5rem; margin-bottom: 1.5rem; }
.fs-15 { font-size: 15px; }
.fw-semi-bold { font-weight: 600; }
.text-gray-600 { color: #64748b; }
.text-white { color: #ffffff; }
.bg-light { background: #ffffff; }
.bg-dark  { background: #111111; }
.text-orange { color: #f97316; }
.text-charette { color: #64748b; }
.rounded { border-radius: 4px; }
.rounded-0 { border-radius: 0; }
.rounded-top { border-radius: 4px 4px 0 0; }
.shadow { box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.border-0 { border: none; }
.bg-transparent { background: transparent; }
.bg-gray-100 { background: #f7f7f8; }
.bg-degrade-noir { background: linear-gradient(180deg, #1a1a1a 0%, #2d2d2d 100%); }
.hover-bg-decouvrir { transition: background 0.25s ease; }
.hover-bg-decouvrir:hover { background: rgba(255,255,255,0.05); }
.w-90 { width: 90%; }
.w-100 { width: 100%; }
.h-100 { height: 100%; }
.d-block { display: block; }
.d-flex { display: flex; }
.flex-column { flex-direction: column; }
.align-items-center { align-items: center; }
.justify-content-end { justify-content: flex-end; }
.translate-middle-x { transform: translateX(-50%); }
.start-50 { left: 50%; }
.top-n30 { top: -30px; }
.position-absolute { position: absolute; }

/* Display / visibility */
.d-none { display: none !important; }

/* Mega-menu layout helpers */
.flex-grow-1 { flex-grow: 1; }
.clearfix::after { content: ""; display: table; clear: both; }
.py-4 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.ps-5 { padding-left: 3rem; }
.ps-xl-3 { padding-left: 1rem; }

.bg-poly-droite {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 85%);
}

.uk-background-cover {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* ============================================================
   4. LAYOUT
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

.home-page .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

main {
  min-height: 50vh;
}

/* ============================================================
   5. HEADER (global + homepage)
   ============================================================ */

/* --- Top bar --- */
.top-bar {
  background: #111111;
  color: #ffffff;
  font-size: 11px;
  padding: 7px 0;
}

.top-bar .container {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 20px;
}

.top-bar a {
  color: #ffffff;
  opacity: 0.9;
  font-size: 11px;
  font-weight: 400;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.top-bar a:hover {
  opacity: 1;
}

.top-bar svg,
.top-bar-icon {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

/* Alignement top-bar (géré via le snippet TopBar) */
.top-bar--left .ccima-container  { justify-content: flex-start; }
.top-bar--center .ccima-container { justify-content: center; }
.top-bar--right .ccima-container  { justify-content: flex-end; }

/* --- Bottom footer (same style as top bar) --- */
.b-footer {
  background: #111111;
  color: #ffffff;
  font-size: 11px;
  padding: 7px 0;
}

.b-footer .container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.b-footer .nav.menu {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
  gap: 20px;
}

.b-footer .nav-item {
  display: inline-flex;
}

.b-footer .nav-link {
  color: #ffffff;
  opacity: 0.9;
  font-size: 11px;
  font-weight: 400;
  padding: 0;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.b-footer .nav-link:hover {
  opacity: 1;
  color: #ffffff;
}

.b-footer .retour {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 2px;
  font-size: 12px;
}

/* --- Global header --- */
.site-header {
  background: #ffffff;
  padding: 18px 0;
  border-bottom: 1px solid #f8fafc;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  font-size: 13px;
  font-weight: 500;
  color: #1e293b;
  display: flex;
  align-items: center;
}

.brand img {
  display: block;
  height: 40px;
  width: auto;
}

.search-link {
  font-size: 12px;
  font-weight: 500;
  color: #475569;
  display: flex;
  align-items: center;
  gap: 6px;
}

.search-link svg {
  width: 14px;
  height: 14px;
  color: #3b82f6;
}

.search-link:hover {
  color: #1e293b;
}

/* --- Homepage header overrides --- */
.home-page header {
  background: #ffffff;
  padding: 18px 0;
  border-bottom: 1px solid #f8fafc;
}

.home-page header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.home-page .brand {
  font-size: 13px;
  font-weight: 500;
  color: #1e293b;
}

.home-page .brand img {
  max-height: 45px;
  width: auto;
  display: block;
}

.home-page nav {
  display: flex;
  gap: 28px;
}

.home-page nav a {
  font-size: 12px;
  font-weight: 500;
  color: #475569;
  display: flex;
  align-items: center;
  gap: 4px;
}

.home-page nav a .chevron {
  font-size: 9px;
  color: #94a3b8;
}

.home-page .search-link {
  font-size: 12px;
  font-weight: 500;
  color: #475569;
  display: flex;
  align-items: center;
  gap: 6px;
}

.home-page .search-link svg {
  width: 14px;
  height: 14px;
  color: #3b82f6;
}

/* Dropdowns */
.home-page nav .nav-link-wrapper {
  position: relative;
}

.home-page nav .dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: #ffffff;
  border: 1px solid #f1f5f9;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  border-radius: 4px;
  min-width: 220px;
  padding: 8px 0;
  z-index: 100;
}

.home-page nav .nav-link-wrapper.has-dropdown:hover .dropdown {
  display: block;
}

.home-page nav .dropdown a {
  display: block;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 500;
  color: #475569;
  white-space: nowrap;
}

.home-page nav .dropdown a:hover {
  background: #f8fafc;
  color: #1e293b;
}

/* Frise */
.bg-frise {
  background: url("/static/images/frise.png") repeat-x center;
  background-size: auto 18px;
}

/* ============================================================
   6. MEGA-MENU
   ============================================================ */

/* ---- WSMENU nav ---- */
.wsmenu {
  position: relative;
}

/* ---- WSMENU container ---- */
.wsmenucontainer {
  position: relative;
  background: #ffffff;
}

/* Mobile hamburger header */
.wsmobileheader {
  display: none;
}

/* Overlap background for mobile overlay */
#overlapblackbg {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 998;
}

/* ---- Main bar ---- */
.wsmain {
  background: #ffffff;
  border-bottom: 1px solid #f8fafc;
}

.wsmain .d-xl-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* ---- Logo ---- */
.wsmenu-list.logo {
  list-style: none;
  margin: 0;
  padding: 0;
}

.wsmenu-list.logo li {
  display: block;
}

.wsmenu-list.logo a img {
  height: 45px;
  width: auto;
  display: block;
}

/* ---- Desktop nav ---- */
.wsmenu-list.nav.menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
}

.wsmenu-list.nav.menu > li {
  position: relative;
  display: flex;
  align-items: center;
}

.wsmenu-list.nav.menu > li > a {
  font-size: 12px;
  font-weight: 500;
  color: #475569;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 14px;
  text-decoration: none;
  white-space: nowrap;
  transition: color .15s;
}

.wsmenu-list.nav.menu > li > a:hover {
  color: #1e293b;
}

/* Chevron arrow */
.wsmenu-click {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  padding: 0 4px;
}

.wsmenu-arrow {
  color: #94a3b8;
  display: inline-flex;
  align-items: center;
  transition: transform .2s;
}

.wsmenu-arrow svg {
  width: 10px;
  height: 10px;
}

/* Hover rotate arrow */
.wsmenu-list.nav.menu > li.deeper.parent:hover .wsmenu-arrow {
  transform: rotate(180deg);
}

/* ---- Mega menu container ---- */
.megamenu-container {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  z-index: 1000;
  pointer-events: none;
}

/* Each mega panel */
.megamenu-panel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  background: #ffffff;
  box-shadow: 0 12px 40px rgba(0,0,0,0.10);
  border-radius: 0 0 6px 6px;
  padding: 24px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .30s ease, transform .30s ease, visibility .30s;
  pointer-events: auto;
}

/* Active panel */
.megamenu-panel.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Hover bridge */
.megamenu-container::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 0;
  width: 100%;
  height: 8px;
}

/* Inner container */
.megamenu-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Grid row */
.megamenu-panel .row {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 20px;
}

/* Column */
.megamenu-panel .col-4 {
  padding: 0 12px 18px;
  break-inside: avoid;
}

/* Section heading */
.wstheading {
  font-size: 14px;
  font-weight: 700;
  color: #1e2a5a;
  display: block;
  margin-bottom: 10px;
  text-decoration: none;
  line-height: 1.35;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 6px;
  transition: color .2s ease, border-color .2s ease, padding-left .2s ease;
}

.wstheading:hover {
  color: #3F53C2;
  border-bottom-color: #3F53C2;
  padding-left: 4px;
}

/* Sub-list inside column */
.megamenu-panel .nav-child {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}

.megamenu-panel .nav-child li {
  margin-bottom: 2px;
}

.megamenu-panel .nav-child li a {
  font-size: 11px;
  color: #64748b;
  text-decoration: none;
  display: block;
  padding: 5px 10px;
  line-height: 1.4;
  border-radius: 3px;
  border-left: 3px solid transparent;
  transition: color .2s ease, background-color .2s ease, padding-left .2s ease, border-left-color .2s ease;
}

.megamenu-panel .nav-child li a:hover {
  color: #1e293b;
  background-color: #f8fafc;
  border-left-color: #3F53C2;
  padding-left: 14px;
}

/* ---- Search ---- */
.search {
  position: relative;
  display: flex;
  align-items: center;
  padding-left: 20px;
  flex-shrink: 0;
}

.search-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: transparent;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  cursor: pointer;
  color: #475569;
  transition: color .2s, border-color .2s;
}

.search-toggle:hover {
  color: #1e293b;
  border-color: #cbd5e1;
}

.search-toggle svg {
  width: 18px;
  height: 18px;
}

.search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.10);
  padding: 12px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
  z-index: 2000;
  min-width: 260px;
}

.search-dropdown.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.search-dropdown .mobile-search-row {
  display: flex;
  align-items: center;
  width: 100%;
}

.search-dropdown .form-control {
  flex: 1 1 auto;
  border: 1px solid #e2e8f0;
  border-radius: 4px 0 0 4px;
  padding: 10px 12px;
  font-size: 16px;
  color: #475569;
  background: #ffffff;
  outline: none;
  min-width: 0;
  height: 44px;
}

.search-dropdown .form-control::placeholder {
  color: #94a3b8;
}

.search-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: #2F386F;
  border: none;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  color: #ffffff;
  transition: background .2s;
}

.search-submit:hover {
  background: #3F53C2;
}

.search-submit svg {
  width: 16px;
  height: 16px;
}

/* ============================================================
   7. HOMEPAGE SECTIONS
   ============================================================ */

/* --- 7.1 Hero --- */
.hero-wrapper {
  max-width: 1200px;
  margin: 30px auto;
  display: flex;
  background: #ffffff;
  box-shadow: 0 12px 40px rgba(0,0,0,0.07);
  border-radius: 2px;
  overflow: hidden;
}

/* Colonne visuelle */
.hero-visual {
  width: 32%;
  background: #0c2d6b;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  min-height: 280px;
}

.hero-visual span {
  color: #ffffff;
  font-size: 58px;
  font-weight: 800;
  letter-spacing: -1px;
  white-space: nowrap;
  position: absolute;
  left: -10px;
  user-select: none;
}

.hero-visual-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Colonne centrale */
.hero-main {
  flex: 1;
  padding: 28px 30px;
  background: #ffffff;
}

.hero-main h1 {
  font-size: 18px;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.35;
  margin-bottom: 8px;
}

.hero-main .meta {
  font-size: 12px;
  color: #94a3b8;
  margin-bottom: 12px;
  display: block;
}

.hero-main p {
  font-size: 14px;
  color: #64748b;
  line-height: 1.7;
  margin-bottom: 18px;
}

.link-more {
  font-size: 12px;
  font-weight: 700;
  color: #1e293b;
  position: relative;
  padding-bottom: 4px;
}

.link-more::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  background: #f97316;
}

/* Sidebar actualités */
.hero-sidebar {
  width: 30%;
  background: #1e1e1e;
  color: #ffffff;
  padding: 22px;
  display: flex;
  flex-direction: column;
}

.news-row {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid #333333;
}

.news-row:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

/* Variante cliquable : lien .news-row.news-row-link */
.news-row-link {
  display: flex;
  text-decoration: none;
  color: inherit;
  padding: 8px 10px;
  margin: 0 -10px 14px;
  border-radius: 4px;
  border-bottom: 1px solid #333333;
  transition: background-color 0.18s ease, border-color 0.18s ease;
}

.news-row-link:last-of-type {
  border-bottom: none;
}

.news-row-link:hover,
.news-row-link:focus-visible {
  background: #3647a5;
  border-color: #32429b;
  outline: none;
}

.news-row-link:hover .news-thumb,
.news-row-link:focus-visible .news-thumb {
  background: #ffffff;
}

.news-row-link:hover .news-body h4,
.news-row-link:focus-visible .news-body h4 {
  color: #ffffff;
}

.news-row-link:hover .news-body time,
.news-row-link:focus-visible .news-body time {
  color: #e2e8f0;
}

.news-thumb {
  width: 44px;
  height: 44px;
  background: #333333;
  border-radius: 2px;
  flex-shrink: 0;
  overflow: hidden;
}

.news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-body h4 {
  font-size: 12px;
  line-height: 1.35;
  font-weight: 600;
  color: #f1f5f9;
  margin-bottom: 5px;
}

.news-body time {
  font-size: 11px;
  color: #94a3b8;
}

.all-news {
  margin-top: auto;
  text-align: right;
  font-size: 11px;
  font-weight: 700;
  color: #f97316;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.all-news::before {
  content: '—';
  color: #f97316;
}

/* --- 7.2 Services (4 cartes) --- */
.services {
  max-width: 1200px;
  margin: 0 auto 40px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.service-card {
  background: #ffffff;
  border: 1px solid #f1f5f9;
  padding: 22px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
  border-radius: 3px;
  display: flex;
  flex-direction: column;
  min-height: 220px;
  position: relative;
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.35s ease,
              border-color 0.35s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.08);
  border-color: rgba(249, 115, 22, 0.35);
}

/* Lien invisible couvrant toute la carte */
.service-card-cover {
  position: absolute;
  inset: 0;
  z-index: 1;
  text-decoration: none;
  border-radius: 3px;
}

.service-card .label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #94a3b8;
  margin-bottom: 6px;
  font-weight: 700;
}

.service-card h3 {
  font-size: 15px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 8px;
}

.service-card p {
  font-size: 13px;
  color: #64748b;
  line-height: 1.6;
  flex: 1;
}

.service-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
}

.discover {
  font-size: 12px;
  font-weight: 700;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
}

.discover .arrow {
  color: #f97316;
  font-size: 14px;
  line-height: 1;
  display: inline-block;
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.service-card:hover .discover .arrow {
  transform: translateX(4px);
}

.service-card .discover {
  position: relative;
  z-index: 2;
}

/* Motif dents de scie */
.tooth-pattern {
  display: flex;
  gap: 2px;
}

.tooth {
  width: 0;
  height: 0;
  border-left: 3px solid transparent;
  border-right: 3px solid transparent;
  border-bottom: 5px solid #e2e8f0;
  display: inline-block;
}

.tooth:nth-child(4),
.tooth:nth-child(5),
.tooth:nth-child(6) {
  border-bottom-color: #f97316;
}

/* --- 7.3 Section Événements à venir (.evt-*) --- */
.evt-section {
  --evt-bg: linear-gradient(135deg, #2F386F 0%, #3F53C2 50%, #2F386F 100%);
  --evt-purple: #6d28d9;
  --evt-red: #e11d48;
  --evt-blue: #2563eb;
  --evt-green: #059669;
  --evt-orange: #ea580c;
  --evt-teal: #0d9488;
  --evt-accent: #f59e0b;
  --evt-text: #4b5563;

  background: var(--evt-bg);
  font-family: 'Inter', sans-serif;
  padding: 90px 0;
  margin-bottom: 60px;
  position: relative;
  overflow: hidden;
}

/* Reset local */
.evt-section,
.evt-section *,
.evt-section *::before,
.evt-section *::after {
  box-sizing: border-box;
}

/* Cercles décoratifs */
.evt-section::before,
.evt-section::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .04);
}

.evt-section::before {
  width: 340px;
  height: 340px;
  top: -90px;
  right: 8%;
}

.evt-section::after {
  width: 220px;
  height: 220px;
  bottom: -60px;
  right: 3%;
  background: rgba(255, 255, 255, .07);
}

/* Conteneur */
.evt-wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

.evt-inner {
  display: flex;
  gap: 60px;
  align-items: center;
}

/* ---------- Colonne gauche : texte ---------- */
.evt-left {
  flex: 0 0 32%;
  color: #fff;
}

.evt-badge {
  display: inline-block;
  font-family: 'Poppins', sans-serif;
  font-size: .85rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 700;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .25);
  padding: 8px 18px;
  border-radius: 100px;
  margin-bottom: 22px;
}

.evt-title {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.15;
  color: #fff;
}

.evt-desc {
  margin: 22px 0 32px;
  font-size: 1.1rem;
  line-height: 1.6;
  opacity: .85;
}

.evt-link {
  color: #fff;
  text-decoration: none;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  border-bottom: 4px solid var(--evt-accent);
  padding-bottom: 4px;
  transition: letter-spacing .3s ease;
}

.evt-link:hover {
  letter-spacing: 1px;
}

/* ---------- Colonne droite : cartes ---------- */
.evt-cards {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
}

.evt-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  text-align: center;
  transition: transform .35s ease, box-shadow .35s ease;
}

.evt-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 45px rgba(30, 27, 75, .35);
}

.evt-date,
a.evt-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 18px 10px 16px;
  color: #fff;
  text-decoration: none;
}

a.evt-date:hover {
  opacity: 0.9;
}

/* Modificateurs de couleur */
.evt-date--purple { background: var(--evt-purple); }
.evt-date--red    { background: var(--evt-red); }
.evt-date--blue   { background: var(--evt-blue); }
.evt-date--green  { background: var(--evt-green); }
.evt-date--orange { background: var(--evt-orange); }
.evt-date--teal   { background: var(--evt-teal); }

.evt-day {
  font-family: 'Poppins', sans-serif;
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1;
}

.evt-month {
  font-size: .85rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  font-weight: 600;
  opacity: .9;
  margin-top: 5px;
}

.evt-name {
  margin: 0;
  font-size: .9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  color: var(--evt-text);
  line-height: 1.45;
  padding: 16px 12px 20px;
}

/* ==================================================
   📱 RESPONSIVE — Section Événements
   ================================================== */
@media (max-width: 1024px) {
  .evt-inner {
    flex-direction: column;
    text-align: center;
    gap: 45px;
  }

  .evt-left {
    flex: 1;
    max-width: 560px;
  }

  .evt-cards {
    grid-template-columns: repeat(2, 1fr);
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
  }
}

@media (max-width: 640px) {
  .evt-section { padding: 65px 0; }
  .evt-wrap    { padding: 0 16px; }

  .evt-cards {
    grid-template-columns: 1fr;
    max-width: 420px;
  }

  .evt-card {
    display: flex;
    align-items: stretch;
    text-align: left;
  }

  .evt-card:hover { transform: none; }

  .evt-date {
    flex: 0 0 95px;
    padding: 10px;
  }

  .evt-day   { font-size: 2.4rem; }
  .evt-month { font-size: .8rem; letter-spacing: 1px; }

  .evt-name {
    flex: 1;
    display: flex;
    align-items: center;
    font-size: .85rem;
    padding: 18px 20px;
  }
}

@media (max-width: 400px) {
  .evt-date { flex-basis: 80px; }
}

@media (prefers-reduced-motion: reduce) {
  .evt-card, .evt-link { transition: none; }
}

/* --- 7.4 La CCIMA --- */
.ccima {
  max-width: 1200px;
  margin: 0 auto 40px;
  display: flex;
  gap: 25px;
}

.ccima-media {
  width: 36%;
  background: #000000;
  min-height: 260px;
  border-radius: 3px;
  flex-shrink: 0;
  overflow: hidden;
}

.ccima-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ccima-body {
  flex: 1;
}

.ccima-body h2 {
  font-size: 18px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 18px;
}

.ccima-text {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 12px;
}

.ccima-text p {
	font-size: 13px;
	color: #64748b;
	line-height: 1.7;
}

.link-orange {
	font-size: 12px;
	font-weight: 700;
	color: #f97316;
	text-decoration: none;
}

.link-orange::before {
	content: '— ';
}

.missions {
	background: #f8fafc;
	border: 1px solid #f1f5f9;
	padding: 16px 20px;
	display: flex;
	align-items: center;
	gap: 15px;
	border-radius: 3px;
	margin-top: 20px;
}

.missions-icon {
	width: 36px;
	height: 36px;
	background: #eff6ff;
	border-radius: 4px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #2563eb;
	font-size: 20px;
	flex-shrink: 0;
}

.missions-text h4 {
	font-size: 12px;
	font-weight: 700;
	color: #0f172a;
	margin-bottom: 3px;
}

.missions-text p {
	font-size: 12px;
	color: #64748b;
	line-height: 1.45;
}

/* --- 7.5 Partenaires --- */
.partners {
  margin-bottom: 50px;
}

.partners h2 {
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 30px;
}

.partners-row {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 25px;
  position: relative;
  flex-wrap: wrap;
}

.logo-p {
  height: 55px;
  width: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
  font-size: 10px;
  font-weight: 700;
  text-align: center;
  line-height: 1.15;
  padding: 5px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #475569;
}

.logo-p a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.logo-p img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Approximation des couleurs dominantes */
.lp1 { color: #dc2626; }
.lp2 { background: #84cc16; color: #ffffff; border-color: #84cc16; }
.lp3 { color: #2563eb; }
.lp4 { color: #db2777; }
.lp5 { color: #1e293b; }
.lp6 { color: #1e40af; }

/* ============================================================
   8. FOOTER
   ============================================================ */

/* Global footer */
.site-footer {
  background-color: var(--color-footer-bg);
  color: var(--color-footer-text);
  padding: 2rem 0;
}

.site-footer a {
  color: var(--color-footer-text);
  font-size: 1.4rem;
  font-weight: var(--font-weight-normal);
}

.site-footer a:hover {
  opacity: 0.8;
}

/* Global footer grid (flex) */
.footer-grid {
  display: flex;
  gap: 3rem;
  justify-content: center;
}

/* Homepage footer grid (grid) */
.home-page .footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  font-size: 12px;
}

.home-page .footer-grid a {
  color: #475569;
  display: block;
  margin-bottom: 6px;
}

.home-page .footer-grid a:hover {
  color: #1e293b;
}

/* ============================================================
   9. BREADCRUMB
   ============================================================ */
.breadcrumb {
  padding: 3rem 0;
  font-size: 1.3rem;
}

.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.breadcrumb li {
  display: inline-flex;
  align-items: center;
}

.breadcrumb li:not(:last-child)::after {
  content: '>';
  margin: 0 0.5rem;
  color: var(--color-breadcrumb-divider);
}

.breadcrumb a {
  color: var(--color-breadcrumb-divider);
}

.breadcrumb a:hover {
  color: var(--color-primary);
}

.breadcrumb li:last-child {
  color: var(--color-breadcrumb-active);
}

/* ============================================================
   10. PRE-FOOTER
   ============================================================ */
.b-pre-footer {
  padding: 60px 20px;
}

.b-pre-footer .container {
  max-width: 1280px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.3fr 1.3fr 1.4fr;
  gap: 48px;
}

/* Titres de colonnes */
.footer__title {
  color: #243155;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  line-height: 1.3;
}

/* Listes */
.footer__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer__list + .footer__list {
  margin-top: 1.5rem;
}

.footer__block + .footer__block {
  margin-top: 3rem;
}

.footer__link {
  display: block;
  color: #8a9399;
  text-decoration: none;
  font-size: 0.95rem;
  line-height: 1.8;
  transition: color 0.2s ease;
}

.footer__link:hover {
  color: #243155;
}

/* Colonne 1 : Accueil + Réseaux */
.footer__col--first .footer__link {
  margin-bottom: 3.2rem;
}

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

.footer__follow {
  color: #243155;
  font-weight: 700;
  font-size: 1.05rem;
}

.footer__fb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border: 1.5px solid #243155;
  color: #243155;
  font-size: 13px;
  font-weight: 700;
  border-radius: 2px;
  text-decoration: none;
}

/* Carte cofinancement */
.footer__card {
  background: #ffffff;
  border: 1px solid #e2e4e8;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-top: 3rem;
}

.footer__flags {
  flex-shrink: 0;
  padding-top: 2px;
}

.footer__flags img {
  max-height: 80px;
  width: auto;
  object-fit: contain;
}

.footer__card-text {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #8a9399;
}

/* Responsive pre-footer */
@media (max-width: 992px) {
  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
  .footer__col--first .footer__link {
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 576px) {
  .footer__grid {
    grid-template-columns: 1fr;
  }
  .footer__block + .footer__block {
    margin-top: 2rem;
  }
  .footer__card {
    margin-top: 2rem;
  }
}

/* ============================================================
   11. ARTICLES & CONTENT
   ============================================================ */

/* Sidebar layout */
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 260px);
  gap: 3rem;
  align-items: start;
}

.article-sidebar {
  position: sticky;
  top: 1.5rem;
  background: var(--color-surface);
  border: 1px solid var(--color-outline);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-card);
  padding: 1.25rem;
  overflow: hidden;
}

.article-sidebar-toggle {
  display: none;
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--color-primary);
  color: #ffffff;
  border: none;
  border-radius: var(--border-radius);
  font-family: var(--font-family);
  font-size: 1.4rem;
  font-weight: var(--font-weight-bold);
  cursor: pointer;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.article-sidebar-toggle-title {
  display: inline-block;
}

.article-sidebar-toggle-icon {
  font-size: 1.8rem;
  font-weight: var(--font-weight-bold);
  line-height: 1;
}

.article-sidebar-title {
  font-family: var(--font-family);
  font-size: 1.6rem;
  font-weight: var(--font-weight-bold);
  color: var(--color-primary);
  margin: 0 0 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--color-accent);
}

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

.article-sidebar li {
  margin: 0;
  border-bottom: 1px solid var(--color-outline);
}

.article-sidebar li:last-child {
  border-bottom: none;
}

.article-sidebar a {
  display: block;
  padding: 0.7rem 0.5rem 0.7rem 1rem;
  font-size: 1.4rem;
  color: var(--color-on-surface-variant);
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: var(--transition);
  font-weight: var(--font-weight-semi-bold);
}

.article-sidebar a:hover,
.article-sidebar a.active {
  color: var(--color-primary);
  font-weight: var(--font-weight-bold);
  border-left-color: var(--color-accent);
  background: var(--color-surface-dim);
}

.article-sidebar ul ul {
  padding-left: 1rem;
  border-left: 1px solid var(--color-outline);
  margin: 0.25rem 0 0.25rem 0.75rem;
}

.article-sidebar ul ul li {
  border-bottom: none;
}

.article-sidebar ul ul a {
  font-size: 1.3rem;
  font-weight: var(--font-weight-normal);
  padding: 0.5rem 0.5rem 0.5rem 0.75rem;
}

/* Layout sans sidebar (pleine largeur) */
.article-layout--full {
  grid-template-columns: minmax(0, 1fr);
}

/* Tags */
.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 2rem 0;
}

.tag-item {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  background: var(--color-surface-dim);
  border: 1px solid var(--color-outline);
  border-radius: var(--border-radius);
  font-size: 1.3rem;
  color: var(--color-on-surface-variant);
}

.article-updated {
  font-size: 1.3rem;
  color: var(--color-secondary);
  font-style: italic;
  margin-top: 2rem;
}

/* Related articles — À découvrir aussi */
.related-articles {
  margin-top: 5rem;
  padding-top: 3rem;
  border-top: 2px solid var(--color-outline);
  width: 100%;
}

.related-articles__title {
  font-family: var(--font-family);
  font-size: 2rem;
  font-weight: var(--font-weight-bold);
  color: var(--color-primary);
  margin: 0 0 2rem;
}

.related-articles__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.related-article-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  background: var(--color-surface);
  border: 1px solid var(--color-outline);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  min-height: 100%;
}

.related-article-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
  border-color: var(--color-accent);
}

.related-article-card__image {
  width: 100%;
  height: 20rem;
  overflow: hidden;
  background: var(--color-surface-dim);
  display: flex;
  align-items: center;
  justify-content: center;
}

.related-article-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.related-article-card:hover .related-article-card__image img {
  transform: scale(1.06);
}

/* Placeholder quand il n'y a pas d'image */
.related-article-card__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-surface-dim) 0%, var(--color-surface) 100%);
  color: var(--color-secondary);
}

.related-article-card__placeholder svg {
  width: 4.8rem;
  height: 4.8rem;
  opacity: 0.35;
}

.related-article-card__body {
  padding: 1.8rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
}

.related-article-card__title {
  font-size: 1.55rem;
  font-weight: var(--font-weight-bold);
  color: var(--color-primary);
  margin: 0;
  line-height: 1.4;
}

.related-article-card:hover .related-article-card__title {
  color: var(--color-accent);
}

.related-article-card__date {
  font-size: 1.25rem;
  color: var(--color-secondary);
  margin-top: auto;
}
}

/* Article page */
.article-page h1 {
  margin-bottom: 1rem;
}

.article-date {
  font-size: 1.3rem;
  color: var(--color-secondary);
  margin-bottom: 2rem;
}

.hero-standard-date {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.35rem;
  margin: 0.75rem 0 0;
}

.hero-standard-author {
  margin-left: 0.5rem;
}

.article-bandeau {
  margin-bottom: 2.5rem;
}

.article-bandeau img {
  max-width: 100%;
  width: auto;
  height: auto;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-card);
}

.article-body {
  font-size: 1.6rem;
  line-height: 1.8;
  color: var(--color-on-surface-variant);
  margin-top: 1rem;
}

.article-body h2, .article-body h3 {
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  color: var(--color-primary);
}

.article-body h2 {
  font-size: 2.2rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--color-outline);
}

.article-body h3 {
  font-size: 1.8rem;
}

.article-body p {
  margin-bottom: 1.5rem;
}

.article-body img {
  max-width: 100%;
  height: auto;
  border-radius: var(--border-radius);
  margin: 2rem 0;
}

.article-body .align-left {
  float: left;
  margin-right: 2rem;
  max-width: 50%;
}

.article-body .align-right {
  float: right;
  margin-left: 2rem;
  max-width: 50%;
}

.article-body .align-center {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.article-body .align-full {
  width: 100%;
}

.article-updated {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-outline);
  font-size: 1.3rem;
  color: var(--color-secondary);
  font-style: italic;
}

/* Gallery */
.article-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(25rem, 1fr));
  gap: 1.5rem;
  margin: 3rem 0;
}

.article-gallery figure {
  margin: 0;
}

.article-gallery img {
  width: 100%;
  height: 20rem;
  object-fit: cover;
  border-radius: var(--border-radius);
}

.article-gallery figcaption {
  font-size: 1.3rem;
  color: var(--color-secondary);
  margin-top: 0.5rem;
}

/* Accordion */
.ccima-accordion {
  margin: 2rem 0;
  border: 1px solid var(--color-outline);
  border-radius: var(--border-radius);
}

.ccima-accordion-panel {
  border-bottom: 1px solid var(--color-outline);
}

.ccima-accordion-panel:last-child {
  border-bottom: none;
}

.ccima-accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 1.5rem 2rem;
  background: none;
  border: none;
  font-size: 1.6rem;
  font-weight: var(--font-weight-semi-bold);
  color: var(--color-primary);
  cursor: pointer;
  text-align: left;
}

.ccima-accordion-header::after {
  content: '+';
  font-size: 2rem;
  color: var(--color-secondary);
  transition: transform var(--transition);
}

.ccima-accordion-panel.open .ccima-accordion-header::after {
  content: '−';
}

.ccima-accordion-body {
  display: none;
  padding: 0 2rem 1.5rem;
  font-size: 1.6rem;
  line-height: 1.8;
}

.ccima-accordion-panel.open .ccima-accordion-body {
  display: block;
}

/* Article listing */
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}

.article-card {
  background: var(--color-surface);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: box-shadow var(--transition);
}

.article-card:hover {
  box-shadow: var(--shadow-card-hover);
}

.article-card-image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.article-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-card-body {
  padding: 1.5rem;
}

.article-card-date {
  font-size: 1.3rem;
  color: var(--color-secondary);
  margin-bottom: 0.5rem;
}

.article-card-title {
  font-size: 1.6rem;
  font-weight: var(--font-weight-semi-bold);
  color: var(--color-primary);
  margin-bottom: 0.8rem;
}

.article-card-excerpt {
  font-size: 1.4rem;
  color: var(--color-on-surface-variant);
  line-height: 1.5;
  margin-bottom: 1rem;
}

.article-card-link {
  font-size: 1.4rem;
  font-weight: var(--font-weight-semi-bold);
  color: var(--color-link);
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin: 4rem 0;
  list-style: none;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3.5rem;
  height: 3.5rem;
  padding: 0 1rem;
  font-size: 1.4rem;
  border-radius: var(--border-radius);
  text-decoration: none;
}

.pagination a {
  color: var(--color-primary);
  background: var(--color-surface);
  border: 1px solid var(--color-outline);
}

.pagination a:hover {
  background: var(--color-surface-dim);
}

.pagination .active span {
  background: var(--color-primary);
  color: var(--color-surface);
  border-color: var(--color-primary);
}

.pagination .disabled span {
  color: var(--color-outline-variant);
  border-color: var(--color-outline);
  cursor: not-allowed;
}

/* ============================================================
   12. FORMS & POPIN
   ============================================================ */

/* Popin */
.popin-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 2000;
  justify-content: center;
  align-items: center;
}

.popin-overlay.active {
  display: flex;
}

.popin-modal {
  background: var(--color-surface);
  border-radius: var(--border-radius);
  max-width: 50rem;
  width: 90%;
  padding: 3rem;
  position: relative;
  text-align: center;
}

.popin-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  background: none;
  border: none;
  font-size: 2.4rem;
  cursor: pointer;
  color: var(--color-secondary);
}

.popin-modal img {
  max-width: 100%;
  height: auto;
  margin-bottom: 2rem;
  border-radius: var(--border-radius);
}

.popin-modal h2 {
  margin-bottom: 1.5rem;
}

/* Forms */
.form-page {
  max-width: 70rem;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 2rem;
}

.form-group label {
  display: block;
  font-size: 1.4rem;
  font-weight: var(--font-weight-semi-bold);
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.form-group .required::after {
  content: ' *';
  color: var(--color-error);
}

.form-control {
  width: 100%;
  padding: 0.8rem 1.2rem;
  font-size: 1.6rem;
  font-family: var(--font-family);
  border: 1px solid var(--color-outline);
  border-radius: var(--border-radius);
  transition: border-color var(--transition);
}

.form-control:focus {
  border-color: var(--color-primary);
  outline: none;
}

.form-control.error {
  border-color: var(--color-error);
}

.form-error {
  font-size: 1.3rem;
  color: var(--color-error);
  margin-top: 0.3rem;
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.form-checkbox input {
  margin-top: 0.3rem;
}

.form-checkbox label {
  font-size: 1.4rem;
  font-weight: var(--font-weight-normal);
}

.btn-submit {
  display: inline-block;
  padding: 1rem 3rem;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: var(--border-radius);
  font-size: 1.6rem;
  font-weight: var(--font-weight-semi-bold);
  cursor: pointer;
  transition: background var(--transition);
}

.btn-submit:hover {
  background: var(--color-link);
}

.form-success {
  text-align: center;
  padding: 4rem 2rem;
}

.form-success h2 {
  color: var(--color-success);
  margin-bottom: 1.5rem;
}

/* ============================================================
   12b. CONTACT INFO BLOCK — Alternating Split Layout
   ============================================================ */

.contact-info-block {
  margin-bottom: var(--spacing-xl);
}

/* Large layout : alternating left/right splits */
.contact-info-block--large {
  background: var(--color-surface-dim);
  border-radius: var(--border-radius);
  padding: var(--spacing-xl);
}

.contact-info-block--large h2 {
  font-size: 2.8rem;
  font-weight: var(--font-weight-bold);
  color: var(--color-primary);
  margin-bottom: var(--spacing-xl);
  text-align: center;
  position: relative;
}

.contact-info-block--large h2::after {
  content: '';
  display: block;
  width: 6rem;
  height: 0.3rem;
  background: var(--color-accent);
  margin: var(--spacing-sm) auto 0;
  border-radius: 0.2rem;
}

.contact-info-block--large .contact-sites {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

/* Each site is a split row */
.contact-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 22rem;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition);
}

.contact-split:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

/* Left-aligned : info on left, visual on right */
.contact-split--left {
  direction: ltr;
}

/* Right-aligned : visual on left, info on right */
.contact-split--right {
  direction: rtl;
}

.contact-split--right > * {
  direction: ltr;
}

/* Info side */
.contact-split-info {
  background: var(--color-primary);
  color: #fff;
  padding: var(--spacing-xl);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-split-info h3 {
  font-size: 2.2rem;
  font-weight: var(--font-weight-bold);
  color: #fff;
  margin-bottom: var(--spacing-lg);
  border-bottom: 2px solid var(--color-accent);
  padding-bottom: var(--spacing-sm);
}

.contact-split-info .contact-site {
  list-style: none;
}

.contact-split-info .contact-site li {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-sm);
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.9);
}

.contact-split-info .contact-site li img {
  flex-shrink: 0;
  margin-top: 0.2rem;
  filter: brightness(0) invert(1);
}

.contact-split-info .contact-site li a {
  color: var(--color-accent);
  text-decoration: none;
  transition: opacity var(--transition);
}

.contact-split-info .contact-site li a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.contact-split-info .contact-site li p {
  margin: 0;
}

/* Visual side */
.contact-split-visual {
  background: var(--color-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-xl);
}

.site-badge {
  width: 10rem;
  height: 10rem;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  font-weight: var(--font-weight-bold);
  box-shadow: var(--shadow-card);
}

/* Responsive for alternating split */
@media (max-width: 768px) {
  .contact-split {
    grid-template-columns: 1fr;
  }

  .contact-split-visual {
    min-height: 15rem;
  }

  .site-badge {
    width: 7rem;
    height: 7rem;
    font-size: 3rem;
  }

  .contact-split-info {
    padding: var(--spacing-lg);
  }
}

/* Compact layout */
.contact-info-block--compact {
  background: var(--color-surface);
  border: 1px solid var(--color-outline);
  border-radius: var(--border-radius);
  padding: var(--spacing-md);
}

.contact-info-block--compact .contact-sites {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-md);
}

.contact-info-block--compact .contact-site {
  flex: 1;
  min-width: 20rem;
}

.contact-info-block--compact .contact-site h3 {
  font-size: 1.6rem;
  font-weight: var(--font-weight-semi-bold);
  color: var(--color-primary);
  margin-bottom: var(--spacing-xs);
}

.contact-info-block--compact .contact-site p {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  margin: 0 0 var(--spacing-xs) 0;
  font-size: 1.4rem;
  color: var(--color-on-surface-variant);
}

.contact-info-block--compact .contact-site p img {
  flex-shrink: 0;
}

.contact-info-block--compact .contact-site p a {
  color: var(--color-link);
  text-decoration: none;
}

.contact-info-block--compact .contact-site p a:hover {
  text-decoration: underline;
}

/* Form page enhancements */
.form-page-wrapper {
  max-width: 80rem;
  margin: 0 auto;
  padding: var(--spacing-xl) var(--spacing-md);
}

.form-page-title {
  font-size: 3.2rem;
  font-weight: var(--font-weight-bold);
  color: var(--color-primary);
  margin-bottom: var(--spacing-md);
  text-align: center;
}

.form-page-intro {
  font-size: 1.7rem;
  color: var(--color-on-surface-variant);
  text-align: center;
  margin-bottom: var(--spacing-xl);
  max-width: 60rem;
  margin-left: auto;
  margin-right: auto;
}

.form-page-body {
  margin-bottom: var(--spacing-xl);
}

.form-page-form-section {
  background: var(--color-surface);
  border: 1px solid var(--color-outline);
  border-radius: var(--border-radius);
  padding: var(--spacing-xl);
}

.form-section-title {
  font-size: 2.2rem;
  font-weight: var(--font-weight-bold);
  color: var(--color-primary);
  margin-bottom: var(--spacing-lg);
  text-align: center;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-md);
}

.form-col .form-group {
  margin-bottom: 0;
}

@media (max-width: 576px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.form-group--submit {
  text-align: center;
  margin-top: var(--spacing-lg);
}

/* Landing page success */
.form-success--landing {
  background: var(--color-surface);
  border: 2px solid var(--color-success);
  border-radius: var(--border-radius);
  padding: var(--spacing-xl);
  text-align: center;
}

.form-success--landing h2 {
  color: var(--color-success);
  margin-bottom: var(--spacing-lg);
}

.form-success-body {
  margin-bottom: var(--spacing-lg);
  color: var(--color-on-surface-variant);
}

.form-success-actions {
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
  flex-wrap: wrap;
}

.btn-submit--secondary {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

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

/* Form field wrapper */
.form-field-wrapper input[type="text"],
.form-field-wrapper input[type="email"],
.form-field-wrapper input[type="tel"],
.form-field-wrapper input[type="file"],
.form-field-wrapper textarea,
.form-field-wrapper select {
  width: 100%;
  padding: 0.8rem 1.2rem;
  font-size: 1.6rem;
  font-family: var(--font-family);
  border: 1px solid var(--color-outline);
  border-radius: var(--border-radius);
  transition: border-color var(--transition);
  background: var(--color-surface);
}

.form-field-wrapper input:focus,
.form-field-wrapper textarea:focus,
.form-field-wrapper select:focus {
  border-color: var(--color-primary);
  outline: none;
}

.form-group--required label.required::after {
  content: ' *';
  color: var(--color-error);
}

.form-help-text {
  display: block;
  font-size: 1.3rem;
  color: var(--color-on-surface-variant);
  margin-bottom: 0.3rem;
  font-style: italic;
}

.form-error--global {
  background: #fff5f5;
  border: 1px solid var(--color-error);
  border-radius: var(--border-radius);
  padding: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
}

/* Checkbox and radio fields */
.form-field-wrapper input[type="checkbox"],
.form-field-wrapper input[type="radio"] {
  margin-right: var(--spacing-sm);
  width: auto;
}

.form-field-wrapper input[type="radio"] + label,
.form-field-wrapper input[type="checkbox"] + label {
  display: inline-block;
  font-weight: var(--font-weight-normal);
  color: var(--color-on-surface);
}

/* Field grouping for radios and checkboxes */
.form-field-wrapper .field-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-md);
  margin-top: var(--spacing-xs);
}

.form-field-wrapper .field-group label {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  cursor: pointer;
}

/* Date and datetime fields */
.form-field-wrapper input[type="date"],
.form-field-wrapper input[type="datetime-local"] {
  width: auto;
  min-width: 20rem;
  padding: 0.8rem 1.2rem;
}

/* File upload fields */
.form-field-wrapper input[type="file"] {
  padding: 0.5rem 0;
  border: none;
  background: transparent;
}

/* Select dropdown */
.form-field-wrapper select {
  width: 100%;
  padding: 0.8rem 1.2rem;
  font-size: 1.6rem;
  font-family: var(--font-family);
  border: 1px solid var(--color-outline);
  border-radius: var(--border-radius);
  background-color: var(--color-surface);
  color: var(--color-on-surface);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23495057' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 3rem;
}

.form-field-wrapper select:focus {
  border-color: var(--color-primary);
  outline: none;
}

/* Number field */
.form-field-wrapper input[type="number"] {
  width: 100%;
}

/* Textarea sizing */
.form-field-wrapper textarea {
  min-height: 12rem;
  resize: vertical;
}

/* GPS readonly input */
.form-field-wrapper input[readonly] {
  background-color: var(--color-surface-dim);
  color: var(--color-on-surface-variant);
  cursor: default;
}

/* Checkbox single style */
.form-field-wrapper input[type="checkbox"].single-checkbox {
  transform: scale(1.2);
}

/* Submissions list */
.form-submissions-list {
  margin-top: var(--spacing-xl);
  padding: var(--spacing-xl);
  background: var(--color-surface-dim);
  border-radius: var(--border-radius);
}

.form-submissions-list h2 {
  color: var(--color-primary);
  margin-bottom: var(--spacing-lg);
}

/* Search results */
.search-results {
  margin-top: 3rem;
}

.search-empty {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--color-on-surface-variant);
}

/* ============================================================
   13. CATEGORY MODULE
   ============================================================ */
.category-module {
  width: 100%;
  padding: 0 20px;
}

.category-module .card-body { padding: 0; }
.category-module h2 { font-size: 16px; font-weight: 700; color: #1e293b; line-height: 1.35; margin-bottom: 0; }
.category-module .h5 { font-size: 15px; font-weight: 600; line-height: 1.35; }
.category-module .stretched-link::after { position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 1; content: ''; }
.category-module .stretched-link { position: static; }
.category-module .card { position: relative; }
.category-module .btn-lire-suite {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: #1e293b;
  text-decoration: none;
  position: relative;
  padding-bottom: 4px;
  z-index: 2;
}
.category-module .btn-lire-suite::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  background: #f97316;
}
.category-module .btn-decouvrir {
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  position: relative;
  z-index: 2;
}
.category-module .btn-decouvrir::before {
  content: '— ';
}

/* ============================================================
   14. RESPONSIVE
   ============================================================ */

/* Desktop ≥992px */
@media (min-width: 992px) {
  .d-lg-block { display: block !important; }
  .d-lg-flex { display: flex !important; }
  .mb-lg-0 { margin-bottom: 0; }
  .me-lg-n80 { margin-right: -80px; }
}

/* Tablet ≤1199px */
@media (max-width: 1199px) {
}

/* Tablet ≤991px */
@media (max-width: 991px) {
  .article-layout {
    grid-template-columns: 1fr;
  }

  .article-sidebar {
    order: -1;
    position: static;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    margin-top: 1.5rem;
  }

  .article-sidebar-toggle {
    display: flex;
  }

  .article-sidebar-inner {
    display: none;
    margin-top: 0.5rem;
    padding: 1rem;
    background: var(--color-surface);
    border: 1px solid var(--color-outline);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-card);
  }

  .article-sidebar-inner.is-open {
    display: block;
  }

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

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

  .category-module .col-lg-8,
  .category-module .col-lg-4 { width: 100%; }

  .me-lg-n80 { margin-right: 0; }
  .bg-poly-droite { display: none; }

  /* Homepage responsive — vraies classes utilisées dans cms/home_page.html */
  .hero-wrapper {
    flex-direction: column;
  }

  .hero-visual {
    width: 100%;
    min-height: 200px;
  }

  .hero-sidebar {
    width: 100%;
  }

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

  .ccima {
    flex-direction: column;
  }

  .ccima-media {
    width: 100%;
    min-height: 200px;
  }

  .ccima-text p {
    margin-bottom: 0;
  }
}

/* Mobile ≤767px */
@media (max-width: 767px) {
  .services {
    grid-template-columns: 1fr;
  }

  .hero-main h1 {
    font-size: 15px;
  }

  .ccima {
    padding: 0 1rem;
  }

  .ccima-body h2 {
    font-size: 16px;
  }

  /* Article page mobile adjustments */
  .article-page {
    padding: 0 0.5rem;
  }

  .article-body {
    font-size: 1.5rem;
    line-height: 1.7;
  }

  .article-body h2 {
    font-size: 1.8rem;
  }

  .article-body h3 {
    font-size: 1.6rem;
  }

  .article-body h2, .article-body h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
  }

  /* Disable floating images on mobile */
  .article-body .align-left,
  .article-body .align-right {
    float: none;
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
  }

  .article-bandeau {
    margin-bottom: 1.5rem;
  }

  .article-updated {
    margin-top: 2rem;
    padding-top: 1rem;
  }
}

/* Mobile ≤575px */
@media (max-width: 575px) {
  .article-grid {
    grid-template-columns: 1fr;
  }

  .related-articles__grid {
    grid-template-columns: 1fr;
  }

  .service-cards {
    grid-template-columns: 1fr;
  }

  .service-card + .service-card::before {
    display: none;
  }

  /* Homepage 360px */
  .hero-wrapper {
    margin: 16px auto;
  }

  .hero-visual {
    min-height: 160px;
  }

  .hero-main {
    padding: 18px 16px;
  }

  .hero-sidebar {
    padding: 16px;
  }

  .news-row {
    gap: 10px;
  }

  .ccima {
    gap: 16px;
    padding: 0 1rem;
  }

  .ccima-body {
    padding: 0 4px;
  }

  .partners-row {
    gap: 12px;
  }

  .logo-p {
    width: calc(50% - 6px);
    height: 50px;
  }
}

/* ============================================================
   15. MEGA-MENU MOBILE (<992px)
   ============================================================ */
.mobile-header,
.mobile-search-panel {
  display: none;
}

@media (max-width: 991px) {
  .wsmobileheader {
    display: none;
  }

  .search {
    display: none;
  }

  .headerfull {
    display: none;
  }

  /* Header mobile : burger (gauche) | logo (centre) ... loupe (droite) */
  .mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    padding: 8px 0;
    border-bottom: 1px solid #e2e8f0;
  }

  .mobile-header-burger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: transparent;
    border: none;
    color: #1e293b;
    cursor: pointer;
    flex-shrink: 0;
  }

  .mobile-header-burger svg {
    width: 22px;
    height: 22px;
  }

  .mobile-header-logo {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: center;
  }

  .mobile-header-logo img {
    height: 40px;
    width: auto;
  }

  .mobile-header-search-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: transparent;
    border: none;
    color: #1e293b;
    cursor: pointer;
    flex-shrink: 0;
  }

  .mobile-header-search-toggle svg {
    width: 20px;
    height: 20px;
  }

  /* Panneau recherche mobile - dépliable sous le header */
  .mobile-search-panel {
    display: none;
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    padding: 12px 16px;
  }

  .mobile-search-panel.is-open {
    display: block;
  }

  .mobile-search-row {
    display: flex;
    align-items: center;
    width: 100%;
  }

  .mobile-search-panel .form-control {
    flex: 1 1 auto;
    border: 1px solid #e2e8f0;
    border-radius: 4px 0 0 4px;
    padding: 10px 12px;
    font-size: 16px;
    color: #475569;
    background: #ffffff;
    outline: none;
    min-width: 0;
    height: 44px;
  }

  .mobile-search-panel .form-control::placeholder {
    color: #94a3b8;
  }

  .mobile-search-panel .search-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: #2F386F;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    color: #ffffff;
    flex-shrink: 0;
  }
}

/* ============================================================
   18. PARENT PAGE — Hero standard, layout, sous-page cards
   ============================================================ */

/* --- Hero standard (parent_page, standard_page, blog) ---
   Pleine largeur, bandeau bleu CCIMA avec subtle motif accent.
   Doit être placé hors du container Bootstrap pour occuper
   toute la largeur de la fenêtre. */
.hero-standard {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 280px;
  padding: 3rem 1.5rem;
  background-color: var(--color-primary);
  background-image:
    linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, transparent 60%),
    radial-gradient(circle at 90% 20%, rgba(243, 161, 82, 0.12) 0%, transparent 45%);
  color: #ffffff;
  overflow: hidden;
}

.hero-standard::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #2F386F 0%, #F3A152 100%);
}

.hero-content-standard {
  position: relative;
  z-index: 1;
  max-width: var(--container-max-width);
  margin: 0 auto;
  width: 100%;
}

.hero-content-standard h1 {
  color: #ffffff;
  font-family: var(--font-family);
  font-size: 3.2rem;
  font-weight: var(--font-weight-bold);
  line-height: 1.15;
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}

.hero-content-standard .lead {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.7rem;
  line-height: 1.55;
  margin: 0;
  max-width: 720px;
}

.hero-burger-toggle {
  display: none;
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 42px;
  height: 42px;
  padding: 0;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--border-radius);
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  backdrop-filter: blur(4px);
  transition: background var(--transition);
}

.hero-burger-toggle:hover {
  background: rgba(255, 255, 255, 0.2);
}

.hero-burger-toggle .bar {
  display: block;
  width: 20px;
  height: 2px;
  background-color: #ffffff;
  border-radius: 1px;
  transition: var(--transition);
}

.hero-burger-toggle[aria-expanded="true"] .bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hero-burger-toggle[aria-expanded="true"] .bar:nth-child(2) {
  opacity: 0;
}
.hero-burger-toggle[aria-expanded="true"] .bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --- Layout content-accueil --- */
.content-accueil {
  display: grid;
  grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
  gap: 2.5rem;
  max-width: var(--container-max-width);
  margin: 2.5rem auto;
  padding: 0 1.5rem;
  align-items: start;
}

.content-accueil .navigation_verticale {
  position: sticky;
  top: 1.5rem;
  background: var(--color-surface);
  border: 1px solid var(--color-outline);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-card);
  padding: 0.75rem;
  overflow: hidden;
}

.content-accueil .navigation_verticale:has(ul:empty) {
  display: none;
}

/* Si le menu vertical est vide, passer en pleine largeur */
.content-accueil:has(.navigation_verticale:has(ul:empty)) {
  grid-template-columns: 1fr;
}

/* Pleine largeur quand pas de sidebar */
.content-accueil--no-sidebar {
  grid-template-columns: 1fr;
  max-width: none;
  width: 100%;
  padding: 0;
  margin: 2.5rem 0;
}

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

.content-page--parent {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

/* --- Section de contenu (titrage + corps) --- */
.content-section {
  margin-bottom: 2.5rem;
}

.content-section:last-child {
  margin-bottom: 0;
}

.content-section-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-family);
  font-size: 1.8rem;
  font-weight: var(--font-weight-bold);
  color: var(--color-primary);
  margin: 0 0 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--color-outline);
  line-height: 1.3;
}

.content-section-title::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 1.4em;
  background: var(--color-accent);
  border-radius: 2px;
  flex-shrink: 0;
}

/* --- Menu vertical (thème CCIMA) --- */
.content-accueil .vertical-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.content-accueil .vertical-menu > ul > li {
  margin: 0;
  border-bottom: 1px solid var(--color-outline);
}

.content-accueil .vertical-menu > ul > li:last-child {
  border-bottom: none;
}

.content-accueil .vertical-menu a {
  display: block;
  text-decoration: none;
  color: var(--color-on-surface-variant);
  font-family: var(--font-family);
  font-size: 1.4rem;
  font-weight: var(--font-weight-semi-bold);
  padding: 0.75rem 1rem;
  transition: var(--transition);
  border-radius: var(--border-radius);
}

.content-accueil .vertical-menu > ul > li > a {
  font-weight: var(--font-weight-bold);
  color: var(--color-primary);
}

.content-accueil .vertical-menu li a:hover,
.content-accueil .vertical-menu li.active > a {
  background-color: var(--color-primary);
  color: #ffffff;
}

.content-accueil .vertical-menu ul > li > ul {
  padding-left: 0.5rem;
  margin-bottom: 0.5rem;
}

.content-accueil .vertical-menu ul > li > ul > li > a {
  font-weight: var(--font-weight-normal);
  font-size: 1.3rem;
  padding: 0.5rem 0.75rem;
}

.content-accueil .vertical-menu hr {
  display: none;
}

/* --- Sous-page cards --- */
.subpage-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}

.subpage-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 76px;
  padding: 1.1rem 3.25rem 1.1rem 1.25rem;
  background: var(--color-surface);
  border: none;
  border-left: 6px solid var(--color-accent);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-card);
  text-decoration: none;
  color: var(--color-on-surface);
  font-family: var(--font-family);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  overflow: hidden;
}

.subpage-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 60%, rgba(47, 56, 111, 0.04) 100%);
  pointer-events: none;
  transition: opacity var(--transition);
}

.subpage-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-left-color: var(--color-primary);
}

.subpage-card:hover::after {
  opacity: 0;
}

.subpage-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  background: var(--color-surface-dim);
  border-radius: 50%;
  color: var(--color-primary);
  transition: background var(--transition), color var(--transition);
}

.subpage-card:hover .subpage-card-icon {
  background: var(--color-primary);
  color: #ffffff;
}

.subpage-card-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-width: 0;
}

.subpage-card-title {
  font-size: 1.5rem;
  font-weight: var(--font-weight-semi-bold);
  color: var(--color-primary);
  line-height: 1.3;
  display: block;
}

.subpage-card-arrow {
  position: absolute;
  right: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.8rem;
  font-weight: var(--font-weight-bold);
  color: var(--color-accent);
  transition: transform var(--transition), color var(--transition);
}

.subpage-card:hover .subpage-card-arrow {
  transform: translateY(-50%) translateX(5px);
  color: var(--color-primary);
}

.subpage-empty {
  color: var(--color-secondary);
  font-style: italic;
  padding: 2rem 1.5rem;
  background: var(--color-surface-dim);
  border-radius: var(--border-radius);
  text-align: center;
  border: 1px dashed var(--color-outline);
}

/* --- Presentation block --- */
.presentation-accueil {
  background: var(--color-surface);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  line-height: 1.7;
  color: var(--color-on-surface-variant);
}

.presentation-accueil :where(h2, h3) {
  color: var(--color-primary);
  margin: 1.25rem 0 0.75rem;
}

.presentation-accueil p {
  margin: 0 0 1rem;
}

.presentation-accueil :last-child {
  margin-bottom: 0;
}

/* --- Responsive --- */
@media (max-width: 991px) {
  .hero-standard {
    min-height: 240px;
    padding: 2.5rem 1.25rem;
  }

  .hero-content-standard h1 {
    font-size: 2.6rem;
  }

  .content-accueil {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin: 1.5rem auto;
  }

  .content-accueil .navigation_verticale {
    position: fixed;
    top: 0;
    left: 0;
    width: 82%;
    max-width: 320px;
    height: 100vh;
    z-index: 1100;
    padding: 1.5rem 0.75rem;
    background: var(--color-surface);
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
    transform: translateX(-100%);
    transition: transform var(--transition);
    overflow-y: auto;
  }

  .content-accueil .navigation_verticale.active {
    transform: translateX(0);
  }

  .hero-burger-toggle {
    display: inline-flex;
  }

  .subpage-cards {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }
}

@media (max-width: 575px) {
  .hero-standard {
    min-height: 200px;
    padding: 2rem 1rem;
  }

  .hero-content-standard h1 {
    font-size: 2.2rem;
  }

  .hero-content-standard .lead {
    font-size: 1.4rem;
  }

  .content-section-title {
    font-size: 1.6rem;
  }

  .subpage-cards {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   15. PERSON CARD
   ============================================================ */

.person_card {
  display: grid;
  grid-template-columns: 12rem 1fr;
  gap: 0;
  background: var(--color-surface);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition);
  min-height: 16rem;
  margin-bottom: var(--spacing-lg);
}

.person_card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

/* Left side: accent bar / avatar placeholder */
.person_left_side {
  background: var(--color-primary);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Badge: large initials circle, overlapping the split */
.person_badge {
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 8rem;
  height: 8rem;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.2rem;
  font-weight: var(--font-weight-bold);
  box-shadow: var(--shadow-card);
  z-index: 2;
  border: 4px solid var(--color-surface);
}

/* Right side: content */
.person_right_side {
  padding: var(--spacing-xl) var(--spacing-xl) var(--spacing-xl) 5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Header row: text + photo inline */
.person_header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-md);
}

/* Photo inside the header (inline) */
.person_photo--inline {
  width: 8rem;
  height: 8rem;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 3px solid var(--color-surface);
  box-shadow: var(--shadow-card);
}

/* Photo inside the left band (background cover) */
.person_photo--bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
}

/* Name block */
.top_right_card {
  margin-bottom: var(--spacing-md);
  border-bottom: 2px solid var(--color-outline);
  padding-bottom: var(--spacing-sm);
}

.person_first_name {
  font-size: 1.8rem;
  font-weight: var(--font-weight-semi-bold);
  color: var(--color-on-surface-variant);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.person_surname {
  font-size: 2.8rem;
  font-weight: var(--font-weight-bold);
  color: var(--color-primary);
  line-height: 1.2;
  margin-top: var(--spacing-xs);
}

/* Biography */
.person_biography {
  font-size: 1.5rem;
  color: var(--color-on-surface-variant);
  line-height: 1.7;
}

.person_biography p {
  margin-bottom: var(--spacing-sm);
}

.person_biography a {
  color: var(--color-link);
  text-decoration: none;
  font-weight: var(--font-weight-semi-bold);
}

.person_biography a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
  .person_card {
    grid-template-columns: 1fr;
  }

  .person_left_side {
    height: 6rem;
  }

  .person_photo--bg {
    display: none;
  }

  .person_badge {
    left: var(--spacing-xl);
    top: 100%;
    transform: translate(0, -50%);
    width: 6rem;
    height: 6rem;
    font-size: 2.4rem;
  }

  .person_header {
    align-items: center;
  }

  .person_photo--inline {
    width: 5rem;
    height: 5rem;
  }

  .person_right_side {
    padding: 4rem var(--spacing-lg) var(--spacing-lg);
  }

  .person_surname {
    font-size: 2.2rem;
  }
}

/* ============================================================
   16. CONTENT PAGE BLOCKS — Global Elegance
   ============================================================ */

.content-page {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: var(--spacing-xl) var(--spacing-md);
}

.content-section {
  margin-bottom: var(--spacing-xl);
}

.content-section-title {
  font-size: 2.4rem;
  font-weight: var(--font-weight-bold);
  color: var(--color-primary);
  margin-bottom: var(--spacing-lg);
  padding-bottom: var(--spacing-sm);
  border-bottom: 3px solid var(--color-accent);
}

/* --- Block spacing --- */
[class^="w-block-"] {
  margin-bottom: var(--spacing-lg);
}

/* --- Title block --- */
.w-block-title2 h1,
.w-block-title2 h2,
.w-block-title2 h3 {
  color: var(--color-primary);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--spacing-md);
}

/* --- Paragraph --- */
.w-block-paragraph {
  font-size: 1.6rem;
  line-height: 1.7;
  color: var(--color-on-surface);
}

/* --- Notifications --- */
.w-block-notif {
  margin-bottom: var(--spacing-md);
}

.notif-info,
.notif-alert,
.notif-success {
  padding: var(--spacing-md) var(--spacing-lg);
  border-radius: var(--border-radius);
  font-weight: var(--font-weight-semi-bold);
  margin-bottom: var(--spacing-xs);
}

.notif-info {
  background: #e3f2fd;
  color: #1565c0;
  border-left: 4px solid #1565c0;
}

.notif-alert {
  background: #ffebee;
  color: #c62828;
  border-left: 4px solid #c62828;
}

.notif-success {
  background: #e8f5e9;
  color: #2e7d32;
  border-left: 4px solid #2e7d32;
}

/* --- Table (Wagtail Table Block) --- */
.w-block-table {
  overflow-x: auto;
  margin-bottom: var(--spacing-lg);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-card);
}

.w-block-table table {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
  background: var(--color-surface);
  font-size: 1.5rem;
}

/* En-tête du tableau */
.w-block-table thead {
  background: var(--color-primary);
  color: #fff;
}

.w-block-table th,
.w-block-table td {
  padding: 1.2rem 1.5rem;
  text-align: left;
  border-bottom: 1px solid var(--color-outline);
  vertical-align: top;
}

.w-block-table th {
  font-weight: var(--font-weight-semi-bold);
  color: inherit;
}

.w-block-table thead th {
  color: #fff;
  background: var(--color-primary);
  border-bottom: none;
}

/* Cellules de données */
.w-block-table tbody th[scope="row"] {
  background: var(--color-surface-dim);
  color: var(--color-primary);
  font-weight: var(--font-weight-semi-bold);
  width: 25%;
}

/* Alternance de lignes */
.w-block-table tbody tr:nth-child(even) td {
  background: rgba(247, 247, 248, 0.5);
}

.w-block-table tbody tr:hover td,
.w-block-table tbody tr:hover th[scope="row"] {
  background: var(--color-surface-dim);
}

.w-block-table tbody tr:last-child td,
.w-block-table tbody tr:last-child th {
  border-bottom: none;
}

/* ── Gestion des cellules vides ── */
.w-block-table td:empty,
.w-block-table th:empty {
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    rgba(0, 0, 0, 0.03) 10px,
    rgba(0, 0, 0, 0.03) 20px
  ) !important;
  color: var(--color-secondary);
  font-style: italic;
}

.w-block-table td:empty::before,
.w-block-table th:empty::before {
  content: "—";
  color: var(--color-secondary);
  opacity: 0.5;
}

/* ── Masquer les lignes entièrement vides ── */
.w-block-table tbody tr:has(td:empty):has(th:empty) {
  display: none;
}

/* ── Cellules avec texte tronqué ── */
.w-block-table td {
  max-width: 300px;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Style spécial pour les dates dans les en-têtes ── */
.w-block-table thead th {
  white-space: nowrap;
}

/* ── Accent pour les lignes avec contenu important ── */
.w-block-table tbody tr:has(td:nth-child(3):not(:empty)) td:first-child {
  border-left: 3px solid var(--color-accent);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .w-block-table {
    border-radius: 0;
    margin-left: -1.5rem;
    margin-right: -1.5rem;
    width: calc(100% + 3rem);
  }

  .w-block-table table {
    font-size: 1.3rem;
  }

  .w-block-table th,
  .w-block-table td {
    padding: 0.8rem 1rem;
  }
}

/* --- URL Link --- */
.w-block-url_link .url-link {
  display: inline-block;
  padding: 1rem 2rem;
  background: var(--color-primary);
  color: #fff;
  text-decoration: none;
  border-radius: var(--border-radius);
  font-weight: var(--font-weight-semi-bold);
  transition: background var(--transition);
}

.w-block-url_link .url-link:hover {
  background: var(--color-link);
}

/* --- QR Code --- */
.w-block-qr_code {
  text-align: center;
  padding: var(--spacing-lg);
  background: var(--color-surface-dim);
  border-radius: var(--border-radius);
}

.w-block-qr_code img {
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-card);
}

/* --- FAQ, Accordion & Bubble (using native <details>) --- */
.faq-list,
.bubble-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.faq-item,
.bubble-item,
.accordion-item {
  margin-bottom: var(--spacing-sm);
  border: 1px solid var(--color-outline);
  border-radius: var(--border-radius);
  overflow: hidden;
  background: var(--color-surface);
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--transition);
}

.faq-item:hover,
.bubble-item:hover,
.accordion-item:hover {
  box-shadow: var(--shadow-card-hover);
}

.faq-question,
.bubble-question,
.accordion-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-md) var(--spacing-lg);
  cursor: pointer;
  font-weight: var(--font-weight-semi-bold);
  font-size: 1.6rem;
  color: var(--color-primary);
  background: var(--color-surface-dim);
  list-style: none;
  transition: background var(--transition);
}

.faq-question:hover,
.bubble-question:hover,
.accordion-title:hover {
  background: var(--color-outline);
}

.faq-question::-webkit-details-marker,
.bubble-question::-webkit-details-marker,
.accordion-title::-webkit-details-marker {
  display: none;
}

.faq-question::after,
.bubble-question::after,
.accordion-title::after {
  content: '+';
  font-size: 2rem;
  color: var(--color-primary);
  transition: transform var(--transition);
}

.faq-details[open] > .faq-question::after,
.bubble-details[open] > .bubble-question::after,
.accordion-item[open] > .accordion-title::after {
  content: '−';
}

.faq-answer,
.bubble-answer,
.accordion-content {
  padding: var(--spacing-md) var(--spacing-lg);
  font-size: 1.5rem;
  color: var(--color-on-surface-variant);
  line-height: 1.6;
}

.faq-answer p,
.bubble-answer p,
.accordion-content p {
  margin-bottom: var(--spacing-sm);
}

/* --- Two & Three columns --- */
.two-column-container,
.three-column-block {
  display: grid;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}

.two-column-container {
  grid-template-columns: 1fr 1fr;
}

.three-column-block {
  grid-template-columns: 1fr 1fr 1fr;
}

.two-column,
.column {
  padding: var(--spacing-md);
  background: var(--color-surface-dim);
  border-radius: var(--border-radius);
}

/* --- Image Text --- */
.w-block-image_text .image-text-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-lg);
  align-items: center;
}

/* --- Form Block --- */
.w-block-form .form-block {
  max-width: 60rem;
  margin: 0 auto;
  padding: var(--spacing-xl);
  background: var(--color-surface-dim);
  border-radius: var(--border-radius);
}

.w-block-form .form-group {
  margin-bottom: var(--spacing-md);
}

.w-block-form label {
  display: block;
  font-weight: var(--font-weight-semi-bold);
  margin-bottom: var(--spacing-xs);
  color: var(--color-primary);
}

.w-block-form input,
.w-block-form textarea {
  width: 100%;
  padding: 0.8rem 1.2rem;
  border: 1px solid var(--color-outline);
  border-radius: var(--border-radius);
  font-size: 1.6rem;
  font-family: var(--font-family);
}

.w-block-form button {
  padding: 1rem 3rem;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: var(--border-radius);
  font-weight: var(--font-weight-semi-bold);
  cursor: pointer;
  transition: background var(--transition);
}

.w-block-form button:hover {
  background: var(--color-link);
}

/* --- Document List --- */
.w-block-document_list .document-list {
  background: var(--color-surface);
  border: 1px solid var(--color-outline);
  border-radius: var(--border-radius);
  padding: var(--spacing-lg);
}

/* --- File Card --- */
.file-card .file-card-info p {
  margin: 0;
}
.file-card .file-card-info > p:first-of-type {
  margin-top: 0.25rem;
}

/* --- Two & Three columns --- */
.w-block-two_columns .two-column-container,
.w-block-three_columns .three-column-block {
  display: grid;
  gap: var(--spacing-lg);
}

.w-block-two_columns .two-column-container {
  grid-template-columns: 1fr 1fr;
}

.w-block-three_columns .three-column-block {
  grid-template-columns: 1fr 1fr 1fr;
}

/* --- Map --- */
.w-block-map #leaflet-map,
.w-block-map [id] {
  border-radius: var(--border-radius);
  overflow: hidden;
}

/* --- Gallery --- */
.w-block-gallery .gallery {
  border-radius: var(--border-radius);
  overflow: hidden;
}

/* --- Raw HTML --- */
.w-block-raw {
  margin-bottom: var(--spacing-lg);
}

/* --- Footer block --- */
.w-block-footer {
  background: var(--color-footer-bg);
  color: var(--color-footer-text);
  padding: var(--spacing-xl);
  border-radius: var(--border-radius);
  margin-top: var(--spacing-xl);
}

/* --- Stats override --- */
.w-block-stats .stats-block {
  border-radius: var(--border-radius);
  overflow: hidden;
}

/* --- Info block override --- */
.w-block-info .info-block {
  border-radius: var(--border-radius);
  overflow: hidden;
}

/* --- Presentation cards override --- */
.w-block-presentation_cards .presentation-cards-container {
  gap: var(--spacing-lg);
}

/* --- Event list override --- */
.w-block-event_list .col-lg-4 {
  max-width: 100%;
}

/* --- Info cards override --- */
.w-block-info_cards .card {
  border: 1px solid var(--color-outline);
  transition: transform var(--transition), box-shadow var(--transition);
}

.w-block-info_cards .card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

/* --- Arrow link override --- */
.w-block-arrow .arrow-link {
  border-radius: var(--border-radius);
  overflow: hidden;
}

/* --- Section block --- */
.w-block-section .custom-section {
  padding: var(--spacing-lg);
  background: var(--color-surface-dim);
  border-radius: var(--border-radius);
  border-left: 4px solid var(--color-accent);
}

/* ============================================================
   17. RESPONSIVE CONTENT BLOCKS
   ============================================================ */

@media (max-width: 768px) {
  .w-block-image_text .image-text-block,
  .w-block-two_columns .two-column-container,
  .w-block-three_columns .three-column-block {
    grid-template-columns: 1fr;
  }

  .content-page {
    padding: var(--spacing-md);
  }

  .w-block-form .form-block {
    padding: var(--spacing-lg);
  }

  .w-block-table th,
  .w-block-table td {
    padding: 0.8rem 1rem;
    font-size: 1.4rem;
  }
}

/* ============================================================
   18. ARROW LINK BLOCK
   ============================================================ */

.arrow-link {
  width: 100%;
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  text-decoration: none;
  font-weight: var(--font-weight-semi-bold);
  border-radius: var(--border-radius);
  transition: opacity var(--transition), box-shadow var(--transition);
  margin: 0.5rem 0;
  border: 2px solid var(--color-primary);
  background: var(--color-surface);
  overflow: hidden;
}

.arrow-link:hover {
  opacity: 0.9;
  box-shadow: var(--shadow-card-hover);
}

.arrow-link__text {
  line-height: 1.2;
  padding: 1.5rem 2rem;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 2rem;
  flex: 1;
}

.arrow-link__text p {
  font-size: 1.5rem;
  margin: 0;
}

.arrow-link_img {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  background: var(--color-primary);
}

.arrow-link__icon img {
  display: block;
  width: 40px;
  height: auto;
}

/* ============================================================
   19. STATS SECTION BLOCK
   ============================================================ */

.stats-block {
  padding: 5rem 0;
  background: linear-gradient(135deg, var(--color-surface-dim) 0%, #fffdf1 100%);
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius);
  margin-bottom: var(--spacing-lg);
}

.stats-block::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(47, 56, 111, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
}

.stats-header {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  z-index: 1;
}

.stats-title {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--color-primary);
  margin-bottom: 1rem;
  font-weight: var(--font-weight-bold);
}

.stats-subtitle {
  font-size: 1.2rem;
  color: var(--color-on-surface-variant);
  max-width: 600px;
  margin: 0 auto;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  position: relative;
  z-index: 1;
}

.stat-card {
  background: white;
  border-radius: var(--border-radius);
  padding: 2.5rem 2rem;
  text-align: center;
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: var(--shadow-card);
  border: 2px solid transparent;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #2F386F 0%, #F3A152 100%);
  transform: scaleX(0);
  transition: transform var(--transition);
}

.stat-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--color-outline);
}

.stat-card:hover::before {
  transform: scaleX(1);
}

.stat-icon {
  width: 6rem;
  height: 6rem;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, #2F386F 0%, #F3A152 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
  position: relative;
}

.stat-icon::after {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2F386F 0%, #F3A152 100%);
  opacity: 0.2;
  z-index: -1;
}

.stat-number {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: var(--font-weight-bold);
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1.1rem;
  font-weight: var(--font-weight-semi-bold);
  color: var(--color-on-surface);
  margin-bottom: 0.5rem;
}

.stat-description {
  font-size: 0.9rem;
  color: var(--color-on-surface-variant);
  line-height: 1.5;
}

.stat-badge {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: var(--color-accent);
  color: var(--color-primary);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: var(--font-weight-semi-bold);
}

/* ============================================================
   20. INFO BLOCK
   ============================================================ */

.info-block {
  display: flex;
  position: relative;
  background-color: var(--info-bg, var(--color-surface-dim));
  border-radius: var(--border-radius);
  color: var(--color-on-surface);
  text-decoration: none;
  padding: 1rem 1rem 1rem 3rem;
  margin-bottom: 1rem;
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid var(--color-outline);
}

.info-block:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
}

.info-block-arrow {
  position: absolute;
  left: -1.5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 2rem;
  height: 2rem;
  clip-path: polygon(0 50%, 100% 0, 100% 100%);
  background-color: var(--info-bg, var(--color-surface-dim));
}

.info-block-content {
  display: flex;
  align-items: center;
}

.info-block-icon {
  margin-right: 1rem;
  display: flex;
  align-items: center;
  color: var(--color-primary);
}

.info-block-icon svg {
  width: 24px;
  height: 24px;
}

.info-block-text {
  font-weight: var(--font-weight-semi-bold);
  line-height: 1.4;
}

.info-block-text p {
  margin: 0;
}

/* ============================================================
   21. PRESENTATION CARDS
   ============================================================ */

.presentation-cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  padding: 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.card-link {
  text-decoration: none;
  display: block;
}

.presentation-card {
  background: var(--color-surface);
  border: 2px solid var(--color-primary);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
}

.presentation-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.card-image-wrapper {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background-color: var(--color-surface-dim);
}

.card-img-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: default;
}

.card-img-default {
  object-fit: contain;
  padding: 2rem;
  background-color: var(--color-primary);
}

.card-content-wrapper {
  padding: 1.5rem;
}

.card-title-new {
  margin: 0 0 0.5rem 0;
  font-size: 1.8rem;
  font-weight: var(--font-weight-semi-bold);
  color: var(--color-primary);
  line-height: 1.3;
}

.card-subtitle-new {
  margin: 0 0 1.5rem 0;
  font-size: 1.4rem;
  color: var(--color-on-surface-variant);
  line-height: 1.5;
}

.card-arrow-wrapper {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.card-arrow-circle {
  width: 32px;
  height: 32px;
  background: var(--color-surface-dim);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), transform var(--transition);
  color: var(--color-primary);
}

.presentation-card:hover .card-arrow-circle {
  transform: translateX(4px);
  background: var(--color-accent);
}

/* ============================================================
   22. IMAGE BLOCK (Lightbox)
   ============================================================ */

.image-block-wrapper {
  position: relative;
  margin-bottom: var(--spacing-lg);
}

.image-block-wrapper img {
  max-width: 100%;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-card);
}

.image-caption {
  font-size: 1.4rem;
  color: var(--color-on-surface-variant);
  font-style: italic;
  margin-top: var(--spacing-sm);
  text-align: center;
}

.image-attribution {
  font-size: 1.2rem;
  color: var(--color-secondary);
  display: block;
  text-align: right;
}

.custom-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.custom-lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: var(--border-radius);
}

.custom-lightbox.show {
  display: flex;
  animation: fadeIn 0.3s;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ============================================================
   23. RESPONSIVE — ARROW, STATS, CARDS
   ============================================================ */

@media (max-width: 768px) {
  .arrow-link {
    flex-direction: column;
    gap: 0;
  }

  .arrow-link_img {
    width: 100%;
    padding: 1rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .stat-card {
    padding: 2rem 1.5rem;
  }

  .presentation-cards-container {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 0.5rem;
  }

  .card-image-wrapper {
    height: 160px;
  }

  /* FAQ, Bubble, Accordion responsive */
  .faq-question,
  .bubble-question,
  .accordion-title {
    font-size: 1.4rem;
    padding: 1rem 1.5rem;
  }

  .faq-answer,
  .bubble-answer,
  .accordion-content {
    padding: 1rem 1.5rem;
    font-size: 1.4rem;
  }

  /* Two & Three columns responsive */
  .two-column-container,
  .three-column-block {
    grid-template-columns: 1fr;
  }

  .two-column,
  .column {
    padding: 1rem;
  }

  /* Image text responsive */
  .w-block-image_text .image-text-block {
    grid-template-columns: 1fr;
  }

  /* Form responsive */
  .w-block-form .form-block {
    padding: 1.5rem;
  }

  /* Table responsive */
  .w-block-table th,
  .w-block-table td {
    padding: 0.8rem 1rem;
    font-size: 1.4rem;
  }
}

/* ============================================================
   24. TABLE FIXES — Hide empty rows & improve readability
   ============================================================ */

/* Hide completely empty rows */
.w-block-table tbody tr:has(th:empty):has(td:empty) {
  display: none;
}

/* Style empty cells with dash */
.w-block-table td:empty::after {
  content: "—";
  color: var(--color-secondary);
  font-style: italic;
}

/* Responsive table scroll */
@media (max-width: 768px) {
  .w-block-table {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .w-block-table table {
    font-size: 1.3rem;
  }

  .w-block-table th,
  .w-block-table td {
    padding: 0.8rem 1rem;
    white-space: nowrap;
  }

  .w-block-table tbody th[scope="row"] {
    width: 40%;
  }
}

/* ============================================================
   25. RESPONSIVE MOBILE (< 768px) — Tous les blocs de contenu
   ============================================================ */

@media (max-width: 768px) {
  /* --- Base --- */
  .content-page {
    padding: var(--spacing-md);
  }

  .content-section {
    margin-bottom: var(--spacing-lg);
  }

  .content-section-title {
    font-size: 1.8rem;
    margin-bottom: var(--spacing-md);
  }

  /* --- Titres --- */
  .w-block-title2 h1,
  .w-block-title2 h2,
  .w-block-title2 h3 {
    font-size: 2rem;
    margin-bottom: var(--spacing-sm);
  }

  /* --- Paragraphes --- */
  .w-block-paragraph {
    font-size: 1.5rem;
  }

  /* --- Notifications --- */
  .w-block-notif .notif-info,
  .w-block-notif .notif-alert,
  .w-block-notif .notif-success {
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: 1.4rem;
  }

  /* --- Section --- */
  .w-block-section .custom-section {
    padding: var(--spacing-md);
    border-left-width: 3px;
  }

  /* --- URL Link --- */
  .w-block-url_link .url-link {
    width: 100%;
    text-align: center;
    padding: var(--spacing-md);
  }

  /* --- QR Code --- */
  .w-block-qr_code {
    padding: var(--spacing-md);
  }

  .w-block-qr_code img {
    max-width: 150px;
    height: auto;
  }

  /* --- FAQ, Bubble, Accordion --- */
  .w-block-faq .faq-question,
  .w-block-bubble .bubble-question,
  .w-block-accordion .accordion-title {
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: 1.5rem;
  }

  .w-block-faq .faq-answer,
  .w-block-bubble .bubble-answer,
  .w-block-accordion .accordion-content {
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: 1.4rem;
  }

  /* --- Stats --- */
  .w-block-stats .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
  }

  .w-block-stats .stat-card {
    padding: var(--spacing-md);
  }

  .w-block-stats .stat-icon {
    width: 4rem;
    height: 4rem;
    font-size: 1.6rem;
  }

  .w-block-stats .stat-number {
    font-size: 2rem;
  }

  /* --- Info block --- */
  .w-block-info .info-block {
    padding: var(--spacing-sm) var(--spacing-sm) var(--spacing-sm) 2rem;
  }

  .w-block-info .info-block-text {
    font-size: 1.4rem;
  }

  /* --- Image + Text --- */
  .w-block-image_text .image-text-block {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }

  .w-block-image_text .image-text-content img {
    max-width: 100%;
    height: auto;
  }

  /* --- Cards --- */
  .w-block-cards .cards-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }

  .w-block-cards .card-menu {
    padding: var(--spacing-md);
  }

  /* --- Contact info --- */
  .w-block-contact_info .contact-split {
    grid-template-columns: 1fr;
  }

  .w-block-contact_info .contact-split-visual {
    min-height: 10rem;
  }

  .w-block-contact_info .site-badge {
    width: 5rem;
    height: 5rem;
    font-size: 2rem;
  }

  /* --- Arrow link --- */
  .w-block-arrow .arrow-link {
    flex-direction: column;
  }

  .w-block-arrow .arrow-link_img {
    width: 100%;
    justify-content: center;
  }

  .w-block-arrow .arrow-link__text {
    padding: var(--spacing-md);
    text-align: center;
  }

  /* --- Hero --- */
  .w-block-hero .category-module .row {
    flex-direction: column;
  }

  .w-block-hero .col-lg-8,
  .w-block-hero .col-lg-4 {
    width: 100%;
    max-width: 100%;
  }

  /* --- Banner --- */
  .w-block-banner .bg-degrade-indigo-bandeau {
    padding: var(--spacing-lg) var(--spacing-md);
  }

  /* --- About section --- */
  .w-block-about_section .row {
    flex-direction: column;
  }

  .w-block-about_section .col-sm-6,
  .w-block-about_section .col-lg-4,
  .w-block-about_section .col-lg-7 {
    width: 100%;
    margin-bottom: var(--spacing-md);
  }

  /* --- Mission card --- */
  .w-block-mission_card .d-flex {
    flex-direction: column;
  }

  .w-block-mission_card .col-sm-3,
  .w-block-mission_card .col {
    width: 100%;
    text-align: center;
  }

  /* --- Partner slider --- */
  .w-block-partner_slider .uk-slider-items li {
    width: 50%;
  }

  /* --- Event list --- */
  .w-block-event_list .card .row {
    flex-direction: column;
    text-align: center;
  }

  .w-block-event_list .col-3,
  .w-block-event_list .col-6,
  .w-block-event_list .col-3 {
    width: 100%;
    margin-bottom: var(--spacing-xs);
  }

  /* --- Gallery --- */
  .w-block-gallery .uk-slideshow {
    height: 250px;
  }

  /* --- Two columns --- */
  .w-block-two_columns .two-column-container {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }

  /* --- Three columns --- */
  .w-block-three_columns .three-column-block {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }

  /* --- Map --- */
  .w-block-map #leaflet-map,
  .w-block-map [id] {
    height: 250px !important;
  }

  /* --- Form --- */
  .w-block-form .form-block {
    padding: var(--spacing-md);
  }

  .w-block-form .form-group {
    margin-bottom: var(--spacing-sm);
  }

  .w-block-form input,
  .w-block-form textarea {
    font-size: 1.4rem;
  }

  /* --- Presentation cards --- */
  .w-block-presentation_cards .presentation-cards-container {
    grid-template-columns: 1fr;
  }

  .w-block-presentation_cards .presentation-card {
    margin-bottom: var(--spacing-md);
  }

  /* --- Info cards --- */
  .w-block-info_cards .row.justify-content-center > div {
    width: 100%;
    max-width: 100%;
    margin-bottom: var(--spacing-md);
  }

  /* --- Document list --- */
  .w-block-document_list .document-list {
    padding: var(--spacing-md);
  }

  /* --- Raw HTML --- */
  .w-block-raw {
    overflow-x: auto;
  }

  /* --- Footer --- */
  .w-block-footer {
    padding: var(--spacing-lg);
  }
}
/* ============================================================
   TABLEAU HTML NATIF — Style CCIMA
   À ajouter dans static/css/ccima.css
   ============================================================ */

/* ── Conteneur responsive ── */
.ccima-table-wrapper {
  overflow-x: auto;
  margin-bottom: var(--spacing-lg);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-card);
}

/* ── Tableau de base ── */
.ccima-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-surface);
  font-size: 1.4rem;
  line-height: 1.5;
}

/* ── En-tête ── */
.ccima-table thead {
  background: var(--color-primary);
  color: #fff;
}

.ccima-table thead th {
  padding: 1.2rem 1.5rem;
  text-align: left;
  font-weight: var(--font-weight-semi-bold);
  white-space: nowrap;
  border-bottom: 2px solid var(--color-accent);
}

/* ── Corps ── */
.ccima-table tbody td,
.ccima-table tbody th {
  padding: 1rem 1.5rem;
  text-align: left;
  border-bottom: 1px solid var(--color-outline);
  vertical-align: top;
  color: var(--color-on-surface);
}

/* ── En-têtes de ligne (première colonne) ── */
.ccima-table tbody th[scope="row"] {
  background: var(--color-surface-dim);
  color: var(--color-primary);
  font-weight: var(--font-weight-semi-bold);
  width: 25%;
  border-bottom: 1px solid var(--color-outline-variant);
}

/* ── Alternance de lignes ── */
.ccima-table tbody tr:nth-child(even) td {
  background: rgba(247, 247, 248, 0.5);
}

.ccima-table tbody tr:hover td,
.ccima-table tbody tr:hover th[scope="row"] {
  background: var(--color-surface-dim);
  transition: background var(--transition);
}

/* ── Dernière ligne sans bordure ── */
.ccima-table tbody tr:last-child td,
.ccima-table tbody tr:last-child th {
  border-bottom: none;
}

/* ── Accent sur la première colonne ── */
.ccima-table tbody td:first-child {
  font-weight: var(--font-weight-semi-bold);
  color: var(--color-primary);
}

/* ── Cellules vides ── */
.ccima-table td:empty,
.ccima-table th:empty {
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    rgba(0, 0, 0, 0.03) 10px,
    rgba(0, 0, 0, 0.03) 20px
  );
  color: var(--color-secondary);
  font-style: italic;
}

.ccima-table td:empty::before,
.ccima-table th:empty::before {
  content: "—";
  color: var(--color-secondary);
  opacity: 0.5;
}

/* ── Lignes avec statut (succès/erreur) ── */
.ccima-table tbody tr.ccima-row-success td {
  background: rgba(40, 167, 69, 0.08);
  border-left: 3px solid var(--color-success);
}

.ccima-table tbody tr.ccima-row-error td {
  background: rgba(220, 53, 69, 0.08);
  border-left: 3px solid var(--color-error);
}

.ccima-table tbody tr.ccima-row-accent td {
  border-left: 3px solid var(--color-accent);
}

/* ── Pied de tableau ── */
.ccima-table tfoot {
  background: var(--color-surface-dim);
  font-weight: var(--font-weight-semi-bold);
}

.ccima-table tfoot td,
.ccima-table tfoot th {
  padding: 1rem 1.5rem;
  border-top: 2px solid var(--color-primary);
  color: var(--color-primary);
}

/* ── Légende ── */
.ccima-table caption {
  caption-side: top;
  padding: var(--spacing-sm) 0;
  font-weight: var(--font-weight-semi-bold);
  color: var(--color-primary);
  text-align: left;
  font-size: 1.6rem;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .ccima-table-wrapper {
    border-radius: 0;
    margin-left: calc(-1 * var(--container-padding));
    margin-right: calc(-1 * var(--container-padding));
    width: calc(100% + (var(--container-padding) * 2));
  }

  .ccima-table {
    font-size: 1.3rem;
  }

  .ccima-table thead th,
  .ccima-table tbody td,
  .ccima-table tbody th {
    padding: 0.8rem 1rem;
  }

  .ccima-table tbody th[scope="row"] {
    width: 35%;
  }
}

article ul li::before {
  content: '';
  position: relative;
  bottom: 4px;
  display: inline-block;
  width: 20px;
  height: 2px;
  background-color: #f3a152;
  margin-right: 5px;
}

/* ============================================================
   20. DERNIERES PUBLICATIONS
   ============================================================ */

.recent-publications {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--spacing-section) var(--container-padding);
  background-color: var(--color-surface);
}

.recent-publications .section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-xl);
  padding-bottom: var(--spacing-lg);
  border-bottom: 1px solid var(--color-outline);
}

.section-title-wrapper {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.section-accent {
  display: block;
  width: 4px;
  height: 32px;
  background: linear-gradient(180deg, var(--color-primary) 0%, var(--color-accent) 100%);
  border-radius: 2px;
}

.recent-publications h2 {
  font-size: 2.2rem;
  font-weight: var(--font-weight-bold);
  color: var(--color-primary);
  margin: 0;
  letter-spacing: -0.02em;
}

.recent-publications .all-news {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1.4rem;
  font-weight: var(--font-weight-semi-bold);
  color: var(--color-link);
  text-decoration: none;
  transition: all 0.2s ease;
  padding: 8px 16px;
  border-radius: 4px;
}

.recent-publications .all-news:hover {
  color: var(--color-primary);
  background-color: rgba(47, 56, 111, 0.05);
}

.recent-publications .all-news .arrow-icon {
  transition: transform 0.2s ease;
}

.recent-publications .all-news:hover .arrow-icon {
  transform: translateX(4px);
}

.recent-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-xl);
}

.recent-card {
  background-color: var(--color-surface);
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.recent-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.recent-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.recent-card-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

.recent-card-body {
  padding: var(--spacing-lg);
}

.recent-card-body h4 {
  font-size: 1.6rem;
  font-weight: var(--font-weight-semi-bold);
  color: var(--color-primary);
  line-height: 1.4;
  margin: 0 0 var(--spacing-sm);
  min-height: 4.5rem;
}

.recent-card-body time {
  display: block;
  font-size: 1.3rem;
  color: var(--color-secondary);
  margin-bottom: var(--spacing-sm);
}

.recent-card-body p {
  font-size: 1.4rem;
  color: var(--color-on-surface-variant);
  line-height: 1.5;
  margin: 0;
}

/* Responsive */
@media (max-width: 1024px) {
  .recent-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .recent-grid {
    grid-template-columns: 1fr;
  }
  
  .recent-publications h2 {
    font-size: 2rem;
  }
  
  .recent-publications .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-sm);
  }
}

/* ============================================================
   Alignements de texte (Rich Text Wagtail)
   ============================================================ */
.text-left   { text-align: left; }
.text-center { text-align: center; }
.text-right  { text-align: right; }
.text-justify { text-align: justify; }

/* ============================================================
   Hero Fallback avec Pictogramme
   ============================================================ */
.hero-fallback {
  position: relative;
  width: 100%;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-primary);
  padding: 2rem;
}

.hero-fallback__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
  z-index: 2;
  max-width: 800px;
}

.hero-fallback__picto {
  width: 120px;
  height: 120px;
  opacity: 0.9;
  margin-bottom: 0.5rem;
}

.hero-fallback__title {
  font-size: 2.4rem;
  font-weight: var(--font-weight-bold);
  color: #FFFFFF;
  margin: 0;
  line-height: 1.2;
}

.hero-fallback__intro {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.85);
  margin: 0;
  max-width: 600px;
  line-height: 1.5;
}

@media (min-width: 768px) {
  .hero-fallback {
    min-height: 400px;
  }
  .hero-fallback__picto {
    width: 150px;
    height: 150px;
  }
  .hero-fallback__title {
    font-size: 3.2rem;
  }
  .hero-fallback__intro {
    font-size: 1.4rem;
  }
}

/* Pictogramme dans les cartes listings */
.subpage-picto {
  width: 24px;
  height: 24px;
  display: inline-block;
  vertical-align: middle;
}

/* Cartes avec pictogramme */
.card-icon--picto {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 100px;
}

.card-picto {
  width: 48px;
  height: 48px;
  opacity: 0.95;
}

/* Article card avec pictogramme */
.article-card-image--picto {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-primary);
  min-height: 180px;
}

.article-card-picto {
  width: 64px;
  height: 64px;
  opacity: 0.9;
}

/* Article bandeau avec pictogramme */
.article-bandeau--picto {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 280px;
  background-color: var(--color-primary);
  border-radius: var(--border-radius);
  margin-bottom: var(--spacing-lg);
}

.article-bandeau-picto {
  width: 100px;
  height: 100px;
  opacity: 0.95;
}

/* Related article card placeholder avec pictogramme */
.related-article-card__placeholder--picto {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 160px;
  background-color: var(--color-primary);
  border-radius: var(--border-radius);
}

.related-card-picto {
  width: 48px;
  height: 48px;
  opacity: 0.9;
}

/* Article card index (sous-liste) */
.article-card--index {
  border-left: 4px solid var(--color-accent);
}

.article-card--index .article-card-link {
  color: var(--color-accent);
  font-weight: var(--font-weight-semi-bold);
}

