/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

/* Style global */
body {
    font-family: 'Poppins', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
    color: #333;
    overflow-x: hidden;
}



/* Section Hero */
.hero {
    height: calc(100vh - 70px);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

.hero-content {
    text-transform: uppercase;
    font-weight: 700;
    line-height: 1.2;
}

.hero-content h1 {
    font-size: 5rem;
    margin: 0.5rem 0;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
}

/* Section Sorties */
.sorties-section {
    background-color: #E1D4B7; /* Fond beige */
    padding: 40px 20px;
    text-align: center;
}

.sorties-section h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: #1F332C;
    font-weight: 700;
}

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

/* Carte sortie */
.sortie-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.sortie-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
}

/* Image principale */
.sortie-image {
    position: relative;
    flex: 2;
}

.sortie-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.sortie-card:hover .sortie-image img {
    transform: scale(1.05);
}

/* Badge dynamique */
.sortie-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ff6600;
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 5px;
    text-transform: uppercase;
}

/* Contenu texte */
.sortie-info {
    padding: 15px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.sortie-info h3 {
    font-size: 1.5rem;
    margin: 0;
    color: #1F332C;
    font-weight: 700;
}

.sortie-info .details span {
    font-size: 0.9rem;
    color: #666;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.sortie-info .details span i {
    color: #ff6600;
    font-size: 1.1rem;
}

.sortie-info .description {
    font-size: 0.9rem;
    color: #777;
    line-height: 1.4;
    margin-top: 8px;
}

/* Actions (icônes) */
.sortie-actions {
    padding: 10px 15px;
    display: flex;
    justify-content: center;
    gap: 15px;
    border-top: 1px solid #eee;
}

.sortie-actions i {
    font-size: 1.2rem;
    color: #555;
    cursor: pointer;
    transition: color 0.3s ease;
}

.sortie-actions i:hover {
    color: #ff6600;
}

/* Style pour afficher le département */
.sortie-department {
    padding: 10px;
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    color: #555; /* Même couleur que les icônes */
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.sortie-department i {
    font-size: 1.2rem;
    color: #ff6600;
}


/* Section Moments forts */
.moments-forts-section {
    background-color: #F9F6F1;
    padding: 60px 20px;
    text-align: center;
}

.moments-forts-section h2 {
    font-size: 3rem;
    margin-bottom: 40px;
    color: #1F332C;
    font-weight: 700;
}

/* Groupe de moments */
.moment-group {
    margin-bottom: 50px;
}

.moment-group h3 {
    font-size: 2rem;
    color: #1F332C;
    margin-bottom: 20px;
    text-align: left;
    position: relative;
    display: inline-block;
    padding-bottom: 5px;
}

.moment-group h3::after {
    content: "";
    display: block;
    width: 50px;
    height: 4px;
    background-color: #FF6600;
    margin-top: 8px;
}

/* Grille des moments */
.moments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

/* Carte moment */
.moment-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.moment-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Image principale */
.moment-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.moment-card:hover .moment-image img {
    transform: scale(1.05);
}

/* Contenu des moments */
.moment-info {
    padding: 20px;
    background-color: #1F332C;
    text-align: left;
    color: white;
    border-radius: 0 0 15px 15px;
    text-align: center;
}

.moment-info h4 {
    font-size: 1.4rem;
    color: #FF6600;
    font-weight: 700;
    margin-bottom: 10px;
}

.moment-info p {
    font-size: 1rem;
    color: #E1D4B7;
    line-height: 1.6;
}

/* Vidéo */
.moment-video {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.moment-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    background-color: #1F332C;
    color: white;
    margin-top: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 3.5rem;
    }

    .sortie-info h3 {
        font-size: 1.3rem;
    }

    .moment-info h4 {
        font-size: 1.3rem;
    }
}
/* Section vidéo enrichie */
.moment-video {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    animation: fadeIn 1s ease-in-out;
}

.moment-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none; /* Désactiver les interactions avec la vidéo */
}

/* Contenu enrichi */
.aventures-info {
    background-color: #1F332C;
    color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    animation: slideInRight 1s ease-in-out;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.aventures-info h4 {
    font-size: 1.8rem;
    color: #FF6600;
    align-items: center;
    gap: 10px;
}

.aventures-info .description {
    font-size: 1.2rem;
    color: #E1D4B7;
    line-height: 1.6;
}

.highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.highlight-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    flex: 1;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.highlight-item i {
    font-size: 1.5rem;
    color: #FF6600;
    margin-bottom: 5px;
}

.highlight-item p {
    font-size: 1rem;
    color: #E1D4B7;
}

/* Actions interactives */
.actions {
    display: flex;
    gap: 15px;
}

.actions button {
    background-color: #FF6600;
    color: white;
    border: none;
    padding: 10px 15px;
    font-size: 1rem;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.3s ease;
}

.actions button:hover {
    background-color: #E15500;
}

.actions i {
    font-size: 1.2rem;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Assurez-vous que les conteneurs contenant les éléments modifiables sont positionnés en relative */
.moment-info {
    position: relative;
}

/* Cacher par défaut tous les boutons d’édition et de validation dans .moment-info */
.moment-info .edit-btn,
.moment-info .save-btn {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* Afficher les boutons seulement au survol de la carte */
.moment-card:hover .moment-info .edit-btn,
.moment-card:hover .moment-info .save-btn {
    opacity: 1;
    pointer-events: auto;
}

/* Positionner le bouton d’édition du titre dans le coin supérieur droit de l’élément h4 */
.moment-info h4 {
    position: relative;
}
.moment-info h4 .edit-btn,
.moment-info h4 .save-btn {
    position: absolute;
    top: 5px;
    right: 5px;
}

/* Positionner le bouton d’édition de la description dans le coin inférieur droit de .moment-info */
.moment-info .edit-description-btn,
.moment-info .save-btn.edit-description-btn {
    position: absolute;
    bottom: 5px;
    right: 5px;
}

/* Style général des boutons pour qu'ils soient discrets et dans le thème */
.edit-btn,
.save-btn {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid #FF6600;
    color: #FF6600;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    z-index: 10;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Ajout d'icônes via pseudo-éléments (Font Awesome requis) */
.edit-btn::before {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    content: "\f044"; /* Icône crayon */
    margin-right: 4px;
}
.save-btn::before {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    content: "\f00c"; /* Icône check */
    margin-right: 4px;
}

/* Effet au survol des boutons */
.edit-btn:hover,
.save-btn:hover {
    background-color: rgba(255, 102, 0, 0.1);
    color: #E15500;
}

/* Bouton spécifique pour modifier l'image */
.change-image-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background-color: #E15500; /* Fond #1F332C */
    border: 1px solid #1F332C;
    color: #fff; /* Texte blanc */
    font-size: 0.9rem;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    z-index: 10;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.change-image-btn:hover {
    background-color: #E15500; /* Couleur au survol (optionnelle) */
}

/* Boutons pour modifier le titre et l'image de la Hero Section */
#edit-hero-title,
#edit-hero-image {
    background-color: #1F332C;
    border: 1px solid #1F332C;
    color: #fff;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    z-index: 10;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

#edit-hero-title:hover,
#edit-hero-image:hover {
    background-color: #E15500;
}
