/* ======== VARIABLES & STYLES DE BASE ======== */
:root {
    --primary-color: #7e8796; /* Un doré/bronze élégant */
    --secondary-color: #2c2c2c; /* Noir doux */
    --bg-color: #ffffff;
    --bg-light-gray: #f7f7f7;
    --text-color: #444;
    --text-light: #ffffff;
    --font-family: 'Poppins', sans-serif;
    --header-height: 7rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-family);
    text-decoration: none;
    list-style: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
}

body {
    background: var(--bg-color);
    color: var(--text-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 6rem 0;
}

.section-bg {
    background-color: var(--bg-light-gray);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 4rem;
    color: var(--secondary-color);
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--primary-color);
    color: var(--text-light);
    font-size: 1rem;
    font-weight: 600;
    border-radius: 5px;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-color);
}

.btn:hover {
    background: transparent;
    color: var(--primary-color);
}

/* ======== HEADER ======== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.2rem 7%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    box-shadow: 0 .2rem .5rem rgba(0,0,0,0.1);
    transition: all .3s ease;
}





.header .navbar a {
    font-size: 1.1rem;
    margin: 0 1.2rem;
    color: var(--secondary-color);
    transition: color 0.3s ease;
}

.header .navbar a:hover {
    color: var(--primary-color);
}

#menu-btn {
    font-size: 2rem;
    color: var(--secondary-color);
    cursor: pointer;
    display: none;
}

/* ======== SECTION 1: HERO ======== */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    text-align: center;
    color: var(--text-light);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('images/hero.jpg') no-repeat center center/cover;
    /* L'animation de zoom */
    animation: zoom-in-out 30s linear infinite;
    z-index: 1;
}

#hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    padding: 0 2rem;
}

/* --- SOURIS ANIMÉE AVEC COULEUR CORRIGÉE --- */

.scroll-down-mouse {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 50px;
    border: 3px solid #FFF; /* blanc visible sur fond foncé */
    border-radius: 60px;
}

.mouse-wheel {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background-color: #FFF; /* ✅ Couleur de la molette */
    border-radius: 2px;
    animation: scroll-animation 1.5s infinite;
}

@keyframes scroll-animation {
    0% {
        opacity: 1;
        top: 10px;
    }
    15% {
        opacity: 1;
        top: 10px;
    }
    50% {
        opacity: 0;
        top: 25px;
    }
    100% {
        opacity: 0;
        top: 10px;
    }
}


/* ======== KEYFRAMES ANIMATIONS ======== */
@keyframes zoom-in-out {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@keyframes fade-up {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

  .carousel-container {
            width: 100%;
            max-width: 1200px;
            margin: 0 auto;
            padding: 20px 0;
            position: relative;
            overflow: hidden;
        }



        .carousel-track {
            display: flex;
            width: calc(250px * 40); /* Largeur totale pour 40 images */
            animation: scroll 60s linear infinite;
        }

        .carousel-track:hover {
            animation-play-state: paused;
        }

        .carousel-item {
            width: 220px;
            height: auto;
            margin: 0 15px;
            flex-shrink: 0;
            position: relative;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }

        .carousel-item:hover {
            transform: scale(1.05);
            box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
            cursor: pointer;
        }

        .carousel-img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.5s ease;
        }

        .carousel-item:hover .carousel-img {
            transform: scale(1.1);
        }

        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.9);
            z-index: 1000;
            justify-content: center;
            align-items: center;
        }

        .modal-content {
            max-width: 90%;
            max-height: 90%;
        }

        .modal-img {
            width: 100%;
            height: auto;
            max-height: 90vh;
            object-fit: contain;
        }

        .close-btn {
            position: absolute;
            top: 20px;
            right: 30px;
            color: white;
            font-size: 35px;
            font-weight: bold;
            cursor: pointer;
        }

        @keyframes scroll {
            0% {
                transform: translateX(0);
            }
            100% {
                transform: translateX(calc(-250px * 20)); /* Déplacement de la moitié des images */
            }
        }

        /* Pour les écrans plus petits */
        @media (max-width: 768px) {
            .carousel-item {
                width: 180px;
                height: auto;
            }
        }

        /* ======== SECTION: VISUALISATION 3D (Version Corrigée) ======== */
.dual-layout-wrapper {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.dual-layout-text {
    flex: 1;
    min-width: 50%;
}

.section-title-left {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color); /* */
    margin-bottom: 1.5rem;
    text-align: left;
}

.dual-layout-text h3 {
    font-size: 1.5rem;
    color: var(--primary-color); /* */
    margin-bottom: 1.5rem;
}

.dual-layout-text p {
    line-height: 1.8;
    margin-bottom: 1rem;
}

.dual-layout-text .btn {
    margin-top: 1.5rem;
}

.dual-layout-gallery {
    flex: 1;
    position: relative;
    min-height: 450px;
}

.gallery-img {
    position: absolute;
    width: 85%;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.4s ease-out, box-shadow 0.4s ease-out;
    cursor: pointer; /* Ajout du curseur pour indiquer que l'image est cliquable */
}

.gallery-img:hover {
    transform: scale(1.05) !important;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    z-index: 10;
}

.gallery-img.img-1 {
    top: 0;
    left: 0;
    z-index: 2;
    transform: rotate(-2deg);
}

.gallery-img.img-2 {
    top: 25%;
    left: 15%;
    transform: rotate(4deg);
    z-index: 3;
}

.gallery-img.img-3 {
    top: 50%;
    left: -5%;
    transform: rotate(-5deg);
    z-index: 1;
}

/* --- Animation d'apparition au défilement --- */
#visualisation .dual-layout-text > *, #visualisation .gallery-img {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

#visualisation.is-visible .dual-layout-text > *, #visualisation.is-visible .gallery-img {
    opacity: 1;
    transform: translateY(0);
}

/* Récupération des rotations après l'animation pour éviter les conflits */
#visualisation.is-visible .gallery-img.img-1 { transform: translateY(0) rotate(-2deg); }
#visualisation.is-visible .gallery-img.img-2 { transform: translateY(0) rotate(4deg); }
#visualisation.is-visible .gallery-img.img-3 { transform: translateY(0) rotate(-5deg); }


/* --- Décalage de l'animation pour chaque élément --- */
#visualisation.is-visible .dual-layout-text h2 { transition-delay: 0.1s; }
#visualisation.is-visible .dual-layout-text h3 { transition-delay: 0.2s; }
#visualisation.is-visible .dual-layout-text p:nth-of-type(1) { transition-delay: 0.3s; }
#visualisation.is-visible .dual-layout-text p:nth-of-type(2) { transition-delay: 0.4s; }
#visualisation.is-visible .dual-layout-text .btn { transition-delay: 0.5s; }
#visualisation.is-visible .gallery-img.img-1 { transition-delay: 0.3s; }
#visualisation.is-visible .gallery-img.img-2 { transition-delay: 0.5s; }
#visualisation.is-visible .gallery-img.img-3 { transition-delay: 0.4s; }


/* --- AMÉLIORATION RESPONSIVE --- */
@media (max-width: 991px) {
    .dual-layout-wrapper {
        flex-direction: column;
    }

    .section-title-left {
        text-align: center;
    }

    

    /* On ré-applique l'animation de base sans les rotations sur mobile */
    #visualisation .gallery-img {
        transform: translateY(30px);
    }
    #visualisation.is-visible .gallery-img {
        transform: translateY(0);
    }
}

/* --- AMÉLIORATION RESPONSIVE --- */
@media (max-width: 991px) {
    .dual-layout-wrapper {
        flex-direction: column;
    }

    .section-title-left {
        text-align: center;
    }
    
    /* --- MODIFICATION ICI --- */
    /* On garde un design similaire au bureau mais adapté en taille */
    .dual-layout-gallery {
        margin-top: 3rem;
        width: 100%;
        /* On définit une hauteur pour contenir les images superposées */
        min-height: 350px; 
    }
    
    /* On s'assure que les images gardent leur style de bureau */
    .gallery-img {
        /* Ces propriétés ne changent pas par rapport au bureau */
        position: absolute;
        width: 85%;
        cursor: pointer;
    }
    /* --- FIN DE LA MODIFICATION --- */
}

/* Remplacez l'ancienne règle .gallery-img:hover par celle-ci */
.gallery-img:hover {
    z-index: 10; /* Met l'image au premier plan */
    box-shadow: 0 20px 45px rgba(0,0,0,0.25); /* Ombre plus prononcée */
}

/* AJOUTEZ ces nouvelles règles pour un zoom qui conserve la rotation.
  Un zoom de 1.1 (10%) est appliqué.
*/
.gallery-img.img-1:hover {
    transform: translateY(0) scale(1.1) rotate(-2deg) !important;
}

.gallery-img.img-2:hover {
    transform: translateY(0) scale(1.1) rotate(4deg) !important;
}

.gallery-img.img-3:hover {
    transform: translateY(0) scale(1.1) rotate(-5deg) !important;
}

/* --- STYLE DE LA LIGHTBOX (APERÇU) --- */

.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    
    /* Caché par défaut, transition douce pour l'apparition */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    position: relative;
    max-width: 85%;
    max-height: 85vh;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.lightbox-overlay.is-visible .lightbox-content {
    transform: scale(1);
}

#lightbox-img {
    display: block;
    max-width: 100%;
    max-height: 85vh;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

#lightbox-close {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 40px;
    height: 40px;
    background: white;
    color: #333;
    font-size: 30px;
    font-weight: bold;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    line-height: 1;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

#lightbox-close:hover {
    transform: scale(1.1) rotate(90deg);
    background-color: #f1f1f1;
}


/* --- DESIGN DU BOUTON "VOIR LE PLAN 2D" --- */

.btn-plan-2d {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    
    padding: 12px 28px;
    background: linear-gradient(45deg, #007bff, #0056b3); /* Dégradé bleu */
    color: white;
    text-decoration: none;
    font-weight: bold;
    border-radius: 50px;
    font-size: 1rem;
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.4);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    white-space: nowrap; /* Empêche le texte de revenir à la ligne */
}

.btn-plan-2d:hover {
    transform: translateX(-50%) translateY(-3px); /* Effet de lévitation */
    box-shadow: 0 12px 30px rgba(0, 123, 255, 0.5);
    background: linear-gradient(45deg, #0069d9, #004085);
}
/* ======== SECTION 2: À PROPOS ======== */
.about-content {
    display: flex;
    align-items: center;
    gap: 4rem;
}
.about-text {
    flex: 2;
}
.about-text h3 {
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}
.about-text p {
    margin-bottom: 1rem;
    line-height: 1.8;
}
.about-stats {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
.stat-item {
    background: var(--bg-light-gray);
    padding: 1.5rem;
    text-align: center;
    border-left: 4px solid var(--primary-color);
}
.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
}
.stat-label {
    font-size: 1rem;
    color: var(--text-color);
}


/* ======== SECTION 3: NOS BIENS ======== */
.property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.property-card {
    background: var(--bg-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.property-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.property-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.property-tag {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--primary-color);
    color: var(--text-light);
    padding: 0.3rem 0.8rem;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: 600;
}

.card-content {
    padding: 1.5rem;
}

.card-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.location {
    color: #777;
    margin-bottom: 1rem;
}

.location i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.features {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    margin-bottom: 1rem;
}

.features span {
    color: var(--text-color);
}

.features i {
    margin-right: 0.5rem;
}

.price {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.btn-secondary {
    display: block;
    text-align: center;
    padding: 0.8rem 1.5rem;
    background: var(--secondary-color);
    color: var(--text-light);
    border-radius: 5px;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--primary-color);
}


/* ======== SECTION 4: SERVICES ======== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.service-card {
    text-align: center;
    padding: 2.5rem;
    border: 1px solid #eee;
    border-radius: 8px;
    transition: all 0.3s ease;
}
.service-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
}
.service-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}
.service-card h3 {
    font-size: 1.4rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}
.service-card p {
    line-height: 1.7;
}

/* ======== SECTION 5: CONTACT ======== */
.contact-wrapper {
    display: flex;
    gap: 3rem;
    background: var(--bg-color);
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}
.contact-form {
    flex: 1.5;
}
.contact-info {
    flex: 1;
}

.contact-form h3, .contact-info h3 {
    font-size: 1.6rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 5px;
    border: 1px solid #ddd;
    font-size: 1rem;
}
.contact-form input:focus, .contact-form textarea:focus {
    border-color: var(--primary-color);
}

.contact-info p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.contact-info ul li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.contact-info ul li i {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-right: 1rem;
    margin-top: 0.3rem;
}

.social-links {
    margin-top: 2rem;
}
.social-links a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: var(--secondary-color);
    color: var(--text-light);
    border-radius: 50%;
    margin-right: 0.5rem;
    transition: all 0.3s ease;
}
.social-links a:hover {
    background: var(--primary-color);
    transform: scale(1.1);
}

/* ======== FOOTER ======== */
.footer {
    background: var(--secondary-color);
    color: var(--text-light);
    text-align: center;
    padding: 2rem 0;
}
.footer p {
    color: #ccc;
}


/* ======== RESPONSIVE DESIGN (MEDIA QUERIES) ======== */
@media (max-width: 991px) {
    html {
        font-size: 90%;
    }
    .header {
        padding: 1.5rem 2rem;
    }
    .section {
        padding: 4rem 0;
    }
}

@media (max-width: 768px) {
    #menu-btn {
        display: inline-block;
    }

    .header .navbar {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-color);
        border-top: 1px solid #eee;
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: clip-path 0.3s ease-in-out;
    }
    
    .header .navbar.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }

    .header .navbar a {
        display: block;
        margin: 1.5rem;
        padding: 0.5rem;
        border-left: 3px solid transparent;
    }
    .header .navbar a:hover {
        border-left-color: var(--primary-color);
        background: var(--bg-light-gray);
    }
    
    .hero-content h1 {
        font-size: 2.8rem;
    }

    .about-content, .contact-wrapper {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
     html {
        font-size: 85%;
    }
    .hero-content h1 {
        font-size: 2.2rem;
    }
    .hero-content p {
        font-size: 1rem;
    }
    .contact-wrapper {
        padding: 2rem;
    }
}