html, body {
    overflow-x: hidden; /* Empêche strictement de glisser de gauche à droite sur mobile */
    max-width: 100vw;
    background-color: #ffffff; /* Force le fond en blanc pur */
    color: var(--text-main); /* Force la couleur de ton texte */
}
/* =========================================
   1. VARIABLES & TYPOGRAPHIE GLOBALE
   ========================================= */
:root {
    color-scheme: light only; /* Le bouclier magique ! */
    /* Palette "Lumière & Émeraude" (Fonds clairs et textes foncés) */
    --bg-dark: #f8fafc;       /* Blanc cassé très doux pour le fond principal */
    --bg-card: #ffffff;       /* Blanc pur pour les cartes pour les faire ressortir */
    --bg-light: #f1f5f9;      /* Gris très clair pour les nuances */
    
    --text-main: #0f172a;     /* Gris très foncé (presque noir) pour les titres */
    --text-muted: #475569;    /* Gris moyen pour les textes et descriptions */
    
    /* Couleur d'accentuation "Émeraude" (On garde le même vert pro !) */
    --accent-primary: #10b981;       
    --accent-primary-hover: #059669; 
    --accent-secondary: #34d399;      
    
    --border-color: #e2e8f0;   /* Gris clair pour les bordures discrètes */
    
    /* Typographies modernes */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition: all 0.3s ease;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* =========================================
   2. TYPOGRAPHIE & SECTIONS CENTRÉES
   ========================================= */
h1, h2, h3, h4, h5 {
    font-family: var(--font-heading);
    color: var(--text-main);
    line-height: 1.3;
}

/* Texte mis en valeur (dégradé orange subtil) */
.highlight {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Structure globale des sections */
.section-container {
    padding: 100px 5%;
    width: 100%;
}

.bg-light {
    background-color: transparent;
}

/* Titres de section centrés avec ligne orange */
.section-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.header-line {
    height: 4px;
    width: 60px;
    background: var(--accent-primary);
    border-radius: 2px;
    margin-top: 10px;
}

/* =========================================
   3. NAVIGATION FLOTTANTE (GLASSMORPHISM)
   ========================================= */
.floating-nav {
    position: fixed;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 900px;
    height: 65px;
    background: rgba(255, 255, 255, 0.7); /* Fond blanc transparent */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(16, 185, 129, 0.3); /* Bordure émeraude douce */
    border-radius: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 25px;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05); /* Ombre très légère */
    transition: all 0.3s ease;
    animation: slideDownNav 1.2s cubic-bezier(0.25, 1, 0.3, 1) forwards;
}
@keyframes slideDownNav {
    0% { opacity: 0; transform: translate(-50%, -50px); } /* Démarre plus haut et invisible */
    100% { opacity: 1; transform: translate(-50%, 0); }   /* Se place à sa position normale */
}

/* Le seul et unique effet de survol pour le thème clair */
.floating-nav:hover {
    background: rgba(255, 255, 255, 0.9); /* Fond presque blanc */
    border-color: rgba(16, 185, 129, 0.6); /* Bordure émeraude plus visible */
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.1); /* Légère aura émeraude */
}

.nav-brand {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-main);
    text-decoration: none;
    letter-spacing: 1px;
}
.nav-brand .dot { color: var(--accent-primary); }

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
}

.nav-links a:hover {
    color: var(--text-main);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%) scale(0);
    width: 5px;
    height: 5px;
    background: var(--accent-primary);
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.nav-links a:hover::after {
    transform: translateX(-50%) scale(1);
}

/* Bouton Contact intégré dans la pilule */
.btn-nav-contact {
    background-color: var(--accent-primary);
    color: #fff !important;
    padding: 10px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-nav-contact:hover {
    background-color: var(--accent-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
}
/* Cache le bouton hamburger sur PC */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-main);
    cursor: pointer;
    transition: color 0.3s ease;
}

.mobile-menu-btn:hover {
    color: var(--accent-primary);
}

/* Ajustements pour mobiles et tablettes */
@media screen and (max-width: 900px) {
    .floating-nav {
        top: 15px;
        height: 60px; /* On réduit un peu la hauteur pour mobile */
        
        /* --- LES LIGNES MAGIQUES QUI CORRIGENT TON SOUCI --- */
        left: 15px !important;    /* On l'accroche à 15px du bord GAUCHE */
        right: 15px !important;   /* On l'accroche à 15px du bord DROIT */
        width: auto !important;   /* La largeur se calcule toute seule, dynamiquement ! */
        max-width: none !important; /* On enlève la limite des 900px */
        transform: translateX(0) !important; /* On annule le centrage complexe du PC */
        /* ---------------------------------------------------- */
        
        padding: 0 15px;
    }
    
    /* On masque le logo ("RP.") sur mobile pour gagner de la place (Optionnel) */
    .nav-brand {
        font-size: 1.2rem;
    }
    
    /* 1. On affiche le bouton hamburger */
    .mobile-menu-btn {
        display: block;
        margin-left: 10px;
    }
    
    /* 2. On masque le bouton Contact pour alléger la barre */
    .btn-nav-contact {
        display: none !important; 
    }
    
    /* 3. Transformation des liens en menu déroulant flottant */
    .nav-links {
        position: absolute;
        top: 70px; /* S'affiche juste en dessous de la pilule */
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border: 1px solid rgba(16, 185, 129, 0.2);
        border-radius: 20px;
        flex-direction: column; /* Les liens se mettent les uns sous les autres */
        gap: 0;
        padding: 0.5rem 0;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
        
        /* Caché par défaut avec un effet de glissement */
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px);
        transition: all 0.3s cubic-bezier(0.25, 1, 0.3, 1);
        z-index: 999;
    }

    /* 4. Quand le menu est actif (géré par JS) */
    .nav-links.active {
        display: flex !important; /* On force l'affichage */
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateY(0) !important;
    }

    /* 5. Style des liens sur mobile */
    .nav-links a {
        width: 100%;
        text-align: center;
        padding: 12px 0;
        font-size: 1rem;
        border-bottom: 1px solid rgba(16, 185, 129, 0.1);
        color: var(--text-main) !important;
    }

    .nav-links a:last-child {
        border-bottom: none;
    }
    
    /* Désactive le petit point sous le texte au survol sur mobile */
    .nav-links a::after {
        display: none;
    }
}

/* =========================================
   4. ACCUEIL (Layout 50/50 : Texte à gauche, Image à droite)
   ========================================= */
.hero-section-split {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr; 
    align-items: stretch; /* Étire l'image de tout en haut à tout en bas */
    width: 100%;
    padding-top: 0; /* LA CORRECTION : On supprime la marge noire du haut */
    background-color: transparent;
}

/* --- PARTIE GAUCHE (Texte) --- */
.hero-content-left {
    padding: 0 5% 0 15%; 
    display: flex;
    flex-direction: column;
    justify-content: center; /* Repositionne le texte parfaitement au centre verticalement */
    position: relative;
    z-index: 2;
    opacity: 0; /* On le cache au départ */
    animation: slideRightText 1.2s cubic-bezier(0.25, 1, 0.3, 1) forwards;
}
@keyframes slideRightText {
    0% { opacity: 0; transform: translateX(-80px); } /* Démarre décalé à gauche */
    100% { opacity: 1; transform: translateX(0); }   /* Reprend sa place normale */
}

.hero-title-large {
    font-size: clamp(3rem, 6vw, 6.5rem);
    font-weight: 800;
    letter-spacing: -2px;
    margin-bottom: 0.5rem;
    line-height: 1.1;
}

.hero-subtitle-colored {
    font-family: var(--font-body);
    font-size: clamp(1rem, 2vw, 1.4rem);
    color: var(--accent-primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    max-width: 500px;
}

.hero-actions-left {
    display: flex;
    gap: 1.5rem;
}

/* Styles des boutons */
.btn-primary, .btn-outline {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 14px 28px; font-family: var(--font-heading);
    font-weight: 600; font-size: 0.95rem; border-radius: 8px;
    text-decoration: none; transition: var(--transition); cursor: pointer;
}
.btn-primary { background: var(--accent-primary); color: #fff; border: none; }
.btn-primary:hover {
    background: var(--accent-primary-hover);
    transform: translateY(-2px); box-shadow: 0 10px 20px rgba(16, 185, 129, 0.2);
}
.btn-outline { background: transparent; color: var(--text-main); border: 1px solid var(--border-color); }
.btn-outline:hover { border-color: var(--text-main); background: rgba(255, 255, 255, 0.05); }

.btn-text {
    color: var(--accent-primary); text-decoration: none; font-weight: 600;
    display: inline-flex; align-items: center; gap: 8px; font-size: 0.9rem; transition: var(--transition);
}
.btn-text:hover { gap: 12px; }

/* --- PARTIE DROITE (Image) --- */
.hero-image-right {
    height: 100%;
    width: 100%;
    position: relative;
    overflow: hidden;
    opacity: 0; /* On le cache au départ */
    animation: slideLeftImage 1.2s cubic-bezier(0.25, 1, 0.3, 1) forwards;
}
@keyframes slideLeftImage {
    0% { opacity: 0; transform: translateX(80px); } /* Démarre décalé à droite */
    100% { opacity: 1; transform: translateX(0); }  /* Reprend sa place normale */
}
/* 1. Le fondu horizontal et le CADRAGE */
.hero-image-right img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    object-position: 70% center; /* Garde ton cadrage actuel */
    
    /* LA SOLUTION CSS : Améliorer la netteté perçue */
    /* Ces filtres contrastent légèrement et créent des micro-ombres sur les bords pour tricher */
    filter: contrast(1.08) brightness(1.01) drop-shadow(0 0 1px rgba(0,0,0,0.1));
    
    /* Force le navigateur à utiliser des algorithmes de rendu de haute qualité */
    image-rendering: high-quality;
    image-rendering: -webkit-optimize-contrast; /* Spécifique pour Safari/Chrome */

    /* Tes fondus restent parfaitement en place ici, aucun problème ! */
    -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.8) 15%, black 30%);
    mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.8) 15%, black 30%);
}

/* 2. NOUVEAU : Le fondu vertical (bas vers le haut) pour gommer la ligne ! */
.hero-image-right::after {
    content: '';
    position: absolute;
    bottom: -2px; /* -2px pour être sûr qu'aucun pixel de la ligne ne dépasse */
    left: 0;
    width: 100%;
    height: 25%; /* Le fondu prendra les 25% du bas de l'image */
    background: linear-gradient(to top, var(--bg-dark) 0%, transparent 100%);
    pointer-events: none; /* Laisse passer la souris au travers */
    z-index: 2;
}   

/* --- RESPONSIVE (Tablettes & Mobiles) --- */
@media screen and (max-width: 960px) {
    .hero-section-split {
        grid-template-columns: 1fr; /* Repasse en 1 seule colonne */
        text-align: center;
    }
    .hero-content-left {
        padding: 10% 5%;
        order: 2; /* Passe le texte SOUS l'image sur téléphone */
    }
    .hero-description {
        margin-left: auto; margin-right: auto;
    }
    .hero-actions-left {
        flex-direction: column; justify-content: center;
    }
    .hero-image-right {
        height: 40vh; /* Image plus petite sur téléphone */
        order: 1; /* Image au dessus */
    }
    .hero-image-right img {
        /* On adapte le fondu pour qu'il soit en haut et en bas sur mobile */
        -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 20%, black 80%, transparent 100%);
        mask-image: linear-gradient(to bottom, transparent 0%, black 20%, black 80%, transparent 100%);
    }
}
/* =========================================
   5. À PROPOS (Agrandi et plus aéré)
   ========================================= */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem; /* On augmente fortement l'espace au milieu */
    align-items: center;
    max-width: 1200px; /* La section prend plus de place à l'écran */
    margin: 0 auto;
}

/* Le texte : plus grand et aligné à gauche pour une lecture rapide */
.about-text p {
    font-size: 1.25rem; /* Police plus grande */
    line-height: 1.8; /* Lignes très aérées */
    color: var(--text-muted);
    margin-bottom: 2rem;
    text-align: left; 
}

.about-text strong { 
    color: var(--text-main); 
    font-weight: 600; 
}

.about-text strong.text-accent {
    color: var(--accent-primary);
}

/* Les cartes : plus épaisses avec de grosses icônes */
.about-info-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem; /* Plus d'espace entre les cartes */
}

.info-card-mini {
    background: var(--bg-card); 
    border: 1px solid rgba(16, 185, 129, 0.3) !important;
    padding: 1.5rem; /* Cartes plus épaisses */
    border-radius: 12px;
    display: grid; 
    grid-template-columns: auto 1fr; 
    align-items: center; 
    gap: 20px; /* Plus d'espace entre l'icône et le texte */
    transition: var(--transition);
}

/* Petit effet de soulèvement au survol pour rendre la grille interactive */
.info-card-mini:hover {
    border-color: var(--accent-primary) !important;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.info-card-mini i {
    font-size: 1.8rem; /* Icônes beaucoup plus grosses */
    color: var(--accent-primary);
    background: rgba(16, 185, 129, 0.1); 
    padding: 15px; 
    border-radius: 10px; 
    grid-row: 1 / 3;
}

.info-card-mini span { 
    font-size: 0.85rem; 
    color: var(--text-muted); 
    text-transform: uppercase; 
    letter-spacing: 1px;
}

.info-card-mini strong { 
    font-size: 1.1rem; /* Titres plus lisibles */
    color: var(--text-main); 
}

.status-online i { 
    color: #10b981; 
    background: rgba(16, 185, 129, 0.1); 
}

/* Ajustements pour mobiles */
@media screen and (max-width: 900px) {
    .about-grid { grid-template-columns: 1fr; gap: 3rem; }
    .about-info-cards { grid-template-columns: 1fr; }
    .about-text p { font-size: 1.1rem; }
}

/* =========================================
   6. PARCOURS & EXPÉRIENCES
   ========================================= */
.timeline-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

/* Titres colonnes centrés */
.column-title {
    font-size: 1.3rem; margin-bottom: 2rem;
    display: flex; justify-content: center; align-items: center; gap: 10px;
}
.column-title i { color: var(--accent-primary); }

.timeline-card {
    background: var(--bg-card); border: 1px solid var(--border-color);
    padding: 2rem; border-radius: 12px; margin-bottom: 1.5rem;
    transition: var(--transition);
}
/* Bordure orange au survol */
.timeline-card:hover { border-color: var(--accent-primary); transform: translateY(-3px); }

.timeline-date {
    display: block; font-size: 0.85rem; font-weight: 600;
    color: var(--accent-primary); margin-bottom: 0.5rem;
}
.timeline-card h4 {
    font-size: 1.1rem; margin-bottom: 0.3rem;
    display: flex; align-items: center; justify-content: space-between;
}
.tag {
    font-size: 0.7rem; padding: 2px 8px;
    background: rgba(255, 255, 255, 0.05); border-radius: 10px; font-weight: normal; color: var(--text-muted);
}
.timeline-place { display: block; font-size: 0.9rem; color: var(--text-muted); margin-bottom: 1rem; }
.timeline-card p { font-size: 0.95rem; color: var(--text-muted); }

/* =========================================
   7. COMPÉTENCES (STACK & BLOCS)
   ========================================= */
.skills-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
}

.tech-stack { display: flex; flex-direction: column; gap: 2rem; }
.tech-category h4 {
    font-size: 1.1rem; margin-bottom: 1rem; color: var(--text-muted);
    display: flex; align-items: center; gap: 10px;
}
.tech-category h4 i { color: var(--accent-primary); } /* Icônes oranges */

.tags-container { display: flex; flex-wrap: wrap; gap: 10px; }
.tech-tag {
    background: var(--bg-card); border: 1px solid var(--border-color);
    padding: 8px 16px; border-radius: 20px; font-size: 0.9rem; font-weight: 500;
}
/* Tag en surbrillance au survol */
.tech-tag:hover { border-color: var(--accent-primary); color: var(--accent-primary); }

.core-skills { display: flex; flex-direction: column; gap: 1.5rem; }
.skill-box {
    display: flex; gap: 20px; background: var(--bg-card);
    border: 1px solid var(--border-color); padding: 1.5rem; border-radius: 12px;
}
/* Icônes de compétences en orange clair */
.skill-icon {
    font-size: 1.5rem; color: var(--accent-primary);
    background: rgba(16, 185, 129, 0.1); width: 50px; height: 50px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 10px; flex-shrink: 0;
}
.skill-box h4 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.skill-box p { font-size: 0.95rem; color: var(--text-muted); }

/* =========================================
   8. PROJETS (GITHUB API)
   ========================================= */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.project-card {
    background: var(--bg-dark); border: 1px solid var(--border-color);
    border-radius: 12px; padding: 2rem; display: flex; flex-direction: column;
    transition: var(--transition);
}
/* Lueur orange subtile au survol */
.project-card:hover {
    border-color: var(--accent-primary); 
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.05);
    transform: translateY(-5px);
}
.project-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1.5rem; }
.project-title { display: flex; align-items: center; gap: 10px; }
.project-title i { font-size: 1.5rem; color: var(--accent-primary); } /* Icônes oranges */
.project-title h3 { font-size: 1.2rem; }
.project-status, .project-date { font-size: 0.75rem; color: var(--text-muted); font-family: var(--font-body); }
.project-body { flex-grow: 1; }
.project-techs { display: flex; gap: 8px; margin-bottom: 1.5rem; }
.project-techs span {
    font-size: 0.75rem; padding: 4px 10px; background: rgba(255, 255, 255, 0.05);
    border-radius: 4px; color: var(--text-muted);
}
.project-context { font-size: 0.9rem; color: var(--text-main); margin-bottom: 1rem; font-weight: 500; }
.project-desc { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; }

/* Cadena rose pour projet privé */
.fa-lock { color: #f472b6 !important; } 

.private-desc {
    font-style: italic; padding: 10px; background: rgba(255, 255, 255, 0.02);
    border-radius: 6px; border-left: 2px solid var(--border-color);
}
.project-footer { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--border-color); }

/* =========================================
   9. CONTACT & FORMULAIRE
   ========================================= */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-details h3 { font-size: 1.8rem; margin-bottom: 1rem; }
.contact-details > p { color: var(--text-muted); margin-bottom: 2rem; }
.contact-items { display: flex; flex-direction: column; gap: 1.5rem; }
.c-item { display: flex; align-items: center; gap: 15px; }
/* Bulles icônes en gris sombre */
.c-item i {
    font-size: 1.2rem; color: var(--accent-primary); background: var(--bg-card);
    width: 45px; height: 45px; display: flex; align-items: center;
    justify-content: center; border-radius: 50%; border: 1px solid var(--border-color);
}
.c-item strong { display: block; font-size: 0.9rem; color: var(--text-muted); }
.c-item span, .c-item a { font-size: 1rem; color: var(--text-main); text-decoration: none; font-weight: 500; }
.c-item a:hover { color: var(--accent-primary); }

/* 1. On détruit le "pavé" : le formulaire devient transparent */
.modern-form {
    background: transparent !important; 
    padding: 0 !important; 
    border: none !important;
}

/* 2. Style des labels (petits, élégants et espacés) */
.input-group { margin-bottom: 2rem; }
.input-group label { 
    display: block; 
    font-size: 0.8rem; 
    font-weight: 600; 
    color: var(--text-muted); 
    margin-bottom: 0.6rem; 
    margin-left: 15px; /* S'aligne avec l'arrondi du champ */
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 3. Les champs deviennent des tuiles flottantes ultra-clean */
.input-group input, .input-group textarea {
    width: 100%; 
    padding: 16px 20px; 
    background: var(--bg-card); /* Blanc pur */
    border: 1px solid rgba(16, 185, 129, 0.1); /* Bordure vert ultra-clair au repos */
    border-radius: 16px; /* Bords bien arrondis */
    color: var(--text-main); 
    font-family: var(--font-body); 
    font-size: 1rem; 
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03); /* Ombre douce pour l'effet flottant */
    transition: all 0.3s cubic-bezier(0.25, 1, 0.3, 1);
}

/* 4. L'effet magique au clic (Focus) */
.input-group input:focus, .input-group textarea:focus {
    outline: none; 
    border-color: var(--accent-primary); 
    box-shadow: 0 15px 35px rgba(16, 185, 129, 0.15); /* Lueur émeraude */
    transform: translateY(-4px); /* Le champ se soulève vers l'utilisateur */
}

/* 5. Ajustement de la case RGPD pour qu'elle s'intègre parfaitement */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 2rem;
    padding-left: 10px;
}
.checkbox-group input[type="checkbox"] {
    width: 18px; height: 18px; margin-top: 2px;
    accent-color: var(--accent-primary); 
    cursor: pointer;
    box-shadow: none; /* Pas d'ombre sur la checkbox */
    transform: none;
}
.checkbox-group label {
    font-size: 0.85rem; color: var(--text-muted); line-height: 1.6;
    font-weight: normal; cursor: pointer; text-transform: none; letter-spacing: normal;
    margin-left: 0;
}

/* 6. Le bouton d'envoi flottant */
.modern-form .btn-primary { 
    width: 100%; 
    justify-content: center; 
    padding: 16px;
    font-size: 1.1rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.2);
}

/* =========================================
   10. FOOTER
   ========================================= */
.modern-footer {
    text-align: center; 
    padding: 2rem; 
    border-top: 1px solid var(--border-color);
    color: var(--text-muted); 
    font-size: 0.9rem; 
    background: var(--bg-card); /* Utilise le blanc des cartes au lieu du noir */
}
/* =========================================
   11. RESPONSIVE / MOBILE
   ========================================= */
@media screen and (max-width: 900px) {
    .nav-links { display: none; } /* Menu hamburger nécessaire ici */
    
    .hero-content-center { text-align: center; }
    .hero-title-large { white-space: normal; font-size: 3rem; }
    .hero-actions-center { flex-direction: column; }
    .btn-primary, .btn-outline { width: 100%; justify-content: center; }
    
    .about-grid, .timeline-layout, .skills-grid, .contact-wrapper {
        grid-template-columns: 1fr; gap: 3rem;
    }
    .about-text { text-align: left; }
    .about-info-cards { grid-template-columns: 1fr; }
    
    .form-row { grid-template-columns: 1fr; gap: 0; }
}

/* On garde l'effet "surbrillance maximale" au survol */
.timeline-card:hover, 
.project-card:hover,
.tech-tag:hover {
    border-color: var(--accent-primary) !important; 
}
/* =========================================
   PAGE VEILLE (LAYOUT & CARTES RSS)
   ========================================= */
.veille-layout {
    display: grid;
    grid-template-columns: 1fr 350px; /* Colonne de gauche large, sidebar à droite */
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Design des cartes générées par le fichier PHP RSS */
.news-card {
    background: var(--bg-card);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 12px;
    display: flex;
    overflow: hidden;
    margin-bottom: 2rem;
    transition: var(--transition);
}

.news-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.news-image {
    width: 250px;
    min-width: 250px;
    background-size: cover;
    background-position: center;
    border-right: 1px solid var(--border-color);
}

.news-body {
    padding: 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-date {
    font-size: 0.8rem;
    color: var(--accent-primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.news-card h3 {
    font-size: 1.15rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.news-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* On réutilise le style btn-text pour le lien "Lire la suite" généré par le PHP */
.news-btn-action {
    color: var(--accent-primary); 
    text-decoration: none; 
    font-weight: 600;
    display: inline-flex; 
    align-items: center; 
    gap: 8px; 
    font-size: 0.9rem; 
    transition: var(--transition);
}

.news-btn-action:hover {
    gap: 12px;
}

/* Responsivité de la page veille */
@media screen and (max-width: 1000px) {
    .veille-layout {
        grid-template-columns: 1fr;
    }
    .news-card {
        flex-direction: column;
    }
    .news-image {
        width: 100%;
        height: 200px;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
}
/* =========================================
   CANVAS BACKGROUND (GLOBAL)
   ========================================= */
#bg-canvas, #veille-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0; 
    pointer-events: none;
    background-color: transparent;
}

/* On s'assure que TOUT le contenu du site passe bien AU-DESSUS de l'animation */
.hero-section-split, .section-container, .veille-layout, .section-header {
    position: relative;
    z-index: 2; 
}