/*
Theme Name: Divi Child
Theme URI: https://fabien-seo.com
Description: Thème enfant de divi par Fabien SEO
Author: Fabien SCHNEIDER - Fabien SEO
Author URI: https://fabien-seo.com
Template: Divi
Version: 1.0
*/

/* Grille Responsive : 3 colonnes desktop, 1 colonne mobile avec un gap de 150px *//* Grille Responsive : 3 colonnes desktop, 1 colonne mobile */
.projets-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 150px; /* Garde 150px d'espace entre les colonnes */
    row-gap: 50px;      /* Réduit l'espace vertical entre les lignes (ajustez 50px selon vos goûts) */
    width: 100%;
    margin-bottom: 50px;
}

@media (max-width: 768px) {
    .projets-grid {
        grid-template-columns: 1fr;
        gap: 40px; /* Sur mobile en 1 colonne, on remet un gap uniforme */
    }
}

/* Carte Projet */
.projet-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.projet-card:hover {
    transform: translateY(-5px);
}

/* Format photo réduit en hauteur (Paysage 4/3 pour voir la suite au scroll) */
.projet-img-container {
    width: 100%;
    aspect-ratio: 4 / 3; /* Modifié pour être moins haut qu'un format portrait */
    overflow: hidden;
    background-color: #f4f4f4;
    position: relative;
}
.projet-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.projet-card:hover .projet-img {
    transform: scale(1.04);
}

/* Contenu sous l'image - Espacement serré pour éviter l'effet de flottement */
.projet-content {
    padding: 15px 10px 0 10px;
    text-align: center;
}

/* Localisation ACF : Akkurat Light, noir, très proche du titre */
.projet-localisation {
    font-family: 'Akkurat', sans-serif;
    font-size: 0.85rem;
    font-weight: 300; /* Akkurat Light */
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #000;
    margin-bottom: 4px; /* Espace réduit au minimum pour lier le lieu au titre */
}

/* Titre du projet : Akkurat Bold (taille par défaut) */
.projet-titre {
    font-family: 'Akkurat', sans-serif;
    font-weight: 600;
    margin: 0;
  text-transform: uppercase;
  font-size: 15px;
}
.projet-titre a {
    color: #111;
    text-decoration: none;
    transition: color 0.3s ease;
}
.projet-titre a:hover {
    color: #555;
}

/* Bouton "Charger plus" - Design & Animation Architecte */
.projets-load-more-wrap {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}
.architect-btn {
    position: relative;
    background: transparent;
    border: none;
    padding: 15px 35px;
    font-size: 0.95rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #111;
    cursor: pointer;
    outline: none;
    overflow: hidden;
    transition: color 0.4s ease;
}
.architect-btn .architect-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: #111;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: right;
}
.architect-btn:hover .architect-line {
    transform: scaleX(0);
    transform-origin: left;
}
.architect-btn::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: #999;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.1s;
}
.architect-btn:hover::before {
    transform: scaleX(1);
}
.architect-btn.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* ==========================================
   1. NEUTRALISATION RADICALE DES CONTENEURS DIVI
   ========================================== */
.et_pb_section:has(.arch-slider-wrapper),
.et_pb_row:has(.arch-slider-wrapper),
.et_pb_column:has(.arch-slider-wrapper),
.et_pb_code:has(.arch-slider-wrapper),
.et_pb_code_inner:has(.arch-slider-wrapper) {
    width: 100% !important;
    max-width: 100% !important;
    height: 100vh !important;
    height: 100dvh !important;
    min-height: 100vh !important;
    max-height: 100vh !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    display: block !important;
}

/* ==========================================
   2. SLIDER ARCHITECTURE (PLEIN ÉCRAN ABSOLU)
   ========================================== */
.arch-slider-wrapper {
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    height: 100vh !important;
    height: 100dvh !important;
    min-height: 100vh !important;
    max-height: 100vh !important;
    max-height: 100dvh !important;
    overflow: hidden;
    background: #0b0b0b;
    box-sizing: border-box;
}

body.admin-bar .arch-slider-wrapper {
    height: calc(100vh - 32px) !important;
    height: calc(100dvh - 32px) !important;
}

.arch-slider-wrapper .swiper {
    width: 100%;
    height: 100%;
}

.arch-slide {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: block;
    text-decoration: none;
}

/* Force le navigateur à rendre les images avec une netteté maximale (anti-aliasing GPU) */
.arch-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    image-rendering: -webkit-optimize-contrast; /* Optimise le contraste et la netteté */
    transform: scale(1);
    transition: transform 7s cubic-bezier(0.25, 1, 0.5, 1);
}

.swiper-slide-active .arch-slide img {
    transform: scale(1.08);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.arch-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 4rem 5rem;
    z-index: 10;
}

/* NAVIGATION (FLÈCHES) JUSTE AU-DESSUS DU TITRE */
.arch-nav-arrows {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.2rem; /* Espace entre les flèches et le titre */
}

.arch-btn {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
}

.arch-btn:hover {
    background: #fff;
    color: #000;
    border-color: #fff;
}

.arch-title {
    color: #ffffff;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 300;
    font-size: clamp(1.7rem, 3vw, 3rem);
    line-height: 1.15;
    /*margin: 0 0 0.5rem 0;*/
    opacity: 0;
	text-transform: uppercase;
    transform: translateY(20px);
    transition: opacity 0.8s ease 0.3s, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s;
}

.arch-location {
    color: rgba(255, 255, 255, 0.75);
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 400;
    font-size: clamp(0.8rem, 1vw, 1rem);
    letter-spacing: 0.25em;
    /*margin: 0 0 0.5rem 0;*/
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.8s ease 0.5s, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.5s;
	margin-left: 10px;
}

.swiper-slide-active .arch-title,
.swiper-slide-active .arch-location {
    opacity: 1;
    transform: translateY(0);
}

/* PAGINATION CENTRÉE EN BAS */
.arch-pagination {
    position: absolute;
    bottom: 3.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    display: flex;
    gap: 1.2rem;
    align-items: center;
    width: auto;
}

.arch-pagination .swiper-pagination-bullet {
    width: 35px;
    height: 2px;
    background: rgba(255,255,255,0.35);
    border-radius: 0;
    opacity: 1;
    transition: background 0.3s ease, width 0.3s ease;
    margin: 0 !important;
}

.arch-pagination .swiper-pagination-bullet-active {
    background: #ffffff;
    width: 60px;
}

/* ==========================================
   3. RESPONSIVE MOBILE
   ========================================== */
@media (max-width: 768px) {
    .arch-slider-wrapper,
    body.admin-bar .arch-slider-wrapper {
        height: 100vh !important;
        height: 100dvh !important;
    }

    .arch-overlay {
        padding: 2rem 1.5rem 4.5rem 1.5rem;
    }

    .arch-nav-arrows {
        gap: 0.5rem;
        margin-bottom: 0.8rem;
    }

    .arch-btn {
        width: 36px;
        height: 36px;
    }
    
    .arch-title {
        font-size: clamp(1.3rem, 5vw, 1.7rem);
        margin-bottom: 0.3rem;
    }
    
    .arch-location {
        font-size: 0.65rem;
        letter-spacing: 0.15em;
    }
    
    .arch-pagination {
        bottom: 1.5rem;
        gap: 0.5rem;
    }
    
    .arch-pagination .swiper-pagination-bullet {
        width: 15px;
    }
    
    .arch-pagination .swiper-pagination-bullet-active {
        width: 30px;
    }
}