/* ==========================================================================
   PORTFOLIO PERSONNEL — HOUMEY Raymond
   Fichier : css/style.css
   Technologies : CSS3 moderne, Flexbox, Grid, Variables CSS, Media Queries
   ========================================================================== */

/* ==========================================================================
   1. VARIABLES CSS (DESIGN SYSTEM & THÈME)
   ========================================================================== */
:root {
    /* Palette de couleurs principales */
    --primary-color: #3b82f6;        /* Bleu moderne et dynamique */
    --primary-hover: #2563eb;        /* Bleu plus soutenu au survol */
    --primary-light: #60a5fa;        /* Bleu clair d'accentuation */
    --accent-color: #06b6d4;         /* Cyan néon pour touches visuelles */
    --accent-glow: rgba(6, 182, 212, 0.25);

    /* Arrière-plans (Thème Dark moderne / Tech) */
    --bg-primary: #0f172a;          /* Arrière-plan global (bleu nuit très sombre) */
    --bg-secondary: #1e293b;        /* Arrière-plan des cartes et sections alternées */
    --bg-tertiary: #334155;         /* Arrière-plan des bordures et éléments neutres */
    --bg-card-hover: #273549;       /* Fond au survol des cartes */

    /* Couleurs des textes */
    --text-primary: #f8fafc;        /* Texte principal (blanc cassé pour le confort visuel) */
    --text-secondary: #94a3b8;      /* Texte secondaire (gris doux pour descriptions) */
    --text-muted: #64748b;          /* Texte atténué (détails, dates, mentions) */

    /* Couleurs de statut */
    --success-color: #10b981;       /* Vert succès pour validation de formulaire */
    --error-color: #ef4444;         /* Rouge erreur pour validation */

    /* Typographies (Google Fonts chargées dans index.html) */
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Tailles de polices de base */
    --fs-xs: 0.75rem;    /* 12px */
    --fs-sm: 0.875rem;   /* 14px */
    --fs-base: 1rem;     /* 16px */
    --fs-md: 1.125rem;   /* 18px */
    --fs-lg: 1.25rem;    /* 20px */
    --fs-xl: 1.5rem;     /* 24px */
    --fs-2xl: 2rem;      /* 32px */
    --fs-3xl: 2.5rem;    /* 40px */
    --fs-4xl: 3.25rem;   /* 52px */

    /* Espacements & Rayons de courbure (Border Radius) */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-full: 9999px;

    /* Ombres portées (Shadows) */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.4);
    --shadow-primary-glow: 0 0 25px rgba(59, 130, 246, 0.35);

    /* Transitions d'animation */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Largeur maximale du conteneur */
    --container-max-width: 1200px;
    --header-height: 80px;
}

/* ==========================================================================
   2. RESET CSS & BOX-SIZING
   ========================================================================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

/* ==========================================================================
   3. STYLES GÉNÉRAUX DU CORPS DU SITE (BASE)
   ========================================================================== */
body {
    font-family: var(--font-body);
    font-size: var(--fs-base);
    color: var(--text-primary);
    background-color: var(--bg-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typographie des titres */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    line-height: 1.25;
    font-weight: 700;
}

/* Liens génériques */
a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

/* Listes */
ul {
    list-style: none;
}

/* Images responsives */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Éléments de formulaire de base */
button, input, textarea {
    font-family: inherit;
    font-size: inherit;
    border: none;
    outline: none;
}

button {
    cursor: pointer;
    background: none;
}

/* ==========================================================================
   4. CONTENEUR GLOBAL (.container)
   ========================================================================== */
.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}



/* ==========================================================================
   5. EN-TÊTE ET NAVIGATION (HEADER & NAVBAR)
   ========================================================================== */
/* Header fixé en haut avec effet de flou d'arrière-plan (Glassmorphism) */
.header {
    position: sticky;
    top: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(15, 23, 42, 0.85); /* Fond semi-transparent */
    backdrop-filter: blur(12px);              /* Flou moderne sous la barre */
    -webkit-backdrop-filter: blur(12px);       /* Compatibilité Safari */
    border-bottom: 1px solid rgba(51, 65, 85, 0.5);
    z-index: 1000;                            /* Reste toujours au-dessus du contenu */
    display: flex;
    align-items: center;
    transition: background-color var(--transition-normal), box-shadow var(--transition-normal);
}

/* Barre de navigation interne */
.navbar {
    width: 100%;
    max-width: var(--container-max-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo du portfolio */
.logo {
    font-family: var(--font-heading);
    font-size: var(--fs-xl);
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.5px;
    display: inline-flex;
    align-items: center;
}

.logo-accent {
    color: var(--accent-color);
    text-shadow: 0 0 12px var(--accent-glow);
}

/* Menu de navigation sur ordinateur (disposition horizontale) */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;                                /* Espace régulier entre chaque lien */
}

.nav-item {
    position: relative;
}

/* Liens du menu */
.nav-link {
    font-size: var(--fs-sm);
    font-weight: 500;
    color: var(--text-secondary);
    padding: 0.5rem 0;
    position: relative;
    transition: color var(--transition-fast);
}

/* Changement de couleur au survol et pour la page active */
.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

/* Soulignement animé sous les liens (indicateur moderne) */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;                                 /* Invisible par défaut */
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: var(--radius-full);
    transition: width var(--transition-normal);
}

/* Déploiement de la barre au survol et sur le lien actif */
.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;                              /* S'étend sur toute la largeur du lien */
}

/* Bouton hamburger (caché sur écran d'ordinateur par défaut) */
.nav-toggle {
    display: none;                            /* Sera rendu visible en Media Query mobile */
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

/* Barres individuelles du hamburger */
.hamburger-bar {
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    border-radius: var(--radius-full);
    transition: transform var(--transition-normal), opacity var(--transition-normal);
}


/* ==========================================================================
   6. SECTION ACCUEIL (HERO SECTION) & BOUTONS
   ========================================================================== */

/* Structure commune des sections */
.section {
    padding: 5rem 0;
}

/* Section Hero (Accueil) */
.hero {
    min-height: calc(100vh - var(--header-height)); /* Occupe toute la hauteur sous le header */
    display: flex;
    align-items: center;
    position: relative;
    padding: 3rem 0;
}

/* Conteneur Hero : Flexbox pour aligner texte à gauche et image à droite */
.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3.5rem;
}

/* Colonne de texte */
.hero-content {
    flex: 1;
    max-width: 620px;
}

/* Badge de bienvenue */
.hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 1.15rem;
    background-color: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: var(--radius-full);
    color: var(--primary-light);
    font-size: var(--fs-sm);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

/* Titre principal H1 */
.hero-title {
    font-size: var(--fs-4xl);
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.15;
    margin-bottom: 0.75rem;
}

/* Effet de dégradé sur le prénom et nom */
.highlight {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Métier / Sous-titre */
.hero-subtitle {
    font-size: var(--fs-2xl);
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 1.25rem;
}

/* Texte de présentation */
.hero-description {
    font-size: var(--fs-md);
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 2.25rem;
    max-width: 560px;
}

/* Groupe de boutons d'action */
.hero-buttons {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

/* Styles des boutons de base */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.85rem;
    font-size: var(--fs-base);
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    text-align: center;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast), color var(--transition-fast);
}

/* Bouton primaire (Action forte) */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.35);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-hover) 0%, #1d4ed8 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.5);
    color: #ffffff;
}

/* Bouton secondaire (Action alternative) */
.btn-secondary {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--bg-tertiary);
}

.btn-secondary:hover {
    background-color: var(--bg-tertiary);
    border-color: var(--primary-light);
    transform: translateY(-3px);
    color: #ffffff;
}

/* Colonne image / Wrapper */
.hero-image-wrapper {
    flex: 0 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Cercle extérieur dégradé avec halo lumineux */
.image-border-glow {
    position: relative;
    padding: 6px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    box-shadow: 0 0 30px var(--accent-glow), 0 0 60px rgba(59, 130, 246, 0.25);
    display: inline-block;
}

/* Photo de profil ronde */
.profile-img {
    width: 320px;
    height: 320px;
    border-radius: var(--radius-full);
    object-fit: cover;
    display: block;
    border: 4px solid var(--bg-primary);
    transition: transform var(--transition-normal);
}

.image-border-glow:hover .profile-img {
    transform: scale(1.02);
}



/* ==========================================================================
   7. STYLES COMMUNS DES EN-TÊTES DE SECTION (SECTION HEADERS)
   ========================================================================== */

/* En-tête centré avec badge et titre */
.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

/* Petit badge/tag au-dessus du titre */
.section-tag {
    display: inline-block;
    font-size: var(--fs-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-color);
    background-color: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.25);
    padding: 0.35rem 0.9rem;
    border-radius: var(--radius-full);
    margin-bottom: 0.75rem;
}

/* Titre principal de chaque section */
.section-title {
    font-size: var(--fs-3xl);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

/* Barre de séparation dégradée sous le titre */
.section-divider {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: var(--radius-full);
    margin: 0 auto;
}

/* Description optionnelle d'introduction de section */
.section-description {
    font-size: var(--fs-base);
    color: var(--text-secondary);
    max-width: 620px;
    margin: 1.25rem auto 0 auto;
    line-height: 1.7;
}

/* ==========================================================================
   8. SECTION À PROPOS (ABOUT SECTION)
   ========================================================================== */

/* Arrière-plan et conteneur de la section */
.about {
    background-color: var(--bg-primary);
    position: relative;
}

/* Grille 2 colonnes : Texte à gauche, Cartes à droite */
.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3.5rem;
    align-items: start;
}

/* Colonne texte */
.about-text {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* Sous-titre de présentation */
.about-heading {
    font-size: var(--fs-xl);
    color: var(--primary-light);
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

/* Paragraphes de présentation */
.about-text p {
    color: var(--text-secondary);
    font-size: var(--fs-base);
    line-height: 1.8;
}

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

/* Colonne des cartes de points forts (Highlights) */
.about-highlights {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* Carte de point fort individuelle */
.highlight-card {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.5rem;
    background-color: var(--bg-secondary);
    border: 1px solid rgba(51, 65, 85, 0.6);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal), background-color var(--transition-normal);
}

/* Effet au survol : léger décalage latéral et éclat lumineux */
.highlight-card:hover {
    transform: translateX(8px);
    background-color: var(--bg-card-hover);
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: var(--shadow-md), 0 0 20px rgba(59, 130, 246, 0.15);
}

/* Boîte contenant l'icône / émoji */
.highlight-icon {
    font-size: 1.75rem;
    background-color: rgba(15, 23, 42, 0.6);
    padding: 0.75rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(51, 65, 85, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    min-height: 52px;
    flex-shrink: 0;
}

/* Textes de la carte */
.highlight-info h4 {
    font-size: var(--fs-md);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.35rem;
}

.highlight-info p {
    font-size: var(--fs-sm);
    color: var(--text-secondary);
    line-height: 1.5;
}



/* ==========================================================================
   9. SECTION COMPÉTENCES (SKILLS SECTION)
   ========================================================================== */

/* Arrière-plan alterné pour rythmer la page */
.skills {
    background-color: var(--bg-secondary);
    position: relative;
}

/* Grille responsive des compétences */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

/* Carte de compétence individuelle */
.skill-card {
    background-color: var(--bg-primary);
    border: 1px solid rgba(51, 65, 85, 0.7);
    border-radius: var(--radius-lg);
    padding: 2rem 1.75rem;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal), background-color var(--transition-normal);
}

/* Effet au survol : élévation de la carte et lueur */
.skill-card:hover {
    transform: translateY(-6px);
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: var(--shadow-md), 0 0 25px rgba(59, 130, 246, 0.15);
    background-color: var(--bg-card-hover);
}

/* Conteneur de l'icône de compétence */
.skill-icon-box {
    width: 56px;
    height: 56px;
    background-color: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    transition: transform var(--transition-fast), background-color var(--transition-fast);
}

/* Animation de l'icône au survol de la carte */
.skill-card:hover .skill-icon-box {
    transform: scale(1.1);
    background-color: rgba(59, 130, 246, 0.2);
}

.skill-icon {
    font-size: 1.75rem;
}

/* Titre de la compétence */
.skill-title {
    font-size: var(--fs-lg);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

/* Courte description de la compétence */
.skill-desc {
    font-size: var(--fs-sm);
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1; /* Permet d'aligner parfaitement les barres en bas */
}

/* Conteneur de la barre de niveau (piste de fond) */
.skill-level {
    width: 100%;
    height: 8px;
    background-color: var(--bg-tertiary);
    border-radius: var(--radius-full);
    overflow: hidden;
    position: relative;
    margin-bottom: 0.5rem;
}

/* Barre de progression remplie avec dégradé et lueur */
.skill-level-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: var(--radius-full);
    transition: width 1s ease-in-out;
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.4);
}

/* Affichage textuel du pourcentage (ex: 90%) */
.skill-percent {
    font-size: var(--fs-xs);
    font-weight: 700;
    color: var(--primary-light);
    align-self: flex-end;
    letter-spacing: 0.5px;
}



/* ==========================================================================
   10. SECTION PROJETS (PROJECTS SECTION) & VARIANTES DE BOUTONS
   ========================================================================== */

/* Arrière-plan de la section Projets */
.projects {
    background-color: var(--bg-primary);
    position: relative;
}

/* Grille des cartes de projets */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

/* Carte de projet (Article) */
.project-card {
    background-color: var(--bg-secondary);
    border: 1px solid rgba(51, 65, 85, 0.7);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}

/* Effet au survol de la carte projet */
.project-card:hover {
    transform: translateY(-8px);
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: var(--shadow-lg), 0 0 30px rgba(59, 130, 246, 0.18);
}

/* Conteneur de l'image/visuel du projet */
.project-image-container {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
    background-color: var(--bg-tertiary);
}

/* Visuel temporaire illustratif */
.project-placeholder-visual {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition-slow);
}

/* Zoom fluide sur le visuel au survol */
.project-card:hover .project-placeholder-visual {
    transform: scale(1.06);
}

/* Dégradés thématiques personnalisés pour chaque projet */
.project-bg-1 {
    background: radial-gradient(circle at top right, #fb923c 0%, #c2410c 50%, #0f172a 100%);
}

.project-bg-2 {
    background: radial-gradient(circle at top right, #34d399 0%, #059669 50%, #0f172a 100%);
}

.project-bg-3 {
    background: radial-gradient(circle at top right, #818cf8 0%, #4f46e5 50%, #0f172a 100%);
}

/* Icône illustrative du projet */
.project-visual-icon {
    font-size: 3.5rem;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
    transition: transform var(--transition-normal);
}

.project-card:hover .project-visual-icon {
    transform: scale(1.12) rotate(4deg);
}

/* Contenu textuel et liens du projet */
.project-content {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Permet d'uniformiser la hauteur de toutes les cartes */
}

/* Groupe de tags de technologies */
.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

/* Badge individuel de technologie */
.tag {
    font-size: var(--fs-xs);
    font-weight: 600;
    color: var(--accent-color);
    background-color: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.25);
    padding: 0.25rem 0.65rem;
    border-radius: var(--radius-sm);
    letter-spacing: 0.3px;
}

/* Titre du projet */
.project-title {
    font-size: var(--fs-lg);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    line-height: 1.35;
}

/* Description du projet */
.project-description {
    font-size: var(--fs-sm);
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 1.5rem;
    flex-grow: 1; /* Pousse les boutons toujours en bas de carte */
}

/* Groupe de boutons d'action du projet */
.project-links {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: auto;
    flex-wrap: wrap;
}

/* Déclinaison de bouton petit format (Small) */
.btn-sm {
    padding: 0.55rem 1.15rem;
    font-size: var(--fs-sm);
    border-radius: var(--radius-sm);
}

/* Bouton avec bordure contour (Outline) */
.btn-outline {
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid rgba(51, 65, 85, 0.9);
}

.btn-outline:hover {
    background-color: var(--bg-tertiary);
    border-color: var(--primary-light);
    color: #ffffff;
    transform: translateY(-2px);
}


/* ==========================================================================
   11. SECTION PARCOURS & FORMATION (TIMELINE SECTION)
   ========================================================================== */

/* Arrière-plan alterné pour détacher la section */
.timeline-section {
    background-color: var(--bg-secondary);
    position: relative;
}

/* Conteneur principal de la timeline */
.timeline {
    max-width: 820px;
    margin: 0 auto;
    position: relative;
    padding-left: 2.75rem; /* Espace réservé pour la ligne et les marqueurs */
}

/* Ligne verticale conductrice continue */
.timeline::before {
    content: '';
    position: absolute;
    left: 11px;
    top: 10px;
    bottom: 10px;
    width: 2px;
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--accent-color) 70%, rgba(6, 182, 212, 0.1) 100%);
    border-radius: var(--radius-full);
}

/* Bloc d'une étape de la timeline */
.timeline-item {
    position: relative;
    margin-bottom: 2.5rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

/* Marqueur rond lumineux sur la ligne verticale */
.timeline-marker {
    position: absolute;
    left: -2.75rem;
    top: 1.5rem;
    width: 24px;
    height: 24px;
    border-radius: var(--radius-full);
    background-color: var(--bg-primary);
    border: 3px solid var(--primary-color);
    box-shadow: 0 0 12px var(--accent-glow);
    z-index: 2;
    transition: transform var(--transition-normal), border-color var(--transition-normal), background-color var(--transition-normal);
}

/* Animation du marqueur au survol de l'étape */
.timeline-item:hover .timeline-marker {
    transform: scale(1.25);
    border-color: var(--accent-color);
    background-color: var(--primary-color);
}

/* Carte de contenu de l'étape */
.timeline-content {
    background-color: var(--bg-primary);
    border: 1px solid rgba(51, 65, 85, 0.7);
    border-radius: var(--radius-lg);
    padding: 1.75rem 2rem;
    box-shadow: var(--shadow-sm);
    position: relative;
    transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal), background-color var(--transition-normal);
}

/* Petite flèche directionnelle reliant la carte à la ligne */
.timeline-content::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 1.75rem;
    width: 14px;
    height: 14px;
    background-color: var(--bg-primary);
    border-left: 1px solid rgba(51, 65, 85, 0.7);
    border-bottom: 1px solid rgba(51, 65, 85, 0.7);
    transform: rotate(45deg);
    transition: background-color var(--transition-normal), border-color var(--transition-normal);
}

/* Effet au survol : glissement latéral doux et illumination */
.timeline-item:hover .timeline-content {
    transform: translateX(8px);
    border-color: rgba(59, 130, 246, 0.5);
    background-color: var(--bg-card-hover);
    box-shadow: var(--shadow-md), 0 0 25px rgba(59, 130, 246, 0.15);
}

.timeline-item:hover .timeline-content::before {
    background-color: var(--bg-card-hover);
    border-color: rgba(59, 130, 246, 0.5);
}

/* Badge de date / année */
.timeline-date {
    display: inline-block;
    font-size: var(--fs-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-color);
    background-color: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.25);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    margin-bottom: 0.75rem;
}

/* Titre de l'étape du parcours */
.timeline-title {
    font-size: var(--fs-lg);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.65rem;
}

/* Description détaillée de l'apprentissage */
.timeline-desc {
    font-size: var(--fs-sm);
    color: var(--text-secondary);
    line-height: 1.7;
}


/* ==========================================================================
   12. SECTION CONTACT & FORMULAIRE
   ========================================================================== */

/* --- Section Contact --- */
.contact {
    background-color: var(--bg-primary);
    position: relative;
}

/* --- Grille Contact --- */
.contact-wrapper {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 3.5rem;
    align-items: start;
}

/* --- Informations de Contact --- */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    background-color: var(--bg-secondary);
    padding: 2.25rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(51, 65, 85, 0.7);
    box-shadow: var(--shadow-sm);
}

.contact-info-title {
    font-size: var(--fs-xl);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.contact-info-text {
    font-size: var(--fs-sm);
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1rem 1.25rem;
    background-color: var(--bg-primary);
    border-radius: var(--radius-md);
    border: 1px solid rgba(51, 65, 85, 0.6);
    transition: transform var(--transition-normal), border-color var(--transition-normal);
}

.info-item:hover {
    transform: translateX(6px);
    border-color: rgba(59, 130, 246, 0.4);
}

.info-icon {
    font-size: 1.5rem;
    width: 44px;
    height: 44px;
    background-color: rgba(59, 130, 246, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-item h4 {
    font-size: var(--fs-sm);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.15rem;
}

.info-item p {
    font-size: var(--fs-xs);
    color: var(--text-secondary);
}

/* --- Formulaire --- */
.contact-form-container {
    background-color: var(--bg-secondary);
    padding: 2.25rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(51, 65, 85, 0.7);
    box-shadow: var(--shadow-sm);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: relative;
}

/* --- Labels et Champs --- */
.form-label {
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.required {
    color: var(--accent-color);
    font-weight: 700;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.85rem 1.15rem;
    background-color: var(--bg-primary);
    border: 1px solid rgba(51, 65, 85, 0.8);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: var(--fs-sm);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--text-muted);
    opacity: 0.8;
}

/* --- Focus des Champs --- */
.form-input:focus,
.form-textarea:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
    background-color: rgba(15, 23, 42, 0.95);
}

/* État en cas d'erreur de saisie (utilisé lors de la validation) */
.form-input.input-error,
.form-textarea.input-error {
    border-color: var(--error-color);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

/* --- Textarea --- */
.form-textarea {
    min-height: 130px;
    resize: vertical;
    line-height: 1.6;
}

/* --- Bouton d'envoi --- */
.btn-block {
    width: 100%;
    justify-content: center;
    padding: 0.95rem;
    font-size: var(--fs-base);
    margin-top: 0.5rem;
}

/* --- Message de Feedback et Messages d'erreur --- */
.error-message {
    font-size: var(--fs-xs);
    color: var(--error-color);
    min-height: 18px;
    display: block;
    font-weight: 500;
    transition: opacity var(--transition-fast);
}

.form-feedback {
    display: none;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.25rem;
    font-size: var(--fs-sm);
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
}

.form-feedback.success {
    display: block;
    background-color: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: var(--success-color);
}

.form-feedback.error {
    display: block;
    background-color: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: var(--error-color);
}


/* ==========================================================================
   13. FOOTER & BOUTON RETOUR EN HAUT
   ========================================================================== */

/* --- Footer --- */
.footer {
    background-color: #090e17;
    border-top: 1px solid rgba(51, 65, 85, 0.6);
    padding-top: 4rem;
    color: var(--text-secondary);
}

/* --- Contenu du Footer --- */
.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 3rem;
    padding-bottom: 3.5rem;
}

.footer-brand {
    max-width: 420px;
}

.footer-bio {
    margin-top: 1rem;
    font-size: var(--fs-sm);
    color: var(--text-secondary);
    line-height: 1.7;
}

.footer-heading {
    font-size: var(--fs-md);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
}

/* --- Liens sociaux --- */
.social-links {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.35rem;
    background-color: var(--bg-secondary);
    border: 1px solid rgba(51, 65, 85, 0.7);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: var(--fs-sm);
    font-weight: 500;
    transition: transform var(--transition-fast), border-color var(--transition-fast), background-color var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-fast);
}

.social-link:hover {
    background-color: var(--bg-tertiary);
    border-color: var(--primary-light);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.25);
}

/* --- Année du Footer --- */
.footer-bottom {
    border-top: 1px solid rgba(51, 65, 85, 0.4);
    padding: 1.75rem 0;
    text-align: center;
}

.copyright {
    font-size: var(--fs-xs);
    color: var(--text-muted);
    line-height: 1.6;
}

.copyright strong {
    color: var(--text-secondary);
}

#current-year {
    color: var(--accent-color);
    font-weight: 600;
}

/* --- Bouton Retour en haut --- */
.back-to-top,
#back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: #ffffff;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    box-shadow: var(--shadow-md), 0 0 15px rgba(59, 130, 246, 0.3);
    z-index: 999;
    cursor: pointer;
    transition: transform var(--transition-fast), background var(--transition-fast), box-shadow var(--transition-fast);
}

/* --- Hover et Focus du bouton --- */
#back-to-top:hover {
    transform: translateY(-4px);
    background: linear-gradient(135deg, var(--primary-hover), #1d4ed8);
    box-shadow: var(--shadow-lg), 0 0 25px rgba(59, 130, 246, 0.5);
}

#back-to-top:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 3px;
}


/* ==========================================================================
   14. RESPONSIVE DESIGN & MEDIA QUERIES
   ========================================================================== */

/* --------------------------------------------------------------------------
   A. TABLETTES & ÉCRANS MOYENS (max-width: 992px)
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
    /* Navigation */
    .nav-menu {
        gap: 1.25rem;
    }

    /* Hero */
    .hero-container {
        gap: 2.5rem;
    }

    .hero-title {
        font-size: var(--fs-3xl);
    }

    .profile-img {
        width: 260px;
        height: 260px;
    }

    /* À propos */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    /* Contact */
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

/* --------------------------------------------------------------------------
   B. TABLETTES EN PORTRAIT & SMARTPHONES (max-width: 768px)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    /* Réduction globale de l'espacement des sections */
    .section {
        padding: 4rem 0;
    }

    /* --- Navigation Mobile & Menu Hamburger --- */
    .nav-toggle {
        display: flex; /* Affiche le bouton hamburger */
    }

    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: -100%; /* Caché hors de l'écran par défaut à gauche */
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: rgba(15, 23, 42, 0.98);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2.25rem;
        transition: left var(--transition-normal);
        z-index: 1000;
        border-top: 1px solid rgba(51, 65, 85, 0.5);
    }

    /* Classe activée lors de l'ouverture du menu mobile */
    .nav-menu.show-menu {
        left: 0; /* Glisse pour occuper tout l'écran */
    }

    .nav-link {
        font-size: var(--fs-lg);
        font-weight: 600;
    }

    /* Animation des 3 barres du bouton hamburger en croix (X) */
    .nav-toggle.active .hamburger-bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .nav-toggle.active .hamburger-bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .hamburger-bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    /* --- Hero Section Mobile --- */
    .hero {
        min-height: auto;
        padding: 4rem 0 3rem 0;
    }

    .hero-container {
        flex-direction: column-reverse; /* Place la photo en haut et le texte en dessous */
        text-align: center;
        gap: 2.5rem;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-title {
        font-size: 2.25rem;
    }

    .hero-subtitle {
        justify-content: center;
        font-size: var(--fs-xl);
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
        font-size: var(--fs-base);
    }

    .hero-buttons {
        justify-content: center;
    }

    .profile-img {
        width: 220px;
        height: 220px;
    }

    /* --- Titres de sections --- */
    .section-title {
        font-size: var(--fs-2xl);
    }

    .section-header {
        margin-bottom: 2.5rem;
    }

    /* --- Timeline --- */
    .timeline {
        padding-left: 2.25rem;
    }

    .timeline::before {
        left: 9px;
    }

    .timeline-marker {
        left: -2.25rem;
        top: 1.25rem;
        width: 20px;
        height: 20px;
    }

    .timeline-content {
        padding: 1.25rem 1.5rem;
    }

    .timeline-content::before {
        top: 1.35rem;
    }

    /* --- Footer --- */
    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 2.5rem;
    }

    .social-links {
        justify-content: center;
    }
}

/* --------------------------------------------------------------------------
   C. PETITS SMARTPHONES (max-width: 480px)
   -------------------------------------------------------------------------- */
@media (max-width: 480px) {
    /* Marges intérieures adaptées */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .section {
        padding: 3rem 0;
    }

    /* Hero */
    .hero-title {
        font-size: 1.85rem;
    }

    .hero-subtitle {
        font-size: var(--fs-lg);
    }

    .hero-badge {
        font-size: var(--fs-xs);
        padding: 0.35rem 0.85rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .profile-img {
        width: 180px;
        height: 180px;
    }

    /* À propos */
    .about-heading {
        font-size: var(--fs-lg);
    }

    .highlight-card {
        padding: 1.25rem 1rem;
    }

    /* Compétences */
    .skills-grid {
        grid-template-columns: 1fr;
    }

    .skill-card {
        padding: 1.5rem 1.25rem;
    }

    /* Projets */
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project-content {
        padding: 1.25rem;
    }

    .project-links {
        flex-direction: column;
        width: 100%;
    }

    .project-links .btn {
        width: 100%;
    }

    /* Contact */
    .contact-info,
    .contact-form-container {
        padding: 1.5rem 1.25rem;
    }

    .form-input,
    .form-textarea {
        padding: 0.75rem 1rem;
    }

    /* Bouton retour en haut */
    #back-to-top {
        bottom: 1.25rem;
        right: 1.25rem;
        width: 42px;
        height: 42px;
        font-size: 1.1rem;
    }
}
/* ==========================================================================
   15. ANIMATION D'APPARITION DES SECTIONS
   ========================================================================== */

/* L'animation est activée uniquement lorsque JavaScript fonctionne */
.js-enabled section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity var(--transition-slow),
                transform var(--transition-slow);
}

/* Section devenue visible */
.js-enabled section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   16. EFFET DE SURVOL DES CARTES DE COMPÉTENCES
   ========================================================================== */

.skill-card {
    transition: transform var(--transition-normal),
                box-shadow var(--transition-normal);
}

.skill-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

/* ==========================================================================
   17. EFFET DE SURVOL DES CARTES DE PROJETS
   ========================================================================== */

.project-card {
    transition: transform var(--transition-normal),
                box-shadow var(--transition-normal);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

/* ==========================================================================
   18. EFFET DE SURVOL DU BOUTON RETOUR EN HAUT
   ========================================================================== */

#back-to-top {
    transition: transform var(--transition-normal),
                box-shadow var(--transition-normal);
}

#back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-primary-glow);
}

/* ==========================================================================
   19. EFFET DE SURVOL DES BOUTONS
   ========================================================================== */

.btn {
    transition: transform var(--transition-normal),
                box-shadow var(--transition-normal);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.btn:active {
    transform: translateY(0);
}

/* ==========================================================================
   20. EFFET DE SURVOL DES LIENS DE NAVIGATION
   ========================================================================== */

.nav-link {
    transition: color var(--transition-fast),
                transform var(--transition-fast);
}

.nav-link:hover {
    color: var(--primary-light);
    transform: translateY(-2px);
}

/* ==========================================================================
   21. EFFET DE SURVOL DES ICÔNES
   ========================================================================== */

.skill-card .skill-icon,
.project-card .project-icon {
    transition: transform var(--transition-normal);
}

.skill-card:hover .skill-icon,
.project-card:hover .project-icon {
    transform: scale(1.1);
}

/* ==========================================================================
   22. ANIMATION DES BARRES DE COMPÉTENCES
   ========================================================================== */

.skill-level {
    overflow: hidden;
}

.skill-level-bar {
    width: 0 !important;
    transition: width 1s ease;
}

.skill-level-bar.animate {
    width: var(--skill-level) !important;
}



















