
.services {
    position: relative;
    overflow: hidden;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    padding: 30px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 60px;
}

/* =========================
   PARTICULES
========================= */

#particlesCanvas {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

/* =========================
   TITRES
========================= */

.services h2 {
    position: relative;
    z-index: 2;
    font-size: 2rem;
    text-align: center;
    color: #ffee00;
    margin-bottom: 15px;
}

.services h2::after {
    content: "";
    display: block;
    width: 80px;
    height: 4px;
    background: #ffee00;
    margin: 15px auto 0;
    border-radius: 10px;
}

/* =========================
   POURQUOI NOUS
========================= */

.advantages {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1400px;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-top: 40px;
}

.advantage-card {
    position: relative;

    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);

    border-radius: 18px;
    padding: 10px;
    text-align: center;
    font-weight: 600;

    transition: transform .3s ease, box-shadow .3s ease;

    border: 1px solid transparent;
    z-index: 1;
}

/* BORDER GRADIENT */
.advantage-card::before {
    content: "";
    position: absolute;
    inset: 0;
    padding: 1px;
    border-radius: 18px;

    background: linear-gradient(
        180deg,
        #ffd700,
        #ff8c00
    );

    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;

    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

/* HOVER */
.advantage-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 0 25px rgba(255, 238, 0, 0.15);
}

.advantage-card:hover::before {
    opacity: 1;
}

/* =========================
   SERVICES
========================= */

.services-content {
    position: relative;
    z-index: 2;

    width: 100%;
    max-width: 1600px;

    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    margin-top: -25px;
    gap: 20px;
}

.services-content a {
    text-decoration: none;
    color: inherit;
}

.card {
    position: relative;

    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(15px);

    border-radius: 20px;
    padding: 25px;
    min-height: 230px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    transition: transform .3s ease, box-shadow .3s ease;

    border: 1px solid transparent;
    z-index: 1;
}

/* BORDER GRADIENT */
.card::before {
    content: "";
    position: absolute;
    inset: 0;
    padding: 1px;
    border-radius: 20px;

    background: linear-gradient(
        180deg,
        #ffd700,
        #ff8c00
    );

    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;

    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

/* HOVER */
.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(255, 238, 0, 0.15);
}

.card:hover::before {
    opacity: 1;
}
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.card h3 {
    font-size: 1.2rem;
    font-weight: 700;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;

    overflow: hidden;

    min-height: 60px;
}

.card p {
    color: rgba(255,255,255,.85);
    line-height: 1.6;
    margin: 15px 0;
}

/* =========================
   BADGES
========================= */

.badge {
    padding: 6px 12px;
    border-radius: 50px;
    font-size: .75rem;
    font-weight: 600;
    white-space: nowrap;
}

.badge.available {
    background: #42c95a;
    color: white;
}

.badge.offline {
    background: #f44336;
    color: white;
}

.badge.coming-soon {
    background: #ff9800;
    color: white;
}

/* =========================
   BOUTONS
========================= */

.service-btn {
    display: inline-block;
    margin-top: auto;


    font-weight: 700;
    padding: 10px 18px;
    border-radius: 50px;

    transition: .3s;

    /* texte dégradé */
    background: linear-gradient(
        180deg,
        rgb(255, 199, 0),
        rgb(255, 140, 0)
    );

    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.card:hover .service-btn {
    transform: translateX(5px);
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1200px) {

    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}

@media (max-width: 768px) {

    .services {
        padding: 60px 20px;
    }

    .services h2 {
        font-size: 2rem;
    }

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

    .services-content {
        grid-template-columns: 1fr;
    }

    .card {
        min-height: auto;
    }

    .card-header {
        flex-direction: column;
        align-items: flex-start;
    }

}

