/* =========================
   RESET CSS
========================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* =========================
   BASE GLOBALE
========================= */
body {
    font-family: 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(to right, #e0eafc, #cfdef3);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #333;
}

/* =========================
   CONTAINER PRINCIPAL
========================= */
.container {
    background-color: #ffffffcc;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 700px;
    width: 100%;
    backdrop-filter: blur(8px);
}

/* =========================
   TITRE
========================= */
h1 {
    font-size: 2.8em;
    margin-bottom: 30px;
    color: #2c3e50;
}

/* =========================
   BOUTONS
========================= */
.buttons {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.button {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 0.9em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
    width: 160px; 
    text-align: center;
}

.button:hover {
    background-color: #43a047;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(76, 175, 80, 0.4);
}

/* =========================
   CONTENU DYNAMIQUE
========================= */
.folder-content {
    margin-top: 10px;
    text-align: left;
    max-width: 90%;
    width: 100%;
    background: #f9f9f9;
    border-radius: 8px;
    padding: 15px 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    animation: fadeIn 0.4s ease-in-out;
}

/* =========================
   FICHIERS LISTÉS
========================= */
.folder-list {
    list-style: none;
    padding-left: 0;
    margin-top: 10px;
}

.file-item {
    background-color: #fff;
    padding: 10px 15px;
    margin-bottom: 8px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    transition: background 0.2s ease;
    display: flex;
    align-items: center;
}

.file-item:hover {
    background-color: #f0f4ff;
}

.file-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #2c3e50;
    width: 100%;
}

.file-icon {
    font-size: 1.4em;
    margin-right: 12px;
    color: #4CAF50;
}

.file-name {
    font-weight: 500;
    font-size: 1rem;
    word-break: break-word;
}

/* =========================
   ANIMATION
========================= */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================
   RESPONSIVE MOBILE
========================= */
@media (max-width: 600px) {
    .container {
        padding: 25px;
    }

    h1 {
        font-size: 2em;
    }

    .button {
        width: 100%;
        font-size: 1em;
    }
}
