@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ====== NEXUS UI DESIGN SYSTEM ====== */
:root {
    /* Colors */
    --p-navy: #0F172A;
    --p-blue: #2563EB;
    --p-blue-soft: rgba(37, 99, 235, 0.08);
    --p-grey: #F8FAF9;
    --p-border: #E2E8F0;
    --p-text: #1E293B;
    --p-text-muted: #64748B;
    
    /* Spacing & Radius */
    --s-unit: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    
    /* Shadows (Apple Style - Multi-layered) */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.02);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 25px 40px -12px rgba(0, 0, 0, 0.12), 0 10px 15px -10px rgba(0, 0, 0, 0.06);
    
    /* Transitions */
    --t-smooth: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Reset */
* { margin:0; padding:0; box-sizing:border-box; -webkit-font-smoothing: antialiased; }

body { 
    font-family: 'Inter', sans-serif; 
    background: #FFFFFF; 
    color: var(--p-navy); 
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, .outfit { 
    font-family: 'Outfit', sans-serif; 
    letter-spacing: -0.04em; 
    font-weight: 800;
}

.container { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 calc(var(--s-unit) * 4); 
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate { animation: fadeInUp 1s ease forwards; opacity: 0; }
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

/* ====== NAVBAR ====== */
.navbar {
    position: fixed; top: 0; left: 0; width: 100%; height: 80px; z-index: 1000;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--p-border);
    display: flex; align-items: center;
}
.nav-flex { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.logo { display: flex; align-items: center; gap: 12px; font-weight: 900; color: var(--p-navy); text-decoration: none; font-size: 1.3rem; }
.logo img { height: 40px; border-radius: 10px; }

.nav-links { display: flex; gap: calc(var(--s-unit) * 5); list-style: none; }
.nav-links a { 
    text-decoration: none; color: var(--p-text-muted); font-size: 0.95rem; font-weight: 600; 
    transition: var(--t-smooth); padding: 8px 0; border-bottom: 2px solid transparent;
}
.nav-links a:hover { color: var(--p-blue); }

.btn-primary {
    background: var(--p-navy); color: #FFF; padding: 12px 24px; border-radius: 12px;
    font-weight: 700; text-decoration: none; font-size: 0.95rem; transition: var(--t-smooth);
    border: 1px solid rgba(255,255,255,0.1);
}
.btn-primary:hover { background: var(--p-blue); transform: scale(1.02); box-shadow: var(--shadow-md); }

/* ====== HERO ====== */
.hero {
    padding: calc(var(--s-unit) * 15) 0;
    background: radial-gradient(circle at top left, #F1F5F9 0%, #FFFFFF 60%);
    overflow: hidden; /* Pour contenir la grande image si besoin */
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero-split {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 64px;
    width: 100%;
}

.hero-content {
    flex: 1;
    text-align: left;
    z-index: 10;
}

.hero-content h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 32px;
}

.hero-content p {
    margin: 0 0 48px 0;
    text-align: left;
    font-size: 1.35rem;
}

.hero-visual {
    flex: 1.8;
    position: relative;
    display: flex;
    justify-content: flex-end;
}

/* Floating City (Background / Right side) */
.floating-city-box {
    position: relative;
    z-index: 1;
    animation: float-air 8s ease-in-out infinite;
    filter: drop-shadow(0 40px 100px rgba(15, 23, 42, 0.15));
    transform: translateX(100px); /* Décalage vers la droite pour le look 2/3 */
}

.floating-city-img {
    width: 1100px; /* Agrandissement massif */
    max-width: none;
    height: auto;
    display: block;
    object-fit: contain;
}

@keyframes float-air {
    0%, 100% { transform: translateX(100px) translateY(0); }
    50% { transform: translateX(120px) translateY(-30px); } /* Flottement léger et décalé */
}

/* Shadow below city */
.floating-city-box::after {
    content: '';
    position: absolute;
    bottom: -60px;
    left: 40%;
    transform: translateX(-50%);
    width: 60%;
    height: 40px;
    background: radial-gradient(ellipse at center, rgba(15, 23, 42, 0.08) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    animation: shadow-size 8s ease-in-out infinite;
    z-index: -1;
}

@keyframes shadow-size {
    0%, 100% { transform: translateX(-50%) scale(1); opacity: 0.5; }
    50% { transform: translateX(-50%) scale(0.8); opacity: 0.2; }
}

/* Dashboard Floating Cards */
.float-ui {
    position: absolute; background: rgba(255,255,255,0.7); backdrop-filter: blur(16px);
    border-radius: 20px; border: 1px solid var(--p-border); box-shadow: var(--shadow-md);
    padding: 20px; z-index: 10; font-weight: 700; text-align: left;
}

/* ====== SECTIONS ====== */
.section { padding: calc(var(--s-unit) * 20) 0; overflow: hidden; }
.section-grey { background-color: var(--p-grey); }

.sec-head { text-align: center; margin-bottom: 80px; }
.sec-head h2 { font-size: 3rem; margin-bottom: 16px; color: var(--p-navy); }
.sec-head p { color: var(--p-text-muted); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }

/* Grid Layouts */
.grid-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.feature-card {
    background: #FFF; padding: 48px; border-radius: var(--radius-lg); border: 1px solid var(--p-border);
    transition: var(--t-smooth); position: relative;
}
.feature-card:hover { border-color: var(--p-blue); transform: translateY(-8px); box-shadow: var(--shadow-md); }
.feature-card i { 
    display: block; width: 56px; height: 56px; background: var(--p-blue-soft); 
    border-radius: 14px; margin-bottom: 24px; color: var(--p-blue);
    display: flex; align-items: center; justify-content: center;
}
.feature-card h3 { font-size: 1.5rem; margin-bottom: 16px; color: var(--p-navy); }
.feature-card p { font-size: 1rem; color: var(--p-text-muted); }

/* Row Layout (Alternance) */
.row-flex { display: flex; align-items: center; gap: 80px; margin-bottom: 120px; }
.row-flex:nth-child(even) { flex-direction: row-reverse; }
.row-content { flex: 1; text-align: left; }
.row-content h3 { font-size: 2.5rem; margin-bottom: 24px; color: var(--p-navy); }
.row-visual { flex: 1.2; background: #FFF; padding: 40px; border-radius: var(--radius-lg); border: 1px solid var(--p-border); box-shadow: var(--shadow-md); }

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: flex-end; }
.price-card {
    background: #FFF; padding: 56px 40px; border-radius: var(--radius-lg); border: 1px solid var(--p-border);
    transition: var(--t-smooth); text-align: left;
}
.price-card.featured { border: 2px solid var(--p-blue); background: #FFF; transform: scale(1.05); z-index: 5; }
.price-card h4 { font-size: 1rem; color: var(--p-text-muted); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 24px; }
.price-tag { font-size: 3.5rem; font-weight: 800; display: block; margin-bottom: 40px; color: var(--p-navy); }
.price-tag span { font-size: 1rem; color: var(--p-text-muted); font-weight: 500; }
.price-list { list-style: none; margin-bottom: 48px; }
.price-list li { padding: 10px 0; border-bottom: 1px solid #F1F5F9; font-weight: 500; display: flex; align-items: center; gap: 12px; }
.price-list li::before { content: '✓'; color: var(--p-blue); font-weight: 900; }

/* ====== FOOTER ====== */
footer { padding: 120px 0 60px; background: #0b1120; color: #FFF; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 64px; margin-bottom: 80px; }
.footer-logo { display:flex; align-items:center; gap:12px; font-weight:900; font-size:1.5rem; margin-bottom:32px; color:#FFF; text-decoration:none; }
.footer-logo img { height: 44px; border-radius: 10px; }
.footer-bio { opacity: 0.5; font-size: 0.95rem; line-height: 1.8; margin-bottom: 32px; }
.footer-link-head { font-weight: 800; color: var(--p-blue); margin-bottom: 32px; text-transform: uppercase; font-size: 0.85rem; letter-spacing: 0.1em; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 16px; }
.footer-links a { color: rgba(255,255,255,0.4); text-decoration: none; font-weight: 600; font-size: 0.95rem; transition: var(--t-smooth); }
.footer-links a:hover { color: #FFF; }
.footer-btm { border-top: 1px solid rgba(255,255,255,0.05); padding-top: 40px; display: flex; justify-content: space-between; font-size: 0.85rem; opacity: 0.4; }

/* Responsive */
@media (max-width: 1024px) {
    .grid-features, .pricing-grid, .footer-grid { grid-template-columns: 1fr; gap: 40px; }
    .row-flex, .row-flex:nth-child(even) { flex-direction: column; text-align: center; gap: 40px; }
    .hero h1 { font-size: 3.2rem; }
    .hero p { font-size: 1.1rem; padding: 0 20px; }
}
