/* ============================================
   EQUINOVA - CSS COMPLET
   Design Jour/Nuit - Responsive - Moderne
   ============================================ */

/* Variables CSS */
:root {
    --primary-color: #2d5016;
    --secondary-color: #4a7c2c;
    --accent-color: #f97316;
    --text-dark: #1a1a1a;
    --text-light: #f5f5f5;
    --bg-light: #ffffff;
    --bg-dark: #0f0f0f;
    --border-color: #e5e5e5;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

body.dark-theme {
    --text-dark: #f5f5f5;
    --text-light: #1a1a1a;
    --bg-light: #1a1a1a;
    --bg-dark: #0f0f0f;
    --border-color: #333333;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
    transition: var(--transition);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Navigation */
.header {
    background-color: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

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

.nav-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    padding: 8px 12px;
    border-radius: 4px;
}

.nav-link:hover {
    color: var(--accent-color);
    background-color: rgba(249, 115, 22, 0.1);
}

.header-controls {
    display: flex;
    gap: 15px;
    align-items: center;
}

.theme-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: var(--transition);
}

.theme-btn:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.lang-select {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background-color: var(--bg-light);
    color: var(--text-dark);
    cursor: pointer;
    font-size: 14px;
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 200px);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(45, 80, 22, 0.8) 0%, rgba(74, 124, 44, 0.8) 100%), 
                url('/images/5QjDyQVqSsEG.jpg') center/cover;
    color: white;
    padding: 100px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.95;
}

.cta-button {
    display: inline-block;
    background-color: var(--accent-color);
    color: white;
    padding: 14px 40px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.cta-button:hover {
    background-color: #ea6317;
    transform: translateY(-2px);
    box-shadow: 0 8px 12px rgba(249, 115, 22, 0.3);
}

/* Sections */
section {
    padding: 80px 20px;
}

section h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 50px;
    text-align: center;
    color: var(--primary-color);
}

section h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-dark);
}

/* Cards */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
    justify-content: center;
}

.card {
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 30px;
    transition: var(--transition);
    box-shadow: var(--shadow);
    text-align: center;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
    border-color: var(--accent-color);
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 20px;
}

.card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.card p {
    color: var(--text-dark);
    line-height: 1.8;
}

/* Pricing Table */
.pricing-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 40px;
    background-color: var(--bg-light);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.pricing-table th {
    background-color: var(--primary-color);
    color: white;
    padding: 20px;
    text-align: left;
    font-weight: 600;
}

.pricing-table td {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.pricing-table tr:last-child td {
    border-bottom: none;
}

.pricing-table tr:hover {
    background-color: rgba(45, 80, 22, 0.05);
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background-color: var(--bg-light);
    color: var(--text-dark);
    font-size: 14px;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-submit {
    background-color: var(--primary-color);
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.form-submit:hover {
    background-color: var(--secondary-color);
}

/* ChatBot Widget */
.chatbot-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
}

.chatbot-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    border: none;
    font-size: 28px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

.chatbot-btn:hover {
    background-color: var(--secondary-color);
    transform: scale(1.1);
}

.chatbot-box {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 500px;
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: var(--transition);
}

.chatbot-box.hidden {
    display: none;
}

.chatbot-header {
    background-color: var(--primary-color);
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-header h3 {
    margin: 0;
    font-size: 16px;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
}

.chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.message {
    padding: 10px 15px;
    border-radius: 6px;
    max-width: 80%;
    word-wrap: break-word;
}

.message.user {
    background-color: var(--primary-color);
    color: white;
    align-self: flex-end;
}

.message.bot {
    background-color: var(--border-color);
    color: var(--text-dark);
    align-self: flex-start;
}

.chatbot-input {
    display: flex;
    gap: 10px;
    padding: 15px;
    border-top: 1px solid var(--border-color);
}

.chatbot-input input {
    flex: 1;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background-color: var(--bg-light);
    color: var(--text-dark);
}

.chatbot-input button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.chatbot-input button:hover {
    background-color: var(--secondary-color);
}

/* Footer */
.footer {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: 60px 20px 20px;
    margin-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--accent-color);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--accent-color);
}

.footer-section p {
    margin-bottom: 10px;
    line-height: 1.8;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    text-align: center;
    color: var(--text-light);
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header .container {
        flex-wrap: wrap;
        gap: 15px;
    }

    .nav {
        order: 3;
        width: 100%;
        gap: 15px;
        flex-wrap: wrap;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero p {
        font-size: 16px;
    }

    section {
        padding: 50px 20px;
    }

    section h2 {
        font-size: 28px;
    }

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

    .chatbot-box {
        width: 100%;
        height: 400px;
        bottom: 0;
        right: 0;
        border-radius: 8px 8px 0 0;
    }

    .pricing-table {
        font-size: 14px;
    }

    .pricing-table th,
    .pricing-table td {
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .header .container {
        padding: 10px;
    }

    .logo h1 {
        font-size: 20px;
    }

    .nav {
        gap: 10px;
    }

    .nav-link {
        font-size: 14px;
        padding: 6px 8px;
    }

    .hero {
        padding: 60px 15px;
    }

    .hero h1 {
        font-size: 24px;
    }

    .hero p {
        font-size: 14px;
    }

    .cta-button {
        padding: 12px 30px;
        font-size: 14px;
    }

    section {
        padding: 40px 15px;
    }

    section h2 {
        font-size: 22px;
        margin-bottom: 30px;
    }

    .chatbot-btn {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Utilitaires */
.text-center {
    text-align: center;
}

.text-primary {
    color: var(--primary-color);
}

.text-accent {
    color: var(--accent-color);
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.p-20 {
    padding: 20px;
}
