/* =====================================================
   PORTFOLIO – CLAUVIN MWIMBA
   style.css – Fichier CSS complet
   ===================================================== */

/* ===== Mes Google Fonts ===== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;600;700;800&display=swap');

/* ===== Reset & Base ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

/* ===== Variables CSS ===== */
:root {
  --body-color: #F0F4FF;
  --nav-color: #1a2744;
  --side-nav: #0d1630;
  --text-color: #FFF;
  --search-bar: #F2F2F2;
  --search-text: #010718;
  --accent: #4070F4;
  --accent-light: #6690ff;
  --accent-glow: rgba(64, 112, 244, 0.25);
  --card-bg: #ffffff;
  --card-shadow: 0 4px 24px rgba(0,0,0,0.08);
  --section-alt: #EBF0FF;
  --text-dark: #1a2744;
  --text-mid: #4a5568;
  --text-light: #718096;
  --border: #e2e8f0;
  --radius: 14px;
  --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

body.dark {
  --body-color: #0d1117;
  --nav-color: #161b27;
  --side-nav: #0d1117;
  --text-color: #e2e8f0;
  --search-bar: #1e2433;
  --search-text: #e2e8f0;
  --card-bg: #161b27;
  --card-shadow: 0 4px 24px rgba(0,0,0,0.4);
  --section-alt: #111827;
  --text-dark: #e2e8f0;
  --text-mid: #a0aec0;
  --text-light: #718096;
  --border: #2d3748;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--body-color);
  color: var(--text-dark);
  transition: background-color 0.4s ease, color 0.4s ease;
}

a { text-decoration: none; }

img { max-width: 100%; }


/* =====================================================
   NAVIGATION
   ===================================================== */
nav {
  position: fixed;
  top: 0;
  left: 0;
  height: 70px;
  width: 100%;
  background-color: var(--nav-color);
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0,0,0,0.2);
  transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

nav.scrolled {
  background-color: rgba(26, 39, 68, 0.97);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

body.dark nav,
body.dark nav.scrolled {
  background-color: rgba(22, 27, 39, 0.97);
}

nav .nav-bar {
  position: relative;
  height: 100%;
  width: 100%;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

nav .nav-bar .sidebarOpen {
  color: var(--text-color);
  font-size: 26px;
  cursor: pointer;
  display: none;
  padding: 4px;
  transition: var(--transition);
}

nav .nav-bar .sidebarOpen:hover {
  color: var(--accent-light);
}

nav .nav-bar .logo a {
  font-family: 'Sora', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--text-color);
  letter-spacing: 0.5px;
  transition: var(--transition);
}

nav .nav-bar .logo a:hover {
  color: var(--accent-light);
}

.menu .logo-toggle {
  display: none;
}

/* ---- Nav Links avec animation hover ---- */
.nav-bar .nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 4px;
}

.nav-links li a {
  position: relative;
  display: inline-block;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  padding: 8px 14px;
  border-radius: 8px;
  transition: var(--transition);
  overflow: hidden;
}

/* Fond animé au hover */
.nav-links li a::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.1);
  border-radius: 8px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-links li a:hover::before {
  transform: scaleX(1);
}

/* Barre bleue en bas */
.nav-links li a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 14px;
  right: 14px;
  height: 2px;
  background: var(--accent-light);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-links li a:hover {
  color: #fff;
}

.nav-links li a:hover::after,
.nav-links li a.active::after {
  transform: scaleX(1);
}

.nav-links li a.active {
  color: #fff;
  background: rgba(64,112,244,0.2);
}

/* ---- Dark Light & Search ---- */
.nav-bar .darkLight-searchBox {
  display: flex;
  align-items: center;
  gap: 4px;
}

.darkLight-searchBox .dark-light,
.darkLight-searchBox .searchToggle {
  height: 38px;
  width: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: var(--transition);
  cursor: pointer;
}

.darkLight-searchBox .dark-light:hover,
.darkLight-searchBox .searchToggle:hover {
  background: rgba(255,255,255,0.12);
}

.dark-light i,
.searchToggle i {
  position: absolute;
  color: var(--text-color);
  font-size: 20px;
  transition: all 0.3s ease;
}

.dark-light i.sun { opacity: 0; pointer-events: none; }
.dark-light.active i.sun { opacity: 1; pointer-events: auto; }
.dark-light.active i.moon { opacity: 0; pointer-events: none; }

.searchToggle i.cancel { opacity: 0; pointer-events: none; }
.searchToggle.active i.cancel { opacity: 1; pointer-events: auto; }
.searchToggle.active i.search { opacity: 0; pointer-events: none; }

.searchBox { position: relative; }

.searchBox .search-field {
  position: absolute;
  bottom: -80px;
  right: 5px;
  height: 48px;
  width: 280px;
  display: flex;
  align-items: center;
  background-color: var(--nav-color);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 4px;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
}

.searchToggle.active ~ .search-field {
  bottom: -68px;
  opacity: 1;
  pointer-events: auto;
}

.search-field input {
  height: 100%;
  width: 100%;
  padding: 0 40px 0 14px;
  outline: none;
  border: none;
  border-radius: 7px;
  font-size: 14px;
  color: var(--search-text);
  background-color: var(--search-bar);
}

body.dark .search-field input { color: var(--text-color); }

.search-field i {
  position: absolute;
  color: var(--accent);
  right: 12px;
  font-size: 20px;
  cursor: pointer;
}


/* =====================================================
   HERO – ACCUEIL
   ===================================================== */
.slider {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #0d1630;
}

.slider-background {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(35%) saturate(0.6);
  transform: scale(1.05);
  transition: transform 10s ease;
}

.slider:hover .slider-background {
  transform: scale(1);
}

.slider-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13,22,48,0.7) 0%, rgba(64,112,244,0.15) 100%);
}

.slider-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 20px;
  animation: fadeInUp 1s ease 0.3s both;
}

.hero-badge {
  display: inline-block;
  background: rgba(64,112,244,0.2);
  border: 1px solid rgba(64,112,244,0.5);
  color: var(--accent-light);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 20px;
  border-radius: 50px;
  margin-bottom: 24px;
}

.slider-content h1 {
  font-family: 'Sora', sans-serif;
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 16px;
}

.slider-content h1 .accent {
  color: var(--accent-light);
}

.slider-content > p {
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  color: rgba(255,255,255,0.7);
  font-weight: 300;
  margin-bottom: 40px;
}

.hero-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(64,112,244,0.4);
}

.btn-hero:hover {
  background: var(--accent-light);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(64,112,244,0.5);
}

.btn-hero.btn-outline {
  background: transparent;
  border: 2px solid rgba(255,255,255,0.4);
  box-shadow: none;
}

.btn-hero.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: #fff;
  transform: translateY(-3px);
}

.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.scroll-indicator span {
  display: block;
  width: 2px;
  height: 50px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.6), transparent);
  margin: 0 auto;
  animation: scrollPulse 2s ease infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50% { opacity: 0.3; transform: scaleY(0.5); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}


/* =====================================================
   SECTIONS – STRUCTURE COMMUNE
   ===================================================== */
.section {
  padding: 100px 0;
  background-color: var(--body-color);
  transition: background-color 0.4s ease;
}

.section-alt {
  background-color: var(--section-alt);
}

body.dark .section-alt {
  background-color: var(--section-alt);
}

.boxed {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

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

.section-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-header h2 {
  font-family: 'Sora', sans-serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 16px;
}

.section-underline {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  border-radius: 2px;
  margin: 0 auto;
}

.section-subtitle {
  margin-top: 16px;
  font-size: 1rem;
  color: var(--text-mid);
}


/* =====================================================
   PRÉSENTATION
   ===================================================== */
.about-flex {
  display: flex;
  align-items: center;
  gap: 60px;
}

.about-img-wrapper {
  flex-shrink: 0;
}

.about-img-placeholder {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 8px var(--accent-glow), 0 20px 40px rgba(64,112,244,0.3);
}

.about-img-placeholder i {
  font-size: 6rem;
  color: rgba(255,255,255,0.8);
}

.about-img {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 8px var(--accent-glow), 0 20px 40px rgba(64,112,244,0.3);
}

.about-text {
  flex: 1;
}

.about-text p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-mid);
  margin-bottom: 16px;
}

.about-text strong { color: var(--text-dark); }

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0;
}

.about-tags span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--section-alt);
  color: var(--text-mid);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 500;
}

body.dark .about-tags span { background: var(--card-bg); }

.btn-cv {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  padding: 12px 28px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  transition: var(--transition);
  box-shadow: 0 4px 16px rgba(64,112,244,0.35);
}

.btn-cv:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(64,112,244,0.5);
}


/* =====================================================
   COMPÉTENCES – ICÔNES
   ===================================================== */
.skills-tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 24px;
}

.skill-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 20px;
  text-align: center;
  cursor: default;
  transition: var(--transition);
  box-shadow: var(--card-shadow);
  position: relative;
}

.skill-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent);
  box-shadow: 0 12px 36px var(--accent-glow);
}

.skill-card::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--nav-color);
  color: #fff;
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 10;
}

.skill-card:hover::after { opacity: 1; }

.skill-icon-wrap {
  width: 68px;
  height: 68px;
  border-radius: 16px;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
}

.skill-icon-wrap img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.skill-icon-wrap i { font-size: 2.2rem; }

/* Couleurs par technologie */
.linux   { background: rgba(252,198,36,0.12); color: #FCC624; }
.windows { background: rgba(0,120,212,0.12); color: #0078D4; }
.cisco   { background: rgba(26,169,252,0.12); color: #1AA9FC; }
.cisco i { font-size: 2.2rem; color: #1AA9FC; }
.vmware  { background: rgba(36,150,237,0.12); color: #2496ED; }
.ad      { background: rgba(255,140,0,0.12); color: #FF8C00; }
.ad i    { font-size: 2.2rem; color: #FF8C00; }
.secu    { background: rgba(220,38,38,0.12); color: #DC2626; }
.secu i  { font-size: 2.2rem; color: #DC2626; }
.bash    { background: rgba(34,197,94,0.12); color: #22C55E; }
.bash i  { font-size: 2.2rem; color: #22C55E; }

.skill-card span {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
}


/* =====================================================
   CERTIFICATIONS
   ===================================================== */
.certif-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.certif-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  transition: var(--transition);
  box-shadow: var(--card-shadow);
}

.certif-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.12);
  border-color: var(--accent);
}

.certif-logo {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}

.cisco-cert  { background: rgba(26,169,252,0.15); color: #1AA9FC; }
.pix-cert    { background: rgba(99,102,241,0.15); color: #6366F1; }
.secnum-cert { background: rgba(239,68,68,0.15);  color: #EF4444; }

.certif-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.certif-body p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-mid);
  margin-bottom: 12px;
}

.certif-badge {
  display: inline-block;
  background: rgba(64,112,244,0.1);
  color: var(--accent);
  border: 1px solid rgba(64,112,244,0.25);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 50px;
  letter-spacing: 0.5px;
}


/* =====================================================
   RÉALISATIONS – INFRASTRUCTURE
   ===================================================== */
.infra-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

.infra-header {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 36px 40px;
  background: linear-gradient(135deg, var(--nav-color) 0%, #1e3a6e 100%);
  color: #fff;
}

.infra-header > i {
  font-size: 2.5rem;
  color: var(--accent-light);
  flex-shrink: 0;
  margin-top: 4px;
}

.infra-header h3 {
  font-family: 'Sora', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.infra-header p {
  font-size: 14px;
  opacity: 0.75;
  line-height: 1.6;
}

/* ---- Topology ---- */
.infra-schema {
  padding: 40px;
  border-bottom: 1px solid var(--border);
}

.topo-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.topo-node {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: #fff;
  border-radius: 12px;
  padding: 16px 28px;
  text-align: center;
  min-width: 220px;
  transition: var(--transition);
}

.topo-node:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 24px var(--accent-glow);
}

.topo-node .topo-icon {
  font-size: 1.8rem;
  margin-bottom: 6px;
}

.topo-node span {
  display: block;
  font-weight: 700;
  font-size: 14px;
}

.topo-node small {
  font-size: 11px;
  opacity: 0.8;
}

.wan-node {
  background: linear-gradient(135deg, #374151, #6b7280);
}

.router-node {
  background: linear-gradient(135deg, #1e40af, #3b82f6);
}

.small-node {
  min-width: 160px;
  padding: 12px 16px;
  font-size: 13px;
}

.topo-arrow i {
  font-size: 1.8rem;
  color: var(--accent);
  display: block;
  margin: 4px 0;
}

.topo-vlans {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: center;
  padding-top: 8px;
}

.vlan-branch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.vlan-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 50px;
}

.vlan10 { background: rgba(249,115,22,0.15); color: #F97316; border: 1px solid rgba(249,115,22,0.3); }
.vlan11 { background: rgba(34,197,94,0.15);  color: #22C55E; border: 1px solid rgba(34,197,94,0.3); }
.vlan12 { background: rgba(139,92,246,0.15); color: #8B5CF6; border: 1px solid rgba(139,92,246,0.3); }

.vlan-servers {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ---- Services ---- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0;
}

.service-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 28px 32px;
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
  transition: var(--transition);
}

.service-item:hover {
  background: rgba(64,112,244,0.03);
}

.service-item > i {
  font-size: 1.8rem;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.service-item strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.service-item p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-mid);
}


/* =====================================================
   Mes etudes
   ===================================================== */
.timeline-container {
  width: 100%;
  position: relative;
  height: 380px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
}

.timeline-container::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  width: 0;
  animation: drawLine 1.5s ease-out forwards;
  z-index: 1;
}

.timeline-item {
  position: relative;
  flex: 1;
  height: 100%;
  opacity: 0;
  animation: popIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.item-1 { --c-main: #E36C14; --c-bg: #FFF3E0; animation-delay: 0.3s; }
.item-2 { --c-main: #1976D2; --c-bg: #E3F2FD; animation-delay: 0.6s; }
.item-3 { --c-main: #388E3C; --c-bg: #E8F5E9; animation-delay: 0.9s; }
.item-4 { --c-main: #8E24AA; --c-bg: #F3E5F5; animation-delay: 1.2s; }
.item-5 { --c-main: #D32F2F; --c-bg: #FFEBEE; animation-delay: 1.5s; }

body.dark .item-1 { --c-bg: rgba(227,108,20,0.12); }
body.dark .item-2 { --c-bg: rgba(25,118,210,0.12); }
body.dark .item-3 { --c-bg: rgba(56,142,60,0.12);  }
body.dark .item-4 { --c-bg: rgba(142,36,170,0.12); }
body.dark .item-5 { --c-bg: rgba(211,47,47,0.12);  }

.dot {
  position: absolute;
  width: 16px;
  height: 16px;
  background-color: var(--c-main);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  box-shadow: 0 0 0 4px rgba(255,255,255,0.3);
}

.stem {
  position: absolute;
  width: 3px;
  background-color: var(--c-main);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.top .stem { bottom: 50%; height: 45px; }
.bottom .stem { top: 50%; height: 45px; }
.top .card { bottom: calc(50% + 45px); }
.bottom .card { top: calc(50% + 45px); }

.card {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 160px;
  background-color: var(--c-bg);
  border: 2.5px solid var(--c-main);
  border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px;
  padding: 16px 12px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  z-index: 4;
  transition: transform 0.25s ease;
}

.card:hover { transform: translateX(-50%) scale(1.06); }

.card h3 { font-size: 1rem; font-weight: 700; color: var(--c-main); margin-bottom: 6px; }
.card .date { font-size: 0.85rem; color: var(--text-mid); margin-bottom: 4px; }
.card .desc { font-size: 0.82rem; color: var(--text-light); }

@keyframes drawLine { to { width: 100%; } }
@keyframes popIn {
  from { opacity: 0; transform: translateY(20px) scale(0.8); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}


/* =====================================================
   FICHES E5 / E6
   ===================================================== */
.fiches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 32px;
}

.fiche-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: var(--transition);
}

.fiche-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(0,0,0,0.12);
}

.fiche-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 28px 32px;
  background: linear-gradient(135deg, #1e3a6e, var(--accent));
  color: #fff;
}

.fiche-e6 .fiche-header {
  background: linear-gradient(135deg, #1a1a2e, #7c3aed);
}

.fiche-badge {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  background: rgba(255,255,255,0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Sora', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
}

.fiche-header h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.fiche-tag {
  font-size: 12px;
  opacity: 0.75;
}

.fiche-desc {
  padding: 20px 32px;
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.6;
  border-bottom: 1px solid var(--border);
}

.fiche-situations {
  padding: 24px 32px;
}

.fiche-situations h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.situation-item {
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.situation-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.sit-num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: rgba(64,112,244,0.1);
  color: var(--accent);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
}

.fiche-e6 .sit-num {
  background: rgba(124,58,237,0.1);
  color: #7c3aed;
}

.situation-item strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 5px;
}

.situation-item p {
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.5;
  margin-bottom: 8px;
}

.sit-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sit-tags span {
  font-size: 11px;
  font-weight: 600;
  background: rgba(64,112,244,0.1);
  color: var(--accent);
  border: 1px solid rgba(64,112,244,0.2);
  padding: 2px 8px;
  border-radius: 4px;
}

.fiche-e6 .sit-tags span {
  background: rgba(124,58,237,0.1);
  color: #7c3aed;
  border-color: rgba(124,58,237,0.2);
}

.fiche-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 32px 28px;
  padding: 12px;
  background: var(--accent);
  color: #fff;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  transition: var(--transition);
}

.fiche-e6 .fiche-btn { background: #7c3aed; }

.fiche-btn:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}


/* =====================================================
   CONTACT
   ===================================================== */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  align-items: start;
}

.contact-info h3 {
  font-family: 'Sora', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 28px;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.info-item i {
  font-size: 1.4rem;
  color: var(--accent);
}

.info-item span {
  font-size: 14px;
  color: var(--text-mid);
}

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 28px;
}

.social-btn {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(64,112,244,0.1);
  border: 1px solid rgba(64,112,244,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1.3rem;
  transition: var(--transition);
}

.social-btn:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-3px);
}

.contact-form {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px;
  box-shadow: var(--card-shadow);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
  background: var(--body-color);
  color: var(--text-dark);
  transition: var(--transition);
  outline: none;
  font-family: 'Poppins', sans-serif;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-group textarea { resize: vertical; }

.btn-submit {
  width: 100%;
  padding: 14px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition);
  font-family: 'Poppins', sans-serif;
  box-shadow: 0 4px 16px rgba(64,112,244,0.35);
}

.btn-submit:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(64,112,244,0.5);
}


/* =====================================================
   FOOTER
   ===================================================== */
footer {
  background: var(--nav-color);
  color: rgba(255,255,255,0.6);
  padding: 40px 0;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-content p { font-size: 13px; }

.footer-links {
  display: flex;
  list-style: none;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  transition: var(--transition);
}

.footer-links a:hover { color: #fff; }


/* =====================================================
   SCROLL TOP
   ===================================================== */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 46px;
  height: 46px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(64,112,244,0.4);
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: var(--transition);
  z-index: 999;
}

.scroll-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.scroll-top:hover {
  background: var(--accent-light);
  transform: translateY(-3px);
}


/* =====================================================
   ANIMATIONS GÉNÉRALES
   ===================================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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


/* =====================================================
   MEDIA QUERIES – RESPONSIVE
   ===================================================== */

/* Tablette large */
@media (max-width: 1024px) {
  .boxed { padding: 0 28px; }
  .about-flex { gap: 40px; }
  .contact-wrapper { grid-template-columns: 1fr; }
  .fiches-grid { grid-template-columns: 1fr; }
}

/* Tablette */
@media (max-width: 850px) {
  /* Navigation mobile */
  nav .nav-bar .sidebarOpen {
    display: block;
  }

  .menu {
    position: fixed;
    height: 100%;
    width: 300px;
    left: -100%;
    top: 0;
    padding: 24px;
    background-color: var(--side-nav);
    z-index: 2000;
    transition: all 0.4s ease;
    overflow-y: auto;
  }

  nav.active .menu { left: 0; }

  nav.active .nav-bar .navLogo a {
    opacity: 0;
  }

  .menu .logo-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
  }

  .logo-toggle .siderbarClose {
    color: var(--text-color);
    font-size: 26px;
    cursor: pointer;
  }

  .nav-bar .nav-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }

  .nav-links li { width: 100%; }

  .nav-links li a {
    display: block;
    padding: 14px 16px;
    font-size: 16px;
    border-radius: 10px;
    color: rgba(255,255,255,0.7);
  }

  .nav-links li a::after { display: none; }

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

  /* Timeline verticale */
  .timeline-container {
    flex-direction: column;
    height: auto;
    align-items: flex-start;
    padding-left: 20px;
  }

  .timeline-container::before {
    top: 0;
    left: 38px;
    width: 3px;
    height: 0;
    transform: none;
    animation: drawLineVert 1.5s ease-out forwards;
  }

  @keyframes drawLineVert { to { height: 100%; } }

  .timeline-item {
    width: 100%;
    min-height: 120px;
    margin-bottom: 10px;
  }

  .dot { left: 18px; top: 50%; }

  .stem {
    left: 18px;
    top: 50%;
    width: 30px;
    height: 3px !important;
    transform: translateY(-50%);
  }

  .card {
    left: 60px !important;
    top: 50% !important;
    bottom: auto !important;
    transform: translateY(-50%) !important;
    width: calc(100% - 90px);
    max-width: 300px;
  }

  .card:hover { transform: translateY(-50%) scale(1.02) !important; }

  /* Infra schema */
  .topo-vlans { flex-direction: column; align-items: center; }
  .vlan-servers { flex-direction: column; align-items: center; }
}

/* Mobile */
@media (max-width: 600px) {
  .boxed { padding: 0 16px; }
  .section { padding: 70px 0; }

  .slider-content h1 { font-size: 2.8rem; }

  .about-flex {
    flex-direction: column;
    text-align: center;
    gap: 28px;
  }

  .about-tags { justify-content: center; }

  .skills-tech-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }

  .certif-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .certif-grid { grid-template-columns: 1fr; }

  .infra-header { flex-direction: column; }
  .infra-schema { padding: 24px 16px; }
  .services-grid { grid-template-columns: 1fr; }

  .service-item { padding: 20px 16px; border-right: none; }

  .fiche-card { min-width: unset; }
  .fiche-header { flex-direction: column; }
  .fiche-situations { padding: 16px; }
  .fiche-btn { margin: 0 16px 20px; }
  .contact-form { padding: 24px 16px; }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-links { justify-content: center; }

  .scroll-top { bottom: 20px; right: 16px; }
}

/* Très petit mobile */
@media (max-width: 380px) {
  .skills-tech-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-btns { flex-direction: column; align-items: center; }
}
