/**
 * ============================================================================
 * PORTFOLIO - FEUILLE DE STYLES PRINCIPALE
 * ============================================================================
 *
 * Ce fichier contient tous les styles CSS du portfolio.
 * Il est organise en sections pour faciliter la maintenance.
 *
 * SOMMAIRE :
 * 1. VARIABLES CSS (couleurs, tailles)
 * 2. RESET & BASE (styles de base pour tous les elements)
 * 3. NAVBAR (barre de navigation)
 * 4. HERO (section d'accueil avec le nom)
 * 5. ABOUT (section "A propos")
 * 6. EXPERIENCE (timeline des experiences)
 * 7. SKILLS (arbre de competences)
 * 8. PROJECTS (grille de projets)
 * 9. CONTACT (formulaire de contact)
 * 10. RESPONSIVE (adaptations mobile/tablette)
 *
 * COULEURS PRINCIPALES :
 * - Rouge/Rose : #d5434d / #ee7d84 (accent principal)
 * - Bleu : #60a5fa (langages)
 * - Vert : #4ade80 (bases de donnees)
 * - Violet : #a78bfa (outils DevOps)
 * - Orange : #f59e0b (CMS)
 * - Fond : #0a0a0a (noir profond)
 *
 * @author Edouard Mouret
 * @version 1.0.0
 * ============================================================================
 */


/* ============================================================================
 * 1. VARIABLES CSS
 * ============================================================================
 * Les variables CSS permettent de definir des valeurs reutilisables.
 * Si on veut changer une couleur partout, on la change ici une seule fois.
 */
:root {
  /* Hauteur de la barre de navigation (utilisee pour calculer les espaces) */
  --navbar-height: 80px;
}


/* ============================================================================
 * 2. RESET & BASE
 * ============================================================================
 * Ces styles "remettent a zero" les styles par defaut des navigateurs
 * pour avoir un comportement coherent partout.
 */

/* box-sizing: border-box = les paddings sont inclus dans la largeur */
* {
  box-sizing: border-box;
}

/* Defilement fluide quand on clique sur les liens d'ancrage (#about, etc.) */
html {
  scroll-behavior: smooth;
}

/* Styles de base du corps de page */
body {
  margin: 0;  /* Supprime la marge par defaut */
  /* Polices de caracteres : on utilise la police systeme pour de meilleures performances */
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background-color: #0a0a0a;  /* Fond noir profond */
}

/* =========================
   TERMINAL THEME (GLOBAL)
   ========================= */

body.terminal-theme{
  --term-bg: #0b0e0b;
  --term-panel: #0f1410;
  --term-border: rgba(98, 255, 159, 0.18);
  --term-text: rgba(215, 255, 225, 0.92);
  --term-muted: rgba(215, 255, 225, 0.55);
  --term-accent: #62ff9f;
  font-family: "SFMono-Regular", ui-monospace, "Cascadia Mono", "Fira Code", "Segoe UI Mono", Consolas, "Liberation Mono", Menlo, monospace;
  background-color: var(--term-bg);
  color: var(--term-text);
  letter-spacing: 0.2px;
}

body.terminal-theme::before{
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(98, 255, 159, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(98, 255, 159, 0.04) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}

body.terminal-theme .navbar,
body.terminal-theme .mobile-menu{
  background: rgba(10, 12, 10, 0.95);
  border-bottom: 1px solid var(--term-border);
}

body.terminal-theme .nav-links a,
body.terminal-theme .mobile-menu a,
body.terminal-theme .social a{
  color: var(--term-text);
}

body.terminal-theme .about,
body.terminal-theme .experience,
body.terminal-theme .projects,
body.terminal-theme .contact{
  background: transparent;
}

body.terminal-theme .hero{
  background-image: url("../img/background-hero.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

body.terminal-theme .hero::before{
  background: rgba(0, 0, 0, 0.45);
}

body.terminal-theme .hero-title,
body.terminal-theme .experience-title,
body.terminal-theme .skills-title,
body.terminal-theme .contact-title{
  color: var(--term-text);
  text-shadow: 0 0 10px rgba(98, 255, 159, 0.2);
}

body.terminal-theme .hero-subtitle,
body.terminal-theme .hero-tagline{
  color: var(--term-text);
}

body.terminal-theme .hero-stack{
  color: var(--term-muted);
}

body.terminal-theme .btn-primary,
body.terminal-theme .btn-about,
body.terminal-theme .form-submit,
body.terminal-theme .project-link--demo{
  background: linear-gradient(135deg, rgba(98, 255, 159, 0.2), rgba(98, 255, 159, 0.08));
  color: var(--term-text);
  border: 1px solid var(--term-border);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

body.terminal-theme .btn-outline,
body.terminal-theme .project-link--code{
  border: 1px solid var(--term-border);
  color: var(--term-text);
}

body.terminal-theme .xp-card,
body.terminal-theme .project-card-front,
body.terminal-theme .project-card-back,
body.terminal-theme .contact-form,
body.terminal-theme .contact-info-item{
  background: rgba(15, 20, 15, 0.7);
  border: 1px solid var(--term-border);
}

body.terminal-theme .xp-date,
body.terminal-theme .about-label,
body.terminal-theme .stat-number{
  color: var(--term-accent);
}

body.terminal-theme .filter-btn.active,
body.terminal-theme .category-btn.active,
body.terminal-theme .stack-btn.active{
  background: linear-gradient(135deg, rgba(98, 255, 159, 0.25), rgba(98, 255, 159, 0.1));
  color: var(--term-text);
  border-color: var(--term-border);
  box-shadow: 0 4px 14px rgba(98, 255, 159, 0.2);
}

body.terminal-theme .chip,
body.terminal-theme .project-stack{
  background: rgba(98, 255, 159, 0.12);
  border-color: rgba(98, 255, 159, 0.25);
  color: var(--term-accent);
}

body.terminal-theme .terminal-badge{
  border-color: var(--term-border);
  box-shadow: 0 0 20px rgba(98, 255, 159, 0.08);
}

/* Quand le menu mobile est ouvert, on empeche le scroll de la page */
body.menu-open {
  overflow: hidden;
}


/* ============================================================================
 * 3. NAVBAR (Barre de navigation)
 * ============================================================================
 * La navbar est fixee en haut de page et contient :
 * - Le logo (a gauche)
 * - Les liens de navigation (au centre)
 * - Les icones reseaux sociaux (a droite)
 * - Le bouton burger pour mobile (cache sur desktop)
 */

.navbar{
  background: #0b0b0b;
  height: var(--navbar-height);
}

.navbar-container{
  max-width: 1200px;
  margin: 0 auto;

  height: 100%;
  padding: 0 24px;

  display: flex;
  align-items: center;
}

.brand{
  width: 180px;
  display: flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo{
  width: 70px;
  height: auto;
  display: block;
}

.nav-links{
  flex: 1;
  display: flex;
  justify-content: center;
  gap: 44px;
}

.nav-links a{
  color: #fff;
  text-decoration: none;
  font-size: 18px;
  font-weight: 500;
  opacity: .9;
}

.nav-links a:hover{ opacity: 1; }

.social{
  width: 180px;
  display: flex;
  justify-content: flex-end;
  gap: 22px;
}

.social a{
  color: #fff;
  text-decoration: none;
  font-size: 18px;
  opacity: .9;
  display: flex;
  align-items: center;
}

.social a svg {
  width: 20px;
  height: 20px;
}

.social a:hover{ opacity: 1; }

/* =========================
   HERO
   ========================= */

.hero{
  /* hauteur pile écran - navbar (dvh > vh pour les barres navigateur) */
  height: calc(100dvh - var(--navbar-height));
  height: calc(100vh - var(--navbar-height)); /* fallback */
  min-height: 0;

  background-image: url("../img/background-hero.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  display: flex;
  align-items: center;
  justify-content: flex-start;

  /* ✅ espace responsive (remplace ton margin-left fixe) */
  padding: 0 clamp(16px, 5vw, 80px);

  position: relative;
}

/* (Optionnel mais recommandé) voile sombre pour lisibilité */
.hero::before{
  content:"";
  position:absolute;
  inset:0;
  background: rgba(0,0,0,.35);
}

.hero-content{
  position: relative; /* au-dessus du voile */
  max-width: 600px;
  color: white;
  text-align: left;
}

/* Badge d'intro */
.hero-badge{
  display: inline-block;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.5px;
  margin-bottom: 24px;
  animation: fadeInDown 0.8s ease-out;
}

/* Glitch effect for hero badge */
.hero-badge.terminal-badge{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: linear-gradient(180deg, rgba(18, 18, 18, 0.95), rgba(10, 10, 10, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  font-family: "SFMono-Regular", ui-monospace, "Cascadia Mono", "Fira Code", "Segoe UI Mono", Consolas, "Liberation Mono", Menlo, monospace;
  letter-spacing: 0.3px;
  text-transform: none;
  position: relative;
}

.terminal-dot{
  width: 9px;
  height: 9px;
  border-radius: 999px;
  display: inline-block;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.6);
}

.terminal-dot--red{ background: #ff5f57; }
.terminal-dot--yellow{ background: #febc2e; }
.terminal-dot--green{ background: #28c840; }

.terminal-title{
  font-size: 11px;
  color: rgba(255, 255, 255, 0.45);
  margin-left: 2px;
  margin-right: 6px;
}

.terminal-prompt{
  color: #78f59a;
  font-size: 12px;
  font-weight: 600;
}

.terminal-text{
  color: rgba(255, 255, 255, 0.9);
  font-size: 12px;
  letter-spacing: 0.8px;
  text-transform: lowercase;
  animation: terminal-type 2.4s steps(11, end) infinite;
  white-space: nowrap;
  overflow: hidden;
  display: inline-block;
  max-width: 0;
}

.terminal-caret{
  width: 8px;
  height: 14px;
  background: rgba(120, 245, 154, 0.9);
  box-shadow: 0 0 8px rgba(120, 245, 154, 0.6);
  animation: terminal-blink 1s step-end infinite;
  margin-left: 2px;
}

@keyframes terminal-type{
  0% { max-width: 0; }
  50% { max-width: 120px; }
  70% { max-width: 120px; }
  100% { max-width: 0; }
}

@keyframes terminal-blink{
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* Titre */
.hero-title{
  font-size: clamp(34px, 5vw, 56px); /* ✅ responsive */
  font-weight: 700;
  margin: 0 0 16px;
  line-height: 1.1;
  min-height: 0;
}

.typing-text{
  background: linear-gradient(135deg, #fff 0%, #e87c83 50%, #d5434d 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cursor{
  display: inline-block;
  color: #a8c0ff;
  font-weight: 300;
  animation: blink 1s infinite;
}

@keyframes blink{
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* Sous-titre */
.hero-subtitle{
  font-size: clamp(16px, 2vw, 20px); /* ✅ responsive */
  margin: 0 0 32px;
  overflow: hidden;
}


.hero-tagline{
  font-size: clamp(15px, 1.8vw, 18px);
  margin: -12px 0 14px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.6;
}

.hero-stack{
  font-size: 13px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin: 0 0 28px;
}.reveal-text{
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  animation: revealUp 0.8s ease-out 1.8s forwards;
  color: rgba(255, 255, 255, 0.85);
}

@keyframes revealUp{
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown{
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Boutons CTA */
.hero-cta{
  display: flex;
  gap: 16px;
  opacity: 0;
  animation: fadeInUp 0.8s ease-out 2.4s forwards;
}

@keyframes fadeInUp{
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.btn-primary{
  display: inline-block;
  padding: 14px 28px;
  background: linear-gradient(135deg, #ee7d84 0%, #d5434d 100%);
  color: white;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover{
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
}

.btn-outline{
  display: inline-block;
  padding: 14px 28px;
  background: transparent;
  color: white;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
}

.btn-outline:hover{
  border-color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.1);
}

/* =========================
   BURGER MENU
   ========================= */

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.burger-line {
  display: block;
  width: 100%;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.burger.active .burger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger.active .burger-line:nth-child(2) {
  opacity: 0;
}

.burger.active .burger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Menu mobile */
.mobile-menu {
  position: fixed;
  top: var(--navbar-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: #0b0b0b;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 1000;
}

.mobile-menu.open {
  transform: translateX(0);
}

.mobile-menu a {
  color: #fff;
  text-decoration: none;
  font-size: 24px;
  font-weight: 500;
  opacity: 0.9;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.mobile-menu a:hover {
  opacity: 1;
  color: #d5434d;
}

.mobile-social {
  display: flex;
  gap: 24px;
  margin-top: 24px;
}

.mobile-social a {
  font-size: 18px;
  display: flex;
  align-items: center;
}

.mobile-social a svg {
  width: 24px;
  height: 24px;
}

/* =========================
   MOBILE ADAPTATION
   ========================= */

@media (max-width: 900px) {
  .nav-links {
    gap: 24px;
  }

  .nav-links a {
    font-size: 16px;
  }

  .social {
    display: none;
  }

  .brand {
    width: auto;
  }
}

@media (max-width: 768px) {
  .navbar-container {
    padding: 0 16px;
  }

  .nav-links {
    display: none;
  }

  .social {
    display: none;
  }

  .burger {
    display: flex;
  }

  .hero {
    justify-content: center;
    padding: 0 20px;
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
    text-align: center;
  }

  .hero-cta {
    justify-content: center;
    flex-wrap: wrap;
  }

  .btn-primary,
  .btn-outline {
    padding: 12px 24px;
    font-size: 14px;
  }
}


/* =========================
   SECTION ABOUT
   ========================= */

.about {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: #0a0a0a;
}

/* Grille subtile en fond */
.about::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

/* Lueur d'accent */
.about::after {
  content: "";
  position: absolute;
  top: 20%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(213, 67, 77, 0.15) 0%, transparent 70%);
  pointer-events: none;
  filter: blur(60px);
}

.about-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 60px;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  align-items: center;
  gap: 180px;
  position: relative;
  z-index: 1;
}

/* Photo */
.about-photo {
  display: flex;
  justify-content: center;
}

.photo-wrapper {
  position: relative;
  width: 100%;
  max-width: 350px;
}

.photo-wrapper img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 20px;
  position: relative;
  z-index: 2;
}

.photo-decoration {
  position: absolute;
  inset: 20px -20px -20px 20px;
  border: 2px solid rgba(213, 67, 77, 0.4);
  border-radius: 20px;
  z-index: 1;
}

/* Texte */
.about-text {
  color: white;
}

.about-label {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #d5434d;
  margin-bottom: 16px;
}

.about-title {
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 700;
  margin: 0 0 8px;
  line-height: 1.2;
}

.about-role {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.6);
  margin: 0 0 24px;
  font-weight: 400;
}

.about-description {
  font-size: 16px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.8);
  margin: 0 0 32px;
}

/* Stats */
.about-stats {
  display: flex;
  gap: 40px;
  margin-bottom: 32px;
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 32px;
  font-weight: 700;
  color: #d5434d;
  line-height: 1;
}

.stat-label {
  display: block;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 8px;
}

/* Bouton */
.btn-about {
  display: inline-block;
  padding: 14px 32px;
  background: linear-gradient(135deg, #ee7d84 0%, #d5434d 100%);
  color: white;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 20px rgba(213, 67, 77, 0.3);
}

.btn-about:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(213, 67, 77, 0.4);
}

/* Responsive About */
@media (max-width: 900px) {
  .about {
    min-height: 100vh;
    padding: 40px 0;
  }

  .about-container {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .about-photo {
    order: -1;
  }

  .photo-wrapper {
    max-width: 280px;
    margin: 0 auto;
  }

  .photo-decoration {
    inset: 15px -15px -15px 15px;
  }

  .about-stats {
    justify-content: center;
    gap: 24px;
  }

  .stat-number {
    font-size: 26px;
  }

  .stat-label {
    font-size: 12px;
  }
}

/* =========================
   SECTION EXPERIENCE
   ========================= */

.experience {
  min-height: 100vh;
  padding: 100px 0;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #0a0a0a 0%, #0d1117 50%, #0a0a0a 100%);
}

/* Grille subtile en fond */
.experience::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
}

/* Lueur d'accent gauche */
.experience::after {
  content: "";
  position: absolute;
  top: 30%;
  left: -15%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(213, 67, 77, 0.1) 0%, transparent 70%);
  pointer-events: none;
  filter: blur(80px);
}

.experience-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
  z-index: 1;
}

.experience-header {
  text-align: center;
  margin-bottom: 80px;
}

.experience-title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  color: #fff;
  margin: 0 0 20px;
  position: relative;
  display: inline-block;
}

.experience-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #d5434d, #ee7d84);
  border-radius: 2px;
}

.experience-intro {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.7);
  max-width: 600px;
  margin: 30px auto 0;
  line-height: 1.7;
}

/* Filtres */
.xp-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
}

.filter-btn {
  padding: 10px 24px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 30px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}

.filter-btn.active {
  background: linear-gradient(135deg, #d5434d 0%, #ee7d84 100%);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 15px rgba(213, 67, 77, 0.4);
}

/* Boutons filtres par catégorie */
.filter-btn[data-filter="entreprise"].active {
  background: linear-gradient(135deg, #d5434d 0%, #ee7d84 100%);
  box-shadow: 0 4px 15px rgba(213, 67, 77, 0.4);
}

.filter-btn[data-filter="ecole"].active {
  background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.filter-btn[data-filter="annexe"].active {
  background: linear-gradient(135deg, #8b5cf6 0%, #a78bfa 100%);
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 40px;
}

/* Ligne verticale de la timeline */
.timeline::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, #d5434d 0%, rgba(213, 67, 77, 0.2) 100%);
}

/* Item d'expérience */
.xp {
  position: relative;
  margin-bottom: 60px;
  opacity: 0;
  transform: translateX(-30px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.xp.visible {
  opacity: 1;
  transform: translateX(0);
}

.xp.hidden {
  display: none;
}

.xp:last-child {
  margin-bottom: 0;
}

/* Point sur la timeline */
.xp::before {
  content: "";
  position: absolute;
  left: -46px;
  top: 0;
  width: 14px;
  height: 14px;
  background: #0b0b0b;
  border: 3px solid #d5434d;
  border-radius: 50%;
  transition: all 0.3s ease;
  z-index: 2;
}

.xp:hover::before {
  transform: scale(1.3);
  box-shadow: 0 0 20px rgba(213, 67, 77, 0.6);
}

/* Ligne de connexion animée */
.xp::after {
  content: "";
  position: absolute;
  left: -33px;
  top: 7px;
  width: 25px;
  height: 2px;
  background: linear-gradient(90deg, #d5434d, transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease 0.2s;
}

.xp.visible::after {
  transform: scaleX(1);
}

/* Meta info (date + tag) */
.xp-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.xp-date {
  font-size: 14px;
  font-weight: 600;
  color: #d5434d;
  letter-spacing: 0.5px;
}

.xp-tag {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Tag Entreprise - Rouge */
.tag-entreprise {
  background: rgba(213, 67, 77, 0.15);
  border: 1px solid rgba(213, 67, 77, 0.3);
  color: #ee7d84;
}

/* Tag Ecole - Bleu */
.tag-ecole {
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: #60a5fa;
}

/* Tag Activités annexes - Violet */
.tag-annexe {
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.3);
  color: #a78bfa;
}

/* Points timeline par catégorie */
.xp[data-category="entreprise"]::before {
  border-color: #d5434d;
}

.xp[data-category="ecole"]::before {
  border-color: #3b82f6;
}

.xp[data-category="annexe"]::before {
  border-color: #8b5cf6;
}

/* Hover points par catégorie */
.xp[data-category="entreprise"]:hover::before {
  box-shadow: 0 0 20px rgba(213, 67, 77, 0.6);
}

.xp[data-category="ecole"]:hover::before {
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.6);
}

.xp[data-category="annexe"]:hover::before {
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.6);
}

/* Ligne connexion par catégorie */
.xp[data-category="entreprise"]::after {
  background: linear-gradient(90deg, #d5434d, transparent);
}

.xp[data-category="ecole"]::after {
  background: linear-gradient(90deg, #3b82f6, transparent);
}

.xp[data-category="annexe"]::after {
  background: linear-gradient(90deg, #8b5cf6, transparent);
}

/* Carte hover par catégorie */
.xp[data-category="entreprise"] .xp-card:hover {
  border-color: rgba(213, 67, 77, 0.3);
}

.xp[data-category="entreprise"] .xp-card::before {
  background: linear-gradient(90deg, #d5434d, #ee7d84, transparent);
}

.xp[data-category="ecole"] .xp-card:hover {
  border-color: rgba(59, 130, 246, 0.3);
}

.xp[data-category="ecole"] .xp-card::before {
  background: linear-gradient(90deg, #3b82f6, #60a5fa, transparent);
}

.xp[data-category="annexe"] .xp-card:hover {
  border-color: rgba(139, 92, 246, 0.3);
}

.xp[data-category="annexe"] .xp-card::before {
  background: linear-gradient(90deg, #8b5cf6, #a78bfa, transparent);
}

/* Carte d'expérience */
.xp-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 28px 32px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.xp-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #d5434d, #ee7d84, transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
}

.xp-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(213, 67, 77, 0.3);
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.xp-card:hover::before {
  transform: scaleX(1);
}

.xp-role {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 8px;
}

.xp-company {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.5);
  margin: 0 0 20px;
  font-weight: 400;
}

.xp-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}

.xp-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 12px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.6;
}

.xp-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: #d5434d;
  font-weight: bold;
}

.xp-list li:last-child {
  margin-bottom: 0;
}

/* Skills chips */
.xp-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  padding: 6px 14px;
  background: rgba(213, 67, 77, 0.1);
  border: 1px solid rgba(213, 67, 77, 0.25);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  color: #ee7d84;
  transition: all 0.3s ease;
}

.chip:hover {
  background: rgba(213, 67, 77, 0.2);
  border-color: #d5434d;
  transform: translateY(-2px);
}

/* Carte avec citation */
.xp-card-with-quote {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.xp-card-content {
  display: flex;
  flex-direction: column;
}

.xp-quote {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px;
  background: rgba(139, 92, 246, 0.05);
  border-left: 3px solid #8b5cf6;
  border-radius: 0 12px 12px 0;
}

.xp-quote blockquote {
  margin: 0;
  padding: 0;
}

.xp-quote blockquote p {
  font-size: 15px;
  font-style: italic;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 20px;
}

.quote-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.quote-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(139, 92, 246, 0.4);
}

.quote-name {
  font-size: 14px;
  font-weight: 600;
  color: #a78bfa;
}

/* Responsive Experience */
@media (max-width: 768px) {
  .experience {
    padding: 60px 0;
  }

  .experience-container {
    padding: 0 20px;
  }

  .experience-header {
    margin-bottom: 50px;
  }

  .experience-intro {
    font-size: 16px;
  }

  .timeline {
    padding-left: 30px;
  }

  .xp::before {
    left: -36px;
    width: 12px;
    height: 12px;
  }

  .xp::after {
    left: -25px;
    width: 18px;
  }

  .xp-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .xp-card {
    padding: 20px 24px;
  }

  .xp-role {
    font-size: 18px;
  }

  .xp-company {
    font-size: 14px;
  }

  .xp-list li {
    font-size: 14px;
  }

  .chip {
    font-size: 12px;
    padding: 5px 12px;
  }

  .xp-card-with-quote {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .xp-quote {
    padding: 20px;
    border-left: none;
    border-top: 3px solid #8b5cf6;
    border-radius: 0 0 12px 12px;
  }

  .xp-quote blockquote p {
    font-size: 14px;
  }
}

/* =========================
   ANIMATIONS PARTICULES
   ========================= */

.particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.particle {
  position: absolute;
  border-radius: 50%;
  opacity: 0;
  animation: float-particle 20s infinite ease-in-out;
}

.particle--1 {
  width: 6px;
  height: 6px;
  background: rgba(213, 67, 77, 0.6);
  top: 20%;
  left: 10%;
  animation-delay: 0s;
  box-shadow: 0 0 20px rgba(213, 67, 77, 0.4);
}

.particle--2 {
  width: 4px;
  height: 4px;
  background: rgba(238, 125, 132, 0.5);
  top: 60%;
  left: 80%;
  animation-delay: -4s;
  box-shadow: 0 0 15px rgba(238, 125, 132, 0.3);
}

.particle--3 {
  width: 8px;
  height: 8px;
  background: rgba(213, 67, 77, 0.4);
  top: 80%;
  left: 20%;
  animation-delay: -8s;
  box-shadow: 0 0 25px rgba(213, 67, 77, 0.3);
}

.particle--4 {
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.3);
  top: 30%;
  left: 70%;
  animation-delay: -12s;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.particle--5 {
  width: 3px;
  height: 3px;
  background: rgba(238, 125, 132, 0.6);
  top: 70%;
  left: 50%;
  animation-delay: -16s;
  box-shadow: 0 0 12px rgba(238, 125, 132, 0.4);
}

.particle--6 {
  width: 7px;
  height: 7px;
  background: rgba(213, 67, 77, 0.3);
  top: 40%;
  left: 90%;
  animation-delay: -2s;
  box-shadow: 0 0 20px rgba(213, 67, 77, 0.2);
}

@keyframes float-particle {
  0%, 100% {
    opacity: 0;
    transform: translateY(0) translateX(0) scale(1);
  }
  10% {
    opacity: 1;
  }
  50% {
    transform: translateY(-100px) translateX(30px) scale(1.2);
  }
  90% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(-200px) translateX(-20px) scale(0.8);
  }
}

/* Orbes lumineux */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.5;
  animation: float-orb 15s infinite ease-in-out;
}

.orb--1 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(213, 67, 77, 0.3) 0%, transparent 70%);
  top: -100px;
  right: -100px;
  animation-delay: 0s;
}

.orb--2 {
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(238, 125, 132, 0.2) 0%, transparent 70%);
  bottom: 10%;
  left: -80px;
  animation-delay: -5s;
}

.orb--3 {
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(213, 67, 77, 0.15) 0%, transparent 70%);
  top: 50%;
  right: 20%;
  animation-delay: -10s;
}

@keyframes float-orb {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  25% {
    transform: translate(30px, -40px) scale(1.1);
  }
  50% {
    transform: translate(-20px, 20px) scale(0.95);
  }
  75% {
    transform: translate(40px, 30px) scale(1.05);
  }
}

/* Formes géométriques */
.geo-shapes {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.geo-shape {
  position: absolute;
  border: 1px solid rgba(213, 67, 77, 0.2);
  opacity: 0.6;
}

.geo-shape--triangle {
  width: 0;
  height: 0;
  border: none;
  border-left: 30px solid transparent;
  border-right: 30px solid transparent;
  border-bottom: 52px solid rgba(213, 67, 77, 0.1);
  top: 15%;
  right: 15%;
  animation: rotate-float 25s infinite linear;
}

.geo-shape--square {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(238, 125, 132, 0.2);
  top: 70%;
  left: 8%;
  animation: rotate-float 30s infinite linear reverse;
}

.geo-shape--circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 1px solid rgba(213, 67, 77, 0.15);
  bottom: 20%;
  right: 10%;
  animation: pulse-float 8s infinite ease-in-out;
}

.geo-shape--diamond {
  width: 35px;
  height: 35px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  top: 40%;
  left: 85%;
  transform: rotate(45deg);
  animation: rotate-float 20s infinite linear;
}

.geo-shape--ring {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 2px solid rgba(213, 67, 77, 0.1);
  top: 25%;
  left: 5%;
  animation: pulse-float 10s infinite ease-in-out;
}

@keyframes rotate-float {
  0% {
    transform: rotate(0deg) translateY(0);
  }
  50% {
    transform: rotate(180deg) translateY(-30px);
  }
  100% {
    transform: rotate(360deg) translateY(0);
  }
}

@keyframes pulse-float {
  0%, 100% {
    transform: scale(1) translateY(0);
    opacity: 0.4;
  }
  50% {
    transform: scale(1.15) translateY(-20px);
    opacity: 0.7;
  }
}

/* Lignes circuit */
.circuit-lines {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.circuit-line {
  position: absolute;
  background: linear-gradient(90deg, transparent, rgba(213, 67, 77, 0.3), transparent);
  height: 1px;
  animation: circuit-flow 8s infinite linear;
}

.circuit-line--1 {
  width: 200px;
  top: 30%;
  left: -200px;
  animation-delay: 0s;
}

.circuit-line--2 {
  width: 150px;
  top: 60%;
  left: -150px;
  animation-delay: -3s;
}

.circuit-line--3 {
  width: 180px;
  top: 80%;
  left: -180px;
  animation-delay: -6s;
}

.circuit-line--vertical {
  width: 1px;
  height: 150px;
  background: linear-gradient(180deg, transparent, rgba(213, 67, 77, 0.2), transparent);
  top: -150px;
  right: 20%;
  animation: circuit-flow-vertical 10s infinite linear;
}

@keyframes circuit-flow {
  0% {
    transform: translateX(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateX(calc(100vw + 400px));
    opacity: 0;
  }
}

@keyframes circuit-flow-vertical {
  0% {
    transform: translateY(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(calc(100vh + 300px));
    opacity: 0;
  }
}



/* =========================
   SECTION SKILLS
   ========================= */

.skills {
  min-height: 100vh;
  padding: 100px 0;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #0a0a0a 0%, #0d1117 50%, #0a0a0a 100%);
  color: #fff;
}

/* Grille subtile */
.skills::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 70px 70px;
  pointer-events: none;
}

/* Lueur d'accent */
.skills::after {
  content: "";
  position: absolute;
  bottom: 10%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.12) 0%, transparent 70%);
  pointer-events: none;
  filter: blur(80px);
}

.skills-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
  z-index: 1;
}

/* Header avec style cohérent */
.skills-header {
  text-align: center;
  margin-bottom: 60px;
}

.skills-title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  margin: 0 0 20px;
  position: relative;
  display: inline-block;
}

.skills-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #3b82f6, #60a5fa);
  border-radius: 2px;
}

.skills-intro {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.7);
  max-width: 600px;
  margin: 30px auto 0;
  line-height: 1.7;
}

.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

/* Blocs avec effet glassmorphism */
.skills-block {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 32px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.skills-block::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #3b82f6, #60a5fa, transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
}

.skills-block:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(59, 130, 246, 0.3);
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.skills-block:hover::before {
  transform: scaleX(1);
}

.skills-block-title {
  margin: 0 0 24px;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
}

.skills-category-title {
  margin: 24px 0 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #60a5fa;
}

.skills-category:first-child .skills-category-title {
  margin-top: 0;
}

/* Couleurs des titres par catégorie */
.skills-category:nth-child(1) .skills-category-title {
  color: #60a5fa; /* Langages - Bleu */
}

.skills-category:nth-child(2) .skills-category-title {
  color: #ee7d84; /* Frameworks - Rouge */
}

.skills-category:nth-child(3) .skills-category-title {
  color: #4ade80; /* Base de données - Vert */
}

.skills-category:nth-child(4) .skills-category-title {
  color: #a78bfa; /* DevOps - Violet */
}

.skills-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-item {
  padding: 8px 16px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #60a5fa;
  transition: all 0.3s ease;
}

.skill-item:hover {
  transform: translateY(-2px);
}

/* Langages - Bleu */
.skill-item--lang {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
}

.skill-item--lang:hover {
  background: rgba(59, 130, 246, 0.2);
  border-color: #3b82f6;
}

/* Frameworks - Rouge/Rose */
.skill-item--framework {
  background: rgba(213, 67, 77, 0.1);
  border-color: rgba(213, 67, 77, 0.2);
  color: #ee7d84;
}

.skill-item--framework:hover {
  background: rgba(213, 67, 77, 0.2);
  border-color: #d5434d;
}

/* Base de données - Vert */
.skill-item--data {
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.2);
  color: #4ade80;
}

.skill-item--data:hover {
  background: rgba(34, 197, 94, 0.2);
  border-color: #22c55e;
}

/* DevOps / Outils - Violet */
.skill-item--tool {
  background: rgba(139, 92, 246, 0.1);
  border-color: rgba(139, 92, 246, 0.2);
  color: #a78bfa;
}

.skill-item--tool:hover {
  background: rgba(139, 92, 246, 0.2);
  border-color: #8b5cf6;
}

/* Soft skills */
.skills-soft {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 16px;
}

.soft-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 20px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.soft-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #8b5cf6, #a78bfa);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.3s ease;
}

.soft-item:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(139, 92, 246, 0.3);
}

.soft-item:hover::before {
  transform: scaleY(1);
}

.soft-title {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
}

.soft-desc {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  font-size: 14px;
}

/* =========================
   VISUALISATION 3D SKILLS
   ========================= */

.skills-3d-wrapper {
  position: relative;
  width: 100%;
  height: 500px;
  margin-bottom: 60px;
  border-radius: 20px;
  overflow: hidden;
  background: radial-gradient(ellipse at center, rgba(20, 20, 35, 0.8) 0%, rgba(10, 10, 15, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

#skills-canvas {
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
}

#skills-canvas:active {
  cursor: grabbing;
}

/* Légende des catégories */
.skills-legend {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 24px;
  padding: 12px 24px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: all 0.3s ease;
}

.legend-item:hover {
  color: #fff;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  box-shadow: 0 0 10px currentColor;
}

.legend-label {
  font-weight: 500;
  white-space: nowrap;
}

/* Tooltip au survol */
.skill-tooltip {
  position: absolute;
  padding: 10px 18px;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -100%) translateY(-15px);
  transition: opacity 0.2s ease;
  white-space: nowrap;
  z-index: 100;
}

.skill-tooltip.visible {
  opacity: 1;
}

.skill-tooltip::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid rgba(0, 0, 0, 0.85);
}

/* =========================
   ARBRE DE COMPÉTENCES (SKILL TREE)
   ========================= */

.skill-tree {
  position: relative;
  width: 100%;
  height: 600px;
  margin-bottom: 60px;
  border-radius: 20px;
  overflow: hidden;
  background: radial-gradient(ellipse at center, rgba(20, 20, 35, 0.6) 0%, rgba(10, 10, 15, 0.9) 100%);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Lignes de connexion SVG */
.tree-connections {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.tree-branch {
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.tree-branch-sub {
  opacity: 0.4;
}

/* Noeud de base */
.tree-node {
  position: absolute;
  transform: translate(-50%, -50%);
  z-index: 10;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Noeud central CORE */
.tree-node--core {
  width: 90px;
  height: 90px;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 40px rgba(213, 67, 77, 0.3);
}

.tree-node--core .node-glow {
  position: absolute;
  inset: -10px;
  background: radial-gradient(circle, rgba(213, 67, 77, 0.3) 0%, transparent 70%);
  border-radius: 50%;
  animation: pulse-glow 3s infinite ease-in-out;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.1); }
}

.tree-node--core .node-icon {
  width: 32px;
  height: 32px;
  color: #ee7d84;
  margin-bottom: 4px;
}

.tree-node--core .node-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.tree-node--core .node-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.9);
}

.tree-node--core:hover {
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 0 60px rgba(213, 67, 77, 0.5);
}

/* Noeuds catégorie */
.tree-node--category {
  width: 100px;
  height: 40px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
}

.tree-node--category .node-glow {
  position: absolute;
  inset: -5px;
  border-radius: 25px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.tree-node--category .node-ring {
  position: absolute;
  inset: -3px;
  border-radius: 23px;
  border: 1px solid transparent;
  animation: rotate-ring 10s infinite linear;
}

@keyframes rotate-ring {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.tree-node--category .node-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.9);
}

.tree-node--category:hover {
  transform: translate(-50%, -50%) scale(1.1);
}

.tree-node--category:hover .node-glow {
  opacity: 1;
}

/* Couleurs par catégorie */
.tree-node--lang .node-glow { background: radial-gradient(circle, rgba(96, 165, 250, 0.3) 0%, transparent 70%); }
.tree-node--lang.tree-node--category { border-color: rgba(96, 165, 250, 0.3); }
.tree-node--lang.tree-node--category:hover { border-color: #60a5fa; box-shadow: 0 0 20px rgba(96, 165, 250, 0.4); }

.tree-node--framework .node-glow { background: radial-gradient(circle, rgba(238, 125, 132, 0.3) 0%, transparent 70%); }
.tree-node--framework.tree-node--category { border-color: rgba(238, 125, 132, 0.3); }
.tree-node--framework.tree-node--category:hover { border-color: #ee7d84; box-shadow: 0 0 20px rgba(238, 125, 132, 0.4); }

.tree-node--data .node-glow { background: radial-gradient(circle, rgba(74, 222, 128, 0.3) 0%, transparent 70%); }
.tree-node--data.tree-node--category { border-color: rgba(74, 222, 128, 0.3); }
.tree-node--data.tree-node--category:hover { border-color: #4ade80; box-shadow: 0 0 20px rgba(74, 222, 128, 0.4); }

.tree-node--tool .node-glow { background: radial-gradient(circle, rgba(167, 139, 250, 0.3) 0%, transparent 70%); }
.tree-node--tool.tree-node--category { border-color: rgba(167, 139, 250, 0.3); }
.tree-node--tool.tree-node--category:hover { border-color: #a78bfa; box-shadow: 0 0 20px rgba(167, 139, 250, 0.4); }

.tree-node--cms .node-glow { background: radial-gradient(circle, rgba(245, 158, 11, 0.3) 0%, transparent 70%); }
.tree-node--cms.tree-node--category { border-color: rgba(245, 158, 11, 0.3); }
.tree-node--cms.tree-node--category:hover { border-color: #f59e0b; box-shadow: 0 0 20px rgba(245, 158, 11, 0.4); }

/* Noeuds skill individuels */
.tree-node--skill {
  width: 50px;
  height: 50px;
}

.tree-node--skill .node-inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.3s ease;
}

.tree-node--skill:hover .node-inner {
  transform: scale(1.2);
}

/* Couleurs skills par catégorie */
.tree-node--skill.tree-node--lang .node-inner {
  background: rgba(96, 165, 250, 0.15);
  border-color: rgba(96, 165, 250, 0.3);
  color: #60a5fa;
}
.tree-node--skill.tree-node--lang:hover .node-inner {
  background: rgba(96, 165, 250, 0.25);
  border-color: #60a5fa;
  box-shadow: 0 0 20px rgba(96, 165, 250, 0.4);
}

.tree-node--skill.tree-node--framework .node-inner {
  background: rgba(238, 125, 132, 0.15);
  border-color: rgba(238, 125, 132, 0.3);
  color: #ee7d84;
}
.tree-node--skill.tree-node--framework:hover .node-inner {
  background: rgba(238, 125, 132, 0.25);
  border-color: #ee7d84;
  box-shadow: 0 0 20px rgba(238, 125, 132, 0.4);
}

.tree-node--skill.tree-node--data .node-inner {
  background: rgba(74, 222, 128, 0.15);
  border-color: rgba(74, 222, 128, 0.3);
  color: #4ade80;
}
.tree-node--skill.tree-node--data:hover .node-inner {
  background: rgba(74, 222, 128, 0.25);
  border-color: #4ade80;
  box-shadow: 0 0 20px rgba(74, 222, 128, 0.4);
}

.tree-node--skill.tree-node--tool .node-inner {
  background: rgba(167, 139, 250, 0.15);
  border-color: rgba(167, 139, 250, 0.3);
  color: #a78bfa;
}
.tree-node--skill.tree-node--tool:hover .node-inner {
  background: rgba(167, 139, 250, 0.25);
  border-color: #a78bfa;
  box-shadow: 0 0 20px rgba(167, 139, 250, 0.4);
}

.tree-node--skill.tree-node--cms .node-inner {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.3);
  color: #f59e0b;
}
.tree-node--skill.tree-node--cms:hover .node-inner {
  background: rgba(245, 158, 11, 0.25);
  border-color: #f59e0b;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.4);
}

/* Tooltip de l'arbre */
.skill-tree-tooltip {
  position: absolute;
  padding: 10px 18px;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -100%) translateY(-10px);
  transition: opacity 0.2s ease;
  white-space: nowrap;
  z-index: 100;
}

.skill-tree-tooltip.visible {
  opacity: 1;
}

/* Responsive Skill Tree */
@media (max-width: 900px) {
  .skill-tree {
    height: 450px;
    margin-bottom: 40px;
  }

  .tree-node--core {
    width: 70px;
    height: 70px;
  }

  .tree-node--core .node-icon {
    width: 24px;
    height: 24px;
  }

  .tree-node--core .node-label {
    font-size: 9px;
  }

  .tree-node--category {
    width: 80px;
    height: 32px;
  }

  .tree-node--category .node-label {
    font-size: 10px;
  }

  .tree-node--skill {
    width: 40px;
    height: 40px;
  }

  .tree-node--skill .node-inner {
    font-size: 9px;
  }
}

@media (max-width: 600px) {
  .skill-tree {
    height: 400px;
  }

  .tree-node--core {
    width: 60px;
    height: 60px;
  }

  .tree-node--category {
    width: 70px;
    height: 28px;
  }

  .tree-node--category .node-label {
    font-size: 9px;
  }

  .tree-node--skill {
    width: 35px;
    height: 35px;
  }

  .tree-node--skill .node-inner {
    font-size: 8px;
  }
}

/* =========================
   SOFT SKILLS SECTION
   ========================= */

.soft-skills-section {
  margin-top: 40px;
}

.soft-skills-title {
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 30px;
  position: relative;
  display: inline-block;
  width: 100%;
}

.soft-skills-title::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, #8b5cf6, #a78bfa);
  border-radius: 2px;
}

.soft-skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.soft-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.soft-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #8b5cf6, #a78bfa, transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.soft-card:hover {
  background: rgba(139, 92, 246, 0.08);
  border-color: rgba(139, 92, 246, 0.3);
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(139, 92, 246, 0.15);
}

.soft-card:hover::before {
  transform: scaleX(1);
}

.soft-card-icon {
  width: 50px;
  height: 50px;
  margin: 0 auto 16px;
  background: rgba(139, 92, 246, 0.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a78bfa;
  transition: all 0.3s ease;
}

.soft-card:hover .soft-card-icon {
  background: rgba(139, 92, 246, 0.25);
  transform: scale(1.1);
}

.soft-card-icon svg {
  width: 24px;
  height: 24px;
}

.soft-card h4 {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  margin: 0 0 10px;
}

.soft-card p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.5;
  margin: 0;
}

/* Responsive Skills 3D */
@media (max-width: 900px) {
  .skills {
    padding: 60px 0;
  }

  .skills-container {
    padding: 0 20px;
  }

  .skills-header {
    margin-bottom: 40px;
  }

  .skills-3d-wrapper {
    height: 400px;
    margin-bottom: 40px;
  }

  .skills-legend {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    padding: 10px 16px;
  }

  .legend-item {
    font-size: 11px;
  }

  .soft-skills-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .soft-card {
    padding: 20px;
  }
}

@media (max-width: 600px) {
  .skills-3d-wrapper {
    height: 350px;
  }

  .skills-legend {
    bottom: 10px;
    gap: 8px;
    padding: 8px 12px;
  }

  .legend-item {
    font-size: 10px;
    gap: 4px;
  }

  .legend-dot {
    width: 8px;
    height: 8px;
  }

  .soft-skills-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================
   SECTION PROJETS
   ========================= */

.projects {
  min-height: 100vh;
  padding: 100px 0;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #0a0a0a 0%, #0f0a14 50%, #0a0a0a 100%);
}

/* Grille subtile */
.projects::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

/* Lueur d'accent */
.projects::after {
  content: "";
  position: absolute;
  top: 20%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(213, 67, 77, 0.1) 0%, transparent 70%);
  pointer-events: none;
  filter: blur(80px);
}

.projects-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
  z-index: 1;
}

/* Header */
.projects-header {
  text-align: center;
  margin-bottom: 50px;
}

.projects-title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  color: #fff;
  margin: 0 0 20px;
  position: relative;
  display: inline-block;
}

.projects-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #d5434d, #ee7d84);
  border-radius: 2px;
}

.projects-intro {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.7);
  max-width: 600px;
  margin: 30px auto 0;
  line-height: 1.7;
}

/* Filtres par catégorie - Style hiérarchique */
.category-filter {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 30px;
}

/* Bouton catégorie principale */
.category-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.category-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(213, 67, 77, 0.2), rgba(238, 125, 132, 0.1));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.category-btn:hover {
  border-color: rgba(213, 67, 77, 0.4);
  color: #fff;
  transform: translateY(-2px);
}

.category-btn:hover::before {
  opacity: 1;
}

.category-btn.active {
  background: linear-gradient(135deg, #d5434d, #ee7d84);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 20px rgba(213, 67, 77, 0.4);
}

.category-btn.active::before {
  opacity: 0;
}

.category-icon {
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.category-icon svg {
  width: 100%;
  height: 100%;
}

.category-name {
  position: relative;
  z-index: 1;
}

.category-arrow {
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease;
}

.category-arrow svg {
  width: 100%;
  height: 100%;
}

/* Groupe catégorie avec sous-panel */
.category-group {
  position: relative;
}

.category-group .category-btn {
  border-radius: 12px;
}

.category-group.open .category-arrow {
  transform: rotate(180deg);
}

.category-group.open .category-btn {
  border-color: rgba(213, 67, 77, 0.4);
  background: rgba(213, 67, 77, 0.1);
  color: #fff;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

/* Panel des sous-catégories */
.subcategory-panel {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  min-width: 100%;
  background: rgba(15, 15, 20, 0.98);
  border: 1px solid rgba(213, 67, 77, 0.3);
  border-top: none;
  border-radius: 0 0 12px 12px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 100;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.category-group.open .subcategory-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Boutons stack dans le panel */
.subcategory-panel .stack-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  text-align: left;
}

.subcategory-panel .stack-btn:hover {
  background: rgba(213, 67, 77, 0.15);
  color: #fff;
  border-color: rgba(213, 67, 77, 0.3);
}

.subcategory-panel .stack-btn.active {
  background: linear-gradient(135deg, #d5434d, #ee7d84);
  color: #fff;
  border-color: transparent;
}

.stack-icon {
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stack-icon svg {
  width: 100%;
  height: 100%;
}

.stack-name {
  white-space: nowrap;
}

/* Compteur */
.projects-count {
  text-align: center;
  margin-bottom: 40px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
}

.count-number {
  font-weight: 700;
  color: #d5434d;
  font-size: 18px;
}

/* Grille projets */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  perspective: 1000px;
}

/* Carte projet - Effet flip 3D */
.project-card {
  height: 420px;
  -webkit-perspective: 1000px;
  perspective: 1000px;
  cursor: pointer;
}

.project-card.hidden {
  display: none;
}

.project-card.filtering {
  animation: cardFilter 0.5s ease;
}

@keyframes cardFilter {
  0% {
    opacity: 0;
    transform: scale(0.8) rotateY(-10deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotateY(0);
  }
}

.project-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  -webkit-transform-style: preserve-3d;
  transform-style: preserve-3d;
}

/* Flip au clic */
.project-card.flipped .project-card-inner {
  -webkit-transform: rotateY(180deg);
  transform: rotateY(180deg);
}

.project-card-front,
.project-card-back {
  position: absolute;
  inset: 0;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 20px;
  overflow: hidden;
}

/* Face avant */
.project-card-front {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
}

.project-card-front::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #d5434d, #ee7d84, transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
}

.project-card:hover .project-card-front::before {
  transform: scaleX(1);
}

/* Preview */
.project-preview {
  height: 180px;
  background: linear-gradient(135deg, rgba(213, 67, 77, 0.1), rgba(139, 92, 246, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.project-preview::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.5));
  z-index: 1;
}

.project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, filter 0.5s ease;
}

.project-card:hover .project-img {
  transform: scale(1.1);
  filter: brightness(0.8);
}

/* Info projet */
.project-info {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-name {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 10px;
}

.project-desc {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
  margin: 0 0 16px;
  flex: 1;
}

.project-stacks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.project-stack {
  padding: 4px 10px;
  background: rgba(213, 67, 77, 0.1);
  border: 1px solid rgba(213, 67, 77, 0.2);
  border-radius: 6px;
  font-size: 12px;
  color: #ee7d84;
  cursor: pointer;
  transition: all 0.3s ease;
}

.project-stack:hover {
  background: rgba(213, 67, 77, 0.2);
  border-color: #d5434d;
}

/* Hint */
.project-hint {
  position: absolute;
  bottom: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  transition: all 0.3s ease;
}

.project-hint svg {
  width: 14px;
  height: 14px;
  transition: transform 0.3s ease;
}

.project-card:hover .project-hint,
.project-card.flipped .project-hint {
  color: #d5434d;
}

.project-card:hover .project-hint svg,
.project-card.flipped .project-hint svg {
  transform: translate(3px, -3px);
}

/* Face arrière */
.project-card-back {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border: 1px solid rgba(213, 67, 77, 0.3);
  -webkit-transform: rotateY(180deg);
  transform: rotateY(180deg);
  padding: 30px;
  display: flex;
  flex-direction: column;
}

.project-back-title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.project-features {
  list-style: none;
  padding: 0;
  margin: 0 0 auto;
}

.project-features li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 12px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
}

.project-features li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: #d5434d;
}

/* Liens */
.project-links {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.project-link {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.project-link svg {
  width: 16px;
  height: 16px;
}

.project-link--demo {
  background: linear-gradient(135deg, #d5434d, #ee7d84);
  color: #fff;
}

.project-link--demo:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(213, 67, 77, 0.4);
}

.project-link--code {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
}

.project-link--code:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}

/* Message aucun projet */
.no-projects {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: rgba(255, 255, 255, 0.5);
}

.no-projects-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.5;
}

.no-projects-text {
  font-size: 18px;
}

/* Responsive */
@media (max-width: 1100px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .projects {
    padding: 60px 0;
  }

  .projects-container {
    padding: 0 20px;
  }

  /* ===== FILTRES MOBILE - DESIGN COMPACT ===== */
  .category-filter {
    flex-direction: column;
    gap: 0;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 12px;
    margin-bottom: 24px;
  }

  /* Bouton "Tous" en header */
  .category-filter > .category-btn[data-category="all"] {
    width: 100%;
    justify-content: center;
    padding: 14px 20px;
    margin-bottom: 12px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
  }

  /* Conteneur scrollable pour les catégories */
  .category-filter {
    position: relative;
  }

  /* Grille compacte des catégories */
  .category-group {
    width: 100%;
    margin-bottom: 8px;
  }

  .category-group:last-child {
    margin-bottom: 0;
  }

  .category-group .category-btn {
    width: 100%;
    padding: 12px 16px;
    font-size: 13px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
  }

  .category-group.open .category-btn {
    border-radius: 10px 10px 0 0;
    background: rgba(213, 67, 77, 0.15);
  }

  .category-icon {
    width: 16px;
    height: 16px;
  }

  .category-arrow {
    margin-left: auto;
    width: 14px;
    height: 14px;
  }

  /* Panel déroulant compact */
  .subcategory-panel {
    position: relative;
    border-radius: 0 0 10px 10px;
    margin-top: 0;
    padding: 6px;
    background: rgba(10, 10, 15, 0.95);
    border: 1px solid rgba(213, 67, 77, 0.2);
    border-top: none;
  }

  .subcategory-panel .stack-btn {
    padding: 10px 12px;
    font-size: 12px;
    border-radius: 6px;
  }

  .stack-icon {
    width: 14px;
    height: 14px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .project-card {
    height: 380px;
  }
}

/* ===== ALTERNATIVE: CHIPS SCROLLABLES HORIZONTAL ===== */
@media (max-width: 600px) {
  /* Container principal - carte glassmorphism */
  .category-filter {
    flex-direction: column;
    gap: 12px;
    background: linear-gradient(135deg, rgba(20, 20, 30, 0.9) 0%, rgba(15, 15, 25, 0.95) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 16px;
    margin-bottom: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  }

  /* Bouton "Tous" comme switch principal */
  .category-filter > .category-btn[data-category="all"] {
    width: 100%;
    justify-content: center;
    padding: 14px 24px;
    margin-bottom: 4px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 600;
    background: linear-gradient(135deg, rgba(213, 67, 77, 0.15), rgba(238, 125, 132, 0.1));
    border: 1px solid rgba(213, 67, 77, 0.2);
  }

  .category-filter > .category-btn[data-category="all"].active {
    background: linear-gradient(135deg, #d5434d, #ee7d84);
    border-color: transparent;
    box-shadow: 0 4px 20px rgba(213, 67, 77, 0.4);
  }

  /* Séparateur stylé */
  .category-filter::before {
    content: "ou filtrer par";
    display: block;
    text-align: center;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.3);
    margin: 8px 0;
    position: relative;
  }

  /* Scroll horizontal pour les catégories */
  .category-groups-container {
    display: flex;
    overflow-x: auto;
    gap: 8px;
    padding: 4px 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .category-groups-container::-webkit-scrollbar {
    display: none;
  }

  /* Catégories compactes en ligne */
  .category-group {
    flex-shrink: 0;
    margin-bottom: 0;
  }

  .category-group .category-btn {
    padding: 10px 14px;
    font-size: 12px;
    gap: 6px;
    border-radius: 12px;
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
  }

  .category-group .category-btn:hover,
  .category-group.open .category-btn {
    background: rgba(213, 67, 77, 0.12);
    border-color: rgba(213, 67, 77, 0.3);
  }

  .category-group.open .category-btn {
    border-radius: 12px 12px 0 0;
  }

  .category-icon {
    width: 14px;
    height: 14px;
  }

  .category-name {
    font-size: 12px;
  }

  .category-arrow {
    width: 12px;
    height: 12px;
    margin-left: 4px;
  }

  /* Panel dropdown compact */
  .subcategory-panel {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 140px;
    padding: 6px;
    background: rgba(15, 15, 20, 0.98);
    border: 1px solid rgba(213, 67, 77, 0.25);
    border-top: none;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  }

  .subcategory-panel .stack-btn {
    padding: 10px 12px;
    font-size: 12px;
    gap: 8px;
    border-radius: 8px;
  }

  .subcategory-panel .stack-btn.active {
    background: linear-gradient(135deg, #d5434d, #ee7d84);
  }

  .stack-icon {
    width: 14px;
    height: 14px;
  }

  /* Indicateur de scroll */
  .category-filter::after {
    content: "";
    position: absolute;
    right: 16px;
    top: 50%;
    width: 30px;
    height: 60px;
    background: linear-gradient(90deg, transparent, rgba(15, 15, 25, 0.9));
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  /* Compteur stylé */
  .projects-count {
    text-align: center;
    margin-bottom: 24px;
    padding: 10px 20px;
    background: rgba(213, 67, 77, 0.08);
    border-radius: 30px;
    display: inline-block;
    margin-left: auto;
    margin-right: auto;
    width: fit-content;
    border: 1px solid rgba(213, 67, 77, 0.15);
  }

  .projects-container .projects-count {
    display: flex;
    justify-content: center;
  }
}

/* ===== VERSION TRÈS PETIT ÉCRAN ===== */
@media (max-width: 380px) {
  .category-filter {
    padding: 12px;
    border-radius: 16px;
  }

  .category-filter > .category-btn[data-category="all"] {
    padding: 12px 20px;
    font-size: 13px;
  }

  .category-group .category-btn {
    padding: 8px 12px;
    font-size: 11px;
  }

  .category-icon {
    width: 12px;
    height: 12px;
  }

  .subcategory-panel .stack-btn {
    padding: 8px 10px;
    font-size: 11px;
  }
}

/* =========================
   SECTION CONTACT
   ========================= */

.contact {
  min-height: 100vh;
  padding: 100px 0;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #0a0a0a 0%, #0d0a10 50%, #0a0a0a 100%);
}

/* Grille de fond */
.contact::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.012) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
}

/* Lueur d'accent */
.contact::after {
  content: "";
  position: absolute;
  bottom: 10%;
  right: -5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(213, 67, 77, 0.08) 0%, transparent 70%);
  pointer-events: none;
  filter: blur(60px);
}

.contact-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
  z-index: 1;
}

/* Header */
.contact-header {
  text-align: center;
  margin-bottom: 60px;
}

.contact-title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  color: #fff;
  margin: 0 0 20px;
  position: relative;
  display: inline-block;
}

.contact-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #d5434d, #ee7d84);
  border-radius: 2px;
}

.contact-intro {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.7);
  max-width: 500px;
  margin: 30px auto 0;
  line-height: 1.7;
}

/* Contenu principal */
.contact-content {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  align-items: start;
}

/* Infos de contact */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  transition: all 0.3s ease;
}

.contact-info-item:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(213, 67, 77, 0.2);
  transform: translateX(5px);
}

.contact-info-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(213, 67, 77, 0.15), rgba(238, 125, 132, 0.1));
  border-radius: 12px;
  color: #ee7d84;
  flex-shrink: 0;
}

.contact-info-icon svg {
  width: 22px;
  height: 22px;
}

.contact-info-text h4 {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  margin: 0 0 6px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.contact-info-text p {
  font-size: 16px;
  color: #fff;
  margin: 0;
}

/* Réseaux sociaux */
.contact-social {
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.contact-social h4 {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  margin: 0 0 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.contact-social-links {
  display: flex;
  gap: 12px;
}

.contact-social-links a {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.3s ease;
}

.contact-social-links a:hover {
  background: rgba(213, 67, 77, 0.15);
  border-color: rgba(213, 67, 77, 0.4);
  color: #ee7d84;
  transform: translateY(-3px);
}

.contact-social-links svg {
  width: 20px;
  height: 20px;
}

/* Formulaire */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 40px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  backdrop-filter: blur(10px);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
}

.form-group input,
.form-group textarea {
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: #fff;
  font-size: 15px;
  font-family: inherit;
  transition: all 0.3s ease;
  outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.form-group input:focus,
.form-group textarea:focus {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(213, 67, 77, 0.5);
  box-shadow: 0 0 0 3px rgba(213, 67, 77, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 140px;
}

.form-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 36px;
  background: linear-gradient(135deg, #d5434d, #ee7d84);
  border: none;
  border-radius: 12px;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.form-submit::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #ee7d84, #d5434d);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.form-submit:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(213, 67, 77, 0.4);
}

.form-submit:hover::before {
  opacity: 1;
}

.form-submit span,
.form-submit svg {
  position: relative;
  z-index: 1;
}

.form-submit svg {
  width: 18px;
  height: 18px;
}

.form-submit:active {
  transform: translateY(-1px);
}

.form-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* Messages de succes et erreur */
.form-success,
.form-error {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 500;
  animation: slideIn 0.4s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.form-success {
  background: rgba(74, 222, 128, 0.15);
  border: 1px solid rgba(74, 222, 128, 0.3);
  color: #4ade80;
}

.form-success svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.form-error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

.form-error svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

/* Responsive Contact */
@media (max-width: 900px) {
  .contact {
    padding: 80px 0;
  }

  .contact-container {
    padding: 0 24px;
  }

  .contact-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-info {
    order: 2;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .contact-info-item {
    flex: 1 1 calc(50% - 12px);
    min-width: 200px;
  }

  .contact-form {
    order: 1;
    padding: 30px;
  }
}

@media (max-width: 600px) {
  .contact {
    padding: 60px 0;
  }

  .contact-container {
    padding: 0 20px;
  }

  .contact-header {
    margin-bottom: 40px;
  }

  .contact-intro {
    font-size: 16px;
  }

  .contact-content {
    gap: 30px;
  }

  .contact-info {
    flex-direction: column;
  }

  .contact-info-item {
    flex: 1 1 100%;
    padding: 20px;
  }

  .contact-form {
    padding: 24px;
    border-radius: 16px;
  }

  .form-group input,
  .form-group textarea {
    padding: 14px 16px;
    font-size: 14px;
  }

  .form-submit {
    width: 100%;
    padding: 16px 24px;
  }

  .contact-social-links {
    justify-content: center;
  }
}

