/* Reset et styles de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: url("resources/web_header.png");
    background-size: cover;
    min-height: 100vh;
}

/* Navigation fixe */
.navbar {
    position: fixed;
    top: -80px;
    left: 0;
    right: 0;
    z-index: 200; /* Changé de 1000 à 200 pour être au-dessus des images */
    background: rgba(255, 255, 255, 1);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    transition: top 0.3s ease;
}


.navbar.navbar-visible {
    top: 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    height: 70px;
}

.nav-logo {
    width: 120px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: #393939;
    /* Remove size-adjust: fit; (not a valid CSS property) */
}

.nav-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: #2c3e50;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #2775A4;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: linear-gradient(135deg, #2775A4, #EE3C23);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Images flottantes */
.floating-images {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 10; /* Changé de 10 à 100 */
    pointer-events: none;
    transition: transform 0.1s ease-out, opacity 0.1s ease-out;
}

.floating-plane {
    position: absolute;
    object-fit: contain;
    border-radius: 15px;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
}

.floating-plane-1 {
    width: 70%;
    height: 70%;
    top: 30%;
    right: 5%;
    animation: float1 6s ease-in-out infinite;
}

.floating-plane-2 {
    width: 40%;
    height: 40%;
    top: 25%;
    left: 8%;
    animation: float2 8s ease-in-out infinite;
}

.floating-plane-3 {
    width: 100px;
    height: 100px;
    top: 35%;
    left: 15%;
    animation: float3 7s ease-in-out infinite;
}

@keyframes float1 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(2deg); }
}

@keyframes float2 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(-2deg); }
}

@keyframes float3 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-25px) rotate(1deg); }
}

/* Container principal */
.container {
    max-width: 1200px;
    margin: 0 auto;
    background: transparent;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border-radius: 20px;
    overflow: hidden;
    margin-top: 20px;
    margin-bottom: 20px;
    position: relative;
    z-index: 50; /* Changé de 20 à 50 */
}

/* Background images */
.background-image {
    position: absolute;    
    object-fit: cover;
    top: 0;
    left: 0;
    max-width: 100%;
    max-height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 1; /* Réduit l'opacité pour un effet de fond */
    z-index: -1; /* Assure que l'image est derrière le contenu */
}



/* Section Hero */
.hero {
    background: transparent;
    background-size: cover;
    background-position: center;
    height: 100vh;
    display: flex;
    align-items: flex-start; /* Align from top */
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
}

.hero-content {
    transform: translateY(00px);
    width: 100%;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
    animation: fadeInUp 1s ease-out;
}
.hero-content h2 {
    font-size: 4.5rem;
    color:#c31e29;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
    animation: fadeInUp 1s ease-out;
}

.hero-content p {
    font-size: 2.0rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
    animation: fadeInUp 1s ease-out 0.3s both;
}

.date-badge {
    background: rgba(255,255,255,0.9);
    color: #333;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: bold;
    display: inline-block;
    animation: fadeInUp 1s ease-out 0.6s both;
    backdrop-filter: blur(10px);
}

/* Sections générales */
.section {
    padding: 60px 40px;
}

.section:nth-child(even) {
    background: #f8f9fa;
}

.section h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: #000000;
    position: relative;
}

.section h2::after {
    content: '';
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #2775A4, #ffffff);
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.section h3 {
    text-align: center;
    margin-bottom: 3rem;
}

/* Grilles d'information */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.info-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 5px solid #2775A4;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.info-card h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.info-card p {
    color: #666;
    line-height: 1.7;
}



/* Grille des activités */
.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 25px;
}

.activity-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.activity-card:hover {
    transform: scale(1.05);
}

.activity-image {
    height: 280px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.activity-content {
    padding: 20px;
}

.activity-content h3 {
    color: #2c3e50;
    margin-bottom: 10px;
}

/* Grille des activités */
.groups-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
}

.group-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.group-card:hover {
    transform: scale(1.05);
}

.group-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.group-content {
    padding: 20px;
}

.group-content h3 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.group-content h2 {
    color: #ed0f0f;
    margin-bottom: 10px;
}

/* Sponsors */
.sponsors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
}

.sponsors-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.sponsors-card:hover {
    transform: scale(1.05);
}

.sponsors-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.sponsors-content h3 {
    padding-top: -20px;
    text-align: center;
    margin-bottom: 10px;
}

.sponsors-content {
    margin-bottom: 40px;
    text-align: center;
}


/* Tableau des horaires */
.schedule-table {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    max-width: 800px;
    margin: 0 auto;
}

.schedule-table table {
    width: 100%;
    border-collapse: collapse;
}

.schedule-table th,
.schedule-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.schedule-table th {
    background: linear-gradient(135deg, #c31e29, #f13542);
    color: white;
    font-weight: 600;
}

.schedule-table tr:hover {
    background: #f8f9fa;
}

/* Section contact */
.contact-info {
    text-align: center;
    background: linear-gradient(135deg, #2775A4, #12354a);
    color: white;
    border-radius: 15px;
    padding: 40px;
    margin-top: 30px;
}

.contact-info h3 {
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.contact-details {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.icon {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* Bouton d'action */
.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, #ffffff, #d1d1d1);
    color: black;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-top: 20px;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

/* Footer */
.footer {
    background: #c31e29;
    color: white;
    text-align: center;
    padding: 30px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .section {
        padding: 40px 20px;
    }
    
    .contact-details {
        flex-direction: column;
        align-items: center;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .activities-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .schedule-table {
        margin: 0 10px;
    }
    
    .schedule-table th,
    .schedule-table td {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
    
    /* Navigation mobile */
    .nav-menu {
        gap: 15px;
        flex-wrap: wrap;
    }
    
    .nav-link {
        font-size: 0.9rem;
    }
    
    .nav-container {
        padding: 0 15px;
        height: 60px;
    }
    
    .navbar {
        top: -60px;
    }
    
    

}