* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #e6373d 0%, #ee555d 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    color: #fff;
}

.container {
    background: rgba(255, 255, 255, 0.1);
    padding: 40px 50px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    width: 100%;
    max-width: 450px;
    text-align: center;
}

h1 {
    font-weight: 700;
    margin-bottom: 30px;
    letter-spacing: 1.2px;
    text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.3);
}

button {
    cursor: pointer;
    background: #2575fc;
    border: none;
    color: white;
    font-weight: 500;
    font-size: 1.2rem;
    padding: 14px 30px;
    margin: 15px 10px 0 10px;
    border-radius: 50px;
    transition: background 0.3s ease;
    box-shadow: 0 5px 15px rgba(37, 117, 252, 0.4);
    width: auto;
}

button:hover {
    background: #175ec4;
    box-shadow: 0 8px 25px rgba(23, 94, 196, 0.6);
}

.footer {
    margin-top: 35px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 480px) {
    .container {
        padding: 30px 25px;
    }

    button {
        width: 100%;
        margin: 12px 0;
    }
}

/* !CSS ADMIN */

/* -------- ADMIN STYLES AMÉLIORÉS -------- */

.admin-container {
    background: rgba(255, 255, 255, 0.08);
    padding: 40px;
    border-radius: 20px;
    max-width: 500px;
    width: 50%;
    margin: auto;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    text-align: left;
}

.admin-container h1 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    text-align: center;
    color: #fff;
}

.quai-blockamd {
    background-color: rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 20px 25px;
    margin-bottom: 25px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.quai-blockamd h2 {
    margin-bottom: 18px;
    font-size: 1.2rem;
    color: #ffffff;
    text-align: center;
}

.number-row input[type="text"] {
    /* flex: 1;  <-- on retire */
    max-width: 300px;
    /* ajuste cette valeur selon ton besoin */
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 8px;
    padding: 10px;
    font-size: 1rem;
    color: #333;
    height: 44px;
}

.number-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.number-row input[type="text"] {
    flex: 1;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 8px;
    padding: 10px;
    font-size: 1rem;
    color: #333;
    height: 44px;
    /* pour égaler la hauteur du bouton */
}

.buttonadm {
    background: #3498db;
    border: none;
    color: white;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.3s ease;
    cursor: pointer;
}

.buttonadm:hover {
    background: #2c80b4;
}

.buttonadm.delete {
    background: #e74c3c;
    color: white;
    border: none;
    height: 44px;
    padding: 0 14px;
    font-size: 1rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

.buttonadm.delete:hover {
    background: #c0392b;
}

.buttonadm.add-number {
    color: white;
    display: block;
    margin: 10px auto;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(165, 165, 165, 0.4);
    cursor: pointer;
}

button[type="submit"] {
    display: flex;
    margin: 30px auto 10px auto;
    margin-top: 30px;
    padding: 14px 32px;
    background-color: #0fc45a;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 50px;
    color: white;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
    box-shadow: 0 5px 15px rgba(46, 204, 113, 0.4);
    justify-content: center;
}

button[type="submit"]:hover {
    background-color: #27ae60;
}

.back-link {
    display: block;
    margin-top: 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: underline;
    font-size: 0.95rem;
}

.popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    background: #19bd5d;
    color: white;
    padding: 18px 30px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    font-size: 1.1rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.8s ease;
    z-index: 9999;
    text-align: center;
    min-width: 250px;
    font-weight: 500;
}

.popup.show {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
}

/* !Page cell chauffeur */
.footerchauffeur {
    /* margin-top: 2%; */
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

.cell {
    margin-top: 2%;
    flex: 1;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 8px;
    padding: 10px;
    font-size: 1rem;
    color: #333;
    height: 44px;
    width: 80%;
}

.instruction-btn {
    display: flex;
    margin: 30px auto 10px auto;
    margin-top: 1%;
    padding: 14px 32px;
    background-color: #0fc45a;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 50px;
    color: white;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
    box-shadow: 0 5px 15px rgba(46, 204, 113, 0.4);
    justify-content: center;
    text-decoration: none;
}

.instruction-btn:hover {
    background-color: #27ae60;
}
