:root {
    --sidebar-max-width: 240px;
}

.rows-container .row {
    margin-bottom: 1rem;
}

.ea-index.ea-index-Participant .datagrid td {
    height: 56px;
}

.sidebar-wrapper .sidebar {
    display: flex;
    flex-direction: column;
}

#main-menu {
    flex-grow: 1;
}

.c-version__wrapper {
    border-radius: var(--border-radius);
    padding-left: var(--sidebar-menu-items-padding-left);
    padding-right: 5px;
    padding-top: 8px;
    padding-bottom: 8px;
}

.c-version__wrapper i {
    color: var(--sidebar-menu-icon-color);
    font-size: var(--font-size-lg);
    height: 16px;
    transform: translateY(1px);
    width: 20px;
}

.c-version__wrapper .c-version__content {
    display: inline-block;
    position: relative;
}

.c-version__wrapper .c-version__content-title, .c-version__wrapper .c-version__content-version {
    display: inline-block;
}

.ea-sidebar-width-compact .c-version__content-title {
    display: none;
}

.c-reset-password {
}

.c-reset-password__wrapper__content {
    padding: 30px;
}

.c-reset-password__wrapper__header {
    text-align: center;
    margin: 1.5rem 0 1rem 0;

    border-block-end: 1px solid #cbd5e1;
}

.c-reset-password__wrapper__header__title {
    text-align: center;
    color: #1e293b;
    padding: .75rem 0;
}

.c-reset-password__wrapper__content h1 {
    margin-top: 0;
}

@media (min-width: 576px) {
    .c-reset-password {
        background: #f1f5f9;
        display: grid;
        block-size: 100%;
        min-block-size: 100vh;
        place-items: center;
        margin: 0;
    }

    .c-reset-password__wrapper {
        inline-size: 25rem;
        margin: 0 auto;
    }

    .c-reset-password__wrapper__content {
        background: #fff;
        border-radius: .5rem;
        box-shadow: 0 10px 15px -3px rgba(15, 23, 43, .1), 0 4px 6px -4px rgba(15, 23, 42, .1);
        padding: 2.5rem 3rem;
    }

    .c-reset-password__wrapper__header {
        border-block-end: unset;
    }
}

@media (max-width: 575.98px) {
    .btn-sm-block {
        display: flex;
        inline-size: 100%;
        place-content: center;
    }
}

/*
 * Choix "fancy" sous forme de boutons avec smileys.
 * Utilise par les form themes formation_review_score et yes_no_choice.
 */
.c-choice__item {
    position: relative;
}

/*
 * L'input reste dimensionne et superpose au label : indispensable pour que le
 * navigateur puisse afficher la bulle de validation HTML5 (un input masque via
 * display:none / visibility:hidden / taille nulle est considere non focusable).
 */
.c-choice__input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    z-index: 1;
}

.c-choice__label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .25rem;
    min-width: 56px;
    height: 100%;
    padding: .5rem .625rem;
    border: 1px solid #cbd5e1;
    border-radius: .5rem;
    background-color: #fff;
    color: #334155;
    cursor: pointer;
    user-select: none;
    transition: border-color .15s ease-in-out, background-color .15s ease-in-out,
        color .15s ease-in-out, transform .15s ease-in-out, box-shadow .15s ease-in-out;
}

.c-choice__icon {
    font-size: 1.5rem;
    line-height: 1;
    filter: grayscale(1);
    opacity: .65;
    transition: filter .15s ease-in-out, opacity .15s ease-in-out;
}

.c-choice__text {
    font-size: .8125rem;
    font-weight: 600;
}

.c-choice__item:hover .c-choice__label {
    border-color: #94a3b8;
    background-color: #f8fafc;
}

.c-choice__item:hover .c-choice__icon {
    filter: grayscale(.3);
    opacity: .9;
}

.c-choice__input:checked + .c-choice__label {
    border-color: #0d6efd;
    background-color: #0d6efd;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 .25rem .5rem rgba(13, 110, 253, .3);
}

.c-choice__input:checked + .c-choice__label .c-choice__icon {
    filter: none;
    opacity: 1;
}

.c-choice__input:focus-visible + .c-choice__label {
    outline: 2px solid #93c5fd;
    outline-offset: 2px;
}

.c-choice__input:disabled {
    cursor: not-allowed;
}

.c-choice__input:disabled + .c-choice__label {
    opacity: .5;
    cursor: not-allowed;
}

/* L'input superpose le label : on neutralise le survol quand desactive. */
.c-choice__item:has(.c-choice__input:disabled):hover .c-choice__label {
    border-color: #cbd5e1;
    background-color: #fff;
}

/* Variante Oui / Non : vert pour l'accord, rouge pour le refus. */
.c-choice__label--yes,
.c-choice__label--no {
    flex-direction: row;
    gap: .5rem;
    min-width: 104px;
}

.c-choice__label--interest {
    min-width: 140px;
    align-items: flex-start;
    text-align: left;
    flex-grow: 1;
}

.c-choice__input:checked + .c-choice__label--yes {
    border-color: #198754;
    background-color: #198754;
    box-shadow: 0 .25rem .5rem rgba(25, 135, 84, .3);
}

.c-choice__input:checked + .c-choice__label--no {
    border-color: #dc3545;
    background-color: #dc3545;
    box-shadow: 0 .25rem .5rem rgba(220, 53, 69, .3);
}

.c-choice__input:focus-visible + .c-choice__label--yes {
    outline-color: #6ee7b7;
}

.c-choice__input:focus-visible + .c-choice__label--no {
    outline-color: #fca5a5;
}

.c-otp__digits {
    display: flex;
    flex-wrap: nowrap;
    gap: .5rem;
}

@media (max-width: 575.98px) {
    .c-otp__digits {
        gap: .25rem;
        justify-content: space-between;
    }
}

.c-otp__digit {
    width: 2.75rem;
    height: 2.75rem;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    text-align: center;
    font-size: 1.125rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #0f172a;
    background-color: #fff;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

.c-otp__digit:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 .25rem rgba(13, 110, 253, .25);
    outline: 0;
}

.c-otp__digit:disabled {
    background-color: #e9ecef;
    cursor: not-allowed;
}

