/* ========================================
   VARIABLES ET CONFIGURATION
======================================== */

:root {
  --primary-color: #007bff;
  --secondary-color: #6c757d;
  --dark-bg: #212529;
  --light-bg: #f8f9fa;
  --white: #ffffff;
  --transition-smooth: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.3s ease;
}

/* ========================================
   GLOBAL & SMOOTH SCROLLING
======================================== */

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

html {
  height: 100%;
  scroll-behavior: smooth;
  scroll-snap-type: none;
  /* Désactivé pour plus de contrôle */
  font-size: 15px;
  /* Réduit de 16px à 15px pour moins de zoom */
}

body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  background-color: #ffffff;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Main content area */
main {
  min-height: 100vh;
}

@media (max-width: 767px) {
  html {
    font-size: 14px;
    /* Encore plus petit sur mobile */
  }

  main {
    margin-left: 0 !important;
  }
}

/* ========================================
   SIDEBAR / NAVIGATION
======================================== */

.sidebar {
  background-color: var(--dark-bg);
  z-index: 1000;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.sidebar h3 {
  font-weight: bold;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.sidebar-separator {
  border-color: rgba(255, 255, 255, 0.2);
}

.nav-section-title {
  font-size: 0.75rem;
  letter-spacing: 1px;
  opacity: 0.7;
}

.sidebar ul.nav li {
  margin-bottom: 8px;
  transition: var(--transition-fast);
}

.sidebar ul.nav li a,
.offcanvas-body ul.nav li a {
  display: block;
  padding: 12px 16px;
  border-radius: 8px;
  transition: var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.sidebar ul.nav li a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0;
  background: rgba(255, 255, 255, 0.1);
  transition: width 0.3s ease;
  z-index: -1;
}

.sidebar ul.nav li a:hover::before,
.sidebar ul.nav li a.active::before {
  width: 100%;
}

.sidebar ul.nav li a:hover,
.sidebar ul.nav li a.active {
  background-color: rgba(255, 255, 255, 0.1);
  padding-left: 20px;
  color: #fff !important;
}

.sidebar ul.nav li i {
  width: 20px;
  text-align: center;
}

/* Current date & time */
.current-date-time {
  padding: 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  text-align: center;
}

.current-date {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
}

.current-time {
  font-size: 1.5rem;
  font-weight: 600;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

/* ========================================
   SECTIONS - SMOOTH SCROLL SNAP
======================================== */

section {
  min-height: 100vh;
  scroll-snap-align: start;
  scroll-snap-stop: normal;
  position: relative;
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition-smooth);
}

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

.content-section {
  background: var(--white);
  padding: 60px 0;
  display: flex;
  align-items: center;
}

/* Section présentation : hauteur automatique au lieu de 100vh */
#presentation {
  min-height: auto !important;
  padding: 3rem 0 !important;
}

.section-alt {
  background: linear-gradient(135deg, #ffffff 0%, #f3f8ff 100%);
}

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

/* Hero Section - Plein écran malgré l'offset Bootstrap */
.hero-section {
  position: relative;
  width: 100vw;
  /* Toute la largeur de la fenêtre */
  height: 100vh;
  margin-left: calc(-16.666667%);
  /* Compense l'offset-md-2 (2/12 = 16.666%) */
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

/* Sur mobile, pas d'offset donc pas de compensation */
@media (max-width: 767px) {
  .hero-section {
    margin-left: 0;
    width: 100%;
  }
}

/* Canvas pour les particules - UNIQUEMENT DANS LE HERO */
#particles-canvas {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: auto;
  /* Permet la détection de la souris */
}

/* Hero content au-dessus du canvas */
.hero-section .hero-overlay {
  position: relative;
  z-index: 2;
}

.hero-overlay {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 40px 20px;
  background: rgba(30, 30, 30, 0.6);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  animation: fadeInUp 1s ease-out;
}

.hero-overlay h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-family: 'Raleway', sans-serif;
  color: white;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
  font-weight: bold;
  margin-bottom: 1rem;
}

.subtitle {
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-weight: 300;
  color: #f0f0f0;
  margin-top: 10px;
  letter-spacing: 2px;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: white;
  text-decoration: none;
  padding: 12px 20px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 30px;
  backdrop-filter: blur(5px);
  transition: var(--transition-fast);
  animation: bounce 2s infinite;
}

.scroll-indicator:hover {
  background: rgba(0, 0, 0, 0.5);
  transform: translateX(-50%) translateY(-5px);
  color: white;
}

.scroll-line {
  width: 2px;
  height: 30px;
  background: rgba(255, 255, 255, 0.8);
  margin-bottom: 10px;
  border-radius: 2px;
}

.scroll-indicator i {
  font-size: 1.2rem;
  margin-bottom: 5px;
}

.scroll-indicator small {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.9);
}

@keyframes bounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  40% {
    transform: translateX(-50%) translateY(-10px);
  }

  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.custom-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  color: white;
  padding: 12px 32px;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: var(--transition-fast);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.custom-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
  color: white;
}

.custom-btn-outline {
  background: transparent;
  border: 2px solid white;
  color: white;
  padding: 12px 32px;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: var(--transition-fast);
}

.custom-btn-outline:hover {
  background: white;
  color: #333;
  transform: translateY(-3px);
}

/* ========================================
   SECTION TITLES
======================================== */

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  color: #343a40;
  margin-bottom: 0;
  text-align: center;
  width: 100%;
}

.underline {
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), #6610f2);
  border-radius: 2px;
  margin: 1rem auto 0;
  margin: 10px 0 15px 0;
  /* Réduit */
}

/* Bio paragraph */
.bio-paragraph {
  font-size: 1rem;
  line-height: 1.7;
  color: #555;
  margin-bottom: 1.5rem;
}

/* ========================================
   SECTION PRÉSENTATION - DESIGN MODERNE COMPACT
======================================== */

/* Optimisation des espacements pour section compacte */
#presentation .container {
  max-width: 1200px;
}

#presentation .section-title {
  font-size: 2rem;
  margin-bottom: 1rem !important;
}

#presentation .underline {
  margin-bottom: 2rem !important;
}

#presentation .row {
  row-gap: 2rem !important;
}

/* Carte de profil épurée */
.profile-card-modern {
  background: #ffffff;
  border-radius: 16px;
  padding: 2rem 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: var(--transition-fast);
}

.profile-card-modern:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  transform: translateY(-5px);
}

/* Image de profil sans bordure colorée */
.profile-image-wrapper {
  width: 150px;
  height: 150px;
  margin: 0 auto;
  position: relative;
}

.profile-image {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #f0f0f0;
  /* Bordure grise claire au lieu de bleue */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Nom et rôle */
.profile-name {
  font-size: 1.35rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 0.5rem;
}

.profile-role {
  font-size: 0.85rem;
  color: #7f8c8d;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Contact épuré sans icônes colorées */
.profile-contact {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 1.25rem;
  margin-top: 1.25rem;
}

.contact-item {
  display: flex;
  flex-direction: column;
  padding: 0.6rem 0;
  border-bottom: 1px solid #e9ecef;
}

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

.contact-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #95a5a6;
  margin-bottom: 0.25rem;
}

.contact-value {
  font-size: 0.95rem;
  color: #2c3e50;
  text-decoration: none;
  font-weight: 500;
}

.contact-value:hover {
  color: var(--primary-color);
}

/* Bouton télécharger CV épuré */
.btn-download-cv {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition-fast);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-download-cv:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
  color: white;
}

.btn-download-cv svg {
  width: 16px;
  height: 16px;
}

/* Contenu à droite */
.about-content {
  height: 100%;
}

.bio-text {
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 12px;
  border-left: 4px solid var(--primary-color);
}

.bio-text p {
  font-size: 1rem;
  line-height: 1.7;
  color: #34495e;
  margin: 0;
}

/* Cartes d'information épurées */
.info-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  height: 100%;
  transition: var(--transition-fast);
}

.info-card:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transform: translateY(-3px);
}

.info-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 1rem;
  padding-bottom: 0.65rem;
  border-bottom: 2px solid #e9ecef;
}

/* Liste sans icônes colorées */
.info-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.info-list li {
  padding: 0.55rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: #34495e;
  font-size: 0.9rem;
  line-height: 1.5;
}

.info-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background: var(--primary-color);
  border-radius: 50%;
}

.info-list li:not(:last-child) {
  border-bottom: 1px solid #f0f0f0;
}

/* Responsive */
@media (max-width: 991px) {
  .profile-card-modern {
    margin-bottom: 2rem;
  }

  .profile-image-wrapper {
    width: 150px;
    height: 150px;
  }
}

/* ========================================
   ANCIEN CSS PROFILE (À SUPPRIMER SI NON UTILISÉ)
======================================== */

.profile-card {
  background: white;
  border-radius: 12px;
}

.about-bio h5 {
  font-size: 1.1rem;
  font-weight: 600;
}

/* ========================================
   CARDS
======================================== */

.card {
  border-radius: 12px;
  transition: var(--transition-fast);
  border: none;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}

/* ========================================
   PROFILE IMAGE
======================================== */

.profile-img {
  width: 250px;
  height: 250px;
  object-fit: cover;
  border: 5px solid white;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: var(--transition-fast);
}

.profile-img:hover {
  transform: scale(1.05) rotate(2deg);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

/* ========================================
   TIMELINE
======================================== */

.timeline {
  position: relative;
  padding: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--primary-color), #6610f2);
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  padding-left: 3rem;
  margin-bottom: 3rem;
  opacity: 0;
  transform: translateX(-30px);
  animation: slideInLeft 0.6s ease-out forwards;
}

.timeline-item:nth-child(1) {
  animation-delay: 0.1s;
}

.timeline-item:nth-child(2) {
  animation-delay: 0.2s;
}

.timeline-item:nth-child(3) {
  animation-delay: 0.3s;
}

.timeline-item:nth-child(4) {
  animation-delay: 0.4s;
}

@keyframes slideInLeft {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.timeline-marker {
  position: absolute;
  left: -10px;
  top: 0;
  width: 20px;
  height: 20px;
  background-color: var(--primary-color);
  border: 4px solid white;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.2);
  z-index: 1;
}

.timeline-content {
  position: relative;
}

.timeline-content::before {
  content: '';
  position: absolute;
  left: -13px;
  top: 10px;
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-right: 10px solid white;
}

/* ========================================
   SKILLS / PROGRESS BARS
======================================== */

.skill-item {
  margin-bottom: 1.5rem;
}

.progress {
  background-color: #e9ecef;
  border-radius: 10px;
  overflow: hidden;
  height: 10px;
}

.progress-bar {
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
  background: linear-gradient(90deg, var(--primary-color), #6610f2);
}

/* ========================================
   PROJECT CARDS
======================================== */

.project-card {
  transition: var(--transition-fast);
  border-left: 4px solid transparent;
}

.project-card:hover {
  border-left-color: var(--primary-color);
  transform: translateX(5px);
}

.project-card .card-title {
  color: #343a40;
  font-size: 1.5rem;
  font-weight: 600;
}

.project-card h5 {
  color: var(--primary-color);
  font-size: 1rem;
  font-weight: 600;
  margin-top: 1.5rem;
}

/* ========================================
   STAGES
======================================== */

.stage-item {
  margin-bottom: 3rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease-out forwards;
}

.stage-item:nth-child(1) {
  animation-delay: 0.1s;
}

.stage-item:nth-child(2) {
  animation-delay: 0.3s;
}

.stage-logo {
  min-height: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.stage-logo:hover {
  transform: scale(1.05);
}

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

.form-label {
  font-weight: 600;
  color: #343a40;
  margin-bottom: 0.5rem;
}

.form-control {
  border: 2px solid #e9ecef;
  border-radius: 8px;
  padding: 12px;
  transition: var(--transition-fast);
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.15);
}

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

/* ========================================
   BADGES
======================================== */

.badge {
  padding: 0.5rem 0.75rem;
  font-weight: 500;
  border-radius: 6px;
  font-size: 0.85rem;
}

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

.footer-custom {
  background-color: var(--dark-bg);
  margin-top: auto;
}

.footer-custom a {
  color: rgba(255, 255, 255, 0.8);
  transition: var(--transition-fast);
}

.footer-custom a:hover {
  color: white;
  text-decoration: underline !important;
}

/* ========================================
   ALERTS
======================================== */

.alert {
  border-radius: 10px;
  border: none;
  padding: 1.25rem;
}

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

@media (max-width: 767px) {
  main {
    margin-left: 0 !important;
  }

  .hero-overlay h1 {
    font-size: 2rem;
  }

  .subtitle {
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .profile-img {
    width: 200px;
    height: 200px;
  }

  .timeline::before {
    left: 10px;
  }

  .timeline-item {
    padding-left: 3rem;
  }

  .timeline-marker {
    left: 1px;
  }

  section {
    min-height: auto;
    padding: 40px 0;
  }

  .content-section {
    padding: 40px 0;
  }
}

/* ========================================
   SMOOTH SCROLL ENHANCEMENTS
======================================== */

/* Amélioration du smooth scroll */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }

  * {
    scroll-behavior: smooth;
  }
}

/* Désactiver les animations pour ceux qui préfèrent */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ========================================
   INTERSECTION OBSERVER ANIMATIONS
======================================== */

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: var(--transition-smooth);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   UTILITIES
======================================== */

.text-primary {
  color: var(--primary-color) !important;
}

.bg-primary {
  background-color: var(--primary-color) !important;
}

.shadow-sm {
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

.shadow {
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.shadow-lg {
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important;
}

/* ========================================
   BOUTONS DE NAVIGATION ENTRE SECTIONS
======================================== */

.section-nav-btn {
  position: absolute;
  bottom: 30px;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-color), #6610f2);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(0, 123, 255, 0.4);
  transition: var(--transition-fast);
  z-index: 10;
  animation: bounceUpDown 2s infinite;
}

.section-nav-btn:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 6px 30px rgba(0, 123, 255, 0.6);
  color: white;
}

.section-nav-left {
  left: 40px;
}

.section-nav-right {
  right: 40px;
}

.section-nav-btn i {
  font-size: 1.5rem;
  margin-bottom: 2px;
}

.section-nav-btn small {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

@keyframes bounceUpDown {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@media (max-width: 768px) {

  .section-nav-left,
  .section-nav-right {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }

  .section-nav-btn {
    width: 50px;
    height: 50px;
  }

  .section-nav-btn i {
    font-size: 1.2rem;
  }

  .section-nav-btn small {
    font-size: 0.6rem;
  }
}

/* ========================================
   STAGES - CIRCULAR TIMELINE
======================================== */

.section-stages-circular {
  background: linear-gradient(135deg, #ffffff 0%, #f3f8ff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 20px !important;
  min-height: auto !important;
  height: auto !important;
  overflow: visible !important;
  margin-bottom: 0;
  position: relative;
}

.parcours-container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.parcours-header {
  text-align: center;
  margin-bottom: 40px;
}

.parcours-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #343a40;
  margin-bottom: 10px;
}

.parcours-header p {
  color: #6c757d;
  font-size: 1.1rem;
}

/* ========================================
   PARCOURS - TIMELINE ÉPURÉE (HARMONIE AVEC PRÉSENTATION)
======================================== */

/* Section parcours - taille optimale pour lisibilité */
#parcours {
  min-height: auto !important;
  padding: 4rem 0 !important;
  background: #ffffff;
}

#parcours .section-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 0.6rem;
}

.section-subtitle {
  color: #7f8c8d;
  font-size: 1.05rem;
  font-weight: 400;
}

.circular-timeline {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 35px;
  padding: 3.5rem 0 2.5rem 0;
  margin: 2rem 0;
}

/* Ligne de connexion - gradient gris au lieu de bleu/vert */
.timeline-line {
  position: absolute;
  top: 50%;
  left: 50%;
  right: 50%;
  transform: translateY(-50%) translateX(-50%);
  height: 3px;
  background: linear-gradient(90deg, #cbd5e1 0%, #94a3b8 100%);
  width: calc(100% - 130px);
  z-index: 0;
}

.timeline-item {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1;
  cursor: pointer;
  transition: all 0.3s ease;
}

/* Cercles numérotés - taille optimale et palette gris/bleu */
.step-node {
  width: 75px;
  height: 75px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 3px solid white;
  position: relative;
}

.timeline-item:hover .step-node {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Passé : Gris foncé */
.node-past {
  background: linear-gradient(135deg, #64748b 0%, #475569 100%);
}

/* Présent : Bleu (accent principal) */
.node-current {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  border-color: #e0f2fe;
}

/* Futur : Gris clair */
.node-future {
  background: linear-gradient(135deg, #cbd5e1 0%, #94a3b8 100%);
}

.step-number {
  display: block;
}

/* Cartes de contenu - taille optimale et épurées */
.step-content {
  background: white;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  border: 1px solid #f0f0f0;
  width: 100%;
  text-align: center;
  transition: all 0.3s ease;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.timeline-item:hover .step-content {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border-color: #e0e0e0;
  transform: translateY(-5px);
}

.step-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #2c3e50;
  margin: 0 0 0.5rem 0;
}

.step-year {
  font-size: 0.9rem;
  color: #3b82f6;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
}

.step-place {
  font-size: 0.85rem;
  color: #64748b;
  margin: 0 0 0.4rem 0;
  font-weight: 500;
}

.step-subtitle {
  font-size: 0.8rem;
  color: #94a3b8;
  margin: 0;
  font-style: italic;
}

/* Badge "À venir" épuré */
.badge-future {
  display: inline-block;
  padding: 0.3rem 0.7rem;
  background: #f1f5f9;
  color: #64748b;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-top: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* Responsive: Timeline horizontale sur desktop, verticale sur mobile */
@media (max-width: 1024px) {
  .circular-timeline {
    flex-direction: column;
    gap: 3.5rem;
    padding: 2.5rem 0;
  }

  .timeline-line {
    width: 3px;
    height: calc(100% - 130px);
    top: 0;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    background: linear-gradient(180deg, #cbd5e1 0%, #94a3b8 100%);
  }

  .step-node {
    width: 70px;
    height: 70px;
    font-size: 1.65rem;
  }

  .step-content {
    min-height: 140px;
  }

  #parcours .section-title {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .step-node {
    width: 65px;
    height: 65px;
    font-size: 1.5rem;
    margin-bottom: 1.2rem;
  }

  .step-content {
    padding: 1.2rem;
    min-height: 120px;
  }

  .step-title {
    font-size: 1rem;
  }

  .step-year,
  .step-place {
    font-size: 0.8rem;
  }

  .circular-timeline {
    gap: 3rem;
  }

  #parcours .section-title {
    font-size: 1.8rem;
  }
}

/* ========================================
   FORMATION BTS SIO SISR - DESIGN ÉPURÉ
======================================== */

.section-formation {
  min-height: auto !important;
  padding: 4rem 0 !important;
  background: #f8f9fa;
}

/* Logos */
.formation-logo-container {
  padding: 1.5rem;
}

.formation-logo-main {
  max-width: 220px;
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  background: #fff;
  padding: 1rem;
  transition: transform 0.3s ease;
}

.formation-logo-main:hover {
  transform: translateY(-5px);
}

.formation-logo-sub {
  max-width: 120px;
  width: 100%;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  padding: 0.5rem;
}

.formation-campus-name {
  font-size: 0.85rem;
  color: #64748b;
  margin-top: 0.75rem;
  margin-bottom: 0;
  font-weight: 500;
}

/* Contenu */
.formation-content {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
  border: 1px solid #f0f0f0;
}

.formation-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 0.5rem;
}

.formation-subtitle {
  font-size: 1.1rem;
  color: #3b82f6;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.formation-description {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #34495e;
  margin-bottom: 1.5rem;
  text-align: justify;
}

.formation-description strong {
  color: #2c3e50;
  font-weight: 600;
}

/* Points clés */
.formation-highlights {
  background: #f8f9fa;
  padding: 1.25rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  border-left: 4px solid #3b82f6;
}

.formation-highlights-title {
  font-size: 1rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 0.75rem;
}

.formation-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.formation-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.6rem;
  font-size: 0.9rem;
  color: #34495e;
  line-height: 1.6;
}

.formation-list li:last-child {
  margin-bottom: 0;
}

.formation-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6rem;
  width: 6px;
  height: 6px;
  background: #3b82f6;
  border-radius: 50%;
}

.formation-conclusion {
  font-size: 0.9rem;
  line-height: 1.7;
  color: #64748b;
  margin-bottom: 1.5rem;
  font-style: italic;
}

/* Bouton */
.formation-btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.formation-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
  color: white;
}

/* Responsive */
@media (max-width: 991px) {
  .formation-logo-container {
    margin-bottom: 1rem;
  }

  .formation-content {
    padding: 1.5rem;
  }

  .formation-title {
    font-size: 1.4rem;
  }

  .section-formation {
    padding: 3rem 0 !important;
  }
}

@media (max-width: 768px) {
  .formation-logo-main {
    max-width: 180px;
  }

  .formation-logo-sub {
    max-width: 100px;
  }

  .formation-content {
    padding: 1.25rem;
  }

  .formation-title {
    font-size: 1.3rem;
  }

  .formation-subtitle {
    font-size: 1rem;
  }

  .formation-description {
    font-size: 0.9rem;
  }
}

/* ========================================
   COMPÉTENCES - GRILLE PAR CATÉGORIES
======================================== */

.section-competences {
  min-height: auto !important;
  padding: 4rem 0 !important;
  background: #ffffff;
}

/* Hub compétences inspiré cartes */
.skills-hub {
  background: #ffffff;
  border: 1px solid #dbe7ff;
  border-radius: 22px;
  padding: 1rem;
  box-shadow: 0 6px 24px rgba(37, 99, 235, 0.08);
}

.skills-hub-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
}

.skills-hub-card {
  padding: 1.3rem 1.1rem;
  border-right: 1px solid #e6eefc;
  border-bottom: 1px solid #e6eefc;
  transition: background 0.22s ease, transform 0.22s ease;
  opacity: 0;
  transform: translateY(10px);
}

.skills-hub-card:hover {
  background: #f8fbff;
}

.section-competences.is-visible .skills-hub-card {
  opacity: 1;
  transform: translateY(0);
}

.section-competences.is-visible .skills-hub-card:nth-child(1) {
  transition-delay: 0.03s;
}

.section-competences.is-visible .skills-hub-card:nth-child(2) {
  transition-delay: 0.07s;
}

.section-competences.is-visible .skills-hub-card:nth-child(3) {
  transition-delay: 0.11s;
}

.section-competences.is-visible .skills-hub-card:nth-child(4) {
  transition-delay: 0.15s;
}

.section-competences.is-visible .skills-hub-card:nth-child(5) {
  transition-delay: 0.19s;
}

.section-competences.is-visible .skills-hub-card:nth-child(6) {
  transition-delay: 0.23s;
}

.skills-hub-card:nth-child(3n) {
  border-right: none;
}

.skills-hub-card:nth-last-child(-n + 3) {
  border-bottom: none;
}

.skills-hub-head {
  margin-bottom: 0.8rem;
}

.skills-hub-icon {
  display: inline-flex;
  font-size: 1.3rem;
  color: #3b82f6;
  margin-bottom: 0.55rem;
}

.skills-hub-title {
  margin: 0;
  color: #0f172a;
  font-size: 1.25rem;
  line-height: 1.2;
  font-weight: 700;
}

.skills-chip-list,
.skills-os-list {
  display: grid;
  gap: 0.55rem;
  margin-bottom: 1rem;
}

.skills-chip-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.skills-os-list {
  grid-template-columns: 1fr;
}

.skills-chip {
  display: flex;
  align-items: center;
  min-height: 38px;
  border: 1px solid #cfe0ff;
  background: #f8fbff;
  color: #334155;
  border-radius: 10px;
  padding: 0.42rem 0.65rem;
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.2;
}

.skills-chip::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3b82f6;
  margin-right: 0.5rem;
  flex: 0 0 7px;
}

.skills-os-pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid #d4e2fc;
  background: #f6f9ff;
  color: #334155;
  border-radius: 10px;
  padding: 0.45rem 0.65rem;
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.2;
}

.skills-os-pill i {
  margin-right: 0.35rem;
  color: #60a5fa;
}

.skills-hub-proof {
  padding-top: 0.85rem;
  border-top: 1px solid #e6eefc;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

.skills-hub-proof>span {
  color: #64748b;
  font-size: 0.84rem;
  font-weight: 600;
}

.skills-hub-link {
  border: 1px solid #bfd9ff;
  background: #eaf2ff;
  color: #1e40af;
  border-radius: 999px;
  padding: 0.25rem 0.62rem;
  font-size: 0.8rem;
  font-weight: 600;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.skills-hub-link:hover {
  border-color: #93c5fd;
  background: #dbeafe;
}

@media (max-width: 1100px) {
  .skills-hub-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .skills-hub-card:nth-child(3n) {
    border-right: 1px solid #e6eefc;
  }

  .skills-hub-card:nth-child(2n) {
    border-right: none;
  }

  .skills-hub-card:nth-last-child(-n + 3) {
    border-bottom: 1px solid #e6eefc;
  }

  .skills-hub-card:nth-last-child(-n + 2) {
    border-bottom: none;
  }
}

/* Footer avec note */
.competences-footer {
  margin-top: 2.5rem;
  text-align: center;
}

.competences-note {
  font-size: 0.92rem;
  color: #334155;
  margin: 0;
  padding: 1rem;
  background: #f3f6fa;
  border-radius: 10px;
  border: 1px solid #dbe7ff;
}

.competences-link {
  color: #2563eb;
  text-decoration: none;
  font-weight: 600;
  margin-left: 0.35rem;
}

.competences-link:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
  .section-competences {
    padding: 3rem 0 !important;
  }

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

  .skills-hub-card {
    border-right: none;
    border-bottom: 1px solid #e6eefc;
  }

  .skills-hub-card:last-child {
    border-bottom: none;
  }

  .skills-hub-title {
    font-size: 1.2rem;
  }

  .skills-chip-list {
    grid-template-columns: 1fr;
  }

  .competences-footer {
    margin-top: 2rem;
  }
}

/* ========================================
   TABLEAU DE SYNTHÈSE
======================================== */

.section-synthese {
  min-height: auto !important;
  padding: 4rem 0 !important;
  background: #f8f9fa;
}

/* Tableau de Synthèse */
.rp-tableau-synthese {
  background: white;
  padding: 1.25rem;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  border: 1px solid #f0f0f0;
  margin-bottom: 1.5rem !important;
}

/* PDF Viewer */
.rp-pdf-container {
  max-width: 850px;
  margin: 0 auto;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
  border: 1px solid #e2e8f0;
  background: #f8fafc;
}

.rp-pdf-viewer {
  width: 100%;
  height: 600px;
  border: none;
  display: block;
}

/* Bouton téléchargement */
.rp-download-btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.rp-download-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
  color: white;
}

/* Séparateur d'années dans les RPs */
.rp-year-separator {
  grid-column: 1 / -1;
  font-size: 1.1rem;
  font-weight: 800;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin: 2rem 0 1.5rem 0;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.rp-year-separator::after {
  content: "";
  height: 1px;
  flex-grow: 1;
  background: linear-gradient(90deg, #e2e8f0 0%, transparent 100%);
}

/* ========================================
   RÉALISATIONS PROFESSIONNELLES (MODERN CARDS)
======================================== */

.section-realisations {
  padding: 5rem 0 !important;
  background: #f8fafc;
  /* Fond très légèrement bleuté pour faire ressortir les cartes blanches */
}

.rp-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  /* Forçage en 2 colonnes pour le 2x2 */
  gap: 2.5rem;
}

.rp-grid-year {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Modal plus large pour le nouveau layout */
.rp-modal-dialog {
  max-width: 1200px !important;
  width: 95%;
  margin: 1.75rem auto;
}

.rp-modal-content {
  border: none;
  border-radius: 15px;
  overflow: hidden;
}

/* Layout 2 colonnes dans le modal */
.rp-modal-layout {
  display: flex;
  gap: 40px;
  padding: 40px;
  background: white;
}

.rp-modal-main {
  flex: 1;
}

.rp-modal-sidebar {
  width: 320px;
  position: sticky;
  top: 20px;
  background: #f8fafc;
  border-radius: 12px;
  padding: 25px;
  border: 1px solid #e2e8f0;
  height: fit-content;
}

/* Sections du modèle (1. 2. 3...) */
.rp-step-section {
  margin-bottom: 50px;
}

.rp-step-title {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 20px;
  border-bottom: 2px solid #f1f5f9;
  padding-bottom: 12px;
}

.rp-step-number {
  color: #3b82f6;
  margin-right: 15px;
  font-family: 'Poppins', sans-serif;
}

/* Sidebar Info Styles */
.sidebar-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.info-item {
  margin-bottom: 18px;
}

.info-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.info-value {
  display: block;
  font-size: 1rem;
  color: #334155;
  font-weight: 600;
}

.tech-tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.tech-tag-sidebar {
  background: white;
  border: 1px solid #e2e8f0;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #3b82f6;
}

.sidebar-btn-doc {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 12px;
  background: #3b82f6;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  margin-top: 20px;
  transition: all 0.2s;
}

.sidebar-btn-doc:hover {
  background: #2563eb;
  color: white;
  transform: translateY(-2px);
}

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

  .rp-modal-layout {
    flex-direction: column;
    padding: 20px;
  }

  .rp-modal-sidebar {
    width: 100%;
    position: static;
  }
}

margin-top: 2rem;
}

.rp-card-new {
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.22s ease, border-color 0.22s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.rp-card-new:hover {
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.09);
  border-color: rgba(59, 130, 246, 0.28);
}

/* Image Header de la carte */
.rp-card-img-container {
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: #f1f5f9;
  position: relative;
}

.rp-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.28s ease;
}

.rp-card-img-dezoom {
  object-fit: contain;
  object-position: center top;
  padding: 10px;
  background: #f1f5f9;
}

.rp-card-new:hover .rp-card-img {
  transform: scale(1.02);
}

.rp-card-new:hover .rp-card-img.rp-card-img-dezoom {
  transform: scale(0.98);
}

/* Badge Année sur l'image */
.rp-card-year-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(5px);
  padding: 4px 12px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #1e293b;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Contenu de la carte */
.rp-card-content {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.rp-card-title-new {
  font-size: 1.4rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.75rem;
}

.rp-card-description-new {
  font-size: 0.95rem;
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* Badges technos (Style Screenshot) */
.rp-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2rem;
  margin-top: auto;
  /* Pousse les tags vers le bas */
}

.rp-tag-item {
  background: #eff6ff;
  /* Bleu très clair */
  color: #3b82f6;
  /* Bleu pro */
  padding: 6px 14px;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* Bouton (Style Screenshot) */
.rp-card-footer-new {
  display: flex;
  justify-content: flex-end;
}

.rp-btn-more {
  background: #3b82f6;
  color: #ffffff;
  border: none;
  padding: 10px 20px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.rp-btn-more:hover {
  background: #2563eb;
  box-shadow: 0 6px 15px rgba(59, 130, 246, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
  .rp-grid {
    grid-template-columns: 1fr;
  }
}

.rp-card:hover::before {
  transform: translateY(-50%) scale(1.15) rotate(5deg);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

/* Variantes de couleur selon le type */
.rp-card[data-type="security"]::before {
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.rp-card[data-type="security"]::after {
  content: "\f132";
}

.rp-card[data-type="security"]:hover {
  box-shadow: 0 12px 32px rgba(245, 158, 11, 0.2);
  border-color: #f59e0b;
}

.rp-card[data-type="security"]:hover::before {
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

.rp-card[data-type="web"]:hover {
  box-shadow: 0 12px 32px rgba(16, 185, 129, 0.2);
  border-color: #10b981;
}

.rp-card[data-type="network"]:hover {
  box-shadow: 0 12px 32px rgba(139, 92, 246, 0.2);
  border-color: #8b5cf6;
}

.rp-card[data-type="support"]:hover {
  box-shadow: 0 12px 32px rgba(99, 102, 241, 0.2);
  border-color: #6366f1;
}

.rp-card[data-type="infra"]:hover {
  box-shadow: 0 12px 32px rgba(14, 165, 233, 0.2);
  border-color: #0ea5e9;
}

.rp-card[data-type="web"]::before {
  background: linear-gradient(135deg, #10b981, #34d399);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.rp-card[data-type="web"]::after {
  content: "\f0ac";
}

.rp-card[data-type="web"]:hover::before {
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.rp-card[data-type="network"]::before {
  background: linear-gradient(135deg, #8b5cf6, #a78bfa);
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.rp-card[data-type="network"]::after {
  content: "\f6ff";
}

.rp-card[data-type="network"]:hover::before {
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

.rp-card[data-type="support"]::before {
  background: linear-gradient(135deg, #6366f1, #818cf8);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.rp-card[data-type="support"]::after {
  content: "\f7d9";
}

.rp-card[data-type="support"]:hover::before {
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.rp-card[data-type="infra"]::before {
  background: linear-gradient(135deg, #0ea5e9, #38bdf8);
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

.rp-card[data-type="infra"]::after {
  content: "\f0c2";
}

.rp-card[data-type="infra"]:hover::before {
  box-shadow: 0 6px 20px rgba(14, 165, 233, 0.4);
}

.rp-card-header {
  display: none;
}

.rp-badge {
  display: none;
}

.rp-card-body {
  padding: 1.15rem 1.25rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.4rem;
}

.rp-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0;
  line-height: 1.4;
  transition: color 0.3s ease;
}

.rp-card:hover .rp-card-title {
  color: #3b82f6;
}

.rp-card[data-type="security"]:hover .rp-card-title {
  color: #f59e0b;
}

.rp-card[data-type="web"]:hover .rp-card-title {
  color: #10b981;
}

.rp-card[data-type="support"]:hover .rp-card-title {
  color: #6366f1;
}

.rp-card[data-type="infra"]:hover .rp-card-title {
  color: #0ea5e9;
}

.rp-card-period {
  font-size: 0.8rem;
  color: #64748b;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  font-weight: 500;
}

.rp-card-period i {
  color: #94a3b8;
  font-size: 0.75rem;
}

.rp-card-description {
  display: block;
  font-size: 0.85rem;
  color: #64748b;
  line-height: 1.5;
  margin-bottom: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rp-card-competences {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-top: 0.15rem;
}

.rp-competence-badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  color: #1e40af;
  border-radius: 5px;
  font-size: 0.7rem;
  font-weight: 700;
  border: 1px solid #bfdbfe;
}

.rp-card-footer {
  display: flex;
  align-items: center;
  padding: 0 1.25rem 0 0;
}

.rp-card-btn {
  padding: 0.5rem 0.75rem;
  background: transparent;
  color: #94a3b8;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.rp-card:hover .rp-card-btn {
  color: #3b82f6;
  background: #eff6ff;
}

.rp-card-btn i {
  transition: transform 0.3s ease;
}

.rp-card:hover .rp-card-btn i {
  transform: translateX(4px);
}

/* ========================================
   MODAL RP (Overlay détail)
======================================== */

.rp-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.rp-modal.active {
  display: flex;
}

.rp-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
}

.rp-modal-container {
  position: relative;
  background: white;
  border-radius: 16px;
  max-width: 1400px;
  width: min(96vw, 1400px);
  max-height: 94vh;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-30px) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.rp-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  background: #f1f5f9;
  border: none;
  border-radius: 50%;
  font-size: 1.25rem;
  color: #64748b;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rp-modal-close:hover {
  background: #e2e8f0;
  color: #1e293b;
  transform: rotate(90deg);
}

.rp-modal-content {
  max-height: 94vh;
  overflow-y: auto;
  padding: 0;
}

.rp-modal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 2rem;
  padding: 2.5rem;
}

.rp-modal-main {
  min-width: 0;
  color: #334155;
}

.rp-modal-main p,
.rp-modal-main li,
.rp-modal-main td,
.rp-modal-main th,
.rp-modal-main label {
  color: #334155 !important;
}

.rp-modal-main a {
  color: #2563eb !important;
}

.rp-modal-main strong,
.rp-modal-main .rp-subsection-title,
.rp-modal-main .rp-detail-competence-text {
  color: #1e293b !important;
}

.rp-modal-main .rp-step-title,
.rp-modal-main .rp-detail-title {
  color: #2c3e50 !important;
}

.rp-modal-main .rp-step-number {
  color: #3b82f6 !important;
}

.rp-modal-main .progress-bar {
  color: #ffffff !important;
}

.rp-modal-sidebar {
  position: sticky;
  top: 1rem;
  align-self: start;
  height: fit-content;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.25rem;
}

.rp-step-section {
  margin-bottom: 1.4rem;
  border: 1px solid #bfdbfe;
  border-radius: 18px;
  background: linear-gradient(180deg, #f9fbff 0%, #f5f8ff 100%);
  padding: 1.35rem 1.35rem 1.15rem;
  box-shadow: 0 6px 18px rgba(59, 130, 246, 0.08);
}

.rp-step-title {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 2rem;
  font-weight: 700;
  color: #c9911a;
  margin-bottom: 1rem;
  padding-bottom: 0;
  border-bottom: none;
}

.rp-step-number {
  color: #c9911a;
  font-weight: 800;
}

.rp-step-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #fef3c7;
  color: #c9911a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.rp-subsection-title {
  margin: 1rem 0 0.65rem;
  font-size: 1.08rem;
  color: #1e293b;
  font-weight: 700;
}

.rp-step-section p {
  font-size: 1.02rem;
  line-height: 1.7;
  margin-bottom: 0.7rem;
  color: #334155 !important;
}

.rp-step-section ul {
  margin-bottom: 0.5rem;
}

.rp-gantt-card {
  --gantt-label-width: 220px;
  --gantt-gap: 1rem;
  --gantt-units: 4;
  margin-top: 0.75rem;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  background: #f8fafc;
  padding: 1rem;
}

.rp-pm-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0.7rem;
  margin-bottom: 1rem;
}

.rp-pm-meta-item {
  background: #f8fafc;
  border: 1px solid #dbe7ff;
  border-radius: 10px;
  padding: 0.6rem 0.75rem;
}

.rp-pm-meta-item span {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
}

.rp-pm-meta-item strong {
  color: #1e293b;
}

.rp-pm-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.8rem;
}

.rp-pm-card {
  background: #f8fafc;
  border: 1px solid #dbe7ff;
  border-radius: 12px;
  padding: 0.9rem;
}

.rp-pm-table thead th {
  background: #eef4ff;
  color: #334155;
  border-bottom: 1px solid #cbd5e1;
}

.rp-gantt-title {
  margin-top: 0;
}

.rp-gantt-title i {
  margin-right: 0.45rem;
  color: #3b82f6;
}

.rp-gantt-rows {
  margin-top: 0.45rem;
}

.rp-gantt-row {
  display: grid;
  grid-template-columns: var(--gantt-label-width) 1fr;
  gap: var(--gantt-gap);
  align-items: center;
  margin-bottom: 0.7rem;
}

.rp-gantt-label {
  font-weight: 600;
  color: #334155;
}

.rp-gantt-track {
  position: relative;
  height: 14px;
  border-radius: 999px;
  background: #e2e8f0;
}

.rp-gantt-bar {
  position: absolute;
  top: 1px;
  left: calc((var(--start) - 1) * (100% / var(--gantt-units)));
  width: calc(var(--length) * (100% / var(--gantt-units)) - 6px);
  min-width: 16px;
  height: 12px;
  border-radius: 999px;
}

.rp-gantt-bar.is-blue {
  background: linear-gradient(90deg, #60a5fa, #3b82f6);
}

.rp-gantt-bar.is-indigo {
  background: linear-gradient(90deg, #3b82f6, #2563eb);
}

.rp-gantt-bar.is-cyan {
  background: linear-gradient(90deg, #22d3ee, #06b6d4);
}

.rp-gantt-bar.is-green {
  background: linear-gradient(90deg, #4ade80, #22c55e);
}

.rp-gantt-bar.is-amber {
  background: linear-gradient(90deg, #fbbf24, #d97706);
}

.rp-gantt-chronology {
  margin-top: 0.75rem;
  padding-top: 0.65rem;
  margin-left: calc(var(--gantt-label-width) + var(--gantt-gap));
  width: calc(100% - (var(--gantt-label-width) + var(--gantt-gap)));
  border-top: 1px dashed #cbd5e1;
  display: grid;
  grid-template-columns: repeat(var(--gantt-units), minmax(0, 1fr));
  gap: 0.4rem;
  color: #475569;
}

.rp-gantt-chronology span {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.rp-gantt-chronology small {
  color: #64748b;
}

.rp-gantt-footer {
  margin-top: 0.8rem;
  padding-top: 0.4rem;
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  color: #64748b;
  font-size: 0.95rem;
}

.rp-gantt-footer i {
  margin-right: 0.35rem;
}

.sidebar-links {
  margin-top: 0.7rem;
}

.sidebar-link-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #2563eb;
  text-decoration: none;
  font-weight: 600;
  margin-bottom: 0.45rem;
}

.sidebar-link-item:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

/* Contenu détaillé de la RP */
.rp-detail-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid #f0f0f0;
}

.rp-detail-badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: #e0f2fe;
  color: #0369a1;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.rp-detail-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 0.75rem;
}

.rp-detail-meta {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  color: #64748b;
  font-size: 0.95rem;
}

.rp-detail-meta i {
  margin-right: 0.5rem;
  color: #3b82f6;
}

/* Sections du contenu */
.rp-detail-section {
  margin-bottom: 2rem;
}

.rp-detail-section-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #3b82f6;
  display: inline-block;
}

.rp-detail-section p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #34495e;
  text-align: justify;
}

.rp-detail-section ul {
  list-style: none;
  padding-left: 0;
}

.rp-detail-section ul li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.6rem;
  font-size: 0.95rem;
  color: #34495e;
}

.rp-detail-section ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6rem;
  width: 6px;
  height: 6px;
  background: #3b82f6;
  border-radius: 50%;
}

/* Tableau synthèse dans le modal */
.rp-detail-competences {
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 4px solid #3b82f6;
}

.rp-detail-competences-title {
  font-size: 1rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 1rem;
}

.rp-detail-competences-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.rp-detail-competence-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: white;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
}

.rp-detail-competence-num {
  min-width: 36px;
  height: 28px;
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

.rp-detail-competence-text {
  font-size: 0.9rem;
  color: #34495e;
  line-height: 1.5;
}

/* Technologies en tags */
.rp-tech-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.rp-tech-tag {
  padding: 0.4rem 0.85rem;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: white;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
}

/* Objectifs liste */
.rp-objectifs-list {
  padding-left: 0;
  list-style: none;
}

.rp-objectifs-list li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  color: #34495e;
  line-height: 1.5;
}

.rp-objectifs-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #64748b;
  font-weight: bold;
  font-size: 1.15rem;
  line-height: 1;
}

.rp-visual-placeholder {
  border: 1px dashed #93c5fd;
  background: #eff6ff;
  color: #1e40af;
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
  font-weight: 600;
}

/* Images RP */
.rp-images-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.rp-image-item {
  text-align: center;
}

.rp-image {
  width: 100%;
  max-height: 200px;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
  cursor: zoom-in;
  transition: transform 0.3s ease;
  background: #f8f9fa;
  padding: 0.5rem;
}

.rp-image:hover {
  transform: scale(1.02);
}

.rp-image-caption {
  font-size: 0.85rem;
  color: #64748b;
  margin-top: 0.5rem;
  font-style: italic;
}

.rp-image-placeholder {
  background: #f1f5f9;
  padding: 2rem;
  border-radius: 10px;
  color: #94a3b8;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  border: 2px dashed #e2e8f0;
}

.rp-image-placeholder i {
  font-size: 2rem;
}

.rp-image-placeholder span {
  font-size: 0.85rem;
  text-align: center;
}

/* Loading state */
.rp-modal-loading {
  text-align: center;
  padding: 3rem;
  color: #64748b;
}

/* Responsive */
@media (max-width: 768px) {
  .section-realisations {
    padding: 3rem 0 !important;
  }

  .rp-tableau-synthese {
    padding: 1.5rem;
  }

  .rp-pdf-viewer {
    height: 350px;
  }

  .rp-modal {
    padding: 1rem;
  }

  .rp-modal-container {
    max-height: 95vh;
  }

  .rp-modal-content {
    padding: 0;
  }

  .rp-modal-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1.25rem;
  }

  .rp-modal-sidebar {
    position: static;
  }

  .rp-step-title {
    font-size: 1.55rem;
  }

  .rp-gantt-row {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }

  .rp-pm-meta {
    grid-template-columns: 1fr;
  }

  .rp-gantt-chronology {
    margin-left: 0;
    width: 100%;
  }

  .rp-detail-title {
    font-size: 1.4rem;
  }

  .rp-detail-meta {
    flex-direction: column;
    gap: 0.5rem;
  }

  .rp-card-title {
    font-size: 1rem;
  }
}

/* ========================================
   STAGES - DESIGN ÉPURÉ
======================================== */

.section-stages {
  min-height: auto !important;
  padding: 4rem 0 !important;
  background: #ffffff;
}

/* Timeline verticale */
.stages-timeline {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

/* Carte de stage */
.stage-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 0;
  position: relative;
}

.stage-card:last-child {
  margin-bottom: 0;
}

.stage-card:last-child .stage-line {
  display: none;
}

/* Marqueur avec numéro */
.stage-card-marker {
  display: block;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  position: relative;
  height: 0;
}

.stage-number {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
  position: absolute;
  z-index: 2;
  top: -25px;
  left: 20px;
}

.stage-line {
  width: 3px;
  flex-grow: 1;
  background: linear-gradient(180deg, #10b981, #d1fae5);
  margin-top: 0.5rem;
  border-radius: 2px;
}

/* Contenu du stage */
.stage-card-content {
  flex-grow: 1;
  background: white;
  padding: 1.75rem;
  border-radius: 12px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
  border: 1px solid #f0f0f0;
  border-left: 4px solid #10b981;
  transition: all 0.3s ease;
  position: relative;
  padding-top: 3rem;
}

.stage-card-content:hover {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
  transform: translateX(5px);
}

/* Header du stage */
.stage-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.stage-status-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.stage-status-badge.completed {
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
  color: #065f46;
}

.stage-status-badge.pending {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #92400e;
}

.stage-dates {
  font-size: 0.9rem;
  color: #64748b;
  font-weight: 500;
}

/* Titre et entreprise avec logo */
.stage-info {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.stage-logo-container {
  flex-shrink: 0;
}

.stage-logo {
  width: 120px;
  height: 120px;
  object-fit: contain;
  border-radius: 10px;
  background: #f8f9fa;
  padding: 0.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.stage-details {
  flex-grow: 1;
}

.stage-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 0.5rem;
}

.stage-company {
  font-size: 1rem;
  color: #3b82f6;
  font-weight: 600;
  margin-bottom: 0;
}

.stage-company i {
  color: #64748b;
}

/* Missions */
.stage-missions {
  background: #f8f9fa;
  padding: 1.25rem;
  border-radius: 8px;
  margin-bottom: 1.25rem;
}

.stage-missions-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 0.75rem;
}

.stage-missions-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.stage-missions-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: #34495e;
  line-height: 1.5;
}

.stage-missions-list li:last-child {
  margin-bottom: 0;
}

.stage-missions-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 6px;
  height: 6px;
  background: #10b981;
  border-radius: 50%;
}

/* Tags de compétences */
.stage-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.stage-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  background: #f1f5f9;
  color: #475569;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.stage-tag:hover {
  background: #e2e8f0;
  color: #1e293b;
}

.stage-tag i {
  color: #3b82f6;
}

/* Responsive */
@media (max-width: 768px) {
  .section-stages {
    padding: 3rem 0 !important;
  }

  .stages-timeline {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .stage-card {
    gap: 1rem;
  }

  .stage-number {
    width: 40px;
    height: 40px;
    font-size: 1rem;
    top: -20px;
    left: 15px;
  }

  .stage-card-content {
    padding: 1.25rem;
    padding-top: 2.5rem;
  }

  .stage-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .stage-title {
    font-size: 1.1rem;
  }

  .stage-company {
    font-size: 0.9rem;
  }

  .stage-missions {
    padding: 1rem;
  }

  .stage-tag {
    font-size: 0.75rem;
    padding: 0.3rem 0.6rem;
  }

  .stage-logo {
    width: 100px;
    height: 100px;
  }

  .stage-info {
    flex-direction: column;
    gap: 1rem;
  }
}

/* ========================================
   VEILLE TECHNOLOGIQUE - DESIGN ÉPURÉ
======================================== */

.section-veille {
  min-height: auto !important;
  padding: 4rem 0 !important;
  background: #f8f9fa;
}

/* Thème de veille */
.veille-theme {
  background: linear-gradient(135deg, #1e3a5f 0%, #2c5282 100%);
  color: white;
  padding: 2.5rem;
  border-radius: 16px;
  text-align: center;
  margin-bottom: 2.5rem;
  box-shadow: 0 8px 30px rgba(30, 58, 95, 0.3);
}

.veille-theme-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.veille-theme-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.veille-theme-subtitle {
  font-size: 1rem;
  opacity: 0.9;
  margin-bottom: 0;
}

/* Sections */
.veille-section {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
  border: 1px solid #f0f0f0;
  margin-bottom: 1.5rem;
}

.veille-section-title {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 1.5rem;
}

.veille-section-num {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
}

.veille-content {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #34495e;
}

.veille-content p {
  margin-bottom: 1rem;
}

.veille-intro {
  font-size: 0.95rem;
  color: #64748b;
  font-style: italic;
  margin-bottom: 1.5rem;
}

/* Highlight box */
.veille-highlight {
  display: flex;
  gap: 1rem;
  background: #f0f9ff;
  padding: 1.25rem;
  border-radius: 8px;
  border-left: 4px solid #3b82f6;
  margin-top: 1rem;
}

.veille-highlight-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  color: #3b82f6;
}

.veille-highlight-content {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #1e3a5f;
}

/* Méthodologie */
.veille-methodology {
  display: flex;
  align-items: stretch;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.veille-step {
  flex: 1;
  min-width: 200px;
  background: #f8f9fa;
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid #e0e0e0;
  transition: all 0.3s ease;
}

.veille-step:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.veille-step-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.veille-step-icon {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: white;
  font-weight: 600;
}

.veille-step-icon.capter {
  background: linear-gradient(135deg, #10b981, #059669);
}

.veille-step-icon.filtrer {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}

.veille-step-icon.stocker {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.veille-step-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #2c3e50;
  margin: 0;
}

.veille-step-desc {
  font-size: 0.85rem;
  color: #64748b;
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.veille-step-content {
  font-size: 0.9rem;
}

.veille-step-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.veille-step-list li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.4rem;
  font-size: 0.85rem;
  color: #34495e;
}

.veille-step-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #3b82f6;
  font-weight: bold;
}

.veille-arrow {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  color: #94a3b8;
  font-weight: bold;
}

/* Preuves visuelles */
.veille-proofs {
  background: #f8f9fa;
  padding: 2rem;
  border-radius: 12px;
  border: 2px dashed #d0d0d0;
  margin-top: 1.5rem;
}

.veille-proofs-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 1.5rem;
  text-align: center;
}

.veille-proofs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.veille-proof-item {
  text-align: center;
}

.veille-proof-img {
  width: 100%;
  max-height: 280px;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  margin-bottom: 0.75rem;
  background: white;
  padding: 0.5rem;
  transition: transform 0.3s ease;
  cursor: zoom-in;
}

.veille-proof-img:hover {
  transform: scale(1.02);
}

.veille-proofs-hint {
  font-size: 0.75rem;
  font-weight: 400;
  color: #94a3b8;
  font-style: italic;
}

.veille-proof-caption {
  font-size: 0.9rem;
  color: #64748b;
  margin: 0;
  font-weight: 500;
}

/* Comparaison Antivirus vs EDR — Versus Layout */
.veille-versus {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0;
  align-items: stretch;
  margin-bottom: 2rem;
}

.veille-vs-card {
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.veille-vs-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.veille-vs-old {
  border: 2px solid #e5c5c5;
}

.veille-vs-new {
  border: 2px solid #b3d9c4;
}

.veille-vs-header {
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.veille-vs-header h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0;
  color: white;
}

.veille-vs-header-old {
  background: linear-gradient(135deg, #991b1b, #b91c1c);
}

.veille-vs-header-new {
  background: linear-gradient(135deg, #166534, #15803d);
}

.veille-vs-badge-verdict {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  align-self: flex-start;
}

.veille-verdict-bad {
  background: rgba(255, 255, 255, 0.2);
  color: #fecaca;
}

.veille-verdict-good {
  background: rgba(255, 255, 255, 0.2);
  color: #bbf7d0;
}

.veille-vs-body {
  padding: 1.5rem;
  background: white;
}

.veille-vs-block {
  margin-bottom: 1.25rem;
}

.veille-vs-block:last-child {
  margin-bottom: 0;
}

.veille-vs-block-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  margin-bottom: 0.75rem;
}

.veille-vs-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.veille-vs-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: #334155;
  line-height: 1.5;
}

.veille-vs-list li:last-child {
  margin-bottom: 0;
}

.veille-vs-list-con li::before {
  content: "✗";
  position: absolute;
  left: 0;
  color: #dc2626;
  font-weight: 700;
}

.veille-vs-list-pro li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #16a34a;
  font-weight: 700;
}

/* VS Separator */
.veille-vs-separator {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.75rem;
}

.veille-vs-label {
  width: 44px;
  height: 44px;
  background: #1e3a5f;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 12px rgba(30, 58, 95, 0.3);
}

/* Verdict Box */
.veille-verdict-box {
  background: linear-gradient(135deg, #1e3a5f, #2c5282);
  color: white;
  padding: 1.25rem 1.75rem;
  border-radius: 10px;
  margin-bottom: 2.5rem;
  text-align: center;
}

.veille-verdict-box p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.95);
}

.veille-verdict-box strong {
  color: white;
}

/* Leaders v2 */
.veille-leaders-v2 {
  margin-top: 0.5rem;
}

.veille-leaders-v2-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #e2e8f0;
}

.veille-leaders-v2-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.veille-leader-v2 {
  display: grid;
  grid-template-columns: 40px 60px 1fr auto;
  gap: 1.25rem;
  align-items: center;
  padding: 1.25rem 1.5rem;
  background: #f8f9fa;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.veille-leader-v2:hover {
  border-color: #3b82f6;
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.1);
  transform: translateX(4px);
}

.veille-leader-v2-rank {
  font-size: 1.1rem;
  font-weight: 800;
  color: #1e3a5f;
  text-align: center;
}

.veille-leader-v2-logo {
  width: 60px;
  height: 60px;
  border-radius: 10px;
  overflow: hidden;
  background: white;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.veille-leader-v2-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
}

.veille-leader-v2-info {
  min-width: 0;
}

.veille-leader-v2-info h5 {
  font-size: 1rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 0.15rem 0;
}

.veille-leader-v2-sub {
  font-size: 0.8rem;
  color: #3b82f6;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
}

.veille-leader-v2-desc {
  font-size: 0.85rem;
  color: #475569;
  line-height: 1.5;
  margin: 0 0 0.5rem 0;
}

.veille-leader-v2-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.veille-leader-v2-tags span {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  background: #e8f0fe;
  color: #1e3a5f;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
}

.veille-leader-v2-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  background: #1e3a5f;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.8rem;
  transition: all 0.3s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.veille-leader-v2-link:hover {
  background: #2c5282;
  color: white;
  box-shadow: 0 4px 12px rgba(30, 58, 95, 0.25);
}

.veille-leader-v2-link i {
  font-size: 0.65rem;
}

/* Bilan — Stats visuelles */
.veille-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.veille-stat {
  background: linear-gradient(135deg, #1e3a5f, #2c5282);
  color: white;
  border-radius: 12px;
  padding: 1.5rem 1rem;
  text-align: center;
  transition: transform 0.3s ease;
}

.veille-stat:hover {
  transform: translateY(-3px);
}

.veille-stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.veille-stat-label {
  display: block;
  font-size: 0.8rem;
  opacity: 0.85;
  font-weight: 500;
}

/* Bilan — Apports */
.veille-apports {
  margin-bottom: 2rem;
}

.veille-apports-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 1rem;
}

.veille-apports-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.veille-apport-item {
  background: #f8f9fa;
  padding: 1.25rem;
  border-radius: 10px;
  border-left: 3px solid #1e3a5f;
}

.veille-apport-item h5 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 0.5rem 0;
}

.veille-apport-item p {
  font-size: 0.85rem;
  color: #475569;
  line-height: 1.6;
  margin: 0;
}

/* Bilan — Conclusion */
.veille-conclusion {
  background: #f0f4f8;
  padding: 1.25rem 1.75rem;
  border-radius: 10px;
  border-left: 3px solid #1e3a5f;
}

.veille-conclusion p {
  font-size: 0.95rem;
  color: #334155;
  line-height: 1.7;
  margin: 0;
}

/* Responsive Veille */
@media (max-width: 768px) {
  .section-veille {
    padding: 3rem 0 !important;
  }

  .veille-theme {
    padding: 1.75rem;
  }

  .veille-theme-title {
    font-size: 1.25rem;
  }

  .veille-section {
    padding: 1.5rem;
  }

  .veille-methodology {
    flex-direction: column;
  }

  .veille-arrow {
    transform: rotate(90deg);
    justify-content: center;
    margin: 0.5rem 0;
  }

  .veille-versus {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .veille-vs-separator {
    padding: 0.75rem 0;
  }

  .veille-leader-v2 {
    grid-template-columns: 40px 50px 1fr;
    gap: 0.75rem;
    padding: 1rem;
  }

  .veille-leader-v2-link {
    grid-column: 1 / -1;
    justify-content: center;
    margin-top: 0.5rem;
  }

  .veille-leader-v2-logo {
    width: 50px;
    height: 50px;
  }

  .veille-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
  }

  .veille-stat {
    padding: 1rem 0.5rem;
  }

  .veille-stat-number {
    font-size: 1.5rem;
  }

  .veille-apports-grid {
    grid-template-columns: 1fr;
  }

  .veille-proof-caption {
    font-size: 0.8rem;
  }
}


/* ========================================
   LIGHTBOX MODAL
======================================== */

.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  overflow: hidden;
}

.lightbox-modal.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 3rem;
  color: white;
  background: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, color 0.2s ease;
  line-height: 1;
  z-index: 10001;
}

.lightbox-close:hover {
  color: #3b82f6;
  transform: scale(1.1);
}

.lightbox-image {
  max-width: 90%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
  animation: lightboxZoomIn 0.3s ease;
}

@keyframes lightboxZoomIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.lightbox-caption {
  color: white;
  font-size: 1rem;
  margin-top: 1rem;
  text-align: center;
  font-weight: 500;
}

/* ========================================
   CONTACT - DESIGN ÉPURÉ
======================================== */

.section-contact {
  min-height: auto !important;
  padding: 4rem 0 !important;
  background: #ffffff;
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

/* Cartes communes */
.contact-info-card,
.contact-form-card {
  background: #f8f9fa;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
  border: 1px solid #f0f0f0;
}

.contact-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #3b82f6;
  display: inline-block;
}

/* Items de contact */
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding: 1rem;
  background: white;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.contact-item:hover {
  transform: translateX(5px);
  box-shadow: 0 2px 12px rgba(59, 130, 246, 0.1);
}

.contact-item-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1rem;
  flex-shrink: 0;
}

.contact-item-content {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.contact-item-label {
  font-size: 0.8rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.contact-item-value {
  font-size: 0.95rem;
  color: #2c3e50;
  font-weight: 500;
  text-decoration: none;
}

a.contact-item-value:hover {
  color: #3b82f6;
}

/* Réseaux sociaux */
.contact-socials {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e0e0e0;
}

.contact-socials-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 1rem;
}

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

.contact-social-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.contact-social-btn.github {
  background: #24292e;
  color: white;
}

.contact-social-btn.github:hover {
  background: #1a1e22;
  transform: translateY(-2px);
}

.contact-social-btn.linkedin {
  background: #0077b5;
  color: white;
}

.contact-social-btn.linkedin:hover {
  background: #005885;
  transform: translateY(-2px);
}

/* Formulaire */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

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

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

.contact-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #2c3e50;
}

.contact-input {
  padding: 0.85rem 1rem;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 0.95rem;
  color: #2c3e50;
  background: white;
  transition: all 0.3s ease;
}

.contact-input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.contact-input::placeholder {
  color: #94a3b8;
}

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

.contact-submit-btn {
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 0.5rem;
}

.contact-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.35);
}

.contact-submit-btn:active {
  transform: translateY(0);
}

/* Responsive Contact */
@media (max-width: 768px) {
  .section-contact {
    padding: 3rem 0 !important;
  }

  .contact-container {
    grid-template-columns: 1fr;
  }

  .contact-info-card,
  .contact-form-card {
    padding: 1.5rem;
  }

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

  .contact-socials-links {
    flex-wrap: wrap;
  }
}

/* ========================================
   SCROLL BAR STYLING (Chrome/Edge)
======================================== */

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--primary-color), #6610f2);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-color);
}