:root {
    /* Base Colors */
    --primary: #156C88;
    --primary-dark: #0e4e63;
    --ink: #0F172A;
    --body-text: #475569;
    --white: #ffffff;
    --black: #000000;
    --bg-page: var(--white);

    /* UI Elements */
    --muted: #e2e8f0;
    --muted-2: #d1d5db;
    --muted-foreground: #94A3B8;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

    /* Volets Colors */
    --v1: #B2D235;  /* Santé */
    --v1-dark: #475415;
    --v2: #00AEE7; /* Éducation */
    --v3: #B44A9C; /* Emploi */
    --v4: #E54E26; /* Autochtones */
    --v5: #FDB940; /* Citoyenneté */
    --v5-dark: #654A1A;

    /* Primary Scale */
    --primary-10: #ECF3F5;
    --primary-20: #E3EEF1;
    --primary-30: #D9E8EC;
    --primary-100: #D0E2E7;
    --primary-200: #A1C4CF;
    --primary-300: #73A7B8;
    --primary-400: #4489A0;
    --primary-600: #11566D;
    --primary-700: #0D4152;
    --primary-800: #082B36;
    --primary-900: #04161B;

    /* Backgrounds & Others */
    --bg-light-grey: #F8FAFC;
    --bg-light-blue: #F0F7F9;
    --field-bg: #F8FAFC;
    --card-border: #E2E8F0;

    /* Spacing & Layout */
    --header-height: 120px;
    --container-width: 1280px;
    --gutter: 2rem;
    --section-padding: 80px;

    /* Fonts */
    --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

/* ==========================================================================
   1. Global Reset & Base
   ========================================================================== */
body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--body-text);
    background-color: var(--bg-page);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    line-height: 1.6;
}

/*Pages volets 1=santé 2=education 3=emploi 4=autochtones 5=citoyenneté*/
body.volet-1 {
    --current-volet-color: var(--v1);
}

body.volet-2 {
    --current-volet-color: var(--v2);
}

body.volet-3 {
    --current-volet-color: var(--v3);
}
body.volet-4 {
    --current-volet-color: var(--v4);
}
body.volet-5 {
    --current-volet-color: var(--v5);
}

/*Pages volets */

.font-weight-semibold {
    font-weight: 600 !important;
}

.font-weight-bold {
    font-weight: 700 !important;
}

h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
    color: var(--ink);
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 0.5rem;
}

section:not(.hero-section):not(.volets-full-section):not(.crj-global-search):not(.tab-pane){
    padding: var(--section-padding) 0;
}

.container-custom {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

#main-content {
    background-color: white;
}

/* ==========================================================================
   2. Header & Main Navigation
   ========================================================================== */

.mega__inner--volets .last-word {
    display: block;
}
   
.crj-header {
    background: var(--white);
    z-index: 100;
    width: 100%;
    border-bottom: 2px solid rgba(0, 0, 0, 0.05);
    padding: 15px 0;/*38px 0;*/
}

.crj-header .container-custom {
    position: relative;
}

.crj-header__grid {
    display: grid;
    grid-template-columns: auto 1fr;
    width: 100%;
    align-items: stretch;
}

/* --- Brand & Logo --- */
.crj-left {
    display: flex;
    align-items: center;
    padding-right: 2.5rem;
    position: relative;
}

.crj-left::after {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 100%;
    width: 1px;
    background-color: var(--muted-2);
}

.crj-brand {
    gap: 1.25rem;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s;
}

.crj-brand:hover {
    opacity: 0.9;
    color: inherit;
}

.crj-brand__logo {
    width: 85px;
    height: auto;
    object-fit: contain;
}

.crj-brand__text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.crj-brand__title,
.crj-brand__subtitle {
    margin: 0;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.2;
    font-size: 1.15rem;
    white-space: nowrap;
}

.crj-brand__titlevolet {
   color: var(--current-volet-color); 
}

/* --- Actions & Nav Area --- */
.crj-right {
    display: flex;
    flex-direction: column;
    padding-left: 2.5rem;
}

.crj-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.75rem;
    padding-bottom: 9px;
    border-bottom: 1px solid var(--muted-2);
    margin-bottom: 9px;
}

.action-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 0.35rem 0.75rem;
    background: #fff;
    color: #475569;
    height: 32px;
}

.action-link:hover {
    background: #f3f4f6;
    color: var(--ink);
    border-color: #d1d5db;
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.action-icon {
    width: 16px;
    height: 16px;
    stroke-width: 2px;
}

.crj-nav {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1.5rem;
}

.crj-nav__item {
    position: static;
    display: flex;
    align-items: center;
}

.crj-nav__link {
    display: block;
    padding: 0.5rem 0;
    text-decoration: none;
    color: var(--ink);
    font-weight: 700;
    font-size: 0.95rem;
    position: relative;
    transition: color 0.2s;
}

.crj-nav__link:hover {
    color: var(--primary);
}

.crj-nav__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.crj-nav__item:hover .crj-nav__link::after {
    width: 100%;
}

/* ==========================================================================
   3. Mega Menu
   ========================================================================== */

.mega {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: #fff;
  border-top: 1px solid var(--muted);
  box-shadow: var(--shadow-xl);
  display: none;
  z-index: 1000;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  overflow: hidden;
}

.mega__inner {
  padding: 2rem var(--gutter);
  width: 100%;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.mega__col {
  display: flex;
  flex-direction: column;
  background-color: #f9fafb;
  border-radius: 12px;
  padding: 1.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  border: 1px solid transparent;
}

.mega__col:hover {
  background-color: #f3f4f6;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.mega__title,
.mega h2.mega__title {
  font-weight: 700;
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e5e7eb;
}

.mega__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mega__list a {
  text-decoration: none;
  color: #4b5563;
  font-size: 0.95rem;
  transition: transform 0.25s ease-in-out, color 0.25s ease-in-out;
  display: inline-block;
}

.mega__list a:hover {
  color: var(--ink);
  transform: translateX(4px);
}

/* ==========================================================================
   Volets – Mega Menu
   ========================================================================== */

/* layout volets */
.is_mega_menu_volets .mega__inner,
.mega__inner--volets {
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
}

/* reset look “cards” */
.is_mega_menu_volets .mega__col,
.mega__inner--volets .mega__col {
  background: transparent;
  border-radius: 0;
  padding: 1rem 0 0;
  border: none;
  position: relative;
  box-shadow: none;
}

.is_mega_menu_volets .mega__col:hover,
.mega__inner--volets .mega__col:hover {
  background: transparent;
  box-shadow: none;
  transform: translateY(-2px);
}

/* barre couleur (utilise la variable) */
.is_mega_menu_volets .mega__col::before,
.mega__inner--volets .mega__col::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 32px;
  height: 4px;
  border-radius: 2px;
  background: var(--volet-color, var(--v1));
}

/* titre volet (utilise la variable) */
.is_mega_menu_volets .mega__title,
.is_mega_menu_volets h2.mega__title,
.mega__inner--volets .mega__title,
.mega__inner--volets h2.mega__title {
  color: var(--volet-color, var(--v1));
  border-bottom: none;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  text-transform: none;
  letter-spacing: normal;
  padding-bottom: 0;
}

/* hover links volet (utilise la variable) */
.is_mega_menu_volets .mega__list a:hover,
.mega__inner--volets .mega__list a:hover {
  color: var(--volet-color, var(--v1));
  transform: translateX(4px);
}

/* mapping des couleurs par colonne */
.is_mega_menu_volets .mega__col:first-of-type { --volet-color: var(--v1); }
.is_mega_menu_volets .mega__col:nth-of-type(2) { --volet-color: var(--v2); }
.is_mega_menu_volets .mega__col:nth-of-type(3) { --volet-color: var(--v3); }
.is_mega_menu_volets .mega__col:nth-of-type(4) { --volet-color: var(--v4); }
.is_mega_menu_volets .mega__col:nth-of-type(5) { --volet-color: var(--v5); }

/* ==========================================================================
   Animation Logic
   ========================================================================== */

@media (hover: hover) and (pointer: fine) {
  .crj-nav__item:hover .mega {
    display: block;
    animation: slideDownFade 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }
}

@keyframes slideDownFade {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}


/* ==========================================================================
   4. Burger Menu & Tablet/Mobile Logic
   ========================================================================== */
.crj-nav-burger {
    display: none;
}

.burger-btn {
    border: none;
    padding: 0;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent !important;
}

.burger-btn:hover,
.burger-btn:focus {
    background: transparent !important;
    outline: none;
}

.burger-5 {
    width: 24px;
    height: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.burger-line {
    display: block;
    width: 100%;
    height: 2px;
    border-radius: 2px;
    background: #374151;
    transition: all 0.2s;
}

/* --- Responsive Breakpoint (< 992px) --- */
@media (max-width: 992px) {
    .crj-header__grid {
        grid-template-columns: auto 1fr;
    }

    .crj-header {
        padding-top: 20px;
        padding-bottom: 20px;
    }

    .crj-nav {
        display: none;
    }

    .crj-actions {
        display: flex !important;
        width: auto;
        border-bottom: 1px solid var(--muted-2);
        padding-bottom: 0.5rem;
        margin-bottom: 0.5rem;
        justify-content: flex-end;
    }

    .crj-nav-burger {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        width: 100%;
    }

    .crj-left {
        height: 100%;
        display: flex;
        align-items: center;
    }

    .crj-right {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        justify-content: center;
        padding-left: 2rem;
        height: 100%;
    }

    .crj-actions .action-link {
        font-size: 0.9rem;
    }
}

/* --- Phone Specific (< 576px) --- */
@media (max-width: 576px) {
    .crj-left::after {
        display: none;
    }

    .crj-actions {
        display: none !important;
    }

    .crj-header__grid {
        align-items: center;
    }

    .crj-right {
        flex-direction: row;
        padding-left: 1rem;
    }

    .crj-nav-burger {
        justify-content: flex-end;
        border: none;
        padding: 0;
    }

    .crj-left {
        padding-right: 0;
        max-width: 100%;
        overflow: visible;
    }

    .crj-brand {
        gap: 0.5rem;
        display: flex;
        align-items: center;
        overflow: visible;
    }

    .crj-brand__logo {
        width: 40px;
        flex-shrink: 0;
    }

    .crj-brand__text {
        display: flex;
        flex-direction: column;
        justify-content: center;
        overflow: visible;
        flex: 1;
        min-width: 0;
    }

    .crj-brand__title,
    .crj-brand__subtitle {
        font-size: 0.85rem;
        font-weight: 700;
        line-height: 1.2;
        white-space: normal;
        color: var(--ink);
        display: block !important;
        opacity: 1;
        visibility: visible;
    }
}

/* ==========================================================================
   5. Mobile Menu (Offcanvas)
   ========================================================================== */
.offcanvas {
    --bs-offcanvas-width: 500px; /*300px;*/
    font-family: var(--font-body);
}

.offcanvas-header {
    border-bottom: none;
    padding: 1.5rem;
    align-items: center;
}

.mobile-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--ink);
    gap: 1rem;
}

.mobile-brand img {
    width: 85px;/*40px;*/
    height: auto;
    /*max-width: 40px;*/
}

.mobile-brand-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.mobile-brand-text h5,
.mobile-brand-text p {
    font-size: 1.15rem; /*0.9rem;*/
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
    color: var(--ink);
}

.offcanvas-body {
    padding: 1.5rem;
}

.mobile-actions {
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.mobile-action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    border-radius: 50px;
    border: 1px solid var(--muted);
    color: var(--ink);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s;
    background: #fff;
}

.mobile-action-btn:hover {
    background: #f3f4f6;
    color: var(--primary);
    border-color: var(--muted-2);
}

.mobile-nav-link {
    display: block;
    padding: 0.75rem 0;
    font-weight: 600;
    color: var(--ink);
    font-size: 1.1rem;
    text-decoration: none;
    border-bottom: 1px solid #f3f4f6;
}

.mobile-nav-link:hover {
    color: var(--primary);
}

.mobile-sub-group {
    margin-left: 1rem;
    border-left: 2px solid var(--muted);
    padding-left: 1rem;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}

.mobile-sub-group span.text-uppercase {
    font-weight: 800 !important;
    color: var(--ink) !important;
    letter-spacing: 0.05em;
    margin-top: 1rem;
    display: block;
}

.mobile-sub-link {
    display: block;
    padding: 0.4rem 0;
    color: var(--body-text);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600 !important;
}

.mobile-sub-link:hover {
    color: var(--ink);
}

.mobile-volet-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 8px;
}

/* Style global pour tous les sous-menus */
details.mobile-sub-details > summary.mobile-sub-link {
  text-transform: uppercase;
  font-weight: 800!important;
  letter-spacing: 0.05em;
  margin-top: 1rem;
  color:var(--ink);
}

/* Exception : ceux dans le 2e mobile-group */
details.mobile-group:nth-of-type(2) 
details.mobile-sub-details > 
summary.mobile-sub-link {
  text-transform: none;
  font-weight: 600;
  letter-spacing: normal;
  margin-top: 0;
  color: var(--body-text);
}

/* Dot pour les sous-volets, seulement dans le 2e groupe mobile */
details.mobile-group:nth-of-type(2) details.mobile-sub-details > summary.mobile-sub-link::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 8px;
  transform: translateY(-1px);
}

/* Couleurs par sous-volet (ordre 1 à 5) */
details.mobile-group:nth-of-type(2) details.mobile-sub-details:nth-of-type(1) > summary.mobile-sub-link::before { background: var(--v1); }
details.mobile-group:nth-of-type(2) details.mobile-sub-details:nth-of-type(2) > summary.mobile-sub-link::before { background: var(--v2); }
details.mobile-group:nth-of-type(2) details.mobile-sub-details:nth-of-type(3) > summary.mobile-sub-link::before { background: var(--v3); }
details.mobile-group:nth-of-type(2) details.mobile-sub-details:nth-of-type(4) > summary.mobile-sub-link::before { background: var(--v4); }
details.mobile-group:nth-of-type(2) details.mobile-sub-details:nth-of-type(5) > summary.mobile-sub-link::before { background: var(--v5); }


@media (max-width: 768px) {
    .crj-brand__subtitle {
        display: none;
    }
}

/* ==========================================================
   FORCER LE MODE BURGER SUR LES PAGES VOLET
   ========================================================== */
body#volet .crj-nav,
body.is-volet .crj-right .crj-nav {
    display: none;
}

body#volet .crj-nav-burger,
body.is-volet .crj-nav-burger {
    display: flex;
    justify-content: flex-end;
    width: 100%;
}


/* ==========================================================================
   6. Hero Sections
   ========================================================================== */
.hero-section {
    position: relative;
    height: 620px;
    min-height: 450px;
    background: #0F172A;
    overflow: hidden;
}

/* --- Volet Specific navigation --- */
.volet-header-row {
    background-color: var(--current-volet-color); /*var(--v2);*/
    color: var(--white);
    padding: 0;
    position: relative;
    z-index: 90;
    box-shadow: var(--shadow-md);
}

.volet-nav {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.volet-nav::-webkit-scrollbar {
    display: none;
}

.volet-nav__link {
    display: block;
    padding: 1rem 1.5rem;
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    transition: background 0.2s, opacity 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.volet-nav__link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.volet-nav__link.active {
    background: rgba(0, 0, 0, 0.1);
    box-shadow: inset 0 -3px 0 var(--white);
}

/* --- Volet Branding (Hero) --- */
.volet-hero-branding {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.volet-hero-logo {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(10px);
}

.volet-hero-logo__icon {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.volet-hero-logo__text {
    display: flex;
    flex-direction: column;
}

.volet-hero-logo__line1 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.2;
}

.volet-hero-logo__line2 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--v2);
    line-height: 1.1;
    text-transform: uppercase;
}

/* --- Volet Hero Content --- */
.hero-content-volet {
    max-width: 800px;
}

.hero-tagline {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--v2);
    color: white;
    font-weight: 700;
    font-size: 0.85rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* --- Volet Split Hero --- */
.hero-volet-split {
    background-color: #ffffff;
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.hero-volet-split .volet-hero-logo {
    background: transparent;
    padding: 0;
    box-shadow: none;
    backdrop-filter: none;
    margin-bottom: 2rem;
    align-items: center;
}

.hero-volet-split .volet-hero-logo__icon {
    width: 110px;
    height: 110px;
    margin-right: 0.75rem;
}

.hero-volet-split .volet-hero-logo__line3 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--current-volet-color);/*var(--v2);*/
    line-height: 1;
    text-transform: uppercase;
    display: block;
}

.hero-volet-tagline {
    display: inline-block;
    color: var(--current-volet-color);/*var(--v2);*/
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

.hero-volet-split .hero-title {
    color: #1a1a1a;
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
    text-shadow: none;
}

.hero-volet-split .hero-subtitle {
    color: #555;
    font-size: 1.15rem;
    line-height: 1.6;
    max-width: 540px;
    margin-bottom: 2.5rem;
    margin-left:0rem;
    text-shadow: none;
}

.hero-volet-split .hero-btn-v2 {
    background-color: var(--current-volet-color);/*var(--v2);*/
    color: white;
    padding: 0.85rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    transition: transform 0.2s, background 0.2s;
}

.hero-volet-split .hero-btn-v2:hover {
    background-color: var(--current-volet-color);/*#0096c7;*/
    transform: translateY(-2px);
    color: white;
}

.hero-volet-split__row {
    display: flex;
    align-items: stretch;
}

.hero-volet-split__img-col {
    display: flex;
    flex-direction: column;
    padding-right: 3.5rem;
}

.hero-volet-split__main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   7. Vision & Approach Sections
   ========================================================================== */
.vision-summary {
    padding: 6rem 0;
    background: white;
    border-top: 1px solid #f0f0f0;
}

.vision-summary__header {
    border-left: 4px solid var(--current-volet-color);/*var(--v2);*/
    padding-left: 2rem;
    margin-bottom: 2.5rem;
}

.vision-summary__title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1a1a1a;
}

.vision-summary__title span {
    color: var(--current-volet-color);/*var(--v2);*/
}

.vision-summary__text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #4a4a4a;
    max-width: 800px;
}

.vision-summary__link {
    color: var(--current-volet-color);/*var(--v2);*/
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    margin-top: 2rem;
    transition: gap 0.2s;
}

.vision-summary__link:hover {
    gap: 0.5rem;
}

.vision-summary__deco {
    position: relative;
    display: flex;
    justify-content: flex-end;
}

.vision-summary__shape {
    width: 280px;
    opacity: 0.9;
}

.vision-section {
    position: relative;
    background-color: #f8fafc;
    overflow: hidden;
}

.vision-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.vision-image-container {
    position: relative;
}

.vision-shape-bg {
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    z-index: 0;
    opacity: 0.05;
}

.vision-main-img {
    position: relative;
    z-index: 1;
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
    width: 100%;
}

.vision-icon-box {
    width: 80px;
    height: 80px;
    margin-bottom: 2rem;
}

.vision-icon-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.vision-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--ink);
}

.vision-text {
    font-size: 1.15rem;
    color: var(--body-text);
    margin-bottom: 2rem;
}

.vision-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.vision-feature-item h4 {
    color: var(--v2);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

@media (max-width: 992px) {
    .vision-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .volet-hero-logo {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        padding: 1rem;
    }

    .volet-hero-logo__icon {
        width: 45px;
        height: 45px;
    }
}

/* --- Main Hero Styles --- */
.hero-picture {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

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

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

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);/*rgba(0, 0, 0, 0.26);*/
    z-index: 1;
}

.hero-section .container-custom {
    z-index: 2;
    height: 100%;
}

.hero-title {
    font-size: 3.25rem;
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.1;
    margin-bottom: 1.25rem;
    color: #ffffff;
}

.hero-subtitle {
    font-size: 1.18rem;
    font-weight: 400;
    letter-spacing: -0.04em;
    line-height: 1.4;
    margin-bottom: 2.25rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    background: #ffffff;
    color: var(--ink);
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid transparent;
}

.hero-btn:hover {
    background: #f8fafc;
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.hero-btn svg {
    transition: transform 0.3s ease;
}

.hero-btn:hover svg {
    transform: translateY(2px);
}

/**************************************************/
/*Version 18 juin 2026 */

.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-picture,
.hero-picture img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Dégradé de lisibilité par-dessus l’image */
.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;

    background: rgba(0, 0, 0, 0.15);
}

/* Contenu au-dessus du dégradé */
.hero-section .container-custom {
    position: relative;
    z-index: 2;
}

.hero-title {
    color: #fff;
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.65);
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.hero-subtitle {
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
}



/* FIN // Version 18 juin 2026 */
/**************************************************/










/* ==========================================================================
   8. Volets Grid (Quick Access Cards)
   ========================================================================== */
.volets-full-section {
    width: 100%;
    overflow: hidden;
}

.volets-grid {
    display: flex;
    width: 100%;
    min-height: 212px;
}

.volet-card {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    padding: 1.5rem 0.5rem;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

.volet-card:hover {
    flex: 1.25;
    filter: brightness(0.92);
}

.volet-card__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    z-index: 2;
    transition: all 0.4s ease;
}

.volet-card:hover .volet-card__content {
    transform: none;
}

.volet-card__icon {
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.volet-card__icon i {
    font-size: 40px;
    line-height: 1;
}

.volet-card__title {
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.25;
    margin: 0;
    color: inherit;
}

.volet-card__btn {
    display: inline-block;
    padding: 0.4rem 1rem;
    border: 1.5px solid currentColor;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

.volet-card:hover .volet-card__btn {
    opacity: 1;
    transform: translateY(0);
}

/* --- Volet Colors --- */
.volet-card.volet-1 {
    background-color: var(--v1);
    color: var(--v1-dark);
}

.volet-card.volet-2 {
    background-color: var(--v2);
    color: var(--white);
}

.volet-card.volet-3 {
    background-color: var(--v3);
    color: var(--white);
}

.volet-card.volet-4 {
    background-color: var(--v4);
    color: var(--white);
}

.volet-card.volet-5 {
    background-color: var(--v5);
    color: var(--v5-dark);
}

/* Responsive Adjustments */

/* Phone specific: back to vertical stack */

/* ==========================================================================
   9. Info Blocks (Service Highlights)
   ========================================================================== */
.info-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-left: 10px solid var(--primary);
    border-radius: 12px;
    padding: 1.75rem 2rem;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 410px;
}

.info-blocks-section .row {
    --bs-gutter-x: 3.5rem;
}

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

.info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.6rem;
    font-size: 0.95rem;
    color: var(--body-text);
    line-height: 1.4;
    transition: all 0.3s ease;
}

.info-list li:hover {
    color: var(--primary);
}

/* --- Info Badges & Icons --- */
.info-badge {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    background: #f0f7f9;
    color: var(--primary);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 800;
    transition: all 0.3s ease;
}

.info-list--numbered li:hover .info-badge {
    background: var(--primary);
    color: #fff;
}

.info-list--links li {
    padding: 0;
    margin-bottom: 0.5rem;
}

.info-list--links a {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0.65rem 1rem;
    background: #f8fafc;
    border-radius: 8px;
    text-decoration: none;
    color: var(--ink);
    font-weight: 600;
    transition: all 0.2s ease;
}

.info-list--links a:hover {
    background: #f1f5f9;
    color: var(--primary);
}

.info-list--links a:hover .info-icon {
    background: var(--primary);
    color: #fff;
}

.info-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    background: #e0f2f1;
    color: #26a69a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.5rem;
    transition: all 0.3s ease;
}

.text-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: auto;
    transition: color 0.3s ease;
}

.text-link svg {
    transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.text-link:hover {
    color: var(--primary-dark);
}

.text-link:hover svg {
    transform: translateX(6px);
}


/* ==========================================================================
   10. Stats Section
   ========================================================================== */
.stats-section {
    background-color: #F3F3F3;
    border-top: 1px solid #E2E8F0;
    border-bottom: 1px solid #E2E8F0;
}

.stats-row {
    --bs-gutter-x: 80px;
}


.stat-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: auto;
    min-height: 180px;
    width: 240px;
    margin: 0 auto;
}


.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    text-decoration: none;
    color: inherit;
}

.stat-card__icon {
    width: 36px;
    height: 36px;
    margin-bottom: 0.25rem;
    color: #94a3b8;
    transition: color 0.3s ease;
}

.stat-card:hover .stat-card__icon {
    color: var(--primary);
}

.stat-card__icon i {
    font-size: 32px;
    line-height: 1;
}

.stat-card__number {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    color: var(--primary);
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.stat-card__label {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--body-text);
    letter-spacing: 0.05em;
    line-height: 1.2;
    margin-bottom: 15px;
}

.stat-card__cta {
    font-size: 0.825rem;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    margin-top: auto;
}

.stat-card__cta i {
    transition: transform 0.3s ease;
}

.stat-card:hover .stat-card__cta {
    color: var(--primary-dark);
}

.stat-card:hover .stat-card__cta i {
    transform: translateX(4px);
}

/* ==========================================================================
   11. Site Footer
   ========================================================================== */
.site-footer {
    background-color: #F8FAFC;
    padding-top: 5rem;
    border-top: 1px solid #E2E8F0;
}

.footer-top {
    padding-bottom: 4rem;
}

.footer-brand .footer-logo {
    height: 70px;
    width: auto;
    margin-bottom: 1.5rem;
}

.footer-description {
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.5;
    color: var(--ink);
    margin-bottom: 1.5rem;
}

.footer-socials {
    display: flex;
    gap: 1rem;
}

.footer-socials a {
    color: #94A3B8;
    font-size: 1.25rem;
    line-height: 1;
    transition: color 0.3s ease;
}

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

.footer-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.4rem;
}

.footer-links a {
    color: var(--body-text);
    text-decoration: none;
    font-size: 0.875rem;
    display: inline-block;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-links a:hover {
    color: var(--primary);
    transform: translateX(4px);
}

/* --- Infolettre : CTA vers Mailchimp --- */
.newsletter-text {
    font-size: 0.9rem;
    color: var(--body-text);
    margin-bottom: 1.25rem;
}

.footer-newsletter__button {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    text-decoration: none;
    transition: transform 180ms ease;
}

/* Dans le footer, le hover ne change jamais le visuel de la variante choisie. */
.footer-newsletter__button.btn-crj:hover,
.footer-newsletter__button.btn-crj:focus-visible {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}

.footer-newsletter__button.btn-crj--light:hover,
.footer-newsletter__button.btn-crj--light:focus-visible {
    background-color: #f1f5f9;
    border-color: #f1f5f9;
    color: var(--primary);
}

.footer-newsletter__button.btn-crj--outline:hover,
.footer-newsletter__button.btn-crj--outline:focus-visible {
    background-color: transparent;
    border-color: var(--primary);
    color: var(--primary);
}

.footer-newsletter__button-icon {
    flex: 0 0 auto;
    transition: transform 180ms ease;
}

.footer-newsletter__button:hover .footer-newsletter__button-icon,
.footer-newsletter__button:focus-visible .footer-newsletter__button-icon {
    transform: translateX(4px);
}

.footer-newsletter__button--disabled {
    cursor: default;
}

.footer-newsletter__button--disabled:hover {
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .footer-newsletter__button,
    .footer-newsletter__button-icon {
        transition: none;
    }
}

/* --- Partners Area --- */
.footer-partners {
    background-color: #F3F3F3;
    padding: 3.5rem 0;
    border-top: 1px solid #C2C2C2;
    border-bottom: 1px solid #C2C2C2;
}

.partners-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 2.5rem;
}

.partners-grid img {
    width: auto;
    height: auto;
    max-width: 140px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.partners-grid img:hover {
    transform: scale(1.05);
}

/* --- Bottom Rights & Legal --- */
.footer-bottom {
    padding: 2rem 0;
    font-size: 0.85rem;
    color: #64748B;
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-bottom p {
    margin: 0;
}

.legal-links a {
    color: inherit;
    text-decoration: none;
    margin-left: 2rem;
}

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

/* ==========================================================================
   12. News Section (À la une)
   ========================================================================== */
.news-section {
    padding: var(--section-padding) 0;
    background-color: #F8FAFC;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2.5rem;
    gap: 1rem;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--ink);
    margin: 0;
}

.btn-view-all {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.2s ease;
}

.btn-view-all:hover {
    color: var(--primary-dark);
    transform: translateX(5px);
}

.news-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
    background-color: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    color: inherit;
}

.news-card__img-wrapper {
    position: relative;
    width: 100%;
    height: 240px;
    border-radius: 16px 16px 0 0;
    overflow: hidden;
    margin-bottom: 0;
}

.news-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-card__img {
    transform: scale(1.05);
}

.news-card__pills {
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    z-index: 10;
}

.news-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    text-decoration: none !important;
    transition: all 0.2s ease;
    line-height: 1;
}

.news-pill:hover {
    filter: brightness(0.95);
    color: #fff;
}

.pill--sante {
    background-color: var(--v1);
    color: #475415;
}

.pill--education {
    background-color: var(--v2);
    color: #fff;
}

.pill--emploi {
    background-color: var(--v3);
    color: #fff;
}

.pill--autochtones {
    background-color: var(--v4);
    color: #fff;
}

.pill--citoyennete {
    background-color: var(--v5);
    color: #654a1a;
}

.pill--inter {
    background-color: var(--primary);
    color: #ffffff;
    border: 1px solid var(--primary);
    transition: all 0.2s ease;
}

.pill--inter:hover {
    background-color: var(--primary-700);
    border-color: var(--primary-700);
    color: #ffffff;
}

.news-card__accent-border {
    height: 5px;
    background-color: var(--primary);
    width: 100%;
    margin-bottom: 1.25rem;
}

.news-card__body {
    padding: 22px;
}

.news-card__meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.news-card__date {
    font-size: 0.85rem;
    color: #94A3B8;
    display: flex;
    align-items: center;
    gap: 6px;
}

.news-card__dots {
    display: flex;
    gap: 4px;
}

.volet-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
}

.dot--sante {
    background-color: var(--v1);
}

.dot--education {
    background-color: var(--v2);
}

.dot--emploi {
    background-color: var(--v3);
}

.dot--autochtones {
    background-color: var(--v4);
}

.dot--citoyennete {
    background-color: var(--v5);
}

.news-card__category {
    margin-left: auto;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--primary);
    letter-spacing: 0.05em;
    text-decoration: none;
    position: relative;
    z-index: 10;
    transition: color 0.2s ease;
}

.news-card__category:hover {
    color: var(--primary-dark);
}

.news-card__title {
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--ink);
    margin-bottom: 0.75rem;
}

.news-card__text {
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--body-text);
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card__link {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    transition: all 0.3s ease;
    text-decoration: none;
}

body.volet-1 .resource-cards-section .resource-card__btn-top,
body.volet-2 .resource-cards-section .resource-card__btn-top,
body.volet-3 .resource-cards-section .resource-card__btn-top,
body.volet-4 .resource-cards-section .resource-card__btn-top,
body.volet-5 .resource-cards-section .resource-card__btn-top
{
  background-color: var(--current-volet-color)!important;  
}

body.volet-1 .resource-cards-section,
body.volet-2 .resource-cards-section,
body.volet-3 .resource-cards-section,
body.volet-4 .resource-cards-section,
body.volet-5 .resource-cards-section
{
  background-color: var(--current-volet-color)!important;  
}
body.volet-1 .resource-cards-section .resource-card__header i ,
body.volet-2 .resource-cards-section .resource-card__header i ,
body.volet-3 .resource-cards-section .resource-card__header i ,
body.volet-4 .resource-cards-section .resource-card__header i ,
body.volet-5 .resource-cards-section .resource-card__header i 
{
  color: var(--current-volet-color)!important;
}

body.volet-1 .news-card__accent-border,
body.volet-2 .news-card__accent-border,
body.volet-3 .news-card__accent-border,
body.volet-4 .news-card__accent-border,
body.volet-5 .news-card__accent-border
{
   background-color: var(--current-volet-color)!important;
}
body.volet-1 .news-card__link,
body.volet-2 .news-card__link,
body.volet-3 .news-card__link,
body.volet-4 .news-card__link,  
body.volet-5 .news-card__link
{
   color: var(--current-volet-color)!important;
} 

.news-card__link::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 5;
}

.news-card:hover .news-card__link {
    gap: 10px;
    color: var(--primary-dark);
}

.news-card--featured .news-card__img-wrapper {
    height: 450px;
}

.news-card--small .news-card__img-wrapper {
    height: 180px;
}

.news-card--small .news-pill {
    padding: 4px 10px;
    font-size: 0.65rem;
}

.news-card--small .news-card__body {
    padding: 15px;
}

.news-card--small .news-card__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    column-gap: 12px;
    row-gap: 8px;
    margin-bottom: 0.75rem;
}

.news-card--small .news-card__dots {
    width: 100%;
    order: 3;
}

.news-card--small .news-card__date {
    order: 1;
}

.news-card--small .news-card__category {
    order: 2;
    margin-left: auto;
}

.news-card--small .news-card__title {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.news-card--small .news-card__text {
    font-size: 0.8rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 1rem;
}

.news-card--hero {
    flex-direction: row;
}

.news-card--hero .news-card__img-wrapper {
    width: 60%;
    height: 450px;
    flex-shrink: 0;
    border-radius: 16px 0 0 16px;
}

.news-card--hero .news-card__accent-border {
    width: 4px;
    height: auto;
    margin-bottom: 0;
}

.news-card--hero .news-card__body {
    width: 40%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
}

.news-card--hero .news-card__title {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}

.news-card--hero-overlay {
    position: relative;
    height: 550px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background-color: var(--ink);
}

.news-card--hero-overlay .news-card__img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    transition: transform 0.6s ease;
}

.news-card--hero-overlay:hover .news-card__img {
    transform: scale(1.05);
}

.news-card--hero-overlay::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%);
    z-index: 2;
}

.news-card--hero-overlay .news-card__pills {
    z-index: 4;
}

.news-card--hero-overlay .news-card__body {
    position: relative;
    z-index: 3;
    padding: 3rem;
    color: #fff;
    max-width: 800px;
}

.news-card--hero-overlay .news-card__title,
.news-card--hero-overlay .news-card__text {
    color: #fff;
}

.news-card--hero-overlay .news-card__title {
    font-size: 2.25rem;
    line-height: 1.2;
}

.news-card--hero-overlay .news-card__date,
.news-card--hero-overlay .news-card__category {
    color: rgba(255, 255, 255, 0.8);
    margin-left: 0;
}

.news-card--hero-overlay .news-card__link {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 8px 22px;
    border-radius: 50px;
    width: fit-content;
    margin-top: 1.5rem;
    background: transparent;
}

.news-card--hero-overlay:hover .news-card__link {
    background: #fff;
    color: var(--primary);
    border-color: #fff;
}

.news-card--hero-overlay .news-card__accent-border {
    position: absolute;
    bottom: 0;
    left: 0;
    margin-bottom: 0;
    z-index: 4;
}

/* ==========================================================================
   13. Resource Cards (Calendrier, Productions, Projets)
   ========================================================================== */
.resource-cards-section {
    padding: var(--section-padding) 0;
    background-color: #fff;
}

.resource-card {
    background: #ffffff;
    border: 1px solid #F1F5F9;
    border-radius: 24px;
    padding: 32px;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05),
        0 2px 4px -2px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease,
        box-shadow 0.3s ease;
}

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.resource-card__header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.resource-card__header i {
    font-size: 1.5rem;
    color: var(--primary);
}

.resource-card__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ink);
    margin: 0;
    flex-grow: 1;
}

.resource-card__btn-top {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #fff;
    background-color: var(--primary);
    padding: 6px 14px;
    border-radius: 50px;
    text-decoration: none;
    transition: opacity 0.2s;
}

.resource-card__btn-top:hover {
    opacity: 0.9;
    color: #fff;
}

/* --- Calendrier Specifics --- */
.calendar-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 24px;
}

.calendar-item {
    display: flex;
    gap: 16px;
    text-decoration: none;
    color: inherit;
}

.date-box {
    width: 64px;
    height: 64px;
    min-width: 64px;
    border: 1.5px solid #F1F5F9;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #fff;
}

.date-box__month {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--muted-foreground);
    text-transform: uppercase;
    line-height: 1;
    margin-bottom: 2px;
}

.date-box__day {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--ink);
    line-height: 1;
}

.calendar-item__content {
    display: flex;
    flex-direction: column;
}

.calendar-item__title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 4px;
    line-height: 1.4;
}

.calendar-item__meta {
    font-size: 0.8rem;
    color: var(--muted-foreground);
    display: flex;
    align-items: center;
    gap: 12px;
}

.calendar-item__meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.resource-card__footer {
    margin-top: auto;
}

.btn-all-calendar {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: 1.5px solid #F1F5F9;
    border-radius: 12px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--body-text);
    transition: all 0.2s;
}

.btn-all-calendar:hover {
    background-color: #F8FAFC;
    border-color: var(--muted-2);
}

/* --- List Items (Productions & Projets) --- */
.resource-list {
    display: flex;
    flex-direction: column;
}

.resource-list-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid #F1F5F9;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s;
}

.resource-list-item:first-child {
    padding-top: 0;
}

.resource-list-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.resource-list-item i.item-icon {
    font-size: 1.1rem;
    color: var(--primary);
    opacity: 0.7;
    margin-top: 4px;
}

.resource-list-item__content {
    flex-grow: 1;
}

.resource-list-item__title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 8px;
    line-height: 1.4;
}

.resource-list-item__dots {
    display: flex;
    gap: 4px;
}

.resource-list-item i.bi-chevron-right {
    font-size: 1rem;
    color: var(--muted-foreground);
    margin-top: 4px;
    transition: transform 0.2s;
}

.resource-list-item:hover i.bi-chevron-right {
    transform: translateX(4px);
    color: var(--primary);
}

/* ==========================================================================
   14. Search Modal
   ========================================================================== */
#searchModal .modal-backdrop {
    backdrop-filter: blur(5px);
    background-color: rgba(15, 23, 42, 0.4);
}

#searchModal .modal-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.mobile-chevron {
    font-size: 0.8em;
    opacity: 0.5;
}

.volet-prev-5 {
    background: var(--v5) !important;
}

.volet-prev-1 {
    background: var(--v1) !important;
}

.volet-prev-2 {
    background: var(--v2) !important;
}

.volet-prev-3 {
    background: var(--v3) !important;
}

.volet-prev-4 {
    background: var(--v4) !important;
}

#searchModal input::placeholder {
    color: var(--muted-foreground);
    font-weight: 300;
}

#searchModal input:focus {
    outline: none;
    box-shadow: none;
}

/* ==========================================================================
   15. Global Responsive Adjustments (Grouped)
   ========================================================================== */

/* --- Tablet (<= 992px) --- */
@media (max-width: 992px) {
    .hero-title {
        font-size: 3rem;
    }

    .volets-grid {
        flex-wrap: wrap;
        min-height: auto;
    }

    .volet-card {
        flex: 0 0 50%;
        min-height: 200px;
        padding: 3rem 1.5rem;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .volet-card.volet-5 {
        flex: 0 0 100%;
    }

    .volet-card:hover {
        flex: 0 0 50%;
        filter: none;
    }

    .volet-card.volet-5:hover {
        flex: 0 0 100%;
    }

    .volet-card__btn {
        opacity: 1;
        transform: none;
        margin-top: 1rem;
    }

    .info-blocks-section .row {
        --bs-gutter-x: 1.5rem;
    }

    .stats-row {
        --bs-gutter-x: 30px;
    }

    .partners-grid {
        justify-content: center;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .news-card--featured .news-card__img-wrapper {
        height: 350px;
    }

    .news-card--hero {
        flex-direction: column;
    }

    .news-card--hero .news-card__img-wrapper,
    .news-card--hero .news-card__body {
        width: 100%;
    }

    .news-card--hero .news-card__img-wrapper {
        height: 300px;
        border-radius: 16px 16px 0 0;
    }

    .news-card--hero .news-card__body {
        padding: 1.5rem;
    }

    .news-card--hero .news-card__title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .news-card--hero .news-card__accent-border {
        width: 100%;
        height: 4px;
    }

    /* Layout 4 Tablet */
    .news-card--hero-overlay {
        height: 450px;
    }

    .news-card--hero-overlay .news-card__body {
        padding: 2.5rem;
    }

    .news-card--hero-overlay .news-card__title {
        font-size: 1.75rem;
    }

    /* Volet Page Specific */
    .hero-volet-split {
        padding: 4rem 0;
    }

    .hero-volet-split .volet-hero-logo__icon {
        width: 80px;
        height: 80px;
    }

    .hero-volet-split .volet-hero-logo__line3 {
        font-size: 1.4rem;
    }

    .hero-volet-split .hero-title {
        font-size: 2.25rem;
    }

    .vision-summary {
        padding: 4rem 0;
    }

    .vision-summary__title {
        font-size: 2rem;
    }
}

/* --- Tablet Transition (<= 768px) --- */
@media (max-width: 768px) {
    .hero-section {
        height: auto;
        padding: 5rem 0;
        min-height: 420px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.05rem;
    }

    .info-card {
        padding: 1.5rem;
    }

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

    .stat-card__number {
        font-size: 2.25rem;
    }

    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
    }

    .legal-links a {
        margin: 0.5rem 1rem;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .btn-view-all {
        margin-top: 0.5rem;
    }

    .news-card__meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .news-card__category {
        margin-left: 0 !important;
    }

    .news-card--featured .news-card__img-wrapper,
    .news-card--small .news-card__img-wrapper {
        height: 240px;
    }

    .news-card--hero-overlay {
        height: 400px;
    }

    .news-card--hero-overlay .news-card__body {
        padding: 1.5rem;
    }

    .news-card--hero-overlay .news-card__title {
        font-size: 1.35rem;
    }

    .news-card--hero-overlay .news-card__text {
        font-size: 0.85rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        margin-bottom: 1rem;
    }

    /* Volet Page Specific Mobile */
    .hero-volet-split {
        padding: 3rem 0;
        text-align: center;
    }

    .hero-volet-split .volet-hero-logo {
        justify-content: center;
    }

    .hero-volet-split .volet-hero-logo__icon {
        width: 60px;
        height: 60px;
    }

    .hero-volet-split .volet-hero-logo__line3 {
        font-size: 1.15rem;
    }

    .hero-volet-split .hero-title {
        font-size: 1.75rem;
    }

    .hero-volet-split .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
        font-size: 1rem;
    }

    .hero-volet-split__img-col {
        margin-bottom: 2rem;
        padding-right: var(--bs-gutter-x, 0.75rem);
    }

    .vision-summary {
        padding: 3rem 0;
    }

    .vision-summary__header {
        padding-left: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .vision-summary__title {
        font-size: 1.75rem;
    }

    .vision-summary__text {
        font-size: 1rem;
    }
}

/* --- Phone (<= 576px) --- */
@media (max-width: 576px) {
    .volet-card {
        flex: 0 0 100%;
    }

    .stat-card {
        width: 100%;
        max-width: 280px;
    }
}

/* --- Animation & Desktop Only --- */
@media (hover: hover) and (pointer: fine) {
    .crj-nav__item:hover .mega {
        display: block;
        animation: slideDownFade 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    }
}

.page-hero__breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: .95rem;
}

.page-hero__breadcrumb a {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    color:#11566d;
}

.breadcrumb__home i {
    font-size: 1rem;
    opacity: .8;
    transition: opacity .2s ease;
}

.breadcrumb__home:hover i {
    opacity: 1;
}

.breadcrumb__sep i {
    font-size: 1rem;
    opacity: .4;
}
/* ==========================================================================
   Section : Communauté membres experts
   ========================================================================== */
   .tri-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.tri-box .form-select:focus,
.tri-box .form-control:focus{
    box-shadow:none;
    border-color:#10a5d3;
}    

.tri-box{
    background:#ffffff;
    border-radius:14px;
    padding:28px;
    box-shadow:0 2px 6px rgba(0,0,0,0.08);
}

.tri-title{
    font-size:14px;
    font-weight:600;
    letter-spacing:.06em;
    color:#8b97a6;
    margin-bottom:14px;
}

.tri-box .form-control,
.tri-box .form-select{
    border-radius:10px;
    height:44px;
}

.tri-box .btn-search{
    background:#10a5d3;
    border:none;
    color:#fff;
    border-radius:30px;
    padding:0 26px;
    height:44px;
    font-weight:500;
}

.tri-box .btn-search:hover{
    background:#0f96bf;
}


#communaute .tri-box .btn-search,
#communaute .btn-crj
{
    background-color: var(--current-volet-color)!important;
}
#communaute .btn-crj
{
border: 2px solid  var(--current-volet-color);
}

#communaute  .tri-box .tri-title,
#communaute p.fw-bold
{
     color: var(--current-volet-color)!important;
}

#communaute .news-card
{
    border-radius: 16px; 
    background: #f5f7fa;
}

#communaute .news-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 12px;
    display: block;
}

#communaute .news-card .col-md-4 {
    display: flex;
    align-items: center;
    justify-content: center;
}

#communaute .news-card .card-body {
    padding: 1rem 1.25rem;
}

/* Affiliations */
#communaute .card-body .card-text.text-muted.small {
    margin-bottom: 0;
    line-height: 1.35;
}

/* Séparateur seulement entre 2 affiliations consécutives */
#communaute .card-body .card-text.text-muted.small + .card-text.text-muted.small {
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid rgba(0,0,0,0.12);
}

/* espace plus grand entre la dernière affiliation et le bouton */
#communaute .card-body .card-text.text-muted.small + .card-text {
    margin-top: 20px;
}

#communaute .tri-box .form-select:disabled,
#membresVolet .tri-box .form-select:disabled {
    opacity: .65;
    cursor: not-allowed;
    background-color: #f3f5f7;
}

#communaute .tri-box .btn-search,
#membresVolet .tri-box .btn-search,
#communaute .btn-crj,
#membresVolet .btn-crj {
    background-color: var(--current-volet-color)!important;
}

#communaute .btn-crj,
#membresVolet .btn-crj {
    border: 2px solid var(--current-volet-color);
}

#communaute .tri-box .tri-title,
#membresVolet .tri-box .tri-title,
#communaute p.fw-bold,
#membresVolet p.fw-bold {
    color: var(--current-volet-color)!important;
}
#membresVolet .membres-volet-thumb img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 12px;
    display: block;
}

#communaute .tri-box .btn-search,
#communaute .tri-box .btn-reset {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    text-align: center;
    line-height: 1;
    text-decoration: none;
    vertical-align: middle;
}

#communaute .tri-box .btn-reset i {
    font-size: 1rem;
    line-height: 1;
}

#communaute .tri-box .btn-reset:hover {
    text-decoration: none;
}

#communaute .tri-box .btn-reset {
    opacity: .9;
}

#communaute .tri-box .btn-reset:hover {
    opacity: 1;
}

#membresVolet
{
    background-color: #F8FAFC;
}
/* Style Page citoyenneté et environnement */

#programmation-volet button.nav-link
{
    /*color: var(--current-volet-color)!important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.80rem;*/
}
#programmation-volet .tabs-v1 .nav-link.active::after
{
    background-color: var(--current-volet-color)!important;
}
#programmation-volet .btn-charger-prog
{
    border-color: var(--current-volet-color);
    background-color: var(--current-volet-color)!important;
}

.btn-explorer-axes
{
    background-color: transparent!important;
    color: var(--current-volet-color)!important;
    border-color: var(--current-volet-color)!important;

}
#programmation-volet button.nav-link {
/*    color: black!important;*/
}

#programmation-volet button.nav-link:hover,
#programmation-volet button.nav-link.active {
   color: black;

}

#programmation-volet .text-brand {
    color: var(--current-volet-color)!important;
}

#quatres-axes-de-recherche .tabs-v2 .nav-link.active,
#quatres-axes-de-recherche .tabs-v2 .nav-link.active:hover {
    background-color: var(--current-volet-color)!important;
    color: #fff!important;
}
#quatres-axes-de-recherche .tabs-v2 .nav-link:hover {
    color: var(--current-volet-color)!important;
}

/*#programmation-volet{
    background-color: #f8fafc!important;
}*/

#quatres-axes-de-recherche, #programmation-volet
{
    background: white;
    border-top: 1px solid #f0f0f0;
}

.stat-card__suffix {
  display: inline-block;
  margin-left: 0.15em;
}

/* état initial */

.stat-card {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity .6s ease,
    transform .6s ease;
}

/* visible */

.stat-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* suffixe chiffre */

.stat-card__suffix {
  margin-left: 0.15em;
}

.stat-card:nth-child(1) { transition-delay: .05s; }
.stat-card:nth-child(2) { transition-delay: .15s; }
.stat-card:nth-child(3) { transition-delay: .25s; }
.stat-card:nth-child(4) { transition-delay: .35s; }

.calendar-item--empty {
    padding: 1rem;
    opacity: .7;
    pointer-events: none;
}

.btn-all-calendar.is-disabled {
    opacity: .55;
    cursor: default;
    pointer-events: none;
}

.date-box__label{
    display:flex;
    align-items:center;
    justify-content:center;
    text-align:center;
    font-size:.75rem;
    font-weight:700;
    line-height:1.1;
}

.member-card-mini__image {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    aspect-ratio: 5 / 6;
    background: #f3f4f6;
}

.member-card-mini__image a,
.member-card-mini__image picture {
    display: block;
    width: 100%;
    height: 100%;
}

.member-card-mini__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.member-card-mini__image:hover img {
    transform: scale(1.05);
}

.member-card-mini__image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0);
    transition: background .3s ease;
    pointer-events: none;
}

.member-card-mini__image:hover::after {
    background: rgba(0,0,0,.08);
}

.mini-name {
    font-size: 0.85rem;
    font-weight: 700;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mini-role {
    font-size: 0.8rem;
    color: var(--muted-foreground);
    margin: 0;
}

.member-card-mini {
    flex: 0 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}



/*Filtre Membres */

#membresReseauCRJ {
    padding-top: 0px;
}


#membresReseauCRJ {
    padding-top: 0px;
}  .membres-context-box {
    padding: 1rem 1.25rem;
    border: 1px solid #d9dee7;
    border-radius: 18px;
    background: #f8fafc;
}

#membresReseauCRJ .tri-box .btn-search--icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    background: #156C88;
    border-color: #156C88;
    color: #fff;
}

#membresReseauCRJ .tri-box .btn-search--icon:hover,
#membresReseauCRJ .tri-box .btn-search--icon:focus {
    background: #125b72;
    border-color: #125b72;
    color: #fff;
}

#membresReseauCRJ .tri-box .btn-search--icon i {
    font-size: 1rem;
    line-height: 1;
}

#membresReseauCRJ .tri-title {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .06em;
    color: #125b72;
    margin-bottom: 14px;
}

#communaute {
    background-color: white;
}

.news-listing-grid .news-card {
    height: 100%;
}

/*** Home page - SECTION 7 : Communauté ***/
.communauteReseauCRJ {
    background: #F8F8F8;
    border-bottom: 1px solid var(--primary);
}

.communauteReseauCRJ__eyebrow {
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.communauteReseauCRJ__title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    line-height: 1.1;
    color: #000;
}

.communauteReseauCRJ__text {
    max-width: 520px;
    color: #5D6778;
    font-size: 1.15rem;
    line-height: 1.5;
}

.communauteReseauCRJ__btn {
    background: var(--primary);
    color: #FFF;
    border-radius: 16px;
    padding: 1rem 1.8rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.25s ease;
}

.communauteReseauCRJ__btn:hover {
    background: #0095cc;
    color: #FFF;
    transform: translateY(-2px);
}

/* BASE */
.communaute-card::before { 
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;

    background-repeat: no-repeat;
    background-position: right center;
    background-size: auto 275%;

    opacity: 0.095;
    pointer-events: none;
}

/* CARD 1 */
.communaute-card.card-emploi::before {
    background-image: url("../../images/forme_violet.svg");
}

/* CARD 2 */
.communaute-card.card-autochtones::before {
    background-image: url("../../images/forme_rouge.svg");
}

/* CARD 3 */
.communaute-card.card-education::before {
    background-image: url("../../images/forme_bleue.svg");
}

/* CARD 4 */
.communaute-card.card-citoyennete::before {
    background-image: url("../../images/forme_orange.svg");
}

/* CARD 5 */
.communaute-card.card-sante::before {
    background-image: url("../../images/forme_verte.svg");
}

/* CARD 1 */
.card-emploi {
    border: 1px solid #B44A9C;
}

/* CARD 2 */
.card-autochtones {
    border: 1px solid #E54E26;
}

/* CARD 3 */
.card-education {
    border: 1px solid #00AEE7;
}

/* CARD 4 */
.card-citoyennete{
    border: 1px solid #FDB940;
}

/* CARD 5 */
.card-sante{
    border: 1px solid #B2D235;
}

.communaute-card {
    position: relative;
    overflow: hidden;
    background: #FFF;

    /*border: 1px solid #E4E4E4;*/
    border-radius: 14px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    transition: all 0.25s ease;
    height: 100%;
}

.communaute-card > * {
    position: relative;
    z-index: 2;
}

.communaute-card--more::before {
    display: none;
}

.communaute-card--more {
    background: #FFF;
    border: 1px solid #E4E4E4;
}

/* CTA sans background */
.communaute-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.06);
}

.communaute-card__avatar img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
}

.communaute-card__content h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1F2937;
    margin-bottom: 0.15rem;
}

.communaute-card__content span {
    color: #667085;
    font-size: 0.80rem;
}

.communaute-card--more {
    justify-content: center;
    min-height: 88px;
}

.communaute-card--more strong {
    display: block;
    color: var(--primary);
    font-size: 1.4rem;
    line-height: 1;
    margin-bottom: 0.35rem;
}

@media (max-width: 991px) {

    .communauteReseauCRJ__title {
        font-size: 2.4rem;
    }

    .communauteReseauCRJ__text {
        max-width: 100%;
    }


}

.communaute-card__meta {
    display: flex;
    flex-direction: column;
    line-height: 1.35;
}

.communaute-card__statut {
    font-weight: 500;
}

.communaute-card__volet {
    opacity: 0.9;
    font-weight: 800;
}

/*** FIN Home page - SECTION 7 : Communauté ***/

.news-card__category.is-uncategorized {
    display: none;
}


/*** LES ONGLETS : remonte page + retour au site principal ***/
.back-to-top {
    position: fixed;
    right: 0;
    bottom: 120px;
    z-index: 9999;

    width: 48px;
    height: 48px;
    padding: 0 14px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, .18);
    /*box-shadow: 0 6px 24px rgba(0, 0, 0, .24);*/

    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;

    border: 0;
    border-radius: 24px 0 0 24px;

    background-color: var(--primary, #156C88);
    color: #fff;

    cursor: pointer;
    overflow: hidden;
    white-space: nowrap;

    opacity: 0;
    visibility: hidden;
    transform: translateX(100%);

    transition:
        width 0.3s ease,
        opacity 0.3s ease,
        visibility 0.3s ease,
        transform 0.3s ease,
        background-color 0.3s ease;
}

body.volet-1 .back-to-top,
body.volet-2 .back-to-top,
body.volet-3 .back-to-top,
body.volet-4 .back-to-top,
body.volet-5 .back-to-top {
    background-color: var(--current-volet-color);
}

body.volet-1 .back-to-top,
body.volet-5 .back-to-top {
    color: #111;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.back-to-top i {
    flex: 0 0 auto;
    font-size: 1.25rem;
}

.back-to-top span {
    opacity: 0;
    font-size: 0.9rem;
    font-weight: 600;
    transition: opacity 0.2s ease;
}

.back-to-top:hover,
.back-to-top:focus-visible {
    width: 210px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, .24);
}

.back-to-top:hover span,
.back-to-top:focus-visible span {
    opacity: 1;
}

.back-to-top:focus-visible {
    outline: 3px solid currentColor;
    outline-offset: 3px;
}

/* Onglet retour au site du réseau */
.crj-network-tab {
    position: fixed;
    right: 0;
    bottom: 176px;
    z-index: 9998;

    width: 48px;
    height: 48px;
    padding: 0 14px;

    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;

    background: #ffffff;
    color: #1f1f1f;
    text-decoration: none;

    border-radius: 24px 0 0 24px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, .18);

    overflow: hidden;
    white-space: nowrap;

    transition:
        width 0.3s ease,
        box-shadow 0.3s ease,
        background-color 0.3s ease;
}

.crj-network-tab:hover,
.crj-network-tab:focus-visible {
    width: 245px;
    color: #1f1f1f;
    text-decoration: none;
    box-shadow: 0 6px 24px rgba(0, 0, 0, .24);
}

.crj-network-tab__logo {
    flex: 0 0 auto;
    width: 30px;
    height: 30px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.crj-network-tab__logo img {
    display: block;
    width: 30px;
    height: auto;
    max-height: 30px;
}

.crj-network-tab__label {
    font-size: .9rem;
    font-weight: 600;
    line-height: 1.2;

    opacity: 0;
    transform: translateX(8px);
    transition: opacity .2s ease, transform .2s ease;
}

.crj-network-tab:hover .crj-network-tab__label,
.crj-network-tab:focus-visible .crj-network-tab__label {
    opacity: 1;
    transform: translateX(0);
}

.crj-network-tab:focus-visible {
    outline: 3px solid currentColor;
    outline-offset: 3px;
}

@media (max-width: 575.98px) {
    .back-to-top {
        bottom: 90px;
    }

    .crj-network-tab {
        bottom: 146px;
    }

    .back-to-top:hover,
    .back-to-top:focus-visible {
        width: 190px;
    }

    .crj-network-tab:hover,
    .crj-network-tab:focus-visible {
        width: 220px;
    }

    .crj-network-tab__label {
        font-size: .82rem;
    }
}

/* Onglets accès rapides aux microsites des volets */
.crj-volets-tabs {
    position: fixed;
    right: 0;
    bottom: 176px;
    z-index: 9997;

    display: flex;
    flex-direction: column-reverse;
    align-items: flex-end;
    gap: 8px;
}

.crj-volet-tab {
    width: 48px;
    height: 48px;
    padding: 0 14px;

    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;

    background: #ffffff;
    color: #1f1f1f;
    text-decoration: none;

    border-left: 4px solid transparent;
    border-radius: 24px 0 0 24px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, .18);

    overflow: hidden;
    white-space: nowrap;

    transition:
        width 0.3s ease,
        box-shadow 0.3s ease;
}

/* Couleurs par volet */
.crj-volet-tab--1 {
    border-left-color: #b7db2a;
}

.crj-volet-tab--2 {
    border-left-color: #b84ca0;
}

.crj-volet-tab--3 {
    border-left-color: #ef4b24;
}

.crj-volet-tab--4 {
    border-left-color: #f9b83e;
}

.crj-volet-tab--5 {
    border-left-color: #16a9cf;
}
.crj-volet-tab:hover,
.crj-volet-tab:focus-visible {
    width: max-content;
    min-width: 48px;
    max-width: calc(100vw - 24px);
    color: #1f1f1f;
    text-decoration: none;
    box-shadow: 0 6px 24px rgba(0, 0, 0, .24);
}

.crj-volet-tab__logo {
    flex: 0 0 auto;
    width: 30px;
    height: 30px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.crj-volet-tab__logo img {
    display: block;
    width: 30px;
    height: auto;
    max-height: 30px;
}

.crj-volet-tab__label {
    display: inline-block;
    font-size: .86rem;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;

    opacity: 0;
    transform: translateX(8px);
    transition: opacity .2s ease, transform .2s ease;
}

.crj-volet-tab:hover .crj-volet-tab__label,
.crj-volet-tab:focus-visible .crj-volet-tab__label {
    opacity: 1;
    transform: translateX(0);
}

.crj-volet-tab:focus-visible {
    outline: 3px solid currentColor;
    outline-offset: 3px;
}

@media (max-width: 575.98px) {
    .crj-volets-tabs {
        display: none;
    }
}
/*** // FIN - LES ONGLETS : remonte page + retour au site principal ***/


/*** SECTIONS LIÉES ***/
.members-section,
.productions-section,
.actualites-section,
.related-projects-section,
.gallery-section,
.partenaires-section {
    padding-top: 3rem;
    padding-bottom: 3rem;
    margin-top: 0;
}

.section-bg-light {
    background-color: #ECF3F5;
}

.section-bg-medium {
    background-color: #E3EEF1;
}

.js-related-carousel {
    overflow: hidden;
}

.js-related-carousel .row {
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.js-related-carousel .row::-webkit-scrollbar {
    display: none;
}

.production-slide {
    flex: 0 0 100%;
    max-width: 100%;
}

.related-news-slide,
.related-project-slide {
    flex: 0 0 100%;
    max-width: 100%;
}

@media (min-width: 768px) {
    .related-news-slide,
    .related-project-slide {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (min-width: 992px) {
    .related-news-slide,
    .related-project-slide {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
}

.logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.logo-item a {
    width: 100%;
    height: 100%;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-item a img,
.logo-item > img {
    max-width: 100%;
    max-height: 90px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.gallery-modal-text {
    margin-top: 1rem;
    padding: 1rem 1.25rem;
    background: #ffffff;
    border-radius: 0.75rem;
    color: #1f1f1f;
}

.gallery-modal-caption {
    margin: 0 0 0.35rem;
    font-size: 0.85rem;
    font-weight: 700;
}

.gallery-modal-description {
    margin: 0;
    font-size: 0.75rem;
    line-height: 1;
}
/*** //FIN - SECTIONS LIÉES ***/

/* ==========================================================
   THÉMATIQUES TRANSVERSALES
   Page éditoriale
   ========================================================== */

.themes-editorial {
    padding: 5rem 0 6rem;
    background: #fff;
}


/* ==========================================================
   THÉMATIQUES TRANSVERSALES
   Page éditoriale CRJ
   ========================================================== */


/* ==========================================================
   SECTION GÉNÉRALE
   ========================================================== */

.themes-editorial {
    padding: 5rem 0 6rem;
    background: #fff;
}


/* ==========================================================
   INTRODUCTION
   ========================================================== */

.themes-editorial__intro {
    position: relative;

    margin-bottom: 3.25rem;

    overflow: hidden;
}


/*
 * Grand 05 décoratif en arrière-plan
 */
.themes-editorial__intro::after {
    content: var(--crj-theme-count, "05");

    position: absolute;
    top: 50%;
    right: 1rem;

    transform: translateY(-50%);

    color: rgba(21, 108, 136, 0.055);

    font-size: clamp(7rem, 10vw, 11rem);
    font-weight: 800;
    line-height: 1;

    pointer-events: none;
    user-select: none;
}


/*
 * Trait vertical + contenu
 */
.themes-editorial__intro-inner {
    position: relative;
    z-index: 1;

    width: 100%;
    max-width: none;

    padding:
        0.35rem
        clamp(2rem, 10vw, 10rem)
        0.35rem
        2rem;

    border-left: 3px solid #156c88;
}


/* surtitre */

.themes-editorial__kicker {
    display: block;

    margin-bottom: 0.75rem;

    color: #156c88;

    font-size: 0.78rem;
    font-weight: 700;

    letter-spacing: 0.12em;
    line-height: 1.4;

    text-transform: uppercase;
}


/* titre */

.themes-editorial__title {
    width: 100%;
    max-width: none;

    margin: 0 0 1.25rem;

    color: #0f172a;

    font-size: clamp(1.7rem, 1.9vw, 2.15rem);
    font-weight: 700;
    line-height: 1.18;
}


/* intro */

.themes-editorial__lead {
    width: 100%;
    max-width: 1250px;

    margin: 0;

    color: #475569;

    font-size: 1.05rem;
    line-height: 1.75;
}


/* ==========================================================
   LISTE DES THÉMATIQUES
   ========================================================== */

.themes-editorial__list {
    display: flex;
    flex-direction: column;
}


/* ==========================================================
   CARTE
   ========================================================== */

.theme-editorial-card {
    position: relative;

    display: grid;

    grid-template-columns:
        70px
        110px
        minmax(0, 1fr)
        auto;

    gap: 1.5rem;

    align-items: center;

    min-height: 190px;

    padding: 2rem;

    background: #fff;

    border: 1px solid #e2e8f0;
    border-radius: 14px;

    overflow: hidden;

    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease,
        background-color 0.25s ease;
}


/*
 * Accent discret à gauche au hover
 */
.theme-editorial-card::before {
    content: "";

    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;

    width: 4px;

    background: #156c88;

    transform: scaleY(0);
    transform-origin: center;

    transition: transform 0.25s ease;
}


.theme-editorial-card + .theme-editorial-card {
    margin-top: 1rem;
}


/*
 * Alternance très légère
 */
.theme-editorial-card:nth-child(even) {
    background: #f8fafc;
}


/* hover */

.theme-editorial-card:hover {
    z-index: 2;

    border-color: rgba(21, 108, 136, 0.38);

    background: #fff;

    box-shadow:
        0 16px 42px rgba(15, 23, 42, 0.08);

    transform: translateY(-3px);
}


.theme-editorial-card:hover::before {
    transform: scaleY(1);
}


/* ==========================================================
   NUMÉRO
   ========================================================== */

.theme-editorial-card__number {
    display: flex;
    flex-direction: column;
    align-items: flex-start;

    color: #156c88;
}


.theme-editorial-card__number-value {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}


.theme-editorial-card__number-line {
    width: 30px;
    height: 2px;

    margin-top: 0.85rem;

    background: #156c88;

    transition: width 0.25s ease;
}


.theme-editorial-card:hover
.theme-editorial-card__number-line {
    width: 42px;
}


/* ==========================================================
   ICÔNE
   ========================================================== */

.theme-editorial-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100px;
    height: 100px;

    background: #f0f7f9;

    border-radius: 12px;

    color: #156c88;

    transition:
        background-color 0.25s ease,
        transform 0.25s ease;
}


.theme-editorial-card__icon i {
    font-size: 2.7rem;
    line-height: 1;
}


.theme-editorial-card:hover
.theme-editorial-card__icon {
    background: #e3eef1;

    transform: scale(1.04);
}


/* ==========================================================
   CONTENU
   ========================================================== */

.theme-editorial-card__content {
    min-width: 0;
}


.theme-editorial-card__title {
    margin: 0 0 0.7rem;

    color: #0f172a;

    font-size: 1.22rem;
    font-weight: 700;
    line-height: 1.3;
}


.theme-editorial-card__description {
    max-width: 850px;

    margin: 0;

    color: #475569;

    font-size: 0.98rem;
    line-height: 1.65;
}


/* ==========================================================
   CTA THÉMATIQUE
   ========================================================== */

.theme-editorial-card__action {
    padding-left: 1.5rem;
}


.theme-editorial-card__cta {
    display: inline-flex;
    align-items: center;

    gap: 0.9rem;

    white-space: nowrap;

    color: #156c88;

    text-decoration: none;

    font-size: 0.95rem;
    font-weight: 700;

    transition:
        color 0.2s ease,
        gap 0.2s ease;
}


.theme-editorial-card__cta i {
    font-size: 1.15rem;

    transition: transform 0.25s ease;
}


.theme-editorial-card__cta:hover {
    color: #0d4152;
}


.theme-editorial-card__cta:hover i,
.theme-editorial-card:hover
.theme-editorial-card__cta i {
    transform: translateX(6px);
}


/* ==========================================================
   BLOC FINAL
   ========================================================== */

.themes-editorial-explore {
    position: relative;

    display: grid;

    grid-template-columns:
        110px
        minmax(0, 1fr)
        280px;

    gap: 2rem;

    align-items: center;

    margin-top: 3rem;

    padding: 2.4rem;

    background:
        linear-gradient(
            110deg,
            #f0f7f9 0%,
            #f8fafc 100%
        );

    border: 1px solid #e2e8f0;
    border-radius: 16px;

    overflow: hidden;
}


/*
 * Petit élément graphique décoratif
 */
.themes-editorial-explore::after {
    content: "";

    position: absolute;

    width: 220px;
    height: 220px;

    top: -110px;
    right: -70px;

    border: 34px solid rgba(21, 108, 136, 0.045);

    border-radius: 50%;

    pointer-events: none;
}


/* icône */

.themes-editorial-explore__icon {
    position: relative;
    z-index: 1;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 95px;
    height: 95px;

    background: #fff;

    border: 1px solid #e2e8f0;
    border-radius: 50%;

    color: #156c88;

    box-shadow:
        0 8px 25px rgba(15, 23, 42, 0.05);
}


.themes-editorial-explore__icon i {
    font-size: 2.6rem;
}


/* contenu */

.themes-editorial-explore__content {
    position: relative;
    z-index: 1;
}


.themes-editorial-explore__kicker {
    display: block;

    margin-bottom: 0.4rem;

    color: #156c88;

    font-size: 0.75rem;
    font-weight: 700;

    letter-spacing: 0.12em;

    text-transform: uppercase;
}


.themes-editorial-explore__title {
    margin: 0 0 0.75rem;

    color: #0f172a;

    font-size: 1.5rem;
    font-weight: 700;
}


.themes-editorial-explore__content p {
    max-width: 650px;

    margin: 0;

    color: #475569;

    line-height: 1.65;
}


/* boutons */

.themes-editorial-explore__actions {
    position: relative;
    z-index: 1;

    display: flex;
    flex-direction: column;

    gap: 0.75rem;
}


.themes-editorial-explore__button {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 1rem;

    width: 100%;

    padding: 0.9rem 1.15rem;

    border: 2px solid #156c88;
    border-radius: 7px;

    font-size: 0.92rem;
    font-weight: 700;

    text-decoration: none;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


.themes-editorial-explore__button i {
    transition: transform 0.2s ease;
}


.themes-editorial-explore__button:hover i {
    transform: translateX(5px);
}


/* principal */

.themes-editorial-explore__button--primary {
    background: #156c88;
    color: #fff;
}


.themes-editorial-explore__button--primary:hover {
    background: #11566d;
    border-color: #11566d;

    color: #fff;

    box-shadow:
        0 7px 18px rgba(21, 108, 136, 0.18);
}


/* outline */

.themes-editorial-explore__button--outline {
    background: transparent;

    color: #156c88;
}


.themes-editorial-explore__button--outline:hover {
    background: #fff;

    color: #0d4152;
}


/* ==========================================================
   ÉCRANS INTERMÉDIAIRES
   ========================================================== */

@media (max-width: 1399.98px) {

    .themes-editorial__intro-inner {
        padding-right: 7rem;
    }

    .themes-editorial__title {
        font-size: clamp(1.65rem, 2vw, 2rem);
    }

}


/* ==========================================================
   TABLETTE
   ========================================================== */

@media (max-width: 1199.98px) {

    .themes-editorial__intro::after {
        font-size: 8rem;
    }


    .themes-editorial__intro-inner {
        padding-right: 5rem;
    }


    .theme-editorial-card {
        grid-template-columns:
            60px
            95px
            minmax(0, 1fr);
    }


    .theme-editorial-card__icon {
        width: 85px;
        height: 85px;
    }


    .theme-editorial-card__icon i {
        font-size: 2.3rem;
    }


    .theme-editorial-card__action {
        grid-column: 3;

        padding-left: 0;
        padding-top: 0.25rem;
    }


    .themes-editorial-explore {
        grid-template-columns:
            90px
            minmax(0, 1fr);
    }


    .themes-editorial-explore__actions {
        grid-column: 2;

        flex-direction: row;
    }


    .themes-editorial-explore__button {
        width: auto;
        min-width: 220px;
    }

}


/* ==========================================================
   PETITE TABLETTE
   ========================================================== */

@media (max-width: 991.98px) {

    .themes-editorial {
        padding-top: 4rem;
    }


    .themes-editorial__intro::after {
        opacity: 0.65;
    }


    .themes-editorial__intro-inner {
        padding-right: 2rem;
    }


    .themes-editorial__lead {
        max-width: 100%;
    }

}


/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 767.98px) {

    .themes-editorial {
        padding: 3rem 0 4rem;
    }


    /* intro */

    .themes-editorial__intro {
        margin-bottom: 2.25rem;
    }


    .themes-editorial__intro::after {
        content: none;
    }


    .themes-editorial__intro-inner {
        padding:
            0.15rem
            0
            0.15rem
            1.25rem;
    }


    .themes-editorial__kicker {
        font-size: 0.7rem;
    }


    .themes-editorial__title {
        font-size: 1.7rem;
        line-height: 1.2;
    }


    .themes-editorial__lead {
        font-size: 1rem;
        line-height: 1.65;
    }


    /* cartes */

    .theme-editorial-card {
        grid-template-columns:
            55px
            minmax(0, 1fr);

        gap: 1rem;

        min-height: 0;

        padding: 1.5rem;
    }


    .theme-editorial-card + .theme-editorial-card {
        margin-top: 1rem;
    }


    /* numéro */

    .theme-editorial-card__number {
        grid-column: 1;
        grid-row: 1;
    }


    /* icône */

    .theme-editorial-card__icon {
        grid-column: 2;
        grid-row: 1;

        width: 70px;
        height: 70px;
    }


    .theme-editorial-card__icon i {
        font-size: 2rem;
    }


    /* contenu */

    .theme-editorial-card__content {
        grid-column: 1 / -1;
    }


    .theme-editorial-card__title {
        font-size: 1.15rem;
    }


    .theme-editorial-card__description {
        max-width: none;
    }


    /* CTA */

    .theme-editorial-card__action {
        grid-column: 1 / -1;

        padding: 0.25rem 0 0;
    }


    .theme-editorial-card__cta {
        white-space: normal;
    }


    /* exploration */

    .themes-editorial-explore {
        display: flex;
        flex-direction: column;
        align-items: flex-start;

        padding: 1.75rem;
    }


    .themes-editorial-explore::after {
        width: 150px;
        height: 150px;

        top: -80px;
        right: -70px;
    }


    .themes-editorial-explore__icon {
        width: 75px;
        height: 75px;
    }


    .themes-editorial-explore__icon i {
        font-size: 2.1rem;
    }


    .themes-editorial-explore__actions {
        width: 100%;

        flex-direction: column;
    }


    .themes-editorial-explore__button {
        width: 100%;
        min-width: 0;
    }

}


/* ==========================================================
   TRÈS PETITS ÉCRANS
   ========================================================== */

@media (max-width: 479.98px) {

    .theme-editorial-card {
        padding: 1.25rem;
    }


    .theme-editorial-card__number-value {
        font-size: 1.7rem;
    }


    .theme-editorial-card__description {
        font-size: 0.94rem;
    }


    .themes-editorial-explore {
        padding: 1.5rem;
    }

}

/* ==========================================================
   THÉMATIQUE TRANSVERSALE
   TAXONOMY - CRJ
   ========================================================== */


/* ==========================================================
   INTRO ÉDITORIALE
   ========================================================== */

.theme-transversal-hero-editorial {
    padding: 4.5rem 0;
    background: #fff;
}


.theme-transversal-intro {
    position: relative;

    display: grid;
    grid-template-columns: 100px 120px minmax(0, 1fr);

    gap: 2rem;
    align-items: center;

    padding: 2.5rem 3rem;

    background:
        linear-gradient(
            110deg,
            #f0f7f9 0%,
            #fff 100%
        );

    border: 1px solid #e2e8f0;
    border-radius: 18px;

    overflow: hidden;
}


.theme-transversal-intro::after {
    content: "";

    position: absolute;

    width: 280px;
    height: 280px;

    top: -140px;
    right: -100px;

    border: 42px solid rgba(21, 108, 136, 0.05);
    border-radius: 50%;

    pointer-events: none;
}


/* numéro */

.theme-transversal-intro__number {
    position: relative;
    z-index: 1;

    color: #156c88;

    font-size: 4rem;
    font-weight: 800;
    line-height: 1;
}


/* icône */

.theme-transversal-intro__icon {
    position: relative;
    z-index: 1;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 105px;
    height: 105px;

    background: #fff;

    border-radius: 16px;

    color: #156c88;

    box-shadow:
        0 8px 24px rgba(15, 23, 42, 0.06);
}


.theme-transversal-intro__icon i {
    font-size: 2.8rem;
}


/* contenu */

.theme-transversal-intro__content {
    position: relative;
    z-index: 1;

    max-width: 1000px;
}


.theme-transversal-intro__kicker {
    display: block;

    margin-bottom: 0.45rem;

    color: #156c88;

    font-size: 0.76rem;
    font-weight: 700;

    letter-spacing: 0.12em;

    text-transform: uppercase;
}


.theme-transversal-intro__title {
    margin: 0 0 1rem;

    color: #0f172a;

    font-size: clamp(2rem, 3vw, 3rem);
    font-weight: 700;
    line-height: 1.15;
}


.theme-transversal-intro__description {
    max-width: 1000px;

    color: #475569;

    font-size: 1.05rem;
    line-height: 1.75;
}


.theme-transversal-intro__description p:last-child {
    margin-bottom: 0;
}


/* ==========================================================
   SECTIONS
   ========================================================== */

.theme-tax-section {
    padding: 5rem 0;
}


/*
 * On reproduit le header utilisé dans related-content :
 *
 * TITRE                         NAV + CTA
 */

.theme-tax-section__header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 2rem;

    margin-bottom: 2rem;
}


.theme-tax-section__header .h1 {
    margin: 0;

    color: #0f172a;
}


/* ==========================================================
   COMPTEUR
   ========================================================== */

.theme-section-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 36px;
    height: 36px;

    margin-left: 0.5rem;

    padding: 0 0.65rem;

    background: #e7f2f5;

    border-radius: 999px;

    color: #156c88;

    font-size: 0.9rem;
    font-weight: 700;

    vertical-align: middle;
}


/* ==========================================================
   ACTIONS À DROITE DU TITRE
   ========================================================== */

.theme-tax-section__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: 1rem;

    flex-shrink: 0;
}


/*
 * Important :
 * .carousel-nav
 * .btn-nav
 * .prev
 * .next
 *
 * restent ceux du module related-content existant.
 * On ne les redéfinit pas ici.
 */


/* ==========================================================
   CTA VOIR TOUT
   ========================================================== */

.theme-section-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 0.7rem;

    min-height: 42px;

    padding: 0.7rem 1rem;

    border: 1px solid #156c88;
    border-radius: 7px;

    color: #156c88;

    background: transparent;

    font-size: 0.9rem;
    font-weight: 700;

    line-height: 1.2;

    text-decoration: none;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
}


.theme-section-cta i {
    transition: transform 0.2s ease;
}


.theme-section-cta:hover {
    background: #156c88;
    border-color: #156c88;

    color: #fff;
}


.theme-section-cta:hover i {
    transform: translateX(4px);
}


/* ==========================================================
   CARROUSELS
   ========================================================== */

/*
 * Le parent masque les slides qui dépassent.
 */

.theme-tax-section .js-theme-carousel {
    width: 100%;

    overflow: hidden;
}


/*
 * On garde le système Bootstrap row/columns utilisé
 * par related-content.
 */

.theme-tax-section .js-theme-carousel > .row {
    overflow-x: auto;
    overflow-y: hidden;

    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;

    scrollbar-width: none;
}


.theme-tax-section .js-theme-carousel > .row::-webkit-scrollbar {
    display: none;
}


/*
 * Chaque slide s'accroche proprement lors du scroll.
 */

.theme-tax-section .related-news-slide,
.theme-tax-section .related-project-slide,
.theme-tax-section .production-slide {
    scroll-snap-align: start;
}


/* ==========================================================
   PRODUCTIONS
   ========================================================== */

/*
 * Une seule production doit occuper la largeur disponible.
 */

.theme-tax-section
.productions-carousel
.production-slide {
    flex: 0 0 100%;
    width: 100%;
}


/* ==========================================================
   MEMBRES
   ========================================================== */

.theme-tax-section
.other-members-carousel
.row > * {
    scroll-snap-align: start;
}


/* ==========================================================
   PARTENAIRES
   ========================================================== */

/*
 * Reprise exacte du principe du module related-content :
 * titre et sous-titre centrés.
 */

.theme-tax-section.partenaires-section
.gallery-title-wrapper {
    text-align: center;
}


/*
 * Le logo-grid existant continue de gérer les cartes.
 * On centre seulement l'ensemble de la grille.
 */

.theme-tax-section.partenaires-section
.logo-grid {
    justify-content: center;
}


/* CTA sous les partenaires */

.theme-partners-cta {
    display: flex;
    justify-content: center;

    margin-top: 2rem;
}


/* ==========================================================
   TABLETTE
   ========================================================== */

@media (max-width: 991.98px) {

    .theme-transversal-intro {
        grid-template-columns:
            80px
            90px
            minmax(0, 1fr);

        padding: 2rem;
    }


    .theme-transversal-intro__number {
        font-size: 3rem;
    }


    .theme-transversal-intro__icon {
        width: 80px;
        height: 80px;
    }


    .theme-transversal-intro__icon i {
        font-size: 2.2rem;
    }


    .theme-tax-section__header {
        align-items: flex-start;
    }


    .theme-tax-section__actions {
        flex-wrap: wrap;
    }

}


/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 767.98px) {

    .theme-transversal-hero-editorial {
        padding: 3rem 0;
    }


    .theme-transversal-intro {
        grid-template-columns: 60px 1fr;

        gap: 1.25rem;

        padding: 1.5rem;
    }


    .theme-transversal-intro::after {
        width: 180px;
        height: 180px;

        top: -90px;
        right: -70px;
    }


    .theme-transversal-intro__number {
        font-size: 2.4rem;
    }


    .theme-transversal-intro__icon {
        width: 70px;
        height: 70px;
    }


    .theme-transversal-intro__content {
        grid-column: 1 / -1;
    }


    .theme-transversal-intro__title {
        font-size: 1.8rem;
    }


    /* sections */

    .theme-tax-section {
        padding: 3.5rem 0;
    }


    .theme-tax-section__header {
        flex-direction: column;

        gap: 1rem;
    }


    .theme-tax-section__actions {
        width: 100%;

        justify-content: space-between;
    }


    /*
     * Le CTA peut prendre la place restante
     * à côté des flèches.
     */

    .theme-section-cta {
        flex: 1 1 auto;
    }

}


/* ==========================================================
   PETITS MOBILES
   ========================================================== */

@media (max-width: 479.98px) {

    .theme-tax-section__actions {
        align-items: stretch;
        flex-direction: column;
    }


    .theme-tax-section__actions .carousel-nav {
        align-self: flex-end;
    }


    .theme-section-cta {
        width: 100%;
    }

}


.page-hero--theme {
    padding-bottom: 3rem;
}

.theme-hero-identity {
    display: grid;
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 1.75rem;
    align-items: center;

    margin-top: 2rem;
}

.theme-hero-identity__icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 90px;
    height: 90px;

    background: #fff;
    border-radius: 14px;

    color: #156c88;

    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.theme-hero-identity__icon i {
    font-size: 2.4rem;
}

.theme-hero-identity__kicker {
    display: block;

    margin-bottom: 0.35rem;

    color: #156c88;

    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;

    text-transform: uppercase;
}

.theme-hero-identity__title {
    margin: 0;

    font-size: clamp(2rem, 3vw, 3.2rem);
    line-height: 1.1;
}
/* V4.12.2 — accueil des volets : préserver le visage des cotitulaires sur mobile */
@media (max-width: 576px) {
    #communaute .news-card img {
        object-position: center top;
    }
}

/* V4.12.2 — page d'erreur commune */
.crj-error-page { padding: clamp(2.5rem, 6vw, 5rem) 0; background:#fff; }
.crj-error-page__inner { max-width:1100px; margin:0 auto; }
.crj-error-page__code { margin:0 0 .5rem; color:var(--primary); font-size:.9rem; font-weight:800; letter-spacing:.08em; text-transform:uppercase; }
.crj-error-page h1 { margin-bottom:1rem; }
.crj-error-page__lead { max-width:760px; font-size:1.1rem; }
.crj-error-page__actions { display:flex; flex-wrap:wrap; gap:.75rem; margin:1.5rem 0 2.5rem; }
.crj-sitemap { padding:1.5rem; border:1px solid #dce6ea; border-radius:16px; background:#f8fafb; }
.crj-sitemap h2 { margin-bottom:1rem; font-size:1.5rem; }
.crj-sitemap__grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1.5rem 2.5rem; }
.crj-sitemap__group h3 { font-size:1rem; margin-bottom:.65rem; color:var(--primary); }
.crj-sitemap ul { margin:0; padding-left:1.15rem; }
.crj-sitemap li + li { margin-top:.35rem; }
@media (max-width:576px) { .crj-sitemap__grid { grid-template-columns:1fr; } }

/* V4.12.3 — finitions responsive, page 404 et lien de connexion */
.footer-login-link {
    color: inherit;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-decoration: none;
}
.footer-login-link:hover,
.footer-login-link:focus {
    color: var(--primary);
    text-decoration: underline;
}
.copyright-login-separator { margin: 0 .45rem; opacity: .65; }

/* La page d'erreur reste volontairement courte : aucune arborescence exhaustive. */
.crj-error-page {
    min-height: clamp(360px, 48vh, 560px);
    display: flex;
    align-items: center;
}
.crj-error-page__inner { max-width: 920px; }
.crj-error-page__code { margin-bottom: .75rem; }
.crj-error-page h1 { max-width: 760px; font-size: clamp(2rem, 4vw, 3.25rem); line-height: 1.08; }
.crj-error-page__lead { max-width: 700px; line-height: 1.65; }
.crj-error-page__actions { margin-bottom: 0; }

/* Accueil des volets : entre téléphone étroit et breakpoint Bootstrap md,
   conserver une photo naturelle plutôt qu'un recadrage fixe de 220 px. */
@media (min-width: 376px) and (max-width: 576px) {
    #communaute .news-card img {
        height: auto;
        max-height: none;
        object-fit: contain;
        object-position: center center;
    }
    #communaute .news-card .col-md-4 {
        padding: 1rem !important;
    }
}
