.top-bar {
    width: 100%;
    background-color: white;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    padding: 10px 20px;
    margin-bottom: 30px; /* espace avant le formulaire */
}

.top-bar-content {
    display: flex;
    align-items: center;
    justify-content: center; /* centre le contenu horizontalement */
    gap: 20px;
}

.top-logo {
    height: 40px; /* ajuste selon la taille désirée */
    width: auto;
}

.separator {
    border-left: 1px solid #ccc;  /* trait vertical fin gris clair */
    height: 40px;                  /* même hauteur que les logos */
    margin: 0 15px;                /* espace avant/après le trait */
}

.top-title {
    font-size: 20px;
    font-weight: bold;
    color: #0a3d91; /* couleur pro et visible */
    margin-left: 10px; /* espace entre les logos et le texte */
}



/* --- Reset de base --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* --- Body --- */
body {
    background: #f4f6f8;
    color: #333;
    line-height: 1.6;
}

/* --- Container --- */
.container {
    max-width: 900px;
    margin: 50px auto;
    padding: 30px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

/* --- Title & subtitle --- */
.title {
    font-size: 46px;
    color: #0a3d91;
    text-align: center;
    font-weight: 700;
    margin-bottom: 15px;
}

.subtitle {
    text-align: center;
    font-size: 18px;
    color: #555;
    margin-bottom: 35px;
}

#form-instructions {
    font-weight: 500;    /* moins gras */
    font-size: 17px;     /* taille réduite */
    color: #555;         /* couleur sobre */
    text-align: center;
    margin-bottom: 30px;
}


/* --- Sections --- */
h4 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #0a3d91;
    border-bottom: 2px solid #0a7cff;
    display: inline-block;
    padding-bottom: 3px;
}

/* --- Form box --- */
.box {
    padding: 25px;
    border-radius: 12px;
    background: #f9fafb;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

/* --- Rows and columns --- */
.row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.col {
    flex: 1;
    min-width: 200px;
}

/* --- Labels and Inputs --- */
label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: #0a3d91;
}

input, select, textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 15px;
    transition: all 0.3s;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #0a7cff;
    box-shadow: 0 0 6px rgba(10, 124, 255, 0.3);
}

textarea {
    min-height: 90px;
    resize: vertical;
}

/* --- Buttons --- */
.btn {
    width: 100%;
    padding: 15px;
    font-size: 16px;
    border-radius: 10px;
    border: none;
    background: linear-gradient(90deg, #0a7cff, #0052cc);
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 15px;
}

.btn:hover {
    background: linear-gradient(90deg, #0052cc, #0a3d91);
}

/* --- Info box (Age / Messages) --- */
.info-box {
    background-color: #e8f2ff;
    color: #0a3d91;
    padding: 12px 15px;
    border-radius: 8px;
    margin: 15px 0;
    font-weight: 600;
}

/* --- Messages --- */
.success {
    color: #0a7cff;
    font-weight: 600;
    margin-top: 5px;
}

.warning {
    color: #c0392b;
    font-weight: 600;
    margin-top: 5px;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .row {
        flex-direction: column;
    }
}

/***********************Confirmation*************/
/* CONFIRMATION PAGE */
.confirmation-wrapper {
    max-width: 720px;
    background: #fff;
    padding: 35px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    margin: 40px auto;
}

.success-icon {
    width: 60px;
    height: 60px;
    background: #10b981;
    color: #fff;
    font-size: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.confirm-title {
    text-align: center;
    color: #059669;
    font-size: 32px;
    margin-bottom: 15px;
}

.success-banner {
    background: #d1fae5;
    color: #065f46;
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 25px;
}

.card-section {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 25px;
}

.section-title {
    text-align: center;
    margin-bottom: 15px;
}

.section-title.danger {
    color: #dc2626;
}

.token-box {
    border: 2px dashed #60a5fa;
    background: #fff;
    padding: 18px;
    font-size: 26px;
    font-weight: bold;
    text-align: center;
    border-radius: 10px;
    color: #1d4ed8;
    margin-bottom: 10px;
}

.qr-container {
    display: flex;
    justify-content: center;
    margin: 15px 0;
}

.section-note {
    font-size: 13px;
    text-align: center;
    color: #475569;
}

.important-box {
    background: #fff7ed;
    border-left: 5px solid #f59e0b;
    padding: 15px;
    font-size: 14px;
    color: #7c2d12;
    margin-bottom: 30px;
}

.info-title {
    color: #dc2626;
    margin-bottom: 15px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 25px;
    font-size: 12px;
}

.info-card {
    background: #f8fafc;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
}

.info-card span {
    font-size: 12px;
    color: #64748b;
}

.actions {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.btn-primary {
    background: #1d4ed8;
    color: #fff;
    padding: 12px 18px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.btn-secondary {
    background: #334155;
    color: #fff;
    padding: 12px 18px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}


.col {
    position: relative;
    z-index: 1;
}

label {
    pointer-events: none;
}

#category {
    position: relative;
    z-index: 10;
    pointer-events: auto;
}



/***************************/

.form-footer {
    background-color: white;        /* barre blanche */
    text-align: center;             /* centrer le texte */
    padding: 15px 10px;             /* espace intérieur */
    margin-top: 30px;               /* espace au-dessus du footer */
    border-top: 1px solid #ddd;     /* fine ligne de séparation */
    font-size: 14px;                /* taille un peu plus petite */
    color: #555;                    /* couleur grise douce */
    margin-top: 15px;
}

.form-footer p {
    margin: 5px 0;                  /* petite marge entre les lignes */
}



.btn-delete {
    background: #dc3545;
    border: none;
    color: #fff;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

.btn-delete:hover {
    background: #b02a37;
}






#loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-box {
    background: #ffffff;
    padding: 20px 30px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    color: #0a3d91;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}






