:root {
    --sion-red: #e62117;
    --sion-dark-red: #8b0000;
    --sion-black: #121212;
    --sion-gradient: linear-gradient(135deg, #e62117 0%, #8b0000 100%);
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f8f9fa;
    color: var(--sion-black);
}

/* Navbar personnalisée */
.navbar {
    background: rgba(18, 18, 18, 0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--sion-red);
}

.nav-link {
    color: white !important;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: 0.3s;
}

.nav-link:hover, .nav-link.active {
    color: var(--sion-red) !important;
}

/* Hero Section avec Dégradé */
.hero-section {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('bg1.jpg') no-repeat center center;
    background-size: cover;
    height: 90vh;
    display: flex;
    align-items: center;
    color: white;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
}

.btn-gradient {
    background: var(--sion-gradient);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(230, 33, 23, 0.4);
}

.btn-gradient:hover {
    transform: translateY(-3px);
    color: white;
    box-shadow: 0 6px 20px rgba(230, 33, 23, 0.6);
}

/* Section "Don" flottante */
.donate-cta {
    background: var(--sion-gradient);
    color: white;
    padding: 40px; 
    border-radius: 15px;
    margin-top: -50px;
    position: relative;
    z-index: 10;
}
/* --- TRANSITIONS GLOBALES --- */
/* On définit une transition douce pour tous les éléments interactifs */
.nav-link, 
.btn, 
.card, 
.social-icons a,
.navbar {
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* --- MENU NAVIGATION --- */
.nav-link {
    position: relative;
    opacity: 0.8;
}

.nav-link:hover {
    opacity: 1;
    transform: translateY(-2px); /* Léger soulèvement au survol */
}

/* Animation du trait sous le menu */
.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background-color: var(--sion-red);
    transition: all 0.3s ease-in-out;
    transform: translateX(-50%);
}

.nav-link:hover::after, 
.nav-link.active::after {
    width: 70%;
}

/* --- BOUTONS --- */
.btn-gradient:hover {
    filter: brightness(1.2); /* Éclaircit légèrement le dégradé */
    transform: scale(1.05); /* Effet de zoom subtil */
    box-shadow: 0 8px 20px rgba(230, 33, 23, 0.4);
}

.btn-outline-light:hover {
    background-color: white !important;
    color: var(--sion-red) !important;
    border-color: white !important;
}

/* --- CARTES ÉVÉNEMENTS --- */
.card {
    cursor: pointer;
}

.card:hover {
    transform: translateY(-10px); /* La carte monte doucement */
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2) !important;
}

/* Animation spécifique pour l'image ou le bloc date dans la carte */
.card:hover .display-3 {
    transform: scale(1.1);
    transition: transform 0.5s ease;
}

/* --- ICONS SOCIAUX --- */
.social-icons a:hover {
    background-color: var(--sion-red) !important;
    border-color: var(--sion-red) !important;
    transform: rotate(360deg); /* Effet de rotation fluide */
}
.hover-red-bg:hover {
        background: linear-gradient(135deg, #4a0404 0%, #e62117 100%);
        border-color: var(--sion-red) !important;
        transform: translateY(-10px);
    }
    .transition {
        transition: all 0.4s ease;
    }
    .team-card img {
        transition: transform 0.6s ease;
        object-fit: cover;
        height: 400px; /* Pour garder l'uniformité malgré la taille 2040x1366 */
    }
    .team-card:hover img {
        transform: scale(1.1);
    }

    .gallery-item {
    cursor: pointer;
    transition: transform 0.4s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(74, 4, 4, 0.6); /* Couleur SION en transparence */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.img-link {
    display: block;
    text-decoration: none;
} 