* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #faf9f7;
    color: #333;
    overflow-x: hidden;
}

.gradient-bg {
    background: linear-gradient(135deg, #fea018 0%, #b21318 100%);
}


/* Header */

header {
    background: white;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 80px;
    /* hauteur fixe */
    position: relative;
    /* pour positionnement absolu de logo */
    display: flex;
    align-items: center;
    justify-content: flex-end;
    /* fait aller les liens vers la droite */
}

.logo {
    position: absolute;
    /* pour sortir du flux */
    left: 2rem;
    top: 50%;
    transform: translateY(-50%);
    height: 120px;
    display: flex;
    align-items: center;
}

.logo img {
    height: 120px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    transition: all 0.3s;
    position: relative;
}

.nav-links a:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(135deg, #fea018 0%, #b21318 100%);
    transition: width 0.3s;
}

.nav-links a:hover:after {
    width: 100%;
}

.mobile-menu {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    background: linear-gradient(135deg, #fea018 0%, #b21318 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}


/* Breadcrumb */

.breadcrumb {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    font-size: 0.95rem;
}

.breadcrumb a {
    color: #fea018;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: #b21318;
}

.breadcrumb i {
    font-size: 0.8rem;
}


/* Main Container */

.property-detail-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem 4rem;
}


/* Property Header */

.property-header {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
}

.property-title-section {
    display: flex;
    justify-content: space-between;
    align-items: start;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.property-title-left h1 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 0.5rem;
    font-weight: 800;
}

.property-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    font-size: 1.1rem;
}

.property-location i {
    color: #fea018;
}

.property-price-section {
    text-align: right;
}

.property-price {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fea018 0%, #b21318 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.property-reference {
    background: #f5f5f5;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    color: #666;
    display: inline-block;
}

.property-quick-info {
    display: flex;
    gap: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid #f0f0f0;
    flex-wrap: wrap;
}

.quick-info-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.1rem;
}

.quick-info-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #fea018 0%, #b21318 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
}

.quick-info-text {
    display: flex;
    flex-direction: column;
}

.quick-info-label {
    font-size: 0.85rem;
    color: #999;
    text-transform: uppercase;
}

.quick-info-value {
    font-weight: 700;
    color: #333;
}


/* Gallery Section */

.gallery-section {
    margin-bottom: 2rem;
}

.main-gallery {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1rem;
    height: 600px;
    border-radius: 20px;
    overflow: hidden;
}

.main-image {
    position: relative;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    transition: transform 0.3s;
}

.main-image:hover {
    transform: scale(1.02);
}

.gallery-badge {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    background: white;
    padding: 0.7rem 1.5rem;
    border-radius: 25px;
    font-weight: 700;
    color: #b21318;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.view-all-photos {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.95);
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.view-all-photos:hover {
    background: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.side-gallery {
    display: grid;
    grid-template-rows: repeat(2, 1fr);
    gap: 1rem;
}

.side-image {
    background-size: cover;
    background-position: center;
    cursor: pointer;
    transition: transform 0.3s;
}

.side-image:hover {
    transform: scale(1.05);
}


/* Content Grid */

.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}


/* Property Details Card */

.details-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
}

.card-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #333;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.card-title i {
    color: #fea018;
}

.description-text {
    line-height: 1.8;
    color: #666;
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
}


/* Features Grid */

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f9f9f9;
    border-radius: 12px;
    transition: all 0.3s;
}

.feature-item:hover {
    background: #f0f0f0;
    transform: translateX(5px);
}

.feature-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #fea018 0%, #b21318 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.feature-text {
    font-weight: 600;
    color: #333;
}


/* Amenities List */

.amenities-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.amenity-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem;
    background: #f9f9f9;
    border-radius: 10px;
}

.amenity-item i {
    color: #fea018;
    font-size: 1.1rem;
}


/* Sidebar */

.sidebar-sticky {
    position: sticky;
    top: 100px;
}

.contact-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
}

.contact-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #333;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-input {
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s;
    font-family: inherit;
}

.form-input:focus {
    outline: none;
    border-color: #fea018;
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-button {
    padding: 1.2rem;
    background: linear-gradient(135deg, #fea018 0%, #b21318 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.submit-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(254, 160, 24, 0.4);
}

.share-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.share-btn {
    flex: 1;
    padding: 0.8rem;
    border: 2px solid #e0e0e0;
    background: white;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 600;
}

.share-btn:hover {
    border-color: #fea018;
    transform: translateY(-3px);
}

.share-btn i {
    font-size: 1.2rem;
}


/* Map Section */

.map-container {
    height: 400px;
    background: #e0e0e0;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

.map-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 1.2rem;
}


/* Similar Properties */

.similar-properties {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 2px solid #f0f0f0;
}

.similar-properties h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    font-weight: 700;
}

.similar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.similar-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s;
    cursor: pointer;
}

.similar-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.similar-image {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.similar-info {
    padding: 1.5rem;
}

.similar-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #b21318;
    margin-bottom: 0.5rem;
}

.similar-title {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #333;
}

.similar-details {
    display: flex;
    gap: 1rem;
    color: #666;
    font-size: 0.9rem;
}


/* Floating Action Buttons */

.floating-actions {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 999;
}

.float-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.float-btn:hover {
    transform: scale(1.1);
}

.whatsapp-btn {
    background: #25D366;
}

.call-btn {
    background: linear-gradient(135deg, #fea018 0%, #b21318 100%);
}


/* Lightbox */

.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    padding: 2rem;
}

.lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
}

.lightbox-image {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 10px;
}

.lightbox-close {
    position: absolute;
    top: 55px;
    left: 80%;
    right: 0;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    background: none;
    border: none;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 3rem;
    padding: 1rem;
    cursor: pointer;
    border-radius: 10px;
    transition: all 0.3s;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.3);
}

.lightbox-prev {
    left: 2rem;
}

.lightbox-next {
    right: 2rem;
}


/* Footer */

footer {
    background: #1a1a1a;
    color: white;
    padding: 3rem 2rem 1rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: #fea018;
}

.footer-section p,
.footer-section a {
    color: #ccc;
    text-decoration: none;
    line-height: 2;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #333;
    color: #888;
}


/* Responsive */

@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
    .main-gallery {
        grid-template-columns: 1fr;
        height: auto;
    }
    .side-gallery {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: 250px;
    }
    .sidebar-sticky {
        position: static;
    }
}

@media (max-width: 768px) {
    .property-title-section {
        flex-direction: column;
    }
    .property-price-section {
        text-align: left;
    }
    .property-title-left h1 {
        font-size: 2rem;
    }
    .property-price {
        font-size: 2.2rem;
    }
    .main-gallery {
        height: 400px;
    }
    .features-grid {
        grid-template-columns: 1fr;
    }
    .floating-actions {
        bottom: 1rem;
        right: 1rem;
    }
    .float-btn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}


/* Responsive */

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .mobile-menu {
        display: block;
    }
    .hero h1 {
        font-size: 2.5rem;
    }
    .search-form {
        grid-template-columns: 1fr;
    }
    .property-card {
        min-width: calc(100% - 1rem);
    }
    .about-container {
        grid-template-columns: 1fr;
    }
    .floating-buttons {
        bottom: 1rem;
        right: 1rem;
    }
}


/* Responsive : menu mobile */

@media screen and (max-width: 768px) {
    .nav-links {
        display: none;
        /* caché par défaut sur mobile */
        flex-direction: column;
        background-color: white;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 1rem 2rem;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    }
    .nav-links.active {
        display: flex;
    }
    .mobile-menu {
        display: block;
    }
}
