/*
Theme Name:   IMC Lux
Theme URI:    https://imcluxagency.com
Description:  Thème enfant pour IMC Luxury Agency basé sur Hello Elementor
Author:       YELLOWPOLY
Author URI:   https://imcluxagency.com
Template:     hello-elementor
Version:      1.0.0
License:      GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  imc-lux
*/

/* GENERAL */

.page-id-247 .elementor-location-header .elementor-widget-theme-site-logo {
    opacity: 0;
}

.btn-underline {
    position: relative;
    display: inline-block;
    text-decoration: none;
    padding-bottom: 5px;
    transition: color 0.3s ease;
}

.btn-underline::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 1px;
    background-color: currentColor; /* Utilise la couleur du texte */
    transition: width 0.3s ease;
}

.btn-underline:hover::after {
    width: 100%;
}
.play svg {
    width: 60px !important;
    transition: transform 0.8s ease;
    position: absolute;
    transform: translateX(-60px);
}
.play svg:hover {
    transform: translateX(-60px) scale(1.4);
}
.play .elementor-button-content-wrapper {
    align-items: center;
}

.filter-invert {
    filter: invert(1);
}
.fleche-menu {
    margin: 0 !important;
    transition: 0.4s ease !important;
}
.fleche-menu svg {
    filter: invert(1);
    width: 14px !important;
    transform: rotate(-90deg);
}
.site-footer .fleche-menu svg {
    filter: invert(0) !important;
}
.fleche-menu:hover {
    transform: translateX(10px) !important;
}
.industry-filter-item:hover {
    font-weight: 500;
}

@media (min-width: 1025px) {
    .elementor-lightbox .elementor-video-container .elementor-video-landscape {
        max-height: 85vh;
        width: 70vw !important;
    }
}

/* FOOTER */
.site-footer {
    transform: auto !important;
}

/* MENU */

.btn-menu {
    position: relative;
    display: inline-block;
    text-decoration: none;
    padding-bottom: 5px;
    transition: color 0.3s ease;
    width: fit-content;
}

.btn-menu::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 1px;
    background-color: white;
    transition: width 0.3s ease;
}

.btn-menu:hover::after {
    width: 100%;
}

/* PAGE PROJET */

.Hero {
    position: relative;
}
.Hero:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px; /* Hauteur du fondu - ajustez selon vos besoins */
    background: linear-gradient(to top, 
    rgba(0,0,0,0.9) 0%, 
    rgba(0,0,0,0.6) 30%, 
    rgba(0,0,0,0.3) 60%, 
    rgba(0,0,0,0) 100%
    );
    pointer-events: none; /* Permet de cliquer à travers le fondu */
}

.services-list {
    list-style: none;
    list-style-type: none;
    padding: 0;
    margin: 0;
}
.services-list li {
    padding-left: 0;
    text-align: center;
    font-size: 18px;
    font-family: "Onest", Sans-serif;
}
.industry p {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: flex-start;
    opacity: 1;
    justify-content: center;
    display: flex;
}
.industry p:after {
    content: "•";
    font-size: 40px;
    line-height: 22px;
}
.industry .elementor-heading-title {
    text-transform: capitalize;
}


/* ==========================================================================
   Similar Projects - 3 projets similaires en ligne
   ========================================================================== */

.similar-projects {
    display: flex;
    gap: 20px;
    margin: 40px 0;
    width: 100%;
}

.similar-project-item {
    flex: 1;
    height: 25vh;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.similar-project-item:hover {
    transform: scale(1.02);
}

.similar-project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.similar-project-item:hover .similar-project-overlay {
    opacity: 1;
}

.similar-project-title {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .similar-projects {
        flex-direction: column;
    }
    
    .similar-project-item {
        height: 300px;
    }
}

/* FILTRES PROJETS */

.industry-filters-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    width: 100%;
    background: black;
    margin: 0 auto 4vh;
    justify-items: center;
}
.filtres-page-projets .industry-filters-grid {
    background: white;
}
.titre_filters {
    padding-left: 15px;
    margin-bottom: 10px;
    font-size: 17px;
    font-weight: 400;
}
.titre_filters span {
    padding-right: 10px;
    font-size: 20px;
}

.industry-filter-item {
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    font-size: 16px;
    font-weight: 200;
    color: #FFF;
    border: none;
    opacity: 0.5;
    list-style: none;
    justify-content: flex-start;
    display: flex;
}
.filtres-page-projets .industry-filter-item {
    color: #000;
}

/* .industry-filter-item:hover {
    background: none;
    opacity: 0.5
} */

.industry-filter-item.active {
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
    opacity: 1;
}

.industry-filter-item.active:after {
    content: "•";
    font-size: 40px;
    line-height: 22px;
}

.industry-filter-label {
    display: block;
    text-transform: capitalize;
}

@media (max-width: 768px) {
    .industry-filters-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 10px;
		padding: 0 5%;
    }
    
    .industry-filter-item {
        padding: 10px;
        font-size: 14px;
		text-align: center;
		justify-content: center;
    }
}

/* PAGE PROJETS */

.projets-grille-container {
    width: calc(100vw - 10px);
    margin: 0 auto;
}

/* Grille de projets - 3 colonnes */
.projets-grille {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.projet-item {
    background: black;
    position: relative;
    overflow: hidden;
    filter: brightness(1);
    transition: all 0.5s ease;
}

.projet-item.hidden {
    display: none;
}

.projet-card {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
    cursor: pointer;
}

/* Background vidéo */
.projet-background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

/* Background image */
.projet-background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

/* Background placeholder */
.projet-background-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    z-index: 1;
}
.projet-card .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0); /* Transparent par défaut */
    z-index: 2;
    transition: background 0.4s ease;
    pointer-events: none; /* Important : laisse passer les clics */
}
.projet-card:hover .overlay {
    background: rgba(0, 0, 0, 0.5);
}
.projet-content {
    position: absolute;
    bottom: -10px;
    left: 10px;
    transform: translateX(-50%);
    z-index: 3; /* Au-dessus de l'overlay */
    color: white;
    text-align: center;
    opacity: 1;
    transition: bottom 0.4s ease, opacity 0.4s ease;
    display: flex;
    flex-direction: row;
    gap: 5px;
    width: 100%;
}
.projet-card:hover .projet-content {
    bottom: 10px;
}

.projet-client {
    font-size: 14px;
    font-weight: 600;
    font-family: "Onest", sans-serif;
    color: white;
    margin: 0;
}
.projet-titre {
    font-size: 14px;
    font-weight: 300;
    font-family: "Onest", sans-serif;
    margin: 0 0 10px 0;
    color: white;
}

.projet-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* Responsive - 2 colonnes sur tablette */
@media (max-width: 1024px) {
    .projets-grille {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* Responsive - 1 colonne sur mobile */
@media (max-width: 640px) {
    .projets-grille {
        grid-template-columns: 1fr;
        gap: 15px;
    }
	.projet-card {
		height: 300px;
	}
    
    .filtres-industry {
        gap: 8px;
    }
    
    .filtre-btn {
        padding: 8px 15px;
        font-size: 13px;
    }
}
/* Masquer par défaut sur desktop */
@media (min-width: 768px) {
    .projet-content {
        opacity: 0;
        transform: translateY(20px);
    }
    
    .projet-card:hover .projet-content {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Toujours visible sur mobile */
@media (max-width: 767px) {
    .projet-content {
        opacity: 1 !important;
        transform: translateY(0) !important;
    }
    
    .projet-overlay {
        background: rgba(0, 0, 0, 0.5) !important;
    }
}

/* PAGE PROJET */

.acf-gallery-grid-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

.acf-gallery-grid {
    display: grid;
    grid-template-columns: 2fr 2fr;
    gap: 10px;
    width: 100%;
    height: 60vh;
}
.acf-gallery-grid.second-grid {
    grid-template-columns: 2fr 2fr;
}
.acf-gallery-grid.last-grid {
    grid-template-columns: 2fr 2fr;
}

.gallery-column {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.gallery-column-left {
    height: 100%;
    gap: 10px;
}

.gallery-column-right {
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 100%;
}

.gallery-image {
    width: 100%;
    overflow: hidden;
    position: relative;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

.gallery-image-vertical {
    height: 100%; /* Prend toute la hauteur : 600px */
}

.gallery-image-horizontal {
    height: calc(50% - 5px); /* (600px - 10px) / 2 = 295px chacune */
    flex: 1;
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-image:hover img {
    transform: scale(1.05);
}

/* Responsive */
@media (max-width: 768px) {
    .acf-gallery-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .gallery-image-vertical {
        min-height: 400px;
    }
    
    .gallery-image-horizontal {
        min-height: 250px;
        height: auto;
    }
}

@media (max-width: 480px) {
    .acf-gallery-grid-wrapper {
        padding: 10px 0;
    }
    
    .acf-gallery-grid {
        gap: 10px;
    }
    
    .gallery-column-right {
        gap: 10px;
    }
    
    .gallery-image {
        border-radius: 4px;
    }
    
    .gallery-image-vertical {
        min-height: 300px;
    }
    
    .gallery-image-horizontal {
        min-height: 200px;
    }
}

/* ABOUT */
.page-id-275 .page-content {
    min-height: 100vh;
}