/* --- VARIABLES & RESET --- */
:root {
    --primary-red: #ff2b4d;
    --primary-dark: #6b2a44;
    --primary-light: #ff6b85;
    --bg-light: #fff9f5;
    --bg-gradient-start: #667eea;
    --bg-gradient-end: #764ba2;
    --text-main: #2d3436;
    --text-light: #636e72;
    --accent-gold: #f9ca24;
    --accent-yellow: #f6e58d;
    --accent-orange: #ffb347;
    --accent-pink: #fd79a8;
    --font-main: 'Montserrat', sans-serif;
    --shadow-sm: 0 5px 20px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.15);
    --shadow-hover: 0 20px 40px rgba(255, 43, 77, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--text-main);
    background: linear-gradient(135deg, #ffffff 0%, var(--bg-light) 100%);
    line-height: 1.6;
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- ANIMATIONS --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

/* --- BUTTONS MODERNES --- */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    font-family: var(--font-main);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    z-index: -1;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-red), var(--primary-dark));
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(255, 43, 77, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 43, 77, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--primary-dark), #8b3a5e);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(107, 42, 68, 0.3);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(107, 42, 68, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--primary-red);
    border: 2px solid var(--primary-red);
    position: relative;
}

.btn-outline:hover {
    background: linear-gradient(135deg, var(--primary-red), var(--primary-dark));
    color: #ffffff;
    border-color: transparent;
    transform: translateY(-3px);
}

.btn-outline-light {
    background: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
    backdrop-filter: blur(10px);
}

.btn-outline-light:hover {
    background: #ffffff;
    color: var(--primary-red);
    transform: translateY(-3px);
}

/* --- HEADER MODERNE --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

header.scrolled {
    padding: 10px 40px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-md);
}

.logo img {
    height: 50px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links li a {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-dark);
    text-transform: uppercase;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-red), var(--primary-light));
    transition: width 0.3s ease;
}

.nav-links li a:hover::after,
.nav-links li a.active::after {
    width: 100%;
}

.nav-links li a:hover,
.nav-links li a.active {
    color: var(--primary-red);
}

/* Menu Burger Animé */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-dark);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* --- HERO SECTION SPECTACULAIRE --- */
.hero {
    position: relative;
    background: linear-gradient(135deg, rgba(107, 42, 68, 0.9), rgba(255, 43, 77, 0.85)), url('img/hero-bg.jpg') center/cover no-repeat;
    padding: 200px 20px 220px;
    text-align: center;
    color: #ffffff;
    margin-top: 80px;
    margin-bottom: 40px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.hero h1 {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.2;
    background: linear-gradient(135deg, #ffffff, var(--accent-gold));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: fadeInUp 0.8s ease-out;
}

.hero p {
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto 40px;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

/* Section Titles Stylisés */
.section-subtitle {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 800;
    margin-bottom: 10px;
    display: block;
    background: linear-gradient(135deg, var(--primary-red), var(--primary-light));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.section-title {
    font-size: 2.8rem;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-red));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 20px;
}

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

/* --- CARDS MODERNES & FUN --- */
.grid-4, .grid-3, .grid-2 {
    display: grid;
    gap: 30px;
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

/* Features Cards Glassmorphisme */
.feature-card {
    text-align: center;
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-red);
}

.feature-card .icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-red), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: all 0.3s ease;
    animation: float 3s ease-in-out infinite;
}

.feature-card:hover .icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-card .icon img {
    width: 40px;
    filter: brightness(0) invert(1);
}

.feature-card h3 {
    font-size: 1.3rem;
    color: var(--primary-dark);
    margin-bottom: 15px;
    font-weight: 800;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Category Cards Fun */
.category-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 35px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 43, 77, 0.1), transparent);
    transition: left 0.5s ease;
}

.category-card:hover::before {
    left: 100%;
}

.category-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-lg);
    border-bottom: 3px solid var(--primary-red);
}

.category-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
    display: inline-block;
    animation: bounce 2s ease-in-out infinite;
}

.category-card h3 {
    font-size: 1.4rem;
    color: var(--primary-dark);
    margin-bottom: 15px;
    font-weight: 800;
}

.category-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 20px;
}

/* Partenaires Section Fun */
.partners-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
}

.partner-logo {
    background: #ffffff;
    padding: 25px 45px;
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    filter: grayscale(0.3);
}

.partner-logo:hover {
    transform: scale(1.1);
    filter: grayscale(0);
    box-shadow: var(--shadow-md);
}

.partner-logo img {
    height: 60px;
    width: auto;
}

/* Countdown Stylisé */
.countdown {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-red), var(--accent-orange));
    padding: 50px;
    text-align: center;
    border-radius: 30px;
    margin: 50px 0;
    color: white;
    position: relative;
    overflow: hidden;
}

.countdown::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(255,255,255,0.1) 10px, rgba(255,255,255,0.1) 20px);
    animation: shimmer 20s linear infinite;
}

.countdown h3 {
    font-size: 2rem;
    margin-bottom: 30px;
    font-weight: 800;
    position: relative;
    z-index: 1;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.countdown-timer div {
    text-align: center;
}

.countdown-timer .number {
    font-size: 3rem;
    font-weight: 900;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 15px 25px;
    border-radius: 15px;
    min-width: 100px;
    transition: all 0.3s ease;
}

.countdown-timer .number:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.3);
}

.countdown-timer .label {
    font-size: 0.85rem;
    margin-top: 10px;
    display: block;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Formulaire Moderne */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 700;
    color: var(--primary-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e5e7eb;
    border-radius: 15px;
    font-family: var(--font-main);
    transition: all 0.3s ease;
    font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: 0 0 0 4px rgba(255, 43, 77, 0.1);
    transform: translateY(-2px);
}

/* Sections */
section {
    padding: 80px 0;
    margin-bottom: 20px;
}

section:last-of-type {
    margin-bottom: 0;
}

.bg-light {
    background: linear-gradient(135deg, #ffffff, var(--bg-light));
}

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

/* Scroll Margin */
#features, 
#categories, 
#partenaires, 
#countdown-section,
#contact {
    scroll-margin-top: 100px;
}

/* CTA Section Dynamique */
.cta-section {
    background: linear-gradient(135deg, var(--primary-red), var(--primary-dark), var(--accent-orange));
    padding: 70px 30px;
    margin: 50px 0;
    border-radius: 40px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.cta-section::after {
    content: '✨';
    position: absolute;
    font-size: 200px;
    opacity: 0.1;
    bottom: -50px;
    right: -50px;
    transform: rotate(-15deg);
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 900;
}

.cta-section p {
    margin-bottom: 30px;
    font-size: 1.2rem;
    opacity: 0.95;
}

.cta-section .btn {
    animation: pulse 2s ease-in-out infinite;
}

/* Footer Moderne */
footer {
    background: linear-gradient(135deg, var(--primary-dark), #1a1a2e);
    color: #ffffff;
    padding: 70px 0 30px;
    margin-top: 60px;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-red), var(--accent-gold), var(--primary-light));
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 50px;
    margin-bottom: 50px;
}

.footer-col h4 {
    margin-bottom: 25px;
    font-size: 1.2rem;
    color: var(--primary-red);
    font-weight: 800;
    position: relative;
    display: inline-block;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-red), var(--accent-gold));
}

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

.footer-col ul li a {
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-col ul li a:hover {
    color: var(--primary-red);
    transform: translateX(5px);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.social-links a {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.social-links a:hover {
    background: var(--primary-red);
    transform: translateY(-5px) rotate(10deg);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
    opacity: 0.8;
}

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
    header {
        padding: 15px 20px;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 80%;
        height: calc(100vh - 80px);
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 60px;
        gap: 30px;
        transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: var(--shadow-lg);
        z-index: 999;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links li a {
        font-size: 1.1rem;
        padding: 12px;
        display: block;
    }

    .grid-4, .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }

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

    .hero p {
        font-size: 1rem;
    }

    .hero {
        margin-bottom: 20px;
        padding: 140px 20px 100px;
    }

    .grid-4, .grid-3, .grid-2 {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 35px;
    }

    .footer-col h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .social-links {
        justify-content: center;
    }

    section {
        padding: 50px 0;
        margin-bottom: 10px;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .countdown {
        margin: 30px 20px;
        padding: 30px 20px;
    }

    .countdown-timer .number {
        font-size: 1.8rem;
        min-width: 70px;
        padding: 10px 15px;
    }

    .cta-section {
        margin: 30px 15px;
        padding: 40px 20px;
    }

    .cta-section h2 {
        font-size: 1.8rem;
    }

    footer {
        margin-top: 40px;
        padding: 50px 0 25px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .hero-buttons .btn {
        width: 80%;
    }
}

@media (max-width: 480px) {
    .countdown-timer {
        gap: 15px;
    }

    .countdown-timer .number {
        font-size: 1.3rem;
        min-width: 55px;
        padding: 8px 10px;
    }

    .partner-logo {
        padding: 15px 25px;
    }

    .partner-logo img {
        height: 35px;
    }

    .feature-card {
        padding: 30px 15px;
    }

    .category-card {
        padding: 25px;
    }
}

@media (min-width: 1200px) {
    section {
        padding: 100px 0;
    }

    .hero {
        padding: 220px 20px 240px;
    }
}

/* Effet de scroll smooth */
html {
    scroll-behavior: smooth;
}

/* Sélection de texte stylisée */
::selection {
    background: var(--primary-red);
    color: white;
}

/* Scrollbar personnalisée */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-red), var(--primary-dark));
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-red);
}

/* Style pour la grille d'actualités */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 35px;
    margin: 40px 0;
}

.news-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(199, 22, 43, 0.15);
}

.news-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.news-content {
    padding: 25px;
}

.news-date {
    display: inline-block;
    font-size: 0.8rem;
    color: var(--primary-red);
    font-weight: 600;
    margin-bottom: 10px;
}

.news-title {
    font-size: 1.3rem;
    color: var(--primary-dark);
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.3;
}

.news-excerpt {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 20px;
}

.btn-readmore {
    background: none;
    border: none;
    color: var(--primary-red);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    font-family: var(--font-main);
}

.btn-readmore:hover {
    color: var(--primary-dark);
    transform: translateX(5px);
}

/* Style du Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: linear-gradient(135deg, #ffffff, var(--bg-light));
    margin: 5% auto;
    padding: 0;
    width: 90%;
    max-width: 800px;
    border-radius: 25px;
    position: relative;
    animation: slideIn 0.4s ease;
    max-height: 85vh;
    overflow-y: auto;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: sticky;
    top: 15px;
    right: 25px;
    float: right;
    font-size: 35px;
    font-weight: bold;
    color: var(--primary-dark);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    background: white;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 10px;
}

.modal-close:hover {
    color: var(--primary-red);
    transform: rotate(90deg);
}

#modal-body {
    padding: 30px;
    clear: both;
}

.modal-article-img {
    width: 100%;
    border-radius: 15px;
    margin-bottom: 25px;
}

.modal-article-title {
    font-size: 2rem;
    color: var(--primary-dark);
    margin-bottom: 15px;
}

.modal-article-date {
    color: var(--primary-red);
    font-weight: 600;
    margin-bottom: 20px;
    display: inline-block;
}

.modal-article-content {
    color: var(--text-main);
    line-height: 1.8;
}

.modal-article-content p {
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .modal-article-title {
        font-size: 1.5rem;
    }
    
    #modal-body {
        padding: 20px;
    }
}

/* Style de la galerie */
.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

.filter-btn {
    padding: 12px 28px;
    background: transparent;
    border: 2px solid var(--primary-red);
    border-radius: 50px;
    color: var(--primary-red);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-main);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-red);
    color: white;
    transform: translateY(-3px);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    margin-bottom: 60px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    cursor: pointer;
    aspect-ratio: 4/3;
    transition: all 0.4s ease;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: -100%;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(107, 42, 68, 0.95), transparent);
    color: white;
    padding: 20px;
    transition: bottom 0.4s ease;
}

.gallery-item:hover .gallery-overlay {
    bottom: 0;
}

.gallery-overlay h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.gallery-overlay p {
    font-size: 0.85rem;
    opacity: 0.9;
    margin-bottom: 10px;
}

.gallery-category {
    display: inline-block;
    background: var(--primary-red);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
}

/* Modal galerie */
.gallery-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    animation: fadeIn 0.3s ease;
}

.gallery-modal-content {
    position: relative;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80vh;
    width: 90%;
    max-width: 1200px;
}

.modal-nav {
    position: absolute;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 2rem;
    padding: 15px 20px;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 10;
}

.modal-nav:hover {
    background: var(--primary-red);
    transform: scale(1.1);
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}

.gallery-modal-content img {
    max-width: 90%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 10px;
}

.gallery-modal-caption {
    position: absolute;
    bottom: 30px;
    left: 0;
    right: 0;
    text-align: center;
    color: white;
    padding: 20px;
}

.gallery-modal-caption h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.gallery-modal-caption p {
    font-size: 1rem;
    opacity: 0.9;
}

.gallery-modal-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.gallery-modal-close:hover {
    color: var(--primary-red);
    transform: rotate(90deg);
}

/* Animation pour les items filtrés */
.gallery-item {
    animation: fadeInUp 0.5s ease-out;
}

/* Responsive */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .gallery-filters {
        gap: 10px;
    }
    
    .filter-btn {
        padding: 8px 18px;
        font-size: 0.8rem;
    }
    
    .gallery-modal-content {
        height: 70vh;
    }
    
    .modal-nav {
        font-size: 1.5rem;
        padding: 10px 15px;
    }
    
    .prev {
        left: 5px;
    }
    
    .next {
        right: 5px;
    }
    
    .gallery-modal-caption h3 {
        font-size: 1rem;
    }
    
    .gallery-modal-caption p {
        font-size: 0.8rem;
    }
}