body {
    font-family: 'Georgia', serif;
    text-align: center;
    margin: 0;
    background: url('content/decor.png') no-repeat center center fixed;
    background-size: cover;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 10px; /* espace global autour du contenu */
}

main {
    background: rgba(255, 255, 255, 0.9); /* léger voile blanc */
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    max-width: 480px;
    width: 90%;
    box-sizing: border-box; /* évite que padding déborde */
}

h1 {
    font-family: 'Dancing Script', cursive;
    font-size: 2rem;
    color: #2f4f4f;
    margin-bottom: 20px;
}

/* On cache complètement le vrai input file */
input[type="file"] {
    display: none;
}

#fileName {
    margin-top: 8px;
    font-style: italic;
    font-size: 0.9rem;
    color: #2f4f4f;
}

button {
    padding: 12px 25px;
    font-size: 16px;
    background: #a3b18a;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-top: 10px;
}

button:hover {
    background: #6b8e23;
}

#status {
    margin-top: 12px;
    font-size: 0.95rem;
    color: #333;
}

#progressContainer {
    width: 100%;
    background: #f1e3c6;
    border-radius: 10px;
    margin-top: 15px;
    height: 20px;
    overflow: hidden;
    display: none;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

#progressBar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #a3b18a, #d4af37);
    border-radius: 10px;
    transition: width 0.3s ease;
}

/* Bouton custom pour l’input file */
#customFileLabel {
    display: inline-block;
    padding: 12px 20px;
    background: #f8f9f4;
    border: 2px dashed #a3b18a;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s ease, transform 0.2s;
}

#customFileLabel:hover {
    background: #e6e8df;
    transform: scale(1.05);
}

/* ✅ Sur mobile : ajuster largeur + padding */
@media (max-width: 600px) {
    main {
        padding: 20px;
        width: 95%;   /* légèrement plus large, mais pas collé aux bords */
    }
}

#logo {
    max-width: 150px;
    display: block;
    margin: 20px auto;
    position: fixed;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
}
