@font-face {
    font-family: 'MaPolice';
    src: url('../font/mapolice.woff2') format('woff2');
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'MaPolice', sans-serif;
}

body {
    line-height: 1.6;
    overflow-x: hidden;
}

/* Header styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: white;
    padding: 0.5em 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 80%;
    max-width: 1200px;
    margin: 0 auto;
}

header h1 {
    font-weight: bold;
    font-size: 1.5em;
    margin: 0;
}

header img {
    height: 50px;
}

/* Section styles */
section {
    padding: 50px 0;
}

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

h1, h2 {
    margin-bottom: 20px;
}

/* Sections spécifiques */
#accueil {
    background-color: #FAF9F4;
    color: #233E32;
    padding-top: 100px;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

#accueil .container {
    display: flex;
    align-items: center;
    gap: 40px;
}

#accueil .content {
    max-width: 50%;
    padding-right: 40px;
}

#accueil img {
    max-width: 100%;
    height: auto;
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    background-color: #1B5F39;
    color: white;
}

.btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Logos défilants */
.logos-slider {
    background: white;
    padding: 20px 0;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

.logos-slide {
    display: inline-block;
    animation: slide 60s linear infinite;
}

.logos-slide img {
    height: 60px;
    margin: 0 20px;
    vertical-align: middle;
}

@keyframes slide {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-100%);
    }
}

/* Services */
#services {
    background-color: #233E32;
    color: #FFFFFF;
    text-align: center;
    padding: 60px 0;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.service-col {
    background-color: #FAF9F4;
    color: #233E32;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 350px;
}

.service-col p {
    text-align: center !important;
}

.service-col h2 {
    text-align: center !important;
}

.service-col .btn {
    align-self: center;
    margin-top: auto;
}

.service-col:hover {
    transform: translateY(-5px);
}

.price {
    font-size: 4em;
    font-weight: bold;
    margin: 20px 0;
    color: #1B5F39;
}

#tarifs {
    background-color: #AEE4BD;
    color: #233E32;
    text-align: center;
    padding: 60px 0;
}

/* Sections avec frame */
.frame {
    background-color: #AEE4BD;
    padding: 40px;
    border-radius: 15px;
    color: #233E32;
    margin: 20px 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

#ramonage .frame {
    background-color: #233E32;
    color: #FFFFFF;
}

.frame ul {
    list-style-position: inside;
    margin: 20px 0;
    text-align: left;
}

.frame li {
    margin: 10px 0;
}

#entretien {
    background-color: #FFFFFF;
    color: #233E32;
    padding: 60px 0;
}

/* Zone géographique */
#zonegeo {
    background-image: url('../img/fond1.png');
    background-size: cover;
    background-position: center;
    padding: 60px 0;
}

/* Avis section */
#avis {
    background-color: #FAF9F4;
    color: #233E32;
    padding: 60px 0;
    width: 100%;
    overflow: hidden;
}

#avis h1 {
    width: 80%;
    max-width: 1200px;
    margin: 0 auto 40px auto;
    text-align: center;
}

.avis-slider {
    width: 100vw;
    margin-left: 50%;
    transform: translateX(-50%);
    background: transparent;
    padding: 20px 0;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

.avis-slide {
    display: inline-block;
    animation: slideAvis 80s linear infinite;
    padding: 0 20px;
}

.avis-card {
    display: inline-block;
    background: white;
    padding: 20px 30px;
    margin: 0 15px;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    width: 300px;
    white-space: normal;
    vertical-align: top;
}

.avis-stars {
    color: #FFD700;
    font-size: 2.5em;
    margin-bottom: 10px;
    text-align: center;
}

.avis-date {
    color: #1B5F39;
    font-weight: bold;
    text-align: center;
}

.avis-texte {
    color: #233E32;
    font-style: italic;
    margin-bottom: 10px;
    line-height: 1.4;
}

.avis-auteur {
    color: #1B5F39;
    font-weight: bold;
    text-align: center;
}

@keyframes slideAvis {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-100%);
    }
}

/* Rendez-vous */
#rdv {
    background-color: #233E32;
    color: #FFFFFF;
    text-align: center;
    padding: 60px 0;
}

#rdv a {
    color: #FFFFFF;
    text-decoration: underline;
}

/* Réglementation */
#reglementation {
    background-color: #AEE4BD;
    color: #233E32;
    padding: 60px 0;
}

#reglementation ul {
    text-align: left;
}

#reglementation li {
    margin: 10px 0;
}

#reglementation a {
    color: #1B5F39;
    text-decoration: none;
}

#reglementation a:hover {
    text-decoration: underline;
}

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    width: 90%;
    max-width: 900px;
    height: 80vh;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    position: relative;
}

.close {
    position: absolute;
    right: 15px;
    top: 10px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2001;
}

.close:hover {
    color: black;
}

.modal.show {
    display: block;
}

footer a {
    color: white;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    background-color: #000;
    color: #FFF;
    text-align: center;
    padding: 20px 0;
}

/* Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        width: 90%;
    }

    #accueil {
        flex-direction: column;
        text-align: center;
        padding-top: 80px;
    }

    #accueil .content {
        max-width: 100%;
        padding-right: 0;
        margin-bottom: 30px;
    }

    #accueil img {
        max-width: 80%;
    }

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

    .frame {
        padding: 20px;
    }

    .logos-slide img {
        height: 40px;
        margin: 0 10px;
    }

    .avis-card {
        width: 280px;
        padding: 15px 20px;
        margin: 0 10px;
    }
}


        main {
            padding-top: 100px;
            padding-bottom: 50px;
        }

        main > .container > h1 {
            text-align: center;
        }


        p {
            margin-bottom: 15px;
            line-height: 1.8;
            text-align: justify;
        }

        ul {
            margin-left: 20px;
            margin-bottom: 15px;
        }

        li {
            margin-bottom: 10px;
            line-height: 1.8;
        }

        .article {
            background-color: #AEE4BD;
            padding: 25px;
            margin-bottom: 20px;
            border-radius: 8px;

        }

        .article h2 {
            margin-top: 0;
            border-bottom: none;
            padding-bottom: 0;
            color: #233E32;
        }

        .info-header p {
            margin: 5px 0;
            font-weight: 500;
        }

        @media (max-width: 768px) {
            h1 {
                font-size: 1.8em;
            }

            h2 {
                font-size: 1.2em;
            }

            .container {
                width: 95%;
            }

            .article {
                padding: 15px;
            }
        }