/* =====================================================
   BEES - La Ruche des Outre-Mer
   Design System & Styles
   ===================================================== */

/* CSS Variables */
:root {
    /* Colors */
    --honey: #FFC107;
    --honey-light: #FFD54F;
    --honey-dark: #FFA000;
    --charcoal: #212121;
    --charcoal-light: #424242;
    --charcoal-lighter: #616161;
    --white: #FFFFFF;
    --off-white: #FAFAFA;
    --cream: #FFF8E1;
    --gray-100: #F5F5F5;
    --gray-200: #EEEEEE;
    --gray-300: #E0E0E0;
    --gray-400: #BDBDBD;
    --gray-500: #9E9E9E;
    
    /* Semantic */
    --success: #4CAF50;
    --error: #F44336;
    --warning: #FF9800;
    --info: #2196F3;
    
    /* Typography */
    --font-primary: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
    
    /* Borders */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.07);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 50px rgba(0,0,0,0.15);
    --shadow-honey: 0 10px 40px rgba(255,193,7,0.3);
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    font-weight: 400;
    line-height: 1.6;
    color: var(--charcoal);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section-header.light {
    color: var(--white);
}

.section-label {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--honey);
    margin-bottom: var(--space-sm);
}

.section-header.light .section-label {
    color: var(--honey-light);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
}

/* =====================================================
   NAVIGATION
   ===================================================== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: var(--space-md) 0;
    transition: all var(--transition-base);
}

.nav.scrolled {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-weight: 700;
    font-size: 1.5rem;
}

.logo-icon {
    font-size: 2rem;
    color: var(--honey);
    line-height: 1;
}

.logo-text {
    color: var(--charcoal);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.nav-links a:not(.btn) {
    font-weight: 500;
    color: var(--charcoal-light);
}

.nav-links a:not(.btn):hover {
    color: var(--honey-dark);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: var(--space-sm);
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--charcoal);
    transition: var(--transition-fast);
}

/* =====================================================
   BUTTONS
   ===================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
    white-space: nowrap;
}

.btn-primary {
    background: var(--honey);
    color: var(--charcoal);
    box-shadow: var(--shadow-honey);
}

.btn-primary:hover {
    background: var(--honey-dark);
    transform: translateY(-2px);
    box-shadow: 0 15px 45px rgba(255,193,7,0.4);
}

.btn-outline {
    border: 2px solid var(--charcoal);
    color: var(--charcoal);
    background: transparent;
}

.btn-outline:hover {
    background: var(--charcoal);
    color: var(--white);
}

.btn-ghost {
    color: var(--charcoal);
    background: transparent;
}

.btn-ghost:hover {
    background: rgba(0,0,0,0.05);
}

.btn-dark {
    background: var(--charcoal);
    color: var(--white);
}

.btn-dark:hover {
    background: var(--charcoal-light);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn-block {
    width: 100%;
}

.btn-icon {
    width: 48px;
    height: 48px;
    padding: 0;
    border-radius: var(--radius-full);
}

/* =====================================================
   HERO SECTION
   ===================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: var(--space-3xl);
    padding: calc(80px + var(--space-3xl)) var(--space-lg) var(--space-3xl);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--cream) 0%, var(--white) 50%, var(--gray-100) 100%);
    z-index: -1;
}

.hexagon-grid {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='52' viewBox='0 0 60 52' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0l25.98 15v30L30 60 4.02 45V15z' fill='none' stroke='%23FFC107' stroke-width='0.5' opacity='0.15'/%3E%3C/svg%3E");
    background-size: 60px 52px;
    opacity: 0.5;
}

.hero-content {
    max-width: 600px;
    margin-left: auto;
    padding-left: var(--space-xl);
    animation: fadeInUp 0.8s ease forwards;
}

.hero-badge {
    display: inline-block;
    padding: var(--space-sm) var(--space-md);
    background: var(--white);
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--charcoal-lighter);
    box-shadow: var(--shadow-md);
    margin-bottom: var(--space-lg);
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: var(--space-lg);
}

.hero-title .highlight {
    color: var(--honey-dark);
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--charcoal-lighter);
    margin-bottom: var(--space-xl);
    max-width: 480px;
}

.hero-cta {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-3xl);
}

.hero-stats {
    display: flex;
    gap: var(--space-2xl);
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--charcoal);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--gray-500);
}

/* Phone Mockup */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInUp 0.8s ease 0.2s forwards;
    opacity: 0;
}

.phone-mockup {
    position: relative;
    width: 320px;
    height: 640px;
    background: var(--charcoal);
    border-radius: 40px;
    padding: 12px;
    box-shadow: var(--shadow-xl);
}

.phone-mockup::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 24px;
    background: var(--charcoal);
    border-radius: 20px;
    z-index: 10;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: var(--white);
    border-radius: 32px;
    overflow: hidden;
}

.app-preview {
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: var(--space-xl) var(--space-md);
    padding-top: calc(var(--space-xl) + 24px);
}

.preview-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.preview-avatar {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--honey) 0%, var(--honey-dark) 100%);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.preview-info {
    display: flex;
    flex-direction: column;
}

.preview-name {
    font-weight: 600;
    color: var(--charcoal);
}

.preview-badge {
    font-size: 0.75rem;
    color: var(--gray-500);
}

.preview-card {
    flex: 1;
    background: var(--cream);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.preview-match-score {
    font-size: 3rem;
    font-weight: 800;
    color: var(--honey-dark);
    margin-bottom: var(--space-md);
}

.preview-text {
    font-size: 0.9375rem;
    color: var(--charcoal-light);
    margin-bottom: var(--space-lg);
}

.preview-tags {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
    justify-content: center;
}

.tag {
    padding: var(--space-xs) var(--space-md);
    background: var(--white);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--charcoal-light);
}

.preview-actions {
    display: flex;
    justify-content: center;
    gap: var(--space-xl);
    padding-top: var(--space-xl);
}

.preview-btn {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
}

.preview-btn.decline {
    background: var(--gray-200);
    color: var(--error);
}

.preview-btn.accept {
    background: var(--honey);
    color: var(--charcoal);
    box-shadow: var(--shadow-honey);
}

/* =====================================================
   FEATURES SECTION
   ===================================================== */
.features {
    padding: var(--space-4xl) 0;
    background: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--space-xl);
}

.feature-card {
    position: relative;
    padding: var(--space-xl);
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    transition: all var(--transition-base);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--honey);
}

.feature-card.featured {
    background: linear-gradient(135deg, var(--cream) 0%, var(--white) 100%);
    border-color: var(--honey);
}

.feature-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--honey);
    color: var(--charcoal);
    margin-bottom: var(--space-lg);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.feature-icon svg {
    width: 24px;
    height: 24px;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: var(--space-sm);
}

.feature-card p {
    font-size: 0.9375rem;
    color: var(--charcoal-lighter);
}

.feature-badge {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    padding: var(--space-xs) var(--space-sm);
    background: var(--honey);
    border-radius: var(--radius-sm);
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* =====================================================
   TERRITOIRES SECTION
   ===================================================== */
.territoires {
    padding: var(--space-4xl) 0;
    background: var(--charcoal);
    color: var(--white);
}

.territoires-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: var(--space-lg);
}

.territoire-card {
    text-align: center;
    padding: var(--space-xl) var(--space-md);
    background: rgba(255,255,255,0.05);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255,255,255,0.1);
    transition: all var(--transition-base);
}

.territoire-card:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-4px);
    border-color: var(--honey);
}

.territoire-flag {
    font-size: 2.5rem;
    margin-bottom: var(--space-sm);
}

.territoire-card h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

.territoire-count {
    font-size: 0.8125rem;
    color: var(--gray-400);
}

/* =====================================================
   PRICING SECTION
   ===================================================== */
.pricing {
    padding: var(--space-4xl) 0;
    background: var(--gray-100);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-xl);
    max-width: 1000px;
    margin: 0 auto;
}

.pricing-card {
    position: relative;
    padding: var(--space-2xl);
    background: var(--white);
    border-radius: var(--radius-xl);
    border: 2px solid transparent;
    transition: all var(--transition-base);
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.pricing-card.popular {
    border-color: var(--honey);
    transform: scale(1.05);
    box-shadow: var(--shadow-xl);
}

.pricing-card.popular:hover {
    transform: scale(1.05) translateY(-4px);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: var(--space-xs) var(--space-md);
    background: var(--honey);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--charcoal);
}

.pricing-header {
    text-align: center;
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-xl);
    border-bottom: 1px solid var(--gray-200);
}

.pricing-icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-md);
}

.pricing-header h3 {
    font-size: 1.5rem;
    margin-bottom: var(--space-md);
}

.pricing-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: var(--space-xs);
}

.pricing-price .price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--charcoal);
}

.pricing-price .period {
    font-size: 0.875rem;
    color: var(--gray-500);
}

.pricing-features {
    list-style: none;
    margin-bottom: var(--space-xl);
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) 0;
    font-size: 0.9375rem;
}

.pricing-features li.disabled {
    color: var(--gray-400);
}

.pricing-features .check {
    color: var(--success);
    font-weight: 700;
}

.pricing-features .cross {
    color: var(--gray-400);
}

.pricing-note {
    text-align: center;
    margin-top: var(--space-2xl);
    padding: var(--space-lg);
    background: var(--cream);
    border-radius: var(--radius-lg);
    color: var(--charcoal-light);
}

/* =====================================================
   CTA SECTION
   ===================================================== */
.cta {
    padding: var(--space-4xl) 0;
    background: linear-gradient(135deg, var(--honey) 0%, var(--honey-dark) 100%);
}

.cta-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.cta-content h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.5rem);
    color: var(--charcoal);
    margin-bottom: var(--space-md);
}

.cta-content p {
    color: var(--charcoal-light);
    margin-bottom: var(--space-xl);
}

/* =====================================================
   FOOTER
   ===================================================== */
.footer {
    padding: var(--space-3xl) 0 var(--space-xl);
    background: var(--charcoal);
    color: var(--white);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
}

.footer-brand .nav-logo {
    margin-bottom: var(--space-md);
}

.footer-brand .logo-text {
    color: var(--white);
}

.footer-brand p {
    color: var(--gray-400);
    font-size: 0.875rem;
}

.footer-links h4 {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-md);
    color: var(--white);
}

.footer-links a {
    display: block;
    padding: var(--space-xs) 0;
    color: var(--gray-400);
    font-size: 0.875rem;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--honey);
}

.footer-bottom {
    padding-top: var(--space-xl);
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
}

.footer-bottom p {
    color: var(--gray-500);
    font-size: 0.8125rem;
}

/* =====================================================
   ANIMATIONS
   ===================================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: calc(80px + var(--space-2xl));
    }
    
    .hero-content {
        max-width: 100%;
        margin: 0;
        padding: 0;
    }
    
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-visual {
        display: none;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero-stats {
        flex-wrap: wrap;
        gap: var(--space-lg);
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-card.popular {
        transform: none;
    }
    
    .pricing-card.popular:hover {
        transform: translateY(-4px);
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .hero-cta .btn {
        width: 100%;
    }
}

