/* ============================================
   AgroInvest - Home Page Styles
   Style: Bold & Dynamique
   ============================================ */

/* ===== Variables CSS ===== */
:root {
    /* Couleurs principales */
    --color-primary: #2d5a3d;
    --color-primary-light: #4a7c59;
    --color-primary-dark: #1a3423;
    --color-secondary: #28a745;
    --color-accent: #ffc107;
    
    /* Dégradés */
    --gradient-primary: linear-gradient(135deg, #2d5a3d 0%, #4a7c59 100%);
    --gradient-hero: linear-gradient(135deg, #1a3423 0%, #2d5a3d 50%, #4a7c59 100%);
    --gradient-success: linear-gradient(135deg, #28a745 0%, #34ce57 100%);
    --gradient-overlay: linear-gradient(135deg, rgba(29, 90, 61, 0.95) 0%, rgba(74, 124, 89, 0.85) 100%);
    
    /* Couleurs de texte */
    --color-text-dark: #1a1a1a;
    --color-text-light: #6c757d;
    --color-text-white: #ffffff;
    
    /* Couleurs de fond */
    --color-bg-light: #f8f9fa;
    --color-bg-white: #ffffff;
    
    /* Ombres */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.16);
    --shadow-xl: 0 12px 60px rgba(0, 0, 0, 0.20);
    
    /* Espacements */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Border radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

/* ===== Reset & Base ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--color-text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-text-dark);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--color-text-light);
    margin-bottom: 2rem;
}

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

/* ===== Hero Section ===== */
.hero-section {
    position: relative;
    background: var(--gradient-hero);
    color: var(--color-text-white);
    padding: 0;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="60" height="60" xmlns="http://www.w3.org/2000/svg"><path d="M0 0h60v60H0z" fill="none"/><path d="M30 0v60M0 30h60" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 2rem 0;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    line-height: 1.6;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.btn-hero-primary {
    background: var(--gradient-success);
    color: white;
    padding: 1rem 2rem;
    border-radius: var(--radius-lg);
    font-weight: 700;
    font-size: 1.1rem;
    border: none;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-normal);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
    color: white;
}

.btn-hero-secondary {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: white;
    padding: 1rem 2rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 1.1rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all var(--transition-normal);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    color: white;
    transform: translateY(-2px);
}

.hero-badges {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.badge-item {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-xl);
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.badge-item i {
    color: var(--color-accent);
}

/* Hero Image */
.hero-image {
    position: relative;
    z-index: 2;
}

.hero-image img {
    border: 4px solid rgba(255, 255, 255, 0.2);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.floating-card {
    position: absolute;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: float 4s ease-in-out infinite;
}

.floating-card-1 {
    top: 10%;
    left: -5%;
    animation-delay: 0.5s;
}

.floating-card-2 {
    bottom: 10%;
    right: -2%;
    animation-delay: 1s;
}

.floating-card i {
    font-size: 2rem;
    color: var(--color-primary);
}

.floating-card .card-value {
    font-size: 1.0rem;
    font-weight: 800;
    color: var(--color-text-dark);
}

.floating-card .card-label {
    font-size: 0.75rem;
    color: var(--color-text-light);
}

/* ===== Problem-Solution Section (Notre Mission) ===== */
.problem-solution-section {
    padding: var(--spacing-xl) 0;
    background: var(--color-bg-light);
}

.mission-content-box {
    background: white;
    border-radius: var(--radius-lg);
    padding: 3rem;
    box-shadow: var(--shadow-md);
}

.mission-intro {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--color-text-dark);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.mission-description {
    font-size: 1.2rem;
    color: var(--color-text-light);
    line-height: 1.8;
    margin-bottom: 3rem;
}

.mission-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.highlight-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8fdf8 0%, #e8f5e8 100%);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--color-primary);
    transition: all var(--transition-normal);
}

.highlight-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.highlight-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-sm);
    background: var(--gradient-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    flex-shrink: 0;
}

.highlight-content h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-text-dark);
    margin-bottom: 0.5rem;
}

.highlight-content p {
    margin: 0;
    color: var(--color-text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Anciens styles de comparaison (à garder pour compatibilité si besoin) */
.comparison-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    height: 100%;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.comparison-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
}

.problem-card::before {
    background: linear-gradient(90deg, #dc3545 0%, #ff6b6b 100%);
}

.solution-card::before {
    background: var(--gradient-success);
}

.comparison-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.comparison-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
}

.problem-card .comparison-icon {
    background: linear-gradient(135deg, #ffe0e0 0%, #ffc9c9 100%);
    color: #dc3545;
}

.solution-card .comparison-icon {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #28a745;
}

.comparison-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.comparison-list {
    list-style: none;
    padding: 0;
}

.comparison-list li {
    padding: 0.8rem 0;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    font-size: 1rem;
    line-height: 1.6;
}

.comparison-list i {
    margin-top: 0.2rem;
    flex-shrink: 0;
}

/* ===== Features Section ===== */
.features-section {
    padding: var(--spacing-xl) 0;
    background: white;
}

.feature-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    height: 100%;
    border: 2px solid #e9ecef;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-normal);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--color-primary-light);
}

.feature-icon {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-md);
    background: var(--gradient-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    transition: all var(--transition-normal);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-text-dark);
    margin-bottom: 1rem;
}

.feature-text {
    color: var(--color-text-light);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.feature-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #e8f5e8 0%, #d4edda 100%);
    color: var(--color-primary);
    border-radius: var(--radius-xl);
    font-size: 0.85rem;
    font-weight: 600;
}

/* ===== How it Works Section ===== */
.how-it-works-section {
    padding: var(--spacing-xl) 0;
    background: var(--color-bg-light);
}

.steps-container {
    max-width: 800px;
    margin: 0 auto;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 2rem;
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
    transition: all var(--transition-normal);
}

.step-item:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-xl);
}

.step-number {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 900;
    flex-shrink: 0;
    box-shadow: var(--shadow-md);
}

.step-content {
    flex: 1;
}

.step-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-text-dark);
    margin-bottom: 0.8rem;
}

.step-text {
    color: var(--color-text-light);
    line-height: 1.7;
}

.step-icon {
    font-size: 3rem;
    color: var(--color-primary-light);
    opacity: 0.2;
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
}

.step-arrow {
    text-align: center;
    font-size: 2rem;
    color: var(--color-primary-light);
    margin: 1rem 0;
    animation: bounce 2s ease-in-out infinite;
}

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

.btn-cta-large {
    background: var(--gradient-success);
    color: white;
    padding: 1.2rem 3rem;
    border-radius: var(--radius-lg);
    font-weight: 700;
    font-size: 1.2rem;
    border: none;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-normal);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.btn-cta-large:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
    color: white;
}

/* ===== About Section ===== */
.about-section {
    padding: var(--spacing-xl) 0;
    background: white;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
}

.about-highlight {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: linear-gradient(135deg, #e8f5e8 0%, #d4edda 100%);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border-left: 5px solid var(--color-primary);
    margin-top: 2rem;
}

.about-highlight i {
    font-size: 3rem;
    color: var(--color-primary);
}

.about-highlight h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-text-dark);
    margin-bottom: 0.5rem;
}

.about-highlight p {
    margin: 0;
    color: var(--color-text-light);
}

.technology-grid {
    background: var(--color-bg-light);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
}

.tech-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: white;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    transition: all var(--transition-normal);
}

.tech-item:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-md);
}

.tech-logo {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-sm);
    background: var(--gradient-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    flex-shrink: 0;
}

.tech-info h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-text-dark);
    margin-bottom: 0.3rem;
}

.tech-info p {
    margin: 0;
    color: var(--color-text-light);
    font-size: 0.9rem;
}

/* ===== Partners Section ===== */
.partners-section {
    padding: var(--spacing-xl) 0;
    background: var(--color-bg-light);
}

.partner-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 3rem;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: all var(--transition-normal);
}

.partner-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.partner-logo-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    margin: 0 auto 2rem;
    box-shadow: var(--shadow-lg);
}

.partner-info h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-text-dark);
    margin-bottom: 0.5rem;
}

.partner-info h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

/* ===== CTA / Contact Section ===== */
.cta-section {
    padding: var(--spacing-xl) 0;
    background: var(--gradient-hero);
    color: white;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 40%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
}

.cta-content {
    position: relative;
    z-index: 2;
}

.contact-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 3rem;
    box-shadow: var(--shadow-xl);
    position: relative;
    z-index: 2;
}

.contact-form .form-control,
.contact-form .form-select {
    padding: 1rem;
    border-radius: var(--radius-sm);
    border: 2px solid #e9ecef;
    transition: all var(--transition-fast);
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 0.2rem rgba(45, 90, 61, 0.15);
}

.btn-cta-submit {
    background: var(--gradient-primary);
    color: white;
    padding: 1rem 3rem;
    border-radius: var(--radius-lg);
    font-weight: 700;
    font-size: 1.1rem;
    border: none;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
}

.btn-cta-submit:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.contact-info {
    border-top: 2px solid #e9ecef;
    padding-top: 2rem;
}

.contact-info-item {
    transition: all var(--transition-normal);
}

.contact-info-item:hover {
    transform: translateY(-3px);
}

.contact-info-item i {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.contact-info-item h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-text-dark);
    margin-bottom: 0.5rem;
}

.contact-info-item p {
    margin: 0;
    color: var(--color-text-light);
}

/* ===== Responsive Design ===== */
@media (max-width: 991px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .step-item {
        flex-direction: column;
        text-align: center;
    }
    
    .step-icon {
        position: static;
        transform: none;
        margin-top: 1rem;
    }
    
    .floating-card-1,
    .floating-card-2 {
        display: none;
    }
    
    .mission-highlights {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    :root {
        --spacing-xl: 3rem;
        --spacing-lg: 2rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-subtitle h3 {
        font-size: 1.3rem !important;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        justify-content: center;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .mission-content-box {
        padding: 1.5rem;
    }
    
    .mission-intro {
        font-size: 1.2rem;
    }
    
    .mission-description {
        font-size: 1rem;
    }
    
    .highlight-item {
        flex-direction: column;
        text-align: center;
    }
    
    .highlight-icon {
        margin: 0 auto 1rem;
    }
    
    .comparison-card,
    .feature-card {
        padding: 1.5rem;
    }
    
    .step-item {
        padding: 1.5rem;
    }
    
    .technology-grid {
        padding: 1.5rem;
    }
    
    .contact-card {
        padding: 1.5rem;
    }
}

/* ===== Animations AOS Override ===== */
[data-aos] {
    pointer-events: auto;
}

/* ===== Utilities ===== */
.text-white-50 {
    color: rgba(255, 255, 255, 0.7) !important;
}