/* ═══════════════════════════════════════════════════════════════════
   pages.css — Styles des pages misc (home, tools, changelog, legal)
   Chargé via $extraCss dans :
     - /index.php            (home)
     - /tools/index.php      (toolbox)
     - /changelog/index.php  (changelog)
     - /legal.php            (mentions légales)
     - /ip.php               (mon IP)
     - /ets2/                (mods ETS2 + générateur de combo)
   ═══════════════════════════════════════════════════════════════════ */


/* ╔═══════════════════════════════════════════════════════════════════╗
   ║ HOME — /index.php                                                  ║
   ╚═══════════════════════════════════════════════════════════════════╝ */

/* ── Accroche ── */
.home_accroche {
    text-align: center;
    padding: 20px 10px 2px;
    color: var(--title);
    letter-spacing: 0.3px;
    font-size: 21px;
    font-weight: 700;
    margin: 0 auto;
    max-width: 760px;
    font-family: Helvetica, Arial, sans-serif;
    line-height: 1.35;
}
.home_bio {
    border-left: 3px solid var(--red);
    padding: 10px 16px;
    margin: 14px 0;
    background: var(--card);
    border-radius: 0 5px 5px 0;
    font-size: 16px;
    color: var(--text);
    line-height: 1.7;
}
.home_bio strong { color: var(--accent-text); }

/* ── Blocs derniers ajouts ── */
.home_latest {
    display: flex;
    gap: 14px;
    margin-top: 18px;
}
.home_latest_box {
    flex: 1;
    min-width: 0;
}
.home_latest_box .cps_titre { font-size: 90%; }

.latest_item {
    display: block;
    background: var(--card);
    border: 1px solid var(--bd);
    border-left: 3px solid var(--accent);
    border-radius: 4px;
    padding: 10px 14px;
    margin-bottom: 8px;
    text-decoration: none;
    color: var(--fg);
    transition: background 0.3s, border-color 0.3s;
}
.latest_item:hover {
    background: var(--hover);
    border-left-color: var(--red);
}
.latest_item .li_title {
    color: var(--title);
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 3px;
    transition: color 0.2s;
}
.latest_item:hover .li_title { color: var(--accent-text); }
.latest_item .li_desc {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.4;
}
.latest_item .li_meta {
    color: var(--muted);
    font-size: 11px;
    color: var(--dim);
    font-size: 12px;
    margin-top: 4px;
    font-family: Azonix;
}

/* ── France Fuites / Veille Cyber (home) ── */
.cw_home {
    display: flex;
    gap: 14px;
    margin-bottom: 18px;
}
.cw_col {
    flex: 1;
    min-width: 0;
}
.cw_empty {
    color: var(--muted);
    font-size: 13px;
    background: var(--card);
    border: 1px solid var(--bd);
    border-radius: 4px;
    padding: 10px 14px;
    margin: 0;
}
.cw_item {
    display: block;
    background: var(--card);
    border: 1px solid var(--bd);
    border-left: 3px solid var(--bar-partage);
    border-radius: 4px;
    padding: 10px 14px;
    margin-bottom: 8px;
    text-decoration: none;
    color: var(--fg);
    transition: background 0.3s, border-color 0.3s;
}
.cw_item:hover {
    background: var(--hover);
    border-left-color: var(--red);
}
.cw_col_france .cw_item { border-left-color: var(--red); }
.cw_sync_info {
    color: var(--muted);
    font-size: 11px;
    margin: -2px 0 8px;
}
.cw_item_head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 4px;
}
.cw_badge {
    font-size: 10px;
    font-weight: bold;
    letter-spacing: 0.4px;
    padding: 1px 6px;
    border-radius: 3px;
    border: 1px solid currentColor;
    white-space: nowrap;
}
.cw_badge_france { color: var(--red); }
.cw_badge_cyber { color: var(--acc-rapide); }
.cw_date {
    color: var(--muted);
    font-size: 11px;
    font-family: monospace;
    white-space: nowrap;
}
.cw_item_title {
    color: var(--title);
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 3px;
    transition: color 0.2s;
}
.cw_item:hover .cw_item_title { color: var(--accent-text); }
.cw_item_desc {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.4;
}
@media (max-width: 700px) {
    .cw_home { flex-direction: column; }
}
.cw_home_cyber_compact {
    margin-bottom: 18px;
}
.cw_home_cyber_compact .cw_items {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}
.cw_home_cyber_compact .cw_items .cw_item {
    margin-bottom: 0;
}
@media (max-width: 700px) {
    .cw_home_cyber_compact .cw_items { grid-template-columns: 1fr; }
}
/* Badge CISA KEV plus long que les badges CERT-FR ("CISA KEV — EXPLOITATION
   CONNUE") : dans la variante compacte (3 cartes en ligne), il doit pouvoir
   passer à la ligne sous la date d'ajout plutôt que déborder de la carte. */
.cw_home_cyber_compact .cw_item_head {
    flex-wrap: wrap;
}
.cw_home_cyber_compact .cw_item_head .cw_badge {
    white-space: normal;
    max-width: 100%;
}

/* ── Veille — archives (/veille/) ── */
.cw_tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 14px 0 18px;
}
.cw_tab {
    display: inline-block;
    padding: 6px 14px;
    border: 1px solid var(--bd2);
    border-radius: 4px;
    background: var(--card);
    color: var(--muted);
    text-decoration: none;
    font-family: Azonix, sans-serif;
    font-size: 12px;
    letter-spacing: 0.3px;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.cw_tab:hover {
    color: var(--accent-text);
    border-color: var(--accent);
    background: var(--hover);
}
.cw_tab[aria-current="page"] {
    color: var(--strong);
    background: color-mix(in oklch, var(--accent) 20%, transparent);
    border-color: var(--accent);
}
.cw_tab:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}
.cw_archive {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    align-items: start;
}
.cw_archive .cw_item {
    margin-bottom: 0;
    min-width: 0;
}
.cw_archive .cw_item_head {
    flex-wrap: wrap;
}
.cw_archive .cw_item_title,
.cw_archive .cw_item_desc {
    overflow-wrap: anywhere;
}
.cw_archive_day {
    grid-column: 1 / -1;
}
@media (max-width: 700px) {
    .cw_archive { grid-template-columns: 1fr; }
}

/* ── Veille Cyber — cartes de publications combinées à la main ── */
.cw_group {
    min-width: 0;
    background: var(--card);
    border: 1px solid var(--bd);
    border-left: 3px solid var(--bar-partage);
    border-radius: 4px;
    padding: 10px 14px;
}
.cw_group_title {
    color: var(--title);
    font-size: 14px;
    font-weight: bold;
    margin: 0;
    overflow-wrap: anywhere;
}
.cw_group_tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 6px;
}
.cw_group_title { margin: 6px 0 4px; }
.cw_group_list {
    list-style: none;
    display: block;
    min-height: 0;
    height: auto;
    margin: 0;
    padding: 0;
    font-family: inherit;
    font-size: 13px;
}
.cw_group_list li {
    float: none;
    padding: 4px 0;
    border-top: 1px solid var(--bd);
    line-height: 1.4;
    overflow-wrap: anywhere;
}
.cw_group_list li:first-child { border-top: 0; }
.cw_group_list li a:link,
.cw_group_list li a:visited {
    display: inline;
    padding: 0;
    text-align: left;
    white-space: normal;
    color: var(--fg);
    text-decoration: none;
}
.cw_group_list li a:hover { color: var(--accent-text); }
.cw_group_list li a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}
.cw_group_src {
    color: var(--muted);
    font-size: 11px;
}
/* ── Changelog inline (home) ── */
.changelog_item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: var(--card);
    border: 1px solid var(--bd);
    border-left: 3px solid var(--accent);
    border-radius: 4px;
    padding: 10px 14px;
    margin-bottom: 8px;
    transition: background 0.3s;
}
.changelog_item:hover { background: var(--hover); }
.cl_date {
    min-width: 70px;
    color: var(--dim);
    font-size: 12px;
    font-family: monospace;
    padding-top: 2px;
    white-space: nowrap;
}
.cl_body { flex: 1; min-width: 0; }
.cl_body .li_title { color: var(--title); font-size: 14px; font-weight: bold; margin-bottom: 2px; }
.changelog_item:hover .li_title { color: var(--accent-text); }
.cl_body .li_desc { color: var(--muted); font-size: 13px; line-height: 1.4; }

/* ── cps_titre utilisé comme lien (CTA) ── */
a.cps_titre_link {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
}
a.cps_titre_link:hover {
    border-color: var(--red);
    background: var(--hover);
    color: var(--accent-text);
}

/* ── Groupe titre + lien à côté dans un quizz_header ── */
.quizz_title_group {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    min-width: 0;
}
.quizz_title_group .cps_titre {
    width: auto;
    margin: 0;
    padding: 4px 10px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ── Lien voir tout — pill assorti aux tags ── */
a.voir_tout {
    align-self: center;
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    gap: 6px;
    padding: 3px 7px;
    border: 1px solid var(--bd3);
    border-radius: 3px;
    background: var(--tag-bg);
    color: var(--muted);
    font-family: Azonix, sans-serif;
    font-size: 11px;
    line-height: 1.2;
    letter-spacing: 0.35px;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
}
a.voir_tout:hover,
a.voir_tout:focus-visible {
    border-color: var(--accent);
    background: var(--hover);
    color: var(--accent-text);
}
a.voir_tout:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}
.voir_tout_fleche {
    font-family: monospace;
    font-size: 14px;
    line-height: 0.8;
    transition: transform 0.2s;
}
a.voir_tout:hover .voir_tout_fleche,
a.voir_tout:focus-visible .voir_tout_fleche {
    transform: translateX(2px);
}

.latest_empty {
    color: var(--dim);
    font-size: 13px;
    font-style: italic;
    padding: 10px 0;
}

/* ── Quizz du jour ── */
.quizz_box {
    background: var(--card);
    border: 1px solid var(--bd);
    border-left: 3px solid var(--red);
    border-radius: 4px;
    padding: 16px 20px;
    margin: 18px 0;
}
.quizz_header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.quizz_header .cps_titre { font-size: 90%; margin: 0; }
.quizz_cat {
    font-size: 12px;
    font-family: Azonix;
    color: var(--accent-text);
    border: 1px solid var(--accent);
    border-radius: 3px;
    padding: 2px 8px;
    background: color-mix(in oklch, var(--accent) 10%, transparent);
}
.quizz_question {
    color: var(--text);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 14px;
}
.quizz_choices {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.quizz_choice {
    display: block;
    width: 100%;
    text-align: left;
    background: var(--card-deep);
    border: 1px solid var(--bd2);
    border-radius: 4px;
    padding: 10px 14px;
    color: var(--text);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}
.quizz_choice:hover:not(.disabled) {
    border-color: var(--accent);
    color: var(--strong);
    background: var(--hover);
}
.quizz_choice .choice_letter {
    color: var(--accent-text);
    font-family: Azonix;
    font-size: 12px;
    margin-right: 8px;
}
.quizz_choice.correct {
    border-color: var(--ok);
    background: color-mix(in oklch, var(--ok) 12%, transparent);
    color: var(--ok);
}
.quizz_choice.wrong {
    border-color: var(--ko);
    background: color-mix(in oklch, var(--ko) 10%, transparent);
    color: var(--ko);
    text-decoration: line-through;
}
.quizz_choice.disabled { cursor: default; opacity: 0.6; }
.quizz_choice.correct.disabled { opacity: 1; }
.quizz_explication {
    display: none;
    margin-top: 14px;
    padding: 12px 14px;
    background: var(--card-deep);
    border: 1px dashed var(--bd3);
    border-radius: 4px;
    font-size: 13px;
    color: var(--desc);
    line-height: 1.7;
}
.quizz_explication strong { color: var(--accent-text); }
.quizz_explication.visible { display: block; animation: kp_fadeIn 0.3s; }

/* ── Page /quizz : grille 2 colonnes ── */
.quizz_grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin: 18px 0;
}
.quizz_col { min-width: 0; }
@media (max-width: 760px) {
    .quizz_grid { grid-template-columns: 1fr; }
}

/* ── Mode jeu : CTA (réutilise .doc_card) et partie ── */
.quizz_play_card {
    width: 100% !important;
    margin: 6px 0 24px;
}
.quizz_play_card .doc_title { font-size: 18px; }
.quizz_play_btn {
    display: inline-block;
    cursor: pointer;
    padding: 10px 22px;
    background: color-mix(in oklch, var(--accent) 10%, transparent);
    border: 1px solid var(--accent);
    border-radius: 4px;
    color: var(--accent-text);
    font-family: Azonix;
    font-size: 12px;
    text-decoration: none;
    transition: all 0.2s;
    margin: 0 4px;
}
.quizz_play_btn:hover {
    background: color-mix(in oklch, var(--accent) 20%, transparent);
    color: var(--strong);
}
.quizz_play_btn_alt {
    border-color: var(--bd3);
    color: var(--desc);
    background: var(--card-deep);
}
.quizz_play_btn_alt:hover {
    border-color: var(--bd3);
    color: var(--strong);
    background: var(--card-strong);
}

/* ── Mode jeu : écran de config ── */
.quizz_setup {
    background: var(--card);
    border: 1px solid var(--bd);
    border-radius: 4px;
    padding: 20px;
    margin: 18px 0;
}
.quizz_setup_label {
    font-family: Azonix;
    font-size: 12px;
    color: var(--desc);
    margin: 18px 0 8px;
}
.quizz_setup_label:first-of-type { margin-top: 0; }
.quizz_opts {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.quizz_opt input { display: none; }
.quizz_opt span {
    display: inline-block;
    padding: 8px 16px;
    background: var(--card-deep);
    border: 1px solid var(--bd2);
    border-radius: 4px;
    color: var(--text);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}
.quizz_opt span:hover {
    border-color: var(--accent);
    color: var(--strong);
}
.quizz_opt input:checked + span {
    border-color: var(--accent);
    background: color-mix(in oklch, var(--accent) 10%, transparent);
    color: var(--accent-text);
}
.quizz_opt.off span {
    opacity: 0.35;
    cursor: not-allowed;
}
.quizz_opt.off span:hover {
    border-color: var(--bd2);
    color: var(--text);
}
.quizz_setup_go {
    margin: 22px 0 0;
    cursor: pointer;
}

.quizz_game { margin: 18px 0; }
.quizz_progress {
    font-family: Azonix;
    font-size: 12px;
    color: var(--desc);
    text-align: right;
    margin-bottom: 10px;
}
.quizz_progress span { color: var(--accent-text); }
.quizz_progressbar {
    height: 4px;
    background: var(--chip);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 14px;
}
.quizz_progressbar_fill {
    height: 100%;
    background: var(--accent);
    border-radius: 2px;
    transition: width 0.3s;
}
.quizz_next_btn {
    margin-top: 14px;
    padding: 8px 18px;
    background: color-mix(in oklch, var(--accent) 10%, transparent);
    border: 1px solid var(--accent);
    border-radius: 4px;
    color: var(--accent-text);
    font-family: Azonix;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}
.quizz_next_btn:hover {
    background: color-mix(in oklch, var(--accent) 20%, transparent);
    color: var(--strong);
}

.quizz_end_box {
    text-align: center;
    padding: 30px 20px;
    background: var(--card);
    border: 1px solid var(--bd);
    border-radius: 4px;
    animation: kp_fadeIn 0.4s;
}
.quizz_end_score {
    font-family: Azonix;
    font-size: 56px;
    color: var(--accent-text);
    margin-bottom: 8px;
}
.quizz_end_score .qg_total {
    font-size: 28px;
    color: var(--dim);
}
.quizz_end_msg {
    color: var(--text);
    font-size: 16px;
    margin-bottom: 22px;
}
.quizz_end_actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ── Accès rapide ── */
.home_quick_start {
    margin: 10px 0 18px;
}
.qs_links {
    display: flex;
    gap: 12px;
    justify-content: center;
}
.qs_card {
    flex: 1;
    max-width: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 14px 10px;
    background: var(--card);
    border: 1px solid var(--bd);
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s;
}
.qs_card:hover {
    border-color: var(--accent);
    background: var(--hover);
}
.qs_icon { font-size: 24px; }
.qs_label {
    color: var(--accent-text);
    font-family: Azonix;
    font-size: 13px;
}
.qs_sub {
    color: var(--dim);
    font-size: 12px;
}
/* ── À la une (docs épinglées) ── */
.home_featured {
    margin: 18px 0;
}
.home_featured .cps_titre {
    font-size: 90%;
    margin-bottom: 10px;
}
.featured_sub {
    color: var(--dim);
    font-size: 12px;
    font-family: monospace;
    letter-spacing: 1px;
    text-transform: none;
}
.featured_grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
}
.featured_card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px 14px;
    background: var(--card);
    border: 1px solid var(--bd);
    border-left: 3px solid var(--accent);
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.3s, border-color 0.3s, transform 0.2s;
}
.featured_card:hover {
    background: var(--hover);
    border-left-color: var(--red);
    transform: translateY(-2px);
}
.featured_cat {
    align-self: flex-start;
    color: var(--muted);
    font-size: 12px;
    font-family: Azonix, monospace;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: 1px solid var(--bd2);
    border-radius: 3px;
    padding: 2px 6px;
}
.featured_title {
    color: var(--title);
    font-size: 14px;
    font-weight: bold;
    line-height: 1.3;
    transition: color 0.2s;
}
.featured_card:hover .featured_title { color: var(--accent-text); }
.featured_desc {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
}

/* ── Cartes "Contenu recommandé" : posts épinglés + docs featured ── */
/* Format unifié (carrés avec image), partagé avec /posts/ (cf. posts.css) */
.featured_posts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 180px));
    gap: 12px;
    margin: 14px 0 20px;
    justify-content: center;
}
@media (max-width: 900px) {
    .featured_posts { grid-template-columns: repeat(auto-fit, minmax(140px, 160px)); }
}
@media (max-width: 700px) {
    .featured_posts { grid-template-columns: repeat(2, minmax(0, 140px)); }
}
.fp_card {
    display: block;
    background: var(--card-strong);
    border: 1px solid var(--bd);
    border-radius: 5px;
    padding: 8px;
    text-decoration: none;
    color: var(--text);
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}
.fp_card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 6px 18px color-mix(in oklch, var(--accent) 18%, transparent);
}
.fp_img_wrap {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: var(--thumb-bg);
    border: 1px solid var(--bd2);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.fp_img_wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.fp_card:hover .fp_img_wrap img { transform: scale(1.04); }
.fp_title {
    font-family: Helvetica, Arial, sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: var(--strong);
    line-height: 1.35;
    margin-bottom: 3px;
}
.fp_card:hover .fp_title { color: var(--accent-text); }
.fp_date {
    --post-accent: var(--bar-post);
    display: inline-flex;
    align-items: center;
    width: fit-content;
    max-width: 100%;
    padding: 3px 7px;
    border-radius: 3px;
    border: 1px solid color-mix(in oklch, var(--post-accent) 32%, transparent);
    background: color-mix(in oklch, var(--post-accent) 8%, transparent);
    color: var(--desc);
    font-family: monospace;
    font-size: 12px;
    font-variant-numeric: tabular-nums;
    line-height: 1.35;
}

/* ── Variante doc : titre dans la "vignette" + catégorie ── */
.fp_card_doc .fp_img_wrap {
    background: var(--doc-tile);
    position: relative;
    padding: 28px 10px 22px;
}
.fp_card_doc .fp_doc_title {
    font-family: Helvetica, Arial, sans-serif;
    font-weight: 700;
    color: var(--doc-tile-fg);
    font-size: 14px;
    line-height: 1.3;
    text-align: center;
    letter-spacing: 0.5px;
    text-shadow: var(--tile-shadow);
    transition: color 0.25s ease;
    /* Limite à 4 lignes pour éviter les overflows sur titres longs */
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.fp_card_doc:hover .fp_doc_title { color: var(--accent-text); }
.fp_card_doc .fp_cat_badge {
    position: absolute;
    bottom: 6px;
    left: 6px;
    right: 6px;
    text-align: center;
    font-family: Azonix, monospace;
    font-size: 8px;
    color: var(--muted);
    letter-spacing: 1px;
    text-transform: uppercase;
    background: var(--scrim);
    padding: 2px 4px;
    border-radius: 2px;
}
/* Description en Azonix (au lieu du fp_date monospace) */
.fp_card_doc .fp_doc_desc {
    font-family: Azonix, sans-serif;
    font-size: 12px;
    color: var(--desc);
    line-height: 1.4;
    letter-spacing: 0.3px;
    margin-top: 4px;
    /* Limite à 4 lignes */
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── Badge type (POST / RAPIDE / DOC) en haut à gauche de l'image ── */
.fp_type_badge {
    position: absolute;
    top: 12px;
    left: 12px;
    font-family: Azonix, monospace;
    font-size: 12px;
    letter-spacing: 1px;
    padding: 3px 7px;
    border-radius: 2px;
    background: var(--scrim);
    z-index: 2;
}

/* ── Pagination (home) ── */
.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 14px;
    flex-wrap: wrap;
}
.pg_link {
    display: inline-block;
    min-width: 32px;
    height: 32px;
    line-height: 32px;
    text-align: center;
    font-size: 13px;
    font-family: Azonix, sans-serif;
    color: var(--muted);
    background: var(--card);
    border: 1px solid var(--bd2);
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s;
    padding: 0 8px;
}
.pg_link:hover {
    color: var(--accent-text);
    border-color: var(--accent);
    background: var(--hover);
}
.pg_current {
    color: var(--strong);
    background: color-mix(in oklch, var(--accent) 20%, transparent);
    border-color: var(--accent);
}

@media (max-width: 700px) {
    .home_latest { flex-direction: column; }
    .qs_links { flex-direction: column; align-items: center; }
    .qs_card { max-width: 100%; width: 100%; }

    /* ── Réduction du contenu sur la home en mobile ── */
    /* Posts : 5 max au lieu de 10 */
    .news_feed_item:nth-of-type(n+6) { display: none; }
    /* Recommandés : 2 max */
    .fp_card:nth-of-type(n+3) { display: none; }
    /* Dernières docs ajoutées : 1 max */
    .home_latest_box .latest_item:nth-of-type(n+2) { display: none; }
}


/* ╔═══════════════════════════════════════════════════════════════════╗
   ║ TOOLBOX — /tools/index.php                                         ║
   ╚═══════════════════════════════════════════════════════════════════╝ */

/* ── Layout Toolbox ── */
.toolbox_grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
}
.tool_card {
    background: var(--card);
    border: 1px solid var(--bd);
    border-left: 4px solid var(--accent);
    border-radius: 5px;
    padding: 14px 18px;
    width: calc(50% - 8px);
    box-sizing: border-box;
    cursor: pointer;
    transition: background 0.3s, border-color 0.3s;
}
.tool_card:hover,
.tool_card.active {
    background: var(--hover);
    border-color: var(--accent);
}
.tool_card.active { border-left-color: var(--red); }
.tool_card_title {
    font-size: 16px;
    font-weight: bold;
    color: var(--title);
    transition: color 0.2s;
}
.tool_card:hover .tool_card_title,
.tool_card.active .tool_card_title { color: var(--accent-text); }
.tool_card_desc {
    font-size: 13px;
    color: var(--muted);
    margin-top: 4px;
}
.tool_card_example {
    font-size: 12px;
    color: var(--dim);
    margin-top: 6px;
    font-style: italic;
    font-family: monospace;
}

/* ── Zone outil active ── */
.tool_panel {
    display: none;
    background: var(--card-deep);
    border: 1px solid var(--bd2);
    border-left: 3px solid var(--accent);
    border-radius: 4px;
    padding: 18px 20px;
    margin-bottom: 20px;
    animation: kp_fadeIn 0.3s;
}
.tool_panel.visible { display: block; }

/* Keyframes unifiée (utilisée aussi par quizz_explication) */
@keyframes kp_fadeIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Formulaires ── */
.tool_row {
    display: flex;
    gap: 10px;
    align-items: flex-end;
    flex-wrap: wrap;
    margin-bottom: 10px;
}
.tool_field {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 140px;
}
.tool_field label {
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 4px;
    font-family: Azonix;
}
.tool_field input,
.tool_field select {
    background: var(--field-bg);
    border: 1px solid var(--bd2);
    border-radius: 3px;
    color: var(--strong);
    padding: 8px 10px;
    font-size: 14px;
    font-family: monospace;
    outline: none;
    transition: border-color 0.2s;
}
.tool_field input:focus,
.tool_field select:focus { border-color: var(--accent); }
.tool_btn {
    background: var(--btn-grad);
    color: var(--btn-fg);
    border: none;
    border-radius: 3px;
    padding: 9px 18px;
    font-size: 13px;
    font-family: Azonix;
    cursor: pointer;
    transition: opacity 0.2s;
    white-space: nowrap;
}
.tool_btn:hover { opacity: 0.85; }

/* ── Résultats ── */
.tool_result {
    background: var(--card-deep);
    border: 1px solid var(--bd2);
    border-radius: 4px;
    padding: 12px 14px;
    margin-top: 12px;
    font-family: monospace;
    font-size: 13px;
    color: var(--text);
    line-height: 1.8;
    white-space: pre-wrap;
    word-break: break-all;
    max-height: 400px;
    overflow-y: auto;
}
.tool_result .r_label { color: var(--muted); }
.tool_result .r_value { color: var(--accent-text); }
.tool_result .r_sep   { color: var(--bd2); }

/* ── Tabs internes ── */
.tool_tabs {
    display: flex;
    gap: 2px;
    margin-bottom: 12px;
}
.tool_tab {
    background: var(--card-deep);
    border: 1px solid var(--bd2);
    border-bottom: none;
    border-radius: 4px 4px 0 0;
    padding: 6px 14px;
    font-size: 12px;
    color: var(--muted);
    cursor: pointer;
    transition: all 0.2s;
}
.tool_tab:hover { color: var(--text); }
.tool_tab.active {
    background: var(--field-bg);
    color: var(--accent-text);
    border-color: var(--accent);
}

/* ── Config options ── */
.config_options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}
.config_opt {
    background: var(--card-deep);
    border: 1px solid var(--bd2);
    border-radius: 3px;
    padding: 5px 10px;
    font-size: 12px;
    color: var(--desc);
    cursor: pointer;
    transition: all 0.2s;
}
.config_opt:hover {
    border-color: var(--bd3);
    color: var(--strong);
}
.config_opt.selected {
    border-color: var(--accent);
    color: var(--accent-text);
    background: var(--hover);
}

/* ── Copier ── */
.copy_wrap { position: relative; }
.copy_btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--card-strong);
    border: 1px solid var(--bd3);
    color: var(--muted);
    border-radius: 3px;
    padding: 3px 10px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}
.copy_btn:hover {
    border-color: var(--accent);
    color: var(--accent-text);
}

/* ── Liens utiles ── */
.link_filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 14px;
}
.link_chip {
    background: none;
    border: 1px solid var(--bd2);
    color: var(--muted);
    border-radius: 20px;
    padding: 5px 14px;
    font-size: 12px;
    font-family: inherit;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.link_chip:hover {
    border-color: var(--accent);
    color: var(--accent-text);
}
.link_chip.active {
    border-color: var(--accent);
    color: var(--accent-text);
    background: color-mix(in oklch, var(--accent) 10%, transparent);
}
#link_search {
    margin-left: auto;
    background: var(--card);
    border: 1px solid var(--bd2);
    color: var(--text);
    border-radius: 5px;
    padding: 6px 10px;
    font-size: 12px;
    font-family: inherit;
    width: 150px;
}
#link_search:focus {
    border-color: var(--accent);
    outline: none;
}
.links_grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 10px;
    margin-bottom: 18px;
}
.link_card {
    display: block;
    background: var(--card);
    border: 1px solid var(--bd);
    border-radius: 5px;
    padding: 12px 14px;
    text-decoration: none;
    transition: border-color 0.2s, background 0.2s;
}
.link_card:hover {
    border-color: var(--accent);
    background: var(--hover);
    text-decoration: none;
}
.link_card_head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
}
.link_card_nom {
    color: var(--title);
    font-weight: bold;
    font-size: 14px;
    transition: color 0.2s;
}
.link_card:hover .link_card_nom { color: var(--accent-text); }
.link_card_head svg {
    color: var(--dim);
    flex: none;
}
.link_card_domain {
    display: block;
    font-family: monospace;
    font-size: 12px;
    color: var(--dim);
    margin: 2px 0 6px;
}
.link_card_desc {
    display: block;
    font-size: 12px;
    color: var(--muted);
    line-height: 1.5;
}
.links_empty {
    display: none;
    color: var(--dim);
    text-align: center;
    font-size: 13px;
    padding: 10px 0;
}

@media (max-width: 700px) {
    .tool_card { width: 100%; }
    .tool_row { flex-direction: column; }
    #link_search { margin-left: 0; width: 100%; }
}


/* ╔═══════════════════════════════════════════════════════════════════╗
   ║ CHANGELOG — /changelog/index.php                                   ║
   ╚═══════════════════════════════════════════════════════════════════╝ */

.cl_page_titre {
    color: var(--title);
    font-family: Helvetica, Arial, sans-serif;
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 6px;
}
.cl_page_count {
    color: var(--dim);
    font-size: 12px;
    margin-bottom: 18px;
}

.cl_entry {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background: var(--card);
    border: 1px solid var(--bd);
    border-left: 3px solid var(--accent);
    border-radius: 4px;
    padding: 12px 16px;
    margin-bottom: 8px;
    transition: background 0.3s;
}
.cl_entry:hover { background: var(--hover); }
.cl_entry_date {
    min-width: 80px;
    color: var(--dim);
    font-size: 12px;
    font-family: monospace;
    padding-top: 2px;
    white-space: nowrap;
}
.cl_entry_body { flex: 1; min-width: 0; }
.cl_entry_body .cl_title {
    color: var(--title);
    font-size: 15px;
    font-weight: bold;
    margin-bottom: 3px;
    transition: color 0.2s;
}
.cl_entry:hover .cl_title { color: var(--accent-text); }
.cl_entry_body .cl_desc {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

/* ── Pagination changelog ── */
.cl_pagination {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
}
.cl_pagination a,
.cl_pagination span {
    display: inline-block;
    padding: 6px 12px;
    font-size: 12px;
    font-family: Azonix, sans-serif;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s;
}
.cl_pagination a {
    background: var(--card);
    border: 1px solid var(--bd);
    color: var(--muted);
}
.cl_pagination a:hover {
    border-color: var(--accent);
    color: var(--accent-text);
    background: var(--hover);
}
.cl_pagination .active {
    background: color-mix(in oklch, var(--accent) 15%, transparent);
    border: 1px solid var(--accent);
    color: var(--accent-text);
}
.cl_pagination .disabled {
    color: var(--dim);
    border: 1px solid var(--bd);
    background: var(--card-deep);
    pointer-events: none;
}
.cl_empty {
    color: var(--dim);
    font-size: 14px;
    font-style: italic;
    padding: 20px 0;
}


/* ╔═══════════════════════════════════════════════════════════════════╗
   ║ LEGAL — /legal.php                                                 ║
   ╚═══════════════════════════════════════════════════════════════════╝ */

.legal_section {
    background: var(--card);
    border: 1px solid var(--bd);
    border-left: 3px solid var(--accent);
    border-radius: 4px;
    padding: 16px 20px;
    margin-bottom: 16px;
    color: var(--text);
    line-height: 1.7;
    font-size: 15px;
}
.legal_section h2 {
    color: var(--title);
    font-size: 16px;
    font-family: Helvetica, Arial, sans-serif;
    margin: 0 0 10px 0;
    font-weight: bold;
}
.legal_section p { margin: 0 0 8px 0; }
.legal_section p:last-child { margin-bottom: 0; }
.legal_section a { color: var(--accent-text); text-decoration: none; }
.legal_section a:hover { text-decoration: underline; }
.legal_section strong { color: var(--text); }
.kyo_optout { margin-top: 12px; }
.kyo_optout_line {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    cursor: pointer;
    color: var(--text);
}
.kyo_optout_line input { margin-top: 3px; accent-color: var(--accent); cursor: pointer; }
.kyo_optout_line.is_disabled { cursor: not-allowed; opacity: 0.6; }
.kyo_optout_line.is_disabled input { cursor: not-allowed; }
.kyo_optout_status {
    margin: 10px 0 0 0;
    padding: 9px 12px;
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--desc);
    background: var(--chip);
    border-left: 3px solid var(--bd3);
    border-radius: 3px;
}
.kyo_optout_status strong { color: inherit; }
.kyo_optout_status.is_ok      { color: var(--status-ok-fg); background: color-mix(in oklch, var(--ok) 12%, transparent);  border-left-color: var(--ok); }
.kyo_optout_status.is_out     { color: var(--status-out-fg); background: color-mix(in oklch, var(--accent) 12%, transparent);  border-left-color: var(--accent);  }
.kyo_optout_status.is_blocked { color: var(--status-ko-fg); background: color-mix(in oklch, var(--ko) 14%, transparent);  border-left-color: var(--ko); }
.kyo_optout_hint { margin: 8px 0 0 0; font-size: 13px; color: var(--muted); }


/* ╔═══════════════════════════════════════════════════════════════════╗
   ║ MON IP — /ip (ip.php)                                              ║
   ╚═══════════════════════════════════════════════════════════════════╝ */

.ip_hero {
    background: var(--card-deep);
    border: 1px solid var(--bd2);
    border-left: 4px solid var(--accent);
    border-radius: 5px;
    padding: 22px 20px;
    margin-bottom: 14px;
    text-align: center;
    /* Colonnes de largeur égale : l'IP reste centrée sur la carte même si le
       bloc IPv4/IPv6 à gauche s'allonge. */
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr) 170px;
    align-items: center;
    gap: 16px;
}
.ip_hero_main { min-width: 0; }

/* État des deux piles (colonne gauche) */
.ip_stack {
    display: flex;
    flex-direction: column;
    gap: 7px;
    text-align: left;
}
.ip_stack_row {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12.5px;
    font-family: monospace;
    line-height: 1.4;
}
.ip_stack_dot {
    flex: none;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--dim);
}
.ip_stack_name { color: var(--muted); }
.ip_stack_name::after { content: " :"; }
.ip_stack_state { color: var(--muted); }
.ip_stack_ok .ip_stack_dot   { background: var(--ip-ok); box-shadow: 0 0 6px color-mix(in oklch, var(--ip-ok) 55%, transparent); }
.ip_stack_ok .ip_stack_name  { color: var(--desc); }
.ip_stack_ok .ip_stack_state { color: var(--ip-ok); font-weight: bold; }
.ip_stack_ko .ip_stack_dot   { background: color-mix(in oklch, var(--ko) 28%, transparent); border: 1px solid color-mix(in oklch, var(--ko) 55%, transparent); box-sizing: border-box; }
.ip_stack_ko .ip_stack_state { color: color-mix(in oklch, var(--ko) 70%, var(--muted)); }
.ip_stack_off .ip_stack_dot  { background: none; border: 1px solid var(--bd3); box-sizing: border-box; }
.ip_stack_off .ip_stack_state { color: var(--dim); }
.ip_hero_label {
    color: var(--muted);
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.ip_hero_value {
    color: var(--accent-text);
    font-family: monospace;
    font-size: 30px;
    font-weight: bold;
    margin: 10px 0 4px;
    word-break: break-all;
    line-height: 1.25;
}
.ip_hero_unknown { color: var(--dim); font-size: 22px; }
.ip_hero_actions {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 10px;
}
.ip_badge {
    display: inline-block;
    border: 1px solid var(--bd3);
    border-radius: 3px;
    padding: 3px 10px;
    font-size: 12px;
    font-family: monospace;
    letter-spacing: 1px;
    color: var(--muted);
}
/* .copy_btn est en position:absolute (résultats de la Toolbox) — ici le bouton
   est dans un flux flex centré, pas dans un .copy_wrap. */
.ip_copy_btn { position: static; }

.ip_note {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
    margin: 0 0 22px;
    text-align: center;
}
.ip_note strong { color: var(--accent-text); }

.ip_section_desc {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
    margin: 4px 0 12px;
}
.ip_section_desc strong { color: var(--desc); }

.ip_table {
    background: var(--card-deep);
    border: 1px solid var(--bd2);
    border-radius: 4px;
    margin-bottom: 24px;
    overflow: hidden;
}
.ip_row {
    display: flex;
    gap: 14px;
    padding: 9px 14px;
    border-bottom: 1px solid var(--bd);
    font-size: 13px;
    line-height: 1.6;
}
.ip_row:last-child { border-bottom: none; }
.ip_key {
    color: var(--muted);
    flex: 0 0 200px;
}
.ip_key_hint { color: var(--dim); font-size: 12px; }
.ip_val {
    color: var(--accent-text);
    font-family: monospace;
    flex: 1 1 auto;
    min-width: 0;
    word-break: break-word;
}
.ip_val_wrap { color: var(--desc); font-size: 12px; }
.ip_val_muted { color: var(--dim); font-family: inherit; font-size: 12px; font-style: italic; }

.ip_privacy {
    background: var(--card);
    border: 1px solid var(--bd);
    border-left: 4px solid var(--bd3);
    border-radius: 5px;
    padding: 16px 20px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
}
.ip_privacy_title {
    color: var(--accent-text);
    font-family: Azonix, sans-serif;
    font-size: 13px;
    letter-spacing: 1px;
    margin-bottom: 10px;
}
.ip_privacy p { margin: 0 0 10px 0; }
.ip_privacy p:last-child { margin-bottom: 0; }
.ip_privacy strong { color: var(--text); }
.ip_privacy a { color: var(--accent-text); text-decoration: none; }
.ip_privacy a:hover { text-decoration: underline; }
.ip_privacy_more { font-size: 13px; color: var(--muted); }

@media screen and (max-width: 700px) {
    /* Plus la place pour trois colonnes : les deux piles passent au-dessus de
       l'IP, en ligne et centrées. */
    .ip_hero {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .ip_hero_spacer { display: none; }
    .ip_stack {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px 18px;
        order: -1;
    }
}

@media screen and (max-width: 600px) {
    .ip_hero_value { font-size: 21px; }
    .ip_row { flex-direction: column; gap: 2px; }
    .ip_key { flex: none; }
}

/* Carte Toolbox qui est un vrai lien (/ip) et non un panneau dépliant. */
.tool_card_link {
    display: block;
    text-decoration: none;
    color: inherit;
}


/* ╔═══════════════════════════════════════════════════════════════════╗
   ║ ETS2 — /ets2/ (ets2/index.php)                                     ║
   ╚═══════════════════════════════════════════════════════════════════╝ */

.ets_hero {
    background: var(--card-deep);
    border: 1px solid var(--bd2);
    border-left: 4px solid var(--accent);
    border-radius: 5px;
    padding: 18px 20px;
    margin-bottom: 18px;
}
.ets_hero_ligne {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 10px;
}
.ets_hero_label {
    font-family: Azonix;
    font-size: 14px;
    letter-spacing: 1px;
    color: var(--text);
}
.ets_hero_version {
    font-family: monospace;
    font-size: 15px;
    color: var(--accent-text);
    border: 1px solid var(--accent);
    border-radius: 3px;
    padding: 1px 8px;
}
.ets_hero_meta {
    margin: 10px 0 0;
    font-size: 13px;
    color: var(--muted);
}
.ets_hero_meta strong { color: var(--text); }
.ets_hero_note {
    margin: 6px 0 0;
    font-size: 13px;
    color: var(--muted);
    line-height: 1.6;
}

/* Variante lien : même encart, mais cliquable (vers /ets2/combo/).
   Les enfants sont des <span> — d'où le display:block explicite, les règles
   ci-dessus étant écrites pour des <p>. */
.ets_hero_cta {
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    transition: border-color 0.2s, background 0.2s;
}
.ets_hero_cta:hover {
    border-color: var(--accent);
    background: var(--hover);
    text-decoration: none;
}
.ets_hero_cta_txt { flex: 1; min-width: 0; }
.ets_hero_cta .ets_hero_meta,
.ets_hero_cta .ets_hero_note { display: block; }
.ets_hero_cta_fleche {
    flex: none;
    font-size: 20px;
    color: var(--dim);
    transition: color 0.2s, transform 0.2s;
}
.ets_hero_cta:hover .ets_hero_cta_fleche {
    color: var(--accent-text);
    transform: translateX(3px);
}

.ets_section {
    background: var(--card);
    border: 1px solid var(--bd);
    border-radius: 4px;
    padding: 16px 20px;
    margin-bottom: 16px;
}
.ets_section h2 {
    color: var(--title);
    font-size: 16px;
    font-family: Helvetica, Arial, sans-serif;
    margin: 0 0 8px 0;
    font-weight: bold;
}
.ets_section_intro {
    margin: 0 0 14px;
    font-size: 13px;
    color: var(--muted);
    line-height: 1.6;
}

.ets_grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 10px;
}
.ets_card {
    display: block;
    background: var(--card-deep);
    border: 1px solid var(--bd);
    border-radius: 5px;
    padding: 12px 14px;
    text-decoration: none;
    transition: border-color 0.2s, background 0.2s;
}
.ets_card:hover {
    border-color: var(--accent);
    background: var(--hover);
    text-decoration: none;
}
.ets_card_head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
}
.ets_card_nom {
    color: var(--title);
    font-weight: bold;
    font-size: 14px;
    transition: color 0.2s;
}
.ets_card:hover .ets_card_nom { color: var(--accent-text); }
.ets_card_version {
    flex: none;
    font-family: monospace;
    font-size: 12px;
    color: var(--desc);
}
.ets_card_note {
    display: block;
    font-size: 12px;
    color: var(--muted);
    line-height: 1.5;
    margin-top: 5px;
}
.ets_card_domain {
    display: block;
    font-family: monospace;
    font-size: 12px;
    color: var(--dim);
    margin-top: 6px;
}

/* ── Options de lancement Steam ── */
.ets_launch {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.ets_launch_row {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--card-deep);
    border: 1px solid var(--bd);
    border-radius: 5px;
    padding: 9px 12px;
}
.ets_launch_ram {
    flex: none;
    width: 52px;
    font-family: monospace;
    font-size: 12px;
    color: var(--accent-text);
}
.ets_launch_code {
    flex: 1;
    min-width: 0;
    font-family: monospace;
    font-size: 12px;
    color: var(--desc);
    line-height: 1.5;
    overflow-x: auto;
    white-space: nowrap;
}
.ets_launch_copy {
    flex: none;
    background: none;
    border: 1px solid var(--bd2);
    color: var(--muted);
    border-radius: 3px;
    padding: 4px 10px;
    font-size: 12px;
    font-family: inherit;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
}
.ets_launch_copy:hover { border-color: var(--accent); color: var(--accent-text); }
.ets_launch_copy.is_done { border-color: var(--ok); color: var(--ok); }
.ets_launch_copy.is_fail { border-color: var(--ko); color: var(--ko); }

.ets_note {
    margin: 14px 0 0;
    font-size: 13px;
    color: var(--muted);
    line-height: 1.7;
}
.ets_note strong { color: var(--text); }

/* ── Ordre de chargement ── */
.ets_ordre {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 7px;
}
.ets_ordre li {
    display: flex;
    align-items: center;
    gap: 9px;
    background: var(--card-deep);
    border: 1px solid var(--bd);
    border-radius: 4px;
    padding: 8px 11px;
    font-size: 13px;
    color: var(--text);
}
.ets_ordre_num {
    flex: none;
    width: 20px;
    text-align: center;
    font-family: monospace;
    font-size: 12px;
    color: var(--accent-text);
    border: 1px solid var(--bd2);
    border-radius: 3px;
    padding: 1px 0;
}

.ets_source {
    margin: 0 0 4px;
    font-size: 12.5px;
    color: var(--muted);
    line-height: 1.6;
}
.ets_source strong { color: var(--muted); }
.ets_source a { color: var(--accent-text); text-decoration: none; }
.ets_source a:hover { text-decoration: underline; }

@media screen and (max-width: 600px) {
    .ets_launch_row { flex-wrap: wrap; }
    .ets_launch_code { flex-basis: 100%; order: 3; }
    /* La flèche vole trop de largeur au texte sur écran étroit. */
    .ets_hero_cta_fleche { display: none; }
}


/* ╔═══════════════════════════════════════════════════════════════════╗
   ║ ETS2 — générateur de combo (/ets2/combo/)                          ║
   ╚═══════════════════════════════════════════════════════════════════╝ */

.combo_barre {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}
#combo_filtre {
    flex: 1;
    min-width: 160px;
    background: var(--card);
    border: 1px solid var(--bd2);
    color: var(--text);
    border-radius: 5px;
    padding: 6px 10px;
    font-size: 12px;
    font-family: inherit;
}
#combo_filtre:focus { border-color: var(--accent); outline: none; }
.combo_btn {
    background: none;
    border: 1px solid var(--bd2);
    color: var(--muted);
    border-radius: 3px;
    padding: 6px 12px;
    font-size: 12px;
    font-family: inherit;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
}
.combo_btn:hover { border-color: var(--accent); color: var(--accent-text); }
.combo_btn_fort {
    border-color: var(--accent);
    color: var(--accent-text);
    background: color-mix(in oklch, var(--accent) 10%, transparent);
}
.combo_btn_fort:hover { background: color-mix(in oklch, var(--accent) 18%, transparent); }
.combo_btn.is_done { border-color: var(--ok); color: var(--ok); }
.combo_btn.is_fail { border-color: var(--ko); color: var(--ko); }
.combo_compteur {
    font-family: monospace;
    font-size: 12px;
    color: var(--muted);
    margin-left: auto;
}
.combo_compteur #combo_n { color: var(--accent-text); }

/* Panneau de filtres : chips cochables qui pilotent la sélection */
.filtre_groupe {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}
.filtre_titre {
    flex: none;
    width: 105px;
    font-size: 12px;
    color: var(--muted);
}
.filtre_chips {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}
.filtre_chip { cursor: pointer; }
.filtre_chip input { display: none; }
.filtre_chip span {
    display: inline-block;
    border: 1px solid var(--bd2);
    color: var(--muted);
    border-radius: 20px;
    padding: 5px 13px;
    font-size: 12px;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.filtre_chip span:hover { border-color: var(--accent); color: var(--accent-text); }
.filtre_chip input:checked + span {
    border-color: var(--accent);
    color: var(--accent-text);
    background: color-mix(in oklch, var(--accent) 10%, transparent);
}
.filtre_n {
    display: inline;
    padding: 0;
    border: none;
    border-radius: 0;
    font-family: monospace;
    font-size: 12px;
    color: var(--dim);
}
.filtre_chip input:checked + span .filtre_n { color: var(--accent-text); }
.filtre_apercu {
    font-size: 12px;
    color: var(--muted);
    margin-left: auto;
}

/* Liste des mods : hauteur bornée, sinon 128 lignes noient la page */
.combo_liste {
    max-height: 420px;
    overflow-y: auto;
    border: 1px solid var(--bd);
    border-radius: 4px;
    background: var(--card-deep);
}
.combo_item {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding: 7px 11px;
    border-bottom: 1px solid var(--bd);
    cursor: pointer;
    transition: background 0.15s;
}
.combo_item:last-child { border-bottom: none; }
.combo_item:hover { background: var(--hover); }
.combo_item input { margin-top: 3px; accent-color: var(--accent); cursor: pointer; flex: none; }
.combo_item_txt { min-width: 0; }
.combo_item_nom {
    display: block;
    font-size: 13px;
    color: var(--text);
    line-height: 1.4;
}
.combo_item input:checked ~ .combo_item_txt .combo_item_nom { color: var(--accent-text); }
.combo_item_meta {
    display: block;
    font-family: monospace;
    font-size: 12px;
    color: var(--dim);
    margin-top: 2px;
    word-break: break-all;
}
.combo_paquet {
    display: inline-block;
    margin-left: 7px;
    padding: 0 5px;
    font-family: monospace;
    font-size: 12px;
    color: var(--muted);
    border: 1px solid var(--bd2);
    border-radius: 3px;
    vertical-align: middle;
}
.combo_item input:checked ~ .combo_item_txt .combo_paquet {
    color: var(--accent-text);
    border-color: color-mix(in oklch, var(--accent) 45%, transparent);
}
.combo_srmap {
    display: inline-block;
    margin-left: 7px;
    padding: 0 5px;
    font-family: monospace;
    font-size: 12px;
    color: var(--srmap);
    border: 1px solid color-mix(in oklch, var(--srmap) 45%, transparent);
    border-radius: 3px;
    vertical-align: middle;
}
.combo_vide {
    display: none;
    margin: 10px 0 0;
    font-size: 13px;
    color: var(--dim);
    text-align: center;
}

/* Résultat : le load order à recopier */
.combo_attente {
    margin: 0;
    font-size: 13px;
    color: var(--dim);
}
.combo_resultat {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: combo;
}
.combo_resultat li {
    display: flex;
    align-items: center;
    gap: 10px;
    counter-increment: combo;
    background: var(--card-deep);
    border: 1px solid var(--bd);
    border-radius: 4px;
    padding: 8px 11px;
    margin-bottom: 6px;
}
.combo_resultat li::before {
    content: counter(combo);
    flex: none;
    min-width: 24px;
    text-align: center;
    font-family: monospace;
    font-size: 12px;
    color: var(--accent-text);
    border: 1px solid var(--bd2);
    border-radius: 3px;
    padding: 1px 3px;
}
.combo_res_txt { flex: 1; min-width: 0; }
.combo_res_nom {
    display: block;
    font-size: 13px;
    color: var(--text);
    line-height: 1.4;
}
.combo_res_fic {
    display: block;
    font-family: monospace;
    font-size: 12px;
    color: var(--dim);
    margin-top: 2px;
    word-break: break-all;
}
.combo_res_dl {
    flex: none;
    font-size: 12px;
    color: var(--accent-text);
    text-decoration: none;
    border: 1px solid var(--bd2);
    border-radius: 3px;
    padding: 4px 10px;
    transition: border-color 0.2s;
}
.combo_res_dl:hover { border-color: var(--accent); text-decoration: none; }
.combo_res_nodl {
    flex: none;
    font-size: 12px;
    color: var(--dim);
    font-style: italic;
}

/* ── Archive Veille Cyber — recherche + chips éditeur/produit CISA KEV ── */
.cw_filters {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
    padding: 12px 14px;
    background: var(--card);
    border: 1px solid var(--bd);
    border-radius: 4px;
}
.cw_search_form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}
.cw_search_label {
    font-size: 12px;
    color: var(--muted);
    flex: none;
}
.cw_search_input {
    flex: 1;
    min-width: 160px;
    background: var(--card-deep);
    border: 1px solid var(--bd2);
    color: var(--text);
    border-radius: 5px;
    padding: 6px 10px;
    font-size: 13px;
    font-family: inherit;
}
.cw_search_input:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 1px;
}
.cw_search_btn {
    background: none;
    border: 1px solid var(--bd2);
    color: var(--muted);
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 12px;
    font-family: inherit;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.cw_search_btn:hover,
.cw_search_btn:focus-visible {
    border-color: var(--accent);
    color: var(--accent-text);
}
.cw_clear_all {
    font-size: 12px;
    color: var(--muted);
    text-decoration: underline;
    margin-left: auto;
}
.cw_clear_all:hover,
.cw_clear_all:focus-visible {
    color: var(--accent-text);
}
.cw_chip_group {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
}
.cw_chip_details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.cw_chip_details > summary {
    cursor: pointer;
    list-style: none;
}
.cw_chip_details > summary::-webkit-details-marker { display: none; }
.cw_chip_label {
    flex: none;
    font-size: 12px;
    color: var(--muted);
}
.cw_chips {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}
.cw_chip {
    display: inline-block;
    box-sizing: border-box;
    max-width: 100%;
    overflow-wrap: anywhere;
    border: 1px solid var(--bd2);
    color: var(--muted);
    border-radius: 20px;
    padding: 5px 13px;
    font-size: 12px;
    text-decoration: none;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.cw_chip:hover,
.cw_chip:focus-visible {
    border-color: var(--accent);
    color: var(--accent-text);
}
.cw_chip:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 1px;
}
.cw_chip.is_active {
    border-color: var(--accent);
    color: var(--accent-text);
    background: color-mix(in oklch, var(--accent) 10%, transparent);
}
.cw_chip_n {
    font-family: monospace;
    color: var(--dim);
}
.cw_chip.is_active .cw_chip_n { color: var(--accent-text); }
@media (max-width: 700px) {
    .cw_search_form { flex-direction: column; align-items: stretch; }
    .cw_search_label { order: -1; }
    .cw_clear_all { margin-left: 0; }
    .cw_chip_group { flex-direction: column; align-items: flex-start; }
}

@media screen and (max-width: 600px) {
    .combo_compteur { margin-left: 0; }
    .combo_resultat li { flex-wrap: wrap; }
    .combo_res_dl { margin-left: 34px; }
}

/* ── Fiches internes Veille Cyber (/veille/cert-fr/{ref}/, /veille/cve/{cve}/) ── */
.cw_fiche_back {
    margin: 0 0 14px;
}
.cw_fiche_back a {
    color: var(--muted);
    font-size: 13px;
    text-decoration: none;
}
.cw_fiche_back a:hover {
    color: var(--accent-text);
}
.cw_fiche .cw_item_head {
    margin-bottom: 8px;
}
.cw_fiche h1.cps_titre {
    margin-top: 4px;
}
.cw_fiche_fallback_notice {
    color: var(--muted);
    font-size: 13px;
    background: var(--card);
    border: 1px solid var(--bd);
    border-radius: 4px;
    padding: 10px 14px;
    margin: 12px 0;
}
.cw_fiche_section {
    background: var(--card);
    border: 1px solid var(--bd);
    border-radius: 4px;
    padding: 14px 16px;
    margin: 16px 0;
}
.cw_fiche_section h2.cps_titre {
    font-size: 16px;
    margin: 0 0 8px;
}
.cw_fiche_markdown {
    color: var(--text);
    font-size: 14px;
    line-height: 1.55;
}
.cw_fiche_section {
    overflow-wrap: anywhere;
}
/* Le menu historique cible tous les ul/li/a : rétablir des listes de contenu. */
.cw_fiche_section ul,
.cw_fiche_section ol {
    display: block;
    min-height: 0;
    font-family: inherit;
    font-size: inherit;
}
.cw_fiche_section ul { list-style-type: disc; }
.cw_fiche_section ol { list-style-type: decimal; }
.cw_fiche_section li a {
    display: inline;
    padding: 0;
    text-align: left;
    white-space: normal;
}
.cw_fiche_markdown p {
    margin: 0 0 10px;
}
.cw_fiche_markdown p:last-child {
    margin-bottom: 0;
}
.cw_fiche_markdown ul,
.cw_fiche_markdown ol {
    margin: 0 0 10px;
    padding-left: 20px;
}
.cw_fiche_markdown code {
    background: var(--card-strong);
    border: 1px solid var(--bd2);
    border-radius: 3px;
    padding: 1px 5px;
    font-size: 12px;
    font-family: monospace;
}
.cw_fiche_markdown h3,
.cw_fiche_markdown h4,
.cw_fiche_markdown h5,
.cw_fiche_markdown h6 {
    color: var(--title);
    font-size: 14px;
    margin: 10px 0 6px;
}
.cw_fiche_markdown a {
    color: var(--accent-text);
}
.cw_fiche_list {
    margin: 0;
    padding-left: 20px;
    color: var(--text);
    font-size: 14px;
    line-height: 1.6;
}
.cw_fiche_list li {
    margin-bottom: 8px;
}
.cw_fiche_list a {
    color: var(--accent-text);
}
.cw_fiche_cve_list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.cw_fiche_section .cw_fiche_cve_list {
    display: flex;
    list-style: none;
}
.cw_fiche_cve_list li a {
    display: inline-block;
    border: 1px solid var(--bd2);
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 12px;
    font-family: monospace;
    color: var(--muted);
    text-decoration: none;
    transition: color 0.2s, border-color 0.2s;
}
.cw_fiche_cve_list li a:hover {
    border-color: var(--accent);
    color: var(--accent-text);
}
.cw_fiche_meta_date {
    color: var(--muted);
    font-size: 12px;
    font-family: monospace;
}
.cw_fiche_source_link {
    display: inline-block;
    color: var(--accent-text);
    font-weight: bold;
    text-decoration: none;
    margin-top: 8px;
}
.cw_fiche_source_link:hover {
    text-decoration: underline;
}
.cw_fiche_honesty_note {
    color: var(--dim);
    font-size: 12px;
    margin-top: 24px;
}
@media (max-width: 700px) {
    .cw_fiche_section { padding: 12px; }
}
