.grey-space-left {
    height: 3.5rem;
    padding-left: 6rem;
    padding-top: 10px;

    font-size: 4rem;
    background-color: var(--bg-color-1);
}

.property-grid {
    background-color: #fff;
    /* White background */
    padding: 50px 0;
}

.property-item {
    text-decoration: none;
    color: inherit;
    display: block;
    text-align: center;
}

.property-item img {
    width: 100%;
    height: auto;
    border-radius: 3px;
}

.property-title {
    font-weight: bold;
    margin-top: 10px;
    font-size: 1.2rem;
}

.property-info {
    display: flex;
    justify-content: center;
    gap: 15px;
    font-size: 1rem;
    color: #555;
}

.info-section {
    background-color: #fff;

    padding: 50px 0;
}

.info-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.icon {
    font-size: 2rem;
    color: #333;
    margin-bottom: 10px;
}

.info-text {
    font-size: 1.1rem;
    color: #555;
    text-align: center;
}

.gallery-section {
    background-color: #fff;
    padding: 50px 0;
}

.gallery-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    border-radius: 3px;
}

.lightboxpreview {
    transition: all .3s linear;
    padding-top: 60%;
    cursor: pointer;
    background-size: cover;
}

.lightbox-content {
    max-height: 75vh;
    height: 75vh;
    width: 100%;
    max-width: 1000px;
}

.lightbox-close {
    cursor: pointer;
    margin-left: auto;
    position: absolute;
    right: -30px;
    top: -30px;
    color: white;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.modal_inner_image {
    min-height: 400px;
    z-index: 1000;
}

.modal-content {
    width: 100%;
}


.modalscale {
    transform: scale(0);
    opacity: 0;
}



.lightbox-container,
.lightbox-btn,
.lightbox-image-wrapper,
.lightbox-enabled {
    transition: all .4s ease-in-out;
}

.lightbox_img_wrap {
    padding-top: 65%;
    position: relative;
    overflow: hidden;
}

.lightbox-enabled:hover {
    transform: scale(1.1)
}

.lightbox-enabled {
    width: 100%;
    height: 220px;
    position: relative;
    top: 0;
    object-fit: cover;
    cursor: pointer;
    display: block;
    margin: 0;
    padding: 0;
    border: none;
    vertical-align: top;
    border-radius: 0;
}

.lightbox-container {
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, .6);
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
}

.lightbox-container.active {
    opacity: 1;
    pointer-events: all;
}

.lightbox-image-wrapper {
    display: flex;
    transform: scale(0);
    align-items: center;
    justify-content: center;
    max-width: 90vw;
    max-height: 90vh;
    position: relative;
}

.lightbox-container.active .lightbox-image-wrapper {
    transform: scale(1);
}

.lightbox-btn,
#close {
    color: white;
    z-index: 9999999;
    cursor: pointer;
    position: absolute;

    font-size: 50px;
}

.lightbox-btn:focus {
    outline: none;
}

.left {
    left: 50px;
}

.right {
    right: 50px;
}

#close {
    top: 50px;
    right: 50px;
}

.lightbox-image {
    width: 100%;
    -webkit-box-shadow: 5px 5px 20px 2px rgba(0, 0, 0, 0.19);
    box-shadow: 5px 5px 20px 2px rgba(0, 0, 0, 0.19);
    max-height: 95vh;
    object-fit: cover;
}

@keyframes slideleft {
    33% {
        transform: translateX(-300px);
        opacity: 0;
    }

    66% {
        transform: translateX(300px);
        opacity: 0;
    }
}


.slideleft {
    animation-name: slideleft;
    animation-duration: .5s;
    animation-timing-function: ease;
}

@keyframes slideright {
    33% {
        transform: translateX(300px);
        opacity: 0;
    }

    66% {
        transform: translateX(-300px);
        opacity: 0;
    }
}


.slideright {
    animation-name: slideright;
    animation-duration: .5s;
    animation-timing-function: ease;
}



@media (max-width: 768px) {
    .property-info {
        flex-direction: column;
        align-items: center;
    }
}

/* ===== STYLES POUR LES PAGES DE PROJETS INDIVIDUELS ===== */

/* Header du projet */
.project-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 120px 0 80px;
    margin-top: 80px;
}

.project-intro {
    text-align: center;
}

.project-intro h1 {
    font-size: 3.5rem;
    color: #1a1a1a;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: static;
    padding-bottom: 0;
}

.project-intro h1::after {
    display: none;
}

.project-subtitle {
    font-size: 1.4rem;
    color: #666;
    margin-bottom: 40px;
    font-weight: 400;
}

.project-details {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #555;
    font-size: 1.1rem;
}

.detail-item i {
    color: #333;
    font-size: 1.2rem;
}

/* Description du projet */
.project-description {
    padding: 80px 0;
    background: white;
}

.project-description h2 {
    font-size: 2.2rem;
    color: #1a1a1a;
    margin-bottom: 30px;
    font-weight: 600;
}

.project-description h3 {
    font-size: 1.6rem;
    color: #333;
    margin: 40px 0 20px;
    font-weight: 500;
}

.project-description p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 20px;
}

.project-description ul {
    list-style: none;
    padding: 0;
}

.project-description ul li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: #555;
    line-height: 1.6;
}

.project-description ul li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: #333;
    font-weight: bold;
}

.project-info-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.05);
}

.project-info-card h4 {
    color: #1a1a1a;
    font-size: 1.3rem;
    margin-bottom: 25px;
    font-weight: 600;
    text-align: center;
}

.info-item {
    margin-bottom: 15px;
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
    color: #555;
    font-size: 1rem;
}

.info-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.info-item strong {
    color: #333;
    font-weight: 600;
}

/* Galerie d'images */
.project-gallery {
    padding: 80px 0;
    background: transparent;
}

.project-gallery h2 {
    font-size: 2.2rem;
    color: #1a1a1a;
    margin-bottom: 50px;
    text-align: center;
    font-weight: 600;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 5px;
    margin-top: 30px;
    width: 100%;
}

.gallery-item {
    background: transparent;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
    transition: none;
    border: none;
    cursor: pointer;
    margin: 0;
    padding: 0;
}

.gallery-item:hover {
    transform: none;
    box-shadow: none;
}

.gallery-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: none;
    display: block;
    margin: 0;
    padding: 0;
    border: none;
    vertical-align: top;
    border-radius: 0;
}

.gallery-item:hover img {
    transform: none;
}

.gallery-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: none;
    border-radius: 0;
    border: none;
}

.gallery-item:hover .gallery-image {
    transform: none;
}

/* Optimisation pour les petites images */
.gallery-item {
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Navigation entre projets */
.project-navigation {
    padding: 60px 0;
    background: white;
}

.nav-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.btn-back,
.btn-next {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 1.5rem;
    color: #333;
}

.btn-back {
    color: #333;
}

.btn-back:hover {
    color: #000;
    transform: translateX(-3px);
}

.btn-next {
    color: #333;
}

.btn-next:hover {
    color: #000;
    transform: translateX(3px);
}

/* Styles des icônes */
.btn-back i,
.btn-next i {
    margin: 0;
    padding: 0;
}

/* Responsive Design */
@media (max-width: 991px) {
    .project-details {
        gap: 30px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 3px;
    }

    .gallery-item img {
        height: 200px;
    }
    
    .nav-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    /* Boutons de navigation - version tablette */
    .btn-back,
    .btn-next {
        font-size: 1.4rem;
    }
}

@media (max-width: 768px) {
    .project-header {
        padding: 100px 0 60px;
    }
    
    .project-intro h1 {
        font-size: 2.5rem;
        position: static;
        padding-bottom: 0;
    }
    
    .project-intro h1::after {
        display: none;
    }
    
    .project-subtitle {
        font-size: 1.2rem;
    }
    
    .project-details {
        flex-direction: column;
        gap: 20px;
    }
    
    .project-description {
        padding: 60px 0;
    }
    
    .project-description h2 {
        font-size: 1.8rem;
    }
    
    .project-gallery {
        padding: 60px 0;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 2px;
    }
    
    .gallery-item img,
    .gallery-image {
        height: 180px;
    }
    
    .project-info-card {
        margin-top: 30px;
        padding: 25px 20px;
    }
    
    /* Boutons de navigation - version mobile */
    .btn-back,
    .btn-next {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .project-intro h1 {
        font-size: 2rem;
        position: static;
        padding-bottom: 0;
    }
    
    .project-intro h1::after {
        display: none;
    }
    
    .project-subtitle {
        font-size: 1.1rem;
    }
    
    .detail-item {
        font-size: 1rem;
    }
    
    /* Boutons de navigation - version mobile petite */
    .btn-back,
    .btn-next {
        font-size: 1.1rem;
    }
}