/* Style de base */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #0f0f0f, #282828);
    color: #ffffff;
    overflow-x: hidden; /* Supprime le défilement horizontal */
    padding: 20px; /* Ajoute du padding pour les petits écrans */
}
.back-button {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 20px;
  font-family: 'Orbitron', sans-serif;
  font-size: 1rem;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(45deg, #1d1d1d, #4caf50);
  border: none;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0, 255, 0, 0.7), 0 0 20px rgba(0, 255, 0, 0.5);
  text-align: center;
  transition: all 0.3s ease;
}


.back-button:hover {
  background: linear-gradient(45deg, #4caf50, #1d1d1d);
  box-shadow: 0 0 15px rgba(0, 255, 0, 1), 0 0 30px rgba(0, 255, 0, 0.8);
  transform: scale(1.05);
  
}
/* Conteneur principal du panel */
.panel-container {
    text-align: center;
    color: #00ffcc;
    background: rgba(15, 15, 15, 0.8);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0px 0px 25px rgba(0, 255, 200, 0.5), 0px 0px 50px rgba(0, 255, 200, 0.3);
    width: 100%;
    max-width: 1000px;
    margin: auto; /* Centre le conteneur */
}

/* Titre principal */
.panel-container h1 {
    font-size: 2.5em;
    text-shadow: 0 0 10px #00ffcc, 0 0 20px #00ffcc;
    margin-bottom: 20px;
}

/* Grille des fichiers */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    width: 100%;
}

/* Style des cartes de fichiers */
.file-card {
    background-size: cover;
    background-position: center;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    height: 150px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(0, 255, 200, 0.5);
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0px 8px 15px rgba(0, 255, 200, 0.3);
}

.file-card:hover {
    transform: scale(1.05);
    box-shadow: 0px 8px 25px rgba(0, 255, 200, 0.5);
}

/* Description avec fond sombre */
.file-description {
    background: rgba(0, 0, 0, 0.7);
    padding: 10px;
    border-radius: 5px;
    color: #ffffff;
    font-weight: bold;
    text-shadow: 0 0 10px #00ffcc;
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
    transition: background 0.3s;
    font-size: 1em;
}

.file-card:hover .file-description {
    background: rgba(0, 0, 0, 0.9);
}

/* Lien de fichier */
.file-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.2em;
    font-weight: bold;
    display: block;
}

.file-link span {
    color: #00ffcc;
    text-shadow: 0 0 5px #00ffcc, 0 0 15px #00ffcc;
    transition: color 0.3s, text-shadow 0.3s;
}

.file-link:hover span {
    color: #ff007f;
    text-shadow: 0 0 10px #ff007f, 0 0 20px #ff007f;
}

/* Adaptation responsive pour tablettes */
@media (max-width: 1024px) {
    .panel-container {
        padding: 30px;
    }

    .panel-container h1 {
        font-size: 2em;
    }

    .file-card {
        height: 140px;
    }
}

/* Adaptation responsive pour téléphones */
@media (max-width: 768px) {
    .panel-container {
        padding: 25px;
    }

    .panel-container h1 {
        font-size: 1.8em;
        margin-bottom: 15px;
    }

    .file-card {
        height: 130px;
    }

    .file-description {
        font-size: 0.9em;
        padding: 8px;
    }
}

@media (max-width: 480px) {
    .panel-container {
        padding: 20px;
    }

    .panel-container h1 {
        font-size: 1.5em;
        margin-bottom: 10px;
    }

    .file-card {
        height: 120px;
        padding: 10px;
    }

    .file-description {
        font-size: 0.85em;
        padding: 6px;
    }

    .file-link {
        font-size: 1em;
    }
}
