:root {
    --neon-blue: #00f3ff;
    --deep-blue: #0b1b3b;
    --cyber-purple: #7928ca;
    --tech-green: #00ff9d;
    --dark-bg: #0a192f;
    --light-gray: #8892b0;
    --white: #e6f1ff;
}

/* Style général */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: 'Consolas', monospace;
    background: var(--dark-bg);
    color: var(--white);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Animation d'apparition du texte type "terminal" */
@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink {
    50% { border-color: transparent }
}

/* Navigation */
nav {
    background: rgba(11, 27, 59, 0.9);
    backdrop-filter: blur(10px);
    padding: 1rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--neon-blue);
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

nav ul li a {
    color: var(--neon-blue);
    text-decoration: none;
    position: relative;
    padding: 0.5rem 1rem;
    transition: color 0.3s;
}

nav ul li a::before {
    content: '<';
    position: absolute;
    left: -10px;
    opacity: 0;
    transition: 0.3s;
    color: var(--tech-green);
}

nav ul li a::after {
    content: '/>';
    position: absolute;
    right: -20px;
    opacity: 0;
    transition: 0.3s;
    color: var(--tech-green);
}

nav ul li a:hover::before,
nav ul li a:hover::after {
    opacity: 1;
}

nav ul li a:hover {
    color: var(--tech-green);
}

/* Sections */
section {
    min-height: 100vh;
    padding: 80px 20px;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
    animation: slideIn 0.8s ease forwards;
}

section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 49%, var(--neon-blue) 49%, transparent 51%);
    background-size: 10px 10px;
    opacity: 0.05;
}

/* Titres avec effet cyber */
h1, h2, h3 {
    color: var(--neon-blue);
    margin-bottom: 2rem;
    position: relative;
    width: fit-content;
}

h1::after, h2::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--tech-green);
    animation: glitch 2s infinite;
}

@keyframes glitch {
    0% { transform: translateX(0); }
    25% { transform: translateX(5px); }
    50% { transform: translateX(-5px); }
    75% { transform: translateX(3px); }
    100% { transform: translateX(0); }
}

/* Cartes de compétences */
.competence-group {
    background: rgba(11, 27, 59, 0.8);
    border: 1px solid var(--neon-blue);
    border-radius: 5px;
    padding: 20px;
    margin: 20px 0;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

.competence-group:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 20px var(--neon-blue);
}

.competence-group::before {
    content: '>';
    position: absolute;
    left: -20px;
    color: var(--tech-green);
    opacity: 0;
    transition: 0.3s;
}

.competence-group:hover::before {
    opacity: 1;
    left: -10px;
}

/* Formulaire de contact stylisé */
form {
    max-width: 500px;
    margin: 0 auto;
}

input, textarea {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    background: rgba(11, 27, 59, 0.8);
    border: 1px solid var(--neon-blue);
    color: var(--white);
    border-radius: 5px;
    transition: all 0.3s;
}

input:focus, textarea:focus {
    outline: none;
    box-shadow: 0 0 10px var(--neon-blue);
    border-color: var(--tech-green);
}

button {
    background: transparent;
    color: var(--neon-blue);
    border: 1px solid var(--neon-blue);
    padding: 12px 30px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(0, 243, 255, 0.2),
        transparent
    );
    transition: 0.5s;
}

button:hover::before {
    left: 100%;
}

button:hover {
    background: var(--neon-blue);
    color: var(--dark-bg);
    box-shadow: 0 0 20px var(--neon-blue);
}

/* Animation de progression des compétences */
.skill-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    margin: 10px 0;
    position: relative;
    overflow: hidden;
}

.skill-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: var(--tech-green);
    animation: fillBar 2s ease forwards;
    border-radius: 4px;
}

@keyframes fillBar {
    from { width: 0; }
    to { width: var(--fill-percentage); }
}

/* Effet de survol sur les projets */
.projet {
    border: 1px solid var(--neon-blue);
    padding: 20px;
    margin: 20px 0;
    border-radius: 5px;
    transition: all 0.3s;
    background: rgba(11, 27, 59, 0.8);
}

.projet:hover {
    transform: scale(1.02);
    box-shadow: 0 0 20px var(--neon-blue);
}

/* Animation de chargement des sections */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

section {
    animation: fadeInUp 1s ease forwards;
}

/* Responsive Design */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    nav ul li {
        margin: 10px 0;
    }
}

/* Profile Section Styles */
.profile-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 2rem;
}

.profile-header {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 2rem;
}

.profile-image {
    width: 150px;
    height: 150px;
    border: 3px solid var(--neon-blue);
    box-shadow: 0 0 20px var(--neon-blue);
    object-fit: cover;
}

.profile-title {
    flex: 1;
    padding-top: 4rem;
}

.profile-title h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--neon-blue);
}

.profile-title h2 {
    font-size: 1.5rem;
    color: var(--tech-green);
}

.profile-content {
    width: 100%;
}

/* Info Grid Styles */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(11, 27, 59, 0.8);
    border: 1px solid var(--neon-blue);
    border-radius: 5px;
}

/* Experience & Formation Cards */
.experience-card, .formation-card {
    background: rgba(11, 27, 59, 0.8);
    border: 1px solid var(--neon-blue);
    border-radius: 5px;
    padding: 2rem;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.experience-card:hover, .formation-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 20px var(--neon-blue);
}

.experience-date, .formation-date,
.experience-location, .formation-location {
    color: var(--tech-green);
    margin: 0.5rem 0;
}

.experience-card ul, .formation-card ul {
    margin-top: 1rem;
    list-style-type: none;
}

.experience-card ul li, .formation-card ul li {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.experience-card ul li::before, .formation-card ul li::before {
    content: '>';
    position: absolute;
    left: 0;
    color: var(--tech-green);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .profile-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .profile-title {
        padding-top: 2rem;
    }

    .profile-title h1 {
        font-size: 2rem;
    }

    .profile-title h2 {
        font-size: 1.2rem;
    }
}

/* Styles pour la section Atouts */
.atouts-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--neon-blue);
}

.atouts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
}

.atouts-category {
    background: rgba(11, 27, 59, 0.8);
    border: 1px solid var(--neon-blue);
    border-radius: 5px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.atouts-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 15px var(--neon-blue);
}

.atouts-category h3 {
    color: var(--tech-green);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    position: relative;
    padding-left: 1.5rem;
}

.atouts-category h3::before {
    content: '>';
    position: absolute;
    left: 0;
    color: var(--neon-blue);
}

.atouts-category ul {
    list-style: none;
}

.atouts-category ul li {
    margin-bottom: 1rem;
}

.atouts-category ul li:last-child {
    margin-bottom: 0;
}

.atout-title {
    display: block;
    color: var(--neon-blue);
    font-weight: bold;
    margin-bottom: 0.3rem;
}

.atouts-category ul li p {
    color: var(--light-gray);
    font-size: 0.9rem;
    padding-left: 1rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .atouts-grid {
        grid-template-columns: 1fr;
    }

    .atouts-category {
        margin-bottom: 1rem;
    }
}

/* Styles pour les nouvelles sections */
#e5, #e6, #veille {
    padding: 100px 0;
}

.e5-content, .e6-content, .veille-content {
    background: rgba(11, 27, 59, 0.8);
    border: 1px solid var(--neon-blue);
    border-radius: 5px;
    padding: 2rem;
    margin-top: 2rem;
    transition: all 0.3s ease;
}

.e5-content:hover, .e6-content:hover, .veille-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 20px var(--neon-blue);
}

/* Ajustement du menu pour les nouveaux éléments */
.menu-container ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

/* Animation spéciale pour les nouveaux onglets */
.menu-container ul li a[href="#e5"],
.menu-container ul li a[href="#e6"],
.menu-container ul li a[href="#veille"] {
    padding: 0.5rem 1.5rem;
    position: relative;
}

.menu-container ul li a[href="#e5"]::before,
.menu-container ul li a[href="#e6"]::before,
.menu-container ul li a[href="#veille"]::before {
    content: '<';
    position: absolute;
    left: 0;
    opacity: 0;
    color: var(--tech-green);
    transition: all 0.3s ease;
    transform: translateX(5px);
}

.menu-container ul li a[href="#e5"]::after,
.menu-container ul li a[href="#e6"]::after,
.menu-container ul li a[href="#veille"]::after {
    content: '/>';
    position: absolute;
    right: 0;
    opacity: 0;
    color: var(--tech-green);
    transition: all 0.3s ease;
    transform: translateX(-5px);
}

.menu-container ul li a[href="#e5"]:hover::before,
.menu-container ul li a[href="#e6"]:hover::before,
.menu-container ul li a[href="#veille"]:hover::before,
.menu-container ul li a[href="#e5"]:hover::after,
.menu-container ul li a[href="#e6"]:hover::after,
.menu-container ul li a[href="#veille"]:hover::after {
    opacity: 1;
    transform: translateX(0);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .menu-container ul {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .e5-content, .e6-content, .veille-content {
        padding: 1.5rem;
    }
}

/* Style de base pour tous les liens de navigation */
.menu-container ul li a {
    color: var(--neon-blue);
    text-decoration: none;
    position: relative;
    padding: 0.5rem 1.5rem;
    transition: color 0.3s ease;
}

/* Animation style code avec chevrons */
.menu-container ul li a::before {
    content: '<';
    position: absolute;
    left: 0;
    opacity: 0;
    color: var(--tech-green);
    transition: all 0.3s ease;
    transform: translateX(5px);
}

.menu-container ul li a::after {
    content: '/>';
    position: absolute;
    right: 0;
    opacity: 0;
    color: var(--tech-green);
    transition: all 0.3s ease;
    transform: translateX(-5px);
}

/* Animation au survol */
.menu-container ul li a:hover {
    color: var(--tech-green);
}

.menu-container ul li a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.menu-container ul li a:hover::after {
    opacity: 1;
    transform: translateX(0);
}

/* Animation glitch au survol */
@keyframes glitch {
    0% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
    100% { transform: translate(0); }
}

.menu-container ul li a:hover {
    animation: glitch 0.3s ease;
}

/* Ajustement de l'espacement du menu */
.menu-container ul {
    gap: 2rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .menu-container ul li a {
        padding: 0.5rem 2rem;
    }
}

/* Animation de glissement pour les sections */
html {
    scroll-behavior: smooth; /* Activation du défilement fluide natif */
}

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

/* Animation spécifique quand une section devient visible */
section:target {
    animation: targetSlide 0.8s ease forwards;
}

@keyframes targetSlide {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ajustement du scroll-padding pour compenser la navbar fixe */
html {
    scroll-padding-top: 80px; /* Ajustez cette valeur selon la hauteur de votre navbar */
}

/* Style pour l'effet typewriter */
.typewriter {
    min-height: 2em;
    margin-top: 0.5rem;
}

.typed-text {
    color: var(--tech-green);
    font-size: 1.5rem;
}

.cursor {
    display: inline-block;
    width: 3px;
    margin-left: 2px;
    background-color: var(--tech-green);
    animation: blink 1s infinite;
}

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

/* Animation d'écriture */
@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes erasing {
    from { width: 100% }
    to { width: 0 }
}

/* Style pour les lignes de texte */
.static-lines {
    margin-top: 1rem;
}

.line-1, .line-2 {
    color: var(--tech-green);
    font-size: 1.5rem;
    margin: 0.5rem 0;
    position: relative;
    width: fit-content;
    overflow: hidden;
    white-space: nowrap;
    border-right: 2px solid var(--tech-green);
}

/* Animation pour la première ligne */
.line-1 {
    animation: 
        typing1 3.5s steps(20) infinite,
        blink 0.5s step-end infinite alternate;
    width: 0;
}

/* Animation pour la deuxième ligne */
.line-2 {
    animation: 
        typing2 3.5s steps(22) infinite;
    width: 0;
}

/* Animation d'écriture pour ligne 1 */
@keyframes typing1 {
    0%, 50% { width: 0; }
    10%, 40% { width: 20ch; }
}

/* Animation d'écriture pour ligne 2 */
@keyframes typing2 {
    0%, 50% { width: 0; }
    60%, 90% { width: 22ch; }
}

/* Animation du curseur */
@keyframes blink {
    50% { border-color: transparent; }
}

/* Style du menu hamburger */
.hamburger-menu {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.menu-button {
    display: none; /* Caché par défaut sur desktop */
    width: 35px;
    height: 35px;
    position: relative;
    cursor: pointer;
    z-index: 2;
    padding: 10px;
}

.menu-button span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: var(--neon-blue);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.menu-button span:nth-child(1) { top: 0; }
.menu-button span:nth-child(2) { top: 10px; }
.menu-button span:nth-child(3) { top: 20px; }

/* Media query pour mobile */
@media (max-width: 768px) {
    .menu-button {
        display: block;
    }

    .menu-container {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(11, 27, 59, 0.95);
        backdrop-filter: blur(10px);
        transition: all 0.3s ease;
    }

    .menu-container.active {
        left: 0;
    }

    .menu-button.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .menu-button.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-button.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
}

/* Styles pour la section E5 */
.e5-content {
    background: rgba(11, 27, 59, 0.8);
    border: 1px solid var(--neon-blue);
    border-radius: 5px;
    padding: 2rem;
    margin-top: 2rem;
}

.e5-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--tech-green);
}

.e5-subtitle {
    color: var(--tech-green);
    font-size: 1.1rem;
    margin-top: 0.5rem;
}

.e5-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.e5-card {
    background: rgba(11, 27, 59, 0.6);
    border: 1px solid var(--neon-blue);
    border-radius: 5px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.e5-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 20px var(--neon-blue);
}

.e5-card h4 {
    color: var(--tech-green);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    position: relative;
    padding-left: 1.5rem;
}

.e5-card h4::before {
    content: '>';
    position: absolute;
    left: 0;
    color: var(--neon-blue);
}

.e5-card ul {
    list-style: none;
}

.e5-card ul li {
    margin-bottom: 0.8rem;
    padding-left: 1.2rem;
    position: relative;
}

.e5-card ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--tech-green);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .e5-grid {
        grid-template-columns: 1fr;
    }
    
    .e5-content {
        padding: 1.5rem;
    }
}

/* Styles pour la section E6 */
.e6-content {
    background: rgba(11, 27, 59, 0.8);
    border: 1px solid var(--neon-blue);
    border-radius: 5px;
    padding: 2rem;
    margin-top: 2rem;
}

.e6-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--tech-green);
}

.e6-subtitle {
    color: var(--tech-green);
    font-size: 1.1rem;
    margin-top: 0.5rem;
}

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

.e6-card {
    background: rgba(11, 27, 59, 0.6);
    border: 1px solid var(--neon-blue);
    border-radius: 5px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.e6-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 20px var(--neon-blue);
}

.e6-card.highlight-card {
    border-color: var(--tech-green);
    background: rgba(0, 255, 157, 0.1);
}

.e6-card.highlight-card:hover {
    box-shadow: 0 0 20px var(--tech-green);
}

.e6-card h4 {
    color: var(--tech-green);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    position: relative;
    padding-left: 1.5rem;
}

.e6-card h4::before {
    content: '>';
    position: absolute;
    left: 0;
    color: var(--neon-blue);
}

.e6-card ul {
    list-style: none;
}

.e6-card ul li {
    margin-bottom: 0.8rem;
    padding-left: 1.2rem;
    position: relative;
    line-height: 1.4;
}

.e6-card ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--tech-green);
}

/* Animation d'entrée pour les cartes */
.e6-card {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.e6-card:nth-child(2) { animation-delay: 0.2s; }
.e6-card:nth-child(3) { animation-delay: 0.4s; }
.e6-card:nth-child(4) { animation-delay: 0.6s; }
.e6-card:nth-child(5) { animation-delay: 0.8s; }
.e6-card:nth-child(6) { animation-delay: 1s; }

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

/* Responsive adjustments */
@media (max-width: 768px) {
    .e6-grid {
        grid-template-columns: 1fr;
    }
    
    .e6-content {
        padding: 1.5rem;
    }
}

/* Styles pour la section Veille */
.veille-content {
    background: rgba(11, 27, 59, 0.8);
    border: 1px solid var(--neon-blue);
    border-radius: 5px;
    padding: 2rem;
    margin-top: 2rem;
}

.veille-header {
    text-align: center;
    margin-bottom: 3rem;
}

.veille-categories {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.veille-categories input[type="radio"] {
    display: none;
}

.veille-categories label.category {
    padding: 0.5rem 1rem;
    border: 1px solid var(--tech-green);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.veille-categories label.category:hover {
    background: rgba(0, 255, 157, 0.2);
}

/* Style actif pour le bouton sélectionné */
#all:checked ~ label[for="all"],
#cybersec:checked ~ label[for="cybersec"],
#ia:checked ~ label[for="ia"] {
    background: var(--tech-green);
    color: #000;
}

/* Filtrage des articles */
#cybersec:checked ~ .articles-grid .article-card:not(.cybersec),
#ia:checked ~ .articles-grid .article-card:not(.ia) {
    display: none;
}

/* Base styles pour les articles */
.article-card {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: all 0.5s ease;
}

/* Styles pour le filtrage */
/* Quand Cybersécurité est sélectionné */
#cybersec:checked ~ .articles-grid .article-card {
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

#cybersec:checked ~ .articles-grid .article-card.cybersec {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Quand IA est sélectionné */
#ia:checked ~ .articles-grid .article-card {
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

#ia:checked ~ .articles-grid .article-card.ia {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Quand Tout est sélectionné */
#all:checked ~ .articles-grid .article-card {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: all 0.5s ease;
}

/* Animation séquentielle */
.article-card:nth-child(1) { transition-delay: 0.1s; }
.article-card:nth-child(2) { transition-delay: 0.2s; }
.article-card:nth-child(3) { transition-delay: 0.3s; }
.article-card:nth-child(4) { transition-delay: 0.4s; }

/* Style des boutons de filtre */
.category {
    transition: all 0.3s ease;
}

#all:checked ~ .veille-categories label[for="all"],
#cybersec:checked ~ .veille-categories label[for="cybersec"],
#ia:checked ~ .veille-categories label[for="ia"] {
    background: var(--tech-green);
    color: #000;
    transform: scale(1.05);
}

/* Ajustement de l'espacement */
.veille-categories {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.article-card {
    background: rgba(11, 27, 59, 0.6);
    border: 1px solid var(--neon-blue);
    border-radius: 5px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 20px var(--neon-blue);
}

.article-tag {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.3rem 0.8rem;
    background: var(--tech-green);
    color: #000;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
}

.article-card h4 {
    color: var(--neon-blue);
    margin: 2rem 0 1rem;
    font-size: 1.2rem;
}

.article-date {
    color: var(--tech-green);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.article-card p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 255, 157, 0.2);
}

/* Style pour les liens "Lire plus" */
.read-more {
    color: var(--tech-green);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.read-more:hover {
    color: var(--neon-blue);
    transform: translateX(5px);
}

.read-more i {
    font-size: 0.8rem;
}

/* Animation au survol des articles */
.article-card {
    cursor: pointer;
}

.article-card:hover .read-more {
    color: var(--neon-blue);
}

/* Animation d'entrée pour les articles */
.article-card {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.article-card:nth-child(2) { animation-delay: 0.2s; }
.article-card:nth-child(3) { animation-delay: 0.4s; }
.article-card:nth-child(4) { animation-delay: 0.6s; }

/* Responsive adjustments */
@media (max-width: 768px) {
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .veille-categories {
        flex-wrap: wrap;
    }
}

/* Style pour le système de filtrage */
.filter-container input[type="radio"] {
    display: none;
}

.veille-categories {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
}

.category {
    padding: 0.5rem 1rem;
    border: 1px solid var(--tech-green);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category:hover {
    background: rgba(0, 255, 157, 0.2);
}

/* Filtrage des articles */
#all:checked ~ .veille-categories label[for="all"],
#cybersec:checked ~ .veille-categories label[for="cybersec"],
#ia:checked ~ .veille-categories label[for="ia"] {
    background: var(--tech-green);
    color: #000;
}

/* Masquer les articles non sélectionnés */
#cybersec:checked ~ .articles-grid .article-card:not(.cybersec) {
    display: none;
}

#ia:checked ~ .articles-grid .article-card:not(.ia) {
    display: none;
}

/* Afficher tous les articles quand "Tout" est sélectionné */
#all:checked ~ .articles-grid .article-card {
    display: block;
}

/* Animation pour les transitions */
.article-card {
    transition: all 0.3s ease;
}

/* Ajustement de la grille d'articles */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Styles pour la section Contact compacte */
.contact-content {
    background: rgba(11, 27, 59, 0.8);
    border: 1px solid var(--neon-blue);
    border-radius: 5px;
    padding: 1.5rem;
    margin: 1rem auto;
    max-width: 600px;
}

.contact-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.contact-header h3 {
    color: var(--tech-green);
    margin-bottom: 0.5rem;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    font-size: 0.9rem;
    color: var(--neon-blue);
}

.contact-info span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-info i {
    color: var(--tech-green);
}

/* Style du formulaire compact */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.8rem;
    background: rgba(11, 27, 59, 0.6);
    border: 1px solid var(--neon-blue);
    border-radius: 5px;
    color: #fff;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.contact-form textarea {
    resize: vertical;
    min-height: 100px;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--tech-green);
    box-shadow: 0 0 10px rgba(0, 255, 157, 0.2);
}

.submit-btn {
    background: var(--neon-blue);
    color: #000;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    align-self: flex-end;
}

.submit-btn:hover {
    background: var(--tech-green);
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 500px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-info {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    .contact-content {
        padding: 1rem;
    }
}

/* Style pour le logo */
.logo {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
    background: rgba(11, 27, 59, 0.8);
    padding: 10px;
    border-radius: 5px;
    border: 1px solid var(--neon-blue);
    transition: all 0.3s ease;
}

.logo img {
    height: 40px;
    width: auto;
    display: block;
}

.logo:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(0, 157, 255, 0.3);
}

/* Ajustement pour le responsive */
@media (max-width: 768px) {
    .logo {
        top: 10px;
        left: 10px;
    }
    
    .logo img {
        height: 30px;
    }
}