/* Style général */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    height: 100%;
    color: white;
    background-color: #5c5c5c;
    text-shadow: 0.18vw 0.18vw 1.5px rgba(0, 0, 0, 1);
    font-size: 1.8vw;
}

h1, h2, h3 {
    font-family: 'Montserrat', sans-serif;
    color: #f1c40f;
}

h1 {
    font-size: 3.4vw;
}
h2 {
    font-size: 3.2vw;
}
h3 {
    font-size: 2.8vw;
}
h4 {
    font-size: 2.6vw;
}

/* Div de l'image de fond */
.background {
    position: fixed; /* Fixe l'image en arrière-plan */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -1; /* Assure que la div se trouve derrière le contenu */
    transition: background-image 1s ease-in-out; /* Transition pour changer d'image */
}

/* Style pour le header */
header {
    text-align: center;
    padding: 100px 20px;
    position: relative;
    z-index: 2;
}

.title {
    font-size: 6vw;
    animation: fadeInUp 1s ease-out;
}

.subtitle {
    font-size: 2.5vw;
    animation: fadeInUp 1.2s ease-out;
    
}

/* Informations de l'événement */
.event-info {
    padding: 50px 20px;
    text-align: center;
    animation: fadeInUp 2s ease-out;
}

.info-box {
    background-color: rgba(0, 0, 0, 0.8);
    margin: 20px auto;
    padding: 20px;
    border-radius: 10px;
    display: inline-block;
}

.parcours {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.parcours-item {
    background-color: rgba(0, 0, 0, 0.8);
    margin: 10px;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    width: 30vw;
    transition: transform 0.3s ease;
}

.parcours-item:hover {
    transform: translateY(-10px);
}

/* Footer */
footer {
    text-align: center;
    margin-top: 50px;
    font-size: 2vw;
}

/* Animation de fadeInUp */
@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Style pour le bloc d'inscription */
.registration {
    text-align: center;
    background-color: #e67e22; /* Couleur qui correspond à l'orange foncé */
    padding: 40px 20px;
    margin: 50px 0;
    border-radius: 10px;
}

.registration h2 {
    font-size: 2.5em;
    color: white;
    margin-bottom: 20px;
}

.registration p {
    font-size: 1.2em;
    color: white;
    margin-bottom: 30px;
}

/* Bouton d'inscription */
.btn-register {
    display: inline-block;
    padding: 15px 30px;
    background-color: #34495e; /* Un gris foncé pour contraster avec l'orange */
    color: white;
    font-size: 1.2em;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.btn-register:hover {
    background-color: #2c3e50; /* Légère modification du gris pour l'effet hover */
}



/* Effet d'animation sur le bouton */
.btn-register {
    position: relative;
    overflow: hidden;
}

.btn-register::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300%;
    height: 300%;
    background-color: rgba(255, 255, 255, 0.2);
    transition: width 0.4s, height 0.4s, top 0.4s, left 0.4s;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.btn-register:hover::after {
    width: 0;
    height: 0;
    top: 50%;
    left: 50%;
}



/* Container du parcours */
.vtt-parcours {
    position: relative;
    width: 100%;
    height: 500px; /* Ajuster la hauteur selon le parcours */
    margin-top: 50px;
    overflow: hidden; /* Empêche le débordement du vélo */
}

/* Le parcours (une image de ligne ou chemin) */
.parcours-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.parcoursD {
    position: fixed; /* Fixe l'image du parcours pour qu'elle ne défile pas */
    top: 2%;  /* Centre verticalement le parcours */
    left: 10px;
    transform: translateY(-50%); /* Recentre l'image */
    z-index: -1; /* Assure que le parcours est en arrière-plan */
    width : 6vw;
}
.parcoursA {
    position: fixed; /* Fixe l'image du parcours pour qu'elle ne défile pas */
    top: 2%;  /* Centre verticalement le parcours */
    right: 10px;
    transform: translateY(-50%); /* Recentre l'image */
    z-index: -1; /* Assure que le parcours est en arrière-plan */
    width : 6vw;
}

/* Le vélo */
.vtt-bike {
    position: fixed;
    width: 50px; /* Ajuste la taille du vélo */
    height: auto;
    top: 2%; /* Position de départ en bas */
    left: -40px; /* Position initiale du vélo */
    z-index: 1; /* Place le vélo au-dessus du parcours */
    transition: left 0.1s linear; /* Animation pour le mouvement horizontal fluide */
}

.intro-oms {
    text-align: center;
    padding: 30px;
    background-color: rgba(0, 0, 0, 0.8); /* Fond semi-transparent */
    margin-top: 50px;
    border-radius: 10px;
}

.oms-text {
    font-size: 1.5em;
    color: white;
    font-weight: bold;
    margin-bottom: 20px;
}

/* Style pour le lien "Qui sommes-nous ?" */
.link-oms {
    text-align: center;
    margin-top: 30px;
}

.btn-qui-sommes-nous {
    padding: 15px 30px;
    background-color: #f39c12; /* Couleur orange */
    color: white;
    font-size: 1.2em;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.btn-qui-sommes-nous:hover {
    background-color: #e67e22; /* Légère modification du orange pour l'effet hover */
}

/* Style pour la section "Qui sommes-nous ?" */
.qui-sommes-nous {
    padding: 50px 20px;
    background-color: #34495e; /* Gris foncé */
    color: white;
    text-align: center;
}

.qui-sommes-nous h2 {
    margin-bottom: 20px;
}

.qui-sommes-nous p {
    font-size: 1.6vw;
    line-height: 1.6;
    max-width: 80vw;
    margin: 0 auto;
    text-align: justify;
}

.social-links {
    display: flex;
    justify-content: flex-start;
    gap: 15px;
    margin-top: 10px;
}

.social-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    font-size: 14px;
   
}

.social-link img {
    margin-right: 5px;
}

.video-section {
    text-align: center;
    margin: 50px auto;
}

.video-container iframe,
.video-section video {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}