:root {
    /* Palette inspirée des marchés alimentaires */
    --terracotta: #E07A5F;
    --forest: #3D5A40;
    --cream: #F4F1DE;
    --clay: #81B29A;
    --deep-purple: #5D576B;
    --tangerine: #F2CC8F;
    --charcoal: #1A1A1D;
    --paper: #FDFBF7;
    
    /* Gradients */
    --grad-warm: linear-gradient(135deg, #E07A5F 0%, #F2CC8F 100%);
    --grad-earth: linear-gradient(135deg, #3D5A40 0%, #81B29A 100%);
    --grad-sunset: linear-gradient(135deg, #E07A5F 0%, #5D576B 100%);
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(29, 29, 31, 0.04);
    --shadow-md: 0 8px 24px rgba(29, 29, 31, 0.08);
    --shadow-lg: 0 16px 48px rgba(29, 29, 31, 0.12);
    --shadow-glow: 0 0 40px rgba(224, 122, 95, 0.2);
}

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

body {
    font-family: 'Bricolage Grotesque', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--paper);
    color: var(--charcoal);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   NAVIGATION
   ======================================== */
nav {
    position: fixed;
    width: 100%;
    top: 0;
    background: rgba(253, 251, 247, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    z-index: 1000;
    border-bottom: 1px solid rgba(61, 90, 64, 0.08);
    animation: slideDown 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 3rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--forest);
    letter-spacing: -0.02em;
}

.logo-text i {
    color: var(--clay);
}

.ai-badge {
    background: var(--terracotta);
    color: white;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 0.05em;
}

.try-button {
    background: var(--forest);
    color: white;
    padding: 0.8rem 1.8rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
}

.try-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    background: var(--charcoal);
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    padding: 8rem 3rem 4rem;
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
}

.grain-overlay {
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='2.5' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 1;
}

.hero-content {
    max-width: 650px;
    z-index: 10;
    animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(224, 122, 95, 0.1);
    border: 1px solid rgba(224, 122, 95, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--terracotta);
    margin-bottom: 2rem;
    font-family: 'JetBrains Mono', monospace;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    line-height: 1.1;
    font-weight: 800;
    color: var(--charcoal);
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
}

.hero h1 .highlight {
    color: var(--terracotta);
    position: relative;
    display: inline-block;
}

.hero h1 .highlight::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 12px;
    background: rgba(224, 122, 95, 0.2);
    z-index: -1;
    transform: skewY(-2deg);
}

.hero h1 .gradient-text {
    background: var(--grad-earth);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--deep-purple);
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.cta-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--charcoal);
    color: white;
    padding: 1.2rem 2.5rem;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-md);
}

.cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    background: var(--forest);
}

.cta-primary svg {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cta-primary:hover svg {
    transform: translateX(4px);
}

.cta-secondary {
    display: inline-flex;
    align-items: center;
    padding: 1.2rem 2rem;
    border: 2px solid var(--charcoal);
    border-radius: 14px;
    text-decoration: none;
    font-weight: 600;
    color: var(--charcoal);
    transition: all 0.3s ease;
}

.cta-secondary:hover {
    background: var(--charcoal);
    color: white;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    padding: 2rem;
    background: rgba(61, 90, 64, 0.04);
    border-radius: 16px;
    border: 1px solid rgba(61, 90, 64, 0.08);
}

.stat-item {
    flex: 1;
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--forest);
    font-family: 'JetBrains Mono', monospace;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--deep-purple);
    opacity: 0.7;
}

.stat-divider {
    width: 1px;
    background: rgba(61, 90, 64, 0.15);
}

/* Hero Visual */
.hero-visual {
    position: relative;
    height: 600px;
    animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s backwards;
}

.visual-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    height: 100%;
}

.grid-item {
    background: linear-gradient(135deg, rgba(224, 122, 95, 0.1), rgba(129, 178, 154, 0.1));
    border-radius: 24px;
    border: 1px solid rgba(61, 90, 64, 0.1);
    position: relative;
    overflow: hidden;
    animation: pulse 3s ease-in-out infinite;
}

.grid-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--grad-warm);
    opacity: 0;
    transition: opacity 0.6s ease;
}

.grid-item:hover::before {
    opacity: 0.15;
}

.floating-scan-line {
    position: absolute;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--terracotta), transparent);
    animation: scan 3s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(224, 122, 95, 0.5);
}

/* ========================================
   IMPACT SECTION
   ======================================== */
.impact {
    padding: 8rem 3rem;
    background: var(--charcoal);
    color: white;
    position: relative;
    overflow: hidden;
}

.impact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(224, 122, 95, 0.3), transparent);
}

.impact-header {
    max-width: 1400px;
    margin: 0 auto 4rem;
    text-align: center;
}

.impact-header h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.impact-subtitle {
    font-size: 1.25rem;
    color: var(--tangerine);
    opacity: 0.9;
}

.impact-grid {
    max-width: 1400px;
    margin: 0 auto 4rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.impact-card {
    position: relative;
    padding: 3rem;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.card-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, var(--card-color), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.impact-card:hover .card-glow {
    opacity: 0.15;
}

.impact-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.2);
}

.card-purple { --card-color: #9D8FD9; }
.card-orange { --card-color: #F2CC8F; }
.card-green { --card-color: #81B29A; }

.card-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.impact-data {
    margin-bottom: 1.5rem;
}

.impact-number {
    font-size: 3.5rem;
    font-weight: 800;
    font-family: 'JetBrains Mono', monospace;
    color: white;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.impact-metric {
    font-size: 1rem;
    color: var(--tangerine);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.card-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
}

.impact-visual {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    padding-top: 2rem;
}

.progress-ring {
    position: relative;
    width: 250px;
    height: 250px;
}

.progress-ring svg {
    transform: rotate(-90deg);
}

.progress-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 12;
}

.progress-fill {
    fill: none;
    stroke: var(--terracotta);
    stroke-width: 12;
    stroke-linecap: round;
    stroke-dasharray: 502;
    stroke-dashoffset: 125;
    animation: progressGrow 2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.progress-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.progress-number {
    font-size: 2rem;
    font-weight: 800;
    font-family: 'JetBrains Mono', monospace;
    color: white;
}

.progress-label {
    font-size: 0.9rem;
    color: var(--tangerine);
    margin-top: 0.5rem;
}

/* ========================================
   CTA SECTION
   ======================================== */
.cta-section {
    position: relative;
    padding: 8rem 3rem;
    background: var(--cream);
    overflow: hidden;
}

.cta-backdrop {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(224, 122, 95, 0.15), transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(129, 178, 154, 0.15), transparent 50%);
}

.cta-content {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    z-index: 10;
}

.cta-tag {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    background: rgba(61, 90, 64, 0.1);
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--forest);
    margin-bottom: 2rem;
    font-family: 'JetBrains Mono', monospace;
}

.cta-content h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: var(--charcoal);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.cta-text {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--deep-purple);
    margin-bottom: 3rem;
    opacity: 0.9;
}

.cta-large {
    font-size: 1.15rem;
    padding: 1.5rem 3rem;
}

/* ========================================
   FOOTER
   ======================================== */
footer {
    background: var(--charcoal);
    color: white;
    padding: 4rem 3rem 2rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 3rem;
    align-items: start;
}

.footer-brand .logo {
    margin-bottom: 1rem;
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
    justify-content: center;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

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

.footer-legal {
    text-align: right;
}

.footer-legal p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

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

@keyframes pulse {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.02);
    }
}

@keyframes scan {
    0% {
        top: 0;
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        top: 100%;
        opacity: 0;
    }
}

@keyframes progressGrow {
    from {
        stroke-dashoffset: 502;
    }
    to {
        stroke-dashoffset: 125;
    }
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        padding: 6rem 2rem 3rem;
        gap: 2rem;
    }
    
    .hero-visual {
        height: 350px;
        order: -1;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .impact-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .nav-content {
        padding: 1rem;
    }
    
    .hero {
        padding: 5rem 1.5rem 2rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .hero-visual {
        height: 300px;
    }
    
    .cta-group {
        flex-direction: column;
        width: 100%;
    }
    
    .cta-primary,
    .cta-secondary {
        width: 100%;
        justify-content: center;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1.5rem;
    }
    
    .stat-divider {
        display: none;
    }
    
    .impact {
        padding: 4rem 1.5rem;
    }
    
    .impact-header h2 {
        font-size: 2rem;
    }
    
    .impact-card {
        padding: 2rem;
    }
    
    .cta-section {
        padding: 4rem 1.5rem;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .cta-text {
        font-size: 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
        padding: 0 1rem;
    }
    
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    .footer-legal {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .logo-text {
        font-size: 1.25rem;
    }
    
    .try-button {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-visual {
        height: 250px;
    }
    
    .visual-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .impact-number {
        font-size: 2.5rem;
    }
    
    .card-icon {
        font-size: 2rem;
    }
    
    .progress-ring {
        width: 200px;
        height: 200px;
    }
    
    .progress-number {
        font-size: 1.5rem;
    }
}