/**
 * Tutoriels Pages - RSI HUD Design System
 * Pages: Tutoriels (liste), TutorielView, TutorielEditor
 */

/* ============================================
   PAGE CONTAINER
   Note: Uses .hy-page for base styles, this adds specifics
   ============================================ */
.tutoriels-page,
.tutoriel-view-page,
.tutoriel-editor-page {
    /* Inherits from .hy-page: position, z-index, padding, animation */
}

/* ============================================
   PAGE HEADER
   ============================================ */
.tutoriels-page-header {
    margin-bottom: 22px;
    animation: hy-fade-up 0.3s ease-out;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.tutoriels-page-header .header-kicker {
    font-family: var(--hy-font-mono);
    font-size: 10px;
    color: var(--hy-accent);
    letter-spacing: 0.4em;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.tutoriels-page-header .header-kicker::before {
    content: '';
    width: 22px;
    height: 1px;
    background: var(--hy-accent);
}

.tutoriels-page-header .header-title-row {
    display: flex;
    align-items: baseline;
    gap: 18px;
    flex-wrap: wrap;
}

.tutoriels-page-header h1 {
    margin: 0;
    font-family: var(--hy-font-display);
    font-size: 38px;
    font-weight: 400;
    letter-spacing: 0.14em;
    color: var(--hy-ink);
}

.tutoriels-page-header .header-subtitle {
    font-family: var(--hy-font-mono);
    font-size: 11px;
    color: var(--hy-ink-3);
    letter-spacing: 0.18em;
}

.tutoriels-page-header .header-actions {
    display: flex;
    gap: 10px;
}

/* ============================================
   SEARCH & FILTERS BAR
   ============================================ */
.tutoriels-filters {
    display: grid;
    grid-template-columns: 1fr 180px 180px;
    gap: 10px;
    margin-bottom: 16px;
}

.tutoriels-filters .filter-search {
    position: relative;
}

.tutoriels-filters .filter-search input,
.tutoriels-filters .filter-select select {
    width: 100%;
    padding: 10px 14px;
    background: var(--hy-panel-hi);
    color: var(--hy-ink);
    border: 1px solid var(--hy-border-soft);
    font-family: var(--hy-font-mono);
    font-size: 11px;
    clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
    transition: border-color var(--hy-transition-fast);
}

.tutoriels-filters .filter-search input:focus,
.tutoriels-filters .filter-select select:focus {
    outline: none;
    border-color: var(--hy-accent);
}

.tutoriels-filters .filter-search input::placeholder {
    color: var(--hy-ink-3);
}

/* ============================================
   CATEGORY CHIPS
   ============================================ */
.tutoriels-categories {
    display: flex;
    gap: 6px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.tutoriels-categories .cat-chip {
    padding: 7px 14px;
    background: transparent;
    border: 1px solid var(--hy-border-soft);
    color: var(--hy-ink-2);
    font-family: var(--hy-font-mono);
    font-size: 10px;
    letter-spacing: 0.18em;
    cursor: pointer;
    clip-path: polygon(4px 0, 100% 0, 100% calc(100% - 4px), calc(100% - 4px) 100%, 0 100%, 0 4px);
    transition: all var(--hy-transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.tutoriels-categories .cat-chip:hover {
    border-color: var(--hy-border-strong);
    color: var(--hy-ink);
}

.tutoriels-categories .cat-chip-active {
    padding: 7px 14px;
    background: rgba(255, 122, 38, 0.22);
    border: 1px solid var(--hy-accent);
    color: var(--hy-accent);
    font-family: var(--hy-font-mono);
    font-size: 10px;
    letter-spacing: 0.18em;
    cursor: pointer;
    clip-path: polygon(4px 0, 100% 0, 100% calc(100% - 4px), calc(100% - 4px) 100%, 0 100%, 0 4px);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* ============================================
   RESULTS COUNT
   ============================================ */
.tutoriels-count {
    font-family: var(--hy-font-mono);
    font-size: 10px;
    color: var(--hy-accent);
    letter-spacing: 0.2em;
    margin-bottom: 12px;
}

/* ============================================
   TUTORIAL CARDS GRID
   ============================================ */
.tutoriels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}

.tutorial-card {
    position: relative;
    padding: 16px;
    background: var(--hy-panel);
    border: 1px solid var(--hy-border-soft);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
    cursor: pointer;
    transition: all 0.15s ease;
    animation: hy-fade-up 0.3s ease-out backwards;
}

.tutorial-card:hover {
    border-color: var(--hy-border-strong);
    transform: translateY(-2px);
}

/* Staggered animation delays */
.tutorial-card:nth-child(1) { animation-delay: 0ms; }
.tutorial-card:nth-child(2) { animation-delay: 30ms; }
.tutorial-card:nth-child(3) { animation-delay: 60ms; }
.tutorial-card:nth-child(4) { animation-delay: 90ms; }
.tutorial-card:nth-child(5) { animation-delay: 120ms; }
.tutorial-card:nth-child(6) { animation-delay: 150ms; }
.tutorial-card:nth-child(7) { animation-delay: 180ms; }
.tutorial-card:nth-child(8) { animation-delay: 210ms; }

/* Card Cover Image */
.tutorial-card .card-cover {
    position: relative;
    height: 120px;
    margin-bottom: 14px;
    background: radial-gradient(ellipse at 50% 60%, rgba(255, 122, 38, 0.15) 0%, transparent 70%);
    border: 1px solid var(--hy-border-soft);
    clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tutorial-card .card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tutorial-card .card-cover-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--hy-ink-3);
    font-size: 32px;
}

/* Category Badge */
.tutorial-card .card-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 2px 9px;
    background: rgba(255, 122, 38, 0.22);
    border: 1px solid rgba(255, 122, 38, 0.55);
    color: var(--hy-accent);
    font-family: var(--hy-font-mono);
    font-size: 9px;
    letter-spacing: 0.18em;
    clip-path: polygon(3px 0, 100% 0, 100% calc(100% - 3px), calc(100% - 3px) 100%, 0 100%, 0 3px);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Card Content */
.tutorial-card .card-mfr {
    font-family: var(--hy-font-mono);
    font-size: 9px;
    color: var(--hy-ink-3);
    letter-spacing: 0.18em;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.tutorial-card .card-title {
    font-family: var(--hy-font-title);
    font-size: 14px;
    color: var(--hy-ink);
    letter-spacing: 0.06em;
    margin-bottom: 6px;
    line-height: 1.3;
}

.tutorial-card .card-desc {
    font-family: var(--hy-font-body);
    font-size: 12px;
    color: var(--hy-ink-2);
    line-height: 1.4;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Card Meta Footer */
.tutorial-card .card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid var(--hy-border-soft);
    font-family: var(--hy-font-mono);
    font-size: 10px;
    color: var(--hy-ink-3);
    letter-spacing: 0.1em;
}

.tutorial-card .card-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ============================================
   PAGINATION
   ============================================ */
.tutoriels-pagination {
    margin-top: 24px;
    display: flex;
    justify-content: center;
    padding: 12px 16px;
    background: var(--hy-panel);
    border: 1px solid var(--hy-border-soft);
}

/* ============================================
   LOADING STATE
   ============================================ */
.tutoriels-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

/* ============================================
   EMPTY STATE
   ============================================ */
.tutoriels-empty {
    padding: 40px;
    text-align: center;
    background: var(--hy-panel);
    border: 1px solid var(--hy-border-soft);
    font-family: var(--hy-font-mono);
    font-size: 12px;
    color: var(--hy-ink-2);
    letter-spacing: 0.1em;
}

/* ============================================
   TUTORIAL VIEW PAGE
   ============================================ */

/* Navigation Bar */
.view-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    animation: hy-fade-up 0.3s ease-out;
}

.view-back-btn {
    background: transparent;
    border: 1px solid var(--hy-border-soft);
    color: var(--hy-ink-2);
    padding: 8px 14px;
    font-family: var(--hy-font-mono);
    font-size: 10px;
    letter-spacing: 0.18em;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all var(--hy-transition-fast);
}

.view-back-btn:hover {
    border-color: var(--hy-border-strong);
    color: var(--hy-ink);
}

.view-edit-btn {
    background: transparent;
    border: 1px solid var(--hy-accent-2);
    color: var(--hy-accent-2);
    padding: 8px 14px;
    font-family: var(--hy-font-mono);
    font-size: 10px;
    letter-spacing: 0.18em;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
    transition: all var(--hy-transition-fast);
}

.view-edit-btn:hover {
    background: rgba(34, 211, 238, 0.1);
}

/* Tutorial Header Panel */
.view-header-panel {
    position: relative;
    background: var(--hy-panel);
    border: 1px solid var(--hy-border-soft);
    backdrop-filter: blur(10px);
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
    margin-bottom: 14px;
    animation: hy-fade-up 0.4s ease-out;
    overflow: hidden;
}

.view-header-content {
    position: relative;
    padding: 40px 36px;
    border-bottom: 1px solid var(--hy-border-soft);
}

.view-header-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: rgba(239, 68, 68, 0.22);
    border: 1px solid rgba(239, 68, 68, 0.55);
    font-family: var(--hy-font-mono);
    font-size: 9px;
    letter-spacing: 0.18em;
    clip-path: polygon(3px 0, 100% 0, 100% calc(100% - 3px), calc(100% - 3px) 100%, 0 100%, 0 3px);
    margin-bottom: 14px;
}

.view-header-title {
    margin: 0 0 6px 0;
    font-family: var(--hy-font-display);
    font-size: 48px;
    color: var(--hy-ink);
    letter-spacing: 0.12em;
    line-height: 1.1;
}

.view-header-desc {
    font-family: var(--hy-font-body);
    font-size: 13px;
    color: var(--hy-ink-2);
    margin-bottom: 16px;
    max-width: 700px;
}

.view-header-meta {
    display: flex;
    gap: 18px;
    font-family: var(--hy-font-mono);
    font-size: 10px;
    color: var(--hy-ink-3);
    letter-spacing: 0.14em;
    flex-wrap: wrap;
}

.view-header-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.view-header-meta .meta-accent {
    color: var(--hy-accent);
}

/* Section Panels */
.view-section-panel {
    position: relative;
    background: var(--hy-panel);
    border: 1px solid var(--hy-border-soft);
    backdrop-filter: blur(10px);
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
    margin-bottom: 14px;
    animation: hy-fade-up 0.4s ease-out backwards;
}

.view-section-panel:nth-child(1) { animation-delay: 100ms; }
.view-section-panel:nth-child(2) { animation-delay: 150ms; }
.view-section-panel:nth-child(3) { animation-delay: 200ms; }

.view-section-content {
    padding: 16px 20px;
    border-left: 3px solid var(--hy-accent);
}

.view-section-title {
    font-family: var(--hy-font-title);
    font-size: 14px;
    color: var(--hy-ink);
    letter-spacing: 0.12em;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.view-section-text {
    font-family: var(--hy-font-body);
    font-size: 13px;
    color: var(--hy-ink-2);
    line-height: 1.7;
}

.view-section-text p {
    margin: 0 0 12px 0;
}

.view-section-text p:last-child {
    margin-bottom: 0;
}

/* Media in Sections */
.view-section-media {
    margin-top: 16px;
}

.view-section-media figure {
    margin: 0;
}

.view-section-media img {
    max-width: 100%;
    border: 1px solid var(--hy-border-soft);
    clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}

.view-section-media figcaption {
    margin-top: 8px;
    font-family: var(--hy-font-mono);
    font-size: 10px;
    color: var(--hy-ink-3);
    letter-spacing: 0.1em;
}

.view-section-media .video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border: 1px solid var(--hy-border-soft);
}

.view-section-media .video-container iframe,
.view-section-media .video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Footer */
.view-footer {
    margin-top: 24px;
    animation: hy-fade-up 0.4s 300ms ease-out backwards;
}

.view-footer-btn {
    background: var(--hy-panel);
    border: 1px solid var(--hy-border-soft);
    color: var(--hy-ink-2);
    width: 100%;
    padding: 14px 18px;
    font-family: var(--hy-font-mono);
    font-size: 11px;
    letter-spacing: 0.18em;
    cursor: pointer;
    text-align: left;
    transition: all var(--hy-transition-fast);
}

.view-footer-btn:hover {
    border-color: var(--hy-border-strong);
    color: var(--hy-ink);
}

/* ============================================
   TUTORIAL EDITOR PAGE
   ============================================ */

/* Editor Header */
.editor-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 22px;
    animation: hy-fade-up 0.3s ease-out;
}

.editor-header .header-left {
    display: flex;
    flex-direction: column;
}

.editor-header .header-back {
    font-family: var(--hy-font-mono);
    font-size: 10px;
    color: var(--hy-accent);
    letter-spacing: 0.4em;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: color var(--hy-transition-fast);
}

.editor-header .header-back::before {
    content: '';
    width: 22px;
    height: 1px;
    background: var(--hy-accent);
}

.editor-header .header-back:hover {
    color: var(--hy-ink);
}

.editor-header h1 {
    margin: 0;
    font-family: var(--hy-font-display);
    font-size: 38px;
    font-weight: 400;
    letter-spacing: 0.14em;
    color: var(--hy-ink);
}

.editor-header .header-subtitle {
    font-family: var(--hy-font-mono);
    font-size: 11px;
    color: var(--hy-ink-3);
    letter-spacing: 0.18em;
    margin-top: 6px;
}

/* Editor Layout */
.editor-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 14px;
}

@media (max-width: 900px) {
    .editor-layout {
        grid-template-columns: 1fr;
    }
}

/* Editor Panels */
.editor-panel {
    position: relative;
    background: var(--hy-panel);
    border: 1px solid var(--hy-border-soft);
    backdrop-filter: blur(10px);
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
    margin-bottom: 14px;
    animation: hy-fade-up 0.4s ease-out backwards;
}

.editor-panel .panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid var(--hy-border-soft);
}

.editor-panel .panel-header .panel-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--hy-font-title);
    font-size: 12px;
    color: var(--hy-ink);
    letter-spacing: 0.18em;
}

.editor-panel .panel-header .section-count {
    padding: 2px 8px;
    background: var(--hy-accent);
    color: #000;
    font-family: var(--hy-font-mono);
    font-size: 9px;
    font-weight: 600;
    border-radius: 9px;
}

.editor-panel .panel-content {
    padding: 14px;
}

/* Form Fields */
.editor-field {
    margin-bottom: 12px;
}

.editor-field-label {
    font-family: var(--hy-font-mono);
    font-size: 9px;
    color: var(--hy-ink-3);
    letter-spacing: 0.22em;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.editor-field input,
.editor-field select,
.editor-field textarea {
    width: 100%;
    padding: 12px 14px;
    background: var(--hy-panel-hi);
    color: var(--hy-ink);
    border: 1px solid var(--hy-border-soft);
    font-family: var(--hy-font-body);
    font-size: 14px;
    transition: border-color var(--hy-transition-fast);
}

.editor-field input:focus,
.editor-field select:focus,
.editor-field textarea:focus {
    outline: none;
    border-color: var(--hy-accent);
}

.editor-field textarea {
    resize: vertical;
    min-height: 100px;
}

.editor-field-row {
    display: grid;
    grid-template-columns: 1fr 100px 100px;
    gap: 10px;
}

@media (max-width: 600px) {
    .editor-field-row {
        grid-template-columns: 1fr;
    }
}

/* Checkbox Field */
.editor-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: var(--hy-panel-hi);
    border: 1px solid var(--hy-border-soft);
    color: var(--hy-ink);
    cursor: pointer;
    font-family: var(--hy-font-mono);
    font-size: 11px;
    letter-spacing: 0.1em;
}

/* Section Cards */
.editor-section-card {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px;
    background: var(--hy-panel-hi);
    border: 1px solid var(--hy-border-soft);
    margin-bottom: 10px;
    clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
    transition: border-color var(--hy-transition-fast);
}

.editor-section-card:hover {
    border-color: var(--hy-border-strong);
}

.editor-section-drag {
    color: var(--hy-ink-3);
    font-family: var(--hy-font-mono);
    font-size: 14px;
    cursor: grab;
    padding: 4px;
}

.editor-section-content {
    flex: 1;
    min-width: 0;
}

.editor-section-delete {
    width: 36px;
    height: 36px;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.55);
    color: var(--hy-danger);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--hy-transition-fast);
}

.editor-section-delete:hover {
    background: rgba(239, 68, 68, 0.25);
}

/* Sections Empty State */
.sections-empty {
    padding: 40px 20px;
    text-align: center;
    color: var(--hy-ink-3);
}

.sections-empty .empty-icon {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.5;
}

.sections-empty p {
    font-family: var(--hy-font-title);
    font-size: 14px;
    color: var(--hy-ink-2);
    margin: 0 0 6px 0;
}

.sections-empty span {
    font-family: var(--hy-font-mono);
    font-size: 10px;
    letter-spacing: 0.14em;
}

/* Cover Image */
.editor-cover-placeholder {
    border: 2px dashed var(--hy-border-soft);
    padding: 40px 20px;
    text-align: center;
    color: var(--hy-ink-3);
    font-family: var(--hy-font-mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    cursor: pointer;
    transition: all var(--hy-transition-fast);
}

.editor-cover-placeholder:hover {
    border-color: var(--hy-accent);
    color: var(--hy-ink-2);
}

.editor-cover-placeholder .upload-icon {
    font-size: 32px;
    margin-bottom: 10px;
}

.editor-cover-placeholder .upload-hint {
    font-size: 9px;
    color: var(--hy-ink-3);
    margin-top: 8px;
    letter-spacing: 0.18em;
}

.editor-cover-preview {
    position: relative;
}

.editor-cover-preview img {
    width: 100%;
    border: 1px solid var(--hy-border-soft);
    clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}

.editor-cover-remove {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    background: rgba(239, 68, 68, 0.9);
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

/* Info Panel */
.editor-info-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--hy-border-soft);
}

.editor-info-row:last-child {
    border-bottom: none;
}

.editor-info-label {
    font-family: var(--hy-font-mono);
    font-size: 9px;
    color: var(--hy-ink-3);
    letter-spacing: 0.18em;
}

.editor-info-value {
    font-family: var(--hy-font-mono);
    font-size: 11px;
    color: var(--hy-ink);
}

.editor-info-value.highlight {
    color: var(--hy-accent);
}

/* Media Upload Zone */
.editor-media-upload {
    border: 1px dashed var(--hy-border-soft);
    padding: 16px;
    text-align: center;
    cursor: pointer;
    transition: all var(--hy-transition-fast);
}

.editor-media-upload:hover {
    border-color: var(--hy-accent);
}

.editor-media-preview {
    position: relative;
    display: inline-block;
}

.editor-media-preview img {
    max-width: 100%;
    max-height: 150px;
    border: 1px solid var(--hy-border-soft);
}

/* ============================================
   HY BUTTON STYLES (RSI HUD)
   ============================================ */
.hy-btn-primary {
    padding: 9px 16px;
    background: var(--hy-accent);
    color: #000;
    border: 1px solid var(--hy-accent);
    font-family: var(--hy-font-mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.2em;
    cursor: pointer;
    clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 0 18px var(--hy-accent-glow);
    transition: all var(--hy-transition-fast);
    text-transform: uppercase;
}

.hy-btn-primary:hover {
    box-shadow: 0 0 24px var(--hy-accent-glow);
    transform: translateY(-1px);
}

.hy-btn-ghost {
    padding: 9px 16px;
    background: transparent;
    color: var(--hy-ink-2);
    border: 1px solid var(--hy-border-soft);
    font-family: var(--hy-font-mono);
    font-size: 11px;
    letter-spacing: 0.2em;
    cursor: pointer;
    clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all var(--hy-transition-fast);
    text-transform: uppercase;
}

.hy-btn-ghost:hover {
    border-color: var(--hy-border-strong);
    color: var(--hy-ink);
}

.hy-btn-accent2 {
    padding: 9px 16px;
    background: transparent;
    color: var(--hy-accent-2);
    border: 1px solid rgba(34, 211, 238, 0.55);
    font-family: var(--hy-font-mono);
    font-size: 11px;
    letter-spacing: 0.2em;
    cursor: pointer;
    clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all var(--hy-transition-fast);
    text-transform: uppercase;
}

.hy-btn-accent2:hover {
    background: rgba(34, 211, 238, 0.1);
}

.hy-btn-danger {
    padding: 9px 16px;
    background: transparent;
    color: var(--hy-danger);
    border: 1px solid rgba(239, 68, 68, 0.55);
    font-family: var(--hy-font-mono);
    font-size: 11px;
    letter-spacing: 0.2em;
    cursor: pointer;
    clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all var(--hy-transition-fast);
    text-transform: uppercase;
}

.hy-btn-danger:hover {
    background: rgba(239, 68, 68, 0.1);
}

.hy-btn-sm {
    padding: 6px 12px;
    font-size: 10px;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */
@media (max-width: 768px) {
    .tutoriels-page-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .tutoriels-page-header h1 {
        font-size: 28px;
    }

    .tutoriels-filters {
        grid-template-columns: 1fr;
    }

    .tutoriel-view-page,
    .tutoriel-editor-page {
        padding: 16px 20px 40px;
    }

    .view-header-title {
        font-size: 32px;
    }

    .editor-header h1 {
        font-size: 28px;
    }
}

/* ============================================
   PDF VIEWER (TutorielView)
   ============================================ */
.tutoriel-pdf-container {
    width: 100%;
    height: 80vh;
    min-height: 600px;
    margin-bottom: 14px;
}

.tutoriel-pdf-viewer {
    width: 100%;
    height: 100%;
    border: 1px solid var(--hy-border-soft);
    background: #fff;
}

.tutoriel-no-pdf {
    padding: 48px;
    text-align: center;
    color: var(--hy-ink-3);
    font-family: var(--hy-font-mono);
    font-size: 12px;
    letter-spacing: 0.1em;
    border: 1px dashed var(--hy-border-soft);
    margin-bottom: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

/* ============================================
   PDF UPLOAD ZONE (TutorielEditor)
   ============================================ */
.editor-pdf-dropzone {
    min-height: 140px;
    flex-direction: column;
    gap: 0;
}

.editor-pdf-uploaded {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--hy-panel-hi);
    border: 1px solid var(--hy-border-soft);
}

.editor-pdf-icon {
    flex-shrink: 0;
}

.editor-pdf-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 0;
}

.editor-pdf-name {
    font-family: var(--hy-font-mono);
    font-size: 11px;
    color: var(--hy-success);
    letter-spacing: 0.08em;
    display: flex;
    align-items: center;
}

.editor-pdf-id {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
