/* ============================================================
   RESET & VARIABLES
   ============================================================ */

:root {
  /* Colors */
  --accent: #FF9500;
  --accent-dark: #E07800;
  --accent-glow: rgba(255, 149, 0, 0.18);
  --bg: #FAFAF9;
  --bg-dark: #0C0C0C;
  --bg-dark-2: #141414;
  --bg-card: #FFFFFF;
  --text: #1A1A1A;
  --text-muted: #6B6B6B;
  --text-light: rgba(255,255,255,0.85);
  --text-light-muted: rgba(255,255,255,0.45);
  --border: rgba(0,0,0,0.08);
  --border-dark: rgba(255,255,255,0.08);

  /* Typography */
  --font-display: 'Montserrat', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing */
  --section-pad: 7rem 2rem;
  --max-w: 1100px;

  /* Effects & Animations */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.08), 0 1px 4px rgba(0,0,0,0.05);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.12);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  /* Animation de rebond "Premium" */
  --transition-bounce: 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ============================================================
   HEADER & NAV
   ============================================================ */

#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  padding: 0;
  transition: var(--transition);
}

#header.scrolled {
  background: rgba(12,12,12,0.92);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--border-dark);
}

.navbar {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2rem;
  gap: 2rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: #ffffff;
  transition: opacity var(--transition);
  position: relative;
  z-index: 1001;
}

.logo:hover { opacity: 0.8; }

.logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--accent);
  color: #ffffff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.8rem;
  border-radius: 8px;
  letter-spacing: 0;
  flex-shrink: 0;
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: #ffffff;
}

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

.nav-links a {
  display: inline-block;
  padding: 0.45rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-light);
  border-radius: 8px;
  transition: var(--transition);
}

.nav-links a:hover {
  color: #ffffff;
  background: rgba(255,255,255,0.08);
}

.nav-links .nav-cta {
  background: var(--accent);
  color: #ffffff;
  padding: 0.45rem 1.2rem;
  font-weight: 600;
}

.nav-links .nav-cta:hover {
  background: var(--accent-dark);
}

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--border-dark);
  border-radius: 8px;
  cursor: pointer;
  padding: 8px;
  transition: var(--transition);
  position: relative;
  z-index: 1001;
}

.burger span {
  display: block;
  width: 100%;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
  transition: var(--transition);
  transform-origin: center;
}

.burger.active span:nth-child(1) { 
  transform: translateY(8px) rotate(45deg); 
}
.burger.active span:nth-child(2) { 
  opacity: 0; 
  transform: translateX(-10px); 
}
.burger.active span:nth-child(3) { 
  transform: translateY(-8px) rotate(-45deg); 
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(255, 149, 0, 0.3);
}

.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(255, 149, 0, 0.4);
}

.btn-outline {
  background: transparent;
  color: #ffffff;
  border: 1.5px solid rgba(255,255,255,0.3);
}

.btn-outline:hover {
  border-color: #ffffff;
  background: rgba(255,255,255,0.08);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
  padding: 0.7rem 1.3rem;
}

.btn-ghost:hover {
  border-color: var(--accent);
}

.btn-full { width: 100%; justify-content: center; }

/* ============================================================
   SECTION COMMON
   ============================================================ */

.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section-label::before {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 3rem;
  letter-spacing: -0.03em;
}

.accent { color: var(--accent); }

/* ============================================================
   HERO
   ============================================================ */

.hero {
  position: relative;
  min-height: 100vh;
  background: var(--bg-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8rem 2rem 6rem;
  overflow: hidden;
}

.hero-bg-grid {
  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;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
}

.hero-noise {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
  pointer-events: none;
  opacity: 0.5;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 850px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 1rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-light);
  margin-bottom: 2rem;
  backdrop-filter: blur(8px);
}

.badge-dot {
  width: 7px;
  height: 7px;
  background: #22C55E;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(34,197,94,0.2);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 3px rgba(34,197,94,0.2); }
  50% { box-shadow: 0 0 0 5px rgba(34,197,94,0.08); }
}

.hero-title {
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.0;
  letter-spacing: -0.04em;
  margin-bottom: 1.5rem;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-light-muted);
  line-height: 1.7;
  max-width: 540px;
  margin: 0 auto 2.5rem;
  font-weight: 400;
}

.hero-sub strong {
  color: var(--text-light);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.hero-scroll {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-light-muted);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  z-index: 10;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.3), transparent);
  animation: scroll-anim 2s ease-in-out infinite;
}

@keyframes scroll-anim {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

.hero-stats {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 4rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  padding: 1.5rem 2.5rem;
  backdrop-filter: blur(12px);
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 0 2.5rem;
}

.stat-num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-light-muted);
  font-weight: 500;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border-dark);
  flex-shrink: 0;
}

/* ============================================================
   ABOUT
   ============================================================ */

.about {
  padding: var(--section-pad);
  background: var(--bg);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-size: 0.975rem;
  line-height: 1.75;
}

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

.about-text p:last-of-type { margin-bottom: 2rem; }

.about-cta {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.about-skills {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.skills-heading {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text);
  letter-spacing: -0.01em;
}

.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.skill-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  font-size: 0.85rem;
  font-weight: 500;
  transition: var(--transition);
}

.skill-item:hover {
  border-color: var(--accent);
  background: var(--accent-glow);
  transform: translateY(-1px);
}

.skill-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--accent-glow);
  color: var(--accent);
  flex-shrink: 0;
}

/* ============================================================
   EXPERIENCES
   ============================================================ */

.experiences {
  padding: var(--section-pad);
  background: var(--bg-dark);
  position: relative;
}

.experiences .section-label { color: var(--accent); }
.experiences .section-title { color: #ffffff; }

.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--accent), rgba(255,149,0,0.1));
}

.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
}

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

.timeline-marker {
  position: absolute;
  left: -2rem;
  top: 1.5rem;
  transform: translate(-50%, -50%);
}

.marker-ring {
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: ring-pulse 2.5s ease-in-out infinite;
}

@keyframes ring-pulse {
  0%, 100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.4; transform: translate(-50%, -50%) scale(1.3); }
}

.marker-dot {
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
  position: relative;
  z-index: 1;
}

.timeline-card {
  background: var(--bg-dark-2);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  transition: var(--transition);
}

.timeline-card:hover {
  border-color: rgba(255,149,0,0.3);
  transform: translateX(4px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

.timeline-card.featured {
  border-color: rgba(255,149,0,0.3);
  background: linear-gradient(135deg, rgba(255,149,0,0.05) 0%, var(--bg-dark-2) 100%);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.6rem;
  gap: 1rem;
}

.card-tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-glow);
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(255,149,0,0.2);
}

.card-date {
  font-size: 0.8rem;
  color: var(--text-light-muted);
  font-weight: 500;
}

.timeline-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.4rem;
  letter-spacing: -0.01em;
}

.card-company {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: var(--text-light-muted);
  font-weight: 500;
  margin-bottom: 0.85rem;
}

.timeline-card p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.card-tags span {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.65rem;
  border-radius: 6px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.5);
}

/* ============================================================
   FORMATIONS
   ============================================================ */

.formations {
  padding: var(--section-pad);
  background: var(--bg);
}

.formations-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.formation-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
  box-shadow: var(--shadow-sm);
  /* Animation Hover Config */
  transition: 
    transform var(--transition-bounce),
    box-shadow 0.4s ease,
    border-color 0.4s ease;
}

/* Animation Hover Formation */
.formation-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: var(--shadow-lg), 0 0 15px rgba(255, 149, 0, 0.1);
  border-color: var(--accent);
  z-index: 10;
}

.formation-card:hover h3 {
  color: var(--accent);
}

.formation-card.featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), var(--shadow-md);
}

.formation-card.featured::before {
  content: '★ Principal';
  position: absolute;
  top: -1px;
  left: 1.5rem;
  background: var(--accent);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.65rem;
  border-radius: 0 0 6px 6px;
}

/* MODIFICATION APPLIQUÉE ICI */
.formation-card.next {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), var(--shadow-md);
}

.formation-year {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.formation-badge {
  display: inline-block;
  padding: 0.2rem 0.75rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background: rgba(34,197,94,0.1);
  color: #16A34A;
  border: 1px solid rgba(34,197,94,0.2);
  transition: var(--transition);
}

.formation-badge.mention {
  background: rgba(255,149,0,0.1);
  color: var(--accent-dark);
  border-color: rgba(255,149,0,0.25);
}

.formation-badge.search {
  background: rgba(99,102,241,0.1);
  color: #4F46E5;
  border-color: rgba(99,102,241,0.2);
}

.formation-card h3 {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
  transition: color 0.3s ease;
}

.formation-school {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}

.formation-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ============================================================
   PROJECTS SECTION
   ============================================================ */

.projects {
  padding: var(--section-pad);
  background: var(--bg);
  position: relative;
  margin-top: 2rem;
}

/* Séparateur Visuel Tech */
.projects::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  max-width: 800px;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--accent) 50%, transparent 100%);
  opacity: 0.6;
}

.projects::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 12px;
  height: 12px;
  background: var(--accent);
  border-radius: 2px;
  transform: translate(-50%, -50%) rotate(45deg);
  box-shadow: 0 0 15px var(--accent);
  border: 2px solid var(--bg);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: var(--shadow-sm);
  /* Animation Hover Config */
  transition: 
    transform var(--transition-bounce),
    box-shadow 0.4s ease,
    border-color 0.4s ease;
}

/* Animation Hover Project */
.project-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: var(--shadow-lg), 0 0 15px rgba(255, 149, 0, 0.15);
  border-color: var(--accent);
  z-index: 10;
}

.project-card:hover h3 {
  color: var(--accent);
}

.project-card:hover .card-tags span {
  background: var(--accent-glow);
  color: var(--accent);
  border-color: rgba(255, 149, 0, 0.3);
  transform: translateY(-2px);
}

.project-card.featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), var(--shadow-md);
}

.project-card.featured::before {
  content: '★ Principal';
  position: absolute;
  top: -1px;
  left: 1.5rem;
  background: var(--accent);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.65rem;
  border-radius: 0 0 6px 6px;
  z-index: 10;
}

.project-category {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 0.5rem;
}

.project-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.2rem;
  color: var(--text);
  transition: color 0.3s ease;
}

.project-subtitle {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.project-description {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.project-card .card-tags span {
  background: rgba(0,0,0,0.04);
  color: var(--text-muted);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

/* ============================================================
   CONTACT
   ============================================================ */

.contact {
  padding: var(--section-pad);
  background: var(--bg-dark);
}

.contact .section-label { color: var(--accent); }
.contact .section-title { color: #ffffff; margin-bottom: 1rem; }

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 5rem;
  align-items: start;
}

.contact-info > p {
  font-size: 0.95rem;
  color: var(--text-light-muted);
  line-height: 1.75;
  margin-bottom: 2.5rem;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
  transition: var(--transition);
  color: inherit;
}

.contact-link:hover {
  background: rgba(255,255,255,0.07);
  border-color: var(--accent);
  transform: translateX(4px);
}

.contact-link-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent-glow);
  color: var(--accent);
  flex-shrink: 0;
}

.link-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light-muted);
  margin-bottom: 0.1rem;
}

.link-value {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-light);
}

.contact-form-wrap {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  backdrop-filter: blur(8px);
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.contact-form label {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.02em;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-dark);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: #ffffff;
  outline: none;
  transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
  background: rgba(255,149,0,0.04);
  box-shadow: 0 0 0 3px rgba(255,149,0,0.1);
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.recaptcha-group .g-recaptcha {
  transform: scale(0.9);
  transform-origin: left top;
}

.error-message {
  min-height: 1.1em;
  font-size: 0.78rem;
  color: #F87171;
  font-weight: 500;
}

.form-footer { margin-top: 0.5rem; }

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
  background: var(--bg-dark);
  border-top: 1px solid var(--border-dark);
  padding: 2.5rem 2rem;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: #ffffff;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.footer-links a {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--text-light-muted);
  font-weight: 500;
  transition: var(--transition);
}

.footer-links a:hover { color: var(--text-light); }

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-light-muted);
}

/* ============================================================
   ANIMATIONS (REVEAL)
   ============================================================ */

.reveal-up,
.reveal-left,
.reveal-right {
  opacity: 0;
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-up { transform: translateY(32px); }
.reveal-left { transform: translateX(-32px); }
.reveal-right { transform: translateX(32px); }

.reveal-up.visible,
.reveal-left.visible,
.reveal-right.visible {
  opacity: 1;
  transform: none;
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .formations-grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .projects-grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .contact-wrapper { grid-template-columns: 1fr; gap: 3rem; }
  .hero-stats { flex-wrap: wrap; justify-content: center; padding: 1.25rem 1.5rem; }
  .stat { padding: 0.5rem 1.5rem; }
}

@media (max-width: 768px) {
  :root { --section-pad: 5rem 1.25rem; }

  .navbar { padding: 1rem 1.25rem; }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    height: 100dvh;
    width: 280px;
    max-width: 85%;
    background-color: #0C0C0C !important; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9999; 
    visibility: hidden;
    border-left: 1px solid var(--border-dark);
  }

  .nav-links.open {
    transform: translateX(0);
    visibility: visible;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
  }

  .nav-links li { width: 100%; text-align: center; }
  .nav-links a { display: block; font-size: 1.2rem; padding: 1rem; color: #ffffff !important; }

  .nav-links .nav-cta {
    background: var(--accent) !important;
    width: auto;
    margin: 0 auto;
    padding: 0.8rem 2rem !important;
    border-radius: 10px;
  }

  .burger { display: flex; z-index: 10000; }

  .hero-title { font-size: clamp(2.2rem, 8vw, 3.5rem); }
  .hero-stats { gap: 0; flex-direction: column; }
  .stat-divider { width: 100%; height: 1px; margin: 0.5rem 0; }

  .form-row { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: 1fr; }

  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: center; }
  .btn { width: 100%; justify-content: center; }
  .hero-actions .btn-outline { width: auto; }
  .about-cta { flex-direction: column; }

  .contact-form-wrap { padding: 1.5rem; }
  .recaptcha-group .g-recaptcha { transform: scale(0.78); }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal-up, .reveal-left, .reveal-right {
    opacity: 1;
    transform: none;
  }
}