:root {
    --primary: #2D5A27;
    --secondary: #A5D6A7;
    --accent: #F9A825;
    --text-dark: #1B2E1A;
    --text-light: #F4F8F4;
    --bg-light: #FFFFFF;
    --bg-soft: #F1F8F1;
    --shadow: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-soft: 0 10px 25px rgba(0,0,0,0.05);
    --radius: 8px;
    --transition: all 0.3s ease;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

h1, h2, h3 {
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: var(--transition);
}

a:hover {
    color: var(--secondary);
}

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

/* Layout with Sidebar */
.layout-with-sidebar {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
    padding: 40px 0;
}

@media (max-width: 992px) {
    .layout-with-sidebar {
        grid-template-columns: 1fr;
    }
}

/* Header & Nav */
header {
    background: white;
    box-shadow: var(--shadow);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-links {
    display: flex;
    gap: 20px;
    list-style: none;
}

.nav-links li {
    position: relative;
}

.nav-links li a {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
}

/* Dropdown */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    box-shadow: var(--shadow);
    list-style: none;
    min-width: 200px;
    padding: 10px 0;
    border-radius: var(--radius);
    display: none;
    z-index: 1001;
}

.dropdown-menu li a {
    padding: 10px 20px;
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
}

.dropdown-menu li a:hover {
    background: var(--bg-soft);
}

.dropdown:hover .dropdown-menu {
    display: block;
}

/* Hero */
.hero {
    background: linear-gradient(rgba(45, 90, 39, 0.7), rgba(45, 90, 39, 0.7)), url('https://images.pexels.com/photos/6218318/pexels-photo-6218318.jpeg?auto=compress&cs=tinysrgb&fit=crop&h=600&w=1200') no-repeat center center/cover;
    height: 500px;
    display: flex;
    align-items: center;
    color: white;
    text-align: center;
}

.hero-small {
    height: 300px;
}

.hero h1 {
    color: white;
    font-size: 3rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: #1a3a17;
}

.btn-secondary {
    background-color: var(--secondary);
    color: var(--primary);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-full {
    width: 100%;
    text-align: center;
}

/* Grids */
.grid {
    display: grid;
    gap: 30px;
}

.grid-5 { grid-template-columns: repeat(5, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 992px) {
    .grid-5 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .grid-5, .grid-3, .grid-2 { grid-template-columns: 1fr; }
    .hero h1 { font-size: 2rem; }
}

/* ---------------- Mobile navigation (burger) ---------------- */
.nav-burger {
    display: none;
    background: transparent;
    border: 0;
    cursor: pointer;
    padding: 8px;
    width: 44px;
    height: 44px;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    margin-left: auto;
}

.nav-burger span {
    display: block;
    width: 26px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
    transition: var(--transition);
}

.nav-burger[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.nav-burger[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.nav-burger[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.nav-mobile-cta { display: none; }

@media (max-width: 768px) {
    .nav-burger { display: flex; }
    .nav-cta { display: none; }
    .nav-mobile-cta { display: list-item; }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        background: white;
        padding: 8px 0 16px;
        box-shadow: var(--shadow);
        max-height: calc(100vh - 80px);
        overflow-y: auto;
        border-top: 1px solid var(--bg-soft);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links li {
        width: 100%;
        border-bottom: 1px solid var(--bg-soft);
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-links li > a {
        padding: 14px 24px;
        display: flex;
        font-size: 1rem;
    }

    .nav-mobile-cta {
        padding: 16px 24px 4px;
        border-bottom: none !important;
    }

    .nav-mobile-cta a {
        padding: 12px 20px !important;
        justify-content: center;
    }

    /* Sous-menus déroulants : affichés à plat sur mobile */
    .dropdown-menu {
        position: static;
        display: block;
        box-shadow: none;
        background: var(--bg-soft);
        padding: 4px 0;
        border-radius: 0;
        min-width: 0;
    }

    .dropdown-menu li {
        border-bottom: none;
    }

    .dropdown-menu li a {
        padding: 10px 36px;
        font-size: 0.9rem;
    }

    .dropdown-trigger {
        cursor: default;
    }

    .dropdown-trigger i[data-lucide="chevron-down"] {
        display: none;
    }

    /* Empêche le hover desktop d'agir sur tactile */
    .dropdown:hover .dropdown-menu {
        display: block;
    }
}

/* Cards */
.card {
    background: white;
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-bottom: 4px solid transparent;
}

.card:hover {
    transform: translateY(-5px);
    border-bottom: 4px solid var(--secondary);
}

.service-card-mini {
    background: white;
    padding: 30px 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.service-card-mini i {
    width: 48px;
    height: 48px;
    color: var(--primary);
    margin-bottom: 15px;
}

.service-card-mini h3 {
    font-size: 1.1rem;
    margin-bottom: 0;
}

.service-card-mini:hover {
    background: var(--primary);
    color: white;
}

.service-card-mini:hover h3, .service-card-mini:hover i {
    color: white;
}

/* Directory listing */
.listing-section {
    padding: 60px 0;
    background: var(--bg-soft);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 40px;
}

.canton-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
    justify-content: center;
}

.canton-tag {
    background: white;
    padding: 10px 20px;
    border-radius: 50px;
    border: 1px solid var(--secondary);
    font-weight: 500;
}

.canton-tag:hover {
    background: var(--primary);
    color: white;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 15px;
}

.tag {
    font-size: 0.75rem;
    background: var(--bg-soft);
    padding: 4px 8px;
    border-radius: 4px;
    color: var(--primary);
}

/* Reveal on scroll */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Footer */
footer {
    background: var(--text-dark);
    color: white;
    padding: 60px 0 20px;
    margin-top: 60px;
}

footer a {
    color: var(--secondary);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr; }
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #333;
    padding-top: 20px;
    font-size: 0.9rem;
}

/* Company details */
.company-header {
    padding: 60px 0;
    background: var(--bg-soft);
}

.meta-info {
    display: flex;
    gap: 20px;
    margin-top: 10px;
    font-size: 0.9rem;
    color: #666;
}

.service-list {
    list-style: none;
    margin: 20px 0;
}

.service-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.contact-card {
    background: white;
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    position: sticky;
    top: 100px;
}

.map-container {
    width: 100%;
    height: 300px;
    background: #eee;
    border-radius: var(--radius);
    margin-top: 20px;
    overflow: hidden;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.services-pills {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.service-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: white;
    border: 1px solid var(--secondary);
    border-radius: 50px;
    font-size: 0.9rem;
}

.service-pill:hover {
    background: var(--primary);
    color: white;
}