﻿@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Montserrat:wght@400;500;600;700;800&display=swap');

:root {
  --primary-color: #00d4ff;
  --glass-bg: rgba(15, 15, 20, 0.85);
  --border-color: rgba(255, 255, 255, 0.1);
}

/* RESET & BASES */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  height: 100%;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
html::-webkit-scrollbar {
  display: none;
}
.three-container {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.webgl {
  width: 100%;
  height: 100%;
  display: block;
}
/* CUSTOM CURSOR */
* {
  cursor: none;
}
.cursor-dot {
  position: fixed;
  width: 8px;
  height: 8px;
  background: #00d4ff;
  border-radius: 50%;
  pointer-events: none;
  z-index: 999999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease, opacity 0.3s ease;
}
.cursor-ring {
  position: fixed;
  width: 36px;
  height: 36px;
  border: 2px solid rgba(0, 212, 255, 0.6);
  border-radius: 50%;
  pointer-events: none;
  z-index: 999998;
  transform: translate(-50%, -50%);
  transition: width 0.25s ease, height 0.25s ease, border-color 0.25s ease, opacity 0.3s ease;
}
body.cursor-hover .cursor-ring {
  width: 56px;
  height: 56px;
  border-color: #00d4ff;
  box-shadow: 0 0 12px rgba(0, 212, 255, 0.4);
}
body.cursor-hover .cursor-dot {
  transform: translate(-50%, -50%) scale(1.5);
}

body {
  background-color: #000000;
  color: #fff;
  font-family: 'Inter', 'Montserrat', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  overflow-x: hidden;
  margin: 0;
  position: relative;
  z-index: 1;
}
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  background: #000000;
  transition: background 2.5s ease-in-out;
  pointer-events: none;
}
body.site-revealed::before {
  background: radial-gradient(circle at center, #1b2735 0%, #090a0f 100%);
}

/* CANVAS */
canvas.webgl {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 1;
  outline: none;
  background: transparent;
}

/* NAVIGATION (PILL) */
nav.github-pill {
  position: fixed;
  top: 25px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(22, 27, 34, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 4px;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  z-index: 1000;
  width: max-content;
  max-width: 95vw;
}
.nav-marker {
  position: absolute;
  top: 4px; left: 4px;
  height: calc(100% - 8px);
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 100px;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  z-index: 1;
  opacity: 0;
}
nav.github-pill a.nav-link {
  text-decoration: none;
  color: #c9d1d9;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 100px;
  transition: color 0.3s ease;
  position: relative;
  z-index: 2;
  background: transparent;
  border: none;
  white-space: nowrap;
}
nav.github-pill a.nav-link:hover,
nav.github-pill a.nav-link.active {
  color: #ffffff;
}
.nav-icons {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 8px;
  padding-left: 12px;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  height: 24px;
  z-index: 2;
}
.nav-icons a {
  color: #c9d1d9;
  padding: 4px;
  display: flex;
  transition: 0.3s;
  text-decoration: none;
}
.nav-icons a:hover {
  color: #fff;
  transform: scale(1.1);
}

/* SECTIONS */
section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5rem 3%;
  position: relative;
  z-index: 10;
}
.container {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
}
.section-wide .container {
  max-width: 1300px;
}

/* HERO */
.hero {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero h1,
.hero h3 {
  cursor: pointer;
  white-space: nowrap;
}
.hero h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 5px;
  margin-bottom: 0.5rem;
  color: #ffffff;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}
.hero h3 {
  font-size: 4rem;
  color: #ffffff;
  margin-bottom: 2rem;
  margin-top: 0;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  letter-spacing: 2px;
  text-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}
.hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 12px 30px;
  border-radius: 50px;
  font-size: 1.2rem;
  color: #e0e0e0;
  font-weight: 500;
  letter-spacing: 1px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
  margin-bottom: 15px;
  margin-top: 1rem;
  transition: transform 0.3s ease, border-color 0.3s ease;
  position: relative;
  overflow: hidden;
}
.hero-badge::before {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.30) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-25deg);
  pointer-events: none;
}
.hero-badge:hover {
  transform: translateY(-3px);
  border-color: var(--primary-color);
  background: rgba(255, 255, 255, 0.15);
}
.hero-badge:hover::before {
  animation: shine 0.7s ease-in-out 1;
}
.hero-badge strong {
  color: var(--primary-color);
  font-weight: 700;
}
.hero-location {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.8);
}
.hero-location i {
  color: #ff4757;
}

/* CONTENT BOXES — glassmorphisme retiré */
.content-box,
.glass-bubble {
  background: transparent;
  padding: 0;
  border-radius: 0;
  border: none;
  box-shadow: none;
  width: 100%;
}
.glass-bubble-container {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  width: 100%;
  box-shadow: none;
  color: white;
}

/* SECTION LABEL + TITRES */
.section-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 0.75rem;
  display: block;
}
h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  margin-bottom: 2rem;
  color: #ffffff;
  letter-spacing: -0.02em;
  line-height: 1.1;
  font-family: 'Inter', sans-serif;
}
.content-box p {
  font-size: 1.05rem;
  line-height: 1.9;
  color: rgba(255,255,255,0.75);
  margin-bottom: 1.25rem;
}

/* Section À propos — centrée, typo soignée */
.apropos-box {
  text-align: center;
  max-width: 740px;
  margin: 0 auto;
}
.apropos-box p {
  font-size: 1.22rem;
  line-height: 2;
  color: rgba(255,255,255,0.72);
  letter-spacing: 0.01em;
  margin-bottom: 1.6rem;
}
.apropos-box p strong {
  color: #ffffff;
  font-weight: 600;
}

/* PARCOURS — timeline v2 */
#parcours {
  align-items: flex-start;
  padding-top: 6rem;
  padding-bottom: 6rem;
}
.parcours-container {
  width: 100%;
  text-align: center;
}

/* ── Interrupteur sliding Formation / Expérience ── */
.tl-switch {
  position: relative;
  display: inline-flex;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 9999px;
  padding: 5px;
  margin-bottom: 3rem;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}
.tl-switch-bg {
  position: absolute;
  background: #00d4ff;
  border-radius: 9999px;
  transition: left 0.38s cubic-bezier(0.4, 0, 0.2, 1),
              width 0.38s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 0;
  pointer-events: none;
}
.tl-switch-opt {
  position: relative;
  z-index: 1;
  padding: 0.6rem 1.75rem;
  border: none;
  background: transparent;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,0.4);
  border-radius: 9999px;
  cursor: pointer;
  transition: color 0.3s;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.tl-switch-opt.active {
  color: #000;
  font-weight: 600;
}

/* ── Timeline arbre centré alterné ── */
.timeline-v2 {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
  padding: 1.5rem 0 2rem;
  text-align: left;
}

/* Ligne verticale */
.timeline-v2::before {
  content: '';
  position: absolute;
  left: calc(50% - 0.5px);
  top: 0; bottom: 0;
  width: 1px;
  background: rgba(255,255,255,0.1);
}


/* Base de tous les items */
.tl-item {
  position: relative;
  width: calc(50% - 30px);
  margin-bottom: 2rem;
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 1.4rem 1.6rem;
  box-sizing: border-box;
  transition: background 0.3s, border-color 0.3s, transform 0.25s;
}
.tl-item:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(0,212,255,0.35);
  transform: translateY(-3px);
}

/* Accent couleur côté ligne centrale */
.tl-item:nth-child(odd) {
  border-right: 2px solid rgba(0,212,255,0.45);
}
.tl-item:nth-child(even) {
  border-left: 2px solid rgba(0,212,255,0.45);
}

/* Impairs → gauche */
.tl-item:nth-child(odd) {
  text-align: right;
  margin-right: calc(50% + 30px);
}
.tl-item:nth-child(odd)::after {
  content: '';
  position: absolute;
  right: -25px;
  top: 50%;
  transform: translateY(-50%);
  width: 11px; height: 11px;
  border-radius: 50%;
  background: #00d4ff;
  border: 2px solid #090a0f;
  z-index: 3;
}

/* Pairs → droite */
.tl-item:nth-child(even) {
  text-align: left;
  margin-left: calc(50% + 30px);
}
.tl-item:nth-child(even)::after {
  content: '';
  position: absolute;
  left: -25px;
  top: 50%;
  transform: translateY(-50%);
  width: 11px; height: 11px;
  border-radius: 50%;
  background: #00d4ff;
  border: 2px solid #090a0f;
  z-index: 3;
}

/* Item en cours — dot brillant */
.tl-item.current:nth-child(odd)::after  { right: -26px; width: 13px; height: 13px; box-shadow: 0 0 0 4px rgba(0,212,255,0.2); }
.tl-item.current:nth-child(even)::after { left: -26px;  width: 13px; height: 13px; box-shadow: 0 0 0 4px rgba(0,212,255,0.2); }

.tl-role    { font-size: 1.05rem; font-weight: 600; color: #fff; display: block; margin-bottom: .2rem; }
.tl-company { font-size: .92rem; color: #00d4ff; font-weight: 500; display: block; }
.tl-period  { font-size: .82rem; color: rgba(255,255,255,.38); display: block; margin-top: .25rem; }
.tl-mention { display: inline-flex; align-items: center; gap: .3rem; font-size: .73rem; color: #d4af37; margin-top: .3rem; }
.tl-desc    { font-size: .82rem; color: rgba(255,255,255,0.5); line-height: 1.65; display: block; margin-top: .5rem; }

@media (max-width: 640px) {
  .timeline-v2::before, .timeline-v2::after { display: none; }
  .tl-item:nth-child(odd),
  .tl-item:nth-child(even) {
    width: 100%; margin-left: 0; margin-right: 0; text-align: left;
  }
  .tl-item:nth-child(odd)::after,
  .tl-item:nth-child(even)::after { display: none; }
}

/* GRIDS COMPÉTENCES / OUTILS */
.custom-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-bottom: 50px;
}
.grid-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 140px;
  text-align: center;
  transition: transform 0.2s;
}
.grid-item:hover {
  transform: scale(1.1);
}
.grid-item i {
  font-size: 4.5rem;
  width: 70px;
  height: 70px;
  margin-bottom: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.tool-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  margin-bottom: 15px;
  transition: transform 0.2s, filter 0.2s;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4));
}
.grid-item:hover .tool-logo {
  transform: scale(1.12);
  filter: drop-shadow(0 4px 16px rgba(0,212,255,0.25));
}
.grid-item span {
  font-size: 0.95rem;
  color: #ddd;
  font-weight: 600;
  text-transform: uppercase;
}
.divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  width: 80%;
  margin: 20px auto 40px auto;
}
.title-dev,
.title-tools {
  color: var(--primary-color);
}
.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}
/* Ancienne skill-card — conservée pour compatibilité */
.skill-card {
  display: none;
}

/* ── Compétences techniques modernes ── */
.tech-grid-modern {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  margin-top: 0.5rem;
}
@media (max-width: 768px) {
  .tech-grid-modern { grid-template-columns: 1fr; }
}
.tech-cat {
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 3rem 2.5rem;
  transition: border-color 0.3s, background 0.3s;
}
.tech-cat:hover {
  background: rgba(255,255,255,0.09);
  border-color: rgba(0,212,255,0.25);
}
.tech-cat-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.tech-cat-header i {
  color: #00d4ff;
  font-size: 1.15rem;
  width: 1.5rem;
  text-align: center;
}
.tech-cat-header span {
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.01em;
  font-family: 'Inter', sans-serif;
}
.tech-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}
.tech-pill {
  display: inline-flex;
  padding: 0.42rem 1.1rem;
  background: rgba(0,212,255,0.07);
  border: 1px solid rgba(0,212,255,0.18);
  border-radius: 9999px;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.75);
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  cursor: default;
}
.tech-pill:hover {
  background: rgba(0,212,255,0.15);
  border-color: rgba(0,212,255,0.4);
  color: #fff;
}
.skill-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.30) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-25deg);
  pointer-events: none;
}
.skill-card:hover {
  border-color: var(--primary-color);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 30px rgba(0, 212, 255, 0.15);
}
.skill-card:hover::before {
  animation: shine 0.7s ease-in-out 1;
}
.skill-card h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
  min-height: 3rem;
}
.skill-card ul {
  list-style: none;
}
.skill-card li {
  padding: 0.3rem 0;
  color: #ffffff;
  font-size: 0.95rem;
}

/* SECTION PROJETS PLEIN ÉCRAN */
.section-projets-fullwidth {
  flex-direction: column;
  align-items: stretch;
}
.projets-header {
  text-align: center;
  margin-bottom: 2.5rem;
}
.projets-header h2 {
  color: #00d4ff;
  margin-bottom: 0.5rem;
}
.projets-header p {
  color: rgba(255,255,255,0.5);
  font-size: 0.95rem;
  margin: 0;
}

/* PROJETS – CARROUSEL 3D */
.carousel-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  width: 100%;
  position: relative;
}
.carousel-track-container {
  width: 70%;
  max-width: 800px;
  flex-shrink: 0;
  overflow: visible;
  position: relative;
  height: 320px;
}
.carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
}
.carousel-track .bubble-project {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 70%;
  min-height: 280px;
  transform: translate(-50%, -50%) scale(0.65);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  /* Pas de transition par défaut — la disparition est instantanée */
  transition: none;
  z-index: 0;
}
.carousel-track .bubble-project.carousel-active,
.carousel-track .bubble-project.carousel-prev,
.carousel-track .bubble-project.carousel-next {
  transition: transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              opacity 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              filter 0.55s;
}
.carousel-track .bubble-project.carousel-active {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 3;
}
.carousel-track .bubble-project.carousel-prev {
  transform: translate(-110%, -50%) scale(0.82);
  opacity: 0.4;
  visibility: visible;
  pointer-events: none;
  z-index: 2;
  filter: brightness(0.5);
}
.carousel-track .bubble-project.carousel-next {
  transform: translate(10%, -50%) scale(0.82);
  opacity: 0.4;
  visibility: visible;
  pointer-events: none;
  z-index: 2;
  filter: brightness(0.5);
}
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(0, 212, 255, 0.3);
  background: rgba(15, 15, 20, 0.9);
  color: #00d4ff;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
  backdrop-filter: blur(10px);
  z-index: 10;
}
.carousel-prev { left: 2%; }
.carousel-next { right: 2%; }
.carousel-arrow:hover {
  background: rgba(0, 212, 255, 0.15);
  border-color: rgba(0, 212, 255, 0.6);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}
/* Drag hint carousel */
.carousel-drag-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 1.25rem 0 0.5rem;
  pointer-events: none;
  user-select: none;
  transition: opacity 0.5s ease;
}
.drag-track {
  width: 60px;
  height: 2px;
  background: rgba(0,212,255,0.15);
  border-radius: 99px;
  position: relative;
  overflow: hidden;
}
.drag-cursor {
  position: absolute;
  top: -6px;
  left: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #00d4ff;
  box-shadow: 0 0 8px rgba(0,212,255,0.6);
  animation: drag-move 2.4s ease-in-out infinite;
}
@keyframes drag-move {
  0%   { left: 0%;   opacity: 0;   transform: scale(1); }
  10%  { opacity: 1; }
  35%  { transform: scale(0.85); }
  50%  { transform: scale(1); }
  88%  { opacity: 0.9; }
  100% { left: calc(100% - 14px); opacity: 0; }
}
.drag-label {
  font-size: 0.68rem;
  color: rgba(255,255,255,0.28);
  margin-top: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-family: 'Inter', sans-serif;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 1.5rem;
}
.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
}
.carousel-dot.active {
  background: #00d4ff;
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
  transform: scale(1.2);
}
.carousel-dot:hover {
  background: rgba(0, 212, 255, 0.5);
}
@media (max-width: 900px) {
  .carousel-track .bubble-project { width: 55%; }
  .carousel-track .bubble-project.carousel-prev { transform: translate(-115%, -50%) scale(0.75); }
  .carousel-track .bubble-project.carousel-next { transform: translate(15%, -50%) scale(0.75); }
}

.bubble-project {
  position: relative;
  width: 100%;
  min-height: 280px;
  border-radius: 20px;
  background: rgba(15, 15, 20, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: border-color 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), background 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  cursor: pointer;
  overflow: hidden;
}
.bubble-content {
  text-align: center;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 2.5rem 2rem;
}
.project-icon-main {
  font-size: 3.5rem;
  color: #fff;
  margin-bottom: 5px;
  transition: color 0.3s, transform 0.3s;
}
.project-title {
  font-family: 'Montserrat', sans-serif;
  color: #fff;
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0;
}
.project-tech {
  font-size: 0.85rem;
  color: #00d4ff;
  text-transform: uppercase;
  opacity: 0.8;
  letter-spacing: 1.5px;
}
@media (max-width: 768px) {
  .carousel-arrow { width: 40px; height: 40px; font-size: 1rem; }
  .carousel-wrapper { gap: 0.5rem; }
  .carousel-track .bubble-project { width: 70%; }
}
.bubble-glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 100%; height: 100%;
  border-radius: 50%;
  background: rgba(0, 212, 255, 0.4);
  filter: blur(40px);
  opacity: 0;
  transition: all 0.4s ease;
  z-index: 0;
}
.bubble-project::before {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.30) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-25deg);
  pointer-events: none;
  z-index: 3;
}
.carousel-track .bubble-project.carousel-active:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 40px rgba(0, 212, 255, 0.2);
  transform: translate(-50%, -50%) scale(1.03);
}
.carousel-track .bubble-project.carousel-active:hover::before {
  animation: shine 0.7s ease-in-out 1;
}
.carousel-track .bubble-project.carousel-active:hover .bubble-glow {
  opacity: 0.5;
  width: 150%; height: 150%;
}
.carousel-track .bubble-project.carousel-active:hover .project-icon-main {
  color: #00d4ff;
  transform: scale(1.1);
}

/* MODALES */
.modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 99999;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}
.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}
.modal-content {
  background: rgba(20, 20, 25, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 40px;
  width: 90%;
  max-width: 800px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  transform: scale(0.7);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
}
.modal-overlay.active .modal-content {
  transform: scale(1);
  opacity: 1;
}
.close-modal {
  position: absolute;
  top: 20px; right: 20px;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  transition: 0.3s;
}
.close-modal:hover {
  color: var(--primary-color);
  transform: rotate(90deg);
}
.modal-body h2 {
  margin-top: 0;
  font-size: 2.5rem;
}
.modal-tags {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}
.modal-tag {
  background: rgba(0, 212, 255, 0.15);
  color: var(--primary-color);
  padding: 5px 15px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
}
.btn-modal {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 25px;
  background: var(--primary-color);
  color: #000;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 700;
  transition: background 0.3s ease, transform 0.3s ease;
  position: relative;
  overflow: hidden;
}
.btn-modal::before {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.5) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-25deg);
  pointer-events: none;
}
.btn-modal:hover {
  background: #33e5ff;
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(0, 212, 255, 0.45);
}
.btn-modal:hover::before {
  animation: shine 0.7s ease-in-out 1;
}
@keyframes shine {
  0%   { left: -100%; }
  100% { left: 120%; }
}

/* DELAYED ENTRY */
.delayed-entry {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.2s ease-out, transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.delayed-entry.show {
  opacity: 1;
  transform: translateY(0);
}
/* La nav a déjà un translateX(-50%) — on doit le préserver */
nav.github-pill.delayed-entry {
  transform: translateX(-50%) translateY(40px);
}
nav.github-pill.delayed-entry.show {
  transform: translateX(-50%) translateY(0);
}

/* FOOTER */
footer {
  text-align: center;
  padding: 3rem 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
  margin-top: 4rem;
  position: relative;
  z-index: 10;
}
/* BOUTON CV */
.btn-cv {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 1.8rem;
  padding: 12px 28px;
  background: transparent;
  color: #00d4ff;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid rgba(0, 212, 255, 0.5);
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s, transform 0.3s;
  position: relative;
  overflow: hidden;
  letter-spacing: 0.5px;
}
.btn-cv::before {
  content: '';
  position: absolute;
  top: 0; left: -150%;
  width: 60%; height: 100%;
  background: linear-gradient(
    to right,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.3) 50%,
    rgba(255,255,255,0) 100%
  );
  transform: skewX(-25deg);
  pointer-events: none;
}
.btn-cv:hover {
  background: rgba(0, 212, 255, 0.1);
  border-color: #00d4ff;
  box-shadow: 0 0 22px rgba(0, 212, 255, 0.35);
  transform: translateY(-2px);
}
.btn-cv:hover::before {
  animation: shine 0.7s ease-in-out 1;
}

/* Pill statut RSS */
.veille-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1.25rem;
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 9999px;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.03em;
  font-family: 'Inter', sans-serif;
}

/* VEILLE TECHNOLOGIQUE */
.veille-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 0.5rem;
}
@media (max-width: 1024px) {
  .veille-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .veille-grid { grid-template-columns: 1fr; }
}
.veille-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 3px solid var(--accent, #00d4ff);
  border-radius: 14px;
  padding: 1.6rem 2.5rem;
  transition: background 0.3s, box-shadow 0.3s, transform 0.3s;
  position: relative;
  overflow: hidden;
}
.veille-card:hover {
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  transform: translateY(-4px);
}
.veille-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.7rem;
}
.veille-category {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.veille-date {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.35);
}
.veille-title {
  font-size: 1.08rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.5rem;
  line-height: 1.35;
}
.veille-source {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 0.7rem;
}
.veille-source i { margin-right: 4px; }
.veille-desc {
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media (max-width: 768px) {
  .veille-grid { grid-template-columns: 1fr; }
}

/* SCROLL PROGRESS BAR */
#scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, #00d4ff, #0088ff);
  z-index: 999999;
  box-shadow: 0 0 8px rgba(0, 212, 255, 0.8);
  pointer-events: none;
  border-radius: 0 2px 2px 0;
}

/* SCROLL-TO-TOP */
#scroll-top-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 44px;
  height: 44px;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.35);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #00d4ff;
  font-size: 1rem;
  cursor: pointer;
  z-index: 9999;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s, transform 0.3s, background 0.3s, box-shadow 0.3s;
  backdrop-filter: blur(8px);
}
#scroll-top-btn.visible {
  opacity: 1;
  transform: translateY(0);
}
#scroll-top-btn:hover {
  background: rgba(0, 212, 255, 0.25);
  box-shadow: 0 0 16px rgba(0, 212, 255, 0.5);
}

/* NAV GLOW ACTIVE */
@keyframes nav-glow {
  0%, 100% { text-shadow: 0 0 6px rgba(0, 212, 255, 0.5); }
  50%       { text-shadow: 0 0 14px rgba(0, 212, 255, 1), 0 0 6px rgba(0, 212, 255, 0.6); }
}
nav.github-pill a.nav-link.active {
  animation: nav-glow 2s ease-in-out infinite;
}



.contact-info-links { display: flex; flex-direction: column; }
.cil-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  text-decoration: none;
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  transition: color 0.2s, padding-left 0.2s;
}
.cil-row:hover { color: #fff; padding-left: 0.5rem; }
.cil-row > i:first-child { color: #00d4ff; font-size: 1rem; width: 1.25rem; text-align: center; flex-shrink: 0; }
.cil-row > span { flex: 1; }
.cil-arrow { font-size: 0.65rem; color: rgba(255,255,255,0.2); opacity: 0; transition: opacity 0.2s, transform 0.2s; }
.cil-row:hover .cil-arrow { opacity: 1; transform: translateX(3px); }
/* CONTACT — layout deux colonnes */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
  align-items: start;
}
@media (max-width: 768px) { .contact-layout { grid-template-columns: 1fr; gap: 2rem; } }
.contact-info-text { font-size: 1rem; color: rgba(255,255,255,0.55); line-height: 1.8; margin-bottom: 2rem; }
.contact-info-links { display: flex; flex-direction: column; gap: 0.85rem; }
.contact-info-btn { display: flex; align-items: center; gap: 1rem; padding: 0.9rem 1.25rem; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; text-decoration: none; transition: background 0.2s, border-color 0.2s, transform 0.2s; }
.contact-info-btn:hover { background: rgba(0,212,255,0.06); border-color: rgba(0,212,255,0.25); transform: translateX(4px); }
.contact-info-btn > i { font-size: 1.2rem; color: #00d4ff; width: 1.5rem; text-align: center; flex-shrink: 0; }
.cib-label { display: block; font-size: 0.7rem; color: rgba(255,255,255,0.35); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; font-family: 'Inter', sans-serif; }
.cib-value { display: block; font-size: 0.85rem; color: rgba(255,255,255,0.8); font-weight: 500; font-family: 'Inter', sans-serif; }
.contact-form-card { background: rgba(255,255,255,0.06); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid rgba(255,255,255,0.1); border-radius: 20px; padding: 2rem 2.25rem; }
/* FORMULAIRE DE CONTACT */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  max-width: 680px;
}
.contact-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}
.contact-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.contact-field label {
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(0, 212, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
.contact-field input,
.contact-field textarea {
  background: rgba(10, 15, 25, 0.75);
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  color: #fff;
  font-family: 'Inter', 'Montserrat', sans-serif;
  font-size: 0.95rem;
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
  outline: none;
  resize: vertical;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.contact-field input::placeholder,
.contact-field textarea::placeholder {
  color: rgba(255, 255, 255, 0.25);
}
.contact-field input:focus,
.contact-field textarea:focus {
  border-color: rgba(0, 212, 255, 0.6);
  background: rgba(0, 212, 255, 0.05);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.08);
}
.contact-submit {
  align-self: flex-start;
  margin-top: 0.4rem;
}
.contact-alert {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.2rem;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  max-width: 680px;
}
.contact-alert--success {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #4ade80;
}
.contact-alert--error {
  background: rgba(255, 71, 87, 0.1);
  border: 1px solid rgba(255, 71, 87, 0.35);
  color: #ff6b6b;
}
.contact-links {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}
.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.1rem;
  border: 1px solid rgba(0, 212, 255, 0.25);
  border-radius: 99px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.25s, color 0.25s, background 0.25s;
}
.contact-link:hover {
  border-color: rgba(0, 212, 255, 0.6);
  color: #00d4ff;
  background: rgba(0, 212, 255, 0.06);
}
@media (max-width: 600px) {
  .contact-row { grid-template-columns: 1fr; }
}

/* EN COURS D'APPRENTISSAGE — rings SVG */
.skill-rings { display: grid; grid-template-columns: repeat(5, 1fr); gap: 2.5rem 1rem; margin-top: 1rem; }
@media (max-width: 900px) { .skill-rings { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .skill-rings { grid-template-columns: repeat(2, 1fr); } }
.ring-item { display: flex; flex-direction: column; align-items: center; gap: 0.6rem; }
.ring-item:hover .ring-wrap { transform: scale(1.07); }
.ring-wrap { position: relative; width: 200px; height: 200px; transition: transform 0.3s ease; }
.ring-svg { width: 100%; height: 100%; transform: rotate(0deg); }
.ring-bg   { fill: none; stroke: rgba(255,255,255,0.07); stroke-width: 2.8; }
.ring-fill { fill: none; stroke-width: 2.8; stroke-linecap: round; stroke-dasharray: 0, 100; transition: stroke-dasharray 1.4s cubic-bezier(0.4,0,0.2,1); }
.ring-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.2rem; }
.ring-icon     { font-size: 1.9rem; line-height: 1; }
.ring-icon-img { width: 2rem; height: 2rem; object-fit: contain; display: block; }
.ring-pct      { font-size: 0.82rem; font-weight: 700; color: rgba(255,255,255,0.6); font-family: 'Inter', sans-serif; }
.ring-name     { font-size: 0.82rem; font-weight: 600; color: #fff; text-align: center; font-family: 'Inter', sans-serif; margin: 0; }
.ring-badge    { font-size: 0.58rem; font-weight: 600; padding: 0.12rem 0.6rem; border-radius: 9999px; letter-spacing: 0.06em; text-transform: uppercase; }
.ring-badge.expert   { background: rgba(0,212,255,0.12);  color: #00d4ff; border: 1px solid rgba(0,212,255,0.3); }
.ring-badge.avance   { background: rgba(34,197,94,0.1);   color: #4ade80; border: 1px solid rgba(34,197,94,0.25); }
.ring-badge.inter    { background: rgba(251,191,36,0.1);  color: #fbbf24; border: 1px solid rgba(251,191,36,0.25); }
.ring-badge.debutant { background: rgba(148,163,184,0.1); color: #94a3b8; border: 1px solid rgba(148,163,184,0.2); }
/* Conserver les anciennes règles de barre pour compatibilité */
.learning-item {
  background: transparent;
  border: none;
  border-top: 1px solid rgba(255,255,255,0.07);
  border-radius: 0;
  padding: 1.5rem 0;
  transition: none;
}
.learning-item:hover {
  background: transparent;
  transform: none;
}
.learning-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.2rem;
}
.learning-icon {
  font-size: 1.8rem;
  color: #00d4ff;
  width: 32px;
  text-align: center;
  flex-shrink: 0;
}
.learning-name {
  font-weight: 700;
  font-size: 1.2rem;
  color: #fff;
  flex: 1;
}
.learning-percent {
  font-size: 0.9rem;
  font-weight: 800;
  color: #00d4ff;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.25);
  border-radius: 20px;
  padding: 4px 14px;
}
.learning-bar-track {
  height: 10px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 1rem;
}
.learning-bar-fill {
  height: 100%;
  width: 0%;
  border-radius: 99px;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.learning-desc {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.6;
  margin: 0;
}

/* TOOLTIPS */
[data-tooltip] {
  position: relative;
}
[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  background: rgba(10, 10, 20, 0.95);
  color: #e0f7ff;
  border: 1px solid rgba(0, 212, 255, 0.35);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 0.72rem;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 999;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
  letter-spacing: 0.3px;
}
[data-tooltip]:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* STAGGER ITEMS */
.stagger-child {
  opacity: 0;
  transition: opacity 0.5s ease;
}
.stagger-child.visible {
  opacity: 1;
}

/* RESPONSIVE */
@media (max-width: 1200px) {
  .parcours-container { width: 100%; }
}
@media (max-width: 1024px) {
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  section { padding: 4rem 4%; }
  .content-box,
  .glass-bubble,
  .glass-bubble-container { padding: 0; }
  nav.github-pill {
    width: 90%;
    padding: 8px;
    gap: 5px;
    flex-wrap: wrap;
    justify-content: center;
  }
  nav.github-pill a.nav-link {
    font-size: 0.75rem;
    padding: 6px 10px;
  }
  .nav-icons {
    border-left: none;
    margin-left: 0;
    padding-left: 0;
  }
  .hero h1 {
    font-size: 3.5rem;
  }
  .hero h3 {
    font-size: 2.5rem;
  }
  .skills-grid {
    grid-template-columns: 1fr;
  }
  .hero-badge {
    padding: 10px 20px;
    font-size: 1rem;
  }
}


