/* ============================================
   TOKENS
   ============================================ */
:root {
  --bg:        #08080F;
  --bg-dark:   #06060C;
  --bg-card:   rgba(255,255,255,0.06);
  --text:      #FFFFFF;
  --text-muted:#D8D0F0;
  --accent:    #1A3A6B;
  --accent-light: #2D5BA3;
  --purple:    #8B2FDF;
  --purple-light: #B06CF0;
  --silver:    #C0B8D8;
  --border:    rgba(255,255,255,0.1);
  --glow:      rgba(139,47,223,0.35);

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', -apple-system, sans-serif;

  --radius: 4px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

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

/* ============================================
   NAVBAR
   ============================================ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  transition: background var(--transition), backdrop-filter var(--transition);
}

#navbar.scrolled {
  background: rgba(8, 8, 15, 0.75);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--text);
  letter-spacing: -0.02em;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2.5rem;
}

.nav-links a {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color var(--transition);
}

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

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: var(--transition);
}

/* ============================================
   MOBILE MENU
   ============================================ */
.mobile-menu {
  position: fixed;
  top: 64px; left: 0; right: 0;
  background: rgba(8,8,15,0.97);
  backdrop-filter: blur(16px);
  z-index: 99;
  display: flex;
  flex-direction: column;
  padding: 1.5rem 2rem;
  gap: 1.2rem;
  border-bottom: 1px solid var(--border);
  transform: translateY(-110%);
  transition: transform var(--transition);
}

.mobile-menu.open { transform: translateY(0); }

.mobile-link {
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  transition: color var(--transition);
}

.mobile-link:hover { color: var(--text); }

/* ============================================
   HERO
   ============================================ */
#hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  padding-bottom: 4rem;
}

#starsCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: left;
  padding: 0 4rem;
  width: 100%;
  animation: fadeUp 1.2s ease both;
}

.hero-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--silver);
  margin-bottom: 1.5rem;
}

.hero-title {
  font-family: var(--font-display);
  display: flex;
  flex-direction: column;
  line-height: 1.0;
  margin-bottom: 1.5rem;
}

.hero-title .line-1 {
  font-size: clamp(5rem, 15vw, 13rem);
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.03em;
}

.hero-title .line-2 {
  font-size: clamp(2rem, 6vw, 5rem);
  font-weight: 400;
  color: var(--purple-light);
  letter-spacing: 0.1em;
}

.italic { font-style: italic; }

.hero-sub {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 2.5rem;
  line-height: 1.8;
  max-width: 620px;
}

.btn-primary {
  display: inline-block;
  padding: 0.8rem 2.4rem;
  border: 1px solid var(--purple);
  color: var(--text);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: background var(--transition), box-shadow var(--transition);
  border-radius: var(--radius);
}

.btn-primary:hover {
  background: var(--purple);
  box-shadow: 0 0 30px var(--glow);
}

.hero-scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  z-index: 2;
  color: var(--text-muted);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  animation: pulse 2s infinite;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--text-muted), transparent);
}

/* ============================================
   SECTIONS (shared)
   ============================================ */
.section {
  padding: 7rem 0;
}

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

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-label {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--purple-light);
  margin-bottom: 1.2rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 2.5rem;
  letter-spacing: -0.02em;
}

/* ============================================
   ABOUT
   ============================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 4rem;
  align-items: start;
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 1.2rem;
  font-size: 1.05rem;
}

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

.about-stats {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.stat {
  border-left: 2px solid var(--purple);
  padding-left: 1.2rem;
}

.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--text);
  line-height: 1;
}

.stat-label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

/* ============================================
   TIMELINE
   ============================================ */
.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--purple), transparent);
}

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

.timeline-dot {
  position: absolute;
  left: -2.4rem;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-light);
  border: 2px solid var(--bg-dark);
  box-shadow: 0 0 12px var(--accent-light);
}

.dot-accent { background: var(--purple-light); box-shadow: 0 0 12px var(--purple-light); }
.dot-purple { background: var(--silver); box-shadow: 0 0 12px var(--silver); }

.timeline-date {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--purple-light);
  margin-bottom: 0.4rem;
}

.timeline-content h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.3rem;
}

.timeline-place {
  font-size: 0.8rem;
  color: var(--silver);
  margin-bottom: 0.8rem;
  letter-spacing: 0.05em;
}

.timeline-content p {
  color: var(--text-muted);
  font-size: 0.97rem;
  margin-bottom: 0.8rem;
}

.timeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin-top: 0.8rem;
}

.timeline-tags li {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--text-muted);
}

/* ============================================
   PROJECTS
   ============================================ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 2rem;
  border-radius: var(--radius);
  transition: border-color var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(to right, var(--purple), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}

.project-card:hover {
  border-color: rgba(107,47,191,0.4);
  box-shadow: 0 8px 40px rgba(107,47,191,0.12);
}

.project-card:hover::before { opacity: 1; }

.card-featured {
  grid-column: span 2;
  background: rgba(255,255,255,0.05);
  border-color: rgba(107,47,191,0.25);
}

.project-tag {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--purple-light);
  margin-bottom: 0.8rem;
}

.project-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.8rem;
}

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

.project-meta {
  font-size: 0.72rem;
  color: var(--silver);
  letter-spacing: 0.08em;
  margin-bottom: 0.8rem;
}

.project-cast {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cast-item {
  font-size: 0.72rem;
  padding: 0.25rem 0.75rem;
  background: rgba(107,47,191,0.15);
  border: 1px solid rgba(107,47,191,0.3);
  border-radius: 20px;
  color: var(--purple-light);
  letter-spacing: 0.04em;
}

/* ============================================
   SKILLS
   ============================================ */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
}

.skill-group-title {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--purple-light);
  margin-bottom: 1.5rem;
}

.skill-items {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.skill-item {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.skill-item span {
  font-size: 0.88rem;
  color: var(--text);
}

.skill-bar {
  height: 3px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  overflow: hidden;
}

.skill-fill {
  height: 100%;
  width: var(--w);
  background: linear-gradient(to right, var(--purple), var(--accent-light));
  border-radius: 2px;
  transform-origin: left;
  animation: growBar 1.2s cubic-bezier(0.4,0,0.2,1) both;
}

/* ============================================
   CONTACT
   ============================================ */
.contact-inner {
  max-width: 680px;
}

.contact-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
}

.contact-sub {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

.btn-large {
  padding: 1rem 3rem;
  font-size: 0.85rem;
  margin-bottom: 2rem;
}

.contact-links {
  display: flex;
  gap: 2rem;
}

.contact-link {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  padding-bottom: 2px;
  transition: color var(--transition), border-color var(--transition);
}

.contact-link:hover {
  color: var(--text);
  border-color: var(--purple-light);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer p {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { opacity: 0.4; }
  50%       { opacity: 1; }
}

@keyframes growBar {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .about-stats {
    flex-direction: row;
    gap: 2rem;
  }

  .projects-grid,
  .skills-grid {
    grid-template-columns: 1fr;
  }

  .card-featured {
    grid-column: span 1;
  }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }

  .section { padding: 4rem 0; }

  .about-stats {
    flex-direction: column;
  }

  .hero-title .line-1 { font-size: 5rem; }

  .contact-links { flex-wrap: wrap; gap: 1.2rem; }
}

/* ============================================
   HERO — extras
   ============================================ */
.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: flex-start;
  margin-bottom: 2rem;
}

.htag {
  font-size: 0.72rem;
  padding: 0.3rem 0.9rem;
  border: 1px solid rgba(107,47,191,0.4);
  border-radius: 20px;
  color: var(--purple-light);
  letter-spacing: 0.06em;
}

.htag-neutral {
  border-color: var(--border);
  color: var(--text-muted);
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.btn-outline {
  display: inline-block;
  padding: 0.8rem 2.4rem;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: border-color var(--transition), color var(--transition);
}

.btn-outline:hover {
  border-color: var(--silver);
  color: var(--text);
}

/* ============================================
   ABOUT — info rows
   ============================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 4rem;
  align-items: start;
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 1.2rem;
  font-size: 1.05rem;
}

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

.about-info {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.info-row {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
}

.info-row:last-child { border-bottom: none; }

.ikey {
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ival {
  color: var(--text);
  font-weight: 500;
  text-align: right;
}

/* ============================================
   LEAD TEXT
   ============================================ */
.lead-text {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.8;
  max-width: 760px;
  margin-bottom: 3rem;
}

/* ============================================
   CEA STATS
   ============================================ */
.cea-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 3rem;
}

.cea-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  transition: border-color var(--transition);
}

.cea-stat-card:hover { border-color: rgba(107,47,191,0.35); }

.cea-stat-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  color: var(--text);
  line-height: 1;
  margin-bottom: 0.4rem;
}

.cea-stat-label {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ============================================
   CEA BLOCK CARDS
   ============================================ */
.cea-block-card {
  display: flex;
  gap: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 1.25rem;
  transition: border-color var(--transition);
}

.cea-block-card:hover { border-color: rgba(107,47,191,0.3); }

.cea-block-icon-wrap {
  font-size: 1.6rem;
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.cea-block-body { flex: 1; }

.cea-block-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.6rem;
}

.cea-block-text {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.8;
}

/* ============================================
   PILLS / TAGS
   ============================================ */
.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.cpill {
  font-size: 0.7rem;
  letter-spacing: 0.07em;
  padding: 0.25rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--text-muted);
}

.cpill-accent {
  border-color: rgba(107,47,191,0.4);
  color: var(--purple-light);
}

/* ============================================
   DIRECTIONS GRID
   ============================================ */
.directions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1.2rem;
}

.direction-item {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem;
  transition: border-color var(--transition);
}

.direction-item:hover { border-color: rgba(107,47,191,0.3); }

.direction-abbr {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--purple-light);
  letter-spacing: -0.02em;
  margin-bottom: 0.3rem;
}

.direction-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.direction-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ============================================
   ALTERNANCE
   ============================================ */
.subsection-label {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--silver);
  margin: 2.5rem 0 1.2rem;
}

.alt-header-card {
  display: flex;
  gap: 2rem;
  background: var(--bg-card);
  border: 1px solid rgba(107,47,191,0.25);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

.alt-header-left { flex: 1; min-width: 220px; }
.alt-header-right { min-width: 240px; }

.alt-badge {
  display: inline-block;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.25rem 0.8rem;
  background: rgba(107,47,191,0.15);
  border: 1px solid rgba(107,47,191,0.35);
  border-radius: 20px;
  color: var(--purple-light);
  margin-bottom: 0.8rem;
}

.alt-poste {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.alt-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ============================================
   MISSIONS GRID
   ============================================ */
.missions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.mission-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.mission-card:hover {
  border-color: rgba(107,47,191,0.35);
  box-shadow: 0 4px 20px rgba(107,47,191,0.08);
}

.mission-icon {
  font-size: 1.4rem;
  margin-bottom: 0.7rem;
}

.mission-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.mission-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ============================================
   PROJETS TIMELINE (travaux)
   ============================================ */
.projets-timeline {
  position: relative;
  padding-left: 1.8rem;
  margin-bottom: 2.5rem;
}

.projets-timeline::before {
  content: '';
  position: absolute;
  left: 0; top: 8px; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--purple), transparent);
}

.pt-item {
  position: relative;
  display: flex;
  gap: 1.2rem;
  margin-bottom: 1.5rem;
  align-items: flex-start;
}

.pt-dot {
  position: absolute;
  left: -2.1rem;
  top: 6px;
  width: 9px; height: 9px;
  border-radius: 50%;
  border: 2px solid var(--bg-dark);
  flex-shrink: 0;
}

.pt-done    { background: var(--purple-light); box-shadow: 0 0 8px var(--purple-light); }
.pt-coming  { background: var(--border); box-shadow: none; }

.pt-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  flex: 1;
}

.pt-badge {
  display: inline-block;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  margin-bottom: 0.5rem;
}

.badge-done     { background: rgba(26,163,107,0.15); color: #2fc98e; border: 1px solid rgba(26,163,107,0.3); }
.badge-progress { background: rgba(26,58,107,0.25); color: var(--accent-light); border: 1px solid rgba(45,91,163,0.4); }
.badge-coming   { background: rgba(255,255,255,0.1); color: var(--silver); border: 1px solid var(--border); }

.pt-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.3rem;
}

.pt-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ============================================
   TWO COL CARDS
   ============================================ */
.two-col-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 2rem;
}

.tcc-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem;
}

.tcc-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.8rem;
}

.tcc-text {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.8;
}

/* ============================================
   PROJECTS — badge variants
   ============================================ */
.project-badge {
  display: inline-block;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2rem 0.7rem;
  border-radius: 20px;
  margin-top: 0.8rem;
  background: rgba(255,255,255,0.1);
  color: var(--silver);
  border: 1px solid var(--border);
}

.badge-school {
  background: rgba(69, 69, 69, 0.189);
  color: var(--accent-light);
  border-color: rgba(255, 255, 255, 0.559);
}

.badge-cea {
  background: rgba(107, 47, 191, 0.564);
  color: var(--purple-light);
  border-color: rgba(251, 248, 255, 0.644);
}

/* ============================================
   FORMATION CARDS
   ============================================ */
.formation-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.formation-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem;
  transition: border-color var(--transition);
}

.formation-card:hover { border-color: rgba(107,47,191,0.35); }

.formation-year {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--purple-light);
  margin-bottom: 0.5rem;
}

.formation-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.formation-school {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ============================================
   SITUATIONS PROFESSIONNELLES
   ============================================ */
.sp-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 2.5rem;
  overflow: hidden;
  transition: border-color var(--transition);
}

.sp-card:hover {
  border-color: rgba(107,47,191,0.3);
}

.sp-header {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 2rem 2rem 1.5rem;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.sp-num {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 900;
  color: rgba(180,120,255,0.45);
  line-height: 1;
  flex-shrink: 0;
  letter-spacing: -0.04em;
  margin-top: -0.2rem;
}

.sp-header-body {
  flex: 1;
  min-width: 200px;
}

.sp-tag {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--purple-light);
  margin-bottom: 0.5rem;
}

.sp-title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 0.4rem;
}

.sp-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.sp-steps {
  padding: 0 2rem 0.5rem;
}

.sp-step {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 1.5rem;
  padding: 1.8rem 0;
  border-bottom: 1px solid var(--border);
}

.sp-step-last {
  border-bottom: none;
  padding-bottom: 2rem;
}

.sp-step-label {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--silver);
  padding-top: 0.2rem;
  font-weight: 600;
}

.sp-step-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--border);
  border: 1px solid var(--silver);
  flex-shrink: 0;
  margin-top: 3px;
}

.sp-step-dot-accent {
  background: var(--purple-light);
  border-color: var(--purple-light);
  box-shadow: 0 0 8px var(--purple-light);
}

.sp-step-body p {
  font-size: 0.93rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 0.9rem;
}

.sp-step-body p:last-child { margin-bottom: 0; }

.sp-step-body strong {
  color: var(--text);
  font-weight: 600;
}

.sp-list {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sp-list li {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  padding-left: 1.2rem;
  position: relative;
}

.sp-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--purple-light);
  font-size: 0.8rem;
}

.sp-result-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

.sp-result-item {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  background: rgba(26,163,107,0.05);
  border: 1px solid rgba(26,163,107,0.15);
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.sp-result-icon {
  color: #2fc98e;
  font-size: 0.9rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.sp-confidentiality-note {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  margin-top: 1.2rem;
  padding: 0.9rem 1.1rem;
  background: rgba(0, 106, 255, 0.05);
  border: 1px solid var(--border);
  border-left: 2px solid var(--silver);
  border-radius: var(--radius);
  font-size: 0.82rem;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.6;
}

.sp-conf-icon { flex-shrink: 0; font-style: normal; }

@media (max-width: 760px) {
  .sp-step { grid-template-columns: 1fr; gap: 0.6rem; }
  .sp-step-label { padding-top: 0; }
  .sp-result-grid { grid-template-columns: 1fr; }
  .sp-header { gap: 1rem; }
  .sp-num { font-size: 2.5rem; }
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-right { font-size: 0.75rem; color: var(--border); }

/* Scroll-top button */
#scroll-top {
  position: fixed;
  bottom: 2rem; right: 2rem;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--purple);
  color: #fff; border: none;
  font-size: 18px; cursor: pointer;
  opacity: 0; pointer-events: none;
  transition: opacity var(--transition);
  box-shadow: 0 4px 12px var(--glow);
  z-index: 200;
}

#scroll-top.visible { opacity: 1; pointer-events: auto; }

/* ============================================
   RESPONSIVE — nouveaux composants
   ============================================ */
@media (max-width: 1000px) {
  .missions-grid { grid-template-columns: repeat(2, 1fr); }
  .cea-stats-grid { grid-template-columns: repeat(3, 1fr); }
  .directions-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .formation-cards { grid-template-columns: 1fr; }
  .two-col-cards { grid-template-columns: 1fr; }
  .alt-header-card { flex-direction: column; }
}

@media (max-width: 640px) {
  .missions-grid { grid-template-columns: 1fr; }
  .cea-stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.competences-referentiel {
  margin-top: 2rem;
  padding: 1.5rem;
  border-left: 3px solid var(--accent, #4f8ef7);
  background: rgba(79, 142, 247, 0.05);
  border-radius: 0 8px 8px 0;
}

.competences-referentiel h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted, #888);
  margin-bottom: 1rem;
}

.competences-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.competence-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  backdrop-filter: blur(6px);
  border-radius: 6px;
  padding: 0.4rem 0.75rem;
  font-size: 0.85rem;
}

.competence-badge .code {
  font-weight: 700;
  color: #FFFFFF;
  text-shadow: 0 0 8px rgba(255,255,255,0.6);
  white-space: nowrap;
}

.competence-badge .label {
  color: rgba(255, 255, 255, 0.9);
}

/* ============================================
   FOND DÉGRADÉ GLOBAL
   ============================================ */
body {
  background: #08080F;
  background-attachment: fixed;
  min-height: 100vh;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
    background: #000000;
  background-attachment: fixed;
}

/* sections dark n'écrasent plus le fond */
.section-dark {
  background: rgba(0, 0, 0, 0.25) !important;
  backdrop-filter: blur(0px);
}

/* cards semi-transparentes pour laisser passer le dégradé */
.bg-card-override,
.project-card,
.cea-stat-card,
.cea-block-card,
.mission-card,
.formation-card,
.about-info,
.alt-header-card,
.pt-content,
.tcc-card,
.sp-card,
.direction-item {
  background: rgba(255, 255, 255, 0.05) !important;
  backdrop-filter: blur(10px);
  border-color: rgba(255, 255, 255, 0.1) !important;
}

/* ============================================
   MIX-BLEND-MODE SUR LES GROS TITRES
   ============================================ */
.hero-title .line-1,
.hero-title .line-2,
.section-title,
.contact-title,
.sp-title,
.alt-poste,
.cea-block-title,
.direction-abbr,
.timeline-content h3,
.project-card h3,
.formation-title,
.tcc-title,
.pt-title {
  color: #ffffff;
  mix-blend-mode: difference;
}
