/* ==========================================================================
   1. VARIABLES DE DESIGN GLOBALES
   ========================================================================== */
:root {
    --bg-dark: #0a0a0c;
    --card-bg: #111115;
    --accent-red: #df162b;
    --accent-red-glow: rgba(223, 22, 43, 0.5);
    --text-main: #f1f2f6;
    --text-muted: #a4b0be;
    --border-color: #22222a;
    --font-cyber: 'Orbitron', sans-serif;
    --font-main: 'Rajdhani', sans-serif;
}

/* ==========================================================================
   2. RESET & CONFIGURATION DE BASE
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-shadow: none;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-main);
    font-size: 1.1rem;
    overflow-x: hidden;
    transition: background-color 0.4s ease, color 0.4s ease;
}

h1, h2, h3, .brand {
    font-family: var(--font-cyber);
    letter-spacing: 1px;
}

/* ==========================================================================
   3. CONFIGURATION DE LA SCROLLBAR (DA VAULT)
   ========================================================================== */
/* --- Navigateurs Webkit (Chrome, Edge, Safari, Opera) --- */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-horizontal {
    height: 10px;
}
::-webkit-scrollbar-track {
    background: #0d0d13;
    border-left: 1px solid rgba(255, 255, 255, 0.05);
}
::-webkit-scrollbar-thumb {
    background: var(--accent-red);
    border: 2px solid #0d0d13;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #ff2a3b;
    box-shadow: 0 0 10px rgba(223, 22, 43, 0.5);
}

/* --- Thème Light --- */
body.light ::-webkit-scrollbar-track {
    background: #f0f0f5;
    border-left: 1px solid rgba(0, 0, 0, 0.05);
}
body.light ::-webkit-scrollbar-thumb {
    background: var(--accent-red);
    border: 2px solid #f0f0f5;
}
body.light ::-webkit-scrollbar-thumb:hover {
    background: #b30f1e;
}

/* --- Support Firefox Standard --- */
@supports (scrollbar-color: auto) {
    html {
        scrollbar-width: thin;
        scrollbar-color: var(--accent-red) #0d0d13;
    }
    body.light {
        scrollbar-color: var(--accent-red) #f0f0f5;
    }
}

/* ==========================================================================
   4. NAVIGATION & BANDEAU SUPERIEUR (HEADER)
   ========================================================================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: rgba(10, 10, 12, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    z-index: 100;
    transition: background 0.4s ease, border-color 0.4s ease;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 15px;
    height: 100%;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3), 0 0 20px var(--accent-red-glow);
}

.logo-container-site {
    display: flex;
    align-items: center;
    gap: 12px;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.logo-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--accent-red);
    box-shadow: 0 0 10px var(--accent-red-glow);
    pointer-events: none;
}

.brand {
    font-size: 1.3rem;
    color: #fff;
    font-weight: 700;
    pointer-events: none;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

nav {
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 15px;
}

.nav-links li {
    display: flex;
    align-items: center;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    padding: 8px 16px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.nav-link:not(.logo-area):hover, 
.nav-link:not(.logo-area).active {
    color: var(--accent-red);
    border: 1px solid var(--accent-red);
    box-shadow: inset 0 0 8px rgba(223, 22, 43, 0.2), 0 0 10px rgba(223, 22, 43, 0.1);
}

#admin-lock-btn {
    color: var(--accent-red);
    cursor: pointer;
    padding: 8px 16px;
    transition: all 0.3s ease;
}

#admin-lock-btn:hover {
    transform: scale(1.1);
    text-shadow: 0 0 8px var(--accent-red);
}

.burger {
    display: none;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    outline: none;
    cursor: pointer;
}

/* ==========================================================================
   CORRECTIF : GLOW DYNAMIQUE SUR LE LOGO ET LE TEXTE (HOVER & ACTIVE)
   ========================================================================== */
.logo-area {
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.3s ease, text-shadow 0.3s ease !important;
}

/* Effet au survol (Hover) : la lueur s'intensifie et le logo grossit légèrement */
.logo-area:hover {
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.6), 0 0 30px var(--accent-red) !important;
    transform: scale(1.02);
}

/* Effet au clic (Active) : effet d'enfoncement et flash de lueur */
.logo-area:active {
    text-shadow: 0 0 25px #fff, 0 0 40px var(--accent-red) !important;
    transform: scale(0.98);
}

/* On s'assure que l'image du logo suit le mouvement et s'illumine aussi */
.logo-area:hover .logo-img {
    border-color: #fff;
    box-shadow: 0 0 15px #fff, 0 0 25px var(--accent-red);
    transition: all 0.3s ease;
}

/* ==========================================================================
   5. ARCHITECTURE GLOBALE DES PAGES & SECTIONS
   ========================================================================== */
.page-section {
    display: none;
    min-height: 100vh;
    padding: 120px 5% 60px 5%;
}

.page-section.active {
    display: block;
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.section-title {
    font-size: 2rem;
    color: #fff;
    border-left: 4px solid var(--accent-red);
    padding-left: 15px;
    margin-bottom: 40px;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* --- Cartes Standards --- */
.card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 30px;
    position: relative;
    transition: all 0.3s ease;
}

.card:hover {
    border-color: var(--accent-red);
    box-shadow: 0 5px 20px rgba(223, 22, 43, 0.15);
}

.card h3 {
    font-size: 1.3rem;
    color: #fff;
    margin-bottom: 15px;
}

.card p {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
}

.tag {
    display: inline-block;
    background: rgba(223, 22, 43, 0.1);
    color: var(--accent-red);
    padding: 4px 12px;
    font-size: 0.85rem;
    font-family: var(--font-cyber);
    border: 1px solid rgba(223, 22, 43, 0.2);
}

/* ==========================================================================
   6. ZONE HOME / HERO BANNER
   ========================================================================== */
.hero {
    text-align: center;
    margin-bottom: 50px;
}

.banner-placeholder {
    width: 100%;
    max-width: 900px;
    height: 250px;
    margin: 0 auto 30px auto;
    border-radius: 8px;
    background: url('../img/banner.png') no-repeat center center;
    background-size: cover;
    border: 1px solid var(--border-color);
}

.hero h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    color: #fff;
}

.hero h1 {
    font-family: var(--font-cyber);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-main, #ffffff);
    letter-spacing: 3px;
    margin-bottom: 10px;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3), 0 0 20px var(--accent-red-glow);
}

/* ==========================================================================
   7. RELOOKING CYBERPUNK DU CAROUSEL & TIMERS
   ========================================================================== */
.carousel-container {
    position: relative;
    max-width: 850px;
    margin: 40px auto;
    padding: 30px 20px;
    background: rgba(13, 13, 17, 0.75) !important;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(223, 22, 43, 0.4);
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.8), inset 0 0 15px rgba(223, 22, 43, 0.05);
    overflow: hidden;
}

.carousel-container::before {
    content: " ";
    display: block;
    position: absolute;
    top: 0; left: 0; bottom: 0; right: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    z-index: 2;
    background-size: 100% 3px, 6px 100%;
    pointer-events: none;
    opacity: 0.4;
}

.carousel-content {
    max-width: 75%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.carousel-content h3 {
    font-family: var(--font-cyber);
    font-size: 1.6rem;
    color: #fff;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-top: 15px;
    margin-bottom: 10px;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

.carousel-slide {
    display: none;
}

.carousel-slide.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.carousel-slide i {
    font-size: 3rem;
    color: var(--accent-red);
    margin-bottom: 20px;
}

.carousel-slide p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 10px 0;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(223, 22, 43, 0.1) !important;
    border: 1px solid var(--accent-red) !important;
    color: var(--accent-red) !important;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
}

.carousel-btn:hover {
    background: var(--accent-red) !important;
    color: #fff !important;
    box-shadow: 0 0 12px var(--accent-red-glow);
}

.carousel-btn.prev { left: 15px; }
.carousel-btn.next { right: 15px; }

.carousel-link {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 20px auto 0 auto !important;
    width: max-content !important;
    padding: 8px 16px !important;
    font-size: 0.75rem !important;
    font-family: var(--font-cyber);
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    color: #fff !important;
    background: transparent !important;
    border: 1px solid var(--accent-red) !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.carousel-link .btn-icon {
    font-size: 0.85rem !important;
    margin: 0 !important;
    padding: 0 !important;
}

.carousel-link:hover {
    background: var(--accent-red) !important;
    color: #fff !important;
    box-shadow: 0 0 15px var(--accent-red-glow);
    transform: translateY(-2px);
}

.carousel-link.link-discord { border-color: #5865F2 !important; }
.carousel-link.link-discord:hover { background: #5865F2 !important; box-shadow: 0 0 15px rgba(88, 101, 242, 0.5); }

.carousel-link.link-stemon { border-color: #26de81 !important; }
.carousel-link.link-stemon:hover { background: #26de81 !important; box-shadow: 0 0 15px rgba(38, 222, 129, 0.5); }

.carousel-link.link-github { border-color: #ffffff !important; }
.carousel-link.link-github:hover { background: #ffffff !important; color: #0a0a0c !important; box-shadow: 0 0 15px rgba(255, 255, 255, 0.5); }

.carousel-slide.active .animate-icon {
    animation: iconPulse 2s infinite alternate;
}

@keyframes iconPulse {
    from { transform: scale(1); }
    to { transform: scale(1.05); }
}

@keyframes blink {
    0% { opacity: 0.3; }
    50% { opacity: 1; }
    100% { opacity: 0.3; }
}

/* --- Navigation Temporelle Progressive --- */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 25px;
    position: relative;
    z-index: 5;
}

.carousel-dot {
    width: 35px;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(223, 22, 43, 0.3);
    border-radius: 3px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.carousel-dot::before, .carousel-progress {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: var(--accent-red);
    box-shadow: 0 0 8px var(--accent-red-glow);
}

.carousel-dot.active {
    border-color: var(--accent-red);
    box-shadow: 0 0 10px rgba(223, 22, 43, 0.2);
}

/* ==========================================================================
   8. HUB MUSIQUE & PLAYERS AUDIO (SOUNDCLOUD / SPOTIFY)
   ========================================================================== */
.music-stack {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin: 30px auto 0 auto;
    width: 100%;
    max-width: 900px;
}

.music-card {
    background: var(--card-bg, #12121a);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: background 0.3s ease, border-color 0.3s ease;
}

.music-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-cyber);
    font-size: 0.85rem;
    letter-spacing: 1px;
    padding-bottom: 10px;
    border-bottom: 1px dashed var(--accent-red, #df162b);
    color: var(--accent-red, #df162b);
}

.music-card-header .status-tag {
    font-size: 0.7rem;
    padding: 2px 6px;
    background: rgba(223, 22, 43, 0.2);
    border: 1px solid var(--accent-red, #df162b);
    border-radius: 4px;
}

.sc-container, .spotify-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sc-container iframe {
    width: 100% !important;
    height: 450px !important;
    display: block !important;
    border: none;
    filter: brightness(0.85) contrast(1.05);
    transition: all 0.3s ease;
}

.spotify-container iframe {
    width: 100% !important;
    display: block !important;
    border: none;
}

.sc-container:hover iframe {
    filter: brightness(1) contrast(1);
}

.music-btn-spotify, .music-btn-soundcloud {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--font-cyber);
    font-size: 0.9rem;
    font-weight: 700;
    padding: 12px 20px;
    border-radius: 4px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 1px;
}

.music-btn-soundcloud {
    border: 1px solid var(--accent-red, #df162b);
    color: var(--accent-red) !important;
}

.music-btn-soundcloud:hover {
    background: rgba(223, 22, 43, 0.1);
    box-shadow: 0 0 15px rgba(223, 22, 43, 0.4), inset 0 0 5px rgba(223, 22, 43, 0.2);
    text-shadow: 0 0 5px #fff;
}

.music-btn-spotify {
    border: 1px solid #1DB954;
    color: #1DB954;
}

.music-btn-spotify:hover {
    background: rgba(29, 185, 84, 0.1);
    box-shadow: 0 0 15px rgba(29, 185, 84, 0.4), inset 0 0 5px rgba(29, 185, 84, 0.2);
    text-shadow: 0 0 5px #fff;
}

/* ==========================================================================
   9. JEUX LOGIQUES & EXTRA
   ========================================================================== */
.game-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-icon {
    font-size: 2.5rem;
    color: var(--accent-red);
    margin-bottom: 15px;
}

.card-link {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 20px auto 0 auto !important;
    width: max-content !important;
    padding: 15px 16px !important;
    font-size: 0.75rem !important;
    font-family: var(--font-cyber);
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    color: #fff !important;
    background: transparent !important;
    border: 1px solid var(--accent-red) !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.card-link:hover {
    background: var(--accent-red);
    box-shadow: 0 0 15px var(--accent-red-glow);
}

/* ==========================================================================
   10. CURRICULUM VITAE DESIGN
   ========================================================================== */
.cv-container {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 40px;
}

.cv-header-block {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 30px;
    margin-bottom: 30px;
}

.cv-intro h3 {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 5px;
}

.cv-tagline {
    color: var(--accent-red);
    font-family: var(--font-cyber);
    font-weight: 700;
    margin-bottom: 15px;
}

.cv-about {
    max-width: 700px;
    color: var(--text-muted);
    line-height: 1.6;
}

.cv-contact-info p { margin-bottom: 8px; color: var(--text-muted); }
.cv-contact-info i { color: var(--accent-red); width: 25px; }

.cv-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.cv-sub-title {
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}
.cv-sub-title i { color: var(--accent-red); margin-right: 10px; }

.timeline {
    border-left: 2px solid var(--border-color);
    padding-left: 20px;
    margin-bottom: 40px;
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
}
.timeline-item::before {
    content: '';
    position: absolute;
    left: -28.1px;
    top: 5px;
    width: 12px;
    height: 12px;
    background: var(--bg-dark);
    border: 2px solid var(--accent-red);
    border-radius: 50%;
}
.timeline-item h3 { font-size: 1.1rem; color: #fff; }

.cv-date { font-size: 0.9rem; color: var(--accent-red); font-family: var(--font-cyber); display: block; margin: 3px 0; }
.cv-company { font-weight: 700; color: var(--text-main); display: block; margin-bottom: 10px; }
.timeline-item p { color: var(--text-muted); line-height: 1.5; font-size: 1rem; }

.skill-category { margin-bottom: 25px; }
.skill-category h4 { font-family: var(--font-cyber); font-size: 0.9rem; margin-bottom: 10px; color: var(--text-main); }
.skill-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.skill-tags span { background: #1a1a24; border: 1px solid var(--border-color); padding: 4px 10px; font-size: 0.85rem; color: var(--text-muted); }
.interests-tags span i { color: var(--accent-red); margin-right: 5px; }

/* ==========================================================================
   11. ZONE DE CONTACT & MODALE DE SECURITE
   ========================================================================== */
.contact-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 40px;
}

.contact-subtitle { text-align: center; margin-bottom: 30px; color: var(--text-muted); }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-family: var(--font-cyber); font-size: 0.9rem; }

.form-group input, .form-group textarea {
    width: 100%;
    background: #0d0d11;
    border: 1px solid var(--border-color);
    padding: 12px;
    color: #fff;
    font-family: var(--font-main);
    font-size: 1.1rem;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--accent-red); outline: none; }

.contact-btn {
    width: 100%;
    background: transparent;
    border: 1px solid var(--accent-red);
    color: #fff;
    padding: 15px;
    font-family: var(--font-cyber);
    cursor: pointer;
    transition: all 0.3s ease;
}
.contact-btn:hover { background: var(--accent-red); box-shadow: 0 0 15px var(--accent-red-glow); }

/* --- Security Box Vault --- */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(5px);
    display: flex; justify-content: center; align-items: center;
    z-index: 200;
}

.lock-box {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    padding: 40px; width: 100%; max-width: 400px; text-align: center;
}

.lock-input {
    width: 100%; background: #0d0d11; border: 1px solid var(--border-color);
    padding: 12px; color: #fff; margin-bottom: 15px; text-align: center;
    font-family: var(--font-cyber);
}
.lock-input:focus { border-color: var(--accent-red); outline: none; }

.lock-btn {
    width: 100%; background: var(--accent-red); border: none; color: #fff;
    padding: 12px; font-family: var(--font-cyber); cursor: pointer; margin-bottom: 10px;
}
.lock-btn-cancel {
    width: 100%; background: transparent; border: 1px solid var(--border-color);
    color: var(--text-muted); padding: 10px; font-family: var(--font-cyber); cursor: pointer;
}

/* ==========================================================================
   12. FOOTER & COMPOSANTS SATELLITES
   ========================================================================== */
#scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background-color: var(--card-bg);
    border: 1px solid var(--accent-red);
    color: var(--text-main);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease, transform 0.2s ease;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

#scroll-to-top:hover {
    color: #fff;
    background-color: var(--accent-red);
    box-shadow: 0 0 15px var(--accent-red-glow);
    transform: translateY(-3px);
}

#scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

footer {
    text-align: center; 
    padding: 30px;
    border-top: 1px solid var(--border-color);
    background: rgba(10, 10, 12, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--text-muted); 
    font-size: 0.95rem;
}
footer span { color: var(--accent-red); font-weight: 700; }

/* --- Background Particules et Effet Cosmique --- */
#particles-js {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -2;
    background-color: #050507 !important;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(223, 22, 43, 0.07) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(41, 128, 185, 0.05) 0%, transparent 60%);
    pointer-events: all;
}

.cosmic-clouds {
    position: fixed;
    top: -50%; left: -50%; width: 200%; height: 200%;
    z-index: -3;
    pointer-events: none;
    background-image: 
        radial-gradient(circle at 30% 40%, rgba(223, 22, 43, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 70% 60%, rgba(15, 15, 20, 0.8) 0%, transparent 50%),
        radial-gradient(circle at 50% 20%, rgba(223, 22, 43, 0.05) 0%, transparent 35%);
    animation: driftClouds 25s infinite alternate ease-in-out;
    opacity: 0.85;
}

@keyframes driftClouds {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(5deg) scale(1.1) translateY(-3%); }
    100% { transform: rotate(-3deg) scale(0.95) translateX(2%); }
}

/* ==========================================================================
   13. HUB DE DÉVELOPPEMENT / CYBER-TOOLS (STRUCTURE UNIFORME)
   ========================================================================== */
.cyber-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 30px;
    margin-top: 30px;
    width: 100%;
}

.cyber-tool-card {
    background: rgba(20, 20, 25, 0.85) !important;
    border: 1px solid rgba(223, 22, 43, 0.25) !important;
    border-radius: 4px;
    padding: 22px;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    height: 100% !important;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.cyber-tool-card:hover {
    transform: translateY(-3px);
    border-color: #df162b !important;
    box-shadow: 0 8px 25px rgba(223, 22, 43, 0.2);
}

.card-glitch-line {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 2px;
    background: #df162b;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.cyber-tool-card:hover .card-glitch-line { opacity: 1; }

/* En-tête et Meta des Outils */
.cyber-tool-header { 
    display: flex !important; 
    align-items: flex-start !important; 
    gap: 15px; 
    margin-bottom: 15px !important; 
    flex-shrink: 0 !important;
}

.cyber-tool-icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    max-width: 42px !important;
    background: rgba(223, 22, 43, 0.08);
    border: 1px solid rgba(223, 22, 43, 0.3);
    color: #df162b;
    border-radius: 4px;
    font-size: 1.2rem;
    flex-shrink: 0 !important;
}

.cyber-tool-meta {
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
}

.cyber-tool-title { font-family: var(--font-cyber); font-size: 1rem; color: #ffffff; margin: 0; }

.cyber-sub-card-title {
    display: block;
    font-family: var(--font-main);
    font-size: 0.8rem;
    color: var(--accent-red);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 2px;
    font-weight: bold;
}
.cyber-sub-card-title:empty {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Gestion des Status (Stables / Pipeline / R&D) */
.cyber-tool-status { 
    font-family: monospace; 
    font-size: 0.65rem; 
    color: #00ff66; 
    display: inline-flex !important; 
    align-items: center !important; 
    gap: 5px; 
    margin-top: 4px !important;
}
.cyber-tool-status .status-dot { width: 5px; height: 5px; background: #00ff66; border-radius: 50%; box-shadow: 0 0 5px #00ff66; }
.cyber-tool-status:empty { display: none !important; margin: 0 !important; }

.cyber-tool-status.pipeline { color: #ffb834; }
.cyber-tool-status.pipeline .status-dot { background: #ffb834; box-shadow: 0 0 5px #ffb834; }

.status-rd, .cyber-tool-status-rd { color: #f1c40f !important; }

/* Corps et Textes descriptifs */
.cyber-tool-body {
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
    flex-grow: 1 !important;
}

.cyber-tool-description { 
    font-size: 0.85rem; 
    color: #b3b3b3; 
    line-height: 1.5; 
    margin: 0 0 20px 0 !important; 
    padding-top: 0 !important;
    text-align: left; 
}

/* Badges de Technologies */
.cyber-tool-badges { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 6px; 
    margin-top: auto !important;
    margin-bottom: 10px; 
}
.cyber-badge { background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08); color: #999; font-family: monospace; font-size: 0.7rem; padding: 2px 6px; border-radius: 2px; }

.stack-classification {
    margin-top: 15px;
    border-top: 1px dashed rgba(255, 255, 255, 0.08);
    padding-top: 10px;
}
.stack-type { display: flex; align-items: center; gap: 8px; font-family: var(--font-cyber); font-size: 0.65rem; }
.stack-type-title { color: var(--text-muted); font-weight: bold; white-space: nowrap; }

/* Footers et Actions des Cartes */
.cyber-tool-footer {
    border-top: 1px dashed rgba(223, 22, 43, 0.15);
    padding-top: 15px;
    margin-top: 15px;
    text-align: left;
}

.cyber-tool-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px 15px;
    background: rgba(223, 22, 43, 0.05);
    border: 1px solid rgba(223, 22, 43, 0.4);
    color: #ffffff !important;
    font-family: var(--font-cyber);
    font-size: 0.75rem;
    font-weight: bold;
    letter-spacing: 1px;
    text-decoration: none;
    text-transform: uppercase;
    border-radius: 3px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
}
.cyber-tool-btn:hover {
    background: #df162b;
    color: #ffffff !important;
    border-color: #df162b;
    box-shadow: 0 0 12px rgba(223, 22, 43, 0.4);
}
.cyber-tool-btn .btn-arrow { transition: transform 0.3s ease; }
.cyber-tool-btn:hover .btn-arrow { transform: translateX(4px); }

.standby-card { opacity: 0.5; border-style: dashed !important; background: rgba(15, 15, 20, 0.4) !important; }
.standby-card .cyber-tool-icon { background: transparent; border-style: dashed; color: #555; }

/* ==========================================================================
   14. COHESION COMPLETE DU THEME LIGHT MODE
   ========================================================================== */
body.light-mode {
    --bg-dark: #f5f6fa;
    --card-bg: #ffffff;
    --text-main: #2f3640;
    --text-muted: #57606f;
    --border-color: #dcdde1;
}

body.light-mode header, 
body.light-mode footer {
    background: rgba(255, 255, 255, 0.95);
}

body.light-mode #particles-js {
    background-color: #f5f6fa !important;
    opacity: 0.6;
}

body.light-mode .cosmic-clouds { display: none !important; }

body.light-mode .brand,
body.light-mode .section-title,
body.light-mode .card h3,
body.light-mode .cv-intro h3,
body.light-mode .cv-company,
body.light-mode .cv-sub-title,
body.light-mode .timeline-item h3,
body.light-mode .hero h2 {
    color: #2f3640 !important;
}

body.light-mode .nav-link { color: #57606f; }
body.light-mode .nav-link:hover, body.light-mode .nav-link.active { color: var(--accent-red); }

body.light-mode .form-group input, 
body.light-mode .form-group textarea,
body.light-mode .lock-input {
    background: #f1f2f6;
    color: #2f3640;
}

body.light-mode .cv-about { color: #57606f !important; }
body.light-mode .skill-tags span { background: #fff !important; }

body.light-mode .card-link {
    color: var(--accent-red) !important;
    background-color: rgba(223, 22, 43, 0.06) !important;
}
body.light-mode .card-link:hover {
    background-color: var(--accent-red) !important;
    color: #ffffff !important;
}

#theme-toggle {
    color: #f1c40f;
    text-shadow: 0 0 8px rgba(241, 196, 15, 0.4);
}
body.light-mode #theme-toggle {
    color: #2f3640;
    text-shadow: none;
}

/* --- Carousel Light Mode --- */
body.light-mode .carousel-container {
    background: rgba(255, 255, 255, 0.9) !important;
    border-color: rgba(47, 54, 64, 0.2);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}
body.light-mode .carousel-container::before { display: none; }
body.light-mode .carousel-content h3 { color: #2f3640; text-shadow: none; }
body.light-mode .carousel-slide p { color: #2f3640; }
body.light-mode .carousel-btn {
    background: rgba(47, 54, 64, 0.05) !important;
    border-color: #2f3640 !important;
    color: #2f3640 !important;
}
body.light-mode .carousel-btn:hover {
    background: #2f3640 !important;
    color: #fff !important;
    box-shadow: none;
}

body.light-mode .carousel-container .carousel-link {
    color: var(--accent-red) !important;
    border-color: var(--accent-red) !important;
    background: transparent !important;
}
body.light-mode .carousel-container .carousel-link:hover {
    background: var(--accent-red) !important;
    color: #fff !important;
    box-shadow: 0 5px 15px rgba(223, 22, 43, 0.3);
}
body.light-mode .carousel-container .carousel-link.link-github {
    color: #2f3640 !important;
    border-color: #2f3640 !important;
}
body.light-mode .carousel-container .carousel-link.link-github:hover {
    background: #2f3640 !important;
    color: #fff !important;
}
body.light-mode .carousel-link .btn-icon { color: inherit !important; }
body.light-mode .carousel-slide .fa-github { color: #2f3640 !important; }
body.light-mode .carousel-dot { background: rgba(0, 0, 0, 0.08); border-color: rgba(47, 54, 64, 0.2); }
body.light-mode .carousel-dot::before, body.light-mode .carousel-progress { background: #2f3640; box-shadow: none; }
body.light-mode .carousel-dot.active { border-color: #2f3640; }

/* --- Musique & Contact Light Mode --- */
body.light-mode .sc-container { background: #ffffff; }
body.light-mode .sc-container iframe { filter: none; }
body.light-mode .mon-bouton { color: #df162b !important; background-color: transparent; }
body.light-mode .mon-bouton:hover { background-color: #df162b; color: #ffffff !important; }
body.light-mode .contact-btn { color: #000; }
body.light-mode .contact-btn:hover { color: rgba(0,0,0,0.85); }

/* --- Cyber-Tools Light Mode --- */
body.light-mode .cyber-tool-card {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.12) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}
body.light-mode .cyber-tool-card:hover {
    border-color: #df162b !important;
    box-shadow: 0 8px 20px rgba(223, 22, 43, 0.15);
}
body.light-mode .cyber-tool-title { color: #1a1a1a !important; }
body.light-mode .cyber-tool-description { color: #444444 !important; }
body.light-mode .cyber-badge { background: rgba(0, 0, 0, 0.05); border: 1px solid rgba(0, 0, 0, 0.08); color: #555555; }
body.light-mode .cyber-tool-footer { border-top-color: rgba(0, 0, 0, 0.06); }
body.light-mode .cyber-sub-card-title { color: #df162b; }
body.light-mode .stack-classification { border-top-color: rgba(0, 0, 0, 0.06); }
body.light-mode .cyber-tool-btn { background: rgba(223, 22, 43, 0.03); border: 1px solid rgba(223, 22, 43, 0.3); color: #df162b !important; }
body.light-mode .cyber-tool-btn:hover { background: #df162b; color: #ffffff !important; border-color: #df162b; }

body.light-mode .standby-card { background: rgba(0, 0, 0, 0.02) !important; border: 1px dashed rgba(0, 0, 0, 0.2) !important; opacity: 0.7; }
body.light-mode .standby-card .cyber-tool-title { color: #777777 !important; }

/* ==========================================================================
   15. TOUS LES COMPOSANTS EN RESPONSIVE (MOBILE & ECOUTEURS MOBILE PAYSAGE)
   ========================================================================== */
@media screen and (max-width: 768px) {
    header { padding: 0 20px; }
    .cv-grid { grid-template-columns: 1fr; }
    .cv-header-block { flex-direction: column; }
    .hero h1 { font-size: 1.8rem; letter-spacing: 1px; }
    
    #scroll-to-top { bottom: 20px; right: 20px; width: 40px; height: 40px; }

    .cosmic-clouds {
        width: 150%; height: 150%; top: -25%; left: -25%;
        animation-duration: 40s;
        background-image: radial-gradient(circle at 50% 50%, rgba(223, 22, 43, 0.06) 0%, transparent 60%);
    }

    /* --- Menu Burger Tactile --- */
    .burger { display: flex !important; flex-direction: column; justify-content: center; height: 100%; z-index: 110; }
    .burger div { width: 25px; height: 3px; background-color: var(--text-main); margin: 3px 0; transition: all 0.3s ease; }

    nav .nav-links {
        position: fixed;
        top: 0; right: -100%; width: 100%; height: 100vh;
        background: rgba(10, 10, 14, 0.98) !important;
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 15px !important;
        padding: 90px 20px 40px 20px !important;
        box-sizing: border-box;
        transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 105;
    }
    
    nav.nav-active .nav-links, .nav-links.nav-active, .nav-links.mobile-active { right: 0 !important; }
    nav.nav-active .burger div:nth-child(1) { transform: rotate(-45deg) translate(-5px, 5px); }
    nav.nav-active .burger div:nth-child(2) { opacity: 0; }
    nav.nav-active .burger div:nth-child(3) { transform: rotate(45deg) translate(-5px, -5px); }

    .nav-links li { width: 80% !important; max-width: 300px; justify-content: center; }

    .nav-link {
        display: block !important;
        width: 100%;
        text-align: center;
        font-family: var(--font-cyber);
        font-size: 1.15rem !important;
        font-weight: 700;
        letter-spacing: 2px;
        text-transform: uppercase;
        color: #a0a0aa !important;
        padding: 12px 0 !important;
        border: none !important;
        border-left: 3px solid transparent !important;
        transition: all 0.2s ease !important;
    }
    .nav-link:hover, .nav-link.active {
        color: #fff !important;
        background: linear-gradient(90deg, rgba(223, 22, 43, 0.15) 0%, transparent 100%) !important;
        border-left-color: var(--accent-red) !important;
        padding-left: 15px !important;
        text-shadow: 0 0 8px var(--accent-red-glow);
        box-shadow: none !important;
    }

    .nav-links li:has(#theme-toggle), .nav-links li:has(#admin-lock-btn) { display: inline-flex !important; width: auto !important; margin: 15px 8px 0 8px !important; }

    #theme-toggle, #admin-lock-btn {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 46px !important;
        height: 46px !important;
        background: rgba(255, 255, 255, 0.03) !important;
        border: 1px solid rgba(255, 255, 255, 0.15) !important;
        border-radius: 50% !important;
        padding: 0 !important;
    }
    #theme-toggle i, #admin-lock-btn i { font-size: 1.1rem !important; }
    #theme-toggle:hover { border-color: #f1c40f !important; box-shadow: 0 0 10px rgba(241, 196, 15, 0.4); }
    #admin-lock-btn:hover { border-color: var(--accent-red) !important; box-shadow: 0 0 10px var(--accent-red-glow); transform: none; }

    /* --- Carousel Mobile --- */
    .carousel-container { padding: 40px 10px 25px 10px !important; margin: 20px 10px !important; }
    .carousel-content { max-width: 86% !important; margin: 0 auto !important; text-align: center !important; align-items: center !important; }
    .carousel-content h3 { font-size: 1.15rem !important; letter-spacing: 1.5px !important; margin-top: 10px !important; width: 100% !important; }
    .carousel-slide p { font-size: 0.85rem !important; line-height: 1.4 !important; margin: 12px 7px !important; }
    .carousel-link { display: inline-flex !important; font-size: 0.7rem !important; padding: 8px 12px !important; width: max-content !important; max-width: 100% !important; margin: 15px auto 0 auto !important; }
    .carousel-btn { width: 32px !important; height: 32px !important; font-size: 0.8rem !important; }
    .carousel-btn.prev { left: 5px !important; }
    .carousel-btn.next { right: 5px !important; }

    body.light-mode .carousel-container .carousel-link { color: var(--accent-red) !important; border-color: var(--accent-red) !important; background: transparent !important; }
    body.light-mode .carousel-container .carousel-link.link-github { color: #2f3640 !important; border-color: #2f3640 !important; }

    /* --- Musique Mobile --- */
    .music-stack { gap: 20px; padding: 0 10px; }
    .music-card { padding: 15px; }
    .music-card-header { font-size: 0.75rem; }
    .light-mode .mon-bouton { background-color: #ffffff; }

    ::-webkit-scrollbar { width: 4px; }
    ::-webkit-scrollbar-track { background: transparent; }
    ::-webkit-scrollbar-thumb { background: rgba(223, 22, 43, 0.5); border: none; }

    body.light-mode nav .nav-links { background: rgba(245, 246, 250, 0.98) !important; }
    body.light-mode .nav-link { color: #2f3640 !important; }
    body.light-mode .nav-link:hover, body.light-mode .nav-link.active { color: var(--accent-red) !important; background: linear-gradient(90deg, rgba(223, 22, 43, 0.08) 0%, transparent 100%) !important; }
    body.light-mode #theme-toggle, body.light-mode #admin-lock-btn { background: rgba(0, 0, 0, 0.03) !important; border-color: rgba(0, 0, 0, 0.15) !important; }
    body.light-mode #theme-toggle i { color: #2f3640 !important; text-shadow: none; }

    /* --- Cyber-Tools Mobile --- */
    .cyber-tools-grid { grid-template-columns: 1fr; gap: 20px; }
    .cyber-tool-card { padding: 18px; }
}

/* --- OPTIMISATION PAYSAGE SMARTPHONE (LANDSCAPE) --- */
@media (max-height: 500px) and (orientation: landscape) {
    header { display: flex !important; flex-direction: row !important; justify-content: space-between !important; align-items: center !important; padding: 5px 20px !important; height: auto !important; }
    header .logo-area { gap: 8px !important; }
    header .logo-img { height: 28px !important; width: auto !important; object-fit: contain !important; }
    header .brand { font-size: 0.9rem !important; }
    header .burger { display: none !important; }

    header nav .nav-links {
        display: flex !important;
        flex-direction: row !important;
        position: static !important;
        width: auto !important;
        height: auto !important;
        background: transparent !important;
        padding: 0 !important;
        margin: 0 !important;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        gap: 5px !important;
    }
    header nav .nav-links li { margin: 0 !important; padding: 0 !important; }
    header nav .nav-links a { font-size: 0.75rem !important; letter-spacing: 1px !important; padding: 4px 8px !important; border: 1px solid transparent; border-radius: 2px; }
    header nav .nav-links a.active, header nav .nav-links a:hover { background: rgba(223, 22, 43, 0.1) !important; border-color: rgba(223, 22, 43, 0.4) !important; color: #ffffff !important; }
}
