/* Arrière-plan fixe */
.background-image {
    background-image: url('BG_Valmousse.jpg');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.pt-5 {
    padding-top: 5rem !important;
}

/* Header */
.header {
    background-color: rgba(0, 0, 0, 0.6);
    transition: background-color 0.3s ease;
}

.logo img {
    width: 245px;
    height: auto; /* Garde les proportions */
}

/* Style pour l'icône du menu burger en blanc et plus épaisse */
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 16 16'%3E%3Cpath fill='%23ffffff' fill-rule='evenodd' d='M1.5 2.75a.75.75 0 0 1 .75-.75h12a.75.75 0 0 1 0 1.5h-12a.75.75 0 0 1-.75-.75zm0 5.5a.75.75 0 0 1 .75-.75h12a.75.75 0 0 1 0 1.5h-12a.75.75 0 0 1-.75-.75zm0 5.5a.75.75 0 0 1 .75-.75h12a.75.75 0 0 1 0 1.5h-12a.75.75 0 0 1-.75-.75z'/%3E%3C/svg%3E");
    background-size: 1.5em 1.5em; /* Taille de l'icône */
}

.nav {
    display: flex;
    gap: 20px;
}

.navbar-brand img {
    width: 245px; /* Taille du logo */
    height: auto;
}

/* Style du menu en mode mobile */
.navbar-toggler {
    border: none;
    outline: none;
    margin-left: auto; /* Aligne le bouton burger à droite en mode mobile */
}

.nav-link {
    color: white;
    font-weight: bold;
    transition: color 0.3s;
}

.nav-link:hover {
    color: #3d6b3d; /* Couleur au survol */
}

/* Centre le logo et ajuste l'espacement du menu burger */
.navbar {
    display: flex;
    align-items: center;
}

.navbar-brand {
    margin-right: auto; /* Positionne le logo à gauche */
}

/* Aligne tout le menu, y compris les liens et le bouton burger, à droite */
.navbar .collapse {
    justify-content: flex-end;
}

/* Ajustement du menu déroulant en mode mobile */
@media (max-width: 992px) {
    .navbar-collapse {
        background-color: #3d6b3d; /* Couleur de fond pour le menu burger */
    }

    .nav-link {
        color: white;
        padding: 10px;
    }
}

/* Effet pour le scroll */
.header.scrolled {
    background-color: rgba(0, 0, 0, 0.8);
}

/* Section Galerie */
.card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.card:hover {
    transform: scale(1.05);
}

.card-img-top {
    height: 200px;
    object-fit: cover;
}

.card-title {
    color: #3d6b3d;
    font-weight: bold;
    font-size: 1.25rem;
}

.card-text {
    color: #555;
    font-size: 0.9rem;
}
/* Désactive le soulignement des liens dans les cartes */
.card a {
    text-decoration: none; /* Supprime le soulignement */
    color: inherit; /* Utilise la couleur du texte par défaut */
}

/* Optionnel : Modifier l'apparence au survol */
.card a:hover {
    text-decoration: none; /* Toujours sans soulignement au survol */
    color: inherit; /* Garde la couleur du texte */
    cursor: pointer; /* Change le curseur pour indiquer une interaction */
}

.btn-primary {
    background-color: #3d6b3d;
    border-color: #3d6b3d;
    font-weight: bold;
    padding: 10px 20px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-primary:hover {
    background-color: #2f4f2f;
    border-color: #2f4f2f;
    transform: translateY(-2px);
}

.btn-primary:active {
    background-color: #3d6b3d;
    transform: translateY(0);
}

/* Style pour le footer */
/* Style pour le footer */
footer {
    background-color: #333;
    color: #fff;
    padding: 1rem 0;
    text-align: center;
    position: relative;
}

footer p {
    margin: 0;
    font-size: 0.9rem;
}

/* Style pour l'icône de cadenas dans le footer */
.lock-icon {
    position: absolute;
    right: 20px; /* Décalage par rapport au bord droit */
    bottom: 15px; /* Décalage par rapport au bord bas */
    color: #ccc;
    font-size: 1.2rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.lock-icon:hover {
    color: #ffffff;
    transform: scale(1.1); /* Zoom léger au survol */
}


/* Modale stylisée */
.modal-content {
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); /* Ombre subtile */
    border: none;
    animation: fadeIn 0.5s ease;
}

.modal-header {
    background-color: #3d6b3d;
    color: white;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    padding: 15px;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: bold;
}

/* Conteneur pour l'image dans la modale */
.image-container {
    position: relative;
    overflow: hidden;
    max-width: 100%;
    max-height: 300px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

/* Image en mode zoom */
.modal-body img#productImage.zoomed {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1.05); /* Zoom ajusté */
    max-width: none;
    max-height: none;
    cursor: grab;
    z-index: 1055;
}

/* Logo dans la modale */
.modal-logo {
    width: 30px;
    height: auto;
    margin-right: 10px;
}

/* Texte dans la modale */
.modal-body h4 {
    color: #3d6b3d;
    font-weight: bold;
}

.modal-body p {
    font-size: 0.9rem;
    color: #555;
}

.display-6 {
    font-size: 2rem;
    color: #3d6b3d;
}

/* Champs de formulaire dans la modale */
.modal-body input, .modal-body textarea {
    border-radius: 5px;
    border: 1px solid #ccc;
    padding: 10px;
    width: 100%;
    margin-bottom: 15px;
    transition: border-color 0.3s ease;
}

.modal-body input:focus, .modal-body textarea:focus {
    border-color: #3d6b3d;
    outline: none;
}
/* Style pour le produit sélectionné dans la modale de contact */
#selectedProductInfo {
    padding: 10px 0;
    border-bottom: 1px solid #ccc;
}

#selectedProductImage {
    width: 50px;
    height: auto;
    border-radius: 5px;
}

/* Animation pour l'apparition de la modale */
@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}
/* Modale de contact générique */
#genericContactModal .modal-content {
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: none;
}

#genericContactModal .modal-header {
    background-color: #3d6b3d;
    color: white;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

#genericContactModal .modal-title {
    font-size: 1.5rem;
    font-weight: bold;
}

#genericContactModal .modal-body input, 
#genericContactModal .modal-body textarea {
    border-radius: 5px;
    border: 1px solid #ccc;
    padding: 10px;
    width: 100%;
    margin-bottom: 15px;
    transition: border-color 0.3s ease;
}

#genericContactModal .modal-body input:focus, 
#genericContactModal .modal-body textarea:focus {
    border-color: #3d6b3d;
    outline: none;
}

#genericContactModal .btn-primary {
    background-color: #3d6b3d;
    border-color: #3d6b3d;
    font-weight: bold;
    padding: 10px 20px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}
/* Ajustement des couleurs et de la bordure pour GLightbox */
.glightbox-clean .gslide-title,
.glightbox-clean .gslide-description {
    color: #3d6b3d;
}

.glightbox-clean .glightbox-close {
    color: white;
}

.glightbox-clean .gslide-image img {
    border-radius: 10px;
}
/* Style du carrousel de présentation */
#latest-products-carousel .carousel-item {
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.carousel-caption {
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 10px;
    padding: 20px;
}

.carousel-caption h5 {
    color: #fff;
}

.carousel-caption p {
    color: #ddd;
}

.carousel-control-prev-icon, .carousel-control-next-icon {
    filter: invert(100%);
}

.background-image {
    background-image: url('BG_Valmousse.jpg');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}
/* Style des flèches de défilement du carrousel */
/* Style des flèches de défilement du carrousel en blanc sur fond vert */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: #3d6b3d; /* Fond vert */
    color: #ffffff; /* Icône blanche */
    border-radius: 50%;
    width: 3rem;
    height: 3rem;
    padding: 10px;
    background-size: 1rem 1rem; /* Ajuste la taille de l'icône */
}

.carousel-control-prev-icon::before,
.carousel-control-next-icon::before {
    content: ''; /* Supprime l'icône par défaut */
    display: inline-block;
}

.carousel-control-prev:hover .carousel-control-prev-icon,
.carousel-control-next:hover .carousel-control-next-icon {
    background-color: #2f4f2f; /* Fond vert plus foncé au survol */
    transform: scale(1.1); /* Agrandissement au survol */
}
/* Ajustement de la légende pour le carrousel en mode mobile */
/* Style général de la légende du carrousel */
.carousel-caption {
    background-color: rgba(0, 0, 0, 0.75); /* Fond noir semi-transparent */
    color: #ffffff;
    border-radius: 10px;
    padding: 20px;
    display: block !important; /* Force l'affichage de la légende */
    width: auto;
    max-width: 80%; /* Limite la largeur pour ne pas occuper tout l'écran */
    left: 50%;
    transform: translateX(-50%);
    bottom: 20px;
}

/* Ajustement spécifique pour la légende en mode mobile */
@media (max-width: 576px) {
    .carousel-caption {
        font-size: 0.85rem; /* Réduit la taille du texte */
        padding: 10px;
        max-width: 90%; /* Adapte la largeur en mode mobile */
        bottom: 15px; /* Positionne légèrement plus bas */
    }

    .carousel-caption h5 {
        font-size: 1.25rem; /* Taille du titre pour mobile */
    }

    .carousel-caption p {
        font-size: 0.9rem; /* Taille de la description */
        margin-top: 5px;
    }
}
/* Structure de base pour coller le footer en bas */
body, html {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
}

main {
    flex: 1; /* S'étend pour occuper l'espace disponible */
}

/* Style du

/* Style du footer */
footer {
    background-color: #333;
    color: #fff;
    padding: 1rem 0;
    text-align: center;
}

footer a {
    color: #3d6b3d;
    transition: color 0.3s;
}

footer a:hover {
    color: #2f4f2f;
}
/* Style du titre et de la phrase d’accroche */
/* Animation pour le titre et la phrase d'accroche */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* Style du titre et de la phrase d’accroche */
h1.display-4 {
    color: #3d6b3d;
    font-weight: bold;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.2);
}

/* Style amélioré pour la phrase d'accroche */
.lead.text-muted {
    color: #444 !important; /* Couleur plus sombre pour une meilleure lisibilité */
    font-size: 1.25rem;
    font-weight: 500;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.3); /* Ombre subtile pour plus de contraste */
}

h1.display-4 {
    animation: fadeInUp 1s ease-out forwards;
    opacity: 0; /* Initialement caché */
}

.lead.text-muted {
    animation: fadeInUp 1.5s ease-out forwards;
    opacity: 0; /* Initialement caché */
    animation-delay: 0.5s; /* Délai pour que la phrase apparaisse après le titre */
}
/* Style pour l'image et le texte dans la section "À propos" */
.container img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
/* Style pour les images et les sections de présentation */
.img-fluid {
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Style pour le texte avec une couleur plus foncée */
.text-muted {
    color: #333 !important; /* Couleur plus foncée pour une meilleure lisibilité */
    font-size: 1rem;
}


@media (max-width: 768px) {
    .text-muted {
        font-size: 0.95rem;
    }
}
/* Limite de taille pour les images de la page "À propos" */
.about-section img {
    max-width: 100%; /* S'assure que l'image ne dépasse pas la largeur de la colonne */
    width: 100%;
    max-height: 400px; /* Limite la hauteur pour éviter qu'elles soient trop grandes */
    object-fit: cover; /* Coupe l'image si elle dépasse la taille max */
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
/* Animation de glissement pour les images et les textes */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Applique les animations aux éléments */
.about-section img {
    animation: slideInRight 1s ease-out forwards;
    opacity: 0; /* Masque initialement */
    transition: transform 0.3s ease;
}

.about-section .text-muted,
.about-section h2 {
    animation: slideInLeft 1s ease-out forwards;
    opacity: 0; /* Masque initialement */
    transition: transform 0.3s ease;
    animation-delay: 0.3s; /* Délai pour un effet décalé */
}
/* Style pour le cadre blanc opaque autour des textes */
.about-section .text-container {
    background-color: rgba(255, 255, 255, 0.9); /* Fond blanc opaque */
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Ombre douce */
}

/* Applique les animations sur le texte dans le cadre */
.about-section .text-container h2,
.about-section .text-container p {
    animation: slideInLeft 1s ease-out forwards;
    opacity: 0; /* Initialement masqué */
    animation-delay: 0.3s;
}
