/* ===== VARIABLES CSS ===== */
:root {
    --green: #2E7D32;
    --green-dark: #1B5E20;
    --orange: #FF6B35;
    --orange-dark: #e05a2d;
    --white: #ffffff;
    --black: #000000;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 5px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 15px 40px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

/* ===== RÉINITIALISATION GLOBALE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', 'Arial', sans-serif;
    color: var(--gray-900);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ===== HEADER ===== */
header {
    background: var(--green-dark);
    color: var(--white);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo-section {
    display: flex;
    flex-direction: column;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--orange);
}

.slogan {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-top: 0.2rem;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    transition: var(--transition);
}

nav a:hover,
nav a.active {
    color: var(--orange);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--orange);
    transition: width 0.3s;
}

nav a:hover::after,
nav a.active::after {
    width: 100%;
}

/* ===== MENU BURGER ===== */
.hamburger-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger-menu span {
    width: 25px;
    height: 3px;
    background-color: var(--white);
    border-radius: 3px;
    transition: var(--transition);
}

/* ===== HERO MACHINES ===== */
.hero-machines {
    position: relative;
    height: 100vh; /* Pleine hauteur écran */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-align: center;
    color: var(--white);
    padding: 0 1.5rem;
    background: 
                url('../images/Image_5402.jpeg') center/cover no-repeat;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(27, 94, 32, 0.75);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 0 1.5rem;
}

.hero-machines h1 {
    font-size: 3.8rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    line-height: 1.1;
}

.hero-machines h2 {
    font-size: 1.8rem;
    font-weight: 300;
    opacity: 0.95;
    margin-top: 1rem;
}

/* ===== SECTION HEADER GÉNÉRIQUE ===== */
.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--green-dark);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 4px;
    background: var(--orange);
    border-radius: 2px;
}

.section-subtitle {
    color: var(--gray-700);
    font-size: 1.2rem;
    margin-top: 1.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-divider {
    width: 70px;
    height: 4px;
    background: var(--orange);
    margin: 0 auto 2.5rem;
    border-radius: 2px;
}

/* ===== CATÉGORIES DE MACHINES ===== */
.machines-section {
    padding: 5rem 0;
    background: var(--white);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.category-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
}

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

.category-icon {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    background: var(--orange);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--white);
    z-index: 10;
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.4);
}

.category-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--green-dark);
    margin: 2rem 0 0.8rem;
    text-align: center;
    padding: 0 1rem;
}

.category-desc {
    color: var(--gray-700);
    font-size: 0.95rem;
    text-align: center;
    padding: 0 1rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.category-image {
    height: 200px;
    overflow: hidden;
    background: var(--gray-50);
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.category-card:hover .category-image img {
    transform: scale(1.1);
}

.category-card .btn-outline {
    display: block;
    width: 80%;
    margin: 0 auto 1.5rem;
}

/* ===== CTA MACHINES ===== */
.machines-cta {
    background: linear-gradient(135deg, var(--green-dark), var(--green));
    color: var(--white);
    padding: 3rem;
    border-radius: 16px;
    text-align: center;
    margin-top: 4rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.machines-cta .cta-content h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.machines-cta .cta-content p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

/* ===== AVANTAGES MACHINES ===== */
.advantages-section {
    padding: 5rem 0;
    background: var(--gray-50);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.advantage-item {
    background: var(--white);
    padding: 2.5rem 1.5rem;
    border-radius: 12px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--gray-200);
}

.advantage-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--green);
}

.advantage-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--green), var(--green-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--white);
}

.advantage-item h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.8rem;
}

.advantage-item p {
    color: var(--gray-700);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ===== BOUTONS ===== */
.btn-outline {
    display: inline-block;
    padding: 10px 28px;
    border: 2px solid var(--green);
    color: var(--green);
    background: transparent;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    font-size: 1rem;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.btn-outline:hover {
    background: var(--green);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(46, 125, 50, 0.3);
}

.btn-outline::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.btn-outline:hover::after {
    left: 100%;
}

.btn-whatsapp {
    display: inline-block;
    background: #25D366;
    color: var(--white);
    border: 2px solid #25D366;
    padding: 16px 40px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.2rem;
    text-decoration: none;
    transition: var(--transition);
    margin-top: 1rem;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp:hover {
    background: #128C7E;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
}

.btn-whatsapp i {
    margin-right: 10px;
    font-size: 1.4rem;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--green-dark);
    color: var(--white);
    padding: 3rem 0 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-logo .logo {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--orange);
}

.footer-logo p {
    opacity: 0.8;
    font-size: 0.95rem;
}

.footer-links h4,
.footer-contact h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--orange);
}

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

.footer-links ul li {
    margin-bottom: 0.5rem;
}

.footer-links ul li a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.footer-links ul li a:hover {
    opacity: 1;
    color: var(--orange);
}

.footer-contact p {
    opacity: 0.8;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.footer-contact i {
    margin-right: 8px;
    color: var(--orange);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.7;
    font-size: 0.9rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .hero-machines h1 { font-size: 3rem; }
    .hero-machines h2 { font-size: 1.6rem; }
    .section-header h2 { font-size: 2.2rem; }
    .categories-grid,
    .advantages-grid { grid-template-columns: repeat(2, 1fr); }
    .category-icon { top: -20px; width: 50px; height: 50px; font-size: 1.5rem; }
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 1rem;
    }
    
    nav ul {
        margin-top: 1rem;
        flex-direction: column;
        align-items: center;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    nav ul.show {
        max-height: 300px;
    }
    
    nav ul li {
        margin: 0.5rem 0;
    }
    
    .hamburger-menu {
        display: flex;
        position: absolute;
        top: 15px;
        right: 15px;
    }
    
    .hero-machines {
        height: 65vh;
        min-height: 450px;
    }
    
    .hero-machines h1 { font-size: 2.5rem; }
    .hero-machines h2 { font-size: 1.4rem; }
    
    .categories-grid,
    .advantages-grid { grid-template-columns: 1fr; }
    
    .category-icon { top: -25px; }
    
    .machines-cta {
        padding: 2rem;
        margin-top: 2rem;
    }
    
    .machines-cta .cta-content h3 { font-size: 1.8rem; }
    .machines-cta .cta-content p { font-size: 1rem; }
    
    .footer-content { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 480px) {
    .hero-machines {
        height: 60vh;
        min-height: 400px;
    }
    
    .hero-machines h1 { font-size: 2.2rem; }
    .hero-machines h2 { font-size: 1.3rem; }
    
    .section-header h2 { font-size: 1.8rem; }
    
    .category-title { font-size: 1.3rem; }
    .category-desc { font-size: 0.9rem; padding: 0 0.5rem; }
    
    .category-image { height: 180px; }
    
    .btn-whatsapp {
        width: 100%;
        padding: 14px;
        font-size: 1.1rem;
    }
    
    .btn-whatsapp i { font-size: 1.2rem; margin-right: 8px; }
}