html {
    scroll-behavior: smooth;
    scroll-padding-top: 78px;
}   


/* Contact*/
.form-control {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);  
    transition: box-shadow 0.3s ease;  
}

.form-control:focus {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.6);  /* Ombre plus marquée lors du focus */
    border-color: #007bff;  /* Couleur de bordure sur focus */
}
        
.topbar {
    transition: top 0.4s ease-in-out;
}

.navbar-fixed {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}
.hero {
    position: relative;
    overflow: hidden;
    color: white;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    filter: brightness(0.5);
    z-index: -1;
}

.card {
    border-radius: 10px;
}
.section-container {
    height: auto; /* Évite que la section prenne toute la hauteur de l'écran en mobile */
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0px;
    flex-wrap: wrap;
}

/* Image à gauche, 30% de largeur */
.image-left, .image-right {
    width: 30%;
    object-fit: cover;
    height: 100vh; /* Hauteur complète de l'écran */
}

/* Texte avec padding ajusté */
.text-left {
    padding: 40px 40px 40px 100px;
}
.text-right {
    padding: 40px 100px 40px 40px;
}
.text-right, .text-left {
    width: 65%;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centre verticalement */
    align-items: center; /* Centre horizontalement */
    text-align: center;
}
#topbar {
    position: relative;
    background: url('/img/nav.png') no-repeat center center;
    background-size: cover;
}
#topbar::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255, 250, 250, 0.85); /* Noir transparent */
    z-index: 1;
}

#topbar .container {
    position: relative;
    z-index: 2; /* Pour que le texte soit au-dessus de l'overlay */
}

.bi-telephone {
    color: black !important;  /* Pour la couleur de l'icône */
    stroke: none !important;  /* Pour supprimer le contour */
}
.form-control-sm {
    height: calc(1.5em + .5rem + 2px);
    padding: .25rem .4rem;
    font-size: .7rem;
    line-height: 1.5;
    border-radius: .2rem;
    margin-top: .2rem;
}
.btn-sm {
    line-height: 1.3;
    border-radius: .2rem;
    margin-top: .2rem;
}

/*social-links*/
.social-links {
    margin-top: 10px;
}

.social-links a {
    display: inline-block;
    margin: 0 10px;
    font-size: 40px; /* Taille des icônes */
    color: #333; /* Couleur par défaut */
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #007bff; /* Couleur au survol */
}

/*SECTION CONTENT*/
.section-content{
    padding-top: 40px !important;
    padding-bottom: 40px !important;
}
.card-body {
    padding: 1.25rem 1.25rem 4rem 1.25rem !important;
}

/*Portfolio*/
.grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Fixe 4 colonnes */
    gap: 15px;
}

/* Style des items dans la grille */
.grid-item {
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
    height: 250px; /* Hauteur fixe pour l'alignement */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Images responsives avec hauteur fixe */
.grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Recadre l'image pour qu'elle remplisse l'espace */
    display: block;
    transition: opacity 0.3s ease;
}

/* Rendre le lien cliquable sur toute l'image */
.grid-item a.fancybox {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    z-index: 2;
}

/* Zone d'hover */
.portfolio_hover_area {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 3; /* Assure que l'icône de zoom est au-dessus */
}

.grid-item:hover .portfolio_hover_area {
    opacity: 1;
}

/* Icône de loupe */
.portfolio_hover_area .fa-search {
    font-size: 30px;
    color: white;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px;
    border-radius: 50%;
}

/* Cacher les autres images Fancybox */
/*.d-none {
    display: none;
}*/

/* Boutons de filtre */
#filters {
    margin-bottom: 20px;
}

#filters .button {
    background: #f0f0f0;
    border: 1px solid #ccc;
    padding: 10px;
    margin: 5px;
    cursor: pointer;
}

#filters .button.is-checked {
    background: #007bff;
    color: white;
}

/*Style Des COOKIES*/
/*.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 15px;
    text-align: center;
    font-size: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    z-index: 5;
}

.cookie-banner a {
    color: #f1c40f;
    text-decoration: underline;
}

.cookie-banner button {
    background: #28a745;
    color: white;
    border: none;
    padding: 8px 15px;
    cursor: pointer;
    border-radius: 5px;
}*/

        .cookie-banner button#decline-cookies {
            background: #dc3545;
        }

@media (max-width: 768px) {
    .section-container {
        flex-direction: column;
        text-align: center;
    }

    .image-left, .image-right {
        width: 100%; /* L'image prend toute la largeur */
        height: auto;
    }

    .text-right, .text-left {
        width: 100%;
        padding: 15px;
    }

    .image-left img, .image-right img {
        height: auto;
        max-width: 100%;
    }
}