:root {
    --primary: #E91E63;
    --secondary: #C2185B;
    --accent: #FF4081;
    --dark: #1A1A2E;
    --light: #FCE4EC;
    --gray: #8B8C9E;
    --pink-light: #F8BBD0;
    --pink-dark: #880E4F;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Work Sans', sans-serif;
    color: var(--dark);
    overflow-x: hidden;
    background: var(--light);
    line-height: 1.6;
}

/* ==================== NAVIGATION ==================== */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem 5%;
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
}

nav.scrolled {
    padding: 0.7rem 5%;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.nav-logo:hover {
    transform: scale(1.05);
}

.nav-logo img {
    height: 50px;
    width: 50px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

nav.scrolled .nav-logo img {
    height: 40px;
    width: 40px;
}

.nav-logo span {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5rem;
    color: white;
    letter-spacing: 0.05em;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0rem;
    flex-wrap: wrap;
    margin: 0;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    position: relative;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem;
}

nav ul a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--primary);
    transition: width 0.3s ease;
}

nav ul a:hover,
nav ul a.active {
    color: var(--primary);
}

nav ul a:hover::after,
nav ul a.active::after {
    width: 80%;
}

.btn-inscription {
    background: var(--primary);
    color: white !important;
    padding: 0.7rem 1.5rem !important;
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(233, 30, 99, 0.3);
}

.btn-inscription::after {
    display: none;
}

.btn-inscription:hover {
    background: var(--accent);
    color: white !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(233, 30, 99, 0.5);
}

/* ==================== HERO SECTION ==================== */
.hero {
    position: relative;
    height: 100vh;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--pink-dark) 100%);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 50px,
            rgba(233, 30, 99, 0.03) 50px,
            rgba(233, 30, 99, 0.03) 51px
        ),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 50px,
            rgba(233, 30, 99, 0.03) 50px,
            rgba(233, 30, 99, 0.03) 51px
        );
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
}

.hero h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(3rem, 12vw, 8rem);
    color: white;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    animation: slideDown 1s ease-out;
    text-shadow: 4px 4px 0 var(--primary);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-100px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-subtitle {
    font-family: 'Righteous', sans-serif;
    font-size: clamp(1.2rem, 3vw, 2rem);
    color: var(--accent);
    margin-bottom: 2rem;
    animation: fadeIn 1s ease-out 0.3s both;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.hero-tagline {
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: var(--light);
    margin-bottom: 3rem;
    font-weight: 300;
    animation: fadeIn 1s ease-out 0.6s both;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeIn 1s ease-out 0.9s both;
}

.cta-button {
    display: inline-block;
    padding: 1.2rem 3rem;
    background: var(--primary);
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(233, 30, 99, 0.4);
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}

.cta-button:hover::before {
    width: 300px;
    height: 300px;
}

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(233, 30, 99, 0.6);
}

.cta-secondary {
    background: transparent;
    border: 3px solid var(--accent);
    color: var(--accent);
}

.cta-secondary:hover {
    background: var(--accent);
    color: var(--dark);
}

.running-track {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: repeating-linear-gradient(
        90deg,
        var(--primary) 0px,
        var(--primary) 40px,
        transparent 40px,
        transparent 80px
    );
    opacity: 0.3;
    animation: trackMove 2s linear infinite;
}

@keyframes trackMove {
    0% { transform: translateX(0); }
    100% { transform: translateX(-80px); }
}

/* Particle Effect */
.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--accent);
    border-radius: 50%;
    opacity: 0.6;
    animation: particleFloat 8s infinite;
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-100px) translateX(100px);
        opacity: 0;
    }
}

/* ==================== QUICK INFO SECTION ==================== */
.quick-info {
    background: white;
    padding: 4rem 5%;
}

.info-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.info-card {
    text-align: center;
    padding: 2rem;
    border-radius: 15px;
    background: var(--light);
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.info-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.info-card h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.8rem;
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.info-card p {
    color: var(--gray);
}


/* ==================== CTA SECTION ==================== */
.cta-section {
    background: linear-gradient(135deg, var(--pink-dark) 0%, var(--secondary) 100%);
    padding: 5rem 5%;
    text-align: center;
    color: white;
}

.cta-content h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: 1rem;
}

.cta-content > p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-button-large {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 3.5rem;
    background: var(--primary);
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.3rem;
    border-radius: 60px;
    transition: all 0.4s ease;
    box-shadow: 0 15px 40px rgba(233, 30, 99, 0.5);
}

.cta-button-large:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 20px 50px rgba(233, 30, 99, 0.7);
}

.cta-button-large .arrow {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.cta-button-large:hover .arrow {
    transform: translateX(10px);
}

.cta-info {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    opacity: 0.7;
}

/* ==================== PAGE HEADER ==================== */
.page-header {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--pink-dark) 100%);
    color: white;
    text-align: center;
    padding: 8rem 5% 4rem;
    margin-top: 70px;
}

.page-header h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2.5rem, 8vw, 5rem);
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.3rem;
    opacity: 0.9;
}

/* ==================== CONTENT SECTIONS ==================== */
.content-section {
    padding: 5rem 5%;
    background: white;
}

.content-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title,
.content-container h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--primary);
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
}

.section-title::after,
.content-container h2::after {
    content: '';
    display: block;
    width: 100px;
    height: 5px;
    background: var(--primary);
    margin: 1rem auto;
}

.lead {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--gray);
    text-align: center;
    margin-bottom: 3rem;
}

.highlight {
    color: var(--primary);
    font-weight: 700;
}

/* ==================== ABOUT PAGE ==================== */
.about-intro {
    text-align: center;
    margin-bottom: 4rem;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.about-card {
    background: var(--light);
    padding: 2.5rem;
    border-radius: 20px;
    transition: all 0.4s ease;
}

.about-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.card-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.about-card h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.8rem;
    color: var(--secondary);
    margin-bottom: 1rem;
}

.about-card p {
    line-height: 1.7;
    color: var(--gray);
}

.values-section {
    background: var(--light);
    padding: 3rem;
    border-radius: 20px;
    margin-bottom: 3rem;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.value-item {
    text-align: center;
}

.value-item h4 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.value-item p {
    color: var(--gray);
}

/* ==================== SCHEDULE / TRAINING ==================== */
.schedule-intro {
    text-align: center;
    margin-bottom: 4rem;
}

.schedule-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-bottom: 4rem;
}

.schedule-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.schedule-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--primary);
    transform: scaleY(0);
    transition: transform 0.4s ease;
}

.schedule-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.schedule-card:hover::before {
    transform: scaleY(1);
}

.day-badge {
    display: inline-block;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2rem;
    color: white;
    background: var(--secondary);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    margin-bottom: 1rem;
}

.schedule-time {
    font-size: 1.5rem;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 1rem;
}

.schedule-card h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.8rem;
    color: var(--dark);
    margin-bottom: 1rem;
}

.schedule-details p {
    color: var(--gray);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.benefits-list {
    list-style: none;
    margin-bottom: 1rem;
}

.benefits-list li {
    padding: 0.5rem 0;
    color: var(--dark);
}

.coach-info {
    background: var(--light);
    padding: 1rem;
    border-radius: 10px;
    margin-top: 1rem;
    font-size: 0.95rem;
}

.training-info {
    margin-top: 4rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.info-box {
    background: var(--light);
    padding: 2rem;
    border-radius: 15px;
}

.info-box h4 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5rem;
    color: var(--secondary);
    margin-bottom: 1rem;
}

.info-box p {
    color: var(--gray);
    line-height: 1.6;
}

/* ==================== EVENT PAGE ==================== */
.event-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    padding: 8rem 5% 4rem;
    margin-top: 70px;
    text-align: center;
    color: white;
}

.event-icon {
    font-size: 5rem;
    margin-bottom: 1rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.event-hero h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2.5rem, 8vw, 5rem);
    margin-bottom: 0.5rem;
}

.event-subtitle {
    font-size: 1.3rem;
    opacity: 0.9;
}

.event-intro {
    text-align: center;
    margin-bottom: 4rem;
}

.event-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.event-detail-card {
    background: linear-gradient(135deg, var(--light) 0%, white 100%);
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.event-detail-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.detail-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.event-detail-card h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.8rem;
    color: var(--secondary);
    margin-bottom: 1rem;
}

.event-detail-card p {
    color: var(--dark);
    font-weight: 600;
}

.detail-note {
    color: var(--gray) !important;
    font-weight: 400 !important;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.parcours-section {
    margin: 4rem 0;
}

.parcours-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.parcours-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    border: 2px solid var(--light);
    transition: all 0.3s ease;
}

.parcours-featured {
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.2);
}

.parcours-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.parcours-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.parcours-card h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2rem;
    color: var(--secondary);
}

.parcours-badge {
    background: var(--secondary);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
}

.badge-challenge {
    background: var(--primary);
}

.parcours-features {
    list-style: none;
    margin-top: 1.5rem;
}

.parcours-features li {
    padding: 0.5rem 0;
    color: var(--dark);
}

.programme-section {
    margin: 4rem 0;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 3rem auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: var(--primary);
}

.timeline-item {
    display: flex;
    align-items: center;
    margin-bottom: 3rem;
    position: relative;
}

.timeline-time {
    flex: 0 0 100px;
    text-align: right;
    padding-right: 2rem;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5rem;
    color: var(--primary);
}

.timeline-content {
    flex: 1;
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    margin-left: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.timeline-content h4 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5rem;
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.timeline-content p {
    color: var(--gray);
}

.event-highlights {
    margin: 4rem 0;
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.highlight-item {
    text-align: center;
}

.highlight-emoji {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
}

.highlight-item h4 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5rem;
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.highlight-item p {
    color: var(--gray);
}

.inscription-info {
    margin: 4rem 0;
}

.info-banner {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    color: white;
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
}

.info-banner h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.info-banner p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.info-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.info-btn {
    background: white;
    color: var(--secondary);
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
}

.info-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* ==================== CONTACT PAGE ==================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
	align-items: center; /* C'EST CETTE LIGNE QUI FAIT TOUT LE TRAVAIL */
}

/* Optionnel : Pour être sûr que sur mobile cela repasse l'un en dessous de l'autre */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        align-items: stretch; /* On remet l'alignement normal sur mobile */
    }
}


.contact-cards {
    display: grid;
    gap: 2rem;
    margin-bottom: 3rem;
}

.contact-method-card {
    background: var(--light);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
}

.contact-method-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.contact-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.contact-method-card h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5rem;
    color: var(--secondary);
    margin-bottom: 1rem;
}

.contact-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: var(--secondary);
}

.contact-note {
    color: var(--gray);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.social-section {
    background: var(--light);
    padding: 2rem;
    border-radius: 15px;
}

.social-section h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.8rem;
    color: var(--secondary);
    margin-bottom: 1rem;
}

.social-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.social-button {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.social-button:hover {
    transform: translateX(10px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.social-button .social-icon {
    font-size: 2.5rem;
}

.social-text {
    display: flex;
    flex-direction: column;
}

.social-text strong {
    color: var(--dark);
    font-size: 1.1rem;
}

.social-text span {
    color: var(--gray);
    font-size: 0.9rem;
}

.inscription-section {
    position: sticky;
    top: 100px;
}

.inscription-card {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--pink-dark) 100%);
    color: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.inscription-card h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.inscription-card h2::after {
    background: var(--accent);
}

.inscription-intro {
    margin-bottom: 2rem;
    opacity: 0.95;
}

.inscription-benefits h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.benefits-list-contact {
    list-style: none;
    margin-bottom: 2rem;
}

.benefits-list-contact li {
    padding: 0.8rem 0;
    font-size: 1.05rem;
}

.inscription-cta {
    margin-top: 2rem;
}

.cta-button-inscription {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--primary);
    color: white;
    padding: 1.5rem 2rem;
    border-radius: 60px;
    text-decoration: none;
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(233, 30, 99, 0.4);
    margin-bottom: 1rem;
}

.cta-button-inscription:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(233, 30, 99, 0.6);
}

.cta-icon {
    font-size: 2rem;
}

.cta-text {
    flex: 1;
    text-align: left;
    margin-left: 1rem;
}

.cta-text strong {
    display: block;
    font-size: 1.2rem;
}

.cta-text span {
    font-size: 0.9rem;
    opacity: 0.9;
}

.cta-arrow {
    font-size: 1.5rem;
}

.cta-security {
    text-align: center;
    font-size: 0.85rem;
    opacity: 0.8;
}

.faq-section {
    margin: 4rem 0;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.faq-item {
    background: var(--light);
    padding: 2rem;
    border-radius: 15px;
}

.faq-item h4 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.3rem;
    color: var(--secondary);
    margin-bottom: 1rem;
}

.faq-item p {
    color: var(--gray);
    line-height: 1.6;
}

.map-section {
    background: var(--light);
    padding: 3rem;
    border-radius: 20px;
}

.map-info {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.map-info p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--gray);
}

.location-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.location-item {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    color: var(--dark);
}

/* ==================== CTA BOX ==================== */
.cta-box {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 4rem;
    border-radius: 30px;
    text-align: center;
    margin-top: 4rem;
}

.cta-box h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-box p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

/* ==================== FOOTER ==================== */
footer {
    background: var(--dark);
    color: var(--light);
    padding: 3rem 5% 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto 2rem;
}

.footer-section h4 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--primary);
}

.footer-section .social-links {
    display: flex;
    gap: 1rem;
}

.footer-section .social-links a {
    width: 50px;
    height: 50px;
    background: var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.footer-section .social-links a:hover {
    background: var(--primary);
    transform: scale(1.2);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--gray);
    font-size: 0.9rem;
}

/* ==================== ANIMATIONS ==================== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .inscription-section {
        position: static;
    }

    .timeline::before {
        left: 30px;
    }

    .timeline-item {
        flex-direction: column;
        align-items: flex-start;
        margin-left: 30px;
    }

    .timeline-time {
        text-align: left;
        padding-right: 0;
        margin-bottom: 0.5rem;
    }

    .timeline-content {
        margin-left: 0;
    }

    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }

    nav ul {
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    nav ul {
        gap: 1rem;
    }

    .nav-container {
        flex-direction: column;
    }

    .nav-logo {
        margin-bottom: 0.5rem;
    }

    .nav-logo img {
        height: 45px;
        width: 45px;
    }

    .nav-logo span {
        font-size: 1.3rem;
    }

    .hero h1 {
        text-shadow: 2px 2px 0 var(--primary);
    }

    .hero-buttons {
        flex-direction: column;
    }

    section {
        padding: 3rem 5%;
    }

    .page-header {
        padding: 6rem 5% 3rem;
    }

    .schedule-grid,
    .about-grid,
    .event-details-grid {
        grid-template-columns: 1fr;
    }

    .info-grid,
    .faq-grid {
        grid-template-columns: 1fr;
    }

    .social-button {
        padding: 1.2rem;
    }

    .cta-button-inscription {
        padding: 1.2rem 1.5rem;
    }

    .cta-box {
        padding: 2.5rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .cta-button-large {
        padding: 1.2rem 2rem;
        font-size: 1.1rem;
    }

    .timeline {
        margin-left: 10px;
    }

    .timeline::before {
        left: 15px;
    }

    .timeline-item {
        margin-left: 15px;
    }
}
/* Styles pour la Galerie */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.photo-item {
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.photo-item:hover img {
    transform: scale(1.1);
}

/* Styles pour les Évènements */
.event-card.special {
    background: var(--dark);
    color: white;
    padding: 3rem;
    border-radius: 20px;
    border-left: 8px solid var(--primary);
    margin-bottom: 3rem;
}

.event-badge {
    background: var(--primary);
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-family: 'Bebas Neue';
    margin-bottom: 1rem;
}

.mini-event {
    background: white;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-radius: 10px;
    display: flex;
    gap: 2rem;
    align-items: center;
}

/* Espace entre le titre de la page et l'évènement phare */
.events-container {
    padding: 100px 10% 50px; /* 100px en haut pour bien séparer du header */
    max-width: 1200px;
    margin: 0 auto;
}

/* On donne encore plus d'importance à la carte de Madrid */
.event-card.special {
    background: var(--dark);
    color: white;
    padding: 4rem; /* Plus d'espace à l'intérieur de la carte */
    border-radius: 30px;
    border-left: 10px solid var(--primary);
    margin-bottom: 80px; /* Espace important avant la suite de la liste */
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

/* Style pour le texte de date sous le titre Madrid */
.event-date {
    color: var(--primary);
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* Logo en gros plan en fond sur l'accueil */
.hero {
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: 10%;
    left: 28%;
    transform: translate(-50%, -50%);
    width: 1100px; /* Taille du gros logo */
    height: 1100px;
    background-image: url('logo_apa.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.1; /* Transparence (0.1 = très discret, 0.2 = plus visible) */
    z-index: 0;
    pointer-events: none; /* Pour ne pas gêner les clics sur les boutons */
}


}

/* --- SECTION RÉSULTATS CHANDELEUR --- */
.results-section {
    padding: 4rem 5%;
    background: var(--light);
    text-align: center;
}

.results-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.btn-pdf {
    display: flex;
    align-items: center;
    gap: 10px;
    background: white;
    color: var(--secondary);
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    border: 2px solid var(--primary);
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.btn-pdf:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(233, 30, 99, 0.3);
}

.btn-pdf .icon {
    font-size: 1.4rem;
}

@media (max-width: 600px) {
    .results-buttons {
        flex-direction: column;
        align-items: center;
    }
    .btn-pdf {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

/* Bouton spécifique pour le Marathon de Poitiers */
.marathon-btn {
    background: #004A99; /* Un bleu qui rappelle souvent le Futuroscope/Poitiers */
    color: white !important;
    border: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

@media (max-width: 768px) {
    .events-container,
    .event-card.special,
    .event-content,
    .event-timer,
    .info-buttons,
    .info-btn {
        width: 100%;
        max-width: 100%;
    }

    .events-container {
        padding: 2rem 1rem 1rem;
    }

    .event-card.special {
        padding: 1.5rem;
        margin-bottom: 2rem;
        border-left-width: 6px;
        border-radius: 20px;
    }

    .event-card.special h2,
    .event-card.special p,
    .event-badge,
    .info-btn {
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .countdown-display {
        gap: 0.5rem;
        flex-wrap: wrap;
    }

    .time-unit {
        min-width: 52px;
    }

    .info-btn {
        justify-content: center;
        text-align: center;
        padding: 0.9rem 1rem;
        white-space: normal;
    }
}

.marathon-btn:hover {
    background: #00356B;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.marathon-btn .emoji {
    font-size: 1.2rem;
}

/* ==================== GALERIE PHOTO ==================== */
.gallery-section {
    padding: 4rem 5%;
    background: var(--light);
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.photo-card {
    background: white;
    padding: 10px;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.photo-wrapper {
    width: 100%;
    aspect-ratio: 4 / 3; /* Garde toutes les photos à la même dimension */
    overflow: hidden;
    border-radius: 10px;
}

.photo-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Recadre proprement l'image sans la déformer */
    transition: transform 0.5s ease;
}

/* Effet au survol */
.photo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(233, 30, 99, 0.2);
}

.photo-card:hover img {
    transform: scale(1.1);
}

/* Mobile */
@media (max-width: 1421px) {
    .photo-grid {
        grid-template-columns: 1fr;
    }
}

/* Styles Espace Membre */
.auth-container {
    max-width: 400px;
    margin: 120px auto;
    padding: 40px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    text-align: center;
}

.auth-title {
    font-family: 'Righteous', cursive;
    color: var(--primary);
    margin-bottom: 20px;
}

#loginForm input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 2px solid var(--light);
    border-radius: 10px;
    outline: none;
}

#loginForm input:focus {
    border-color: var(--primary);
}

.hidden {
    display: none !important;
}

.error-msg {
    color: #d32f2f;
    background: #ffcdd2;
    padding: 10px;
    border-radius: 5px;
    margin-top: 15px;
    font-size: 0.85rem;
}

.member-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 40px 5%;
}

/* Style des comptes à rebours d'événements */
.event-timer {
    margin-top: 25px;
    padding: 15px;
    background: rgba(233, 30, 99, 0.05);
    border-radius: 12px;
    border-left: 4px solid var(--primary);
}

.timer-label {
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 10px;
    color: var(--secondary);
    text-transform: uppercase;
}

.countdown-display {
    display: flex;
    gap: 15px;
}

.time-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: white;
    padding: 8px;
    border-radius: 8px;
    min-width: 60px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.time-unit span {
    font-family: 'Righteous', cursive;
    font-size: 1.4rem;
    color: var(--primary);
    line-height: 1;
}

.time-unit small {
    font-size: 0.6rem;
    color: var(--gray);
    text-transform: uppercase;
    font-weight: 600;
}

.event-timer {
    text-align: center;
    max-width: 500px;
    margin: 20px auto; /* Centre le bloc */
}

.countdown-display {
    justify-content: center; /* Centre les unités de temps */
}

/* --- ADAPTATION MOBILE (Écrans de moins de 768px) --- */
@media (max-width: 1421px) {
    
    /* 1. La navigation : on empile les liens */
    .nav-container ul {
        display: none; /* Souvent on utilise un menu burger ici, mais pour commencer : */
        flex-direction: column;
        background: var(--secondary);
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        padding: 20px;
    }

    /* 2. Les grilles (photos, sponsors, compte à rebours) */
    .photo-grid, .event-details-grid, .sponsor-grid {
        grid-template-columns: 1fr !important; /* Force une seule colonne */
        gap: 15px;
    }

    /* 3. Les compteurs (on les réduit un peu) */
    .countdown-display {
        justify-content: center;
        gap: 5px;
    }

    .time-unit {
        min-width: 45px;
        padding: 5px;
    }

    .time-unit span {
        font-size: 1.1rem;
    }

    /* 4. Les textes et titres */
    h1 {
        font-size: 2rem !important;
    }
    
    .page-header {
        padding: 60px 20px;
    }

    /* 5. Les cartes d'événements (Marathon/Trail) */
    .event-card {
        margin: 10px;
        padding: 15px;
    }
}

/* --- LE BOUTON BURGER (Caché par défaut) --- */
.burger-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1000;
}

.burger-menu span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary);
    transition: 0.3s;
}

/* --- MOBILE --- */
@media (max-width: 1421px) {
    .burger-menu {
        display: flex; /* On l'affiche sur mobile */
    }

    .nav-container ul {
        display: none; /* On cache la liste par défaut */
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: white;
        padding: 20px;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        text-align: center;
    }

    /* La classe qui s'activera au clic */
    .nav-container ul.active {
        display: flex; 
    }
}

.burger-menu.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.burger-menu.open span:nth-child(2) { opacity: 0; }
.burger-menu.open span:nth-child(3) { transform: rotate(-45deg) translate(7px, -6px); }

/* --- CORRECTIF MENU MOBILE COMPLET --- */
@media (max-width: 1421px) {
    
    /* 1. On s'assure que la barre de navigation reste en haut */
    .nav-container {
        position: relative;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 20px;
    }

    /* 2. On force l'affichage vertical de TOUTE la liste */
    .nav-container ul#nav-links {
        display: none; /* Caché par défaut */
        flex-direction: column !important; /* Force la colonne */
        position: absolute;
        top: 100%; /* S'affiche juste en dessous du menu */
        left: 0;
        width: 100%;
        background-color: #ffffff; /* Fond blanc pour bien voir les liens */
        padding: 0;
        margin: 0;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        z-index: 9999;
    }

    /* 3. On affiche la liste quand elle est active */
    .nav-container ul#nav-links.active {
        display: flex !important;
    }

    /* 4. On stylise chaque ligne du menu */
    .nav-container ul li {
        width: 100%;
        border-bottom: 1px solid #eee; /* Petite séparation grise entre les liens */
        margin: 0;
    }

    .nav-container ul li a {
        display: block;
        padding: 15px 20px;
        color: #333 !important; /* Couleur sombre pour être lisible sur fond blanc */
        width: 100%;
        text-align: left;
    }

    /* 5. Cas particulier du bouton ADHÉRER */
    .btn-inscription {
        margin: 10px 20px !important;
        display: block !important;
        text-align: center !important;
    }

    /* 6. On affiche les barres du burger */
    .burger-menu {
        display: flex !important;
    }
}

/* --- AJUSTEMENT BOUTON ADHÉRER SUR MOBILE --- */
@media (max-width: 1421px) {

    /* On cible spécifiquement le bouton dans la liste */
    .nav-container ul li a.btn-inscription {
        display: inline-block !important; /* Pour qu'il ne prenne pas toute la ligne */
        width: auto !important;           /* On laisse le texte décider de la largeur */
        min-width: 150px;                /* Mais on garde une taille minimum pour le clic */
        margin: 10px auto !important;     /* On le centre avec auto */
        padding: 10px 20px !important;    /* On réduit un peu le rembourrage interne */
        font-size: 0.9rem !important;     /* On réduit légèrement la taille du texte */
        border-radius: 25px;             /* On garde l'aspect arrondi */
    }

    /* On s'assure que le parent (le <li>) centre bien le bouton */
    .nav-container ul li:last-child {
        text-align: center;
        width: 100%;
        padding-bottom: 15px;
    }
}

/* Cette règle ne s'applique que sur les écrans de moins de 768px (mobiles et tablettes) */
@media (max-width: 1024px) {
    body {
        padding-top: 60px; /* Ajustez le chiffre selon vos besoins sur mobile */
    }
}

/* Sur PC (plus de 768px), le padding sera de 0 par défaut */
@media (min-width: 1025px) {
    body {
        padding-top: 0; 
    }
}

/* 1. On force le body à prendre toute la hauteur de l'écran */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* vh = viewport height */
    margin: 0;
}

/* 2. On dit au contenu principal de pousser le footer vers le bas */
main.links-container {
    flex: 1; /* Prend tout l'espace disponible restant */
}

/* 3. Assurez-vous que le footer n'a pas de marges parasites */
footer {
    margin-top: auto; /* Sécurité supplémentaire */
    width: 100%;
}

/* Style de la fenêtre plein écran */
.lightbox {
    display: none; /* Caché par défaut */
    position: fixed;
    z-index: 2000; /* Par-dessus la navigation */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9); /* Fond noir transparent */
    justify-content: center;
    align-items: center;
    cursor: zoom-out;
}

/* L'image agrandie */
.lightbox-content {
    max-width: 90%;
    max-height: 80%;
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
    animation: zoomIn 0.3s ease;
}

/* Bouton fermer */
.close-lightbox {
    position: absolute;
    top: 20px;
    right: 35px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

/* Animation d'ouverture */
@keyframes zoomIn {
    from { transform: scale(0.7); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Curseur sur les images de la galerie pour montrer qu'on peut cliquer */
.photo-wrapper img {
    cursor: zoom-in;
}

/* Filtres */
.filter-container {
    text-align: center;
    margin: 20px 0;
    padding: 0 15px;
}

.filter-btn {
    padding: 10px 20px;
    margin: 5px;
    border: none;
    background: #f0f0f0;
    cursor: pointer;
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 1px;
    transition: 0.3s;
}

.filter-btn.active, .filter-btn:hover {
    background: #e63946; /* Votre couleur rouge habituelle */
    color: white;
}

/* Articles */
.news-feed {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.news-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 40px;
    padding: 20px;
    border-left: 5px solid #e63946;
}

/* Gestion des images */
.news-gallery {
    display: grid;
    gap: 10px;
    margin: 20px 0;
}

.news-gallery img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
}

/* Adaptabilité de la grille */
.photo-2 { grid-template-columns: repeat(2, 1fr); }
.photo-3 { grid-template-columns: repeat(3, 1fr); }
.photo-4 { grid-template-columns: repeat(4, 1fr); }

/* Mobile : une seule colonne pour les photos */
@media (max-width: 600px) {
    .news-gallery { grid-template-columns: 1fr !important; }
}

/* Animation de masquage pour le filtre */
.news-card.hide {
    display: none;
}

.news-gallery img {
    width: 100%;
    height: 250px; /* Force une hauteur égale pour toutes les photos d'une ligne */
    object-fit: cover; /* Recadre l'image pour remplir le rectangle sans la déformer */
    object-position: center; /* Centre le sujet de la photo */
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.news-gallery img:hover {
    transform: scale(1.02);
    filter: brightness(0.9);
}

/* Style de la fenêtre de zoom */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    cursor: zoom-out;
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 85vh;
    border: 3px solid white;
    border-radius: 5px;
    animation: zoomAni 0.3s;
}

@keyframes zoomAni {
    from {transform: scale(0)} 
    to {transform: scale(1)}
}

.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

/* Limite le texte à 5 lignes par défaut */
.news-text-content {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 5; /* Nombre de lignes maximum */
    -webkit-box-orient: vertical;
    transition: all 0.3s ease;
    margin-bottom: 10px;
    line-height: 1.5; /* Ajustez selon votre police */
}

/* Classe qui sera ajoutée pour afficher tout le texte */
.news-text-content.expanded {
    display: block; /* Annule la limite de lignes */
    -webkit-line-clamp: none;
}

/* Style du bouton Voir Plus */
.read-more-btn {
    background: none;
    border: none;
    color: #e63946; /* Votre couleur rouge */
    font-weight: bold;
    cursor: pointer;
    padding: 0;
    font-family: 'Work Sans', sans-serif;
    text-transform: uppercase;
    font-size: 0.9em;
    margin-bottom: 15px;
    display: block;
}

.read-more-btn:hover {
    text-decoration: underline;
}

/* Conteneur pour la 4ème image */
.more-photos-overlay {
    position: relative;
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    height: 250px; /* Aligné sur votre hauteur d'image */
}

/* On s'assure que l'image à l'intérieur prend toute la place */
.more-photos-overlay img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin: 0; /* Annule les marges éventuelles */
}

/* Le voile sombre */
.more-photos-overlay::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Voile noir à 50% */
    transition: background 0.3s;
}

.more-photos-overlay:hover::after {
    background: rgba(0, 0, 0, 0.6);
}

/* Le texte "+X" */
.overlay-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 2.5rem;
    font-family: 'Bebas Neue', sans-serif;
    z-index: 2;
    pointer-events: none; /* Le clic passe à travers vers le conteneur */
}

/* Conteneur principal */
.links-section {
    max-width: 1000px;
    margin: 60px auto; /* Remplace les <br> */
    padding: 0 20px;
}

/* La Grille : 3 colonnes sur PC, 2 sur tablette, 1 sur mobile */
.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px; /* Espace entre les boutons */
}

.link-card {
    /* Utilisation de Flexbox pour l'alignement */
    display: flex; 
    align-items: center;      /* Centre verticalement */
    justify-content: center;   /* Centre horizontalement */
    
    /* Dimensions et uniformité */
    height: 80px;              /* Tous les boutons auront la même hauteur */
    width: 100%;               /* Ils occupent toute la largeur de leur colonne */
    padding: 15px;             /* Espace intérieur pour que le texte ne touche pas les bords */
    box-sizing: border-box;    /* Inclut le padding dans le calcul de la taille */

    /* Style visuel */
    text-align: center;
    background-color: #f8f9fa;
    color: #333;
    text-decoration: none;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.2rem;
    border: 2px solid #E91E63;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.link-card:hover {
    background-color: #E91E63;
    color: white;
}

/* Responsive pour mobile */
@media (max-width: 600px) {
    .link-card {
        height: 60px;
        font-size: 1rem;
    }
}




