/* ============================================= */
/* ==       STYLES POUR LE "MODEL'ICAM OS"      == */
/* ============================================= */

/* On force un fond spécifique pour cette page */
.os-body {
    background-color: #0a0a0c;
    background-image:
        linear-gradient(rgba(0, 170, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 170, 255, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
    color: #ccc;
    font-family: var(--font-tech, monospace);
    overflow: hidden; /* Empêche le scroll sur la page principale de l'OS */
}

/* --- Écran de Démarrage --- */
#boot-screen {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: #000;
    color: var(--fpv-green);
    z-index: 9999;
    padding: 2rem;
    font-size: 1.1rem;
}
/* Le curseur qui clignote */
#boot-text::after {
    content: '█';
    animation: blink 1s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* --- Bureau & Icônes --- */
#desktop {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: calc(100vh - 40px); /* Hauteur totale moins la barre des tâches */
    padding: 2rem;
    gap: 4rem; /* Espace entre la fenêtre MOTD et les icônes */
}
/* Style de base de l'icône (avec la correction d'alignement) */
.desktop-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    color: var(--text-color);
    padding: 1rem;
    border-radius: 8px;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    align-self: start; /* <-- AJOUT : Empêche l'icône de s'étirer verticalement */
}
/* --- Effet au survol (on change juste la couleur de la bordure) --- */
.desktop-icon:hover {
    border-color: var(--primary-color); /* Le contour devient bleu */
    transform: scale(1.05); /* On réduit un peu le zoom pour que ce soit plus subtil */
    /* On s'assure qu'il n'y a plus de fond de couleur */
    background-color: transparent;
}
.desktop-icon i {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    text-shadow: 0 0 10px var(--primary-color);
}
.desktop-icon span {
    font-size: 0.9rem;
}

/* --- Barre des Tâches --- */
#taskbar {
    position: fixed;
    bottom: 0; left: 0;
    width: 100%;
    height: 40px;
    background: var(--light-bg);
    border-top: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
    z-index: 5000;
}

/* --- NOUVEAUX STYLES POUR LE HUB AMÉLIORÉ --- */

/* Fenêtre de Statut / MOTD */
.motd-window {
    width: 100%;
    max-width: 600px;
    background-color: rgba(30, 30, 30, 0.7);
    border: 1px solid #333;
    border-radius: 8px;
    backdrop-filter: blur(5px);
    box-shadow: 0 5px 25px rgba(0,0,0,0.3);
}
.motd-header {
    background-color: #2a2a2a;
    padding: 0.5rem 1rem;
    font-family: var(--font-tech);
    color: var(--primary-color);
    font-weight: bold;
    border-bottom: 1px solid #333;
    border-radius: 7px 7px 0 0;
}
.motd-content {
    padding: 1.5rem;
    font-family: var(--font-tech);
    line-height: 1.8;
}
.motd-content .terminal-green {
    color: var(--fpv-green);
    font-weight: bold;
}
.motd-content .terminal-yellow {
    color: #ffd700;
    font-weight: bold;
}


/* Conteneur des icônes principales */
.dossier-container {
    display: flex;
    justify-content: center;
    gap: 4rem; /* Espace plus grand entre les icônes principales */
    width: 100%;
}

/* On ajuste la taille des icônes pour qu'elles soient plus imposantes */
.dossier-container .desktop-icon {
    width: 150px; /* Largeur fixe pour un meilleur alignement */
}
.dossier-container .desktop-icon i {
    font-size: 4.5rem; /* Icônes plus grandes */
}
.dossier-container .desktop-icon span {
    font-size: 1rem; /* Texte plus lisible */
    font-family: var(--font-title);
}

.start-menu-mock { color: var(--fpv-green); font-weight: bold; }
.start-menu-mock i { margin-right: 0.5rem; }
#clock { color: #ccc; }

/* Classe utilitaire pour cacher des éléments */
.hidden { display: none !important; }

/* --- Styles pour les Pages d'Article de la Base de Connaissances --- */
.kb-article-body { overflow-y: auto; }
.kb-article-container { max-width: 900px; margin: 0 auto; padding: 2rem; animation: fadeIn 0.5s; }
.kb-article-header { text-align: center; margin-bottom: 3rem; }
.kb-article-header .back-to-hub { display: inline-block; color: var(--primary-color); text-decoration: none; margin-bottom: 2rem; }
.kb-article-header h1 { font-family: var(--font-title); font-size: 2.5rem; color: white; margin-bottom: 0.5rem; }
.kb-article-header .icon-header { color: var(--primary-color); }
.kb-article-header .subtitle { color: #ccc; }
.kb-article-content section { margin-bottom: 3rem; }
.kb-article-content h2 { font-family: var(--font-title); font-size: 1.8rem; color: var(--fpv-green); border-bottom: 1px solid #333; padding-bottom: 0.5rem; margin-bottom: 1rem; }
.kb-article-content p { line-height: 1.8; color: #ccc; }
.kb-article-content strong { color: white; font-weight: bold; }

/* On réutilise le tableau comparatif avec quelques ajustements */
.comparison-table { margin-top: 2rem; border-radius: 8px; font-size: 0.9rem; display: grid; grid-template-columns: 1.5fr 2fr 2fr; gap: 1px; background-color: #333; border: 1px solid #333; overflow: hidden; }
.comparison-table div { background: var(--light-bg); padding: 1rem; display: flex; align-items: center; }
.comparison-table div:nth-child(-n+3) { background: var(--dark-bg); font-family: var(--font-title); font-weight: bold; }
.comparison-table .feature { font-weight: bold; background: #2a2a2a; }
.comparison-table i { margin-right: 0.75rem; width: 20px; text-align: center; }
.comparison-table .fpv-col i { color: var(--fpv-green); }
.comparison-table .stab-col i { color: #ff5f56; }

/* ========================================================== */
/* ==   STYLES POUR LES NOUVEAUX ÉLÉMENTS INTERACTIFS      == */
/* ========================================================== */

/* --- Section à Onglets "Pourquoi le FPV ?" --- */
.interactive-tabs-container {
    position: relative;
    background: var(--dark-bg);
    border: 1px solid #333;
    border-radius: 8px;
    padding: 1.5rem;
    overflow: hidden;
}
.tabs-background {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    background-image: url('../../assets/images/projets/fpv-racer-banner.jpg'); /* Image par défaut */
}
.interactive-tabs-container:hover .tabs-background {
    opacity: 0.1;
}

.tabs-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    position: relative; z-index: 2;
}
.tab-btn {
    font-family: var(--font-tech);
    padding: 0.5rem 1rem;
    background: rgba(30,30,30,0.8);
    border: 1px solid #444;
    color: #ccc;
    cursor: pointer;
    transition: all 0.3s;
}
.tab-btn.active, .tab-btn:hover {
    background: var(--primary-color);
    color: var(--dark-bg);
    border-color: var(--primary-color);
}
.tabs-content {
    position: relative; z-index: 2; text-align: center;
    color: white; font-size: 1.1rem; line-height: 1.6;
}
.tab-pane { display: none; }
.tab-pane.active { display: block; animation: fadeIn 0.5s; }

/* --- Section "Disciplines" (Cartes extensibles) --- */
.discipline-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}
.discipline-card {
    background: var(--light-bg);
    border-radius: 8px;
    border: 1px solid #2a2a2a;
    overflow: hidden;
}
.discipline-header {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.discipline-header h4 {
    font-family: var(--font-title);
    font-size: 1.3rem;
    color: white;
}
.discipline-header h4 i {
    color: var(--primary-color);
    margin-right: 0.75rem;
}
.discipline-header::after {
    content: '+';
    font-size: 2rem;
    color: #555;
    transition: transform 0.4s ease;
}
.discipline-card.is-active .discipline-header::after {
    transform: rotate(45deg);
}
.discipline-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    padding: 0 1.5rem;
    line-height: 1.7;
}
.discipline-card.is-active .discipline-content {
    max-height: 200px; /* Assez grand pour le contenu */
    padding: 0 1.5rem 1.5rem;
}

/* ============================================= */
/* ==   STYLES POUR L'ÉCLATÉ DE DRONE INTERACTIF  == */
/* ============================================= */
.drone-breakdown-section {
    margin-top: 3rem;
}

.drone-breakdown-container {
    position: relative;
    width: 100%;
    max-width: 700px;
    margin: 3rem auto;
    aspect-ratio: 1 / 1; /* Garde un ratio carré */
}

.drone-center-img {
    position: absolute;
    width: 40%;
    height: 40%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.35;
    transition: opacity 0.4s;
}

.drone-breakdown-container:hover .drone-center-img {
    opacity: 0.65;
}

.component-node {
    position: absolute;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.component-node img {
    max-width: 80px;
    max-height: 80px;
    filter: grayscale(1) brightness(0.8);
    transition: filter 0.3s, transform 0.3s;
}

.component-label {
    font-family: var(--font-tech, monospace);
    color: #888;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    transition: color 0.3s;
}

.component-tooltip {
    position: absolute;
    bottom: -10px;
    background: var(--primary-color);
    color: var(--dark-bg);
    padding: 0.3rem 0.6rem;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: bold;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, bottom 0.3s;
    white-space: nowrap;
}

.component-node:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

.component-node:hover img {
    filter: grayscale(0) brightness(1);
    transform: translateY(-10px);
}

.component-node:hover .component-label {
    color: white;
}

.component-node:hover .component-tooltip {
    opacity: 1;
    visibility: visible;
    bottom: 0px;
}

/* ============================================= */
/* ==   STYLES POUR LA PAGE DÉTAIL "CHÂSSIS"    == */
/* ============================================= */

/* --- Explorateur de Géométries --- */
.frame-viewer {
    margin-top: 2rem;
    background: var(--dark-bg);
    border: 1px solid #333;
    border-radius: 8px;
    padding: 1.5rem;
}
.frame-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}
.frame-nav .frame-btn {
    font-family: var(--font-tech);
    border: 1px solid #444;
    background: var(--light-bg);
    color: #ccc; padding: 0.5rem 1rem; border-radius: 5px;
    cursor: pointer; transition: all 0.2s;
}
.frame-nav .frame-btn:hover { background: #333; color: white; }
.frame-nav .frame-btn.active {
    background: var(--primary-color);
    color: var(--dark-bg);
    border-color: var(--primary-color);
    font-weight: bold;
}

.frame-display { display: grid; grid-template-columns: 1fr 1.5fr; gap: 2rem; align-items: center; }
.frame-image-container { text-align: center; }
.frame-image-container img { max-width: 100%; height: auto;}
.frame-info-content h3 { font-family: var(--font-title); color: var(--primary-color); margin-bottom: 1rem; }
.frame-info-content p { line-height: 1.6; color: #ccc; }
.pros-cons { margin-top: 1rem; font-size: 0.9rem; }
.pros-cons strong { color: white; }
#frame-pros { color: var(--fpv-green); }
#frame-cons { color: #ff5f56; }

/* --- Comparateur d'Échelle --- */
.size-chart {
    display: flex;
    justify-content: space-around;
    align-items: flex-end; /* Aligne les barres sur la même ligne de base */
    gap: 2rem;
    margin-top: 3rem;
    padding: 2rem;
    background: var(--dark-bg);
    border-radius: 8px;
    height: 250px;
}
.size-item { text-align: center; }
.size-bar {
    background: linear-gradient(to top, var(--primary-color), var(--fpv-blue));
    width: 60px;
    border-radius: 5px 5px 0 0;
    margin: 0 auto;
    transition: transform 0.3s;
}
.size-item:hover .size-bar { transform: scale(1.05); }
.size-label { font-family: var(--font-title); font-size: 1.5rem; color: white; margin-top: 1rem; }
.size-use { font-size: 0.9rem; color: #888; }


/* --- Responsive pour les nouveaux modules --- */
@media (max-width: 768px) {
    .frame-display { grid-template-columns: 1fr; }
    .size-chart { flex-direction: column; height: auto; align-items: center; }
}

/* ========================================================== */
/* ==       STYLES POUR LA PAGE DÉTAIL "MOTEURS"           == */
/* ========================================================== */

/* --- Banc de Test Virtuel --- */
.motor-tester {
    margin-top: 2rem;
    padding: 2rem;
    background: var(--dark-bg);
    border: 1px solid #333;
    border-radius: 8px;
    display: flex;
    gap: 2rem;
    align-items: center;
}
.tester-controls { flex: 2; }
.slider-group { margin-bottom: 1.5rem; }
.slider-group label { display: block; margin-bottom: 0.5rem; color: #ccc; }
.slider-group input[type=range] { width: 100%; }
.slider-output { font-family: var(--font-tech); color: var(--primary-color); font-weight: bold; }
.tester-info { font-size: 0.9rem; color: #888; font-style: italic; }
.tester-gauge { flex: 1; text-align: center; background: var(--light-bg); padding: 2rem; border-radius: 8px; }
.gauge-label { font-size: 1rem; color: #ccc; margin-bottom: 0.5rem; }
.rpm-value { font-family: var(--font-title); font-size: 2.5rem; color: var(--fpv-green); text-shadow: 0 0 10px var(--fpv-green); }


/* --- Assistant de Sélection --- */
.motor-configurator {
    margin-top: 2rem;
    padding: 2rem;
    background: var(--dark-bg);
    border: 1px solid #333;
    border-radius: 8px;
}
.config-step { margin-bottom: 1.5rem; }
.config-step h4 { font-family: var(--font-tech); color: var(--primary-color); margin-bottom: 1rem; }
.config-options { display: flex; flex-wrap: wrap; gap: 1rem; }
.config-options button {
    font-family: var(--font-tech); border: 1px solid #444; background: var(--light-bg);
    color: #ccc; padding: 0.8rem 1.5rem; border-radius: 5px; cursor: pointer; transition: all 0.2s;
}
.config-options button:hover { background: #333; color: white; }
.config-options button.selected { background: var(--fpv-green); color: var(--dark-bg); border-color: var(--fpv-green); font-weight: bold; }

.config-result {
    margin-top: 2rem; padding: 1.5rem;
    border: 1px solid var(--fpv-green); border-radius: 8px;
    background: rgba(0, 255, 106, 0.05);
}
.config-result h3 { color: var(--fpv-green); font-family: var(--font-title); }
.config-result p { margin-top: 1rem; font-size: 1.1rem; line-height: 1.6; }
.config-result p strong { color: white; }

/* --- Style pour le bouton "Recommencer" de l'assistant --- */

#reset-config-btn {
    /* On retire l'apparence par défaut */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;

    /* Style "fantôme" */
    background: transparent;
    border: 1px solid #555; /* Bordure grise discrète */
    color: #ccc;

    /* Police et espacement */
    font-family: var(--font-tech, monospace);
    font-size: 0.9rem;
    padding: 0.6rem 1.2rem;
    border-radius: 5px;
    margin-top: 1.5rem; /* Espace au-dessus */
    
    cursor: pointer;
    transition: all 0.3s ease;
}

#reset-config-btn:hover {
    border-color: var(--primary-color); /* Le contour devient bleu */
    color: var(--primary-color);      /* Le texte devient bleu */
    background-color: rgba(0, 170, 255, 0.1); /* Léger fond bleu pour l'effet de lueur */
}

#reset-config-btn { margin-top: 1rem; }

/* Responsive */
@media (max-width: 768px) {
    .motor-tester { flex-direction: column; }
}

/* Style pour un bouton d'option lorsqu'il est désactivé par la logique */
.config-options button.is-disabled {
    opacity: 0.3;
    cursor: not-allowed;
    background: #2a2a2a;
    border-color: #444;
    color: #888;
}

/* On s'assure que l'effet de survol ne s'applique pas aux boutons désactivés */
.config-options button.is-disabled:hover {
    background: #2a2a2a;
    color: #888;
}

/* On améliore la lisibilité du résultat */
.config-result .result-notes {
    font-style: italic;
    color: #ccc;
    margin-top: 0.75rem;
    font-size: 0.9rem;
}

/* ========================================================== */
/* ==       STYLES POUR LA PAGE DÉTAIL "ESC"               == */
/* ========================================================== */

/* --- Grille de comparaison simple --- */
.comparison-grid.two-cols {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 1.5rem; margin-top: 2rem;
}
.feature-card { background: var(--dark-bg); padding: 1.5rem; border-radius: 8px; border: 1px solid #2a2a2a; }
.feature-card h4 { font-family: var(--font-title); color: var(--primary-color); margin-bottom: 1rem; }
.feature-card ul { list-style-type: none; padding-left: 1.5rem; }
.feature-card li { margin-bottom: 0.5rem; position: relative; }
.feature-card li::before { position: absolute; left: -1.5rem; font-family: 'Font Awesome 5 Free'; font-weight: 900; }
.feature-card .pros li::before { content: '\f058'; color: var(--fpv-green); } /* Check-circle */
.feature-card .cons li::before { content: '\f057'; color: #ff5f56; } /* Times-circle */


/* --- Terminal de Diagnostic --- */
.diagnostics-terminal {
    margin-top: 2rem; display: flex; gap: 2rem;
    background: var(--light-bg); padding: 1.5rem; border-radius: 8px;
}
.terminal-controls { flex: 1; }
.control-group { margin-bottom: 1.5rem; }
.control-group label { display: block; font-family: var(--font-tech); color: #888; margin-bottom: 0.5rem; }
.control-group select {
    width: 100%; padding: 0.8rem; background: var(--dark-bg);
    color: var(--text-color); border: 1px solid #444; border-radius: 5px;
    font-size: 1rem;
}

.terminal-display { flex: 2; background: var(--dark-bg); padding: 1.5rem; border-radius: 5px; }

/* Oscilloscope */
.signal-visualizer {
    height: 100px; border: 1px solid #333; background: #0a0a0c;
    padding: 0.5rem; border-radius: 5px; display: flex;
    align-items: center; justify-content: space-around; overflow: hidden;
}
.signal-visualizer .v-bar {
    width: 4px; background: var(--fpv-green);
    transition: all 0.1s;
}
/* Animations de signal */
.signal-dshot .v-bar { animation: wave-dshot 0.2s ease-in-out infinite alternate; }
.signal-multishot .v-bar { animation: wave-multi 0.5s ease-in-out infinite alternate; }
.signal-pwm .v-bar { animation: wave-pwm 1s ease-in-out infinite alternate; }

@keyframes wave-dshot { from { height: 10%; opacity: 0.8; } to { height: 90%; opacity: 1; } }
@keyframes wave-multi { from { height: 20%; opacity: 0.6; } to { height: 80%; opacity: 0.9; } }
@keyframes wave-pwm { from { height: 30%; opacity: 0.4; } to { height: 70%; opacity: 0.7; } }


#tech-readout { margin-top: 1rem; }
#tech-readout h4 { font-family: var(--font-title); color: var(--primary-color); }
#tech-readout p { font-size: 0.9rem; line-height: 1.6; color: #ccc; margin-top: 0.5rem; }

/* Responsive */
@media (max-width: 768px) {
    .diagnostics-terminal { flex-direction: column; }
}

/* ========================================================== */
/* ==   STYLES POUR LA PAGE DÉTAIL "CONTRÔLEUR DE VOL"     == */
/* ========================================================== */

/* --- Schéma Interactif du FC --- */
.fc-diagram {
    position: relative;
    max-width: 500px;
    margin: 2rem auto;
    text-align: center;
}
.fc-diagram img {
    width: 100%;
    border-radius: 2rem;
}
.fc-hotspot {
    position: absolute;
    width: 25px; height: 25px;
    background: rgba(0, 170, 255, 0.5);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
    transition: all 0.3s;
}
.fc-hotspot:hover {
    background: var(--primary-color);
    transform: translate(-50%, -50%) scale(1.2);
}
#fc-infobox {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--dark-bg);
    border-radius: 5px;
    min-height: 50px;
    color: #ccc;
}

/* --- Visualiseur de Capteurs --- */
.sensor-visualizer {
    display: flex;
    gap: 2rem;
    align-items: center;
    margin-top: 2rem;
}
.drone-3d-view {
    flex: 1;
    perspective: 800px;
}
.drone-model {
    width: 150px; height: 150px; margin: 0 auto;
    background: radial-gradient(circle, var(--primary-color) 10%, var(--fpv-green) 100%);
    border-radius: 50%;
    transform: rotateX(60deg);
    animation: hover-and-wobble 8s ease-in-out infinite;
}
@keyframes hover-and-wobble {
    0% { transform: rotateX(60deg) rotateZ(0deg) translateY(0px); }
    25% { transform: rotateX(50deg) rotateZ(10deg) translateY(-10px); }
    50% { transform: rotateX(60deg) rotateZ(0deg) translateY(0px); }
    75% { transform: rotateX(70deg) rotateZ(-10deg) translateY(10px); }
    100% { transform: rotateX(60deg) rotateZ(0deg) translateY(0px); }
}

.sensor-data { flex: 2; }
.sensor-data h4 { color: white; margin-bottom: 0.5rem; }
.sensor-data i { color: var(--fpv-green); margin-right: 0.5rem; }
.sensor-data p { font-size: 0.9rem; line-height: 1.5; color: #aaa; }

/* --- Timeline des Firmwares --- */
.firmware-timeline {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 2rem;
    padding: 1rem;
}
.fw-item {
    font-family: var(--font-tech);
    padding: 0.5rem 1rem;
    border: 1px solid #333;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}
.fw-item:hover { background: #333; color: white; }
.fw-item.active { background: var(--primary-color); color: var(--dark-bg); border-color: var(--primary-color); font-weight: bold; }
.fw-arrow { color: #555; }
.fw-description {
    text-align: center;
    margin-top: 1.5rem;
    font-style: italic;
    color: #ccc;
    min-height: 40px;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .sensor-visualizer { flex-direction: column; }
}

/* ========================================================== */
/* ==   STYLES POUR LA PAGE DÉTAIL "TRANSMISSION VIDÉO"    == */
/* ========================================================== */

.signal-comparator {
    margin-top: 2rem;
    padding: 2rem;
    background: var(--dark-bg);
    border: 1px solid #333;
    border-radius: 8px;
}
.signal-controls {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}
.signal-controls .signal-btn {
    font-family: var(--font-tech);
    border: 1px solid #444;
    background: var(--light-bg);
    color: #ccc; padding: 0.5rem 1rem; border-radius: 5px;
    cursor: pointer; transition: all 0.2s;
}
.signal-controls .signal-btn:hover {
    background: #333; color: white;
}
.signal-controls .signal-btn.active {
    background: var(--primary-color);
    color: var(--dark-bg);
    border-color: var(--primary-color);
    font-weight: bold;
}

.signal-display-wrapper {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: black;
    border-radius: 5px;
    overflow: hidden;
}
.signal-display {
    width: 100%; height: 100%;
    position: relative;
}
.signal-display img {
    width: 100%; height: 100%;
    object-fit: cover;
}
.signal-overlay {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
}

/* --- NOUVEL EFFET ANALOGIQUE AVEC VOTRE GIF --- */

.signal-display.analog .signal-overlay {
    background-image: url('https://media.giphy.com/media/oEI9uBYSzLpBK/giphy.gif');
    background-size: cover;

    /* Animation */
    animation: glitchCycle 5s infinite; /* 5s = 2s effet + 3s pause */
}

/* Définition de l’animation */
@keyframes glitchCycle {
    0% {
        opacity: 0.3; /* effet visible */
    }
    40% {
        opacity: 0.3; /* jusqu’à 2s (40% de 5s) */
    }
    41% {
        opacity: 0;   /* coupure de l’effet */
    }
    100% {
        opacity: 0;   /* reste invisible jusqu’à la fin du cycle */
    }
}

.signal-display.digital-dji .signal-overlay {
    animation: dji-blocks 4s infinite;
}
/* Animation pour les macro-blocs DJI (durée de l'effet prolongée) */
@keyframes dji-blocks {
    /* L'image est nette de 0% à 75% du temps */
    0%, 75% { 
        backdrop-filter: blur(0px) saturate(1);
    }
    /* L'effet de perte de signal dure maintenant de 75% à 95% */
    95% { 
        backdrop-filter: blur(5px) saturate(0);
    }
    /* L'image redevient nette à la fin pour boucler proprement */
    100% {
        backdrop-filter: blur(0px) saturate(1);
    }
}

.signal-display.digital-hdzero .signal-overlay {
    animation: hdzero-blocks 3s infinite;
}
/* Animation pour les artéfacts HDZero (durée de l'effet prolongée) */
@keyframes hdzero-blocks {
    /* L'image est nette de 0% à 80% du temps */
    0%, 80% { 
        background: transparent; 
    }
    /* L'effet de "déchirure" dure maintenant de 80% à 96% */
    96% { 
        background: repeating-linear-gradient(#000, #000 10px, #fff 10px, #fff 20px); 
        opacity: 0.5; 
    }
    /* L'image redevient nette à la fin */
    100% {
        background: transparent;
    }
}

.signal-description {
    margin-top: 1.5rem;
    padding: 1rem;
    background: var(--light-bg);
    border-radius: 5px;
    min-height: 80px;
    line-height: 1.6;
}

/* --- Styles pour le Visualiseur de Polarisation --- */
.polarization-viewer {
    display: flex;
    justify-content: space-around;
    gap: 2rem;
    background: var(--dark-bg);
    padding: 2rem 1rem;
    margin: 2rem 0;
    border-radius: 8px;
    border: 1px solid #333;
}
.antenna-demo {
    text-align: center;
    flex-basis: 45%;
}
.antenna-demo h4 {
    font-family: var(--font-tech);
    margin-bottom: 2rem;
}
.antenna-demo h4 .success { color: var(--fpv-green); }
.antenna-demo h4 .fail { color: #ff5f56; }
.wave-container {
    width: 60px;
    height: 150px;
    display: inline-block;
    perspective: 300px;
}
.wave {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
}
.wave::before, .wave::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid var(--primary-color);
    border-radius: 50%;
}
/* Animation de rotation */
.wave.rhcp { animation: rotate-right 4s linear infinite; }
.wave.lhcp { animation: rotate-left 4s linear infinite; }

@keyframes rotate-right {
    from { transform: rotateY(0deg) rotateX(75deg); }
    to { transform: rotateY(360deg) rotateX(75deg); }
}
@keyframes rotate-left {
    from { transform: rotateY(0deg) rotateX(75deg); }
    to { transform: rotateY(-360deg) rotateX(75deg); }
}

.wave::before { transform: translateZ(-30px); }
.wave::after { transform: translateZ(30px); }

/* ========================================================== */
/* ==       STYLES POUR LA PAGE DÉTAIL "HÉLICES"           == */
/* ========================================================== */

.prop-tester {
    margin-top: 2rem;
    display: flex;
    gap: 3rem;
    padding: 2rem;
    background: var(--dark-bg);
    border: 1px solid #333;
    border-radius: 8px;
}
.prop-visualizer {
    flex: 1;
    text-align: center;
}
.prop-visualizer img {
    max-width: 250px;
    margin-bottom: 2rem;
    animation: slow-spin 20s linear infinite;
}
@keyframes slow-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.gauges-container { display: flex; justify-content: space-around; gap: 1rem; }
.gauge { flex: 1; text-align: center; }
.gauge-label { font-size: 0.8rem; color: #888; margin-bottom: 0.5rem; }
.gauge-bar {
    height: 150px;
    background: var(--light-bg);
    border-radius: 5px;
    padding: 5px;
    display: flex;
    align-items: flex-end;
}
.gauge-fill {
    width: 100%;
    background: linear-gradient(to top, var(--fpv-green), #aaffc5);
    border-radius: 3px;
    transition: height 0.3s ease-out;
}

.prop-controls { flex: 1.5; }
.prop-controls .control-group { margin-bottom: 2rem; }
.prop-controls label { display: block; margin-bottom: 0.75rem; color: #ccc; }
.prop-controls input[type=range] { width: 100%; }
#pitch-value { font-family: var(--font-tech); color: var(--primary-color); font-weight: bold; margin-top: 0.5rem; }
.btn-group { display: flex; gap: 1rem; }
.blade-btn {
    flex: 1; padding: 0.8rem; font-family: var(--font-tech);
    border: 1px solid #444; background: var(--light-bg); color: #ccc;
    border-radius: 5px; cursor: pointer; transition: all 0.2s;
}
.blade-btn:hover { background: #333; color: white; }
.blade-btn.active {
    background: var(--primary-color); color: var(--dark-bg);
    border-color: var(--primary-color); font-weight: bold;
}

.synthesis-box { margin-top: 2rem; padding: 1.5rem; background: var(--light-bg); border-radius: 5px; }
.synthesis-box h4 { font-family: var(--font-title); color: var(--primary-color); margin-bottom: 0.5rem; }
.synthesis-box p { line-height: 1.6; }

/* Responsive */
@media (max-width: 900px) {
    .prop-tester { flex-direction: column; }
}

/* ========================================================== */
/* ==         STYLES ADDITIONNELS POUR LA PAGE HÉLICES       == */
/* ========================================================== */

/* --- Général --- */
.btn-group {
    display: flex;
    gap: 0.5rem;
}
.btn-group .blade-btn {
    font-family: var(--font-tech);
    border: 1px solid #444;
    background: var(--light-bg);
    color: #ccc;
    padding: 0.8rem;
    flex-grow: 1;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-group .blade-btn:hover {
    background: #333;
}
.btn-group .blade-btn.active {
    background: var(--primary-color);
    color: var(--dark-bg);
    border-color: var(--primary-color);
}
.synthesis-box {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--dark-bg);
    border-radius: 5px;
    font-size: 0.9rem;
    line-height: 1.5;
    min-height: 80px;
}

/* --- Analyseur de Matériaux --- */
.material-analyzer {
    display: flex;
    gap: 2rem;
    align-items: center;
    padding: 2rem;
}
.material-visual {
    flex-basis: 40%;
    position: relative;
    text-align: center;
}
.material-visual img {
    max-width: 100%;
}
.texture-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    mix-blend-mode: overlay;
    opacity: 0.5;
    transition: all 0.4s;
}
.material-data {
    flex-basis: 60%;
}
.material-choices {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}
.material-btn {
    font-family: var(--font-tech);
    border: 1px solid #444; background: var(--light-bg); color: #ccc; 
    padding: 0.5rem 1rem; border-radius: 5px; cursor: pointer; transition: all 0.2s;
    flex-grow: 1;
}
.material-btn:hover { background: #333; color: white; }
.material-btn.active {
    background: var(--fpv-green); color: var(--dark-bg);
    border-color: var(--fpv-green); font-weight: bold;
}
.bar-value.low {
    background: var(--fpv-green);
}
.bar-value.medium {
    background: orange;
}
.bar-value.high {
    background: #ff5f56;
}

/* --- Assistant de Sélection --- */
.selection-assistant {
    padding: 2rem;
    text-align: center;
}
.style-choices {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 1.5rem 0;
}
.style-btn {
    font-family: var(--font-title);
    font-size: 1.2rem;
    padding: 1rem 2rem;
    background-color: var(--light-bg);
    border: 1px solid #333;
    color: var(--text-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.style-btn:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    color: var(--primary-color);
}
.style-btn i {
    margin-right: 0.75rem;
    color: var(--primary-color);
}
.profile-display-area {
    min-height: 150px;
}
.profile-result {
    padding: 1.5rem;
    background: var(--dark-bg);
    border-left: 5px solid var(--fpv-green);
    border-radius: 8px;
    text-align: left;
    display: none; /* Caché par défaut */
    animation: fadeIn 0.5s;
}
.profile-result h4 {
    font-family: var(--font-title);
    color: var(--fpv-green);
    margin-bottom: 1rem;
}
.profile-result ul {
    list-style-type: none;
    padding: 0;
}
.profile-result ul li {
    margin-bottom: 0.5rem;
}
.profile-result ul .fa-check {
    color: var(--fpv-green);
    margin-right: 0.5rem;
}

/* ========================================================== */
/* ==      STYLES POUR LA PAGE DÉTAIL "BATTERIES & CHARGEURS" == */
/* ========================================================== */

/* --- Laboratoire de Batterie --- */
.battery-lab {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    grid-template-areas:
        "visual config"
        "visual gauges";
    gap: 2rem;
    align-items: center;
    padding: 2rem;
    background: var(--dark-bg);
    border-radius: 8px;
    border: 1px solid #333;
}
.battery-visual {
    grid-area: visual;
    position: relative;
    text-align: center;
}
.battery-visual img {
    max-width: 100%;
}
.battery-info-display {
    position: absolute;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.7);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-family: var(--font-tech);
    color: var(--fpv-green);
    display: flex;
    gap: 1rem;
    font-size: 1.1rem;
}
.battery-config {
    grid-area: config;
}
.performance-gauges {
    grid-area: gauges;
}

/* --- Superviseur de Cycle de Vie --- */
.lifecycle-supervisor {
    display: flex;
    gap: 2rem;
    padding: 2rem;
    align-items: flex-start;
}
.voltage-monitor {
    flex-basis: 25%;
    display: flex;
    justify-content: center;
}
.voltage-gauge {
    width: 50px;
    height: 200px;
    background: var(--dark-bg);
    border-radius: 10px;
    border: 1px solid #444;
    position: relative;
    overflow: hidden;
}
.voltage-gauge .gauge-fill {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: linear-gradient(to top, #ff5f56, orange, var(--fpv-green));
    transition: height 0.5s ease-out;
}
.voltage-marker {
    position: absolute;
    width: 120%;
    left: -10%;
    text-align: center;
    font-size: 0.8rem;
    color: #888;
    border-top: 1px dashed #444;
}
.lifecycle-controls {
    flex-basis: 75%;
}
.state-buttons {
    display: flex;
    gap: 1rem;
}
.state-btn {
     font-family: var(--font-tech);
    border: 1px solid #444; background: var(--light-bg); color: #ccc; 
    padding: 0.8rem 1rem; border-radius: 5px; cursor: pointer; transition: all 0.2s;
    flex-grow: 1;
}
.state-btn:hover { background: #333; color: white; }

/* --- Terminal de Sécurité --- */
.safety-terminal {
    background: #0a0a0c;
    border: 1px solid #ff5f56;
    border-radius: 8px;
    margin-top: 2rem;
    font-family: var(--font-tech);
}
.terminal-header {
    background: #ff5f56;
    color: #0a0a0c;
    font-weight: bold;
    padding: 0.5rem 1rem;
    border-radius: 7px 7px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.print-btn {
    background: none;
    border: 1px solid #0a0a0c;
    color: #0a0a0c;
    border-radius: 5px;
    cursor: pointer;
    padding: 0.2rem 0.5rem;
}
.commandments-list {
    list-style-type: none;
    padding: 1.5rem;
}
.commandments-list li {
    padding: 0.8rem;
    margin-bottom: 0.5rem;
    border-radius: 5px;
    border-left: 4px solid;
    line-height: 1.5;
}
.rule-always {
    background-color: rgba(0, 255, 106, 0.05);
    border-color: var(--fpv-green);
    color: #ccc;
}
.rule-never {
    background-color: rgba(255, 95, 86, 0.08);
    border-color: #ff5f56;
    color: #ffc0bd;
}

/* --- Styles pour l'impression --- */
@media print {
    body > *:not(.safety-terminal),
    .kb-article-header,
    .tuto-nav,
    .terminal-header .print-btn {
        display: none !important;
    }
    .safety-terminal {
        border: none !important;
        margin: 0 !important;
        padding: 0 !important;
        box-shadow: none !important;
    }
}

/* ========================================================== */
/* ==      STYLES POUR LA PAGE DÉTAIL "BATTERIES & CHARGEURS" == */
/* ========================================================== */

/* --- Laboratoire de Batterie --- */
.battery-lab {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    grid-template-areas:
        "visual config"
        "visual gauges";
    gap: 2rem;
    align-items: center;
    padding: 2rem;
    background: var(--dark-bg);
    border-radius: 8px;
    border: 1px solid #333;
}
.battery-visual {
    grid-area: visual;
    position: relative;
    text-align: center;
}
.battery-visual img {
    max-width: 100%;
}
.battery-info-display {
    position: absolute;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.7);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-family: var(--font-tech);
    color: var(--fpv-green);
    display: flex;
    gap: 1rem;
    font-size: 1.1rem;
}
.battery-config {
    grid-area: config;
}
.performance-gauges {
    grid-area: gauges;
}

/* --- Sélecteur de Chimie d'Énergie (NOUVEAU) --- */
.chemistry-selector {
    padding: 1.5rem;
}
.chem-choices {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}
.chem-btn {
    font-family: var(--font-title);
    flex-grow: 1;
    padding: 1rem;
    font-size: 1.1rem;
    background: var(--light-bg);
    border: 1px solid #444;
    color: #ccc;
    cursor: pointer;
    transition: all 0.3s;
}
.chem-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}
.chem-btn.active {
    background: var(--primary-color);
    color: var(--dark-bg);
    border-color: var(--primary-color);
}
.chem-btn i {
    margin-right: 0.5rem;
}
.chem-display {
    display: flex;
    gap: 2rem;
    align-items: center;
}
.chem-radar {
    flex-basis: 40%;
}
.chem-synthesis {
    flex-basis: 60%;
}
.chem-synthesis h4 {
    color: var(--primary-color);
    font-family: var(--font-title);
    margin-bottom: 1rem;
}
.chem-synthesis p {
    line-height: 1.6;
}

/* --- Superviseur de Cycle de Vie (CORRIGÉ) --- */
.lifecycle-supervisor {
    display: flex;
    gap: 2rem;
    padding: 2rem;
    align-items: flex-start;
}
.voltage-monitor {
    flex-basis: 35%; /* Un peu plus de place pour les labels */
    display: flex;
    justify-content: center;
    position: relative; /* Conteneur de référence pour les labels */
    height: 220px; /* Hauteur fixe pour l'ensemble */
    align-items: flex-end; /* Aligne la jauge en bas */
}
.voltage-gauge {
    width: 50px;
    height: 200px;
    background: var(--dark-bg);
    border-radius: 10px;
    border: 1px solid #444;
    position: relative;
    overflow: hidden; /* L'overflow reste ici pour les coins arrondis du remplissage */
}
.voltage-gauge .gauge-fill {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: linear-gradient(to top, #ff5f56, orange, var(--fpv-green));
    transition: height 0.5s ease-out;
}
.voltage-markers {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 200px; /* Même hauteur que la jauge pour l'alignement */
}
.voltage-marker {
    position: absolute;
    width: 120%; /* Dépasse sur les côtés */
    left: -10%;
    text-align: right;
    padding-right: 65px; /* Pousse le texte à gauche de la jauge */
    font-size: 0.8rem;
    color: #888;
    border-bottom: 1px dashed #444;
    transform: translateY(50%); /* Centre verticalement le texte sur la ligne */
}
.lifecycle-controls {
    flex-basis: 65%;
}
.state-buttons {
    display: flex;
    gap: 1rem;
}
.state-btn {
     font-family: var(--font-tech);
    border: 1px solid #444; background: var(--light-bg); color: #ccc; 
    padding: 0.8rem 1rem; border-radius: 5px; cursor: pointer; transition: all 0.2s;
    flex-grow: 1;
}
.state-btn:hover { background: #333; color: white; }

/* --- Terminal de Sécurité --- */
.safety-terminal {
    background: #0a0a0c;
    border: 1px solid #ff5f56;
    border-radius: 8px;
    margin-top: 2rem;
    font-family: var(--font-tech);
}
.terminal-header {
    background: #ff5f56;
    color: #0a0a0c;
    font-weight: bold;
    padding: 0.5rem 1rem;
    border-radius: 7px 7px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.print-btn {
    background: none;
    border: 1px solid #0a0a0c;
    color: #0a0a0c;
    border-radius: 5px;
    cursor: pointer;
    padding: 0.2rem 0.5rem;
}
.commandments-list {
    list-style-type: none;
    padding: 1.5rem;
}
.commandments-list li {
    padding: 0.8rem;
    margin-bottom: 0.5rem;
    border-radius: 5px;
    border-left: 4px solid;
    line-height: 1.5;
}
.rule-always {
    background-color: rgba(0, 255, 106, 0.05);
    border-color: var(--fpv-green);
    color: #ccc;
}
.rule-never {
    background-color: rgba(255, 95, 86, 0.08);
    border-color: #ff5f56;
    color: #ffc0bd;
}

/* --- Styles pour l'impression --- */
@media print {
    body > *:not(.safety-terminal),
    .kb-article-header,
    .tuto-nav,
    .terminal-header .print-btn {
        display: none !important;
    }
    .safety-terminal {
        border: none !important;
        margin: 0 !important;
        padding: 0 !important;
        box-shadow: none !important;
    }
}

/* ========================================================== */
/* ==         STYLES POUR LA PAGE HUB D'ASSEMBLAGE           == */
/* ========================================================== */

/* --- Zone de Préparation des Composants --- */
.component-staging-area {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    height: 150px;
    background: radial-gradient(ellipse at center, rgba(30,30,30,0.5) 0%, rgba(18,18,18,0) 70%);
    margin: 2rem 0;
    overflow: hidden;
}
.staging-item {
    height: 100px;
    opacity: 0;
    animation: float-in 12s ease-in-out infinite;
    animation-delay: calc(var(--i) * 3s); /* Délai différent pour chaque item */
}
@keyframes float-in {
    0%, 100% {
        transform: translateY(40px);
        opacity: 0;
    }
    25%, 75% {
        transform: translateY(0);
        opacity: 0.7;
    }
}

/* ========================================================== */
/* ==   NOUVEAUX STYLES POUR LE RACK DE LANCEMENT VERTICAL   == */
/* ========================================================== */

.build-timeline-vertical {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem; /* Espace vertical entre les modules et pour les connecteurs */
    margin-top: 3rem;
}

.timeline-step-v {
    position: relative;
    width: 100%;
    max-width: 700px;
    background: var(--light-bg);
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    padding: 1.5rem 2rem;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.timeline-step-v:hover {
    transform: scale(1.03);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 170, 255, 0.2);
}

/* Le connecteur de flux vertical */
.timeline-step-v:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: -2.5rem; /* Se positionne dans l'espace du gap */
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 2.5rem;
    background: linear-gradient(to bottom, #444, #222);
}

.step-header {
    display: flex;
    align-items: baseline; /* Aligne le bas du numéro et du titre */
    gap: 1.5rem;
    margin-bottom: 0.75rem;
}

.step-number {
    font-family: var(--font-tech);
    font-size: 2rem;
    color: #444;
    transition: color 0.3s ease;
}

.timeline-step-v:hover .step-number {
    color: var(--primary-color);
}

.timeline-step-v h4 {
    font-family: var(--font-title);
    font-size: 1.8rem;
    color: white;
    margin: 0;
}

.timeline-step-v p {
    font-size: 1rem;
    color: #aaa;
    padding-left: 4.7rem; /* Aligne le paragraphe avec le titre */
    margin: 0;
}

.step-number {
    display: block;
    font-family: var(--font-tech);
    font-size: 1.5rem;
    color: #555;
    margin-bottom: 1rem;
    transition: color 0.3s ease-in-out;
}

/* --- Responsive pour la nouvelle Timeline --- */
@media (max-width: 1100px) {
    .build-timeline {
        justify-content: flex-start; /* Aligne les éléments à gauche pour le scroll */
    }
}

/* ========================================================== */
/* ==      STYLES POUR LA PAGE "POURQUOI CONSTRUIRE"         == */
/* ========================================================== */

.experience-comparator {
    padding: 1.5rem;
    background: var(--dark-bg);
    border: 1px solid #333;
    border-radius: 8px;
    margin-top: 2rem;
}

.criteria-controls {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid #2a2a2a;
    padding-bottom: 2rem;
}

.criterion-btn {
    font-family: var(--font-tech);
    border: 1px solid #444;
    background: var(--light-bg);
    color: #ccc;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.criterion-btn:hover {
    background: #333;
    color: white;
}
.criterion-btn.active {
    background: var(--primary-color);
    color: var(--dark-bg);
    border-color: var(--primary-color);
    font-weight: bold;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 170, 255, 0.2);
}
.criterion-btn i {
    margin-right: 0.5rem;
}

.paths-container {
    display: flex;
    gap: 2rem;
}

.path-card {
    flex: 1;
    background: var(--light-bg);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #2a2a2a;
}

.path-card h3 {
    font-family: var(--font-title);
    color: white;
    margin-bottom: 1.5rem;
}

.path-visual {
    font-size: 5rem;
    margin-bottom: 1.5rem;
}
#path-buy .fa-box-open {
    color: var(--fpv-green);
}
#path-build .fa-cogs {
    color: var(--fpv-blue);
}

.info-panel {
    min-height: 120px;
    text-align: left;
}

.info-box {
    display: none; /* Caché par défaut */
    animation: fadeIn 0.5s;
}

.info-box.active {
    display: block;
}

.info-box h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.info-box p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #ccc;
}

/* ========================================================== */
/* ==         STYLES POUR LA PAGE "OUTILS & MATÉRIAUX"       == */
/* ========================================================== */

.virtual-workbench {
    display: flex;
    gap: 2rem;
    min-height: 600px;
    background: var(--dark-bg);
    border: 1px solid #333;
    padding: 1rem;
    border-radius: 8px;
}

.workbench-surface {
    flex: 1.5;
    background: url('../../assets/images/tools/workbench-bg.jpg') center center / cover;
    border-radius: 8px;
    position: relative;
    border: 1px solid #2a2a2a;
}

.tool-item {
    position: absolute;
    cursor: pointer;
    transition: transform 0.2s ease-out;
}
.tool-item img {
    width: 100px;
    filter: drop-shadow(5px 5px 5px rgba(0,0,0,0.5));
}
.tool-item:hover {
    transform: scale(1.1);
}
.tool-item.active {
    transform: scale(1.1);
}
.tool-item.active img {
    filter: drop-shadow(0 0 15px var(--primary-color));
}

.tool-analyzer {
    flex: 1;
    background: var(--light-bg);
    padding: 1.5rem;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
}

.analyzer-display {
    width: 100%;
    height: 200px;
    background: var(--dark-bg);
    border-radius: 5px;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}
.analyzer-display img {
    max-width: 100%;
    max-height: 100%;
}

.tool-analyzer h3 {
    font-family: var(--font-title);
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 1rem;
}

.criticality-level {
    margin-bottom: 1.5rem;
}
.criticality-level label {
    font-family: var(--font-tech);
    font-size: 0.8rem;
    color: #888;
    display: block;
    margin-bottom: 0.3rem;
}
.level-bar {
    height: 20px;
    background-color: #2a2a2a;
    border-radius: 5px;
    text-align: center;
    line-height: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    transition: all 0.4s;
}
.level-bar.level-critical {
    background-color: #ff5f56;
    color: white;
}
.level-bar.level-recommended {
    background-color: orange;
    color: var(--dark-bg);
}
.level-bar.level-optional {
    background-color: var(--fpv-green);
    color: var(--dark-bg);
}

.tool-analyzer p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #ccc;
    flex-grow: 1;
}

#tool-pro-tip-container {
    margin-top: 1rem;
}

/* ========================================================== */
/* ==         STYLES POUR LA PAGE "ASSEMBLAGE"               == */
/* ========================================================== */

.holodeck-assembler {
    background: var(--dark-bg);
    border: 1px solid #333;
    border-radius: 8px;
    padding: 1.5rem;
}
.holodeck-progress {
    width: 100%;
    height: 10px;
    background-color: #2a2a2a;
    border-radius: 5px;
    margin-bottom: 1.5rem;
}
.progress-bar-fill {
    width: 0%;
    height: 100%;
    background-color: var(--fpv-green);
    border-radius: 5px;
    transition: width 0.4s ease-in-out;
}

.holodeck-body {
    display: flex;
    gap: 2rem;
    align-items: center;
}
.viewer-pane {
    flex: 1.2;
    position: relative;
    aspect-ratio: 1 / 1;
    min-height: 400px;
}
.assembly-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}
.assembly-layer.visible {
    opacity: 1;
}

.instructions-pane {
    flex: 1;
    min-height: 400px;
}
.instructions-pane h3 {
    font-family: var(--font-title);
    color: var(--primary-color);
    margin-bottom: 1rem;
    border-bottom: 1px solid #333;
    padding-bottom: 0.5rem;
}
.instructions-pane p {
    line-height: 1.7;
    margin-bottom: 1rem;
}
.warning-box { /* Classe générique pour les avertissements */
     background-color: rgba(255, 50, 50, 0.1);
    border-left: 4px solid #ff3232;
    padding: 1rem 1.5rem;
    margin: 1rem 0;
    border-radius: 0 8px 8px 0;
    display: flex;
    align-items: center;
    gap: 1rem;
}
.warning-box .fa-exclamation-triangle {
    font-size: 1.5rem;
    color: #ff3232;
}


.holodeck-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    border-top: 1px solid #2a2a2a;
    padding-top: 1.5rem;
}
.step-counter {
    font-family: var(--font-tech);
    color: #888;
}

/* ========================================================== */
/* ==      STYLES POUR LA PAGE "CONFIGURATION LOGICIELLE"    == */
/* ========================================================== */

/* --- Simulateur Betaflight --- */
.betaflight-simulator {
    display: flex;
    min-height: 500px;
    background-color: var(--light-bg);
    border: 1px solid #333;
    border-radius: 8px;
}
.bf-sidebar {
    flex-basis: 200px;
    background-color: #2a2a2a;
    padding: 1rem;
    border-right: 1px solid #333;
    border-radius: 8px 0 0 8px;
}
.bf-tab-btn {
    display: block;
    width: 100%;
    padding: 1rem;
    font-family: var(--font-tech);
    background: none;
    border: none;
    color: #ccc;
    text-align: left;
    cursor: pointer;
    border-radius: 5px;
    margin-bottom: 0.5rem;
    transition: all 0.2s;
}
.bf-tab-btn:hover {
    background-color: #3a3a3a;
}
.bf-tab-btn.active {
    background-color: var(--primary-color);
    color: var(--dark-bg);
    font-weight: bold;
}
.bf-tab-btn i {
    margin-right: 0.75rem;
    width: 20px;
}

.bf-content-pane {
    flex-grow: 1;
    padding: 2rem;
}
.bf-tab-content {
    display: none;
    animation: fadeIn 0.4s;
}
.bf-tab-content.active {
    display: block;
}
.bf-tab-content h3 {
    font-family: var(--font-title);
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* --- Terminal CLI --- */
.cli-terminal {
    background: #0a0a0c;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 1.5rem;
    font-family: var(--font-tech);
}
.cli-commands-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #2a2a2a;
}
.cli-cmd-btn {
    font-family: var(--font-tech);
    background: var(--light-bg);
    border: 1px solid #444;
    color: #ccc;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
}
.cli-output-screen {
    position: relative;
}
#cli-output {
    background-color: #000;
    color: var(--fpv-green);
    padding: 1rem;
    border-radius: 5px;
    min-height: 150px;
    white-space: pre-wrap; /* Permet le retour à la ligne */
    word-wrap: break-word;
}
/* Curseur clignotant */
#cli-output::after {
    content: '█';
    animation: blink 1s step-end infinite;
}

#cli-explanation {
    border-top: 1px dashed #333;
    margin-top: 1rem;
    padding-top: 1rem;
}