body {
    background-color: #f4f6f9;
    font-family: Arial, sans-serif;
}
.header-top {
    background-color: #ffffff;
    padding: 15px 0;
    border-bottom: 2px solid #e0e0e0;
}
.nav-banner {
    background-color: #b31d1d;
}
.nav-banner .nav-link {
    color: #ffffff !important;
    font-weight: 500;
}
.nav-banner .nav-link:hover {
    text-decoration: underline;
}
.section-title {
    background-color: #0d3b66;
    color: #ffffff;
    padding: 8px 15px;
    font-weight: bold;
    border-radius: 4px;
    margin-bottom: 15px;
    font-size: 1.1rem;
}
.main-title-bar {
    background-color: #092c4c;
    color: #ffffff;
    text-align: center;
    padding: 10px;
    font-weight: bold;
    font-size: 1.3rem;
    border-radius: 5px;
    margin-bottom: 25px;
}
.form-label {
    font-weight: bold;
    color: #333;
    margin-bottom: 4px;
    font-size: 0.9rem;
}
.form-control,
.form-select {
    background-color: #e9ecef;
    border: 1px solid #ced4da;
}
.form-control:focus,
.form-select:focus {
    background-color: #fff;
    box-shadow: 0 0 0 0.25rem rgba(13, 71, 161, 0.25);
}
.btn-upload {
    background-color: #0f763d;
    color: white;
}
.btn-upload:hover {
    background-color: #0b592e;
    color: white;
}
.btn-submit {
    background-color: #0f763d;
    color: white;
    font-weight: bold;
    padding: 12px;
    width: 100%;
    font-size: 1.1rem;
}
.btn-submit:hover {
    background-color: #0b592e;
    color: white;
}

/* Formulaire d'accréditation public — carte sur fond de page */
.accreditation-page {
    width: 100%;
    background: transparent;
}

.accreditation-workspace {
    /* Largeur contenue par défaut (comme les autres pages publiques) ;
       le back-office peut passer en pleine largeur via .accreditation-workspace--full. */
    --accr-max: 75rem;
    --accr-pad-x: clamp(1.25rem, 3vw, 2.5rem);
    min-height: calc(100vh - 10rem);
}

.accreditation-workspace--full {
    --accr-max: 112rem;
    --accr-pad-x: clamp(1.5rem, 5vw, 5rem);
}

/* La carte blanche qui contient l'en-tête + le formulaire (même langage que .panel) */
.accreditation-card {
    width: min(100% - clamp(1.5rem, 4vw, 3rem), var(--accr-max));
    margin: clamp(1.25rem, 3vw, 2.25rem) auto;
    background: #fff;
    border: 1px solid var(--line, #e6e9ee);
    border-radius: 16px;
    box-shadow: 0 1px 2px rgba(16, 39, 63, 0.04), 0 14px 34px rgba(16, 39, 63, 0.06);
    overflow: hidden;
}

.accreditation-form {
    width: 100%;
    padding: clamp(1.25rem, 2.5vw, 2rem) var(--accr-pad-x) clamp(1.75rem, 3vw, 2.5rem);
}

/* La grille g-3 fournit déjà l'espacement vertical : on neutralise le mb-3 du form_row. */
.accreditation-form .accreditation-section .row > [class*='col'] > .mb-3 {
    margin-bottom: 0;
}

.accreditation-form-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(1.75rem, 3vw, 3.5rem);
}

.accreditation-form-column + .accreditation-form-column {
    padding-left: clamp(1.75rem, 3vw, 3.5rem);
    border-left: 1px solid #dfe7ee;
}

.accreditation-section {
    min-width: 0;
    margin: 0 0 1.6rem;
    padding: 0 0 1.5rem;
    border: 0;
    border-bottom: 1px solid #dfe7ee;
}

.accreditation-section:last-of-type {
    margin-bottom: 1.25rem;
}

.accreditation-section-title {
    display: flex;
    align-items: center;
    width: 100%;
    margin: 0 0 1rem;
    padding: 0 0 0.5rem;
    color: var(--navy, #0d3b66);
    background: transparent;
    border-bottom: 2px solid var(--red, #b31d1d);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
}

.accreditation-form .form-label {
    margin-bottom: 0.3rem;
    color: #25364a;
    font-size: 0.85rem;
    font-weight: 700;
}

.accreditation-form .form-control,
.accreditation-form .form-select {
    min-height: 2.6rem;
    padding: 0.5rem 0.7rem;
    color: #17283b;
    background-color: #fbfcfe;
    border-color: #cbd7e2;
    border-radius: 0.5rem;
    transition: border-color 160ms var(--ease-out, ease-out), box-shadow 160ms var(--ease-out, ease-out), background-color 160ms ease;
}

.accreditation-form .form-control:hover,
.accreditation-form .form-select:hover {
    border-color: #9eafc0;
}

.accreditation-form .form-control:focus,
.accreditation-form .form-select:focus {
    background-color: #fff;
    border-color: var(--navy, #0d3b66);
    box-shadow: 0 0 0 0.22rem rgba(13, 59, 102, 0.14);
}

.accreditation-form .form-control[type='file'] {
    padding: 0.35rem;
}

.accreditation-form .form-control[type='file']::file-selector-button {
    margin: -0.35rem 0.75rem -0.35rem -0.35rem;
    padding: 0.61rem 0.85rem;
    color: #173b60;
    background: #edf3f7;
    border: 0;
    border-right: 1px solid #cbd7e2;
    font-weight: 600;
}

.accreditation-consents {
    display: grid;
    gap: 0.7rem;
    margin: 0 0 1.25rem;
    padding: 0.9rem 1rem;
    background: #f6f9fb;
    border: 1px solid #dce6ed;
    border-radius: 0.65rem;
}

.accreditation-consents .form-check {
    min-height: auto;
    margin: 0;
}

.accreditation-consents .form-check-label {
    color: #24364a;
    font-size: 0.92rem;
    line-height: 1.5;
}

.accreditation-form .btn-submit {
    min-height: 3.25rem;
    padding: 0.75rem 1rem;
    border: 0;
    border-radius: 0.6rem;
    box-shadow: 0 10px 20px rgba(15, 118, 61, 0.22);
    transition: transform 160ms var(--ease-out, ease-out), background-color 160ms ease, box-shadow 160ms ease;
}

@media (hover: hover) and (pointer: fine) {
    .accreditation-form .btn-submit:hover {
        background-color: #0b592e;
        box-shadow: 0 13px 24px rgba(15, 118, 61, 0.28);
        transform: translateY(-1px);
    }
}

.accreditation-form .btn-submit:active {
    transform: scale(0.97);
}

@media (max-width: 767.98px) {
    .accreditation-form {
        padding: 1.25rem;
    }
}

@media (max-width: 991.98px) {
    .accreditation-form-columns {
        grid-template-columns: 1fr;
    }

    .accreditation-form-column + .accreditation-form-column {
        padding-top: 1.6rem;
        padding-left: 0;
        border-top: 1px solid #dfe7ee;
        border-left: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .accreditation-form .form-control,
    .accreditation-form .form-select,
    .accreditation-form .btn-submit {
        transition: none;
    }
}
/* ===== Accréditation — en-tête, jauge, dropzones, validation (form international) ===== */
.accreditation-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(1.5rem, 3vw, 3rem);
    padding: clamp(1.5rem, 3vw, 2.25rem) var(--accr-pad-x, 2.5rem) clamp(1.1rem, 2vw, 1.5rem);
    border-bottom: 1px solid var(--line, #e6e9ee);
}
.accreditation-hero-text { min-width: 0; }
.accreditation-hero .page-lead {
    max-width: 62ch;
    margin: 0.6rem 0 0;
}

.accreditation-meter { max-width: 30rem; margin: 1rem 0 0; }
.accreditation-meter-head {
    display: flex; justify-content: space-between; align-items: baseline;
    margin-bottom: 0.4rem;
    font-size: 0.76rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
    color: var(--muted, #5b6675);
}
.accreditation-meter-value { color: var(--navy, #183A6D); font-variant-numeric: tabular-nums; }
.accreditation-meter-track {
    position: relative; height: 8px; overflow: hidden;
    background: #e7edf3; border-radius: 999px;
}
.accreditation-meter-fill {
    display: block; height: 100%; width: 0; border-radius: 999px;
    background: linear-gradient(90deg, var(--navy, #183A6D), #2f6bb0);
    transition: width 0.45s var(--ease-out, ease-out);
}
.accreditation-meter-fill.is-complete { background: linear-gradient(90deg, var(--green, #178A3E), #34b866); }

/* Aperçu miniature du badge dans l'en-tête (décoratif, échelle ~1/3 du badge A6) */
.badge-mini-wrap {
    flex: 0 0 auto;
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 0.55rem;
}
@media (min-width: 992px) { .badge-mini-wrap { display: flex; } }

.badge-mini {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 148px;
    height: 208px;
    padding: 8px 10px 12px;
    background: #fff;
    border: 1px solid #e2e7ee;
    border-radius: 8px;
    box-shadow: 0 12px 26px rgba(16, 39, 63, 0.16);
    transform: rotate(2.5deg);
}
.badge-mini__lanyard { width: 34px; height: 4px; margin-bottom: 5px; border-radius: 4px; background: #d7dbe0; }
.badge-mini__head {
    width: 100%;
    padding: 3px 4px;
    border-radius: 2px;
    background: var(--navy, #183A6D);
    color: #fff;
    font-size: 6.5px;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.badge-mini__photo {
    display: grid;
    place-items: center;
    width: 44px;
    height: 54px;
    margin-top: 7px;
    border: 1px solid #cbd2db;
    background: #eef1f5;
    color: #9aa4b2;
    font-size: 1.3rem;
}
.badge-mini__name {
    max-width: 100%;
    margin-top: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 9px;
    font-weight: 800;
    color: #1a1a1a;
    text-align: center;
}
.badge-mini__cat {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 7.5px;
    font-weight: 700;
    color: var(--red, #DE342A);
    text-align: center;
}
.badge-mini__zones { display: flex; gap: 3px; margin-top: 5px; }
.badge-mini__zones i {
    padding: 1.5px 5px;
    border-radius: 2px;
    color: #fff;
    font-size: 6px;
    font-style: normal;
    font-weight: 700;
    letter-spacing: 0.03em;
}
.badge-mini__num {
    margin-top: 5px;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 7px;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #1a1a1a;
}
.badge-mini__qr { margin-top: 3px; font-size: 25px; line-height: 1; color: #28303a; }
.badge-mini__bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 5px;
    border-radius: 0 0 7px 7px;
    background: var(--red, #DE342A);
}
.badge-mini-caption {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--muted, #5b6675);
}

.accreditation-section-index {
    display: inline-grid; place-items: center; width: 1.7rem; height: 1.7rem; margin-right: 0.6rem;
    border-radius: 0.5rem; font-size: 0.72rem; font-weight: 800;
    color: var(--navy, #183A6D); background: color-mix(in srgb, var(--navy, #183A6D) 10%, #fff);
}

.accreditation-alert {
    display: flex; align-items: flex-start; gap: 0.7rem; margin: 0 0 1.75rem;
    padding: 0.9rem 1.1rem; border-radius: 0.65rem;
    background: #fdecec; border: 1px solid #f4c4c4; color: #9a2530;
    font-weight: 600; font-size: 0.94rem;
}
.accreditation-alert i { margin-top: 0.1rem; }

.accreditation-required-note { margin: 0 0 1.25rem; color: var(--muted, #5b6675); font-size: 0.86rem; }
.accreditation-required-note .req-mark { color: var(--red, #DE342A); font-weight: 800; }
.accreditation-form label.required::after { content: " *"; color: var(--red, #DE342A); font-weight: 800; }

.accreditation-form .form-control.is-invalid,
.accreditation-form .form-select.is-invalid,
.accreditation-consents .form-check-input.is-invalid { border-color: #dc3545; }
.accreditation-form .form-control.is-valid,
.accreditation-form .form-select.is-valid { border-color: #1f9d55; }
.accreditation-field-error { margin-top: 0.4rem; color: #c0293a; font-size: 0.82rem; font-weight: 600; }

/* Zone de dépôt de fichier */
.file-dropzone {
    display: flex; align-items: center; gap: 0.75rem; width: 100%;
    margin-top: 0.15rem; padding: 0.65rem 0.85rem;
    border: 1.5px dashed #b9cad9; border-radius: 0.75rem;
    background: #fbfcfe; cursor: pointer; text-align: left;
    transition: border-color 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease;
}
.file-dropzone:hover, .file-dropzone:focus-visible {
    border-color: var(--navy, #183A6D); background: #fff; outline: none;
    box-shadow: 0 0 0 0.2rem rgba(24, 58, 109, 0.1);
}
.file-dropzone.is-dragover {
    border-color: var(--green, #178A3E); background: #f0faf3;
    box-shadow: 0 0 0 0.2rem rgba(23, 138, 62, 0.14);
}
.file-dropzone.is-filled { border-style: solid; border-color: #cfe6d6; background: #f6fbf7; }
.file-dropzone.is-invalid { border-style: solid; border-color: #dc3545; background: #fdf4f5; }

.file-dropzone__idle { display: flex; flex-direction: column; gap: 0.1rem; }
.file-dropzone__icon { font-size: 1.15rem; color: var(--navy, #183A6D); }
.file-dropzone__prompt { font-size: 0.86rem; color: #33445a; }
.file-dropzone__prompt strong { color: var(--navy, #183A6D); }
.file-dropzone__hint { font-size: 0.78rem; color: var(--muted, #5b6675); }

.file-dropzone__file { display: flex; align-items: center; gap: 0.85rem; width: 100%; }
.file-dropzone__thumb {
    flex: 0 0 auto; display: grid; place-items: center; width: 3rem; height: 3rem;
    overflow: hidden; border-radius: 0.55rem; background: #eef3f7; color: #c0392b; font-size: 1.4rem;
}
.file-dropzone__thumb img { width: 100%; height: 100%; object-fit: cover; }
.file-dropzone__meta { display: flex; flex-direction: column; min-width: 0; }
.file-dropzone__name {
    max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    font-weight: 700; font-size: 0.9rem; color: #25364a;
}
.file-dropzone__size { font-size: 0.78rem; color: var(--muted, #5b6675); }
.file-dropzone__remove {
    flex: 0 0 auto; margin-left: auto; display: grid; place-items: center;
    width: 2rem; height: 2rem; border: 0; border-radius: 50%;
    background: #eef1f5; color: #5b6675; cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}
.file-dropzone__remove:hover { background: #f8d7da; color: #b02a37; }
.file-dropzone__error { margin: 0.55rem 0 0; width: 100%; color: #c0293a; font-size: 0.82rem; font-weight: 600; }

.btn-submit.is-loading { opacity: 0.85; cursor: progress; }
.btn-submit-spinner {
    display: none; width: 1.05rem; height: 1.05rem; margin-right: 0.55rem; vertical-align: -0.15rem;
    border: 2px solid rgba(255, 255, 255, 0.5); border-top-color: #fff; border-radius: 50%;
    animation: accr-spin 0.7s linear infinite;
}
.btn-submit.is-loading .btn-submit-spinner { display: inline-block; }
@keyframes accr-spin { to { transform: rotate(360deg); } }

@media (max-width: 575.98px) {
    .file-dropzone { flex-direction: column; align-items: stretch; }
    .file-dropzone__remove { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .accreditation-meter-fill, .file-dropzone, .btn-submit-spinner { transition: none; animation: none; }
}

/* Badge preview card styling */
.badge-preview-card {
    background: #fff;
    border: 4px solid #b31d1d;
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}
.badge-header {
    background-color: #092c4c;
    color: white;
    padding: 8px;
    font-size: 0.85rem;
    font-weight: bold;
    border-radius: 4px;
}
.badge-photo {
    width: 100px;
    height: 120px;
    object-fit: cover;
    border: 1px solid #ccc;
    margin: 10px auto;
}
/* Admin Sidebar styling */
.admin-sidebar {
    background-color: #e9ecef;
    border-radius: 8px;
    padding: 20px;
}

.clickable-row {
    cursor: pointer;
    transition: background-color 0.2 ease;
}

.clickable-row:hover {
    background-color: #f8f9fa;
}

.clickable-row:hover td {
    color: #0d6efd;
}

/** style du time line **/
/* ==========================
   CONTENEUR TIMELINE
========================== */

.accreditation-progress {
    position: relative;

    display: flex;

    justify-content: space-between;

    margin: 50px 20px;
}

/* ==========================
   LIGNE GENERALE
========================== */

.progress-line {
    position: absolute;

    top: 32px;

    left: 8%;

    right: 8%;

    height: 6px;

    background: #f5f5f5;

    border-radius: 10px;

    overflow: hidden;
}

.progress-line-active {
    height: 100%;

    background: #2e7d32;

    border-radius: 10px;

    transition: width 0.8s ease;
}

/* ==========================
   ETAPES
========================== */

.progress-step {
    flex: 1;

    position: relative;

    z-index: 2;

    text-align: center;
}

/* Cercle par défaut */

.progress-icon {
    width: 65px;

    height: 65px;

    border-radius: 50%;

    display: flex;

    align-items: center;

    justify-content: center;

    margin: auto;

    background: #ffffff;

    border: 4px solid #f5f5f5;

    color: #999;

    font-size: 28px;
}

/* ==========================
   ETAPE TERMINEE
========================== */

.progress-step.done .progress-icon {
    background: #2e7d32;

    border-color: #2e7d32;

    color: white;
}

/* ==========================
   ETAPE COURANTE
========================== */

.progress-step.current .progress-icon {
    background: #0d47a1;

    border-color: #0d47a1;

    color: white;

    animation: pulse 1.5s infinite;
}

/* ==========================
   REJET
========================== */

.progress-step.rejected .progress-icon {
    background: #c62828;

    border-color: #c62828;

    color: white;
}

/* ==========================
   ANNULE
========================== */

.progress-step.cancelled .progress-icon {
    background: #666;

    border-color: #666;

    color: white;
}

/* ==========================
   LIBELLES
========================== */

.progress-label {
    margin-top: 15px;

    color: #0d47a1;

    font-weight: 600;
}

/* ==========================
   CARTE GENERALE
========================== */

.card {
    background: #ffffff;
}

body {
    background: #f5f5f5;
}

/* ==========================
   ANIMATION
========================== */

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(13, 71, 161, 0.5);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(13, 71, 161, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(13, 71, 161, 0);
    }
}

/***
 *  Style pour le accueil
 */

.hero-slider {
    height: 650px;

    position: relative;

    overflow: hidden;
}

.hero-slider img {
    height: 650px;

    object-fit: cover;
}
.hero-overlay {

    position:absolute;

    top:0;
    left:0;
    right:0;
    bottom:0;

    z-index:10;

    display:flex;

    align-items:center;

    color:white;

}

.event-code {
    background: #c62828;

    padding: 8px 18px;

    border-radius: 20px;

    font-weight: bold;
}

.hero-overlay h1 {
    font-size: 3.5rem;

    font-weight: 700;

    margin-top: 20px;
}

.hero-info {
    font-size: 1.2rem;

    margin-top: 25px;
}

.hero-info i {
    color: #fff;

    margin-right: 10px;
}

.home-card {
    background: white;

    padding: 35px;

    border-radius: 15px;

    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);

    height: 100%;
}

.home-card i {
    font-size: 45px;

    color: #0d47a1;
}

.about-section {
    background: #f5f5f5;

    padding: 60px 0;
}

.about-section h2 {
    color: #0d47a1;
}

/* ==========================
   REGISTER PAGE
========================== */


.register-page {

    min-height:80vh;

    background:#F5F5F5;

    display:flex;

    align-items:center;

}




.register-card {


    background:#FFFFFF;

    border-radius:15px;

    overflow:hidden;


}



/* HEADER */

.register-header {


    background:#0D47A1;

    color:white;

    text-align:center;

    padding:35px 20px;


}



.register-header i {


    font-size:55px;


}



.register-header h2 {


    margin-top:15px;

    font-weight:700;


}



.register-header p {


    opacity:.9;

}




/* BODY */

.register-body {


    padding:35px;


}




/* FORMULAIRE */

.institution-form label {


    color:#0D47A1;

    font-weight:600;


}




.institution-form input,
.institution-form select {


    background:#F5F5F5;

    border:1px solid #ddd;

    height:45px;

    border-radius:8px;


}



.institution-form input:focus,
.institution-form select:focus {


    border-color:#0D47A1;


    box-shadow:

    0 0 0 .2rem rgba(13,71,161,.15);


}





/* ERREURS */

.alert-danger {


    background:#C62828;

    color:white;

    border:none;


}




/* BOUTON */

.btn-register {


    width:100%;


    background:#2E7D32;


    color:white;


    border:none;


    padding:14px;


    border-radius:8px;


    font-weight:600;


    font-size:1.1rem;


}




.btn-register:hover {


    background:#1B5E20;


    color:white;


}

/* Actions de tableaux : une cible cohérente dans tous les écrans d'administration. */
.table-actions {
    display: inline-grid;
    width: 8.5rem;
    gap: 0.5rem;
    justify-items: stretch;
    text-align: center;
}

.table-action-form {
    margin: 0;
}

.table-action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 2.5rem;
    padding: 0.45rem 0.75rem;
    line-height: 1.2;
    white-space: nowrap;
    transition: transform 160ms cubic-bezier(0.23, 1, 0.32, 1), box-shadow 160ms ease;
}

@media (hover: hover) and (pointer: fine) {
    .table-action-button:hover {
        transform: translateY(-1px);
    }
}

.table-action-button:active {
    transform: scale(0.97);
}

@media (max-width: 767.98px) {
    .table-actions {
        width: 7.75rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .table-action-button {
        transition: none;
    }
}
