/* =============================
   PAGE SERVICES - EUKI-ZY
============================= */

.main-services {
    padding: 60px 20px;

    /* 🔥 FOND IMAGE */
    background-image: 
      
        url("images/service.png");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;

    font-family: 'Arial', sans-serif;
    color: #2c2c2c;
}

/* ---------- INTRO ---------- */
.intro {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 50px;
}

.intro h1 {
    font-size: 36px;
    color: #37474f; 
    margin-bottom: 10px;
}

.blue {
    color: #d4a017; 
}

.intro-text {
    font-size: 17px;
    line-height: 1.6;
    color: #555;
    max-width: 800px;
    margin: 0 auto;
}

/* ---------- LISTE DES SERVICES ---------- */
.services-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

/* ---------- CARTES SERVICE ---------- */
.service-item {
    background-color: #d8dfe1fd;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); 
    padding: 30px 25px;
    max-width: 300px;
    width: 100%;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s, border-top 0.3s;
    border-top: 4px solid transparent;
}

.service-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    border-top: 4px solid #d4a017;
    cursor: pointer;
}

/*  Icones */
.icon {
    font-size: 45px;
    color: #6ab187;
    margin-bottom: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    will-change: transform, color;
}

/* titre */
.service-item h2 {
    color: #2b6777;
    margin-bottom: 10px;
    font-size: 20px;
    font-weight: bold;
}

/* texte*/
.service-item p {
    line-height: 1.7;
    font-size: 15px;
    color: #555;
    text-rendering: optimizeLegibility;
}

/*  HOVER ICON*/
.service-item:hover .icon {
    color: #d4a017;
    transform: scale(1.1);
    transition: color 0.3s, transform 0.3s;
}

.service-item:hover h2 {
    color: #1e4f5f;
}

/* responsive */
@media (max-width: 768px) {

    .main-services {
        background-attachment: scroll;
    }

    .intro h1 {
        font-size: 28px;
    }

    .service-item {
        max-width: 90%;
        padding: 20px;
    }

    .icon {
        font-size: 35px;
    }
}


/*  texte plus net */
.main-services,
.intro,
.service-item {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Animation apparition */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.intro {
    animation: fadeUp 0.8s ease-out both;
}

.service-item {
    animation: fadeUp 0.8s ease-out both;
}

/* Animation décalée */
.service-item:nth-child(1) { animation-delay: 0.1s; }
.service-item:nth-child(2) { animation-delay: 0.2s; }
.service-item:nth-child(3) { animation-delay: 0.3s; }
.service-item:nth-child(4) { animation-delay: 0.4s; }
.service-item:nth-child(5) { animation-delay: 0.5s; }

/* Accessibilité clavier */
.service-item:focus-within {
    outline: 2px solid rgba(212, 160, 23, 0.6);
    outline-offset: 4px;
}

/* Respect préférence utilisateur */
@media (prefers-reduced-motion: reduce) {
    .service-item,
    .intro {
        animation: none !important;
        transition: none !important;
    }
}
