/* Thanoria – Espace Jury | Front v1.3.0 */

/*
 * Le shortcode est déjà injecté dans le container du thème Thanoria.
 * On neutralise donc la largeur col-lg-10 du template uniquement lorsque
 * l'Espace Jury est présent, sans toucher aux autres pages du site.
 */
.main-txt .content:has(.thanoria-jury-shell),
.thanoria-jury-host-content {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
}

.main-txt .content > [class*="col-"]:has(.thanoria-jury-shell),
.thanoria-jury-host-col {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
}

.thanoria-jury-shell,
.thanoria-jury-shell * {
    box-sizing: border-box;
}

.thanoria-jury-shell {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    color: #171d35;
}

/* Connexion : le shell occupe le container, la carte reste confortable à lire. */
.thanoria-login-shell {
    width: 100%;
    max-width: none;
}

.thanoria-jury-card {
    width: 100%;
    background: #fff;
    border: 1px solid #e7e9f0;
    border-radius: 20px;
    box-shadow: 0 12px 40px rgba(23, 29, 53, .08);
    padding: 36px;
}

.thanoria-login-card {
    max-width: 620px;
    margin: 0 auto;
    text-align: left;
}

.thanoria-jury-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: #eef0fa;
    color: #253789;
    font-weight: 800;
    font-size: 12px;
    letter-spacing: .12em;
}

.thanoria-jury-card h2,
.thanoria-jury-topbar h2 {
    font-size: 32px;
    line-height: 1.15;
    margin: 14px 0 8px;
    color: #171d35;
}

.thanoria-jury-intro,
.thanoria-jury-topbar p {
    color: #677084;
}

.thanoria-jury-login-form {
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin-top: 24px;
}

.thanoria-jury-login-form label {
    font-weight: 700;
}

.thanoria-jury-login-form input {
    width: 100%;
    min-width: 0;
    height: 50px;
    border: 1px solid #cfd4e2;
    border-radius: 10px;
    padding: 0 14px;
    font-size: 16px;
    box-sizing: border-box;
}

.thanoria-jury-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border: 0;
    border-radius: 10px;
    background: #253789;
    color: #fff !important;
    text-decoration: none !important;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
    transition: transform .15s ease, opacity .15s ease;
}

.thanoria-jury-button:hover {
    opacity: .93;
    transform: translateY(-1px);
}

.thanoria-jury-login-form .thanoria-jury-button {
    margin-top: 6px;
    width: 100%;
}

.thanoria-jury-error {
    margin-top: 18px;
    background: #fff0f0;
    border: 1px solid #f1caca;
    color: #982525;
    border-radius: 10px;
    padding: 11px 13px;
}

.thanoria-jury-topbar {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 24px;
}

.thanoria-jury-topbar > div {
    min-width: 0;
}

.thanoria-jury-logout {
    flex: 0 0 auto;
    color: #253789;
    text-decoration: none !important;
    font-weight: 700;
    border: 1px solid #d6daea;
    border-radius: 10px;
    padding: 10px 14px;
    background: #fff;
    text-align: center;
}

.thanoria-jury-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.thanoria-report-card {
    min-width: 0;
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 22px;
    background: #fff;
    border: 1px solid #e6e8ef;
    border-radius: 16px;
    box-shadow: 0 7px 24px rgba(23, 29, 53, .05);
}

.thanoria-report-icon {
    width: 54px;
    height: 54px;
    min-width: 54px;
    border-radius: 13px;
    background: #c8b078;
    color: #171d35;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .04em;
}

.thanoria-report-content {
    min-width: 0;
    flex: 1 1 auto;
}

.thanoria-report-content h3 {
    margin: 2px 0 5px;
    font-size: 20px;
    line-height: 1.3;
    color: #171d35;
    overflow-wrap: anywhere;
}

.thanoria-report-formation {
    margin: 0 0 8px;
    color: #253789;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.thanoria-report-meta {
    margin: 3px 0;
    color: #707789;
    font-size: 14px;
}

.thanoria-report-actions {
    display: flex;
    gap: 9px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.thanoria-jury-button-secondary {
    background: #f0f2f8;
    color: #253789 !important;
}

.thanoria-jury-empty {
    width: 100%;
    background: #fff;
    border: 1px dashed #cbd0de;
    border-radius: 16px;
    padding: 34px;
    text-align: center;
    color: #707789;
}

/* Tablettes */
@media (max-width: 991.98px) {
    .thanoria-jury-card {
        padding: 30px;
    }

    .thanoria-jury-grid {
        grid-template-columns: 1fr;
    }
}

/* Mobiles */
@media (max-width: 767.98px) {
    .thanoria-jury-card {
        padding: 24px 20px;
        border-radius: 16px;
    }

    .thanoria-jury-card h2,
    .thanoria-jury-topbar h2 {
        font-size: 27px;
    }

    .thanoria-jury-topbar {
        flex-direction: column;
        gap: 16px;
    }

    .thanoria-jury-logout {
        width: 100%;
    }

    .thanoria-report-card {
        padding: 18px;
    }

    .thanoria-report-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        width: 100%;
    }

    .thanoria-report-actions .thanoria-jury-button {
        width: 100%;
        min-width: 0;
        padding-left: 12px;
        padding-right: 12px;
    }

    .thanoria-jury-empty {
        padding: 26px 20px;
    }
}

/* Petits mobiles */
@media (max-width: 479.98px) {
    .thanoria-report-card {
        flex-direction: column;
        gap: 14px;
    }

    .thanoria-report-icon {
        width: 46px;
        height: 46px;
        min-width: 46px;
        border-radius: 11px;
    }

    .thanoria-report-actions {
        grid-template-columns: 1fr;
    }

    .thanoria-jury-card h2,
    .thanoria-jury-topbar h2 {
        font-size: 24px;
    }
}
