/* Reset des marges par défaut */
html, body {
    padding: 0;
    margin: 0;
    min-height: 100vh;
}

.services {
    background-size: cover;
    background-position: center;
    min-height: 100vh;
    color: rgb(27, 80, 203);
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.servicesTitre {
    font-size: 5rem;
    font-weight: 600;
    text-align: center;
    color: rgba(251, 249, 249, 0.978);
    font-style: italic;
    padding-top: 2rem;
    margin-bottom: 5rem;
}

.servicesContent {
    display: grid;
    grid-template-columns: 1fr 100px 100px 1fr;
    grid-template-rows: auto;
    grid-template-areas: "one two three four"
                        "five six seven eight"
                        "nine ten eleven twelve";
    gap: 4rem; 
    justify-items: center; 
    height: auto; 
    width: 100%;
    margin: 0 auto;
}
  
.servicesContent1 {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 70%;
    height: 105px;
    background-color: rgba(255, 255, 255, 0.6);
    border-radius: 10px;
    transition: transform 0.3s ease-in-out;
}

.servicesContent1 :hover {
    transform: scale(1.1) 
}

.servicesContent1 p {
    display: flex;
    justify-content: center;
    align-items: center;
}

.servicesContent1 h3 {
    display: flex;
    color: rgb(8, 60, 181);
    font-size: 25px;
    justify-content: center;
    align-items: center;
    margin-bottom: 4px;
}

.icon {
    display: flex;
    font-size: 2rem;
    color: rgba(251, 249, 249, 0.978);
    justify-content: center;  
    align-items: center; 
    border: 2px solid rgb(5, 229, 38);
    background-color: rgb(5, 229, 38, 0.2);
    border-radius: 50%;
    width: 130px;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.servicesContent1, .servicesContent2, .icon, .retour {
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
}

.one { animation-delay: 0.2s; }
.two { animation-delay: 0.3s; }
.three { animation-delay: 0.5s; }
.four { animation-delay: 0.6s; }
.five { animation-delay: 0.8s; }
.six { animation-delay: 0.9s; }
.seven { animation-delay: 1.1s; }
.height { animation-delay: 1.2s; }
.nine { animation-delay: 1.4s; }
.ten { animation-delay: 1.5s; }
.eleven { animation-delay: 1.7s; }
.twelve { animation-delay: 1.8s; }
.retour { animation-delay: 2s; }

.retour {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 5rem;
    color: red;
    cursor: pointer;
    text-decoration: none;
}

/* Media queries pour mobile */
@media screen and (max-width: 768px) {
    html, body {
        padding: 0;
        margin: 0;
        min-height: 100vh;
        overflow-x: hidden;
    }
    .servicesContent {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-areas: "one"
                            "four"
                            "five"
                            "height"
                            "nine"
                            "twelve";
        gap: 2rem;
        width: 95%;
        padding: 1rem;
    }

    .servicesContent1 {
        width: 95%;
        height: auto;
        padding: 15px;
        margin: 0;
    }

    /* Masquer les éléments non utilisés en mobile */
    .icon.two, .icon.three, .icon.six, 
    .icon.seven, .icon.ten, .icon.eleven {
        display: none;
    }

    .icon {
        font-size: 1.2rem;
    }

    .servicesTitre {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }

    .retour {
        margin-top: 2rem;
        margin-bottom: 1rem;
    }
}

@media screen and (max-width: 375px) {
    .servicesContent {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-areas: "one"
                            "four"
                            "five"
                            "height"
                            "nine"
                            "twelve";
        gap: 2rem;
        width: 95%;
        padding: 1rem;
    }

    .icon.two, .icon.three, .icon.six, 
    .icon.seven, .icon.ten, .icon.eleven {
        display: none;
    }
    
    .servicesContent1 {
        width: 100%;
        height: auto;
        padding: 15px;
        margin: 0;
    }

    .icon {
        font-size: 1.2rem;
    }

    .servicesTitre {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }
}

@media (max-width: 1024px) {  
    
}