body {
    font-family: 'Segoe UI', Arial, sans-serif;
    margin: 0;
    background: #f4f6f8;
    color: #1f2933;
}

.entete-site {
    text-align: center;
    margin-bottom: 12px;
}

.logo-europesoftwares {
    display: inline-block;
    max-width: 100%;
    height: auto;
}

.wiki-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #1f2937;
    color: #fff;
    padding: 12px 24px;
    flex-wrap: wrap;
}

.wiki-header-left a {
    color: #fff;
    text-decoration: none;
    margin-right: 18px;
    font-size: 14px;
}

.wiki-header-left a:hover {
    text-decoration: underline;
}

.wiki-logo {
    font-weight: 700;
    font-size: 18px !important;
}

.wiki-search input[type="text"] {
    padding: 6px 10px;
    border-radius: 4px;
    border: none;
    margin-right: 6px;
}

.wiki-container {
    max-width: 900px;
    margin: 24px auto;
    background: #fff;
    padding: 24px 32px;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,.08);
}

.wiki-page-shell-with-rules {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 28px;
    align-items: center;
    max-width: 1440px;
    margin: 24px auto;
    padding: 0 18px;
}

.wiki-page-shell-with-rules .wiki-container {
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    margin: 0;
}

.wiki-main-column { min-width: 0; }

.wiki-rules-panel {
    position: static;
    padding: 20px;
    border: 1px solid #bfdbfe;
    border-left: 4px solid #2563eb;
    border-radius: 4px;
    background: #eff6ff;
    color: #1e3a5f;
}

.wiki-rules-panel h2 {
    margin: 0 0 14px;
    color: #16324f;
    font-size: 18px;
}

.wiki-rules-panel ul {
    margin: 0;
    padding-left: 20px;
}

.wiki-rules-panel li {
    margin-bottom: 10px;
    line-height: 1.45;
}

.wiki-rules-panel li:last-child { margin-bottom: 0; }

.default-pages-table { width: 97%; margin: 0 auto; table-layout: fixed; }
.default-pages-table th,
.default-pages-table td { padding-left: 8px; padding-right: 8px; vertical-align: middle; }
.default-pages-table th:last-child,
.default-pages-table td:last-child { text-align: center; white-space: nowrap; }
.default-pages-table td:nth-child(3) { white-space: nowrap; }
.default-pages-table td:first-child,
.default-pages-table td:nth-child(2) { overflow-wrap: anywhere; }

@media (max-width: 1100px) {
    .wiki-page-shell-with-rules {
        grid-template-columns: 1fr;
        margin: 18px auto;
    }
    .wiki-rules-panel { position: static; }
}

.wiki-footer {
    text-align: center;
    color: #8a94a3;
    font-size: 14px;
    padding: 24px;
}

.wiki-footer-separator { margin: 0 8px; color: #c0c7d0; }
.wiki-footer a { color: inherit; }
.wiki-footer a:hover { color: #2563eb; }

.wiki-table {
    width: 100%;
    border-collapse: collapse;
}

.wiki-table th, .wiki-table td {
    text-align: left;
    padding: 8px 10px;
    border-bottom: 1px solid #e5e9ee;
}

.wiki-content p {
    line-height: 1.6;
    margin: 8px 0;
}

.wiki-content h2 {
    border-bottom: 2px solid #e5e9ee;
    padding-bottom: 6px;
    margin-top: 24px;
}

.wiki-content h3 {
    margin-top: 18px;
}

.wiki-meta {
    color: #8a94a3;
    font-size: 13px;
}

.wiki-page-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.wiki-page-toolbar a {
    margin-left: 12px;
    text-decoration: none;
    color: #2563eb;
    font-size: 14px;
}

.wiki-input, .wiki-textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #d0d7de;
    border-radius: 4px;
    box-sizing: border-box;
    font-family: inherit;
    font-size: 14px;
}

.wiki-textarea {
    font-family: Consolas, monospace;
    font-size: 14px;
}

.wiki-btn-primary {
    background: #2563eb;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.wiki-btn-primary:hover {
    background: #1d4ed8;
}

.wiki-btn-secondary {
    margin-left: 12px;
    background: #fff;
    color: #374151;
    border: 1px solid #cbd5e1;
    padding: 9px 19px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .08);
    transition: background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.wiki-btn-secondary:hover {
    background: #f8fafc;
    color: #111827;
    border-color: #94a3b8;
    box-shadow: 0 3px 7px rgba(15, 23, 42, .14);
    transform: translateY(-1px);
}

.wiki-btn-secondary:active {
    background: #f1f5f9;
    box-shadow: none;
    transform: translateY(0);
}

.wiki-btn-secondary:focus-visible {
    outline: 3px solid rgba(37, 99, 235, .25);
    outline-offset: 2px;
    border-color: #2563eb;
}

.wiki-error {
    color: #dc2626;
    font-size: 13px;
    display: block;
    margin-top: 8px;
}

.wiki-help {
    background: #f4f6f8;
    padding: 10px 14px;
    border-radius: 4px;
    font-size: 13px;
    color: #4b5563;
}

.wiki-oldrev {
    background: #fef3c7;
    border: 1px solid #fcd34d;
    padding: 10px 14px;
    border-radius: 4px;
    margin-bottom: 16px;
    font-size: 14px;
}

.wiki-search-result {
    padding: 12px 0;
    border-bottom: 1px solid #e5e9ee;
}

.wiki-result-title {
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    color: #2563eb;
}

.wiki-snippet {
    color: #4b5563;
    font-size: 14px;
}

.wiki-pin-box {
    text-align: center;
    background: #ecfdf5;
    border: 1px solid #6ee7b7;
    border-radius: 8px;
    padding: 24px 32px;
}

.wiki-pin-value {
    font-size: 42px;
    font-weight: 700;
    letter-spacing: 10px;
    color: #047857;
    margin: 12px 0;
}

.wiki-pin-input {
    max-width: 120px;
    letter-spacing: 4px;
    font-size: 16px;
    text-align: center;
}

.wiki-delete-zone {
    margin-top: 36px;
    padding: 18px 20px;
    border: 1px solid #fecaca;
    background: #fef2f2;
    border-radius: 6px;
}

.wiki-delete-zone h2 {
    margin-top: 0;
    color: #b91c1c;
    font-size: 16px;
}

.wiki-btn-danger {
    background: #dc2626;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.wiki-btn-danger:hover {
    background: #b91c1c;
}


/* ================================================================
   Default.aspx — Index des pages (planche technique / schéma)
   ================================================================ */

.wiki-sheet {
    position: relative;
    background-color: #eef2f6;
    background-image:
        repeating-linear-gradient(0deg, rgba(22, 50, 79, .05) 0 1px, transparent 1px 24px),
        repeating-linear-gradient(90deg, rgba(22, 50, 79, .05) 0 1px, transparent 1px 24px);
    border: 1px solid rgba(22, 50, 79, .18);
    border-radius: 2px;
    padding: 32px 36px 24px;
}

.wiki-sheet-corner {
    position: absolute;
    width: 16px;
    height: 16px;
    border-color: #16324f;
    border-style: solid;
    border-width: 0;
}

.wiki-sheet-corner-tl { top: -1px; left: -1px; border-top-width: 2px; border-left-width: 2px; }
.wiki-sheet-corner-tr { top: -1px; right: -1px; border-top-width: 2px; border-right-width: 2px; }
.wiki-sheet-corner-bl { bottom: -1px; left: -1px; border-bottom-width: 2px; border-left-width: 2px; }
.wiki-sheet-corner-br { bottom: -1px; right: -1px; border-bottom-width: 2px; border-right-width: 2px; }

.wiki-sheet-header {
    margin-bottom: 22px;
}

.wiki-sheet-label {
    font-family: 'JetBrains Mono', Consolas, monospace;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1.5px;
    color: #e8590c;
    margin: 0 0 8px;
}

.wiki-sheet-title {
    font-family: 'Space Grotesk', Arial, sans-serif;
    font-size: 32px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #16324f;
    margin: 0 0 14px;
}

.wiki-sheet-stats {
    font-family: 'JetBrains Mono', Consolas, monospace;
    font-size: 12px;
    letter-spacing: .3px;
    color: #3e5871;
    padding-bottom: 18px;
    border-bottom: 1px dashed rgba(22, 50, 79, .3);
}

.wiki-sheet-stats b {
    color: #16324f;
    font-weight: 600;
}

.wiki-sheet-stats-sep {
    margin: 0 10px;
    color: rgba(22, 50, 79, .3);
}

.wiki-sheet-list {
    display: flex;
    flex-direction: column;
}

.wiki-sheet-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 4px;
    border-bottom: 1px dashed rgba(22, 50, 79, .3);
    text-decoration: none;
    color: inherit;
    transition: background-color .12s ease;
}

.wiki-sheet-row:hover {
    background-color: rgba(22, 50, 79, .04);
}

.wiki-sheet-tag {
    flex: 0 0 auto;
    font-family: 'JetBrains Mono', Consolas, monospace;
    font-size: 12px;
    font-weight: 600;
    color: #16324f;
    border: 1px solid #16324f;
    border-radius: 3px;
    padding: 2px 6px;
    transition: color .12s ease, border-color .12s ease;
}

.wiki-sheet-row:hover .wiki-sheet-tag {
    color: #e8590c;
    border-color: #e8590c;
}

.wiki-sheet-name {
    flex: 0 1 auto;
    font-family: 'Space Grotesk', Arial, sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #16324f;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wiki-sheet-leader {
    flex: 1 1 auto;
    align-self: flex-end;
    height: 0;
    margin: 0 4px 6px;
    border-bottom: 2px dotted rgba(22, 50, 79, .3);
    transition: border-color .12s ease;
}

.wiki-sheet-row:hover .wiki-sheet-leader {
    border-color: #e8590c;
}

.wiki-sheet-meta {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'JetBrains Mono', Consolas, monospace;
    font-size: 11px;
    color: #3e5871;
    white-space: nowrap;
}

.wiki-sheet-rev {
    background: rgba(232, 89, 12, .1);
    color: #b8440c;
    border-radius: 3px;
    padding: 2px 6px;
    font-weight: 600;
}

.wiki-sheet-arrow {
    flex: 0 0 auto;
    color: #e8590c;
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity .12s ease, transform .12s ease;
}

.wiki-sheet-row:hover .wiki-sheet-arrow {
    opacity: 1;
    transform: translateX(0);
}

.wiki-sheet-empty {
    text-align: center;
    padding: 50px 20px;
    border: 1px dashed rgba(22, 50, 79, .3);
    border-radius: 2px;
    background: rgba(255, 255, 255, .5);
}

.wiki-sheet-empty h2 {
    font-family: 'Space Grotesk', Arial, sans-serif;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #16324f;
    margin: 0 0 8px;
}

.wiki-sheet-empty p {
    max-width: 360px;
    margin: 0 auto 18px;
    font-size: 14px;
    color: #3e5871;
}

@media (max-width: 560px) {
    .wiki-sheet {
        padding: 24px 18px 18px;
    }
    .wiki-sheet-title {
        font-size: 24px;
    }
    .wiki-sheet-stats span {
        display: block;
        margin: 4px 0;
    }
    .wiki-sheet-stats-sep {
        display: none;
    }
    .wiki-sheet-row {
        flex-wrap: wrap;
    }
    .wiki-sheet-leader {
        display: none;
    }
    .wiki-sheet-meta {
        flex-basis: 100%;
        padding-left: 42px;
    }
}

.wiki-account-card { max-width: 620px; margin: 24px auto; padding: 28px; background: #fff; border: 1px solid rgba(22,50,79,.22); border-radius: 4px; }
.wiki-account-card .wiki-edit-form { display: grid; gap: 9px; }
.wiki-account-card .wiki-input { box-sizing: border-box; width: 100%; }
.wiki-registration-notice { padding: 12px 14px; color: #b91c1c; background: #fef2f2; border: 1px solid #ef4444; border-radius: 4px; font-weight: 600; }
.wiki-success { display: block; margin: 12px 0; padding: 12px 14px; color: #166534; background: #dcfce7; border: 1px solid #86efac; border-radius: 4px; }
.wiki-table-wrap { overflow-x: auto; }
.admin-accounts-table { width: 100%; min-width: 1300px; margin: 0 auto; table-layout: fixed; }
.admin-accounts-table .admin-col-account { width: 10%; }
.admin-accounts-table .admin-col-email { width: 14%; }
.admin-accounts-table .admin-col-birth { width: 10%; }
.admin-accounts-table .admin-col-ip { width: 9%; }
.admin-accounts-table .admin-col-created { width: 11%; }
.admin-accounts-table .admin-col-login { width: 14%; }
.admin-accounts-table .admin-col-status { width: 9%; }
.admin-accounts-table .admin-col-role { width: 9%; }
.admin-accounts-table .admin-col-actions { width: 14%; }
.admin-accounts-table td { vertical-align: middle; overflow-wrap: anywhere; }
.admin-accounts-table td:nth-child(3),
.admin-accounts-table td:nth-child(4),
.admin-accounts-table td:nth-child(5),
.admin-accounts-table td:nth-child(6),
.admin-accounts-table td:nth-child(9) { white-space: nowrap; }
.admin-accounts-table td:nth-child(7),
.admin-accounts-table td:nth-child(8) { padding-left: 6px; padding-right: 6px; }
.admin-accounts-table select,
.admin-accounts-table .admin-filter-row input {
    display: block;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: 36px;
    padding: 5px 8px;
    border: 1px solid #94a3b8;
    border-radius: 4px;
    background-color: #fff;
    font: inherit;
    font-size: 14px;
}
.admin-accounts-table select { padding-right: 24px; }
.admin-accounts-table select:focus,
.admin-accounts-table .admin-filter-row input:focus {
    border-color: #2563eb;
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .18);
}
.wiki-btn-small { display: inline-block; padding: 5px 8px; color: #fff; background: #2563eb; border-radius: 3px; text-decoration: none; white-space: nowrap; }
.wiki-link-danger { display: inline-block; padding: 5px 8px; color: #fff; background: #dc2626; border-radius: 3px; text-decoration: none; white-space: nowrap; }
.wiki-link-danger:hover { color: #fff; background: #b91c1c; text-decoration: none; }
.wiki-link-danger:focus { color: #fff; outline: 2px solid #fca5a5; outline-offset: 2px; }
