﻿/* ===== VARIABLES ===== */
:root {
    --primary-color: #2e7d32;
    --primary-dark: #1b5e20;
    --primary-light: #4caf50;
    --secondary-color: #0288d1;
    --accent-color: #ff9800;
    --dark: #263238;
    --dark-gray: #37474f;
    --light-gray: #eceff1;
    --white: #ffffff;
    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Open Sans', sans-serif;
    --shadow: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-hover: 0 10px 20px rgba(0,0,0,0.15);
    --transition: all 0.3s ease;
    --border-radius: 8px;
    --container-width: 1400px;
    
    /* Tailles de caractères uniformes */
    --text-xs: 0.875rem;   /* 14px */
    --text-sm: 1rem;        /* 16px */
    --text-base: 1.125rem;  /* 18px */
    --text-lg: 1.25rem;     /* 20px */
    --text-xl: 1.5rem;      /* 24px */
    --text-2xl: 2rem;       /* 32px */
    --text-3xl: 2.5rem;     /* 40px */
    --text-4xl: 3rem;       /* 48px */
}

/* ===== RESET ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { 
    font-family: var(--font-secondary); 
    color: var(--dark); 
    line-height: 1.6;
    font-size: var(--text-base);
}
h1, h2, h3, h4, h5, h6 { font-family: var(--font-primary); font-weight: 600; }
h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-xl); }
h4 { font-size: var(--text-lg); }
p { font-size: var(--text-base); }
a { text-decoration: none; color: inherit; transition: color 0.3s; }
ul { list-style: none; }
img { max-width: 100%; height: auto; }

/* ===== CONTAINER ===== */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    z-index: 1000;
}
.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 180px;
}
.logo img {
    height: 160px;
    width: auto;
    transition: transform 0.3s;
}
.logo img:hover { transform: scale(1.05); }

/* ===== MENU PRINCIPAL ===== */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 25px;
}
.nav-menu > li { position: relative; }
.nav-menu > li > a {
    font-weight: 600;
    font-size: var(--text-sm);
    text-transform: uppercase;
    padding: 10px 0;
    position: relative;
}
.nav-menu > li > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s;
}
.nav-menu > li > a:hover::after,
.nav-menu > li > a.active::after {
    width: 100%;
}

/* ===== DROPDOWN ===== */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 280px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    border-radius: var(--border-radius);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 1000;
    padding: 10px 0;
}
.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.dropdown-menu li a {
    display: block;
    padding: 12px 20px;
    font-size: var(--text-sm);
}
.dropdown-menu li a:hover {
    background: var(--light-gray);
    color: var(--primary-color);
    padding-left: 30px;
}

/* ===== PAGE HEADER ===== */
.page-header {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    color: white;
    padding: calc(160px + 80px) 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.page-header h1 { margin-bottom: 20px; }
.page-header .subtitle {
    font-size: var(--text-xl);
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.9;
}

/* ===== SECTIONS ===== */
.section { padding: 80px 0; }
.section-title {
    text-align: center;
    font-size: var(--text-3xl);
    margin-bottom: 50px;
    position: relative;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--primary-color);
}
.section-light { background: var(--light-gray); }
.section-dark { 
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color)); 
    color: white; 
}

/* ===== GRIDS ===== */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 25px; }

/* ===== CARDS ===== */
.card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}
.card:hover { 
    transform: translateY(-5px); 
    box-shadow: var(--shadow-hover); 
}
.card i { 
    font-size: 2.5rem; 
    color: var(--primary-color); 
    margin-bottom: 15px; 
}
.card h3 { 
    margin-bottom: 15px; 
    color: var(--primary-color);
    font-size: var(--text-xl);
}
.card p { 
    flex-grow: 1;
    font-size: var(--text-base);
}

/* ===== BOUTONS ===== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: var(--text-base);
    transition: var(--transition);
    border: none;
    cursor: pointer;
    text-align: center;
}
.btn-primary { background: var(--primary-color); color: white; }
.btn-primary:hover { background: var(--accent-color); transform: translateY(-2px); }
.btn-secondary { background: transparent; color: white; border: 2px solid white; }
.btn-secondary:hover { background: white; color: var(--primary-color); }
.btn-back {
    display: inline-block;
    margin: 20px 0;
    color: var(--primary-color);
    font-weight: 600;
    font-size: var(--text-base);
}
.btn-back i { margin-right: 5px; }

/* ===== TIMELINE ===== */
.timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 40px 0;
}
.timeline-item {
    background: var(--light-gray);
    padding: 20px;
    border-radius: var(--border-radius);
    text-align: center;
    border-left: 4px solid var(--primary-color);
    transition: var(--transition);
}
.timeline-item:hover { transform: translateY(-5px); }
.timeline-item .step {
    font-weight: 700;
    color: var(--primary-color);
    font-size: var(--text-lg);
    margin-bottom: 10px;
}
.timeline-item h4 {
    font-size: var(--text-lg);
    margin-bottom: 10px;
}
.timeline-item p {
    font-size: var(--text-sm);
}

/* ===== KPI BADGES ===== */
.kpi-badge {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    margin: 5px;
    font-weight: 600;
    font-size: var(--text-base);
}

/* ===== FOOTER ===== */
.footer {
    background: var(--dark);
    color: white;
    padding: 60px 0 20px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
.footer-logo img { height: 60px; width: auto; margin-bottom: 15px; }
.footer-col h4 { 
    margin-bottom: 20px; 
    color: var(--primary-light);
    font-size: var(--text-lg);
}
.footer-col ul li { 
    margin-bottom: 10px;
    font-size: var(--text-sm);
}
.footer-col ul li a:hover { color: var(--primary-light); }
.contact-info li i { width: 25px; color: var(--primary-light); }
.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: var(--text-sm);
    opacity: 0.7;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .timeline { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    
    .navbar .container { min-height: 120px; }
    .logo img { height: 100px; }
    
    .menu-toggle {
        display: block;
        font-size: 24px;
        background: none;
        border: none;
        cursor: pointer;
    }
    
    .nav-menu {
        position: fixed;
        top: 120px;
        left: -100%;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 20px;
        transition: left 0.3s;
        z-index: 999;
        max-height: calc(100vh - 120px);
        overflow-y: auto;
    }
    .nav-menu.active { left: 0; }
    .nav-menu > li { width: 100%; }
    .nav-menu > li > a { display: block; text-align: center; }
    .dropdown-menu { 
        position: static; 
        opacity: 1; 
        visibility: visible; 
        transform: none; 
        box-shadow: none; 
        width: 100%;
        margin-top: 10px;
    }
}

/* ===== PROTECTION ANTI-COPIAGE ===== */
body {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
input, textarea, select, button {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}
img {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    pointer-events: none;
}
.logo img, .footer-logo img {
    pointer-events: auto;
}
