/**
 * Mobestate - Feuille de styles principale
 * Plateforme d'investissement immobilier à Athènes
 * 
 * Ce fichier contient UNIQUEMENT :
 * - Variables CSS & Reset
 * - Styles des sections (Hero, Opportunities, Market, Services, Testimonials, CTA)
 * - Graphiques et cartes
 * - Responsive pour les sections (PAS header/footer)
 * 
 * Les styles du header sont dans header.css
 * Les styles du footer sont dans footer.css
 */

/* ==================================================
   VARIABLES CSS & RESET
   ================================================== */

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

:root {
    --primary-teal: #52D3D8;
    --teal-light: #E0F7F8;
    --teal-dark: #3BA0A4;
    --teal-accent: #6BE4E9;
    --white: #FFFFFF;
    --off-white: #FAFBFC;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;
    --success: #10B981;
    --warning: #F59E0B;
    --error: #EF4444;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--gray-700);
    line-height: 1.6;
    background: var(--white);
    overflow-x: clip;
    width: 100%;
    max-width: 100vw;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    overflow-x: clip;
    width: 100%;
    scroll-behavior: smooth;
}

img {
    max-width: 100%;
    height: auto;
}

/* ==================================================
   CHART & DISTRICT STATS - Styles propres
   ================================================== */

.chart-district-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 32px;
}

.chart-container {
    background: white;
    padding: 32px;
    border-radius: 12px;
}

.chart-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 24px;
}

.district-buttons {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.district-btn {
    padding: 8px 16px;
    background: var(--gray-200);
    color: var(--gray-700);
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.district-btn.active {
    background: var(--primary-teal);
    color: white;
}

.district-btn:hover {
    background: var(--primary-teal);
    color: white;
}

.chart-canvas-wrapper {
    height: 330px;
    position: relative;
    width: 100%;
}

.district-stats-container {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

.district-map-wrapper {
    height: 230px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

#districtMap {
    width: 100%;
    height: 100%;
}

.district-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: white;
    padding: 8px 16px;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 1000;
}

.district-badge-dot {
    width: 6px;
    height: 6px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.district-badge span {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-900);
}

.district-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0;
    border-bottom: 1px solid var(--gray-100);
}

.district-stat-item {
    padding: 20px;
    text-align: center;
    border-right: 1px solid var(--gray-100);
}

.district-stat-item:last-child {
    border-right: none;
}

.district-stat-label {
    font-size: 11px;
    color: var(--gray-500);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.district-stat-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--gray-900);
}

.district-popularity {
    padding: 24px;
}

.district-popularity-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.district-popularity-label {
    font-size: 13px;
    color: var(--gray-600);
    font-weight: 500;
}

.district-popularity-value {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary-teal);
}

.district-popularity-bar-container {
    height: 8px;
    background: var(--gray-100);
    border-radius: 4px;
    overflow: hidden;
}

.district-popularity-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-teal), var(--teal-accent));
    width: 85%;
    border-radius: 4px;
    transition: width 0.5s ease;
}

.district-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    padding: 12px;
    background: var(--gray-50);
    border-radius: 8px;
    text-decoration: none;
    color: var(--gray-700);
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
    border: 1px solid var(--gray-200);
}

.district-cta:hover {
    background: var(--teal-light);
    border-color: var(--primary-teal);
    color: var(--teal-dark);
}

.district-growth-pct { 
    margin-left: 4px; 
    opacity: 0.9; 
}

.district-btn:not(.active) .district-growth-pct { 
    opacity: 0.7; 
}

.district-cta-arrow { 
    font-size: 16px; 
}

.district-growth-green { 
    color: var(--success); 
}

/* ==================================================
   HERO SECTION
   ================================================== */

.hero {
    background: linear-gradient(135deg, var(--white) 0%, var(--teal-light) 100%);
    padding: 130px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
    background-image: url(../images/bandeau2.jpg);
    background-size: cover;
}

.hero-container {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--white);
    padding: 8px 16px;
    border-radius: 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.hero-badge .dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.hero h1 {
    font-size: 56px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 24px;
    line-height: 1.1;
}

.hero h1 .highlight {
    background: var(--primary-teal);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 20px;
    color: var(--gray-600);
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Hero buttons large */
.btn-primary-hero { 
    padding: 14px 28px !important; 
    font-size: 16px !important; 
}

.btn-ghost-hero { 
    padding: 14px 28px !important; 
    font-size: 16px !important; 
    background: white !important; 
}

/* ==================================================
   SECTION OPPORTUNITÉS
   ================================================== */

.section-opportunities { 
    padding: 80px 24px; 
    background: var(--gray-50); 
}

.opportunities-container { 
    max-width: 1440px; 
    margin: 0 auto; 
}

.opportunities-header { 
    text-align: center; 
    margin-bottom: 48px; 
}

.opportunities-badge { 
    background: var(--teal-light); 
    color: var(--teal-dark); 
    padding: 6px 16px; 
    border-radius: 20px; 
    font-size: 14px; 
    font-weight: 600; 
    display: inline-block; 
    margin-bottom: 16px; 
}

.opportunities-title { 
    font-size: 40px; 
    font-weight: 700; 
    color: var(--gray-900); 
    margin-bottom: 16px; 
    line-height: 1.2; 
}

.opportunities-description { 
    font-size: 18px; 
    color: var(--gray-600); 
    max-width: 600px; 
    margin: 0 auto; 
}

.properties-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); 
    gap: 24px; 
}

.property-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.property-card-link:hover {
    text-decoration: none;
}

.property-card { 
    background: white; 
    border-radius: 16px; 
    overflow: hidden; 
    box-shadow: 0 2px 8px rgba(0,0,0,0.08); 
    transition: all 0.3s; 
    cursor: pointer; 
}

.property-card:hover { 
    transform: translateY(-4px); 
    box-shadow: 0 12px 24px rgba(82,211,216,0.2); 
}

.property-image { 
    height: 240px; 
    position: relative; 
    overflow: hidden; 
}

.property-image-img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
}

.badge-roi { 
    position: absolute; 
    top: 16px; 
    right: 16px; 
    background: var(--success); 
    color: white; 
    padding: 6px 12px; 
    border-radius: 8px; 
    font-size: 12px; 
    font-weight: 600; 
}

.badge-golden { 
    position: absolute; 
    top: 16px; 
    right: 16px; 
    background: var(--warning); 
    color: white; 
    padding: 6px 12px; 
    border-radius: 8px; 
    font-size: 12px; 
    font-weight: 600; 
}

.badge-urgent { 
    position: absolute; 
    top: 16px; 
    right: 16px; 
    background: var(--error); 
    color: white; 
    padding: 6px 12px; 
    border-radius: 8px; 
    font-size: 12px; 
    font-weight: 600; 
}

.badge-premium { 
    position: absolute; 
    top: 16px; 
    right: 16px; 
    background: #8B5CF6; 
    color: white; 
    padding: 6px 12px; 
    border-radius: 8px; 
    font-size: 12px; 
    font-weight: 600; 
}

.badge-new { 
    position: absolute; 
    top: 16px; 
    right: 16px; 
    background: var(--primary-teal); 
    color: white; 
    padding: 6px 12px; 
    border-radius: 8px; 
    font-size: 12px; 
    font-weight: 600; 
}

.property-content { 
    padding: 24px; 
}

.property-title { 
    font-size: 20px; 
    font-weight: 600; 
    color: var(--gray-900); 
    margin-bottom: 12px; 
}

.property-desc { 
    color: var(--gray-600); 
    font-size: 14px; 
    margin-bottom: 16px; 
}

.property-footer { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding-top: 16px; 
    border-top: 1px solid var(--gray-100); 
}

.property-price { 
    font-size: 24px; 
    font-weight: 700; 
    color: var(--primary-teal); 
}

.property-price-sqm { 
    color: var(--gray-500); 
    font-size: 14px; 
}

.view-all-container { 
    text-align: center; 
    margin-top: 48px; 
}

.view-all-btn { 
    display: inline-flex; 
    align-items: center; 
    gap: 8px; 
    padding: 14px 32px; 
    background: var(--primary-teal); 
    color: white; 
    text-decoration: none; 
    border-radius: 8px; 
    font-weight: 600; 
    transition: all 0.3s; 
}

.view-all-btn:hover { 
    background: var(--teal-dark); 
    transform: translateY(-2px); 
}

/* ==================================================
   SECTION MARCHÉ
   ================================================== */

.section-market { 
    padding: 80px 24px; 
    background: white; 
}

.market-container { 
    max-width: 1440px; 
    margin: 0 auto; 
}

.market-header { 
    text-align: center; 
    margin-bottom: 48px; 
}

.market-badge { 
    background: var(--teal-light); 
    color: var(--teal-dark); 
    padding: 6px 16px; 
    border-radius: 20px; 
    font-size: 14px; 
    font-weight: 600; 
    display: inline-block; 
    margin-bottom: 16px; 
}

.market-title { 
    font-size: 40px; 
    font-weight: 700; 
    color: var(--gray-900); 
    margin-bottom: 16px; 
    line-height: 1.2; 
}

.market-desc { 
    font-size: 18px; 
    color: var(--gray-600); 
    max-width: 600px; 
    margin: 0 auto; 
}

.stats-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
    gap: 24px; 
    margin-bottom: 48px; 
}

.stat-card { 
    background: var(--gray-50); 
    padding: 32px; 
    border-radius: 12px; 
    text-align: center; 
}

.stat-value { 
    font-size: 40px; 
    font-weight: 700; 
    color: var(--primary-teal); 
    margin-bottom: 8px; 
}

.stat-label { 
    color: var(--gray-600); 
    font-size: 14px; 
    margin-bottom: 8px; 
}

.stat-change-up { 
    color: var(--success); 
    font-size: 13px; 
    font-weight: 600; 
}

.stat-change-down { 
    color: var(--warning); 
    font-size: 13px; 
    font-weight: 600; 
}

/* ==================================================
   SECTION SERVICES
   ================================================== */

.section-services { 
    padding: 80px 24px; 
    background: linear-gradient(135deg, var(--teal-light) 0%, var(--gray-50) 100%); 
}

.services-container { 
    max-width: 1440px; 
    margin: 0 auto; 
}

.services-header { 
    text-align: center; 
    margin-bottom: 48px; 
}

.services-badge { 
    background: white; 
    color: var(--teal-dark); 
    padding: 6px 16px; 
    border-radius: 20px; 
    font-size: 14px; 
    font-weight: 600; 
    display: inline-block; 
    margin-bottom: 16px; 
}

.services-title { 
    font-size: 40px; 
    font-weight: 700; 
    color: var(--gray-900); 
    margin-bottom: 16px; 
}

.services-description { 
    font-size: 18px; 
    color: var(--gray-600); 
    max-width: 600px; 
    margin: 0 auto; 
}

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

.service-card { 
    background: white; 
    padding: 32px; 
    border-radius: 12px; 
    text-align: center; 
    transition: all 0.3s; 
}

.service-card:hover { 
    transform: translateY(-4px); 
    box-shadow: 0 12px 24px rgba(0,0,0,0.1); 
}

.service-icon { 
    width: 64px; 
    height: 64px; 
    background: var(--teal-light); 
    border-radius: 12px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    margin: 0 auto 20px; 
}

.service-icon .material-icons { 
    font-size: 32px; 
    color: var(--primary-teal); 
}

.service-card-title { 
    font-size: 20px; 
    font-weight: 600; 
    color: var(--gray-900); 
    margin-bottom: 12px; 
}

.service-card-desc { 
    color: var(--gray-600); 
    font-size: 14px; 
    line-height: 1.6; 
}

/* ==================================================
   SECTION TÉMOIGNAGES
   ================================================== */

.section-testimonials { 
    padding: 80px 24px; 
    background: white; 
}

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

.testimonials-header { 
    text-align: center; 
    margin-bottom: 48px; 
}

.testimonials-badge { 
    background: var(--teal-light); 
    color: var(--teal-dark); 
    padding: 6px 16px; 
    border-radius: 20px; 
    font-size: 14px; 
    font-weight: 600; 
    display: inline-block; 
    margin-bottom: 16px; 
}

.testimonials-title { 
    font-size: 40px; 
    font-weight: 700; 
    color: var(--gray-900); 
    margin-bottom: 16px; 
    line-height: 1.2; 
}

.testimonials-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); 
    gap: 32px; 
}

.testimonial-card { 
    background: var(--gray-50); 
    padding: 32px; 
    border-radius: 12px; 
    position: relative; 
}

.testimonial-quote { 
    font-size: 48px; 
    color: var(--primary-teal); 
    opacity: 0.2; 
    position: absolute; 
    top: 16px; 
    right: 24px; 
}

.testimonial-stars { 
    display: flex; 
    gap: 4px; 
    margin-bottom: 16px; 
    color: var(--warning); 
}

.testimonial-text { 
    color: var(--gray-700); 
    font-size: 16px; 
    line-height: 1.6; 
    margin-bottom: 24px; 
}

.testimonial-author { 
    display: flex; 
    align-items: center; 
    gap: 16px; 
}

.testimonial-avatar { 
    width: 48px; 
    height: 48px; 
    background: var(--primary-teal); 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    color: white; 
    font-weight: 600; 
}

.testimonial-author-name { 
    font-weight: 600; 
    color: var(--gray-900); 
}

.testimonial-author-info { 
    font-size: 14px; 
    color: var(--gray-500); 
}

/* ==================================================
   SECTION CTA
   ================================================== */

.section-cta { 
    padding: 100px 24px; 
    background: linear-gradient(135deg, var(--primary-teal), var(--teal-dark)); 
}

.cta-container { 
    max-width: 800px; 
    margin: 0 auto; 
    text-align: center; 
}

.cta-title { 
    font-size: 48px; 
    font-weight: 700; 
    color: white; 
    margin-bottom: 24px; 
}

.cta-desc { 
    font-size: 20px; 
    color: rgba(255,255,255,0.9); 
    margin-bottom: 40px; 
    line-height: 1.6; 
}

.cta-buttons { 
    display: flex; 
    gap: 20px; 
    justify-content: center; 
    flex-wrap: wrap; 
}

.cta-btn-primary { 
    display: inline-flex; 
    align-items: center; 
    gap: 10px; 
    padding: 16px 32px; 
    background: white; 
    color: var(--primary-teal); 
    text-decoration: none; 
    border-radius: 8px; 
    font-weight: 600; 
    font-size: 16px; 
    transition: all 0.3s; 
}

.cta-btn-primary:hover { 
    transform: translateY(-2px); 
    box-shadow: 0 12px 24px rgba(0,0,0,0.2); 
}

.cta-btn-secondary { 
    display: inline-flex; 
    align-items: center; 
    gap: 10px; 
    padding: 16px 32px; 
    background: transparent; 
    color: white; 
    text-decoration: none; 
    border: 2px solid white; 
    border-radius: 8px; 
    font-weight: 600; 
    font-size: 16px; 
    transition: all 0.3s; 
}

.cta-btn-secondary:hover { 
    background: rgba(255,255,255,0.1); 
}

/* ==================================================
   ANIMATIONS
   ================================================== */

@keyframes bounce {
    0%, 100% { transform: translate(-50%, -50%) translateY(0); }
    50% { transform: translate(-50%, -50%) translateY(-10px); }
}

@keyframes ping {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.3; }
    50% { transform: translate(-50%, -50%) scale(1.3); opacity: 0.1; }
    100% { transform: translate(-50%, -50%) scale(1.6); opacity: 0; }
}

/* ==================================================
   RESPONSIVE - TABLET & MOBILE
   ================================================== */

/* Tablet (1024px et moins) */
@media (max-width: 1024px) {
    /* Hero */
    .hero h1 {
        font-size: 48px;
    }
    
    .hero p {
        font-size: 18px;
    }
}

/* Tablet & Mobile (768px et moins) */
@media (max-width: 768px) {
    /* Fix overflow horizontal */
    html, body {
        overflow-x: hidden !important;
        width: 100%;
        position: relative;
    }
    
    * {
        max-width: 100%;
    }
    
    /* Masquer hero-badge sur mobile */
    .hero-badge {
        display: none !important;
    }
    
    /* Hero responsive */
    .hero {
        padding: 80px 20px;
    }
    
    .hero h1 {
        font-size: 32px;
        margin-bottom: 20px;
    }
    
    .hero p {
        font-size: 16px;
        margin-bottom: 32px;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-actions .btn {
        width: 100%;
        justify-content: center;
        padding: 14px 24px !important;
    }
    
    /* Sections spacing */
    section {
        padding: 60px 20px !important;
    }
    
    /* Section headers */
    .section-title,
    h2 {
        font-size: 28px !important;
    }
    
    .section-description,
    section p {
        font-size: 16px !important;
    }
    
    /* Market Stats Grid */
    .stats-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
    
    .stat-card {
        padding: 20px 16px !important;
    }
    
    .stat-value {
        font-size: 32px !important;
    }
    
    /* Chart & District Container - Mobile */
    .chart-district-container {
        display: flex;
        flex-direction: column-reverse;
        gap: 24px !important;
    }
    
    /* Stats en premier sur mobile */
    .district-stats-container {
        order: 1;
        margin-bottom: 0;
    }
    
    /* Graphique en second sur mobile */
    .chart-container {
        order: 2;
        padding: 24px 0 !important;
    }
    
    .chart-title {
        font-size: 16px !important;
        margin-bottom: 16px !important;
    }
    
    .district-buttons {
        gap: 8px !important;
        margin-bottom: 20px !important;
    }
    
    .district-btn {
        padding: 8px 14px !important;
        font-size: 12px !important;
    }
    
    .chart-canvas-wrapper {
        height: 250px !important;
    }
    
    .district-map-wrapper {
        height: 200px !important;
    }
    
    .district-badge {
        padding: 6px 12px !important;
        top: 8px !important;
        left: 8px !important;
    }
    
    .district-badge span {
        font-size: 13px !important;
    }
    
    .district-stats-grid {
        grid-template-columns: 1fr 1fr 1fr !important;
    }
    
    .district-stat-item {
        padding: 16px 12px !important;
    }
    
    .district-stat-label {
        font-size: 10px !important;
    }
    
    .district-stat-value {
        font-size: 18px !important;
    }
    
    .district-popularity {
        padding: 20px 16px !important;
    }
    
    .district-popularity-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        margin-bottom: 8px !important;
    }
    
    .district-popularity-label,
    .district-popularity-value {
        font-size: 12px !important;
    }
    
    .district-cta {
        padding: 10px !important;
        font-size: 13px !important;
        margin-top: 16px !important;
    }
}

/* Mobile - Small devices (moins de 480px) */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 28px !important;
    }
    
    .section-title,
    h2 {
        font-size: 24px !important;
    }
}

/* Landscape mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        padding: 60px 20px;
    }
}

/* RESPONSIVE TABLET (max-width: 1024px) */
@media (max-width: 1024px) and (min-width: 769px) {
    .chart-district-container {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .chart-container {
        order: 1;
    }
    
    .district-stats-container {
        order: 2;
    }
}