body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #000; /* Fond noir */
    color: #fff; /* Texte en blanc pour contraste */
}

h1 {
    text-align: center;
    margin: 20px 0;
    color: #fff; /* Couleur du titre */
    font-size: 2.5em;
}

form {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 20px auto;
    padding: 20px;
}

label {
    font-weight: bold;
    display: block;
    margin-bottom: 10px;
    color: #fff; /* Couleur des labels */
}

input[type="text"] {
    width: 250px;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 1em;
    text-transform: uppercase;
    text-align: center;
    background-color: #fff; /* Fond blanc pour contraste */
    color: #000; /* Texte noir */
}

button {
    background-color: #cf2e2e;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    width: 250px;
}

button:hover {
    background-color: #b52828;
}

#result {
    margin: 20px auto;
    width: 80%;
    background: #fff; /* Fond blanc du conteneur résultat */
    color: #000; /* Texte noir dans les résultats */
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
    font-size: 1.1em;
}

td:first-child {
    font-weight: bold;
    background-color: #f9f9f9;
}

tr:nth-child(even) {
    background-color: #f2f2f2;
}

tr:hover {
    background-color: #ddd;
}

.header {
    font-size: 1.8em;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
    color: #000; /* Texte blanc dans le titre */
}

.registration-date {
    margin-top: 20px;
    font-size: 1.2em;
    font-weight: bold;
    text-align: left;
    color: #4CAF50;
}

.error {
    color: #e74c3c;
    font-weight: bold;
    text-align: center;
}

.logo-wrapper {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 20px;
}

.logo-container {
    display: inline-block;
    max-width: 400px; /* Ajustez la taille maximale */
    max-height: 120px;
}

.logo {
    width: 100%;
    height: auto;
    object-fit: contain; /* Maintient les proportions */
}

/* Styles pour la popup */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* Fond semi-transparent */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    display: none; /* Cachée par défaut */
}

.popup {
    background: #fff; /* Fond blanc */
    color: #000; /* Texte noir */
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    max-width: 600px;
    width: 90%;
    text-align: center;
}

.progress-bar {
    width: 100%;
    background-color: #ccc;
    height: 5px;
    margin-top: 10px;
}

.progress-bar-fill {
    width: 0;
    height: 100%;
    background-color: #4CAF50;
    transition: width 0.3s;
}

        .popup {
            display: none;
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 80%;
            max-width: 600px;
            background: #fff;
            border-radius: 8px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
            z-index: 1000;
            padding: 20px;
            color: #000;
        }

        .popup-header {
            text-align: right;
        }

        .popup-header button {
            background-color: #cf2e2e;
            color: white;
            border: none;
            border-radius: 4px;
            padding: 5px 10px;
            cursor: pointer;
        }

        .popup-header button:hover {
            background-color: #b52828;
        }

        .overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.7);
            z-index: 999;
        }

        .progress-bar-container {
            position: relative;
            width: 250px;
            margin: 0 auto;
        }

        .progress-bar-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 0;
        background-color: rgba(139, 0, 0, 1); /* Rouge complètement opaque */
        z-index: 10;
        border-radius: 4px;
        overflow: hidden;
        pointer-events: none;
    }

    .progress-bar-fill {
        width: 100%;
        height: 100%;
        background-color: rgba(64, 0, 0, 1); /* Rouge très sombre, totalement opaque */
    }