/* AlphaCampus — sélecteur FR | EN et page Dictionnaire (beta.430) */

/* ---------- Sélecteur FR | EN ---------- */
.jc-lang-switch { display: inline-flex; gap: 2px; align-items: center; padding: 3px; background: rgba(255, 255, 255, .72); border: 1px solid #d5e3ea; border-radius: 999px; }
.jc-lang-switch__item { display: inline-flex; gap: 5px; align-items: center; padding: 4px 10px; color: #35546a !important; border-radius: 999px; font-size: 12.5px; font-weight: 800; line-height: 1.2; letter-spacing: .02em; text-decoration: none !important; transition: background .15s ease, color .15s ease; }
.jc-lang-switch__item img { width: 18px; height: 13px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(16, 54, 75, .14); }
.jc-lang-switch__item:hover, .jc-lang-switch__item:focus-visible { color: #12506a !important; background: #eaf5f8; outline: 0; }
.jc-lang-switch__item.is-active { color: #fff !important; background: #2f86aa; }
.jc-lang-switch__item.is-active img { box-shadow: 0 0 0 1px rgba(255, 255, 255, .7); }
.jc-lang-switch--floating { position: fixed; bottom: 16px; left: 16px; z-index: 99990; background: rgba(255, 255, 255, .94); box-shadow: 0 8px 22px rgba(16, 54, 75, .16); }
/* Bandeau sombre (JuriCampus) */
.jc-lms-nav .jc-lang-switch--dark { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .25); }
.jc-lms-nav .jc-lang-switch--dark .jc-lang-switch__item { color: #eaf1f5 !important; }
.jc-lms-nav .jc-lang-switch--dark .jc-lang-switch__item.is-active { color: #102f45 !important; background: #d6a93b; }
.jc-lang-switch--login { display: flex; width: max-content; margin: 18px auto 0; }

/* Barre d'administration */
#wpadminbar .jc-ab-language > .ab-item .ab-icon:before { top: 2px; }
#wpadminbar .jc-ab-language .ab-label { font-weight: 700; }

/* ---------- Page Dictionnaire ---------- */
.jc-dictionary-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin: 18px 0; }
.jc-dictionary-stats > div { display: flex; flex-direction: column; gap: 3px; padding: 14px 18px; background: linear-gradient(120deg, #f6fbfd, #fffdf6); border: 1px solid #dfeaef; border-radius: 14px; }
.jc-dictionary-stats strong { color: #12506a; font-size: 22px; line-height: 1.1; }
.jc-dictionary-stats span { color: #5b7180; font-size: 13px; }
.jc-dictionary-help { margin: 0 0 18px; padding: 12px 18px; background: #fffdf3; border: 1px solid #efe3bd; border-radius: 12px; }
.jc-dictionary-help summary { display: flex; gap: 8px; align-items: center; color: #6b5310; font-weight: 700; cursor: pointer; }
.jc-dictionary-help ul { margin: 12px 0 2px 26px; list-style: disc; }
.jc-dictionary-help li { margin-bottom: 7px; line-height: 1.55; }
.jc-dictionary-filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin: 0 0 10px; padding: 14px 16px; background: #fbfdfe; border: 1px solid #e1ebf0; border-radius: 12px; }
.jc-dictionary-filters label { display: flex; flex-direction: column; gap: 4px; color: #35546a; font-size: 12.5px; font-weight: 700; }
.jc-dictionary-filters select, .jc-dictionary-filters input[type="search"] { min-height: 38px; border-color: #cfdde5; border-radius: 9px; }
.jc-dictionary-search { position: relative; flex: 1 1 340px; }
.jc-dictionary-search .dashicons { position: absolute; bottom: 9px; left: 10px; color: #7b8d98; }
.jc-dictionary-search input[type="search"] { width: 100%; padding-left: 34px; }
.jc-dictionary-count { margin: 6px 0 10px; color: #5b7180; }
.jc-dictionary-table { border-color: #e1ebf0; border-radius: 12px; overflow: hidden; }
.jc-dictionary-table thead th { padding: 12px 14px; color: #1d4a60; background: #f3f8fa; font-weight: 800; }
.jc-dictionary-table thead th img { vertical-align: -2px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(16, 54, 75, .12); }
.jc-dictionary-table td { padding: 12px 14px; vertical-align: top; border-top: 1px solid #edf2f5; }
.jc-dictionary-table tr.is-custom td { background: #fffdf0; }
.jc-dictionary-col-source { width: 34%; }
.jc-dictionary-source { display: block; color: #1d3a4c; font-size: 13.5px; line-height: 1.5; white-space: pre-line; overflow-wrap: anywhere; }
.jc-dictionary-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 6px; color: #7b8d98; }
.jc-dictionary-meta code { padding: 1px 5px; color: #7b8d98; background: #f4f7f9; border-radius: 4px; font-size: 11px; }
.jc-dictionary-zone { padding: 1px 8px; color: #35546a; background: #edf4f7; border-radius: 999px; font-size: 11px; font-weight: 700; }
.jc-dictionary-zone--public { color: #1f6b3c; background: #e8f6ec; }
.jc-dictionary-zone--admin { color: #5b3f8c; background: #f1ecfa; }
.jc-dictionary-zone--emails { color: #8a5a00; background: #fdf3df; }
.jc-dictionary-badge { padding: 1px 8px; color: #6b5310; background: #fbeeb8; border-radius: 999px; font-size: 11px; }
.jc-dictionary-table input[type="text"], .jc-dictionary-table textarea { width: 100%; min-height: 38px; padding: 7px 10px; font-size: 13.5px; border: 1px solid #cfdde5; border-radius: 9px; box-shadow: none; }
.jc-dictionary-table input[type="text"]::placeholder, .jc-dictionary-table textarea::placeholder { color: #8d9ea8; opacity: 1; }
.jc-dictionary-table input[type="text"]:focus, .jc-dictionary-table textarea:focus { border-color: #6fb3c4; box-shadow: 0 0 0 3px rgba(111, 179, 196, .2); outline: 0; }
.jc-dictionary-table input:not(:placeholder-shown), .jc-dictionary-table textarea:not(:placeholder-shown) { background: #fffdf0; border-color: #e6cf7a; }
.jc-dictionary-default, .jc-dictionary-missing { display: block; margin-top: 5px; color: #6a7f8b; font-size: 12px; }
.jc-dictionary-missing { color: #a15c00; }
.jc-dictionary-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; margin: 16px 0 6px; }
.jc-dictionary-actions .button-hero .dashicons { margin-top: 10px; }
.jc-dictionary-pager { display: inline-flex; gap: 8px; align-items: center; }
.jc-dictionary-tools { margin-top: 26px; padding: 16px 20px; background: #fbfdfe; border: 1px solid #e1ebf0; border-radius: 14px; }
.jc-dictionary-tools h2 { margin-top: 0; font-size: 15.5px; }
.jc-dictionary-tools__row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.jc-dictionary-tools__row form { display: inline-flex; gap: 8px; align-items: center; margin: 0; }
.jc-dictionary-tools .dashicons { margin-top: 3px; }
.jc-dictionary-report ul { margin: 8px 0; }
@media (max-width: 900px) {
    .jc-dictionary-table thead { display: none; }
    .jc-dictionary-table tr, .jc-dictionary-table td { display: block; width: auto; }
    .jc-dictionary-table td::before { display: block; margin-bottom: 4px; color: #5b7180; content: attr(data-label); font-size: 11.5px; font-weight: 700; }
}
