/* ===================================
   Noon - Website Styles
   Identité visuelle de l'app iOS
   =================================== */

/* CSS Variables - Couleurs de l'app Noon */
:root {
    /* Primary Colors - from iOS app */
    --primary: #FF803D;
    --primary-dark: #E5702F;
    --primary-light: #FF9A5C;
    --yellow: #FFE579;
    --yellow-dark: #F5D86A;

    /* Gradients - Noon style */
    --gradient-primary: linear-gradient(135deg, #FF803D 0%, #FFB347 100%);
    --gradient-yellow: linear-gradient(135deg, #FFE579 0%, #FFCD4D 100%);
    --gradient-warm: linear-gradient(135deg, #FF803D 0%, #FFE579 100%);

    /* Background Colors */
    --background: #FFFBEC;
    --beige-primary: #F0EDDF;
    --beige-light: #FFF8E7;

    /* Text Colors */
    --title: #353639;
    --subtitle: #8E8781;
    --text: #5A5854;

    /* State Colors */
    --success: #66D575;
    --error: #FF6B6B;

    /* Neutrals */
    --white: #ffffff;
    --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;

    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Spacing */
    --container-max: 1200px;
    --section-padding: 100px;

    /* Shadows - warm tones */
    --shadow-sm: 0 1px 2px 0 rgba(255, 128, 61, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --shadow-primary: 0 4px 14px rgba(255, 128, 61, 0.35);

    /* Border radius */
    --radius-sm: 6px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Transitions */
    --transition: all 0.2s ease;
    --transition-slow: all 0.3s ease;
}

/* Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

/* Container */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* ===================================
   Typography
   =================================== */

h1, h2, h3, h4 {
    color: var(--title);
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: 1.25rem;
}

.gradient-text {
    background: var(--gradient-warm);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===================================
   Buttons
   =================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 128, 61, 0.45);
}

.btn-secondary {
    background: var(--beige-primary);
    color: var(--title);
}

.btn-secondary:hover {
    background: var(--gray-200);
}

.btn-white {
    background: var(--white);
    color: var(--title);
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-large {
    padding: 18px 36px;
    font-size: 1.1rem;
}

/* ===================================
   Navigation
   =================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    background: rgba(255, 251, 236, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 128, 61, 0.1);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--title);
}

.logo-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    object-fit: cover;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    color: var(--subtitle);
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links .btn {
    padding: 10px 20px;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--title);
    border-radius: 2px;
    transition: var(--transition);
}

/* ===================================
   Hero Section
   =================================== */

.hero {
    position: relative;
    padding: 160px 0 100px;
    overflow: hidden;
    background: var(--background);
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    max-width: 560px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--subtitle);
    margin: 24px 0 32px;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--beige-primary);
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--subtitle);
}

.hero-image {
    display: flex;
    justify-content: center;
}

.hero-phone {
    position: relative;
    max-width: 320px;
}

.hero-screenshot {
    width: 100%;
    height: auto;
    border-radius: 32px;
    box-shadow: 0 25px 50px -12px rgba(255, 128, 61, 0.25);
}

.hero-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 128, 61, 0.08) 0%, rgba(255, 229, 121, 0.08) 100%);
    z-index: -1;
}

/* ===================================
   Section Styles
   =================================== */

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
}

.section-tag {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(255, 128, 61, 0.1);
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    margin-bottom: 16px;
}

.section-header p {
    color: var(--subtitle);
    font-size: 1.125rem;
    margin-top: 16px;
}

/* ===================================
   Screenshots Carousel Section
   =================================== */

.screenshots-section {
    padding: var(--section-padding) 0;
    background: var(--white);
    overflow: hidden;
}

.screenshots-carousel {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    padding: 20px 0 40px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.screenshots-carousel::-webkit-scrollbar {
    display: none;
}

.screenshot-item {
    flex: 0 0 auto;
    width: 220px;
    scroll-snap-align: center;
    text-align: center;
    transition: var(--transition-slow);
}

.screenshot-item:hover {
    transform: translateY(-8px);
}

.screenshot-item img {
    width: 100%;
    height: auto;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(255, 128, 61, 0.15);
    transition: var(--transition-slow);
    background: var(--beige-primary);
    min-height: 400px;
    object-fit: cover;
}

.screenshot-item:hover img {
    box-shadow: 0 20px 60px rgba(255, 128, 61, 0.25);
}

.screenshot-label {
    display: block;
    margin-top: 16px;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--title);
}

/* ===================================
   Features Section
   =================================== */

.features {
    padding: var(--section-padding) 0;
    background: var(--beige-primary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--white);
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: var(--transition-slow);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    color: var(--white);
    margin-bottom: 20px;
}

.feature-card h3 {
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--subtitle);
    font-size: 0.9375rem;
    line-height: 1.6;
}

/* ===================================
   FAQ Section
   =================================== */

.faq {
    padding: var(--section-padding) 0;
    background: var(--background);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    padding: 24px;
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--beige-primary);
}

.faq-item h3 {
    margin-bottom: 12px;
    color: var(--title);
}

.faq-item p {
    color: var(--subtitle);
    font-size: 0.9375rem;
    line-height: 1.7;
}

/* ===================================
   Download Section
   =================================== */

.download {
    padding: var(--section-padding) 0;
    background: var(--gradient-primary);
}

.download-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.download h2 {
    color: var(--white);
    margin-bottom: 16px;
}

.download p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.125rem;
    margin-bottom: 32px;
}

/* ===================================
   Footer
   =================================== */

.footer {
    padding: 60px 0 30px;
    background: var(--title);
    color: var(--gray-400);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand p {
    margin-top: 16px;
    font-size: 0.9375rem;
}

.footer-brand .logo {
    color: var(--white);
}

.footer-links h4 {
    color: var(--white);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 0.9375rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid var(--gray-700);
    text-align: center;
    font-size: 0.875rem;
}

/* ===================================
   Responsive Design
   =================================== */

@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 60px;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero {
        padding: 120px 0 60px;
    }

    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-image {
        margin-top: 40px;
    }

    .hero-phone {
        max-width: 260px;
    }

    .screenshot-item {
        width: 180px;
    }

    .screenshot-item img {
        min-height: 320px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .faq-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .footer-brand {
        grid-column: span 2;
    }
}

@media (max-width: 480px) {
    .hero-stats {
        flex-direction: column;
        gap: 24px;
        align-items: center;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-brand {
        grid-column: span 1;
    }

    .btn-large {
        padding: 16px 24px;
        font-size: 1rem;
    }
}

/* ===================================
   Animations
   =================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content,
.hero-image {
    animation: fadeInUp 0.6s ease forwards;
}

.hero-image {
    animation-delay: 0.2s;
}
