/* =============================================
   THEME3.CSS — Page Sécurité Caméras IP
   ============================================= */

/* ===== BASE ===== */
body#body_theme3 {
    background-color: #0a0f1e;
    font-family: 'Exo 2', sans-serif;
    color: #e0e8ff;
    min-height: 100vh;
}

/* ===== HEADER ===== */
#header_theme3 {
    display: flex;
    flex-direction: row;
    height: 100px;
    width: 100%;
    justify-content: center;
    align-items: center;
    background-color: #0d1b2a;
    position: relative;
    overflow: hidden;
}
#header_theme3 > a {
    position: absolute;
    left: 30px;
    z-index: 20;
    font-size: 50px;
    color: #1c2fad;
    transition: 0.5s;
    text-decoration: none;
}
#header_theme3 > a:hover { color: #5b67b5; }

.header_title {
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10;
    gap: 2px;
}
.header_tag {
    font-family: 'Orbitron', monospace;
    font-size: 11px;
    letter-spacing: 6px;
    color: #ff6b35;
    opacity: 0.9;
}
.header_title p {
    font-family: 'Orbitron', monospace;
    font-size: 42px;
    font-weight: 900;
    color: white;
    letter-spacing: 8px;
    margin: 0;
}
.header_sub {
    font-size: 12px;
    letter-spacing: 3px;
    color: #aab8d0;
    opacity: 0.7;
}

/* ===== MAIN ===== */
#body_theme3 main {
    width: 100%;
    min-height: 100vh;
    background: linear-gradient(160deg, #0a0f1e 0%, #0d1b2a 50%, #0a1628 100%);
    padding: 50px 60px;
    height: auto;
}

/* ===== SECTION RP ===== */
.rp_section {
    margin-bottom: 60px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.6s ease forwards;
}
.rp_section.rp1 { animation-delay: 0.1s; }
.rp_section.rp2 { animation-delay: 0.3s; }

@keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
}

/* ===== RP HEADER ===== */
.rp_header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}
.rp_badge {
    font-family: 'Orbitron', monospace;
    font-size: 18px;
    font-weight: 900;
    width: 65px;
    height: 65px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: rgba(0, 180, 255, 0.15);
    color: #00b4ff;
    border: 2px solid rgba(0, 180, 255, 0.4);
    letter-spacing: 2px;
}
.rp2_badge {
    background: rgba(255, 107, 53, 0.15);
    color: #ff6b35;
    border-color: rgba(255, 107, 53, 0.4);
}
.rp_title_block { flex: 1; }
.rp_title_block h2 {
    font-family: 'Orbitron', monospace;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #00b4ff;
    margin-bottom: 5px;
}
.rp_section.rp2 .rp_title_block h2 { color: #ff6b35; }
.rp_subtitle {
    font-size: 12px;
    letter-spacing: 2px;
    color: #6b8099;
    text-transform: uppercase;
}
.rp_icons {
    display: flex;
    gap: 15px;
    font-size: 20px;
    color: rgba(0, 180, 255, 0.3);
}
.rp_section.rp2 .rp_icons { color: rgba(255, 107, 53, 0.3); }

/* ===== BLOCS ===== */
.bloc {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 10px;
    padding: 20px 25px;
    margin-bottom: 25px;
}
.bloc_label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #00b4ff;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.rp2_contexte .bloc_label { color: #ff6b35; }
.validation .bloc_label   { color: #00e696; }
.adressage .bloc_label    { color: #00b4ff; }

.bloc p { font-size: 13px; line-height: 1.8; color: #a8bdd0; }
.bloc p strong { color: #e0e8ff; }

/* ===== ÉTAPES GRID ===== */
.etapes_grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.etape_card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(0, 180, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}
.etape_card:hover {
    border-color: rgba(0, 180, 255, 0.35);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 180, 255, 0.12);
}
.etape_number {
    position: absolute;
    top: 15px;
    right: 18px;
    font-family: 'Orbitron', monospace;
    font-size: 28px;
    font-weight: 900;
    color: rgba(0, 180, 255, 0.08);
    line-height: 1;
}
.etape_icon {
    font-size: 22px;
    color: #00b4ff;
    margin-bottom: 12px;
}
.etape_card h3 {
    font-size: 14px;
    font-weight: 700;
    color: #e0e8ff;
    margin-bottom: 8px;
    letter-spacing: 1px;
}
.etape_card p {
    font-size: 12px;
    color: #7a9ab5;
    line-height: 1.7;
    margin-bottom: 14px;
}

/* ===== TAGS ===== */
.tag {
    display: inline-block;
    padding: 1px 7px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    font-family: 'Orbitron', monospace;
}
.tag.blue   { background: rgba(0,180,255,0.15); color: #00b4ff; border: 1px solid rgba(0,180,255,0.3); }
.tag.orange { background: rgba(255,160,0,0.15);  color: #ffa000; border: 1px solid rgba(255,160,0,0.3); }
.tag.green  { background: rgba(0,230,150,0.15);  color: #00e696; border: 1px solid rgba(0,230,150,0.3); }
.tag.purple { background: rgba(180,120,255,0.15);color: #b47aff; border: 1px solid rgba(180,120,255,0.3); }

/* ===== CODE BLOCK ===== */
.code_block {
    background: #0d1a2a;
    border-radius: 6px;
    padding: 10px 14px;
    border: 1px solid rgba(0, 180, 255, 0.1);
    margin-top: 10px;
}
.code_line {
    font-family: 'Courier New', monospace;
    font-size: 11px;
    color: #00e676;
    line-height: 1.8;
}
.code_prompt { color: #00b4ff; margin-right: 6px; }
.code_comment { color: #5a7a9a; }

/* ===== WIFI PARAMS ===== */
.wifi_params {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 10px;
}
.param {
    background: rgba(255,160,0,0.06);
    border: 1px solid rgba(255,160,0,0.15);
    border-radius: 6px;
    padding: 6px 10px;
    display: flex;
    flex-direction: column;
}
.param span { font-size: 9px; color: #6b8099; letter-spacing: 1px; text-transform: uppercase; }
.param strong { font-size: 12px; color: #ffa000; font-weight: 700; }

/* ===== GPO LIST ===== */
.gpo_list { margin-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.gpo_item {
    font-size: 12px;
    color: #7a9ab5;
    display: flex;
    align-items: center;
    gap: 8px;
}
.gpo_item i { color: #b47aff; font-size: 10px; }

/* ===== TABLE ===== */
.table_wrap { overflow-x: auto; }
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}
thead tr { background: rgba(0, 180, 255, 0.12); }
thead th {
    padding: 10px 14px;
    text-align: left;
    color: #00b4ff;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 10px;
    border-bottom: 1px solid rgba(0, 180, 255, 0.2);
}
tbody tr { border-bottom: 1px solid rgba(255,255,255,0.04); transition: background 0.2s; }
tbody tr:hover { background: rgba(0,180,255,0.05); }
tbody td { padding: 9px 14px; color: #8aabcc; }
tbody td.ip { font-family: 'Courier New', monospace; color: #00e676; font-size: 12px; }

/* ===== COMPÉTENCES ===== */
.competences_row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}
.comp_badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 7px;
    background: rgba(0, 180, 255, 0.08);
    color: #00b4ff;
    border: 1px solid rgba(0, 180, 255, 0.2);
    transition: all 0.2s;
}
.comp_badge:hover { background: rgba(0,180,255,0.15); transform: translateY(-2px); }
.comp_badge.rp2_comp {
    background: rgba(255, 107, 53, 0.08);
    color: #ff6b35;
    border-color: rgba(255, 107, 53, 0.2);
}
.comp_badge.rp2_comp:hover { background: rgba(255,107,53,0.15); }

/* ===== SECTION DIVIDER ===== */
.section_divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
    margin-bottom: 60px;
}

/* ===== OUTILS GRID ===== */
.outils_grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.outil_card {
    border-radius: 12px;
    padding: 22px;
    border: 1px solid;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.outil_card:hover { transform: translateY(-4px); }

.outil_card.nagios {
    background: rgba(0, 180, 255, 0.04);
    border-color: rgba(0, 180, 255, 0.15);
}
.outil_card.nagios:hover { box-shadow: 0 10px 30px rgba(0,180,255,0.15); border-color: rgba(0,180,255,0.35); }

.outil_card.glpi {
    background: rgba(255, 160, 0, 0.04);
    border-color: rgba(255, 160, 0, 0.15);
}
.outil_card.glpi:hover { box-shadow: 0 10px 30px rgba(255,160,0,0.15); border-color: rgba(255,160,0,0.35); }

.outil_card.zimbra {
    background: rgba(0, 230, 150, 0.04);
    border-color: rgba(0, 230, 150, 0.15);
}
.outil_card.zimbra:hover { box-shadow: 0 10px 30px rgba(0,230,150,0.15); border-color: rgba(0,230,150,0.35); }

.outil_header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}
.outil_icon {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}
.nagios .outil_icon { background: rgba(0,180,255,0.12); color: #00b4ff; }
.glpi   .outil_icon { background: rgba(255,160,0,0.12);  color: #ffa000; }
.zimbra .outil_icon { background: rgba(0,230,150,0.12);  color: #00e696; }

.outil_card h3 { font-size: 16px; font-weight: 700; color: #e0e8ff; margin-bottom: 4px; }
.outil_tag {
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.6;
    color: #7a9ab5;
}
.outil_card p { font-size: 12px; color: #7a9ab5; line-height: 1.7; margin-bottom: 14px; }
.outil_card p strong { color: #c8d8f0; }

.outil_stats {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 12px;
}
.stat {
    display: flex;
    flex-direction: column;
    background: rgba(255,255,255,0.04);
    border-radius: 6px;
    padding: 6px 12px;
    min-width: 80px;
}
.stat span { font-size: 9px; color: #4a6a85; text-transform: uppercase; letter-spacing: 1px; }
.stat strong { font-size: 12px; color: #c8d8f0; font-weight: 700; }

/* ===== FLUX SCHEMA (GLPI) ===== */
.flux_schema {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 14px 0;
    flex-wrap: wrap;
}
.flux_item {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
}
.flux_arrow { color: rgba(255,255,255,0.2); font-size: 12px; }
.nagios_item { background: rgba(0,180,255,0.1);  color: #00b4ff; border: 1px solid rgba(0,180,255,0.2); }
.api_item    { background: rgba(255,255,255,0.05); color: #c8d8f0; border: 1px solid rgba(255,255,255,0.1); }
.glpi_item   { background: rgba(255,160,0,0.1);   color: #ffa000; border: 1px solid rgba(255,160,0,0.2); }

/* ===== TEST VALIDATION ===== */
.test_steps {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 12px;
}
.test_step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
    min-width: 120px;
    flex: 1;
}
.step_num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 230, 150, 0.12);
    border: 2px solid rgba(0, 230, 150, 0.3);
    color: #00e696;
    font-family: 'Orbitron', monospace;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.step_content {
    font-size: 11px;
    color: #7a9ab5;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.step_content strong { color: #c8d8f0; font-size: 12px; }
.step_result {
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 700;
}
.step_result.ok {
    background: rgba(0,230,150,0.1);
    color: #00e696;
    border: 1px solid rgba(0,230,150,0.25);
}
.test_arrow { color: rgba(0,230,150,0.25); font-size: 16px; flex-shrink: 0; }
