@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap');

/* Conteneur principal */
.home-content {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    margin-top: 90px;
    position: relative;   
     overflow: hidden; /* Empêche tout débordement visuel */
    }

/* Section présentation */
.presentation {
    display: flex;
    flex-wrap: wrap; /* Pour les petits écrans */
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    position: relative; /* Nécessaire pour l'image de fond */
    z-index: 1;

}
.img-tache {
    position: absolute;
    top: 80px; /* Ajustez selon vos besoins */
    right: -250px; /* Ajustez selon vos besoins */
    width: 500px;
    height: 470px;
    background-image: url('../images/tache.svg');
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    z-index: -2;
    overflow: hidden; /* Empêche le débordement visuel */
    max-width: 100vw; /* Limite la largeur à la taille de l'écran */
    max-height: 100vh; /* Limite la hauteur à la taille de l'écran */
}

/* Contenu texte */
.text-content {
    flex: 1;
    max-width: 50%;
    padding: 20px;
}
/* Couleur du fond (backdrop) lors de l'ouverture du modal */
.modal-backdrop {
    background-color: rgba(0, 0, 0, 0.9); /* Fond noir avec 90% d'opacité */
}

/* Conteneur principal du modal */
.modal-content {
    background-color: #2c2c2c86; /* Gris foncé pour le fond de la photo */
    border-radius: 10px; /* Coins arrondis pour un design moderne */
    border: 2px solid #44444472; /* Bordure gris foncé */
    color: #fff; /* Couleur du texte */
}

/* Texte dans le header du modal */
.modal-header {
    border-bottom: 1px solid #444; /* Séparation avec le corps du modal */
}

/* Bouton de fermeture */
.modal-header .btn-close {
    background-color: #fcbe9b; /* Bouton couleur beige/orangé */
    border-radius: 50%; /* Bouton arrondi */
}

.modal-header .btn-close:hover {
    background-color: #b5835a; /* Couleur plus sombre au survol */
}

/* Contenu du modal (photo) */
.modal-body {
    padding: 20px;
    text-align: center;
}

/* Image dans le modal */
.modal-body img {
    border: 5px solid #444; /* Bordure autour de la photo */
    border-radius: 10px; /* Coins arrondis */
}

.text-content h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-family: 'Montserrat', sans-serif;
    font-weight: normal;
}

.text-content p {
    font-size: 1.1rem;
    line-height: 1.2;
    font-family: 'Montserrat', sans-serif;
}
/* Contenu image */
.image-content {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Aligne l'image en haut */
    position: relative; /* Pour l'image de fond */
}

.image-wrapper {
    width: 500px; /* Augmente la taille de l'image */
    height: 500px; /* Augmente la taille de l'image */
    border-radius: 50%; /* Rend l'image circulaire */
    overflow: hidden; /* Cache les coins pour l'image ronde */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Ombre légère */
    position: relative;
    margin-left: 80px;
    margin-right: 30px;
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Remplit le conteneur sans distorsion */
}

/* Responsiveness */
@media (max-width: 1100px) {
    .image-wrapper {
        width: 400px;
        height: 400px;
        margin-left: 10px;
    }
}
/* Responsiveness */
@media (max-width: 968px) {
    .presentation {
        flex-direction: column; /* Empile le texte et l'image */
        justify-content: center;
        align-items: center;
    }

    .text-content {
        max-width: 90%; /* Réduit la largeur du texte */
        text-align: center; /* Centre le texte */
        padding: 10px; /* Réduit le padding */
    }

    .text-content h1 {
        font-size: 2rem; /* Réduit la taille du titre */
    }
.img-tache{
    top: 280px;
}
    .text-content p {
        font-size: 1rem; /* Réduit la taille du texte */
    }

    .image-wrapper {
        width: 300px; /* Diminue la taille de l'image */
        height: 300px; /* Diminue la taille de l'image */
        margin-top: 20px; /* Ajoute de l'espace entre le texte et l'image */
        margin-left: 0; /* Réinitialise la marge */
        margin-right: 0;
    }

    .image-content::before {
        width: 400px; /* Diminue la taille de l'image de fond */
        height: 400px; /* Diminue la taille de l'image de fond */
        right: -400px; /* Réduit le décalage horizontal */
        top: -50px; /* Ajuste le décalage vertical */
    }
}

@media (max-width: 480px) {
    .image-wrapper {
        width: 250px; /* Diminue encore la taille pour les très petits écrans */
        height: 250px;
    }

    .image-content::before {
        width: 300px;
        height: 300px;
        right: -300px; /* Ajuste davantage pour éviter que l'image dépasse trop */
        top: -30px;
    }

    .text-content h1 {
        font-size: 1.8rem; /* Encore plus petit pour le titre */
    }

    .text-content p {
        font-size: 0.9rem; /* Plus petit pour le texte */
    }
}

/* Section contenant les cartes */
.card-section {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
    margin: 50px auto;
    padding: 0 20px;
    max-width: 1200px;
}

/* Chaque carte */
.card {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0; /* Retire les padding inutiles */
    transition: transform 0.3s ease;
    border: 2px solid white;
}

.card:hover {
    transform: scale(1.05);
}
/* Image de la carte */
.card-image {
    width: 100%;
    height: 150px; /* Hauteur fixe pour toutes les images */
    overflow: hidden; /* Évite tout débordement de l'image */
    display: flex;
    align-items: center; /* Centre verticalement l'image si elle est plus petite */
    justify-content: center; /* Centre horizontalement l'image */
}

.card-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* Adapte l'image à l'espace sans la couper */
}


/* Contenu de la carte */
.card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center; /* Centre horizontalement */
    justify-content: flex-start; /* Place le contenu en haut */
    padding: 20px;
    text-align: center;
}

/* Titre de la carte */
.card-content h3 {
    font-size: 1.2rem;
    font-weight: bold;
    color: #000;
    text-align: center;
    min-height: 50px; /* Hauteur uniforme pour tous les titres */
    display: flex;
    align-items: center; /* Centre verticalement le texte dans cet espace */
    justify-content: center;
    margin: 0 0 10px 0;
}

/* Texte de la carte */
.card-content p {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.4;
    margin: 10px 0;
    text-align: center;
    flex: 1; /* Étend le texte pour occuper l'espace restant */
}

/* Pied de la carte */
.card-footer {
    display: flex;
    justify-content: center;
    margin-top: auto; /* Pousse le bouton en bas de la carte */
    background-color: white;
    border: 2px solid white;
}

/* Bouton */
.btn-card {
    display: inline-block;
    padding: 7px 25px;
    border: 3px solid #fcbe9b ;
    color: #090909;
    text-decoration: none;
    font-size: 0.9rem;
    border-radius: 10px;
    transition: background-color 0.3s ease;
}

.btn-card:hover {
background-color: #fcbe9b;
}
/* Responsive Design */
@media (max-width: 660px) {
    .card {
        max-width: 90%; /* Passe chaque carte en pleine largeur */
        margin: auto;
    }

    .card-section {
        flex-direction: column; /* Empile les cartes verticalement */
        gap: 20px; /* Espacement entre les cartes */
    }

    .card-image {
        height: 150px; /* Ajuste la taille des images sur mobile */
    }
    .card-content{
        padding: 0px;
    }
}


/* Conteneur principal de la galerie */
.gallery-preview {
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
}

/* Section d'information (Titre, Texte et Bouton) */
.gallery-info {
    text-align: center;
    padding: 30px;
    border: 2px solid white;
}

.gallery-info h1 {
    font-size: 7rem;
    font-family: "Bebas Neue", sans-serif;
    margin: 0px;
}

.gallery-button {
    display: inline-block;
    font-family: 'montserrat', sans-serif;
    padding: 10px 20px;
    border: 2px solid #fcbe9b;
    color: #080707;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: bold;
    transition: background-color 0.3s ease;
    margin-top: 30px;
}

.gallery-button:hover {
    background-color: #fcbe9b;
}

/* Style pour les cards */
.gallery-item .card-gallery {
    border: none; /* Supprime les bordures par défaut */
    border-radius: 50px; /* Coins arrondis */

    transition: transform 0.3s ease;
}

.gallery-item .card-gallery:hover {
    transform: scale(1.05); /* Zoom léger au survol */
}

.gallery-item .card-img-top-gallery {
    width: 100%;
    height: 300px; /* Hauteur uniforme pour toutes les images */
    object-fit: cover; /* Coupe proprement l'image si elle dépasse */
    border-radius: 50px;
}

/* Responsive Design */
@media (max-width: 992px) {
    .gallery-info h1 {
        font-size: 5rem;
    }

    .gallery-button {
        font-size: 0.9rem;
        padding: 8px 15px;
    }
}

@media (max-width: 768px) {
    .gallery-info p {
        font-size: 0.9rem;
    }

    .gallery-button {
        font-size: 0.8rem;
        margin-bottom: 40px;
        width: 150px;
    }

    .gallery-item .card-img-top {
        width: 60%;
        height: 300px; /* Réduit la hauteur des images sur mobile */
 
    }
}
    @media (max-width: 660px) {
    .gallery-item h1{
    font-size: 4em;
}
    }
    @media (max-width: 576px) {
.gallery-item{
    width: 80%;
    margin: auto;
}
}
    





