/* ============================================
   HABILLAGE INSTITUTIONNEL - SITE PUBLIC
   Chargé après argon/style/dark-mode : remplace la mise en page
   "tableau de bord" par une mise en page de site vitrine.

   Identité : institutionnelle et sobre. Blanc, gris froids, bleu nuit et
   la couleur d'accent de la palette ; polices DM Serif Display (titres) et DM Sans (texte) ;
   l'arche reprend la paillote ronde de la cour. La couleur d'accent suit la palette
   choisie dans l'administration.
   ============================================ */

:root {
    --ink: #14213D;
    --ink-soft: #46516B;
    --paper: #FFFFFF;
    --surface: #FFFFFF;
    --line: #E4E7EE;
    --tint: rgba(var(--primary-rgb), 0.09);
    --mint: rgba(var(--primary-rgb), 0.13);
    --sand: #EEF2F8;
    --clay: #ECEEF5;
    --blush: #F5F6FA;
    --heart: #C2456B;
    --night: #14213D;
    --site-width: 1200px;
    --font-title: 'DM Serif Display', Georgia, 'Times New Roman', serif;
    --font-ui: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --radius: 24px;
    --shadow-soft: 0 24px 60px rgba(20, 33, 61, 0.10);
}

body.dark-mode {
    --ink: #F1F2F6;
    --ink-soft: #B4B9C8;
    --paper: #12141C;
    --surface: #1B1E2B;
    --line: #2B3042;
    --tint: rgba(var(--primary-rgb), 0.18);
    --mint: rgba(var(--primary-rgb), 0.2);
    --sand: #171A26;
    --clay: #1E2233;
    --blush: #171A26;
    --heart: #E58AA6;
    --night: #0C0E14;
    --shadow-soft: 0 24px 60px rgba(0, 0, 0, 0.35);
}

body {
    background: var(--paper);
    color: var(--ink-soft);
    font-family: var(--font-ui);
    font-size: 1rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

.site-container {
    width: 100%;
    max-width: var(--site-width);
    margin: 0 auto;
    padding: 0 28px;
}

/* ========== MISE EN PAGE : plus de colonne latérale ========== */
.main-content {
    margin-left: 0 !important;
    background: transparent !important;
    display: flex;
    flex-direction: column;
}

.main-content > .container-fluid,
.main-content > .container {
    max-width: var(--site-width);
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 28px;
    padding-right: 28px;
}

.sidebar {
    transform: translateX(-100%) !important;
    z-index: 1200;
    transition: transform 0.3s ease;
}

body.menu-open .sidebar {
    transform: translateX(0) !important;
}

body.menu-open {
    overflow: hidden;
}

#siteSidebarBackdrop {
    z-index: 1100;
}

.sidebar-close-btn {
    display: flex;
}

/* ========== BANDEAU D'INFORMATIONS ========== */
.topbar {
    background: var(--night);
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.8rem;
}

.topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    min-height: 38px;
}

.topbar-infos {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

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

.topbar a:hover {
    color: #fff;
}

.topbar i {
    margin-right: 6px;
    color: var(--primary-light);
}

.topbar-tel {
    font-weight: 700;
    color: #fff !important;
    white-space: nowrap;
}

/* ========== EN-TÊTE ========== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--paper);
    border-bottom: 1px solid transparent;
    transition: box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.site-header.scrolled {
    background: var(--surface);
    border-bottom-color: var(--line);
    box-shadow: 0 10px 30px rgba(20, 33, 61, 0.06);
}

.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 100px;
}

.site-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    min-width: 0;
}

.site-brand img {
    height: 68px;
    width: 68px;
    object-fit: contain;
    border-radius: 50%;
    background: #fff;
    flex-shrink: 0;
}

.site-brand span {
    font-family: var(--font-title);
    font-weight: 600;
    font-size: 1.06rem;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: var(--ink);
    max-width: 290px;
}

.site-nav {
    display: flex;
    gap: 2px;
}

.site-nav a {
    padding: 13px 14px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.96rem;
    color: var(--ink-soft);
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s ease, background 0.2s ease;
}

.site-nav a:hover {
    color: var(--ink);
    background: var(--tint);
}

.site-nav a.active {
    color: var(--ink);
    background: var(--mint);
}

.site-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.theme-toggle,
.menu-toggle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--ink-soft);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: background 0.2s ease, color 0.2s ease;
}

.theme-toggle:hover,
.menu-toggle:hover {
    background: var(--tint);
    color: var(--ink);
}

.menu-toggle {
    display: none;
}

/* ========== BOUTONS ========== */
.btn-site {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 26px;
    border-radius: 999px;
    font-family: var(--font-ui);
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.2;
    text-decoration: none !important;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

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

.btn-site i {
    transition: transform 0.2s ease;
}

.btn-site:hover .fa-arrow-right {
    transform: translateX(4px);
}

.btn-site-primary {
    background: var(--primary-dark);
    color: #fff !important;
    box-shadow: 0 10px 24px rgba(var(--primary-rgb), 0.26);
}

.btn-site-primary:hover {
    background: var(--ink);
}

body.dark-mode .btn-site-primary:hover {
    background: var(--primary);
}

.btn-site-outline {
    border-color: var(--line);
    color: var(--ink) !important;
    background: var(--surface);
}

.btn-site-outline:hover {
    border-color: var(--ink);
}

.btn-site-light {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.28);
    color: #fff !important;
}

.btn-site-light:hover {
    background: rgba(255, 255, 255, 0.2);
}

.btn-site-white {
    background: #fff;
    color: #14213D !important;
}

.header-cta {
    padding: 11px 22px;
    font-size: 0.9rem;
}

/* ========== TITRE DES PAGES INTÉRIEURES ========== */
.page-title,
body.dark-mode .page-title {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    min-height: 300px;
    background:
        linear-gradient(90deg, rgba(20, 33, 61, 0.94) 0%, rgba(20, 33, 61, 0.78) 42%, rgba(20, 33, 61, 0.3) 100%),
        var(--banniere, none) center / cover no-repeat,
        var(--night);
    border: 0;
    border-radius: 0;
    margin-bottom: 56px;
    padding: 56px max(28px, calc((100% - var(--site-width)) / 2 + 28px));
}

.page-title::before {
    display: none;
}

.page-title h2,
body.dark-mode .page-title h2 {
    font-family: var(--font-title);
    font-weight: 500;
    font-size: clamp(1.9rem, 4vw, 2.9rem);
    letter-spacing: -0.015em;
    color: #fff !important;
    max-width: 760px;
}

.page-title h2 i {
    display: none;
}

.page-title .btn,
.page-title .breadcrumb a {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.45);
    border-radius: 999px;
}

.page-title .btn:hover {
    background: #fff;
    color: #14213D;
}

.page-title .breadcrumb-item,
.page-title .breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.75);
}

.main-content .card {
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-title);
    font-weight: 500;
    letter-spacing: -0.01em;
}

/* ========== SECTIONS ========== */
.section {
    padding: 104px 0;
}

.section-alt {
    background: var(--sand);
}

.section-sand {
    background: var(--sand);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-ui);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--primary-dark);
    margin-bottom: 18px;
}

.eyebrow::before {
    content: '';
    width: 28px;
    height: 1.5px;
    background: currentColor;
}

body.dark-mode .eyebrow {
    color: var(--primary-light);
}

.section-head {
    max-width: 720px;
    margin-bottom: 56px;
}

.section-head.with-link {
    max-width: none;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    flex-wrap: wrap;
}

.section-head.with-link > div {
    max-width: 720px;
}

.section-head h2 {
    font-size: clamp(1.8rem, 3.4vw, 2.7rem);
    font-weight: 500;
    line-height: 1.15;
    color: var(--ink);
    letter-spacing: -0.015em;
}

.section-head h2 em {
    font-style: normal;
    color: var(--primary-dark);
}

body.dark-mode .section-head h2 em {
    color: var(--primary-light);
}

.section-head p {
    margin-top: 18px;
    font-size: 1.1rem;
    max-width: 600px;
}

.link-arrow {
    font-family: var(--font-ui);
    font-weight: 700;
    color: var(--ink);
    text-decoration: none;
    white-space: nowrap;
    padding-bottom: 4px;
    background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1.5px no-repeat;
}

.link-arrow i {
    margin-left: 8px;
    font-size: 0.85em;
    transition: transform 0.2s ease;
}

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

body.dark-mode .link-arrow:hover {
    color: var(--primary-light);
}

.link-arrow:hover i {
    transform: translateX(4px);
}

/* Photos du centre (balise <picture>) */
.photo,
.photo img {
    display: block;
    width: 100%;
    height: 100%;
}

.photo img {
    object-fit: cover;
}

/* Apparition douce au défilement (activée par site.js seulement) */
.js-reveal .reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.8s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
    transition-delay: var(--d, 0s);
}

.js-reveal .reveal.is-in {
    opacity: 1;
    transform: none;
}

/* --- Bloc d'ouverture --- */
.hero {
    position: relative;
    overflow: hidden;
    background: var(--paper);
    color: var(--ink-soft);
    padding: 64px 0 104px;
}

.hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    gap: 64px;
    align-items: center;
}

.hero h1 {
    font-size: clamp(2.3rem, 4.8vw, 3.9rem);
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: -0.02em;
    color: var(--ink);
}

.hero h1 em {
    font-style: normal;
    font-weight: 400;
    color: var(--primary-dark);
}

body.dark-mode .hero h1 em {
    color: var(--primary-light);
}

.hero-lead {
    margin: 28px 0 38px;
    font-size: 1.16rem;
    max-width: 520px;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

/* Composition : arche (la paillote), médaillon, formes pastel */
.hero-visual {
    position: relative;
    max-width: 480px;
    margin-left: auto;
    width: 100%;
}

.hero-visual::before,
.hero-visual::after {
    content: '';
    position: absolute;
    pointer-events: none;
}

.hero-visual::before {
    width: 76%;
    aspect-ratio: 1;
    right: -18%;
    top: -9%;
    border-radius: 50%;
    background: var(--mint);
}

.hero-visual::after {
    width: 46%;
    height: 30%;
    left: -16%;
    bottom: 12%;
    border-radius: 999px;
    background: var(--clay);
}

.hero-arch {
    position: relative;
    z-index: 1;
    aspect-ratio: 4 / 5;
    border-radius: 999px 999px var(--radius) var(--radius);
    overflow: hidden;
    background: var(--mint);
    box-shadow: var(--shadow-soft);
}

.hero-round {
    position: absolute;
    z-index: 2;
    width: 40%;
    aspect-ratio: 1;
    left: -13%;
    bottom: -7%;
    border-radius: 50%;
    overflow: hidden;
    border: 8px solid var(--paper);
    background: var(--sand);
}

.hero-note {
    position: absolute;
    z-index: 3;
    right: -6%;
    bottom: 9%;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px 14px 14px;
    border-radius: 999px;
    background: var(--surface);
    box-shadow: var(--shadow-soft);
    font-size: 0.86rem;
    line-height: 1.35;
    color: var(--ink-soft);
}

.hero-note i {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--mint);
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hero-note strong {
    display: block;
    font-weight: 800;
    color: var(--ink);
}

/* --- Chiffres clés --- */
.figures {
    background: var(--surface);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.figures-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.figure {
    padding: 40px 28px;
    border-left: 1px solid var(--line);
    text-decoration: none;
    transition: background 0.2s ease;
}

.figure:first-child {
    border-left: 0;
    padding-left: 0;
}

.figure:hover {
    background: var(--tint);
}

.figure:first-child:hover {
    background: transparent;
}

.figure strong {
    display: block;
    font-family: var(--font-title);
    font-size: clamp(2.6rem, 4.4vw, 3.6rem);
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--ink);
}

.figure span {
    display: block;
    margin-top: 12px;
    font-weight: 600;
    font-size: 0.94rem;
    color: var(--ink-soft);
}

/* --- Ce qui nous distingue --- */
.pillars {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.pillar {
    display: flex;
    flex-direction: column;
    min-height: 320px;
    padding: 32px 28px;
    background: var(--sand);
    border-radius: 20px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}


.pillar:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-soft);
    color: inherit;
}

.pillar-num {
    font-family: var(--font-title);
    font-style: normal;
    font-size: 1.5rem;
    color: var(--ink);
    opacity: 0.55;
}

.pillar h3 {
    margin: auto 0 12px;
    padding-top: 40px;
    font-size: 1.45rem;
    font-weight: 500;
    color: var(--ink);
    line-height: 1.15;
    letter-spacing: -0.015em;
}

.pillar p {
    margin-bottom: 22px;
    font-size: 0.95rem;
}

.pillar .link-arrow {
    align-self: flex-start;
    font-size: 0.9rem;
}

/* --- Départements --- */
.soins {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 72px;
    align-items: start;
}

.soins-aside {
    position: sticky;
    top: 120px;
}

.soins-aside .section-head {
    margin-bottom: 32px;
}

.soins-photo {
    aspect-ratio: 4 / 5;
    max-width: 380px;
    border-radius: 999px 999px var(--radius) var(--radius);
    overflow: hidden;
    background: var(--mint);
    margin-bottom: 28px;
}

.dept-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0 32px;
    border-top: 1px solid var(--line);
}

.dept-tile {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 22px 4px;
    border-bottom: 1px solid var(--line);
    text-decoration: none;
    transition: padding 0.25s ease;
}

.dept-tile:hover {
    padding-left: 12px;
}

.dept-tile > i {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--mint);
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
    transition: background 0.25s ease, color 0.25s ease;
}

.dept-tile:hover > i {
    background: var(--primary-dark);
    color: #fff;
}

body.dark-mode .dept-tile > i {
    color: var(--primary-light);
}

.dept-tile strong {
    display: block;
    font-family: var(--font-title);
    font-weight: 500;
    font-size: 1.16rem;
    color: var(--ink);
    line-height: 1.25;
}

.dept-tile small {
    display: block;
    color: var(--ink-soft);
    line-height: 1.4;
    margin-top: 3px;
    font-size: 0.86rem;
}

/* --- Mot de la direction : vidéo simple (sans entretien chapitré) --- */
.direction {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.direction-media {
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--night);
    aspect-ratio: 16 / 10;
}

.direction-media video,
.direction-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* --- Valeurs --- */
.values-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
    counter-reset: valeur;
}

.values-list li {
    counter-increment: valeur;
    padding-top: 26px;
    border-top: 1px solid var(--line);
    font-size: 1rem;
}

.values-list li::before {
    content: '0' counter(valeur);
    display: block;
    font-family: var(--font-title);
    font-style: normal;
    font-size: 1.1rem;
    color: var(--primary-dark);
    margin-bottom: 30px;
}

.values-list strong {
    display: block;
    font-family: var(--font-title);
    font-weight: 500;
    color: var(--ink);
    font-size: 1.9rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.values-foot {
    margin-top: 48px;
}

/* --- Mosaïque de photos du centre --- */
.mosaic {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: 150px;
    gap: 18px;
    margin-bottom: 72px;
}

.mosaic figure {
    position: relative;
    margin: 0;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--sand);
}

.mosaic figure:nth-child(1) { grid-column: span 5; grid-row: span 2; }
.mosaic figure:nth-child(2) { grid-column: span 4; grid-row: span 2; }
.mosaic figure:nth-child(3) { grid-column: span 3; grid-row: span 2; border-radius: 999px 999px var(--radius) var(--radius); }
.mosaic figure:nth-child(4) { grid-column: span 3; grid-row: span 2; }
.mosaic figure:nth-child(5) { grid-column: span 4; grid-row: span 2; }
.mosaic figure:nth-child(6) { grid-column: 1 / span 5; grid-row: 3 / span 2; }

.mosaic img {
    transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.mosaic figure:hover img {
    transform: scale(1.04);
}

.mosaic figcaption {
    position: absolute;
    left: 14px;
    bottom: 14px;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: #14213D;
    font-size: 0.8rem;
    font-weight: 700;
}

/* --- Galerie, équipe, actualités --- */
.cards-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.cards-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

.media-card {
    display: flex;
    flex-direction: column;
    background: transparent;
    text-decoration: none;
    color: inherit;
}

a.media-card:hover {
    color: inherit;
}

.media-card-visual {
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--mint);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 2rem;
}

.media-card-visual img,
.media-card-visual video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}

a.media-card:hover .media-card-visual img,
a.media-card:hover .media-card-visual video {
    transform: scale(1.05);
}

.media-card-body {
    padding: 20px 4px 0;
}

.media-card-tag {
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--primary-dark);
}

body.dark-mode .media-card-tag {
    color: var(--primary-light);
}

.media-card h3 {
    margin: 8px 0;
    font-size: 1.35rem;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.015em;
    color: var(--ink);
}

a.media-card:hover h3 {
    color: var(--primary-dark);
}

body.dark-mode a.media-card:hover h3 {
    color: var(--primary-light);
}

.media-card p {
    font-size: 0.95rem;
}

.person .media-card-visual {
    aspect-ratio: 4 / 5;
    border-radius: 999px 999px var(--radius) var(--radius);
}

.person .media-card-body {
    text-align: center;
}

.person h3 {
    margin: 0 0 6px;
    font-size: 1.2rem;
}

.team-photo {
    position: relative;
    margin: 0 0 64px;
    aspect-ratio: 21 / 9;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--sand);
}

.team-photo figcaption {
    position: absolute;
    left: 24px;
    bottom: 24px;
    max-width: min(420px, calc(100% - 48px));
    padding: 18px 24px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.94);
    color: #14213D;
    font-family: var(--font-title);
    font-style: normal;
    font-size: 1.15rem;
    line-height: 1.35;
}

.team-photo figcaption span {
    display: block;
    margin-top: 6px;
    font-family: var(--font-ui);
    font-style: normal;
    font-size: 0.78rem;
    font-weight: 700;
    color: #46516B;
}

/* --- Appel à contact --- */
.cta-band {
    position: relative;
    overflow: hidden;
    background: var(--night);
    border-radius: 36px;
    padding: 72px 64px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 36px;
    flex-wrap: wrap;
    color: rgba(255, 255, 255, 0.82);
}

body.dark-mode .cta-band {
    background: var(--surface);
}

.cta-band::before {
    content: '';
    position: absolute;
    width: 420px;
    height: 420px;
    right: -120px;
    top: -220px;
    border-radius: 50%;
    background: rgba(var(--primary-rgb), 0.45);
    pointer-events: none;
}

.cta-band > * {
    position: relative;
}

.cta-band h2 {
    font-size: clamp(1.8rem, 3.4vw, 2.8rem);
    font-weight: 500;
    color: #fff;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.cta-band h2 em {
    font-style: normal;
    color: var(--primary-light);
}

.cta-band p {
    margin-top: 14px;
    max-width: 520px;
    font-size: 1.05rem;
}

.cta-band-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* ========== PIED DE PAGE ========== */
.site-footer {
    margin-top: auto;
    background: var(--night);
    color: rgba(255, 255, 255, 0.7);
    padding: 80px 0 0;
}

.main-content > .container-fluid + .site-footer,
.main-content > .container + .site-footer {
    margin-top: 72px;
}

.site-footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 48px;
}

.site-footer .site-brand span {
    color: #fff;
}

.site-footer-brand p {
    margin: 20px 0;
    max-width: 320px;
}

.site-footer h6 {
    font-family: var(--font-ui);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--primary-light);
    margin-bottom: 20px;
}

.site-footer ul {
    list-style: none;
}

.site-footer li {
    margin-bottom: 10px;
}

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

.site-footer a:hover {
    color: #fff;
}

.site-footer-contact {
    margin-bottom: 20px;
}

.site-footer-contact i {
    width: 20px;
    color: var(--primary-light);
}

.site-footer-socials {
    display: flex;
    gap: 10px;
}

.site-footer-socials a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.site-footer-bottom {
    margin-top: 60px;
    padding: 24px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.85rem;
}

/* ========== ADAPTATION AUX ÉCRANS ========== */
@media (max-width: 1100px) {
    .pillars,
    .cards-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .pillar {
        min-height: 260px;
    }

    .soins {
        gap: 48px;
    }

    .dept-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 991.98px) {
    .site-nav,
    .header-cta {
        display: none;
    }

    .menu-toggle {
        display: inline-flex;
    }

    .topbar-infos a {
        display: none;
    }

    .hero {
        padding: 40px 0 88px;
    }

    .hero-grid,
    .direction,
    .soins {
        grid-template-columns: 1fr;
        gap: 56px;
    }

    .hero-visual {
        margin: 0 auto;
        max-width: 400px;
    }

    .soins-aside {
        position: static;
    }

    .soins-photo {
        display: none;
    }

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

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

    .figure,
    .figure:first-child {
        padding: 28px 20px;
    }

    .figure:nth-child(3) {
        border-left: 0;
    }

    .figure:nth-child(n+3) {
        border-top: 1px solid var(--line);
    }

    .values-list {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .values-list li::before {
        margin-bottom: 14px;
    }

    .mosaic {
        grid-template-columns: repeat(6, 1fr);
        grid-auto-rows: 130px;
        gap: 12px;
    }

    .mosaic figure:nth-child(1) { grid-column: span 6; grid-row: span 2; }
    .mosaic figure:nth-child(2),
    .mosaic figure:nth-child(3),
    .mosaic figure:nth-child(4),
    .mosaic figure:nth-child(5) { grid-column: span 3; grid-row: span 2; }
    .mosaic figure:nth-child(6) { grid-column: span 6; grid-row: span 2; }

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

    .site-footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .section {
        padding: 72px 0;
    }

    .cta-band {
        padding: 48px 36px;
    }
}

@media (max-width: 600px) {
    .site-container,
    .main-content > .container-fluid,
    .main-content > .container {
        padding-left: 18px;
        padding-right: 18px;
    }

    .topbar-infos {
        display: none;
    }

    .topbar-inner {
        justify-content: center;
    }

    .site-header-inner {
        min-height: 68px;
    }

    .site-brand img {
        width: 40px;
        height: 40px;
    }

    .site-brand span {
        font-size: 0.9rem;
        max-width: 170px;
    }

    .hero-visual {
        max-width: 300px;
    }

    .hero-note {
        right: -10%;
        font-size: 0.78rem;
        padding: 10px 16px 10px 10px;
    }

    .hero-note i {
        width: 34px;
        height: 34px;
    }

    .hero-actions .btn-site {
        width: 100%;
        justify-content: center;
    }

    .pillars,
    .dept-grid,
    .cards-3,
    .site-footer-grid {
        grid-template-columns: 1fr;
    }

    .pillar {
        min-height: 0;
    }

    .pillar h3 {
        padding-top: 28px;
    }

    .cards-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .section-head {
        margin-bottom: 36px;
    }

    .mosaic {
        margin-bottom: 48px;
    }

    .team-photo {
        aspect-ratio: 4 / 3;
        margin-bottom: 40px;
    }

    .team-photo figcaption {
        left: 12px;
        bottom: 12px;
        max-width: calc(100% - 24px);
        padding: 12px 16px;
        font-size: 0.98rem;
    }

    .cta-band {
        padding: 40px 26px;
        border-radius: 28px;
    }

    .page-title {
        padding-top: 36px;
        padding-bottom: 36px;
        margin-bottom: 32px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .js-reveal .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ========== ENTRETIEN AVEC LA DIRECTION ==========
   Bande sombre ; les questions s'écrivent sur la vidéo floutée (interview.js) */
.section-itw {
    position: relative;
    overflow: hidden;
    background: var(--night);
    color: rgba(255, 255, 255, 0.74);
}

.section-itw::before {
    content: '';
    position: absolute;
    width: 620px;
    height: 620px;
    left: -220px;
    top: -320px;
    border-radius: 50%;
    background: rgba(var(--primary-rgb), 0.28);
    pointer-events: none;
}

.section-itw .site-container {
    position: relative;
}

.section-itw .eyebrow {
    color: var(--primary-light);
}

.itw-head {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 48px;
    align-items: end;
    margin-bottom: 56px;
}

.itw-head h2 {
    font-size: clamp(1.9rem, 3.8vw, 3rem);
    font-weight: 400;
    font-style: normal;
    line-height: 1.15;
    letter-spacing: -0.015em;
    color: #fff;
}

.itw-head p {
    font-size: 1.05rem;
}

.itw-sign {
    margin-top: 18px;
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 0.9rem;
}

.itw-sign strong {
    font-family: var(--font-title);
    font-weight: 500;
    font-size: 1.2rem;
    color: #fff;
}

.itw {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    gap: 28px 40px;
    align-items: start;
}

.itw-player {
    position: relative;
    aspect-ratio: 3 / 2;
    border-radius: var(--radius);
    overflow: hidden;
    background: #000;
    outline: none;
    isolation: isolate;
}

.itw-player:focus-visible {
    box-shadow: 0 0 0 3px var(--primary-light);
}

.itw-player video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: pointer;
    transition: filter 0.7s ease, transform 0.9s ease;
}

/* Fenêtre de question : la vidéo se floute et s'assombrit un peu */
.itw-player.is-question video,
.itw-player.is-leaving video {
    transform: scale(1.06);
}

.itw-player.is-question video {
    filter: blur(6px) brightness(0.6) saturate(0.9);
}

.itw-question {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 8% 9% 14%;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.45s ease;
}

.itw-player.is-question .itw-question {
    opacity: 1;
    pointer-events: auto;
    cursor: pointer;
}

.itw-question-num {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--primary-light);
}

.itw-question-text {
    max-width: 22ch;
    font-family: var(--font-title);
    font-weight: 400;
    font-size: clamp(1.25rem, 3.3vw, 2.5rem);
    line-height: 1.16;
    letter-spacing: -0.02em;
    color: #fff;
    text-wrap: balance;
}

.itw-word {
    display: inline-block;
    opacity: 0;
    animation: itw-mot 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

@keyframes itw-mot {
    from { opacity: 0; transform: translateY(0.5em); filter: blur(6px); }
    to   { opacity: 1; transform: none; filter: blur(0); }
}

.itw-player:not(.is-playing) .itw-word {
    animation-play-state: paused;
}

.itw-sub {
    position: absolute;
    z-index: 2;
    left: 50%;
    bottom: 76px;
    transform: translateX(-50%);
    width: max-content;
    max-width: 86%;
    padding: 8px 16px;
    border-radius: 12px;
    background: rgba(12, 14, 20, 0.78);
    color: #fff;
    font-size: clamp(0.82rem, 1.6vw, 1.02rem);
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
    opacity: 0;
    pointer-events: none;
}

.itw-sub.is-on {
    opacity: 1;
}

/* Écran d'accueil du lecteur */
.itw-start {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: none;
    align-items: flex-end;
    gap: 18px;
    padding: 28px;
    border: 0;
    background: linear-gradient(to top, rgba(12, 14, 20, 0.78), rgba(12, 14, 20, 0) 55%);
    color: rgba(255, 255, 255, 0.85);
    font: inherit;
    font-size: 0.9rem;
    text-align: left;
    cursor: pointer;
}

.itw-ready .itw-start {
    display: flex;
}

.itw-player.itw-started .itw-start {
    display: none;
}

.itw-start-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #fff;
    color: #14213D;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    padding-left: 4px;
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

.itw-start:hover .itw-start-icon {
    transform: scale(1.08);
}

.itw-start-label strong {
    display: block;
    font-family: var(--font-title);
    font-weight: 500;
    font-size: 1.4rem;
    line-height: 1.2;
    color: #fff;
}

/* Barre de commandes */
.itw-bar {
    position: absolute;
    z-index: 4;
    left: 0;
    right: 0;
    bottom: 0;
    display: none;
    align-items: center;
    gap: 6px;
    padding: 36px 14px 12px;
    background: linear-gradient(to top, rgba(12, 14, 20, 0.82), rgba(12, 14, 20, 0));
    transition: opacity 0.3s ease;
}

.itw-player.itw-started .itw-bar {
    display: flex;
}

.itw-player.is-playing:not(:hover):not(:focus-within) .itw-bar {
    opacity: 0;
}

.itw-btn {
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #fff;
    font: inherit;
    font-size: 0.95rem;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s ease;
}

.itw-btn:hover {
    background: rgba(255, 255, 255, 0.16);
}

.itw-btn-cc {
    opacity: 0.65;
}

.itw-btn-cc[aria-pressed="true"] {
    opacity: 1;
    background: rgba(255, 255, 255, 0.2);
}

.itw-btn[hidden] {
    display: none;
}

.itw-progress {
    flex: 1;
    display: flex;
    gap: 3px;
    height: 24px;
    align-items: center;
    cursor: pointer;
    min-width: 0;
}

.itw-seg {
    flex: 1 1 0;
    height: 4px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.28);
    overflow: hidden;
    transition: height 0.2s ease;
}

.itw-progress:hover .itw-seg {
    height: 7px;
}

.itw-seg i {
    display: block;
    height: 100%;
    background: #fff;
    transform: scaleX(0);
    transform-origin: left;
}

.itw-time {
    font-size: 0.78rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: #fff;
    white-space: nowrap;
    padding: 0 6px;
}

/* Liste des questions */
.itw-side-title {
    font-family: var(--font-ui);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--primary-light);
    margin-bottom: 8px;
}

.itw-chapters {
    list-style: none;
    max-height: 520px;
    overflow-y: auto;
    margin-right: -10px;
    padding-right: 10px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
}

.itw-chapters button {
    width: 100%;
    display: flex;
    align-items: baseline;
    gap: 16px;
    padding: 15px 14px;
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: background 0.2s ease, border-radius 0.2s ease;
}

.itw-chapters li:first-child button {
    border-top-color: transparent;
}

.itw-chapters button:hover,
.itw-chapters button.is-active {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    border-top-color: transparent;
}

.itw-chapters li:has(button:hover) + li button,
.itw-chapters li:has(button.is-active) + li button {
    border-top-color: transparent;
}

.itw-chapter-num {
    font-family: var(--font-title);
    font-style: normal;
    font-size: 0.95rem;
    color: var(--primary-light);
    flex-shrink: 0;
}

.itw-chapter-label {
    flex: 1;
    min-width: 0;
}

.itw-chapter-label strong {
    display: block;
    font-family: var(--font-title);
    font-weight: 500;
    font-size: 1.12rem;
    line-height: 1.25;
    color: #fff;
}

.itw-chapter-label small {
    display: none;
    margin-top: 5px;
    font-size: 0.84rem;
    line-height: 1.45;
}

.itw-chapters button.is-active small {
    display: block;
}

.itw-chapters button.is-done strong {
    opacity: 0.6;
}

.itw-chapter-time {
    font-size: 0.78rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    opacity: 0.6;
    flex-shrink: 0;
}

/* Transcription */
.itw-transcript {
    grid-column: 1 / -1;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    padding-top: 22px;
}

.itw-transcript summary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    list-style: none;
    cursor: pointer;
    font-weight: 700;
    color: #fff;
}

.itw-transcript summary::-webkit-details-marker {
    display: none;
}

.itw-transcript summary i {
    font-size: 0.8em;
    transition: transform 0.25s ease;
}

.itw-transcript[open] summary i {
    transform: rotate(180deg);
}

.itw-transcript-body {
    max-width: 760px;
    padding-top: 12px;
}

.itw-transcript-body h4 {
    margin: 30px 0 8px;
    font-size: 1.3rem;
    font-weight: 500;
    font-style: normal;
    color: #fff;
}

@media (max-width: 991.98px) {
    .itw-head,
    .itw {
        grid-template-columns: 1fr;
    }

    .itw-head {
        gap: 20px;
        margin-bottom: 36px;
    }

    .itw-chapters {
        max-height: 340px;
    }
}

@media (max-width: 600px) {
    .itw-player {
        border-radius: 18px;
    }

    .itw-start {
        padding: 18px;
        gap: 14px;
    }

    .itw-start-icon {
        width: 56px;
        height: 56px;
        font-size: 1.05rem;
    }

    .itw-start-label strong {
        font-size: 1.12rem;
    }

    .itw-bar {
        padding: 28px 6px 6px;
        gap: 0;
    }

    .itw-btn {
        min-width: 36px;
        height: 36px;
        padding: 0 8px;
    }

    .itw-time {
        font-size: 0.7rem;
    }

    .itw-sub {
        bottom: 54px;
        max-width: 94%;
    }

    .itw-question {
        gap: 10px;
        padding: 6% 7% 13%;
    }

    .itw-question-num {
        font-size: 0.62rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .itw-word {
        animation-duration: 0.01s;
    }

    .itw-player video {
        transition: none;
    }

    .itw-player.is-question video,
    .itw-player.is-leaving video {
        transform: none;
    }
}

/* ========== PAGE « LE CENTRE » ========== */
.hero-page,
body.dark-mode .hero-page {
    padding: 110px 0 64px;
    background:
        linear-gradient(90deg, rgba(20, 33, 61, 0.94) 0%, rgba(20, 33, 61, 0.78) 42%, rgba(20, 33, 61, 0.3) 100%),
        var(--banniere, none) center / cover no-repeat,
        var(--night);
    color: rgba(255, 255, 255, 0.86);
}

.hero-page h1 {
    color: #fff;
}

.hero-page .eyebrow {
    color: var(--primary-light);
}

.hero-page h1 {
    max-width: 780px;
}

.hero-page .hero-lead {
    max-width: 720px;
    margin-bottom: 0;
}

.duo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.duo-card,
.value-card {
    background: var(--surface);
    border: 0;
    border-radius: 28px;
    padding: 40px;
}

.section-alt .value-card {
    background: var(--surface);
}

.duo-card > i,
.value-card > i {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--tint);
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 22px;
}

body.dark-mode .duo-card > i,
body.dark-mode .value-card > i {
    color: var(--primary-light);
}

.duo-card h2,
.value-card h3 {
    font-size: 1.7rem;
    font-weight: 500;
    letter-spacing: -0.015em;
    color: var(--ink);
    margin-bottom: 12px;
}

.duo-card p {
    font-size: 1.02rem;
}

.direction-quote {
    font-family: var(--font-title);
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 1.4;
    color: var(--ink);
    font-style: normal;
    margin: 6px 0 22px;
}

.direction-sign strong {
    display: block;
    font-family: var(--font-title);
    color: var(--ink);
}

.site-footer-hours {
    margin-bottom: 18px;
}

.site-footer-hours i {
    color: var(--primary-light);
    margin-right: 6px;
}

@media (max-width: 991.98px) {
    .duo {
        grid-template-columns: 1fr;
    }
}

/* ========== UTILITAIRES DE MISE EN PAGE ==========
   Classes utilisées dans les pages (d-flex, mb-3, text-center...) */
.d-flex { display: flex; }
.d-block { display: block; }
.flex-wrap { flex-wrap: wrap; }
.justify-content-between { justify-content: space-between; }
.justify-content-center { justify-content: center; }
.align-items-center { align-items: center; }
.position-relative { position: relative; }
.position-absolute { position: absolute; }
.w-100 { width: 100%; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--ink-soft) !important; opacity: 0.85; }
.text-primary { color: var(--primary) !important; }
.font-weight-bold { font-weight: 700; }
.rounded { border-radius: 10px; }
.border-top { border-top: 1px solid var(--line); }
.list-unstyled { list-style: none; padding-left: 0; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 4px; } .mt-3 { margin-top: 16px; } .mt-4 { margin-top: 24px; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: 4px; } .mb-2 { margin-bottom: 8px; } .mb-3 { margin-bottom: 16px; } .mb-4 { margin-bottom: 24px; }
.mr-1 { margin-right: 4px; } .mr-2 { margin-right: 8px; } .mr-3 { margin-right: 16px; } .ml-2 { margin-left: 8px; }
.mx-3 { margin-left: 16px; margin-right: 16px; }
.p-0 { padding: 0; } .p-3 { padding: 16px; } .pb-3 { padding-bottom: 16px; }
.media { display: flex; align-items: flex-start; }
.media-body { flex: 1; min-width: 0; }

/* ========== BOUTONS, FORMULAIRES, LISTES DES PAGES INTÉRIEURES ========== */
.main-content .btn {
    text-decoration: none;
    border-radius: 999px;
    font-family: var(--font-ui);
    font-weight: 700;
}

.main-content .card-header {
    gap: 12px;
    flex-wrap: wrap;
}

.main-content .card-header h3,
.main-content .card-header h5 {
    font-weight: 500;
    color: var(--ink);
}

.contact-form label {
    display: block;
    font-weight: 600;
    color: var(--ink);
}

.main-content .form-control {
    display: block;
    width: 100%;
    padding: 12px 14px;
    font: inherit;
    color: var(--ink);
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 10px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.main-content .form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--tint);
}

.main-content textarea.form-control {
    resize: vertical;
    min-height: 140px;
}

.main-content .pagination {
    display: flex;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin-top: 28px;
}

.main-content .card-img-top {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 14px 14px 0 0;
    background: var(--tint);
}

.article-content {
    font-size: 1.02rem;
    color: var(--ink-soft);
}

.article-content p,
.article-content ul,
.article-content ol,
.article-content blockquote {
    margin-bottom: 1.1em;
}

.article-content h2,
.article-content h3,
.article-content h4 {
    color: var(--ink);
    font-weight: 800;
    margin: 1.6em 0 0.6em;
}

.article-content ul,
.article-content ol {
    padding-left: 1.4em;
}

.article-content blockquote {
    border-left: 3px solid var(--primary);
    padding-left: 18px;
    color: var(--ink);
}

.article-content a {
    color: var(--primary-dark);
    text-decoration: underline;
}

.direction-solo {
    max-width: 860px;
}

img.img-absente {
    object-fit: contain !important;
    background: var(--tint);
}

.article-card .card-body > .badge {
    position: static;
    display: inline-block;
    margin-bottom: 14px;
}

/* ========== MENU MOBILE (déplié sous l'en-tête) ========== */
.mobile-nav {
    display: none;
    border-top: 1px solid var(--line);
    background: var(--surface);
    box-shadow: 0 24px 40px rgba(20, 33, 61, 0.12);
    max-height: calc(100vh - 110px);
    overflow-y: auto;
}

.mobile-nav a {
    display: block;
    padding: 16px 4px;
    border-bottom: 1px solid var(--line);
    font-weight: 700;
    font-size: 1.02rem;
    color: var(--ink);
    text-decoration: none;
}

.mobile-nav a:last-child {
    border-bottom: 0;
}

.mobile-nav a.active {
    color: var(--primary-dark);
}

body.dark-mode .mobile-nav a.active {
    color: var(--primary-light);
}

@media (max-width: 991.98px) {
    body.menu-open .mobile-nav {
        display: block;
    }

    .site-header-inner {
        min-height: 78px;
    }
}

/* ========== GALERIE (mosaïque en colonnes) ========== */
.section-more {
    margin-top: 48px;
    text-align: center;
}

.masonry {
    columns: 3;
    column-gap: 20px;
}

.masonry-item {
    position: relative;
    display: block;
    width: 100%;
    margin: 0 0 20px;
    padding: 0;
    border: 0;
    border-radius: 16px;
    overflow: hidden;
    background: var(--sand);
    break-inside: avoid;
    cursor: zoom-in;
    font: inherit;
    text-align: left;
}

.masonry-item img,
.masonry-item video {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.masonry-item:hover img {
    transform: scale(1.04);
}

.masonry-item span {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 40px 18px 14px;
    background: linear-gradient(to top, rgba(12, 14, 20, 0.78), rgba(12, 14, 20, 0));
    color: #fff;
    font-size: 0.86rem;
    font-weight: 700;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.masonry-item:hover span,
.masonry-item:focus-visible span {
    opacity: 1;
}

.masonry-video {
    cursor: default;
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 14px;
    padding: 24px;
    background: rgba(12, 14, 20, 0.94);
}

.lightbox.is-open {
    display: flex;
}

.lightbox img {
    max-width: 100%;
    max-height: calc(100vh - 120px);
    border-radius: 10px;
}

.lightbox p {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
    text-align: center;
}

.lightbox button {
    position: absolute;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
}

.lightbox button:hover {
    background: rgba(255, 255, 255, 0.28);
}

.lightbox-close { top: 18px; right: 18px; }
.lightbox-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 18px; top: 50%; transform: translateY(-50%); }

@media (max-width: 991.98px) {
    .masonry { columns: 2; column-gap: 12px; }
    .masonry-item { margin-bottom: 12px; border-radius: 12px; }
    .masonry-item span { opacity: 1; font-size: 0.76rem; padding: 28px 12px 10px; }
}

/* ========== ACTUALITÉS : cartes compactes ========== */
.cards-news .media-card-visual {
    aspect-ratio: 16 / 9;
    border-radius: 14px;
}

.cards-news .media-card-body {
    padding-top: 14px;
}

.cards-news .media-card h3 {
    font-size: 1.12rem;
    margin: 6px 0 0;
}

.cards-news .media-card p {
    display: none;
}

.main-content .article-card {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    margin-bottom: 18px;
    overflow: hidden;
    border-radius: 16px;
}

.main-content .article-card > a {
    height: 100%;
    min-height: 170px;
}

.main-content .article-card .card-img-top {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    border-radius: 0;
}

.main-content .article-card .card-body {
    padding: 18px 22px;
}

.main-content .article-card .card-title {
    font-size: 1.22rem;
    font-weight: 600 !important;
    line-height: 1.3;
    margin-bottom: 6px;
}

.main-content .article-card .article-meta {
    font-size: 0.78rem;
    margin-bottom: 8px !important;
}

.main-content .article-card .article-meta .mx-3 {
    margin: 0 6px;
}

.main-content .article-card .card-text {
    font-size: 0.92rem;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.main-content .article-card .article-footer {
    margin-top: 12px;
    padding-top: 0;
    border-top: 0;
    font-size: 0.8rem;
}

.main-content .article-card .btn-article {
    padding: 7px 16px;
    font-size: 0.82rem;
}

@media (max-width: 600px) {
    .main-content .article-card {
        grid-template-columns: 1fr;
    }

    .main-content .article-card > a {
        min-height: 0;
        height: 170px;
    }
}

/* ========== CONTACT : plan d'accès ========== */
.contact-map {
    position: relative;
    margin-top: 12px;
    border: 1px solid var(--line);
    border-radius: 20px;
    overflow: hidden;
    background: var(--sand);
}

.contact-map iframe {
    display: block;
    width: 100%;
    height: 420px;
    border: 0;
}

.contact-map-link {
    position: absolute;
    right: 16px;
    bottom: 16px;
    padding: 10px 18px;
    border-radius: 999px;
    background: var(--primary-dark);
    color: #fff !important;
    font-weight: 700;
    font-size: 0.86rem;
    text-decoration: none !important;
    box-shadow: 0 8px 20px rgba(20, 33, 61, 0.25);
}

@media (max-width: 600px) {
    .contact-map iframe { height: 320px; }
    .page-title, body.dark-mode .page-title { min-height: 210px; padding-top: 36px; padding-bottom: 28px; margin-bottom: 32px; }
    .hero-page, body.dark-mode .hero-page { padding: 64px 0 44px; }
}

/* ========== ACCUEIL : photo des bâtiments du centre en fond de l'ouverture ========== */
.hero-home,
body.dark-mode .hero-home {
    padding: 96px 0 120px;
    background:
        linear-gradient(90deg, rgba(20, 33, 61, 0.72) 0%, rgba(20, 33, 61, 0.5) 40%, rgba(20, 33, 61, 0.16) 75%, rgba(20, 33, 61, 0.08) 100%),
        image-set(url('../images/site/accueil-fond.webp?v=3') type('image/webp'), url('../images/site/accueil-fond.jpg?v=3') type('image/jpeg')) center / cover no-repeat,
        var(--night);
    color: rgba(255, 255, 255, 0.88);
}

.hero-home h1 {
    color: #fff;
    text-shadow: 0 2px 18px rgba(12, 14, 20, 0.55);
}

.hero-home .hero-lead,
.hero-home .eyebrow {
    text-shadow: 0 1px 10px rgba(12, 14, 20, 0.6);
}

.hero-home h1 em,
body.dark-mode .hero-home h1 em,
.hero-home .eyebrow {
    color: var(--primary-light);
}

.hero-home .hero-visual::before,
.hero-home .hero-visual::after {
    background: rgba(255, 255, 255, 0.16);
}

.hero-home .hero-arch {
    border: 6px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 30px 70px rgba(12, 14, 20, 0.45);
}

.hero-home .hero-round {
    border-color: #fff;
}

@media (max-width: 991.98px) {
    .hero-home,
    body.dark-mode .hero-home {
        padding: 56px 0 96px;
        background:
            linear-gradient(180deg, rgba(20, 33, 61, 0.7) 0%, rgba(20, 33, 61, 0.55) 55%, rgba(20, 33, 61, 0.3) 100%),
            image-set(url('../images/site/accueil-fond.webp?v=3') type('image/webp'), url('../images/site/accueil-fond.jpg?v=3') type('image/jpeg')) center / cover no-repeat,
            var(--night);
    }
}

/* Écrans intermédiaires : le menu complet ne tient plus à côté du nom du site,
   on passe au menu déplié plutôt que de laisser le nom se casser sur plusieurs lignes */
.site-brand {
    flex-shrink: 0;
}

@media (max-width: 1279px) {
    .site-nav,
    .header-cta {
        display: none;
    }

    .menu-toggle {
        display: inline-flex;
    }

    body.menu-open .mobile-nav {
        display: block;
    }
}

@media (max-width: 600px) {
    .site-brand {
        flex-shrink: 1;
    }
}

/* Photo d'équipe : sur écran étroit, la citation passe sous la photo pour ne masquer aucun visage */
@media (max-width: 1180px) {
    .team-photo {
        aspect-ratio: auto;
        overflow: visible;
        background: transparent;
    }

    .team-photo .photo {
        aspect-ratio: 21 / 10;
        height: auto;
        border-radius: var(--radius);
        overflow: hidden;
    }

    .team-photo figcaption {
        position: static;
        max-width: none;
        margin-top: 14px;
        padding: 0;
        background: transparent;
        color: var(--ink);
    }

    .team-photo figcaption span {
        color: var(--ink-soft);
    }
}

.site-footer .site-brand img {
    height: 76px;
    width: 76px;
}

@media (max-width: 600px) {
    .site-header .site-brand img {
        height: 50px;
        width: 50px;
    }
}

/* ============================================
   TARIFS : le tableau devient une liste de cartes sur mobile
   (sinon la colonne du prix est cachée hors écran)
   ============================================ */
@media (max-width: 768px) {
    .table-cartes-mobile thead { display: none; }
    .table-cartes-mobile,
    .table-cartes-mobile tbody,
    .table-cartes-mobile tr,
    .table-cartes-mobile td { display: block; width: 100%; }
    .table-cartes-mobile { min-width: 0 !important; }
    .card:has(.table-cartes-mobile) .card-body { padding-left: 12px; padding-right: 12px; }
    .table-responsive:has(.table-cartes-mobile) { overflow: visible; }
    .table-cartes-mobile tr {
        border: 1px solid var(--line, rgba(0, 0, 0, .08));
        border-radius: 14px;
        padding: 14px 16px;
        margin-bottom: 14px;
        background: var(--surface, #fff);
    }
    .table-cartes-mobile td {
        display: flex;
        justify-content: space-between;
        align-items: baseline;
        gap: 16px;
        border: 0 !important;
        padding: 6px 0 !important;
        text-align: right;
    }
    .table-cartes-mobile td::before {
        content: attr(data-label);
        flex: 0 0 auto;
        font-size: .72rem;
        font-weight: 700;
        letter-spacing: .06em;
        text-transform: uppercase;
        opacity: .6;
        text-align: left;
    }
    /* L'acte et son prix en tête de carte, bien lisibles */
    .table-cartes-mobile td[data-label="Acte"] { font-size: 1.05rem; font-weight: 600; }
    .table-cartes-mobile td[data-label="Prix"] { font-size: 1.1rem; }
    .table-cartes-mobile td[colspan] { justify-content: center; }
    .table-cartes-mobile td[colspan]::before { content: none; }
}

/* Les chiffres clés s'adaptent quand un compteur est masqué (ex : 0 professionnel) */
@media (min-width: 992px) {
    .figures-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
}

/* ============================================
   CONSEIL SANTÉ DU JOUR
   ============================================ */
.section-tip { padding-top: 72px; padding-bottom: 72px; background: var(--sand); }

.tip-card {
    display: grid;
    grid-template-columns: minmax(240px, 0.8fr) 1.2fr;
    align-items: stretch;
    border-top: 2px solid var(--ink);
    border-bottom: 1px solid var(--line);
}
.tip-card-photo { position: relative; overflow: hidden; min-height: 280px; }
.tip-card-photo .photo { position: absolute; inset: 0; }
.tip-card-photo .photo,
.tip-card-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tip-card-body { padding: 34px 0 34px 44px; }
.tip-card-meta {
    margin: 0 0 14px;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--primary-dark);
}
body.dark-mode .tip-card-meta { color: var(--primary-light); }
.tip-card h2 {
    font-family: var(--font-title);
    color: var(--ink);
    font-size: clamp(1.6rem, 2.6vw, 2.2rem);
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.015em;
    margin: 0 0 14px;
}
.tip-card p { color: var(--ink-soft); font-size: 1.05rem; line-height: 1.7; margin: 0 0 20px; max-width: 62ch; }

.tips-theme {
    font-family: var(--font-title);
    color: var(--ink);
    font-size: 1.3rem;
    margin: 36px 0 16px;
}
.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px;
}
.tip-mini {
    position: relative;
    padding: 24px;
    border-radius: 18px;
    background: var(--surface);
    border: 1px solid var(--line);
}
.tip-mini.is-today { border-color: var(--ink); border-width: 2px; }
.tip-today {
    display: block;
    margin-bottom: 8px;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--primary-dark);
}
.tip-mini h4 { font-family: var(--font-title); color: var(--ink); font-size: 1.1rem; margin: 0 0 8px; }
.tip-mini p { color: var(--ink-soft); font-size: .95rem; line-height: 1.6; margin: 0; }
.tips-note { margin-top: 36px; color: var(--ink-soft); font-size: .92rem; }

@media (max-width: 760px) {
    .tip-card { grid-template-columns: 1fr; }
    .tip-card-photo { min-height: 0; aspect-ratio: 16 / 9; }
    .tip-card-photo .photo { position: static; }
    .tip-card-body { padding: 24px 0 28px; }
}

/* ============================================
   ORGANIGRAMME : galerie chronologique de portraits, reliés par une ligne du temps
   ============================================ */
.leaders-row {
    list-style: none;
    margin: 0;
    padding: 0 0 12px;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(150px, 1fr);
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
}
.lead { position: relative; scroll-snap-align: start; }
/* Ligne du temps : un trait continu sous les années, un repère par mandat */
.lead-years {
    position: relative;
    margin: 0 0 18px;
    padding-bottom: 14px;
    font-family: var(--font-title);
    font-size: 1.05rem;
    color: var(--ink);
    border-bottom: 1px solid var(--line);
    margin-right: -24px;
}
.lead:last-child .lead-years { margin-right: 0; }
.lead-years::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--ink-soft);
}
.lead.is-current .lead-years::after { background: var(--primary); width: 11px; height: 11px; bottom: -6px; }
.lead-photo {
    position: relative;
    aspect-ratio: 4 / 5;
    border-radius: 16px;
    overflow: hidden;
    background: var(--clay);
    display: grid;
    place-items: center;
    margin-bottom: 16px;
    font-family: var(--font-title);
    font-size: 3rem;
    color: var(--ink-soft);
}
.lead-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.35); transition: filter .3s ease; }
.lead:hover .lead-photo img,
.lead.is-current .lead-photo img { filter: none; }
.lead.is-current .lead-photo::after { content: ""; position: absolute; inset: 0; border: 3px solid var(--primary); border-radius: 16px; pointer-events: none; }
.lead-now { z-index: 1; }
.lead-now {
    position: absolute;
    left: 10px;
    bottom: 10px;
    padding: 4px 10px;
    border-radius: 6px;
    background: var(--primary);
    color: #fff;
    font-family: var(--font-ui);
    font-size: .74rem;
    font-weight: 700;
}
.lead h3 { font-family: var(--font-title); color: var(--ink); font-size: 1.15rem; font-weight: 500; line-height: 1.25; margin: 0 0 4px; }
.lead-role { margin: 0 0 8px; font-size: .9rem; font-weight: 600; color: var(--ink-soft); }
.lead-role em { font-style: normal; font-weight: 400; opacity: .8; }
.lead-bio {
    margin: 0;
    font-size: .9rem;
    line-height: 1.6;
    color: var(--ink-soft);
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
@media (max-width: 600px) {
    .leaders-row { grid-auto-columns: 72%; gap: 18px; }
    .lead-years { margin-right: -18px; }
}

/* ============================================
   SECTIONS ENRICHIES DE PHOTOS DU CENTRE
   ============================================ */
/* Piliers de l'accueil : une vraie photo en tête de chaque carte */
.pillar { padding: 0 0 28px; overflow: hidden; min-height: 0; }
.pillar-photo { display: block; aspect-ratio: 4 / 3; overflow: hidden; margin-bottom: 22px; }
.pillar-photo .photo, .pillar-photo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.pillar:hover .pillar-photo img { transform: scale(1.04); }
.pillar .pillar-num, .pillar h3, .pillar p, .pillar .link-arrow { margin-left: 26px; margin-right: 26px; }
.pillar h3 { padding-top: 10px; margin-top: 0; }

/* Valeurs de l'accueil : photo à gauche, valeurs empilées à droite */
.values-split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: center; }
.values-photo { margin: 0; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); }
.values-photo .photo, .values-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.values-list-stack { grid-template-columns: 1fr; gap: 0; margin: 0; padding: 0; }
.values-list-stack li { display: grid; grid-template-columns: 64px 1fr; column-gap: 12px; padding: 26px 0; }
.values-list-stack li::before { grid-row: 1 / span 2; margin: 4px 0 0; font-size: 1.6rem; }
.values-list-stack strong { margin-bottom: 8px; }

/* Mission et vision : photo pleine largeur en tête */
.duo-card-photo { padding: 0 0 36px; overflow: hidden; }
.duo-photo { aspect-ratio: 16 / 9; overflow: hidden; margin-bottom: 28px; }
.duo-photo .photo, .duo-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.duo-card-photo h2, .duo-card-photo p { margin-left: 36px; margin-right: 36px; }

@media (max-width: 991.98px) {
    .values-split { grid-template-columns: 1fr; gap: 32px; }
    .values-photo { aspect-ratio: 16 / 10; }
}
@media (max-width: 600px) {
    .duo-card-photo h2, .duo-card-photo p { margin-left: 22px; margin-right: 22px; }
}

/* Menu mobile : sous-rubriques légèrement en retrait */
.mobile-nav a.sub { padding-left: 16px; font-weight: 600; }
.tip-card-photo img { object-position: 50% 15%; }

/* En-tête : le menu complet tient sur une ligne sans déborder de l'écran.
   « Accueil » reste dans le menu mobile ; sur grand écran, le logo y ramène. */
.site-header-inner { gap: 16px; }

/* Menu principal regroupé en 3 rubriques avec sous-menus */
.site-nav { gap: 4px; }
.nav-group { position: relative; }
.site-nav .nav-group-label { display: inline-flex; align-items: center; gap: 8px; }
.nav-group-label i { font-size: .7em; opacity: .6; transition: transform .2s ease; }
.nav-group.active > .nav-group-label { color: var(--ink); background: var(--mint); }
.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    padding: 8px;
    margin-top: 6px;
    border-radius: 16px;
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    gap: 2px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
    z-index: 60;
}
.nav-dropdown::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.nav-group:hover .nav-dropdown,
.nav-group:focus-within .nav-dropdown { opacity: 1; visibility: visible; transform: none; }
.nav-group:hover .nav-group-label i,
.nav-group:focus-within .nav-group-label i { transform: rotate(180deg); }
.site-nav .nav-dropdown a { border-radius: 10px; padding: 11px 14px; }

.mobile-nav-group {
    margin: 18px 0 0;
    padding: 0 4px;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--primary);
}
.mobile-nav-group + a { border-top: 0; }

/* ========== SOUS-PAGES : départements, équipe, activité, article ========== */
.page-title + .section {
    padding-top: 8px;
}

.section-tight {
    padding: 64px 0;
}

/* Liste des départements */
.dept-grid {
    row-gap: 48px;
}

.dept-card .media-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.dept-card .media-card-body p {
    margin-bottom: 10px;
}

.dept-card .dept-hours {
    font-size: 0.86rem;
    color: var(--ink);
}

.dept-card .link-arrow {
    align-self: flex-start;
    margin-top: auto;
    padding-top: 6px;
}

/* Fiche d'un département / d'une activité */
.dept-intro {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 64px;
    align-items: center;
}

.dept-intro-photo {
    margin: 0;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--sand);
}

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

.dept-intro-photo picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dept-intro-title {
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    font-weight: 500;
    line-height: 1.15;
    color: var(--ink);
    letter-spacing: -0.015em;
    margin-bottom: 18px;
}

.dept-intro-lead {
    font-size: 1.08rem;
    line-height: 1.75;
    margin-bottom: 26px;
}

.dept-facts {
    margin: 0 0 30px;
    border-top: 1px solid var(--line);
}

.dept-facts > div {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
}

.dept-facts dt {
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-soft);
    padding-top: 3px;
}

.dept-facts dd {
    margin: 0;
    color: var(--ink);
    font-weight: 600;
}

.dept-facts a {
    color: inherit;
}

.dept-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 32px;
}

.dept-empty {
    max-width: 640px;
    font-size: 1.05rem;
    line-height: 1.7;
}

.dept-others-title {
    font-size: 1.35rem;
    font-weight: 500;
    color: var(--ink);
    margin: 64px 0 20px;
}

.section-tight .dept-others-title {
    margin-top: 0;
}

.dept-others {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.dept-others a {
    display: inline-block;
    padding: 9px 18px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--ink);
    font-weight: 600;
    font-size: 0.92rem;
    text-decoration: none;
    transition: border-color 0.2s, color 0.2s;
}

.dept-others a:hover {
    border-color: var(--primary);
    color: var(--primary-dark);
}

/* Page équipe */
.team-intro {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: 64px;
    align-items: center;
}

.team-intro-photo {
    margin: 0;
    aspect-ratio: 4 / 3;
}

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

.team-direction {
    display: flex;
    gap: 18px;
    align-items: center;
    padding-top: 22px;
    border-top: 1px solid var(--line);
}

.team-direction img {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    object-fit: cover;
    object-position: 50% 20%;
    flex-shrink: 0;
}

.team-direction strong {
    display: block;
    font-family: var(--font-title);
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--ink);
}

.team-direction span {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 6px;
}

.team-group + .team-group {
    margin-top: 80px;
}

.team-group .section-head {
    margin-bottom: 36px;
}

/* Article : le détail ne reprend pas la grille photo + texte de la liste */
.main-content .article-single {
    display: block;
    border: 0;
    box-shadow: none;
    background: transparent;
}

.main-content .article-single > .card-body {
    padding: 0;
}

.article-single .article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 0;
    font-size: 0.86rem;
}

.article-single > .card-body > .badge {
    margin-bottom: 10px;
}

.article-single .article-meta {
    margin-bottom: 26px !important;
}

.comment-form-title {
    margin: 22px 0 14px;
    font-family: var(--font-title);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--ink);
}

.article-media-gallery {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    gap: 16px;
    margin-bottom: 32px;
}

.article-media-gallery .media-item {
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: var(--sand);
}

.article-media-gallery .media-item img,
.article-media-gallery .media-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.article-single .article-content {
    max-width: 680px;
    font-size: 1.08rem;
    line-height: 1.85;
}

@media (max-width: 991.98px) {
    .dept-intro,
    .team-intro {
        grid-template-columns: 1fr;
        gap: 36px;
    }

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

@media (max-width: 575.98px) {
    .dept-gallery {
        grid-template-columns: 1fr;
    }

    .dept-facts > div {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .section-tight {
        padding: 48px 0;
    }
}

/* La photo d'intro de la page équipe garde son cadrage à toutes les largeurs */
.team-photo.team-intro-photo,
.team-photo.team-intro-photo .photo {
    aspect-ratio: 4 / 3;
    margin: 0;
    border-radius: var(--radius);
    overflow: hidden;
}

/* Les rangées Bootstrap ne doivent pas faire défiler la page sur le côté */
.main-content {
    overflow-x: clip;
}

/* La police des titres n'existe qu'en un seul poids : pas de faux gras */
h1, h2, h3, h4, h5, h6 {
    font-synthesis: none;
}

/* Article : chapô, couverture, images et vidéos insérées dans le texte */
.article-apercu {
    margin-bottom: 18px;
    padding: 12px 16px;
    border-radius: 12px;
    background: #FFF4D6;
    color: #6B4E00;
    font-weight: 600;
    font-size: 0.92rem;
}

.article-chapo {
    max-width: 680px;
    margin: 0 0 28px;
    font-family: var(--font-title);
    font-size: 1.3rem;
    line-height: 1.5;
    color: var(--ink);
}

.article-couverture {
    margin: 0 0 36px;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: var(--sand);
}

.article-couverture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.article-content img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 1.6em 0;
    border-radius: 16px;
}

.article-content iframe.ql-video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    margin: 1.6em 0;
    border: 0;
    border-radius: 16px;
    background: #000;
}

.article-content .ql-align-center { text-align: center; }
.article-content .ql-align-right { text-align: right; }
.article-content .ql-align-justify { text-align: justify; }
.article-content .ql-align-center img { margin-left: auto; margin-right: auto; }

.article-content h4 {
    font-size: 1.1rem;
}

.article-content s {
    opacity: 0.75;
}

.article-content hr {
    margin: 2em 0;
    border: 0;
    border-top: 1px solid var(--line);
}

.article-galerie {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin: 36px 0 8px;
}

.article-galerie .media-item {
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: var(--sand);
}

.article-galerie img,
.article-galerie video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 575.98px) {
    .article-galerie {
        grid-template-columns: 1fr;
    }

    .article-chapo {
        font-size: 1.15rem;
    }
}

.article-content img {
    max-height: 640px;
    width: auto;
}
