:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --background-color: #ffffff;
    --text-color: #212529;
    --font-stack: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

#titre {
    scroll-margin-top: 40px;
}

html {
    scroll-behavior: smooth;
}

body::before {
    content: "";
    position: fixed; /* Fixe le pseudo-élément pour simuler l'effet */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("../Images/background.png") no-repeat center center;
    background-size: cover; /* Ajuste la taille de l'image */
    z-index: -1; /* Place derrière le contenu */
}

body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    z-index: 0; /* Garde un z-index neutre pour le contenu */
}

.imagePrincipal {
    position: relative;
    height: 100vh;
    overflow: hidden;
}



.imagePrincipal::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.5)), linear-gradient(to bottom, transparent 80%, black 100%);
    background-size: cover;
    z-index: 1;
}

.imageEntiere {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    background-image: url("../Images/backgroundPrestationsSaxo.jpg");
    animation: zoomEffect 10s infinite alternate;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

@keyframes zoomEffect {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.1);
    }
}

.textePrincipal h1 {
    display: block;
    font-size: 80px;
    font-weight: 900;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.textePrincipal hr {
    display: block;
    border: none;
    height: 2px;
    width: 10%;
    background-color: #fff;
    margin-top: 10px;
    margin-left: 0;
    margin-bottom: 40px;
}

.textePrincipal {
    position: absolute;
    color: #fff;
    font-size: 20px;
    width: 70%;
    top: 35%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.scroll-down-indicator {
    position: absolute;
    bottom: 30px; /* Ajuste selon tes besoins */
    width: 100%;
    text-align: center;
    z-index: 3;
}

.scroll-text {
    font-size: 20px;
    color: white; /* Ou une autre couleur selon le contraste que tu veux */
    margin-bottom: 10px; /* Espace entre le texte et l'animation */
    font-family: 'Arial', sans-serif; /* Tu peux personnaliser la police */
}

.scroll-icon {
    width: 100px;
    height: auto;
}

.intro {
    background-color: var(--primary-color); /* Fond blanc */
    border-radius: 15px; /* Coins arrondis */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Ombre légère pour effet 3D */
    padding: 20px; /* Espacement à l'intérieur de la bulle */
    margin: 0 auto; /* Centrage et espacement vertical */
    max-width: 60%; /* Largeur maximale pour maintenir le texte lisible */
    line-height: 1.6; /* Espacement des lignes pour meilleure lisibilité */
    color: #ffffff; /* Couleur de texte sombre pour contraste */
    text-align: center; /* Texte centré */
}

.titre {
    padding: 100px 0 50px 0;
    width: 100%;
    text-align: center;
    background: linear-gradient(rgba(0, 0, 0, 1), rgba(0, 0, 0, 0)), linear-gradient(to top, transparent 100%, black 100%);
}

h2 {
    font-family: 'Chewy', cursive;
    font-size: 60px;
    color: var(--primary-color); /* Couleur légèrement plus sombre pour le titre */
}

p {
    font-size: 16px; /* Taille appropriée pour le texte */
}

.prestations-section {
    text-align: center;
    margin: 70px auto 30px auto;
    max-width: 80%;

}

.prestations-section h2 {
    margin-bottom: 60px;
}

.prestation-btn a {
    width: 100%;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background for readability */
    color: white;
    padding: 10px 0;
    display: block; /* Assure that the link fills the button area */
    text-decoration: none;
    font-size: 20px;
    transition: background-color 0.3s;
}

.prestation-btn:hover a {
    background-color: rgba(0, 0, 0, 0.8); /* Darker on hover */
}

.buttons-container {
    display: grid;
    margin: 0 auto 60px auto;
    grid-template-columns: repeat(4, 1fr); /* Initialement 4 colonnes */
    gap: 20px;
    justify-items: center;
    max-width: 100%; /* Limiter la largeur maximale */
    padding: 0 10px; /* Ajouter un padding pour éviter le débordement */
}

.prestation-btn {
    position: relative;
    width: 100%; /* Utiliser toute la largeur disponible dans la colonne */
    max-width: 300px; /* Limiter la taille maximale de chaque bouton */
    height: auto;
    aspect-ratio: 1; /* Pour garder une proportion carrée */
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

@media (max-width: 1024px) {
    .textePrincipal {
        top: 37.5%;
        width: 80%;
    }

    .textePrincipal h1 {
        font-size: 50px;
    }

    .buttons-container {
        grid-template-columns: repeat(3, 1fr); /* Trois colonnes pour les écrans moyens */
    }

    h2 {
        width: 90%; /* Ajuster la largeur du titre */
        margin-right: auto;
        margin-left: auto;
        font-size: 45px;
    }
}

@media (max-width: 768px) {
    .textePrincipal {
        top: 40%;
        width: 90%;
    }

    .buttons-container {
        grid-template-columns: repeat(2, 1fr); /* Deux colonnes pour les tablettes */
        gap: 15px; /* Réduire l'écart entre les éléments */
    }

    .textePrincipal h1 {
        font-size: 40px;
    }

    .textePrincipal hr {
        width: 20%;
        margin-bottom: 20px;
    }

    .textePrincipal p {
        font-size: 16px;
    }

    .intro {
        max-width: 80%; /* Augmenter la largeur pour les écrans plus petits */
    }

    h2 {
        width: 90%; /* Ajuster la largeur du titre */
        margin-right: auto;
        margin-left: auto;
        font-size: 30px;
    }

    .scroll-down-indicator {
        bottom: 80px;
    }

    .scroll-text {
        font-size: 16px;
        margin-bottom: 0;
    }

    .scroll-icon {
        width: 50px;
    }
}