/* --- VARIABLES --- */
:root {
    /* Couleurs basées sur le Logo */
    --primary: #1F4E8C;        /* Bleu Sisyphe */
    --primary-dark: #163a6b;   /* Bleu plus sombre pour survol */
    --accent: #38bdf8;         /* Cyan léger pour les détails (Hygiène) */
    
    /* Neutres */
    --bg-body: #ffffff;
    --bg-light: #f8fafc;       /* Gris très pâle (Clinique) */
    --text-main: #1e293b;      /* Slate 800 */
    --text-muted: #64748b;     /* Slate 500 */
    --white: #ffffff;

    /* Dimensions */
    --max-width: 1200px;
    --header-height: 80px;
    --radius: 8px;
}

/* --- RESET & BASE --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--bg-body);
    overflow-x: hidden;
}

a { text-decoration: none; transition: 0.3s; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* --- TYPOGRAPHY --- */
h1, h2, h3 { font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
h1 { font-size: 3.5rem; margin-bottom: 1.5rem; color: var(--white); }
h2 { font-size: 2.5rem; margin-bottom: 1rem; color: var(--primary); }
p.lead { font-size: 1.25rem; color: var(--primary-dark); font-weight: 500; }

/* --- BUTTONS --- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary { background: var(--primary); color: var(--white); border: 2px solid var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }

.btn-light { background: var(--white); color: var(--primary); }
.btn-light:hover { background: var(--bg-light); transform: translateY(-2px); }

.btn-outline { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.3); }
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.1); }

.btn-white { background: var(--white); color: var(--primary); font-weight: 800; }
.btn-white:hover { box-shadow: 0 10px 20px rgba(0,0,0,0.2); }

/* --- HEADER --- */
header {
    position: fixed;
    top: 0; width: 100%;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo { height: 50px; width: auto; }

.nav-menu { display: flex; align-items: center; gap: 40px; }
.nav-link { color: var(--text-main); font-weight: 500; font-size: 0.95rem; }
.nav-link:hover { color: var(--primary); }
.desktop-only { display: block; }
.nav-cta-mobile { display: none; }

/* --- HAMBURGER --- */
.hamburger { display: none; cursor: pointer; }
.hamburger span {
    display: block; width: 25px; height: 3px; background: var(--primary);
    margin: 5px 0; transition: 0.3s;
}

/* --- HERO SECTION --- */
.hero {
    position: relative;
    height: 90vh;
    display: flex;
    align-items: center;
    margin-top: var(--header-height);
    background: var(--primary); /* Fallback */
}

.hero-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    /* Un dégradé bleu professionnel sur une image (à remplacer par une image de stock propre) */
    background: linear-gradient(135deg, rgba(31, 78, 140, 0.9), rgba(15, 23, 42, 0.8)),
                url('https://images.unsplash.com/photo-1497366216548-37526070297c?auto=format&fit=crop&q=80&w=1920');
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.hero-content {
    position: relative; z-index: 2;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.hero p { color: rgba(255,255,255,0.9); font-size: 1.3rem; max-width: 600px; margin-bottom: 2rem; }
.hero-buttons { display: flex; gap: 15px; flex-wrap: wrap; }

/* --- SECTIONS COMMON --- */
.section-pad { padding: 100px 0; }
.bg-light { background: var(--bg-light); }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }
.tag {
    text-transform: uppercase; font-size: 0.8rem; letter-spacing: 2px;
    color: var(--primary); font-weight: 800; display: block; margin-bottom: 10px;
}

/* --- SERVICES GRID --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background: transparent;
    padding: 40px;
    border-radius: var(--radius);
    border: 1px solid rgba(0,0,0,0.05);
    transition: 0.3s;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.service-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.4s ease-in-out, transform 0.4s ease-in-out;
    z-index: -2;
    transform: scale(1.1);
}

.service-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    opacity: 1;
    transition: opacity 0.4s ease-in-out;
    z-index: -1;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(31, 78, 140, 0.1);
    border-color: var(--primary);
}

.service-card:hover::after {
    opacity: 0.85; /* Rend le blanc un peu transparent pour voir l'image */
}

.service-card:hover::before {
    opacity: 1; /* Affiche l'image */
    transform: scale(1);
}

.service-card-rongeurs::before {
    background-image: url('rongeurs.png');
}

.service-card-insectes::before {
    background-image: url('insectes.png');
}

.service-card-desinfection::before {
    background-image: url('desinfection.png');
}

.service-card h3 { color: var(--primary); margin-bottom: 15px; font-size: 1.5rem; }
.service-card p { color: var(--text-muted); }

/* --- SPLIT SECTION (About) --- */
.split-container { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split-image .image-block {
    width: 100%; height: 400px;
    background-image: url('background_office.png');
    background-size: cover;
    background-position: center;
    border-radius: var(--radius);
    box-shadow: 20px 20px 0px var(--primary); /* Effet graphique sympa */
}

.check-list { margin-top: 30px; }
.check-list li {
    margin-bottom: 15px;
    padding-left: 30px;
    position: relative;
    color: var(--text-muted);
}
.check-list li::before {
    content: "✓";
    position: absolute; left: 0; color: var(--primary); font-weight: bold;
}
.check-list strong { color: var(--text-main); }

/* --- CTA STRIP --- */
.cta-strip {
    background: var(--primary);
    padding: 60px 0;
    color: var(--white);
}
.cta-content { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.cta-text h3 { margin-bottom: 5px; color: var(--white); }

/* --- FOOTER --- */
footer { background: #0f172a; color: #94a3b8; padding: 60px 0 20px; }
.footer-content {
    display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 30px;
    border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 40px; margin-bottom: 20px;
}
.footer-logo { height: 40px; margin-bottom: 10px; filter: grayscale(100%) brightness(200%); }
.footer-links a { color: #94a3b8; margin-left: 20px; font-size: 0.9rem; }
.footer-links a:hover { color: var(--white); }
.copyright { text-align: center; font-size: 0.8rem; }

/* --- ANIMATIONS --- */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* --- EXPERTISE SECTION --- */
#expertise {
    background-color: var(--bg-light); /* Match services section for better flow */
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px auto; /* Increased bottom margin */
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 60px; /* Increased top margin */
}

.expertise-item {
    text-align: center;
    padding: 40px; /* Increased padding */
    border-radius: var(--radius);
    background-color: var(--white); /* White cards on light background */
    border: 1px solid rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.expertise-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(31, 78, 140, 0.1); /* Slightly stronger shadow */
    border-color: var(--primary);
}

.expertise-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--primary);
    color: var(--white);
    margin-bottom: 25px; /* More space */
}

.expertise-icon svg {
    width: 30px;
    height: 30px;
}

.expertise-item h3 {
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 15px; /* More space */
}

.expertise-item p {
    color: var(--text-muted);
}

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
    h1 { font-size: 2.5rem; }
    .nav-menu {
        position: fixed; top: var(--header-height); right: -100%;
        width: 100%; height: calc(100vh - var(--header-height));
        background: var(--white); flex-direction: column;
        padding-top: 50px; transition: 0.3s; border-top: 1px solid #eee;
    }
    .nav-menu.active { right: 0; }
    .hamburger { display: block; }
    .desktop-only { display: none; }
    .nav-cta-mobile { display: block; margin-top: 20px; }
    
    .split-container { grid-template-columns: 1fr; }
    .split-image .image-block { display: none; } /* On simplifie sur mobile */
}

/* --- UTILS --- */
.legal-section {
    display: none;
}

.legal-section:target {
    display: block;
    scroll-margin-top: var(--header-height);
}

.legal-section:target .fade-in {
    opacity: 1;
    transform: translateY(0);
}