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

/* --- Hero Section --- */
.hero {
    background: #96BDD1;
    padding-top: 0;
    padding-bottom: 0;
    margin-top: 0;
    border-top: none;
    overflow: hidden;
}

.hero-flex {
    display: flex;
    min-height: 0;
    max-height: 600px;
}

.hero-img {
    flex: 1 1 50%;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    min-width: 0;
    overflow: hidden;
    position: relative;
}

.img-placeholder {
    width: 100%;
    height: 100%;
    min-height: 350px;
    background: #fff;
    border: 1px solid #222;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.img-placeholder svg {
    width: 100%;
    height: 100%;
    display: block;
}

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

.hero-img picture {
    width: 100%;
    height: 100%;
    display: block;
}

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

@media (max-width: 900px) {
    .hero-img {
        min-height: 0;
    }
}

.hero-content {
    flex: 1 1 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1.5rem 0;
    text-align: center;
}

.hero-dates {
    font-family: var(--logo-font);
    color: var(--muted-dark);
    font-size: 1rem;
    letter-spacing: 0.5px;
    line-height: 1.4;
}

.hero-municipales {
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.hero-ville {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.2em;
    letter-spacing: 0.5px;
}

.hero-jours {
    font-size: 4rem;
    font-weight: 900;
    margin: 0.2em 0;
    letter-spacing: -1px;
}

.hero-jours .et {
    font-size: 1.6rem;
    font-weight: 500;
}

.hero-mois {
    font-size: 2.5rem;
    font-weight: 800;
    margin-top: 0.2em;
    letter-spacing: 1px;
}

.hero-dates {
    text-align: center;
}

@media (max-width: 900px) {
    .hero-ville {
        font-size: 2.5rem;
    }

    .hero-jours {
        font-size: 4rem;
    }

    .hero-mois {
        font-size: 2.5rem;
    }

    .hero-dates {
        text-align: center;
    }
}

@media (max-width: 600px) {
    .hero-ville {
        font-size: 2.5rem;
    }

    .hero-jours {
        font-size: 10rem;
    }

    .hero-mois {
        font-size: 2.5rem;
    }

    .hero-dates {
        text-align: center;
        margin-bottom: 1rem;
    }

    .hero-flex {
        min-height: auto;
    }
}

.hero-slogan {
    margin: 2.2rem 0 1.2rem 0;
}

.slogan-box {
    display: inline-block;
    background: var(--accent-color);
    color: #fff;
    font-family: var(--logo-font);
    font-size: 1.35rem;
    font-weight: 700;
    border: 6px solid var(--card-bg);
    outline: 4px solid var(--accent-color);
    border-radius: 4px;
    padding: 0.5em 1.5em;
    box-shadow: 0 2px 8px rgba(44, 62, 80, 0.07);
}

.hero-logo-image {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 85%;
    display: block;
    margin: 0 auto;
    object-fit: contain;
}

@media (max-width: 900px) {
    .hero-logo {
        width: 80%;
        height: 120px;
    }

    .hero-logo-image {
        max-height: 78%;
    }
}

@media (max-width: 600px) {
    .hero-logo {
        width: 90%;
        height: 90px;
    }

    .hero-logo-image {
        max-height: 72%;
    }
}

.hero-logo .logo-pdg {
    color: var(--accent-color);
    font-weight: 300;
}

.hero-logo .logo-pdg {
    color: var(--accent-color);
    font-weight: 900;
    margin-left: 0.2em;
}

/* --- Hero Slider --- */
.hero-slider-container {
    width: 100%;
    aspect-ratio: 2/1;
    overflow: hidden;
    position: relative;
}

.hero-slider {
    width: 100%;
    height: 100%;
    position: relative;
}

.hero-slide {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
    z-index: 1;
}

/* .hero-slide picture {
    display: block;
    width: 100%;
    height: 100%;
} */

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

@media (max-width: 900px) {
    .hero-slider-container {
        height: auto;
        aspect-ratio: 2/1;
    }
}

@media (max-width: 768px) {
    .hero-slide img {
        object-position: left center;
    }
}

@media (max-width: 600px) {
    .hero-slider-container {
        height: 600px;
        aspect-ratio: auto;
    }

    .hero-slide img {
        object-position: center;
    }
}

/* --- En Bref Section --- */
.enbref {
    background-color: var(--muted-dark);
    color: #111;
    padding: 2rem 0;
}

.enbref-flex {
    display: flex;
    min-height: 300px;
    border: none;
}

.enbref-img {
    flex: 1 1 50%;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    min-width: 0;
}

.enbref-img img {
    width: 100%;
    height: 100%;
    max-height: 600px;
    object-fit: cover;
    display: block;
    margin: 0 auto;
}

.enbref-img {
    align-items: center;
    justify-content: center;
    border-radius: 60px;
}

@media (max-width: 900px) {
    .enbref-img img {
        max-width: 500px;
        max-height: 360px;
    }
}

@media (max-width: 600px) {
    .enbref-img img {
        max-width: 100%;
        max-height: none;
        width: 100%;
        height: auto;
    }
}

.enbref-img-placeholder {
    width: 100%;
    height: 100%;
    background: #fff;
    color: var(--muted-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 2px solid var(--dark-border);
}

.enbref-content {
    flex: 1 1 50%;
    background: transparent;
    color: var(--dark-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    z-index: 2;
    /* s'assurer que le contenu soit au-dessus du titre décoratif */
}

.enbref-title {
    display: block;
    font-family: var(--logo-font);
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--dark-color);
    margin: 0 0 1rem 0;
    z-index: 3;
}

/* Masquer l'ancien élément décoratif s'il reste dans le DOM */
.enbref-title-bg {
    display: none !important;
}

.enbref-infos {
    display: flex;
    gap: 4rem;
    justify-content: flex-start;
    align-items: flex-start;
    position: relative;
    z-index: 1;
}

/* Desktop vs Mobile: on alterne les blocs */
.enbref-desktop {
    display: flex;
    gap: 2.5rem;
    width: 100%;
}

.enbref-mobile {
    display: none;
}

.enbref-column {
    flex: 1 1 50%;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.enbref-item {
    margin: 0;
    font-size: 1.1rem;
    color: var(--dark-color);
}

/* Mobile specific styles: large number + small unit */
.enbref-info {
    display: none;
}

.enbref-info .enbref-number {
    display: inline-block;
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--dark-color);
}

.enbref-info .enbref-unit {
    display: inline-block;
    font-size: 1rem;
    vertical-align: bottom;
    color: var(--dark-color);
}

@media (max-width: 900px) {
    .enbref-desktop {
        display: none;
    }

    .enbref-mobile {
        display: block;
    }

    .enbref-info {
        display: block;
        text-align: center;
        margin-bottom: 1rem;
    }

    .enbref-column {
        gap: 0.5rem;
    }
}

/* Mobile grid for enbref: 2 columns */
@media (max-width: 600px) {
    .enbref-mobile-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem 0.75rem;
        align-items: stretch;
        justify-items: stretch;
    }

    .enbref-info {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 0.6rem;
        background: rgba(255, 255, 255, 0.06);
        border-radius: 8px;
        box-sizing: border-box;
        width: 100%;
        aspect-ratio: 1 / 1;
    }

    .enbref-icon {
        font-size: 1.6rem;
        display: block;
        margin-bottom: 0.2rem;
    }

    .enbref-number {
        font-size: 1.4rem;
        font-weight: 800;
        display: block;
        color: #ffffff;
    }

    .enbref-unit {
        font-size: 0.95rem;
        color: rgba(255, 255, 255, 0.9);
        display: block;
    }
}

.enbref-infos-gauche,
.enbref-infos-droite {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    z-index: 1;
}

.enbref-infos-droite,
.enbref-infos-gauche {
    text-align: left;
    z-index: 1;
}

@media (max-width: 900px) {
    .enbref-img {
        flex: 0 0 45%;
        min-width: 200px;
    }

    .enbref-content {
        padding: 2.25rem;
    }

    .enbref-title-bg {
        font-size: 3rem;
        padding-top: 1.5rem;
        margin-bottom: 1.2rem;
    }
}

@media (max-width: 600px) {
    .enbref-flex {
        flex-direction: column;
    }

    .enbref-img {
        flex: none;
        width: 100%;
        min-width: 0;
    }

    .enbref-img-placeholder {
        min-height: 220px;
        border-right: none;
        border-bottom: 2px solid var(--dark-border);
    }

    .enbref-content {
        padding: 1.75rem;
        text-align: center;
    }

    .enbref-title-bg {
        font-size: 2.1rem;
        padding: 1.2rem 0 0 0;
        text-align: center;
        position: static;
        margin-bottom: 0.8rem;
    }

    .enbref-info {
        font-size: 1.05rem;
    }

    .enbref-infos {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .enbref-infos-gauche,
    .enbref-infos-droite {
        text-align: center;
    }
}

/* --- News Section --- */
.news-section {
    background: #96BDD1;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    align-items: stretch;
}

.news-grid {
    width: 100%;
    grid-auto-rows: 1fr;
}

.news-grid .news-tile {
    display: flex;
    flex-direction: column;
    min-width: 0;
    box-sizing: border-box;
}

.news-grid .news-item.card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.news-grid .news-item.card {
    width: 100%;
    box-sizing: border-box;
}

.news-grid .news-item .news-thumb {
    aspect-ratio: 3 / 2;
    width: 100%;
    flex: 0 0 auto;
    border-radius: 4px;
    overflow: hidden;
}

.news-grid .news-item .news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.news-item.card {
    transition: transform 0.22s ease, box-shadow 0.22s ease;
    will-change: transform;
}

.news-item.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.10);
}

/* Styling for clickable news tiles */
.news-tile-link {
    text-decoration: none;
    color: inherit;
    display: block;
    cursor: pointer;
    height: 100%;
}

.news-tile-link:hover,
.news-tile-link:focus {
    outline: none;
}

.news-tile-link .news-item.card {
    cursor: pointer;
}

.news-grid .news-item .news-body {
    /* padding: 0.6rem 0.9rem 0.6rem 0.9rem; */
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1 1 auto;
    overflow: hidden;
}

.news-grid .news-item h3 {
    margin: 0;
    font-size: 1rem;
    line-height: 1.3;
    /* max-height: 2.6em; */
    overflow: hidden;
    text-overflow: ellipsis;
}

.news-grid .news-item .date {
    margin: 0;
    font-size: 0.95rem;
    color: #666;
}

@media (max-width: 900px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.contact-page .social-media-large .social-link img,
.contact-page .social-media .social-link img,
.contact-page .social-media img {
    width: 48px;
    height: 48px;
    max-width: 48px;
    max-height: 48px;
    object-fit: contain;
    display: inline-block;
}

@media (max-width: 769px) {

    .contact-page .social-media-large .social-link img,
    .contact-page .social-media .social-link img,
    .contact-page .social-media img {
        width: 36px;
        height: 36px;
        max-width: 36px;
        max-height: 36px;
    }
}

@media (max-width: 900px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.news-section h2 {
    background: none;
    color: var(--dark-color);
    font-family: var(--logo-font);
    font-weight: 700;
}

.news-section h1 {
    background: none;
    color: var(--dark-color);
    font-family: var(--logo-font);
    font-weight: 700;
}

.section-title-container {
    text-align: center;
    margin-bottom: 1rem;
}

.section-title-container img {
    display: block;
    width: 100%;
    max-width: 270px;
    height: auto;
    aspect-ratio: 300 / 60;
}

.section-title-container-enbref img {
    display: block;
    width: 100%;
    max-width: 200px;
    height: auto;
    aspect-ratio: 50 / 15;
}

.section-title-container-participez img {
    display: block;
    width: 100%;
    max-width: 400px;
    height: auto;
    aspect-ratio: 300 / 60;
}

.section-title-container-contact img {
    display: block;
    width: 100%;
    max-width: 200px;
    height: auto;
    aspect-ratio: 300 / 60;
}

@media (max-width: 900px) {
    .section-title-container img {
        max-width: 270px;
    }
}

@media (max-width: 600px) {
    .section-title-container img {
        max-width: 66%;
    }
}

.white-card {
    background: #fff;
    color: var(--dark-color);
    padding: 1rem;
    box-shadow: none;
}

.news-item {
    display: block;
    width: 100%;
}

.news-item.card {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    text-align: left;
    padding: 0.5rem;
    background: #fff;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    min-width: 0;
}

.news-thumb {
    aspect-ratio: 1 / 1;
    width: 100%;
    border: 1px solid var(--border-color);
    margin: 0 0 0.5rem 0;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
}

.news-item .news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.news-item h3 {
    font-size: 1rem;
    margin: 0 0 0.25rem 0;
    font-weight: 700;
    color: var(--dark-color);
    line-height: 1.35;
    flex-grow: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.news-item .date {
    font-size: 0.95rem;
    margin: 0;
    color: #666;
    font-weight: 400;
}

.carousel__slide {
    display: flex;
    align-items: flex-start;
}

.news-section .carousel__track .carousel__slide {
    padding: 0 0.75rem;
    min-width: 340px;
    flex: 0 0 auto;
}

#teamCarousel .carousel__track .carousel__slide {
    padding: 0 0.75rem;
    min-width: 280px;
}

.news-section .carousel__btn {
    background: var(--teal);
    color: var(--card-bg);
}

.news-section .carousel__indicator.active {
    background: var(--teal);
}

.news-section .carousel__indicator {
    background: var(--indicator-inactive-dark);
}

.news-section .button {
    background: var(--teal);
    color: var(--accent-color);
    transition: background 0.3s ease, color 0.3s ease;
}

.news-section .button:hover {
    background: var(--dark-color);
    color: var(--light-color);
}

/* --- Bilan Home Section --- */
.bilan-home {
    padding: 4rem 0;
    background: #272757;
    min-height: 70vh;
}

.bilan-header {
    text-align: center;
    margin-bottom: 3rem;
}

.bilan-logo {
    max-width: 400px;
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.bilan-logo-1 {
    max-width: 300px;
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.bilan-title {
    font-family: var(--logo-font);
    font-weight: 700;
    color: #ffffff;
    font-size: 4.5rem;
    margin: 0;
    line-height: 1;
}

.bilan-subtitle {
    font-family: var(--logo-font);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
    font-size: 2rem;
    margin: 0.5rem 0 0 0;
    letter-spacing: 0.1em;
}

.bilan-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 3rem;
    min-height: 400px;
    position: relative;
    padding: 0 2rem;
}

.bilan-column {
    display: flex;
    gap: 2rem;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
}

.bilan-circle {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    position: relative;
}

.bilan-circle:hover {
    transform: translateY(-8px) scale(1.05);
}

.bilan-circle::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    border: 3px solid transparent;
    transition: border-color 0.3s ease;
}

.bilan-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
}

.bilan-img {
    height: 80vh;
    max-height: 800px;
    position: sticky;
    top: 2rem;
}

.bilan-grid img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    overflow: hidden;
}

.bilan-icon {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    padding: 0;
}

.bilan-label {
    font-family: var(--logo-font);
    font-size: 1.3rem;
    color: #ffffff;
    line-height: 1.3;
    margin: 0;
    font-weight: 400;
}

.bilan-label-main {
    display: block;
}

.bilan-cta {
    text-align: left;
    margin-top: 3rem;
}

.bilan-grid div h2 {
    text-align: left;
}

.bilan-cta-home {
    text-align: center;
    margin-top: 3rem;
}

.button-bilan {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--teal);
    color: #272757;
    font-family: var(--logo-font);
    font-size: 1.2rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: background 0.3s ease, color 0.3s ease;
}

.button-bilan:hover {
    background: #b8d6e5;
}

/* Responsive */
@media (max-width: 900px) {
    .bilan-grid {
        display: flex;
        flex-direction: column;
        gap: 3rem;
    }

    .bilan-img {
        display: none;
    }

    .bilan-title {
        font-size: 3.5rem;
    }

    .bilan-subtitle {
        font-size: 1.6rem;
    }

    .bilan-visual {
        gap: 2rem;
        min-height: 350px;
    }

    /* .bilan-circle {
        width: 150px;
        height: 150px;
    } */

    .bilan-label {
        font-size: 1.1rem;
    }
}

@media (max-width: 769px) {
    .bilan-home {
        padding: 3rem 0;
    }

    .bilan-title {
        font-size: 3rem;
    }

    .bilan-subtitle {
        font-size: 1.4rem;
    }

    .bilan-visual {
        display: flex;
        flex-direction: column;
        gap: 2rem;
        min-height: auto;
        padding: 0 1rem;
    }

    .bilan-column {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .bilan-left>.bilan-label,
    .bilan-right>.bilan-label,
    .bilan-center>.bilan-label {
        padding: 0;
        text-align: center !important;
    }

    /* .bilan-circle {
        width: 140px;
        height: 140px;
    } */

    .bilan-label {
        font-size: 1rem;
        max-width: 140px;
        text-align: center !important;
    }
}

@media (max-width: 600px) {
    .bilan-title {
        font-size: 2.5rem;
    }

    .bilan-subtitle {
        font-size: 1.2rem;
    }

    .bilan-visual {
        gap: 1.5rem;
    }

    .bilan-circle {
        width: 240px;
        height: 240px;
    }

    .bilan-label {
        font-size: 0.95rem;
        max-width: 240px;
    }

    .button-bilan {
        padding: 0.85rem 2rem;
        font-size: 1.1rem;
    }
}

/* --- Bilan Section (Full Page) --- */
.bilan-section {
    padding-top: 0;
    padding-bottom: 0;
    background: var(--beige-bg);
    min-height: 30vh;
}

.bilan-section h1 {
    font-family: var(--logo-font);
    font-weight: 700;
    color: var(--dark-color);
    text-align: center;
    font-size: 2.4rem;
    margin-bottom: 1.5rem;
}

.bilan-section h2 {
    font-family: var(--logo-font);
    font-weight: 700;
    color: var(--dark-color);
    text-align: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.bilan-intro {
    text-align: center;
    margin-bottom: 0;
}

.bilan-intro p {
    font-size: 1.1rem;
    color: var(--dark-color);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

.bilan-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.bilan-item {
    border: 1px solid var(--border-color);
    padding: 2rem;
    background-color: #fff;
    transition: transform 0.3s, box-shadow 0.3s;
    border-radius: 4px;
}

.bilan-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.bilan-item h3 {
    color: var(--accent-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-family: var(--logo-font);
    font-weight: 700;
}

.bilan-item p {
    line-height: 1.6;
    color: var(--dark-color);
}

.bilan-item .bilan-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
    object-fit: contain;
}

.bilan-pdf-section {
    margin-top: 4rem;
    padding: 3rem 2rem;
    background: #fff;
    border: 2px solid var(--dark-border);
    text-align: center;
}

.bilan-pdf-section h2 {
    margin-bottom: 1rem;
}

.bilan-pdf-section>p {
    font-size: 1.05rem;
    color: var(--dark-color);
    max-width: 700px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

.bilan-pdf-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2rem;
}

.bilan-pdf-placeholder svg {
    opacity: 0.7;
}

.bilan-pdf-placeholder .placeholder-text {
    font-style: italic;
    color: var(--muted-dark);
    font-size: 0.95rem;
}

/* --- Programme Section --- */
.program-section {
    background: var(--beige-bg);
    padding: 3rem 0 3rem 0;
}

.program-container {
    text-align: center;
}

.program-title h2 img {
    width: 25%;
    height: auto;
}

@media (max-width: 600px) {
    .program-title h2 img {
        width: 60%;
    }
}

.program-mobile {
    display: block;
    margin-bottom: 1.5rem;
}

.program-intro {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--dark-color);
    max-width: 650px;
    margin: 0 auto 2rem;
}

/* Desktop content: hide by default, show on desktop */
.program-desktop {
    display: none;
}

.program-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.program-card {
    background: #fff;
    padding: 2rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    text-align: center;
    border: 2px solid transparent;
}

.program-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(239, 77, 107, 0.15);
    border-color: var(--accent-color-dark);
}

.program-tile {
    display: block;
    text-decoration: none;
    color: inherit;
    padding: 2rem 1.5rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    border: 2px solid transparent;
    text-align: center;
    cursor: pointer;
}

.program-tile:hover,
.program-tile:focus {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(239, 77, 107, 0.15);
    border-color: var(--accent-color-dark);
}

.program-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.program-axis-title {
    font-family: var(--logo-font);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-color);
    line-height: 1.4;
    margin: 0;
}

.program-columns {
    display: flex;
    gap: 2.5rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.program-list {
    text-align: left;
    max-width: 420px;
    list-style: disc inside;
    color: #111;
}

.program-list li {
    margin-bottom: 1rem;
    font-size: 1.05rem;
    line-height: 1.4;
}

.program-cta {
    text-align: center;
    margin-top: 2rem;
}

.program-button {
    background: var(--accent-color);
    color: #fff;
    border-radius: 28px;
    padding: 0.75rem 2rem;
    font-weight: 700;
    font-size: 1.05rem;
    transition: background 0.18s ease, box-shadow 0.18s ease;
    display: inline-block;
}

.program-button:hover {
    background: var(--accent-color-dark);
    box-shadow: 0 4px 12px rgba(239, 77, 107, 0.3);
}

/* --- Programme Page --- */
.programme-page {
    background: #fff;
    padding: 4rem 0;
    min-height: 60vh;
}

/* Coming Soon Banner */
.coming-soon-banner {
    position: relative;
    margin: 3rem auto;
    max-width: 1000px;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Blurred background effect */
.coming-soon-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--beige-bg) 75%, var(--primary-color) 100%);
    filter: blur(40px);
    opacity: 0.8;
    z-index: 1;
}

.coming-soon-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 3rem 2rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    max-width: 600px;
    width: 90%;
}

.coming-soon-content h2 {
    font-family: var(--logo-font);
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.coming-soon-content p {
    font-size: 1.2rem;
    color: var(--dark-color);
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Countdown Timer */
.countdown-timer {
    margin-top: 2rem;
}

.countdown-display {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.countdown-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
    padding: 1rem;
    background: linear-gradient(135deg, var(--accent-color), #d43f58);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(239, 77, 107, 0.3);
}

.countdown-number {
    font-family: var(--logo-font);
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
    display: block;
}

.countdown-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    margin-top: 0.5rem;
    letter-spacing: 1px;
}

.countdown-expired {
    font-size: 1.3rem;
    color: var(--accent-color);
    font-weight: 700;
    font-family: var(--logo-font);
}

/* --- CTA Support Section --- */
.cta-support {
    background-color: var(--primary-color);
    color: var(--dark-color);
    text-align: center;
}

.cta-support h2 {
    color: var(--dark-color);
    font-family: var(--logo-font);
    font-weight: 700;
}

/* --- Team Section --- */
.team {
    background: var(--teal);
    padding: 1.5rem 0 2.2rem 0;
    color: #fff;
}

.team h2 {
    text-align: center;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 1rem;
    display: inline-block;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-family: var(--logo-font);
    font-weight: 700;
}

.team div h2 img {
    width: 66%;
}

@media (max-width: 600px) {
    .team div h2 img {
        width: 55%;
    }
}

.team-member {
    padding: 1rem;
}

.team-member h4 {
    color: var(--beige-bg);
    font-size: 1.1rem;
}

.team-cta {
    text-align: center;
    margin-top: 1.2rem;
}

.team-cta .button {
    background: var(--light-color);
    color: var(--teal, #074d4d);
    padding: 0.6rem 1.2rem;
    border-radius: 24px;
    font-weight: 700;
}

/* --- Team Page Section (full page) --- */
.team-section {
    background: #fff;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.team-section h1 {
    background: none;
    color: var(--dark-color);
    font-family: var(--logo-font);
    font-weight: 700;
}

/* Grid layout for team members */
.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    align-items: stretch;
    width: 100%;
    grid-auto-rows: 1fr;
}

.team-grid .team-tile {
    display: flex;
    flex-direction: column;
    min-width: 0;
    box-sizing: border-box;
}

.team-grid .team-member-item.card {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    overflow: visible;
    padding: 1.5rem 1rem;
    text-align: center;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.team-member-body .quartier {
    font-weight: 500;
    margin-top: 0.25rem;
}

.team-grid .team-member-item .avatar-container {
    position: relative;
    width: 140px;
    height: 140px;
    margin-bottom: 1rem;
    flex: 0 0 140px;
}

.team-grid .team-member-item .avatar {
    width: 100%;
    height: 100%;
}

.team-grid .team-member-item .avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
    border: 3px solid var(--beige-bg);
}

.team-grid .team-member-item .party-logo {
    position: absolute;
    bottom: -8px;
    right: -8px;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    border: 2px solid var(--beige-bg);
    z-index: 2;
}

.team-grid .team-member-item .party-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-grid .team-member-item .party-badge {
    position: absolute;
    bottom: -5px;
    right: -5px;
    padding: 0.35rem 0.65rem;
    background: var(--accent-color);
    color: #fff;
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-block;
    box-shadow: 0 2px 8px rgba(239, 77, 107, 0.4);
    border: 2px solid #fff;
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.team-grid .team-member-item h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.15rem;
    color: var(--accent-color);
    font-weight: 700;
}

.team-grid .team-member-item .profession {
    margin: 0 0 0.25rem 0;
    font-size: 0.95rem;
    color: #666;
    font-weight: 500;
}

.team-grid .team-member-item .muted {
    margin: 0 0 0.25rem 0;
    font-size: 0.9rem;
    color: #999;
}

.team-grid .team-member-item .bio {
    margin: 0.75rem 0 0 0;
    font-size: 0.9rem;
    color: #555;
    line-height: 1.4;
}

.team-member-item.card {
    transition: transform 0.22s ease, box-shadow 0.22s ease;
    will-change: transform;
}

.team-member-item.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

/* Coming Soon / Temporary Member Tile */
.team-member-item.coming-soon {
    position: relative;
    overflow: hidden;
}

.team-member-item.coming-soon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(252, 225, 208, 0.6) 0%, rgba(255, 255, 255, 0.8) 50%, rgba(252, 225, 208, 0.6) 100%);
    backdrop-filter: blur(8px);
    z-index: 1;
    pointer-events: none;
}

.team-member-item.coming-soon .avatar-container {
    filter: blur(4px) grayscale(30%);
    opacity: 0.5;
}

.team-member-item.coming-soon .team-member-body {
    filter: blur(2px);
    opacity: 0.4;
}

.team-member-item.coming-soon .coming-soon-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    background: rgba(255, 255, 255, 0.95);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    border: 2px solid var(--accent-color);
    pointer-events: none;
}

.team-member-item.coming-soon .coming-soon-badge h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: var(--logo-font);
}

@media (max-width: 900px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

/* --- Legal Notice Section --- */
.legal-notice {
    padding: 4rem 0;
    background: var(--light-color);
}

.legal-notice h1 {
    font-family: var(--logo-font);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 2rem;
}

.legal-notice h2 {
    font-family: var(--logo-font);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.legal-notice p {
    line-height: 1.8;
    margin-bottom: 1rem;
}

.legal-notice a {
    color: var(--secondary-color);
    text-decoration: underline;
}

.legal-notice a:hover {
    color: var(--accent-color);
}

/* --- Contact Page --- */
.contact-page {
    padding: 4rem 0;
    background: var(--light-color);
}

.contact-page h1 {
    font-family: var(--logo-font);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 2rem;
}

.contact-page h2 {
    font-family: var(--logo-font);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.contact-content {
    max-width: 700px;
}

.contact-content>p {
    line-height: 1.8;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.contact-info {
    margin-bottom: 2rem;
}

.contact-info p {
    font-size: 1.2rem;
}

.contact-info a {
    color: var(--secondary-color);
    text-decoration: underline;
    font-weight: 600;
}

.contact-info a:hover {
    color: var(--accent-color);
}

.social-media-large {
    display: flex;
    gap: 2rem;
    margin-top: 1rem;
}

.social-media-large a {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--dark-color);
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}

.social-media-large a:hover {
    color: var(--accent-color);
}

.social-media-large i {
    font-size: 1.5rem;
}

/* --- Participez --- */
.comite-soutien-page {
    padding: 4rem 0;
    background: var(--beige-bg);
    min-height: 60vh;
}

.comite-soutien-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.comite-soutien-cta h1 {
    font-family: var(--logo-font);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.comite-soutien-cta p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--dark-color);
    margin-bottom: 1.2rem;
}

.comite-soutien-cta .button {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.9rem 2rem;
    background: var(--accent-color);
    color: #fff;
    font-family: var(--logo-font);
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 30px;
    transition: background 0.18s ease;
}

.comite-soutien-cta .button:hover {
    background: var(--accent-color-dark);
}

.comite-soutien-signataires {
    background: #fff;
    padding: 2rem;
    border: 2px solid var(--dark-border);
    border-radius: 4px;
}

.comite-soutien-signataires h2 {
    font-family: var(--logo-font);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid var(--accent-color);
}

.cta-support-actions {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
    padding-right: 5em;
}

.cta-support-actions img {
    height: 60px;
    width: 60px;
}

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

.signataire-item {
    padding: 0.8rem 0;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.signataire-item:last-child {
    border-bottom: none;
}

.signataire-item strong {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-color);
}

.signataire-profession {
    font-size: 0.95rem;
    color: #666;
    font-style: italic;
}

.signataire-quartier {
    font-size: 0.9rem;
    color: #888;
}

/* Responsive */
@media (max-width: 900px) {
    .comite-soutien-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .comite-soutien-cta h1 {
        font-size: 1.9rem;
    }

    .comite-soutien-signataires {
        order: 2;
    }
}

@media (max-width: 600px) {
    .comite-soutien-page {
        padding: 2.5rem 0;
    }

    .comite-soutien-cta h1 {
        font-size: 1.6rem;
    }

    .comite-soutien-cta p {
        font-size: 1rem;
    }

    .comite-soutien-signataires {
        padding: 1.5rem;
    }

    .comite-soutien-signataires h2 {
        font-size: 1.5rem;
    }
}

/* Programme */

.programme-section {
    /* padding: 0 4rem;
    margin: 0 4rem; */
    padding: 0 4rem;
}

.programme-section .button {
    background: var(--teal);
    color: var(--accent-color);
    transition: background 0.3s ease, color 0.3s ease;
}

.programme-section .button:hover {
    background: var(--dark-color);
    color: var(--light-color);
}

.program-card-centered {
    background: #fff;
    border-radius: 20px;
    padding: 4rem 3rem;
    max-width: 900px;
    margin: 2rem auto;
    text-align: left;
    /* Default left, but title/button might differ or override */
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    /* Soft shadow */
    border: 1px solid rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.program-card-centered h2 {
    font-size: 1.5rem;
    /* Large title like screenshot */
    color: var(--dark-color);
    margin-bottom: 1.5rem;
    font-family: var(--heading-font);
    font-weight: 700;
}

.program-card-centered p {
    font-size: 1rem;
    line-height: 1.5;
    color: #333;
    margin-bottom: 2.5rem;
    max-width: 100%;
}

.program-card-centered .button {
    align-self: flex-start;
    padding: 1rem 2rem;
    font-size: 0.9rem;
    border-radius: 50px;
}

@media (max-width: 769px) {
    .program-card-centered {
        padding: 2rem 1.5rem;
    }

    .program-card-centered h2 {
        font-size: 2rem;
    }
}


/* Comité de soutien */

.comite-soutien-grid {
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    max-width: 1600px;
}

.comite-soutien-grid .contact-form {
    max-width: 100%;
}

.comite-soutien-section .button {
    background: var(--teal);
    color: var(--accent-color);
    transition: background 0.3s ease, color 0.3s ease;
}

.comite-soutien-section .button:hover {
    background: var(--dark-color);
    color: var(--light-color);
}

/* --- Contact Section --- */
.page-section {
    padding: 4rem 0 0;
}

.contact-form {
    max-width: 1000px;
    margin: 1rem 0;
    padding: 2rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 700;
    font-family: var(--heading-font);
    color: var(--dark-color);
    font-size: 1rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: var(--body-font);
    font-size: 1rem;
    background-color: #fafafa;
    transition: all 0.3s ease;
    color: #333;
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23272757' d='M6 8.825L1.175 4 2.238 2.938 6 6.7l3.763-3.762L10.825 4z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    cursor: pointer;
    padding-right: 2.5rem;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--dark-color);
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(39, 39, 87, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-actions {
    text-align: center;
    margin-top: 2.5rem;
}

.contact-form .button {
    cursor: pointer;
    min-width: 200px;
    border: none;
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--dark-color);
    color: #fff;
    font-family: var(--heading-font);
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 30px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-form .button:hover {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Fix for Participez page on mobile */
@media (max-width: 900px) {
    .comite-soutien-grid {
        display: flex;
        flex-direction: column;
    }

    .comite-soutien-grid>div {
        width: 100%;
    }

    .comite-soutien-grid .contact-form {
        width: 100%;
        padding: 1.5rem;
    }

    .form-actions .button {
        width: 100%;
    }
}

.team-member-simple {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    overflow: visible;
    padding: 0.5rem 0.25rem;
    text-align: center;
}
.team-member-simple .avatar {
    margin-bottom: 0.5rem;
    width: 200px;
    height: auto;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}
.team-member-simple .avatar img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    background: transparent;
}
.team-member-simple h3 {
    margin: 0.5rem 0 0.25rem 0;
    font-size: 1.1rem;
    font-weight: 700;
}
.team-member-simple .profession {
    font-size: 0.9rem;
    color: var(--dark-color);
    margin-bottom: 0.25rem;
    line-height: 1.4;
}
.team-member-simple .muted {
    font-size: 0.85rem;
    color: var(--dark-color);
    margin: 0;
}
.team-member-simple .quartier {
    color: var(--dark-color);
    font-weight: 500;
    margin-top: 0.25rem;
    font-size: 0.85rem;
}

.head-of-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 2rem auto 3rem auto;
    text-align: center;
    max-width: 400px;
}

.head-of-list-image {
    width: 100%;
    max-width: 250px;
    margin-bottom: 1rem;
}

.head-of-list-image img {
    width: 100%;
    height: auto;
    display: block;
}

.head-of-list-details h3 {
    font-size: 1.5rem;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.head-of-list-details .role {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.25rem;
}

.head-of-list-details .profession {
    font-size: 1rem;
    color: var(--dark-color);
    margin-bottom: 0.25rem;
}

.head-of-list-details .quartier {
    font-size: 1rem;
    color: var(--dark-color);
}