/* =============================================
   PORTFOLIO — MATÉO RAMET | GAME DESIGNER
   Dark Gaming Premium Theme
   ============================================= */

/* ===== CSS Variables ===== */
:root {
  --bg-primary:    #08080f;
  --bg-secondary:  #0d0d1a;
  --bg-card:       #111121;
  --border:        rgba(124, 58, 237, 0.18);
  --border-hover:  rgba(168, 85, 247, 0.5);
  --accent:        #7c3aed;
  --accent-light:  #a855f7;
  --accent-glow:   rgba(124, 58, 237, 0.35);
  --cyan:          #06b6d4;
  --cyan-glow:     rgba(6, 182, 212, 0.3);
  --text-primary:  #e2e8f0;
  --text-secondary:#94a3b8;
  --text-muted:    #475569;
  --font-heading:  'Orbitron', sans-serif;
  --font-body:     'Inter', sans-serif;
  --ease:          cubic-bezier(0.4, 0, 0.2, 1);
  --transition:    all 0.35s var(--ease);
  --shadow-glow:   0 0 35px rgba(124, 58, 237, 0.3);
  --shadow-card:   0 8px 40px rgba(0, 0, 0, 0.5);
  --radius:        14px;
  --radius-sm:     8px;
}

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.65;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
strong { color: var(--text-primary); font-weight: 600; }

/* ===== Custom Scrollbar ===== */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, var(--accent), var(--cyan));
  border-radius: 3px;
}

/* ===== Utility ===== */
.accent { color: var(--accent-light); }
section { padding: 5.5rem 6%; }

/* ===== Section Heading ===== */
.section-heading {
  font-family: var(--font-heading);
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 3.5rem;
  letter-spacing: 0.04em;
  position: relative;
}
.section-heading::after {
  content: '';
  display: block;
  width: 55px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--cyan));
  margin: 0.8rem auto 0;
  border-radius: 2px;
}
.section-heading.mt { margin-top: 5rem; }

/* =============================================
   HEADER
   ============================================= */
.header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  padding: 1.1rem 6%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1000;
  transition: var(--transition);
}
.header.scrolled {
  background: rgba(8, 8, 15, 0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 6%;
}
.logo {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-primary);
  transition: var(--transition);
}
.logo:hover { color: var(--accent-light); }
.logo-accent { color: var(--accent-light); }

.navbar { display: flex; align-items: center; gap: 2rem; }
.nav-link {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: var(--transition);
  position: relative;
  padding-bottom: 3px;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0;
  width: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--cyan));
  border-radius: 2px;
  transition: width 0.3s var(--ease);
}
.nav-link:hover  { color: var(--text-primary); }
.nav-link.active { color: var(--accent-light); }
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }

.menu-icon {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--text-primary);
  transition: var(--transition);
  z-index: 1001;
}

/* =============================================
   HERO SECTION
   ============================================= */
.home {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 0 6%;
  overflow: hidden;
}

/* Grid noise overlay */
.home::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(124, 58, 237, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 58, 237, 0.04) 1px, transparent 1px);
  background-size: 50px 50px;
  z-index: 0;
}

/* Radial glow behind hero */
.home::after {
  content: '';
  position: absolute;
  top: 30%;
  left: 55%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

#particles-canvas {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 1;
}

.home-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 5rem;
  width: 100%;
  max-width: 1250px;
  margin: 0 auto;
  padding-top: 80px;
}

.home-text { flex: 1; }

.home-greeting {
  font-size: 0.85rem;
  color: var(--cyan);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
  animation: fadeInUp 0.6s ease 0.2s both;
}

.home-name {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1rem;
  animation: fadeInUp 0.6s ease 0.4s both;
}

.typed-container {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.15rem;
  color: var(--accent-light);
  font-weight: 500;
  margin-bottom: 1.75rem;
  animation: fadeInUp 0.6s ease 0.6s both;
  min-height: 2em;
}
.typed-prefix { color: var(--text-muted); font-size: 1.4rem; }
#typed-text { min-width: 220px; }
.typed-cursor {
  color: var(--cyan);
  font-weight: 300;
  animation: blink 0.7s infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.home-desc {
  color: var(--text-secondary);
  max-width: 480px;
  margin-bottom: 2.2rem;
  font-size: 0.92rem;
  line-height: 1.75;
  animation: fadeInUp 0.6s ease 0.8s both;
}

.btn-box {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  animation: fadeInUp 0.6s ease 1s both;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.72rem 1.7rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.btn i { font-size: 1.1rem; }

.btn-primary {
  background: var(--accent);
  color: #fff;
  border: 2px solid var(--accent);
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 60%, rgba(255,255,255,0.12));
}
.btn-primary:hover {
  background: var(--accent-light);
  border-color: var(--accent-light);
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(124, 58, 237, 0.5);
}
.btn-outline {
  background: transparent;
  color: var(--accent-light);
  border: 2px solid rgba(124, 58, 237, 0.5);
}
.btn-outline:hover {
  border-color: var(--accent-light);
  background: rgba(124, 58, 237, 0.1);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(124, 58, 237, 0.2);
}

/* ===== Hero Image ===== */
.home-image-wrapper {
  flex-shrink: 0;
  animation: fadeInRight 0.8s ease 0.5s both;
}
.home-image-frame {
  position: relative;
  width: 310px;
  height: 310px;
}
.home-photo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
  border: 4px solid var(--accent);
  position: relative;
  z-index: 2;
  filter: brightness(1.05) contrast(1.05);
}

/* Spinning rings */
.image-ring {
  position: absolute;
  border-radius: 50%;
  animation: spin linear infinite;
}
.ring-1 {
  top: -14px; left: -14px;
  width: calc(100% + 28px);
  height: calc(100% + 28px);
  border: 2px dashed rgba(124, 58, 237, 0.4);
  animation-duration: 12s;
}
.ring-2 {
  top: -28px; left: -28px;
  width: calc(100% + 56px);
  height: calc(100% + 56px);
  border: 1px solid rgba(6, 182, 212, 0.2);
  animation-duration: 22s;
  animation-direction: reverse;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Floating dots */
.image-dot {
  position: absolute;
  width: 10px; height: 10px;
  border-radius: 50%;
  z-index: 3;
}
.dot-1 {
  top: 12%; left: 48%;
  background: var(--cyan);
  animation: floatDot 3s ease-in-out infinite;
  box-shadow: 0 0 10px var(--cyan-glow);
}
.dot-2 {
  top: 50%; right: 2%;
  background: var(--accent-light);
  animation: floatDot 3s ease-in-out 1.2s infinite;
  box-shadow: 0 0 10px var(--accent-glow);
}
.dot-3 {
  bottom: 14%; left: 12%;
  background: var(--cyan);
  animation: floatDot 3s ease-in-out 2.4s infinite;
  box-shadow: 0 0 10px var(--cyan-glow);
}
@keyframes floatDot {
  0%, 100% { transform: translateY(0) scale(1); opacity: 1; }
  50% { transform: translateY(-12px) scale(0.7); opacity: 0.5; }
}

/* Glow underneath photo */
.home-image-frame::after {
  content: '';
  position: absolute;
  bottom: -20px; left: 50%;
  transform: translateX(-50%);
  width: 60%; height: 40px;
  background: radial-gradient(ellipse, rgba(124, 58, 237, 0.4), transparent 70%);
  filter: blur(12px);
  z-index: 1;
}

/* ===== Social Icons (left side) ===== */
.home-sci {
  position: absolute;
  left: 2%;
  bottom: 10%;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  z-index: 2;
  animation: fadeInLeft 0.7s ease 1.2s both;
}
.home-sci a {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  color: var(--text-secondary);
  background: rgba(17, 17, 33, 0.7);
  backdrop-filter: blur(12px);
  transition: var(--transition);
}
.home-sci a:hover {
  border-color: var(--accent-light);
  color: var(--accent-light);
  transform: translateX(5px);
  box-shadow: 0 0 18px rgba(124, 58, 237, 0.4);
}

/* ===== Scroll Down ===== */
.scroll-down {
  position: absolute;
  right: 5%;
  bottom: 8%;
  z-index: 2;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--text-secondary);
  animation: bounce 2.5s ease infinite, fadeInUp 0.6s ease 1.5s both;
  transition: color 0.3s;
}
.scroll-down:hover { color: var(--accent-light); border-color: var(--accent-light); }
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* =============================================
   ABOUT SECTION
   ============================================= */
.about { background: var(--bg-secondary); }

.about-container {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 5rem;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

.about-img-frame {
  position: relative;
  width: 260px; height: 260px;
  flex-shrink: 0;
}
.about-img-frame img {
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
  border: 3px solid var(--accent);
  position: relative;
  z-index: 2;
  filter: brightness(1.05);
}
.circle-spin {
  position: absolute;
  top: -10px; left: -10px;
  width: calc(100% + 20px);
  height: calc(100% + 20px);
  border-radius: 50%;
  border: 2px dashed rgba(124, 58, 237, 0.4);
  animation: spin 9s linear infinite;
}

.about-content h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.3;
  letter-spacing: 0.02em;
}
.about-content p {
  color: var(--text-secondary);
  margin-bottom: 0.85rem;
  line-height: 1.75;
  font-size: 0.93rem;
}

.about-info {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 1.5rem;
}
.info-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
}
.info-item i { color: var(--accent-light); font-size: 1.05rem; }

/* ===== Skills ===== */
.skills-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 950px;
  margin: 0 auto;
}
.skill-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.2rem 1.5rem;
  transition: var(--transition);
}
.skill-item:hover {
  border-color: var(--border-hover);
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.15);
  transform: translateY(-3px);
}
.skill-header {
  display: flex;
  align-items: center;
  margin-bottom: 0.6rem;
  font-size: 0.95rem;
  font-weight: 600;
}
.skill-name { 
  color: var(--text-primary); 
  display: flex;
  align-items: center;
}
.skill-name i {
  font-size: 1.2rem;
}
.skill-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ===== Interests Cards ===== */
.interests-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1.25rem;
  max-width: 1100px;
  margin: 0 auto;
}
.interest-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  transition: var(--transition);
  cursor: default;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.interest-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.05), transparent);
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
  z-index: 2;
}
.interest-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-7px);
  box-shadow: var(--shadow-glow);
}
.interest-card:hover::before { opacity: 1; }
.interest-img {
  width: 100%;
  height: 150px;
  overflow: hidden;
  position: relative;
  z-index: 1;
}
.interest-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.interest-card:hover .interest-img img {
  transform: scale(1.08);
}
.interest-content {
  padding: 1.8rem 1.4rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 2;
}
.interest-content h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}
.interest-content p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* =============================================
   PARCOURS / TIMELINE SECTION
   ============================================= */
.parcours { background: var(--bg-primary); position: relative; overflow: hidden; }
.parcours::before {
  content: '';
  position: absolute;
  top: 10%;
  right: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.07), transparent 70%);
  pointer-events: none;
}

.parcours-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 1100px;
  margin: 0 auto;
}
.column-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: var(--accent-light);
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.column-title i { font-size: 1.3rem; }

.timeline { position: relative; padding-left: 2rem; }
.timeline::before {
  content: '';
  position: absolute;
  left: 6px; top: 8px; bottom: 8px;
  width: 2px;
  background: linear-gradient(
    to bottom,
    var(--accent) 0%,
    var(--cyan) 60%,
    transparent 100%
  );
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  margin-bottom: 1.8rem;
}
.timeline-dot {
  position: absolute;
  left: -2rem;
  top: 18px;
  width: 13px; height: 13px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg-primary);
  box-shadow: 0 0 12px rgba(124, 58, 237, 0.7);
  transition: var(--transition);
}
.timeline-item:hover .timeline-dot {
  background: var(--cyan);
  box-shadow: 0 0 16px var(--cyan-glow);
  transform: scale(1.3);
}

.timeline-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
  transition: var(--transition);
}
.timeline-content:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-glow);
  transform: translateX(4px);
}
.timeline-year {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--cyan);
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.25);
  padding: 0.18rem 0.7rem;
  border-radius: 100px;
  margin-bottom: 0.6rem;
}
.timeline-content h4 {
  font-size: 0.97rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text-primary);
}
.timeline-content p { font-size: 0.855rem; color: var(--text-secondary); line-height: 1.6; }

.tag {
  display: inline-block;
  font-size: 0.72rem;
  background: rgba(124, 58, 237, 0.13);
  color: var(--accent-light);
  border: 1px solid rgba(124, 58, 237, 0.3);
  padding: 0.15rem 0.55rem;
  border-radius: 100px;
  margin-top: 0.5rem;
  margin-right: 0.3rem;
  font-weight: 500;
}

/* =============================================
   PROJETS SECTION
   ============================================= */
.projets { background: var(--bg-secondary); }

/* ===== Category label pill ===== */
.cat-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.3rem 0.9rem;
  border-radius: 100px;
  margin-bottom: 1.75rem;
}

.cat-game {
  color: var(--accent-light);
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.cat-bts {
  color: var(--cyan);
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.3);
}

.cat-hasler {
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

/* ===== Horizontal project card ===== */
.proj-card {
  display: flex;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1.5rem;
  transition: var(--transition);
}

.proj-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-glow);
}

.proj-img {
  width: 270px;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
}

.proj-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.proj-card:hover .proj-img img {
  transform: scale(1.06);
}

.proj-body {
  padding: 1.75rem 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.proj-body h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  letter-spacing: 0.03em;
  line-height: 1.3;
}

.proj-body p {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.72;
  margin-bottom: 0.75rem;
  flex: 1;
}

.proj-tags-row {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.proj-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.proj-tool-imgs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.proj-tool-imgs img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  opacity: 0.75;
  transition: opacity 0.2s;
}

.proj-tool-imgs img:hover {
  opacity: 1;
}

/* ===== Section separator ===== */
.cat-section {
  margin-bottom: 3.5rem;
  max-width: 1150px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== Sp Article Link ===== */
.sp-article-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--cyan);
  border: 1px solid rgba(6, 182, 212, 0.3);
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
  transition: var(--transition);
}

.sp-article-link:hover {
  background: rgba(6, 182, 212, 0.1);
  border-color: var(--cyan);
}

.sp-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border), transparent);
  margin: 3rem auto;
  max-width: 1150px;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .proj-card {
    flex-direction: column;
  }
  .proj-img {
    width: 100%;
    height: 200px;
  }
}

/* =============================================
   CONTACT SECTION
   ============================================= */
.contact { background: var(--bg-primary); }

.contact-container {
  max-width: 550px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 3rem 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.contact-container::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--cyan), var(--accent));
}

.contact-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}
.contact-item i { font-size: 1.25rem; color: var(--accent-light); }
.contact-item a {
  color: var(--text-secondary);
  transition: color 0.3s;
}
.contact-item a:hover { color: var(--accent-light); }

.contact-socials {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}
.contact-socials a {
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--text-secondary);
  transition: var(--transition);
}
.contact-socials a:hover {
  border-color: var(--accent-light);
  color: var(--accent-light);
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.35);
  transform: translateY(-3px);
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 2rem 6% 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  position: relative;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 1.5rem;
  margin-bottom: 0.25rem;
}
.footer-links a {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 0.3s;
  position: relative;
  padding-bottom: 2px;
}
.footer-links a::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0;
  width: 0; height: 1px;
  background: var(--accent-light);
  transition: width 0.3s;
}
.footer-links a:hover { color: var(--accent-light); }
.footer-links a:hover::after { width: 100%; }
.footer-copy {
  font-size: 0.82rem;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}
.footer-top {
  position: absolute;
  right: 6%;
  top: 50%;
  transform: translateY(-50%);
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--text-secondary);
  transition: var(--transition);
}
.footer-top:hover {
  border-color: var(--accent-light);
  color: var(--accent-light);
  box-shadow: 0 0 18px rgba(124, 58, 237, 0.3);
  transform: translateY(calc(-50% - 3px));
}

/* =============================================
   SCROLL ANIMATIONS
   ============================================= */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(45px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}
.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}
.animate-on-scroll.delay-1 { transition-delay: 0.1s; }
.animate-on-scroll.delay-2 { transition-delay: 0.2s; }
.animate-on-scroll.delay-3 { transition-delay: 0.3s; }

/* =============================================
   KEYFRAMES
   ============================================= */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(35px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(35px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-35px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .home-content { gap: 3rem; }
  .home-image-frame { width: 270px; height: 270px; }
  .about-container { grid-template-columns: 1fr; text-align: center; gap: 2.5rem; }
  .about-img-frame { margin: 0 auto; }
  .about-info { align-items: center; }
}

@media (max-width: 900px) {
  section { padding: 4.5rem 5%; }
  .home-content { flex-direction: column-reverse; text-align: center; gap: 2rem; padding-top: 100px; }
  .home-image-frame { width: 230px; height: 230px; }
  .home-desc { margin: 0 auto 2rem; }
  .btn-box { justify-content: center; }
  .home-sci {
    flex-direction: row;
    left: 50%;
    transform: translateX(-50%);
    bottom: 2%;
  }
  .scroll-down { display: none; }
  .skills-container { grid-template-columns: 1fr; max-width: 500px; }
  .parcours-row { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .menu-icon { display: block; }
  .navbar {
    position: fixed;
    top: 0; right: -100%;
    width: 260px; height: 100vh;
    background: rgba(10, 10, 18, 0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
    gap: 2rem;
    transition: right 0.4s var(--ease);
    border-left: 1px solid var(--border);
    z-index: 999;
  }
  .navbar.open { right: 0; }
  .nav-link { font-size: 1rem; }
}

@media (max-width: 520px) {
  .home-name { font-size: 2rem; }
  .typed-container { font-size: 1rem; justify-content: center; flex-wrap: wrap; }
  .projets-grid { grid-template-columns: 1fr; }
  .interests-grid { grid-template-columns: 1fr 1fr; }
  .contact-container { padding: 2rem 1.5rem; }
}
