:root {
    --brand-green: #006400;
    --brand-green-dark: #004d00;
    --brand-red: #e00d10;
    --brand-red-dark: #b80a0d;
    --text-dark: #23292c;
    --text-muted: #5a6268;
    --radius-md: 10px;
    --radius-lg: 14px;
    --shadow-soft: 0 4px 16px rgba(0,0,0,0.08);
    --shadow-hover: 0 10px 28px rgba(0,0,0,0.16);
}

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

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.65;
    color: var(--text-dark);
    background-color: #f4f4f4;
}

h1, h2, h3, .cta-button, .logo h1 {
    font-family: 'Poppins', 'Segoe UI', sans-serif;
}

section h2 {
    font-size: 2rem;
    position: relative;
}

section#services h2::after,
section#categories h2::after,
section#galerie h2::after,
section#avantages h2::after,
section#contact h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--brand-red);
    border-radius: 2px;
    margin: 0.8rem auto 0;
}

/* Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background-color: #006400;
    color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.logo-img:not([src]),
.logo-img[src=""] {
    display: none;
}

.logo h1 {
    font-size: 1.6rem;
    color: #ffffff;
    margin: 0;
    font-weight: bold;
    letter-spacing: 0.5px;
}

.nav-links {
    display: flex;
    list-style: none;
    position: absolute;
    right: 5%;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.nav-links a {
    position: relative;
    padding-bottom: 4px;
}

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

.nav-links a:hover {
    color: #ffffff;
}

.nav-links a:hover::after {
    width: 100%;
}

.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 5px;
    transition: all 0.3s;
}

/* Hero Section */
.hero {
    background:
        linear-gradient(180deg, rgba(4, 36, 16, 0.65) 0%, rgba(4, 36, 16, 0.85) 100%),
        url('assets/images/Image6_ANGE.jpeg') center center / cover no-repeat;
    color: white;
    text-align: center;
    padding: 7rem 2rem;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    max-width: 700px;
}

.hero-content h2 {
    font-size: 2.6rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #f0f0f0;
}

.cta-button {
    display: inline-block;
    background-color: var(--brand-red);
    color: white;
    padding: 1rem 2.4rem;
    text-decoration: none;
    border-radius: 50px;
    transition: background-color 0.3s, transform 0.2s, box-shadow 0.3s;
    font-weight: 600;
    letter-spacing: 0.3px;
    box-shadow: 0 6px 20px rgba(224, 13, 16, 0.35);
}

.cta-button:hover {
    background-color: var(--brand-red-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(224, 13, 16, 0.45);
}

/* Carousel Styles */
.carousel-section {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    overflow: hidden;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
}

.carousel-slide {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.carousel-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    flex-shrink: 0;
    display: block;
}

.carousel-image-placeholder {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
    padding: 20px;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 100, 0, 0.8);
    color: white;
    border: none;
    padding: 16px;
    cursor: pointer;
    font-size: 18px;
    transition: background-color 0.3s;
    z-index: 10;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background-color: rgba(0, 100, 0, 1);
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s;
}

.dot.active {
    background-color: white;
}

.dot:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

/* Gallery Section */
.gallery {
    padding: 4rem 5%;
    background-color: #f8f9fa;
}

.gallery h2 {
    text-align: center;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.gallery > p {
    text-align: center;
    margin-bottom: 3rem;
    color: #666;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.gallery-grid img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: block;
}

.gallery-grid img:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

/* Bouton flottant WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
    z-index: 999;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.whatsapp-float:hover {
    transform: scale(1.08);
    box-shadow: 0 10px 26px rgba(0,0,0,0.3);
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
}

/* Carte de localisation */
.map-embed {
    margin-top: 2rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border: 1px solid #eef0f1;
}

.map-embed iframe {
    width: 100%;
    height: 260px;
    border: 0;
    display: block;
}

.map-cta {
    display: block;
    padding: 0.9rem 1rem;
    text-align: center;
    background: #fff;
    color: var(--brand-red);
    font-weight: 600;
    text-decoration: none;
    border-top: 1px solid #eef0f1;
    transition: background 0.25s ease, color 0.25s ease;
}

.map-cta:hover {
    background: var(--brand-red);
    color: #fff;
}

/* Footer Logo */
.footer-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 1rem;
}

.footer-logo:not([src]),
.footer-logo[src=""] {
    display: none;
}

/* Services Section */
.services {
    padding: 4rem 5%;
    background-color: white;
}

.services h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: #2c3e50;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: #ffffff;
    padding: 2.2rem 1.8rem;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-soft);
    border: 1px solid #eef0f1;
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.service-card .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    color: #006400;
    margin-bottom: 1rem;
}

/* Categories Section */
.categories {
    padding: 4rem 5%;
    background-color: #f8f9fa;
}

.categories h2 {
    text-align: center;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.categories p {
    text-align: center;
    margin-bottom: 3rem;
    color: #666;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.category-card {
    background-color: white;
    padding: 2.2rem 1.8rem;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-soft);
    border: 1px solid #eef0f1;
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.category-card.featured {
    border: 2px solid var(--brand-red);
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(224, 13, 16, 0.18);
}

.category-card.featured:hover {
    transform: scale(1.05) translateY(-6px);
}

.category-card .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.category-card h3 {
    color: #006400;
    margin-bottom: 1rem;
}

.category-card p {
    margin-bottom: 0.5rem;
    color: #555;
}

.category-card strong {
    color: #006400;
}

/* Avantages Section */
.avantages {
    padding: 4rem 5%;
    background-color: white;
}

.avantages h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: #2c3e50;
}

.avantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.avantage-item {
    text-align: center;
    padding: 2rem;
}

.avantage-item .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.avantage-item h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

/* Contact Section */
.contact {
    padding: 4rem 5%;
    background-color: #f8f9fa;
}

.contact h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: #2c3e50;
}

.contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.contact-info h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.contact-info p {
    margin-bottom: 0.5rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    padding: 0.9rem 1rem;
    border: 1px solid #dcdfe1;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: inherit;
    background-color: #ffffff;
    color: var(--text-dark);
    width: 100%;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--brand-red);
    box-shadow: 0 0 0 3px rgba(224, 13, 16, 0.12);
}

.contact-form label {
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--text-dark);
    margin-bottom: -0.5rem;
}

.contact-form .form-title {
    color: var(--brand-green);
    margin-bottom: -0.4rem;
}

.contact-form .form-intro {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 0.4rem;
}

.contact-form .req {
    color: var(--brand-red);
}

.contact-form .opt {
    color: var(--text-muted);
    font-weight: 400;
    font-size: 0.85rem;
}

.contact-form .form-legal {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: -0.3rem;
}

.contact-form .form-legal a {
    color: var(--brand-red);
}

/* Champ anti-robot : masque pour les humains */
.hp-field {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    overflow: hidden;
}

.contact-form button {
    background-color: #006400;
    color: white;
    padding: 1rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.contact-form button:hover {
    background-color: #004d00;
}

/* Footer */
footer {
    background-color: #006400;
    color: white;
    padding: 3rem 5% 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: #006400;
}

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

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

.footer-section a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--brand-red);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #004d00;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        right: 0;
        top: 70px;
        background-color: #006400;
        width: 100%;
        text-align: center;
        padding: 2rem 0;
    }

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

    .nav-links li {
        margin: 1rem 0;
    }

    .burger {
        display: block;
    }

    .hero-content h2 {
        font-size: 1.8rem;
    }

    .services-grid,
    .gallery-grid,
    .avantages-grid {
        grid-template-columns: 1fr;
    }

    .category-card.featured {
        transform: scale(1);
    }

    .hero {
        padding: 5rem 1.5rem;
        min-height: 50vh;
    }

    .hero-content h2 {
        font-size: 1.8rem;
    }

    .whatsapp-float {
        width: 52px;
        height: 52px;
        bottom: 16px;
        right: 16px;
    }

    .whatsapp-float svg {
        width: 28px;
        height: 28px;
    }
}

/* Legal Pages Styles */
.legal-page {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.legal-page h1 {
    color: #2c3e50;
    margin-bottom: 2rem;
    text-align: center;
}

.legal-page h2 {
    color: #006400;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.legal-page p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.legal-page ul {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.legal-page ul li {
    margin-bottom: 0.5rem;
}

.legal-page a {
    color: var(--brand-red);
    text-decoration: none;
}

.legal-page a:hover {
    text-decoration: underline;
}

.back-button {
    display: inline-block;
    margin-bottom: 2rem;
    padding: 0.5rem 1rem;
    background-color: #006400;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.back-button:hover {
    background-color: #004d00;
}

.important-notice {
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 1.5rem;
    margin-top: 2rem;
    border-radius: 5px;
}

.important-notice h3 {
    color: #856404;
    margin-bottom: 0.5rem;
}

.important-notice p {
    color: #856404;
    margin: 0;
}

/* Page de confirmation apres envoi du formulaire */
.merci-page {
    text-align: left;
}

.merci-icone {
    font-size: 3.5rem;
    text-align: center;
    margin-bottom: 0.5rem;
}

.merci-page h1 {
    text-align: center;
}

.legal-page a.cta-button,
.legal-page a.cta-button:hover {
    color: #ffffff;
    text-decoration: none;
}
