/* Corps de la page */
body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    color: white;
    background: linear-gradient(270deg, #4c6ef5, #22b8cf, #ff6f61);
    background-size: 600% 600%;
    animation: gradientAnimation 15s ease infinite;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-y: scroll;

    @media (min-width: 769px) {
        height: 100vh;
        overflow: hidden;
    }
}

body::-webkit-scrollbar {
    width: 12px;               /* width of the entire scrollbar */
  }
  
  body::-webkit-scrollbar-track {
    background: #c1cbf3;        /* color of the tracking area */
  }
  
  body::-webkit-scrollbar-thumb {
    background-color: rgb(119, 119, 129);    /* color of the scroll thumb */
    border-radius: 20px;       /* roundness of the scroll thumb */
    border: 2px solid #c1cbf3;  /* creates padding around scroll thumb */
  }

/* Animation du gradient */
@keyframes gradientAnimation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Conteneur pour Particles.js */
#particles-js {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* Conteneur principal */
.container {
    text-align: center;
    z-index: 1;
}

/* Titre principal */
h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

/* Sous-titre */
.subtitle {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #eaeaea;
}

/* Services */
.services {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

/* Service individuel */
.service {
    width: 200px;
    border-radius: 15px;
}

/* Lien dans chaque service */
.service a {
    display: block;
    text-decoration: none;
    color: inherit; /* Hérite la couleur parentale sans modification */
    padding: 15px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    transition: transform 0.3s, background 0.3s;
}

/* Effet au survol du lien */
.service a:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.2);
}

/* Icônes des services */
.service i {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #ffffff;
}

/* Statut des services (fixe) */
.service .status {
    margin-top: 10px;
    font-size: 0.9rem; /* Taille constante */
    color: white; /* Couleur par défaut */
}

/* Couleurs spécifiques pour les statuts */
.service .status span.online {
    color: #4caf50 !important; /* Vert pour "en ligne" */
}

.service .status span.offline {
    color: #f44336 !important; /* Rouge pour "hors ligne" */
}

/* Media queries pour appareils mobiles et tablettes */
@media (max-width: 768px) {
    .parallax {
        background-attachment: scroll; /* Désactive l'effet parallaxe pour mobile */
        height: 30vh; /* Réduit la hauteur de l'image */
    }

    .container {
        margin-top: 0;
        padding: 15px;
    }

    .services {
        flex-direction: column;
        gap: 15px;
    }

    .service {
        width: 100%; /* Services prennent toute la largeur */
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.8rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .service i {
        font-size: 2.5rem;
    }
}
