:root {
    --primary: #0077B6;
    --primary-dark: #023E8A;
    --secondary: #90E0EF;
    --text: #2B2D42;
    --bg: #F8F9FA;
    --white: #FFFFFF;
    --border: #EDF2F4;
    --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.6; }
a { text-decoration: none; color: inherit; }

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

/* Header */
.site-header { background: var(--white); box-shadow: 0 2px 4px rgba(0,0,0,0.05); position: sticky; top: 0; z-index: 100; }
.header-inner { display: flex; justify-content: space-between; align-items: center; height: 70px; }
.logo { font-size: 1.5rem; font-weight: 900; color: var(--primary); }
.logo span { color: var(--secondary); }
.main-nav a { margin-left: 1.5rem; font-weight: 500; transition: color 0.2s; font-size: 0.95rem; }
.main-nav a:hover { color: var(--primary); }
@media(max-width: 768px) {
    .main-nav { display: none; }
}

/* Buttons */
.btn { display: inline-block; padding: 0.8rem 1.5rem; border-radius: 4px; font-weight: 600; cursor: pointer; transition: 0.3s; text-align: center; border: none; font-size: 1rem;}
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-secondary { background: var(--secondary); color: var(--primary-dark); }
.btn-secondary:hover { background: #caf0f8; }
.btn-full { display: block; width: 100%; }

/* Urgency Button for Lead Gen */
.btn-urgent {
    background: #E63946;
    color: white;
    font-size: 1.2rem;
    padding: 1.2rem 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.4);
    animation: pulse-red 2s infinite;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-transform: uppercase;
    font-weight: 800;
    transition: 0.3s transform, 0.3s background;
    width: 100%;
    max-width: 400px;
}
.btn-urgent:hover {
    background: #D62828;
    transform: scale(1.02);
    color: white;
}
@keyframes pulse-red {
    0% { box-shadow: 0 0 0 0 rgba(230, 57, 70, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(230, 57, 70, 0); }
    100% { box-shadow: 0 0 0 0 rgba(230, 57, 70, 0); }
}

.urgence-box {
    background: #fff;
    border: 3px solid #E63946;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    margin: 30px 0;
}
.urgence-badge {
    position: absolute;
    top: 20px;
    right: -40px;
    background: #E63946;
    color: white;
    padding: 5px 45px;
    transform: rotate(45deg);
    font-weight: bold;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Custom FAQ Accordion */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:last-child { border-bottom: none; }
.faq-question {
    width: 100%; text-align: left; background: none; border: none;
    padding: 1.5rem 0; font-size: 1.1rem; font-weight: 600;
    color: var(--primary-dark); cursor: pointer;
    display: flex; justify-content: space-between; align-items: center;
    font-family: var(--font);
}
.faq-question:hover { color: var(--primary); }
.faq-icon { transition: transform 0.3s ease; flex-shrink: 0; margin-left: 1rem; }
.faq-question[aria-expanded="true"] .faq-icon { transform: rotate(180deg); }
.faq-answer {
    max-height: 0; overflow: hidden; transition: max-height 0.3s ease-out;
}
.faq-answer p { padding-bottom: 1.5rem; color: #4B5563; line-height: 1.6; margin: 0; }

/* Hero */
.hero { background: var(--primary-dark); color: var(--white); padding: 5rem 0; text-align: center; }
.hero h1 { font-size: 3rem; margin-bottom: 1rem; line-height: 1.2; }
.hero p { font-size: 1.2rem; margin-bottom: 2rem; opacity: 0.9; }

/* Nuisibles Grid */
.section-title { text-align: center; font-size: 2rem; margin: 3rem 0 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.card { background: var(--white); border-radius: 8px; overflow: hidden; box-shadow: 0 4px 6px rgba(0,0,0,0.05); transition: transform 0.3s; display: flex; flex-direction: column; }
.card:hover { transform: translateY(-5px); }
.card-img { height: 200px; background-size: cover; background-position: center; }
.card-content { padding: 1.5rem; flex-grow: 1; display: flex; flex-direction: column; }
.card-content h3 { font-size: 1.5rem; margin-bottom: 0.5rem; color: var(--primary); }
.card-content p { margin-bottom: 1.5rem; flex-grow: 1; }

/* Content Layout (Silo page) */
.page-header { color: var(--white); padding: 5rem 0; background-size: cover; background-position: center; text-align: center; }
.page-header h1 { font-size: 3rem; margin-bottom: 0.5rem; }
.scientific-name { font-size: 1.2rem; opacity: 0.8; margin-bottom: 1rem; }
.layout-sidebar { display: grid; grid-template-columns: 2.5fr 1fr; gap: 3rem; margin-top: 3rem; margin-bottom: 3rem; }

.content-block {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    margin-bottom: 2rem;
    border: 1px solid var(--border);
}
.content-block h2 {
    display: flex; align-items: center; gap: 0.5rem; color: var(--primary); margin-bottom: 1.5rem; font-size: 1.8rem;
}
.content-block ul {
    padding-left: 1.5rem;
    margin-top: 1rem;
}
.content-block li {
    margin-bottom: 0.8rem;
    color: #374151;
}
.article-hero { width: 100%; border-radius: 12px; margin-bottom: 2rem; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }

.treatment-box { border-left: 4px solid var(--secondary); padding-left: 1rem; background: #f0f8ff; padding: 1.5rem; border-radius: 0 4px 4px 0;}

/* Affiliate Box inside Content Block */
.affiliate-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg);
    border: 1px solid var(--secondary);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    gap: 1rem;
}
.affiliate-box h4 { margin-bottom: 0.5rem; font-size: 1.2rem; color: var(--primary-dark); }
.affiliate-box .price { font-size: 1.4rem; font-weight: 800; color: var(--primary); margin-bottom: 0.5rem; }
.affiliate-box p { color: #4B5563; }

/* Sidebar */
.sidebar > div, .widget { background: var(--white); padding: 1.5rem; border-radius: 8px; box-shadow: 0 2px 4px rgba(0,0,0,0.05); margin-bottom: 2rem; border-top: 4px solid var(--primary); }
.sidebar h3, .widget h3 { margin-bottom: 1.2rem; color: var(--primary-dark); font-size: 1.3rem; }

/* Forms */
.form-group { margin-bottom: 1.5rem; text-align: left; }
label { display: block; margin-bottom: 0.5rem; font-weight: 600; color: #374151; font-size: 0.95rem; }
input, select, textarea { width: 100%; padding: 0.8rem; border: 1px solid #d1d5db; border-radius: 6px; font-family: inherit; font-size: 1rem; transition: border-color 0.2s; }
input:focus, select:focus { border-color: var(--primary); outline: none; }

/* Alerts */
.alert { padding: 1rem 1.5rem; border-radius: 8px; display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.5rem; }
.alert-info { background: #e0f2fe; color: #0369a1; border-left: 4px solid #0ea5e9; }

/* Local CTA */
.cta-box { background: var(--primary-dark); color: var(--white); padding: 4rem 2rem; border-radius: 8px; text-align: center; margin: 4rem 0; box-shadow: 0 10px 20px rgba(0,0,0,0.15); }
.cta-box h2 { font-size: 2.2rem; margin-bottom: 1rem;}
.cta-box p { font-size: 1.1rem; margin-bottom: 2rem; opacity: 0.9;}

/* Footer */
.site-footer { background: var(--text); color: var(--white); padding: 3rem 0 1rem; margin-top: 4rem; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 2rem; margin-bottom: 2rem; }
.footer-col { flex: 1; min-width: 250px; }
.footer-col h3 { margin-bottom: 1rem; color: var(--secondary); font-size: 1.2rem;}
.footer-col p { opacity: 0.8; font-size: 0.9rem;}
.footer-col a { display: block; margin-bottom: 0.5rem; color: #ccc; transition: 0.2s;}
.footer-col a:hover { color: var(--white); }
.footer-bottom { text-align: center; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1rem; color: #888; font-size: 0.9rem;}

/* Animations */
.reveal-on-scroll { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.reveal-on-scroll.revealed { opacity: 1; transform: translateY(0); }

/* RESPONSIVE FIXES (Mobile Density & UX) */
@media(max-width: 900px) {
    .layout-sidebar { grid-template-columns: 1fr; gap: 2rem; }
}

@media(max-width: 768px) {
    .hero h1, .page-header h1 { font-size: 2.2rem; }
    h1 { font-size: 1.8rem !important; margin-bottom: 0.5rem !important; }
    
    .content-block { padding: 1.2rem; margin-bottom: 1.5rem; }
    .content-block h2 { font-size: 1.3rem !important; margin-bottom: 1rem; line-height: 1.3; }
    
    .affiliate-box {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        padding: 1.2rem;
    }
    .affiliate-box > div { text-align: center; width: 100%; }
    .affiliate-box .btn { width: 100%; margin-top: 1rem; }
    .affiliate-box .price { margin-top: 0.5rem; }
    
    .widget { padding: 1.2rem; }
    
    .faq-question { font-size: 1.05rem; padding: 1rem 0; }
    
    /* Make lists aérer on mobile */
    .content-block ul { padding-left: 1rem; }
    .content-block li { font-size: 1rem; margin-bottom: 1rem; line-height: 1.5; }
    
    /* Mobile text readability */
    body { font-size: 16px; }
    p { font-size: 1rem !important; line-height: 1.6; margin-bottom: 1rem !important; }
}