/* Pages hors TP : activation explicite par la classe cyber-page. */
#main.cyber-page,
#content_t99.cyber-page,
#inner-content-cyber.cyber-page {
    padding: clamp(16px, 2vw, 28px);
    border-radius: var(--cyber-radius);
    background: var(--cyber-bg);
    color: var(--cyber-text);
    font-size: 16px;
    line-height: 1.65;
    box-sizing: border-box;
    overflow-wrap: anywhere;
}

#content_t99.cyber-page {
    width: 100%;
    max-width: 1270px;
    margin: 0 auto 28px;
}

.cyber-page h1,
#main.cyber-page h1 {
    margin: 0 0 20px;
    color: var(--cyber-text);
    font-size: clamp(26px, 3vw, 36px);
    line-height: 1.25;
}

.cyber-page h2,
#main.cyber-page h2 {
    margin: 24px 0 16px;
    color: var(--cyber-text);
    font-size: 22px;
    line-height: 1.35;
}

.cyber-page h3 {
    margin: 20px 0 12px;
    color: var(--cyber-text);
    font-size: 18px;
    line-height: 1.4;
}

.cyber-page > :is(h1, h2, h3):first-child {
    margin-top: 0;
    padding: 20px;
    border: 1px solid var(--cyber-border);
    border-radius: var(--cyber-radius);
    background: radial-gradient(ellipse at top right, #214b3d, transparent 75%), var(--cyber-surface);
}

.cyber-page p,
.cyber-page li {
    font-size: 15px;
}

.cyber-page a {
    color: var(--cyber-accent);
    text-underline-offset: 3px;
}

.cyber-page a:hover {
    color: var(--cyber-accent-text);
}

.cyber-page a:focus-visible,
.cyber-page :is(input, select, textarea, button):focus-visible {
    outline: 2px solid var(--cyber-accent);
    outline-offset: 3px;
}

.cyber-page hr {
    height: 1px;
    margin: 24px 0;
    border: 0;
    background: var(--cyber-border);
}

.cyber-page > form,
.cyber-page > .container > form {
    padding: 20px;
    margin: 20px 0;
    border: 1px solid var(--cyber-border);
    border-radius: var(--cyber-radius);
    background: var(--cyber-surface);
}

.cyber-page label:not(.rate label) {
    display: block;
    margin: 12px 0 6px;
    color: var(--cyber-text);
    font-size: 15px;
    line-height: 1.5;
    font-weight: 600;
}

.cyber-page input:not([type]):not(.wp-editor-wrap input),
.cyber-page input:is([type="text"], [type="email"], [type="password"], [type="url"], [type="number"], [type="search"], [type="tel"], [type="date"]):not(.wp-editor-wrap input),
.cyber-page select:not(.wp-editor-wrap select),
.cyber-page textarea:not(.wp-editor-area) {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 46px;
    margin: 0 0 12px;
    padding: 11px 13px;
    border: 1px solid var(--cyber-border);
    border-radius: 9px;
    background: var(--cyber-surface);
    color: var(--cyber-text);
    font: inherit;
    font-size: 15px;
    line-height: 1.5;
    box-sizing: border-box;
}

.cyber-page textarea:not(.wp-editor-area) {
    min-height: 150px;
    resize: vertical;
}

.cyber-page input:is([type="radio"], [type="checkbox"]) {
    width: 18px;
    height: 18px;
    margin: 0 8px 0 0;
    vertical-align: middle;
    accent-color: var(--cyber-accent);
}

.cyber-page button:not(.wp-editor-wrap button):not(.mce-container button),
.cyber-page input:is([type="submit"], [type="button"], [type="reset"]):not(.wp-editor-wrap input),
.cyber-page .button:not(.wp-editor-wrap .button) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    max-width: 100%;
    min-height: 44px;
    padding: 11px 18px;
    margin: 8px 8px 8px 0;
    border: 1px solid var(--cyber-accent);
    border-radius: 9px;
    background: var(--cyber-accent-bg);
    color: var(--cyber-text);
    box-shadow: none;
    text-shadow: none;
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
    text-transform: none;
    white-space: normal;
    cursor: pointer;
    box-sizing: border-box;
}

.cyber-page button:disabled,
.cyber-page input:disabled {
    opacity: .55;
    cursor: not-allowed;
}

.cyber-page table:not(.wp-editor-wrap table):not(.mce-container table) {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 20px 0;
    overflow-x: auto;
    border: 1px solid var(--cyber-border);
    border-collapse: collapse;
    border-radius: 10px;
    background: var(--cyber-surface);
    color: var(--cyber-text);
    font-size: 14px;
}

.cyber-page :is(th, td):not(.wp-editor-wrap th):not(.wp-editor-wrap td):not(.mce-container th):not(.mce-container td) {
    padding: 12px;
    border: 0;
    border-bottom: 1px solid var(--cyber-border);
    vertical-align: middle;
    overflow-wrap: normal;
}

.cyber-page th:not(.wp-editor-wrap th):not(.mce-container th) {
    background: var(--cyber-accent-bg);
    color: var(--cyber-text);
    font-weight: 600;
}

.cyber-page img {
    max-width: 100%;
    height: auto;
}

.cyber-page img.avatar {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    object-fit: cover;
}

.cyber-page .two-columns {
    gap: 20px;
}

.cyber-page .colonne {
    min-width: min(250px, 100%);
}

.cyber-page nobr {
    white-space: normal;
}

.cyber-page > .container {
    width: 100%;
    padding: 0;
}

.cyber-page .retour,
.cyber-page .reset {
    float: none;
    margin: 16px 0;
    font-size: 14px;
}

.cyber-page .retour a {
    display: inline-block;
    padding: 10px 16px;
    border: 1px solid var(--cyber-border);
    border-radius: 9px;
    background: var(--cyber-accent-bg);
    text-decoration: none;
}

.cyber-page .retour h2,
#main.cyber-page .retour h2 {
    padding: 0;
    margin: 0;
    font-size: 15px;
}

.cyber-page .termine,
.cyber-page .bravo,
.cyber-page #bravo,
.cyber-page .tp_note {
    position: static;
    float: none;
    display: inline-block;
    padding: 10px 16px;
    margin: 12px 0;
    border: 1px solid var(--cyber-border);
    border-radius: 10px;
    background: var(--cyber-accent-bg);
    color: var(--cyber-accent-text);
    font-size: 16px;
    text-shadow: none;
    transform: none;
}

.cyber-page .blink_me {
    animation: none;
}

.cyber-page .alerte,
.cyber-page .alert {
    color: #ffb4b4;
}

.cyber-page--connexion #loginform,
.cyber-page--inscription > form {
    max-width: 600px;
}

.cyber-page--2fa-grille table {
    font-variant-numeric: tabular-nums;
}

@media (max-width: 700px) {
    .cyber-page .two-columns {
        flex-direction: column;
    }

    .cyber-page :is(th, td):not(.wp-editor-wrap th):not(.wp-editor-wrap td) {
        padding: 10px;
    }
}

.cyber-page .cyber-page__hero {
    padding: 22px;
    margin: 0 0 24px;
    border: 1px solid var(--cyber-border);
    border-radius: var(--cyber-radius);
    background: radial-gradient(ellipse at top right, #214b3d, transparent 75%), var(--cyber-surface);
}

.cyber-page .cyber-page__hero h1 {
    margin: 0 0 12px;
}

.cyber-page__hero p {
    color: var(--cyber-muted);
}

.cyber-page__navigation {
    margin: 0 0 20px;
}

.cyber-page .cyber-page__challenge-list,
.cyber-page .cyber-page__resource-list {
    padding: 0;
    margin: 0;
    list-style: none;
}

.cyber-page .cyber-page__challenge-card {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 20px;
    margin-bottom: 12px;
    border: 1px solid var(--cyber-border);
    border-radius: var(--cyber-radius);
    background: var(--cyber-surface);
}

.cyber-page__challenge-info {
    flex: 1;
    min-width: 160px;
}

.cyber-page__challenge-info > a {
    color: var(--cyber-text);
    font-size: 17px;
    font-weight: 600;
    text-decoration: none;
}

.cyber-page__challenge-info > a:hover {
    color: var(--cyber-accent);
}

.cyber-page__metrics {
    display: block;
    margin-top: 5px;
    color: var(--cyber-muted);
    font-size: 13px;
}

.cyber-page__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cyber-page__total {
    padding: 18px 0;
    color: var(--cyber-muted);
}

.cyber-page__total strong {
    color: var(--cyber-accent);
}

.cyber-page__resource-list li {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
    padding: 14px 0;
    border-bottom: 1px solid var(--cyber-border);
}

.cyber-page__resource-list li:last-child {
    border-bottom: 0;
}

@media (max-width: 600px) {
    .cyber-page .cyber-page__challenge-card {
        padding: 16px;
    }

    .cyber-page__challenge-info {
        flex-basis: 100%;
    }
}

.cyber-page__form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin: 24px 0;
}

.cyber-page__form-grid h3 {
    margin-top: 0;
}

/* Préserver l'indice volontairement dissimulé dans la page 404 pédagogique. */
.cyber-page--404 span[style="color: #2c2e33;"] {
    color: var(--cyber-bg) !important;
}

@media (max-width: 700px) {
    .cyber-page__form-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

.cyber-page .question {
    padding: 20px;
    margin: 20px 0;
    border: 1px solid var(--cyber-border);
    border-radius: var(--cyber-radius);
    background: var(--cyber-surface);
}

.cyber-page .question_text {
    display: block;
    margin-bottom: 12px;
    color: var(--cyber-text);
    font-size: 17px;
}

.cyber-page #timer_div {
    background: var(--cyber-surface);
    border: 1px solid var(--cyber-border);
    color: var(--cyber-text);
}
