/* Variables CSS */
:root {
    --primary-color: #8702ff;
    --secondary-color: #ffaf02;
    --text-dark: #333;
    --text-light: #666;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
    --border-radius: 10px;
    --gradient-primary: linear-gradient(135deg, #8702ff, #b347ff);
    --gradient-secondary: linear-gradient(135deg, #ffaf02, #ff8f02);
    --gradient-mixed: linear-gradient(135deg, #8702ff, #ffaf02);
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(135, 2, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: var(--transition);
    padding: 1rem 0;
}

.navbar.scrolled {
    background: var(--primary-color);
    box-shadow: var(--shadow);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}


.container {
  width: 100%;
}



img {
  max-width: 100%;
  height: auto;
}


@media (max-width: 768px) {
  .menu {
    flex-direction: column;
  }
  .texte {
    font-size: 14px;
  }
}


.logo-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    transition: var(--transition);
    animation: logoFloat 3s ease-in-out infinite;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.logo-img:hover {
    transform: rotate(360deg) scale(1.1);
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.4);
    border-color: #ffd700;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: #ffd700;
    transform: translateY(-2px);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #ffd700;
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.btn-don {
    background: var(--secondary-color);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.btn-don:hover {
    background: #ea580c;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Language Selector */
.language-selector {
    position: relative;
}

.language-dropdown {
    position: relative;
}

.language-btn {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.language-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.language-options {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    min-width: 150px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    z-index: 1000;
    margin-top: 0.5rem;
}

.language-options.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    width: 100%;
    padding: 0.75rem 1rem;
    border: none;
    background: none;
    text-align: left;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-dark);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lang-option:hover {
    background: var(--bg-light);
}

.lang-option:first-child {
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.lang-option:last-child {
    border-radius: 0 0 var(--border-radius) var(--border-radius);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--white);
    margin: 3px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 600px;
    min-height: 100px;
    background-size: cover;
    background-position:center ;
    background-attachment: scroll;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: url('foto.jpg') center/cover;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    animation: slowZoom 20s ease-in-out infinite alternate, parallaxMove 15s ease-in-out infinite;
}


@keyframes slowZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

@keyframes parallaxMove {
    0%, 100% { transform: translateY(0px) scale(1); }
    25% { transform: translateY(-10px) scale(1.02); }
    50% { transform: translateY(5px) scale(1.05); }
    75% { transform: translateY(-5px) scale(1.03); }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(135, 2, 255, 0.85), rgba(255, 175, 2, 0.7));
    animation: overlayPulse 8s ease-in-out infinite;
}

@keyframes overlayPulse {
    0%, 100% { opacity: 0.85; }
    50% { opacity: 0.75; }
}

.hero-content {
    position: relative;
    text-align: center;
    color: var(--white);
    z-index: 2;
}

.hero-title {
    font-size: 2.5rem;
    line-height: 1.2;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #ffd700;
}

.hero-slogan {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.hero-description {
    font-size: 1rem;
    padding: 0 1rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: var(--white);
    color: var(--primary-color);
}

.btn-primary:hover {
    background: #f0f0f0;
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* Actualités Section - Nouvelle section principale */
.news-section {
    background: linear-gradient(rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.95)), 
                url('https://images.pexels.com/photos/3184291/pexels-photo-3184291.jpeg?auto=compress&cs=tinysrgb&w=1920&h=1080&fit=crop') center/cover;
    padding: 5rem 0;
    position: relative;
}

.news-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(135, 2, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 50%, rgba(255, 175, 2, 0.1) 0%, transparent 50%);
    animation: newsGlow 8s ease-in-out infinite alternate;
}

@keyframes newsGlow {
    0% { opacity: 0.5; }
    100% { opacity: 1; }
}

.news-hero {
    text-align: center;
    margin-bottom: 4rem;
}

.news-hero h2 {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 700;
}

.news-hero p {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.news-card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
    border: 2px solid transparent;
}

.news-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-mixed);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.news-card:hover {
    transform: translateY(-15px) rotateY(5deg);
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary-color);
}

.news-card:hover::after {
    opacity: 0.05;
}

.news-card-image {
    width: 100%;
    height: 200px;
    background: var(--gradient-mixed);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 3rem;
    position: relative;
    overflow: hidden;
}

.news-card-image::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    animation: imageFloat 6s ease-in-out infinite;
}

@keyframes imageFloat {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(10px, -10px) rotate(1deg); }
    66% { transform: translate(-10px, 10px) rotate(-1deg); }
}

.news-card-content {
    padding: 2rem;
}

.news-card-date {
    color: var(--secondary-color);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.news-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.news-card p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.news-card-author {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.9rem;
}

/* Contact rapide section */
.quick-contact {
    background: linear-gradient(rgba(248, 249, 250, 0.95), rgba(248, 249, 250, 0.95)), 
                url('https://images.pexels.com/photos/3184340/pexels-photo-3184340.jpeg?auto=compress&cs=tinysrgb&w=1920&h=1080&fit=crop') center/cover;
    padding: 4rem 0;
    position: relative;
}

.quick-contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(135, 2, 255, 0.1) 0%, 
        transparent 25%, 
        rgba(255, 175, 2, 0.1) 50%, 
        transparent 75%, 
        rgba(135, 2, 255, 0.1) 100%);
    animation: contactWave 10s ease-in-out infinite;
}

@keyframes contactWave {
    0%, 100% { transform: translateX(0) scaleX(1); }
    50% { transform: translateX(20px) scaleX(1.1); }
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.contact-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.contact-card::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    transition: all 0.5s ease;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.contact-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary-color);
    color: white;
}

.contact-card:hover::before {
    opacity: 0.9;
}

.contact-card:hover::after {
    width: 200%;
    height: 200%;
}

.contact-card:hover h3,
.contact-card:hover p,
.contact-card:hover a {
    color: white;
    position: relative;
    z-index: 3;
}

.contact-card i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.contact-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.contact-card p {
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.contact-card a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.contact-card a:hover {
    color: var(--secondary-color);
}

/* Galeries Section */
.gallery-section {
    background: linear-gradient(rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.95)), 
                url('https://images.pexels.com/photos/3184287/pexels-photo-3184287.jpeg?auto=compress&cs=tinysrgb&w=1920&h=1080&fit=crop') center/cover;
    padding: 5rem 0;
    position: relative;
}

.gallery-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        rgba(135, 2, 255, 0.05) 25%, 
        transparent 25%, 
        transparent 75%, 
        rgba(255, 175, 2, 0.05) 75%);
    background-size: 60px 60px;
    animation: galleryPattern 15s linear infinite;
}

@keyframes galleryPattern {
    0% { transform: translate(0, 0); }
    100% { transform: translate(60px, 60px); }
}

.gallery-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.gallery-tab {
    padding: 1rem 2rem;
    background: var(--bg-light);
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    color: var(--text-dark);
}

.gallery-tab.active,
.gallery-tab:hover {
    background: var(--primary-color);
    color: var(--white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    aspect-ratio: 1;
    background: var(--gradient-mixed);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 3px solid transparent;
}

.gallery-item::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transition: all 0.5s ease;
    transform: translate(-50%, -50%);
}

.gallery-item:hover {
    transform: scale(1.1) rotate(5deg);
    border-color: var(--white);
    box-shadow: 0 20px 40px rgba(135, 2, 255, 0.3);
}

.gallery-item:hover::before {
    width: 100%;
    height: 100%;
}

.gallery-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover::after {
    opacity: 1;
}

/* Activités Section */
.activities-section {
    background: var(--bg-light);
    padding: 5rem 0;
}

.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.activity-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.activity-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.activity-card-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 2rem;
    text-align: center;
}

.activity-card-header i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.activity-card-header h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.activity-card-content {
    padding: 2rem;
}

.activity-card-content p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.activity-date {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 0.9rem;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 30px;
    height: 30px;
    border: 2px solid var(--white);
    border-left: none;
    border-top: none;
    transform: rotate(45deg);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* Sections générales */
section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--secondary-color);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* À Propos */
.about-section {
    background: linear-gradient(rgba(248, 249, 250, 0.95), rgba(248, 249, 250, 0.95)), 
                url('https://images.pexels.com/photos/3184338/pexels-photo-3184338.jpeg?auto=compress&cs=tinysrgb&w=1920&h=1080&fit=crop') center/cover;
    position: relative;
}

.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(135, 2, 255, 0.05) 50%, transparent 70%);
    animation: shimmer 10s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
}

.about-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.about-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.about-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(135, 2, 255, 0.1) 0%, transparent 70%);
    transform: scale(0);
    transition: transform 0.6s ease;
}

.about-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

.about-card:hover::before {
    transform: scale(1);
}

.about-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.stat-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.stat-card:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    display: block;
}

.stat-label {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.values-section {
    text-align: center;
}

.values-section h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.value-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.value-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-mixed);
    opacity: 0;
    transition: all 0.5s ease;
}

.value-item:hover {
    transform: translateY(-15px) rotate(2deg);
    box-shadow: var(--shadow-lg);
    color: white;
}

.value-item:hover::before {
    left: 0;
    opacity: 0.9;
}

.value-item:hover span {
    color: white;
    position: relative;
    z-index: 2;
}

.value-item i {
    font-size: 2.5rem;
    color: var(--secondary-color);
}

.value-item span {
    font-weight: 600;
    color: var(--primary-color);
}

/* Mission Section */
.mission-section {
    background: linear-gradient(rgba(248, 249, 250, 0.95), rgba(248, 249, 250, 0.95)), 
                url('https://images.pexels.com/photos/3184292/pexels-photo-3184292.jpeg?auto=compress&cs=tinysrgb&w=1920&h=1080&fit=crop') center/cover;
    padding: 5rem 0;
    position: relative;
}

.mission-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: conic-gradient(from 0deg at 50% 50%, 
        rgba(135, 2, 255, 0.1) 0deg, 
        transparent 60deg, 
        rgba(255, 175, 2, 0.1) 120deg, 
        transparent 180deg, 
        rgba(135, 2, 255, 0.1) 240deg, 
        transparent 300deg, 
        rgba(255, 175, 2, 0.1) 360deg);
    animation: missionRotate 20s linear infinite;
}

@keyframes missionRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.mission-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
    transition: var(--transition);
}

.mission-content::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gradient-mixed);
    border-radius: var(--border-radius);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mission-content:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.mission-content:hover::before {
    opacity: 1;
}

.mission-content p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-dark);
}

/* Valeurs Section */
.values-section {
    background: linear-gradient(rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.95)), 
                url('https://images.pexels.com/photos/3184339/pexels-photo-3184339.jpeg?auto=compress&cs=tinysrgb&w=1920&h=1080&fit=crop') center/cover;
    padding: 5rem 0;
    text-align: center;
    position: relative;
}

.values-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 175, 2, 0.1), transparent);
    animation: valuesSweep 12s ease-in-out infinite;
}

@keyframes valuesSweep {
    0%, 100% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
}

.values-section h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

/* Services */
.services-section {
    background: linear-gradient(rgba(248, 249, 250, 0.95), rgba(248, 249, 250, 0.95)), 
                url('https://images.pexels.com/photos/3184360/pexels-photo-3184360.jpeg?auto=compress&cs=tinysrgb&w=1920&h=1080&fit=crop') center/cover;
    position: relative;
}

.services-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 100px,
        rgba(135, 2, 255, 0.02) 100px,
        rgba(135, 2, 255, 0.02) 200px
    );
    animation: patternMove 20s linear infinite;
}

@keyframes patternMove {
    0% { transform: translateX(0); }
    100% { transform: translateX(200px); }
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(135, 2, 255, 0.1), transparent);
    transition: var(--transition);
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    transform: translateY(-15px) scale(1.05);
    box-shadow: var(--shadow-lg);
    background: var(--white);
    border-color: var(--primary-color);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transition: all 0.5s ease;
    transform: translate(-50%, -50%);
}

.service-card:hover .service-icon {
    background: var(--gradient-secondary);
    transform: rotate(360deg) scale(1.1);
}

.service-card:hover .service-icon::before {
    width: 100%;
    height: 100%;
}

.service-icon i {
    font-size: 2rem;
    color: var(--white);
}

.service-card h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Équipe */
/* Section équipe déplacée dans les paramètres */

/* Formulaire de Don */
.donation-section {
    background: var(--white);
}

.donation-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.donation-info h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.donation-info ul {
    list-style: none;
}

.donation-info li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.donation-info li:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateX(10px);
}

.donation-info li i {
    color: var(--secondary-color);
    font-size: 1.2rem;
}

.donation-info li:hover i {
    color: var(--white);
}

.donation-form-container {
    background: var(--bg-light);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.donation-form h3 {
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-align: center;
    font-size: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(107, 70, 193, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Contact */
/* Section contact simplifiée pour la page d'accueil */

/* Footer */
.footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: #ffd700;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
}

.footer-logo img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: var(--transition);
    animation: logoFloat 3s ease-in-out infinite 1s;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.footer-logo img:hover {
    transform: rotate(360deg) scale(1.1);
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.4);
    border-color: #ffd700;
}

.footer-logo span {
    font-size: 1.5rem;
    font-weight: 700;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: #ffd700;
    transform: translateX(5px);
    display: inline-block;
}

.footer-section p {
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 1rem;
    text-align: center;
    opacity: 0.8;
}

.footer-contact-extra {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-contact-extra p {
    margin: 0.5rem 0;
    font-size: 0.9rem;
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--secondary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-color);
    transform: translateY(-3px) scale(1.1);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes slideLeft {
    from { transform: translateX(-30px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideRight {
    from { transform: translateX(30px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes bounceIn {
    0% { transform: scale(0.3); opacity: 0; }
    50% { transform: scale(1.05); }
    70% { transform: scale(0.9); }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes logoFloat {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg);
        box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
    }
    50% { 
        transform: translateY(-5px) rotate(5deg);
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    }
}
@keyframes float3D {
    0%, 100% { 
        transform: translateY(0px) rotateX(0deg) rotateY(0deg); 
    }
    25% { 
        transform: translateY(-10px) rotateX(5deg) rotateY(2deg); 
    }
    50% { 
        transform: translateY(-5px) rotateX(-2deg) rotateY(-5deg); 
    }
    75% { 
        transform: translateY(-15px) rotateX(3deg) rotateY(3deg); 
    }
}

@keyframes pulse3D {
    0%, 100% { 
        transform: scale(1) rotateZ(0deg); 
        box-shadow: 0 0 0 0 rgba(135, 2, 255, 0.4);
    }
    50% { 
        transform: scale(1.05) rotateZ(2deg); 
        box-shadow: 0 0 0 20px rgba(135, 2, 255, 0);
    }
}

@keyframes slideInBounce {
    0% { 
        transform: translateX(-100px) rotate(-10deg); 
        opacity: 0; 
    }
    60% { 
        transform: translateX(10px) rotate(2deg); 
        opacity: 0.8; 
    }
    100% { 
        transform: translateX(0) rotate(0deg); 
        opacity: 1; 
    }
}

@keyframes morphBackground {
    0%, 100% { 
        border-radius: 10px; 
        transform: rotate(0deg); 
    }
    25% { 
        border-radius: 20px 10px 20px 10px; 
        transform: rotate(1deg); 
    }
    50% { 
        border-radius: 15px; 
        transform: rotate(-1deg); 
    }
    75% { 
        border-radius: 10px 20px 10px 20px; 
        transform: rotate(0.5deg); 
    }
}

/* Classes d'animation */
.animate-fade-in { animation: fadeIn 1s ease-out; }
.animate-slide-up { animation: slideUp 0.8s ease-out 0.2s both; }
.animate-slide-up-delay { animation: slideUp 0.8s ease-out 0.4s both; }
.animate-slide-up-delay-2 { animation: slideUp 0.8s ease-out 0.6s both; }
.animate-slide-up-delay-3 { animation: slideUp 0.8s ease-out 0.8s both; }
.animate-slide-up-delay-4 { animation: slideUp 0.8s ease-out 1s both; }
.animate-slide-up-delay-5 { animation: slideUp 0.8s ease-out 1.2s both; }

.animate-slide-left { animation: slideLeft 0.8s ease-out; }
.animate-slide-left-delay { animation: slideLeft 0.8s ease-out 0.2s both; }
.animate-slide-left-delay-2 { animation: slideLeft 0.8s ease-out 0.4s both; }

.animate-slide-right { animation: slideRight 0.8s ease-out; }

.animate-fade-in-delay { animation: fadeIn 1s ease-out 0.6s both; }
.animate-bounce-in { animation: bounceIn 1s ease-out 0.8s both; }

.animate-zoom-in { animation: zoomIn 0.6s ease-out; }
.animate-zoom-in-delay { animation: zoomIn 0.6s ease-out 0.1s both; }
.animate-zoom-in-delay-2 { animation: zoomIn 0.6s ease-out 0.2s both; }
.animate-zoom-in-delay-3 { animation: zoomIn 0.6s ease-out 0.3s both; }
.animate-zoom-in-delay-4 { animation: zoomIn 0.6s ease-out 0.4s both; }
.animate-zoom-in-delay-5 { animation: zoomIn 0.6s ease-out 0.5s both; }

.animate-float { animation: float 3s ease-in-out infinite; }
.animate-float-delay { animation: float 3s ease-in-out infinite 0.2s; }
.animate-float-delay-2 { animation: float 3s ease-in-out infinite 0.4s; }
.animate-float-delay-3 { animation: float 3s ease-in-out infinite 0.6s; }
.animate-float-delay-4 { animation: float 3s ease-in-out infinite 0.8s; }
.animate-float-delay-5 { animation: float 3s ease-in-out infinite 1s; }

/* Nouvelles classes d'animation */
.animate-float-3d { animation: float3D 4s ease-in-out infinite; }
.animate-pulse-3d { animation: pulse3D 3s ease-in-out infinite; }
.animate-slide-bounce { animation: slideInBounce 1s ease-out; }
.animate-morph { animation: morphBackground 6s ease-in-out infinite; }
/* Responsive */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--primary-color);
        width: 100%;
        text-align: center;
        transition: var(--transition);
        box-shadow: var(--shadow);
        padding: 2rem 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 1rem 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .about-grid,
    .donation-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-cards {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .activities-grid {
        grid-template-columns: 1fr;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .container {
        padding: 0 15px;
    }
    
    section {
        padding: 3rem 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .donation-form-container {
        padding: 1.5rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .news-hero h2 {
        font-size: 2rem;
    }
}

/* Améliorations de performance */
* {
    will-change: auto;
}

.animate-fade-in,
.animate-slide-up,
.animate-slide-left,
.animate-slide-right,
.animate-zoom-in,
.animate-bounce-in {
    will-change: transform, opacity;
}

.animate-float {
    will-change: transform;
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Focus states pour l'accessibilité */
.nav-link:focus,
.btn:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

/* États de chargement */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { left: -100%; }
    100% { left: 100%; }
}



/* Classes pour gérer l'affichage mobile/desktop */
.desktop-only {
    display: inline;
}
.mobile-only {
    display: none;
}

@media (max-width: 480px) {
    .desktop-only {
        display: none;
    }
    .mobile-only {
        display: inline;
    }
    
    /* Empêche le texte de déborder */
    .hero-description br.desktop-only {
        display: none;
    }
}




/* Supprimez ou modifiez l'ancien style .logo-img */
.logo-image {
    width: 50px; /* Ajustez selon vos besoins */
    height: 50px;
    border-radius: 50%; /* Pour un effet rond */
    object-fit: cover; /* Garde les proportions de l'image */
    transition: var(--transition);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

/* Animation pour le logo */
.logo-image:hover {
    transform: rotate(360deg) scale(1.1);
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.4);
    border-color: #ffd700;
}

/* Adaptation pour mobile */
@media (max-width: 768px) {
    .logo-image {
        width: 40px;
        height: 40px;
    }
}



.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    color: white;
    font-size: 1rem;
}

.social-icon:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
    color: var(--primary-color);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
}

.footer-logo img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    transition: var(--transition);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.footer-logo img:hover {
    transform: rotate(360deg) scale(1.1);
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.4);
    border-color: #ffd700;
}

.footer-logo span {
    font-size: 1.5rem;
    font-weight: 700;
}



/* Nan seksyon mobil (@media) */
@media (max-width: 768px) {
    .nav-logo img {
        width: 50px;
        height: 50px;
        border: 2px solid var(--secondary-color); /* Ajoute yon ti koulè */
    }
    
    .logo-text {
        font-size: 1.2rem; /* Pi piti pou mobil */
    }
}



/* Nan seksyon mobil (@media) */
@media (max-width: 480px) {
    body {
        zoom: 1; /* Anpeche zoom otomatik */
        overflow-x: hidden;
    }
    
    .hero-title {
        font-size: 2rem !important;
        white-space: nowrap; /* Anpeche KRIFA vin IFA */
    }
    
    .container {
        padding: 0 10px;
    }
}



@media (max-width: 768px) {
  .hero {
    background-position: top center;
    background-size: contain;
    background-repeat: no-repeat;
    height: auto;
    padding: 4rem 1rem;
  }

  .hero-content {
    padding-top: 3rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }

  .hero-description {
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .nav-container {
    padding: 0 10px;
  }

  .nav-logo img.logo-image {
    width: 40px;
    height: 40px;
  }

  .nav-menu {
    flex-direction: column;
    gap: 1rem;
    padding-top: 1rem;
  }

  .nav-link {
    font-size: 0.9rem;
  }

  .language-btn {
    padding: 0.3rem 0.6rem;
    font-size: 0.8rem;
  }

  .hamburger .bar {
    width: 20px;
    height: 2px;
    margin: 2px 0;
  }

  .navbar {
    padding: 0.5rem 0;
  }
}

@media (max-width: 768px) {
  .nav-logo img.logo-image {
    width: 30px;
    height: 30px;
    margin-top: 10px;
  }

  .navbar {
    padding: 0.3rem 0.5rem;
  }

  .hero {
    padding-top: 8rem; /* evite ke navbar kouvri tèt fanm nan */
  }
}


@media (max-width: 768px) {
  /* Espas ant navbar ak imaj */
  .navbar::after {
    content: '';
    display: block;
    /* height: 60px; ogmante si toujou koupe */
    /* background: white; */
  }

  /* Seksyon background */
  .hero {
    margin-top: 60px; /* kenbe distans imaj anba meni */
    background-position: top center;
    background-size: contain;
    background-repeat: no-repeat;
    height: auto;
    padding-top: 6rem;
    padding-bottom: 4rem;
  }

  /* Kontni an pa monte sou foto */
  .hero-content {
    padding-top: 1rem;
  }

  /* Fè tèks yo ajiste sou ti ekran */
  .hero-title {
    font-size: 1.6rem;
    line-height: 1.2;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-description {
    font-size: 0.9rem;
  }
}

.gallery-item img,
.gallery-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--border-radius);
}


.lightbox{position:fixed;inset:0;display:none;align-items:center;justify-content:center;background:rgba(0,0,0,.8);z-index:9999}
.lightbox.open{display:flex}
.lightbox-dialog{position:relative;max-width:90vw;max-height:90vh;padding:.5rem;background:transparent;border-radius:12px}
.lightbox-content img,.lightbox-content video{max-width:88vw;max-height:80vh;display:block;border-radius:10px;box-shadow:0 10px 30px rgba(0,0,0,.4)}
.lightbox-close{position:absolute;top:-14px;right:-14px;width:38px;height:38px;border:none;background:#fff;border-radius:50%;font-size:24px;line-height:38px;cursor:pointer}
.lightbox-backdrop{position:absolute;inset:0}



/* Galeri Styles */
.gallery-content {
    display: none;
}

.gallery-content.active {
    display: block;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    display: flex;
    align-items: flex-end;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-info h3 {
    color: white;
    margin-bottom: 5px;
    font-size: 18px;
}

.gallery-info p {
    color: rgba(255,255,255,0.8);
    font-size: 14px;
}

/* Video Thumbnail */
.video-thumbnail {
    position: relative;
    height: 200px;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .play-button {
    opacity: 1;
}

/* Events Grid */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.event-item {
    display: flex;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.event-date {
    background: var(--primary-color);
    color: white;
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 80px;
}

.event-day {
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
}

.event-month, .event-year {
    font-size: 14px;
}

.event-details {
    padding: 20px;
    flex: 1;
}

.event-details h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.event-details p {
    color: var(--text-light);
    margin-bottom: 15px;
    font-size: 14px;
}

.event-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

.event-link:hover {
    text-decoration: underline;
}

/* Lightbox Styles */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    background: #111;
    border-radius: 10px;
    overflow: hidden;
}

.lightbox-close {
    position: absolute;
    top: 15px;
    right: 15px;
    color: white;
    font-size: 30px;
    cursor: pointer;
    z-index: 10;
    background: rgba(0,0,0,0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-body {
    max-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-body img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
}

.lightbox-body iframe {
    width: 800px;
    height: 450px;
    max-width: 90vw;
    max-height: 50vh;
}

.lightbox-caption {
    padding: 15px 20px;
    background: rgba(0,0,0,0.8);
    color: white;
}

.lightbox-caption h3 {
    margin-bottom: 5px;
    color: white;
}

.lightbox-caption p {
    color: rgba(255,255,255,0.8);
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .events-grid {
        grid-template-columns: 1fr;
    }
    
    .event-item {
        flex-direction: column;
    }
    
    .event-date {
        flex-direction: row;
        justify-content: space-around;
        min-width: auto;
        padding: 10px;
    }
    
    .lightbox-body iframe {
        height: 300px;
    }
}



/* ---- GALERI: ajisteman gwosè & bordi pi piti ---- */
.gallery-grid {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.gallery-item {
  height: 200px;             /* menm wotè pou tout kat yo */
  aspect-ratio: auto;        /* retire kare fòse a */
  border: 1px solid rgba(0,0,0,0.08); /* te 3px → 1px */
  border-radius: 8px;        /* te gran, kounye a pi dous */
  background: #fff;          /* retire gwo dégradé vyolèt la sou kare vid */
}

.gallery-item img,
.gallery-item video,
.gallery-item .video-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

/* bouton play la piti e byen santre */
.play-button {
  width: 48px;
  height: 48px;
  font-size: 22px;
  opacity: 0.95;
}

/* lè hover: pa fè gwo ogmantasyon ankò */
.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.15);
  border-color: rgba(0,0,0,0.12);
}

/* Lightbox videyo: pèmèt plis wotè sou mobil */
@media (max-width: 768px) {
  .lightbox-body iframe,
  .lightbox-body video {
    height: 320px !important;
    max-height: 65vh;
  }
}



/* ---- GALERI: menm gwosè pou tout kat ---- */
.gallery-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); /* regilye */
  gap: 16px;
}

.gallery-item{
  position: relative;
  height: 200px;        /* menm wotè pou tout kat yo */
  aspect-ratio: 16 / 10;
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);  /* bordi pi fen */
  border-radius: 10px;                /* kwen pi piti */
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,.08);
  transform: none;                    /* pa fè gwo zoom sou hover */
}

/* kontni an dwe kouvri kat la nèt */
.gallery-item img,
.gallery-item .video-thumbnail{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 10px;
}

/* hover pi dous */
.gallery-item:hover{
  transform: translateY(-4px);
  box-shadow: 0 10px 18px rgba(0,0,0,.15);
  border-color: rgba(0,0,0,.12);
}

/* bouton play la rete piti, byen santre */
.play-button{
  width: 48px;
  height: 48px;
  font-size: 22px;
  opacity: 0.95;
}

/* bann koulè anba chak kat */
.gallery-bar{
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  pointer-events: none;
}

/* mobil: videyo/fenèt la pa trò gwo */
@media (max-width: 768px){
  .lightbox-body video, .lightbox-body iframe{
    height: 320px !important;
    max-height: 65vh;
  }
}
.gallery-grid {
justify-items: center;

}