﻿/* ============================================================
   Harmonisation globale 2026 — rythme calme et héros allégés
   Chargé en dernier pour unifier les pages sans neutraliser leurs fonctions.
   ============================================================ */

main {
    overflow-x: clip;
}

main .section {
    padding-block: clamp(3.25rem, 7vw, 5.5rem);
}

main .section-title {
    max-width: 24ch;
    margin-inline: auto;
    font-size: clamp(1.9rem, 3.8vw, 2.85rem);
    line-height: 1.12;
    text-wrap: balance;
}

main .section-description {
    max-width: 44rem;
    margin-inline: auto;
    font-size: clamp(1rem, 1.4vw, 1.125rem);
    line-height: 1.72;
    text-wrap: pretty;
}

main .section-subtitle {
    margin-bottom: 0.7rem;
    letter-spacing: 0.11em;
}

/* Héros éditoriaux : une seule colonne, une action forte, une hauteur mesurée. */
.hero--streamlined {
    min-height: min(68svh, 40rem) !important;
    justify-content: center !important;
    padding-top: calc(72px + var(--top-bar-height, 0px) + 1.25rem) !important;
    padding-bottom: 2.5rem !important;
    overflow: hidden !important;
}

.hero--streamlined .gradient-overlay {
    background: linear-gradient(105deg, rgba(7, 45, 47, 0.94) 0%, rgba(10, 69, 72, 0.82) 48%, rgba(10, 69, 72, 0.38) 100%);
}

.hero--streamlined .hero-poster-overlay {
    object-position: center 38%;
}

.hero--streamlined .hero-container,
.hero--streamlined .hero-container--single {
    grid-template-columns: minmax(0, 48rem) !important;
    justify-content: flex-start !important;
    align-items: center !important;
    gap: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.hero--streamlined .hero-content {
    width: 100%;
    max-width: 48rem !important;
}

.hero--streamlined .breadcrumb {
    margin-bottom: clamp(1rem, 2vw, 1.4rem);
    font-size: 0.9rem;
}

.hero--streamlined .hero-title {
    max-width: 18ch !important;
    margin: 0 0 clamp(0.9rem, 1.8vw, 1.2rem);
    color: #fff;
    font-size: clamp(2.3rem, 4.4vw, 3.75rem);
    line-height: 1.06;
    letter-spacing: -0.015em;
    text-wrap: balance;
}

.hero--streamlined .hero-description {
    max-width: 46rem !important;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(1rem, 1.35vw, 1.0625rem);
    line-height: 1.62;
    text-wrap: pretty;
}

.hero--streamlined .hero-ctas {
    display: flex;
    flex-direction: row !important;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.65rem 1.15rem;
    width: 100% !important;
    max-width: none !important;
    margin: clamp(1.35rem, 2.5vw, 1.75rem) 0 0 !important;
}

@media (min-width: 769px) {
    .hero--streamlined .hero-ctas .btn {
        flex: 0 0 auto !important;
        width: auto !important;
    }
}

.hero--streamlined .hero-ctas .btn-primary {
    min-height: 3.25rem;
    padding: 0.85rem 1.45rem;
}

.hero--streamlined .hero-secondary-action,
.page-home .page-home-hero-ctas .hero-secondary-action {
    min-height: 44px;
    padding: 0.65rem 0.2rem !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: rgba(255, 255, 255, 0.9) !important;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.42);
    text-underline-offset: 0.3em;
}

.hero--streamlined .hero-secondary-action:hover,
.hero--streamlined .hero-secondary-action:focus-visible,
.page-home .page-home-hero-ctas .hero-secondary-action:hover,
.page-home .page-home-hero-ctas .hero-secondary-action:focus-visible {
    color: #fff !important;
    text-decoration-color: var(--color-accent, #e8b923);
    transform: none !important;
}

.hero--streamlined .scroll-indicator {
    display: none !important;
}

/* Les repères utiles quittent l’image et deviennent un bandeau lisible. */
.hero-support {
    position: relative;
    z-index: 3;
    padding-block: clamp(1.25rem, 3vw, 2rem);
    border-bottom: 1px solid rgba(10, 69, 72, 0.12);
    background: #fff;
    color: var(--color-text-main, #203334);
}

.hero-support__inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
    align-items: center;
    gap: clamp(1rem, 3vw, 2rem);
}

/* Quand un bandeau "extra" (hero-values, adhesion-hero-facts…) précède les
   stats/l'encart pratique, ne pas l'étirer sur 50% de la ligne : ça créait
   un grand vide entre lui et le bloc suivant. Il se cale sur son propre
   contenu, l'autre bloc récupère l'espace restant (comportement inchangé
   quand il n'y a qu'un seul bloc, ex. petite-enfance). */
.hero-support__inner:has(.hero-support__extra) {
    grid-template-columns: minmax(min(100%, 18rem), max-content) minmax(min(100%, 18rem), 1fr);
    justify-content: start;
}

.hero-support__extra,
.hero-support__panel {
    min-width: 0;
}

.hero-support .fade-up,
.hero-support .fade-in {
    opacity: 1;
    transform: none;
}

/* Titre optionnel au-dessus d'un groupe de puces (hero-values) dans le
   bandeau clair du hero — même recette sur toutes les pages pôle (ex.
   "Nos 4 piliers éducatifs", "Nos 4 repères éducatifs"). */
.hero-support__extra-title {
    margin: 0 0 0.6rem;
    color: var(--color-text-main, #203334);
    font-family: var(--font-heading, inherit);
    font-weight: 800;
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.hero-support .hero-values,
.hero-support .adhesion-hero-facts {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1.4rem;
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none;
}

.hero-support .hero-values > *,
.hero-support .adhesion-hero-facts > li {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: var(--color-text-main, #203334) !important;
}

.hero-support .hero-values i,
.hero-support .adhesion-hero-facts i {
    color: var(--color-secondary, #d36b42) !important;
}

.hero-support .hero-stats,
.hero-support .hero-support__stats {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr));
    align-items: stretch;
    gap: 0.8rem;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
}

.hero-support .stat-divider {
    display: none !important;
}

.hero-support .stat-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
    padding: 0.7rem 0;
}

.hero-support .stat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 2.5rem;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    background: rgba(211, 107, 66, 0.1);
    color: var(--color-secondary, #d36b42) !important;
}

.hero-support .stat-content {
    min-width: 0;
}

.hero-support .stat-number,
.hero-support .stat-plus,
.hero-support .stat-suffix {
    color: var(--color-primary, #0a4548) !important;
    text-shadow: none !important;
}

.hero-support .stat-label {
    color: var(--color-text-muted, #526566) !important;
}

.hero-support .mul-hero__panel {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: var(--color-text-main, #203334) !important;
    backdrop-filter: none !important;
}

/* Encart pratique (hero-practical-panel) traité comme une vraie carte —
   bordure fine + ombre légère + fond blanc — plutôt qu'un bloc transparent
   qui se fondait dans la page. Recette alignée sur .chiffre-item
   (lecentre.css) pour rester cohérent avec le reste du site. */
.hero-support .hero-practical-panel {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: clamp(1.35rem, 2.6vw, 1.85rem) clamp(1.35rem, 2.6vw, 1.75rem) !important;
    border: 1px solid rgba(10, 69, 72, 0.08) !important;
    border-radius: var(--radius-lg, 1.5rem);
    background: var(--color-surface, #fff) !important;
    box-shadow: var(--shadow-sm, 0 2px 8px rgba(16, 42, 44, 0.06)) !important;
    color: var(--color-text-main, #203334) !important;
    backdrop-filter: none !important;
    transition: box-shadow var(--transition-normal, 0.3s ease), border-color var(--transition-normal, 0.3s ease);
}

.hero-support .hero-practical-panel:hover {
    box-shadow: var(--shadow-md, 0 8px 24px rgba(16, 42, 44, 0.1)) !important;
    border-color: rgba(10, 69, 72, 0.14) !important;
}

.hero-support .hero-practical-panel__title,
.hero-support .mul-hero__panel h2,
.hero-support .mul-hero__panel h3 {
    color: var(--color-primary, #0a4548) !important;
}

/* global-ui.css fixe .hero-practical-panel__item strong en blanc (#fff) pour le
   panneau glass sur fond sombre du hero. Dans ce contexte clair (hero-support),
   ce blanc reste blanc sur fond clair et rend les libellés (Accueil, Capacité,
   Tarifs, Téléphone…) invisibles : on le recolore explicitement ici. */
.hero-support .hero-practical-panel__item strong {
    color: var(--color-primary, #0a4548) !important;
    font-size: 0.9rem;
}

/* Public visé — passe d'un simple texte gris à une pastille, pour donner
   plus de repère visuel dès l'ouverture de la carte. */
.hero-support .hero-practical-panel__audience {
    display: inline-flex;
    align-items: center;
    margin-top: 0.35rem;
    padding: 0.3rem 0.8rem;
    border-radius: var(--radius-full, 9999px);
    background: rgba(10, 69, 72, 0.06);
    color: var(--color-primary, #0a4548) !important;
    font-weight: 600;
    font-size: 0.82rem;
}

.hero-support .hero-practical-panel__list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 11.5rem), 11.5rem));
    justify-content: start;
    gap: 1.1rem 1.5rem;
    margin-top: 1.1rem;
    padding-top: 1.1rem;
    border-top: 1px solid rgba(10, 69, 72, 0.08);
}

.hero-support .hero-practical-panel__item {
    align-items: center;
}

.hero-support .hero-practical-panel__item,
.hero-support .hero-practical-panel__item a,
.hero-support .hero-practical-panel__note,
.hero-support .mul-hero__panel,
.hero-support .mul-hero__panel p,
.hero-support .mul-hero__panel li {
    color: var(--color-text-muted, #526566) !important;
}

/* Icône transformée en badge arrondi — même recette que .stat-icon /
   .chiffre-icon plus haut dans le hero, pour un rendu carte cohérent. */
.hero-support .hero-practical-panel__item i,
.hero-support .mul-hero__panel i {
    color: var(--color-secondary, #d36b42) !important;
}

.hero-support .hero-practical-panel__item i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.35rem;
    height: 2.35rem;
    flex: 0 0 2.35rem;
    margin-top: 0;
    border-radius: 0.75rem;
    background: rgba(211, 107, 66, 0.1);
    font-size: 1rem;
}

.hero-support .hero-practical-panel__note {
    margin-top: 1.1rem;
    font-size: 0.85rem;
    font-style: italic;
}

.hero-support .hero-practical-panel__cta {
    margin-top: 1rem;
}

.hero-support .hero-practical-panel__cta .btn {
    padding: 0.6rem 1.3rem;
    border: 1.5px solid var(--color-primary, #0a4548);
    border-radius: var(--radius-full, 9999px);
    background: transparent;
    box-shadow: none;
    color: var(--color-primary, #0a4548);
    font-weight: 600;
    text-decoration: none;
    transition: background var(--transition-fast, 0.2s ease), color var(--transition-fast, 0.2s ease);
}

.hero-support .hero-practical-panel__cta .btn:hover,
.hero-support .hero-practical-panel__cta .btn:focus-visible {
    background: var(--color-primary, #0a4548);
    color: #fff !important;
}

/* Accueil : le héros est aujourd'hui la seule section de la page (avant le
   footer) → il occupe toute la hauteur de l'écran, sans surtitre ni bandeau
   de logos superposé. */
.page-home .hero {
    min-height: 100vh !important;
    min-height: 100svh !important;
    padding: 0 !important;
    background: var(--color-primary-dark, #073638) !important;
    overflow: hidden !important;
}

.page-home .hero-slider {
    margin-top: 0 !important;
    min-height: 100%;
}

.page-home .hero-slider .hero-slide {
    min-height: 100vh !important;
    min-height: 100svh !important;
    padding: calc(90px + var(--top-bar-height, 0px)) 0 clamp(5rem, 9vw, 7rem) !important;
}

.page-home .hero-slide__kicker {
    display: none !important;
}

/* Titre à l'horizontale, pleine largeur, centré : le héros étant seul sur la
   page, on abandonne la mise en page à deux colonnes au profit d'un bloc
   centré unique. */
.page-home .hero-container {
    grid-template-columns: minmax(0, 1fr) !important;
    justify-content: center !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.page-home .hero-content {
    max-width: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-inline: auto;
}

.page-home .hero-title {
    max-width: none;
    width: 100%;
    /* Les CTA ont été retirés : le titre reprend l'espace libéré et gagne
       en présence. */
    font-size: clamp(2.75rem, 6.5vw, 5.5rem);
    line-height: 1.08;
    text-align: center;
}

.page-home .hero-description {
    max-width: 46rem;
    margin-inline: auto;
    text-align: center;
    font-size: clamp(1rem, 1.5vw, 1.125rem);
    line-height: 1.68;
}

.page-home .page-home-hero-ctas {
    align-items: center;
    justify-content: center;
    gap: 0.65rem 1.15rem;
    width: auto;
    margin: clamp(1.5rem, 3vw, 2rem) auto 0 !important;
}

.page-home .page-home-hero-ctas .btn-primary {
    min-height: 3.25rem;
    padding: 0.85rem 1.45rem;
}

.home-partners-support {
    padding-block: clamp(1.1rem, 2.5vw, 1.65rem);
    border-bottom: 1px solid rgba(10, 69, 72, 0.12);
    background: #fff;
}

.home-partners-support__inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 1rem 2rem;
}

.home-partners-support__title {
    margin: 0;
    color: var(--color-primary, #0a4548);
    font-family: var(--font-heading, sans-serif);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    white-space: nowrap;
}

.home-partners-support__list {
    display: flex;
    align-items: center;
    gap: clamp(1rem, 3vw, 2rem);
    margin: 0;
    padding: 0.25rem 0;
    overflow-x: auto;
    scrollbar-width: thin;
    list-style: none;
}

.home-partners-support__link {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    min-height: 44px;
    color: var(--color-text-muted, #526566);
}

.home-partners-support__link img {
    display: block;
    width: auto;
    height: clamp(2.25rem, 4vw, 3rem);
    max-width: 8rem;
    object-fit: contain;
}

/* Vie de quartier et rapport : mêmes proportions que le modèle commun. */
.page-vie-de-quartier .hero--streamlined .hero-poster-overlay {
    object-position: center 45%;
}

.page-rapport-activite .ra-hero {
    min-height: min(62svh, 36rem);
    display: flex;
    align-items: center;
    padding: calc(90px + var(--top-bar-height, 0px) + clamp(1.5rem, 4vh, 2.5rem)) 0 clamp(2.75rem, 6vw, 4.5rem);
    background: linear-gradient(115deg, #073638 0%, #0a4548 72%, #176769 100%);
}

.page-rapport-activite .ra-hero__inner {
    grid-template-columns: minmax(0, 46rem);
    justify-content: start;
}

.page-rapport-activite .ra-hero__year-badge {
    margin-bottom: 1rem;
    padding: 0;
    border: 0;
    background: transparent;
    letter-spacing: 0.12em;
}

.page-rapport-activite .ra-hero__title {
    margin-bottom: 1rem;
    font-size: clamp(2.35rem, 5vw, 4rem);
    line-height: 1.06;
}

.page-rapport-activite .ra-hero__subtitle {
    margin-bottom: 0.65rem;
}

.page-rapport-activite .ra-hero__desc {
    max-width: 42rem;
    margin-bottom: 0;
    font-size: clamp(1rem, 1.5vw, 1.125rem);
    line-height: 1.68;
}

.page-rapport-activite .ra-hero__actions {
    align-items: center;
    margin-top: 1.65rem;
}

.page-rapport-activite .ra-hero__actions .btn-outline-primary {
    padding-inline: 0.2rem;
    border: 0;
    background: transparent;
    box-shadow: none;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: underline;
    text-underline-offset: 0.25em;
}

.ra-hero-support {
    padding-block: clamp(1.25rem, 3vw, 2rem);
    border-bottom: 1px solid rgba(10, 69, 72, 0.12);
    background: #fff;
}

.ra-hero-support .ra-hero__kpis {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr));
    gap: 0;
}

.ra-hero-support .ra-kpi-card {
    padding: 0.75rem 1rem;
    border: 0;
    border-left: 1px solid rgba(10, 69, 72, 0.12);
    border-radius: 0;
    background: transparent;
    backdrop-filter: none;
}

.ra-hero-support .ra-kpi-card:first-child {
    border-left: 0;
}

.ra-hero-support .ra-kpi-card__num {
    color: var(--color-primary, #0a4548);
}

.ra-hero-support .ra-kpi-card__label,
.ra-hero-support .ra-kpi-note {
    color: var(--color-text-muted, #526566);
}

.ra-hero-support .ra-kpi-note {
    margin: 0.85rem 0 0;
}

@media (max-width: 768px) {
    main .section {
        padding-block: 3.25rem;
    }

    .hero--streamlined {
        min-height: auto !important;
        padding-top: calc(72px + var(--top-bar-height, 0px) + 1.25rem) !important;
        padding-bottom: 2.25rem !important;
    }

    .hero--streamlined .breadcrumb {
        display: none !important;
    }

    .hero--streamlined .hero-title {
        max-width: 14ch;
        font-size: clamp(2.15rem, 9.4vw, 3rem);
    }

    .page-home .hero-title {
        max-width: none;
        font-size: clamp(2.5rem, 11vw, 3.75rem);
    }

    .hero--streamlined .hero-description,
    .page-home .hero-description {
        max-width: 34rem;
        font-size: 0.96rem;
        line-height: 1.52;
    }

    .hero--streamlined .hero-ctas,
    .page-home .page-home-hero-ctas {
        width: 100%;
        align-items: stretch;
    }

    .hero--streamlined .hero-ctas .btn-primary,
    .page-home .page-home-hero-ctas .btn-primary {
        flex: 1 1 100%;
        width: 100%;
    }

    .hero--streamlined .hero-secondary-action,
    .page-home .page-home-hero-ctas .hero-secondary-action {
        flex: 0 1 auto !important;
        width: auto !important;
    }

    .page-home .hero-slider .hero-slide {
        min-height: 100vh !important;
        min-height: 100svh !important;
        padding: calc(80px + var(--top-bar-height, 0px)) 0 5rem !important;
    }

    .home-partners-support__inner {
        grid-template-columns: 1fr;
        gap: 0.55rem;
    }

    .ra-hero-support .ra-hero__kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 0.8rem;
    }

    .ra-hero-support .ra-kpi-card:nth-child(odd) {
        border-left: 0;
    }
}

@media (max-width: 480px) {
    .hero-support__inner,
    .hero-support__inner:has(.hero-support__extra) {
        grid-template-columns: 1fr;
    }

    .hero-support .hero-practical-panel__list {
        grid-template-columns: 1fr;
    }

    .ra-hero-support .ra-hero__kpis {
        grid-template-columns: 1fr 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero--streamlined .fade-up,
    .hero--streamlined .fade-in {
        animation: none !important;
        transition: none !important;
    }
}
