/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #4a9d5f;
    --secondary-color: #6ab547;
    --dark-color: #2d3436;
    --gray-dark: #4a5568;
    --gray-medium: #718096;
    --gray-light: #cbd5e0;
    --light-color: #f7fafc;
    --text-color: #2d3748;
    --white: #ffffff;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.15);
}

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

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

/* Header */
.header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo h1 {
    font-size: 1.8rem;
    color: var(--primary-color);
    font-weight: 700;
}

.logo-subtitle {
    font-size: 1.2rem;
    color: var(--text-color);
    font-weight: 500;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--dark-color);
    margin: 3px 0;
    transition: 0.3s;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
}

.nav a:hover {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-color) 100%);
    color: var(--white);
    padding: 5rem 0;
    text-align: center;
}

.hero-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    display: inline-block;
}

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

.btn-primary:hover {
    background-color: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

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

.btn-secondary:hover {
    background-color: var(--light-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Info Cards */
.info-cards {
    padding: 4rem 0;
    background-color: #f8f9fa;
}

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

    a {
        color: var(--primary-color);
        text-decoration: none;
        font-weight: 500;
        transition: color 0.3s;
    }

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

.card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

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

.card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.card p {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.agrement {
    color: var(--primary-color);
    font-weight: 600;
    margin-top: 1rem;
}

.card.highlight {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
}

.card.highlight h3 {
    color: var(--white);
}

.card-highlight-text {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 1rem 0;
}

/* Services Section */
.services {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--dark-color);
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    margin: 1rem auto 0;
}

.services-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.service-description p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.services-list {
    background-color: var(--light-color);
    padding: 2rem;
    border-radius: 10px;
}

.services-list h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.services-list ul {
    list-style: none;
}

.services-list li {
    padding: 0.8rem 0;
    border-bottom: 1px solid #ddd;
    font-size: 1.1rem;
}

.services-list li:last-child {
    border-bottom: none;
}

/* Points de contrôle */
.points-controle {
    padding: 4rem 0;
    background-color: #f8f9fa;
}

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

.point-item {
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary-color);
    transition: transform 0.3s;
}

.point-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-hover);
}

/* Garanties */
.garanties {
    padding: 4rem 0;
    background-color: var(--dark-color);
    color: var(--white);
}

.garanties .section-title {
    color: var(--white);
}

.garanties .section-title::after {
    background-color: var(--primary-color);
}

.garanties-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.garanties-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

/* Contact */
.contact {
    padding: 4rem 0;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.contact-info h3,
.contact-form-container h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.contact-item {
    margin-bottom: 2rem;
}

.contact-item strong {
    color: var(--dark-color);
    display: block;
    margin-bottom: 0.5rem;
}

.contact-item a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

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

/* Email protection */
.email-protected {
    cursor: pointer;
    position: relative;
}

.email-placeholder {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: var(--light-color);
    border-radius: 5px;
    transition: all 0.3s;
}

.email-protected:hover .email-placeholder {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Contact Form */
.contact-form-container {
    background-color: var(--light-color);
    padding: 2rem;
    border-radius: 10px;
}

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

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.form-group input,
.form-group textarea {
    padding: 0.75rem;
    border: 2px solid var(--gray-light);
    border-radius: 5px;
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form button[type="submit"] {
    align-self: flex-start;
    cursor: pointer;
    border: none;
}

.contact-map {
    margin-top: 2rem;
}

.social-links {
    margin-top: 2rem;
}

.social-links a {
    display: inline-block;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.social-links a:hover {
    background-color: #3b5998;
    transform: scale(1.1);
}

.map-container {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.map-container iframe {
    display: block;
}

/* Legal Page Styles */
.legal-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-color) 100%);
    padding: 3rem 0;
}

.legal-content {
    padding: 4rem 0;
    background-color: var(--light-color);
}

.legal-section {
    background-color: var(--white);
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary-color);
}

.legal-section h2 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    margin-top: 0;
}

.legal-section p {
    line-height: 1.8;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.legal-section p:last-child {
    margin-bottom: 0;
}

.legal-list {
    list-style: none;
    padding-left: 0;
}

.legal-list li {
    padding: 0.5rem 0 0.5rem 2rem;
    position: relative;
    color: var(--text-color);
    line-height: 1.8;
}

.legal-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.legal-section a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

.legal-section a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.legal-footer {
    text-align: center;
    padding: 2rem;
    color: var(--gray-medium);
    font-style: italic;
}

/* Reviews Section */
.reviews {
    padding: 4rem 0;
    background-color: var(--light-color);
}

/* Overall Rating */
.overall-rating {
    text-align: center;
    background-color: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-bottom: 3rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.rating-score {
    margin-bottom: 0.5rem;
}

.rating-number {
    font-size: 4rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.rating-max {
    font-size: 2rem;
    color: var(--gray-medium);
    font-weight: 300;
}

.rating-stars {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    letter-spacing: 0.3rem;
}

.half-star {
    opacity: 0.5;
}

.rating-text {
    color: var(--gray-medium);
    font-size: 0.95rem;
    margin: 0;
}

.reviews-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.google-reviews-widget h3,
.featured-reviews h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

.google-widget-placeholder {
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
    overflow: hidden;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

.reviews-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.review-card {
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary-color);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.stars {
    font-size: 1.2rem;
    color: #ffc107;
    letter-spacing: 0.2rem;
}

.review-date {
    font-size: 0.85rem;
    color: var(--gray-medium);
}

.review-text {
    color: var(--text-color);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0.75rem;
    font-style: italic;
}

.review-author {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 0.9rem;
}

.reviews-cta {
    text-align: center;
    background-color: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.reviews-cta p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

/* Responsive Reviews */
@media (max-width: 1024px) {
    .reviews-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .reviews {
        padding: 2rem 0;
    }

    .reviews-container {
        gap: 2rem;
    }

    .google-widget-placeholder {
        min-height: 300px;
    }
}

/* Footer */
.footer {
    background-color: var(--dark-color);
    color: var(--white);
    padding: 2rem 0;
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    margin: 0 1rem;
}

.footer-links a:hover {
    color: var(--primary-color);
}

/* Gallery Section */
.gallery {
    padding: 2rem 0;
    background-color: #f8f9fa;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    aspect-ratio: 4/3;
}

.gallery-item:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Services Image */
.services-image {
    margin-bottom: 3rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-hover);
    max-width: 100%;
}

.services-image img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 500px;
    object-fit: cover;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--white);
        box-shadow: var(--shadow);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
    }

    .nav.active {
        max-height: 300px;
    }

    .nav ul {
        flex-direction: column;
        padding: 1rem 0;
        gap: 0;
    }

    .nav li {
        padding: 0.5rem 1rem;
    }

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

    .hero-subtitle {

    .gallery-grid {
        grid-template-columns: 1fr;
    }
        font-size: 1.1rem;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .services-content {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .contact-map {
        margin-top: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .points-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 3rem 0;
    }

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

    .hero-cta {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .gallery {
        padding: 1rem 0;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .gallery-item {
        aspect-ratio: 16/9;
    }

    .services-image img {
        max-height: 300px;
    }

    .info-cards {
        padding: 2rem 0;
    }

    .services,
    .points-controle,
    .garanties,
    .contact {
        padding: 2rem 0;
    }
}

/* Animation au scroll */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fadeInUp 0.6s ease-out;
}
