/* RESET DE BASE */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #E0F7FA; /* Bleu turquoise clair */
    color: #00695C; /* Vert foncé */
    text-align: center;
    min-height: 100vh;
    overflow-y: auto;
}

/* Scrollbar personnalisée */
body::-webkit-scrollbar {
    width: 8px;
}
body::-webkit-scrollbar-thumb {
    background-color: #00695C;
    border-radius: 4px;
}
body::-webkit-scrollbar-track {
    background: #E0F7FA;
}

/* HEADER */
header {
    background-color: #00897B; /* Vert turquoise */
    color: white;
    padding: 20px;
    font-size: 28px;
}

/* NAVIGATION */
nav {
    background-color: #00695C; /* Vert foncé */
    padding: 15px;
    width: 100%;
}
nav a {
    color: white;
    margin: 0 15px;
    text-decoration: none;
    font-size: 18px;
}
nav a:hover {
    text-decoration: underline;
}

/* SERVICES (Prestations) - Version GRID */
.services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 30px 20px 160px; /* Plus de padding bas pour éviter que le footer cache */
    box-sizing: border-box;
}

/* Style de chaque carte de service */
.service {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    padding: 20px;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s;
}
.service:hover {
    transform: scale(1.03);
}
.service h3 {
    margin-top: 0;
    color: #00897B;
}

/* FOOTER (désactivé en position fixe) */
footer {
    background-color: #00897B;
    color: white;
    text-align: center;
    padding: 15px;
    width: 100%;
    position: static; /* plus de position fixed */
    bottom: 0;
}

/* ANIMATION DU PEINTRE (si utilisée) */
.animation-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
    height: auto;
    max-height: 400px;
    overflow: visible;
}
.painter {
    position: relative;
    width: 60px;
    height: 90px;
    margin: 50px auto;
}
.head {
    width: 30px;
    height: 30px;
    background-color: #000;
    border-radius: 50%;
    position: absolute;
    top: 0;
    left: 15px;
}
.body {
    width: 8px;
    height: 50px;
    background-color: #000;
    position: absolute;
    top: 30px;
    left: 26px;
}
.arm {
    width: 40px;
    height: 8px;
    background-color: #000;
    position: absolute;
    top: 40px;
    left: 0;
    transform-origin: left center;
    animation: paint 2s infinite;
}
.arm.left {
    transform: rotate(-45deg);
}
.arm.right {
    left: 35px;
    transform: rotate(45deg);
}
.leg {
    width: 8px;
    height: 50px;
    background-color: #000;
    position: absolute;
    top: 75px;
    left: 26px;
}
.leg.left {
    transform: rotate(-15deg);
}
.leg.right {
    transform: rotate(15deg);
}
@keyframes paint {
    0%, 100% {
        transform: rotate(-45deg);
    }
    50% {
        transform: rotate(45deg);
    }
}

/* RESPONSIVE */
@media screen and (max-width: 768px) {
    header {
        font-size: 24px;
    }
    nav a {
        display: block;
        margin: 10px 0;
        font-size: 16px;
    }
    .services {
        grid-template-columns: 1fr;
        padding-bottom: 180px;
    }
    .service {
        width: 90%;
        margin: 0 auto;
    }
}
