/* --- VARIABLES DE COULEURS THÈME SISR --- */
:root {
    --bg-dark: #0a0c10;       /* Fond noir profond style console */
    --accent-color: #00ffc3;  /* Cyan "Matrix" pour les éléments SISR */
    --text-white: #ffffff;
    --text-gray: #8b949e;
    --navbar-bg: #ffffff;
    --card-bg: #161b22;       /* Gris sombre pour les cartes projets */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- BARRE DE NAVIGATION (BANDEAU BLANC) --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background-color: var(--navbar-bg);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.logo {
    font-family: 'Courier New', Courier, monospace; /* Style machine */
    font-size: 1.4rem;
    font-weight: 800;
    color: #1a1a1a;
    letter-spacing: 1px;
}

.logo span {
    color: var(--accent-color);
}

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

.nav-links a {
    text-decoration: none;
    color: #4b5563;
    font-weight: 700;
    font-size: 0.8rem;
    padding: 10px 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

/* Effet au survol (Noircit l'onglet) */
.nav-links a:hover {
    background-color: #1a1a1a;
    color: #ffffff;
}

.nav-links a.active {
    background-color: #f1f5f9;
    color: #1a1a1a;
    border-bottom: 2px solid var(--accent-color);
}

/* --- SECTION ACCUEIL (HERO CENTRÉ) --- */
.hero-main {
    height: calc(100vh - 70px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
}

.intro-text {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 5px;
    color: var(--text-white);
}

.main-title {
    font-size: 4.5rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.main-title span {
    color: var(--accent-color);
    font-style: italic;
}

.sub-title {
    font-size: 1rem;
    letter-spacing: 3px;
    color: var(--text-gray);
    margin-bottom: 50px;
    text-transform: uppercase;
}

/* --- BOUTON VISITER STYLE SISR --- */
.btn-visiter {
    display: inline-block;
    padding: 15px 45px;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    text-decoration: none;
    font-family: 'Courier New', monospace;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 2px;
    border-radius: 4px;
    transition: all 0.4s ease;
    background-color: transparent;
    box-shadow: 0 0 10px rgba(0, 255, 195, 0.1);
}

.btn-visiter:hover {
    background-color: var(--accent-color);
    color: #000;
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(0, 255, 195, 0.4);
}

/* --- GRILLE DE COMPÉTENCES / PROJETS --- */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px 20px;
}

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

.card {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: 0.3s;
}

.card:hover {
    border-color: var(--accent-color);
    transform: translateY(-5px);
}

/* --- ANIMATIONS --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: 1s all ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- STYLES PAGE À PROPOS --- */
.page-title {
    font-size: 3rem;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.bio {
    font-size: 1.2rem;
    color: var(--text-gray);
    max-width: 800px;
    margin-bottom: 50px;
}

/* Timeline */
.timeline { margin-bottom: 60px; }
.timeline-item {
    border-left: 2px solid var(--accent-color);
    padding-left: 20px;
    margin-bottom: 30px;
    position: relative;
}
.timeline-item h3 { color: var(--accent-color); }
.date { color: var(--text-gray); font-size: 0.9rem; font-weight: bold; }

/* Badges de niveau (Conformité BTS) */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
    margin-bottom: 10px;
    text-transform: uppercase;
}
.advanced { background: #1e4620; color: #4caf50; border: 1px solid #4caf50; } /* Vert */
.intermediate { background: #4d4416; color: #ffeb3b; border: 1px solid #ffeb3b; } /* Jaune */
.basic { background: #1a3a5a; color: #2196f3; border: 1px solid #2196f3; } /* Bleu */

/* --- STYLES SPÉCIFIQUES SYNTHÈSE --- */
.subtitle-e5 {
    color: var(--text-gray);
    font-size: 1.2rem;
    font-weight: 400;
    margin-top: 10px;
    letter-spacing: 1px;
}

.document-section {
    margin-top: 40px;
}

.document-info {
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--card-bg);
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--accent-color);
    margin-bottom: 30px;
}

.document-info i {
    color: var(--accent-color);
}

.pdf-container {
    width: 100%;
    min-height: 500px;
    background-color: #000;
    border: 1px dashed var(--accent-color);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
}

.pdf-placeholder {
    text-align: center;
    color: var(--text-gray);
}

.pdf-placeholder i {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.5;
}

.download-area {
    text-align: center;
}

.intro-text-projets {
    color: var(--text-gray);
    font-size: 1.1rem;
    margin-bottom: 50px;
}

/* --- FORMAT XL IMMERSIF POUR SCHÉMA RÉSEAU --- */
.projets-grid {
    display: flex;
    flex-direction: column;
    gap: 60px;
    width: 98%; /* On utilise quasiment tout l'écran */
    max-width: 1800px; /* Proche de tes 1920px d'origine */
    margin: 20px auto;
}

.projet-card {
    background-color: #0d1117;
    border: 1px solid rgba(0, 255, 195, 0.4);
    border-radius: 12px;
    overflow: hidden;
}

.projet-image {
    width: 100%;
    height: auto;
    display: block;
    /* Supprime le flou de redimensionnement des navigateurs */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    object-fit: contain;
}

.projet-info {
    padding: 40px;
    background: #0d1117;
    border-top: 1px solid rgba(0, 255, 195, 0.2);
}

.projet-info h3 {
    font-size: 1.8rem;
    color: var(--accent-color);
    margin-bottom: 15px;
}

/* --- STYLES ALTERNANCE --- */
.company-logo {
    height: 100px; /* Ajuste la taille selon tes besoins */
    width: auto;
    border-radius: 10px; /* Pour l'effet arrondi du logo CGI */
    margin-bottom: 20px;
    display: inline-block;
}

.experience-timeline {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 50px;
}

.exp-card {
    background-color: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    display: flex;
    padding: 30px;
    gap: 30px;
    transition: 0.3s;
}

/* MISE EN ÉVIDENCE DU POSTE ADMIN RÉSEAU */
.exp-card.highlight {
    border: 2px solid var(--accent-color);
    box-shadow: 0 0 20px rgba(0, 255, 195, 0.1);
    background: linear-gradient(145deg, #161b22 0%, #0a0c10 100%);
}

.exp-date {
    min-width: 180px;
    color: var(--accent-color);
    font-family: 'Courier New', monospace;
    font-weight: bold;
}

.exp-badge {
    display: inline-block;
    background: var(--accent-color);
    color: #000;
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.exp-content h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.task-list {
    margin-top: 15px;
    list-style-type: '>';
    padding-left: 20px;
    color: var(--text-gray);
}

.task-list li {
    margin-bottom: 5px;
    padding-left: 10px;
}

@media (max-width: 768px) {
    .exp-card { flex-direction: column; gap: 10px; }
}

/* --- STYLES VEILLE --- */
.sujet-veille {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 12px;
    border-left: 4px solid var(--accent-color);
    margin: 30px 0;
    display: flex;
    align-items: center;
    gap: 20px;
}

.sujet-veille h2 {
    font-size: 1.3rem;
    line-height: 1.4;
    color: var(--text-white);
}

.sujet-veille i {
    color: var(--accent-color);
    min-width: 40px;
}

.veille-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.veille-card {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.05);
}

.veille-card h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.content-box {
    background: rgba(255,255,255,0.02);
    padding: 30px;
    border-radius: 12px;
    border: 1px dashed var(--text-gray);
    min-height: 200px;
}

/* --- LOGO AGRANDI (Correction demandée) --- */
.company-logo {
    height: 100px; /* Augmenté par rapport à la capture précédente */
    width: auto;
    background: white; 
    padding: 10px 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    display: inline-block;
}

/* --- STYLES SPÉCIFIQUES PAGE CONTACT --- */

/* Mise en page en deux colonnes (Infos à gauche, Formulaire à droite) */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr; 
    gap: 40px;
    margin-top: 50px;
    padding-bottom: 50px;
}

/* Colonne de gauche : Cartes d'info */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-card {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: 0.3s ease;
}

.info-card:hover {
    border-color: var(--accent-color);
    transform: translateX(10px); /* Petit décalage au survol */
}

.info-card i {
    color: var(--accent-color);
    width: 28px;
    height: 28px;
}

.info-card h3 {
    font-size: 0.8rem;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 5px;
}

.info-card a, .info-card p {
    color: var(--text-white);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    word-break: break-all; /* Évite que l'email dépasse sur mobile */
}

/* Colonne de droite : Formulaire */
.contact-form-container {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    color: var(--accent-color);
    margin-bottom: 10px;
    font-size: 0.85rem;
    font-weight: 700;
    font-family: 'Courier New', monospace; /* Rappel du style SISR */
}

.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 15px;
    background: #050608; /* Fond plus sombre pour les champs */
    border: 1px solid #222;
    border-radius: 6px;
    color: white;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    transition: 0.3s;
}

.form-group input:focus, 
.form-group textarea:focus {
    border-color: var(--accent-color);
    outline: none;
    box-shadow: 0 0 10px rgba(0, 255, 195, 0.1);
}

/* Adaptation Mobile */
@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr; /* On passe sur une seule colonne */
    }
    
    .contact-form-container {
        padding: 25px;
    }
}

/* --- STYLES PROFIL --- */
.bio-box {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 12px;
    border-left: 4px solid var(--accent-color);
    margin-bottom: 50px;
    line-height: 1.8;
}

.bio-box p {
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: var(--text-white);
}

.skills-section {
    margin-bottom: 60px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.skill-card {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.05);
    transition: 0.3s;
}

.skill-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-5px);
}

.skill-card i {
    color: var(--accent-color);
    margin-bottom: 15px;
}

.skill-card h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.skill-card p {
    color: var(--text-gray);
    font-size: 0.9rem;
}

.future-goal {
    border-left: 2px dashed var(--accent-color) !important; /* Ligne pointillée pour le futur */
    background: rgba(0, 255, 195, 0.03);
    padding: 20px;
    border-radius: 0 12px 12px 0;
}

/* --- STYLES EXPÉRIENCES --- */
.experience-section {
    margin-top: 60px;
    padding-bottom: 50px;
}

.exp-card {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 25px;
    transition: 0.3s;
}

/* Mise en avant des postes actuels */
.exp-card.highlight {
    border-left: 4px solid var(--accent-color);
    background: rgba(0, 255, 195, 0.02);
}

.exp-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.exp-date {
    font-family: 'Courier New', monospace;
    color: var(--accent-color);
    font-weight: bold;
    font-size: 0.9rem;
}

.exp-company {
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--text-white);
}

.exp-content p {
    color: var(--text-white);
    line-height: 1.6;
    margin-bottom: 15px;
}

.task-list {
    list-style: none;
    padding-left: 0;
}

.task-list li {
    position: relative;
    padding-left: 20px;
    color: var(--text-gray);
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.task-list li::before {
    content: ">";
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

/* Style pour les jobs étudiants/CDD plus anciens */
.exp-card.secondary {
    opacity: 0.8;
    padding: 20px 30px;
}

.exp-simple {
    font-size: 0.9rem;
    color: var(--text-gray);
}

/* --- STYLE PROJETS À VENIR --- */
.coming-soon {
    opacity: 0.7; /* Légèrement transparent */
    border-style: dashed; /* Bordure en pointillés */
    filter: grayscale(0.5);
}

.projet-placeholder {
    height: 300px;
    background-color: #050608;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;
    color: var(--accent-color);
}

.projet-placeholder i {
    width: 50px;
    height: 50px;
}

.projet-placeholder span {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    letter-spacing: 2px;
}

.exp-badge.gray {
    background: #333;
    color: #888;
}

.tech-tag.gray {
    background: rgba(255, 255, 255, 0.05);
    color: #666;
    border-color: #333;
}

/* Animation de rotation pour l'icône loader */
.spin {
    animation: rotation 2s infinite linear;
}

@keyframes rotation {
    from { transform: rotate(0deg); }
    to { transform: rotate(359deg); }
}

/* Couleurs du texte */
.hero-content h1 {
    color: #ffffff; /* Reste du texte en blanc */
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.name-highlight {
    color: var(--accent-color); /* Ton bleu/turquoise actuel */
}

.description {
    color: #888888; /* Gris pour l'école IRIS */
    max-width: 800px;
    margin: 0 auto 40px;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

/* Container du robot */
.action-area {
    position: relative;
    display: inline-block;
}

#robot-container {
    position: absolute;
    top: -60px; /* Positionné juste au-dessus du bouton */
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    pointer-events: none; /* Pour ne pas gêner le clic sur le bouton */
}

/* --- SECTION ACCUEIL (HERO CENTRÉ ET PLUS HAUT) --- */
.hero-main {
    height: calc(100vh - 70px);
    display: flex;
    justify-content: center;
    align-items: center;
    padding-bottom: 10vh; /* Remonte légèrement le bloc vers le haut */
}

.hero-content {
    text-align: center;
    max-width: 1000px;
    padding: 0 20px;
}

.greeting {
    font-size: 2.5rem; /* Bonjour plus gros */
    color: var(--text-white);
    margin-bottom: 10px;
    font-weight: 300;
}

.main-title {
    font-size: 4rem; /* Titre principal imposant */
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
    margin-bottom: 25px;
}

.name-highlight {
    color: var(--accent-color); /* Wills W. en Bleu */
    font-style: italic;
}

.description {
    color: var(--text-gray); /* Gris pour l'école */
    font-size: 0.85rem;
    letter-spacing: 2px;
    line-height: 1.8;
    margin: 0 auto 50px;
    max-width: 850px;
    text-transform: uppercase;
}

/* --- ZONE ACTION (ROBOT + BOUTON) --- */
.action-area {
    position: relative;
    display: inline-block;
    margin-top: 20px;
}

#robot-container {
    position: absolute;
    top: -55px; /* Ajusté pour ne pas chevaucher le bouton */
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    pointer-events: none;
    z-index: 5;
}

.btn-visiter {
    position: relative;
    z-index: 10;
    display: inline-block;
    padding: 18px 50px;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    text-decoration: none;
    font-family: 'Courier New', monospace;
    font-weight: 700;
    letter-spacing: 3px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-visiter:hover {
    background-color: var(--accent-color);
    color: #000;
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(0, 255, 195, 0.5);
}

/* Mobile */
@media (max-width: 768px) {
    .main-title { font-size: 2.5rem; }
    .greeting { font-size: 1.8rem; }
}

.veille-section {
    margin-bottom: 80px;
}

.veille-section h2 {
    font-size: 2rem;
    margin-bottom: 30px;
}

.veille-section h2 span {
    color: var(--accent-color);
}

.veille-card {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    height: 100%;
}

.veille-card h3 {
    color: var(--accent-color);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.content-box {
    background: rgba(0, 255, 195, 0.02);
    padding: 30px;
    border-radius: 12px;
    border: 1px dashed var(--accent-color);
}

.task-list li strong {
    color: var(--text-white);
}

/* --- BOUTONS RÉSEAUX SOCIAUX NAVBAR --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 3%; /* Un peu plus serré pour laisser de la place */
}

.nav-socials {
    display: flex;
    gap: 15px;
    margin-left: 20px;
    padding-left: 20px;
    border-left: 1px solid #e5e7eb; /* Petite barre de séparation */
}

.social-icon {
    color: #4b5563; /* Gris par défaut */
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.social-icon i {
    width: 22px;
    height: 22px;
}

/* Effets au survol */
.social-icon.github:hover {
    color: #1a1a1a; /* Noir GitHub */
    transform: translateY(-2px);
}

.social-icon.linkedin:hover {
    color: #0077b5; /* Bleu LinkedIn */
    transform: translateY(-2px);
}

/* Adaptation Mobile */
@media (max-width: 1024px) {
    .nav-socials {
        display: none; /* On les cache sur petit écran pour éviter la surcharge */
    }
}
.nav-links a.active {
    color: #1a1a1a !important; 
    background-color: #f1f5f9 !important;
    border-bottom: 3px solid #00ffc3 !important; /* Force le Cyan SISR */
    font-weight: 800 !important;
    opacity: 1 !important;
}

/* --- SECTION CERTIFICATIONS --- */
.certifications-section {
    margin-top: 80px;
    margin-bottom: 50px;
}

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

.cert-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: flex-start;
    gap: 20px;
    transition: transform 0.3s ease;
}

.cert-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
}

.cert-card.highlight {
    border: 2px solid var(--accent-color);
    box-shadow: 0 0 20px rgba(0, 255, 195, 0.1);
}

.cert-icon i {
    width: 40px;
    height: 40px;
    color: var(--accent-color);
}

.cert-info h3 {
    font-size: 1.2rem;
    color: var(--text-white);
    margin-bottom: 8px;
}

.cert-info p {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-bottom: 12px;
    line-height: 1.5;
}

.cert-issuer {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- FOOTER --- */
.footer {
    background-color: #050608; /* Noir très profond */
    padding: 40px 20px;
    border-top: 1px solid rgba(0, 255, 195, 0.1); /* Ligne cyan très fine */
    text-align: center;
    margin-top: 60px;
}

.footer-logo {
    font-family: 'Courier New', monospace;
    font-size: 1.2rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 10px;
}

.footer-logo span {
    color: var(--accent-color);
}

.copyright {
    color: var(--text-gray);
    font-size: 0.9rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.copyright i {
    width: 16px;
    height: 16px;
    color: var(--accent-color);
}

.footer-tagline {
    color: rgba(139, 148, 158, 0.5); /* Gris très estompé */
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}