/* =========================================
   COMMENTONFAIT.COM - Main Stylesheet
   Design: Tech-Moderne, Clean & Sharp
   Thème : Sombre uniquement
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;600;700;800&family=DM+Sans:ital,wght@0,300;0,400;0,500;1,300&display=swap');

/* ---- CSS Variables — Thème SOMBRE (unique) ---- */
:root {
    --blue:          #0078d4;
    --header-full-h: 116px;
    --blue-dark:     #005a9e;
    --blue-light:    #50aeff;
    --accent:        #00b4d8;
    --win-cyan:      #4cc9f0;
    /* Surfaces — Windows 11 dark */
    --bg:            #202020;
    --bg-card:       rgba(45,45,45,0.55);
    --bg-dark:       #141414;
    /* Textes */
    --text:          #f3f3f3;
    --text-muted:    #ababab;
    --text-light:    #7a7a7a;
    /* Éléments UI */
    --border:        #383838;
    --header-bg:     rgba(32,32,32,0.55);
    --header-border: #383838;
    --submenu-bg:    #2d2d2d;
    --submenu-hover: rgba(255,255,255,.06);
    --input-bg:      #383838;
    /* Misc */
    --header-h:   70px;
    --radius:     14px;
    --shadow:     0 4px 24px rgba(0,0,0,.4);
    --shadow-lg:  0 12px 40px rgba(0,0,0,.55);
    --transition: .3s cubic-bezier(.4,0,.2,1);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: 'DM Sans', sans-serif;
    background: transparent;
    color: var(--text);
    line-height: 1.7;
    padding-top: var(--header-full-h, 116px);
}

/* Canvas fond étoilé */
#starfield {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: -1;
}

/* Tout le contenu passe au-dessus du canvas */
.site-header,
.site-main,
.site-footer { position: relative; z-index: 1; }

.site-main { background: transparent; }

.site-main > *,
section,
article,
.container,
.content-wrap,
.hero {
    position: relative;
    z-index: 2;
}

.drawer-header,
.mobile-questions-panel {
    background: #2d2d2d !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

@media (max-width: 1024px) {
    .main-nav {
        background: #2d2d2d !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }
    .drawer-header,
    .mobile-questions-panel {
        background: #2d2d2d !important;
    }
}

.site-header     { z-index: 1000; }
.sidebar         { z-index: 10; }
.article-sidebar { z-index: 10; }

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* =========================================
   HEADER
   ========================================= */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: auto;
    min-height: var(--header-h);
    background: var(--header-bg);
    backdrop-filter: blur(18px) saturate(180%);
    -webkit-backdrop-filter: blur(18px) saturate(180%);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    transition: box-shadow var(--transition);
}
.site-header.scrolled {
    box-shadow: 0 2px 30px rgba(0,0,0,.4);
}

.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 0 1.5rem;
}

/* Ligne 1 : logo + burger */
.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-h);
    width: 100%;
}

/* Logo centré */
.logo-wrap {
    flex: 1;
    display: flex;
    justify-content: center;
}
.logo-wrap a {
    display: flex;
    align-items: center;
    gap: .6rem;
}
.logo-img {
    height: 76px;
    width: auto;
    flex-shrink: 0;
}
.logo-text {
    font-family: 'Sora', sans-serif;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -.02em;
}
.logo-text span {
    color: var(--blue);
}

/* Ligne 2 : navigation desktop */
.main-nav {
    width: 100%;
    overflow: visible;
}
.nav-list {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: .5rem;
}
.nav-item { position: relative; }
.nav-link {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .55rem 1.6rem;
    font-size: 1rem;
    font-weight: 700;
    font-family: 'Sora', sans-serif;
    color: var(--text);
    border-radius: 10px;
    white-space: nowrap;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.nav-link:hover,
.nav-item.open > .nav-link {
    background: rgba(0,120,212,.08);
    color: var(--blue);
    border-color: var(--border);
}
.nav-link .arrow {
    font-size: .75em;
    transition: transform var(--transition);
    margin-left: .2rem;
}
.nav-item.open > .nav-link .arrow,
.nav-item:hover > .nav-link .arrow { transform: rotate(180deg); }

/* =========================================
   MEGA-MENU CASCADE
   ========================================= */
.megamenu {
    position: absolute;
    top: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    display: none;
    flex-direction: row;
    background: var(--submenu-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    z-index: 500;
    width: 700px;
    overflow: hidden;
    animation: megaFadeIn .18s ease;
}
@keyframes megaFadeIn {
    from { opacity: 0; transform: translateX(-50%) translateY(8px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0);   }
}
.has-megamenu::after {
    content: '';
    position: absolute;
    top: 100%; left: 0; right: 0;
    height: 8px;
    z-index: 501;
}
.nav-item:hover .megamenu,
.nav-item.open  .megamenu { display: flex; }

/* -- Colonne gauche : thèmes -- */
.mega-themes {
    width: 230px;
    flex-shrink: 0;
    border-right: 1px solid var(--border);
    padding: .6rem 0;
    background: var(--bg);
}
.mega-theme-item {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .7rem 1.1rem;
    cursor: pointer;
    font-size: .87rem;
    font-family: 'Sora', sans-serif;
    font-weight: 600;
    color: var(--text-muted);
    border-left: 3px solid transparent;
    transition: background var(--transition), color var(--transition), border-color var(--transition);
    user-select: none;
}
.mega-theme-item:hover,
.mega-theme-item.active {
    background: var(--submenu-bg);
    color: var(--blue);
    border-left-color: var(--blue);
}
.mega-theme-icon  { font-size: 1.05em; flex-shrink: 0; }
.mega-theme-label { flex: 1; line-height: 1.3; }
.mega-theme-arrow {
    font-size: 1.1em;
    color: var(--text-light);
    transition: transform var(--transition), color var(--transition);
    flex-shrink: 0;
}
.mega-theme-item:hover .mega-theme-arrow,
.mega-theme-item.active .mega-theme-arrow {
    color: var(--blue);
    transform: translateX(3px);
}

/* -- Colonne droite : questions -- */
.mega-questions {
    flex: 1;
    min-height: 320px;
    max-height: 440px;
    overflow-y: scroll;
    padding: .6rem 0;
    position: relative;
}
.mega-questions::-webkit-scrollbar { width: 8px; }
.mega-questions::-webkit-scrollbar-track {
    background: var(--border);
    border-radius: 8px;
    margin: 6px 0;
}
.mega-questions::-webkit-scrollbar-thumb {
    background: var(--blue);
    border-radius: 8px;
    border: 2px solid var(--submenu-bg);
}
.mega-questions::-webkit-scrollbar-thumb:hover {
    background: var(--blue-dark);
}
.mega-questions::after { display: none; }

.megamenu::after {
    content: '▼ défiler';
    position: absolute;
    bottom: 0;
    right: 0;
    width: calc(100% - 230px);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 6px;
    height: 40px;
    background: linear-gradient(to bottom, transparent, var(--submenu-bg) 80%);
    font-size: .68rem;
    font-weight: 700;
    font-family: 'Sora', sans-serif;
    letter-spacing: .08em;
    color: var(--blue);
    pointer-events: none;
    opacity: 1;
    transition: opacity .25s;
}
.megamenu.at-bottom::after { opacity: 0; }

.mega-questions-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 320px;
    color: var(--text-light);
    font-size: .87rem;
    font-style: italic;
}
.mega-question-list {
    display: none;
    animation: megaFadeIn .15s ease;
}
.mega-question-list.visible { display: block; }
.mega-question-list li a {
    display: block;
    padding: .48rem 1.4rem;
    font-size: .84rem;
    color: var(--text-muted);
    line-height: 1.4;
    transition: background var(--transition), color var(--transition), padding-left var(--transition);
}
.mega-question-list li a:hover {
    background: var(--submenu-hover);
    color: var(--blue);
    padding-left: 1.9rem;
}

/* ---- Header right (burger) ---- */
.header-right {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-shrink: 0;
}

/* Espace compensatoire à gauche pour que le logo reste centré */
.header-top::before {
    content: '';
    flex-shrink: 0;
    width: 48px; /* réduit car plus de bouton thème */
}

/* ---- Burger button ---- */
.burger-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    cursor: pointer;
    padding: 8px;
    border-radius: 10px;
    transition: background var(--transition);
    flex-shrink: 0;
}
.burger-btn:hover { background: var(--border); }
.burger-btn span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--text);
    border-radius: 2px;
    transition: transform .35s cubic-bezier(.4,0,.2,1), opacity .25s;
}
.burger-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger-btn.open span:nth-child(2) { opacity: 0; width: 0; }
.burger-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Éléments mobile uniquement — cachés sur desktop */
.drawer-header,
.drawer-close,
.nav-overlay,
.mobile-questions-panel { display: none; }

/* =========================================
   COOKIE BANNER
   ========================================= */
.cookie-banner {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: #1a1a1a;
    color: #e2e8f0;
    padding: 1.2rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    z-index: 9999;
    transform: translateY(100%);
    transition: transform .5s cubic-bezier(.4,0,.2,1);
    border-top: 2px solid var(--blue);
}
.cookie-banner.show { transform: translateY(0); }
.cookie-text { font-size: .87rem; flex: 1; min-width: 220px; }
.cookie-text a { color: var(--win-cyan); text-decoration: underline; }
.cookie-actions { display: flex; gap: .7rem; flex-shrink: 0; }
.btn-cookie {
    padding: .5rem 1.2rem;
    border-radius: 8px;
    font-size: .85rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all var(--transition);
}
.btn-accept { background: var(--blue); color: white; }
.btn-accept:hover { background: var(--blue-dark); }
.btn-refuse { background: transparent; color: #e2e8f0; border: 1px solid #4b5563; }
.btn-refuse:hover { background: rgba(255,255,255,.05); }

/* =========================================
   HERO
   ========================================= */
.hero {
    position: relative;
    overflow: visible;
    background: transparent;
    padding: 5rem 1.5rem 4rem;
    text-align: center;
}
.hero::before { display: none; }
.hero-inner {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: rgba(76,201,240,.15);
    border: 1px solid rgba(76,201,240,.3);
    color: var(--win-cyan);
    padding: .35rem 1rem;
    border-radius: 50px;
    font-size: .8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    font-family: 'Sora', sans-serif;
    animation: fadeInDown .6s ease forwards;
}
.hero h1 {
    font-family: 'Sora', sans-serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: white;
    line-height: 1.15;
    margin-bottom: 1.2rem;
    animation: fadeInUp .6s .15s ease both;
}
.hero h1 span {
    color: var(--win-cyan);
}
.hero p.hero-desc {
    font-size: 1.1rem;
    color: rgba(255,255,255,.75);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    animation: fadeInUp .6s .25s ease both;
}
.hero-search {
    display: flex;
    gap: .5rem;
    max-width: 520px;
    margin: 0 auto;
    animation: fadeInUp .6s .35s ease both;
    position: relative;
    z-index: 9999;
}
.hero-search input {
    flex: 1;
    padding: .85rem 1.2rem;
    border-radius: 10px;
    border: none;
    font-size: .95rem;
    font-family: 'DM Sans', sans-serif;
    outline: none;
    box-shadow: 0 4px 20px rgba(0,0,0,.2);
    background: var(--input-bg);
    color: var(--text);
}
.hero-search button {
    padding: .85rem 1.5rem;
    background: var(--blue);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-family: 'Sora', sans-serif;
    cursor: pointer;
    white-space: nowrap;
    transition: background var(--transition);
}
.hero-search button:hover { background: #005fa3; }

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    margin-top: 3rem;
    flex-wrap: wrap;
    animation: fadeInUp .6s .45s ease both;
    position: relative;
    z-index: 0;
}
.stat-item { color: rgba(255,255,255,.85); text-align: center; position: relative; z-index: 1; }
.search-wrapper { position: relative; z-index: 9999; flex: 1; }
.stat-num {
    display: block;
    font-family: 'Sora', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    color: white;
}
.stat-label { font-size: .78rem; color: rgba(255,255,255,.55); text-transform: uppercase; letter-spacing: .08em; }

/* =========================================
   ADS PLACEMENTS
   ========================================= */
.ad-container {
    background: #1a1a1a;
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    text-align: center;
    margin-bottom: 1.5rem;
}
.ad-label {
    font-size: .65rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--text-light);
    padding: .2rem;
    background: #252525;
}
.ad-leaderboard {
    max-width: 1000px;
    margin: 2rem auto;
    min-height: 100px;
}
.ad-footer-banner {
    max-width: 970px;
    margin: 0 auto 2rem;
    min-height: 100px;
}
.ad-sidebar {
    min-height: 250px;
}
.ad-inline {
    margin: 2.5rem 0;
    min-height: 90px;
}

/* =========================================
   MAIN CONTENT LAYOUT
   ========================================= */
.page-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 2.5rem;
    align-items: start;
}

/* ---- Sidebar ---- */
.sidebar { position: sticky; top: calc(var(--header-full-h) + 2rem); }

.sidebar-card {
    background: var(--bg-card);
    backdrop-filter: blur(3.5px);
    -webkit-backdrop-filter: blur(3.5px);
    border-color: rgba(255,255,255,0.08);
    border-radius: var(--radius);
    padding: 1.5rem;
    border: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 1.5rem;
}
.sidebar-card h3 {
    font-family: 'Sora', sans-serif;
    font-size: .9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--text-muted);
    margin-bottom: 1rem;
}
.sidebar-links li { border-bottom: 1px solid var(--border); }
.sidebar-links li:last-child { border: none; }
.sidebar-links a {
    display: block;
    padding: .55rem 0;
    font-size: .88rem;
    color: var(--text-muted);
    transition: color var(--transition), padding-left var(--transition);
}
.sidebar-links a:hover { color: var(--blue); padding-left: .4rem; }

/* ---- Article (générique) ---- */
.article-content h2 {
    font-family: 'Sora', sans-serif;
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--text);
    margin: 2rem 0 .8rem;
    line-height: 1.3;
}
.article-content h3 {
    font-family: 'Sora', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--blue-dark);
    margin: 1.5rem 0 .6rem;
}
.article-content p {
    margin-bottom: 1.2rem;
    color: var(--text-muted);
    font-size: .97rem;
}

/* Image between paragraphs */
.article-img {
    margin: 2rem 0;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    position: relative;
}
.article-img img {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    display: block;
    transition: transform .5s ease;
}
.article-img:hover img { transform: scale(1.02); }
.article-img figcaption {
    background: var(--bg);
    border-top: 1px solid var(--border);
    color: var(--text-light);
    padding: .6rem 1rem;
    font-size: .8rem;
}

/* Info boxes */
.info-box {
    border-radius: var(--radius);
    padding: 1.2rem 1.4rem;
    margin: 1.8rem 0;
    border-left: 4px solid;
}
.info-box.tip     { background: rgba(34,197,94,.08);  border-color: #22c55e; }
.info-box.warning { background: rgba(245,158,11,.08); border-color: #f59e0b; }
.info-box.danger  { background: rgba(239,68,68,.08);  border-color: #ef4444; }
.info-box .box-title {
    font-weight: 700;
    font-family: 'Sora', sans-serif;
    font-size: .87rem;
    margin-bottom: .4rem;
}
.info-box.tip .box-title     { color: #86efac; }
.info-box.warning .box-title { color: #fde047; }
.info-box.danger .box-title  { color: #fca5a5; }
.info-box p { margin: 0; font-size: .88rem; }

/* Steps */
.steps-list { margin: 1.5rem 0; }
.step {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.2rem;
    align-items: flex-start;
}
.step-num {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    background: var(--blue);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-family: 'Sora', sans-serif;
    font-size: .9rem;
}
.step-body { flex: 1; padding-top: .35rem; }
.step-body strong { display: block; font-weight: 700; margin-bottom: .2rem; }
.step-body p { margin: 0; font-size: .9rem; color: var(--text-muted); }

/* Code block */
.code-block {
    background: var(--bg-dark);
    color: #e2e8f0;
    border-radius: 10px;
    padding: 1.2rem 1.4rem;
    margin: 1.5rem 0;
    font-family: 'Courier New', monospace;
    font-size: .88rem;
    overflow-x: auto;
    position: relative;
}
.code-block::before {
    content: 'CMD / PowerShell';
    position: absolute;
    top: .5rem; right: .8rem;
    font-size: .65rem;
    font-family: 'Sora', sans-serif;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: .07em;
}

/* =========================================
   CATEGORIES SECTION (homepage)
   ========================================= */
.categories-section {
    background: transparent;
    padding: 4rem 1.5rem;
    border-top: 1px solid var(--border);
}
.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem;
}
.section-tag {
    display: inline-block;
    background: rgba(0,120,212,.08);
    color: var(--blue);
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    padding: .3rem .8rem;
    border-radius: 50px;
    margin-bottom: .8rem;
    font-family: 'Sora', sans-serif;
}
.section-title {
    font-family: 'Sora', sans-serif;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    line-height: 1.2;
    color: var(--text);
}
.section-title span { color: var(--blue); }

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.2rem;
    max-width: 1200px;
    margin: 0 auto;
}
.cat-card {
    background: rgba(45,45,45,0.55);
    backdrop-filter: blur(3.5px);
    -webkit-backdrop-filter: blur(3.5px);
    border: 1px solid rgba(255,255,255,0.08);
    color: var(--text);
    border-radius: var(--radius);
    padding: 1.6rem 1.4rem;
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    opacity: 0;
    transform: translateY(30px);
}
.cat-card.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity .5s ease, transform .5s ease, box-shadow var(--transition), border-color var(--transition);
}
.cat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--blue-light);
}
.cat-icon { font-size: 2rem; margin-bottom: .9rem; }
.cat-title {
    font-family: 'Sora', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: .4rem;
    color: var(--text);
}
.cat-count {
    font-size: .8rem;
    color: var(--text-muted);
}
.cat-arrow {
    display: inline-block;
    margin-left: .3rem;
    transition: transform var(--transition);
}
.cat-card:hover .cat-arrow { transform: translateX(4px); }

/* =========================================
   POPULAR ARTICLES SECTION
   ========================================= */
.popular-section {
    background: transparent;
    padding: 4rem 1.5rem;
}
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}
.article-card {
    background: rgba(45,45,45,0.55);
    backdrop-filter: blur(3.5px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
    opacity: 0;
    transform: translateY(20px);
}
.article-card.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity .5s ease, transform .5s ease, box-shadow var(--transition);
}
.article-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.article-card-img {
    background: linear-gradient(135deg, #0078d4, #4cc9f0);
    overflow: hidden;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}
.article-card-body { padding: 1.2rem; }
.article-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}
.article-card:hover .article-card-img img {
    transform: scale(1.05);
}
.article-card-cat {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--blue);
    margin-bottom: .4rem;
}
.article-card-title {
    font-family: 'Sora', sans-serif;
    font-size: .95rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: .6rem;
    line-height: 1.35;
}
.article-card-meta {
    font-size: .78rem;
    color: var(--text-light);
}

/* =========================================
   FOOTER
   ========================================= */
.site-footer {
    background: rgba(32,32,32,0.55);
    backdrop-filter: blur(3.5px);
    -webkit-backdrop-filter: blur(3.5px);
    border-top: 1px solid rgba(255,255,255,0.08);
    color: #cbd5e1;
    padding-top: 0;
}
.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 1.5rem 1rem; /* Réduit de 3rem à 1.5rem */
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem; /* Réduit de 2.5rem à 1.5rem */
    padding-bottom: 1rem; /* Réduit de 2.5rem à 1rem */
    border-bottom: 1px solid rgba(255,255,255,.08);
    margin-bottom: 1rem; /* Réduit de 2rem à 1rem */
}
.footer-logo {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin-bottom: .5rem; /* Réduit de 1rem à .5rem */
}
.footer-logo img { width: 32px; height: 32px; opacity: .9; }
.footer-logo span {
    font-family: 'Sora', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
}
.footer-brand p { 
	font-size: .87rem;
    color: #94a3b8;
    line-height: 1.5;
    margin-top: .5rem; 
}
.footer-social {
    display: flex;
    gap: .6rem;
    margin-top: .6rem; /* Réduit de 1.2rem à .6rem */
}
.social-btn {
    width: 36px; height: 36px;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .85rem;
    font-weight: 700;
    color: #cbd5e1;
    transition: background var(--transition), color var(--transition);
}
.social-btn:hover { background: var(--blue); color: white; }

.footer-heading {
    font-family: 'Sora', sans-serif;
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: white;
    margin-bottom: .6rem; /* Réduit de 1.2rem à .6rem */
}
.footer-links li { margin-bottom: .2rem; }
.footer-links a {
    font-size: .85rem;
    color: #94a3b8;
    transition: color var(--transition);
}
.footer-links a:hover { color: var(--win-cyan); }

.footer-bottom {
    text-align: center;
	padding-bottom: .5rem;
}
.footer-bottom p {
    font-size: .78rem;
    color: #6b7280;
    margin-bottom: .2rem;
}
.footer-disclaimer { font-size: .72rem !important; }

/* =========================================
   ANIMATIONS
   ========================================= */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-15px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 1024px) {
    .page-wrap { grid-template-columns: 1fr; }
    .sidebar { position: static; }
    .footer-grid { grid-template-columns: 1fr ; gap: 1rem; }
}

@media (max-width: 1024px) {
    :root {
        --header-h: 60px;
        --header-full-h: 60px;
    }

    .burger-btn { display: flex; }

    .header-inner {
        flex-direction: row;
        align-items: center;
        height: var(--header-h);
        padding: 0 1rem;
    }
    .header-top {
        width: 100%;
        height: auto;
    }
    .header-top::before { display: none; }
    .logo-img { height: 40px; }

    .nav-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,.55);
        z-index: 998;
        backdrop-filter: blur(2px);
        animation: overlayIn .25s ease;
    }
    .nav-overlay.active { display: block; }
    @keyframes overlayIn {
        from { opacity: 0; }
        to   { opacity: 1; }
    }

    .main-nav {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: min(320px, 85vw);
        height: 100vh;
        background: #2d2d2d !important;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        overflow-y: auto;
        overflow-x: hidden;
        padding: 0;
        transform: translateX(-110%);
        transition: transform .35s cubic-bezier(.4,0,.2,1);
        z-index: 999;
        border-right: 1px solid var(--border);
        box-shadow: 8px 0 40px rgba(0,0,0,.18);
        flex: none;
        display: block;
    }
    .main-nav.mobile-open {
        transform: translateX(0);
    }

    .drawer-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 1rem 1.2rem;
        border-bottom: 1px solid var(--border);
        position: sticky;
        top: 0;
        background: #2d2d2d !important;
        z-index: 2;
    }
    .drawer-close {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        border: 1px solid var(--border);
        border-radius: 8px;
        background: var(--bg);
        cursor: pointer;
        font-size: 1.1rem;
        color: var(--text-muted);
        transition: background var(--transition), color var(--transition);
    }
    .drawer-close:hover { background: var(--border); color: var(--text); }

    .nav-list {
        flex-direction: column;
        align-items: stretch;
        padding: .5rem 0 2rem;
        gap: 0;
    }
    .nav-item { width: 100%; }
    .nav-link {
        font-size: .97rem;
        padding: .9rem 1.4rem;
        border-bottom: 1px solid var(--border);
        justify-content: space-between;
        width: 100%;
        display: flex;
        border-radius: 0;
        border-left: none;
        border-right: none;
        border-top: none;
        font-weight: 600;
    }
    .nav-link .arrow { font-size: .85em; }

    .megamenu {
        position: static;
        transform: none !important;
        display: none;
        flex-direction: column;
        box-shadow: none;
        border: none;
        border-radius: 0;
        width: 100%;
        animation: none;
        min-height: 0;
        background: transparent;
    }
    .nav-item.open .megamenu { display: flex; }
    .has-megamenu::after { display: none; }

    .mega-themes {
        width: 100%;
        border-right: none;
        background: transparent;
        padding: 0;
    }
    .mega-theme-item {
        padding: .75rem 1.4rem .75rem 2rem;
        border-bottom: 1px solid rgba(0,120,212,.08);
        font-size: .92rem;
        border-left: none;
        cursor: pointer;
    }
    .mega-theme-item:hover,
    .mega-theme-item.active {
        background: rgba(0,120,212,.06);
        border-left: none;
    }
    .mega-theme-arrow { display: inline-block; }
    .mega-questions { display: none !important; }

    .mobile-questions-panel {
        position: fixed;
        top: 0;
        right: 0;
        width: min(320px, 85vw);
        height: 100vh;
        background: #2d2d2d !important;
        z-index: 1001;
        transform: translateX(110%);
        transition: transform .32s cubic-bezier(.4,0,.2,1);
        display: flex;
        flex-direction: column;
        border-left: 1px solid var(--border);
        box-shadow: -8px 0 40px rgba(0,0,0,.2);
        overflow: hidden;
    }
    .mobile-questions-panel.active {
        transform: translateX(0);
    }
    .mobile-questions-header {
        display: flex;
        align-items: center;
        gap: .7rem;
        padding: .9rem 1.2rem;
        border-bottom: 1px solid var(--border);
        background: #2d2d2d;
        position: sticky;
        top: 0;
        z-index: 2;
        flex-shrink: 0;
    }
    .mobile-questions-back {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 34px;
        height: 34px;
        border: 1px solid var(--border);
        border-radius: 8px;
        background: var(--bg);
        cursor: pointer;
        font-size: 1rem;
        color: var(--text-muted);
        flex-shrink: 0;
        transition: background var(--transition);
    }
    .mobile-questions-back:hover { background: var(--border); }
    .mobile-questions-title {
        font-size: .95rem;
        font-weight: 700;
        font-family: 'Sora', sans-serif;
        color: var(--text);
        flex: 1;
    }
    .mobile-questions-list {
        overflow-y: auto;
        flex: 1;
        padding: .4rem 0 2rem;
    }
    .mobile-questions-list li a {
        display: block;
        padding: .65rem 1.4rem;
        font-size: .88rem;
        color: var(--text-muted);
        border-bottom: 1px solid rgba(0,120,212,.06);
        transition: background var(--transition), color var(--transition);
    }
    .mobile-questions-list li a:hover {
        background: var(--submenu-hover);
        color: var(--blue);
    }

    .hero { padding: 3rem 1.2rem 2.5rem; }
    .hero-search { flex-direction: column; }
    .hero-search button { width: 100%; }
    .hero-stats { gap: 1.5rem; }

    .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; }
    .categories-grid { grid-template-columns: 1fr 1fr; }
    .articles-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .categories-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 1.8rem; }
}

/* =========================================
   COMPOSANTS ARTICLE
   ========================================= */

/* Sommaire */
.article-toc {
    background: var(--bg);
    border: 1px solid var(--border);
    border-left: 4px solid var(--blue);
    border-radius: var(--radius);
    padding: 1.2rem 1.5rem;
    margin: 0 0 2rem;
    font-size: .92rem;
}
.article-toc strong {
    display: block;
    margin-bottom: .7rem;
    font-family: 'Sora', sans-serif;
    font-size: 1rem;
    color: var(--text);
}
.article-toc ol { padding-left: 1.2rem; }
.article-toc li { margin: .35rem 0; }
.article-toc a { color: var(--blue); }
.article-toc a:hover { text-decoration: underline; }
.toc-badge {
    font-size: .68rem;
    font-weight: 700;
    padding: .15rem .5rem;
    border-radius: 50px;
    margin-left: .4rem;
    vertical-align: middle;
    font-family: 'Sora', sans-serif;
}
.toc-badge.easy   { background: rgba(34,197,94,.2);  color: #86efac; }
.toc-badge.medium { background: rgba(234,179,8,.2);  color: #fde047; }
.toc-badge.hard   { background: rgba(239,68,68,.2);  color: #fca5a5; }

/* Intro */
.article-intro {
    font-size: 1.08rem;
    line-height: 1.75;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
}

/* Badges de difficulté */
.difficulty-badge {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    margin: .8rem 0 1.4rem;
}
.difficulty-badge span {
    font-size: .82rem;
    font-weight: 600;
    font-family: 'Sora', sans-serif;
    padding: .3rem .85rem;
    border-radius: 50px;
}
.difficulty-badge.easy   span { background: rgba(34,197,94,.2);  color: #86efac; }
.difficulty-badge.medium span { background: rgba(234,179,8,.2);  color: #fde047; }
.difficulty-badge.hard   span { background: rgba(239,68,68,.2);  color: #fca5a5; }

/* Boîtes info */
.info-box.info { background: rgba(0,120,212,.07); border-left: 4px solid var(--blue); }
.info-box strong { display: block; margin-bottom: .4rem; }
.info-box ul, .info-box ol { padding-left: 1.2rem; margin-top: .4rem; }
.info-box li { margin: .2rem 0; }

/* Placeholder captures d'écran */
.screenshot-placeholder {
    background: repeating-linear-gradient(
        45deg,
        var(--bg),
        var(--bg) 10px,
        var(--border) 10px,
        var(--border) 11px
    );
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin: 1rem 0 1.5rem;
    color: var(--text-muted);
    font-size: .88rem;
    line-height: 1.5;
    text-align: center;
}
.screenshot-placeholder strong { color: var(--blue); }

/* Liste d'étapes numérotées */
.steps-list {
    padding-left: 0;
    counter-reset: steps;
    list-style: none;
}
.steps-list > li {
    counter-increment: steps;
    padding: 1rem 1rem 1rem 3.2rem;
    margin-bottom: .8rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    position: relative;
    line-height: 1.6;
}
.steps-list > li::before {
    content: counter(steps);
    position: absolute;
    left: .8rem;
    top: 1rem;
    width: 28px;
    height: 28px;
    background: var(--blue);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: .82rem;
    font-family: 'Sora', sans-serif;
    flex-shrink: 0;
}
.steps-list > li strong { color: var(--text); }
.steps-list kbd {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: .1rem .4rem;
    font-size: .82rem;
    font-family: monospace;
    box-shadow: 0 1px 0 var(--border);
}

/* FAQ accordion */
.faq-list { margin: 1rem 0; }
.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: .6rem;
    overflow: hidden;
}
.faq-item summary {
    padding: 1rem 1.2rem;
    font-weight: 700;
    font-family: 'Sora', sans-serif;
    font-size: .95rem;
    cursor: pointer;
    background: var(--bg);
    color: var(--text);
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background var(--transition);
}
.faq-item summary::after {
    content: '▾';
    font-size: .85em;
    color: var(--blue);
    transition: transform .25s;
    flex-shrink: 0;
}
.faq-item[open] summary::after { transform: rotate(180deg); }
.faq-item summary:hover { background: var(--submenu-hover); }
.faq-item p {
    padding: 1rem 1.2rem;
    font-size: .92rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin: 0;
    border-top: 1px solid var(--border);
}

/* Conclusion */
.article-conclusion {
    background: linear-gradient(135deg, rgba(0,120,212,.06), rgba(76,201,240,.06));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem 1.8rem;
    margin-top: 2.5rem;
}
.article-conclusion h2 { margin-top: 0; }

/* Breadcrumb */
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .4rem;
    font-size: .82rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}
.breadcrumb a { color: var(--blue); }
.breadcrumb a:hover { text-decoration: underline; }

/* Header article */
.article-header { margin-bottom: 2rem; }
.article-category-badge {
    display: inline-block;
    background: rgba(0,120,212,.08);
    color: var(--blue);
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    padding: .3rem .8rem;
    border-radius: 50px;
    font-family: 'Sora', sans-serif;
    margin-bottom: .8rem;
}
.article-header h1 {
    font-family: 'Sora', sans-serif;
    font-size: clamp(1.5rem, 3.5vw, 2.2rem);
    font-weight: 800;
    line-height: 1.25;
    margin: 0 0 .8rem;
    color: var(--text);
}
.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: .82rem;
    color: var(--text-muted);
}

/* Layout article + sidebar */
.article-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2.5rem;
    align-items: start;
    padding: 2.5rem 0;
}
.article-content {
    min-width: 0;
    font-size: .97rem;
    line-height: 1.75;
    color: var(--text-muted);
    background: var(--bg-card);
    backdrop-filter: blur(3.5px);
    -webkit-backdrop-filter: blur(3.5px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius);
    padding: 1.5rem;
}
.article-content h2 {
    font-family: 'Sora', sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text);
    margin: 2.5rem 0 1rem;
    padding-bottom: .5rem;
    border-bottom: 2px solid var(--border);
}
.article-content h3 {
    font-family: 'Sora', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    margin: 1.5rem 0 .7rem;
}
.content-wrap {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 2rem;
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.article-main { min-width: 0; }
.article-sidebar { position: sticky; top: calc(var(--header-full-h) + 1.5rem); }

@media (max-width: 1024px) {
    .content-wrap { grid-template-columns: 1fr; }
    .article-layout { grid-template-columns: 1fr; }
    .article-sidebar { position: static; }
    .difficulty-badge { flex-direction: column; align-items: flex-start; }
}

/* =========================================
   RECHERCHE
   ========================================= */
.search-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}
.search-header .section-title {
    margin: 0;
    font-size: 1.3rem;
}
.search-header .section-title em {
    color: var(--blue);
    font-style: normal;
}
.search-reset {
    color: var(--text-muted);
    font-size: .88rem;
    padding: .35rem .8rem;
    border: 1px solid var(--border);
    border-radius: 20px;
    transition: all var(--transition);
}
.search-reset:hover {
    background: var(--border);
    color: var(--text);
}
.search-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
}
.search-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.2rem;
}
.search-result-card {
    display: block;
    background: var(--bg-card);
    backdrop-filter: blur(3.5px);
    -webkit-backdrop-filter: blur(3.5px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius);
    padding: 1.2rem;
    transition: transform var(--transition), box-shadow var(--transition);
    text-decoration: none;
    color: var(--text);
}
.search-result-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    text-decoration: none;
}
.search-result-meta { margin-bottom: .6rem; }
.search-result-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: .5rem;
    line-height: 1.4;
}
.search-result-desc {
    font-size: .87rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: .75rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.search-result-footer {
    font-size: .78rem;
    color: var(--text-light);
}
mark {
    background: rgba(0,180,255,.3);
    color: var(--text);
    border-radius: 3px;
    padding: 0 2px;
}

/* =========================================
   RECHERCHE LIVE (dropdown)
   ========================================= */
.search-wrapper {
    position: relative;
    flex: 1;
}
.search-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: rgba(30,30,46,0.97);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    z-index: 9999;
    overflow: hidden;
    display: none;
}
.search-dropdown.visible { display: block; }

.search-drop-item {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .75rem 1rem;
    text-decoration: none;
    color: var(--text);
    border-bottom: 1px solid var(--border);
    transition: background .15s;
}
.search-drop-item:last-child { border-bottom: none; }
.search-drop-item:hover,
.search-drop-item.focused { background: var(--submenu-hover); }

.search-drop-icon { font-size: 1.1rem; flex-shrink: 0; }
.search-drop-content { min-width: 0; }
.search-drop-title {
    font-size: .92rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.search-drop-meta {
    font-size: .75rem;
    color: var(--text-muted);
    margin-top: .1rem;
}
.search-drop-footer {
    padding: .6rem 1rem;
    font-size: .82rem;
    color: var(--blue);
    text-align: center;
    cursor: pointer;
    background: var(--submenu-hover);
    font-weight: 600;
}
.search-drop-footer:hover { text-decoration: underline; }
.search-drop-empty {
    padding: 1rem;
    text-align: center;
    color: var(--text-muted);
    font-size: .88rem;
}
.search-drop-item mark {
    background: rgba(0,120,212,.2);
    color: inherit;
    border-radius: 2px;
    padding: 0 1px;
    font-style: normal;
}

/* =========================================
   PAGE 404
   ========================================= */
.error-code {
    font-family: 'Sora', sans-serif;
    font-size: clamp(6rem, 20vw, 12rem);
    font-weight: 900;
    line-height: 1;
    background: linear-gradient(135deg, #0078d4, #4cc9f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: .5rem;
}
.error-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: float 3s ease-in-out infinite;
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-12px); }
}
.error-title {
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text);
}
.error-desc {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}
.error-search {
    display: flex;
    gap: .5rem;
    max-width: 460px;
    margin: 0 auto 2rem;
}
.error-search input {
    flex: 1;
    padding: .8rem 1.1rem;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--input-bg);
    color: var(--text);
    font-size: .95rem;
    outline: none;
    transition: border-color .2s;
}
.error-search input:focus { border-color: var(--blue); }
.error-search button {
    padding: .8rem 1.2rem;
    background: var(--blue);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    cursor: pointer;
    transition: background .2s;
}
.error-search button:hover { background: #005fa3; }
.error-links { margin-bottom: 2.5rem; }
.btn-error-primary {
    display: inline-block;
    padding: .75rem 1.5rem;
    background: var(--blue);
    color: #fff;
    border-radius: 10px;
    font-weight: 600;
    font-size: .95rem;
    text-decoration: none;
    transition: background .2s, transform .2s;
}
.btn-error-primary:hover {
    background: #005fa3;
    transform: translateY(-2px);
    text-decoration: none;
    color: #fff;
}
.error-popular {
    text-align: left;
    background: var(--bg-card);
    backdrop-filter: blur(3.5px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-top: 1rem;
}
.error-popular h2 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text);
}
.error-popular ul { list-style: none; }
.error-popular li { border-bottom: 1px solid var(--border); }
.error-popular li:last-child { border-bottom: none; }
.error-popular a {
    display: block;
    padding: .6rem 0;
    color: var(--text-muted);
    font-size: .9rem;
    transition: color .2s, padding-left .2s;
}
.error-popular a:hover { color: var(--blue); padding-left: .4rem; }

/* =========================================
   BOUTONS DE PARTAGE FLOTTANTS
   ========================================= */
.share-float {
    position: fixed;
    left: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: .6rem;
    z-index: 500;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
}
.share-float.visible {
    opacity: 1;
    pointer-events: all;
}
.share-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s;
    box-shadow: 0 3px 12px rgba(0,0,0,.25);
    position: relative;
}
.share-btn:hover {
    transform: scale(1.15);
    box-shadow: 0 6px 20px rgba(0,0,0,.35);
}
.share-btn::after {
    content: attr(data-tooltip);
    position: absolute;
    left: calc(100% + 10px);
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,.8);
    color: #fff;
    font-size: .75rem;
    font-weight: 600;
    padding: .3rem .7rem;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s;
}
.share-btn:hover::after { opacity: 1; }

.share-btn-facebook  { background: #1877f2; color: #fff; }
.share-btn-twitter   { background: #000;    color: #fff; }
.share-btn-linkedin  { background: #0a66c2; color: #fff; }
.share-btn-whatsapp  { background: #25d366; color: #fff; }
.share-btn-copy      { background: var(--bg-card); color: var(--text); border: 1px solid var(--border); }
.share-btn-copy.copied { background: #22c55e; color: #fff; border-color: #22c55e; }

@media (max-width: 1024px) {
    .share-float { display: none; }
}

/* =========================================
   PARTAGE MOBILE — Barre fixe en bas
   ========================================= */
.share-mobile {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--header-bg);
    border-top: 1px solid var(--header-border);
    padding: .4rem 1rem;
    z-index: 900;
    backdrop-filter: blur(18px) saturate(180%);
    -webkit-backdrop-filter: blur(18px) saturate(180%);
}
.share-mobile-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 500px;
    margin: 0 auto;
    gap: .5rem;
}
.share-mobile-label {
    font-size: .8rem;
    font-weight: 700;
    color: var(--text-muted);
    white-space: nowrap;
    padding-right: .5rem;
    border-right: 1px solid var(--border);
    margin-right: .25rem;
}
.share-mobile-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: .35rem;
    border-radius: 8px;
    border: none;
    background: none;
    cursor: pointer;
    text-decoration: none;
    transition: background .2s;
    flex: 1;
}
.share-mobile-btn:hover,
.share-mobile-btn:active {
    background: var(--submenu-hover);
    text-decoration: none;
}
.share-mobile-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .95rem;
    font-weight: 700;
}
.share-mobile-btn.fb .share-mobile-icon { background: #1877f2; color: #fff; }
.share-mobile-btn.tw .share-mobile-icon { background: #000;    color: #fff; }
.share-mobile-btn.li .share-mobile-icon { background: #0a66c2; color: #fff; }
.share-mobile-btn.wa .share-mobile-icon { background: #25d366; color: #fff; }
.share-mobile-btn.cp .share-mobile-icon { background: var(--border); color: var(--text); }
.share-mobile-btn.cp.copied .share-mobile-icon { background: #22c55e; color: #fff; }

@media (max-width: 1024px) {
    .share-mobile { display: block; }
    .article-section { padding-bottom: 4rem !important; }
}

/* =========================================
   PAGINATION
   ========================================= */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    margin: 2rem 0 1rem;
    flex-wrap: wrap;
}
.page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 .6rem;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.1);
    background: var(--bg-card);
    color: var(--text);
    font-size: .88rem;
    font-weight: 600;
    text-decoration: none;
    transition: background .2s, border-color .2s, color .2s, transform .15s;
}
.page-btn:hover {
    background: var(--blue);
    border-color: var(--blue);
    color: #fff;
    transform: translateY(-1px);
    text-decoration: none;
}
.page-btn.active {
    background: var(--blue);
    border-color: var(--blue);
    color: #fff;
    cursor: default;
    pointer-events: none;
}
.page-btn.page-prev,
.page-btn.page-next { font-size: 1.1rem; }
.page-dots {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    color: var(--text-muted);
    font-size: .9rem;
}
/* =========================================
   IMAGES INLINE ARTICLES — miniature cliquable
   ========================================= */
.article-img-inline {
    display: block;
    max-width: 480px;       /* ← taille max en lecture normale */
    width: 100%;
    height: auto;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    margin: 1.2rem auto;
    cursor: zoom-in;
    transition: transform .2s ease, box-shadow .2s ease;
    box-shadow: var(--shadow);
}
.article-img-inline:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}
/* Indication "cliquer pour agrandir" sur les images inline */
.article-img-inline-wrap {
    position: relative;
    display: inline-block;
    max-width: 480px;
    width: 100%;
    margin: 1.2rem auto;
}
.article-img-inline-wrap::after {
    content: '🔍 Cliquer pour agrandir';
    position: absolute;
    bottom: .5rem;
    right: .5rem;
    background: rgba(0,0,0,.65);
    color: #fff;
    font-size: .72rem;
    font-weight: 600;
    padding: .25rem .6rem;
    border-radius: 20px;
    pointer-events: none;
    opacity: 0;
    transition: opacity .2s ease;
    backdrop-filter: blur(4px);
    white-space: nowrap;
}
.article-img-inline-wrap:hover::after {
    opacity: 1;
}

/* Version mobile : toujours visible */
@media (max-width: 1024px) {
    .article-img-inline-wrap::after {
        opacity: 1;
        font-size: .68rem;
    }
}
/* =========================================
   LIGHTBOX
   ========================================= */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .88);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    cursor: zoom-out;
    animation: lbFadeIn .2s ease;
}
@keyframes lbFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
.lightbox-overlay img {
    max-width: 92vw;
    max-height: 88vh;
    width: auto;
    height: auto;
    border-radius: var(--radius);
    box-shadow: 0 20px 80px rgba(0, 0, 0, .7);
    animation: lbZoomIn .22s cubic-bezier(.4, 0, .2, 1);
    cursor: default;
}
@keyframes lbZoomIn {
    from { transform: scale(.88); opacity: 0; }
    to   { transform: scale(1);   opacity: 1; }
}
.lightbox-close {
    position: fixed;
    top: 1rem;
    right: 1.2rem;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 50%;
    color: #fff;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .2s;
    z-index: 10001;
}
.lightbox-close:hover { background: rgba(255, 255, 255, .25); }
/* =========================================
   ARTICLE — COMPOSANTS TRANSPARENTS
   ========================================= */
.article-toc { background: transparent; }

.steps-list > li { background: transparent; }

.faq-item { background: transparent; }
.faq-item summary { background: transparent; }
.faq-item summary:hover { background: var(--submenu-hover); }

/* Table thead transparent */
.article-content table thead tr { background: transparent; }

/* Lignes de tableau cliquables */
.table-clickable tr[onclick] { cursor: pointer; transition: background .2s; }
.table-clickable tr[onclick]:hover { background: var(--submenu-hover); }
.table-clickable tr[onclick] td:first-child { font-weight: 600; color: var(--blue); }

/* Boutons méthode sommaire */
.toc-method-btn {
    background: var(--bg-card);
    color: var(--text);
    border: 1px solid var(--border);
    padding: .6rem 1.2rem;
    border-radius: 50px;
    font-size: .88rem;
    font-weight: 700;
    font-family: 'Sora', sans-serif;
    cursor: pointer;
    transition: all .25s;
}
.toc-method-btn:hover { border-color: var(--blue); color: var(--blue); }
.toc-method-btn.active { background: var(--blue); color: white; border-color: var(--blue); }

/* Badge difficulté dans les boutons sommaire */
.toc-method-btn .badge-easy   { background: rgba(255,255,255,.25); padding: .1rem .5rem; border-radius: 20px; font-size: .75rem; margin-left: .4rem; }
.toc-method-btn .badge-medium { background: rgba(245,158,11,.25);  padding: .1rem .5rem; border-radius: 20px; font-size: .75rem; margin-left: .4rem; color: #b45309; }
.toc-method-btn .badge-hard   { background: rgba(239,68,68,.2);    padding: .1rem .5rem; border-radius: 20px; font-size: .75rem; margin-left: .4rem; color: #b91c1c; }
.toc-method-btn.active .badge-medium,
.toc-method-btn.active .badge-hard { color: white; background: rgba(255,255,255,.25); }

/* Checklist prérequis */
.checklist { list-style: none; padding: 0; margin: 1rem 0 1.5rem; }
.checklist li { padding: .5rem 0; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: .75rem; background: transparent; }
.checklist li:last-child { border-bottom: none; }

/* → voir dans le tableau */
.table-see { color: var(--blue); font-size: .8rem; margin-left: .4rem; }