/*===== GOOGLE FONTS =====*/
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&display=swap");
/*===== VARIABLES CSS =====*/
:root {
  --header-height: 3rem;
  --font-semi: 600;
  /*===== Colores =====*/
  /*Purple 260 - Red 355 - Blue 224 - Pink 340*/
  /* HSL color mode */
  --hue-color: 224;
  --first-color: #00d4ff;
  --second-color: hsl(var(--hue-color), 56%, 12%);
  --neon-blue: #00d4ff;
  --neon-blue-dark: #0099cc;
  --neon-blue-light: #33ddff;
  
  /* Dark mode colors */
  --bg-color: #ffffff;
  --text-color: hsl(var(--hue-color), 56%, 12%);
  --card-bg: #ffffff;
  /*===== Typographie =====*/
  --body-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --heading-font: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --big-font-size: 2rem;
  --h2-font-size: 1.5rem;
  --h3-font-size: 1.25rem;
  --normal-font-size: 0.95rem;
  --small-font-size: 0.875rem;
  --smaller-font-size: 0.75rem;
  --line-height-normal: 1.6;
  --line-height-title: 1.3;
  /*===== Margenes =====*/
  --mb-2: 1rem;
  --mb-4: 2rem;
  --mb-5: 2.5rem;
  --mb-6: 3rem;
  /*===== z index =====*/
  --z-back: -10;
  --z-fixed: 100;
  /* Palette arrière-plan « data » (tons analytiques, lisibles en clair / sombre) */
  --data-navy: rgba(30, 51, 68, 1);
  --data-slate: rgba(90, 127, 148, 1);
  --data-olive: rgba(111, 139, 71, 1);
  --data-bg-mesh-1: rgba(0, 212, 255, 0.06);
  --data-bg-mesh-2: rgba(30, 51, 68, 0.04);
  --data-bg-mesh-3: rgba(111, 139, 71, 0.05);
}
@media screen and (min-width: 968px) {
  :root {
    --big-font-size: 3.5rem;
    --h2-font-size: 2.5rem;
    --h3-font-size: 1.75rem;
    --normal-font-size: 1.05rem;
    --small-font-size: 1rem;
    --smaller-font-size: .875rem;
  }
}

.about__container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  row-gap: 2rem;
  text-align: center;
}

@media screen and (min-width: 768px) {
  .about__container {
    grid-template-columns: 2.5fr 1fr;
    gap: 3rem;
    text-align: initial;
  }
}

.about__qualities {
  align-self: start;
}

/*===== LOADER =====*/
.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--bg-color) 0%, var(--card-bg) 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

body.dark-mode .loader {
  background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 100%);
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader__content {
  text-align: center;
}

.loader__spinner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.loader__circle {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: var(--neon-blue);
  animation: loader-bounce 1.4s ease-in-out infinite both;
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.8);
}

.loader__circle:nth-child(1) {
  animation-delay: -0.32s;
}

.loader__circle:nth-child(2) {
  animation-delay: -0.16s;
}

.loader__circle:nth-child(3) {
  animation-delay: 0s;
}

@keyframes loader-bounce {
  0%, 80%, 100% {
    transform: scale(0);
    opacity: 0.5;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

.loader__text {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 0.5rem;
  animation: fadeInUp 0.8s ease-out;
  letter-spacing: -0.02em;
}

.loader__subtext {
  font-size: var(--normal-font-size);
  color: var(--neon-blue);
  opacity: 0.8;
  animation: fadeInUp 0.8s ease-out 0.2s both;
  text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

body.loading {
  overflow: hidden;
}

/*===== BASE =====*/
*, ::before, ::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
    scroll-padding-top: 5rem;
  }
}

/* Transition plein écran entre pages HTML (voir assets/js/page-transitions.js) */
#page-transition {
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  background: var(--bg-color);
  opacity: 0;
  transition: opacity 0.38s ease;
}

#page-transition.is-visible {
  opacity: 1;
  pointer-events: auto;
}

/* Entrée du contenu après le loader (index) */
body.loading .l-main > :not(.site-ambient),
body.loading .footer {
  opacity: 0;
  transform: translateY(16px);
}

body.page-ready .l-main > :not(.site-ambient),
body.page-ready .footer {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.55s ease, transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-reduced-motion: reduce) {
  body.loading .l-main > :not(.site-ambient),
  body.loading .footer,
  body.page-ready .l-main > :not(.site-ambient),
  body.page-ready .footer {
    opacity: 1;
    transform: none;
    transition: none;
  }

  #page-transition,
  #page-transition.is-visible {
    transition: none;
  }
}

section[id].section {
  scroll-margin-top: 5rem;
}

body {
  margin: var(--header-height) 0 0 0;
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  line-height: var(--line-height-normal);
  color: var(--text-color);
  overflow-x: hidden;
  background-color: var(--bg-color);
  background-image: linear-gradient(180deg, #fbfcfe 0%, var(--bg-color) 38%, #f3f6f9 100%);
  transition: background-color 0.6s cubic-bezier(0.4, 0, 0.2, 1), 
              color 0.6s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.4s ease;
  /* Curseur personnalisé bleu néon - pointeur standard */
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='30' viewBox='0 0 24 30'%3E%3Cpath fill='%2300d4ff' d='M3 3l7.07 16.97 2.51-7.39 7.39-2.51L3 3z'/%3E%3C/svg%3E") 12 3, auto !important;
  position: relative;
}

/* Fond fixe : ambiance data (grille, halos, réseau, graphique) */
.page-data-stack {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.data-ambient-mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 100% 80% at 10% 0%, rgba(111, 139, 71, 0.09), transparent 55%),
    radial-gradient(ellipse 70% 50% at 92% 88%, rgba(90, 127, 148, 0.11), transparent 50%),
    radial-gradient(ellipse 50% 40% at 50% 50%, rgba(30, 51, 68, 0.04), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(244, 246, 245, 0.85) 100%);
}

.data-ambient-scan {
  position: absolute;
  inset: -50% 0 0 0;
  height: 200%;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 24px,
    rgba(30, 51, 68, 0.035) 24px,
    rgba(30, 51, 68, 0.035) 25px
  );
  animation: data-scan-drift 18s linear infinite;
  opacity: 0.65;
  mask-image: linear-gradient(180deg, transparent 0%, black 25%, black 75%, transparent 100%);
}

@keyframes data-scan-drift {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(24px);
  }
}

.data-network {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.85;
}

.data-network-lines path {
  stroke-dasharray: 6 10;
  animation: data-network-flow 22s linear infinite;
}

@keyframes data-network-flow {
  0% {
    stroke-dashoffset: 0;
  }
  100% {
    stroke-dashoffset: -320;
  }
}

.data-network-nodes circle {
  animation: data-node-pulse 3.5s ease-in-out infinite;
}

.data-network-nodes circle:nth-child(2n) {
  animation-delay: 0.5s;
}

.data-network-nodes circle:nth-child(3n) {
  animation-delay: 1.1s;
}

@keyframes data-node-pulse {
  0%,
  100% {
    opacity: 0.45;
  }
  50% {
    opacity: 1;
  }
}

/*===== Premier plan : tout le contenu du main au-dessus du fond fixe =====*/
.l-main {
  position: relative;
  isolation: isolate;
}

.l-main > :not(.site-ambient) {
  position: relative;
  z-index: 1;
}

/*===== Arrière-plan global — thème « passion data » (dashboard / séries / maille) =====*/
.site-ambient {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 100vh;
  pointer-events: none;
  z-index: var(--z-back);
  overflow: hidden;
}

/* Base : volumes type « heat map » très légers */
.site-ambient__mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 120% 70% at 0% 0%, var(--data-bg-mesh-1), transparent 52%),
    radial-gradient(ellipse 80% 60% at 100% 20%, var(--data-bg-mesh-3), transparent 48%),
    radial-gradient(ellipse 70% 50% at 50% 100%, var(--data-bg-mesh-2), transparent 55%);
  opacity: 0.85;
}

.site-ambient__blobs {
  position: absolute;
  inset: -20% -12% -12% -12%;
  background:
    radial-gradient(ellipse 50% 42% at 15% 25%, rgba(0, 212, 255, 0.07), transparent 55%),
    radial-gradient(ellipse 45% 38% at 85% 75%, rgba(111, 139, 71, 0.06), transparent 50%),
    radial-gradient(ellipse 35% 32% at 70% 8%, rgba(90, 127, 148, 0.05), transparent 48%);
}

/* Grille type axe / quadrillage analytique */
.site-ambient__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 212, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.045) 1px, transparent 1px),
    linear-gradient(rgba(30, 51, 68, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 51, 68, 0.04) 1px, transparent 1px);
  background-size:
    72px 72px,
    72px 72px,
    288px 288px,
    288px 288px;
  background-position: 0 0, 0 0, -1px -1px, -1px -1px;
  opacity: 0.65;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.12) 38%, rgba(0, 0, 0, 0.04) 65%, transparent 88%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.12) 38%, rgba(0, 0, 0, 0.04) 65%, transparent 88%);
}

/* Lignes d’analyse qui défilent très lentement (effet « scan » de données) */
.site-ambient__scan {
  position: absolute;
  left: 0;
  right: 0;
  top: -40%;
  height: 160%;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 32px,
    rgba(0, 212, 255, 0.03) 32px,
    rgba(0, 212, 255, 0.03) 33px
  );
  animation: site-ambient-scan 22s linear infinite;
  opacity: 0.5;
  mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.35) 30%, rgba(0, 0, 0, 0.2) 70%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.35) 30%, rgba(0, 0, 0, 0.2) 70%, transparent 100%);
}

@keyframes site-ambient-scan {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(32px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-ambient__scan {
    animation: none;
  }
}

/* Courbe décorative type série temporelle (bas droite, toujours sous le contenu) */
.site-ambient__chart {
  position: absolute;
  right: -2%;
  bottom: 8%;
  width: min(420px, 55vw);
  height: auto;
  opacity: 0.22;
  color: var(--neon-blue);
  pointer-events: none;
  filter: drop-shadow(0 0 24px rgba(0, 212, 255, 0.12));
}

@media screen and (max-width: 767px) {
  .site-ambient__chart {
    right: -8%;
    bottom: 3%;
    width: min(280px, 72vw);
    opacity: 0.14;
  }
}

body.dark-mode .site-ambient__blobs {
  background:
    radial-gradient(ellipse 50% 42% at 15% 25%, rgba(0, 212, 255, 0.1), transparent 55%),
    radial-gradient(ellipse 45% 38% at 85% 75%, rgba(111, 139, 71, 0.08), transparent 50%),
    radial-gradient(ellipse 35% 32% at 70% 8%, rgba(144, 180, 200, 0.06), transparent 48%);
}

body.dark-mode .site-ambient__grid {
  background-image:
    linear-gradient(rgba(0, 212, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.055) 1px, transparent 1px),
    linear-gradient(rgba(144, 180, 200, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(144, 180, 200, 0.035) 1px, transparent 1px);
  opacity: 0.55;
}

body.dark-mode .site-ambient__scan {
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 32px,
    rgba(0, 212, 255, 0.04) 32px,
    rgba(0, 212, 255, 0.04) 33px
  );
  opacity: 0.4;
}

body.dark-mode .site-ambient__chart {
  opacity: 0.28;
  filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.18));
}

body.dark-mode .data-ambient-mesh {
  background:
    radial-gradient(ellipse 100% 80% at 10% 0%, rgba(111, 139, 71, 0.12), transparent 55%),
    radial-gradient(ellipse 70% 50% at 92% 88%, rgba(90, 127, 148, 0.14), transparent 50%),
    linear-gradient(180deg, rgba(10, 14, 39, 0.97) 0%, rgba(26, 31, 58, 0.92) 100%);
}

body.dark-mode .data-ambient-scan {
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 24px,
    rgba(144, 180, 200, 0.06) 24px,
    rgba(144, 180, 200, 0.06) 25px
  );
}

body.theme-transitioning {
  opacity: 0.7;
  pointer-events: none;
}

body.theme-transitioning * {
  transition: background-color 0.6s cubic-bezier(0.4, 0, 0.2, 1),
              color 0.6s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.6s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.6s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Transitions globales pour les éléments qui changent avec le thème */
.l-header,
.nav,
.nav__logo,
.nav__link,
.section-title,
.home__title,
.about__subtitle,
.skills__subtitle,
.timeline__title,
.timeline__heading,
.cv__title,
.veille__title,
.button,
.card,
.skills__data,
.work__item,
.veille__card,
.contact__input,
.footer {
  transition: background-color 0.6s cubic-bezier(0.4, 0, 0.2, 1),
              color 0.6s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.6s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

body.dark-mode {
  --bg-color: #0a0e27;
  --text-color: #e0e0e0;
  --card-bg: #1a1f3a;
  --second-color: #e0e0e0;
  --data-bg-mesh-1: rgba(0, 212, 255, 0.09);
  --data-bg-mesh-2: rgba(144, 180, 200, 0.06);
  --data-bg-mesh-3: rgba(111, 139, 71, 0.07);
  background-color: var(--bg-color);
  background-image: linear-gradient(165deg, #0a0e27 0%, #12182f 45%, #0d1228 100%);
  color: var(--text-color);
}

/* Curseur personnalisé pour tous les éléments - toujours visible */
*, *::before, *::after {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='30' viewBox='0 0 24 30'%3E%3Cpath fill='%2300d4ff' d='M3 3l7.07 16.97 2.51-7.39 7.39-2.51L3 3z'/%3E%3C/svg%3E") 12 3, auto !important;
}

/* Curseur personnalisé pour les éléments interactifs - pointeur cliquable */
a, button, .button, .nav__link, .nav__logo, .nav__toggle, .home__social-icon, .work__img, .contact__input, .contact__button, .footer__social-btn {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='30' viewBox='0 0 24 30'%3E%3Cpath fill='%2300d4ff' d='M3 3l7.07 16.97 2.51-7.39 7.39-2.51L3 3z'/%3E%3C/svg%3E") 12 3, pointer !important;
}

/* Curseur pour les champs de texte */
input[type="text"], input[type="mail"], textarea {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Cpath fill='%2300d4ff' d='M10 2C5.58 2 2 5.58 2 10s3.58 8 8 8 8-3.58 8-8-3.58-8-8-8zm0 14c-3.31 0-6-2.69-6-6s2.69-6 6-6 6 2.69 6 6-2.69 6-6 6z'/%3E%3Cpath fill='%2300d4ff' d='M10 6v4l3 2' stroke='%2300d4ff' stroke-width='1.5' fill='none'/%3E%3C/svg%3E") 10 10, text !important;
}

.cursor.hover {
  width: 40px;
  height: 40px;
  border-width: 1px;
}

.cursor-follower.hover {
  width: 0;
  height: 0;
}

/* Les curseurs personnalisés sont déjà définis dans la section body */

h1, h2, p {
  margin: 0;
}

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

a {
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/*===== CLASS CSS ===== */
.section-title {
  position: relative;
  font-size: var(--h2-font-size);
  font-weight: 700;
  color: var(--text-color);
  margin-top: var(--mb-4);
  margin-bottom: var(--mb-5);
  text-align: center;
  animation: fadeInDown 0.8s ease-out;
  letter-spacing: -0.02em;
  font-family: var(--heading-font);
}

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

.section-title::after {
  position: absolute;
  content: "";
  width: 80px;
  height: 4px;
  left: 0;
  right: 0;
  margin: auto;
  top: calc(2rem + 0.5em);
  background: linear-gradient(90deg, transparent, var(--neon-blue), transparent);
  animation: expandLine 1s ease-out 0.5s both;
  border-radius: 2px;
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

@keyframes expandLine {
  from {
    width: 0;
  }
  to {
    width: 64px;
  }
}

.section {
  padding-top: 4rem;
  padding-bottom: 3rem;
}

@media screen and (min-width: 768px) {
  .section {
    padding-top: 5rem;
    padding-bottom: 4rem;
  }
}

/*===== LAYOUT =====*/
.bd-grid {
  max-width: 1024px;
  display: grid;
  margin-left: var(--mb-2);
  margin-right: var(--mb-2);
}

.nav.bd-grid {
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
  display: flex;
}


@media screen and (max-width: 767px) {
  .bd-grid {
    margin-left: 1rem;
    margin-right: 1rem;
  }
  
  .home.bd-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }
}

.l-header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: var(--z-fixed);
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 4px rgba(146, 161, 176, 0.15);
  transition: all 0.3s ease;
}

body.dark-mode .l-header {
  background-color: rgba(26, 31, 58, 0.95);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.l-header.scrolled {
  box-shadow: 0 2px 20px rgba(146, 161, 176, 0.2);
}

body.dark-mode .l-header.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

/*===== NAV =====*/
.nav {
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: var(--font-semi);
  overflow-x: visible;
  position: relative;
}

/* Interrupteur thème : curseur qui glisse entre clair (soleil) et sombre (lune) */
.theme-switch {
  --theme-track-w: 3.55rem;
  --theme-pad: 3px;
  --theme-thumb: 1.5rem;
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 10000;
  padding: 0;
  margin: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  line-height: 0;
  -webkit-tap-highlight-color: transparent;
}

.theme-switch:focus {
  outline: none;
}

.theme-switch:focus-visible {
  outline: 3px solid var(--neon-blue);
  outline-offset: 4px;
  border-radius: 999px;
}

.theme-switch__track {
  position: relative;
  display: block;
  width: var(--theme-track-w);
  height: calc(var(--theme-thumb) + 2 * var(--theme-pad));
  border-radius: 999px;
  background: linear-gradient(90deg, #e3f2fd 0%, #b3e5fc 45%, #81d4fa 100%);
  border: 2px solid rgba(0, 212, 255, 0.55);
  box-shadow: inset 0 1px 3px rgba(255, 255, 255, 0.8), 0 2px 14px rgba(0, 212, 255, 0.35);
  transition: background 0.45s ease, border-color 0.45s ease, box-shadow 0.45s ease;
}

body.dark-mode .theme-switch__track {
  background: linear-gradient(90deg, #1a237e 0%, #283593 50%, #0d47a1 100%);
  border-color: rgba(0, 212, 255, 0.45);
  box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.35), 0 0 18px rgba(0, 212, 255, 0.25);
}

.theme-switch__hint {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.62rem;
  pointer-events: none;
  opacity: 0.45;
  transition: opacity 0.35s ease;
  color: #0277bd;
}

body.dark-mode .theme-switch__hint {
  color: #b3e5fc;
}

.theme-switch__hint--sun {
  left: 0.35rem;
}

.theme-switch__hint--moon {
  right: 0.32rem;
}

body:not(.dark-mode) .theme-switch__hint--sun {
  opacity: 0.85;
}

body.dark-mode .theme-switch__hint--moon {
  opacity: 0.9;
}

.theme-switch__thumb {
  position: absolute;
  left: var(--theme-pad);
  right: auto;
  top: 50%;
  width: var(--theme-thumb);
  height: var(--theme-thumb);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(0, 0, 0, 0.06);
  transform: translateY(-50%);
  transition: left 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), right 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
    background 0.35s ease, box-shadow 0.35s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

body.dark-mode .theme-switch__thumb {
  left: auto;
  right: var(--theme-pad);
  background: linear-gradient(180deg, #eceff1 0%, #cfd8dc 100%);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(0, 212, 255, 0.25);
}

.theme-switch__thumb-icon {
  position: absolute;
  font-size: 0.78rem;
  transition: opacity 0.25s ease, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.theme-switch__thumb-icon--light {
  color: #f57c00;
  opacity: 1;
  transform: scale(1);
}

.theme-switch__thumb-icon--dark {
  color: #37474f;
  opacity: 0;
  transform: scale(0.5);
}

body.dark-mode .theme-switch__thumb-icon--light {
  opacity: 0;
  transform: scale(0.5);
}

body.dark-mode .theme-switch__thumb-icon--dark {
  opacity: 1;
  transform: scale(1);
}

.theme-switch:hover .theme-switch__track {
  border-color: var(--neon-blue);
  box-shadow: inset 0 1px 3px rgba(255, 255, 255, 0.6), 0 0 22px rgba(0, 212, 255, 0.45);
}

body.dark-mode .theme-switch:hover .theme-switch__track {
  box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.3), 0 0 26px rgba(0, 212, 255, 0.4);
}

@media screen and (max-width: 767px) {
  .theme-switch {
    --theme-track-w: 3.2rem;
    --theme-thumb: 1.38rem;
    bottom: 1.5rem;
    right: 1.5rem;
  }

  .theme-switch__thumb-icon {
    font-size: 0.72rem;
  }
}
@media screen and (max-width: 767px) {
  .nav__menu {
    position: fixed;
    top: var(--header-height);
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: calc(100vh - var(--header-height));
    padding: 2rem;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    transition: transform 0.5s ease, right 0.5s ease;
    -webkit-transition: transform 0.5s ease, right 0.5s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 999;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.3);
    transform: translateX(100%);
    -webkit-transform: translateX(100%);
    will-change: transform, right;
  }
  
  body.dark-mode .nav__menu {
    background-color: rgba(26, 31, 58, 0.98);
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.5);
  }
  
  .nav__menu .nav__link {
    color: var(--text-color);
  }
  
  .nav__menu.show {
    right: 0;
    transform: translateX(0);
    -webkit-transform: translateX(0);
  }
  
  /* Fallback pour Safari avec transform */
  .nav__menu:not(.show) {
    transform: translateX(100%);
    -webkit-transform: translateX(100%);
  }
}
.nav__item {
  margin-bottom: var(--mb-4);
}
.nav__link {
  position: relative;
  color: var(--text-color);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateY(0);
}

.nav__link:hover {
  position: relative;
  color: var(--neon-blue);
  text-shadow: 0 0 15px rgba(0, 212, 255, 0.7);
  transform: translateY(-2px);
}

.nav__link:hover::after {
  position: absolute;
  content: "";
  width: 100%;
  height: 0.18rem;
  left: 0;
  top: 2rem;
  background-color: var(--neon-blue);
  box-shadow: 0 0 15px rgba(0, 212, 255, 1);
  animation: slideInLine 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideInLine {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}
.nav__logo {
  color: var(--text-color);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  transition: color 0.3s ease;
  font-family: var(--heading-font);
}
.nav__toggle {
  color: var(--text-color);
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.3s ease;
  display: none;
}

@media screen and (max-width: 767px) {
  .nav__toggle {
    display: block;
  }
}

/*Active menu*/
.active-link::after {
  position: absolute;
  content: "";
  width: 100%;
  height: 0.18rem;
  left: 0;
  top: 2rem;
  background-color: var(--neon-blue);
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.8);
}

/*=== Show menu ===*/
/* Le menu show est géré dans les media queries pour mobile */
.show {
  right: 0 !important;
}

@media screen and (min-width: 768px) {
  .show {
    right: auto !important;
  }
}

/*===== HOME =====*/
.home {
  position: relative;
  padding: 4rem 0 max(3.25rem, env(safe-area-inset-bottom, 0px));
  min-height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 2rem;
  overflow-x: hidden;
}

@media screen and (max-width: 480px) {
  .home {
    padding: 3rem 0 2rem;
    padding-bottom: max(4.5rem, calc(3.5rem + env(safe-area-inset-bottom, 0px)));
    gap: 1.5rem;
  }
}

@media screen and (min-width: 768px) {
  .home {
    flex-direction: row;
    align-items: center;
    padding: 8rem 0 max(2.5rem, env(safe-area-inset-bottom, 0px));
    min-height: 100vh;
    row-gap: 5rem;
    gap: 0;
  }
}
.home__data {
  position: relative;
  z-index: 25;
  isolation: isolate;
  padding: 0;
  text-align: center;
  width: 100%;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
  order: 1;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  box-sizing: border-box;
}

@media screen and (min-width: 768px) {
  .home__data {
    flex: 1;
    min-width: 0;
    max-width: none;
    padding-right: clamp(1rem, 4vw, 2.5rem);
    text-align: left;
    width: auto;
    order: initial;
    align-self: center;
    align-items: flex-start;
    margin-left: 0;
    margin-right: 0;
  }
}

.home__intro {
  width: 100%;
  max-width: 38rem;
  display: flex;
  flex-direction: column;
  align-items: inherit;
  gap: 1rem;
}

@media screen and (min-width: 768px) {
  .home__intro {
    align-items: flex-start;
  }
}

/* Titre hero : bloc nom + sous-titre (tailles indépendantes) */
.home__title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: inherit;
  font-weight: 400;
  line-height: 1.2;
  font-family: var(--heading-font);
  margin: 0;
  color: var(--text-color);
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 100%;
  animation: fadeInUp 1s ease-out;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: manual;
  text-align: center;
  box-sizing: border-box;
}

@media screen and (min-width: 768px) {
  .home__title {
    align-items: flex-start;
    text-align: left;
    gap: 0.65rem;
  }
}

@media screen and (max-width: 767px) {
  .home__title {
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  }
}

body.dark-mode .home__title {
  text-shadow: none;
}

.home__title-color {
  color: var(--neon-blue);
  display: block;
  position: relative;
  text-shadow: 0 0 24px rgba(0, 212, 255, 0.45);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  font-size: clamp(1.75rem, 5.5vw + 0.5rem, 3.25rem);
  max-width: 100%;
}

.home__title-line {
  display: block;
  margin: 0;
  font-size: clamp(1.05rem, 2.8vw + 0.35rem, 1.45rem);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--text-color);
  opacity: 0.9;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
  max-width: 100%;
}

body.dark-mode .home__title-line {
  opacity: 0.92;
  color: var(--text-color);
}

/* Accroche « passion data » — lisible au premier plan */
.home__data-passion {
  margin: 1rem 0 0;
  width: 100%;
  max-width: 28rem;
  font-size: clamp(0.82rem, 2.2vw, 0.95rem);
  line-height: 1.55;
  color: var(--text-color);
  opacity: 0.9;
  text-align: center;
  padding: 0.65rem 1rem 0.65rem 1.05rem;
  border-left: 3px solid var(--neon-blue);
  background: rgba(0, 212, 255, 0.07);
  border-radius: 0 12px 12px 0;
  box-sizing: border-box;
  box-shadow: 0 4px 20px rgba(30, 51, 68, 0.06);
}

.home__data-passion strong {
  color: var(--data-navy);
  font-weight: 700;
}

body.dark-mode .home__data-passion {
  background: rgba(0, 212, 255, 0.1);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
  opacity: 0.94;
}

body.dark-mode .home__data-passion strong {
  color: #c5d4dc;
}

.home__data-passion__tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--neon-blue-dark);
  background: rgba(0, 212, 255, 0.15);
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  margin-right: 0.4rem;
  vertical-align: middle;
}

body.dark-mode .home__data-passion__tag {
  color: var(--neon-blue-light);
  background: rgba(0, 212, 255, 0.2);
}

@media screen and (min-width: 768px) {
  .home__data-passion {
    text-align: left;
    margin-top: 1.1rem;
  }
}

.home__actions {
  margin-top: 1.5rem;
  width: 100%;
  display: flex;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  /* Espace pour translateY + léger scale + halo au survol du CTA (évite débordement / rognage) */
  padding: 0.5rem 0.85rem;
  box-sizing: border-box;
}

@media screen and (min-width: 768px) {
  .home__actions {
    justify-content: flex-start;
    margin-top: 1.65rem;
  }
}

.home__cta.button {
  width: 100%;
  max-width: 280px;
  text-align: center;
  box-sizing: border-box;
  position: relative;
  z-index: 2;
}

@media screen and (min-width: 768px) {
  .home__cta.button {
    width: auto;
    min-width: 200px;
    max-width: none;
  }
}

/* CTA accueil : survol plus discret pour ne pas dépasser du bloc (scale + glow) */
.home__cta.button:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 0 28px rgba(0, 212, 255, 0.85), 0 8px 24px rgba(0, 212, 255, 0.35);
}

.home__cta.button:active {
  transform: translateY(0) scale(1);
}

.home__data-tagline {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0.75rem 1.15rem;
  font-size: var(--small-font-size);
  line-height: 1.5;
  color: var(--text-color);
  text-align: left;
  background: rgba(90, 127, 148, 0.08);
  border: 1px solid rgba(30, 51, 68, 0.1);
  border-radius: 14px;
  box-shadow: 0 4px 24px rgba(30, 51, 68, 0.06);
  box-sizing: border-box;
  animation: fadeInUp 1s ease-out 0.15s both;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.home__data-tagline-text {
  flex: 1;
  min-width: 0;
}

.home__data-tagline i {
  font-size: 1.35rem;
  color: var(--data-olive);
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.home__data-tagline strong {
  color: var(--data-navy);
  font-weight: 700;
}

.home__data-tagline:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(30, 51, 68, 0.1);
  border-color: rgba(111, 139, 71, 0.35);
}

@media screen and (max-width: 767px) {
  .home__data-tagline {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .home__data-tagline i {
    margin-top: 0;
  }
}

@media screen and (min-width: 768px) {
  .home__data-tagline {
    max-width: 36rem;
  }
}

body.dark-mode .home__data-tagline {
  background: rgba(90, 127, 148, 0.12);
  border-color: rgba(144, 180, 200, 0.15);
  box-shadow: 0 4px 28px rgba(0, 0, 0, 0.25);
}

body.dark-mode .home__data-tagline strong {
  color: #c5d4dc;
}

.home__text {
  margin-bottom: var(--mb-5);
  font-size: var(--normal-font-size);
  line-height: var(--line-height-normal);
  color: var(--text-color);
  opacity: 0.9;
  max-width: 90%;
  position: relative;
  z-index: 1;
  animation: fadeInUp 1s ease-out 0.3s both;
}

@media screen and (min-width: 768px) {
  .home__text {
    max-width: 80%;
  }
}

@media screen and (min-width: 992px) {
  .home__text {
    max-width: 70%;
  }
}
/* Réseaux : sous le CTA, même colonne que le titre (plus de bloc au milieu sur desktop) */
.home__social {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 1.25rem;
  position: relative;
  z-index: 10;
  opacity: 0;
  animation: fadeInSocial 0.8s ease-out 1.5s forwards;
  margin-top: 1.25rem;
  width: 100%;
  flex-shrink: 0;
}

@media screen and (min-width: 768px) {
  .home__social {
    justify-content: flex-start;
    margin-top: 1.35rem;
    width: auto;
  }
}

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

/* Logos LinkedIn / GitHub (SVG officiels, lisibles clair & sombre) */
.home__social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.85rem;
  height: 2.85rem;
  margin-bottom: 0;
  border-radius: 12px;
  text-decoration: none;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s ease, background 0.35s ease;
  position: relative;
  z-index: 2;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.home__social-svg {
  width: 1.45rem;
  height: 1.45rem;
  display: block;
  flex-shrink: 0;
}

.home__social-icon--linkedin {
  color: #0a66c2;
  background: rgba(10, 102, 194, 0.12);
  border: 1px solid rgba(10, 102, 194, 0.25);
}

.home__social-icon--github {
  color: #24292f;
  background: rgba(36, 41, 47, 0.08);
  border: 1px solid rgba(36, 41, 47, 0.15);
}

body.dark-mode .home__social-icon--github {
  color: #f6f8fc;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(0, 212, 255, 0.28);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.12);
}

body.dark-mode .home__social-icon--linkedin {
  background: rgba(10, 102, 194, 0.2);
  border-color: rgba(0, 212, 255, 0.25);
  box-shadow: 0 0 18px rgba(0, 212, 255, 0.1);
}

.home__social-icon:hover {
  transform: translateY(-5px) scale(1.06);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

body.dark-mode .home__social-icon:hover {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

/* Footer : pastilles identiques, logos couleur sur fond clair */
.footer__social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.9rem;
  height: 2.9rem;
  margin: 0 0.5rem;
  border-radius: 50%;
  background: #fff;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
  vertical-align: middle;
}

.footer__social-svg {
  width: 1.4rem;
  height: 1.4rem;
  display: block;
}

.footer__social-btn--linkedin {
  color: #0a66c2;
}

.footer__social-btn--github {
  color: #181717;
}

.footer__social-btn:hover {
  transform: translateY(-4px) scale(1.07);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

body.dark-mode .footer__social-btn {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 0 0 1px rgba(0, 212, 255, 0.25), 0 4px 16px rgba(0, 0, 0, 0.35);
}

body.dark-mode .footer__social-btn--github {
  color: #181717;
}
.home__img {
  position: relative;
  width: 200px;
  max-width: 100%;
  z-index: 0;
  animation: slideUpImage 1.5s ease-out forwards;
  margin: 2rem auto 0;
  order: 3;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0.9;
  padding: 0;
  overflow: visible;
  pointer-events: none;
}


@media screen and (max-width: 767px) {
  .home__img {
    opacity: 0.7;
    margin-top: 1.5rem;
  }
}

@media screen and (min-width: 480px) {
  .home__img {
    width: 240px;
  }
}

@media screen and (min-width: 768px) {
  .home__img {
    position: absolute;
    right: 0;
    top: 10%;
    width: min(400px, 42vw);
    margin: 0;
    order: initial;
    z-index: 0;
  }
}

@keyframes slideUpImage {
  0% {
    transform: translateY(100vh);
    opacity: 0;
  }
  60% {
    opacity: 0.5;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.home__blob {
  fill: var(--first-color);
  position: relative;
  z-index: 1;
  overflow: visible;
}

.home__blob g {
  position: relative;
  z-index: 1;
}
.home__blob-img {
  width: 100%;
  max-width: 280px;
  height: auto;
  filter: brightness(1.1);
  animation: float-subtle 4s ease-in-out infinite 1.5s;
}

@media screen and (min-width: 480px) {
  .home__blob-img {
    max-width: 320px;
  }
}

@media screen and (min-width: 768px) {
  .home__blob-img {
    width: 360px;
    max-width: none;
  }
}

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

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

/* Animation pour le texte */
.home__text {
  animation: fadeInUp 1s ease-out 0.3s both;
}

/*BUTTONS*/
.button {
  display: inline-block;
  background-color: var(--neon-blue);
  color: #fff;
  padding: 0.875rem 2rem;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 0.5rem;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.5), 0 4px 15px rgba(0, 212, 255, 0.3);
  letter-spacing: 0.01em;
  width: auto;
  text-align: center;
  z-index: 10;
  transform: translateY(0) scale(1);
}

@media screen and (min-width: 480px) {
  .button {
    padding: 1rem 2.5rem;
    font-size: var(--normal-font-size);
  }
}

.button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.button:hover::before {
  width: 300px;
  height: 300px;
}

.button:hover {
  box-shadow: 0 0 40px rgba(0, 212, 255, 1), 0 0 80px rgba(0, 212, 255, 0.5);
  transform: translateY(-4px) scale(1.05);
  background-color: var(--neon-blue-light);
}

.button:active {
  transform: translateY(0);
}

/* ===== ABOUT =====*/
.about__subtitle {
  font-size: var(--h3-font-size);
  font-weight: 700;
  margin-bottom: var(--mb-4);
  color: var(--text-color);
  line-height: var(--line-height-title);
  font-family: var(--heading-font);
}

.about__text {
  margin-bottom: var(--mb-2);
  text-align: left;
  line-height: 1.65;
  color: var(--text-color);
  opacity: 0.92;
}

.about__text-block {
  text-align: left;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

@media screen and (min-width: 768px) {
  .about__text-block {
    margin-left: 0;
    margin-right: 0;
  }
}

.about__text-list {
  margin: 1rem 0 1.5rem 1.5rem;
  padding-left: 0;
  list-style: none;
}

.about__text-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--text-color);
  opacity: 0.9;
  line-height: var(--line-height-normal);
}

.about__text-list li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--neon-blue);
  font-weight: bold;
  font-size: 1.2em;
}

.skills__text-block {
  margin-bottom: var(--mb-4);
}

.skills__text {
  margin-bottom: 1rem;
  text-align: justify;
  line-height: var(--line-height-normal);
}
.about__img {
  justify-self: center;
}
.about__img {
  position: relative;
  overflow: hidden;
}

.about__img img {
  width: 250px;
  border-radius: 0.75rem;
  transition: transform 0.5s ease;
  filter: grayscale(10%);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.about__img:hover img {
  transform: scale(1.1) rotate(2deg);
  filter: grayscale(0%);
}

.about__img::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transform: rotate(45deg);
  transition: all 0.5s;
  opacity: 0;
}

.about__img:hover::before {
  animation: shine 0.5s ease-in-out;
  opacity: 1;
}

.about__interests {
  margin-top: 2rem;
  text-align: left;
}

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

.about__interests-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.about__interests-list li {
  padding: 0.5rem 0;
  color: var(--text-color);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.about__interests-list li i {
  color: var(--neon-blue);
  font-size: 1.25rem;
}

.about__qualities {
  margin-top: 2rem;
}

.about__qualities-title {
  font-size: var(--h3-font-size);
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-color);
  text-align: center;
  font-family: var(--heading-font);
}

.about__qualities-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.about__quality-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem;
  background-color: var(--card-bg);
  border-radius: 0.5rem;
  border: 1px solid rgba(0, 212, 255, 0.2);
  transition: all 0.3s ease;
}

.about__quality-item:hover {
  border-color: var(--neon-blue);
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
  transform: translateY(-2px);
}

.about__quality-item i {
  color: var(--neon-blue);
  font-size: 1.25rem;
}

.about__quality-item span {
  color: var(--text-color);
  font-size: 0.9rem;
}

@keyframes shine {
  0% {
    top: -50%;
    left: -50%;
  }
  100% {
    top: 150%;
    left: 150%;
  }
}

/* ===== TIMELINE =====*/
.timeline__container {
  margin-top: var(--mb-6);
  padding-top: var(--mb-5);
}

.timeline__title {
  font-size: var(--h2-font-size);
  font-weight: 700;
  text-align: center;
  margin-bottom: var(--mb-5);
  color: var(--text-color);
  font-family: var(--heading-font);
}

.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--neon-blue), var(--neon-blue-dark));
  transform: translateX(-50%);
  border-radius: 2px;
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.6);
}

.timeline__item {
  position: relative;
  margin-bottom: 4rem;
  display: flex;
  align-items: flex-start;
  width: 100%;
}

.timeline__item:nth-child(odd) {
  justify-content: flex-start;
}

.timeline__item:nth-child(even) {
  justify-content: flex-end;
}

.timeline__item::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 2rem;
  width: 20px;
  height: 20px;
  background: var(--neon-blue);
  border: 4px solid var(--bg-color);
  border-radius: 50%;
  transform: translateX(-50%);
  z-index: 3;
  box-shadow: 0 0 0 4px rgba(0, 212, 255, 0.3), 0 0 20px rgba(0, 212, 255, 0.6);
}

body.dark-mode .timeline__item::before {
  border-color: var(--bg-color);
}

.timeline__year {
  display: none;
}

.timeline__content {
  background-color: var(--card-bg);
  padding: 2rem;
  border-radius: 0.75rem;
  box-shadow: 0px 4px 25px rgba(14, 36, 49, 0.15);
  width: calc(50% - 3rem);
  position: relative;
  transition: all 0.3s ease;
  margin: 0 1.5rem;
}

body.dark-mode .timeline__content {
  box-shadow: 0px 4px 25px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(0, 212, 255, 0.2);
}

.timeline__item:nth-child(odd) .timeline__content {
  margin-right: 3rem;
}

.timeline__item:nth-child(even) .timeline__content {
  margin-left: 3rem;
}

.timeline__content:hover {
  transform: translateY(-5px);
  box-shadow: 0px 10px 40px rgba(14, 36, 49, 0.25);
}

.timeline__content::before {
  content: '';
  position: absolute;
  top: 2rem;
  width: 0;
  height: 0;
  border-style: solid;
}

.timeline__item:nth-child(odd) .timeline__content::before {
  right: -15px;
  border-width: 15px 0 15px 15px;
  border-color: transparent transparent transparent #ffffff;
}

.timeline__item:nth-child(even) .timeline__content::before {
  left: -15px;
  border-width: 15px 15px 15px 0;
  border-color: transparent #ffffff transparent transparent;
}

.timeline__year-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--neon-blue), var(--neon-blue-dark));
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.4);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-weight: 700;
  font-size: var(--small-font-size);
  margin-bottom: 1rem;
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.5), 0 2px 10px rgba(0, 212, 255, 0.3);
}

.timeline__heading {
  font-size: var(--h3-font-size);
  font-weight: 700;
  color: var(--neon-blue);
  margin-bottom: 0.5rem;
  font-family: var(--heading-font);
  text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.timeline__subtitle {
  font-size: var(--normal-font-size);
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 1rem;
  opacity: 0.9;
}

.timeline__description {
  font-size: var(--normal-font-size);
  line-height: var(--line-height-normal);
  color: var(--text-color);
  opacity: 0.85;
  margin-bottom: 1rem;
}

.timeline__details {
  list-style: none;
  padding: 0;
  margin: 0;
}

.timeline__details li {
  font-size: var(--small-font-size);
  line-height: var(--line-height-normal);
  color: var(--text-color);
  opacity: 0.8;
  margin-bottom: 0.5rem;
  padding-left: 1.5rem;
  position: relative;
}

.timeline__details li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--neon-blue);
  font-weight: bold;
  text-shadow: 0 0 5px rgba(0, 212, 255, 0.5);
}

/* Timeline responsive pour mobile et tablette */
@media screen and (max-width: 768px) {
  .timeline {
    padding: 2rem 1rem;
  }
  
  .timeline::before {
    left: 20px;
  }
  
  .timeline__item {
    justify-content: flex-start !important;
    padding-left: 2.5rem;
    margin-bottom: 3rem;
  }
  
  .timeline__item::before {
    left: 20px;
    width: 16px;
    height: 16px;
  }
  
  .timeline__content {
    width: calc(100% - 2.5rem);
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 1.5rem;
  }
  
  .timeline__item .timeline__content::before {
    left: -12px !important;
    right: auto !important;
    border-width: 12px 12px 12px 0 !important;
    border-color: transparent var(--card-bg) transparent transparent !important;
  }
  
  body.dark-mode .timeline__item .timeline__content::before {
    border-color: transparent var(--card-bg) transparent transparent !important;
  }
}

/* Tablettes en mode portrait (481px - 767px) */
@media screen and (min-width: 481px) and (max-width: 767px) {
  .home__img {
    width: 280px;
  }
  .home__blob-img {
    width: 340px;
  }
  .timeline {
    padding: 2.5rem 1.5rem;
  }
  .timeline__content {
    padding: 1.75rem;
  }
  .work__container {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  .veille__container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 1rem;
    row-gap: 1.25rem;
  }
  .veille__header {
    padding: 1.35rem 1.15rem;
  }
  .veille__title {
    font-size: clamp(1rem, 2.8vw, 1.35rem);
  }
  .veille__content {
    padding: 1.35rem 1.15rem;
  }
  .cv__card {
    padding: 2.5rem;
  }
}

/* ===== CV SECTION =====*/
.cv__container {
  margin-top: var(--mb-6);
  padding-top: var(--mb-5);
  justify-content: center;
}

.cv__card {
  background: linear-gradient(135deg, var(--card-bg) 0%, var(--bg-color) 100%);
  border-radius: 1rem;
  padding: 3rem;
  text-align: center;
  box-shadow: 0px 4px 25px rgba(14, 36, 49, 0.15);
  max-width: 500px;
  margin: 0 auto;
  transition: all 0.3s ease;
  border: 2px solid rgba(0, 212, 255, 0.2);
}

body.dark-mode .cv__card {
  box-shadow: 0px 4px 25px rgba(0, 0, 0, 0.5);
  border-color: rgba(0, 212, 255, 0.3);
}

.cv__card:hover {
  transform: translateY(-5px);
  box-shadow: 0px 10px 40px rgba(14, 36, 49, 0.25), 0 0 30px rgba(0, 212, 255, 0.3);
  border-color: var(--neon-blue);
}

body.dark-mode .cv__card:hover {
  box-shadow: 0px 10px 40px rgba(0, 0, 0, 0.7), 0 0 40px rgba(0, 212, 255, 0.5);
}

.cv__icon-wrapper {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, var(--neon-blue), var(--neon-blue-dark));
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.6), 0 4px 15px rgba(0, 212, 255, 0.3);
}

.cv__icon {
  font-size: 2.5rem;
  color: white;
}

.cv__title {
  font-size: var(--h3-font-size);
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 1rem;
  font-family: var(--heading-font);
}

.cv__description {
  font-size: var(--normal-font-size);
  color: var(--text-color);
  opacity: 0.8;
  margin-bottom: 2rem;
  line-height: var(--line-height-normal);
}

.cv__preview {
  width: 100%;
  max-width: 600px;
  margin: 0 auto 2rem;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0px 4px 25px rgba(14, 36, 49, 0.2);
  border: 2px solid rgba(0, 212, 255, 0.2);
  transition: all 0.3s ease;
  background-color: var(--card-bg);
  padding: 1rem;
}

body.dark-mode .cv__preview {
  box-shadow: 0px 4px 25px rgba(0, 0, 0, 0.5);
  border-color: rgba(0, 212, 255, 0.3);
}

.cv__preview:hover {
  box-shadow: 0px 10px 40px rgba(14, 36, 49, 0.3), 0 0 30px rgba(0, 212, 255, 0.3);
  border-color: var(--neon-blue);
  transform: translateY(-3px);
}

body.dark-mode .cv__preview:hover {
  box-shadow: 0px 10px 40px rgba(0, 0, 0, 0.7), 0 0 40px rgba(0, 212, 255, 0.5);
}

.cv__preview-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0.5rem;
  cursor: zoom-in;
  transition: transform 0.3s ease;
  max-height: 600px;
  object-fit: contain;
}

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

/* Modal pour agrandir le CV */
.cv__modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  overflow: auto;
  animation: fadeIn 0.3s ease;
}

.cv__modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.cv__modal-content {
  position: relative;
  max-width: 90%;
  max-height: 90vh;
  margin: auto;
  animation: zoomIn 0.3s ease;
}

.cv__modal-img {
  width: 100%;
  height: auto;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 0.5rem;
}

.cv__modal-close {
  position: absolute;
  top: -40px;
  right: 0;
  color: white;
  font-size: 2.5rem;
  font-weight: bold;
  cursor: pointer;
  background: none;
  border: none;
  transition: transform 0.3s ease;
}

.cv__modal-close:hover {
  transform: scale(1.2);
  color: var(--first-color);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes zoomIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.cv__download-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  font-size: var(--normal-font-size);
}

.cv__download-button i {
  font-size: 1.25rem;
}

/* ===== ÉPREUVE E4 =====*/
.e4__container {
  margin-top: var(--mb-4);
  justify-content: center;
}

.e4__card {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  background: linear-gradient(135deg, var(--card-bg) 0%, var(--bg-color) 100%);
  border-radius: 1rem;
  padding: 2rem 1.5rem 2.5rem;
  text-align: center;
  box-shadow: 0px 4px 25px rgba(14, 36, 49, 0.15);
  border: 2px solid rgba(0, 212, 255, 0.2);
  transition: all 0.3s ease;
}

body.dark-mode .e4__card {
  box-shadow: 0px 4px 25px rgba(0, 0, 0, 0.5);
  border-color: rgba(0, 212, 255, 0.3);
}

.e4__icon {
  font-size: 2.75rem;
  color: var(--neon-blue);
  margin-bottom: 0.75rem;
  display: block;
}

.e4__title {
  font-size: var(--h3-font-size);
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 0.5rem;
  font-family: var(--heading-font);
}

.e4__lead {
  font-size: var(--small-font-size);
  color: var(--text-color);
  opacity: 0.85;
  margin-bottom: 1.25rem;
  line-height: var(--line-height-normal);
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

.e4__preview {
  width: 100%;
  margin: 0 auto 1.25rem;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0px 4px 25px rgba(14, 36, 49, 0.2);
  border: 2px solid rgba(0, 212, 255, 0.2);
  background: var(--card-bg);
}

body.dark-mode .e4__preview {
  border-color: rgba(0, 212, 255, 0.3);
}

.e4__iframe {
  display: block;
  width: 100%;
  min-height: 72vh;
  height: 720px;
  border: 0;
  background: #525659;
}

.e4__fallback {
  margin: 0;
}

.e4__button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.e4__table-cadre {
  width: 100%;
  margin: 0.5rem auto 1.25rem;
  padding: 1rem 1rem 1.15rem;
  border-radius: 0.85rem;
  background: var(--card-bg);
  border: 2px solid rgba(0, 212, 255, 0.28);
  box-shadow: 0 8px 32px rgba(14, 36, 49, 0.12);
  text-align: left;
}

body.dark-mode .e4__table-cadre {
  border-color: rgba(0, 212, 255, 0.38);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
}

.e4__pdf-link-cadre {
  width: 100%;
  margin: 0.25rem auto 0;
  padding: 1.25rem 1.35rem;
  border-radius: 0.85rem;
  background: var(--card-bg);
  border: 2px solid rgba(0, 212, 255, 0.28);
  box-shadow: 0 8px 32px rgba(14, 36, 49, 0.1);
  text-align: left;
}

body.dark-mode .e4__pdf-link-cadre {
  border-color: rgba(0, 212, 255, 0.38);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.e4__pdf-primary-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  font-size: var(--normal-font-size);
  font-weight: 600;
  color: var(--neon-blue-dark);
  text-decoration: none;
  line-height: 1.4;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.e4__pdf-primary-link:hover {
  color: var(--neon-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

body.dark-mode .e4__pdf-primary-link {
  color: var(--neon-blue-light);
}

.e4__pdf-primary-link .bx-file-blank {
  font-size: 1.85rem;
  flex-shrink: 0;
  opacity: 0.95;
}

.e4__pdf-primary-link__icon {
  font-size: 1.15rem;
  margin-left: auto;
  opacity: 0.75;
}

@media screen and (max-width: 480px) {
  .e4__pdf-primary-link__icon {
    margin-left: 0;
  }
}

.e4__table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.e4__table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: var(--small-font-size);
  line-height: 1.5;
  color: var(--text-color);
}

.e4__table thead th {
  text-align: left;
  padding: 0.75rem 0.85rem;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.18), rgba(0, 212, 255, 0.06));
  color: var(--text-color);
  font-weight: 700;
  font-family: var(--heading-font);
  border-bottom: 2px solid rgba(0, 212, 255, 0.45);
  white-space: nowrap;
}

body.dark-mode .e4__table thead th {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.22), rgba(0, 212, 255, 0.08));
}

.e4__table tbody td {
  padding: 0.75rem 0.85rem;
  border-bottom: 1px solid rgba(30, 51, 68, 0.12);
  vertical-align: top;
}

body.dark-mode .e4__table tbody td {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.e4__table tbody tr:nth-child(even) td {
  background: rgba(0, 212, 255, 0.04);
}

body.dark-mode .e4__table tbody tr:nth-child(even) td {
  background: rgba(0, 212, 255, 0.07);
}

.e4__table tbody tr:hover td {
  background: rgba(0, 212, 255, 0.1);
}

.e4__table a {
  color: var(--neon-blue-dark);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.e4__table a:hover {
  text-decoration: underline;
  color: var(--neon-blue);
}

body.dark-mode .e4__table a {
  color: var(--neon-blue-light);
}

.e4__table-meta {
  display: inline-block;
  margin-top: 0.2rem;
  font-size: 0.8rem;
  font-weight: 500;
  opacity: 0.78;
}

.e4__pdf-note {
  margin: 0;
  font-size: var(--small-font-size);
  line-height: 1.55;
  color: var(--text-color);
  opacity: 0.88;
  text-align: center;
}

.e4__pdf-link {
  color: var(--neon-blue-dark);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.e4__pdf-link:hover {
  color: var(--neon-blue);
}

body.dark-mode .e4__pdf-link {
  color: var(--neon-blue-light);
}

.e4__pdf-hint {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.75rem;
  opacity: 0.65;
  font-weight: 400;
}

/* Lien veille hors liste (À propos) */
.about__veille-link {
  margin: 1rem 0 0;
  font-size: var(--normal-font-size);
  line-height: var(--line-height-normal);
}

.about__veille-anchor {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  color: var(--neon-blue);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.about__veille-anchor:hover {
  color: var(--neon-blue-dark);
  text-decoration: underline;
}

.about__veille-hint {
  color: var(--text-color);
  opacity: 0.65;
  font-weight: 400;
  font-size: var(--small-font-size);
}

/* ===== SKILLS =====*/
.skills__container {
  row-gap: 2rem;
  text-align: center;
}
.skills__subtitle {
  font-size: var(--h3-font-size);
  font-weight: 700;
  margin-bottom: var(--mb-4);
  color: var(--text-color);
  line-height: var(--line-height-title);
  font-family: var(--heading-font);
}
.skills__text {
  margin-bottom: var(--mb-5);
  font-size: var(--normal-font-size);
  line-height: var(--line-height-normal);
  color: var(--text-color);
  opacity: 0.85;
}
.skills__data {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  font-weight: var(--font-semi);
  padding: 1rem 1.25rem;
  margin-bottom: var(--mb-4);
  border-radius: 0.5rem;
  box-shadow: 0px 4px 25px rgba(14, 36, 49, 0.15);
  transition: all 0.3s ease;
  overflow: hidden;
  background-color: var(--card-bg);
}

body.dark-mode .skills__data {
  box-shadow: 0px 4px 25px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(0, 212, 255, 0.2);
}

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

.skills__data:hover {
  transform: translateX(5px);
  box-shadow: 0px 6px 30px rgba(14, 36, 49, 0.25);
}

.skills__data:hover::before {
  left: 100%;
}
.skills__icon {
  font-size: 2rem;
  margin-right: var(--mb-2);
  color: inherit;
  text-shadow: 0 0 3px rgba(0, 0, 0, 0.35);
}

/* Logos d'outils / langages (images) */
.skills__logo {
  width: 28px;
  height: 28px;
  margin-right: 0.75rem;
  display: inline-block;
}

.skills__logo--secondary {
  margin-right: 0.5rem;
}
.skills__names {
  display: flex;
  align-items: center;
}

.skills__name {
  font-weight: 600;
  font-size: var(--normal-font-size);
  color: var(--text-color);
  margin-left: 0.5rem;
}
.skills__bar {
  position: absolute;
  left: 0;
  bottom: 0;
  background: linear-gradient(90deg, var(--neon-blue), var(--neon-blue-light));
  height: 0.25rem;
  border-radius: 0.5rem;
  z-index: var(--z-back);
  animation: slideIn 1.5s ease-out;
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.8);
}

@keyframes slideIn {
  from {
    width: 0 !important;
  }
}
.skills__html {
  width: 95%;
}
.skills__css {
  width: 85%;
}
.skills__js {
  width: 65%;
}
.skills__ux {
  width: 85%;
}
.skills__php {
  width: 70%;
}
.skills__db {
  width: 75%;
}
.skills__img {
  border-radius: 0.75rem;
  transition: transform 0.5s ease;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.2));
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

.skills__img:hover {
  transform: scale(1.05) rotate(2deg);
}

.skills__tools {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

.skills__tool-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background-color: var(--card-bg);
  border-radius: 0.5rem;
  border: 1px solid rgba(0, 212, 255, 0.2);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: left;
  transform: translateY(0) scale(1);
}

.skills__tool-item:hover {
  border-color: var(--neon-blue);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
  transform: translateY(-4px) scale(1.03);
}

.skills__tool-item i {
  color: var(--neon-blue);
  font-size: 1.5rem;
}

/* Logos pour les outils (Git, VS Code, SQL...) */
.skills__tool-logo {
  width: 26px;
  height: 26px;
  margin-right: 0.75rem;
  display: inline-block;
}

/* Couleurs de marque pour les technologies */
.skills__icon.bxl-html5 {
  color: #e34f26;
}

.skills__icon.bxl-css3 {
  color: #1572b6;
}

.skills__icon.bxl-javascript {
  color: #f7df1e;
  text-shadow: 0 0 3px rgba(0, 0, 0, 0.7);
}

/* Icône générique de code (PHP / Java) */
.skills__icon.bx-code-alt {
  color: #4f5b93;
}

/* Icône base de données (SQL) */
.skills__icon.bx-data {
  color: #336791;
}

/* Couleur de marque pour Git */
.skills__tool-item i.bxl-git {
  color: #f05032;
}

/* Icône VS Code */
.skills__tool-item i.bx-code-block {
  color: #007acc;
}

/* Icônes SQL / bases de données */
.skills__icon.bx-data,
.skills__tool-item i.bx-server {
  color: #336791;
}

.skills__tool-item span {
  color: var(--text-color);
  font-size: 0.9rem;
  font-weight: 500;
}

.skills__soft {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

.skills__soft-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background-color: var(--card-bg);
  border-radius: 0.5rem;
  border: 1px solid rgba(0, 212, 255, 0.2);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: left;
  transform: translateY(0) scale(1);
}

.skills__soft-item:hover {
  border-color: var(--neon-blue);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
  transform: translateY(-4px) scale(1.03);
}

.skills__soft-item i {
  color: var(--neon-blue);
  font-size: 1.5rem;
}

.skills__soft-item span {
  color: var(--text-color);
  font-size: 0.9rem;
  font-weight: 500;
}

/* ===== WORK =====*/
.work__container {
  row-gap: 2rem;
}

/* Grille projets : une colonne pour laisser respirer chaque carte (image | contenu) */
.work.section .work__container.bd-grid {
  max-width: 1120px;
  grid-template-columns: 1fr;
}

.work__item {
  box-shadow: 0px 4px 25px rgba(14, 36, 49, 0.15);
  border-radius: 0.5rem;
  overflow: hidden;
  transition: all 0.4s ease;
  position: relative;
  min-height: 300px;
  background-color: var(--card-bg);
  border: 2px dashed rgba(0, 212, 255, 0.3);
}

body.dark-mode .work__item {
  box-shadow: 0px 4px 25px rgba(0, 0, 0, 0.5);
  border-color: rgba(0, 212, 255, 0.4);
}

.work__item:hover {
  transform: translateY(-5px);
  box-shadow: 0px 10px 40px rgba(14, 36, 49, 0.25), 0 0 30px rgba(0, 212, 255, 0.3);
  border-color: var(--neon-blue);
}

body.dark-mode .work__item:hover {
  box-shadow: 0px 10px 40px rgba(0, 0, 0, 0.7), 0 0 40px rgba(0, 212, 255, 0.5);
}

.work__file-input {
  display: none;
}

.work__placeholder {
  width: 100%;
  height: 100%;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  transition: all 0.3s ease;
  cursor: pointer;
  margin: 0;
}

.work__item:hover .work__placeholder {
  background-color: rgba(0, 212, 255, 0.05);
}

body.dark-mode .work__item:hover .work__placeholder {
  background-color: rgba(0, 212, 255, 0.1);
}

.work__add-icon {
  font-size: 3rem;
  color: var(--neon-blue);
  margin-bottom: 1rem;
  opacity: 0.5;
  transition: all 0.3s ease;
  filter: drop-shadow(0 0 5px rgba(0, 212, 255, 0.5));
}

.work__item:hover .work__add-icon {
  opacity: 1;
  transform: scale(1.1);
}

.work__placeholder-text {
  font-size: var(--normal-font-size);
  color: var(--text-color);
  opacity: 0.6;
  font-weight: 500;
  text-align: center;
  margin: 0 0 0.5rem 0;
  transition: all 0.3s ease;
}

.work__file-info {
  font-size: var(--small-font-size);
  color: var(--text-color);
  opacity: 0.5;
  text-align: center;
  margin: 0;
  transition: all 0.3s ease;
}

.work__item:hover .work__placeholder-text,
.work__item:hover .work__file-info {
  opacity: 0.9;
  color: var(--neon-blue);
  text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.work__preview-container {
  display: none;
  width: 100%;
  padding: 1rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.work__item.has-files .work__placeholder {
  display: none;
}

.work__item.has-files .work__preview-container {
  display: flex;
}

.work__preview-item {
  position: relative;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.work__preview-item img,
.work__preview-item video {
  width: 100%;
  height: auto;
  max-width: 300px;
  display: block;
}

.work__preview-item video {
  max-height: 200px;
}

.work__preview-file {
  padding: 1rem;
  background-color: rgba(102, 126, 234, 0.1);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--second-color);
}

.work__preview-file i {
  font-size: 1.5rem;
  color: var(--first-color);
}

.work__remove-file {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background-color: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--second-color);
  font-size: 1.2rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.work__remove-file:hover {
  background-color: #ff4444;
  color: white;
  transform: scale(1.1);
}

/* Styles pour les projets ajoutés */
.work__img {
  box-shadow: 0px 4px 25px rgba(14, 36, 49, 0.15);
  border-radius: 0.5rem;
  overflow: hidden;
  transition: all 0.4s ease;
  position: relative;
}

.work__img::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.work__img:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0px 10px 40px rgba(14, 36, 49, 0.3);
}

.work__img:hover::after {
  opacity: 1;
}

.work__card {
  padding: 2.5rem;
  border-radius: 0.5rem;
  color: white;
  text-align: center;
  min-height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: all 0.4s ease;
}

.work__card h3 {
  font-size: var(--h3-font-size);
  font-weight: 700;
  margin-bottom: 1.25rem;
  line-height: var(--line-height-title);
  letter-spacing: -0.01em;
  color: white;
}

.work__card p {
  font-size: var(--normal-font-size);
  line-height: var(--line-height-normal);
  opacity: 0.95;
  margin: 0;
  color: white;
}

/* Styles pour les projets statiques */
.work__project-item {
  border: none;
  padding: 0;
}

.work__project-link {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  border-radius: 0.5rem;
  text-decoration: none;
}

/* ===== PROJECT CARDS (Style similaire aux veilles) =====*/
.work__project-card {
  background-color: var(--card-bg);
  border-radius: 1rem;
  box-shadow: 0px 4px 25px rgba(14, 36, 49, 0.15);
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(0, 212, 255, 0.2);
  transform: translateY(30px) scale(0.95);
  opacity: 0;
}

.work__project-card.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@keyframes fadeInUpCard {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

body.dark-mode .work__project-card {
  box-shadow: 0px 4px 25px rgba(0, 0, 0, 0.5);
  border-color: rgba(0, 212, 255, 0.3);
}

.work__project-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0px 15px 50px rgba(14, 36, 49, 0.3), 0 0 40px rgba(0, 212, 255, 0.4);
  border-color: var(--neon-blue);
}

body.dark-mode .work__project-card:hover {
  box-shadow: 0px 15px 50px rgba(0, 0, 0, 0.8), 0 0 50px rgba(0, 212, 255, 0.6);
}

.work__project-link-card {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  color: inherit;
  min-height: 0;
}

.work__project-header {
  position: relative;
  flex-shrink: 0;
  height: 200px;
  overflow: hidden;
  background: #000; /* utilisé uniquement en fond si l'image n'est pas chargée */
}

.work__project-header-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transform: scale(1);
}

.work__project-card:hover .work__project-header-img {
  opacity: 0.5;
  transform: scale(1.1);
}

/* Logo large / institutionnel : tout visible dans le cadre (sans rogne) */
.work__project-header--logo-fit {
  background: linear-gradient(160deg, #f0f3f2 0%, #e8ece9 45%, #dde3df 100%);
}

body.dark-mode .work__project-header--logo-fit {
  background: linear-gradient(160deg, #1e2433 0%, #252d3d 50%, #1a1f2e 100%);
}

.work__project-header-img--contain {
  object-fit: contain;
  object-position: center;
  padding: 0.75rem 1.15rem;
  box-sizing: border-box;
}

.work__project-card:hover .work__project-header-img--contain {
  opacity: 0.55;
  transform: scale(1.04);
}

.work__project-header-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 2rem;
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
}

.work__project-icon {
  font-size: 3rem;
  color: white;
  opacity: 0.9;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
}

.work__project-card-title {
  font-size: var(--h3-font-size);
  font-weight: 700;
  margin: 0;
  font-family: var(--heading-font);
  line-height: var(--line-height-title);
  color: white;
  text-align: center;
}

.work__project-content {
  padding: 2rem;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.work__project-description-card {
  font-size: var(--normal-font-size);
  line-height: var(--line-height-normal);
  margin-bottom: 1.5rem;
  color: var(--text-color);
  opacity: 0.85;
}

body.dark-mode .work__project-description-card {
  opacity: 0.9;
}

.work__project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.work__tech-tag {
  background-color: rgba(0, 0, 0, 0.02);
  padding: 0.35rem 0.9rem;
  border-radius: 1.5rem;
  font-size: var(--small-font-size);
  color: var(--text-color);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 500;
  transform: translateY(0) scale(1);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.work__tech-tag:hover {
  background-color: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.15);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

/* Logos pour les technologies dans les projets */
.work__tech-logo {
  width: 18px;
  height: 18px;
  display: inline-block;
}

body.dark-mode .work__tech-tag {
  background-color: rgba(0, 212, 255, 0.15);
  border-color: rgba(0, 212, 255, 0.4);
}

.work__project-links {
  display: flex;
  gap: 1rem;
  padding-top: 1rem;
  margin-top: auto;
  border-top: 2px solid rgba(0, 212, 255, 0.2);
  flex-wrap: wrap;
}

.work__project-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--neon-blue);
  font-weight: 600;
  font-size: var(--normal-font-size);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0.75rem 1.25rem;
  background: rgba(0, 212, 255, 0.1);
  border-radius: 8px;
  text-decoration: none;
  flex: 1;
  min-width: 140px;
  border: 2px solid transparent;
}

.work__project-link:hover {
  color: var(--neon-blue-light);
  background: rgba(0, 212, 255, 0.2);
  border-color: var(--neon-blue);
  transform: translateY(-2px);
}

.work__project-link i {
  font-size: 1.25rem;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.work__project-link:hover i {
  transform: translateX(4px) scale(1.1);
}

body.dark-mode .work__project-links {
  border-top-color: rgba(0, 212, 255, 0.3);
}

body.dark-mode .work__project-link {
  background: rgba(0, 212, 255, 0.15);
}

body.dark-mode .work__project-link:hover {
  background: rgba(0, 212, 255, 0.25);
}

@media screen and (min-width: 768px) {
  .work__container {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 2rem;
  }

  /* Cadre projet : image à gauche, texte à droite */
  .work__project-link-card {
    flex-direction: row;
    align-items: stretch;
  }

  .work__project-header {
    flex: 0 0 clamp(200px, 34%, 300px);
    width: clamp(200px, 34%, 300px);
    height: auto;
    min-height: 240px;
    align-self: stretch;
  }

  .work__project-content {
    padding: 2.5rem;
  }
}

@media screen and (min-width: 1100px) {
  .work__project-header {
    flex-basis: min(320px, 36%);
    width: min(320px, 36%);
    min-height: 260px;
  }
}

/* ===== VEILLE TECHNOLOGIQUE =====*/
.veille.section .veille__container.bd-grid {
  max-width: 1280px;
  width: 100%;
}

.veille__container {
  row-gap: 1.75rem;
  column-gap: 1.25rem;
  align-items: start;
}

.veille__card {
  background-color: var(--card-bg);
  border-radius: 1rem;
  box-shadow: 0px 4px 25px rgba(14, 36, 49, 0.15);
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(0, 212, 255, 0.2);
  transform: translateY(30px) scale(0.95);
  opacity: 0;
  height: 100%;
  min-width: 0;
}

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

body.dark-mode .veille__card {
  box-shadow: 0px 4px 25px rgba(0, 0, 0, 0.5);
  border-color: rgba(0, 212, 255, 0.3);
}

.veille__card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0px 15px 50px rgba(14, 36, 49, 0.3), 0 0 30px rgba(0, 212, 255, 0.4);
  border-color: var(--neon-blue);
}

body.dark-mode .veille__card:hover {
  box-shadow: 0px 15px 50px rgba(0, 0, 0, 0.8), 0 0 40px rgba(0, 212, 255, 0.6);
}

.veille__header {
  background: linear-gradient(135deg, var(--neon-blue), var(--neon-blue-dark));
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.4);
  padding: 2rem;
  color: white;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
}

.veille__icon {
  font-size: 2.5rem;
  opacity: 0.9;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  transform: scale(1) rotate(0deg);
}

.veille__card:hover .veille__icon {
  transform: scale(1.15) rotate(5deg);
  opacity: 1;
}

.veille__title {
  font-size: var(--h3-font-size);
  font-weight: 700;
  margin: 0;
  font-family: var(--heading-font);
  line-height: var(--line-height-title);
  color: white;
}

.veille__content {
  padding: 2rem;
}

.veille__date {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--neon-blue);
  font-weight: 600;
  font-size: var(--small-font-size);
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid rgba(0, 212, 255, 0.2);
  text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

body.dark-mode .veille__date {
  border-bottom-color: rgba(0, 212, 255, 0.3);
}

.veille__date i {
  font-size: 1.25rem;
}

.veille__description {
  color: var(--second-color);
}

.veille__description h4 {
  font-size: var(--h3-font-size);
  font-weight: 700;
  color: var(--text-color);
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--neon-blue);
  display: inline-block;
  box-shadow: 0 2px 10px rgba(0, 212, 255, 0.3);
}

.veille__description h4:first-child {
  margin-top: 0;
}

/* Synthèse « en gros » (veille) */
.veille__big-picture {
  font-size: clamp(1rem, 2.4vw, 1.12rem);
  font-weight: 600;
  line-height: 1.6;
  color: var(--text-color);
  margin: 0 0 1.35rem;
  padding: 1rem 1.2rem;
  border-radius: 0.75rem;
  background: rgba(0, 212, 255, 0.09);
  border-left: 4px solid var(--neon-blue);
  box-shadow: 0 2px 12px rgba(0, 212, 255, 0.12);
}

body.dark-mode .veille__big-picture {
  background: rgba(0, 212, 255, 0.12);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
}

.veille__big-picture p {
  margin: 0 0 0.7rem;
  font-weight: 500;
}

.veille__big-picture p:last-child {
  margin-bottom: 0;
}

.veille__subhead {
  font-size: var(--small-font-size);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--neon-blue-dark);
  margin: 1rem 0 0.5rem;
}

body.dark-mode .veille__subhead {
  color: var(--neon-blue-light);
}

h4 + .veille__subhead {
  margin-top: 0.4rem;
}

.veille__description p {
  font-size: var(--normal-font-size);
  line-height: var(--line-height-normal);
  margin-bottom: 1.25rem;
  color: var(--text-color);
  opacity: 0.85;
}

.veille__detail-group {
  margin-bottom: 1.35rem;
  padding: 1.1rem 1.35rem;
  border-radius: 0.75rem;
  background: rgba(0, 212, 255, 0.07);
  border-left: 3px solid rgba(0, 212, 255, 0.55);
}

body.dark-mode .veille__detail-group {
  background: rgba(0, 212, 255, 0.09);
  border-left-color: var(--neon-blue);
}

.veille__detail-line {
  font-size: var(--normal-font-size);
  line-height: var(--line-height-normal);
  margin: 0 0 0.6rem;
  color: var(--text-color);
  opacity: 0.9;
}

.veille__detail-line:last-child {
  margin-bottom: 0;
}

.veille__description strong {
  color: var(--text-color);
  font-weight: 600;
  opacity: 1;
}

@media screen and (min-width: 768px) {
  .veille__container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 2rem;
    row-gap: 2rem;
  }
  
  .veille__header {
    padding: 2.5rem;
  }
  
  .veille__content {
    padding: 2.5rem;
  }
}

/* ===== CONTACT =====*/
.contact__input {
  width: 100%;
  font-size: var(--normal-font-size);
  font-weight: 400;
  padding: 1.25rem;
  border-radius: 0.5rem;
  border: 2px solid rgba(0, 212, 255, 0.3);
  outline: none;
  margin-bottom: var(--mb-4);
  transition: all 0.3s ease;
  background-color: var(--card-bg);
  color: var(--text-color);
  font-family: var(--body-font);
  line-height: var(--line-height-normal);
}

body.dark-mode .contact__input {
  border-color: rgba(0, 212, 255, 0.4);
  background-color: var(--card-bg);
  color: var(--text-color);
}

.contact__input::placeholder {
  color: rgba(14, 36, 49, 0.5);
  font-weight: 400;
  transition: opacity 0.3s ease;
}

body.dark-mode .contact__input::placeholder {
  color: rgba(224, 224, 224, 0.7);
}

.contact__input:focus {
  border-color: var(--neon-blue);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.2), 0 0 20px rgba(0, 212, 255, 0.3);
  transform: translateY(-2px);
}

.contact__input:focus::placeholder {
  opacity: 0.5;
}
.contact__button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: none;
  outline: none;
  font-size: var(--normal-font-size);
  cursor: pointer;
  margin-left: auto;
  justify-content: center;
  background-color: var(--neon-blue);
  color: #fff;
  padding: 1rem 2.5rem;
  font-weight: 600;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.5), 0 4px 15px rgba(0, 212, 255, 0.3);
}

.contact__button:hover {
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.8), 0 0 60px rgba(0, 212, 255, 0.4);
  transform: translateY(-2px);
  background-color: var(--neon-blue-light);
}

.contact__button i {
  font-size: 1.25rem;
}

.contact__message {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 0.5rem;
  text-align: center;
  font-size: var(--normal-font-size);
  display: none;
}

.contact__message.success {
  display: block;
  background-color: rgba(67, 233, 123, 0.1);
  color: #43e97b;
  border: 2px solid #43e97b;
}

.contact__message.error {
  display: block;
  background-color: rgba(255, 77, 77, 0.1);
  color: #ff4d4d;
  border: 2px solid #ff4d4d;
}

/* ===== FOOTER =====*/
.footer {
  background-color: var(--second-color);
  color: #fff;
  text-align: center;
  font-weight: var(--font-semi);
  padding: 2rem 0;
  transition: background-color 0.3s ease;
}

body.dark-mode .footer {
  background-color: #0a0e27;
  border-top: 1px solid rgba(0, 212, 255, 0.2);
}
.footer__title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: var(--mb-4);
  letter-spacing: -0.02em;
}
.footer__social {
  margin-bottom: var(--mb-4);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}
.footer__copy {
  font-size: var(--small-font-size);
  opacity: 0.8;
  line-height: var(--line-height-normal);
}

/* ===== MEDIA QUERIES=====*/

/* Très petits écrans (téléphones très petits < 320px) */
@media screen and (max-width: 320px) {
  .home {
    padding: 2rem 0 2rem;
    gap: 1.5rem;
  }
  .home__img {
    width: 160px;
    margin: 0.5rem auto 0;
  }
  .home__blob-img {
    max-width: 220px;
  }
  .home__data {
    padding: 0;
  }
  .button {
    padding: 0.75rem 1.5rem;
    font-size: 0.85rem;
  }
  .home__social {
    gap: 1rem;
    margin-top: 1rem;
  }
  .home__text {
    font-size: 0.875rem;
  }
  .section-title {
    font-size: 1.25rem;
  }
  .about__img img {
    width: 200px;
  }
  .timeline {
    padding: 2rem 1rem;
  }
  .timeline__content {
    padding: 1.5rem;
  }
  .cv__card {
    padding: 2rem 1.5rem;
  }
  .contact__form {
    width: 100%;
    padding: 1rem;
  }
  .veille__card {
    margin-bottom: 2rem;
  }
  .work__item {
    min-height: 250px;
  }
  .nav__menu {
    width: 80%;
    max-width: 300px;
    right: -100%;
    transform: translateX(100%);
    -webkit-transform: translateX(100%);
  }
  .nav__menu.show {
    right: 0;
    transform: translateX(0);
    -webkit-transform: translateX(0);
  }
  .theme-switch {
    --theme-track-w: 2.95rem;
    --theme-thumb: 1.28rem;
    bottom: 1.25rem;
    right: 1rem;
  }
}

/* Petits téléphones (320px - 480px) */
@media screen and (min-width: 321px) and (max-width: 480px) {
  .home {
    padding: 2.5rem 0 2rem;
    gap: 1.5rem;
  }
  .home__img {
    width: 200px;
    margin: 1rem auto 0;
  }
  .home__blob-img {
    max-width: 280px;
  }
  .home__data {
    padding: 0;
  }
  .home__social {
    margin-top: 1rem;
    gap: 1.25rem;
  }
  .button {
    padding: 0.875rem 2rem;
  }
  .timeline {
    padding: 2rem 1.5rem;
  }
  .timeline__content {
    padding: 1.5rem;
  }
  .cv__card {
    padding: 2rem;
  }
  .contact__form {
    width: 100%;
    padding: 1.5rem;
  }
  .work__container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .veille__container {
    grid-template-columns: 1fr;
  }
}
/* Tablettes et petits écrans (576px - 767px) */
@media screen and (min-width: 576px) {
  .home {
    padding: 4rem 0 2rem;
  }
  .home__social {
    padding-top: 0;
    padding-bottom: 0;
    flex-direction: row;
    align-self: center;
  }
  @media screen and (min-width: 768px) {
    .home__social {
      align-self: flex-start;
    }
  }
  .home__social-icon {
    margin-bottom: 0;
    margin-right: 0;
  }
  .home__img {
    width: 300px;
    top: 15%;
  }
  .home__blob-img {
    width: 360px;
  }
  .about__container {
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    text-align: initial;
  }
  .about__img img {
    width: 220px;
  }
  .skills__container {
    grid-template-columns: 0.7fr;
    justify-content: center;
    column-gap: 1rem;
  }
  .work__container {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 2rem;
    padding-top: 2rem;
  }
  .veille__container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 1.25rem;
    row-gap: 1.5rem;
  }
  .contact__form {
    width: 100%;
    max-width: 500px;
    padding-top: 2rem;
  }
  .contact__container {
    justify-items: center;
  }
  .cv__card {
    padding: 2.5rem;
  }
  .timeline {
    padding: 2.5rem 2rem;
  }
}
/* Tablettes en mode paysage et petits écrans desktop (768px - 991px) */
@media screen and (min-width: 768px) {
  body {
    margin: 0;
  }
  .section {
    padding-top: 4rem;
    padding-bottom: 3rem;
  }
  .section-title {
    margin-bottom: var(--mb-6);
    font-size: 2rem;
  }
  .section-title::after {
    width: 80px;
    top: 3rem;
  }
  .nav {
    height: calc(var(--header-height) + 1.5rem);
    padding-left: 2rem;
    padding-right: 2rem;
    width: 100%;
    max-width: 100%;
    justify-content: space-between;
    position: relative;
  }
  .nav__menu {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }
  .nav__list {
    display: flex;
    padding-top: 0;
    align-items: center;
  }
  .nav__item {
    margin-left: var(--mb-6);
    margin-bottom: 0;
  }
  .nav__item:first-child {
    margin-left: 0;
  }
  .nav__toggle {
    display: none !important;
  }
  .nav__menu {
    position: absolute !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    right: auto !important;
    width: auto !important;
    height: auto !important;
    background-color: transparent !important;
    padding: 0 !important;
    overflow: visible !important;
    box-shadow: none !important;
    max-width: none !important;
  }
  .nav__link {
    color: var(--text-color);
    font-size: 0.8rem;
  }
  .home {
    padding: 8rem 0 2rem;
  }
  .home__img {
    width: 400px;
    top: 20%;
  }
  .home__blob-img {
    width: 360px;
  }
  .about__container {
    padding-top: 2rem;
  }
  .about__img img {
    width: 300px;
  }
  .skills__container {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 2rem;
    align-items: start;
    text-align: initial;
  }
  
  .about__container {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 2rem;
    align-items: start;
  }
  
  .about__qualities-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .skills__tools {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .skills__soft {
    grid-template-columns: repeat(2, 1fr);
  }
  .work__container {
    grid-template-columns: repeat(3, 1fr);
    column-gap: 2rem;
  }
  .veille__container {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 2rem;
  }
  .contact__form {
    width: 100%;
    max-width: 600px;
  }
  .timeline {
    padding: 3rem 2rem;
  }
  .timeline__content {
    padding: 2rem;
  }
  .cv__card {
    padding: 3rem;
  }
}
/* Desktop et grands écrans (992px+) */
@media screen and (min-width: 992px) {
  .bd-grid {
    margin-left: auto;
    margin-right: auto;
  }
  
  .nav.bd-grid {
    margin-left: 0;
    margin-right: 0;
    max-width: 100%;
  }
  .home {
    padding: 10rem 0 2rem;
  }
  .home__img {
    width: 450px;
  }
  .home__blob-img {
    width: 360px;
  }
  .section-title {
    font-size: 2.5rem;
  }
  .about__img img {
    width: 350px;
  }
  .work__container {
    grid-template-columns: repeat(3, 1fr);
  }
  .veille__container {
    grid-template-columns: repeat(2, 1fr);
  }
  .contact__form {
    max-width: 700px;
  }
}

/* Très grands écrans (1200px+) */
@media screen and (min-width: 1200px) {
  .home__img {
    width: 500px;
  }
  .work__container {
    grid-template-columns: repeat(3, 1fr);
    column-gap: 2.5rem;
  }
  .veille__container {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 3rem;
  }
  .timeline {
    max-width: 1000px;
  }
}

/* Orientation paysage pour tablettes */
@media screen and (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
  .home {
    padding: 6rem 0 2rem;
  }
  .home__img {
    width: 350px;
  }
  .section {
    padding-top: 3rem;
    padding-bottom: 2rem;
  }
}

/* Améliorations pour le mode portrait sur mobile */
@media screen and (max-width: 767px) and (orientation: portrait) {
  .home {
    padding: 2.5rem 0 2.5rem;
    gap: 1.5rem;
  }
  .home__img {
    width: 220px;
    margin: 1rem auto 0;
  }
  .home__blob-img {
    max-width: 300px;
  }
  .home__data {
    padding: 0;
  }
  .home__social {
    margin-top: 1rem;
  }
  .nav__menu {
    width: 80%;
    max-width: 300px;
    right: -100%;
    transform: translateX(100%);
    -webkit-transform: translateX(100%);
  }
  .nav__menu.show {
    right: 0;
    transform: translateX(0);
    -webkit-transform: translateX(0);
  }
  .work__container {
    grid-template-columns: 1fr;
  }
  .veille__container {
    grid-template-columns: 1fr;
  }
  .section {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }
}

/* Améliorations pour le mode paysage sur mobile */
@media screen and (max-width: 767px) and (orientation: landscape) {
  .home {
    padding: 2rem 0 2rem;
    row-gap: 1.5rem;
    min-height: auto;
  }
  .home__img {
    width: 180px;
    margin-top: 1rem;
  }
  .home__blob-img {
    width: 260px;
  }
  .home__data {
    padding: 0 1rem;
  }
  .home__social {
    margin-top: 1rem;
  }
  .section {
    padding-top: 2rem;
    padding-bottom: 1.5rem;
  }
  .button {
    padding: 0.75rem 2rem;
    font-size: 0.875rem;
  }
}