:root {
    --neon: #D4FF00;
    --bg: #0a0a0a;
    --card-bg: #141414;
    --text: #ffffff;
    --text-muted: #aaaaaa;
    --border: #333333;
    --font-heading: 'Share Tech Mono', monospace;
    --font-body: 'Inter', sans-serif;
}

body { background-color: var(--bg); color: var(--text); font-family: var(--font-body); margin: 0; line-height: 1.6; }
h1, h2, h3, h4 { font-family: var(--font-heading); text-transform: uppercase; margin-bottom: 1rem; }
a { color: var(--text); text-decoration: none; transition: 0.3s; }
.text-neon { color: var(--neon); }
.e404-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Buttons */
.btn-neon { background: var(--neon); color: #000; padding: 12px 25px; font-weight: 700; border: 1px solid var(--neon); text-transform: uppercase; font-family: var(--font-heading); display: inline-block; cursor: pointer; }
.btn-neon:hover { background: transparent; color: var(--neon); box-shadow: 0 0 15px rgba(212, 255, 0, 0.3); }
.btn-outline { background: transparent; color: var(--text); padding: 12px 25px; font-weight: 700; border: 1px solid var(--text); text-transform: uppercase; font-family: var(--font-heading); display: inline-block; cursor: pointer; }
.btn-outline:hover { border-color: var(--neon); color: var(--neon); }
.btn-small { background: #333; color: #fff; padding: 8px 15px; font-size: 0.9rem; border-radius: 4px; display: inline-block; }
.full-width { width: 100%; border: none; }

/* HEADER & NAV */
.e404-header { background: rgba(10, 10, 10, 0.95); border-bottom: 1px solid var(--border); position: fixed; width: 100%; top: 0; z-index: 1000; backdrop-filter: blur(10px); }
.header-flex { display: flex; justify-content: space-between; align-items: center; height: 80px; }

/* Lien qui entoure le logo */
.e404-logo-link {
    display: flex;         /* Force le lien à être un bloc flex */
    align-items: center;   /* Centre l'image verticalement dans le lien */
    height: 100%;          /* Prend toute la hauteur du header */
}

/* L'image du logo elle-même */
.e404-logo-img {
    height: 60px;          /* Augmente un peu la taille si besoin (était à 50px) */
    width: auto;
    display: block;        /* Supprime l'espace vide sous l'image */
    transition: transform 0.3s ease;
}

/* Optionnel : petit effet au survol du logo */
.e404-logo-link:hover .e404-logo-img {
    transform: scale(1.05);
}


.header-spacer { height: 80px; }

/* Navigation Desktop par défaut */

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

.e404-nav ul { display: flex; list-style: none; gap: 30px; align-items: center; margin: 0; padding: 0; }
.e404-nav a { font-family: var(--font-heading); font-size: 1.1rem; }
.e404-nav a:hover { color: var(--neon); }

/* HAMBURGER (Caché sur Desktop) */
.hamburger { display: none; background: none; border: none; cursor: pointer; width: 30px; height: 24px; padding: 0; z-index: 1002; position: relative; }
.hamburger span { display: block; width: 100%; height: 2px; background: var(--neon); margin-bottom: 5px; transition: 0.3s; transform-origin: center; }

/* MOBILE RESPONSIVE */
@media (max-width: 768px) {
    /* Afficher le bouton hamburger */
    .hamburger { display: block; }

    /* Animation du hamburger en croix quand actif */
    .hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .hamburger.active span:nth-child(2) { opacity: 0; }
    .hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    /* Menu caché sur le côté droit */
    .e404-nav {
        position: fixed;
        top: 0;
        right: -100%; /* Caché hors écran */
        width: 280px;
        height: 100vh;
        background: #000;
        border-left: 1px solid var(--neon);
        padding: 100px 20px;
        transition: 0.4s ease;
        z-index: 1001;
        box-shadow: -5px 0 20px rgba(0,0,0,0.8);
    }

    /* Classe ajoutée par le JS pour ouvrir le menu */
    .e404-nav.open { right: 0; }

    /* Réorganisation de la liste en vertical */
    .e404-nav ul { flex-direction: column; align-items: flex-start; gap: 25px; }
    .e404-nav a { font-size: 1.3rem; display: block; width: 100%; border-bottom: 1px solid #222; padding-bottom: 10px; }
    
    /* Responsive globaux */
    .contact-layout, .about-grid, .footer-grid { grid-template-columns: 1fr; }
    .e404-hero h1 { font-size: 2.5rem; }
    .service-row { flex-direction: column; text-align: center; gap: 20px; }
    .timeline::before { left: 20px; }
    .timeline-item { padding-left: 50px; }
    .diploma-grid { grid-template-columns: 1fr; }
}

/* Home Hero */
.e404-hero { padding: 100px 0; text-align: center; background: radial-gradient(circle at center, #1a1a1a 0%, #0a0a0a 70%); }
.hero-tag { color: var(--neon); border: 1px solid var(--neon); padding: 5px 10px; font-size: 0.8rem; letter-spacing: 2px; font-family: var(--font-heading); }
.e404-hero h1 { font-size: 4rem; line-height: 1.1; margin: 30px 0; letter-spacing: -2px; }
.e404-hero p { max-width: 600px; margin: 0 auto 40px auto; color: var(--text-muted); font-size: 1.2rem; }
.hero-btns { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }

/* Features */
.section-title { text-align: center; font-size: 2.5rem; margin-bottom: 50px; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-bottom: 80px; }
.feature-card { background: var(--card-bg); padding: 30px; border: 1px solid var(--border); transition: 0.3s; }
.feature-card:hover { border-color: var(--neon); transform: translateY(-5px); }
.f-icon { font-size: 2.5rem; margin-bottom: 20px; }

/* About Preview */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; padding: 50px 20px; background: var(--card-bg); border-radius: 8px; }
.check-list { list-style: none; padding: 0; margin: 20px 0; }
.check-list li::before { content: '✓'; color: var(--neon); margin-right: 10px; }
.stat-box { background: #000; padding: 20px; border-left: 4px solid var(--neon); font-family: var(--font-heading); margin-bottom: 10px; }

/* Services Page */
.page-wrapper { padding: 60px 20px; }
.page-title { font-size: 3rem; border-bottom: 1px solid var(--border); padding-bottom: 20px; margin-bottom: 50px; }
.service-row { display: flex; justify-content: space-between; align-items: center; background: var(--card-bg); padding: 30px; margin-bottom: 20px; border: 1px solid var(--border); transition: 0.3s; }
.service-row:hover { border-left: 5px solid var(--neon); }
.s-content h3 { font-size: 1.5rem; margin-bottom: 10px; }
.s-tags { list-style: none; padding: 0; display: flex; gap: 10px; margin-top: 15px; flex-wrap: wrap; }
.s-tags li { background: #000; color: var(--text-muted); padding: 2px 10px; font-size: 0.8rem; border: 1px solid #333; }

/* Contact Page */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.info-block { margin-bottom: 30px; font-size: 1.1rem; }
.contact-form-box { background: var(--card-bg); padding: 40px; border: 1px solid var(--border); }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 5px; color: var(--neon); font-family: var(--font-heading); font-size: 0.9rem; }
.form-group input, .form-group select, .form-group textarea { width: 100%; background: #000; border: 1px solid var(--border); padding: 12px; color: #fff; box-sizing: border-box; }
.form-group input:focus, .form-group textarea:focus { border-color: var(--neon); outline: none; }
.alert-success { background: rgba(212, 255, 0, 0.1); color: var(--neon); padding: 15px; margin-bottom: 20px; border: 1px solid var(--neon); }

/* Footer */
.e404-footer { background: #050505; border-top: 1px solid var(--border); padding: 60px 0 20px 0; margin-top: 80px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.e404-footer h4 { color: var(--neon); font-size: 1.1rem; margin-bottom: 20px; }
.e404-footer ul { list-style: none; padding: 0; }
.e404-footer li { margin-bottom: 10px; }
.e404-footer a { color: var(--text-muted); }
.e404-footer a:hover { color: #fff; padding-left: 5px; }
.footer-bottom { text-align: center; border-top: 1px solid #222; padding-top: 20px; color: #666; font-size: 0.9rem; }
.neon-dot { color: var(--neon); }

/* Timeline */
.timeline { position: relative; max-width: 800px; margin: 0 auto; }
.timeline::before { content: ''; position: absolute; left: 0; top: 0; height: 100%; width: 2px; background: var(--neon); }
.timeline-item { position: relative; padding-left: 40px; margin-bottom: 40px; }
.timeline-item::before { content: ''; position: absolute; left: -6px; top: 0; width: 14px; height: 14px; background: #000; border: 2px solid var(--neon); border-radius: 50%; }
.timeline-date { font-family: var(--font-heading); color: var(--neon); font-size: 1.1rem; margin-bottom: 5px; }
.timeline-content { background: var(--card-bg); padding: 20px; border: 1px solid var(--border); transition: 0.3s; }
.timeline-content:hover { transform: translateX(10px); border-color: var(--neon); }
.company { color: #888; font-weight: normal; font-size: 0.9em; }

/* Blog */
/* Style spécifique pour le titre de l'article */
h1.wp-block-post-title {
    font-family: 'Share Tech Mono', monospace !important;
    color: #ffffff;
    text-transform: uppercase;
    font-size: clamp(2rem, 5vw, 3.5rem); /* Taille fluide selon l'écran */
    line-height: 1.1;
    margin-bottom: 30px;
    padding-left: 20px;
    border-left: 5px solid var(--neon); /* Ta variable #D4FF00 */
    
    /* Effet de lueur (Glow) */
    text-shadow: 0 0 10px rgba(212, 255, 0, 0.3);
    
    /* Optionnel : Background dégradé discret derrière le texte */
    background: linear-gradient(90deg, rgba(212, 255, 0, 0.05) 0%, transparent 100%);
    padding-top: 10px;
    padding-bottom: 10px;
}
.e404-blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 25px; margin-top: 30px; }
.blog-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; transition: 0.3s; }
.blog-card:hover { border-color: var(--neon); transform: translateY(-5px); }
.blog-thumb { height: 200px; overflow: hidden; }
.blog-thumb img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.blog-card:hover .blog-thumb img { transform: scale(1.1); }
.blog-content {
    padding: 25px; /* Légèrement augmenté pour mieux respirer */
    display: flex;
    flex-direction: column;
    gap: 15px; /* Espace automatique entre meta, titre et texte */
}
.blog-meta {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.85rem;
    color: var(--neon); /* Utilise ton vert fluo #D4FF00 */
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
}
.blog-meta::before {
    content: ">";
    margin-right: 8px;
    font-weight: bold;
}
.blog-content h3 {
    margin: 0;
    font-size: 1.4rem;
    line-height: 1.3;
}

.blog-content h3 a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-content h3 a:hover {
    color: var(--neon);
}
.blog-excerpt {
    color: #aaaaaa; /* Gris clair pour le texte secondaire */
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 5px;
}
.blog-tags {
    margin-top: auto; /* Pousse les tags en bas si les titres n'ont pas la même longueur */
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.uab-tag {
    background: rgba(212, 255, 0, 0.05);
    border: 1px solid rgba(212, 255, 0, 0.2);
    color: var(--neon);
    padding: 4px 10px;
    font-size: 0.75rem;
    font-family: 'Share Tech Mono', monospace;
    border-radius: 3px;
    transition: 0.3s;
}

.uab-tag:hover {
    background: var(--neon);
    color: #000;
}

/* --- Bloc Navigation (Précédent / Suivant) --- */
.wp-block-columns.is-not-stacked-on-mobile {
    border-top: 1px solid #222;
    border-bottom: 1px solid #222;
    padding: 40px 0;
    margin-top: 60px !important;
    background: linear-gradient(180deg, rgba(255,255,255,0.02) 0%, transparent 100%);
    align-items: center;
}

/* Style des liens Précédent / Suivant */
.wp-block-post-navigation-link a {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.9rem;
    color: #ffffff;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    max-width: 300px; /* Évite que les titres trop longs se touchent */
}

/* Effet au survol des liens */
.wp-block-post-navigation-link a:hover {
    color: var(--neon);
    text-shadow: 0 0 8px rgba(212, 255, 0, 0.4);
}

/* Le texte "MORE POSTS" au centre */
.wp-block-columns.is-not-stacked-on-mobile .wp-block-column:nth-child(2) {
    text-align: center;
}

.wp-block-columns.is-not-stacked-on-mobile .wp-block-column:nth-child(2) p,
.wp-block-columns.is-not-stacked-on-mobile .wp-block-column:nth-child(2) h2 {
    font-family: 'Share Tech Mono', monospace;
    color: var(--neon);
    font-size: 0.8rem;
    letter-spacing: 3px;
    margin: 0;
    opacity: 0.8;
}

/* Animation des flèches symboliques (si présentes dans le texte) */
.wp-block-post-navigation-link a::before,
.wp-block-post-navigation-link a::after {
    transition: transform 0.3s ease;
    display: inline-block;
}

.wp-block-post-navigation-link.is-prev-post a:hover {
    transform: translateX(-10px);
}

.wp-block-post-navigation-link.is-next-post a:hover {
    transform: translateX(10px);
}

/* Diplomas */
.diploma-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 800px; margin: 0 auto; }
.diploma-card { background: #111; padding: 20px; border: 1px solid #333; text-align: center; }
.diploma-card strong { display: block; color: #fff; margin-bottom: 5px; }
.diploma-card span { color: #888; font-size: 0.9rem; }

/* Portfolio */
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.p-card { background: var(--card-bg); border: 1px solid var(--border); padding: 30px; position: relative; transition: 0.3s; }
.p-card:hover { border-color: var(--neon); box-shadow: 0 0 20px rgba(212,255,0,0.1); }
.p-tag { position: absolute; top: 20px; right: 20px; background: rgba(212,255,0,0.1); color: var(--neon); padding: 2px 8px; font-size: 0.7rem; font-family: var(--font-heading); border: 1px solid var(--neon); }

/* --- Style pour le lien avec flèche (.link-arrow) --- */
.link-arrow {
    display: inline-block;
    position: relative;
    font-family: var(--font-heading); /* Utilise Share Tech Mono */
    font-weight: 700;
    font-size: 1.1rem;
    color: #fff;
    text-transform: uppercase;
    text-decoration: none;
    padding-bottom: 5px;
    transition: all 0.3s ease;
    letter-spacing: 1px;
}

/* La ligne décorative néon en dessous (invisible au départ) */
.link-arrow::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--neon); /* Ta variable #D4FF00 */
    box-shadow: 0 0 10px var(--neon); /* Effet Glow */
    transition: width 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Effet au survol */
.link-arrow:hover {
    color: var(--neon);
    padding-left: 10px; /* Le texte glisse vers la droite */
    text-shadow: 0 0 8px rgba(212, 255, 0, 0.4);
}

/* La ligne grandit au survol */
.link-arrow:hover::after {
    width: 100%;
}

/* Petit "Hack" si ta flèche est un caractère textuel (→) dans le HTML */
/* Cela permet d'ajouter un petit espace supplémentaire avant la flèche si besoin */
.link-arrow:hover {
    cursor: pointer;
}

/* =========================================
   BOUTON ALERTE CYBER (ZERO DAY RADAR) 
   ========================================= */

.btn-cyber-alert {
    background: rgba(255, 0, 60, 0.1); /* Fond rouge très léger */
    color: #ff003c !important; /* Rouge alerte (écrase le blanc du menu) */
    padding: 8px 15px;
    font-weight: 700;
    border: 1px solid #ff003c;
    text-transform: uppercase;
    font-family: var(--font-heading);
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 4px;
    letter-spacing: 1px;
    
    /* Animation de pulsation type onde de choc */
    animation: cyber-pulse 2s infinite;
}

/* Le point lumineux à côté du texte */
.btn-cyber-alert::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #ff003c;
    border-radius: 50%;
    box-shadow: 0 0 8px #ff003c;
    animation: blink-dot 1s infinite alternate;
}

/* Effet au survol : S'allume complètement */
.btn-cyber-alert:hover {
    background: #ff003c;
    color: #fff !important;
    box-shadow: 0 0 20px rgba(255, 0, 60, 0.6);
    animation: none; /* Stoppe la pulsation au survol */
    transform: translateY(-2px);
}

.btn-cyber-alert:hover::before {
    background-color: #fff;
    box-shadow: 0 0 10px #fff;
    animation: none;
}

/* Clé d'animation pour la pulsation du bouton */
@keyframes cyber-pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 0, 60, 0.4); }
    70% { box-shadow: 0 0 0 12px rgba(255, 0, 60, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 0, 60, 0); }
}

/* Clé d'animation pour le point clignotant */
@keyframes blink-dot {
    0% { opacity: 0.3; }
    100% { opacity: 1; }
}

/* =========================================
   SYSTÈME RESPONSIVE GLOBAL
   ========================================= */

/* --- Ajustements pour Tablettes (Moins de 1024px) --- */
@media (max-width: 992px) {
    .e404-hero h1 { font-size: 3.2rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .about-grid { gap: 30px; }
}

/* --- Ajustements pour Mobiles (Moins de 768px) --- */
@media (max-width: 768px) {
    /* Typographie */
    h1.wp-block-post-title, .e404-hero h1 { 
        font-size: 2.2rem !important; 
        letter-spacing: -1px;
    }
    .section-title { font-size: 1.8rem; margin-bottom: 30px; }

    /* Hero Section */
    .e404-hero { padding: 60px 0; }
    .hero-btns { flex-direction: column; width: 100%; gap: 15px; }
    .hero-btns .btn-neon, .hero-btns .btn-outline { width: 100%; text-align: center; box-sizing: border-box; }

    /* Grilles et Layouts */
    .about-grid, 
    .contact-layout, 
    .footer-grid, 
    .diploma-grid,
    .e404-blog-grid,
    .portfolio-grid { 
        grid-template-columns: 1fr !important; 
        gap: 20px;
    }

    /* Services */
    .service-row { 
        flex-direction: column; 
        align-items: flex-start; 
        text-align: left;
        padding: 20px;
    }
    .s-content { margin-bottom: 15px; }

    /* Timeline (Ajustement de la ligne verticale) */
    .timeline::before { left: 10px; }
    .timeline-item { padding-left: 35px; }
    .timeline-item::before { left: 4px; }
    .timeline-content:hover { transform: none; } /* Désactive l'effet de glissement sur mobile */

    /* Contact Form */
    .contact-form-box { padding: 25px 15px; }

    /* Blog & WordPress Navigation */
    .wp-block-columns.is-not-stacked-on-mobile {
        flex-direction: column !important;
        gap: 30px;
    }
    .wp-block-post-navigation-link a {
        max-width: 100% !important;
        font-size: 0.8rem;
    }

    /* Footer */
    .e404-footer { padding: 40px 0 20px 0; text-align: center; }
    .e404-footer ul { margin-bottom: 30px; }
    .footer-bottom { font-size: 0.8rem; }
}

/* --- Ajustements pour Très Petits Écrans (Moins de 480px) --- */
@media (max-width: 480px) {
    .e404-container { padding: 0 15px; }
    
    .e404-hero h1 { font-size: 1.8rem !important; }
    
    .e404-logo-img { height: 45px; } /* Logo plus petit */
    .header-flex { height: 60px; }
    .header-spacer { height: 60px; }

    .feature-card, .blog-content { padding: 15px; }
    
    /* Boutons */
    .btn-neon, .btn-outline { padding: 10px 15px; font-size: 0.9rem; }
    
    .stat-box { font-size: 0.9rem; padding: 15px; }
}

/* --- Correction spécifique pour les images WordPress --- */
img {
    max-width: 100%;
    height: auto;
}

/* --- Gestion du scroll quand le menu mobile est ouvert --- */
body.menu-open {
    overflow: hidden;
}