body {
    margin: 0;
    background-color: #121212;
    color: #fff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

header {
    background-color: #1f1f1f;
    padding: 20px;
    text-align: center;
    box-shadow: 0 0 10px #000;
}

.logo h1 {
    margin: 0;
    color: #4caf50;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 10px 0 0;
    display: flex;
    justify-content: center;
    gap: 30px;
}

nav a {
    color: #fff;
    text-decoration: none;
    padding: 5px 10px;
    transition: background 0.3s;
}

nav a:hover {
    background-color: #333;
    border-radius: 5px;
}

.hero {
    max-width: 800px;
    margin: auto;
    background: #1e1e1e;
    padding: 30px;
    margin-top: 40px;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(0,0,0,0.7);
    text-align: center;
}

.hero h2 {
    font-size: 1.5em;
    margin-bottom: 10px;
}

form {
    margin-top: 20px;
}

input[type="file"],
input[type="submit"] {
    padding: 10px;
    margin: 10px;
    border-radius: 6px;
    border: none;
    font-size: 1em;
}

input[type="submit"] {
    background: #4caf50;
    color: white;
    cursor: pointer;
    transition: background 0.3s;
}

input[type="submit"]:hover {
    background: #45a049;
}

.progress-container {
    width: 100%;
    background: #333;
    margin-top: 20px;
    border-radius: 6px;
    overflow: hidden;
}

.progress-bar {
    height: 30px;
    width: 100%;
    background: #4caf50;
    text-align: center;
    color: white;
    line-height: 30px;
}

footer {
    margin-top: 60px;
    text-align: center;
    font-size: 0.9em;
    color: #aaa;
    padding-bottom: 20px;
}

a {
    color: #4caf50;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

@media (max-width: 600px) {
    .hero {
        padding: 20px;
    }

    nav ul {
        flex-direction: column;
        gap: 10px;
    }
}

/* ✅ Ajout pour l'affichage des images uploadées */
.image-preview {
    max-width: 100%;
    max-height: 400px;
    border-radius: 12px;
    margin-top: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.6);
    transition: transform 0.3s ease;
}

.image-preview:hover {
    transform: scale(1.02);
}
.upload-layout {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 40px;
}

.main-box {
    background: #1e1e1e;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0,0,0,0.3);
    max-width: 500px;
    flex: 1;
    min-width: 300px;
}

.side-info {
    background: #1c1c1c;
    padding: 20px;
    border-radius: 10px;
    width: 280px;
    color: #ccc;
    font-size: 0.95em;
    box-shadow: 0 0 10px rgba(0,0,0,0.25);
}

.side-info h3 {
    color: #4caf50;
    margin-bottom: 15px;
}

.side-info p {
    margin: 8px 0;
}

/* ===== BARRE DU HAUT ===== */
.top-bar {
    margin-bottom: 40px;
}

.wave-glow {
    font-size: 2.8em;
    font-weight: bold;
    color: #00e676;
    animation: wave 2.5s infinite;
}

@keyframes wave {
    0% {
        text-shadow: 0 0 5px #00e676;
    }
    50% {
        text-shadow:
            0 0 15px #00e676,
            0 0 35px rgba(0,230,118,0.8);
    }
    100% {
        text-shadow: 0 0 5px #00e676;
    }
}

/* ===== BANNIÈRE D'ANNONCE ===== */
.top-announcement {
    width: 100%;
    background: rgba(255, 152, 0, 0.12);
    color: #ff9800;
    text-align: center;
    padding: 10px 15px;
    font-size: 0.95em;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(255, 152, 0, 0.35);
}

/* espace pour éviter que le contenu colle */
body {
    padding-top: 10px;
}

.warning-tape {
    background: repeating-linear-gradient(
        45deg,
        #ff9800,
        #ff9800 10px,
        #1a1a1a 10px,
        #1a1a1a 20px
    );
    color: #000;
    padding: 10px 15px;
    text-align: center;
    font-weight: bold;
    letter-spacing: 1px;
}
.soft-highlight {
    background: linear-gradient(
        to bottom,
        transparent 30%,
        rgba(255, 235, 59, 0.35) 30%,
        rgba(255, 235, 59, 0.35) 80%,
        transparent 80%
    );
    color: #ffeb3b;
    padding: 8px 15px;
    text-align: center;
    font-weight: 500;
}
.pulse-alert {
    background: rgba(255, 152, 0, 0.15);
    color: #ff9800;
    padding: 10px 15px;
    text-align: center;
    font-weight: 600;
    animation: pulseAlert 3s ease-in-out infinite;
}

@keyframes pulseAlert {
    0%   { box-shadow: 0 0 0 rgba(255,152,0,0.0); }
    50%  { box-shadow: 0 0 15px rgba(255,152,0,0.6); }
    100% { box-shadow: 0 0 0 rgba(255,152,0,0.0); }
}
