/* ===========================
   VARIABLES & RESET
   =========================== */
:root {
  --bg: #0a0c10;
  --bg-alt: #0f1117;
  --surface: #13161f;
  --surface-2: #1a1e2a;
  --border: rgba(255,255,255,0.07);
  --accent: #3b82f6;
  --accent-2: #6366f1;
  --accent-glow: rgba(59, 130, 246, 0.25);
  --text: #e8eaf0;
  --text-muted: #8892a4;
  --text-dim: #4a5568;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(0,0,0,0.5);
  --transition: 0.25s cubic-bezier(0.4,0,0.2,1);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}

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

/* ===========================
   TYPOGRAPHY
   =========================== */
h1, h2, h3, h4 {
  font-family: 'Syne', sans-serif;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }
em { font-style: normal; color: var(--accent); }

/* ===========================
   NAVBAR
   =========================== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  height: 64px;
  background: rgba(10, 12, 16, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--accent);
  transition: all var(--transition);
  flex-shrink: 0;
}
.nav-logo:hover {
  background: rgba(59,130,246,0.15);
  border-color: rgba(59,130,246,0.4);
  color: var(--accent);
}

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

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.4rem 0.85rem;
  border-radius: 8px;
  color: var(--text-muted);
  transition: all var(--transition);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: var(--surface-2);
}
.nav-links a.active { color: var(--accent); }

.nav-burger {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.4rem;
  cursor: pointer;
}

/* ===========================
   HERO (HOME)
   =========================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4rem;
  padding: 8rem 2.5rem 4rem;
  position: relative;
  overflow: hidden;
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(59,130,246,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59,130,246,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}
.hero-bg-grid::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(59,130,246,0.12), transparent 70%);
}

.hero-content {
  max-width: 560px;
  position: relative;
  animation: fadeUp 0.8s ease both;
}

.hero-tag, .section-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(59,130,246,0.1);
  border: 1px solid rgba(59,130,246,0.25);
  border-radius: 100px;
  padding: 0.3rem 0.85rem;
  margin-bottom: 1rem;
}

.hero-title {
  margin-bottom: 1.25rem;
  color: var(--text);
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-weight: 300;
}
.hero-desc strong { color: var(--text); font-weight: 500; }

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

/* Hero card */
.hero-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  width: 280px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
  animation: fadeUp 0.8s 0.15s ease both;
  box-shadow: var(--shadow);
}
.hero-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(59,130,246,0.06), transparent 60%);
  pointer-events: none;
}

.profile-img-wrap { display: flex; justify-content: center; }
.profile-img-placeholder {
  width: 96px; height: 96px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: flex; align-items: center; justify-content: center;
  font-family: 'Syne', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: white;
  box-shadow: 0 0 0 3px rgba(59,130,246,0.2), 0 0 0 6px rgba(59,130,246,0.08);
}

.info-block { display: flex; flex-direction: column; gap: 0.75rem; }
.info-item { display: flex; flex-direction: column; gap: 0.1rem; }
.info-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-dim); font-weight: 600; }
.info-value { font-size: 0.9rem; color: var(--text-muted); }

/* ===========================
   PAGE HERO (inner pages)
   =========================== */
.page-hero {
  padding: 9rem 2.5rem 4rem;
  position: relative;
  overflow: hidden;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.page-hero-content {
  max-width: 640px;
  margin: 0 auto;
  position: relative;
  animation: fadeUp 0.7s ease both;
}

.page-hero p {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-top: 1rem;
  font-weight: 300;
}

/* ===========================
   BUTTONS
   =========================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.65rem 1.4rem;
  border-radius: 10px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-primary {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}
.btn-primary:hover {
  background: #2563eb;
  border-color: #2563eb;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(59,130,246,0.35);
}

.btn-outline {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--border);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.btn-full { width: 100%; justify-content: center; }
.btn-sm { padding: 0.45rem 1rem; font-size: 0.82rem; }

/* ===========================
   SECTIONS
   =========================== */
.section { padding: 5rem 2.5rem; }
.section-alt { background: var(--bg-alt); }
.container { max-width: 1100px; margin: 0 auto; }

.section-header {
  margin-bottom: 3rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}

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

.about-photo-wrap {
  margin-bottom: 1.5rem;
}
.about-photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(59,130,246,0.3);
  box-shadow: 0 0 0 6px rgba(59,130,246,0.08), var(--shadow);
  display: block;
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-weight: 300;
}
.about-text strong { color: var(--text); font-weight: 500; }

.skills-wrap h3 { margin-bottom: 1.5rem; }
.skill-list { display: flex; flex-direction: column; gap: 1rem; }
.skill-item {}
.skill-name { font-size: 0.9rem; color: var(--text-muted); display: block; margin-bottom: 0.4rem; }
.skill-bar {
  height: 6px;
  background: var(--surface-2);
  border-radius: 100px;
  overflow: hidden;
}
.skill-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 100px;
  animation: fillBar 1.2s ease both;
}

@keyframes fillBar {
  from { width: 0 !important; }
}

/* ===========================
   TIMELINE
   =========================== */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  padding-left: 2rem;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 7px; top: 8px; bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), transparent);
}

.timeline-item {
  position: relative;
  padding-left: 1.5rem;
  padding-bottom: 2.5rem;
}
.timeline-dot {
  position: absolute;
  left: -1.5rem;
  top: 6px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg-alt);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.2);
}
.timeline-date {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  font-weight: 600;
  display: block;
  margin-bottom: 0.3rem;
}
.timeline-content h3 { margin-bottom: 0.25rem; }
.timeline-content p { color: var(--text-muted); font-size: 0.92rem; }

.badge-alt {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  background: rgba(34,197,94,0.12);
  color: #4ade80;
  border: 1px solid rgba(34,197,94,0.2);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  vertical-align: middle;
  margin-left: 0.5rem;
  font-family: 'DM Sans', sans-serif;
}

/* ===========================
   CARDS (réalisations)
   =========================== */
.filter-bar {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.filter-btn {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.45rem 1.1rem;
  border-radius: 100px;
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
}
.filter-btn:hover { border-color: var(--accent); color: var(--accent); }
.filter-btn.active { background: var(--accent); border-color: var(--accent); color: white; }

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: all var(--transition);
  animation: fadeUp 0.5s ease both;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.card:hover {
  border-color: rgba(59,130,246,0.35);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.4), 0 0 0 1px rgba(59,130,246,0.1);
}

.card-icon { font-size: 2rem; }
.card-body { flex: 1; }
.card-tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 0.5rem;
}
.card-body h3 { margin-bottom: 0.5rem; font-size: 1.05rem; }
.card-body p { color: var(--text-muted); font-size: 0.9rem; font-weight: 300; }

.card-techs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.75rem;
}
.card-techs span {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.25rem 0.65rem;
  border-radius: 100px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.card-link, .card-link {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent);
  transition: gap var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.card-link:hover { gap: 0.6rem; }
.card.hidden { display: none; }

/* ===========================
   TABLEAU DE SYNTHESE
   =========================== */
.tableau-intro {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  margin-bottom: 2.5rem;
  color: var(--text-muted);
}

.tableau-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  margin-bottom: 2.5rem;
}

.synth-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.synth-table thead {
  background: var(--surface-2);
}

.synth-table th {
  padding: 1rem 1.2rem;
  text-align: center;
  font-family: 'Syne', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--text-muted);
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
}
.synth-table th:first-child { text-align: left; }

.synth-table td {
  padding: 0.9rem 1.2rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  vertical-align: middle;
}
.synth-table tr:last-child td { border-bottom: none; }
.synth-table tr:hover td { background: var(--surface); }

.realisation-name { text-align: left !important; color: var(--text) !important; font-weight: 500; }

.check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px; height: 24px;
  background: rgba(59,130,246,0.12);
  border-radius: 50%;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 700;
}

.context-badge {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: 100px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.context-badge.tp { background: rgba(99,102,241,0.15); color: #818cf8; }
.context-badge.stage { background: rgba(34,197,94,0.12); color: #4ade80; }
.context-badge.perso { background: rgba(251,146,60,0.12); color: #fb923c; }

.legende {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  margin-bottom: 3rem;
}
.legende h3 { margin-bottom: 1rem; }
.legende-items { display: flex; flex-wrap: wrap; gap: 1.5rem; color: var(--text-muted); font-size: 0.9rem; align-items: center; }
.legende-item { display: flex; align-items: center; gap: 0.5rem; }

.blocs-wrap h3 { margin-bottom: 1.5rem; }
.blocs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}
.bloc-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: all var(--transition);
}
.bloc-card:hover { border-color: rgba(59,130,246,0.35); }
.bloc-num {
  font-family: 'Syne', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--accent);
  display: block;
  margin-bottom: 0.5rem;
}
.bloc-card h4 { font-size: 0.92rem; margin-bottom: 0.5rem; }
.bloc-card p { font-size: 0.82rem; color: var(--text-muted); font-weight: 300; }

/* ===========================
   VEILLE
   =========================== */
.veille-intro {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 2.5rem;
  margin-bottom: 0.5rem;
}
.veille-sujet h2 { margin-bottom: 0.75rem; }
.veille-sujet p { color: var(--text-muted); font-weight: 300; }
.veille-methode {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.veille-methode h3 { margin-bottom: 1rem; }
.sources-list { display: flex; flex-direction: column; gap: 0.5rem; }
.sources-list li { font-size: 0.9rem; color: var(--text-muted); }
.sources-list a { color: var(--accent); transition: opacity var(--transition); }
.sources-list a:hover { opacity: 0.75; }

.veille-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.veille-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: all var(--transition);
}
.veille-card:hover {
  border-color: rgba(59,130,246,0.3);
  transform: translateY(-3px);
}
.veille-card-header { display: flex; justify-content: space-between; align-items: center; }
.veille-date { font-size: 0.78rem; color: var(--text-dim); font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; }

.veille-cat {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.veille-cat.secu { background: rgba(239,68,68,0.12); color: #f87171; }
.veille-cat.reseau { background: rgba(59,130,246,0.12); color: #60a5fa; }
.veille-cat.infra { background: rgba(34,197,94,0.1); color: #4ade80; }

.veille-card h3 { font-size: 1rem; }
.veille-card p { font-size: 0.88rem; color: var(--text-muted); font-weight: 300; }

.veille-analyse {
  background: var(--surface-2);
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.veille-analyse strong { color: var(--text); }

/* ===========================
   E6
   =========================== */
.e6-intro {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 2.5rem;
  margin-bottom: 0.5rem;
}
.e6-desc h2 { margin-bottom: 0.75rem; }
.e6-desc p { color: var(--text-muted); font-weight: 300; margin-bottom: 0.75rem; }
.e6-format {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.e6-format h3 { margin-bottom: 1rem; }
.format-list { display: flex; flex-direction: column; gap: 0.6rem; }
.format-list li { font-size: 0.9rem; color: var(--text-muted); }
.format-list strong { color: var(--text); }

.sps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
}

.sps-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition);
}
.sps-card:hover {
  border-color: rgba(59,130,246,0.3);
  transform: translateY(-3px);
}

.sps-number {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white;
  font-family: 'Syne', sans-serif;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding: 0.5rem 1.5rem;
}

.sps-content { padding: 1.5rem; display: flex; flex-direction: column; gap: 0.75rem; flex: 1; }
.sps-content h3 { font-size: 1.02rem; }
.sps-meta { display: flex; gap: 1rem; flex-wrap: wrap; font-size: 0.82rem; color: var(--text-dim); }
.sps-content p { font-size: 0.88rem; color: var(--text-muted); font-weight: 300; }
.sps-competences { font-size: 0.85rem; }
.sps-competences strong { color: var(--text-muted); display: block; margin-bottom: 0.4rem; font-size: 0.82rem; }

.e6-download {
  margin-top: 3rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
}
.e6-download h3 { margin-bottom: 0.5rem; }
.e6-download p { color: var(--text-muted); margin-bottom: 1.5rem; }
.download-btns { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }

/* ===========================
   CERTIFICATIONS
   =========================== */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.cert-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: all var(--transition);
}
.cert-card:hover {
  border-color: rgba(59,130,246,0.3);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.cert-card.featured {
  border-color: rgba(59,130,246,0.3);
  background: linear-gradient(135deg, var(--surface) 80%, rgba(59,130,246,0.06));
}
.cert-card.add-cert {
  border-style: dashed;
  opacity: 0.6;
}

.cert-logo { font-size: 2.2rem; }
.cert-org { font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); display: block; margin-bottom: 0.4rem; }
.cert-body { flex: 1; }
.cert-body h3 { margin-bottom: 0.5rem; }
.cert-body p { font-size: 0.88rem; color: var(--text-muted); font-weight: 300; }
.cert-date { margin-top: 0.75rem; font-size: 0.82rem; color: var(--text-dim); }

/* ===========================
   E6 ACTIVITÉS
   =========================== */
.e6-activites-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
  gap: 2rem;
}

.activite-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: all var(--transition);
}
.activite-card:hover {
  border-color: rgba(59,130,246,0.35);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.activite-header {
  background: linear-gradient(135deg, var(--surface-2), rgba(59,130,246,0.08));
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}
.activite-num-wrap { display: flex; align-items: center; gap: 0.75rem; }
.activite-num {
  font-family: 'Syne', sans-serif;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.activite-env {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  background: rgba(139,92,246,0.12);
  color: #a78bfa;
  border: 1px solid rgba(139,92,246,0.2);
}
.activite-logo { font-size: 1.8rem; }

.activite-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; gap: 1rem; }
.activite-body h3 { font-size: 1.1rem; }
.activite-body > p { font-size: 0.88rem; color: var(--text-muted); font-weight: 300; }

.activite-details {
  background: var(--surface-2);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
}
.activite-details h4 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.activite-tasks {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.activite-tasks li {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 300;
  padding-left: 1.1rem;
  position: relative;
}
.activite-tasks li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.75rem;
}

.activite-footer {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--border);
  background: rgba(0,0,0,0.15);
}
.activite-footer .btn { width: 100%; justify-content: center; }

@media (max-width: 700px) {
  .e6-activites-grid { grid-template-columns: 1fr; }
}

/* ===========================
   EMPTY STATE & FICHIERS
   =========================== */
.empty-state {
  text-align: center;
  padding: 5rem 2rem;
  border: 1.5px dashed var(--border);
  border-radius: var(--radius-lg);
  color: var(--text-muted);
}
.empty-icon { font-size: 3rem; margin-bottom: 1rem; }
.empty-state h3 { margin-bottom: 0.5rem; color: var(--text); }
.empty-state p { font-weight: 300; font-size: 0.95rem; }

.fichier-block {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all var(--transition);
}
.fichier-block:hover { border-color: rgba(59,130,246,0.3); }
.fichier-icon { font-size: 2.5rem; flex-shrink: 0; }
.fichier-info { flex: 1; }
.fichier-info h3 { margin-bottom: 0.2rem; }
.fichier-name { font-size: 0.82rem; color: var(--accent); font-weight: 500; margin-bottom: 0.4rem; font-family: monospace; }
.fichier-desc { font-size: 0.88rem; color: var(--text-muted); font-weight: 300; }

/* ===========================
   FRISE CHRONOLOGIQUE
   =========================== */
.frise-wrap {
  position: relative;
  padding: 1rem 0 2rem;
}
.frise-line {
  position: absolute;
  left: 50%;
  top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), var(--accent-2), rgba(59,130,246,0.1));
  transform: translateX(-50%);
}
.frise-step {
  display: flex;
  align-items: flex-start;
  position: relative;
  padding-bottom: 1rem;
}
.frise-step.left {
  flex-direction: row-reverse;
  padding-right: calc(50% + 2.5rem);
  padding-left: 0;
  text-align: right;
}
.frise-step.right {
  margin-left: 50%;
  padding-left: 2.5rem;
  width: 50%;
}
.frise-dot-wrap { position: absolute; top: 1.2rem; }
.frise-step.left .frise-dot-wrap { right: calc(50% - 8px); transform: translateX(50%); left: auto; }
.frise-step.right .frise-dot-wrap { left: -8px; }
.frise-dot {
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.2);
  position: relative; z-index: 2;
}
.current-dot {
  box-shadow: 0 0 0 3px rgba(34,197,94,0.25), 0 0 12px rgba(34,197,94,0.3) !important;
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 3px rgba(34,197,94,0.25), 0 0 12px rgba(34,197,94,0.3); }
  50% { box-shadow: 0 0 0 6px rgba(34,197,94,0.15), 0 0 20px rgba(34,197,94,0.2); }
}
.frise-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex; flex-direction: column; gap: 0.75rem;
  transition: all var(--transition);
  width: 100%;
}
.frise-card:hover { border-color: rgba(59,130,246,0.3); transform: translateY(-2px); }
.current-card {
  border-color: rgba(34,197,94,0.3) !important;
  background: linear-gradient(135deg, var(--surface), rgba(34,197,94,0.04)) !important;
}
.frise-card-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; }
.frise-step.left .frise-card-header { flex-direction: row-reverse; }
.frise-period { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-dim); font-weight: 600; }
.frise-badge { font-size: 0.72rem; font-weight: 700; padding: 0.25rem 0.7rem; border-radius: 100px; letter-spacing: 0.04em; text-transform: uppercase; }
.frise-card h3 { font-size: 1.1rem; }
.frise-step.left .frise-card h3 { text-align: right; }
.frise-tools { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.frise-step.left .frise-tools { justify-content: flex-end; }
.frise-tool { font-size: 0.78rem; font-weight: 600; padding: 0.3rem 0.75rem; border-radius: 8px; border: 1px solid var(--border); }
.frise-tool.eset    { background: rgba(59,130,246,0.08); color: #60a5fa; border-color: rgba(59,130,246,0.2); }
.frise-tool.glpi    { background: rgba(251,146,60,0.08); color: #fb923c; border-color: rgba(251,146,60,0.2); }
.frise-tool.ninja   { background: rgba(139,92,246,0.08); color: #a78bfa; border-color: rgba(139,92,246,0.2); }
.frise-tool.acronis { background: rgba(239,68,68,0.08); color: #f87171; border-color: rgba(239,68,68,0.2); }
.frise-tool.action1 { background: rgba(34,197,94,0.08); color: #4ade80; border-color: rgba(34,197,94,0.2); }
.frise-card p { font-size: 0.88rem; color: var(--text-muted); font-weight: 300; text-align: left; }
.frise-step.left .frise-card p { text-align: right; }
.frise-bilan {
  background: var(--surface-2);
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  padding: 0.75rem 1rem;
  font-size: 0.83rem; color: var(--text-muted); text-align: left;
}
.frise-step.left .frise-bilan { border-left: none; border-right: 3px solid var(--accent); border-radius: 8px 0 0 8px; text-align: right; }
.current-bilan { border-left-color: #22c55e !important; }
.frise-arrow { text-align: center; color: var(--text-dim); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; padding: 0.75rem 0; position: relative; z-index: 2; }
.veille-badge { font-size: 0.72rem; font-weight: 700; padding: 0.25rem 0.65rem; border-radius: 100px; text-transform: uppercase; letter-spacing: 0.04em; }
.veille-badge.gratuit  { background: rgba(34,197,94,0.12); color: #4ade80; }
.veille-badge.payant   { background: rgba(239,68,68,0.1); color: #f87171; }
.veille-badge.freemium { background: rgba(251,146,60,0.1); color: #fb923c; }

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

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

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 900px) {
  .hero { flex-direction: column; text-align: center; padding-top: 7rem; gap: 2.5rem; }
  .hero-cta { justify-content: center; }
  .hero-card { width: 100%; max-width: 360px; }
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .veille-intro, .e6-intro { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .navbar { padding: 0 1.25rem; }
  .nav-links { display: none; flex-direction: column; position: fixed; top: 64px; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--border); padding: 1rem 1.25rem; gap: 0.25rem; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.6rem 0.85rem; font-size: 1rem; }
  .nav-burger { display: block; }
  .section, .hero { padding-left: 1.25rem; padding-right: 1.25rem; }
  .page-hero { padding: 7rem 1.25rem 3rem; }
  h1 { font-size: 2.2rem; }
  .cards-grid, .veille-grid, .sps-grid, .cert-grid, .blocs-grid { grid-template-columns: 1fr; }
  .tableau-wrap { border-radius: var(--radius); }
  .synth-table th, .synth-table td { padding: 0.7rem 0.85rem; font-size: 0.82rem; }
  /* Frise mobile */
  .frise-line { left: 16px; }
  .frise-step.left,
  .frise-step.right {
    width: 100%; margin-left: 0;
    padding-left: 3rem; padding-right: 0;
    flex-direction: row; text-align: left;
  }
  .frise-step.left .frise-dot-wrap,
  .frise-step.right .frise-dot-wrap { left: 7px; right: auto; transform: none; }
  .frise-step.left .frise-card-header { flex-direction: row; }
  .frise-step.left .frise-tools { justify-content: flex-start; }
  .frise-step.left .frise-card p,
  .frise-step.left .frise-card h3 { text-align: left; }
  .frise-step.left .frise-bilan { border-left: 3px solid var(--accent); border-right: none; border-radius: 0 8px 8px 0; text-align: left; }
}

/* ===========================
   PDF PREVIEWS
   =========================== */

/* Grand aperçu CV (index.html) */
.pdf-preview-block {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 2.5rem;
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.pdf-thumb-link { display: block; text-decoration: none; }

.pdf-thumb {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #fff;
  cursor: pointer;
  height: 420px;
}
.pdf-thumb-sm { height: 240px; }

.pdf-thumb-iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  pointer-events: none;
}

.pdf-thumb-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10,12,16,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
  border-radius: var(--radius);
}
.pdf-thumb-overlay span {
  font-size: 0.9rem;
  font-weight: 600;
  color: white;
  background: var(--accent);
  padding: 0.5rem 1.1rem;
  border-radius: 100px;
}
.pdf-thumb-link:hover .pdf-thumb-overlay { opacity: 1; }
.pdf-thumb-link:hover .pdf-thumb { border-color: var(--accent); }

.pdf-preview-actions h3 { margin-bottom: 0.5rem; }
.pdf-preview-actions p { color: var(--text-muted); font-size: 0.92rem; font-weight: 300; }

/* Mini aperçu E6 */
.pdf-preview-mini {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}
.pdf-preview-mini .pdf-thumb-link { flex-shrink: 0; width: 140px; }
.pdf-preview-mini .pdf-thumb-sm { height: 180px; width: 140px; }

.pdf-mini-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  justify-content: center;
}
.pdf-filename {
  font-size: 0.8rem;
  color: var(--text-dim);
  font-family: 'Courier New', monospace;
  word-break: break-all;
}

/* PDF viewer iframe (tableau) */
.pdf-viewer-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 1.5rem;
}
.pdf-viewer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
  flex-wrap: wrap;
  gap: 0.75rem;
}
.pdf-viewer-header h3 { font-size: 1rem; margin: 0; }
.pdf-viewer-header span { font-size: 0.82rem; color: var(--text-dim); }
.pdf-viewer-iframe {
  width: 100%;
  height: 780px;
  border: none;
  display: block;
}
.pdf-fallback {
  display: none;
  padding: 3rem;
  text-align: center;
  color: var(--text-muted);
}

@media (max-width: 700px) {
  .pdf-preview-block { grid-template-columns: 1fr; }
  .pdf-thumb { height: 280px; }
  .pdf-preview-mini { flex-direction: column; }
  .pdf-preview-mini .pdf-thumb-link { width: 100%; }
  .pdf-preview-mini .pdf-thumb-sm { height: 200px; width: 100%; }
  .pdf-viewer-iframe { height: 500px; }
}

/* ===========================
   NAV LOGO — MAISON
   =========================== */
.nav-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 10px;
  background: rgba(59,130,246,0.1);
  border: 1px solid rgba(59,130,246,0.2);
  color: var(--accent);
  transition: all var(--transition);
  flex-shrink: 0;
}
.nav-logo:hover {
  background: rgba(59,130,246,0.2);
  border-color: var(--accent);
  opacity: 1;
}

/* ===========================
   FORMATION SECTION
   =========================== */
.formation-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
  align-items: start;
}

.formation-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: all var(--transition);
}
.formation-card:hover {
  border-color: rgba(59,130,246,0.3);
}

/* School card */
.school-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0;
}
.school-logo {
  width: 120px;
  height: 120px;
  object-fit: contain;
  border-radius: var(--radius);
}
.school-info h3 { font-size: 1.05rem; margin-bottom: 0.75rem; }
.school-info p { font-size: 0.9rem; color: var(--text-muted); font-weight: 300; margin-bottom: 0.6rem; }
.school-meta {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* BTS card */
.bts-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.bts-badge {
  font-family: 'Syne', sans-serif;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white;
  padding: 0.3rem 0.85rem;
  border-radius: 100px;
}
.bts-option {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  background: rgba(59,130,246,0.1);
  border: 1px solid rgba(59,130,246,0.2);
  padding: 0.25rem 0.7rem;
  border-radius: 100px;
}
.bts-card h3 { font-size: 1.05rem; }
.bts-card p { font-size: 0.9rem; color: var(--text-muted); font-weight: 300; margin-bottom: 0.6rem; }
.bts-topics {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin: 0.25rem 0 0.75rem;
}
.bts-topics li {
  font-size: 0.88rem;
  color: var(--text-muted);
  padding-left: 1.2rem;
  position: relative;
  font-weight: 300;
}
.bts-topics li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.78rem;
}
.bts-meta {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.bts-meta-item {
  font-size: 0.82rem;
  color: var(--text-muted);
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
}

@media (max-width: 900px) {
  .formation-grid { grid-template-columns: 1fr; }
}
