/* =====================================================================
   Thème « Robotics HUD » : surcouche sombre au-dessus du modèle Colorlib.
   Grille de plan technique, accent cyan, typographie mono façon terminal,
   cartes à coins de viseur.
   Pour revenir au design d'origine : retirer le <link> vers ce fichier et
   le script « Fond animé du héro » à la fin de index.html.
   ===================================================================== */

:root {
  --rb-bg: #05080f;
  --rb-bg-alt: #080e1a;
  --rb-surface-top: rgba(17, 27, 46, 0.86);
  --rb-surface-bottom: rgba(9, 15, 28, 0.86);
  --rb-surface-solid: #0b1221;
  --rb-line: rgba(125, 211, 252, 0.14);
  --rb-line-strong: rgba(34, 211, 238, 0.5);
  --rb-text: #e7eef8;
  --rb-text-soft: #c2cede;
  --rb-muted: #8d9db4;
  --rb-accent: #22d3ee;
  --rb-accent-light: #67e8f9;
  --rb-accent-2: #34d399;
  --rb-accent-ink: #03141a;
  --rb-glow: 0 0 0 1px rgba(34, 211, 238, 0.4), 0 22px 60px -22px rgba(34, 211, 238, 0.5);
  --rb-shadow: 0 24px 60px -32px rgba(0, 0, 0, 0.95);
  --rb-font-head: "Space Grotesk", "Inter", system-ui, sans-serif;
  --rb-font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --rb-font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* ---------- Base ---------- */
html {
  background-color: var(--rb-bg);
  scrollbar-color: #1d3b4d var(--rb-bg);
}

body {
  font-family: var(--rb-font-body);
  color: var(--rb-muted);
  background: transparent !important;
  counter-reset: rb-section;
}

/* Grille de plan technique et halos, fixés derrière tout le contenu */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(1100px 620px at 88% -8%, rgba(34, 211, 238, 0.11), transparent 62%),
    radial-gradient(900px 640px at -12% 46%, rgba(59, 130, 246, 0.08), transparent 62%),
    radial-gradient(800px 500px at 60% 110%, rgba(52, 211, 153, 0.06), transparent 60%),
    linear-gradient(rgba(125, 211, 252, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125, 211, 252, 0.045) 1px, transparent 1px);
  background-size: auto, auto, auto, 44px 44px, 44px 44px;
}

::selection {
  background: rgba(34, 211, 238, 0.35);
  color: #fff;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: var(--rb-font-head);
  color: var(--rb-text);
  letter-spacing: -0.01em;
}

a { color: var(--rb-accent); }
a:hover, a:focus { color: var(--rb-accent-light); }

body strong, body b { color: var(--rb-text-soft); }

body li::marker { color: var(--rb-accent); }

:focus-visible {
  outline: 2px solid var(--rb-accent) !important;
  outline-offset: 3px;
}

body .bg-light,
body .bg-white { background: transparent !important; }

/* ---------- Écran de chargement ---------- */
body #ftco-loader,
body #ftco-loader.fullscreen { background-color: var(--rb-bg); }
body #ftco-loader .path-bg { stroke: rgba(34, 211, 238, 0.12); }
body #ftco-loader .path { stroke: var(--rb-accent); }

/* ---------- Barre de navigation ---------- */
body .ftco-navbar-light,
body .ftco-navbar-light.scrolled {
  background: rgba(5, 8, 15, 0.72) !important;
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--rb-line);
  box-shadow: none;
}

body .ftco-navbar-light .navbar-brand,
body .ftco-navbar-light.scrolled .navbar-brand {
  font-family: var(--rb-font-mono);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--rb-text) !important;
}
body .ftco-navbar-light .navbar-brand::before { content: "["; color: var(--rb-accent); margin-right: 3px; }
body .ftco-navbar-light .navbar-brand::after { content: "]"; color: var(--rb-accent); margin-left: 3px; }

body .ftco-navbar-light .navbar-nav > .nav-item > .nav-link,
body .ftco-navbar-light.scrolled .nav-link {
  position: relative;
  color: var(--rb-text-soft) !important;
  font-size: 14.5px;
  font-weight: 500;
}
body .ftco-navbar-light .navbar-nav > .nav-item > .nav-link:hover,
body .ftco-navbar-light .navbar-nav > .nav-item > .nav-link.active,
body .ftco-navbar-light.scrolled .nav-link.active,
body .ftco-navbar-light.scrolled .nav-item.active > a {
  color: var(--rb-accent) !important;
}

@media (min-width: 992px) {
  body .ftco-navbar-light .navbar-nav > .nav-item > .nav-link::after {
    content: "";
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 0.45rem;
    height: 1px;
    background: var(--rb-accent);
    box-shadow: 0 0 8px var(--rb-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
  }
  body .ftco-navbar-light .navbar-nav > .nav-item > .nav-link:hover::after,
  body .ftco-navbar-light .navbar-nav > .nav-item > .nav-link.active::after {
    transform: scaleX(1);
  }
}

body .ftco-navbar-light .navbar-toggler,
body .ftco-navbar-light.scrolled .navbar-toggler {
  color: var(--rb-text-soft) !important;
  font-family: var(--rb-font-mono);
  font-size: 13px;
}

@media (max-width: 991.98px) {
  body .ftco-navbar-light,
  body .ftco-navbar-light.scrolled { background: rgba(5, 8, 15, 0.94) !important; }
}

body .language-buttons a {
  font-family: var(--rb-font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--rb-text-soft);
  background: transparent;
  border: 1px solid var(--rb-line);
  border-radius: 4px;
  padding: 3px 7px;
}
body .language-buttons a:hover,
body .language-buttons a.is-active {
  color: var(--rb-accent-ink);
  background: var(--rb-accent);
  border-color: var(--rb-accent);
}

/* ---------- Héro ---------- */
/* Pas d'overflow: hidden ici : avec l'overscroll-behavior-y: contain du <head>,
   le héro deviendrait une zone de défilement qui bloque la molette. */
body #home-section { position: relative; }

.rb-hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.6;
}

/* Bloc décoratif derrière la photo : grille de plan au lieu de l'aplat bleu */
body .owl-carousel.home-slider::after {
  background:
    linear-gradient(rgba(34, 211, 238, 0.16) 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(90deg, rgba(34, 211, 238, 0.16) 1px, transparent 1px) 0 0 / 22px 22px;
  border-left: 1px solid rgba(34, 211, 238, 0.35);
  border-bottom: 1px solid rgba(34, 211, 238, 0.35);
}

/* Photo en « flux caméra » : coins de viseur, lignes de balayage, fondu à gauche */
body .owl-carousel.home-slider .slider-item .slider-text .one-third {
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.25), 0 40px 90px -40px rgba(0, 0, 0, 0.95);
}
body .owl-carousel.home-slider .slider-item .slider-text .one-third .overlay {
  opacity: 1;
  background:
    linear-gradient(var(--rb-accent), var(--rb-accent)) left 14px top 14px / 26px 2px no-repeat,
    linear-gradient(var(--rb-accent), var(--rb-accent)) left 14px top 14px / 2px 26px no-repeat,
    linear-gradient(var(--rb-accent), var(--rb-accent)) right 14px top 14px / 26px 2px no-repeat,
    linear-gradient(var(--rb-accent), var(--rb-accent)) right 14px top 14px / 2px 26px no-repeat,
    linear-gradient(var(--rb-accent), var(--rb-accent)) left 14px bottom 14px / 26px 2px no-repeat,
    linear-gradient(var(--rb-accent), var(--rb-accent)) left 14px bottom 14px / 2px 26px no-repeat,
    linear-gradient(var(--rb-accent), var(--rb-accent)) right 14px bottom 14px / 26px 2px no-repeat,
    linear-gradient(var(--rb-accent), var(--rb-accent)) right 14px bottom 14px / 2px 26px no-repeat,
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 3px),
    linear-gradient(90deg, rgba(5, 8, 15, 0.94) 0%, rgba(5, 8, 15, 0.55) 32%, rgba(5, 8, 15, 0) 58%),
    linear-gradient(0deg, rgba(5, 8, 15, 0.7), rgba(5, 8, 15, 0) 38%);
}
/* Ligne de scan qui parcourt la photo */
body .owl-carousel.home-slider .slider-item .slider-text .one-third::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, transparent 88%, rgba(34, 211, 238, 0.05) 97%, rgba(34, 211, 238, 0.3) 100%);
  animation: rb-scan 7s linear infinite;
}
@keyframes rb-scan {
  from { transform: translateY(-100%); }
  to { transform: translateY(100%); }
}

body .owl-carousel.home-slider .slider-item .slider-text .subheading {
  font-family: var(--rb-font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.28em;
  color: var(--rb-accent);
}
body .owl-carousel.home-slider .slider-item .slider-text .subheading::before {
  content: ">_ ";
  color: var(--rb-accent-2);
}

body .owl-carousel.home-slider .slider-item .slider-text h1 {
  font-family: var(--rb-font-head);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--rb-text);
}
body .owl-carousel.home-slider .slider-item .slider-text h1 span {
  font-weight: 700;
  background: linear-gradient(90deg, var(--rb-accent-light) 0%, var(--rb-accent) 45%, var(--rb-accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
body .owl-carousel.home-slider .slider-item .slider-text h1 span.black-text {
  background: none;
  color: var(--rb-text);
  -webkit-text-fill-color: currentColor;
}
body .owl-carousel.home-slider .slider-item .slider-text h2 {
  color: var(--rb-text-soft);
  font-size: 24px;
  line-height: 1.5;
}
body .owl-carousel.home-slider .slider-item .slider-text h2 .passion-text { color: var(--rb-accent); }
body .owl-carousel.home-slider .slider-item .slider-text p { color: var(--rb-text-soft); }

body .owl-carousel.home-slider .slider-item .slider-text .rb-hero-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 26px;
  padding: 7px 12px;
  font-family: var(--rb-font-mono);
  font-size: 12.5px;
  line-height: 1.4;
  letter-spacing: 0.04em;
  color: var(--rb-text-soft);
  background: rgba(5, 8, 15, 0.6);
  border: 1px solid var(--rb-line);
  border-radius: 4px;
}
.rb-dot {
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--rb-accent-2);
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6);
  animation: rb-pulse 2.2s ease-out infinite;
}
@keyframes rb-pulse {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

body .btn-custom,
body .owl-carousel.home-slider .slider-item .slider-text .btn-custom {
  display: inline-block;
  padding: 11px 24px;
  font-family: var(--rb-font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rb-accent);
  background: rgba(34, 211, 238, 0.06);
  border: 1px solid var(--rb-line-strong);
  border-radius: 4px;
}
body .btn-custom:hover,
body .btn-custom:focus {
  color: var(--rb-accent-ink);
  background: var(--rb-accent);
  box-shadow: var(--rb-glow);
}

body .owl-carousel .owl-dots .owl-dot {
  width: 22px;
  height: 3px;
  border: 0;
  border-radius: 2px;
  background: rgba(34, 211, 238, 0.25);
}
body .owl-carousel .owl-dots .owl-dot.active { background: var(--rb-accent); }

@media (max-width: 991.98px) {
  body .owl-carousel.home-slider .slider-item .slider-text .one-third .overlay {
    background:
      repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 3px),
      linear-gradient(180deg, rgba(5, 8, 15, 0.55), rgba(5, 8, 15, 0.82));
  }
  body .owl-carousel.home-slider .slider-item .slider-text h2 { font-size: 20px; }
  body .owl-carousel.home-slider .slider-item .slider-text .rb-hero-status {
    justify-content: center;
    font-size: 11.5px;
  }
}

/* ---------- Titres de section : « // 01 — SECTION » ---------- */
body .heading-section h2 {
  font-family: var(--rb-font-head);
  color: var(--rb-text) !important;
  font-weight: 700 !important;
  letter-spacing: -0.025em;
}
body .heading-section .subheading,
body .heading-section > span:first-child {
  font-family: var(--rb-font-mono);
  font-size: 12.5px;
  font-weight: 500 !important;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--rb-accent) !important;
}
body .heading-section > span:first-child { counter-increment: rb-section; }
body .heading-section > span:first-child::before {
  content: "// " counter(rb-section, decimal-leading-zero) " — ";
  color: rgba(34, 211, 238, 0.55);
}
body .heading-section p { color: var(--rb-muted); }

/* ---------- Cartes à coins de viseur ---------- */
body #experience-section .experience-wrap,
body #skills-section .skill-domain,
body .services,
body .services-1,
body .certificate-item,
body #contact-section .contact-form {
  position: relative;
  background:
    linear-gradient(var(--rb-accent), var(--rb-accent)) left top / 14px 1.5px no-repeat,
    linear-gradient(var(--rb-accent), var(--rb-accent)) left top / 1.5px 14px no-repeat,
    linear-gradient(var(--rb-accent), var(--rb-accent)) right top / 14px 1.5px no-repeat,
    linear-gradient(var(--rb-accent), var(--rb-accent)) right top / 1.5px 14px no-repeat,
    linear-gradient(var(--rb-accent), var(--rb-accent)) left bottom / 14px 1.5px no-repeat,
    linear-gradient(var(--rb-accent), var(--rb-accent)) left bottom / 1.5px 14px no-repeat,
    linear-gradient(var(--rb-accent), var(--rb-accent)) right bottom / 14px 1.5px no-repeat,
    linear-gradient(var(--rb-accent), var(--rb-accent)) right bottom / 1.5px 14px no-repeat,
    linear-gradient(180deg, var(--rb-surface-top), var(--rb-surface-bottom)) !important;
  border: 1px solid var(--rb-line) !important;
  border-radius: 4px !important;
  box-shadow: var(--rb-shadow) !important;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}
body #experience-section .experience-wrap:hover,
body #skills-section .skill-domain:hover,
body .services:hover,
body .services-1:hover,
body .certificate-item:hover {
  border-color: rgba(34, 211, 238, 0.45) !important;
  box-shadow: var(--rb-glow) !important;
}
body .services,
body .services-1 { padding: 30px 24px; }

/* ---------- À propos ---------- */
body .ftco-about .img-about .overlay {
  background:
    linear-gradient(rgba(34, 211, 238, 0.2) 1px, transparent 1px) 0 0 / 16px 16px,
    linear-gradient(90deg, rgba(34, 211, 238, 0.2) 1px, transparent 1px) 0 0 / 16px 16px;
  border: 1px solid rgba(34, 211, 238, 0.4);
}
body .ftco-about .img-about .img {
  box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.28), -20px 24px 70px -30px rgba(0, 0, 0, 0.95);
}
body .ftco-about p,
body .ftco-about li { color: var(--rb-muted); }

body .services .icon span,
body .services-1 .icon i {
  background: linear-gradient(135deg, var(--rb-accent-light) 0%, var(--rb-accent) 50%, var(--rb-accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 14px rgba(34, 211, 238, 0.35));
}
body .services .media-body h3 { color: var(--rb-text); font-weight: 600; }
body .services .media-body p { color: var(--rb-muted); }

/* ---------- Expériences ---------- */
body #experience-section .experience-item-title { color: var(--rb-text); font-weight: 600; }
body #experience-section .experience-date {
  font-family: var(--rb-font-mono);
  font-size: 12.5px;
  letter-spacing: 0.02em;
  color: var(--rb-accent);
}
body #experience-section .experience-text,
body #experience-section li { color: var(--rb-muted); }
body #experience-section .experience-logo-shell {
  border: 0;
  border-radius: 6px;
  box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.25);
}
body #experience-section .experience-image img {
  border: 1px solid var(--rb-line);
  box-shadow: none !important;
}

/* ---------- Compétences ---------- */
body #skills-section .skill-domain::before {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--rb-accent), transparent);
  opacity: 0.7;
}
body #skills-section .skill-domain h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--rb-text);
  font-weight: 600;
}
body #skills-section .skill-domain h3::before {
  content: "";
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  background: var(--rb-accent);
  box-shadow: 0 0 10px var(--rb-accent);
}
body #skills-section .skill-badge {
  min-height: 30px;
  padding: 5px 10px;
  font-family: var(--rb-font-mono);
  font-size: 12.5px;
  font-weight: 500;
  color: #a5f3fc;
  background: rgba(34, 211, 238, 0.06);
  border: 1px solid rgba(34, 211, 238, 0.22);
  border-radius: 4px;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
body #skills-section .skill-badge:hover {
  color: #ecfeff;
  background: rgba(34, 211, 238, 0.14);
  border-color: rgba(34, 211, 238, 0.55);
}

/* ---------- « What I do » ---------- */
body .services-1 .desc h3 a {
  font-family: var(--rb-font-mono);
  color: var(--rb-accent);
}
body .services-1 .desc h3::after {
  background: var(--rb-accent);
  box-shadow: 0 0 8px var(--rb-accent);
}
body .services-1 .desc h4 {
  color: var(--rb-text-soft);
  font-weight: 400;
  font-size: 18px;
}

/* ---------- Bandeau « Open to opportunity » ---------- */
body .ftco-hireme {
  position: relative;
  background:
    linear-gradient(rgba(34, 211, 238, 0.07) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, rgba(34, 211, 238, 0.07) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(110deg, rgba(34, 211, 238, 0.16), rgba(59, 130, 246, 0.1) 55%, rgba(52, 211, 153, 0.12)),
    var(--rb-bg-alt) !important;
  border-top: 1px solid var(--rb-line);
  border-bottom: 1px solid var(--rb-line);
}
body .ftco-hireme h2 {
  font-family: var(--rb-font-head);
  font-weight: 400;
  color: var(--rb-text);
}
body .ftco-hireme h2 span {
  font-weight: 700;
  color: var(--rb-accent);
  text-shadow: 0 0 24px rgba(34, 211, 238, 0.45);
}

/* ---------- Boutons ---------- */
body .btn.btn-primary,
body .btn.btn-white {
  font-family: var(--rb-font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rb-accent-ink) !important;
  background: var(--rb-accent) !important;
  border: 1px solid var(--rb-accent) !important;
  border-radius: 4px !important;
  box-shadow: 0 10px 30px -12px rgba(34, 211, 238, 0.6);
}
body .btn.btn-primary:hover,
body .btn.btn-primary:focus,
body .btn.btn-white:hover,
body .btn.btn-white:focus {
  background: var(--rb-accent-light) !important;
  border-color: var(--rb-accent-light) !important;
  box-shadow: var(--rb-glow);
}
body .btn.btn-secondary {
  font-family: var(--rb-font-mono);
  font-size: 13px;
  color: var(--rb-accent);
  background: transparent;
  border: 1px solid var(--rb-line-strong);
  border-radius: 4px;
}
body .btn.btn-secondary:hover,
body .btn.btn-secondary:focus {
  color: var(--rb-accent-ink);
  background: var(--rb-accent);
  border-color: var(--rb-accent);
}

/* ---------- Projets ---------- */
body #projects-section .project-card .project {
  border: 1px solid var(--rb-line);
  border-radius: 6px !important;
  box-shadow: var(--rb-shadow);
}
body #projects-section .project-card .project:hover,
body #projects-section .project-card .project:focus {
  border-color: rgba(34, 211, 238, 0.6);
  box-shadow: var(--rb-glow);
}
body #projects-section .project-card .project .overlay {
  background: linear-gradient(180deg, rgba(5, 8, 15, 0.05) 28%, rgba(5, 8, 15, 0.93) 100%) !important;
}
body #projects-section .project-card .project .text h3 {
  font-family: var(--rb-font-head);
  font-weight: 600;
}
body #projects-section .project-card .project .text h3 a { color: var(--rb-text); }
body #projects-section .project-card .project .text span {
  font-family: var(--rb-font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  color: var(--rb-accent) !important;
}
body #projects-section .project-card .project .text small {
  font-family: var(--rb-font-mono);
  color: var(--rb-muted) !important;
}

/* Sur mobile, le texte couvre une plus grande part de l'image : fondu plus sombre */
@media (max-width: 767.98px) {
  body #projects-section .project-card .project .overlay {
    background: linear-gradient(180deg, rgba(5, 8, 15, 0.2) 0%, rgba(5, 8, 15, 0.82) 42%, rgba(5, 8, 15, 0.96) 100%) !important;
  }
  body #projects-section .project-card .project .text h3 { font-size: 18px; }
  body #projects-section .project-card .project .text span { font-size: 10.5px; }
}

/* ---------- Fenêtres de détail des projets ---------- */
body .modal-backdrop.show {
  background: #01030a;
  opacity: 0.8;
}
body .modal-content {
  color: var(--rb-muted);
  background:
    linear-gradient(var(--rb-accent), var(--rb-accent)) left top / 18px 2px no-repeat,
    linear-gradient(var(--rb-accent), var(--rb-accent)) left top / 2px 18px no-repeat,
    linear-gradient(var(--rb-accent), var(--rb-accent)) right bottom / 18px 2px no-repeat,
    linear-gradient(var(--rb-accent), var(--rb-accent)) right bottom / 2px 18px no-repeat,
    var(--rb-surface-solid);
  border: 1px solid var(--rb-line);
  border-radius: 6px;
  box-shadow: 0 40px 120px -40px rgba(0, 0, 0, 1), 0 0 0 1px rgba(34, 211, 238, 0.12);
}
body .modal-header,
body .modal-footer { border-color: var(--rb-line); }
body .modal-title { color: var(--rb-text); font-weight: 600; }
body .modal-body h4 {
  margin-top: 1.4rem;
  font-family: var(--rb-font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rb-accent);
}
body .modal-body h4::before { content: "// "; color: rgba(34, 211, 238, 0.55); }
body .modal-body p,
body .modal-body li { color: var(--rb-muted); }
body .modal-body img { border: 1px solid var(--rb-line); }
body .modal .close {
  color: var(--rb-text);
  text-shadow: none;
  opacity: 0.7;
}
body .modal .close:hover { color: var(--rb-accent); opacity: 1; }

/* ---------- Certifications ---------- */
body .certificate-item h3 { color: var(--rb-text); }
body .certificate-item p { color: var(--rb-muted); }
body .certificate-item .label { color: var(--rb-text-soft); }
body .certificate-item time {
  font-family: var(--rb-font-mono);
  font-size: 14px;
  color: var(--rb-accent);
}
body .certificate-item img {
  padding: 6px;
  background: #fff;
  border-radius: 4px;
}

/* ---------- Contact ---------- */
body #contact-section .form-control {
  color: var(--rb-text) !important;
  background: rgba(3, 6, 12, 0.7) !important;
  border: 1px solid var(--rb-line) !important;
  border-radius: 4px !important;
}
body #contact-section .form-control::placeholder {
  font-family: var(--rb-font-mono);
  font-size: 13px;
  color: #6b7c94;
}
body #contact-section .form-control:focus {
  color: var(--rb-text) !important;
  background: rgba(3, 6, 12, 0.9) !important;
  border-color: var(--rb-accent) !important;
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.18) !important;
}
body #contact-section .img {
  border: 1px solid var(--rb-line);
}

/* ---------- Pied de page ---------- */
body .ftco-footer {
  background: #03060c !important;
  border-top: 1px solid var(--rb-line);
}
body .ftco-footer .ftco-heading-2,
body .ftco-footer .ftco-footer-widget h2 {
  font-family: var(--rb-font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rb-accent);
}
body .ftco-footer p,
body .ftco-footer a,
body .ftco-footer .ftco-footer-widget ul li a,
body .ftco-footer .ftco-footer-widget ul li a span,
body .ftco-footer .block-23 ul li span { color: var(--rb-muted); }
body .ftco-footer a:hover,
body .ftco-footer .ftco-footer-widget ul li a:hover,
body .ftco-footer .ftco-footer-widget ul li a:hover span { color: var(--rb-accent); }
body .ftco-footer .block-23 ul li .icon { color: var(--rb-accent); }
body .ftco-footer-social li a {
  color: var(--rb-accent);
  background: rgba(34, 211, 238, 0.07);
  border: 1px solid var(--rb-line-strong);
}
body .ftco-footer-social li a:hover {
  color: var(--rb-accent-ink);
  background: var(--rb-accent);
  box-shadow: var(--rb-glow);
}

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  body .owl-carousel.home-slider .slider-item .slider-text .one-third::before,
  .rb-dot { animation: none; }
  body #projects-section .project-card .project:hover,
  body #skills-section .skill-domain:hover { transform: none; }
}

/* =====================================================================
   Améliorations v2 : chiffres clés, frise des expériences, grilles,
   curseur clignotant, barre de progression, indicateur sur les projets.
   ===================================================================== */

/* ---------- Barre de progression de lecture ---------- */
.rb-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2000;
  height: 2px;
  pointer-events: none;
  background: linear-gradient(90deg, var(--rb-accent), var(--rb-accent-2));
  box-shadow: 0 0 10px rgba(34, 211, 238, 0.7);
  transform: scaleX(0);
  transform-origin: 0 50%;
}

/* ---------- Curseur de terminal après « >_ HELLO » ---------- */
body .owl-carousel.home-slider .slider-item .slider-text .subheading::after {
  content: "▋";
  margin-left: 6px;
  color: var(--rb-accent);
  animation: rb-blink 1.1s steps(1) infinite;
}
@keyframes rb-blink { 50% { opacity: 0; } }

/* ---------- Titres : pas de majuscule à chaque mot (« À propos de moi ») ---------- */
body .heading-section h2.about-title,
body .heading-section h2.experience-title { text-transform: none !important; }

/* ---------- Bandeau de chiffres clés ---------- */
.rb-stats {
  position: relative;
  z-index: 1;
  background: linear-gradient(180deg, rgba(8, 14, 26, 0.92), rgba(5, 8, 15, 0.92));
  border-top: 1px solid var(--rb-line);
  border-bottom: 1px solid var(--rb-line);
}
.rb-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.rb-stat {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 30px 26px;
  border-left: 1px solid var(--rb-line);
}
.rb-stat:first-child { border-left: 0; }
.rb-stat::before {
  content: "";
  width: 26px;
  height: 2px;
  margin-bottom: 6px;
  background: var(--rb-accent);
  box-shadow: 0 0 10px var(--rb-accent);
}
.rb-stat-value {
  font-family: var(--rb-font-head);
  font-size: 44px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(90deg, var(--rb-accent-light), var(--rb-accent) 55%, var(--rb-accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.rb-stat-label {
  font-family: var(--rb-font-mono);
  font-size: 11.5px;
  line-height: 1.55;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rb-muted);
}
@media (max-width: 767.98px) {
  .rb-stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rb-stat { padding: 22px 16px; }
  .rb-stat:nth-child(3) { border-left: 0; }
  .rb-stat:nth-child(n+3) { border-top: 1px solid var(--rb-line); }
  .rb-stat-value { font-size: 34px; }
  .rb-stat-label { font-size: 10.5px; }
}

/* ---------- « Ce que j'apporte » : grille 3 + 2, cartes numérotées ---------- */
body .rb-bring .rb-bring-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 22px;
  margin: 0;
  counter-reset: rb-bring;
}
body .rb-bring .rb-bring-grid > div {
  grid-column: span 2;
  width: auto;
  max-width: none;
  flex: none;
  padding: 0;
  margin: 0 !important;
}
body .rb-bring .rb-bring-grid > div:nth-child(n+4) { grid-column: span 3; }
body .rb-bring .services {
  width: 100%;
  margin: 0;
  padding: 28px 26px;
  text-align: left !important;
  counter-increment: rb-bring;
}
body .rb-bring .services::before {
  content: counter(rb-bring, decimal-leading-zero);
  position: absolute;
  top: 22px;
  right: 24px;
  font-family: var(--rb-font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: rgba(34, 211, 238, 0.6);
}
body .rb-bring .services .icon { margin-bottom: 16px; }
body .rb-bring .services .icon span { font-size: 40px; }
body .rb-bring .services .media-body h3 { font-size: 19px; margin-bottom: 10px !important; }
body .rb-bring .services .media-body p { margin-bottom: 0; font-size: 15px; }
@media (max-width: 991.98px) {
  body .rb-bring .rb-bring-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body .rb-bring .rb-bring-grid > div,
  body .rb-bring .rb-bring-grid > div:nth-child(n+4) { grid-column: span 1; }
  body .rb-bring .rb-bring-grid > div:nth-child(5) { grid-column: span 2; }
}
@media (max-width: 575.98px) {
  body .rb-bring .rb-bring-grid { grid-template-columns: minmax(0, 1fr); }
  body .rb-bring .rb-bring-grid > div:nth-child(5) { grid-column: span 1; }
}

/* ---------- « Ce que je fais » : listes façon terminal ---------- */
body .rb-whatido .services-1 {
  margin-bottom: 30px;
  padding: 30px 28px;
  text-align: left;
}
body .rb-whatido .services-1 .icon { margin-bottom: 20px; }
body .rb-whatido .services-1 .icon i { font-size: 44px; }
body .rb-whatido .services-1 .desc h3 { margin-bottom: 30px !important; }
body .rb-whatido .services-1 .desc h3::after {
  left: 0;
  right: auto;
  margin: 0;
}
body .rb-whatido .services-1 .desc h4 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 11px 0;
  font-size: 16px;
  border-top: 1px dashed rgba(125, 211, 252, 0.16);
}
body .rb-whatido .services-1 .desc h4::before {
  content: "▹";
  color: var(--rb-accent);
}

/* ---------- Expériences : frise chronologique ---------- */
body #experience-section .container > .row:last-child {
  position: relative;
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 58px;
}
body #experience-section .container > .row:last-child::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 21px;
  width: 2px;
  background: linear-gradient(180deg, var(--rb-accent), rgba(34, 211, 238, 0.35) 65%, rgba(34, 211, 238, 0));
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.45);
}
body #experience-section .container > .row:last-child > [class*="col-"] {
  position: relative;
  flex: 0 0 100%;
  max-width: 100%;
  margin-bottom: 30px;
  padding-left: 0;
  padding-right: 0;
}
body #experience-section .container > .row:last-child > [class*="col-"]::before {
  content: "";
  position: absolute;
  top: 30px;
  left: -44px;
  z-index: 1;
  box-sizing: border-box;
  width: 16px;
  height: 16px;
  border: 2px solid var(--rb-accent);
  border-radius: 50%;
  background: var(--rb-bg);
  box-shadow: 0 0 0 5px rgba(34, 211, 238, 0.1), 0 0 16px rgba(34, 211, 238, 0.7);
}
body #experience-section .container > .row:last-child > [class*="col-"]::after {
  content: "";
  position: absolute;
  top: 37px;
  left: -28px;
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, var(--rb-accent), rgba(34, 211, 238, 0.2));
}
body #experience-section .experience-image img {
  width: 100%;
  max-width: 560px;
}
@media (max-width: 767.98px) {
  body #experience-section .container > .row:last-child { padding-left: 34px; }
  body #experience-section .container > .row:last-child::before { left: 9px; }
  body #experience-section .container > .row:last-child > [class*="col-"]::before { left: -32px; }
  body #experience-section .container > .row:last-child > [class*="col-"]::after { left: -16px; width: 16px; }
}

/* ---------- Projets : indicateur « ouvrir » ---------- */
body #projects-section .project-card .project::after {
  content: "↗";
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  font-family: var(--rb-font-mono);
  font-size: 16px;
  color: var(--rb-accent);
  background: rgba(5, 8, 15, 0.75);
  border: 1px solid var(--rb-line-strong);
  border-radius: 4px;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
body #projects-section .project-card .project:hover::after,
body #projects-section .project-card .project:focus::after {
  opacity: 1;
  transform: none;
}
@media (hover: none) {
  body #projects-section .project-card .project::after { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  body .owl-carousel.home-slider .slider-item .slider-text .subheading::after { animation: none; }
}

/* ---------- Projets à venir : badge « Coming soon », carte non cliquable ---------- */
body #projects-section .project-soon .project { cursor: default; }
body #projects-section .project-soon .project:hover,
body #projects-section .project-soon .project:focus {
  transform: none;
  border-color: rgba(251, 191, 36, 0.4);
  box-shadow: var(--rb-shadow);
}
body #projects-section .project-soon .project::after { display: none; }
body #projects-section .project-soon .project .text h3 { color: var(--rb-text); }
.rb-soon-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  font-family: var(--rb-font-mono);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fde68a;
  background: rgba(5, 8, 15, 0.8);
  border: 1px solid rgba(251, 191, 36, 0.45);
  border-radius: 4px;
}
.rb-soon-badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fbbf24;
  box-shadow: 0 0 8px #fbbf24;
  animation: rb-blink 1.6s steps(1) infinite;
}
@media (prefers-reduced-motion: reduce) {
  .rb-soon-badge::before { animation: none; }
}

/* ---------- Photo du héro sur mobile : le cadre devient vertical, on garde le visage (≈61 % de la largeur) ---------- */
@media (max-width: 991.98px) {
  body .owl-carousel.home-slider .slider-item .slider-text .one-third { background-position: 68% center; }
}
