/* ============================================================
   LOUISROUSSEAUX.FR — Stylesheet
   Thème : Neon Noir / Dark Cinematic
   Polices : Syne (titres) + Plus Jakarta Sans (corps)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;1,400&display=swap');

/* === VARIABLES CSS === */
:root {
  --bg-0:           #04070f;
  --bg-1:           #080d1a;
  --bg-2:           #0d1424;
  --bg-3:           #131d33;
  --bg-nav:         rgba(8, 13, 26, 0.88);

  --accent-blue:    #5eaeff;
  --accent-purple:  #b994ff;
  --accent-teal:    #4ecdc4;
  --accent-warm:    #ffb347;

  --text-bright:    #f0f4ff;
  --text-primary:   #c8d3ea;
  --text-muted:     #6b7fa3;

  --border:         rgba(94, 174, 255, 0.1);
  --border-hover:   rgba(94, 174, 255, 0.28);
  --glow-blue:      0 0 30px rgba(94, 174, 255, 0.12);
  --glow-purple:    0 0 30px rgba(185, 148, 255, 0.12);

  --font-display:   'Syne', sans-serif;
  --font-body:      'Plus Jakarta Sans', sans-serif;

  --nav-height:     70px;
  --max-width:      1180px;
  --radius-sm:      8px;
  --radius-md:      14px;
  --radius-lg:      20px;
  --radius-xl:      28px;
  --transition:     all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.55s 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 {
  font-family: var(--font-body);
  background-color: var(--bg-1);
  color: var(--text-primary);
  line-height: 1.72;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Fond ambiant avec dégradés subtils */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 15%  8%,  rgba(94, 174, 255, 0.045) 0%, transparent 60%),
    radial-gradient(ellipse 55% 40% at 85% 92%,  rgba(185, 148, 255, 0.04) 0%, transparent 60%),
    radial-gradient(ellipse 40% 30% at 50% 50%,  rgba(78, 205, 196, 0.02) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* === TYPOGRAPHIE === */
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--text-bright); line-height: 1.15; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.gradient-text {
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* === NAVBAR === */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  height: var(--nav-height);
  background: var(--bg-nav);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: var(--transition);
}

.navbar.scrolled {
  border-bottom-color: rgba(94, 174, 255, 0.18);
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.5);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-badge {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  color: white;
  letter-spacing: -0.5px;
  flex-shrink: 0;
}

.logo-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  color: var(--text-bright);
  letter-spacing: -0.3px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  position: relative;
}

.nav-link:hover { color: var(--text-bright); background: rgba(94, 174, 255, 0.07); }

.nav-link.active {
  color: var(--text-bright);
  background: rgba(94, 174, 255, 0.1);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 3px;
  left: 50%;
  transform: translateX(-50%);
  width: 18px;
  height: 2px;
  background: var(--accent-blue);
  border-radius: 2px;
}

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

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

/* === HERO === */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding-top: var(--nav-height);
  overflow: hidden;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
}

.hero-orb-1 {
  width: 550px;
  height: 550px;
  background: var(--accent-blue);
  opacity: 0.07;
  top: -120px;
  right: -150px;
  animation: floatOrb 9s ease-in-out infinite;
}

.hero-orb-2 {
  width: 420px;
  height: 420px;
  background: var(--accent-purple);
  opacity: 0.07;
  bottom: -100px;
  left: -120px;
  animation: floatOrb 12s ease-in-out infinite reverse;
}

.hero-orb-3 {
  width: 300px;
  height: 300px;
  background: var(--accent-teal);
  opacity: 0.04;
  top: 40%;
  left: 50%;
  animation: floatOrb 15s ease-in-out infinite;
}

@keyframes floatOrb {
  0%, 100% { transform: translateY(0) scale(1); }
  50%       { transform: translateY(-28px) scale(1.06); }
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 820px;
  padding: 40px 24px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(94, 174, 255, 0.09);
  border: 1px solid rgba(94, 174, 255, 0.22);
  border-radius: 50px;
  padding: 7px 18px;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-blue);
  margin-bottom: 28px;
  animation: fadeInDown 0.6s ease both;
}

.hero-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-teal);
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(1.6); }
}

.hero-title {
  font-size: clamp(44px, 8.5vw, 86px);
  font-weight: 800;
  color: var(--text-bright);
  line-height: 1.04;
  letter-spacing: -2px;
  margin-bottom: 22px;
  animation: fadeInUp 0.7s ease 0.1s both;
}

.hero-subtitle {
  font-size: clamp(16px, 2.2vw, 19px);
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto 44px;
  font-weight: 400;
  line-height: 1.75;
  animation: fadeInUp 0.7s ease 0.2s both;
}

.hero-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.7s ease 0.3s both;
}

/* === BOUTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 26px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  letter-spacing: 0.1px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
  color: white;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(94, 174, 255, 0.38);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-hover);
}

.btn-outline:hover {
  background: rgba(94, 174, 255, 0.08);
  color: var(--text-bright);
  border-color: rgba(94, 174, 255, 0.42);
  transform: translateY(-3px);
}

/* === SECTIONS === */
.section {
  padding: 96px 0;
  position: relative;
  z-index: 1;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--accent-blue);
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(28px, 4.5vw, 46px);
  font-weight: 800;
  color: var(--text-bright);
  margin-bottom: 18px;
  letter-spacing: -1px;
}

.section-desc {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.75;
}

/* === GRILLE CARTES === */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 22px;
}

.card {
  display: block;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

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

.card:hover {
  background: var(--bg-3);
  border-color: var(--border-hover);
  transform: translateY(-5px);
  box-shadow: 0 22px 44px rgba(0,0,0,.45), var(--glow-blue);
}

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

.card-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 20px;
}

.card-icon.blue   { background: rgba(94, 174, 255, 0.14); }
.card-icon.purple { background: rgba(185, 148, 255, 0.14); }
.card-icon.teal   { background: rgba(78, 205, 196, 0.14); }
.card-icon.warm   { background: rgba(255, 179, 71, 0.14); }

.card-title {
  font-size: 19px;
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 10px;
}

.card-text {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 22px;
  line-height: 1.72;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-blue);
  transition: var(--transition);
}

.card:hover .card-link { gap: 10px; color: var(--accent-purple); }

/* === GRILLE 2 COLONNES (split) === */
.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

/* === PROGRESS BARS === */
.progress-item { margin-bottom: 22px; }

.progress-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 9px;
}

.progress-name { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.progress-percent { font-size: 13px; color: var(--accent-blue); font-weight: 700; }

.progress-bar {
  height: 6px;
  background: rgba(255,255,255,0.06);
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-purple));
  border-radius: 4px;
  width: 0;
  transition: width 1.3s cubic-bezier(.4,0,.2,1);
}

/* === PAGE HERO (sous-pages) === */
.page-hero {
  padding: 150px 0 80px;
  position: relative;
  overflow: hidden;
}

.page-hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 22px;
}

.breadcrumb a { color: var(--accent-blue); }
.breadcrumb-sep { opacity: 0.4; }

.page-title {
  font-size: clamp(36px, 6vw, 66px);
  font-weight: 800;
  color: var(--text-bright);
  letter-spacing: -1.5px;
  margin-bottom: 18px;
}

.page-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 520px;
  line-height: 1.75;
}

/* === TIMELINE (CV) === */
.timeline {
  position: relative;
  padding-left: 34px;
}

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

.timeline-item {
  position: relative;
  padding-bottom: 44px;
}

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

.timeline-item::before {
  content: '';
  position: absolute;
  left: -41px;
  top: 5px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent-blue);
  border: 3px solid var(--bg-1);
  box-shadow: 0 0 12px rgba(94, 174, 255, 0.5);
}

.timeline-date {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-blue);
  margin-bottom: 8px;
}

.timeline-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 4px;
}

.timeline-company {
  font-size: 14px;
  color: var(--accent-purple);
  font-weight: 600;
  margin-bottom: 12px;
}

.timeline-desc {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.75;
}

/* === SKILL TAGS === */
.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  transition: var(--transition);
}

.skill-tag:hover {
  border-color: var(--border-hover);
  color: var(--text-bright);
  background: rgba(94, 174, 255, 0.07);
}

.skill-tag .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-teal);
  flex-shrink: 0;
}

/* === TAGS COLORÉS === */
.tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.4px;
}

.tag-blue   { background: rgba(94, 174, 255, 0.1);  color: var(--accent-blue);   }
.tag-purple { background: rgba(185, 148, 255, 0.1); color: var(--accent-purple); }
.tag-teal   { background: rgba(78, 205, 196, 0.1);  color: var(--accent-teal);   }
.tag-warm   { background: rgba(255, 179, 71, 0.1);  color: var(--accent-warm);   }

/* === CV SIDEBAR === */
.cv-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 40px;
  align-items: start;
}

.cv-sidebar {
  position: sticky;
  top: calc(var(--nav-height) + 24px);
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.cv-profile-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px 24px;
  text-align: center;
}

.cv-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 800;
  color: white;
  margin: 0 auto 20px;
  box-shadow: 0 8px 24px rgba(94, 174, 255, 0.3);
}

.cv-name { font-size: 22px; font-weight: 800; color: var(--text-bright); margin-bottom: 6px; }
.cv-role { font-size: 14px; color: var(--accent-blue); font-weight: 600; margin-bottom: 24px; }

.cv-contact-list { display: flex; flex-direction: column; gap: 12px; text-align: left; }

.cv-contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--text-muted);
}

.cv-contact-icon { font-size: 15px; width: 20px; text-align: center; flex-shrink: 0; }

.info-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.info-card-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}

/* === FORMATION PAGE === */
.chapter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
}

.chapter-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: var(--transition);
}

.chapter-card:hover { border-color: var(--border-hover); background: var(--bg-3); transform: translateY(-3px); }

.chapter-num {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  min-width: 30px;
}

.chapter-title { font-size: 15px; font-weight: 600; color: var(--text-bright); margin-bottom: 4px; }
.chapter-desc  { font-size: 13px; color: var(--text-muted); line-height: 1.6; }

/* === PASSION CARDS === */
.passion-block {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: var(--transition);
}

.passion-block:hover { border-color: var(--border-hover); box-shadow: 0 24px 50px rgba(0,0,0,.45); }

.passion-block-header {
  padding: 36px 32px 24px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  border-bottom: 1px solid var(--border);
}

.passion-icon-wrap {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  flex-shrink: 0;
}

.passion-icon-wrap.blue   { background: linear-gradient(135deg, rgba(94,174,255,.18), rgba(94,174,255,.04)); }
.passion-icon-wrap.purple { background: linear-gradient(135deg, rgba(185,148,255,.18), rgba(185,148,255,.04)); }
.passion-icon-wrap.teal   { background: linear-gradient(135deg, rgba(78,205,196,.18), rgba(78,205,196,.04)); }

.passion-block-body { padding: 24px 32px 32px; }

.passion-tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

/* === HIGHLIGHT BOX === */
.highlight-box {
  background: linear-gradient(135deg, rgba(94,174,255,.06), rgba(185,148,255,.06));
  border: 1px solid rgba(94,174,255,.18);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  position: relative;
  overflow: hidden;
}

.highlight-box::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--accent-blue), var(--accent-purple));
  border-radius: 0 2px 2px 0;
}

/* === DIVIDER === */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-hover), transparent);
}

/* === FOOTER === */
footer {
  background: var(--bg-0);
  border-top: 1px solid var(--border);
  padding: 44px 0;
}

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

.footer-logo { font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--text-bright); }
.footer-copy  { font-size: 14px; color: var(--text-muted); }

.footer-nav {
  display: flex;
  gap: 24px;
}

.footer-nav a { font-size: 14px; color: var(--text-muted); transition: var(--transition); }
.footer-nav a:hover { color: var(--accent-blue); }

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

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible { opacity: 1; transform: translateY(0); }

.reveal-delay-1 { transition-delay: 0.10s; }
.reveal-delay-2 { transition-delay: 0.20s; }
.reveal-delay-3 { transition-delay: 0.30s; }
.reveal-delay-4 { transition-delay: 0.40s; }
.reveal-delay-5 { transition-delay: 0.50s; }

/* Curseur clignotant */
.typing-cursor::after {
  content: '|';
  animation: blink 0.72s step-end infinite;
  color: var(--accent-blue);
}

@keyframes blink {
  from, to { opacity: 1; }
  50% { opacity: 0; }
}

/* === SCROLLBAR === */
::-webkit-scrollbar { width: 7px; }
::-webkit-scrollbar-track { background: var(--bg-0); }
::-webkit-scrollbar-thumb { background: rgba(94,174,255,.18); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(94,174,255,.32); }

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .cv-grid { grid-template-columns: 1fr; }
  .cv-sidebar { position: static; }
}

@media (max-width: 768px) {
  .split-grid { grid-template-columns: 1fr; gap: 40px; }

  .nav-menu {
    position: fixed;
    top: var(--nav-height);
    left: 0; right: 0;
    background: var(--bg-0);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 16px;
    gap: 4px;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    z-index: 999;
  }

  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav-link { width: 100%; text-align: center; }
  .nav-toggle { display: flex; }

  .hero-cta { flex-direction: column; align-items: center; }
  .passion-block-header { flex-direction: column; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-nav { flex-wrap: wrap; justify-content: center; }
}

@media (max-width: 480px) {
  .hero-title { letter-spacing: -1px; }
  .cards-grid { grid-template-columns: 1fr; }
}
