/* Variables de base pour la charte */
:root {
    --bs-primary: #38a169; /* Vert forêt / nature */
    --bs-secondary: #2c5282; /* Bleu profond */
    --bs-dark: #212529;
}

/* Styles pour la Navbar */
#mainNav {
    padding-top: 1rem;
    padding-bottom: 1rem;
    background-color: var(--bs-dark); /* Navbar sombre par défaut */
    transition: background-color 0.3s ease;
}
.navbar-brand {
    font-weight: 700;
    letter-spacing: 0.1rem;
}

/* Styles pour le Header Héro */
.masthead {
    background-image: url('trailer seul et aventureux dans un paysage de montagne époustouflant.jpg'); /* Remplacez par votre image de fond */
    background-repeat: no-repeat;
    background-attachment: scroll;
    background-position: center center;
    background-size: cover;
    height: 100vh;
    min-height: 500px;
    position: relative;
}

/* Overlay pour mieux lire le texte sur l'image */
.masthead::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4); /* Overlay sombre */
}

/* Styles des Sections Générales */
.page-section {
    padding: 8rem 0;
 
}
.section-heading {
    font-size: 1.8rem;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 1rem;
}
.section-subheading {
    font-size: 1.2rem;
    font-weight: 400;
    font-style: italic;
}

/* Styles de la Section Avantages (couleur de fond) */
#avantages {
    background-color: var(--bs-secondary);
}
#avantages .card {
    border-radius: 1rem;
    transition: transform 0.3s ease;
}
#avantages .card:hover {
    transform: translateY(-5px);
}

#trailerSeul {
    background-color: var(--bs-primary);
    background-image: url('trailer seul de dos.jpg'); /* Remplacez par votre image de fond */
    background-repeat: no-repeat;
    background-attachment: scroll;
    background-position: center center;
    background-size: cover;
    /*height: 100vh;*/
    min-height: 500px;
    /*position: relative;*/
    display: block;
}

/* Styles des Icônes dans la Section Concept */
.icon-circle {
    width: 7rem;
    height: 7rem;
    background-color: var(--bs-primary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 3rem;
    box-shadow: 0 0 0 10px rgba(56, 161, 105, 0.3); /* Effet d'anneau autour */
}
.cadre{
    border: 1px solid #212529;
    border-radius: 5px;
    background-color: rgba(56, 161, 105, 0.1);
    padding: 10px;
}

/* Styles pour les compteurs */
.counter-box {
    font-size: 3rem;
    font-weight: bolder;
    color: var(--bs-primary);
}

/* Styles des boutons personnalisés */
.btn-primary {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
    transition: background-color 0.2s ease, transform 0.2s ease;
}
.btn-primary:hover {
    background-color: #2f855a; /* Une teinte plus foncée */
    border-color: #2f855a;
    transform: translateY(-2px);
}

/* Animations CSS de base */
.animate-fade-in { opacity: 0; animation: fadeIn 1s forwards; }
.animate-slide-up { opacity: 0; animation: slideUp 1s 0.3s forwards; }
.animate-pop-in { opacity: 0; animation: popIn 0.8s 0.6s forwards; }

/* Staggered animation */
.animate-pop-in-stagger { opacity: 0; }

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes popIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

/* Styles pour le Header spécifique à la page parcours */
.page-header-parcours {
    background-image: url('trailer seul de face.jpg'); /* Image spécifique aux parcours/tracés */
    background-repeat: no-repeat;
    background-attachment: scroll;
    background-position: center bottom;
    background-size: cover;
    height: 80vh; /* Moins haut que le masthead */
    min-height: 500px;
    position: relative;
    padding-top: 10rem;
}

/* Overlay pour mieux lire le texte (à réutiliser de .masthead::before si vous le souhaitez, sinon vous pouvez l'ajouter) */
.page-header-parcours::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4); /* Overlay sombre */
}


/* Style pour le placeholder de la carte Leaflet */
#map {
    height: 400px; /* Taille pour visualiser la carte */
    background-color: #e9ecef; /* Gris clair */
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: 1.2rem;
    color: #6c757d;
    font-style: italic;
}

/* Changement de couleur de la section déroulement */
#deroulement {
    background-color: var(--bs-secondary); /* Bleu profond comme la section avantages */
}

#deroulement .icon-circle {
    /* Utilise la couleur primaire dans cette section secondaire */
    background-color: var(--bs-primary); 
    box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.2);
}

#securite {
    background-image: url('trailer seul de face sur crete.png'); /* Remplacez par votre image de fond */
    background-repeat: no-repeat;
    background-attachment: scroll;
    background-position: center center;
    background-size: cover;
    /*height: 100vh;*/
    min-height: 500px;
    position: relative;
    color: #FFFFFF;
    
}

#securite::before {
    z-index:0;
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4); /* Overlay sombre */
}

/* Masquer l'image sur mobile (< 768px) */
@media (max-width: 767px) {
    #securite {
        background-image: none;
        background-color: #2c5282; /* Couleur de fond de remplacement */
    }
}

.page-header-partenaire {
    background-image: url('trailer seul sur chemin de dos.jpg'); /* Image spécifique aux parcours/tracés */
    background-repeat: no-repeat;
    background-attachment: scroll;
    background-position: center bottom;
    background-size: cover;
    height: 80vh; /* Moins haut que le masthead */
    min-height: 500px;
    position: relative;
    padding-top: 10rem;
}

/* Overlay pour mieux lire le texte (à réutiliser de .masthead::before si vous le souhaitez, sinon vous pouvez l'ajouter) */
.page-header-partenaire::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4); /* Overlay sombre */
}

/* Application de la couleur secondaire pour la section offres */
#offres {
    background-color: var(--bs-secondary); 
}

.page-header-challenge {
    background-image: url('trailer seul sur chemin.jpg'); /* Image spécifique aux parcours/tracés */
    background-repeat: no-repeat;
    background-attachment: scroll;
    background-position: center bottom;
    background-size: cover;
    height: 80vh; /* Moins haut que le masthead */
    min-height: 500px;
    position: relative;
    padding-top: 10rem;
}

/* Overlay pour mieux lire le texte (à réutiliser de .masthead::before si vous le souhaitez, sinon vous pouvez l'ajouter) */
.page-header-challenge::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4); /* Overlay sombre */
}

/* Styles pour le Header Héro */
.masthead-finale {
    background-image: url('trailer groupe finale.jpg'); /* Remplacez par votre image de fond */
    background-repeat: no-repeat;
    background-attachment: scroll;
    background-position: center center;
    background-size: cover;
    height: 100vh;
    min-height: 500px;
    position: relative;
}

/* Overlay pour mieux lire le texte sur l'image */
.masthead-finale::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4); /* Overlay sombre */
}