/*
Feuille de Style Principale - Villa à Vendre Marrakech

Styles CSS pour la page publique de présentation de villa de luxe.
Design moderne avec thème clair, gradient or-turquoise, et animations subtiles.

Structure:
- Variables CSS (couleurs du thème luxe)
- Reset et styles de base
- Hero slider plein écran avec 3 photos
- Sections de contenu (caractéristiques, équipements, investissement)
- Galerie photos responsive
- Section de contact avec boutons d'appel
- Responsive design (mobile, tablette, desktop)
- Animations et transitions CSS

Palette de couleurs:
- Or: #d4af37 (luxe, prestige)
- Turquoise: #14b8a6 (modernité, confiance)
- Blanc/Gris clair: Fond épuré et élégant

Développé par: MOA Digital Agency LLC
Développeur: Aisance KALONJI
Email: moa@myoneart.com
Web: www.myoneart.com
*/

/* ========== VARIABLES CSS (THÈME LUXE) ========== */
:root {
    --gold: #d4af37;
    --gold-dark: #b8941f;
    --teal: #14b8a6;
    --dark: #1a1a1a;
    --gray: #f8fafc;
    --text: #2d3748;
    --white: #ffffff;
}

/* ========== RESET CSS ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text);
    overflow-x: hidden;
    background: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Modern avec Slider */
.hero-modern {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay-modern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.6) 0%,
        rgba(0, 0, 0, 0.4) 50%,
        rgba(0, 0, 0, 0.6) 100%
    );
    z-index: 1;
}

.hero-content-modern {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    max-width: 900px;
    padding: 40px 20px;
}

.hero-content-modern h1 {
    font-size: clamp(2rem, 6vw, 4.5rem);
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 4px 20px rgba(0, 0, 0, 0.5);
}

.subtitle-large {
    font-size: clamp(1rem, 3vw, 1.6rem);
    margin-bottom: 40px;
    opacity: 0.95;
}

/* Dégradé de transition hero vers stats */
.hero-gradient-transition {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 120px;
    background: linear-gradient(to bottom, transparent, rgba(248, 250, 252, 0.3), rgba(248, 250, 252, 0.8));
    z-index: 2;
    pointer-events: none;
}

/* Hero Search Bar */
.hero-search-bar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 25px 20px;
    display: flex;
    gap: 20px;
    align-items: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    flex-wrap: wrap;
    justify-content: center;
}

.search-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 140px;
}

.search-label {
    font-size: 0.75rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.search-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark);
}

.btn-search {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: white;
    padding: 14px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
}

.btn-search:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(212, 175, 55, 0.6);
}

/* Quick Stats */
.quick-stats {
    background: var(--gray);
    padding: 60px 20px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.stat-item {
    text-align: center;
    padding: 35px 20px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.2);
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 10px;
}

.stat-label {
    font-size: 0.9rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Content with Image Section */
.content-image-section {
    padding: 80px 20px;
    background: white;
}

.content-image-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.section-title-left {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 25px;
    position: relative;
}

.section-title-left::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--gold), var(--teal));
    border-radius: 2px;
}

.text-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text);
    white-space: pre-line;
    margin-bottom: 30px;
}

.btn-description {
    display: inline-block;
    padding: 16px 35px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.4);
}

.btn-description:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(212, 175, 55, 0.6);
}

/* Triple Image Block (1 grande + 2 petites) */
.image-block-triple {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 15px;
}

.triple-img-main {
    grid-column: 1 / -1;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    aspect-ratio: 16/9;
}

.triple-img-small {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    aspect-ratio: 4/3;
}

.image-block-triple img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.image-block-triple img:hover {
    transform: scale(1.05);
}

/* Section Pourquoi Choisir */
.why-choose {
    padding: 80px 20px;
    background: var(--gray);
}

.section-title-center {
    text-align: center;
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 50px;
    position: relative;
}

.section-title-center::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--gold), var(--teal));
    border-radius: 2px;
}

.section-title-center.white {
    color: white;
}

.section-title-center.white::after {
    background: linear-gradient(90deg, var(--white), var(--gold));
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.why-card {
    background: white;
    padding: 35px 25px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.why-card:hover {
    transform: translateY(-10px);
    border-color: var(--gold);
    box-shadow: 0 20px 50px rgba(212, 175, 55, 0.2);
}

.why-icon {
    font-size: 3rem;
    margin-bottom: 18px;
}

.why-card h3 {
    font-size: 1.3rem;
    color: var(--dark);
    margin-bottom: 12px;
    font-weight: 700;
}

.why-card p {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.6;
}

/* Features avec Background Image et Opacité */
.features-parallax {
    padding: 80px 20px;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

.parallax-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1;
}

.features-parallax .container {
    position: relative;
    z-index: 2;
}

.features-modern-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-modern-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 35px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.feature-modern-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(212, 175, 55, 0.4);
}

.feature-icon-large {
    font-size: 3rem;
    margin-bottom: 18px;
}

.feature-modern-card h3 {
    font-size: 1.4rem;
    color: var(--gold);
    margin-bottom: 18px;
}

.feature-list-clean {
    list-style: none;
}

.feature-list-clean li {
    padding: 7px 0;
    padding-left: 25px;
    position: relative;
    color: var(--text);
    font-size: 0.95rem;
}

.feature-list-clean li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--teal);
    font-weight: bold;
}

/* Gallery Masonry */
.gallery-modern {
    padding: 80px 20px;
    background: white;
}

.gallery-masonry {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.gallery-item-modern {
    position: relative;
    aspect-ratio: 4/3;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.gallery-item-modern:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.gallery-item-modern img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item-modern:hover .gallery-hover {
    opacity: 1;
}

.zoom-icon {
    font-size: 2.5rem;
}

/* Contact Modern avec Background Image et Opacité */
.contact-modern {
    padding: 80px 20px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.contact-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1;
}

.contact-modern .container {
    position: relative;
    z-index: 2;
}

.contact-box {
    max-width: 650px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 50px 40px;
    border-radius: 25px;
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.4);
    text-align: center;
}

.contact-box h2 {
    font-size: 2.2rem;
    color: var(--dark);
    margin-bottom: 15px;
}

.contact-subtitle {
    font-size: 1.1rem;
    color: #64748b;
    margin-bottom: 35px;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 35px;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px;
    background: var(--gray);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.contact-method:hover {
    background: white;
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.2);
}

.contact-icon {
    font-size: 2rem;
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-details {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    flex: 1;
}

.contact-label {
    font-size: 0.8rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-details a {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark);
    text-decoration: none;
    transition: color 0.3s ease;
    word-break: break-word;
}

.contact-details a:hover {
    color: var(--gold);
}

.btn-contact-large {
    display: inline-block;
    padding: 18px 45px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.4);
}

.btn-contact-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.6);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

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

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 3rem;
    color: white;
    cursor: pointer;
    z-index: 1001;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.lightbox-close:hover {
    background: var(--gold);
    transform: rotate(90deg);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 3rem;
    color: white;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.5);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 1001;
}

.lightbox-nav:hover {
    background: var(--gold);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

/* Empty State */
.empty-state {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px;
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
}

.empty-state h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--dark);
}

.empty-state p {
    font-size: 1.2rem;
    color: #64748b;
    margin-bottom: 35px;
}

.btn-admin {
    display: inline-block;
    padding: 15px 40px;
    background: var(--gold);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-admin:hover {
    background: var(--gold-dark);
    transform: translateY(-2px);
}

/* RESPONSIVE MOBILE */
@media (max-width: 768px) {
    /* Hero mobile */
    .hero-content-modern {
        padding: 20px 15px;
    }
    
    .hero-content-modern h1 {
        font-size: 2rem;
        margin-bottom: 15px;
    }
    
    .subtitle-large {
        font-size: 1rem;
        margin-bottom: 30px;
    }
    
    .hero-search-bar {
        padding: 20px 15px;
        gap: 15px;
        flex-direction: column;
    }
    
    .search-item {
        width: 100%;
        align-items: center;
        text-align: center;
    }
    
    .search-value {
        font-size: 1rem;
    }
    
    .btn-search {
        width: 100%;
        padding: 14px 20px;
        font-size: 0.95rem;
    }
    
    /* Stats en une seule colonne sur mobile */
    .quick-stats {
        padding: 50px 15px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .stat-item {
        padding: 30px 20px;
    }
    
    .stat-icon {
        font-size: 2.2rem;
    }
    
    .stat-value {
        font-size: 1.6rem;
    }
    
    .stat-label {
        font-size: 0.85rem;
    }
    
    /* Content section mobile */
    .content-image-section {
        padding: 50px 15px;
    }
    
    .content-image-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .section-title-left {
        font-size: 1.8rem;
        text-align: center;
    }
    
    .section-title-left::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .text-content {
        font-size: 1rem;
        line-height: 1.7;
        text-align: left;
    }
    
    .btn-description {
        width: 100%;
        text-align: center;
        padding: 15px 25px;
    }
    
    /* Images en colonne sur mobile */
    .image-block-triple {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .triple-img-main {
        grid-column: 1;
    }
    
    /* Why choose mobile */
    .why-choose {
        padding: 50px 15px;
    }
    
    .why-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .why-card {
        padding: 30px 20px;
    }
    
    .why-icon {
        font-size: 2.5rem;
    }
    
    .why-card h3 {
        font-size: 1.2rem;
    }
    
    .why-card p {
        font-size: 0.9rem;
    }
    
    /* Features mobile */
    .features-parallax {
        padding: 50px 15px;
        background-attachment: scroll;
    }
    
    .features-modern-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .feature-modern-card {
        padding: 30px 20px;
    }
    
    .feature-icon-large {
        font-size: 2.5rem;
    }
    
    .feature-modern-card h3 {
        font-size: 1.3rem;
    }
    
    .feature-list-clean li {
        font-size: 0.9rem;
    }
    
    /* Gallery mobile */
    .gallery-modern {
        padding: 50px 15px;
    }
    
    .gallery-masonry {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    /* Contact mobile - en colonne */
    .contact-modern {
        padding: 50px 10px;
        background-attachment: scroll;
    }
    
    .contact-box {
        padding: 35px 25px;
        max-width: 100%;
    }
    
    .contact-box h2 {
        font-size: 1.8rem;
        margin-bottom: 12px;
    }
    
    .contact-subtitle {
        font-size: 1rem;
        margin-bottom: 25px;
    }
    
    .contact-methods {
        gap: 15px;
        margin-bottom: 25px;
    }
    
    .contact-method {
        padding: 15px 12px;
        gap: 12px;
        flex-direction: row;
        align-items: center;
    }
    
    .contact-icon {
        font-size: 1.8rem;
        width: 50px;
        height: 50px;
    }
    
    .contact-details {
        align-items: flex-start;
        text-align: left;
    }
    
    .contact-label {
        font-size: 0.75rem;
    }
    
    .contact-details a {
        font-size: 0.95rem;
        word-break: break-all;
    }
    
    .btn-contact-large {
        width: 100%;
        padding: 16px 30px;
        font-size: 1rem;
    }
    
    /* Lightbox mobile */
    .lightbox-nav {
        font-size: 2rem;
        width: 45px;
        height: 45px;
    }
    
    .lightbox-close {
        font-size: 2rem;
        width: 45px;
        height: 45px;
        top: 10px;
        right: 10px;
    }
    
    .zoom-icon {
        font-size: 2rem;
    }
    
    .section-title-center {
        font-size: 1.8rem;
        margin-bottom: 40px;
    }
}

/* Tablet adjustments */
@media (min-width: 769px) and (max-width: 968px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .content-image-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .features-modern-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-box {
        padding: 45px 35px;
    }
}
