/* ==========================================
   Homepage — Styles specifiques
   ========================================== */

/* ==========================================
   Fond vert pale + formes geometriques
   Couvre header + nav + section evenement
   ========================================== */
body.home {
}

body.home .navbar {
    background-color: transparent;
}

body.home .navbar__menubar {
    /*background-color: rgba(247, 249, 236, 0.92);*/
    /*backdrop-filter: blur(8px);*/
    /*-webkit-backdrop-filter: blur(8px);*/
}

body.home .navbar--scrolled .navbar__menubar {
    background-color: rgba(255, 255, 255, 0.97);
}

body.home #main-content {
    position: relative;
    z-index: 1;
}

body.home .announcement-bar {
    position: relative;
    z-index: 1;
}

/* Les sections apres l'evenement repassent sur fond blanc */
body.home .section:not(.section--next-event):not(.highlight-banner) {
    background-color: var(--color-bg-white);
}

/* Transition douce vers blanc en bas de la zone verte */
body.home .section--next-event::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 7.5rem;
    background: linear-gradient(to bottom, transparent, #fff);
    pointer-events: none;
}

/* ==========================================
   Bandeau "En ce moment"
   Glassmorphism + gradient colloques
   ========================================== */
.highlight-banner {
    background: linear-gradient(135deg, #c62828 0%, #e53935 40%, #b71c1c 100%);
    padding: 0.875rem 0;
    color: #fff;
    position: relative;
    overflow: hidden;
}

/* Motif subtil en arriere-plan */
.highlight-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.highlight-banner__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.highlight-banner__badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-1_5);
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    padding: var(--spacing-xs) 0.875rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    white-space: nowrap;
}

/* Pastille animee pulsante */
.highlight-banner__badge::before {
    content: '';
    width: var(--spacing-1_5);
    height: var(--spacing-1_5);
    border-radius: 50%;
    background: #fff;
    animation: pulse-dot 2s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.7); }
}

.highlight-banner__text {
    font-size: var(--font-size-sm);
    font-weight: 500;
    margin: 0;
    letter-spacing: 0.2px;
}

.highlight-banner__link {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    color: #fff;
    font-size: var(--font-size-xs);
    font-weight: 700;
    text-decoration: none;
    padding: var(--spacing-xs) var(--spacing-md);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: var(--radius-full);
    transition: background-color var(--transition-fast), border-color var(--transition-fast);
}

.highlight-banner__link:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.6);
    color: #fff;
    opacity: 1;
}

.highlight-banner__link::after {
    content: '\2192';
    font-size: 0.9em;
    transition: transform var(--transition-fast);
}

.highlight-banner__link:hover::after {
    transform: translateX(3px);
}

/* ==========================================
   Section "Prochain evenement" — poster + infos
   ========================================== */
/* ------------------------------------------
   Section événement — Poster showcase
   ------------------------------------------ */
.section--next-event {
    background: transparent;
    padding: var(--spacing-xl) 0;
    position: relative;
}

.next-event__badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-1_5);
    background: var(--section-colloques);
    color: #fff;
    font-size: var(--font-size-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: var(--spacing-sm) 1.25rem;
    border-radius: var(--radius-full);
}

/* Showcase layout: poster au-dessus, infos en-dessous */
.next-event__showcase {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
    max-width: 60rem;
    margin: 0 auto;
}

/* Card — conteneur avec header badge, image, footer CTA */
.next-event__card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    background: #fff;
}

.next-event__card-header {
    background: #fff;
    padding: var(--spacing-md) var(--spacing-lg);
}

.next-event__poster {
    display: block;
}

.next-event__poster img {
    width: 100%;
    height: auto;
    display: block;
}

.next-event__card-footer {
    background: #fff;
    padding: var(--spacing-md) var(--spacing-lg);
    display: flex;
    justify-content: flex-end;
}

/* Bouton Découvrir — fond rouge, texte blanc */
.next-event__discover-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-1_5);
    background: var(--section-colloques);
    color: #fff;
    font-size: var(--font-size-sm);
    font-weight: 700;
    text-decoration: none;
    padding: var(--spacing-2_5) var(--spacing-lg);
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
}

.next-event__discover-btn:hover {
    background: #b71c1c;
    transform: translateY(-1px);
    opacity: 1;
}

/* Details */
.next-event__details {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.next-event__title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    color: var(--color-navy);
    line-height: 1.2;
    margin: 0;
}

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

.next-event__title a:hover {
    color: var(--section-colloques);
}

.next-event__theme {
    font-size: var(--font-size-lg);
    font-style: italic;
    color: var(--color-text-light);
    margin: 0;
}

.next-event__meta {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.next-event__meta-item {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    color: var(--color-text);
    font-size: var(--font-size-base);
    font-weight: 500;
}

.next-event__meta-item svg {
    flex-shrink: 0;
    color: var(--section-colloques);
    opacity: 0.7;
}

/* Countdown */
.next-event__countdown {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    background: var(--color-bg-light);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md) var(--spacing-lg);
}

.countdown__unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 3rem;
}

.countdown__number {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--section-colloques);
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.countdown__label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text-light);
    margin-top: var(--spacing-xs);
}

.countdown__sep {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text-muted, #ccc);
    margin-top: -12px;
}

/* CTA buttons */
.next-event__cta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    margin-top: var(--spacing-sm);
}

.btn--event {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    background: var(--section-colloques);
    color: #fff;
    border: 2px solid var(--section-colloques);
    border-radius: var(--radius-full);
    padding: 0.875rem var(--spacing-xl);
    font-weight: 700;
    font-size: var(--font-size-base);
    text-decoration: none;
    transition: all var(--transition-fast);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.btn--event:hover {
    background: #b71c1c;
    border-color: #b71c1c;
    color: #fff;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
    transform: translateY(-2px);
    opacity: 1;
}

.btn--outline-event {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    background: transparent;
    color: var(--color-navy);
    border: 2px solid var(--color-navy);
    border-radius: var(--radius-full);
    padding: 0.875rem var(--spacing-xl);
    font-weight: 600;
    font-size: var(--font-size-base);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.btn--outline-event:hover {
    background: var(--color-navy);
    color: #fff;
    transform: translateY(-2px);
    opacity: 1;
}

.next-event__empty {
    text-align: center;
    color: var(--color-text-light);
    padding: var(--spacing-2xl);
    background: var(--color-bg-light);
    border-radius: var(--radius-lg);
    border: 2px dashed rgba(198, 40, 40, 0.15);
}

/* ==========================================
   Section actualites — grille asymetrique
   ========================================== */
.section--news {
    background: var(--color-bg-white);
    padding-top: var(--spacing-lg);
    padding-bottom: var(--spacing-lg);
}

/* Header : titre + lien "Toutes les actualites" */
.news__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: var(--spacing-xl);
    gap: var(--spacing-md);
}

.news__title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--color-text);
    margin: 0;
    line-height: 1.2;
}

.news__subtitle {
    font-size: var(--font-size-sm);
    color: var(--color-text-light);
    margin: var(--spacing-xs) 0 0;
}

.news__all-link {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--section-ancesu);
    text-decoration: none;
    white-space: nowrap;
    transition: color var(--transition-fast);
}

.news__all-link:hover {
    color: #7a8510;
    opacity: 1;
}

/* Grille : 1 grande carte gauche + 2 petites empilees droite */
.news-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: stretch;
}

.news-grid__side {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.news-grid__side .news-card--horizontal {
    flex: 1;
}

/* Carte principale (grande, image plein format) */
.news-card--featured {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}

.news-card--featured .news-card__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.news-card--featured .news-card__image {
    position: relative;
    flex: 1 1 0;
    min-height: 11.25rem;
    overflow: hidden;
}

.news-card--featured .news-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--transition-base);
}

.news-card--featured:hover .news-card__image img {
    transform: scale(1.03);
}

.news-card--featured .news-card__body {
    padding: var(--spacing-lg);
    background: #fff;
}

.news-card--featured .news-card__title {
    font-size: var(--font-size-lg);
}

.news-card--featured .news-card__excerpt {
    -webkit-line-clamp: 3;
}

/* Tag en overlay sur l'image (carte principale) */
.news-card__tag--overlay {
    position: absolute;
    top: var(--spacing-md);
    left: var(--spacing-md);
    background: var(--section-colloques);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: var(--spacing-xs) 0.75rem;
    border-radius: var(--radius-sm);
}

/* Carte horizontale (image + contenu cote a cote) */
.news-card--horizontal {
    display: grid;
    grid-template-columns: 10rem 1fr;
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.news-card--horizontal:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.news-card__thumb {
    display: block;
    overflow: hidden;
}

.news-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--transition-base);
}

.news-card--horizontal:hover .news-card__thumb img {
    transform: scale(1.05);
}

.news-card__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 7.5rem;
    background: var(--color-bg-light);
    color: var(--color-text-light);
}

.news-card--featured .news-card__placeholder {
    min-height: 12.5rem;
}

.news-card__body {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-1_5);
    padding: var(--spacing-md);
}

/* Tags inline */
.news-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-1_5);
}

.news-card__tag {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    padding: 0.125rem var(--spacing-sm);
    border-radius: var(--radius-sm);
    background: var(--color-bg-light);
    color: var(--color-text-light);
}

/* Premier tag = couleur forte */
.news-card__tags .news-card__tag:first-child {
    background: var(--section-ressources);
    color: #fff;
}

.news-card__title {
    font-size: var(--font-size-sm);
    font-weight: 700;
    line-height: var(--line-height-tight);
    margin: 0;
}

.news-card__title a {
    color: var(--color-text);
    text-decoration: none;
}

.news-card__title a:hover {
    color: var(--section-ancesu);
    opacity: 1;
}

.news-card__excerpt {
    font-size: var(--font-size-xs);
    color: var(--color-text-light);
    margin: 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: var(--spacing-xs);
}

.news-card__date {
    font-size: var(--font-size-xs);
    color: var(--color-text-light);
}

.news-card__read {
    font-size: var(--font-size-xs);
    font-weight: 600;
    color: var(--section-ancesu);
    text-decoration: none;
}

.news-card__read:hover {
    color: #7a8510;
    opacity: 1;
}

/* ==========================================
   Chiffres cles
   ========================================== */
.section--figures {
    background: linear-gradient(135deg, #f8f9fa 0%, #f1f3f5 50%, #e9ecef 100%);
    position: relative;
}

.section--figures .grid--4 {
    gap: 0;
}

.section--figures .key-figure {
    padding: var(--spacing-xl) var(--spacing-lg);
    position: relative;
}

/* Separateur vertical entre les chiffres */
.section--figures .key-figure:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 25%;
    height: 50%;
    width: 1px;
    background: linear-gradient(180deg, transparent, var(--color-border), transparent);
}

.section--figures .key-figure__number {
    font-size: 2.75rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--section-ancesu), #7a8510);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
    margin-bottom: var(--spacing-xs);
}

.section--figures .key-figure__label {
    font-size: var(--font-size-xs);
    color: var(--color-text-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ==========================================
   Section "Les CESU en France" — teaser
   ========================================== */
.section--cesu-teaser {
    background: linear-gradient(135deg, #f0f8ff 0%, #e6f4ff 50%, #daeeff 100%);
    position: relative;
}

.cesu-teaser {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2xl);
    align-items: center;
}

.cesu-teaser__content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.cesu-teaser__text {
    font-size: var(--font-size-base);
    color: var(--color-text-light);
    line-height: 1.7;
    margin: 0;
}

.cesu-teaser__stats {
    display: flex;
    gap: var(--spacing-xl);
    margin-top: var(--spacing-xs);
    padding: var(--spacing-md) 0;
    border-top: 1px solid rgba(0, 150, 212, 0.15);
    border-bottom: 1px solid rgba(0, 150, 212, 0.15);
}

.cesu-teaser__stat {
    text-align: center;
}

.cesu-teaser__stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--section-cesu), #006a96);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.cesu-teaser__stat-label {
    font-size: var(--font-size-xs);
    color: var(--color-text-light);
    margin-top: var(--spacing-xs);
    font-weight: 500;
}

.cesu-teaser__map {
    background: linear-gradient(135deg, #e8f4ff 0%, #d9eeff 50%, #cde5f8 100%);
    border-radius: var(--radius-lg);
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--section-cesu);
    font-size: var(--font-size-sm);
    font-weight: 600;
    border: 2px dashed rgba(0, 150, 212, 0.25);
    position: relative;
    overflow: hidden;
}

/* Decoration carte */
.cesu-teaser__map::before {
    content: '';
    position: absolute;
    width: 7.5rem;
    height: 7.5rem;
    bottom: -20px;
    right: -20px;
    border-radius: 50%;
    border: 2px solid rgba(0, 150, 212, 0.1);
}

/* ==========================================
   Elements decoratifs
   ========================================== */
.section--decorated {
    position: relative;
    overflow: hidden;
}

.section--decorated > .container {
    position: relative;
    z-index: 1;
}

.section__decor {
    position: absolute;
    pointer-events: none;
    z-index: 0;
}

.section__decor--circle {
    width: 12.5rem;
    height: 12.5rem;
    border-radius: 50%;
    border: 2px solid currentColor;
    opacity: 0.05;
    box-shadow: inset 0 0 40px currentColor;
}

.section__decor--circle-sm {
    width: 6.25rem;
    height: 6.25rem;
    border-radius: 50%;
    border: 1.5px solid currentColor;
    opacity: 0.04;
}

.section__decor--dots {
    width: 6.25rem;
    height: 5rem;
    background-image: radial-gradient(circle, currentColor 1.5px, transparent 1.5px);
    background-size: 0.875rem 0.875rem;
    opacity: 0.06;
}

.section__decor--cross {
    width: 3.125rem;
    height: 3.125rem;
    opacity: 0.04;
}

.section__decor--cross::before,
.section__decor--cross::after {
    content: '';
    position: absolute;
    background: currentColor;
    border-radius: 3px;
}

.section__decor--cross::before {
    width: 100%;
    height: 28%;
    top: 36%;
    left: 0;
}

.section__decor--cross::after {
    width: 28%;
    height: 100%;
    left: 36%;
    top: 0;
}

.section__decor--line {
    width: 7.5rem;
    height: 1px;
    background: currentColor;
    opacity: 0.06;
    transform: rotate(-35deg);
}

/* ==========================================
   Responsive — Petit desktop / grand tablet
   ========================================== */
@media (max-width: 64em) {
    .section--next-event {
        padding-top: var(--spacing-xl) 0;
    }
}

/* ==========================================
   Responsive — Tablette
   ========================================== */
@media (max-width: 61.9375em) {
    .next-event__showcase {
        max-width: 100%;
    }

    .countdown__number {
        font-size: 1.4rem;
    }

    .countdown__unit {
        min-width: 2.5rem;
    }

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

    .cesu-teaser {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }

    .cesu-teaser__map {
        max-width: 26.25rem;
        margin: 0 auto;
        width: 100%;
    }

    .section--figures .key-figure__number {
        font-size: 2.25rem;
    }

    .section--figures .key-figure:not(:last-child)::after {
        display: none;
    }
}

/* ==========================================
   Responsive — Mobile
   ========================================== */
@media (max-width: 47.9375em) {
    body.home::before {
        height: 50rem;
        background-size:
            220px 254px,
            140px 162px,
            180px 208px,
            100px 116px,
            130px 150px,
            90px 104px,
            260px 300px;
        background-position:
            calc(100% - 5px) -40px,
            -30px 120px,
            calc(100% - 40px) 380px,
            30px 520px,
            calc(50% + 30px) 80px,
            calc(50% - 60px) 620px,
            calc(100% + 30px) 550px;
    }

    body.home .section--next-event::after {
        height: 5rem;
    }

    .next-event__countdown {
        gap: var(--spacing-xs);
        padding: var(--spacing-sm) var(--spacing-md);
    }

    .countdown__number {
        font-size: 1.2rem;
    }

    .countdown__unit {
        min-width: 2.25rem;
    }

    .next-event__cta {
        flex-direction: column;
    }

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

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

    .news-card--horizontal {
        grid-template-columns: 7.5rem 1fr;
    }

    .section--figures .key-figure {
        padding: var(--spacing-md) var(--spacing-sm);
    }

    .section--figures .key-figure__number {
        font-size: 1.75rem;
    }

    .cesu-teaser__stats {
        justify-content: center;
    }

    .highlight-banner {
        padding: var(--spacing-2_5) 0;
    }

    .highlight-banner__inner {
        flex-direction: column;
        gap: var(--spacing-xs);
    }

    .highlight-banner__link {
        margin-top: 2px;
    }

    .section__decor {
        display: none;
    }
}

@media (max-width: 35.9375em) {
    .section--figures .grid--4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .cesu-teaser__stats {
        gap: var(--spacing-lg);
    }

    .news-card--horizontal {
        grid-template-columns: 6.25rem 1fr;
    }

    .news-card__excerpt {
        display: none;
    }
}

/* ==========================================
   Hero Carrousel — Page d'accueil
   3 layouts : background | image-right | image-left
   ========================================== */
.section--home-hero {
    padding: 0;
    background: transparent;
}

.home-hero {
    position: relative;
    border-radius: var(--radius-xl, 1rem);
    overflow: hidden;
    height: 28rem;
}

/* ── Slide (base) ── */
.home-hero__slide {
    position: absolute;
    inset: 0;
    display: flex;
    background: linear-gradient(135deg, var(--color-navy) 0%, #2a3d72 40%, #1e2d54 100%);
    color: #fff;
}

/* Premier slide visible sert de « réserve de hauteur » */
.home-hero__slide:first-child {
    position: relative;
}

/* ── Transitions ── */
.home-hero__transition-enter {
    transition: opacity 0.6s ease;
}
.home-hero__transition-enter-start {
    opacity: 0;
}
.home-hero__transition-enter-end {
    opacity: 1;
}
.home-hero__transition-leave {
    transition: opacity 0.4s ease;
}
.home-hero__transition-leave-start {
    opacity: 1;
}
.home-hero__transition-leave-end {
    opacity: 0;
}

/* ── Layout : Background (plein fond) ── */
.home-hero__slide--bg .home-hero__inner,
.home-hero__slide--has-image:not(.home-hero__slide--right):not(.home-hero__slide--left) .home-hero__inner {
    position: relative;
    z-index: 1;
}

/* ── Layout : Split (image à droite ou gauche) ── */
.home-hero__slide--right,
.home-hero__slide--left {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--color-navy);
}

.home-hero__slide--left {
    direction: rtl;
}
.home-hero__slide--left > * {
    direction: ltr;
}

.home-hero__slide--right .home-hero__bg,
.home-hero__slide--left .home-hero__bg {
    position: relative;
    inset: auto;
    width: 100%;
    height: 100%;
}

.home-hero__slide--right .home-hero__overlay,
.home-hero__slide--left .home-hero__overlay {
    display: none;
}

.home-hero__slide--right .home-hero__inner,
.home-hero__slide--left .home-hero__inner {
    padding: var(--spacing-xl) var(--spacing-2xl);
}

/* ── Image de fond ── */
.home-hero__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ── Overlay dégradé ── */
.home-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(30, 45, 84, 0.88) 0%,
        rgba(30, 45, 84, 0.65) 50%,
        rgba(30, 45, 84, 0.45) 100%
    );
    pointer-events: none;
}

/* ── Inner content ── */
.home-hero__inner {
    position: relative;
    z-index: 1;
    padding: var(--spacing-xl) var(--spacing-2xl);
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: var(--spacing-sm);
    height: 100%;
    box-sizing: border-box;
}

/* ── Badge ── */
.home-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    padding: var(--spacing-xs) var(--spacing-md);
    font-size: var(--font-size-2xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #fff;
    width: fit-content;
    margin-bottom: auto;
}

/* ── Title ── */
.home-hero__title {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 800;
    line-height: 1.15;
    margin: 0;
    max-width: 36rem;
}

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

.home-hero__title a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ── Subtitle ── */
.home-hero__subtitle {
    font-size: var(--font-size-lg);
    font-style: italic;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
}

/* ── Meta (date, location) ── */
.home-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm) var(--spacing-lg);
    font-size: var(--font-size-sm);
}

.home-hero__meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.85);
}

.home-hero__meta-item svg {
    flex-shrink: 0;
    opacity: 0.7;
}

/* ── CTA button ── */
.home-hero__cta {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-sm);
    padding: 0.75rem 1.5rem;
    font-size: var(--font-size-sm);
    font-weight: 700;
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-full);
    text-decoration: none;
    width: fit-content;
    transition: background var(--transition-fast), border-color var(--transition-fast);
}

.home-hero__cta:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
    opacity: 1;
}

/* ── Section color variants ── */
.home-hero__slide--colloques {
    background: var(--section-colloques, #c62828);
}
.home-hero__slide--colloques .home-hero__overlay {
    background: linear-gradient(to top, rgba(140, 20, 20, 0.85) 0%, rgba(140, 20, 20, 0.55) 50%, rgba(140, 20, 20, 0.35) 100%);
}

.home-hero__slide--ancesu {
    background: var(--section-ancesu, #aebd15);
}
.home-hero__slide--ancesu .home-hero__overlay {
    background: linear-gradient(to top, rgba(100, 120, 10, 0.85) 0%, rgba(100, 120, 10, 0.6) 50%, rgba(100, 120, 10, 0.4) 100%);
}

.home-hero__slide--ressources {
    background: var(--section-ressources, #344b8d);
}
.home-hero__slide--ressources .home-hero__overlay {
    background: linear-gradient(to top, rgba(52, 75, 141, 0.85) 0%, rgba(52, 75, 141, 0.6) 50%, rgba(52, 75, 141, 0.4) 100%);
}

.home-hero__slide--formations {
    background: var(--section-formations, #d4a017);
}
.home-hero__slide--formations .home-hero__overlay {
    background: linear-gradient(to top, rgba(180, 120, 20, 0.85) 0%, rgba(180, 120, 20, 0.6) 50%, rgba(180, 120, 20, 0.4) 100%);
}

.home-hero__slide--cesu {
    background: var(--section-cesu, #006ea0);
}
.home-hero__slide--cesu .home-hero__overlay {
    background: linear-gradient(to top, rgba(0, 110, 160, 0.85) 0%, rgba(0, 110, 160, 0.6) 50%, rgba(0, 110, 160, 0.4) 100%);
}

/* ── Actions (CTA buttons) ── */
.home-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-xs);
}

.home-hero__cta--primary {
    background: #fff;
    color: var(--color-navy);
    border-color: #fff;
    font-weight: 700;
}

.home-hero__cta--primary:hover {
    background: rgba(255, 255, 255, 0.9);
    color: var(--color-navy);
    border-color: rgba(255, 255, 255, 0.9);
}

/* ── Minimal inner (image-only slide, just badge) ── */
.home-hero__inner--minimal {
    justify-content: flex-start;
}

/* ── Navigation dots ── */
.home-hero__nav {
    position: absolute;
    bottom: var(--spacing-lg);
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    gap: var(--spacing-sm);
}

.home-hero__dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}

.home-hero__dot--active {
    background: #fff;
    width: 1.5rem;
    border-radius: 0.25rem;
}

/* ==========================================
   Hero Carrousel — Responsive
   ========================================== */
@media (max-width: 61.9375em) {
    .home-hero__inner {
        padding: var(--spacing-lg) var(--spacing-xl);
    }

    .home-hero {
        height: 24rem;
    }

    /* Split → empilé sur tablette */
    .home-hero__slide--right,
    .home-hero__slide--left {
        grid-template-columns: 1fr;
    }

    .home-hero__slide--right .home-hero__bg,
    .home-hero__slide--left .home-hero__bg {
        position: absolute;
        inset: 0;
    }

    .home-hero__slide--right .home-hero__overlay,
    .home-hero__slide--left .home-hero__overlay {
        display: block;
    }

    .home-hero__slide--left {
        direction: ltr;
    }
}

@media (max-width: 47.9375em) {
    .home-hero {
        height: 20rem;
        border-radius: var(--radius-lg, 0.75rem);
    }

    .home-hero__inner {
        padding: var(--spacing-md) var(--spacing-lg);
    }

    .home-hero__title {
        font-size: 1.375rem;
    }

    .home-hero__subtitle {
        font-size: var(--font-size-base);
    }

    .home-hero__nav {
        bottom: var(--spacing-md);
    }
}

/* ==========================================
   Section Ressources — Homepage
   ========================================== */
.section--home-ressources {
    padding: var(--spacing-2xl) 0;
}

.home-ressources__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.home-ressources__title {
    font-size: var(--font-size-2xl, 1.75rem);
    font-weight: 800;
    color: var(--color-text);
    margin: 0;
    line-height: 1.2;
}

.home-ressources__subtitle {
    font-size: var(--font-size-sm);
    color: var(--color-text-light, #64748b);
    margin: 0.25rem 0 0;
}

.home-ressources__all-link {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--color-navy, #344b8d);
    text-decoration: none;
    white-space: nowrap;
    transition: color var(--transition-fast);
}

.home-ressources__all-link:hover {
    color: var(--section-ancesu, #aebd15);
}

/* Grid : 5 colonnes desktop (cards compactes) */
.home-ressources__grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--spacing-md);
}

/* ── Resource card (portrait, couverture A4) ── */
.res-card {
    background: #fff;
    border: 1px solid var(--color-border, #e2e8f0);
    border-radius: var(--radius-md, 0.5rem);
    overflow: hidden;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.res-card:hover {
    border-color: var(--color-navy, #344b8d);
    box-shadow: 0 4px 16px rgba(52, 75, 141, 0.1);
}

.res-card__link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

/* Thumbnail : conteneur paysage, image A4 portrait centrée dedans */
.res-card__thumb {
    position: relative;
    aspect-ratio: 4 / 3;
    background: linear-gradient(135deg, #f1f5f9 0%, #e8ecf1 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 0.5rem 0;
}

.res-card__thumb img {
    display: block;
    height: 100%;
    width: auto;
    max-width: 100%;
    aspect-ratio: 210 / 297;
    object-fit: contain;
    object-position: center center;
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease;
}

.res-card:hover .res-card__thumb img {
    transform: scale(1.02);
}

/* Placeholder quand pas d'image */
.res-card__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    aspect-ratio: 210 / 297;
    background: #fff;
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.04);
    color: var(--section-ressources, #344b8d);
}

.res-card__placeholder svg {
    width: 36px;
    height: 36px;
    opacity: 0.18;
}

/* Badge format (PDF/Lien) en bas de la vignette */
.res-card__badge {
    position: absolute;
    bottom: 0.375rem;
    right: 0.375rem;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 0.5625rem;
    font-weight: 700;
    padding: 0.15rem 0.4rem;
    border-radius: 2px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.res-card__badge--file {
    background: #f0fdf4;
    color: #15803d;
    box-shadow: 0 0 0 1px rgba(21, 128, 61, 0.15);
}

.res-card__badge--link {
    background: #eff6ff;
    color: var(--color-navy, #344b8d);
    box-shadow: 0 0 0 1px rgba(52, 75, 141, 0.15);
}

/* Body : contenu sous l'image */
.res-card__body {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.5rem 0.625rem 0.5rem;
    flex: 1;
}

/* Type label */
.res-card__type {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--section-ressources, #344b8d);
}

.res-card__type-icon {
    display: flex;
    align-items: center;
    opacity: 0.55;
}

.res-card__type-icon svg {
    width: 12px;
    height: 12px;
}

.res-card__type-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Title */
.res-card__title {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-text);
    margin: 0;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.res-card:hover .res-card__title {
    color: var(--color-navy, #344b8d);
}

/* Date */
.res-card__date {
    font-size: 0.6875rem;
    color: var(--color-text-light, #64748b);
    margin-top: auto;
    padding-top: 0.125rem;
}

/* Lock icon for restricted resources */
.res-card__lock {
    display: inline-flex;
    align-items: center;
    margin-left: auto;
    color: #b45309;
    opacity: 0.7;
}

/* Restricted card: subtle amber border */
.res-card--restricted {
    border-color: rgba(180, 83, 9, 0.2);
}

.res-card--restricted .res-card__thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(180, 83, 9, 0.03);
    pointer-events: none;
}

/* ── Responsive ── */
@media (max-width: 61.9375em) {
    .home-ressources__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 47.9375em) {
    .home-ressources__header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-sm);
    }

    .home-ressources__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-sm);
    }

    .res-card__thumb {
        padding: 0.5rem;
    }

    .res-card__body {
        padding: 0.375rem 0.5rem 0.5rem;
    }

    .res-card__title {
        font-size: 0.6875rem;
    }
}


/* ==========================================
   Section Agenda — Homepage
   ========================================== */
.section--home-agenda {
    padding: var(--spacing-2xl) 0;
}

.home-agenda__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.home-agenda__title {
    font-size: var(--font-size-2xl, 1.75rem);
    font-weight: 800;
    color: var(--color-text);
    margin: 0;
    line-height: 1.2;
}

.home-agenda__subtitle {
    font-size: var(--font-size-sm);
    color: var(--color-text-light, #64748b);
    margin: 0.25rem 0 0;
}

.home-agenda__all-link {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--color-navy, #344b8d);
    text-decoration: none;
    white-space: nowrap;
    transition: color var(--transition-fast);
}

.home-agenda__all-link:hover {
    color: var(--section-ancesu, #aebd15);
}

/* Grid : 3 colonnes desktop */
.home-agenda__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
}

/* ── Agenda card (compact horizontal) ── */
.agenda-card {
    background: #fff;
    border: 1px solid var(--color-border, #e2e8f0);
    border-radius: var(--radius-md, 0.5rem);
    overflow: hidden;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.agenda-card:hover {
    border-color: var(--color-navy, #344b8d);
    box-shadow: 0 2px 12px rgba(52, 75, 141, 0.08);
}

.agenda-card__link {
    display: flex;
    align-items: stretch;
    gap: 0;
    text-decoration: none;
    color: inherit;
    padding: 0;
    height: 100%;
}

/* Bloc date à gauche — prend toute la hauteur */
.agenda-card__date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 4.5rem;
    flex-shrink: 0;
    background: var(--color-navy, #344b8d);
    color: #fff;
    padding: 0.625rem 0.5rem;
}

.agenda-card__day {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1;
}

.agenda-card__month {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    opacity: 0.85;
    margin-top: 2px;
}

.agenda-card__year {
    font-size: 0.625rem;
    font-weight: 600;
    opacity: 0.6;
    margin-top: 1px;
}

/* Body */
.agenda-card__body {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.625rem 0.75rem;
    min-width: 0;
    flex: 1;
}

.agenda-card__type {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--section-ancesu, #aebd15);
}

.agenda-card__title {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--color-text);
    margin: 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.agenda-card:hover .agenda-card__title {
    color: var(--color-navy, #344b8d);
}

.agenda-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 0.75rem;
    font-size: 0.75rem;
    color: var(--color-text-light, #64748b);
}

.agenda-card__location,
.agenda-card__organizer {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.agenda-card__location svg {
    opacity: 0.5;
    flex-shrink: 0;
}

.agenda-card__location--online {
    color: var(--section-ancesu, #aebd15);
    font-weight: 600;
}

/* Flèche */
.agenda-card__arrow {
    flex-shrink: 0;
    margin-right: 0.75rem;
    opacity: 0;
    color: var(--color-navy, #344b8d);
    transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.agenda-card:hover .agenda-card__arrow {
    opacity: 0.5;
    transform: translateX(2px);
}

/* ── Responsive agenda ── */
@media (max-width: 61.9375em) {
    .home-agenda__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 47.9375em) {
    .home-agenda__header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-sm);
    }

    .home-agenda__grid {
        grid-template-columns: 1fr;
    }

    .agenda-card__date {
        width: 3.75rem;
        min-height: 3.75rem;
    }

    .agenda-card__day {
        font-size: 1.25rem;
    }
}


/* ==========================================
   Section Partenaires & Soutiens — Homepage
   ========================================== */
.section--home-partenaires {
    padding: var(--spacing-xl) 0 var(--spacing-xl);
    /*border-top: 1px solid var(--color-border, #e2e8f0);*/
}

.home-partenaires__group {
    text-align: center;
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--color-border, #e2e8f0);
}

.home-partenaires__group + .home-partenaires__group {
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--color-border, #e2e8f0);
}

.home-partenaires__label {
    font-size: var(--font-size-xs, 0.75rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text-light, #64748b);
    margin: 0 0 var(--spacing-md);
}

.home-partenaires__logos {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--spacing-lg) var(--spacing-2xl);
}

.home-partenaires__item {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: opacity var(--transition-fast);
}

a.home-partenaires__item:hover {
    opacity: 0.7;
}

.home-partenaires__logo {
    max-height: 3rem;
    max-width: 10rem;
    width: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.65;
    transition: filter var(--transition-fast), opacity var(--transition-fast);
}

.home-partenaires__item:hover .home-partenaires__logo {
    filter: grayscale(0%);
    opacity: 1;
}

.home-partenaires__name {
    font-size: var(--font-size-sm, 0.875rem);
    font-weight: 600;
    color: var(--color-text-light, #64748b);
    transition: color var(--transition-fast);
}

a.home-partenaires__item:hover .home-partenaires__name {
    color: var(--color-navy, #344b8d);
}

/* Soutiens : logos plus petits */
.home-partenaires__group--soutiens .home-partenaires__logo {
    max-height: 2.25rem;
}

/* ── Responsive partenaires ── */
@media (max-width: 47.9375em) {
    .home-partenaires__logos {
        gap: var(--spacing-md) var(--spacing-lg);
    }

    .home-partenaires__logo {
        max-height: 2.5rem;
        max-width: 7rem;
    }

    .home-partenaires__group--soutiens .home-partenaires__logo {
        max-height: 1.75rem;
    }
}
