/* ============================================
   VARIABLES DE THÈME
   Par défaut : thème SOMBRE (inspiré turnoffthelights.com)
   ============================================ */
:root {
    --bg-body: #0a0a0a;
    --text-body: #d1d5db;

    --bg-header: #000000;
    --text-header: white;
    --text-header-p: #9ca3af;

    --bg-nav: #000000;
    --text-nav: #b0b8c4;
    --bg-nav-hover: #14181f;

    --bg-article: #111318;
    --bg-article-rgb: 17, 19, 24;
    --border-article: #1f2430;
    --text-h2: #f3f4f6;
    --border-h2: #1f2430;

    --bg-pre: #000000;
    --text-pre: #60a5fa;

    --bg-code-inline: #161a22;
    --text-code-inline: #93c5fd;

    --text-footer: #6b7280;

    /* Couleur d'accent : bleu Xbline */
    --accent-color: #2f7de1;
    --accent-glow: rgba(47, 125, 225, 0.35);
}

/* ============================================
   THÈME CLAIR
   ============================================ */
body.light-theme {
    --bg-body: #f4f6f8;
    --text-body: #1a1a1a;

    --bg-header: #1f2937;
    --text-header: white;
    --text-header-p: #cbd5e1;

    --bg-nav: #111827;
    --text-nav: #e5e7eb;
    --bg-nav-hover: #374151;

    --bg-article: white;
    --bg-article-rgb: 255, 255, 255;
    --border-article: #e5e7eb;
    --text-h2: #1f2937;
    --border-h2: #e5e7eb;

    --bg-pre: #1f2937;
    --text-pre: #60a5fa;

    --bg-code-inline: #e5e7eb;
    --text-code-inline: #1f2937;

    --text-footer: #6b7280;

    --accent-color: #2f7de1;
    --accent-glow: rgba(47, 125, 225, 0.2);
}

/* ============================================
   RÉINITIALISATION DE BASE
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Inter", "Segoe UI", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-body);
    background-color: var(--bg-body);
    transition: background-color 0.3s ease, color 0.3s ease;

    /* Halo lumineux discret en haut de page, façon turnoffthelights.com */
    background-image:
        radial-gradient(circle at 50% 0%, var(--accent-glow) 0%, transparent 45%),
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.08) 2px, transparent 2px),
        radial-gradient(circle at 70% 60%, rgba(255, 255, 255, 0.06) 2px, transparent 2px),
        radial-gradient(circle at 40% 80%, rgba(255, 255, 255, 0.05) 2px, transparent 2px),
        radial-gradient(circle at 85% 15%, rgba(255, 255, 255, 0.08) 2px, transparent 2px),
        radial-gradient(circle at 10% 90%, rgba(255, 255, 255, 0.05) 2px, transparent 2px);
    background-size: 100% 600px, 200px 200px, 200px 200px, 200px 200px, 200px 200px, 200px 200px;
    background-repeat: no-repeat, repeat, repeat, repeat, repeat, repeat;
}

body.light-theme {
    background-image: none;
}

/* ============================================
   HALOS LUMINEUX ANIMÉS (arrière-plan)
   ============================================ */
.bg-orbs {
    position: fixed;
    inset: 0;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}

.bg-orbs span {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    animation: float-orb 26s ease-in-out infinite;
}

.bg-orbs span:nth-child(1) {
    width: 600px;
    height: 600px;
    top: -80px;
    left: -60px;
    animation-duration: 26s;
}

.bg-orbs span:nth-child(2) {
    width: 520px;
    height: 520px;
    top: 40%;
    right: -100px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.09) 0%, transparent 70%);
    animation-duration: 32s;
    animation-delay: -9s;
}

.bg-orbs span:nth-child(3) {
    width: 480px;
    height: 480px;
    bottom: -120px;
    left: 20%;
    animation-duration: 29s;
    animation-delay: -16s;
}

@keyframes float-orb {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(50px, 40px) scale(1.1); }
    50% { transform: translate(-30px, 70px) scale(0.92); }
    75% { transform: translate(-50px, -25px) scale(1.05); }
}

body.light-theme .bg-orbs {
    display: none;
}

@media (prefers-reduced-motion: reduce) {
    .bg-orbs span {
        animation: none;
    }
}

/* ============================================
   NAVBAR (header + nav fusionnés)
   ============================================ */
.navbar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 20px;
    background-color: var(--bg-header);
    padding: 14px 30px;
    border-bottom: 1px solid var(--border-article);
}

.brand-logo {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-header);
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: -0.02em;
    text-decoration: none;
    white-space: nowrap;
    justify-self: start;
}

.navbar-links {
    justify-self: center;
    margin-left: 12px;
}

#theme-toggle {
    justify-self: end;
}

.navbar-search {
    display: flex;
    align-items: center;
    gap: 6px;
    background-color: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    padding: 6px 10px;
    min-width: 180px;
    max-width: 200px;
    color: var(--text-nav);
    margin-left: auto;
}

.navbar-search svg {
    flex-shrink: 0;
}

.navbar-search input {
    border: none;
    background: transparent;
    outline: none;
    color: var(--text-header);
    font-size: 0.8rem;
    width: 100%;
    padding: 0;
}

.navbar-search input::placeholder {
    color: var(--text-nav);
}

.navbar-links ul {
    list-style: none;
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.navbar-links a {
    display: block;
    padding: 8px 14px;
    color: var(--text-nav);
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    text-decoration: none;
    border-radius: 8px;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.navbar-links a:hover {
    color: var(--text-header);
    background-color: var(--bg-nav-hover);
}

#theme-toggle {
    position: fixed;
    right: 20px;
    bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-header);
    padding: 8px 14px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 0.8rem;
    white-space: nowrap;
    z-index: 1000;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

#theme-toggle:hover {
    border-color: var(--accent-color);
    box-shadow: 0 0 16px var(--accent-glow);
}

/* ============================================
   ICÔNES SVG (bouton thème, cartes, titres)
   ============================================ */
.icon-sun, .icon-moon {
    display: none;
}

body:not(.light-theme) .icon-sun {
    display: block;
}

body.light-theme .icon-moon {
    display: block;
}

.card-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
    color: var(--accent-color);
    font-size: 28px;
    line-height: 1;
}

article h2 svg {
    color: var(--accent-color);
}

/* ============================================
   HERO / PORTE D'ENTRÉE
   ============================================ */
.hero {
    max-width: 800px;
    margin: 70px auto 40px;
    padding: 0 20px;
    text-align: center;
}

.hero h2 {
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
    color: var(--text-h2);
}

.hero-subtitle {
    color: var(--text-footer);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.hero p {
    font-weight: 400;
    color: var(--text-footer);
    margin-bottom: 12px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero p:last-of-type {
    margin-bottom: 40px;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}

.card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    background-color: var(--bg-article);
    border: 1px solid var(--border-article);
    border-radius: 14px;
    padding: 30px 18px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-color);
    box-shadow: 0 0 30px var(--accent-glow);
}

.card-title {
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--text-h2);
    margin-bottom: 4px;
}

.card-desc {
    font-size: 0.85rem;
    color: var(--text-footer);
    text-align: center;
}

/* ============================================
   SECTION À PROPOS
   ============================================ */
.about {
    max-width: 800px;
    margin: 0 auto 24px;
    padding: 30px;
    background-color: rgba(var(--bg-article-rgb), 0.7);
    border: 1px solid var(--border-article);
    border-radius: 14px;
}

.about h3 {
    color: var(--text-h2);
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 12px;
    font-size: 1.2rem;
}

.about p {
    color: var(--text-body);
    margin-bottom: 10px;
}

.about a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
}

.about a:hover {
    text-decoration: underline;
}

/* ============================================
   FIL D'ARIANE
   ============================================ */
.breadcrumb {
    background-color: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--border-article);
    padding: 12px 30px;
}

body.light-theme .breadcrumb {
    background-color: rgba(0, 0, 0, 0.02);
}

.breadcrumb-inner {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: var(--text-footer);
}

.breadcrumb a {
    color: var(--accent-color);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb-separator {
    color: var(--text-footer);
}

.breadcrumb-current {
    color: var(--text-body);
    font-weight: 500;
}

/* ============================================
   CONTENU PRINCIPAL
   ============================================ */
main {
    max-width: 800px;
    margin: 24px auto 40px;
    padding: 0 20px;
}

article {
    background-color: var(--bg-article);
    border: 1px solid var(--border-article);
    border-radius: 14px;
    padding: 30px;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

article h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-h2);
    font-weight: 600;
    font-size: 1.3rem;
    letter-spacing: -0.01em;
    margin-bottom: 14px;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 10px;
}

article p, article ul {
    margin-bottom: 10px;
}

article ul {
    padding-left: 20px;
}

pre {
    background-color: var(--bg-pre);
    color: var(--text-pre);
    padding: 14px 18px;
    border-radius: 10px;
    overflow-x: auto;
    margin-bottom: 10px;
    border: 1px solid var(--border-article);
}

code {
    font-family: "Consolas", monospace;
}

p code {
    background-color: var(--bg-code-inline);
    color: var(--text-code-inline);
    padding: 2px 8px;
    border-radius: 6px;
}

/* ============================================
   PAGE CATALOGUE (index des tutoriels)
   ============================================ */
.catalog {
    max-width: 1000px;
    margin: 24px auto 40px;
    padding: 0 20px;
}

.catalog-hero {
    text-align: center;
    margin: 30px 0 36px;
}

.catalog-hero h2 {
    font-size: 1.9rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text-h2);
    margin-bottom: 22px;
}

.catalog-search {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 640px;
    margin: 0 auto;
    background-color: var(--bg-article);
    border: 1px solid var(--border-article);
    border-radius: 999px;
    padding: 16px 24px;
    color: var(--text-nav);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.catalog-search:focus-within {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px var(--accent-glow);
}

.catalog-search svg {
    flex-shrink: 0;
    color: var(--text-footer);
}

.catalog-search input {
    border: none;
    background: transparent;
    outline: none;
    color: var(--text-body);
    font-family: inherit;
    font-size: 1rem;
    width: 100%;
}

.catalog-search input::placeholder {
    color: var(--text-footer);
}

.space-toggle {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}

.space-btn {
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-body);
    background-color: var(--bg-article);
    border: 1px solid var(--border-article);
    border-radius: 999px;
    padding: 12px 22px;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.space-btn:hover {
    border-color: var(--accent-color);
}

.space-btn.active {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
}

.category-filters {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.filters-label {
    color: var(--text-footer);
    font-size: 0.9rem;
    margin-right: 4px;
}

.filter-chip {
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-nav);
    background-color: transparent;
    border: 1px solid var(--border-article);
    border-radius: 999px;
    padding: 8px 16px;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.filter-chip:hover {
    border-color: var(--accent-color);
    color: var(--text-h2);
}

.filter-chip.active {
    background-color: var(--accent-glow);
    border-color: var(--accent-color);
    color: var(--text-h2);
}

.tutorial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

.tutorial-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    background-color: var(--bg-article);
    border: 1px solid var(--border-article);
    border-radius: 14px;
    padding: 22px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.tutorial-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-color);
    box-shadow: 0 0 30px var(--accent-glow);
}

.tutorial-card[hidden] {
    display: none;
}

.tutorial-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.badge {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 4px 10px;
    border-radius: 999px;
}

.badge-facile {
    background-color: rgba(34, 197, 94, 0.15);
    color: #4ade80;
}

.badge-moyen {
    background-color: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
}

.badge-difficile {
    background-color: rgba(239, 68, 68, 0.15);
    color: #f87171;
}

.tutorial-time {
    font-size: 0.8rem;
    color: var(--text-footer);
}

.tutorial-card h3 {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--text-h2);
    margin-bottom: 8px;
}

.tutorial-desc {
    font-size: 0.85rem;
    color: var(--text-footer);
    margin-bottom: 14px;
    flex-grow: 1;
}

.tutorial-tag {
    align-self: flex-start;
    font-size: 0.78rem;
    color: var(--text-nav);
    background-color: var(--bg-code-inline);
    padding: 4px 10px;
    border-radius: 6px;
}

.tutorial-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tutorial-type-tag {
    color: var(--accent-color);
    background-color: var(--accent-glow);
}

.tutorial-empty {
    text-align: center;
    color: var(--text-footer);
    margin-top: 20px;
}

/* ============================================
   WIDGET ACTUALITÉS DÉFILANTES (accueil)
   ============================================ */
.news-ticker-section {
    max-width: 800px;
    margin: 0 auto 24px;
    padding: 20px 30px;
    background-color: rgba(var(--bg-article-rgb), 0.7);
    border: 1px solid var(--border-article);
    border-radius: 14px;
}

.news-ticker-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-h2);
}

.news-ticker-header a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.78rem;
}

.news-ticker-header a:hover {
    text-decoration: underline;
}

.news-ticker-viewport {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.news-ticker-track {
    display: flex;
    align-items: center;
    width: max-content;
    animation: ticker-scroll 40s linear infinite;
}

.news-ticker-viewport:hover .news-ticker-track {
    animation-play-state: paused;
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    white-space: nowrap;
    padding: 6px 24px;
    border-right: 1px solid var(--border-article);
}

.ticker-item:hover .ticker-title {
    text-decoration: underline;
}

.ticker-thumb {
    width: 90px;
    height: 56px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.ticker-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-width: 220px;
    white-space: normal;
}

.ticker-source {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--accent-color);
}

.ticker-title {
    font-size: 0.85rem;
    color: var(--text-body);
    line-height: 1.3;
}

@keyframes ticker-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* ============================================
   PAGE ACTUALITÉ (flux RSS)
   ============================================ */
.news-status {
    text-align: center;
    color: var(--text-footer);
    background-color: rgba(var(--bg-article-rgb), 0.7);
    border: 1px solid var(--border-article);
    border-radius: 10px;
    padding: 12px 20px;
    margin-bottom: 24px;
    font-size: 0.88rem;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.news-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    background-color: rgba(var(--bg-article-rgb), 0.7);
    border: 1px solid var(--border-article);
    border-radius: 14px;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.news-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-color);
    box-shadow: 0 0 30px var(--accent-glow);
}

.news-card-thumb {
    aspect-ratio: 16 / 9;
    background: linear-gradient(160deg, #14181f, #05060a);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

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

.news-card-icon {
    font-size: 2rem;
    opacity: 0.6;
}

.news-card-body {
    padding: 16px;
}

.news-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.news-card-body h3 {
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--text-h2);
    margin-bottom: 8px;
}

.news-card-desc {
    font-size: 0.85rem;
    color: var(--text-footer);
}

.news-credit {
    font-size: 0.78rem;
    margin-top: 6px;
}

/* ============================================
   PAGE DÉPANNAGE (pannes fréquentes)
   ============================================ */
.issues-section {
    max-width: 1000px;
    margin: 0 auto 36px;
}

.issues-title {
    text-align: center;
    color: var(--text-footer);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.urgent-banner {
    max-width: 800px;
    margin: 0 auto 40px;
    padding: 22px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    background-color: var(--bg-article);
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-radius: 14px;
}

.urgent-banner p {
    color: var(--text-h2);
    font-weight: 500;
}

.btn-urgent {
    background-color: #f59e0b;
    color: #111318;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 12px 22px;
    border-radius: 999px;
    text-decoration: none;
    white-space: nowrap;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-urgent:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.35);
}

/* ============================================
   PAGE GUIDE (détail d'un tutoriel/procédure)
   ============================================ */
.guide-content {
    max-width: 800px;
    margin: 40px auto 60px;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.guide-header {
    margin-bottom: 6px;
}

.guide-title {
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text-h2);
    margin-bottom: 14px;
}

.guide-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    color: var(--text-footer);
    font-size: 0.88rem;
}

.guide-callout {
    padding: 24px;
}

.guide-callout h2 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-h2);
    margin-bottom: 10px;
}

.guide-callout p {
    color: var(--text-body);
}

.guide-callout ul {
    padding-left: 20px;
    color: var(--text-body);
}

.guide-callout ul li {
    margin-bottom: 4px;
}

.guide-callout.callout-success {
    border-color: rgba(34, 197, 94, 0.4);
}

.guide-callout.callout-success h2 {
    color: #4ade80;
}

.guide-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.guide-step {
    padding: 26px;
}

.guide-step h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-h2);
    margin-bottom: 12px;
}

.guide-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    border-radius: 999px;
    background-color: var(--accent-color);
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
}

.guide-step p {
    color: var(--text-body);
    margin-bottom: 14px;
}

.guide-editable-text {
    color: var(--text-footer);
    font-style: italic;
}

.guide-step strong {
    color: var(--text-h2);
}

.guide-step-screenshot {
    background-color: var(--bg-pre);
    border: 1px dashed var(--border-article);
    border-radius: 10px;
    padding: 36px 20px;
    text-align: center;
    color: var(--text-footer);
    font-size: 0.82rem;
}

.guide-faq h2 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-h2);
    margin-bottom: 14px;
}

.guide-faq details {
    padding: 14px 18px;
    margin-bottom: 10px;
}

.guide-faq summary {
    cursor: pointer;
    font-weight: 500;
    color: var(--text-h2);
}

.guide-faq p {
    margin-top: 10px;
    color: var(--text-body);
}

.guide-footer {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-article);
}

.guide-feedback {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-body);
    font-size: 0.9rem;
}

.guide-feedback-btn {
    padding: 8px 18px;
    border: 1px solid var(--border-article);
    border-radius: 999px;
    background: none;
    color: var(--text-body);
    text-decoration: none;
    font-size: 0.85rem;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.guide-feedback-btn:hover {
    border-color: var(--accent-color);
    color: var(--text-h2);
}

.guide-related h2 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-h2);
    margin-bottom: 10px;
}

.guide-related ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.guide-related a {
    color: var(--accent-color);
    text-decoration: none;
    font-size: 0.9rem;
}

.guide-related a:hover {
    text-decoration: underline;
}

.guide-hotline {
    background-color: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-radius: 10px;
    padding: 14px 18px;
    font-size: 0.88rem;
    color: var(--text-body);
}

.guide-hotline a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
}

.guide-hotline a:hover {
    text-decoration: underline;
}

/* ============================================
   PAGE VIDÉO — CATALOGUE (grille de vidéos)
   ============================================ */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.video-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    background-color: var(--bg-article);
    border: 1px solid var(--border-article);
    border-radius: 14px;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.video-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-color);
    box-shadow: 0 0 30px var(--accent-glow);
}

.video-card-thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    background: linear-gradient(160deg, #14181f, #05060a);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

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

.video-card-icon {
    font-size: 2rem;
    opacity: 0.6;
}

.video-card-play {
    position: absolute;
    font-size: 1.8rem;
    opacity: 0.9;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.6));
}

.video-card-body {
    padding: 16px;
}

.video-card-body h3 {
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--text-h2);
    margin-bottom: 10px;
}

.video-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* ============================================
   PAGE VIDÉO — VUE CINÉMA (lecteur + playlist + chapitres)
   ============================================ */
.back-link {
    display: inline-block;
    color: var(--text-footer);
    font-size: 0.85rem;
    text-decoration: none;
    margin-bottom: 16px;
    transition: color 0.2s ease;
}

.back-link:hover {
    color: var(--accent-color);
}

.video-page {
    display: grid;
    grid-template-columns: 7fr 3fr;
    gap: 30px;
    max-width: 1100px;
    margin: 24px auto 40px;
    padding: 0 20px;
    align-items: start;
}

.video-player {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: linear-gradient(160deg, #14181f, #05060a);
    border: 1px solid var(--border-article);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.video-player iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.video-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px;
    text-align: center;
    color: var(--text-footer);
    font-size: 0.85rem;
}

.video-play-btn {
    font-size: 3rem;
    opacity: 0.6;
}

.video-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--text-h2);
    margin: 18px 0 10px;
}

.video-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.video-description-card {
    background-color: var(--bg-article);
    border: 1px solid var(--border-article);
    border-radius: 14px;
    padding: 26px;
}

.video-description-card h3 {
    color: var(--text-h2);
    font-weight: 600;
    font-size: 1.05rem;
    margin-bottom: 12px;
}

.video-description-card p {
    color: var(--text-body);
    margin-bottom: 16px;
}

.download-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-color);
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
    padding: 10px 18px;
    border: 1px solid var(--accent-color);
    border-radius: 999px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.download-link:hover {
    background-color: var(--accent-color);
    color: white;
}

.video-sidebar section {
    background-color: var(--bg-article);
    border: 1px solid var(--border-article);
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 24px;
}

.sidebar-title {
    display: flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-footer);
    margin-bottom: 14px;
}

.video-playlist ul, .chapter-list {
    list-style: none;
}

.playlist-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-body);
    font-size: 0.88rem;
    margin-bottom: 4px;
    transition: background-color 0.2s ease;
}

.playlist-item:hover {
    background-color: var(--bg-nav-hover);
}

.playlist-thumb {
    flex-shrink: 0;
    width: 44px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    background-color: var(--bg-code-inline);
    border-radius: 6px;
}

.chapter-list button {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 8px 10px;
    border-radius: 8px;
    color: var(--text-body);
    font-family: inherit;
    font-size: 0.88rem;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.chapter-list button:hover {
    background-color: var(--bg-nav-hover);
    color: var(--text-h2);
}

.chapter-time {
    color: var(--accent-color);
    font-weight: 600;
    min-width: 42px;
}

@media (max-width: 800px) {
    .video-page {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   PIED DE PAGE
   ============================================ */
footer {
    text-align: center;
    padding: 30px 20px;
    color: var(--text-footer);
    font-size: 0.9rem;
    border-top: 1px solid var(--border-article);
    margin-top: 40px;
}