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

.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-footer {
    text-align: center;
    color: #8a94a3;
    font-size: 12px;
    padding: 24px;
}

.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;
    color: #374151;
}

.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;
    }
}
