/* ===================================================================
   GADEF - Feuille de style principale
   =================================================================== */

/* ----- RESET & BASE ----- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Roboto, system-ui, -apple-system, sans-serif;
    background-color: #fafafa;
    color: #262626;
    line-height: 1.6;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ----- BUTTONS ----- */
.btn-primary {
    display: inline-block;
    background-color: #d90012;
    color: #fff;
    padding: 12px 32px;
    border-radius: 40px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.25s ease;
    border: 2px solid transparent;
    box-shadow: 0 4px 12px rgba(217, 0, 18, 0.25);
}

.btn-primary:hover {
    background-color: #b0000f;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(217, 0, 18, 0.35);
}

.btn-outline {
    display: inline-block;
    background: transparent;
    color: #d90012;
    padding: 10px 28px;
    border-radius: 40px;
    font-weight: 600;
    border: 2px solid #d90012;
    transition: all 0.25s ease;
}

.btn-outline:hover {
    background: #d90012;
    color: #fff;
    transform: translateY(-2px);
}

.btn-donate {
    background-color: #707070;
    border-color: #707070;
    box-shadow: 0 4px 12px rgba(112, 112, 112, 0.3);
}

.btn-donate:hover {
    background-color: #555555;
    border-color: #555555;
}

/* ----- TOP MENU (barre superieure) ----- */
.topbar {
    background: #d90012;
    color: #ffffff;
    font-size: 0.85rem;
}

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

.topbar ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.topbar-contact {
    gap: 6px 24px;
}

.topbar-contact i {
    margin-right: 6px;
    opacity: 0.85;
}

.topbar a {
    color: #ffffff;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.topbar a:hover {
    opacity: 0.8;
}

.topbar-links {
    gap: 0;
}

.topbar-links li + li {
    border-left: 1px solid rgba(255, 255, 255, 0.35);
}

.topbar-links a {
    display: block;
    padding: 0 14px;
    font-weight: 600;
}

.topbar-links li:last-child a {
    padding-right: 0;
}

.topbar-socials {
    display: flex;
    align-items: center;
    gap: 6px;
    padding-left: 14px;
}

.topbar-social {
    width: 28px;
    height: 28px;
    padding: 0 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
}

@media (max-width: 991px) {
    .topbar-address {
        display: none;
    }
}

@media (max-width: 767px) {
    .topbar-links li:not(:last-child) {
        display: none;
    }

    .topbar-links li + li {
        border-left: 0;
    }
}

@media (max-width: 420px) {
    .topbar-contact a span {
        display: none;
    }

    .topbar-contact i {
        font-size: 1rem;
        margin-right: 0;
    }
}

/* ----- HEADER / NAV ----- */
header {
    background: #ffffff;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 999;
    padding: 12px 0;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #d90012;
    letter-spacing: -0.5px;
}

.logo i {
    color: #707070;
    margin-right: 8px;
}

/* Logo image GADEF */
a.logo {
    display: inline-flex;
    align-items: center;
    line-height: 0;
}

.logo img {
    display: block;
    height: 56px;
    width: auto;
}

@media (max-width: 575px) {
    .logo img {
        height: 44px;
    }
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
    font-weight: 500;
}

.nav-links a {
    color: #333333;
    transition: color 0.2s;
    font-size: 1rem;
}

.nav-links a:hover {
    color: #d90012;
}

.nav-links a.active {
    color: #d90012;
    font-weight: 700;
    border-bottom: 2px solid #d90012;
    padding-bottom: 2px;
}

/* ----- SOUS-MENU (dropdown) ----- */
.nav-links .has-submenu {
    position: relative;
}

.nav-links .submenu-toggle i {
    font-size: 0.7rem;
    margin-left: 4px;
    transition: transform 0.2s ease;
}

.nav-links .submenu {
    list-style: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: #ffffff;
    border: 1px solid #eeeeee;
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.10);
    padding: 8px;
    margin-top: 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    z-index: 1000;
}

.nav-links .has-submenu:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-links .has-submenu:hover .submenu-toggle i {
    transform: rotate(180deg);
}

.nav-links .submenu li {
    margin: 0;
}

.nav-links .submenu a {
    display: block;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 0.95rem;
    color: #333333;
    white-space: nowrap;
}

.nav-links .submenu a:hover {
    background: #f7f7f7;
    color: #d90012;
}

.nav-links .submenu a.active {
    border-bottom: none;
    padding-bottom: 10px;
    background: #fde8e9;
}

.nav-links .btn-primary {
    padding: 8px 24px;
    font-size: 0.9rem;
}

/* Mobile menu toggle (hamburger) */
.menu-toggle {
    display: none;
    font-size: 1.8rem;
    background: none;
    border: none;
    color: #d90012;
    cursor: pointer;
}

/* ----- HERO SECTION ----- */
.hero {
    background: linear-gradient(135deg, #fff5f5 0%, #f3e3e4 100%);
    padding: 80px 0 70px;
    border-bottom: 4px solid rgba(217, 0, 18, 0.1);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.hero-content h1 {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.2;
    color: #2b2b2b;
    margin-bottom: 18px;
}

.hero-content h1 span {
    color: #d90012;
}

.hero-content p {
    font-size: 1.2rem;
    color: #3d3d3d;
    margin-bottom: 32px;
    max-width: 500px;
}

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

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    max-width: 100%;
    width: 480px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

/* Placeholder image (SVG) if you don't have a real one */
.placeholder-img {
    background: #f5b8bc;
    width: 100%;
    max-width: 480px;
    aspect-ratio: 4/3;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d90012;
    font-weight: 500;
    font-size: 1.2rem;
    box-shadow: 0 12px 28px rgba(0,0,0,0.06);
    text-align: center;
    padding: 20px;
}

.placeholder-img i {
    font-size: 4rem;
    margin-right: 12px;
    opacity: 0.7;
}

/* ----- SLIDER D'ACCUEIL (pleine largeur) ----- */
.hero-slider {
    position: relative;
    height: clamp(480px, 78vh, 760px);
    overflow: hidden;
    background: #1f1f1f;
}

.hero-slides,
.hero-slide {
    position: absolute;
    inset: 0;
}

.hero-slide {
    opacity: 0;
    transition: opacity 1s ease;
}

.hero-slide.is-active {
    opacity: 1;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.06);
    transition: transform 6s ease;
}

.hero-slide.is-active img {
    transform: scale(1);
}

/* Voile sombre pour la lisibilite du texte */
.hero-slider-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.45) 50%, rgba(0, 0, 0, 0.15) 100%);
}

.hero-slider-content {
    max-width: 620px;
    color: #ffffff;
}

.hero-slider-content h1 {
    font-size: 3.6rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    color: #ffffff;
}

.hero-slider-content h1 span {
    color: #ff1f2d;
}

.hero-slider-content p {
    font-size: 1.15rem;
    margin-bottom: 32px;
    color: rgba(255, 255, 255, 0.9);
}

.btn-outline--light {
    color: #ffffff;
    border-color: #ffffff;
}

.btn-outline--light:hover {
    background: #ffffff;
    border-color: #ffffff;
    color: #d90012;
}

/* Fleches */
.hero-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 0;
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    font-size: 1.1rem;
    cursor: pointer;
    z-index: 2;
    transition: background 0.2s ease;
}

.hero-slider-arrow:hover,
.hero-slider-arrow:focus-visible {
    background: #d90012;
}

.hero-slider-prev {
    left: 20px;
}

.hero-slider-next {
    right: 20px;
}

/* Puces */
.hero-slider-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 26px;
    display: flex;
    justify-content: center;
    gap: 10px;
    z-index: 2;
}

.hero-slider-dots button {
    width: 12px;
    height: 12px;
    padding: 0;
    border-radius: 999px;
    border: 2px solid #ffffff;
    background: transparent;
    cursor: pointer;
    transition: width 0.3s ease, background 0.3s ease;
}

.hero-slider-dots button.is-active {
    width: 32px;
    background: #ffffff;
}

@media (max-width: 991px) {
    .hero-slider-content h1 {
        font-size: 2.8rem;
    }

    .hero-slider-arrow {
        display: none;
    }
}

@media (max-width: 575px) {
    .hero-slider {
        height: 520px;
    }

    .hero-slider-overlay {
        background: linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.75) 100%);
        align-items: flex-end;
        padding-bottom: 70px;
    }

    .hero-slider-content h1 {
        font-size: 2.2rem;
    }

    .hero-slider-content p {
        font-size: 1rem;
        margin-bottom: 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-slide,
    .hero-slide img {
        transition: none;
    }
}

/* ----- STATS BAR ----- */
.stats-bar {
    background: #ffffff;
    padding: 36px 0;
    border-bottom: 1px solid #eaeaea;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: center;
}

.stat-item h3 {
    font-size: 2.6rem;
    font-weight: 800;
    color: #d90012;
}

.stat-item p {
    font-size: 1rem;
    color: #5f5f5f;
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* ----- MISSIONS / CAUSES ----- */
.missions {
    padding: 80px 0 60px;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.6rem;
    font-weight: 700;
    color: #2b2b2b;
}

.section-header p {
    color: #5f5f5f;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 10px auto 0;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.mission-card {
    background: #ffffff;
    padding: 32px 24px 28px;
    border-radius: 24px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    border: 1px solid #eeeeee;
    text-align: center;
}

.mission-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(217, 0, 18, 0.10);
    border-color: #f5c2c5;
}

.mission-card .icon {
    font-size: 3rem;
    color: #d90012;
    background: #fde8e9;
    width: 80px;
    height: 80px;
    line-height: 80px;
    text-align: center;
    border-radius: 50%;
    margin: 0 auto 18px;
}

.mission-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #2b2b2b;
}

.mission-card p {
    color: #555555;
    font-size: 0.95rem;
}

/* ----- GALERIE PHOTO ----- */
/* ----- FORMULAIRE DE CONTACT ----- */
.contact-form {
    max-width: 640px;
    margin: 0 auto;
    display: grid;
    gap: 18px;
}

.contact-form label {
    font-weight: 600;
    color: #2b2b2b;
    margin-bottom: 6px;
    display: block;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d9d9d9;
    border-radius: 12px;
    font: inherit;
    color: #262626;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #d90012;
    box-shadow: 0 0 0 3px rgba(217, 0, 18, 0.15);
}

.contact-form button {
    justify-self: start;
    cursor: pointer;
}

/* ----- AGENDA / LISTE D'ACTUALITES ----- */
.entry-list {
    max-width: 780px;
    margin: 0 auto;
    display: grid;
    gap: 20px;
}

.entry-item {
    background: #ffffff;
    border: 1px solid #eeeeee;
    border-left: 4px solid #d90012;
    border-radius: 14px;
    padding: 22px 24px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.03);
}

.entry-item .date {
    font-size: 0.85rem;
    font-weight: 600;
    color: #707070;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.entry-item h3 {
    margin: 6px 0 8px;
    color: #2b2b2b;
    font-size: 1.25rem;
}

.entry-item p {
    color: #555555;
    font-size: 0.95rem;
}
/* ----- AGENDA (cartes evenements harmonisees avec le reste du site) ----- */
.agenda-section + .agenda-section {
    margin-top: 70px;
}

.agenda-section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 20px;
    margin-bottom: 28px;
    padding-bottom: 14px;
    border-bottom: 1px solid #eaeaea;
}

.agenda-section-head h3 {
    font-size: 1.6rem;
    color: #2b2b2b;
    margin: 0;
    padding-left: 14px;
    border-left: 4px solid #d90012;
    line-height: 1.2;
}

.agenda-section-head p {
    color: #707070;
    margin: 0;
}

.agenda-empty {
    background: #ffffff;
    border: 1px dashed #d9d9d9;
    border-radius: 24px;
    padding: 28px;
    text-align: center;
    color: #707070;
}

.agenda-empty i {
    color: #d90012;
    margin-right: 6px;
}

.agenda-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 28px;
}

/* Carte : date | image | texte */
.agenda-card {
    display: grid;
    grid-template-columns: 170px 300px minmax(0, 1fr);
    background: #ffffff;
    border: 1px solid #eeeeee;
    border-radius: 24px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    transition: all 0.3s ease;
}

.agenda-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(217, 0, 18, 0.10);
    border-color: #f5c2c5;
}

.agenda-card-date {
    background: linear-gradient(135deg, #d90012 0%, #8c000c 100%);
    color: #ffffff;
    padding: 28px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.agenda-days {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.1;
}

.agenda-month {
    font-size: 1rem;
    font-weight: 600;
    margin-top: 6px;
    opacity: 0.9;
}

.agenda-card-media {
    display: block;
    overflow: hidden;
    background: #fde8e9;
}

.agenda-card-media img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 220px;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.35s ease;
}

.agenda-card:hover .agenda-card-media img {
    transform: scale(1.05);
}

.agenda-card-body {
    padding: 26px 28px;
    display: flex;
    flex-direction: column;
}

.agenda-location {
    font-size: 0.85rem;
    font-weight: 600;
    color: #707070;
    margin-bottom: 10px;
}

.agenda-location i {
    color: #d90012;
    margin-right: 4px;
}

.agenda-card-title {
    font-size: 1.3rem;
    line-height: 1.3;
    color: #2b2b2b;
    margin: 0 0 10px;
}

.agenda-card-title a {
    color: inherit;
    transition: color 0.2s ease;
}

.agenda-card-title a:hover {
    color: #d90012;
}

.agenda-card-text {
    font-size: 0.95rem;
    color: #555555;
    margin: 0 0 16px;
}

.agenda-readmore {
    margin-top: auto;
    align-self: flex-start;
    color: #d90012;
    font-weight: 700;
    font-size: 0.9rem;
}

.agenda-readmore i {
    margin-left: 6px;
    transition: transform 0.2s ease;
}

.agenda-readmore:hover i {
    transform: translateX(4px);
}

@media (max-width: 1199px) {
    .agenda-card {
        grid-template-columns: 150px 240px minmax(0, 1fr);
    }
}

@media (max-width: 991px) {
    .agenda-card {
        grid-template-columns: 140px minmax(0, 1fr);
    }

    .agenda-card-media {
        grid-column: 2;
        grid-row: 1;
    }

    .agenda-card-body {
        grid-column: 1 / -1;
    }
}

@media (max-width: 575px) {
    .agenda-card {
        grid-template-columns: 1fr;
    }

    .agenda-card-date {
        flex-direction: row;
        justify-content: flex-start;
        gap: 10px;
        padding: 14px 20px;
    }

    .agenda-days {
        font-size: 1.5rem;
    }

    .agenda-month {
        margin-top: 0;
    }

    .agenda-card-media,
    .agenda-card-body {
        grid-column: auto;
        grid-row: auto;
    }

    .agenda-card-media img {
        min-height: 0;
        aspect-ratio: 16 / 10;
    }

    .agenda-card-body {
        padding: 22px 20px;
    }

    .agenda-section-head h3 {
        font-size: 1.35rem;
    }
}

/* ----- ACTUALITE (cartes harmonisees avec le reste du site) ----- */
.actu-columns {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 40px;
    align-items: start;
}

.actu-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 28px;
}

/* Carte d'article : image | texte */
.actu-card {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    background: #ffffff;
    border: 1px solid #eeeeee;
    border-radius: 24px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    transition: all 0.3s ease;
}

.actu-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(217, 0, 18, 0.10);
    border-color: #f5c2c5;
}

.actu-card--text-only {
    grid-template-columns: 1fr;
}

.actu-card-media {
    display: block;
    overflow: hidden;
    background: #fde8e9;
}

.actu-card-media img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 220px;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.35s ease;
}

.actu-card:hover .actu-card-media img {
    transform: scale(1.05);
}

.actu-card-body {
    padding: 26px 28px;
    display: flex;
    flex-direction: column;
}

.actu-card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
    margin-bottom: 12px;
}

.actu-badge {
    display: inline-block;
    background: #d90012;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 40px;
}

.actu-badge--soft {
    background: #fde8e9;
    color: #d90012;
}

.actu-card-date {
    font-size: 0.85rem;
    font-weight: 600;
    color: #707070;
}

.actu-card-date i {
    margin-right: 4px;
}

.actu-card-title {
    font-size: 1.3rem;
    line-height: 1.3;
    margin-bottom: 10px;
    color: #2b2b2b;
}

.actu-card-title a {
    color: inherit;
    transition: color 0.2s ease;
}

.actu-card-title a:hover {
    color: #d90012;
}

.actu-card-text {
    color: #555555;
    font-size: 0.95rem;
    margin-bottom: 16px;
}

.actu-card-author {
    font-size: 0.85rem;
    color: #707070;
    margin-bottom: 12px;
}

.actu-readmore {
    margin-top: auto;
    align-self: flex-start;
    color: #d90012;
    font-weight: 700;
    font-size: 0.9rem;
}

.actu-readmore i {
    margin-left: 6px;
    transition: transform 0.2s ease;
}

.actu-readmore:hover i {
    transform: translateX(4px);
}

/* Pagination */
.actu-pager {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 16px 24px;
    margin-top: 48px;
}

.actu-pager-count {
    color: #707070;
    font-weight: 600;
}

/* Colonne laterale */
.actu-aside {
    position: sticky;
    top: 110px;
    display: grid;
    gap: 24px;
}

.actu-aside-block {
    background: #ffffff;
    border: 1px solid #eeeeee;
    border-radius: 24px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.04);
    padding: 26px 24px;
}

.actu-aside-title {
    font-size: 1.15rem;
    color: #2b2b2b;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #d90012;
    display: inline-block;
}

.actu-aside-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.actu-aside-links li + li {
    border-top: 1px solid #eeeeee;
}

.actu-aside-links a {
    display: block;
    padding: 10px 0;
    color: #2b2b2b;
    font-weight: 600;
    transition: color 0.2s ease;
}

.actu-aside-links a i {
    color: #d90012;
    font-size: 0.75rem;
    margin-right: 6px;
}

.actu-aside-links a:hover {
    color: #d90012;
}

.actu-tags {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.actu-aside-cta {
    background: linear-gradient(135deg, #fff5f5 0%, #f3e3e4 100%);
    border-color: #f5c2c5;
}

.actu-aside-cta p {
    color: #555555;
    font-size: 0.95rem;
    margin-bottom: 18px;
}

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

    .actu-aside {
        position: static;
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }
}

@media (max-width: 767px) {
    .actu-card {
        grid-template-columns: 1fr;
    }

    .actu-card-media img {
        min-height: 0;
        aspect-ratio: 16 / 10;
    }

    .actu-card-body {
        padding: 22px 20px;
    }
}

/* ----- CONTENU GADEF (accueil, a propos, president, contact) ----- */
.hero-image img {
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.home-eyebrow {
    display: inline-block;
    color: #707070;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 10px;
}

/* Evenement a venir */
.home-event {
    padding: 70px 0;
    background: #ffffff;
}

.home-event-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: 50px;
    align-items: center;
}

.home-event-content h2 {
    font-size: 2rem;
    color: #2b2b2b;
    margin-bottom: 16px;
}

.home-event-content p {
    color: #555555;
    margin-bottom: 14px;
}

.home-event-content .home-event-date {
    font-weight: 600;
    color: #d90012;
    margin-bottom: 6px;
}

.home-event-date i {
    width: 20px;
    color: #707070;
}

.home-event-content .btn-primary {
    margin-top: 10px;
}

.home-event-media img {
    display: block;
    width: 100%;
    max-height: 420px;
    object-fit: contain;
    border-radius: 20px;
    background: #fde8e9;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

/* Bloc texte + image */
.about-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
    gap: 50px;
    align-items: center;
}

.about-split-media img {
    display: block;
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.about-split-media--logo img {
    background: #ffffff;
    padding: 20px;
}

.about-split-text h2 {
    font-size: 2rem;
    color: #2b2b2b;
    margin-bottom: 18px;
}

.about-split-text p {
    color: #555555;
    margin-bottom: 16px;
    line-height: 1.7;
}

.about-split-text .btn-outline {
    margin-top: 8px;
}

.missions--alt {
    background: #ffffff;
}

/* Cartes cliquables */
a.mission-card {
    display: block;
    color: inherit;
}

.contact-cards a {
    color: #d90012;
}

/* Drapeaux des pays membres */
.flags-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 22px 18px;
}

.flags-grid li {
    text-align: center;
}

.flags-grid img {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    border: 1px solid #eeeeee;
}

.flags-grid span {
    display: block;
    margin-top: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #2b2b2b;
}

/* Mot du president */
.president-layout {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 50px;
    align-items: start;
}

.president-card {
    position: sticky;
    top: 110px;
    background: #ffffff;
    border-radius: 24px;
    padding: 20px 20px 24px;
    text-align: center;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.05);
    border: 1px solid #eeeeee;
}

.president-card img {
    display: block;
    width: 100%;
    border-radius: 16px;
    margin-bottom: 16px;
}

.president-card .author {
    font-weight: 700;
    color: #2b2b2b;
    font-size: 1.1rem;
}

.president-card .role {
    color: #5f5f5f;
    font-size: 0.9rem;
}

.president-text p {
    color: #555555;
    line-height: 1.8;
    margin-bottom: 18px;
}

.president-quote {
    margin: 28px 0;
    padding: 18px 24px;
    border-left: 4px solid #707070;
    background: #ffffff;
    border-radius: 0 14px 14px 0;
    font-size: 1.15rem;
    font-style: italic;
    color: #2b2b2b;
}

@media (max-width: 991px) {
    .home-event-grid,
    .about-split,
    .president-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .president-card {
        position: static;
        max-width: 320px;
        margin: 0 auto;
    }
}

@media (max-width: 575px) {
    .flags-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px 12px;
    }

    .home-event-content h2,
    .about-split-text h2 {
        font-size: 1.6rem;
    }
}

/* ----- TESTIMONIAL ----- */
.testimonial {
    background: #ffffff;
    padding: 70px 0;
    border-top: 1px solid #eaeaea;
}

.testimonial-box {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    background: #f8f8f8;
    padding: 40px 50px;
    border-radius: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
}

.testimonial-box i {
    font-size: 2.4rem;
    color: #f5b8bc;
    margin-bottom: 12px;
}

.testimonial-box blockquote {
    font-size: 1.3rem;
    font-weight: 500;
    color: #262626;
    margin: 12px 0 18px;
    line-height: 1.5;
}

.testimonial-box .author {
    font-weight: 600;
    color: #d90012;
}

.testimonial-box .role {
    font-size: 0.9rem;
    color: #666666;
}

/* ----- CALL TO ACTION (FINAL) ----- */
.cta-section {
    background: linear-gradient(135deg, #d90012 0%, #8c000c 100%);
    padding: 70px 0 60px;
    color: white;
    text-align: center;
}

.cta-section h2 {
    font-size: 2.6rem;
    font-weight: 700;
    margin-bottom: 14px;
}

.cta-section p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 550px;
    margin: 0 auto 32px;
}

.cta-section .btn-primary {
    background: #ffffff;
    border-color: #ffffff;
    color: #d90012;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
    font-size: 1.1rem;
    padding: 14px 44px;
}

.cta-section .btn-primary:hover {
    background: #f3f3f3;
    color: #b0000f;
    transform: scale(1.02);
}

/* ----- FOOTER ----- */
footer {
    background: #1f1f1f;
    color: #d6d6d6;
    padding: 40px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
}

.footer-brand p {
    max-width: 300px;
    margin-top: 0;
    font-size: 0.95rem;
}

.footer-col h4,
.footer-brand h4 {
    color: #fff;
    font-weight: 600;
    margin-bottom: 14px;
    font-size: 1.1rem;
}

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

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul a {
    color: #bdbdbd;
    transition: color 0.2s;
}

.footer-col ul a:hover {
    color: #ffffff;
}

.social-icons {
    display: flex;
    gap: 16px;
    margin-top: 12px;
}

.social-icons a {
    background: #2e2e2e;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #d6d6d6;
    transition: 0.2s;
}

.social-icons a:hover {
    background: #d90012;
    color: #fff;
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid #333333;
    padding-top: 24px;
    text-align: center;
    font-size: 0.9rem;
    color: #9a9a9a;
}

/* ----- RESPONSIVE ----- */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-actions {
        justify-content: center;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        gap: 16px;
        padding: 20px 0 10px;
        border-top: 1px solid #eaeaea;
        margin-top: 12px;
    }
    .nav-links.active {
        display: flex;
    }
    .menu-toggle {
        display: block;
    }
    /* Sous-menu en accordeon sur mobile */
    .nav-links .submenu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        margin: 8px 0 0;
        padding: 0 0 0 16px;
        min-width: 0;
        display: none;
    }
    .nav-links .has-submenu.open .submenu {
        display: block;
    }
    .nav-links .has-submenu.open .submenu-toggle i {
        transform: rotate(180deg);
    }
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
    .stat-item h3 {
        font-size: 2rem;
    }
    .hero-content h1 {
        font-size: 2.4rem;
    }
    .testimonial-box {
        padding: 28px 20px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    .hero {
        padding: 50px 0;
    }
    .mission-card {
        padding: 24px 16px;
    }
    .cta-section h2 {
        font-size: 2rem;
    }
}

/* ----- DETAIL D'UN EVENEMENT / D'UN ARTICLE ----- */
.event-detail {
    display: grid;
    grid-template-columns: 380px minmax(0, 1fr);
    gap: 50px;
    align-items: start;
}

.event-detail-media img {
    display: block;
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.05);
    border: 1px solid #eeeeee;
    background: #ffffff;
}

.event-detail-meta {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 24px;
    margin-bottom: 20px;
    font-weight: 600;
    color: #2b2b2b;
}

.event-detail-meta i {
    color: #d90012;
    margin-right: 6px;
}

.event-detail-content p,
.event-detail-content ul,
.event-detail-content ol {
    color: #555555;
    line-height: 1.8;
    margin-bottom: 18px;
}

.event-detail-content ul,
.event-detail-content ol {
    padding-left: 22px;
}

.event-detail-content strong {
    color: #2b2b2b;
}

.event-back {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

@media (max-width: 991px) {
    .event-detail {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
    }

    .event-detail-media {
        max-width: 420px;
    }
}

/* ----- CONTACT : FORMULAIRE + CARTE ----- */
.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 40px;
    align-items: stretch;
    margin-top: 50px;
}

.contact-layout .contact-form {
    max-width: none;
    margin: 0;
    background: #ffffff;
    border: 1px solid #eeeeee;
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.05);
}

.contact-form-title {
    font-size: 1.4rem;
    color: #2b2b2b;
}

.form-alert {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 0.95rem;
}

.form-alert ul {
    list-style: none;
}

.form-alert i {
    margin-top: 4px;
}

.form-alert--success {
    background: #eaf7ee;
    color: #1e6b34;
    border: 1px solid #bfe5cb;
}

.form-alert--error {
    background: #fdecee;
    color: #a3000e;
    border: 1px solid #f5c2c7;
}

.form-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.captcha-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.captcha-row img {
    border: 1px solid #d9d9d9;
    border-radius: 12px;
    background: #f8f8f8;
}

.captcha-refresh {
    width: 44px;
    height: 44px;
    border: 1px solid #d9d9d9;
    border-radius: 50%;
    background: #ffffff;
    color: #2b2b2b;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s, transform 0.3s;
}

.captcha-refresh:hover {
    color: #d90012;
    border-color: #d90012;
    transform: rotate(90deg);
}

.contact-form .captcha-row input {
    flex: 1 1 160px;
    width: auto;
    text-transform: uppercase;
    letter-spacing: 4px;
    font-weight: 600;
}

.contact-map {
    display: flex;
    flex-direction: column;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid #eeeeee;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.05);
    background: #ffffff;
    min-height: 420px;
}

.contact-map iframe {
    flex: 1;
    width: 100%;
    min-height: 380px;
    border: 0;
    display: block;
}

.contact-map-link {
    padding: 14px 20px;
    font-weight: 600;
    color: #2b2b2b;
    border-top: 1px solid #eeeeee;
}

.contact-map-link i {
    color: #d90012;
    margin-right: 6px;
}

.contact-map-link:hover {
    color: #d90012;
}

@media (max-width: 991px) {
    .contact-layout {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 575px) {
    .contact-layout .contact-form {
        padding: 22px 18px;
    }

    .contact-map iframe {
        min-height: 300px;
    }
}

/* ----- PAGE EN COURS DE CREATION ----- */
.page-wip {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
    background: #ffffff;
    border: 1px solid #eeeeee;
    border-radius: 24px;
    padding: 48px 32px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.05);
}

.page-wip-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #d90012;
    background: rgba(217, 0, 18, 0.08);
}

.page-wip h3 {
    font-size: 1.4rem;
    color: #2b2b2b;
    margin-bottom: 10px;
}

.page-wip p {
    color: #555555;
}

.page-wip .event-back {
    justify-content: center;
}

@media (max-width: 575px) {
    .page-wip {
        padding: 36px 20px;
    }
}

/* ----- GALERIE : FILTRES, MOSAIQUE, VISIONNEUSE ----- */
.gallery-toolbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 36px;
}

.gallery-filter {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border: 1px solid #e2e2e2;
    border-radius: 999px;
    background: #ffffff;
    color: #2b2b2b;
    font: inherit;
    font-weight: 600;
    font-size: 0.92rem;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.gallery-filter i {
    color: #d90012;
    transition: color 0.2s;
}

.gallery-filter:hover {
    border-color: #d90012;
}

.gallery-filter.is-active {
    background: #d90012;
    border-color: #d90012;
    color: #ffffff;
}

.gallery-filter.is-active i {
    color: #ffffff;
}

.gallery-count {
    min-width: 24px;
    padding: 1px 7px;
    border-radius: 999px;
    background: #f1f1f1;
    color: #5f5f5f;
    font-size: 0.78rem;
    text-align: center;
}

.gallery-filter.is-active .gallery-count {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

.gallery-masonry {
    column-count: 4;
    column-gap: 18px;
}

.gallery-item {
    break-inside: avoid;
    margin: 0 0 18px;
    border-radius: 16px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
    animation: gallery-in 0.35s ease;
}

.gallery-item[hidden] {
    display: none;
}

@keyframes gallery-in {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: none; }
}

.gallery-link {
    position: relative;
    display: block;
    overflow: hidden;
}

.gallery-link img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.4s ease;
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
    padding: 14px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0) 55%);
    color: #ffffff;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-overlay i {
    font-size: 1.2rem;
}

.gallery-tag {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(217, 0, 18, 0.9);
}

.gallery-link:hover img,
.gallery-link:focus-visible img {
    transform: scale(1.05);
}

.gallery-link:hover .gallery-overlay,
.gallery-link:focus-visible .gallery-overlay {
    opacity: 1;
}

.gallery-link:focus-visible {
    outline: 3px solid #d90012;
    outline-offset: -3px;
}

.gallery-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 16px 24px;
    margin-top: 40px;
    padding: 24px;
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid #eeeeee;
    text-align: center;
    color: #555555;
}

.gallery-cta i {
    color: #d90012;
    margin-right: 6px;
}

body.lightbox-open {
    overflow: hidden;
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 80px;
    background: rgba(10, 10, 10, 0.92);
}

.lightbox[hidden] {
    display: none;
}

.lightbox-figure {
    margin: 0;
    max-width: 100%;
    max-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-img {
    max-width: 100%;
    max-height: calc(100vh - 160px);
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    animation: gallery-in 0.25s ease;
}

.lightbox-caption {
    display: flex;
    gap: 16px;
    margin-top: 14px;
    color: #e6e6e6;
    font-size: 0.95rem;
}

.lightbox-counter {
    color: #a0a0a0;
}

.lightbox-btn {
    position: absolute;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background 0.2s;
}

.lightbox-btn:hover,
.lightbox-btn:focus-visible {
    background: #d90012;
    outline: none;
}

.lightbox-close {
    top: 16px;
    right: 16px;
}

.lightbox-prev {
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
}

@media (max-width: 1199px) {
    .gallery-masonry { column-count: 3; }
}

@media (max-width: 767px) {
    .gallery-masonry { column-count: 2; column-gap: 12px; }
    .gallery-item { margin-bottom: 12px; }
    .gallery-overlay { opacity: 1; background: linear-gradient(to top, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0) 45%); }
    .gallery-overlay i { display: none; }
    .gallery-tag { font-size: 0.7rem; padding: 3px 8px; }
    .lightbox { padding: 60px 12px 90px; }
    .lightbox-prev, .lightbox-next { top: auto; bottom: 20px; transform: none; }
    .lightbox-prev { left: calc(50% - 60px); }
    .lightbox-next { right: calc(50% - 60px); }
}

@media (max-width: 420px) {
    .gallery-masonry { column-count: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .gallery-item, .lightbox-img { animation: none; }
    .gallery-link img { transition: none; }
}
