
:root {
  --bg: #0a0a12; --bg2: #0f0f1a; --bg3: #141422; --bg4: #1a1a2e;
  --border: rgba(255,255,255,0.07);
  --text: #c8cad8; --text2: #8890a6; --text3: #555a70;
  --orange: #ff6b35; --cyan: #00d2ff; --cyan-soft: rgba(0,210,255,0.12);
  --yellow: #f5c518; --yellow-soft: rgba(245,197,24,0.12);
  --lime: #a3ff12; --violet: #a78bfa; --violet-soft: rgba(167,139,250,0.12);
  --pink: #f472b6; --blue-bright: #60a5fa; --sidebar-w: 260px; --radius: 10px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--bg); color: var(--text); font-family: Outfit, sans-serif; font-size: 15px; line-height: 1.6; }
code { font-family: 'JetBrains Mono', monospace; font-size: .82em; color: var(--cyan); background: var(--cyan-soft); padding: 2px 6px; border-radius: 4px; }
a { color: var(--cyan); text-decoration: none; }
.page-wrapper { display: flex; min-height: 100vh; }
.sidebar { width: var(--sidebar-w); background: var(--bg2); border-right: 1px solid var(--border); position: fixed; top: 0; left: 0; height: 100vh; overflow-y: auto; padding: 24px 0 40px; z-index: 100; scrollbar-width: thin; }
.sidebar-title { font-family: Syne, sans-serif; font-size: 1.1rem; font-weight: 800; color: #fff; padding: 0 20px; }
.sidebar-subtitle { font-size: .7rem; color: var(--text3); padding: 2px 20px 20px; text-transform: uppercase; letter-spacing: .08em; }
.nav-group { margin-bottom: 8px; }
.nav-group-title { font-size: .6rem; text-transform: uppercase; letter-spacing: .12em; color: var(--text3); padding: 10px 20px 4px; font-weight: 600; }
.sidebar a { display: flex; align-items: center; gap: 8px; padding: 6px 20px; color: var(--text2); font-size: .8rem; transition: all .15s; border-left: 2px solid transparent; }
.sidebar a:hover { color: #fff; background: var(--bg3); border-left-color: var(--cyan); text-decoration: none; }
.nav-color { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.nav-badge { margin-left: auto; background: var(--bg4); color: var(--text3); font-size: .65rem; padding: 1px 6px; border-radius: 20px; }
.main { margin-left: var(--sidebar-w); flex: 1; padding: 0 40px 80px; max-width: auto; }
.hero { padding: 60px 0 40px; border-bottom: 1px solid var(--border); margin-bottom: 40px; }
.hero h1 { font-family: Syne, sans-serif; font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 800; color: #fff; line-height: 1.15; letter-spacing: -.03em; margin-bottom: 16px; }
.hero p { color: var(--text2); max-width: 600px; font-size: 1.05rem; margin-bottom: 32px; }
.highlight { background: linear-gradient(135deg, var(--cyan), var(--violet)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-stats { display: flex; gap: 32px; flex-wrap: wrap; }
.hero-stat { text-align: center; }
.stat-num { font-family: Syne, sans-serif; font-size: 1.8rem; font-weight: 800; line-height: 1; }
.stat-label { font-size: .75rem; color: var(--text3); text-transform: uppercase; letter-spacing: .06em; margin-top: 4px; }
.section { margin-bottom: 50px; padding-top: 20px; }
.section-header { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.section-header h2 { font-family: Syne, sans-serif; font-size: 1.4rem; font-weight: 700; color: #fff; }
.section-desc { color: var(--text2); margin-bottom: 20px; font-size: .9rem; }
.section-tag { font-size: .6rem; text-transform: uppercase; letter-spacing: .12em; padding: 3px 8px; border-radius: 20px; font-weight: 700; }
.tag-html { background: rgba(255,107,53,.15); color: var(--orange); }
.tag-css { background: rgba(0,210,255,.15); color: var(--cyan); }
.tag-js { background: rgba(245,197,24,.15); color: var(--yellow); }
.tag-ts { background: rgba(96,165,250,.15); color: var(--blue-bright); }
.elements-grid { display: flex; flex-direction: column; gap: 6px; }
.el-card { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; cursor: pointer; transition: border-color .2s; }
.el-card:hover { border-color: rgba(0,210,255,.2); }
.el-card-header { display: flex; align-items: center; gap: 12px; padding: 12px 16px; user-select: none; }
.el-tag { font-family: 'JetBrains Mono', monospace; font-size: .72rem; font-weight: 600; padding: 3px 8px; border-radius: 5px; flex-shrink: 0; white-space: nowrap; }
.el-tag.html { background: rgba(255,107,53,.15); color: var(--orange); }
.el-tag.css { background: rgba(0,210,255,.15); color: var(--cyan); }
.el-tag.js { background: rgba(245,197,24,.15); color: var(--yellow); }
.el-tag.ts { background: rgba(96,165,250,.15); color: var(--blue-bright); }
.el-name { font-weight: 600; color: #e0e2f0; font-size: .9rem; flex-shrink: 0; }
.el-brief { color: var(--text3); font-size: .82rem; margin-left: auto; }
.el-toggle { color: var(--text3); font-size: .7rem; flex-shrink: 0; transition: transform .25s; }
.el-card.open .el-toggle { transform: rotate(180deg); }
.el-body { max-height: 0; overflow: hidden; transition: max-height .35s cubic-bezier(.4,0,.2,1); }
.el-card.open .el-body { max-height: 700px; }
.el-body-inner { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--border); }
.el-explanation { padding: 16px; font-size: .85rem; color: var(--text2); line-height: 1.65; border-right: 1px solid var(--border); }
.el-explanation strong { color: var(--text); }
.el-code { padding: 16px; font-family: 'JetBrains Mono', monospace; font-size: .78rem; line-height: 1.7; background: var(--bg3); color: #c8cad8; white-space: pre-wrap; overflow-x: auto; }
.el-code .tg { color: var(--orange); }
.el-code .at { color: var(--cyan); }
.el-code .st { color: var(--lime); }
.el-code .kw { color: var(--violet); }
.el-code .vl { color: #f9826c; }
.el-code .cm { color: var(--text3); font-style: italic; }
.ref-table { width: 100%; border-collapse: collapse; font-size: .85rem; margin-bottom: 8px; }
.ref-table th { background: var(--bg3); color: var(--text3); text-align: left; padding: 10px 14px; font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; border-bottom: 1px solid var(--border); }
.ref-table td { padding: 10px 14px; border-bottom: 1px solid var(--border); vertical-align: top; color: var(--text2); line-height: 1.5; }
.ref-table tr:hover td { background: var(--bg3); }
.page-footer {
   border-top: 1px solid var(--border);
   display: flex;
   flex-direction: column;
   justify-content: space-around;
   align-items: center;
   text-align: center;
    padding: 32px 0; 
    margin-top: 40px;
     color: var(--text3);
      font-size: .8rem;
     }
     .footer, .footer-link ,.footer-bottom {
      display: flex;
      flex-direction: row;
      padding: 20px;
      margin: 10px;
     }
     
@media (max-width: 900px) {
  .sidebar { display: none; } .main { margin-left: 0; padding: 20px; }
  .el-body-inner { grid-template-columns: 1fr; } .el-explanation { border-right: none; border-bottom: 1px solid var(--border); }
  .el-brief { display: none; }
}/* ===== RESPONSIVE MOBILE ===== */

/* Tablette large */
@media (max-width: 1100px) {
  .main { padding: 0 24px 80px; }
}

/* Tablette */
@media (max-width: 900px) {
  :root { --sidebar-w: 0px; }

  .sidebar { display: none; }
  .main { margin-left: 0; padding: 16px 16px 80px; max-width: 100%; }

  .el-body-inner { grid-template-columns: 1fr; }
  .el-explanation { border-right: none; border-bottom: 1px solid var(--border); }
  .el-brief { display: none; }

  .hero { padding: 32px 0 24px; }
  .hero h1 { font-size: 1.8rem; }
  .hero-stats { gap: 20px; }
  .stat-num { font-size: 1.4rem; }

  .footer-top-link { margin-left: 0; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* Mobile */
@media (max-width: 600px) {
  .main { padding: 12px 12px 80px; }

  .el-card-header { padding: 10px 12px; gap: 8px; flex-wrap: wrap; }
  .el-tag { font-size: .65rem; padding: 2px 6px; }
  .el-name { font-size: .82rem; }
  .el-explanation { padding: 12px; font-size: .82rem; }
  .el-code { padding: 12px; font-size: .74rem; }

  .section-header h2 { font-size: 1.1rem; }
  .hero h1 { font-size: 1.5rem; }
  .hero p { font-size: .9rem; }
  .hero-stats { gap: 16px; }
  .stat-num { font-size: 1.2rem; }

  .footer-links { gap: 6px 16px; }
  .footer-links a { font-size: .75rem; }
  .footer-sep { display: none; }
}

/* Menu mobile burger (bouton fixe) */
@media (max-width: 900px) {
  .mobile-menu-btn {
    display: flex;
    position: fixed;
    bottom: 24px;
    right: 20px;
    z-index: 200;
    background: var(--cyan);
    color: #000;
    border: none;
    border-radius: 50px;
    padding: 10px 18px;
    font-family: Outfit, sans-serif;
    font-size: .82rem;
    font-weight: 700;
    cursor: pointer;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 20px rgba(0,210,255,.4);
  }

  .sidebar.mobile-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 150;
    background: var(--bg2);
    padding: 24px 0 40px;
    overflow-y: auto;
  }

  .sidebar-close {
    display: flex;
    justify-content: flex-end;
    padding: 0 20px 16px;
  }

  .sidebar-close button {
    background: none;
    border: 1px solid var(--border);
    color: var(--text2);
    padding: 6px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-size: .8rem;
  }
}

@media (min-width: 901px) {
  .mobile-menu-btn { display: none; }
  .sidebar-close { display: none; }
}
@media (min-width: 901px) {
  .mobile-menu-btn { display: none; }
  .sidebar-close { display: none; }
}

/* ✅ Le conteneur gère la position (comme ton toggle avant) */
.divBouton {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 999;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

/* ✅ Style commun (theme-toggle + nav-btn) */
.divBouton .theme-toggle,
.divBouton .nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;

  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg2);
  color: var(--text);

  font-family: Outfit, sans-serif;
  font-weight: 700;
  font-size: .82rem;
  cursor: pointer;

  box-shadow: 0 10px 30px rgba(0,0,0,.25);
  transition: transform .15s ease, border-color .2s ease, background .2s ease;
}

.divBouton .theme-toggle:hover,
.divBouton .nav-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(0,210,255,.25);
}

.divBouton .theme-toggle:active,
.divBouton .nav-btn:active {
  transform: translateY(0px);
}

/* ✅ Dot uniquement pour le design du toggle */
.theme-toggle .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 4px rgba(0,210,255,.15);
}


.theme-toggle:hover { transform: translateY(-1px); border-color: rgba(0,210,255,.25); }
.theme-toggle:active { transform: translateY(0px); }
.theme-toggle .dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 4px rgba(0,210,255,.15);
}

/* Petit ajustement mobile si tu veux */
/* ✅ MOBILE: pack de boutons tout en bas à droite */
@media (max-width: 900px) {
  .divBouton{
    position: fixed;
    right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom)); /* iPhone safe area */
    top: auto !important;   /* bloque l'ancrage en haut */
    left: auto !important;
    z-index: 999;
  }

  /* ✅ IMPORTANT: le toggle reste dans le pack, pas en position fixe solo */
  .divBouton .theme-toggle{
    position: static !important;
    top: auto !important;
    bottom: auto !important;
    right: auto !important;
    left: auto !important;
  }
}

/* ===== LIGHT THEME (override variables) ===== */
html[data-theme="light"] {
  --bg: #f7f8fc;
  --bg2: #ffffff;
  --bg3: #f1f3fa;
  --bg4: #e9ecf7;

  --border: rgba(10,10,18,0.10);

  --text: #151827;
  --text2: #4a5166;
  --text3: #7a8096;

  /* Tu gardes tes accents (cyan/orange/etc.) identiques */
}

/* Optionnel : titres et éléments qui étaient forcés en #fff */
html[data-theme="light"] .hero h1,
html[data-theme="light"] .section-header h2,
html[data-theme="light"] .sidebar-title {
  color: #151827;
}

html[data-theme="light"] .el-name {
  color: #151827;
}

html[data-theme="light"] .sidebar a:hover {
  color: #151827;
  background: var(--bg3);
}






/* ============================================
CSS À AJOUTER — Tags couleur pour les frameworks
Insérer dans la section <style> existante,
à côté des autres .el-tag styles
============================================ */

/* React — bleu ciel */
.el-tag.react {
background: rgba(97, 218, 251, 0.15);
color: #61dafb;
border: 1px solid rgba(97, 218, 251, 0.3);
}

/* Vue — vert émeraude */
.el-tag.vue {
background: rgba(66, 184, 131, 0.15);
color: #42b883;
border: 1px solid rgba(66, 184, 131, 0.3);
}

/* Angular — rouge */
.el-tag.angular {
background: rgba(221, 0, 49, 0.15);
color: #ff4081;
border: 1px solid rgba(221, 0, 49, 0.3);
}

/* Badge “Frameworks JS” dans le section-header */
.badge-section {
display: inline-block;
padding: 3px 10px;
font-size: 0.7rem;
font-weight: 600;
letter-spacing: 0.05em;
text-transform: uppercase;
border-radius: 999px;
background: linear-gradient(135deg, rgba(97,218,251,0.15), rgba(66,184,131,0.15), rgba(221,0,49,0.15));
color: rgba(255,255,255,0.7);
border: 1px solid rgba(255,255,255,0.1);
margin-left: 12px;
vertical-align: middle;
}

/* Intro paragraphe sous chaque framework */
.section-intro {
font-size: 0.88rem;
color: rgba(255,255,255,0.6);
line-height: 1.6;
margin: -8px 0 20px 0;
padding: 0 4px;
}
.section-intro strong {
color: rgba(255,255,255,0.8);
}



/* ============================================
   CSS À AJOUTER — Badge "JS Avancé"
   Si tu as déjà ajouté .badge-section et .section-intro
   depuis la section Frameworks, tu n'as rien à ajouter.
   Sinon, insère ces styles dans ton <style> existant.
   ============================================ */

/* Badge dans le section-header */
.badge-section {
  display: inline-block;
  padding: 3px 10px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 999px;
  background: rgba(0, 210, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(0, 210, 255, 0.2);
  margin-left: 12px;
  vertical-align: middle;
}

/* Intro paragraphe sous chaque sous-section */
.section-intro {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
  margin: -8px 0 20px 0;
  padding: 0 4px;
}
.section-intro strong {
  color: rgba(255, 255, 255, 0.8);
}
.section-intro code {
  background: rgba(0, 210, 255, 0.1);
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 0.82rem;
}