/* ==========================================================================
   IMPORTS ET VARIABLES — Design system "Signal" (v2026)
   ========================================================================== */
@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap");

:root {
  /* Accent unique (teal signal) + secondaire ambre, utilisés avec parcimonie */
  --color-primary: #15b8a6;          /* Teal signal — liens, focus, accents */
  --color-primary-light: #5eead4;    /* Teal clair — hover, glow discret */
  --color-accent-2: #f5a524;         /* Ambre — second accent (expérience, highlights) */

  --color-text: #15181c;             /* Encre quasi noire */
  --color-text-light: #5b6572;       /* Gris texte secondaire */
  --color-muted: #8993a1;            /* Gris discret (légendes) */

  --surface: #ffffff;
  --surface-alt: #f4f6f8;
  --surface-sunken: #eef1f4;
  --border-subtle: rgba(21, 24, 28, 0.08);
  --ink: #0b1016;                    /* Fond sombre (hero, footer) */
  --ink-elevated: #121922;

  --font-main: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: "Space Grotesk", var(--font-main);
  --font-script: "JetBrains Mono", "Fira Code", monospace; /* ex-police cursive -> label mono technique */

  --gradient-primary: linear-gradient(135deg, #15b8a6, #0ea5e9);
  --gradient-purple: var(--gradient-primary);   /* alias conservé pour compat. descendante */
  --gradient-pink: linear-gradient(135deg, #f5a524, #fb923c);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --shadow-soft: 0 10px 30px -10px rgba(15, 23, 32, 0.12);
  --shadow-lift: 0 20px 45px -15px rgba(15, 23, 32, 0.22);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Thème sombre — bascule via bouton (data-theme) ou préférence système */
:root[data-theme="dark"],
:root:not([data-theme="light"]) {
  --color-text: #e8ecef;
  --color-text-light: #aab3bd;
  --color-muted: #7c8794;
  --surface: #121922;
  --surface-alt: #0f151d;
  --surface-sunken: #0b1016;
  --border-subtle: rgba(232, 236, 239, 0.08);
}
:root[data-theme="light"] { color-scheme: light; }
:root:not([data-theme="light"]) { color-scheme: dark; }

@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
    --color-text: #15181c;
    --color-text-light: #5b6572;
    --color-muted: #8993a1;
    --surface: #ffffff;
    --surface-alt: #f4f6f8;
    --surface-sunken: #eef1f4;
    --border-subtle: rgba(21, 24, 28, 0.08);
  }
}

/* ==========================================================================
   COUCHE "HUD" — lueurs néon, trames, coins de visée (thème futuriste)
   ========================================================================== */
:root {
  --glow-primary: 0 0 0 1px rgba(21, 184, 166, 0.4), 0 0 16px rgba(21, 184, 166, 0.35), 0 0 40px rgba(21, 184, 166, 0.15);
  --glow-primary-soft: 0 0 0 1px rgba(21, 184, 166, 0.25), 0 0 14px rgba(21, 184, 166, 0.2);
  --glow-accent2: 0 0 0 1px rgba(245, 165, 36, 0.4), 0 0 16px rgba(245, 165, 36, 0.3);
  --hud-corner: var(--color-primary);
}

@keyframes scanline-sweep {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100vh); }
}
@keyframes hud-pulse {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}
@keyframes border-sweep {
  0% { background-position: 0% 0%; }
  100% { background-position: 200% 0%; }
}
@keyframes text-flicker {
  0%, 92%, 100% { opacity: 1; }
  94% { opacity: 0.6; }
  96% { opacity: 0.92; }
}

/* Trame de scanlines très discrète, posée sur les fonds sombres */
.scanline-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.025) 0px,
    rgba(255, 255, 255, 0.025) 1px,
    transparent 1px,
    transparent 3px
  );
  mix-blend-mode: overlay;
}

/* Coins de visée HUD, posés sur une carte en position relative */
.hud-corners {
  position: relative;
}
.hud-corners::before,
.hud-corners::after,
.hud-corners > .hud-corner-br,
.hud-corners > .hud-corner-bl {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: var(--hud-corner);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  pointer-events: none;
}
.hud-corners::before { top: -1px; left: -1px; border-top: 2px solid; border-left: 2px solid; }
.hud-corners::after { top: -1px; right: -1px; border-top: 2px solid; border-right: 2px solid; }
.hud-corners:hover::before,
.hud-corners:hover::after {
  opacity: 1;
}

/* Coins de visée appliqués directement aux cartes du site (pas de classe
   supplémentaire nécessaire dans le HTML) */
.service-inner,
.work-item,
.content-card,
.detail-item {
  position: relative;
}
.service-inner::before, .service-inner::after,
.work-item::before, .work-item::after,
.content-card::before, .content-card::after,
.detail-item::before, .detail-item::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: var(--color-primary);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  pointer-events: none;
  z-index: 3;
}
.service-inner::before, .work-item::before, .content-card::before, .detail-item::before {
  top: 8px; left: 8px; border-top: 2px solid; border-left: 2px solid;
}
.service-inner::after, .work-item::after, .content-card::after, .detail-item::after {
  bottom: 8px; right: 8px; border-bottom: 2px solid; border-right: 2px solid;
}
.service-inner:hover::before, .service-inner:hover::after,
.work-item:hover::before, .work-item:hover::after,
.content-card:hover::before, .content-card:hover::after,
.detail-item:hover::before, .detail-item:hover::after {
  opacity: 1;
}

/* Bouton néon : contour lumineux + balayage au survol */
.btn-neon {
  position: relative;
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
  background: transparent;
  transition: box-shadow 0.3s var(--ease), color 0.3s var(--ease), background 0.3s var(--ease);
}
.btn-neon:hover {
  box-shadow: var(--glow-primary);
  color: #04221d;
  background: var(--color-primary);
}

/* Texte à lueur néon, pour accents ponctuels */
.glow-text {
  text-shadow: 0 0 12px rgba(21, 184, 166, 0.55), 0 0 28px rgba(21, 184, 166, 0.25);
}

@media (prefers-reduced-motion: reduce) {
  .scanline-overlay { display: none; }
}


/* ==========================================================================
   BASE STYLES
   ========================================================================== */
html {
  overflow-x: hidden;
}

body {
  background: var(--surface);
  font-size: 15px;
  font-weight: 400;
  font-family: var(--font-main);
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  color: var(--color-text-light);
  line-height: 1.7;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  overflow-x: hidden;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
}

h1, h2, h3, h4 {
  font-size: 38px;
  font-weight: 700;
  font-family: var(--font-heading);
  color: var(--color-text);
  letter-spacing: -0.01em;
}

.script-font {
  font-family: var(--font-script);
  letter-spacing: 0.04em;
}

/* Lien d'évitement pour l'accessibilité clavier */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 100000;
  padding: 0.75rem 1.25rem;
  background: var(--color-primary);
  color: #04221d;
  font-weight: 600;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus {
  left: 0;
}

/* Molette de bascule de thème */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-left: 10px;
  border-radius: 50%;
  /* comme le reste de la nav : clair sur le hero sombre, suit le thème une fois collée */
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  cursor: pointer;
  transition: all 0.3s var(--ease);
}
.top-nav-collapse .theme-toggle {
  border-color: var(--border-subtle);
  background: var(--surface-alt);
  color: var(--color-text);
}
.theme-toggle:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: var(--glow-primary-soft);
}
.theme-toggle svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
}
/* Par défaut (pas d'attribut = thème sombre) : icône soleil = "passer en clair" */
.theme-toggle .icon-sun { display: block; }
.theme-toggle .icon-moon { display: none; }
:root[data-theme="light"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: block; }

a {
  -webkit-transition: all 0.2s linear;
  -moz-transition: all 0.2s linear;
  -o-transition: all 0.2s linear;
  transition: all 0.2s linear;
}

a:hover {
  text-decoration: none;
}

a:focus {
  outline: none;
}

p {
  font-weight: 400;
  font-family: var(--font-main);
  margin: 0px;
  font-size: 14px;
}

ul, ol {
  list-style: outside none none;
  margin: 0;
  padding: 0;
}

ul li, ol li {
  list-style: none;
}

/* ==========================================================================
   MOUVEMENT & ACCESSIBILITÉ
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce), (update: slow) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .wow {
    opacity: 1 !important;
    transform: none !important;
  }
  .floating-dot,
  .timeline-icon::before,
  .skill-progress-bar::after,
  .marker-pulse,
  .image-frame {
    animation: none !important;
  }
}

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

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

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

@keyframes fillBar {
  from { width: 0%; }
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes pulse-education {
  0% {
    opacity: 0;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.2);
  }
  100% {
    opacity: 0;
    transform: scale(1.4);
  }
}

@keyframes pulse-experience {
  0% {
    opacity: 0;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.2);
  }
  100% {
    opacity: 0;
    transform: scale(1.4);
  }
}

/* ==========================================================================
   HERO AREA
   ========================================================================== */
.hero-area-bg {
  background:
    radial-gradient(circle at 15% 20%, rgba(21, 184, 166, 0.22), transparent 45%),
    radial-gradient(circle at 85% 75%, rgba(245, 165, 36, 0.14), transparent 50%),
    var(--ink);
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

/* Trame technique discrète (grille), pas de photo stock */
.hero-area-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.5;
  background-image:
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at 50% 35%, rgba(0,0,0,0.9), transparent 75%);
}

.hero-area-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, var(--ink) 100%);
  z-index: 1;
  pointer-events: none;
  opacity: 0.6;
}

/* Le contenu passe au-dessus de l’overlay */
.hero-area-bg > * {
  position: relative;
  z-index: 2;
}

#hero-area {
  color: #fff;
  overflow: hidden;
  position: relative;
}

#hero-area .contents {
  padding: 150px 0;
  position: relative;
  z-index: 2;
  text-align: center;
}

#hero-area .contents h5 {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-script);
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary-light);
  margin-bottom: 20px;
  animation: fadeInDown 1s ease-out;
}
#hero-area .contents h5::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(21, 184, 166, 0.25);
}

#hero-area .contents .head-title {
  color: #fff;
  font-family: var(--font-heading);
  font-size: 4.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: none;
  margin-bottom: 18px;
  animation: fadeInUp 1.2s ease-out;
}
#hero-area .contents .head-title .accent {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

#hero-area .contents p {
  font-family: var(--font-script);
  font-size: 1.2rem;
  color: #c3cad2; /* toujours clair : le hero reste sombre quel que soit le thème */
  font-weight: 400;
  line-height: 1.5;
  margin-bottom: 30px;
  min-height: 1.6em;
  animation: fadeInUp 1.4s ease-out;
}
#hero-area .contents p .typed-cursor {
  display: inline-block;
  margin-left: 2px;
  color: var(--color-primary);
  animation: blinkCursor 1s step-end infinite;
}
@media (prefers-reduced-motion: reduce) {
  #hero-area .contents p .typed-cursor { animation: none; }
}
@keyframes blinkCursor { 50% { opacity: 0; } }

#hero-area .contents .social-icon {
  margin: 30px 0;
  animation: fadeInUp 1.6s ease-out;
}

#hero-area .contents .social-icon li a {
  width: 46px;
  height: 46px;
  line-height: 46px;
  font-size: 1.3rem;
  margin: 0 8px;
  transition: all 0.3s var(--ease);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

#hero-area .contents .social-icon li a:hover {
  border-color: var(--color-primary);
  color: var(--color-primary) !important;
}

#hero-area .contents .social-icon li a:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

#hero-area .contents .header-button {
  animation: fadeInUp 1.8s ease-out;
}

#hero-area .banner_bottom_btn {
  margin-top: 40px;
}

#hero-area .banner_bottom_btn i {
  color: #fff;
  font-size: 48px;
  transition: all 0.2s linear;
}

#hero-area .banner_bottom_btn i:hover {
  color: #ddd;
}

/* ==========================================================================
   NAVIGATION (version futuriste aux couleurs du thème)
   ========================================================================== */
.navbar {
  padding: 0;
  background: rgba(11, 16, 22, 0.6);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.4s var(--ease);
}

.navbar-brand {
  position: relative;
  padding: 0;
  display: inline-flex;
  align-items: center;
}

/* Logotype texte (remplace l'ancien logo.png de template) */
.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.brand-logo .brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--gradient-primary);
  box-shadow: 0 0 10px rgba(21, 184, 166, 0.7);
  flex: none;
  transition: transform 0.3s var(--ease);
}
.brand-logo:hover .brand-dot {
  transform: rotate(90deg) scale(1.15);
}
.brand-logo .brand-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  color: #fff; /* la nav flotte toujours sur le hero sombre tant qu'elle n'est pas "collapsed" */
  transition: color 0.3s var(--ease);
}
.top-nav-collapse .brand-logo .brand-text {
  color: var(--color-text);
}

/* Effet sticky */
.top-nav-collapse {
  background: var(--surface);
  z-index: 999999;
  top: 0px !important;
  min-height: 60px;
  box-shadow: var(--shadow-soft);
  border-bottom: 1px solid var(--border-subtle);
  -webkit-animation-duration: 0.8s;
  animation-duration: 0.8s;
  -webkit-animation-fill-mode: both;
  animation-fill-mode: both;
  -webkit-animation-name: fadeInDown;
  animation-name: fadeInDown;
}

/* Liens du menu : la nav flotte sur un hero toujours sombre tant qu'elle n'est pas
   "collapsed", donc le texte reste clair indépendamment du thème clair/sombre ;
   une fois collée en haut (fond = var(--surface)) elle suit le thème. */
.navbar-expand-lg .navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
  padding: 0 18px;
  margin: 15px 6px;
  line-height: 40px;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  transition: all 0.3s ease-in-out;
}
.top-nav-collapse .navbar-expand-lg .navbar-nav .nav-link {
  color: var(--color-text);
}

/* Soulignement animé avec gradient */
.navbar-expand-lg .navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 8px;
  width: 0;
  height: 2px;
  background: var(--gradient-purple);
  transition: all 0.4s ease;
  transform: translateX(-50%);
  border-radius: 2px;
}

.navbar-expand-lg .navbar-nav .nav-link:hover::after,
.navbar-expand-lg .navbar-nav li.active .nav-link::after {
  width: 60%;
  box-shadow: 0 0 8px rgba(21, 184, 166, 0.8);
}

.navbar-expand-lg .navbar-nav .nav-link:hover,
.navbar li.active a.nav-link {
  color: var(--color-primary) !important;
}

/* Icônes */
.navbar-expand-lg .navbar-nav .nav-link i {
  font-size: 22px;
  margin-right: 6px;
  color: var(--color-primary);
  vertical-align: middle;
  transition: all 0.3s ease-in-out;
}
.navbar-expand-lg .navbar-nav .nav-link:hover i {
  color: var(--color-primary-light);
  text-shadow: 0 0 6px var(--color-primary-light);
}

/* Dropdown Menu */
.dropdown-toggle::after {
  display: none;
}

.dropdown-menu {
  margin: 0;
  padding: 10px 0;
  min-width: 220px;
  background: #fff;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  animation: fadeIn 0.3s ease-in-out;
}

.dropdown-menu:before {
  content: "";
  display: inline-block;
  position: absolute;
  bottom: 100%;
  left: 20%;
  margin-left: -5px;
  border-right: 10px solid transparent;
  border-left: 10px solid transparent;
  border-bottom: 10px solid #fff;
}

.dropdown:hover .dropdown-menu {
  display: block;
  position: absolute;
  text-align: left;
  top: 100%;
  border: none;
  animation: fadeIn 0.3s ease-in-out;
}

.dropdown .dropdown-menu .dropdown-item {
  padding: 12px 20px;
  font-size: 14px;
  color: var(--color-text);
  border-bottom: 1px solid #f1f1f1;
  transition: all 0.3s ease-in-out;
}

.dropdown .dropdown-menu .dropdown-item:last-child {
  border-bottom: none;
}

.dropdown .dropdown-item:hover,
.dropdown .dropdown-item.active {
  color: var(--color-primary);
  background: rgba(102,126,234,0.08); /* reflet violet */
  text-shadow: 0 0 5px var(--color-primary);
}

.dropdown-item.active,
.dropdown-item:active {
  background: transparent;
}

/* Mobile Menu */
.navbar-toggler {
  display: none;
}

.mobile-menu {
  display: none;
}

.slicknav_menu {
  display: none;
}

.slicknav_btn {
  border-color: var(--color-primary);
}

.slicknav_menu .slicknav_icon-bar {
  background: var(--color-primary);
}

/* ==========================================================================
   ABOUT SECTION
   ========================================================================== */
#about {
  background: var(--surface-alt);
  position: relative;
  overflow: hidden;
}

.img-thumb img {
  border: 8px solid #fff;
  box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.2);
}

.img-thumb-container {
  position: relative;
  z-index: 2;
}

.image-wrapper {
  position: relative;
  display: inline-block;
}

.image-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  padding: 4px;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.image-frame:hover {
  transform: translateY(-6px);
  box-shadow: var(--glow-primary);
}

.profile-image {
  width: 100%;
  height: auto;
  border-radius: calc(var(--radius-lg) - 4px);
  display: block;
  transition: transform 0.4s ease;
}

.image-frame:hover .profile-image {
  transform: scale(1.03);
}

.image-overlay {
  position: absolute;
  top: 4px;
  left: 4px;
  right: 4px;
  bottom: 4px;
  background: linear-gradient(135deg, rgba(21, 184, 166, 0.08), transparent);
  border-radius: calc(var(--radius-lg) - 4px);
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.image-frame:hover .image-overlay {
  opacity: 0;
}

.floating-elements {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
}

.floating-dot {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-primary);
  box-shadow: 0 0 0 5px rgba(21, 184, 166, 0.18);
}

.dot-1 {
  top: 20%;
  right: -6px;
  animation: float 3s ease-in-out infinite;
}

.dot-2 {
  bottom: 30%;
  left: -6px;
  background: var(--color-accent-2);
  box-shadow: 0 0 0 5px rgba(245, 165, 36, 0.18);
  animation: float 3s ease-in-out infinite 1s;
}

.dot-3 {
  top: 60%;
  right: -6px;
  animation: float 3s ease-in-out infinite 2s;
}

.profile-wrapper {
  padding: 45px 0;
  position: relative;
  z-index: 2;
  color: var(--color-text);
}

.greeting-section {
  display: flex;
  align-items: center;
  margin-bottom: 2rem;
}

.greeting-text {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 0;
  margin-right: 1rem;
}

.greeting-line {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, var(--border-subtle), transparent);
}

.about-description {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--color-text-light);
  margin-bottom: 2.5rem;
}

.profile-details {
  margin-bottom: 3rem;
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.25rem;
}

.detail-item {
  display: flex;
  align-items: center;
  background: var(--surface);
  padding: 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  transition: all 0.3s var(--ease);
}

.detail-item:hover {
  border-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.detail-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--surface-sunken);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  color: var(--color-primary);
  flex: none;
}

.detail-content {
  display: flex;
  flex-direction: column;
}

.detail-label {
  font-size: 0.8rem;
  color: var(--color-muted);
  margin-bottom: 0.2rem;
}

.detail-value {
  font-weight: 600;
  color: var(--color-text);
}

.status-available {
  color: var(--color-primary);
}

.about-profile {
  position: relative;
  margin: 20px 0 20px 0;
}

.about-profile .pro-title {
  font-weight: 700;
  color: #040404;
  position: relative;
  width: 120px;
  display: inline-block;
  margin-bottom: 5px;
}

.about-profile .pro-title:after {
  position: absolute;
  content: ':';
  color: #040404;
  font-size: 14px;
  left: 77px;
}

.about-profile .admin-sign {
  position: absolute;
  right: 45px;
  bottom: 10px;
}

.action-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-modern {
  display: inline-flex;
  align-items: center;
  padding: 0.9rem 1.9rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  position: relative;
  overflow: hidden;
  transition: all 0.3s var(--ease);
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--color-primary);
  color: #04221d;
  box-shadow: var(--shadow-soft);
}

.btn-secondary {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--border-subtle);
}

.btn-modern:hover {
  transform: translateY(-3px);
  text-decoration: none;
}

.btn-primary:hover {
  background: var(--color-primary-light);
  box-shadow: var(--glow-primary);
  color: #04221d;
}

.btn-secondary:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* Les boutons restent clairs sur fond sombre (hero) */
.hero-area-bg .btn-secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}
.hero-area-bg .btn-secondary:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn-modern i {
  margin-right: 0.5rem;
}

/* ==========================================================================
   SERVICES SECTION
   ========================================================================== */
#services {
  background: var(--surface-alt);
  position: relative;
}

.services {
  background: var(--surface-alt);
}

.services-item {
  background: #fff;
  border-radius: 4px;
  padding: 48px 20px;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: all 0.3s ease-in-out 0s;
}

.services-item .icon i {
  font-size: 42px;
  margin-bottom: 15px;
  text-align: center;
  width: 48px;
  display: block;
  margin: 0 auto;
  height: 48px;
  color: var(--color-primary);
}

.services-item .services-content h3 {
  margin-top: 10px;
  margin-bottom: 10px;
}

.services-item .services-content h3 a {
  font-size: 18px;
  text-transform: uppercase;
  color: #666;
}

.services-item .services-content h3 a:hover {
  color: var(--color-primary);
}

.services-item .services-content p {
  line-height: 22px;
}

.services-item:hover {
  box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.2);
}

.service-card {
  height: 100%;
  margin-bottom: 2rem;
}

.service-inner {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 2.5rem 2rem;
  height: 100%;
  position: relative;
  overflow: hidden;
  transition: all 0.4s var(--ease);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
}

.service-inner:hover {
  transform: translateY(-8px);
  border-color: var(--color-primary);
  box-shadow: var(--glow-primary);
}

.service-icon-wrapper {
  position: relative;
  margin-bottom: 1.5rem;
  align-self: center;
}

.service-icon {
  width: 68px;
  height: 68px;
  border-radius: var(--radius-sm);
  background: var(--surface-sunken);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  color: var(--color-primary);
  position: relative;
  z-index: 2;
  transition: all 0.3s var(--ease);
}

.service-inner:hover .service-icon {
  background: var(--color-primary);
  color: #04221d;
  transform: translateY(-3px);
}

.icon-bg {
  display: none;
}

.service-content {
  text-align: center;
  flex: 1;
  margin-bottom: 1.5rem;
}

.service-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 1rem;
}

.service-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.service-inner:hover .service-title a {
  color: var(--color-primary);
}

.service-description {
  color: var(--color-text-light);
  line-height: 1.6;
  margin: 0;
}

.service-footer {
  text-align: center;
  margin-top: auto;
}

.service-link {
  color: #667eea;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.service-link:hover {
  color: #764ba2;
  text-decoration: none;
}

.service-link i {
  transition: transform 0.3s ease;
}

.service-link:hover i {
  transform: translateX(5px);
}

.hover-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(21, 184, 166, 0.04), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: var(--radius-md);
}

.service-inner:hover .hover-overlay {
  opacity: 1;
}

/* ==========================================================================
   SKILLS SECTION
   ========================================================================== */
#skill {
  background: var(--surface);
  position: relative;
  overflow: hidden;
}

.skill-item {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-subtle);
  transition: all 0.4s var(--ease);
  position: relative;
  overflow: hidden;
}

.skill-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  transition: left 0.6s;
}

.skill-item:hover::before {
  left: 100%;
}

.skill-item:hover {
  transform: translateY(-6px);
  border-color: var(--color-primary);
  box-shadow: var(--glow-primary);
}

.skill-header {
  position: relative;
  z-index: 2;
}

.skill-name {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-text);
  font-size: 1.05rem;
}

.skill-percentage {
  font-family: var(--font-script);
  font-weight: 500;
  color: var(--color-primary);
  font-size: 1.1rem;
}

.progress-container {
  position: relative;
}

.skill-progress {
  height: 10px;
  border-radius: 10px;
  background: var(--surface-sunken);
  overflow: visible;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.06);
}

.skill-progress-bar {
  height: 100%;
  border-radius: 10px;
  background: var(--gradient-primary);
  position: relative;
  transition: width 1.4s var(--ease);
  box-shadow: var(--glow-primary-soft);
}

.skill-progress-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.5) 50%, transparent 70%);
  border-radius: 10px;
  animation: shimmer 2s infinite;
}

.skill-glow {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
  transform: translateY(-50%);
  opacity: 0;
  transition: opacity 0.3s;
}

.skill-item:hover .skill-glow {
  opacity: 1;
}

.skill-progress-bar.animate {
  animation: fillBar 2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.wow.flipInX {
  animation-duration: 1s;
  animation-fill-mode: both;
}

/* ==========================================================================
   RESUME SECTION
   ========================================================================== */
#resume {
  background: var(--surface-alt);
  position: relative;
  overflow: hidden;
}

/* ==========================================================================
   TIMELINE CENTRÉE — Formation + Expérience fusionnées, triées par année,
   avec les dates en bulle posée sur la ligne centrale.
   ========================================================================== */
.center-timeline {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
  padding: 1rem 0;
}

.center-timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border-subtle);
  transform: translateX(-50%);
}

.ct-item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 64px;
  margin-bottom: 72px;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.ct-item:last-child {
  margin-bottom: 0;
}

.ct-card.content-card {
  grid-column: 1;
}
.ct-item.ct-right .ct-card {
  grid-column: 2;
}

/* Bulle de date posée sur la ligne centrale, au niveau du haut de chaque carte */
.ct-bubble {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-family: var(--font-script);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: normal;
  text-align: center;
  line-height: 1.3;
  /* une date longue ("Novembre 2021 - Actuellement") doit passer à la ligne
     plutôt que déborder sur les cartes de part et d'autre de la ligne */
  width: max-content;
  max-width: min(200px, calc(50vw - 40px));
}
.ct-bubble i {
  font-size: 0.85rem;
}

.ct-education .ct-bubble {
  background: var(--color-primary);
  color: #04221d;
  box-shadow: var(--glow-primary-soft);
}
.ct-experience .ct-bubble {
  background: var(--color-accent-2);
  color: #2b1a02;
  box-shadow: var(--glow-accent2);
}

@media (max-width: 767px) {
  .center-timeline::before {
    left: 22px;
  }

  .ct-item {
    grid-template-columns: 1fr;
    padding-left: 52px;
    margin-bottom: 44px;
  }
  .ct-item.ct-right .ct-card,
  .ct-card {
    grid-column: 1;
    padding-top: 0;
  }

  /* petit repère sur la ligne, la bulle redevient un badge normal au-dessus de la carte */
  .ct-item::before {
    content: '';
    position: absolute;
    left: 22px;
    top: 8px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--surface);
    border: 3px solid var(--color-primary);
    transform: translateX(-50%);
    z-index: 4;
  }
  .ct-experience.ct-item::before {
    border-color: var(--color-accent-2);
  }

  .ct-bubble {
    position: static;
    transform: none;
    margin-bottom: 0.75rem;
  }
}

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

.timeline-header {
  display: flex;
  align-items: center;
  margin-bottom: 3rem;
  position: relative;
}

.timeline-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  margin-right: 1.5rem;
  position: relative;
  overflow: hidden;
}

.education-icon {
  background: var(--color-primary);
  color: #04221d;
  box-shadow: var(--glow-primary-soft);
}

.experience-icon {
  background: var(--color-accent-2);
  color: #2b1a02;
  box-shadow: var(--glow-accent2);
}

.timeline-icon::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  transition: left 0.6s;
}

.timeline-icon:hover::before {
  left: 100%;
}

.timeline-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--color-text);
  margin: 0;
}

.modern-timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
}

.modern-timeline::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border-subtle);
  border-radius: 1px;
}

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

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

.timeline-item.wow.fadeInLeft,
.timeline-item.wow.fadeInRight {
  opacity: 1;
  transform: translateX(0);
}

.timeline-marker {
  position: absolute;
  left: 10px;
  top: 0;
  width: 20px;
  height: 20px;
}

.marker-dot {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--surface);
  border: 3px solid;
  position: relative;
  z-index: 2;
}

.education-marker .marker-dot {
  border-color: var(--color-primary);
  box-shadow: 0 0 8px rgba(21, 184, 166, 0.6);
}

.experience-marker .marker-dot {
  border-color: var(--color-accent-2);
  box-shadow: 0 0 8px rgba(245, 165, 36, 0.6);
}

.marker-pulse {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid;
  opacity: 0;
  pointer-events: none;
}
.education-marker .marker-pulse {
  border-color: var(--color-primary);
  animation: marker-pulse-ring 2.4s ease-out infinite;
}
.experience-marker .marker-pulse {
  border-color: var(--color-accent-2);
  animation: marker-pulse-ring 2.4s ease-out infinite;
  animation-delay: 0.6s;
}
@keyframes marker-pulse-ring {
  0% { transform: scale(0.8); opacity: 0.7; }
  100% { transform: scale(1.8); opacity: 0; }
}

.content-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-subtle);
  position: relative;
  overflow: hidden;
  transition: all 0.4s var(--ease);
}

.content-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--glow-primary);
}

.education-card:hover {
  border-left: 3px solid var(--color-primary);
}

.experience-card:hover {
  border-left: 3px solid var(--color-accent-2);
}

.card-header {
  margin-bottom: 1rem;
}

.card-header-with-logo {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.experience-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  /* fond clair fixe : la plupart des logos d'entreprise sont prévus pour un
     fond blanc et se noient sinon dans une carte sombre */
  background: #fff;
  border: 1px solid rgba(245, 165, 36, 0.35);
  box-shadow: 0 0 0 1px rgba(245, 165, 36, 0.15), 0 6px 16px rgba(0, 0, 0, 0.25);
  padding: 7px;
  flex: none;
}

@media (max-width: 768px) {
  .experience-logo {
    width: 52px;
    height: 52px;
  }
}

.content-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.content-period {
  display: inline-block;
  padding: 0.25rem 1rem;
  border-radius: 20px;
  font-family: var(--font-script);
  font-size: 0.8rem;
  font-weight: 500;
  color: #04221d;
}

.education-card .content-period {
  background: var(--color-primary);
}

.experience-card .content-period {
  background: var(--color-accent-2);
  color: #2b1a02;
}

.content-description {
  color: var(--color-text-light);
  line-height: 1.6;
  margin: 0;
  font-size: 0.95rem;
}

.card-shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.6s;
  pointer-events: none;
}

.content-card:hover .card-shine {
  left: 100%;
}

/* Timeline Legacy Styles */
.timeline {
  position: relative;
}

.timeline .timelin-title {
  font-size: 20px;
  text-transform: uppercase;
  margin-left: 25px;
}

.timeline li {
  padding: 0 20px 20px 30px;
  list-style: none;
  border-left: 2px solid #f1f1f1;
}

.timeline li .content-text {
  background: #f2f2f2;
  padding: 20px;
}

.timeline li .line-title {
  font-size: 16px;
  line-height: 6px;
}

.timeline li span {
  font-size: 12px;
  padding: 9px 0;
  display: block;
}

.timeline li .line-text {
  color: #888;
  line-height: 18px;
}

.timeline li:first-child:before {
  border: 0;
  background: none;
  position: relative;
}

.timeline li:last-child {
  padding: 0 20px 0px 30px;
}

.timeline li:before {
  content: "";
  border: solid 2px;
  width: 8px;
  height: 8px;
  border-radius: 50px;
  font-size: 8px;
  margin-left: -35px;
  font-weight: 400;
  background: #fff;
  display: block;
  position: absolute;
  margin-top: 18px;
  border-color: var(--color-primary) !important;
}

.timeline li:first-child i {
  font-size: 20px;
  float: left;
  margin-left: -30px;
  line-height: 50px;
  border-radius: 30px;
  margin: -12px -55px;
  background: var(--color-primary);
  color: #fff;
  width: 50px;
  height: 50px;
  text-align: center;
}

/* ==========================================================================
   BANNIÈRE DE PAGE (portfolio.php, etc.)
   ========================================================================== */
.page-banner {
  background:
    radial-gradient(circle at 15% 20%, rgba(21, 184, 166, 0.2), transparent 45%),
    var(--ink);
  position: relative;
  overflow: hidden;
  padding: 160px 0 70px;
  text-align: center;
}
.page-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.45;
  background-image:
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at 50% 30%, rgba(0,0,0,0.9), transparent 75%);
}
.page-banner > * {
  position: relative;
  z-index: 2;
}
.page-banner .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-script);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-primary-light);
  margin-bottom: 14px;
}
.page-banner .eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(21, 184, 166, 0.25);
}
.page-banner h1 {
  font-family: var(--font-heading);
  color: #fff;
  font-size: 2.8rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.page-banner p {
  color: #c3cad2;
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto;
}
.page-banner .btn-modern {
  margin-top: 24px;
}

/* Filtres portfolio */
.portfolio-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin-bottom: 2.5rem;
}
.portfolio-filters button {
  border: 1px solid var(--border-subtle);
  background: var(--surface);
  color: var(--color-text-light);
  font-family: var(--font-script);
  font-size: 0.8rem;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.25s var(--ease);
}
.portfolio-filters button:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.portfolio-filters button.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #04221d;
}

/* ==========================================================================
   PORTFOLIO/WORKS SECTION
   ========================================================================== */
#portfolios {
  background: #f2f2f2;
}

#portfolios .mix {
  padding: 10px;
}

#portfolios .portfolio-item .shot-item {
  margin: 0px;
}

#portfolio .mix {
  display: none;
}

.portfolio-works-section {
  background: var(--surface-alt);
}

.work-item {
  background: var(--surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-subtle);
  transition: all 0.3s var(--ease);
  height: 100%;
}

.work-item:hover {
  transform: translateY(-8px);
  border-color: var(--color-primary);
  box-shadow: var(--glow-primary);
}

.work-image {
  position: relative;
  overflow: hidden;
  height: 250px;
}

.work-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.work-item:hover .work-image img {
  transform: scale(1.1);
}

.work-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(11, 16, 22, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.work-item:hover .work-overlay {
  opacity: 1;
}

.work-overlay-content {
  text-align: center;
}

.work-overlay-content .btn {
  margin: 0 5px;
  border-width: 2px;
  font-weight: 600;
}

.work-info {
  padding: 1.5rem;
}

.work-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.8rem;
}

.work-description {
  color: var(--color-text-light);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.work-technologies {
  margin-bottom: 1rem;
}

.tech-badge {
  display: inline-block;
  background: var(--surface-sunken);
  color: var(--color-primary);
  font-family: var(--font-script);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
  margin: 0.2rem 0.3rem 0.2rem 0;
  border: 1px solid var(--border-subtle);
}

.work-date {
  border-top: 1px solid var(--border-subtle);
  padding-top: 1rem;
}

.work-date i {
  margin-right: 0.5rem;
  color: var(--color-primary);
}

.controls {
  text-align: center;
  padding: 0px 0px 20px;
}

.controls .active {
  color: var(--color-primary) !important;
  border-color: var(--color-primary);
  background: transparent;
}

.controls .btn {
  text-transform: uppercase;
  margin: 2px;
  color: #fff;
}

.controls:hover {
  cursor: pointer;
}

.portfolio-img {
  overflow: hidden;
  display: block;
  position: relative;
}

.portfolio-img img {
  width: 100%;
}

.shot-item {
  margin-right: 15px;
  border-radius: 4px;
  background: #fff;
  position: relative;
}

.shot-item img {
  width: 100%;
}

.shot-item .overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  background: rgba(0, 180, 217, 0.6);
  opacity: 0;
  -webkit-transition: all 0.5s ease-in-out;
  transition: all 0.5s ease-in-out;
}

.shot-item:hover .overlay {
  opacity: 1;
}

.overlay {
  opacity: 0;
}

.overlay .icons i {
  height: 42px;
  width: 42px;
  line-height: 42px;
  color: var(--color-primary);
  left: 50%;
  margin-left: -24px;
  margin-top: -24px;
  top: 50%;
  position: absolute;
  z-index: 2;
  cursor: pointer;
  text-align: center;
  font-size: 20px;
  -webkit-transition: all 0.5s ease-in-out;
  -moz-transition: all 0.5s ease-in-out;
  transition: all 0.5s ease-in-out;
  background: #fff;
  border-radius: 4px;
}

.overlay .preview {
  position: absolute;
  left: 45%;
  top: 50%;
  color: #fff;
}

.overlay .link {
  position: absolute;
  left: 60%;
  margin-left: 10px;
  top: 50%;
  color: #fff;
}



/* ==========================================================================
   LETTRE DE MOTIVATION SECTION (gris élégant + accents violets)
   ========================================================================== */
#lettre {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
#lettre::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="paper" width="6" height="6" patternUnits="userSpaceOnUse"><path d="M 0 0 L 6 0 6 6 0 6 Z" fill="rgba(0,0,0,0.03)" /></pattern></defs><rect width="100" height="100" fill="url(%23paper)" /></svg>');
  pointer-events: none;
}

/* Boîte principale */
.letter-box {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 3rem;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  max-width: 850px;
  margin: 0 auto;
}

/* Bandeau haut violet */
.letter-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 120px;
  background: var(--gradient-purple);
  z-index: 1;
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
}
.letter-box::after {
  content: '';
  position: absolute;
  top: 20px;
  left: 20px;
  right: 20px;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(118, 75, 162, 0.4), transparent);
  z-index: 2;
}

/* Contenu texte */
.letter-box p {
  position: relative;
  z-index: 3;
  font-family: var(--font-main);
  font-size: 1.1rem;
  line-height: 1.8;
  color: #333;
  margin-bottom: 1.5rem;
  text-align: justify;
}
.letter-box strong {
  color: var(--color-primary);
  font-weight: 600;
}
.letter-box em {
  font-style: italic;
  color: var(--color-text-light);
  display: block;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

/* Signature */
.letter-box .mt-5 {
  margin-top: 3rem !important;
  text-align: right;
  font-family: var(--font-script);
  font-size: 1.8rem;
  color: var(--color-primary);
  position: relative;
  padding-right: 80px;
  z-index: 3;
}
.letter-box .mt-5::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: -5px;
  width: 150px;
  height: 2px;
  background: var(--gradient-purple);
  border-radius: 2px;
}

/* En-tête (date / lieu en haut) */
.letter-box p:first-child {
  text-align: right;
  font-size: 1rem;
  margin-bottom: 2rem;
  color: #555;
}


/* ==========================================================================
   FORMS & CONTACT (version futuriste, violet & thème actuel)
   ========================================================================== */
#contact {
  background: var(--surface-alt);
}
.contact-form-area {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 60px 40px;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
  transition: all 0.3s var(--ease);
}
.contact-form-area h2 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--color-text);
  letter-spacing: -0.01em;
  text-align: center;
}

/* Champs du formulaire */
.form-control {
  width: 100%;
  margin-bottom: 20px;
  font-size: 15px;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  border: 1px solid var(--border-subtle);
  background: var(--surface-alt);
  color: var(--color-text);
  transition: all 0.3s var(--ease);
}
.form-control:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(21, 184, 166, 0.15);
  outline: none;
}

/* Bouton envoyer */
.contact-form-area .btn {
  background: var(--color-primary);
  border: none;
  border-radius: var(--radius-sm);
  padding: 12px 28px;
  color: #04221d;
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: all 0.3s var(--ease);
  box-shadow: var(--shadow-soft);
}
.contact-form-area .btn:hover {
  transform: translateY(-2px);
  background: var(--color-primary-light);
  box-shadow: var(--glow-primary);
}

/* Zone infos contact */
.footer-right-contact {
  padding: 20px;
  border-radius: var(--radius-md);
  margin-top: 40px;
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
}
.footer-right-contact .single-contact {
  margin: 15px 0;
  padding-left: 60px;
  position: relative;
  color: var(--color-text-light);
  font-size: 15px;
}
.footer-right-contact .single-contact p {
  margin-bottom: 6px;
}
.footer-right-contact .single-contact p a {
  color: var(--color-primary);
  transition: color 0.3s ease;
}
.footer-right-contact .single-contact p a:hover {
  color: var(--color-primary-light);
}

/* Icônes rondes */
.footer-right-contact .contact-icon {
  background: var(--color-primary);
  color: #04221d;
  border-radius: 50%;
  font-size: 20px;
  height: 44px;
  width: 44px;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-soft);
}

/* Carte */
#conatiner-map {
  margin-top: 40px;
  height: 370px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
}


/* ==========================================================================
   COMMON COMPONENTS
   ========================================================================== */
.section-padding {
  padding: 60px 0;
}

.section-titile-bg {
  display: inline;
  font-size: 115px;
  font-weight: 700;
  height: 100%;
  left: -173px;
  opacity: 0.1;
  position: absolute;
  top: -14px;
  width: 100%;
  text-align: center;
}

.section-title-header p {
  text: center;
  font-weight: 400;
  line-height: 26px;
  padding-bottom: 36px;
}

.section-title {
  color: var(--color-text);
  font-size: 38px;
  text-align: center;
  letter-spacing: 1px;
  line-height: 1;
  margin-bottom: 48px;
  padding: 0 10px;
  position: relative;
}

.section-header {
  margin-bottom: 4rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.5rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--color-primary);
  border-radius: 2px;
  box-shadow: 0 0 10px rgba(21, 184, 166, 0.7);
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--color-text-light);
  margin-top: 0.5rem;
}

.section-divider {
  width: 60px;
  height: 4px;
  background: var(--gradient-purple);
  margin: 0 auto;
  border-radius: 2px;
  position: relative;
}

.section-divider::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -10px;
  right: -10px;
  bottom: -2px;
  background: var(--gradient-purple);
  border-radius: 4px;
  opacity: 0.3;
  z-index: -1;
}

.title-decoration {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.decoration-line {
  width: 60px;
  height: 2px;
  background: var(--gradient-purple);
}

.decoration-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-primary);
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  font-size: 14px;
  padding: 10px 30px;
  border-radius: 0px;
  cursor: pointer;
  font-weight: 400;
  color: #fff;
  border-radius: 4px;
  text-transform: uppercase;
  -webkit-transition: all 0.2s linear;
  -moz-transition: all 0.2s linear;
  -o-transition: all 0.2s linear;
  transition: all 0.2s linear;
  display: inline-block;
}

.btn:focus,
.btn:active {
  box-shadow: none;
  outline: none;
  color: #fff;
}

.btn-common {
  background-color: var(--color-primary);
  position: relative;
  z-index: 1;
  padding: 14px 36px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-transform: none;
  border-radius: var(--radius-sm);
  color: #04221d;
  box-shadow: var(--shadow-soft);
  transition: all 0.3s var(--ease);
}

.btn-common:hover {
  color: #04221d;
  background-color: var(--color-primary-light);
  transform: translateY(-3px);
  box-shadow: var(--glow-primary);
}

.btn-danger:hover {
  background-color: #f55262;
  border-color: #f55262;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.1);
  transition: all .2s ease-in-out;
}

.btn-border {
  color: #fff;
  background-color: transparent;
  border: 1px solid #fff;
}

.btn-border:hover {
  border: 1px solid #fff;
  color: #fff;
  background-color: rgba(255, 255, 255, 0.2);
}

.btn-lg {
  padding: 14px 33px;
  text-transform: uppercase;
  font-size: 16px;
}

.btn-rm {
  padding: 7px 10px;
  text-transform: capitalize;
}

button:focus {
  outline: none !important;
}

/* ==========================================================================
   SOCIAL ICONS
   ========================================================================== */
.social-icon li {
  display: inline-block;
}

.social-icon li a {
  color: #000;
  background: #fff;
  width: 35px;
  height: 35px;
  line-height: 38px;
  display: block;
  text-align: center;
  border-radius: 100%;
  font-size: 16px;
  margin: 15px 6px 12px 6px;
  transition: all 0.3s ease-in-out 0s;
}

.social-icon li a:hover {
  color: #fff;
}

.social-icon li .facebook:hover {
  background: #3b5999;
}

.social-icon li .twitter:hover {
  background: #4A9CEC;
}

.social-icon li .instagram:hover {
  background: #D6274D;
}

.social-icon li .linkedin:hover {
  background: #1260A2;
}

.social-icon li .google:hover {
  background: #CE332A;
}

/* ==========================================================================
   UTILITY CLASSES
   ========================================================================== */
.icon-close, .icon-check {
  color: var(--color-primary);
}


.menu-bg {
  background: transparent;
}

.fadeInUpMenu {
  -webkit-animation-name: fadeInUpMenu;
  animation-name: fadeInUpMenu;
}

/* ==========================================================================
   SCROLL TO TOP
   ========================================================================== */
a.back-to-top {
  display: none;
  position: fixed;
  bottom: 18px;
  right: 15px;
  text-decoration: none;
}

a.back-to-top i {
  display: block;
  font-size: 20px;
  width: 44px;
  height: 44px;
  line-height: 44px;
  color: #04221d;
  background: var(--color-primary);
  border-radius: 50%;
  text-align: center;
  transition: all 0.2s var(--ease);
  box-shadow: var(--glow-primary-soft);
}
a.back-to-top:hover i {
  background: var(--color-primary-light);
  transform: translateY(-3px);
  box-shadow: var(--glow-primary);
}

a.back-to-top:hover, a.back-to-top:focus {
  text-decoration: none;
}

/* ==========================================================================
   LOADER
   ========================================================================== */
#loader {
  position: fixed;
  background: #fff;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999999999;
}

.square-spin {
  position: absolute;
  top: 50%;
  left: 50%;
  margin-left: -40px;
  margin-top: -40px;
}

.square-spin img {
  max-width: 64px;
}

/* ==========================================================================
   FOOTER AREA
   ========================================================================== */
.footer-area {
  background: var(--ink);
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-area .footer-text p {
  font-size: 13px;
  margin-top: 20px;
  color: rgba(255,255,255,0.55);
  font-family: var(--font-script);
  letter-spacing: 0.02em;
}

.footer-area .social-icon li a {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
}
.footer-area .social-icon li a:hover {
  border-color: var(--color-primary);
}

.footer-area .footer-text p a {
  color: var(--color-primary);
}

.footer-area .footer-text .nav-inline .nav-link {
  padding: 11px 7px;
  color: #888;
}

.footer-area .footer-text .nav-inline .nav-link:hover {
  color: var(--color-primary);
}

.footer-2 {
  background: #252525;
}

.footer-2 img {
  margin-top: -8px;
}

.footer-2 h3 {
  font-size: 20px;
  color: #fff;
  font-weight: 700;
  padding-bottom: 10px;
  letter-spacing: 0.5px;
}

.footer-2 p {
  font-size: 14px;
  color: #fff;
  line-height: 20px;
  margin: 0;
  padding-right: 50px;
}

.footer-2 ul li a {
  color: #fff;
  font-size: 13px;
  font-weight: 400;
}

.footer-2 ul li a:hover {
  color: var(--color-primary);
}

#copyright {
  background: #333;
}

#copyright p {
  line-height: 42px;
  color: #fff;
  margin: 0;
}

#copyright p a {
  color: #fff;
}

#copyright p a:hover {
  color: var(--color-primary);
}

/* Footer spécial pour lettre de motivation */
#lettre + .footer-area {
  background: #f8f9fa;
  padding: 30px 0;
}

#lettre + .footer-area .social-icon li a {
  background: rgba(0, 180, 217, 0.1);
  border: 1px solid rgba(0, 180, 217, 0.2);
  color: var(--color-primary);
}

#lettre + .footer-area .social-icon li a:hover {
  background: var(--color-primary);
  color: white;
  transform: translateY(-3px);
}

/* ==========================================================================
   LINK STYLES
   ========================================================================== */
a:not([href]):not([tabindex]) {
  color: #fff;
}

a:not([href]):not([tabindex]):focus, a:not([href]):not([tabindex]):hover {
  color: #fff;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  #hero-area .contents .head-title {
    font-size: 4.5rem;
  }
  #hero-area .contents h5 {
    font-size: 2.5rem;
  }
  #hero-area .contents p {
    font-size: 1.8rem;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991px) {
  /* Navigation */
  #nav-main li a.nav-link {
    padding-top: 18px;
  }
  
  /* Hero Area */
  #hero-area .contents .head-title {
    font-size: 3.5rem;
  }
  #hero-area .contents h5 {
    font-size: 2rem;
  }
  #hero-area .contents p {
    font-size: 1.4rem;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (max-width: 768px) {
  /* Navigation Mobile */
  .navbar-header {
    width: 100%;
  }
  
  .navbar-brand {
    position: absolute;
    padding: 0px 15px;
    top: 0;
  }
  
  .navbar-brand img {
    width: 75%;
  }
  
  #mobile-menu {
    display: none;
  }
  
  .slicknav_menu {
    display: block;
  }
  
  .slicknav_nav .active a {
    background: #E91E63;
    color: #fff;
  }
  
  .slicknav_nav a:hover,
  .slicknav_nav a:focus,
  .slicknav_nav .active {
    color: var(--color-primary);
    outline: none;
    background: #f8f9fa;
  }

  /* Hero Area */
  #hero-area .contents {
    padding: 100px 0 50px;
  }
  
  #hero-area .contents .head-title {
    font-size: 3rem;
    letter-spacing: 2px;
  }
  
  #hero-area .contents h5 {
    font-size: 1.6rem;
  }
  
  #hero-area .contents p {
    font-size: 1.2rem;
  }

  /* About Section */
  .greeting-text {
    font-size: 2rem;
  }
  
  .details-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .action-buttons {
    flex-direction: column;
  }
  
  .btn-modern {
    justify-content: center;
    width: 100%;
  }
  
  .floating-dot {
    display: none;
  }
  
  .image-frame {
    max-width: 300px;
    margin: 0 auto;
  }

  /* Services */
  .service-inner {
    padding: 2rem 1.5rem;
  }

  /* Skills */
  .skill-item {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .skill-name {
    font-size: 1rem;
  }
  
  .skill-percentage {
    font-size: 1.1rem;
  }

  /* Resume */
  .timeline-header {
    flex-direction: column;
    text-align: center;
    margin-bottom: 2rem;
  }
  
  .timeline-icon {
    margin-right: 0;
    margin-bottom: 1rem;
  }
  
  .modern-timeline::before {
    left: 15px;
  }
  
  .timeline-marker {
    left: 5px;
  }
  
  .timeline-item {
    padding-left: 3rem;
    margin-bottom: 2rem;
  }
  
  .content-card {
    padding: 1.5rem;
  }
  
  .content-title {
    font-size: 1.1rem;
  }

  /* Portfolio */
  .work-image {
    height: 200px;
  }
  
  .work-info {
    padding: 1rem;
  }

  /* Letter */
  .letter-box {
    padding: 2rem 1.5rem;
  }
  
  .letter-box p {
    font-size: 1rem;
    line-height: 1.7;
  }
  
  .letter-box .mt-5 {
    font-size: 1.4rem;
    padding-right: 40px;
  }
  
  .letter-box .mt-5::after {
    width: 100px;
  }

  /* Section Titles */
  .section-title {
    font-size: 2rem;
  }
}

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 576px) {
  /* Hero Area */
  #hero-area .contents .head-title {
    font-size: 2.5rem;
    letter-spacing: 1px;
  }
  
  #hero-area .contents h5 {
    font-size: 1.4rem;
  }
  
  #hero-area .contents p {
    font-size: 1rem;
  }

  /* Section padding adjustment */
  .section-padding {
    padding: 40px 0;
  }

  /* Button adjustments */
  .btn-common {
    padding: 12px 30px;
    font-size: 1rem;
  }

  /* Skills responsive - mobile first */
  #skill {
    background-attachment: local;
  }
}

/* Micro-animations - only for devices that support them */
@media (prefers-reduced-motion: no-preference) {
  .timeline-item {
    transition: all 0.3s ease;
  }

  .timeline-item:hover .timeline-marker .marker-dot {
    transform: scale(1.2);
  }
}

/* ==========================================================================
   SCROLL CUE (hero)
   ========================================================================== */
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 36px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.45);
  font-family: var(--font-script);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  z-index: 3;
}
.scroll-cue .chevron {
  width: 16px;
  height: 16px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  animation: scrollCue 1.8s ease-in-out infinite;
}
@keyframes scrollCue {
  0%, 100% { transform: rotate(45deg) translate(0,0); opacity: 0.4; }
  50% { transform: rotate(45deg) translate(4px,4px); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-cue .chevron { animation: none; }
}

/* ==========================================================================
   IMPRESSION (navigateur) — version propre, sans fonds sombres ni animations
   ========================================================================== */
@media print {
  .navbar, .back-to-top, .theme-toggle, .scroll-cue,
  #contact, .footer-area, .work-overlay, #skill, .hero-area-bg::before,
  .hero-area-bg::after {
    display: none !important;
  }
  .hero-area-bg {
    background: #fff !important;
    min-height: auto !important;
    color: #000 !important;
  }
  #hero-area .contents .head-title,
  #hero-area .contents h5,
  #hero-area .contents p {
    color: #000 !important;
  }
  body {
    background: #fff !important;
    color: #000 !important;
    font-size: 12pt;
  }
  .section-padding { padding: 20px 0 !important; }
  .content-card, .service-inner, .skill-item, .work-item, .detail-item {
    box-shadow: none !important;
    border: 1px solid #ddd !important;
    break-inside: avoid;
  }
  a { color: #000 !important; text-decoration: underline; }
}