/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Nouvelles couleurs basées sur le logo AGIAS */
    --primary-color: #0978bd;
    --secondary-color: #e14724;
    --accent-color: #cbe4ff;
    --primary-dark: #075a8a;
    --primary-light: #2b9de4;
    --secondary-dark: #c33a1e;
    --secondary-light: #f56b47;
    
    /* Couleurs neutres */
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --lighter-gray: #fafbfc;
    --border-color: #e9ecef;
    --shadow: 0 2px 12px rgba(9, 120, 189, 0.15);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem;
}

.subsection-title {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin: 3rem 0 2rem;
    text-align: center;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 15px 35px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
}

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

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--white);
    border-color: var(--primary-color);
    box-shadow: 0 6px 20px rgba(9, 120, 189, 0.25);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(9, 120, 189, 0.35);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-light));
    color: var(--white);
    border-color: var(--secondary-color);
    box-shadow: 0 6px 20px rgba(225, 71, 36, 0.25);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, var(--secondary-dark), var(--secondary-color));
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(225, 71, 36, 0.35);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 30px rgba(9, 120, 189, 0.3);
    border-bottom: 3px solid var(--secondary-color);
}

.navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    opacity: 0.6;
}

.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: 12px;
    transition: var(--transition);
    position: relative;
}

.nav-logo::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, rgba(203, 228, 255, 0.3), transparent);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.nav-logo:hover::before {
    transform: translate(-50%, -50%) scale(1);
    animation: pulse 2s infinite;
}

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

@keyframes pulse {
    0%, 100% {
        opacity: 0.3;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.1;
        transform: translate(-50%, -50%) scale(1.2);
    }
}

.logo {
    height: 45px;
    width: auto;
    filter: drop-shadow(0 2px 8px rgba(255, 255, 255, 0.3));
    transition: var(--transition);
}

.logo-text {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 1px;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.logo-text::after {
    content: 'AGIAS';
    position: absolute;
    top: 0;
    left: 0;
    background: linear-gradient(135deg, var(--accent-color), rgba(255, 255, 255, 0.9));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-logo:hover .logo-text::after {
    opacity: 1;
    animation: textShimmer 0.6s ease-in-out;
}

@keyframes textShimmer {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(1px); }
    75% { transform: translateX(-1px); }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-item {
    position: relative;
}

.nav-link {
    text-decoration: none;
    color: var(--white);
    font-weight: 600;
    font-size: 1rem;
    padding: 10px 16px;
    border-radius: 25px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent-color), rgba(255, 255, 255, 0.2));
    border-radius: 25px;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.nav-link:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.nav-link:hover::before {
    opacity: 1;
    transform: scale(1);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 8px;
    left: 50%;
    background: linear-gradient(90deg, var(--accent-color), var(--white));
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
    border-radius: 2px;
}

.nav-link:hover::after {
    width: 60%;
}

/* Dropdown Menu Styles */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    position: relative;
}

.dropdown-toggle::after {
    content: ' ▼';
    font-size: 0.7rem;
    margin-left: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
    opacity: 0.8;
}

.dropdown:hover .dropdown-toggle::after {
    transform: rotate(180deg);
    opacity: 1;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 15px);
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(203, 228, 255, 0.95));
    min-width: 220px;
    box-shadow: 0 15px 40px rgba(9, 120, 189, 0.2);
    border-radius: 15px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(-15px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1001;
    padding: 15px 0;
    list-style: none;
    border: 2px solid var(--primary-color);
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(203, 228, 255, 0.95));
    border: 2px solid var(--primary-color);
    border-bottom: none;
    border-right: none;
    transform: translateX(-50%) rotate(45deg);
    border-radius: 2px 0 0 0;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0) scale(1);
}

.dropdown-link {
    display: block;
    padding: 12px 25px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border-radius: 8px;
    margin: 0 10px;
}

.dropdown-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent-color), rgba(9, 120, 189, 0.1));
    border-radius: 8px;
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

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

.dropdown-link:hover::before {
    opacity: 1;
    transform: scale(1);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1002;
}

.hamburger:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.bar {
    width: 28px;
    height: 3px;
    background: var(--white);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
    transform-origin: center;
}

.hamburger.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
    background: var(--secondary-color);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.hamburger.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
    background: var(--secondary-color);
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 50%, var(--primary-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(225, 71, 36, 0.1) 0%, rgba(9, 120, 189, 0.1) 100%);
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(7, 90, 138, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.hero-content {
    max-width: 800px;
    padding: 0 20px;
    animation: fadeInUp 1s ease;
    position: relative;
    z-index: 3;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--accent-color);
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin: 2rem 0;
}

.stat-item {
    text-align: center;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(203, 228, 255, 0.2) 100%);
    padding: 20px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--white);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.stat-label {
    font-size: 1rem;
    color: var(--accent-color);
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

/* About Section */
.about-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--lighter-gray) 0%, #ffffff 100%);
    position: relative;
}

.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23f0f0f0" opacity="0.3"/><circle cx="75" cy="75" r="1" fill="%23f0f0f0" opacity="0.3"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.5;
    pointer-events: none;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.about-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(9, 120, 189, 0.08);
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(9, 120, 189, 0.05);
}

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

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

.about-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 50px rgba(9, 120, 189, 0.15);
    border-color: rgba(9, 120, 189, 0.1);
}

.card-icon {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--white);
    font-size: 2.2rem;
    box-shadow: 0 8px 25px rgba(9, 120, 189, 0.25);
    position: relative;
    overflow: hidden;
}

.card-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.3) 0%, transparent 50%);
    border-radius: 50%;
}

.about-card:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 35px rgba(9, 120, 189, 0.35);
}

.about-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

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

.comp-stat {
    text-align: center;
    padding: 1rem;
    background: var(--accent-color);
    border-radius: 10px;
    border: 1px solid var(--primary-color);
}

.comp-stat .number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.comp-stat .label {
    font-size: 0.9rem;
    color: var(--text-light);
}

.mission-list {
    list-style: none;
    text-align: left;
}

.mission-list li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.mission-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* Members Section */
.members-section {
    margin-top: 3rem;
    text-align: center;
}

.members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.member-stat {
    background: var(--white);
    padding: 2rem 1.5rem;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(9, 120, 189, 0.08);
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(9, 120, 189, 0.05);
}

.member-stat::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.member-stat:hover::before {
    transform: scaleX(1);
}

.member-stat:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(9, 120, 189, 0.15);
}

.member-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.member-label {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 0.5rem;
}

/* Extension Section */
.extension-section {
    margin-top: 3rem;
    text-align: center;
}

.extension-features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.extension-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.extension-item i {
    font-size: 2rem;
    color: var(--primary-color);
}

/* Programs Section */
.programs-section {
    padding: 5rem 0;
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.program-card {
    background: var(--white);
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(9, 120, 189, 0.08);
    transition: var(--transition);
    position: relative;
    border: 2px solid rgba(9, 120, 189, 0.05);
}

.program-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(9, 120, 189, 0.02) 0%, transparent 50%, rgba(203, 228, 255, 0.02) 100%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.program-card:hover::after {
    opacity: 1;
}

.program-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 60px rgba(9, 120, 189, 0.15);
    border-color: var(--primary-color);
}

.program-image {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.program-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(9, 120, 189, 0.1) 0%, transparent 50%, rgba(225, 71, 36, 0.1) 100%);
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.program-card:hover .program-image::before {
    opacity: 1;
}

.program-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
    filter: brightness(1.1) saturate(1.1);
}

.program-card:hover .program-image img {
    transform: scale(1.15);
    filter: brightness(1.2) saturate(1.2);
}

.program-content {
    padding: 2rem;
}

.program-content h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--accent-color) 0%, #e6f4ff 100%);
    padding: 15px;
    margin: -1px -1px 0 -1px;
    border-bottom: 2px solid var(--primary-color);
}

.program-content h4 {
    color: var(--secondary-color);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.program-features {
    list-style: none;
    margin-bottom: 1.5rem;
}

.program-features li {
    padding: 0.3rem 0;
    position: relative;
    padding-left: 1.5rem;
    font-size: 0.9rem;
}

.program-features li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* Youth Section */
.youth-section {
    text-align: center;
    margin-top: 3rem;
}

.youth-stat {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--white);
    padding: 2rem 3rem;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(9, 120, 189, 0.25);
}

.youth-number {
    font-size: 3rem;
    font-weight: 700;
    display: block;
    color: var(--white);
}

.youth-text {
    font-size: 1.1rem;
    margin-top: 0.5rem;
}

/* Gallery Section */
.gallery-section {
    padding: 5rem 0;
    background: var(--lighter-gray);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.gallery-item {
    position: relative;
    height: 320px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(9, 120, 189, 0.12);
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(9, 120, 189, 0.1) 0%, transparent 70%);
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover::before {
    opacity: 1;
}

.gallery-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 50px rgba(9, 120, 189, 0.2);
    border-color: var(--primary-color);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(transparent, rgba(9, 120, 189, 0.9), rgba(225, 71, 36, 0.9));
    color: var(--white);
    padding: 2.5rem;
    transform: translateY(60px);
    transition: var(--transition);
    z-index: 2;
}

.gallery-overlay h3 {
    margin-bottom: 0.8rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.gallery-overlay p {
    opacity: 0.9;
    font-size: 0.95rem;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-item:hover img {
    transform: scale(1.15);
    filter: brightness(1.1) saturate(1.2);
}

/* Impact Section */
.impact-section {
    padding: 5rem 0;
}

.impact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.impact-text h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.impact-text p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.impact-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

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

.stat-title {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.stat-desc {
    font-size: 0.9rem;
    color: var(--text-light);
}

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

.impact-image img {
    max-width: 100%;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

/* Partners Section */
.partners-section {
    padding: 5rem 0;
    background: var(--lighter-gray);
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    align-items: center;
}

.partner-item {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    border: 2px solid var(--border-color);
}

.partner-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 35px rgba(9, 120, 189, 0.15);
}

.partner-item img {
    max-width: 150px;
    max-height: 80px;
    object-fit: contain;
}

/* Contact Section */
.contact-section {
    padding: 5rem 0;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-form {
    background: var(--white);
    padding: 3rem;
    border-radius: 25px;
    box-shadow: 0 15px 40px rgba(9, 120, 189, 0.08);
    position: relative;
    border: 1px solid rgba(9, 120, 189, 0.05);
}

.contact-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 25px 25px 0 0;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(9, 120, 189, 0.1);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(9, 120, 189, 0.08);
    transition: var(--transition);
    border: 1px solid rgba(9, 120, 189, 0.05);
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-color), var(--accent-color));
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.contact-card:hover::before {
    transform: scaleY(1);
}

.contact-card:hover {
    transform: translateX(8px);
    box-shadow: 0 12px 35px rgba(9, 120, 189, 0.15);
}

.contact-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-card h3 i {
    font-size: 1.2rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

/* Footer */

/* ======= Footer Modernisé ======= */
.footer {
    background: linear-gradient(135deg, var(--primary-dark) 60%, var(--primary-color) 100%);
    color: var(--white);
    padding: 3.5rem 0 1.5rem;
    box-shadow: 0 -8px 32px rgba(9,120,189,0.10);
    position: relative;
    border-top: 4px solid var(--secondary-color);
    font-size: 1rem;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background: linear-gradient(90deg, var(--accent-color), transparent 80%);
    opacity: 0.7;
    pointer-events: none;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2.5rem;
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 2;
}

.footer-section {
    padding: 0.5rem 0;
}

.footer-section h3 {
    color: var(--accent-color);
    margin-bottom: 1.2rem;
    font-size: 1.2rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 700;
    position: relative;
}
.footer-section h3::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), var(--primary-light));
    border-radius: 2px;
    margin: 8px 0 0 0;
    opacity: 0.7;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1.2rem;
    position: relative;
}
.footer-logo img {
    height: 44px;
    filter: drop-shadow(0 2px 8px rgba(255,255,255,0.2));
    transition: var(--transition);
}
.footer-logo span {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent-color);
    letter-spacing: 1px;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.2);
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}
.footer-social a {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition);
    font-size: 1.2rem;
    box-shadow: 0 2px 8px rgba(9,120,189,0.10);
}
.footer-social a:hover {
    background: var(--secondary-color);
    color: var(--white);
    transform: translateY(-2px) scale(1.08);
    box-shadow: 0 6px 18px rgba(225,71,36,0.15);
}

.footer-links {
    list-style: none;
    padding: 0;
}
.footer-links li {
    margin-bottom: 0.7rem;
}
.footer-links a {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
    padding: 2px 0;
    border-bottom: 2px solid transparent;
}
.footer-links a:hover {
    color: var(--accent-color);
    border-bottom: 2px solid var(--accent-color);
}

.footer-contact p {
    margin-bottom: 0.7rem;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 1rem;
    color: var(--white);
}
.footer-contact i {
    color: var(--accent-color);
    font-size: 1.1rem;
    margin-right: 4px;
}

.newsletter {
    display: flex;
    gap: 0.5rem;
    margin-top: 1.2rem;
    background: var(--primary-light);
    border-radius: 8px;
    padding: 8px;
    box-shadow: 0 2px 8px rgba(9,120,189,0.08);
}
.newsletter input {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    background: var(--white);
    color: var(--primary-color);
}
.newsletter button {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    background: var(--secondary-color);
    color: var(--white);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}
.newsletter button:hover {
    background: var(--primary-color);
    color: var(--accent-color);
}

.footer-bottom {
    border-top: 2px solid var(--accent-color);
    padding-top: 1.2rem;
    background: linear-gradient(90deg, transparent, var(--primary-dark) 80%);
    font-size: 0.95rem;
    position: relative;
    z-index: 2;
}
.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    flex-wrap: wrap;
    gap: 1rem;
}
.footer-bottom-links {
    display: flex;
    gap: 1.2rem;
    align-items: center;
}
.footer-bottom-links a {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
    padding: 2px 0;
    border-bottom: 2px solid transparent;
}
.footer-bottom-links a:hover {
    color: var(--accent-color);
    border-bottom: 2px solid var(--accent-color);
}

/* Responsive Footer */
@media (max-width: 900px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }
}
@media (max-width: 600px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1rem;
    }
    .footer-bottom-content {
        flex-direction: column;
        gap: 0.7rem;
    }
    .footer-logo {
        justify-content: center;
    }
    .footer-social {
        justify-content: center;
    }
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0978bd 0%, #2b9de4 50%, #cbe4ff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.8s ease, transform 0.8s ease;
    overflow: hidden;
}

.loading-screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
    animation: float 6s ease-in-out infinite;
}

.loading-screen.hide {
    opacity: 0;
    transform: scale(1.1);
    pointer-events: none;
}

.loading-content {
    text-align: center;
    position: relative;
    z-index: 1;
    animation: fadeInUp 1s ease;
}

.loading-logo {
    height: 120px;
    width: auto;
    margin-bottom: 2rem;
    animation: logoAnimation 3s ease-in-out infinite;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.2));
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    backdrop-filter: blur(10px);
}

.loading-content p {
    color: white;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    animation: textPulse 2s ease-in-out infinite;
    margin-bottom: 1rem;
}

.loading-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 1px;
    text-align: center;
    max-width: 400px;
    margin: 0 auto;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1.5s ease 0.5s both;
    line-height: 1.4;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top: 4px solid #ffffff;
    border-right: 4px solid #e14724;
    border-radius: 50%;
    animation: spinGlow 1.5s linear infinite;
    margin: 0 auto 2rem;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
}

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

@keyframes logoAnimation {
    0%, 100% {
        transform: scale(1) rotate(0deg);
    }
    25% {
        transform: scale(1.05) rotate(1deg);
    }
    50% {
        transform: scale(1.1) rotate(0deg);
    }
    75% {
        transform: scale(1.05) rotate(-1deg);
    }
}

@keyframes textPulse {
    0%, 100% {
        opacity: 0.8;
        transform: translateY(0);
    }
    50% {
        opacity: 1;
        transform: translateY(-5px);
    }
}

@keyframes spinGlow {
    0% {
        transform: rotate(0deg);
        box-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
    }
    50% {
        box-shadow: 0 0 50px rgba(255, 255, 255, 0.6);
    }
    100% {
        transform: rotate(360deg);
        box-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
    }
}

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

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

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Team Section Styles */
.team-section {
    padding: 80px 0;
    background: var(--lighter-gray);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.team-member {
    background: var(--white);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 2px solid var(--border-color);
}

.team-member:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(9, 120, 189, 0.2);
    border-color: var(--primary-color);
}

.member-image {
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--primary-color);
    position: relative;
}

.member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.team-member:hover .member-image img {
    transform: scale(1.1);
}

.member-info h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.member-info h4 {
    color: var(--secondary-color);
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.member-info p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.member-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.member-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition);
}

.member-social a:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

/* Board Section */
.board-section {
    margin-top: 4rem;
}

.board-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.board-member {
    background: linear-gradient(135deg, var(--accent-color) 0%, #e6f4ff 100%);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    border: 2px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(9, 120, 189, 0.1);
    transition: var(--transition);
}

.board-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(9, 120, 189, 0.15);
}

.board-member h4 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.board-member p {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.board-member span {
    color: var(--text-light);
    font-size: 0.9rem;
    font-style: italic;
}

/* Team Actions */
.team-actions {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.team-actions .btn {
    padding: 12px 30px;
    font-size: 1rem;
    min-width: 150px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--primary-dark);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-item {
        margin: 1rem 0;
    }
    
    /* Mobile Dropdown Styles */
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: var(--light-gray);
        margin: 0.5rem 0 0 0;
        border-radius: 8px;
        display: none;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, padding 0.3s ease;
    }
    
    .dropdown.active .dropdown-menu {
        display: block;
        max-height: 200px;
        padding: 0.5rem 0;
    }
    
    .dropdown-link {
        display: block;
        padding: 0.8rem 1.5rem;
        color: var(--text-dark);
        text-decoration: none;
        font-weight: 500;
        transition: var(--transition);
        border-left: none;
        font-size: 0.9rem;
    }
    
    .dropdown-link:hover {
        background: var(--primary-color);
        color: var(--white);
    }
    
    .dropdown-toggle {
        position: relative;
        cursor: pointer;
    }
    
    .dropdown-toggle::after {
        content: ' ▼';
        font-size: 0.7rem;
        margin-left: 8px;
        transition: var(--transition);
    }
    
    .dropdown.active .dropdown-toggle::after {
        transform: rotate(180deg);
    }
    
    .hero {
        background: linear-gradient(180deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .members-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .extension-features {
        flex-direction: column;
        gap: 1rem;
    }
    
    .programs-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .impact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .impact-stats {
        justify-content: center;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .board-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .newsletter {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .members-grid {
        grid-template-columns: 1fr;
    }
    
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

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