/* ============================================
   DEVA - SHARED CSS
   Violet DEVA: #a363ff
   ============================================ */

:root {
  --bg-color: #000000;
  --text-color: #ffffff;
  --accent-color: #a363ff; 
  --border-color: #333;
  --nav-shadow-light: rgba(255,255,255,0.05);
}

/* --- RESET & BASE --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--bg-color) !important;
  color: var(--text-color);
  overflow-x: hidden;
}

/* --- LE MENU FLOTTANT (CONTROLLER) --- */
.floating-controller {
    position: fixed;
    bottom: 50px;
    right: 50px;
    width: 200px;
    height: 200px;
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Le disque central */
.dimmer-knob {
    width: 95px;
    height: 95px;
    background: #111;
    border-radius: 50%;
    box-shadow: 15px 15px 30px #000, 
               -5px -5px 15px var(--nav-shadow-light);
    display: flex;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    /* La transition doit être identique à celle des icônes pour rester synchrone */
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 2px solid #222;
    position: relative;
}

.indicator {
    width: 4px;
    height: 15px;
    background: var(--accent-color);
    border-radius: 10px;
    margin-top: 10px;
    box-shadow: 0 0 12px var(--accent-color);
}

/* Le cercle des icônes */
.menu-nav {
    position: absolute;
    width: 100%;
    height: 100%;
    list-style: none;
    margin: 0; padding: 0;
    z-index: 5;
    /* On permet la rotation du bloc entier via JS */
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.menu-nav li {
    position: absolute;
    left: 50%; top: 50%;
    margin-left: -20px; margin-top: -20px;
    width: 40px; height: 40px;
    display: flex; justify-content: center; align-items: center;
}

/* Liens et icônes */
.menu-nav a {
    color: #555;
    font-size: 1.4rem;
    text-decoration: none;
    /* IMPORTANT: display flex et transition pour la contre-rotation */
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.3s;
}

/* État actif */
.menu-nav li.active a {
    color: var(--accent-color);
    text-shadow: 0 0 15px var(--accent-color);
}

/* --- COMPOSANTS DE LA PAGE --- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 20px;
}

.chapter-card {
  background: rgba(15, 15, 15, 0.60); 
  padding: 50px 20px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  text-align: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(6px);
}

.chapter-card:hover {
  border-color: var(--accent-color);
  background: rgba(163, 99, 255, 0.05);
}

/* --- FOOTER --- */
footer {
  background-color: rgba(0, 0, 0, 0.85);
  border-top: 1px solid var(--border-color);
  padding: 40px 0;
  text-align: center;
}

.footer-links a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  margin: 0 10px;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--accent-color);
}
.menu-nav a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    /* ... reste du code ... */
}