    /* ══════════════════════════════════════════════════════════
       VARIABLES – palette et typographie fidèles au site réel
    ══════════════════════════════════════════════════════════ */
    :root {
      /* Couleurs extraites du site (tons bleutés / ardoise) */
      --c-primary:      #4a7c9e;   /* bleu-ardoise principal        */
      --c-primary-dk:   #2d5f7a;   /* variante foncée               */
      --c-accent:       #7aadcc;   /* bleu plus clair               */
      --c-body-bg:      #ffffff;
      --c-sidebar-bg:   #f7f9fb;   /* fond légèrement teinté        */
      --c-border:       #d8e6ef;
      --c-text:         #2b2b2b;
      --c-text-muted:   #666666;
      --c-link:         #4a7c9e;
      --c-nav-bg:       #000000;   /* fond navbar (demandé : noir)  */
      --c-nav-text:     #ffffff;
      --c-nav-hover:    #7aadcc;
      --c-footer-bg:    #2b3d4a;
      --c-footer-text:  rgba(255,255,255,0.75);

      /* Typographie */
      --f-body:    'Open Sans', sans-serif;
      --f-title:   'Merriweather', serif;

      /* Dimensions */
      --navbar-h:  56px;
    }

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

    body {
      font-family: var(--f-body);
      font-size: 0.925rem;
      font-weight: 400;
      line-height: 1.8;
      color: var(--c-text);
      background: var(--c-body-bg);
    }

    h1, h2, h3, h4, h5, h6 {
      font-family: var(--f-title);
      font-weight: 400;
      color: var(--c-primary);
      line-height: 1.35;
    }

    h1 { font-size: 1.7rem; }
    h2 { font-size: 1.35rem; margin-top: 1.6rem; }
    h3 { font-size: 1.1rem;  margin-top: 1.4rem; }

    a {
      color: var(--c-link);
      text-decoration: none;
    }
    a:hover {
      color: var(--c-primary-dk);
      text-decoration: underline;
    }

    p { margin-bottom: 1rem; }

    strong { font-weight: 600; }

    /* ══════════════════════════════════════════════════════════
       COMPOSANT – BARRE D'IDENTITÉ (au-dessus de la navbar)
       Reproduit le tagline du site réel
    ══════════════════════════════════════════════════════════ */
    .identity-bar {
      background: var(--c-primary);
      color: rgba(255,255,255,0.92);
      font-size: 0.72rem;
      font-family: var(--f-body);
      letter-spacing: 0.04em;
      padding: 0.4rem 0;
      text-align: center;
    }

    /* ══════════════════════════════════════════════════════════
       COMPOSANT 1 – NAVBAR
       Fond noir, positionné au-dessus du hero (absolute),
       puis sticky après scroll.
    ══════════════════════════════════════════════════════════ */
    .hero-wrapper {
      position: relative;
    }

    #main-nav {
      position: absolute;
      top: 0; left: 0; right: 0;
      z-index: 200;
      height: var(--navbar-h);
      background-color: var(--c-nav-bg) !important;
      border-bottom: 1px solid rgba(255,255,255,0.08);
    }

    /* Sticky après défilement au-delà du hero */
    #main-nav.is-sticky {
      position: fixed;
      top: 0;
      box-shadow: 0 2px 12px rgba(0,0,0,0.45);
    }

    /* Logo texte */
    #main-nav .navbar-brand {
      font-family: var(--f-title);
      font-size: 1.05rem;
      font-weight: 400;
      color: var(--c-nav-text) !important;
      letter-spacing: 0.01em;
    }

    /* Liens */
    #main-nav .nav-link {
      color: rgba(255,255,255,0.88) !important;
      font-size: 0.78rem;
      font-weight: 400;
      letter-spacing: 0.03em;
      padding: 0.5rem 0.9rem !important;
      transition: color .2s;
    }
    #main-nav .nav-link:hover,
    #main-nav .nav-link.active {
      color: var(--c-nav-hover) !important;
    }

    /* Séparateur vertical entre liens */
    #main-nav .nav-item + .nav-item .nav-link {
      border-left: 1px solid rgba(255,255,255,0.12);
    }

    #main-nav .navbar-toggler {
      border-color: rgba(255,255,255,0.3);
    }
    #main-nav .navbar-toggler-icon {
      filter: invert(1) brightness(2);
    }

    /* ══════════════════════════════════════════════════════════
       DROPDOWN NIVEAU 1 (sous-menu direct)
    ══════════════════════════════════════════════════════════ */

    /* Flèche du toggle : remplace la flèche Bootstrap par défaut */
    #main-nav .nav-link.dropdown-toggle::after,
    #main-nav .dropdown-item.dropdown-toggle::after {
      display: inline-block;
      vertical-align: middle;
      margin-left: 0.3rem;
      border: none;
      font-family: 'Bootstrap-icons';
      font-size: 0.65rem;
      line-height: 1;
      transition: transform .2s;
    }
    #main-nav .nav-link.dropdown-toggle::after      { content: '\F282'; } /* bi-chevron-down  */
    #main-nav .dropdown-item.dropdown-toggle::after { content: '\F285'; } /* bi-chevron-right */

    /* Rotation de la flèche quand ouvert */
    #main-nav .nav-item.dropdown.show > .nav-link.dropdown-toggle::after {
      transform: rotate(180deg);
    }

    /* Panneau du sous-menu */
    #main-nav .dropdown-menu {
      background-color: #111;
      border: 1px solid rgba(255,255,255,0.1);
      border-top: 2px solid var(--c-primary);
      border-radius: 0 0 4px 4px;
      padding: 0.3rem 0;
      min-width: 220px;
      margin-top: 0 !important;
      box-shadow: 0 8px 24px rgba(0,0,0,0.45);
      /* Animation d'apparition */
      animation: dropFade .18s ease forwards;
    }

    @keyframes dropFade {
      from { opacity: 0; transform: translateY(-6px); }
      to   { opacity: 1; transform: translateY(0);    }
    }

    /* Items du sous-menu */
    #main-nav .dropdown-item {
      color: rgba(255,255,255,0.78);
      font-size: 0.78rem;
      font-family: var(--f-body);
      padding: 0.5rem 1.1rem;
      transition: background .15s, color .15s, padding-left .15s;
      white-space: normal;         /* permet le retour à la ligne si titre long */
      display: flex;
      align-items: center;
      justify-content: space-between;
    }
    #main-nav .dropdown-item:hover,
    #main-nav .dropdown-item:focus {
      background-color: rgba(74,124,158,0.25);
      color: #fff;
      padding-left: 1.35rem;
    }
    #main-nav .dropdown-item.active {
      background-color: rgba(74,124,158,0.35);
      color: #fff;
    }

    /* Séparateur horizontal dans le menu */
    #main-nav .dropdown-divider {
      border-color: rgba(255,255,255,0.1);
      margin: 0.25rem 0;
    }

    /* En-tête de groupe (non-cliquable) */
    #main-nav .dropdown-header {
      color: var(--c-accent);
      font-size: 0.65rem;
      font-family: var(--f-body);
      letter-spacing: 0.12em;
      text-transform: uppercase;
      padding: 0.55rem 1.1rem 0.2rem;
    }

    /* ══════════════════════════════════════════════════════════
       DROPDOWN NIVEAU 2 (sous-sous-menu)
       Apparaît à droite de l'item parent
    ══════════════════════════════════════════════════════════ */
    #main-nav .dropdown-submenu {
      position: relative;
    }

    #main-nav .dropdown-submenu > .dropdown-menu {
      top: 0;
      left: 100%;
      margin-top: 0 !important;
      border-top: 2px solid var(--c-accent);
      border-radius: 0 4px 4px 4px;
      /* Caché par défaut */
      display: none;
      animation: none;
    }

    /* Ouverture au survol sur desktop */
    @media (min-width: 992px) {
      #main-nav .dropdown-submenu:hover > .dropdown-menu {
        display: block;
        animation: dropFade .18s ease forwards;
      }
    }

    /* Sur mobile : ouverture au clic (géré en JS) */
    #main-nav .dropdown-submenu > .dropdown-menu.show {
      display: block;
      position: static;
      border-left: 2px solid var(--c-accent);
      border-top: none;
      border-radius: 0;
      margin-left: 1rem !important;
      box-shadow: none;
      background-color: rgba(255,255,255,0.04);
    }

    /* ══════════════════════════════════════════════════════════
       RESPONSIVE MOBILE : dropdown plein largeur + indentation
    ══════════════════════════════════════════════════════════ */
    @media (max-width: 991.98px) {
      #main-nav .dropdown-menu {
        border-top: none;
        border-left: 2px solid var(--c-primary);
        border-radius: 0;
        margin-left: 0.8rem !important;
        box-shadow: none;
        background-color: rgba(255,255,255,0.04);
        animation: none;
      }
      /* Supprime la séparation verticale entre items sur mobile */
      #main-nav .nav-item + .nav-item .nav-link {
        border-left: none;
      }
    }

    /* ══════════════════════════════════════════════════════════
       COMPOSANT 2 – SLIDER HERO (carousel Bootstrap 5)
       Même principe que le hero statique :
         · hauteur fixe sur le wrapper
         · image en object-fit:cover, object-position configurable
         · voile dégradé pour la lisibilité
         · texte centré H+V (1 ou 2 lignes)
    ══════════════════════════════════════════════════════════ */

    /* ── Hauteur du slider ── */
    #hero-slider {
      height: 420px;         /* ← modifier ici pour changer la hauteur globale */
    }

    /* Chaque slide occupe toute la hauteur du carousel */
    #hero-slider .carousel-item {
      height: 420px;         /* doit correspondre à #hero-slider height         */
      background: #1b2d38;   /* couleur de fond pendant le chargement           */
      overflow: hidden;
    }

    /* ── Image de fond du slide ──
       object-position est défini en style inline sur chaque <img>
       pour permettre au rédacteur CMS de choisir le point focal  */
    #hero-slider .carousel-item img {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      /* object-position → défini en style inline sur chaque <img> */
      opacity: 0.55;
    }

    /* ── Voile dégradé (bas vers haut) ── */
    #hero-slider .carousel-item::after {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.15) 0%,
        rgba(0,0,0,0.55) 100%
      );
      pointer-events: none;
    }

    /* ── Texte centré H+V sur chaque slide ──
       Variante 1 ligne  : .hero-text.one-line  + <h2> seul
       Variante 2 lignes : .hero-text.two-lines + <h2> + <p class="hero-sub">  */
    #hero-slider .hero-text {
      position: absolute;
      inset: 0;
      z-index: 10;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      text-align: center;
      padding: 0 2rem;
    }

    #hero-slider .hero-text h2 {
      font-size: clamp(1.3rem, 3vw, 2rem);
      font-family: var(--f-title);
      font-weight: 400;
      color: #fff;
      margin-bottom: 0.6rem;
      text-shadow: 0 1px 8px rgba(0,0,0,0.5);
      max-width: 800px;
    }
    #hero-slider .hero-text.one-line h2 {
      margin-bottom: 0;
    }

    #hero-slider .hero-text p.hero-sub {
      font-size: 0.9rem;
      font-family: var(--f-body);
      font-style: italic;
      color: rgba(255,255,255,0.88);
      margin: 0;
      text-shadow: 0 1px 4px rgba(0,0,0,0.4);
      max-width: 640px;
    }

    /* ── Flèches de navigation ── */
    #hero-slider .carousel-control-prev,
    #hero-slider .carousel-control-next {
      width: 44px;
      opacity: 1;
      z-index: 20;
    }
    #hero-slider .carousel-control-prev-icon,
    #hero-slider .carousel-control-next-icon {
      width: 28px;
      height: 28px;
      background-color: rgba(0,0,0,0.45);
      border-radius: 50%;
      background-size: 55%;
      padding: 6px;
    }
    #hero-slider .carousel-control-prev:hover .carousel-control-prev-icon,
    #hero-slider .carousel-control-next:hover .carousel-control-next-icon {
      background-color: rgba(0,0,0,0.75);
    }

    /* ── Indicateurs (pastilles bas de slide) ── */
    #hero-slider .carousel-indicators {
      z-index: 20;
      margin-bottom: 0.6rem;
    }
    #hero-slider .carousel-indicators [data-bs-target] {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      border: none;
      background-color: rgba(255,255,255,0.5);
      transition: background-color .3s, transform .3s;
      margin: 0 4px;
    }
    #hero-slider .carousel-indicators .active {
      background-color: #fff;
      transform: scale(1.25);
    }

    /* ══════════════════════════════════════════════════════════
       COMPOSANT 2b – HERO STATIQUE (sans slider)
       Utilisable indépendamment du carousel.

       Structure HTML :
         <section class="hero-section">
           <img class="hero-bg"
                src="image.jpg" alt="…"
                style="object-position: center 70%;" />
           <div class="hero-text two-lines">   ← ou one-line
             <h1>Titre</h1>
             <p class="hero-sub">Sous-titre</p>   ← supprimer pour 1 ligne
           </div>
         </section>

       La hauteur est identique au slider : 420px (responsive : 300 / 240px).
       Même principe object-position que le hero slider.
    ══════════════════════════════════════════════════════════ */

    .hero-section {
      position: relative;
      width: 100%;
      height: 420px;
      overflow: hidden;
      background: #1b2d38;
    }

    .hero-section img.hero-bg {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      /* object-position défini en style inline sur chaque <img> */
      opacity: 0.99;
    }

    /* Voile dégradé bas → haut */
    .hero-section::after {
      content: '';
      position: absolute;
      inset: 0;
	  /*
      background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.15) 0%,
        rgba(0,0,0,0.55) 100%
      );
	  */
      pointer-events: none;
    }

    /* Texte centré H+V — partagé avec le slider */
    .hero-section .hero-text {
      position: absolute;
      inset: 0;
      z-index: 10;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      text-align: center;
      padding: 0 2rem;
    }

    /* Variante 1 ligne */
    .hero-section .hero-text.one-line h1 {
      font-size: clamp(1.4rem, 3.5vw, 2.2rem);
      font-family: var(--f-title);
      font-weight: 400;
      color: #fff;
      margin: 0;
      text-shadow: 0 1px 8px rgba(0,0,0,0.5);
      max-width: 800px;
    }

    /* Variante 2 lignes */
    .hero-section .hero-text.two-lines h1 {
      font-size: clamp(1.3rem, 3vw, 2rem);
      font-family: var(--f-title);
      font-weight: 400;
      color: #fff;
      margin-bottom: 0.6rem;
      text-shadow: 0 1px 8px rgba(0,0,0,0.5);
      max-width: 800px;
    }
    .hero-section .hero-text p.hero-sub {
      font-size: 0.9rem;
      font-family: var(--f-body);
      font-style: italic;
      color: rgba(255,255,255,0.88);
      margin: 0;
      text-shadow: 0 1px 4px rgba(0,0,0,0.4);
      max-width: 640px;
    }

    /* ══════════════════════════════════════════════════════════
       MISE EN PAGE : contenu principal + sidebar droite
    ══════════════════════════════════════════════════════════ */
    .page-body {
      max-width: 1140px;
      margin: 0 auto;
      padding: 1rem 1rem 3rem;
      display: flex;
      align-items: flex-start;
      gap: 2rem;
    }

    /* ── CONTENU PRINCIPAL ── */
    .main-content {
      flex: 1;
      min-width: 0;
    }

    /* ══════════════════════════════════════════════════════════
       COMPOSANT 3b – IMAGES AVEC TEXTE EN OVERLAP (inline)
       Réutilisable dans le contenu principal
    ══════════════════════════════════════════════════════════ */
    .img-caption-block {
      position: relative;
      border-radius: 3px;
      overflow: hidden;
      margin-bottom: 1.5rem;
    }
    .img-caption-block img {
      display: block;
      width: 100%;
      height: 220px;
      object-fit: cover;
      transition: transform .5s ease;
    }
    .img-caption-block:hover img {
      transform: scale(1.04);
    }

    /* Overlap 1 ligne */
    .img-caption-block .caption-1line {
      position: absolute;
      bottom: 0; left: 0; right: 0;
      background: linear-gradient(transparent, rgba(0,0,0,0.72));
      padding: 1.8rem 1rem 0.8rem;
    }
    .img-caption-block .caption-1line h3 {
      color: #fff;
      font-size: 1rem;
      margin: 0;
      text-shadow: 0 1px 4px rgba(0,0,0,0.4);
    }

    /* Overlap 2 lignes */
    .img-caption-block .caption-2lines {
      position: absolute;
      bottom: 0; left: 0; right: 0;
      background: linear-gradient(transparent, rgba(0,0,0,0.78));
      padding: 2rem 1rem 0.9rem;
    }
    .img-caption-block .caption-2lines h3 {
      color: #fff;
      font-size: 0.95rem;
      margin-bottom: 0.2rem;
      text-shadow: 0 1px 4px rgba(0,0,0,0.4);
    }
    .img-caption-block .caption-2lines p {
      color: rgba(255,255,255,0.82);
      font-size: 0.78rem;
      margin: 0;
      font-style: italic;
    }

    /* ══════════════════════════════════════════════════════════
       COMPOSANT 3 – SIDEBAR DROITE (sticky / fixe)
    ══════════════════════════════════════════════════════════ */
    .sidebar {
      width: 280px;
      flex-shrink: 0;
    }

    .sidebar-inner {
      position: sticky;
      top: calc(var(--navbar-h) + 1rem);
    }

    /* Carte générique sidebar */
    .sidebar-widget {
      background: var(--c-sidebar-bg);
      border: 1px solid var(--c-border);
      border-top: 3px solid var(--c-primary);
      border-radius: 0 0 3px 3px;
      padding: 1.25rem 1.2rem;
      margin-bottom: 1.25rem;
      font-size: 0.83rem;
    }

    .sidebar-widget h4 {
      font-family: var(--f-title);
      font-size: 0.95rem;
      font-weight: 700;
      color: var(--c-primary);
      margin-bottom: 1rem;
      padding-bottom: 0.5rem;
      border-bottom: 1px solid var(--c-border);
    }

    /* Bloc contact dans la sidebar (fidèle au site réel) */
    .sidebar-contact p {
      margin-bottom: 0.3rem;
      color: var(--c-text);
      line-height: 1.55;
    }
    .sidebar-contact .label {
      font-weight: 600;
      display: block;
    }
    .sidebar-contact a {
      color: var(--c-link);
    }
    .sidebar-contact a:hover {
      text-decoration: underline;
    }
    .sidebar-contact .meta-row {
      font-size: 0.78rem;
      color: var(--c-text-muted);
      margin-bottom: 0.15rem;
    }

    /* Navigation rapide sidebar */
    .sidebar-nav-links {
      list-style: none;
      padding: 0; margin: 0;
    }
    .sidebar-nav-links li {
      border-bottom: 1px solid var(--c-border);
    }
    .sidebar-nav-links li:last-child {
      border-bottom: none;
    }
    .sidebar-nav-links li a {
      display: block;
      padding: 0.45rem 0;
      color: var(--c-link);
      font-size: 0.83rem;
      transition: padding-left .2s, color .2s;
    }
    .sidebar-nav-links li a:hover {
      padding-left: 0.5rem;
      color: var(--c-primary-dk);
      text-decoration: none;
    }

    /* ══════════════════════════════════════════════════════════
       COMPOSANT 4 – FOOTER
    ══════════════════════════════════════════════════════════ */
    footer.site-footer {
      background: var(--c-footer-bg);
      color: var(--c-footer-text);
      font-size: 0.82rem;
    }

    footer.site-footer .footer-main {
      padding: 2.5rem 0 2rem;
      border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    footer.site-footer .footer-col-title {
      font-family: var(--f-title);
      font-size: 0.85rem;
      font-weight: 700;
      color: #fff;
      margin-bottom: 0.9rem;
      padding-bottom: 0.4rem;
      border-bottom: 1px solid rgba(255,255,255,0.15);
    }

    footer.site-footer .footer-brand-name {
      font-family: var(--f-title);
      font-size: 1.1rem;
      color: #fff;
      margin-bottom: 0.2rem;
    }
    footer.site-footer .footer-brand-sub {
      font-size: 0.72rem;
      color: var(--c-accent);
      letter-spacing: 0.05em;
      text-transform: uppercase;
      margin-bottom: 0.9rem;
    }

    footer.site-footer ul {
      list-style: none;
      padding: 0; margin: 0;
    }
    footer.site-footer ul li {
      margin-bottom: 0.4rem;
    }
    footer.site-footer ul li a {
      color: var(--c-footer-text);
      transition: color .2s;
    }
    footer.site-footer ul li a:hover {
      color: #fff;
      text-decoration: none;
    }

    footer.site-footer .footer-contact-line {
      display: flex;
      gap: 0.5rem;
      align-items: flex-start;
      margin-bottom: 0.45rem;
    }
    footer.site-footer .footer-contact-line i {
      color: var(--c-accent);
      margin-top: 0.1rem;
      flex-shrink: 0;
    }

    footer.site-footer .footer-bottom {
      padding: 1rem 0;
      text-align: center;
      font-size: 0.75rem;
      background: var(--c-footer-bg);
      color: rgba(255,255,255,0.4);
    }
    footer.site-footer .footer-bottom a {
      color: rgba(255,255,255,0.5);
    }
    footer.site-footer .footer-bottom a:hover {
      color: var(--c-accent);
      text-decoration: none;
    }

    /* ══════════════════════════════════════════════════════════
       COMPOSANT – CONTENT ROW (section pleine largeur + colonnes)

       Structure HTML :
         <section class="content-row bg-[variante]">
           <div class="content-row-inner">
             <div class="row g-4">
               <div class="col-md-4"> … </div>
               …
             </div>
           </div>
         </section>

       Variantes de fond disponibles (ajouter la classe sur <section>) :
         (aucune classe)      → fond blanc  (#ffffff)
         .bg-row-light        → fond gris très clair (#f7f9fb)
         .bg-row-primary      → fond couleur primaire (#4a7c9e) — texte blanc
         .bg-row-primary-dark → fond primaire foncé  (#2d5f7a) — texte blanc
         .bg-row-dark         → fond ardoise sombre  (#2b3d4a) — texte blanc
         .bg-row-sand         → fond sable/crème     (#f5f0e8)

       Padding vertical configurable via --row-py (défaut 3rem)
    ══════════════════════════════════════════════════════════ */

    .content-row {
      --row-py: 3rem;          /* ← espacement vertical, modifiable inline  */
      width: 100%;
      padding: var(--row-py) 0;
      background-color: #ffffff;   /* défaut : blanc */
    }

    /* Conteneur intérieur aligné sur la même largeur que .page-body */
    .content-row-inner {
      max-width: 1140px;
      margin: 0 auto;
      padding: 0 1rem;
    }

    /* Titre de section dans la row */
    .content-row .row-title {
      font-family: var(--f-title);
      font-size: 1.25rem;
      font-weight: 400;
      margin-bottom: 1.5rem;
      padding-bottom: 0.5rem;
      border-bottom: 2px solid var(--c-border);
    }

    /* ── Variantes de couleur de fond ── */
    .bg-row-light {
      background-color: #f7f9fb;
    }
    .bg-row-sand {
      background-color: #f5f0e8;
    }
    .bg-row-primary {
      background-color: var(--c-primary);
    }
    .bg-row-primary-dark {
      background-color: var(--c-primary-dk);
    }
    .bg-row-dark {
      background-color: #2b3d4a;
    }

    /* Sur fond coloré : texte en blanc */
    .bg-row-primary .row-title,
    .bg-row-primary-dark .row-title,
    .bg-row-dark .row-title {
      color: #fff;
      border-bottom-color: rgba(255,255,255,0.25);
    }
    .bg-row-primary p,
    .bg-row-primary-dark p,
    .bg-row-dark p,
    .bg-row-primary h1, .bg-row-primary h2, .bg-row-primary h3,
    .bg-row-primary h4, .bg-row-primary h5,
    .bg-row-primary-dark h1, .bg-row-primary-dark h2, .bg-row-primary-dark h3,
    .bg-row-dark h1, .bg-row-dark h2, .bg-row-dark h3 {
      color: rgba(255,255,255,0.9);
    }
    .bg-row-primary a,
    .bg-row-primary-dark a,
    .bg-row-dark a {
      color: rgba(255,255,255,0.75);
    }
    .bg-row-primary a:hover,
    .bg-row-primary-dark a:hover,
    .bg-row-dark a:hover {
      color: #fff;
    }

    /* ── Carte colonne simple (legacy, conservée pour compatibilité) ── */
    .col-card {
      background: rgba(255,255,255,0.08);
      border: 1px solid rgba(255,255,255,0.15);
      border-radius: 3px;
      padding: 1.25rem 1.2rem;
    }
    .content-row:not([class*="bg-row-"]) .col-card,
    .bg-row-light .col-card,
    .bg-row-sand .col-card {
      background: #fff;
      border-color: var(--c-border);
      box-shadow: 0 1px 6px rgba(74,124,158,0.07);
    }
    .col-card h3 { font-size: 1rem; margin-bottom: 0.6rem; }
    .col-card p  { font-size: 0.85rem; margin: 0; }

    /* ══════════════════════════════════════════════════════════
       COMPOSANT – CARTE (.cms-card)
       Utilisable dans toute colonne Bootstrap (col-md-*, etc.)

       Anatomie :
         .cms-card                   → conteneur de base
         .cms-card-img               → image en haut (optionnelle)
         .cms-card-body              → zone de contenu (padding)
         .cms-card-icon              → icône Bootstrap (optionnelle)
         .cms-card-title             → titre de la carte
         .cms-card-text              → paragraphe de contenu
         .cms-card-footer            → bas de carte (lien, bouton…)

       Variantes de style (ajouter sur .cms-card) :
         .cms-card--bordered         → bordure simple, sans ombre
         .cms-card--shadow           → ombre portée (défaut)
         .cms-card--accent-top       → filet coloré en haut
         .cms-card--accent-left      → filet coloré à gauche
         .cms-card--filled           → fond couleur primaire, texte blanc
         .cms-card--filled-dark      → fond sombre, texte blanc

       Hauteur uniforme dans une row :
         Ajouter .h-100 sur .cms-card  +  flex-direction:column sur .cms-card-body
    ══════════════════════════════════════════════════════════ */

    .cms-card {
      display: flex;
      flex-direction: column;
      background: #fff;
      border: 1px solid var(--c-border);
      border-radius: 4px;
      overflow: hidden;
      transition: box-shadow .25s, transform .25s;
      height: 100%;          /* s'étire pour égaliser dans la row */
    }
    .cms-card:hover {
      box-shadow: 0 6px 24px rgba(74,124,158,0.13);
      transform: translateY(-2px);
    }

    /* ── Image en haut de carte ── */
    .cms-card-img {
      width: 100%;
      height: 180px;
      object-fit: cover;
      display: block;
      flex-shrink: 0;
      /* object-position configurable en style inline (même principe que le hero) */
    }

    /* ── Corps de la carte ── */
    .cms-card-body {
      flex: 1;
      padding: 1.2rem 1.25rem;
      display: flex;
      flex-direction: column;
    }

    /* ── Icône optionnelle ── */
    .cms-card-icon {
      font-size: 1.75rem;
      color: var(--c-primary);
      margin-bottom: 0.65rem;
      line-height: 1;
    }

    /* ── Titre ── */
    .cms-card-title {
      font-family: var(--f-title);
      font-size: 1rem;
      font-weight: 400;
      color: var(--c-primary);
      margin-bottom: 0.5rem;
      line-height: 1.3;
    }

    /* ── Texte ── */
    .cms-card-text {
      font-size: 0.85rem;
      color: var(--c-text);
      line-height: 1.7;
      flex: 1;               /* pousse le footer vers le bas */
      margin-bottom: 0;
    }

    /* ── Pied de carte ── */
    .cms-card-footer {
      padding: 0.8rem 1.25rem;
      border-top: 1px solid var(--c-border);
      background: transparent;
      font-size: 0.8rem;
    }
    .cms-card-footer a {
      color: var(--c-primary);
      font-weight: 600;
      text-decoration: none;
      display: inline-flex;
      align-items: center;
      gap: 0.3rem;
      transition: gap .2s, color .2s;
    }
    .cms-card-footer a:hover {
      color: var(--c-primary-dk);
      gap: 0.55rem;
    }

    /* ── Variante : bordure seule, pas d'ombre ── */
    .cms-card--bordered {
      box-shadow: none;
    }
    .cms-card--bordered:hover {
      box-shadow: none;
      transform: none;
      border-color: var(--c-primary);
    }

    /* ── Variante : ombre portée accentuée ── */
    .cms-card--shadow {
      box-shadow: 0 2px 12px rgba(74,124,158,0.10);
    }

    /* ── Variante : filet coloré en haut ── */
    .cms-card--accent-top {
      border-top: 3px solid var(--c-primary);
    }

    /* ── Variante : filet coloré à gauche ── */
    .cms-card--accent-left {
      border-left: 3px solid var(--c-primary);
      border-radius: 0 4px 4px 0;
    }

    /* ── Variante : fond couleur primaire ── */
    .cms-card--filled {
      background: var(--c-primary);
      border-color: var(--c-primary);
    }
    .cms-card--filled .cms-card-icon,
    .cms-card--filled .cms-card-title { color: #fff; }
    .cms-card--filled .cms-card-text  { color: rgba(255,255,255,0.85); }
    .cms-card--filled .cms-card-footer {
      border-top-color: rgba(255,255,255,0.2);
    }
    .cms-card--filled .cms-card-footer a { color: #fff; }
    .cms-card--filled .cms-card-footer a:hover { color: rgba(255,255,255,0.75); }

    /* ── Variante : fond sombre ── */
    .cms-card--filled-dark {
      background: #2b3d4a;
      border-color: #2b3d4a;
    }
    .cms-card--filled-dark .cms-card-icon  { color: var(--c-accent); }
    .cms-card--filled-dark .cms-card-title { color: #fff; }
    .cms-card--filled-dark .cms-card-text  { color: rgba(255,255,255,0.75); }
    .cms-card--filled-dark .cms-card-footer {
      border-top-color: rgba(255,255,255,0.15);
    }
    .cms-card--filled-dark .cms-card-footer a { color: var(--c-accent); }
    .cms-card--filled-dark .cms-card-footer a:hover { color: #fff; }

    /* ══════════════════════════════════════════════════════════
       COMPOSANT – SECTION TEXTE + IMAGE (.cms-section)
       Pleine largeur avec fond configurable, titre, texte HTML
       et image positionnée à gauche ou à droite.

       Structure HTML :
         <section class="cms-section bg-row-[variante]">
           <div class="cms-section-inner">
             <div class="cms-section-img">
               <img src="…" alt="…" style="object-position: …;" />
             </div>
             <div class="cms-section-body">
               <h2 class="cms-section-title">Titre</h2>
               <div class="cms-section-text">
                 <p>Texte HTML libre…</p>
               </div>
             </div>
           </div>
         </section>

       Variantes de disposition (ajouter sur .cms-section) :
         (aucune)             → image à GAUCHE  (défaut)
         .img-right           → image à DROITE

       Variantes de fond (mêmes classes que content-row) :
         (aucune)             → blanc
         .bg-row-light        → gris très clair
         .bg-row-sand         → sable / crème
         .bg-row-primary      → bleu primaire, texte blanc
         .bg-row-primary-dark → bleu foncé, texte blanc
         .bg-row-dark         → ardoise sombre, texte blanc

       Proportions configurables via style inline sur <section> :
         --img-w   largeur de la colonne image  (défaut : 42%)
         --gap     espace entre image et texte  (défaut : 3rem)
         --py      padding vertical             (défaut : 3.5rem)
    ══════════════════════════════════════════════════════════ */

    .cms-section {
      --img-w: 42%;
      --gap:   3rem;
      --py:    3.5rem;
      width: 100%;
      padding: var(--py) 0;
      background-color: #ffffff;
    }

    /* Réutilise les variantes de fond du content-row */
    .cms-section.bg-row-light        { background-color: #f7f9fb; }
    .cms-section.bg-row-sand         { background-color: #f5f0e8; }
    .cms-section.bg-row-primary      { background-color: var(--c-primary); }
    .cms-section.bg-row-primary-dark { background-color: var(--c-primary-dk); }
    .cms-section.bg-row-dark         { background-color: #2b3d4a; }

    /* Conteneur intérieur – flex horizontal */
    .cms-section-inner {
      max-width: 1140px;
      margin: 0 auto;
      padding: 0 1rem;
      display: flex;
      align-items: center;
      gap: var(--gap);
    }

    /* ── Colonne image ── */
    .cms-section-img {
      flex: 0 0 var(--img-w);
      width: var(--img-w);
      border-radius: 4px;
      overflow: hidden;
      order: 1;                  /* gauche par défaut */
    }

    .cms-section-img img {
      display: block;
      width: 100%;
      height: 100%;
      min-height: 260px;
      max-height: 400px;
      object-fit: cover;
      /* object-position → défini en style inline sur chaque <img> */
    }

    /* ── Colonne texte ── */
    .cms-section-body {
      flex: 1;
      order: 2;                  /* droite par défaut */
    }

    /* ── Image à DROITE : inversion des ordres ── */
    .cms-section.img-right .cms-section-img  { order: 2; }
    .cms-section.img-right .cms-section-body { order: 1; }

    /* ── Titre ── */
    .cms-section-title {
      font-family: var(--f-title);
      font-size: 1.35rem;
      font-weight: 400;
      color: var(--c-primary);
      margin-bottom: 0.5rem;
      padding-bottom: 0.5rem;
      border-bottom: 2px solid var(--c-border);
      line-height: 1.3;
    }

    /* ── Zone de texte HTML libre ── */
    .cms-section-text {
      font-size: 0.9rem;
      line-height: 1.8;
      color: var(--c-text);
      margin-top: 1rem;
    }
    .cms-section-text p        { margin-bottom: 0.85rem; }
    .cms-section-text ul,
    .cms-section-text ol       { padding-left: 1.2rem; margin-bottom: 0.85rem; }
    .cms-section-text li       { margin-bottom: 0.3rem; }
    .cms-section-text a        { color: var(--c-link); }
    .cms-section-text strong   { font-weight: 600; }
    .cms-section-text h3       { font-size: 1rem; margin: 1rem 0 0.4rem; }

    /* ── Adaptation sur fonds colorés ── */
    .cms-section.bg-row-primary .cms-section-title,
    .cms-section.bg-row-primary-dark .cms-section-title,
    .cms-section.bg-row-dark .cms-section-title {
      color: #fff;
      border-bottom-color: rgba(255,255,255,0.25);
    }
    .cms-section.bg-row-primary .cms-section-text,
    .cms-section.bg-row-primary-dark .cms-section-text,
    .cms-section.bg-row-dark .cms-section-text {
      color: rgba(255,255,255,0.88);
    }
    .cms-section.bg-row-primary .cms-section-text a,
    .cms-section.bg-row-primary-dark .cms-section-text a,
    .cms-section.bg-row-dark .cms-section-text a {
      color: rgba(255,255,255,0.75);
    }

    /* ── Responsive : colonne unique sur mobile ── */
    @media (max-width: 767.98px) {
      .cms-section-inner {
        flex-direction: column;
        gap: 1.5rem;
      }
      .cms-section-img,
      .cms-section.img-right .cms-section-img {
        flex: none;
        width: 100%;
        order: 1;               /* image toujours en premier sur mobile */
      }
      .cms-section-body,
      .cms-section.img-right .cms-section-body {
        order: 2;
      }
    }

    /* ══════════════════════════════════════════════════════════
       RESPONSIVE
    ══════════════════════════════════════════════════════════ */
    @media (max-width: 991.98px) {
      .page-body { flex-direction: column; }
      .sidebar { width: 100%; }
      .sidebar-inner { position: static; }
      /* Hero statique */
      .hero-section { height: 300px; }
      /* Hero slider */
      #hero-slider,
      #hero-slider .carousel-item { height: 300px; }
    }

    @media (max-width: 575.98px) {
      /* Hero statique */
      .hero-section { height: 240px; }
      /* Hero slider */
      #hero-slider,
      #hero-slider .carousel-item { height: 240px; }
    }

    /* ══════════════════════════════════════════════════════════
       COMPOSANT – GALERIE D'IMAGES (.cms-gallery)
       Grille de miniatures cliquables → lightbox plein écran.

       Structure HTML :
         <section class="cms-section bg-row-[variante]">  ← fond optionnel
           <div class="cms-section-inner">
             <div class="cms-gallery" data-cols="4">      ← 2 | 3 | 4 | 5
               <figure class="cms-gallery-item">
                 <img src="miniature.jpg"
                      data-full="grande-image.jpg"
                      data-caption="Légende optionnelle"
                      alt="Description"
                      style="object-position: center center;" />
                 <figcaption>Légende sous miniature</figcaption>
               </figure>
               …
             </div>
           </div>
         </section>

       Si data-full est absent, l'image src est utilisée en plein écran.
    ══════════════════════════════════════════════════════════ */

    /* ── Grille de miniatures ── */
    .cms-gallery {
      --cols: 3;
      display: grid;
      grid-template-columns: repeat(var(--cols), 1fr);
      gap: 0.6rem;
      width: 100%;
    }
    .cms-gallery[data-cols="2"] { --cols: 2; }
    .cms-gallery[data-cols="3"] { --cols: 3; }
    .cms-gallery[data-cols="4"] { --cols: 4; }
    .cms-gallery[data-cols="5"] { --cols: 5; }

    /* ── Cellule ── */
    .cms-gallery-item {
      margin: 0;
      position: relative;
      overflow: hidden;
      border-radius: 3px;
      cursor: zoom-in;
      background: var(--c-border);
    }
    .cms-gallery-item img {
      display: block;
      width: 100%;
      aspect-ratio: 4 / 3;
      object-fit: cover;
      transition: transform .4s ease, filter .4s ease;
    }
    .cms-gallery-item:hover img {
      transform: scale(1.06);
      filter: brightness(0.82);
    }

    /* Icône loupe au survol */
    .cms-gallery-item::after {
      content: '\F52A';
      font-family: 'Bootstrap-icons';
      position: absolute;
      inset: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.6rem;
      color: #fff;
      opacity: 0;
      transition: opacity .3s;
      pointer-events: none;
      text-shadow: 0 1px 6px rgba(0,0,0,0.5);
    }
    .cms-gallery-item:hover::after { opacity: 1; }

    /* Légende sous miniature */
    .cms-gallery-item figcaption {
      font-size: 0.72rem;
      color: var(--c-text-muted);
      text-align: center;
      padding: 0.3rem 0.4rem 0;
      line-height: 1.3;
    }

    /* Titre de galerie */
    .cms-gallery-title {
      font-family: var(--f-title);
      font-size: 1.25rem;
      font-weight: 400;
      color: var(--c-primary);
      margin-bottom: 1.2rem;
      padding-bottom: 0.5rem;
      border-bottom: 2px solid var(--c-border);
    }

    /* ── Responsive ── */
    @media (max-width: 767.98px) {
      .cms-gallery[data-cols="4"],
      .cms-gallery[data-cols="5"] { --cols: 3; }
    }
    @media (max-width: 575.98px) {
      .cms-gallery { --cols: 2 !important; }
    }

    /* ══════════════════════════════════════════════════════════
       LIGHTBOX
    ══════════════════════════════════════════════════════════ */
    #cms-lightbox {
      display: none;
      position: fixed;
      inset: 0;
      z-index: 2000;
      background: rgba(0,0,0,0.93);
      flex-direction: column;
      align-items: center;
      justify-content: center;
      padding: 1rem;
    }
    #cms-lightbox.open { display: flex; }

    #cms-lightbox-close {
      position: absolute;
      top: 1rem; right: 1.2rem;
      background: none;
      border: none;
      color: rgba(255,255,255,0.7);
      font-size: 2rem;
      line-height: 1;
      cursor: pointer;
      transition: color .2s;
      z-index: 10;
    }
    #cms-lightbox-close:hover { color: #fff; }

    .cms-lightbox-arrow {
      position: absolute;
      top: 50%; transform: translateY(-50%);
      background: none;
      border: none;
      color: rgba(255,255,255,0.55);
      font-size: 2.2rem;
      cursor: pointer;
      transition: color .2s;
      z-index: 10;
      padding: 0.5rem;
      line-height: 1;
    }
    .cms-lightbox-arrow:hover { color: #fff; }
    #cms-lightbox-prev { left:  0.8rem; }
    #cms-lightbox-next { right: 0.8rem; }

    #cms-lightbox-img {
      max-width:  min(90vw, 1100px);
      max-height: 80vh;
      object-fit: contain;
      border-radius: 3px;
      box-shadow: 0 8px 48px rgba(0,0,0,0.6);
      display: block;
      transition: opacity .2s;
    }
    #cms-lightbox-img.fading { opacity: 0; }

    #cms-lightbox-caption {
      color: rgba(255,255,255,0.65);
      font-size: 0.82rem;
      margin-top: 0.75rem;
      font-style: italic;
      text-align: center;
      min-height: 1.2rem;
    }

    #cms-lightbox-counter {
      position: absolute;
      bottom: 1.1rem; left: 50%;
      transform: translateX(-50%);
      color: rgba(255,255,255,0.35);
      font-size: 0.75rem;
      letter-spacing: 0.1em;
    }
/* Variante auto-détectée par JS */
#main-nav .dropdown-submenu.drop-left > .dropdown-menu {
  left: auto;
  right: 100%;
  border-radius: 4px 0 4px 4px;
}

@media (max-width: 991.98px) {
  #main-nav .dropdown-submenu.drop-left > .dropdown-menu.show {
    right: auto;
    margin-left: 1rem !important;
  }
}