/*
 * Clinique d'Urgence Accès-Santé — Design System
 * UI/UX Pro Max: Accessible & Ethical — Healthcare NGO
 * Palette: Royal Blue #1A237E (logo "Acces") | Forest Green #2E7D32 (logo "2san")
 * Typography: Lexend (headings) + Source Sans 3 (body)
 * WCAG AAA compliant | 44px touch targets | 150-300ms transitions
 */

/* ═══════════════════════════════════════════════════
   DESIGN TOKENS
═══════════════════════════════════════════════════ */
:root {
    /* Brand Colors — extraits du logo Accès-Santé */
    --c-primary:      #1A237E;  /* bleu royal "Acces" */
    --c-primary-dark: #0D1560;
    --c-primary-light:#3949AB;
    --c-secondary:    #2E7D32;  /* vert forêt "2san" */
    --c-cta:          #1565C0;  /* bleu action */
    --c-cta-dark:     #0D47A1;
    --c-cta-hover:    #1976D2;

    /* Neutrals */
    --c-bg:           #F5F7FF;  /* blanc légèrement bleuté */
    --c-surface:      #FFFFFF;
    --c-text:         #0D1B5E;  /* bleu très foncé */
    --c-text-muted:   #3D5A8A;
    --c-text-light:   #6B82BE;
    --c-border:       #C5D0E6;
    --c-border-light: #E8ECFF;

    /* Semantic */
    --c-success:      #2E7D32;
    --c-warning:      #D97706;
    --c-error:        #DC2626;

    /* Typography */
    --font-heading:   'Lexend', 'Segoe UI', sans-serif;
    --font-body:      'Source Sans 3', 'Segoe UI', sans-serif;

    /* Spacing Scale */
    --space-xs:       4px;
    --space-sm:       8px;
    --space-md:       16px;
    --space-lg:       24px;
    --space-xl:       40px;
    --space-2xl:      64px;
    --space-3xl:      96px;

    /* Border Radius */
    --radius-sm:      6px;
    --radius-md:      10px;
    --radius-lg:      16px;
    --radius-xl:      24px;
    --radius-full:    9999px;

    /* Shadows */
    --shadow-sm:      0 1px 3px rgba(26,35,126,0.08), 0 1px 2px rgba(26,35,126,0.06);
    --shadow-md:      0 4px 16px rgba(26,35,126,0.10), 0 2px 6px rgba(26,35,126,0.06);
    --shadow-lg:      0 10px 32px rgba(26,35,126,0.14), 0 4px 12px rgba(26,35,126,0.08);
    --shadow-xl:      0 20px 48px rgba(26,35,126,0.18), 0 8px 20px rgba(26,35,126,0.10);

    /* Transitions */
    --transition-fast:   150ms ease;
    --transition-base:   250ms ease;
    --transition-slow:   400ms ease;

    /* Z-index Scale */
    --z-dropdown: 100;
    --z-sticky:   200;
    --z-overlay:  300;
    --z-modal:    400;
    --z-toast:    500;

    /* Backward compat aliases */
    --clique-teal:    var(--c-primary);
    --clinique-green: var(--c-secondary);
    --clinique-dark:  #0D1B5E;
    --clinique-light: var(--c-bg);
    --clinique-text:  var(--c-text);

    /* Override Anity template base color → vert logo Accès-Santé */
    --anity-base:     #2E7D32;
    --anity-base-rgb: 46, 125, 50;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--c-text);
    background-color: var(--c-surface);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ═══════════════════════════════════════════════════
   TYPOGRAPHY
═══════════════════════════════════════════════════ */
h1, h2, h3, h4, h5, h6,
.section-title__title,
.thm-btn,
.main-menu__list > li > a,
.counter-one__count,
.cause-one__title,
.service-one__title,
.blog-one__title,
.team-one__title {
    font-family: var(--font-heading);
    letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 700; line-height: 1.15; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); font-weight: 700; line-height: 1.2; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); font-weight: 600; line-height: 1.3; }
h4 { font-size: 1.125rem; font-weight: 600; }

p { line-height: 1.75; max-width: 70ch; }

/* ═══════════════════════════════════════════════════
   ACCESSIBILITY
═══════════════════════════════════════════════════ */
:focus-visible {
    outline: 3px solid var(--c-cta);
    outline-offset: 3px;
    border-radius: var(--radius-sm);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--c-cta);
    outline-offset: 3px;
}

/* Skip link */
.visually-hidden-focusable {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    background: var(--c-cta) !important;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ═══════════════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════════════ */
.thm-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0px 15px;
    min-height: 48px;
    background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-primary-dark) 100%);
    color: #fff !important;
    border: none;
    border-radius: var(--radius-full);
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-decoration: none;
    cursor: pointer;
    transition: transform var(--transition-fast), box-shadow var(--transition-base), background var(--transition-base);
    box-shadow: 0 4px 14px rgba(15,118,110,0.3);
    white-space: nowrap;
}

.thm-btn:hover,
.thm-btn:focus-visible {
    background: linear-gradient(135deg, var(--c-primary-dark) 0%, #0A4A45 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(15,118,110,0.4);
    color: #fff !important;
}

.thm-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(15,118,110,0.25);
}

.thm-btn span {
    display: inline-flex;
    align-items: center;
    transition: transform var(--transition-fast);
}

.thm-btn:hover span {
    transform: translateX(3px);
}

/* CTA Blue variant */
.thm-btn--cta {
    background: linear-gradient(135deg, var(--c-cta) 0%, var(--c-cta-dark) 100%);
    box-shadow: 0 4px 14px rgba(3,105,161,0.3);
}

.thm-btn--cta:hover {
    background: linear-gradient(135deg, var(--c-cta-hover) 0%, var(--c-cta) 100%);
    box-shadow: 0 8px 24px rgba(3,105,161,0.4);
}

/* Light / Ghost variant */
.thm-btn--light {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 2px solid rgba(255,255,255,0.7);
    box-shadow: 0 4px 14px rgba(0,0,0,0.1);
}

.thm-btn--light:hover {
    background: #fff;
    color: var(--c-primary) !important;
    border-color: #fff;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

/* Small variant */
.thm-btn--small {
    padding: 10px 22px;
    min-height: 44px;
    font-size: 0.85rem;
}

/* Outline variant */
.thm-btn--outline {
    background: transparent;
    border: 2px solid var(--c-primary);
    color: var(--c-primary) !important;
    box-shadow: none;
}

.thm-btn--outline:hover {
    background: var(--c-primary);
    color: #fff !important;
    box-shadow: 0 6px 18px rgba(15,118,110,0.3);
}

/* ═══════════════════════════════════════════════════
   HEADER
═══════════════════════════════════════════════════ */
.main-header {
    box-shadow: 0 2px 16px rgba(15,118,110,0.08);
    transition: box-shadow var(--transition-base);
}

.main-menu__top {
    background: linear-gradient(90deg, var(--c-primary) 0%, var(--c-primary-dark) 100%);
    padding: 0px 0;
}

.main-menu__wrapper {
    padding: 0;
}

.main-menu__wrapper .container {
    padding-top: 0;
    padding-bottom: 0;
}

.main-menu__wrapper-inner {
    padding: 0;
    min-height: unset;
}

.main-nav {
    background: var(--c-surface);
}

/* Nav — une seule ligne quelle que soit la langue */
.main-menu__wrapper-inner {
    flex-wrap: nowrap !important;
}

/* Réduit l'espace entre logo et liens (50px → 20px) */
.main-menu__left {
    gap: 20px !important;
}

.main-menu .main-menu__list > li > a,
.stricky-header .main-menu__list > li > a {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.875rem;
    letter-spacing: 0;
    white-space: nowrap;
    color: var(--c-text) !important;
    transition: color var(--transition-fast);
    position: relative;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding-left: 11px !important;
    padding-right: 11px !important;
}

/* 12px uniquement en français pour tenir sur une ligne */
html[lang="fr"] .main-menu .main-menu__list > li > a,
html[lang="fr"] .stricky-header .main-menu__list > li > a {
    font-size: 11.5px !important;
    padding-left: 8px !important;
    padding-right: 8px !important;
}

.main-menu__list > li > a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--c-primary);
    transform: scaleX(0);
    transition: transform var(--transition-base);
    border-radius: 2px;
}

.main-menu__list > li.current > a,
.main-menu__list > li > a:hover {
    color: var(--c-primary) !important;
}

.main-menu__list > li > a:hover::after,
.main-menu__list > li.current > a::after {
    transform: scaleX(1);
}

/* Supprime la flèche Anity sur items dropdown (remplacée par l'underline clinique) */
.main-menu .main-menu__list > li.dropdown > a::after,
.stricky-header .main-menu__list > li.dropdown > a::after {
    display: none !important;
}

/* Le bouton CTA ne rétrécit jamais — il reste toujours visible */
.main-menu__right {
    flex-shrink: 0;
}

/* Bouton CTA dans la nav — compact et sur la même ligne */
.main-menu__btn-box .thm-btn {
    font-size: 0.82rem !important;
    padding: 0 18px !important;
    white-space: nowrap;
    min-height: 42px;
}

/* Language switcher */
.main-menu__top-right .badge {
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    text-decoration: none;
    transition: all var(--transition-fast);
    min-height: 28px;
    display: inline-flex;
    align-items: center;
}

.main-menu__top-right .badge:hover {
    background-color: rgba(255,255,255,0.25) !important;
    transform: translateY(-1px);
}

/* ═══════════════════════════════════════════════════
   MOBILE NAV
═══════════════════════════════════════════════════ */
.mobile-nav__content {
    background-color: #ffffff !important;
    box-shadow: 4px 0 24px rgba(13,27,94,0.12);
}

/* Liens : blanc → couleur texte foncé */
.mobile-nav__content .main-menu__list > li > a,
.mobile-nav__content .main-menu__list > li > ul > li > a,
.mobile-nav__content .main-menu__list > li > ul > li > ul > li > a {
    color: var(--c-text) !important;
    font-family: var(--font-heading) !important;
    font-size: 0.95rem !important;
    font-weight: 500 !important;
}

.mobile-nav__content .main-menu__list > li > a:hover,
.mobile-nav__content .main-menu__list > li > a.expanded {
    color: var(--c-primary) !important;
}

/* Séparateurs : rgba blanc → rgba sombre */
.mobile-nav__content .main-menu__list > li:not(:last-child),
.mobile-nav__content .main-menu__list > li > ul > li:not(:last-child),
.mobile-nav__content .main-menu__list > li > ul > li > ul > li:not(:last-child) {
    border-bottom: 1px solid rgba(13,27,94,0.08) !important;
}

.mobile-nav__content .main-menu__list > li > ul,
.mobile-nav__content .main-menu__list > li > ul > li > ul {
    border-top: 1px solid rgba(13,27,94,0.08) !important;
}

/* Bouton expand sous-menu */
.mobile-nav__content .main-menu__list > li > a > button {
    background-color: var(--c-primary) !important;
}

/* Icône fermeture */
.mobile-nav__close {
    color: var(--c-text) !important;
}
.mobile-nav__close:hover {
    color: var(--c-primary) !important;
}

/* Contact info dans le mobile nav */
.mobile-nav__contact li {
    color: var(--c-text-muted) !important;
}
.mobile-nav__contact li i {
    color: var(--c-primary) !important;
}
.mobile-nav__contact a {
    color: var(--c-text) !important;
}
.mobile-nav__contact a:hover {
    color: var(--c-primary) !important;
}

/* Titre "Suivez-nous" dans le mobile nav */
.mobile-nav__social-title {
    color: var(--c-text-muted) !important;
    font-family: var(--font-heading) !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase !important;
}

/* Icônes sociales */
.mobile-nav__social a {
    color: var(--c-text-muted) !important;
    border-color: var(--c-border) !important;
}
.mobile-nav__social a:hover {
    background-color: var(--c-primary) !important;
    border-color: var(--c-primary) !important;
    color: #fff !important;
}

/* ═══════════════════════════════════════════════════
   HERO SLIDER
═══════════════════════════════════════════════════ */

/* Assombrir la photo pour que les textes blancs ressortent */
.main-slider .image-layer {
    filter: brightness(0.90);
    transform: scale(1.04);
    transition: transform 9s ease-out;
}
.swiper-slide-active .main-slider .image-layer {
    transform: scale(1.0);
}

/* Gradient latéral gauche → droit pour encore plus de contraste côté texte */
.main-slider .swiper-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(13, 27, 94, 0.65) 0%,
        rgba(13, 27, 94, 0.35) 55%,
        rgba(0, 0, 0, 0.05)   100%
    );
    z-index: 2;
    pointer-events: none;
}

/* Le contenu passe au-dessus du gradient */
.main-slider .swiper-slide .container {
    position: relative;
    z-index: 3;
}

/* Centrage vertical et horizontal du contenu */
.main-slider-content {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.main-slider-content__inner {
    text-align: center;
    max-width: 860px;
    margin: 0 auto;
}

/* --- Subtitle badge --- */
.main-slider-content__inner .sub-title {
    margin-bottom: 18px;
}
.main-slider-content__inner .sub-title h4 {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #fff !important;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.6);
    padding: 6px 18px;
    border-radius: var(--radius-full);
    line-height: 1.4;
}

/* --- Titre principal --- */
.main-slider-content__inner .big-title h2 {
    font-family: var(--font-heading) !important;
    font-size: clamp(2rem, 5vw, 3.6rem) !important;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: #fff !important;
    text-shadow:
        -1px -1px 0 rgba(0,0,0,0.30),
         1px -1px 0 rgba(0,0,0,0.30),
        -1px  1px 0 rgba(0,0,0,0.30),
         1px  1px 0 rgba(0,0,0,0.30),
        0 2px 24px rgba(0, 0, 0, 0.55);
    margin-bottom: 28px;
}

/* --- Boutons dans le slider --- */
.main-slider-content__inner .btn-box {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    justify-content: center;
    margin-top: 8px;
}

/* Correction slider.css qui force background:white sur tous les liens du btn-box */
.main-slider-content .btn-box a {
    background-color: unset !important;
}

/* Background du span (icône flèche) des boutons dans le slider */
.main-slider-content .btn-box a.thm-btn span {
    background-color: var(--c-primary) !important;
}

/* Bouton primaire dans le slider */
.main-slider-content .btn-box a.thm-btn:not(.thm-btn--light) {
    background: linear-gradient(135deg, var(--c-secondary) 0%, #1b5e20 100%) !important;
    color: #fff !important;
    border: none !important;
    box-shadow: 0 4px 18px rgba(46,125,50,0.45);
}
.main-slider-content .btn-box a.thm-btn:not(.thm-btn--light):hover {
    background: linear-gradient(135deg, #388e3c 0%, var(--c-secondary) 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(46,125,50,0.55);
}

/* Bouton secondaire (ghost) dans le slider — texte blanc sur fond transparent */
.main-slider-content .btn-box a.thm-btn--light {
    background: transparent !important;
    color: #fff !important;
    border: 2px solid rgba(255, 255, 255, 0.85) !important;
    box-shadow: 0 4px 14px rgba(0,0,0,0.15);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
.main-slider-content .btn-box a.thm-btn--light:hover {
    background: #fff !important;
    color: var(--c-primary) !important;
    border-color: #fff !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

/* ═══════════════════════════════════════════════════
   SECTION TITLES
═══════════════════════════════════════════════════ */
.section-title__tagline {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--c-primary);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 5px 14px;
    background: rgba(15,118,110,0.08);
    border-radius: var(--radius-full);
    border-left: 3px solid var(--c-primary);
    margin-bottom: var(--space-md);
}

.section-title__title {
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--c-text);
    line-height: 1.15;
}

/* ═══════════════════════════════════════════════════
   CARDS (Service, Blog, Event, Campaign)
═══════════════════════════════════════════════════ */
.service-one__item,
.blog-one__item,
.event-one__item,
.cause-one__item {
    background: var(--c-surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--c-border-light);
    transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-one__item:hover,
.blog-one__item:hover,
.event-one__item:hover,
.cause-one__item:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--c-border);
}

.service-one__item img,
.blog-one__item img,
.event-one__item img,
.cause-one__item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform var(--transition-slow);
    display: block;
}

.service-one__item:hover img,
.blog-one__item:hover img,
.event-one__item:hover img,
.cause-one__item:hover img {
    transform: scale(1.05);
}

.service-one__content,
.blog-one__content,
.cause-one__content {
    padding: var(--space-lg) var(--space-lg) var(--space-xl);
    display: flex;
    flex-direction: column;
    flex: 1;
}

.service-one__btn,
.blog-one__btn,
.cause-one__btn {
    margin-top: auto;
    padding-top: var(--space-md);
}

.service-one__icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(15,118,110,0.1) 0%, rgba(20,184,166,0.1) 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-md);
    font-size: 1.5rem;
    color: var(--c-primary);
    transition: background var(--transition-base), transform var(--transition-base);
}

.service-one__item:hover .service-one__icon {
    background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-secondary) 100%);
    color: #fff;
    transform: scale(1.05);
}

.service-one__title a,
.blog-one__title a,
.cause-one__title a {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--c-text);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.service-one__title a:hover,
.blog-one__title a:hover,
.cause-one__title a:hover {
    color: var(--c-primary);
}

.service-one__text,
.blog-one__text,
.cause-one__text {
    font-family: var(--font-body);
    color: var(--c-text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ═══════════════════════════════════════════════════
   CAMPAIGN PROGRESS BAR
═══════════════════════════════════════════════════ */
.cause-one__progress-bar {
    height: 8px;
    background: var(--c-border-light);
    border-radius: var(--radius-full);
    margin: 14px 0 8px;
    overflow: hidden;
}

.cause-one__progress-bar-inner {
    height: 100%;
    background: linear-gradient(90deg, var(--c-primary) 0%, var(--c-secondary) 100%);
    border-radius: var(--radius-full);
    position: relative;
    transition: width 1.5s cubic-bezier(0.4,0,0.2,1);
}

.cause-one__progress-bar-count {
    position: absolute;
    right: 0;
    top: -24px;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--c-primary);
    background: rgba(15,118,110,0.1);
    padding: 1px 6px;
    border-radius: var(--radius-sm);
}

.cause-one__goals {
    display: flex;
    justify-content: space-between;
    font-size: 0.83rem;
    color: var(--c-text-muted);
    margin-top: 6px;
}

.cause-one__goals span {
    font-weight: 700;
    color: var(--c-primary);
}

/* ═══════════════════════════════════════════════════
   COUNTERS SECTION
═══════════════════════════════════════════════════ */
.counter-one {
    background: linear-gradient(135deg, var(--c-primary-dark) 0%, #0D1B5E 50%, #0A3D38 100%);
    background-size: cover;
    background-position: center;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

/* Overlay gradient sur les sections jarallax */
/* Un vrai div enfant positionné entre l'image jarallax (z-index:-100) et le contenu (z-index:1) */
.counter-one {
    position: relative;
}
.counter-one__overlay {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(
        to right,
        rgba(13, 27, 94, 0.90) 0%,
        rgba(26, 35, 126, 0.88) 55%,
        rgba(46, 125, 50, 0.82) 100%
    );
    pointer-events: none;
}
.counter-one .container {
    position: relative;
    z-index: 1;
}

.cta-one__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(13, 21, 96, 0.82) 0%,
        rgba(26, 35, 126, 0.72) 50%,
        rgba(21, 101, 192, 0.60) 100%
    );
    z-index: 0;
    pointer-events: none;
}

.counter-one::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.counter-one__item {
    text-align: center;
    padding: 20px 16px;
    position: relative;
}

.counter-one__icon {
    width: 64px;
    height: 64px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 1.6rem;
    color: var(--c-bg);
    backdrop-filter: blur(4px);
}

.counter-one__count {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    justify-content: center;
}

.counter-one__text {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: rgba(255,255,255,0.75);
    font-weight: 500;
    margin-top: 6px;
    letter-spacing: 0.03em;
}

/* ═══════════════════════════════════════════════════
   TESTIMONIALS
═══════════════════════════════════════════════════ */
.testimonial-one__item {
    background: var(--c-surface);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    border: 1px solid var(--c-border-light);
    box-shadow: var(--shadow-md);
    position: relative;
}

.testimonial-one__item::before {
    content: '"';
    position: absolute;
    top: -8px;
    left: 24px;
    font-family: Georgia, serif;
    font-size: 5rem;
    line-height: 1;
    color: var(--c-primary);
    opacity: 0.15;
}

/* Wrapper + hauteur égale des cartes dans le swiper */
.testimonial-one__slider-wrap {
    position: relative;
    padding-bottom: 48px;
}

.testimonial-one__slider-wrap .swiper-slide {
    height: auto;
}

.testimonial-one__item {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.testimonial-one__text {
    flex: 1;
}

/* Pagination bullets centrée sous le slider */
.testimonial-one__pagination {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 6px;
}

.testimonial-one__pagination .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: var(--c-border);
    opacity: 1;
    border-radius: 50%;
    transition: all 0.25s ease;
}

.testimonial-one__pagination .swiper-pagination-bullet-active {
    background: var(--c-primary);
    width: 28px;
    border-radius: 5px;
}

/* ═══════════════════════════════════════════════════
   FILTERS (Services département)
═══════════════════════════════════════════════════ */
.dept-filter {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    min-height: 44px;
    border: 2px solid var(--c-border);
    border-radius: var(--radius-full);
    background: var(--c-surface);
    color: var(--c-text-muted);
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.dept-filter:hover {
    border-color: var(--c-primary);
    color: var(--c-primary);
    background: rgba(15,118,110,0.05);
}

.dept-filter--active {
    background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-primary-dark) 100%);
    border-color: var(--c-primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(15,118,110,0.25);
}

.dept-filter--active:hover {
    color: #fff;
    background: linear-gradient(135deg, var(--c-primary-dark) 0%, #0A4A45 100%);
}

.dept-filter__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: var(--radius-full);
    background: rgba(255,255,255,0.2);
    font-size: 0.72rem;
    font-weight: 700;
}

.dept-filter:not(.dept-filter--active) .dept-filter__count {
    background: var(--c-bg);
    color: var(--c-primary);
}

/* ═══════════════════════════════════════════════════
   SIDEBAR
═══════════════════════════════════════════════════ */
.sidebar__title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--c-text);
    padding-bottom: 12px;
    margin-bottom: 16px;
    border-bottom: 2px solid var(--c-border-light);
    position: relative;
}

.sidebar__title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--c-primary);
    border-radius: 2px;
}

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

.sidebar__cat-list li {
    border-bottom: 1px solid var(--c-border-light);
}

.sidebar__cat-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 4px;
    color: var(--c-text-muted);
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: color var(--transition-fast), padding-left var(--transition-fast);
}

.sidebar__cat-list a:hover,
.sidebar__cat-list a.fw-bold {
    color: var(--c-primary);
    padding-left: 8px;
}

/* ═══════════════════════════════════════════════════
   DONATION FORM
═══════════════════════════════════════════════════ */
.donation-form-one {
    background: var(--c-surface);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    padding: var(--space-xl) var(--space-lg);
    border: 1px solid var(--c-border-light);
    position: relative;
    overflow: hidden;
}

.donation-form-one::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--c-primary) 0%, var(--c-secondary) 50%, var(--c-cta) 100%);
}

.donation-form-one .inner-title h3 {
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--c-text);
    font-size: 1.4rem;
    margin-bottom: var(--space-lg);
    text-align: center;
}

/* Champs texte / number du formulaire de don */
.donation-form-one .form-group {
    margin-bottom: 16px;
}

.donation-form-one .form-group > label {
    display: block;
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--c-text-muted);
    margin-bottom: 10px;
}

.donation-form-one .input-box input {
    width: 100%;
    border: 1.5px solid var(--c-border);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--c-text);
    background: var(--c-surface);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    appearance: none;
    -moz-appearance: textfield;
}

.donation-form-one .input-box input:focus {
    border-color: var(--c-primary);
    box-shadow: 0 0 0 3px rgba(26,35,126,0.10);
    outline: none;
}

.donation-form-one .input-box input::placeholder {
    color: var(--c-text-light);
}

/* Supprimer les flèches spinner sur input[type=number] */
.donation-form-one .input-box input[type=number]::-webkit-inner-spin-button,
.donation-form-one .input-box input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}


/* Boutons de montant de don (partagés homepage + campaign-details) */
.amt-btn {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    border: 1.5px solid var(--c-border);
    color: var(--c-text-muted);
    background: var(--c-surface);
    border-radius: var(--radius-md);
    padding: 9px 4px;
    transition: all var(--transition-fast);
    cursor: pointer;
}

.amt-btn:hover {
    border-color: var(--c-primary);
    color: var(--c-primary);
    background: rgba(26,35,126,0.04);
}

.amt-btn.active,
.amt-btn:focus {
    background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-primary-dark) 100%);
    border-color: var(--c-primary);
    color: #fff !important;
    box-shadow: 0 3px 10px rgba(26,35,126,0.25);
}

/* ═══════════════════════════════════════════════════
   FORMS (Contact, Volunteer)
═══════════════════════════════════════════════════ */
.contact-one__input-box input,
.contact-one__input-box textarea,
.contact-one__input-box select {
    border: 1.5px solid var(--c-border);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--c-text);
    background: var(--c-surface);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    width: 100%;
}

.contact-one__input-box input:focus,
.contact-one__input-box textarea:focus {
    border-color: var(--c-primary);
    box-shadow: 0 0 0 3px rgba(15,118,110,0.12);
    outline: none;
}

/* ═══════════════════════════════════════════════════
   PAGE HEADER
═══════════════════════════════════════════════════ */
.page-header {
    position: relative;
    padding: 80px 0 60px;
    overflow: hidden;
}

.page-header__bg {
    filter: brightness(0.55);
}

.page-header__inner h2 {
    font-family: var(--font-heading);
    font-weight: 800;
    color: #fff;
    text-shadow: 0 2px 16px rgba(0,0,0,0.3);
    font-size: clamp(1.8rem, 4vw, 3rem);
}

.thm-breadcrumb li,
.thm-breadcrumb a {
    font-family: var(--font-body);
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
}

.thm-breadcrumb a:hover {
    color: var(--c-secondary);
}

/* ═══════════════════════════════════════════════════
   CTA SECTION
═══════════════════════════════════════════════════ */
.cta-one {
    position: relative;
}

.cta-one .container {
    position: relative;
    z-index: 1;
}

/* ═══════════════════════════════════════════════════
   WELCOME / ABOUT SECTION
═══════════════════════════════════════════════════ */
.welcome-one {
    background: var(--c-bg);
}

.count-box {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--c-primary);
}

.list-item li .icon i {
    color: var(--c-primary);
}

/* ═══════════════════════════════════════════════════
   PRELOADER
═══════════════════════════════════════════════════ */
.preloader__image {
    background-image: url('../images/resources/logo-clinique.png') !important;
    background-size: 180px auto !important;
}

/* ═══════════════════════════════════════════════════
   PARTENAIRES
═══════════════════════════════════════════════════ */

.partner-one {
    background: #f8f9fc;
    border-top: 1px solid #e8edf5;
    border-bottom: 1px solid #e8edf5;
}

.partner-one__heading {
    text-align: center;
    margin-bottom: 36px;
}

.partner-one__tagline {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--c-secondary);
    margin-bottom: 8px;
}

.partner-one__title {
    font-size: clamp(1.3rem, 2.5vw, 1.75rem);
    font-weight: 700;
    color: var(--c-primary);
    margin: 0 0 14px;
}

.partner-one__divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.partner-one__divider span {
    display: block;
    width: 60px;
    height: 3px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--c-primary) 0%, var(--c-secondary) 100%);
}

.partner-one__item {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #e8edf5;
    border-radius: 10px;
    padding: 18px 28px;
    height: 80px;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.partner-one__item:hover {
    box-shadow: 0 6px 24px rgba(26, 35, 126, 0.10);
    transform: translateY(-3px);
}

.partner-one__item img {
    max-height: 44px;
    max-width: 140px;
    width: auto;
    object-fit: contain;
    filter: grayscale(1) opacity(0.65);
    transition: filter 0.25s ease;
}

.partner-one__item:hover img {
    filter: grayscale(0) opacity(1);
}

/* ═══════════════════════════════════════════════════
   FOOTER — Modern Dark Navy (UI/UX Pro Max)
   Accessible & Ethical — WCAG AAA — 44px touch targets
═══════════════════════════════════════════════════ */

/* ── Variables footer ── */
:root {
    --footer-bg:        #080F2E;
    --footer-bg-card:   rgba(255,255,255,0.04);
    --footer-border:    rgba(255,255,255,0.08);
    --footer-text:      rgba(255,255,255,0.65);
    --footer-text-dim:  rgba(255,255,255,0.38);
    --footer-accent:    #4FC3F7;  /* bleu clair lumineux sur fond sombre */
    --footer-green:     #81C784;  /* vert doux sur fond sombre */
}

/* ── Fond principal ── */
.site-footer {
    background: var(--footer-bg);
    position: relative;
    overflow: hidden;
}

/* Décoration : arc lumineux en haut */
.site-footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg,
        var(--c-primary) 0%,
        var(--footer-accent) 50%,
        var(--c-secondary) 100%);
}

/* Décoration : cercle lumineux flou en arrière-plan */
.site-footer::after {
    content: '';
    position: absolute;
    top: -200px; right: -200px;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(26,35,126,0.18) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.site-footer > * { position: relative; z-index: 1; }

/* ── Newsletter strip ── */
.site-footer__newsletter {
    background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-primary-dark) 60%, #0D47A1 100%);
    padding: 32px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-newsletter__icon {
    width: 48px; height: 48px;
    background: rgba(255,255,255,0.15);
    border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
    color: #fff;
    flex-shrink: 0;
}

.footer-newsletter__label {
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.6);
    margin: 0 0 2px;
}

.site-footer__newsletter-title {
    font-family: var(--font-heading);
    font-weight: 800;
    color: #fff;
    margin-bottom: 0;
    font-size: 1.15rem;
    line-height: 1.3;
}

.site-footer__newsletter-form {
    display: flex;
    gap: 8px;
    align-items: center;
    background: rgba(255,255,255,0.1);
    border: 1.5px solid rgba(255,255,255,0.2);
    border-radius: var(--radius-full);
    padding: 5px 5px 5px 20px;
    backdrop-filter: blur(8px);
    transition: border-color var(--transition-fast);
}

.site-footer__newsletter-form:focus-within {
    border-color: rgba(255,255,255,0.55);
}

.site-footer__newsletter-form input {
    flex: 1;
    border: none;
    background: transparent;
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: #fff;
    padding: 8px 0;
    min-width: 0;
}

.site-footer__newsletter-form input::placeholder { color: rgba(255,255,255,0.55); }
.site-footer__newsletter-form input:focus { outline: none; }

.site-footer__newsletter-btn {
    flex-shrink: 0;
    background: #fff;
    color: var(--c-primary) !important;
    border: none;
    border-radius: var(--radius-full);
    padding: 10px 22px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    white-space: nowrap;
    min-height: 44px;
    transition: background var(--transition-fast), transform var(--transition-fast);
    display: inline-flex; align-items: center; gap: 6px;
}

.site-footer__newsletter-btn:hover {
    background: var(--footer-accent);
    transform: scale(1.03);
}

/* ── Body du footer ── */
.site-footer__top {
    border-bottom: 1px solid var(--footer-border);
}

/* ── Logo footer ── */
.footer-logo {
    max-height: 44px;
    width: auto;
    transition: opacity var(--transition-fast);
}

.footer-logo:hover { opacity: 0.85; }

/* ── Texte description ── */
.footer-widget__about-text {
    color: var(--footer-text);
    font-size: 0.9rem;
    line-height: 1.75;
    max-width: 30ch;
}

/* ── Réseaux sociaux ── */
.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social__link {
    width: 40px; height: 40px;
    border-radius: var(--radius-md);
    background: var(--footer-bg-card);
    border: 1px solid var(--footer-border);
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--footer-text) !important;
    font-size: 0.85rem;
    text-decoration: none;
    transition: background var(--transition-base), border-color var(--transition-base), color var(--transition-base), transform var(--transition-fast);
    cursor: pointer;
}

.footer-social__link:hover {
    background: var(--c-primary);
    border-color: var(--c-primary);
    color: #fff !important;
    transform: translateY(-3px);
}

/* ── Titres de widgets ── */
.footer-widget__title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 20px;
    padding-bottom: 12px;
    position: relative;
}

.footer-widget__title::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 32px; height: 2px;
    background: linear-gradient(90deg, var(--footer-accent), transparent);
    border-radius: 2px;
}

/* ── Listes de liens ── */
.footer-widget__list li {
    margin-bottom: 6px;
}

.footer-widget__list a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--footer-text) !important;
    font-size: 0.9rem;
    text-decoration: none;
    padding: 5px 0;
    transition: color var(--transition-fast), padding-left var(--transition-fast);
    cursor: pointer;
}

.footer-widget__list a i {
    font-size: 0.6rem;
    color: var(--footer-accent);
    transition: transform var(--transition-fast);
    flex-shrink: 0;
}

.footer-widget__list a:hover {
    color: #fff !important;
    padding-left: 6px;
}

.footer-widget__list a:hover i {
    transform: translateX(3px);
}

/* ── Liste contact ── */
.footer-contact__list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
    color: var(--footer-text);
    font-size: 0.9rem;
    line-height: 1.55;
}

.footer-contact__icon {
    width: 32px; height: 32px;
    background: var(--footer-bg-card);
    border: 1px solid var(--footer-border);
    border-radius: var(--radius-sm);
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--footer-accent);
    font-size: 0.8rem;
    flex-shrink: 0;
    margin-top: 1px;
}

.footer-contact__list a {
    color: var(--footer-text) !important;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-contact__list a:hover {
    color: var(--footer-accent) !important;
}

/* ── Barre du bas ── */
.site-footer__bottom {
    padding: 20px 0;
}

.site-footer__bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.site-footer__bottom-text {
    color: var(--footer-text-dim);
    font-size: 0.82rem;
    margin: 0;
    max-width: none;
}

.site-footer__bottom-links {
    display: flex;
    gap: 20px;
}

.site-footer__bottom-links a {
    color: var(--footer-text-dim) !important;
    font-size: 0.82rem;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.site-footer__bottom-links a:hover {
    color: var(--footer-accent) !important;
}

/* ── Responsive ── */
@media (max-width: 767px) {
    .site-footer__newsletter-form { flex-wrap: wrap; border-radius: var(--radius-lg); padding: 12px; }
    .site-footer__newsletter-btn  { width: 100%; justify-content: center; }
    .footer-widget__about-text    { max-width: none; }
    .site-footer__bottom-inner    { flex-direction: column; text-align: center; }
    .site-footer__bottom-links    { justify-content: center; }
}

/* ═══════════════════════════════════════════════════
   BADGE / TAG
═══════════════════════════════════════════════════ */
.clinique-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.clinique-badge--primary {
    background: rgba(15,118,110,0.1);
    color: var(--c-primary);
    border: 1px solid rgba(15,118,110,0.2);
}

.clinique-badge--cta {
    background: rgba(3,105,161,0.1);
    color: var(--c-cta);
    border: 1px solid rgba(3,105,161,0.2);
}

/* ═══════════════════════════════════════════════════
   LAZY LOADING SKELETON
═══════════════════════════════════════════════════ */
.skeleton {
    background: linear-gradient(90deg, #e0f0ee 25%, #c8e8e4 50%, #e0f0ee 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}

@keyframes skeleton-shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ═══════════════════════════════════════════════════
   UTILITIES
═══════════════════════════════════════════════════ */
.text-primary-brand { color: var(--c-primary); }
.text-muted-brand   { color: var(--c-text-muted); }
.bg-brand-light     { background-color: var(--c-bg); }
.border-brand       { border-color: var(--c-border) !important; }

.img-cover-220 { width: 100%; height: 220px; object-fit: cover; }
.img-cover-280 { width: 100%; height: 280px; object-fit: cover; }
.img-cover-320 { width: 100%; height: 320px; object-fit: cover; }

/* Section spacing utilities */
.pt-40  { padding-top: 40px; }
.pt-60  { padding-top: 60px; }
.pt-80  { padding-top: 80px; }
.pt-100 { padding-top: 100px; }
.pt-120 { padding-top: 120px; }
.pb-40  { padding-bottom: 40px; }
.pb-60  { padding-bottom: 60px; }
.pb-80  { padding-bottom: 80px; }
.pb-100 { padding-bottom: 100px; }
.pb-120 { padding-bottom: 120px; }
.mb-50  { margin-bottom: 50px; }
.mb-30  { margin-bottom: 30px; }
.mb-40  { margin-bottom: 40px; }
.mt-40  { margin-top: 40px; }
@media (max-width: 991px) {
    .pt-120 { padding-top: 80px; }
    .pb-120 { padding-bottom: 80px; }
    .pt-100 { padding-top: 70px; }
    .pb-100 { padding-bottom: 70px; }
    .pt-80  { padding-top: 60px; }
    .pb-80  { padding-bottom: 60px; }
    .pt-60  { padding-top: 50px; }
    .pb-60  { padding-bottom: 50px; }
}
@media (max-width: 767px) {
    .pt-120 { padding-top: 60px; }
    .pb-120 { padding-bottom: 60px; }
    .pt-100 { padding-top: 55px; }
    .pb-100 { padding-bottom: 55px; }
    .pt-80  { padding-top: 50px; }
    .pb-80  { padding-bottom: 50px; }
    .pt-60  { padding-top: 40px; }
    .pb-60  { padding-bottom: 40px; }
    .pt-40  { padding-top: 30px; }
    .pb-40  { padding-bottom: 30px; }
}

/* ═══════════════════════════════════════════════════
   SECTION PHOTOS TERRAIN
═══════════════════════════════════════════════════ */
.clinic-photos {
    background: var(--c-surface);
}

.clinic-photos__img-box {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.clinic-photos__img-main img {
    width: 100%;
    height: 340px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    transition: transform var(--transition-slow);
}

.clinic-photos__img-main img:hover {
    transform: scale(1.02);
}

.clinic-photos__img-secondary {
    align-self: flex-end;
    width: 75%;
}

.clinic-photos__img-secondary img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 4px solid var(--c-surface);
    transition: transform var(--transition-slow);
}

.clinic-photos__img-secondary img:hover {
    transform: scale(1.02);
}

.clinic-photos__text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--c-text-muted);
    max-width: 52ch;
}

.clinic-photos__features {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.clinic-photos__feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--c-text);
}

.clinic-photos__feature-item i {
    color: var(--c-secondary);
    font-size: 1rem;
    flex-shrink: 0;
}

@media (max-width: 991px) {
    .clinic-photos__img-secondary {
        width: 65%;
    }
}

@media (max-width: 767px) {
    .clinic-photos__img-main img  { height: 250px; }
    .clinic-photos__img-secondary { width: 80%; }
    .clinic-photos__img-secondary img { height: 170px; }
}

/* ═══════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════ */
@media (max-width: 1199px) {
    .main-slider-content__inner .big-title h2 { font-size: clamp(1.8rem, 4vw, 3rem) !important; }
}

@media (max-width: 991px) {
    .pt-120 { padding-top: 80px; }
    .pb-120 { padding-bottom: 80px; }
    .counter-one { padding: 60px 0; }
    .counter-one__count { font-size: 2.2rem; }
}

@media (max-width: 767px) {
    .site-footer__newsletter-form { flex-direction: column; }
    .donation-form-one { margin-top: 40px; padding: var(--space-lg) var(--space-md); }
    .main-slider-content__inner .big-title h2 { font-size: 1.8rem !important; }
    .main-slider-content__inner .btn-box { flex-direction: column; align-items: center; }
    .thm-btn { padding: 12px 24px; }
    .pt-120 { padding-top: 60px; }
    .pb-120 { padding-bottom: 60px; }
    .counter-one__count { font-size: 2rem; }
    .counter-one__icon { width: 52px; height: 52px; font-size: 1.3rem; }
    h2 { font-size: 1.6rem; }
    .dept-filter { padding: 8px 16px; font-size: 0.82rem; }
}

/* Donation sidebar: disable sticky below XL (when col-xl-4 goes full-width) */
@media (max-width: 1199px) {
    .donation-form-one.sticky-top {
        position: static !important;
        top: auto !important;
    }
}

/* User-generated content images (campaign details, post details) */
.campaign-content img,
.cause-details img,
.post-content img,
.service-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
}

@media (max-width: 480px) {
    body { font-size: 15px; }
    .thm-btn--small { padding: 9px 18px; }
    .donation-form-one { border-radius: var(--radius-lg); }
    /* Partner items: tighter padding at 375px */
    .partner-one__item { padding: 12px 16px; height: 64px; }
}

/* ═══════════════════════════════════════════════════
   STRIPE ELEMENTS — Card Element
═══════════════════════════════════════════════════ */
#stripe-card-element {
    padding: 12px 15px;
    border: 1px solid var(--c-border, #ced4da);
    border-radius: var(--radius-sm, 4px);
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    min-height: 46px;
}

#stripe-card-element.StripeElement--focus {
    border-color: var(--c-primary, #1A237E);
    box-shadow: 0 0 0 3px rgba(26, 35, 126, 0.12);
    outline: none;
}

#stripe-card-element.StripeElement--invalid {
    border-color: #dc3545;
}

#stripe-card-errors {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 6px;
    display: none;
    padding: 4px 0;
}

/* ═══════════════════════════════════════════════════
   PRINT
═══════════════════════════════════════════════════ */
@media print {
    .main-header, .site-footer, .thm-btn { display: none; }
    body { font-size: 12pt; color: #000; }
}


/* ═══════════════════════════════════════════════════
   CARDS SERVICES — remplacement des styles inline
═══════════════════════════════════════════════════ */
.service-one__item {
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    transition: box-shadow .3s ease, transform .3s ease;
}
.service-one__item:hover {
    box-shadow: 0 8px 32px rgba(0,0,0,.10);
    transform: translateY(-3px);
}
.service-one__icon i {
    font-size: 3rem;
    color: var(--clique-teal);
}
.service-one__img img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
}
.service-one__title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
}
.service-one__title a {
    color: var(--clinique-dark);
    text-decoration: none;
}
.service-one__title a:hover {
    color: var(--clique-teal);
}
.service-one__text {
    font-size: .95rem;
    line-height: 1.7;
}
.service-dept-badge {
    background: rgba(26, 188, 156, 0.1);
    color: var(--clique-teal);
    font-weight: 500;
}

/* ═══════════════════════════════════════════════════
   CARDS ÉVÉNEMENTS — remplacement des styles inline
═══════════════════════════════════════════════════ */
.event-one__img img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}
.event-date {
    background: var(--clique-teal);
    min-width: 60px;
    border-radius: 6px;
    padding: 8px;
    text-align: center;
    flex-shrink: 0;
}
.event-date__day {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    display: block;
    line-height: 1;
}
.event-date__month {
    font-size: .75rem;
    color: rgba(255,255,255,.85);
    text-transform: uppercase;
}
.event-one__title a {
    color: var(--clinique-dark);
    font-family: var(--font-heading);
    text-decoration: none;
    transition: color 0.2s ease;
}
.event-one__title a:hover {
    color: var(--clique-teal);
}

/* ═══════════════════════════════════════════════════
   CARDS ACTUALITÉS — remplacement des styles inline
═══════════════════════════════════════════════════ */
.blog-one__img img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    filter: none;
}
.blog-one__title a {
    font-family: var(--font-heading);
    color: var(--clinique-dark);
    text-decoration: none;
}
.blog-one__title a:hover {
    color: var(--clique-teal);
}

/* ═══════════════════════════════════════════════════
   NEWSROOM — filtres actifs + blog details
═══════════════════════════════════════════════════ */

/*
 * height:100% sur .blog-one__item est prévu pour les grilles (homepage).
 * Sur la newsroom, les cartes sont empilées dans un col flex-stretchable :
 * le premier article prendrait toute la hauteur de la sidebar → espace vide.
 * On force height:auto pour ce contexte de liste.
 */
.blog-page .blog-one__item {
    height: auto;
}

.blog-page .col-xl-8 {
    align-self: flex-start;
}

.news-filters-banner {
    background: rgba(0,188,212,0.08);
    border: 1px solid rgba(0,188,212,0.25);
}
.news-filters-banner .fw-semibold {
    color: var(--clinique-dark);
}

/* ═══════════════════════════════════════════════════
   BLOG DETAILS — typographie article
═══════════════════════════════════════════════════ */
.blog-details__item h1 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
}
.blog-details__content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #444;
}
.related-posts h3 {
    font-family: var(--font-heading);
}
.related-posts .blog-one__item img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}
.related-posts h5 {
    font-family: var(--font-heading);
    font-size: 0.95rem;
}
.related-posts h5 a {
    color: var(--clinique-dark);
    text-decoration: none;
}
.related-posts h5 a:hover {
    color: var(--clique-teal);
}
.related-posts .read-more-link {
    color: var(--clique-teal);
}

/* Sidebar CTA (don) */
.sidebar__cta-box {
    background: var(--clinique-dark);
    border-radius: var(--radius-lg, 12px);
}
.sidebar__cta-box h5 {
    color: #fff;
    font-family: var(--font-heading);
}
.sidebar__cta-box p {
    color: rgba(255,255,255,0.7);
}
.sidebar-search-btn {
    background: var(--clinique-dark);
    color: #fff;
    border: none;
}
.sidebar-search-btn:hover {
    background: var(--c-primary, #0f766e);
    color: #fff;
}

/* ═══════════════════════════════════════════════════
   CONTACT — liste info
═══════════════════════════════════════════════════ */
.contact-info-list li .icon-clock,
.contact-info-list li .icon-envelope,
.contact-info-list li .icon-call,
.contact-info-list li .icon-pin-two {
    font-size: 1.5rem;
    color: var(--clique-teal);
}

/* ═══════════════════════════════════════════════════
   PAGINATION Bootstrap 5 — surcharge couleurs
═══════════════════════════════════════════════════ */
.pagination .page-link {
    color: var(--clinique-dark);
    border-color: #dee2e6;
}
.pagination .page-item.active .page-link {
    background-color: var(--clique-teal);
    border-color: var(--clique-teal);
    color: #fff;
}
.pagination .page-link:hover {
    color: var(--clique-teal);
    background-color: rgba(0,188,212,.08);
}
.pagination .page-link:focus {
    box-shadow: 0 0 0 3px rgba(0,188,212,.25);
}

/* =====================================================
   About page — photos section
   ===================================================== */
.about-photos__text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 28px;
}

.about-photos__img {
    object-fit: cover;
    height: 220px;
    transition: transform .4s ease, box-shadow .4s ease;
}

.about-photos__img:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 30px rgba(0,0,0,.15);
}

.about-photos__img--wide {
    height: 240px;
}

/* Team photos on About page (removes inline style) */
.about-team__photo {
    width: 100%;
    height: 280px;
    object-fit: cover;
}

/* About volunteer CTA section */
.about-volunteer-cta {
    background-color: var(--clinique-dark);
}
.about-volunteer-cta .container {
    position: relative;
    z-index: 1;
}
.about-volunteer-cta__overlay {
    position: absolute;
    inset: 0;
    background: rgba(13,27,94,.82);
    z-index: 0;
    pointer-events: none;
}

/* Testimonial — placeholder avatar */
.testimonial-one__img--placeholder {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--clinique-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Team section — photo standardization and avatar fallback */
.about-team__photo {
    width: 100%;
    height: 280px;
    object-fit: cover;
    object-position: top center;
}
.about-team__avatar {
    width: 100%;
    height: 280px;
    background: linear-gradient(135deg, var(--clinique-dark) 0%, var(--clinique-blue) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}
.about-team__avatar i {
    font-size: 5rem;
    color: rgba(255,255,255,0.55);
}

/* ═══════════════════════════════════════════════════════════
   ABOUT — TEAM SECTION  (premium redesign)
   ═══════════════════════════════════════════════════════════ */

.about-team-section {
    background: #f4f7fb;
}

/* ── Tab navigation ─────────────────────────────────────── */
.team-tabs {
    gap: 0;
    border-bottom: 2px solid rgba(13,27,94,.12);
    margin-bottom: 52px !important;
    flex-wrap: wrap;
}
.team-tabs__btn {
    font-family: var(--font-heading, 'Montserrat', sans-serif);
    font-size: .875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: #7a86a0;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    padding: 14px 36px;
    cursor: pointer;
    transition: color .25s, border-color .25s;
    white-space: nowrap;
}
.team-tabs__btn:hover {
    color: var(--clinique-dark, #0D1B5E);
}
.team-tabs__btn.active {
    color: var(--clinique-dark, #0D1B5E);
    border-bottom-color: var(--clinique-dark, #0D1B5E);
}
@media (max-width: 575px) {
    .team-tabs__btn { padding: 10px 18px; font-size: .78rem; }
}

/* ── Team card ──────────────────────────────────────────── */
.team-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(13,27,94,.07);
    transition: box-shadow .3s ease, transform .3s ease;
    height: 100%;
}
.team-card:hover {
    box-shadow: 0 10px 40px rgba(13,27,94,.14);
    transform: translateY(-5px);
}

/* Photo wrapper — always square via aspect-ratio */
.team-card__photo-wrap {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}
.team-card__photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform .45s ease;
    display: block;
}
.team-card:hover .team-card__photo {
    transform: scale(1.06);
}

/* Avatar fallbacks */
.team-card__avatar {
    width: 100%;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, var(--clinique-dark, #0D1B5E) 0%, #1a3a8f 100%);
}
.team-card__avatar--medical {
    background: linear-gradient(145deg, var(--clinique-green, #2E7D32) 0%, #43a047 100%);
}
.team-card__avatar--consultant {
    background: linear-gradient(145deg, var(--clique-teal, #00BCD4) 0%, #0097a7 100%);
}
/* Group-colour variants */
.team-card__avatar--admin,
.team-card__avatar--executive {
    background: linear-gradient(145deg, var(--clinique-dark, #0D1B5E) 0%, #1a3a8f 100%);
}
.team-card__avatar--member {
    background: linear-gradient(145deg, #37474f 0%, #546e7a 100%);
}
.team-card__avatar--volunteer {
    background: linear-gradient(145deg, #1a237e 0%, #283593 100%);
}
/* Initials text inside avatar */
.team-card__avatar span {
    color: #fff;
    font-family: var(--font-heading, 'Montserrat', sans-serif);
    font-size: 2.4rem;
    font-weight: 700;
    letter-spacing: .05em;
    line-height: 1;
    user-select: none;
}
/* Legacy icon fallback — still used on cards without an initials span */
.team-card__avatar i {
    font-size: 3.8rem;
    color: rgba(255,255,255,.42);
}

/* Card info block */
.team-card__info {
    padding: 18px 20px 22px;
    text-align: center;
    border-top: 3px solid rgba(13,27,94,.06);
}
.team-card__info h3 {
    font-family: var(--font-heading, 'Montserrat', sans-serif);
    font-size: 1rem;
    font-weight: 700;
    color: var(--clinique-dark, #0D1B5E);
    margin: 0 0 7px;
    line-height: 1.35;
}
.team-card__info span {
    display: block;
    font-size: .775rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--clique-teal, #00BCD4);
    line-height: 1.4;
}

/* ===================================================================
   TEAM PAGE — Dedicated /equipe page
   =================================================================== */

/* Intro block — explicit z-index above any jarallax artifact */
.team-page__intro {
    position: relative;
    z-index: 2;
    padding-top: 80px;
    padding-bottom: 40px;
    background: #fff;
}

/* Section wrapper — padding baked in as fallback to utility classes */
.team-page__section {
    position: relative;
    z-index: 2;
    padding-top: 70px;
    padding-bottom: 70px;
}

/* Section backgrounds */
.team-page__section--admin     { background: #f7f8fc; }
.team-page__section--executive { background: #fff; }
.team-page__section--medical   { background: #f5faf5; }
.team-page__section--member    { background: #fff; }

/* Section header */
.team-page__section-header { position: relative; }
.team-page__section-header-inner {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}
.team-page__section-title {
    font-family: var(--font-heading, 'Montserrat', sans-serif);
    font-size: 1.6rem;
    font-weight: 800;
    margin: 0;
    line-height: 1.2;
}
.team-page__section-title--admin,
.team-page__section-title--executive { color: var(--clinique-dark, #0D1B5E); }
.team-page__section-title--medical   { color: var(--clinique-green, #2E7D32); }
.team-page__section-title--member    { color: #37474f; }

.team-page__section-tag {
    font-size: .72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
    padding: 4px 12px;
    border-radius: 20px;
    white-space: nowrap;
}
.team-page__section-tag--admin,
.team-page__section-tag--executive {
    background: rgba(13,27,94,.1);
    color: var(--clinique-dark, #0D1B5E);
}
.team-page__section-tag--medical {
    background: rgba(46,125,50,.1);
    color: var(--clinique-green, #2E7D32);
}
.team-page__section-tag--member {
    background: rgba(55,71,79,.1);
    color: #37474f;
}

.team-page__section-line {
    flex: 1;
    min-width: 40px;
    height: 2px;
    border-radius: 2px;
}
.team-page__section-line--admin,
.team-page__section-line--executive { background: var(--clinique-dark, #0D1B5E); opacity: .15; }
.team-page__section-line--medical   { background: var(--clinique-green, #2E7D32); opacity: .2; }
.team-page__section-line--member    { background: #37474f; opacity: .12; }

@media (max-width: 991px) {
    .team-page__section { padding-top: 55px; padding-bottom: 55px; }
    .team-page__intro   { padding-top: 60px; padding-bottom: 30px; }
    .team-page__cta     { padding-top: 60px; padding-bottom: 60px; }
}
@media (max-width: 767px) {
    .team-page__section { padding-top: 45px; padding-bottom: 45px; }
    .team-page__intro   { padding-top: 50px; padding-bottom: 25px; }
    .team-page__cta     { padding-top: 50px; padding-bottom: 50px; }
    .team-page__section-header-inner { flex-direction: column; align-items: flex-start; gap: 10px; }
    .team-page__section-line { display: none; }
    .team-page__section-title { font-size: 1.3rem; }
}

/* CSS Grid — 4 cols desktop / 2 tablet / 1 mobile */
.team-page__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}
@media (max-width: 1199px) {
    .team-page__grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}
@media (max-width: 767px) {
    .team-page__grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
}
@media (max-width: 479px) {
    .team-page__grid { grid-template-columns: 1fr; gap: 16px; }
}

/* Team card entry animation — does NOT use visibility:hidden (avoids WOW.js hiding bug) */
@keyframes teamCardIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
.team-card--animate {
    animation: teamCardIn 0.5s ease both;
}

/* Team card — full reset from .team-one__item */
.team-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(13,27,94,.07);
    transition: transform .35s ease, box-shadow .35s ease;
    position: relative;
}
.team-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 36px rgba(13,27,94,.13);
}

/* Portrait wrapper — square */
.team-card__portrait {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

/* Hover overlay with social icons */
.team-card__overlay {
    position: absolute;
    inset: 0;
    background: rgba(13,27,94,.72);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    opacity: 0;
    transition: opacity .35s ease;
}
.team-card:hover .team-card__overlay { opacity: 1; }

.team-card__overlay-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,.15);
    border: 1.5px solid rgba(255,255,255,.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1rem;
    transition: background .25s ease, transform .25s ease;
    text-decoration: none;
}
.team-card__overlay-btn:hover {
    background: var(--clique-teal, #00BCD4);
    border-color: var(--clique-teal, #00BCD4);
    transform: scale(1.1);
    color: #fff;
}

/* CTA section */
.team-page__cta {
    background-image: url('../images/backgrounds/team-cta-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding-top: 80px;
    padding-bottom: 80px;
    position: relative;
    z-index: 2;
}
.team-page__cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(13, 27, 94, 0.55);
    z-index: 0;
}
.team-page__cta .container {
    position: relative;
    z-index: 1;
}
.team-page__cta-title {
    font-family: var(--font-heading, 'Montserrat', sans-serif);
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.25;
}
.team-page__cta-text {
    color: rgba(255,255,255,.72);
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.05rem;
}
.team-page__cta .section-title__tagline { color: var(--clique-teal, #00BCD4); }


/* ============================================================
   SERVICE DETAILS PAGE  (sd-* components)
   ============================================================ */

/* Back link */
.sd-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--clinique-dark, #0D1B5E);
    text-decoration: none;
    opacity: .75;
    transition: opacity .2s;
}
.sd-back-link:hover { opacity: 1; color: var(--clinique-dark, #0D1B5E); }
.sd-back-link i { font-size: .75rem; }

/* Hero image */
.sd-hero-img { border-radius: 12px; overflow: hidden; }
.sd-hero-img img {
    width: 100%;
    max-height: 460px;
    object-fit: cover;
    display: block;
}

/* Title block */
.sd-header {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}
.sd-icon {
    width: 68px;
    height: 68px;
    background: rgba(0, 188, 212, 0.10);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.sd-icon i { font-size: 1.9rem; color: var(--clique-teal, #00BCD4); }
.sd-title {
    font-family: var(--font-heading, 'Montserrat', sans-serif);
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--clinique-dark, #0D1B5E);
    margin-bottom: 8px;
    line-height: 1.25;
}
.sd-dept-badge {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 20px;
    background: rgba(0, 188, 212, 0.10);
    color: var(--clique-teal, #00BCD4);
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
}

/* Intro/short desc block */
.sd-intro {
    background: #f4f8fd;
    border-left: 4px solid var(--clique-teal, #00BCD4);
    border-radius: 0 8px 8px 0;
    padding: 20px 24px;
}
.sd-intro p {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.8;
    color: #444;
}

/* Full content */
.sd-content {
    font-size: 1.05rem;
    line-height: 1.85;
    color: #444;
}
.sd-content h3, .sd-content h4 {
    font-family: var(--font-heading, 'Montserrat', sans-serif);
    color: var(--clinique-dark, #0D1B5E);
    margin-top: 1.5rem;
}
.sd-content ul { padding-left: 1.5rem; }
.sd-content li { margin-bottom: 6px; }

/* Gallery */
.sd-gallery__title {
    font-family: var(--font-heading, 'Montserrat', sans-serif);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--clinique-dark, #0D1B5E);
    margin-bottom: 16px;
}
.sd-gallery__img {
    height: 130px;
    width: 100%;
    object-fit: cover;
}

/* ---- Sidebar ---- */
.sd-sidebar { position: sticky; top: 100px; }

/* Generic widget shell */
.sd-widget {
    border-radius: 12px;
    padding: 28px;
}

/* Appointment widget */
.sd-widget--appointment {
    background: var(--clique-teal, #00BCD4);
}
.sd-widget--appointment .sd-widget__icon {
    width: 52px;
    height: 52px;
    background: rgba(255,255,255,.18);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}
.sd-widget--appointment .sd-widget__icon i { font-size: 1.5rem; color: #fff; }
.sd-widget--appointment .sd-widget__title {
    font-family: var(--font-heading, 'Montserrat', sans-serif);
    color: #fff;
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
}
.sd-widget--appointment .sd-widget__text {
    color: rgba(255,255,255,.85);
    font-size: 0.9rem;
    margin-bottom: 18px;
}

/* Donate widget */
.sd-widget--donate {
    background: var(--clinique-dark, #0D1B5E);
}
.sd-widget--donate .sd-widget__icon {
    width: 52px;
    height: 52px;
    background: rgba(255,255,255,.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}
.sd-widget--donate .sd-widget__icon i { font-size: 1.5rem; color: #fff; }
.sd-widget--donate .sd-widget__title {
    font-family: var(--font-heading, 'Montserrat', sans-serif);
    color: #fff;
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
}
.sd-widget--donate .sd-widget__text {
    color: rgba(255,255,255,.75);
    font-size: 0.9rem;
    margin-bottom: 18px;
}

/* Navigation widget */
.sd-widget--nav {
    background: #fff;
    border: 1px solid #e8edf5;
    padding: 24px;
}
.sd-widget__nav-title {
    font-family: var(--font-heading, 'Montserrat', sans-serif);
    font-size: 1rem;
    font-weight: 700;
    color: var(--clinique-dark, #0D1B5E);
    padding-bottom: 12px;
    border-bottom: 2px solid var(--clique-teal, #00BCD4);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: .05em;
}
.sd-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 0;
    border-bottom: 1px solid #f0f4f8;
    text-decoration: none;
    color: #333;
    font-size: 0.92rem;
    font-weight: 500;
    transition: color .2s, padding-left .2s;
}
.sd-nav-item:hover { color: var(--clique-teal, #00BCD4); padding-left: 4px; }
.sd-nav-item:last-child { border-bottom: none; }
.sd-nav-item__icon {
    width: 32px;
    height: 32px;
    background: rgba(0,188,212,.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background .2s;
}
.sd-nav-item:hover .sd-nav-item__icon { background: rgba(0,188,212,.18); }
.sd-nav-item__icon i { font-size: .85rem; color: var(--clique-teal, #00BCD4); }
.sd-nav-item__label { flex: 1; line-height: 1.3; }
.sd-nav-item__arrow { font-size: .65rem; color: #ccc; flex-shrink: 0; }
.sd-nav-item:hover .sd-nav-item__arrow { color: var(--clique-teal, #00BCD4); }

/* Emergency widget */
.sd-widget--emergency {
    background: #fff8e1;
    border: 1px solid #ffe082;
    padding: 22px;
}
.sd-widget__emergency-title {
    font-family: var(--font-heading, 'Montserrat', sans-serif);
    font-size: 1rem;
    font-weight: 700;
    color: #795548;
    margin-bottom: 8px;
}
.sd-widget__emergency-text {
    font-size: 0.88rem;
    color: #795548;
    margin-bottom: 10px;
}
.sd-widget__emergency-number {
    font-size: 1.35rem;
    font-weight: 800;
    color: #c62828;
    text-decoration: none;
    display: block;
}
.sd-widget__emergency-number:hover { text-decoration: underline; color: #c62828; }

/* Responsive */
@media (max-width: 991.98px) {
    .sd-sidebar { position: static; top: auto; }
}
@media (max-width: 575.98px) {
    .sd-title { font-size: 1.5rem; }
    .sd-hero-img img { max-height: 240px; }
    .sd-header { flex-direction: column; gap: 12px; }
    .sd-icon { width: 52px; height: 52px; }
}

/* =====================================================================
   NEWS-DETAILS (nd-*) — Premium Journal Style
   ===================================================================== */

/* Page header slim pour l'article */
.page-header--slim { min-height: 160px; }
.page-header--slim .page-header__inner { padding: 32px 0; }

/* Section wrapper */
.nd-section { background: #fff; }

/* ── Article ── */
.nd-article { max-width: 100%; }

/* ── En-tête éditorial ── */
.nd-article__header { margin-bottom: 36px; }

.nd-article__meta-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.nd-category-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 14px;
    background: var(--clique-teal);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 3px;
    text-decoration: none;
    transition: background 0.2s;
}
.nd-category-badge:hover { background: var(--clinique-blue); color: #fff; }

.nd-back-link {
    font-size: 0.8rem;
    color: #888;
    text-decoration: none;
    transition: color 0.2s;
}
.nd-back-link:hover { color: var(--clinique-blue); }

.nd-article__title {
    font-family: var(--font-heading, 'Montserrat', sans-serif);
    font-size: clamp(1.65rem, 3vw, 2.5rem);
    font-weight: 800;
    line-height: 1.22;
    color: var(--clinique-dark);
    margin-bottom: 18px;
}

.nd-article__meta-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 0;
    font-size: 0.82rem;
    color: #888;
    margin-bottom: 20px;
}
.nd-meta-item { display: inline-flex; align-items: center; gap: 5px; }
.nd-meta-item i { color: var(--clique-teal); font-size: 0.78rem; }
.nd-meta-separator { margin: 0 10px; color: #ccc; }

/* Ligne auteur */
.nd-article__author {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: #f8fafc;
    border-left: 3px solid var(--clique-teal);
    border-radius: 0 6px 6px 0;
}
.nd-author-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    overflow: hidden;
    background: #e9ecef;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.nd-author-avatar img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.nd-author-info { display: flex; flex-direction: column; }
.nd-author-name { font-weight: 700; font-size: 0.88rem; color: var(--clinique-dark); line-height: 1.3; }
.nd-author-role { font-size: 0.75rem; color: #888; }

/* ── Image de couverture ── */
.nd-article__cover {
    margin: 0 0 36px;
    border-radius: 8px;
    overflow: hidden;
}
.nd-cover-img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    display: block;
}
.nd-cover-caption {
    padding: 10px 16px;
    background: #f3f4f6;
    font-size: 0.78rem;
    color: #777;
    font-style: italic;
    border-top: 1px solid #e5e7eb;
}

/* ── Chapeau / excerpt ── */
.nd-article__chapeau {
    margin-bottom: 32px;
    padding: 20px 24px;
    border-left: 4px solid var(--clinique-blue);
    background: #f0f4ff;
    border-radius: 0 8px 8px 0;
}
.nd-article__chapeau p {
    font-size: 1.15rem;
    line-height: 1.7;
    color: #374151;
    font-weight: 400;
    margin: 0;
    max-width: none;
}

/* ── Corps de l'article (prose) ── */
.nd-prose { font-size: 1.03rem; line-height: 1.82; color: #374151; }
.nd-prose p {
    margin-bottom: 1.4em;
    max-width: none;       /* annule la règle globale p { max-width: 70ch } */
    text-align: justify;
    hyphens: auto;
}
.nd-prose h2 {
    font-family: var(--font-heading, 'Montserrat', sans-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--clinique-dark);
    margin: 2em 0 0.7em;
    padding-bottom: 8px;
    border-bottom: 2px solid #e5e7eb;
}
.nd-prose h3 {
    font-family: var(--font-heading, 'Montserrat', sans-serif);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--clinique-dark);
    margin: 1.8em 0 0.6em;
}
.nd-prose ul, .nd-prose ol { padding-left: 1.5rem; margin-bottom: 1.4em; }
.nd-prose li { margin-bottom: 0.4em; }
.nd-prose blockquote {
    border-left: 4px solid var(--clique-teal);
    margin: 1.8em 0;
    padding: 16px 24px;
    background: #f0fdfa;
    border-radius: 0 8px 8px 0;
    font-size: 1.1rem;
    font-style: italic;
    color: #1f5e56;
}
.nd-prose blockquote p { margin: 0; }
.nd-prose img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 1em 0;
}
.nd-prose a { color: var(--clinique-blue); text-decoration: underline; }
.nd-prose a:hover { color: var(--clique-teal); }
.nd-prose strong { color: var(--clinique-dark); }

/* ── Pied de l'article ── */
.nd-article__footer {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    justify-content: space-between;
}

/* Tags */
.nd-footer__tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.nd-tags-label { font-size: 0.8rem; font-weight: 600; color: #555; white-space: nowrap; }
.nd-tag-pill {
    display: inline-block;
    padding: 4px 12px;
    background: #f3f4f6;
    color: #555;
    font-size: 0.75rem;
    border-radius: 999px;
    text-decoration: none;
    border: 1px solid #e5e7eb;
    transition: all 0.2s;
}
.nd-tag-pill:hover { background: var(--clinique-blue); color: #fff; border-color: var(--clinique-blue); }

/* Boutons de partage social */
.nd-footer__share { display: flex; align-items: center; gap: 10px; }
.nd-share-label { font-size: 0.8rem; font-weight: 600; color: #555; white-space: nowrap; }
.nd-share-buttons { display: flex; gap: 8px; }
.nd-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: #fff;
    font-size: 0.85rem;
    text-decoration: none;
    transition: transform 0.2s, opacity 0.2s;
}
.nd-share-btn:hover { transform: scale(1.12); opacity: 0.9; color: #fff; }
.nd-share-btn--facebook { background: #1877f2; }
.nd-share-btn--twitter  { background: #1da1f2; }
.nd-share-btn--whatsapp { background: #25d366; }

/* ── Articles similaires ── */
.nd-related { padding-top: 20px; border-top: 2px solid #e5e7eb; }
.nd-related__title {
    font-family: var(--font-heading, 'Montserrat', sans-serif);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--clinique-dark);
    margin-bottom: 24px;
}

.nd-related-card {
    display: block;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e5e7eb;
    text-decoration: none;
    transition: box-shadow 0.25s, transform 0.25s;
    height: 100%;
}
.nd-related-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.10); transform: translateY(-3px); }
.nd-related-card__img { height: 160px; overflow: hidden; background: #f3f4f6; }
.nd-related-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.nd-related-card:hover .nd-related-card__img img { transform: scale(1.05); }
.nd-related-card__img--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    font-size: 2rem;
}
.nd-related-card__body { padding: 14px 16px; }
.nd-related-card__cat {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--clique-teal);
    margin-bottom: 6px;
}
.nd-related-card__title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--clinique-dark);
    line-height: 1.4;
    margin: 0 0 8px;
}
.nd-related-card__date { font-size: 0.75rem; color: #888; }

/* ── SIDEBAR ── */
.nd-sidebar { position: sticky; top: 100px; }

.nd-widget {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 24px;
}
.nd-widget__title {
    font-family: var(--font-heading, 'Montserrat', sans-serif);
    font-size: 1rem;
    font-weight: 700;
    color: var(--clinique-dark);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--clique-teal);
}
.nd-widget__text { font-size: 0.88rem; color: #666; line-height: 1.6; margin-bottom: 12px; }

/* Widget recherche */
.nd-search-form {
    display: flex;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    overflow: hidden;
}
.nd-search-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 10px 14px;
    font-size: 0.88rem;
    color: #374151;
    background: #fafafa;
}
.nd-search-btn {
    padding: 0 16px;
    background: var(--clinique-blue);
    border: none;
    color: #fff;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 0.88rem;
}
.nd-search-btn:hover { background: var(--clique-teal); }

/* Widget articles populaires */
.nd-popular-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f3f4f6;
    text-decoration: none;
    transition: opacity 0.2s;
}
.nd-popular-item:last-child { border-bottom: none; }
.nd-popular-item:hover { opacity: 0.8; }
.nd-popular-item__thumb {
    width: 64px;
    height: 56px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f3f4f6;
}
.nd-popular-item__thumb img { width: 100%; height: 100%; object-fit: cover; }
.nd-popular-item__thumb--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    font-size: 1.2rem;
}
.nd-popular-item__info { flex: 1; min-width: 0; }
.nd-popular-item__title {
    font-size: 0.83rem;
    font-weight: 600;
    color: var(--clinique-dark);
    line-height: 1.4;
    margin: 0 0 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.nd-popular-item__date { font-size: 0.72rem; color: #aaa; }

/* Widget tag cloud */
.nd-tag-cloud { display: flex; flex-wrap: wrap; gap: 6px; }
.nd-tag-cloud__item {
    display: inline-block;
    padding: 5px 12px;
    background: #f3f4f6;
    color: #555;
    font-size: 0.75rem;
    border-radius: 4px;
    text-decoration: none;
    border: 1px solid #e5e7eb;
    transition: all 0.2s;
}
.nd-tag-cloud__item:hover { background: var(--clinique-blue); color: #fff; border-color: var(--clinique-blue); }
.nd-tag-cloud__item--active { background: var(--clique-teal); color: #fff; border-color: var(--clique-teal); }

/* Widget newsletter */
.nd-newsletter-form { display: flex; flex-direction: column; gap: 8px; }
.nd-newsletter-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.88rem;
    outline: none;
    transition: border-color 0.2s;
}
.nd-newsletter-input:focus { border-color: var(--clinique-blue); }

/* Widget don */
.nd-widget--donate { background: linear-gradient(135deg, var(--clinique-dark) 0%, var(--clinique-blue) 100%); border: none; }
.nd-donate-cta { text-align: center; }
.nd-donate-cta__icon { font-size: 2.5rem; color: var(--clique-teal); display: block; margin-bottom: 12px; }
.nd-donate-cta__title { font-size: 1.05rem; font-weight: 700; color: #fff; margin-bottom: 8px; }
.nd-donate-cta__text { font-size: 0.85rem; color: rgba(255,255,255,0.75); margin-bottom: 16px; line-height: 1.5; }
.nd-widget--donate .nd-widget__title { color: #fff; border-bottom-color: var(--clique-teal); }

/* Donate CTA button — bouton teal solide pour contraste sur fond dégradé sombre */
.nd-widget--donate .thm-btn {
    background: var(--clique-teal, #00BCD4) !important;
    color: #fff !important;
    border: none !important;
    box-shadow: 0 4px 14px rgba(0,188,212,0.45);
}
.nd-widget--donate .thm-btn:hover,
.nd-widget--donate .thm-btn:focus-visible {
    background: #fff !important;
    color: var(--clinique-dark, #0D1B5E) !important;
    box-shadow: 0 6px 20px rgba(0,0,0,0.18);
    transform: translateY(-2px);
}
.nd-widget--donate .thm-btn span { color: inherit; }

/* ── Responsive ── */
@media (max-width: 991.98px) {
    .nd-sidebar { position: static; top: auto; }
    .nd-cover-img { height: 300px; }
}
@media (max-width: 767.98px) {
    .nd-article__footer { flex-direction: column; align-items: flex-start; gap: 20px; }
    .nd-cover-img { height: 220px; }
    .nd-article__title { font-size: 1.5rem; }
}
@media (max-width: 575.98px) {
    .nd-related-card__img { height: 140px; }
    .page-header--slim { min-height: 120px; }
}

/* ── BUG-002 fix: SVG Swiper arrows migrated from WordPress ── */
.nd-article__body > svg { display: none !important; }

/* ═══════════════════════════════════════════════════
   ARTICLE GALLERY SWIPER (.nd-gallery-swiper)
   Used for: consecutive <figure> groups in article body (auto-detected via JS)
             and Filament-managed gallery block
════════════════════════════════════════════════════ */

.nd-gallery-swiper {
    position: relative;
    margin: 2rem 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.10);
}

.nd-gallery-swiper__container,
.nd-gallery-filament__swiper {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 10px;
}

/* Slide image fills container */
.nd-gallery-slide {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    position: relative;
}
.nd-gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 0;
}
.nd-gallery-slide figcaption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px 14px;
    background: linear-gradient(to top, rgba(0,0,0,0.65), transparent);
    color: #fff;
    font-size: 0.78rem;
    font-style: italic;
}

/* Navigation arrows — teal */
.nd-gallery-prev,
.nd-gallery-next {
    --swiper-navigation-color: var(--clique-teal, #00BCD4);
    --swiper-navigation-size: 20px;
    background: rgba(255,255,255,0.92);
    border-radius: 50%;
    width: 40px !important;
    height: 40px !important;
    top: 50%;
    transform: translateY(-50%);
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
    transition: background 0.2s, transform 0.2s;
}
.nd-gallery-prev { left: 10px !important; }
.nd-gallery-next { right: 10px !important; }
.nd-gallery-prev:hover,
.nd-gallery-next:hover {
    background: var(--clique-teal, #00BCD4);
    --swiper-navigation-color: #fff;
    transform: translateY(-50%) scale(1.08);
}
.nd-gallery-prev::after,
.nd-gallery-next::after {
    font-size: 14px !important;
    font-weight: 700;
    color: var(--swiper-navigation-color);
}

/* Pagination dots — dark with teal active */
.nd-gallery-pagination {
    bottom: 10px !important;
}
.nd-gallery-pagination .swiper-pagination-bullet {
    background: rgba(255,255,255,0.6);
    opacity: 1;
    width: 8px;
    height: 8px;
    transition: background 0.2s, transform 0.2s;
}
.nd-gallery-pagination .swiper-pagination-bullet-active {
    background: var(--clique-teal, #00BCD4);
    transform: scale(1.3);
}

/* Responsive: on small screens reduce to 4:3 */
@media (max-width: 575.98px) {
    .nd-gallery-swiper__container,
    .nd-gallery-filament__swiper {
        aspect-ratio: 4 / 3;
    }
    .nd-gallery-prev,
    .nd-gallery-next {
        width: 32px !important;
        height: 32px !important;
    }
    .nd-gallery-prev::after,
    .nd-gallery-next::after { font-size: 11px !important; }
}

/* ── Article image lightbox ────────────────────────────────────────────── */
.nd-article__img-link {
    display: inline-block;
    position: relative;
    cursor: zoom-in;
}

.nd-article__img-link::after {
    content: '\f00e';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #fff;
    background: rgba(13, 27, 94, 0.45);
    opacity: 0;
    transition: opacity .25s ease;
    border-radius: 4px;
}

.nd-article__img-link:hover::after { opacity: 1; }

/* Cover image — block-level wrapper */
.nd-cover-link {
    display: block;
}

/* ═══════════════════════════════════════════════════════════════════════
   EVENTS MODULE — events.blade.php + event-details.blade.php
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Featured Event Hero ──────────────────────────────────────────────── */
.event-featured__inner {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(13,27,94,0.13);
    background: #fff;
}
.event-featured__img {
    position: relative;
    height: 100%;
    min-height: 380px;
    overflow: hidden;
}
.event-featured__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}
.event-featured__img:hover img { transform: scale(1.04); }
.event-featured__img-placeholder {
    width: 100%;
    height: 100%;
    min-height: 380px;
    background: linear-gradient(135deg, var(--clinique-dark), #1565C0);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.3);
    font-size: 5rem;
}
.event-featured__content {
    padding: 40px 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

/* Featured / category badges */
.badge-featured {
    display: inline-flex;
    align-items: center;
    padding: 5px 14px;
    background: var(--clique-teal);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border-radius: 20px;
}
.badge-category {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    background: rgba(13,27,94,0.08);
    color: var(--clinique-dark);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 20px;
}
.event-featured__title {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--clinique-dark);
    line-height: 1.25;
    margin-bottom: 1rem;
}
.event-featured__title a { color: inherit; text-decoration: none; transition: color 0.2s; }
.event-featured__title a:hover { color: var(--clique-teal); }

/* Calendar date badge inside featured hero */
.event-featured__meta { margin-bottom: 1.25rem; }
.event-featured__meta-item {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 10px;
}
.event-featured__cal-badge {
    width: 52px;
    height: 56px;
    background: var(--clinique-dark);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}
.event-featured__cal-badge .cal-day {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}
.event-featured__cal-badge .cal-month {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--clique-teal);
    text-transform: uppercase;
    line-height: 1;
    margin-top: 3px;
}
.event-featured__meta-text { display: flex; flex-direction: column; }
.meta-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--clique-teal);
}
.meta-value { font-size: 0.9rem; color: var(--clinique-dark); font-weight: 600; }
.event-featured__desc { color: #555; font-size: 0.95rem; line-height: 1.65; margin-bottom: 1.25rem; }

/* ── Event Cards Grid ──────────────────────────────────────────────────── */
.event-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(13,27,94,0.07);
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.event-card:hover { box-shadow: 0 10px 40px rgba(13,27,94,0.15); transform: translateY(-4px); }
.event-card__img { position: relative; overflow: hidden; aspect-ratio: 16/9; }
.event-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; }
.event-card:hover .event-card__img img { transform: scale(1.05); }
.event-card__category {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--clinique-dark);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 4px;
}
.event-card__body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.event-card__date-row { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.event-card__date-badge {
    width: 44px;
    height: 48px;
    background: var(--clinique-dark);
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.event-card__date-badge .date-day {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}
.event-card__date-badge .date-month {
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--clique-teal);
    text-transform: uppercase;
    margin-top: 2px;
}
.event-card__time-loc { display: flex; flex-direction: column; gap: 2px; font-size: 0.8rem; color: #777; font-weight: 500; }
.event-card__title { font-family: var(--font-heading); font-size: 1.05rem; font-weight: 700; color: var(--clinique-dark); line-height: 1.35; margin-bottom: 8px; }
.event-card__title a { color: inherit; text-decoration: none; }
.event-card__title a:hover { color: var(--clique-teal); }
.event-card__desc { font-size: 0.875rem; color: #666; line-height: 1.6; flex: 1; margin-bottom: 16px; }
.event-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    border-top: 1px solid rgba(13,27,94,0.07);
    padding-top: 14px;
    margin-top: auto;
}
.event-card__avail { font-size: 0.8rem; font-weight: 600; color: var(--clinique-green); }
.event-card__sold-out { font-size: 0.78rem; font-weight: 700; color: #e53935; text-transform: uppercase; letter-spacing: 0.5px; }
.event-card__free { font-size: 0.8rem; font-weight: 700; color: var(--clique-teal); }
.thm-btn--small { padding: 8px 18px !important; font-size: 0.78rem !important; }

/* ── Empty state ─────────────────────────────────────────────────────── */
.event-empty-state { padding: 60px 20px; }
.event-empty-state__icon {
    width: 80px; height: 80px; border-radius: 50%;
    background: rgba(13,27,94,0.06); display: flex;
    align-items: center; justify-content: center;
    margin: 0 auto; font-size: 2rem; color: var(--clinique-dark); opacity: 0.4;
}

/* ── Event Detail Page ────────────────────────────────────────────────── */
.event-details__hero-img {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 6px 30px rgba(13,27,94,0.12);
}
.event-details__hero-img img { width: 100%; max-height: 460px; object-fit: cover; display: block; }
.event-details__cat-badge {
    position: absolute;
    top: 16px; left: 16px;
    background: var(--clinique-dark); color: #fff;
    font-size: 0.7rem; font-weight: 700; letter-spacing: 1.2px;
    text-transform: uppercase; padding: 5px 12px; border-radius: 4px;
}
.event-details__title { font-family: var(--font-heading); font-size: 2rem; font-weight: 800; color: var(--clinique-dark); line-height: 1.2; }

/* Info bar */
.event-details__info-bar {
    display: flex; flex-wrap: wrap; gap: 24px;
    padding: 28px 30px; background: #f8f9fc;
    border-radius: 10px; border-left: 4px solid var(--clique-teal);
}
.event-details__info-item { display: flex; align-items: center; gap: 14px; flex: 1 1 200px; }

/* Calendar badge in info bar */
.event-details__cal-badge {
    width: 56px; height: 62px;
    background: var(--clinique-dark);
    border-radius: 8px; display: flex; flex-direction: column;
    align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden;
}
.event-details__cal-badge .cal-month-label {
    font-size: 0.62rem; font-weight: 700; letter-spacing: 1.5px;
    color: var(--clique-teal); text-transform: uppercase;
    background: rgba(0,0,0,0.25); width: 100%; text-align: center; padding: 3px 0;
}
.event-details__cal-badge .cal-day-label {
    font-family: var(--font-heading); font-size: 1.7rem; font-weight: 800; color: #fff; line-height: 1; padding: 6px 0 4px;
}
.event-details__icon-badge {
    width: 56px; height: 56px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; font-size: 1.4rem; color: #fff;
}
.info-label { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--clique-teal); margin-bottom: 2px; }
.info-value { font-size: 0.9rem; color: var(--clinique-dark); font-weight: 600; margin-bottom: 0; line-height: 1.3; }

/* Body content */
.event-details__body { font-size: 1rem; color: #4a4a4a; line-height: 1.8; }
.event-details__body h2, .event-details__body h3 { font-family: var(--font-heading); color: var(--clinique-dark); margin-top: 2rem; }
.event-details__body img { max-width: 100%; border-radius: 8px; margin: 1rem 0; }

/* Sidebar */
.event-details__sidebar { position: sticky; top: 100px; }
.event-details__form-card {
    border-radius: 10px; overflow: hidden;
    box-shadow: 0 6px 32px rgba(13,27,94,0.12);
    background: #fff; border: 1px solid rgba(13,27,94,0.06);
}
.event-details__form-header {
    background: var(--clinique-dark); color: #fff;
    padding: 18px 24px; font-family: var(--font-heading);
    font-size: 1rem; font-weight: 700; letter-spacing: 0.5px;
}
.event-details__form-body { padding: 24px; }
.event-details__form-field { margin-bottom: 14px; }
.event-details__form-field label {
    display: block; font-size: 0.78rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.8px;
    color: var(--clinique-dark); margin-bottom: 6px;
}
.event-details__form-field .form-control,
.event-details__form-field .form-select {
    border: 1.5px solid rgba(13,27,94,0.15);
    border-radius: 6px; font-size: 0.875rem; padding: 9px 12px;
    color: var(--clinique-dark); transition: border-color 0.2s, box-shadow 0.2s;
}
.event-details__form-field .form-control:focus,
.event-details__form-field .form-select:focus {
    border-color: var(--clique-teal);
    box-shadow: 0 0 0 3px rgba(0,188,212,0.12); outline: none;
}
.event-details__sold-out-badge {
    display: inline-flex; align-items: center; padding: 8px 20px;
    background: #fdecea; color: #c62828; border-radius: 20px;
    font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px;
}
.event-details__free-card {
    border-radius: 10px; padding: 28px 24px;
    background: rgba(0,188,212,0.06); border: 2px solid var(--clique-teal); text-align: center;
}
.event-details__free-icon { font-size: 2.5rem; color: var(--clique-teal); display: block; margin-bottom: 12px; }
.event-details__share { padding: 20px 24px; background: #f8f9fc; border-radius: 10px; border: 1px solid rgba(13,27,94,0.06); }
.event-details__share-btn {
    display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 8px; color: #fff;
    font-size: 0.95rem; text-decoration: none; transition: opacity 0.2s, transform 0.2s;
}
.event-details__share-btn:hover { opacity: 0.85; transform: translateY(-2px); color: #fff; }

/* Responsive */
@media (max-width: 991.98px) {
    .event-featured__content { padding: 28px 30px; }
    .event-featured__title { font-size: 1.45rem; }
    .event-details__info-bar { gap: 16px; }
    .event-details__sidebar { position: static; top: auto; }
}
@media (max-width: 767.98px) {
    .event-featured__img { min-height: 240px; }
    .event-featured__content { padding: 24px 20px; }
    .event-details__info-item { flex: 1 1 100%; }
    .event-details__title { font-size: 1.5rem; }
}
@media (max-width: 575.98px) {
    .event-card__footer { flex-direction: column; align-items: flex-start; }
    .event-details__info-bar { padding: 18px 16px; gap: 14px; }
}

/* ═══════════════════════════════════════════════════════════════════════
   PAST EVENTS + DETAIL SPACING FIXES (2026-07-01)
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Past Events Section Header ─────────────────────────────────────── */
.past-events__header { text-align: center; }
.past-events__label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 10px;
}
.past-events__label-line {
    flex: 1;
    max-width: 80px;
    height: 1px;
    background: rgba(13,27,94,0.18);
}
.past-events__label-text {
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #888;
}
.past-events__subtitle {
    font-size: 0.9rem;
    color: #999;
    max-width: 480px;
    margin: 0 auto;
}

/* ── Past Event Card variant ─────────────────────────────────────────── */
.event-card--past {
    opacity: 0.82;
    transition: opacity 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}
.event-card--past:hover { opacity: 1; }

/* Grayscale on image, lifted on hover */
.event-card__img-past {
    filter: grayscale(60%) brightness(0.92);
    transition: filter 0.4s ease, transform 0.4s ease;
}
.event-card--past:hover .event-card__img-past {
    filter: grayscale(0%) brightness(1);
    transform: scale(1.04);
}

/* "Terminé" overlay badge on image */
.event-card__past-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 10px 12px;
    pointer-events: none;
}
.event-card__past-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    background: rgba(0,0,0,0.62);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    border-radius: 20px;
    backdrop-filter: blur(4px);
}

/* Past card body — slightly muted */
.event-card__body--past .event-card__title a {
    color: #444;
}
.event-card__body--past .event-card__title a:hover {
    color: var(--clique-teal);
}

/* Date badge for past events — greyed */
.event-card__date-badge--past {
    background: #9e9e9e !important;
}

/* Footer status label */
.event-card__past-status {
    font-size: 0.78rem;
    font-weight: 600;
    color: #9e9e9e;
    display: flex;
    align-items: center;
}

/* Outline thm-btn variant for "Voir le récap" */
.thm-btn--outline {
    background: transparent !important;
    border: 2px solid var(--clinique-dark) !important;
    color: var(--clinique-dark) !important;
}
.thm-btn--outline::before,
.thm-btn--outline::after {
    background: var(--clinique-dark) !important;
}
.thm-btn--outline:hover {
    color: #fff !important;
}
.thm-btn--outline span i { color: inherit !important; }

/* ── Event Detail — increased form padding (override prev values) ─────── */
.event-details__form-body {
    padding: 28px 28px 24px !important;
}
.event-details__form-field {
    margin-bottom: 18px !important;
}
.event-details__form-field label {
    margin-bottom: 8px !important;
}
.event-details__form-field .form-control,
.event-details__form-field .form-select {
    padding: 11px 14px !important;
    font-size: 0.9rem !important;
}
.event-details__form-header {
    padding: 20px 28px !important;
    font-size: 1.05rem !important;
}
/* On mobile, sidebar goes full-width below content — give it breathing room */
@media (max-width: 991.98px) {
    .event-details__form-body { padding: 22px 20px 20px !important; }
    .event-details__form-header { padding: 16px 20px !important; }
    .event-details__form-card {
        margin-top: 40px;
    }
}

/* ── Event Detail — Wide layout wrapper (col-lg-7/5 radical widening) ─── */
.event-details-wrap {
    width: 100%;
    max-width: 1320px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 30px;
    padding-right: 30px;
}
@media (max-width: 575.98px) {
    .event-details-wrap {
        padding-left: 16px;
        padding-right: 16px;
    }
}

/* Ensure form card expands to 100% of its column — no hidden max-width */
.event-details__form-card {
    width: 100% !important;
    max-width: none !important;
}

/* All form inputs/selects fill the column comfortably */
.event-details__form-body .form-control,
.event-details__form-body .form-select {
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Sidebar sticks at top on desktop */
@media (min-width: 992px) {
    .event-details__sidebar {
        position: sticky;
        top: 100px;
    }
}

/* ══════════════════════════════════════════════════════════════════
   VOLUNTEER MODULE
   ══════════════════════════════════════════════════════════════════ */

/* ── Volunteer intro text ─────────────────────────────────────── */
.volunteer-one__intro {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #555;
    max-width: 520px;
}

/* ── Photo wrapper with accent badge ─────────────────────────── */
.volunteer-one__img-wrap {
    position: relative;
    display: inline-block;
    width: 100%;
}
.volunteer-one__img {
    border-radius: 12px;
    box-shadow: 0 16px 48px rgba(13, 27, 94, 0.15);
    width: 100%;
    object-fit: cover;
    max-height: 520px;
}
.volunteer-one__img-badge {
    position: absolute;
    bottom: 24px;
    left: -20px;
    background: var(--clique-teal);
    color: #fff;
    border-radius: 8px;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    box-shadow: 0 6px 20px rgba(0, 188, 212, 0.35);
}
.volunteer-one__img-badge i {
    font-size: 1.2rem;
}
@media (max-width: 991.98px) {
    .volunteer-one__img-badge { display: none; }
    .volunteer-one__img-wrap { margin-top: 48px; }
}

/* ── Type cards (Bénévolat / Stage / Carrière) ────────────────── */
.vol-type-card {
    background: #fff;
    border: 1px solid #e8eef7;
    border-radius: 12px;
    padding: 24px 18px 20px;
    text-align: center;
    height: 100%;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.vol-type-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(13, 27, 94, 0.1);
}
.vol-type-card__icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
}
.vol-type-card__icon i {
    font-size: 1.25rem;
    color: #fff;
}
.vol-type-card__title {
    font-family: var(--font-heading);
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--clinique-dark);
    margin-bottom: 6px;
}
.vol-type-card__text {
    font-size: 0.82rem;
    color: #777;
    margin-bottom: 0;
    line-height: 1.5;
}

/* ── CTA section — jarallax + overlay ────────────────────────── */
.volunteer-cta {
    position: relative;
    padding: 100px 0;
    overflow: hidden;
}
.volunteer-cta__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(13, 27, 94, 0.88) 0%, rgba(0, 188, 212, 0.70) 100%);
    z-index: 0;
}
.volunteer-cta .container {
    position: relative;
    z-index: 1;
}
.volunteer-cta__title {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-family: var(--font-heading);
    font-weight: 800;
    color: #fff;
    margin-bottom: 20px;
    line-height: 1.25;
}
.volunteer-cta__text {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.88);
    line-height: 1.8;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

/* Light variant of thm-btn — white with dark text */
.thm-btn--light {
    background-color: #fff !important;
    color: var(--clinique-dark) !important;
    border-color: #fff !important;
}
.thm-btn--light:hover {
    background-color: var(--clique-teal) !important;
    color: #fff !important;
    border-color: var(--clique-teal) !important;
}

/* ── Volunteer form page ──────────────────────────────────────── */

/* Alert banners */
.vol-alert {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    border-radius: 10px;
    padding: 20px 24px;
}
.vol-alert--success {
    background: #edf7ef;
    border: 1px solid #b3e6bb;
    color: #1b6e26;
}
.vol-alert__icon {
    font-size: 1.6rem;
    flex-shrink: 0;
    margin-top: 2px;
}
.vol-alert strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 1rem;
    margin-bottom: 4px;
}

/* Form card shell */
.vol-form-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 40px rgba(13, 27, 94, 0.08);
    overflow: hidden;
}

/* Card header strip */
.vol-form-card__header {
    background: var(--clinique-dark);
    padding: 28px 36px;
    display: flex;
    align-items: center;
    gap: 20px;
}
.vol-form-card__header-icon {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    background: rgba(255,255,255,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.vol-form-card__header-icon i {
    font-size: 1.4rem;
    color: var(--clique-teal);
}
.vol-form-card__header-title {
    font-size: 1.3rem;
    font-family: var(--font-heading);
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}
.vol-form-card__header-sub {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.65);
    margin-bottom: 0;
    line-height: 1.5;
}

/* Card body */
.vol-form-card__body {
    padding: 40px 36px 44px;
}
@media (max-width: 575.98px) {
    .vol-form-card__header { padding: 20px 20px; flex-direction: column; align-items: flex-start; }
    .vol-form-card__body   { padding: 24px 20px 28px; }
}

/* Field atoms */
.vol-field__label {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.83rem;
    font-weight: 600;
    color: var(--clinique-dark);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 8px;
}
.vol-field__required {
    color: #e53935;
    margin-left: 3px;
}
.vol-field__optional {
    font-weight: 400;
    font-size: 0.78rem;
    text-transform: none;
    color: #888;
    margin-left: 6px;
    letter-spacing: 0;
}
.vol-field__input,
.vol-field__select {
    width: 100%;
    display: block;
    padding: 12px 16px;
    font-size: 0.95rem;
    color: #333;
    background: #f8fafc;
    border: 1px solid #dde3ef;
    border-radius: 8px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.vol-field__input {
    appearance: none;
    -webkit-appearance: none;
}

/* Select natif — NiceSelect exclu via .ignore; le navigateur/OS gère le rendu */
.vol-field__select {
    height: 48px;
    padding-right: 12px;
    cursor: pointer;
    appearance: auto;
    -webkit-appearance: menulist;
}
.vol-field__input:focus,
.vol-field__select:focus {
    outline: none;
    border-color: var(--clique-teal);
    box-shadow: 0 0 0 3px rgba(0, 188, 212, 0.12);
    background: #fff;
}
.vol-field__input.is-invalid,
.vol-field__select.is-invalid {
    border-color: #e53935;
}
.vol-field__input--textarea {
    resize: vertical;
    min-height: 130px;
}
.vol-field__error {
    color: #e53935;
    font-size: 0.8rem;
    margin-top: 5px;
}

/* File input custom design */
.vol-field__file-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.vol-field__file {
    display: none;
}
.vol-field__file-label {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    padding: 9px 18px;
    background: var(--clinique-dark);
    color: #fff;
    border-radius: 6px;
    font-size: 0.85rem;
    font-family: var(--font-heading);
    font-weight: 600;
    transition: background 0.2s;
    white-space: nowrap;
    margin-bottom: 0;
}
.vol-field__file-label:hover {
    background: var(--clique-teal);
}
.vol-field__file-name {
    font-size: 0.85rem;
    color: #666;
    font-style: italic;
}

/* Consent checkbox */
.vol-consent__label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
}
.vol-consent__check {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    accent-color: var(--clique-teal);
}
.vol-consent__text {
    font-size: 0.88rem;
    color: #555;
    line-height: 1.6;
}

/* ═══════════════════════════════════════════════════
   CUSTOM CURSOR — Style médical (bleu clinique + teal)
═══════════════════════════════════════════════════ */

/* Cache le curseur natif sur desktop — les mobiles/touch ne sont pas affectés */
body.custom-cursor,
body.custom-cursor * {
    cursor: none !important;
}

/* Grand cercle — anneau bleu avec croix médicale */
.custom-cursor__cursor {
    width: 36px;
    height: 36px;
    border: 2px solid var(--clinique-dark);
    background: transparent;
    transition: width 250ms ease, height 250ms ease,
                background 250ms ease, border-color 250ms ease,
                opacity 250ms ease;
}

/* Croix médicale — barre horizontale */
.custom-cursor__cursor::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 2px;
    background: var(--clinique-dark);
    transform: translate(-50%, -50%);
    transition: background 250ms ease, opacity 250ms ease;
}

/* Croix médicale — barre verticale */
.custom-cursor__cursor::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2px;
    height: 12px;
    background: var(--clinique-dark);
    transform: translate(-50%, -50%);
    transition: background 250ms ease, opacity 250ms ease;
}

/* Petit cercle central — teal plein */
.custom-cursor__cursor-two {
    width: 7px;
    height: 7px;
    background-color: var(--clique-teal);
    opacity: 0.9;
    transition: width 250ms ease, height 250ms ease, opacity 250ms ease;
}

/* Survol d'un lien — cercle s'agrandit, devient vert médical */
.custom-cursor__hover {
    width: 48px;
    height: 48px;
    background-color: transparent;
    border-color: var(--clinique-green);
    opacity: 1;
}

.custom-cursor__hover::before,
.custom-cursor__hover::after {
    background: var(--clinique-green);
}

/* Clic — cercle se contracte, flash teal */
.custom-cursor__cursor.click {
    width: 22px;
    height: 22px;
    border-color: var(--clique-teal);
    background: rgba(0, 188, 212, 0.15);
}

.custom-cursor__cursor.click::before,
.custom-cursor__cursor.click::after {
    background: var(--clique-teal);
}

/* Petit point au clic */
.custom-cursor__innerhover {
    width: 18px;
    height: 18px;
    opacity: 0.6;
    background-color: var(--clique-teal);
}

/* ── Translation reference panel (admin edit view) ─────────────────── */
.nd-translation-ref {
    background: color-mix(in srgb, var(--admin-border) 30%, transparent);
    border-left: 3px solid var(--clinique-blue);
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 12.5px;
    color: var(--admin-text-muted);
}
.nd-translation-ref__label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: 6px;
    color: var(--clinique-blue);
    opacity: .8;
}
.nd-translation-ref__title {
    font-weight: 600;
    color: var(--admin-text);
    margin-bottom: 4px;
    font-size: 13px;
}
.nd-translation-ref__excerpt {
    font-size: 12px;
    line-height: 1.5;
    opacity: .75;
}

/* ── AI Auto-Translate button ─────────────────────────────────────── */
.admin-btn--ai-translate {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #0D1B5E 0%, #00BCD4 100%);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .02em;
    cursor: pointer;
    transition: opacity .18s, transform .12s, box-shadow .18s;
    box-shadow: 0 2px 8px rgba(0, 188, 212, .25);
}
.admin-btn--ai-translate:hover:not(:disabled) {
    opacity: .9;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0, 188, 212, .4);
}
.admin-btn--ai-translate:active:not(:disabled) {
    transform: translateY(0);
}
.admin-btn--ai-translate:disabled {
    opacity: .55;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}
.admin-btn--ai-translate.admin-btn--ai-success {
    background: linear-gradient(135deg, #2E7D32 0%, #43A047 100%);
    box-shadow: 0 2px 8px rgba(46, 125, 50, .3);
}
.admin-btn--ai-translate.admin-btn--ai-error {
    background: linear-gradient(135deg, #c0392b 0%, #e74c3c 100%);
    box-shadow: 0 2px 8px rgba(192, 57, 43, .3);
}

/* ── Per-block AI translate mini-button ───────────────────────────── */
.bb-ai-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 9px;
    border: 1px solid rgba(99, 102, 241, .35);
    border-radius: 5px;
    background: rgba(99, 102, 241, .08);
    color: #6366f1;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.7;
    cursor: pointer;
    white-space: nowrap;
    transition: background .15s, border-color .15s, color .15s;
}
.bb-ai-btn:hover:not(:disabled) {
    background: rgba(99, 102, 241, .18);
    border-color: rgba(99, 102, 241, .55);
}
.bb-ai-btn:disabled {
    opacity: .55;
    cursor: not-allowed;
}
.bb-ai-btn.admin-btn--ai-success {
    background: rgba(16, 185, 129, .12);
    border-color: rgba(16, 185, 129, .4);
    color: #059669;
}
.bb-ai-btn.admin-btn--ai-error {
    background: rgba(239, 68, 68, .1);
    border-color: rgba(239, 68, 68, .35);
    color: #dc2626;
}

/* ── Gestion des utilisateurs — badges & table ──────────────────────────── */
.role-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 50px;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .03em;
    text-transform: uppercase;
    white-space: nowrap;
}
.role-badge--super  { background: #fde8e8; color: #b91c1c; border: 1px solid #fca5a5; }
.role-badge--editor { background: #dbeafe; color: #1d4ed8; border: 1px solid #93c5fd; }
.role-badge--agent  { background: #dcfce7; color: #15803d; border: 1px solid #86efac; }

.status-badge { display: inline-block; padding: 2px 9px; border-radius: 50px; font-size: .72rem; font-weight: 600; white-space: nowrap; }
.status-badge--active    { background: #dcfce7; color: #15803d; border: 1px solid #86efac; }
.status-badge--suspended { background: #f3f4f6; color: #6b7280; border: 1px solid #d1d5db; text-decoration: line-through; }

.badge-self { background: #fef9c3; color: #92400e; border: 1px solid #fde68a; font-size: .68rem; padding: 1px 7px; border-radius: 50px; font-weight: 600; margin-left: 4px; }

.admin-table__user { display: flex; align-items: center; gap: 10px; }
.admin-table__avatar {
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--clinique-blue, #0D1B5E);
    color: #fff; display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: .85rem; flex-shrink: 0;
}

.admin-form__optional { font-size: .78rem; font-weight: 400; color: #9ca3af; margin-left: 4px; }
