/**
 * Glesner - Sections Homepage
 */

/* ============================================
   RÉALISATIONS CAROUSEL
   ============================================ */
.realisations-carousel-section {
    width: 100%;
    background: #FFFFFF;
    padding: 6rem;
}

.realisations-carousel-container {
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.realisations-carousel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 60px;
}

h3.realisations-carousel-title {
    color: #16161A; /* Fond clair */
    margin: 0;
}

.realisations-carousel-button {
    display: inline-block;
    padding: 16px 32px;
    background: transparent;
    color: #16161A;
    border: 1px solid #FCCE2D;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0;
    text-decoration: none;
    text-transform: none;
    transition: all 0.3s ease;
}

.realisations-carousel-button:hover {
    background: #FCCE2D;
    color: #16161A;
}

.realisations-carousel-track {
    display: flex;
    gap: 30px;
    transition: transform 0.5s ease;
    will-change: transform;
}

.realisation-card {
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    width: calc((106% - 20px) / 3);
}

.realisation-card-image {
    width: 100%;
    /* height: 300px; */ /* virer */
    overflow: hidden;
}

.realisation-card-image img {
    width: 100%;
    height: 100%;
    min-height: 420px;
    object-fit: cover;
    border-radius: 0;
    transition: transform 0.3s ease;
}

.realisation-card:hover .realisation-card-image img {
    transform: scale(1.05);
}

.realisation-card-content {
    padding: 20px 0;
}

.realisation-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #16161A;
    margin: 0 0 10px 0;
    letter-spacing: 0;
}

.realisation-card-location {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666666;
    font-size: 0.9rem;
}

.realisation-card-location svg {
    width: 16px;
    height: 16px;
    fill: #FCCE2D;
}

.realisations-carousel-nav {
    position: absolute;
    top: calc(60px + 125px);
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.realisations-carousel-nav:hover {
    background: #FCCE2D;
    border-color: #FCCE2D;
}

.realisations-carousel-nav.prev {
    left: 60px;
    top: 152px;
}

.realisations-carousel-nav.next {
    right: 60px;
    top: 152px;
}

.realisations-carousel-nav svg {
    width: 100%;
    height: 100%;
    fill: #16161A;
}

@media (max-width: 1200px) {
    .realisations-carousel-section {
        width: 100%;
        background: #FFFFFF;
        padding: 6rem 2rem;
    }
    
    .realisations-carousel-container {
        padding: 0 60px;
    }
    
    .realisations-carousel-header h2 {
        font-size: 2.25rem;
    }
    
    .realisation-card-image {
        width: 100%;
        height: 300px;
        overflow: hidden;
    }
}

@media (max-width: 768px) {
    .realisations-carousel-section {
        display: none; /* Virer le carrousel réalisations en mobile */
    }
}

/* ============================================
   TEXT CENTERED
   ============================================ */
.text-centered-section {
    width: 100%;
    padding: 100px 0;
}

.text-centered-section.bg-white {
    background: #FFFFFF;
}

.text-centered-section.bg-dark {
    background: #16161A;
}

.text-centered-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 80px;
    text-align: center;
}

.text-centered-container.text-centered-narrow {
    max-width: 60%;
}

@media (max-width: 1200px) {
    .text-centered-container.text-centered-narrow {
        max-width: 82%;
    }
}

.text-centered-container h2 {
    font-size: 2.75rem;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.2;
    margin: 0 0 30px 0;
}

.text-centered-section.bg-white .text-centered-container h2,
.text-centered-section.bg-white .text-centered-container h3 {
    color: #16161A;
}

.text-centered-section.bg-dark .text-centered-container h2,
.text-centered-section.bg-dark .text-centered-container h3 {
    color: #FFFFFF;
}

.text-centered-container p {
    font-size: 1.125rem;
    line-height: 1.8;
    letter-spacing: 0;
    margin: 0;
}

.text-centered-section.bg-white .text-centered-container p {
    color: #666666;
}

.text-centered-section.bg-dark .text-centered-container p {
    color: #FFFFFF;
}

@media (max-width: 1200px) {
    .text-centered-container {
        padding: 0 60px;
    }
    
    .text-centered-container h2 {
        font-size: 2.25rem;
    }
}

@media (max-width: 1200px) {
    .text-centered-container.text-centered-narrow {
        max-width: 60%;
    }
}

@media (max-width: 768px) {
    .text-centered-section {
        padding: 60px 0;
    }
    
    .text-centered-container {
        padding: 0 30px;
    }
    
    .text-centered-container.text-centered-narrow {
        max-width: 90%;
    }
    
    .text-centered-container h2 {
        font-size: 1.875rem;
    }
    
    .text-centered-container p {
        font-size: 1rem;
    }
}

/* ============================================
   LOCATIONS SECTION
   ============================================ */
.locations-section {
    position: relative;
    width: 100%;
    padding: 120px 0 200px;
    background-image: url('../images/batiment-locations.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.locations-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, 
        rgba(22, 22, 26, 0.60) 0%, 
        rgba(22, 22, 26, 0.75) 40%,
        rgba(22, 22, 26, 0.90) 70%,
        #16161A 100%
    );
    pointer-events: none;
}

.locations-container {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 80px;
}

.locations-title {
    text-align: center;
    margin-bottom: 60px;
}

.locations-title h2 {
    font-size: 2.75rem;
    font-weight: 700;
    letter-spacing: 0;
    color: #FFFFFF;
    margin: 0;
}

.locations-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.location-card {
    background: rgba(255, 255, 255, 0.08);
    padding: 40px;
    transition: all 0.3s ease;
}

.location-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #FCCE2D;
    margin: 0 0 20px 0;
}

.location-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.location-info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #FFFFFF;
    font-size: 1rem;
}

.location-info-item svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    fill: #FCCE2D;
}

@media (max-width: 1200px) {
    .locations-container {
        padding: 0 60px;
    }
    
    .locations-title h2 {
        font-size: 2.25rem;
    }
}

@media (max-width: 768px) {
    .locations-section {
        padding: 80px 0;
        background-attachment: scroll;
    }
    
    .locations-container {
        padding: 0 30px;
    }
    
    .locations-title {
        margin-bottom: 40px;
    }
    
    .locations-title h2 {
        font-size: 1.875rem;
    }
    
    .locations-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .location-card {
        padding: 30px;
    }
}

