/* --- PALETTE DE COULEURS CYBER PROFESSIONNELLE --- */
:root {
    --bg-main: #060913;        /* Bleu nuit très profond */
    --panel-bg: rgba(13, 19, 38, 0.85); /* Fond de carte translucide */
    --cyan-tech: #00d2ff;      /* Cyan électrique */
    --purple-tech: #8a2be2;    /* Violet néon */
    --text-white: #f1f5f9;     /* Blanc cassé épuré */
    --text-muted: #64748b;     /* Gris texte secondaire */
    --border-glow: rgba(0, 210, 255, 0.2);
}

/* --- RESET & STRUCTURE GLOBAL --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-main);
    color: var(--text-white);
    font-family: 'Plus Jakarta Sans', sans-serif;
    overflow: hidden; /* Désactive les barres de défilement globales pour le scroll snap */
}

/* --- ANIMATION NUMÉRIQUE DE MAILLAGE DU FOND --- */
.cyber-grid-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    opacity: 0.22;
    background-image: 
        linear-gradient(rgba(0, 210, 255, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(138, 43, 226, 0.08) 1px, transparent 1px);
    background-size: 50px 50px;
    box-shadow: inset 0 0 100px rgba(6, 9, 19, 0.9);
    animation: digitalFlow 35s linear infinite;
    
    /* FIX CRUCIAL : Empêche le fond de bloquer les clics de la souris */
    pointer-events: none; 
}

@keyframes digitalFlow {
    0% { background-position: 0px 0px; }
    100% { background-position: 100px 200px; }
}

/* --- CONTENEUR DES SLIDES EN APP INTERFACE --- */
.portfolio-container {
    position: relative;
    z-index: 2;
    height: 100vh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
}

section {
    height: 100vh;
    width: 100vw;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 100px 24px 40px 24px;
}

/* --- NAVIGATION APPLICATIVE FIXE --- */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 6%;
    background: rgba(6, 9, 19, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    z-index: 100;
}

.nav-brand {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--cyan-tech);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--cyan-tech);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.5; }
}

.text-gradient {
    background: linear-gradient(45deg, var(--cyan-tech), var(--purple-tech));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 25px;
}

.nav-links a {
    color: var(--text-white);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--cyan-tech);
}

/* --- PANNEAUX TECHNIQUES ET ENCADRÉS --- */
.tech-panel {
    background: var(--panel-bg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    backdrop-filter: blur(8px);
}

.console-tag {
    position: absolute;
    top: -12px;
    left: 30px;
    background: linear-gradient(45deg, var(--cyan-tech), var(--purple-tech));
    color: #060913;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

h2 {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 30px;
    background: linear-gradient(90deg, #fff, var(--text-muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- ACCUEIL CONSOLE --- */
.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #fff 30%, var(--cyan-tech));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.1rem;
    color: var(--purple-tech);
    font-weight: 500;
    margin-bottom: 25px;
}

.hero-description {
    font-size: 1.15rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.highlight-text {
    color: var(--text-white);
    font-weight: 600;
}

/* --- BOUTONS INDUSTRIELS --- */
.btn-cyber {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: linear-gradient(45deg, var(--cyan-tech), var(--purple-tech));
    color: #060913;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-cyber:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 210, 255, 0.4);
}

.btn-glow {
    background: #060913;
    color: var(--cyan-tech);
    border: 2px solid var(--cyan-tech);
}
.btn-glow:hover {
    background: var(--cyan-tech);
    color: #060913;
}

/* --- CARTES ET COMPOSANTS STRATIFIÉS --- */
.grid-layout {
    display: flex;
    gap: 24px;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    width: 100%;
}

.interactive-card {
    background: rgba(6, 9, 19, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 24px;
    width: 340px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.interactive-card:hover {
    transform: translateY(-6px);
    border-color: var(--cyan-tech);
    box-shadow: 0 12px 30px rgba(0, 210, 255, 0.1);
}

.border-glow {
    border-style: dashed;
    border-color: rgba(0, 210, 255, 0.4);
}

.card-icon {
    font-size: 2rem;
    color: var(--cyan-tech);
    margin-bottom: 15px;
}

.interactive-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.interactive-card p {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-muted);
}

.interactive-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 6px;
    margin-top: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.card-link-wrapper {
    text-decoration: none;
    color: inherit;
}

.action-hint {
    display: block;
    margin-top: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--cyan-tech);
    text-align: right;
}

/* Structure Projets */
.project-box {
    width: 460px;
    text-align: left;
}
.project-status {
    position: absolute;
    top: 20px;
    right: 20px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    background: rgba(0, 210, 255, 0.1);
    color: var(--cyan-tech);
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 500;
}

.tech-tags {
    margin-top: 20px;
    display: flex;
    gap: 8px;
}

.tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    background: rgba(255, 255, 255, 0.04);
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Terminal Contact */
.terminal-contact-box {
    background: #060913;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 20px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.95rem;
    display: inline-block;
    text-align: left;
    max-width: 550px;
    width: 100%;
}
.terminal-line { margin-bottom: 8px; }
.prompt { color: var(--purple-tech); font-weight: bold; }
.terminal-contact-box a { color: var(--cyan-tech); text-decoration: none; }
.terminal-contact-box a:hover { text-decoration: underline; }

/* --- CONTRÔLE INTERFACE MOBILE AUTOMATIQUE --- */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero-title { font-size: 2.3rem; }
    .tech-panel { padding: 25px 15px; }
    section { height: auto; min-height: 100vh; scroll-snap-align: none; padding-top: 90px; }
    .portfolio-container { height: auto; overflow-y: visible; scroll-snap-type: none; }
    .interactive-card, .project-box { width: 100%; }
}
