/* ===== 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;
    background: var(--white);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ===== BARRRE DE RECHERCHE ===== */
.search-container {
    text-align: center;
    margin-top: 5px;
}

.search-box {
    width: 300px;
    padding: 10px 15px;
    font-size: 16px;
    border: 2px solid var(--green-dark);
    border-radius: 25px;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
    font-family: 'Poppins', sans-serif;
}

.search-box:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.2);
}

.search-button {
    padding: 10px 20px;
    font-size: 16px;
    border: none;
    background-color: var(--orange-dark);
    color: var(--white);
    border-radius: 25px;
    cursor: pointer;
    margin-left: 10px;
    transition: background-color 0.3s, transform 0.2s;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
}

.search-button:hover {
    background-color: var(--orange);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

/* ===== 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;
    z-index: 1001;
}

.hamburger-menu span {
    width: 25px;
    height: 3px;
    background-color: var(--white);
    border-radius: 3px;
    transition: var(--transition);
}

/* ===== HERO PHYTOSANITAIRES ===== */
.hero-phytosanitaires {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-align: center;
    color: var(--white);
    padding: 0 1.5rem;
    background: 
                url('../images/phyto-hero.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;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-phytosanitaires 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-phytosanitaires 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;
}

/* ===== INTRODUCTION ===== */
.phyto-intro {
    padding: 4rem 0;
    background: var(--gray-50);
    text-align: center;
}

.intro-content p {
    font-size: 1.15rem;
    color: var(--gray-700);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== VIDÉOS SECTION ===== */
.videos-section {
    padding: 5rem 0;
    background: var(--white);
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.video-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.video-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-5px);
}

.video-container {
    position: relative;
    padding-top: 56.25%; /* Ratio 16:9 */
    background: var(--gray-200);
}

.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.video-caption {
    padding: 1.5rem;
    text-align: center;
}

.video-caption h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--green-dark);
    margin-bottom: 0.5rem;
}

.video-caption p {
    color: var(--gray-700);
    font-size: 1rem;
    line-height: 1.6;
}

/* ===== PRODUITS SECTION ===== */
.products-section {
    padding: 5rem 0;
    background: var(--gray-50);
}

.product-block {
    margin: 4rem 0;
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.product-block:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-5px);
}

.product-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    align-items: stretch;
}

.product-image {
    position: relative;
    height: 100%;
    min-height: 500px;
    overflow: hidden;
    background: var(--gray-100);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.product-block:hover .product-image img {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(27, 94, 32, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-block:hover .image-overlay {
    opacity: 1;
}

.image-overlay i {
    font-size: 5rem;
    color: var(--white);
    opacity: 0.9;
}

.product-specs {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.product-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.15), rgba(27, 94, 32, 0.15));
    color: var(--orange);
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid var(--orange);
    width: fit-content;
}

.product-badge i {
    font-size: 0.9rem;
}

.product-specs h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--green-dark);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.product-desc {
    color: var(--gray-700);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.specs-table {
    background: var(--gray-50);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.spec-row {
    display: flex;
    justify-content: space-between;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--gray-200);
}

.spec-row:last-child {
    border-bottom: none;
}

.spec-label {
    font-weight: 600;
    color: var(--gray-800);
    flex: 0 0 40%;
}

.spec-value {
    font-weight: 500;
    color: var(--gray-900);
    flex: 0 0 60%;
    text-align: right;
}

/* ===== REVERSE (alternance) ===== */
.product-block.reverse .product-row {
    grid-template-columns: 1fr 1fr;
    direction: rtl;
}

.product-block.reverse .product-specs,
.product-block.reverse .product-image {
    direction: ltr;
}

/* ===== CONSEILS SECTION ===== */
.conseils-section {
    padding: 5rem 0;
    background: var(--white);
}

.conseils-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.conseil-card {
    background: var(--gray-50);
    padding: 2.5rem 1.5rem;
    border-radius: 16px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--gray-200);
}

.conseil-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--green);
}

.conseil-icon {
    width: 80px;
    height: 80px;
    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: 2.2rem;
    color: var(--white);
}

.conseil-card h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.8rem;
}

.conseil-card p {
    color: var(--gray-700);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ===== CTA FINAL ===== */
.phyto-cta {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--green-dark), var(--green));
    color: var(--white);
    text-align: center;
}

.phyto-cta .cta-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.phyto-cta .cta-content i {
    font-size: 4rem;
    color: var(--orange);
    margin-bottom: 1.5rem;
    display: block;
}

.phyto-cta .cta-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.phyto-cta .cta-content p {
    font-size: 1.3rem;
    opacity: 0.95;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== BOUTONS ===== */
.btn-primary {
    display: inline-block;
    background: var(--orange);
    color: var(--white);
    font-weight: 600;
    text-decoration: none;
    padding: 16px 48px;
    border-radius: 4px;
    transition: var(--transition);
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    border: 2px solid var(--orange);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.35);
    margin-top: 1.5rem;
}

.btn-primary:hover {
    background: var(--orange-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 107, 53, 0.45);
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #25D366;
    color: var(--white);
    font-weight: 600;
    text-decoration: none;
    padding: 14px 32px;
    border-radius: 8px;
    transition: var(--transition);
    font-size: 1.05rem;
    border: 2px solid #25D366;
    margin-top: 1.5rem;
}

.btn-whatsapp:hover {
    background: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp i {
    margin-right: 10px;
    font-size: 1.3rem;
}

.btn-whatsapp-large {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #25D366;
    color: var(--white);
    font-weight: 700;
    text-decoration: none;
    padding: 18px 50px;
    border-radius: 50px;
    transition: var(--transition);
    font-size: 1.3rem;
    border: 2px solid #25D366;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    margin-top: 1.5rem;
}

.btn-whatsapp-large:hover {
    background: #128C7E;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
}

.btn-whatsapp-large i {
    margin-right: 12px;
    font-size: 1.6rem;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--green-dark);
    color: var(--white);
    padding: 3rem 0 1.5rem;
    margin-top: 3rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-links h4,
.footer-contact h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--orange);
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.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;
    display: block;
    padding: 0.3rem 0;
}

.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;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-contact i {
    color: var(--orange);
    width: 20px;
}

.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-phytosanitaires h1 { font-size: 3rem; }
    .hero-phytosanitaires h2 { font-size: 1.6rem; }
    .section-header h2 { font-size: 2.2rem; }
    .product-row,
    .videos-grid { grid-template-columns: repeat(2, 1fr); }
    .conseils-grid { grid-template-columns: repeat(2, 1fr); }
    .search-box { width: 250px; }
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 1rem;
        text-align: center;
    }
    
    .logo-section {
        margin-bottom: 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: 400px;
    }
    
    nav ul li {
        margin: 0.5rem 0;
    }
    
    .hamburger-menu {
        display: flex;
        position: absolute;
        top: 15px;
        right: 15px;
    }
    
    .hero-phytosanitaires {
        height: 80vh;
        min-height: 500px;
    }
    
    .hero-phytosanitaires h1 { font-size: 2.5rem; }
    .hero-phytosanitaires h2 { font-size: 1.4rem; }
    
    .search-box { width: 100%; max-width: 280px; margin: 0 auto 1rem; }
    .search-button { width: 100%; max-width: 280px; margin: 0 auto; display: block; margin-top: 10px; }
    
    .product-specs { padding: 2rem; }
    .product-specs h3 { font-size: 1.8rem; }
    .product-desc { font-size: 1rem; }
    
    .spec-label,
    .spec-value {
        flex: 0 0 100%;
        text-align: left;
    }
    
    .spec-row { flex-direction: column; gap: 0.3rem; }
    
    .videos-grid,
    .conseils-grid,
    .product-row { grid-template-columns: 1fr; }
    
    .footer-content { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 480px) {
    .hero-phytosanitaires {
        height: 70vh;
        min-height: 450px;
    }
    
    .hero-phytosanitaires h1 { font-size: 2.2rem; }
    .hero-phytosanitaires h2 { font-size: 1.3rem; }
    
    .section-header h2 { font-size: 1.8rem; }
    
    .product-image { min-height: 350px; }
    
    .btn-primary,
    .btn-whatsapp,
    .btn-whatsapp-large {
        width: 100%;
        padding: 14px;
        font-size: 1.1rem;
    }
    
    .btn-whatsapp-large {
        font-size: 1.2rem;
        padding: 16px;
    }
    
    .btn-whatsapp-large i { font-size: 1.4rem; margin-right: 10px; }
    
    .phyto-cta .cta-content h2 { font-size: 2rem; }
    .phyto-cta .cta-content p { font-size: 1.1rem; }
    .phyto-cta .cta-content i { font-size: 3rem; }
    
    .conseil-icon { width: 70px; height: 70px; font-size: 1.8rem; }
    .conseil-card h4 { font-size: 1.2rem; }
}