/* Force header visibility - includes scrolled state */
.header, .header.scrolled {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  transform: translateY(0) !important;
  animation: none !important;
  transition: none !important;
  opacity: 1 !important;
  visibility: visible !important;
  display: flex !important;
  z-index: 9999 !important;
}

  /* Couleurs principales - Mode Sombre (par défaut) */
  --color-bg: #000000;
  --color-surface: #0a0a0a;
  --color-surface-light: #141414;
  --color-border: #1a1a1a;
  --header-bg-rgb: 0, 0, 0;

  /* Accents rouge */
  --color-primary: #dc2626;
  --color-primary-dark: #991b1b;
  --color-primary-light: #ef4444;

  /* Texte */
  --color-text: #f5f5f5;
  --color-text-muted: #a3a3a3;
  --color-text-darker: #737373;

  /* Glow effects */
  --glow-primary: 0 0 20px rgba(220, 38, 38, 0.3);
  --glow-primary-strong: 0 0 30px rgba(220, 38, 38, 0.5);

  /* Typographie */
  --font-primary: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.08), 0 1.5px 4px rgba(0, 0, 0, 0.04);
  border: 1px solid var(--color-border);
  --font-mono: "JetBrains Mono", "Courier New", monospace;

  /* Tailles */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  border: none;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  transform: translateY(-2px) scale(1.03);
  filter: brightness(1.08);
  --text-5xl: 3rem;

  /* Effet de survol général pour les sections et cards */
  .card,
  .section,
  .container {
    transition: box-shadow 0.3s, transform 0.3s;
  }
  .card:hover,
  .section:hover {
    box-shadow: 0 6px 24px rgba(220, 38, 38, 0.1), 0 2px 8px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px) scale(1.01);
  }
  /* Espacements */
  /* Amélioration des inputs et formulaires */
  input,
  textarea,
  select {
    border-radius: 0.375rem;
    border: 1px solid var(--color-border);
    padding: 0.75rem 1rem;
    background: var(--color-surface-light);
    color: var(--color-text);
    transition: border-color 0.2s, box-shadow 0.2s;
  }
  input:focus,
  textarea:focus,
  select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.1);
  }
  --spacing-xs: 0.5rem;
  /* Amélioration des titres */
  .section__title {
    letter-spacing: 0.01em;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  }
  --spacing-sm: 1rem;
  /* Ajout d'une animation douce à l'apparition */
  .fade-in {
    opacity: 0;
    animation: fadeIn 0.8s ease-in forwards;
  }
  @keyframes fadeIn {
    to {
      opacity: 1;
    }
  }
  --spacing-md: 1.5rem;
  /* Scrollbar stylée */
  ::-webkit-scrollbar {
    width: 10px;
    background: var(--color-surface-light);
  }
  ::-webkit-scrollbar-thumb {
    background: var(--color-primary);
    border-radius: 8px;
  }
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-2xl: 4rem;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* Z-index */
  --z-header: 1000;
  --z-tooltip: 2000;
}

/* Mode Clair */
:root.light-mode {
  /* Couleurs principales - Mode Clair */
  --color-bg: #ffffff;
  --color-surface: #f8f9fa;
  --color-surface-light: #f0f1f3;
  --color-border: #e5e7eb;
  --header-bg-rgb: 255, 255, 255;

  /* Accents rouge (plus foncés pour contraste) */
  --color-primary: #b91c1c;
  --color-primary-dark: #991b1b;
  --color-primary-light: #dc2626;

  /* Texte */
  --color-text: #1f2937;
  --color-text-muted: #6b7280;
  --color-text-darker: #374151;

  /* Glow effects */
  --glow-primary: 0 0 20px rgba(185, 28, 28, 0.15);
  --glow-primary-strong: 0 0 30px rgba(185, 28, 28, 0.25);

  /* Z-index */
  --z-modal: 3000;
  --z-toast: 4000;

  /* Container */
  --container-width: 1200px;
  --container-padding: 1.5rem;
}

/*===============================================
  RESET & BASE
===============================================*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-primary);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  overflow-x: hidden;
  min-height: 100vh;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  transition: background 0.3s, color 0.3s;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-base);
}

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

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

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
  transition: all var(--transition-base);
}

ul {
  list-style: none;
}

/*===============================================
  UTILITIES
===============================================*/
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.section {
  padding: 6rem 0;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--color-border);
}

.section__title {
  font-size: var(--text-4xl);
  font-weight: 700;
  text-align: center;
  margin-bottom: var(--spacing-lg);
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}

.section__title::after {
  content: "";
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--color-primary),
    transparent
  );
}

.section__subtitle {
  text-align: center;
  color: var(--color-text-muted);
  margin-bottom: var(--spacing-2xl);
}

/*===============================================
  BOUTONS
===============================================*/
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-size: var(--text-base);
  font-weight: 500;
  border-radius: 0.375rem;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.btn--primary {
  background-color: var(--color-primary);
  color: white;
  box-shadow: var(--glow-primary);
}

.btn--primary:hover {
  background-color: var(--color-primary-light);
  box-shadow: var(--glow-primary-strong);
  transform: translateY(-2px);
}

.btn--outline {
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
}

.btn--outline:hover {
  background-color: var(--color-primary);
  color: white;
  box-shadow: var(--glow-primary);
}

.btn--block {
  width: 100%;
  justify-content: center;
}

/*===============================================
  HEADER & NAVIGATION
===============================================*/
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(var(--header-bg-rgb), 0.9);
  backdrop-filter: blur(10px);
  z-index: var(--z-header);
  border-bottom: 1px solid var(--color-border);
  transition: all var(--transition-base);
}

.header.scrolled {
/* Navigation List Spacing */
.nav__list {
  display: flex;
  flex-direction: row;
  gap: 2rem;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav__item {
  list-style: none;
}

.nav__link {
  position: relative;
  padding: 0.625rem 0.875rem;
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  transition: all 0.3s ease;
  white-space: nowrap;
  border-radius: 0.5rem;
}

.nav__link::before {
  content: "";
  position: absolute;
  bottom: 0.375rem;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 70%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
  transition: transform 0.3s ease;
}


.nav__link:hover,
.nav__link.active {
  color: var(--color-text);
  background: rgba(220, 38, 38, 0.05);
}

.nav__link.active::before {
  transform: translateX(-50%) scaleX(1);
}


/* Navigation Actions - Better Spacing */
.nav__actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-left: 2rem;
}

/* Language Toggle - Improved Style */
.lang__toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  background-color: var(--color-surface);
  cursor: pointer;
  transition: all 0.3s ease;
}

.lang__toggle:hover {

.lang__toggle:focus,
.lang__toggle:active {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.1);
}
  border-color: var(--color-primary);
  background-color: var(--color-surface-light);
}

.lang__option {
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0.125rem 0.25rem;
  border-radius: 0.25rem;
}

.lang__option:hover {
  color: var(--color-text);
}

.lang__option.active {
  color: var(--color-primary);
  font-weight: 700;
  background-color: rgba(220, 38, 38, 0.1);
}

.lang__separator {
  color: var(--color-border);
  font-weight: 300;
}

/* Theme Toggle - Better Style */
.theme-toggle {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  padding: 0;
  flex-shrink: 0;
}

.theme-toggle:hover {
  background-color: var(--color-surface-light);
  color: var(--color-primary);
  border-color: var(--color-primary);
  transform: scale(1.05);
}

.theme-toggle:active,
.theme-toggle:focus {
  outline: none;
  transform: scale(0.98);
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.1);
}

.nav__menu {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  justify-content: center;
  max-width: none;
}

.nav__close {
  display: none;
}

.nav__toggle {
  display: none;
}

  transform: scale(0.95);
}

/* Nav Logo Spacing */
.nav__logo {
  font-family: var(--font-mono);
  font-size: 1.375rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.1), rgba(220, 38, 38, 0.05));
  border: 1px solid rgba(220, 38, 38, 0.2);
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nav__logo:hover {
  transform: scale(1.05);
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.15), rgba(220, 38, 38, 0.08));
  border-color: rgba(220, 38, 38, 0.4);
  box-shadow: 0 0 20px rgba(220, 38, 38, 0.3);
}
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 4.5rem;
  padding: 0 2rem;
  gap: 2rem;
  width: 100%;
  max-width: 100%;
}


.logo__bracket {
  color: var(--color-primary);
  font-weight: 700;
  text-shadow: 0 0 10px rgba(220, 38, 38, 0.3);
  font-size: 1.5rem;
  transition: all 0.3s ease;
}

.nav__logo:hover .logo__bracket {
  text-shadow: 0 0 20px rgba(220, 38, 38, 0.6), 0 0 30px rgba(220, 38, 38, 0.4);
  transform: scale(1.1);
}













.nav__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}
/* Theme Toggle */








:root.light-mode 


/* Theme Icons */
.theme-icon--dark {
  display: block;
}

.theme-icon--light {
  display: none;
}

:root.light-mode .theme-icon--dark {
  display: none !important;
}

:root.light-mode .theme-icon--light {
  display: block !important;
}

.nav__toggle,
  display: none;
  color: var(--color-text);
}

/*===============================================
  HERO SECTION
===============================================*/
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 4rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(220, 38, 38, 0.1) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.hero__container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xl);
  align-items: center;
}

.hero__content {
  z-index: 1;
}

.hero__greeting {
  display: block;
  font-size: 1.125rem;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  animation: fadeInDown 0.8s ease;
}







.hero__name {
  font-size: clamp(2.5rem, 8vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.8s ease 0.2s backwards;
}

.hero__firstname {
  display: block;
  color: var(--color-text);
  background: linear-gradient(135deg, var(--color-text) 0%, rgba(255, 255, 255, 0.7) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__lastname {
  display: block;
  color: var(--color-primary);
  text-shadow: 0 0 30px rgba(220, 38, 38, 0.5), 0 0 60px rgba(220, 38, 38, 0.3);
  background: linear-gradient(135deg, #dc2626 0%, #ef4444 50%, #dc2626 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.hero__tagline {
  font-size: 1.375rem;
  color: var(--color-text-muted);
  margin-bottom: 2.5rem;
  max-width: 600px;
  line-height: 1.6;
  animation: fadeInUp 0.8s ease 0.4s backwards;
}

.hero__cta {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
  animation: fadeInUp 0.8s ease 0.6s backwards;
}

.hero__social {
  display: flex;
  gap: 1rem;
  animation: fadeInUp 0.8s ease 0.8s backwards;
}

.social__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border: 2px solid var(--color-border);
  border-radius: 0.75rem;
  background: linear-gradient(135deg, var(--color-surface) 0%, rgba(220, 38, 38, 0.05) 100%);
  color: var(--color-text-muted);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.social__link:hover {
  border-color: var(--color-primary);
  color: white;
  box-shadow: 0 8px 25px rgba(220, 38, 38, 0.4);
  transform: translateY(-5px) scale(1.05);
}
.social__link::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--color-primary) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.social__link:hover::before {
  opacity: 1;
}

.social__link svg {
  position: relative;
  z-index: 1;
  width: 22px;
  height: 22px;
}

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

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


.hero__visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-lg);
}

.hero__avatar {
  position: relative;
  width: 300px;
  height: 300px;
}

.avatar__glow {
  position: absolute;
  inset: -20px;
  background: radial-gradient(circle, var(--color-primary) 0%, transparent 70%);
  opacity: 0.2;
  animation: pulse 3s ease-in-out infinite;
}

.avatar__frame {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--color-border);
  border-radius: 50%;
  background-color: var(--color-surface);
}

.avatar__icon {
  width: 80%;
  height: 80%;
  color: var(--color-primary);
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.avatar__image {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70%;
  height: 70%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--color-primary);
  box-shadow: 0 0 20px rgba(220, 38, 38, 0.3), 0 0 40px rgba(220, 38, 38, 0.2);
  animation: avatarPulse 3s ease-in-out infinite;
  z-index: 2;
}

/* Quand l'avatar est affiché, réduire l'opacité de l'icône */
.avatar__frame:has(.avatar__image[style*="display: block"]) .avatar__icon,
.avatar__frame:has(.avatar__image:not([style*="display: none"])) .avatar__icon {
  opacity: 0.2;
}

@keyframes avatarPulse {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(220, 38, 38, 0.3), 0 0 40px rgba(220, 38, 38, 0.2);
  }
  50% {
    box-shadow: 0 0 30px rgba(220, 38, 38, 0.5), 0 0 60px rgba(220, 38, 38, 0.3);
  }
}

.hero__code-snippet {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  padding: var(--spacing-md);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  max-width: 400px;
}

.hero__code-snippet pre {
  overflow-x: auto;
}

.token.keyword {
  color: #c678dd;
}
.token.variable {
  color: #e06c75;
}
.token.operator {
  color: #56b6c2;
}
.token.punctuation {
  color: #abb2bf;
}
.token.property {
  color: #d19a66;
}
.token.string {
  color: #98c379;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.2;
  }
  50% {
    opacity: 0.4;
  }
}

/*===============================================
  À PROPOS
===============================================*/
.about__container {
  display: grid;
  gap: var(--spacing-xl);
}

.about__description {
  font-size: var(--text-lg);
  line-height: 1.8;
  text-align: center;
  color: var(--color-text-muted);
  margin-bottom: var(--spacing-lg);
}

.about__description strong {
  color: var(--color-primary);
  font-weight: 600;
}

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

.info__item {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, var(--color-surface) 0%, rgba(220, 38, 38, 0.05) 100%);
  border: 1px solid var(--color-border);
  border-radius: 0.75rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.info__item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--color-primary);
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

.info__item:hover::before {
  transform: scaleY(1);
}

.info__item:hover {
  border-color: var(--color-primary);
  box-shadow: 0 8px 30px rgba(220, 38, 38, 0.2);
  transform: translateY(-5px);
}

.info__icon {
  color: var(--color-primary);
  flex-shrink: 0;
  width: 24px;
  height: 24px;
}

.info__label {
  display: block;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: 0.375rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}

.info__value {
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--color-text);
}

.about__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2.5rem;
  margin-top: 3.5rem;
}

.stat__card {
  text-align: center;
  padding: 2rem 1.5rem;
  background: linear-gradient(135deg, var(--color-surface) 0%, rgba(220, 38, 38, 0.03) 100%);
  border: 2px solid var(--color-border);
  border-radius: 1rem;
  transition: all 0.3s ease;
  position: relative;
}

.stat__card:hover {
  border-color: var(--color-primary);
  box-shadow: 0 10px 40px rgba(220, 38, 38, 0.25);
  transform: translateY(-8px) scale(1.02);
}

.stat__number {
  display: block;
  font-size: 3rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
  line-height: 1;
  text-shadow: 0 2px 10px rgba(220, 38, 38, 0.3);
}

.stat__label {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/*===============================================
  CLAVIER COMPÉTENCES
===============================================*/
.keyboard {
  max-width: 950px;
  margin: 0 auto;
  padding: 2rem 1.5rem 1.5rem;
  background: linear-gradient(145deg, #1a1a1a, #0d0d0d);
  border: 2px solid rgba(255, 255, 255, 0.05);
  border-radius: 1rem;
  position: relative;
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.7),
    0 10px 30px rgba(0, 0, 0, 0.5),
    inset 0 1px 2px rgba(255, 255, 255, 0.08),
    inset 0 -2px 4px rgba(0, 0, 0, 0.4);
  perspective: 1200px;
}

.keyboard::before {
  content: "";
  position: absolute;
  top: 0.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  border-radius: 2px;
}

.keyboard__loading {
  text-align: center;
  padding: var(--spacing-2xl);
}

.loading__spinner {
  width: 40px;
  height: 40px;
  margin: 0 auto var(--spacing-md);
  border: 3px solid var(--color-border);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.keyboard__row {
  display: flex;
  gap: 0.45rem;
  margin-bottom: 0.45rem;
  justify-content: center;
  position: relative;
}

.keyboard__key {
  position: relative;
  min-width: 3.2rem;
  height: 3.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 0.5rem;
  background: linear-gradient(160deg, #3a3a3a 0%, #2a2a2a 40%, #1a1a1a 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  border-bottom: 2px solid rgba(0, 0, 0, 0.6);
  border-radius: 0.375rem;
  font-size: var(--text-xs);
  transition: all 0.12s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: default;
  box-shadow: 
    0 4px 8px rgba(0, 0, 0, 0.5),
    0 2px 4px rgba(0, 0, 0, 0.3),
    inset 0 1px 2px rgba(255, 255, 255, 0.1),
    inset 0 -3px 6px rgba(0, 0, 0, 0.4);
  transform-style: preserve-3d;
  transform: translateY(0) translateZ(0);
}

.keyboard__key::before {
  content: "";
  position: absolute;
  top: 1px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,0.05), transparent);
  border-radius: 0.25rem 0.25rem 0 0;
  pointer-events: none;
}

/* Touche inactive (inconnue) */
.keyboard__key--inactive {
  background-color: var(--color-bg);
  border-color: transparent;
  cursor: not-allowed;
}

/* Touche active */
.keyboard__key--active {
  border-color: rgba(220, 38, 38, 0.5);
  border-top-color: rgba(220, 38, 38, 0.6);
  background: linear-gradient(160deg, #4a3a3a 0%, #3a2a2a 40%, #2a1a1a 100%);
  box-shadow: 
    0 6px 12px rgba(220, 38, 38, 0.3),
    0 3px 6px rgba(0, 0, 0, 0.5),
    inset 0 1px 2px rgba(255, 100, 100, 0.2),
    inset 0 -4px 8px rgba(0, 0, 0, 0.5),
    0 0 20px rgba(220, 38, 38, 0.2);
  cursor: pointer;
  transform: translateY(-1px) translateZ(2px);
}

.keyboard__key--active:hover {
  background: linear-gradient(160deg, #5a4a4a 0%, #4a3a3a 40%, #3a2a2a 100%);
  border-color: rgba(220, 38, 38, 0.7);
  box-shadow: 
    0 8px 16px rgba(220, 38, 38, 0.4),
    0 4px 8px rgba(0, 0, 0, 0.6),
    inset 0 1px 3px rgba(255, 120, 120, 0.25),
    inset 0 -5px 10px rgba(0, 0, 0, 0.6),
    0 0 30px rgba(220, 38, 38, 0.35);
  transform: translateY(-3px) translateZ(4px) scale(1.03);
}

.keyboard__key--active:active {
  background: linear-gradient(160deg, #2a1a1a 0%, #1a1a1a 40%, #0d0d0d 100%);
  border-bottom-width: 1px;
  box-shadow: 
    0 1px 3px rgba(0, 0, 0, 0.9),
    inset 0 -1px 2px rgba(255, 255, 255, 0.03),
    inset 0 3px 6px rgba(0, 0, 0, 0.9),
    0 0 15px rgba(220, 38, 38, 0.3);
  transform: translateY(1px) translateZ(-1px) scale(0.98);
}

.keyboard__key-icon {
  width: 1.5rem;
  height: 1.5rem;
  object-fit: contain;
}

.keyboard__key-name {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  font-weight: 500;
}

/* Barre de progression au hover */
.keyboard__key-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--color-primary),
    var(--color-primary-light)
  );
  transition: width 0.4s ease;
  border-radius: 0 0 0.375rem 0.375rem;
}

.keyboard__key--active:hover .keyboard__key-progress {
  width: 100%;
}

/* Pourcentage au hover */
.keyboard__key-percentage {
  position: absolute;
  top: -2rem;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.25rem 0.5rem;
  background-color: var(--color-primary);
  color: white;
  font-size: var(--text-xs);
  font-weight: 600;
  border-radius: 0.25rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast);
  white-space: nowrap;
}

.keyboard__key--active:hover .keyboard__key-percentage {
  opacity: 1;
}

/*===============================================
  MODAL COMPÉTENCE
===============================================*/
.skill-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

.skill-modal.show {
  display: flex;
}

.skill-modal__content {
  background: linear-gradient(145deg, #1a1a1a, #0f0f0f);
  border: 1px solid var(--color-border);
  border-radius: 1rem;
  padding: 2rem;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(220, 38, 38, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  animation: slideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(50px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

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

.skill-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2rem;
  height: 2rem;
  border: none;
  background: rgba(220, 38, 38, 0.1);
  color: var(--color-primary);
  font-size: 1.5rem;
  border-radius: 0.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.skill-modal__close:hover {
  background: var(--color-primary);
  color: white;
  transform: rotate(90deg);
}

.skill-modal__header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.skill-modal__icon {
  width: 4rem;
  height: 4.5rem;
  padding: 0 1rem;
  padding: 0.75rem;
  background: var(--color-surface);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.skill-modal__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.skill-modal__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text);
}

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

.skill-modal__progress-bar {
  height: 8px;
  background: var(--color-surface);
  border-radius: 1rem;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.skill-modal__progress-fill {
  height: 100%;
  background: linear-gradient(
    90deg,
    var(--color-primary),
    var(--color-primary-light)
  );
  border-radius: 1rem;
  transition: width 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 0 10px rgba(220, 38, 38, 0.5);
}

.skill-modal__percentage {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary);
}

.skill-modal__description {
  color: var(--color-text-muted);
  line-height: 1.6;
  font-size: 0.95rem;
}

/*===============================================
  TOOLTIP COMPÉTENCE (ANCIEN)
===============================================*/
.skill__tooltip {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  max-width: 500px;
  width: 90%;
  padding: var(--spacing-lg);
  background-color: var(--color-surface);
  border: 2px solid var(--color-primary);
  border-radius: 0.75rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), var(--glow-primary-strong);
  z-index: var(--z-tooltip);
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition-base);
}

.skill__tooltip.active {
  opacity: 1;
  pointer-events: all;
  transform: translate(-50%, -50%) scale(1);
}

.tooltip__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  border-radius: 0.375rem;
  background-color: var(--color-surface-light);
}

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

.tooltip__icon {
  width: 4rem;
  height: 4.5rem;
  padding: 0 1rem;
  margin: 0 auto var(--spacing-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.tooltip__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.tooltip__title {
  font-size: var(--text-2xl);
  font-weight: 600;
  text-align: center;
  margin-bottom: var(--spacing-md);
  color: var(--color-primary);
}

.tooltip__progress {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-md);
}

.progress__bar {
  flex: 1;
  height: 0.75rem;
  background-color: var(--color-surface-light);
  border-radius: 1rem;
  overflow: hidden;
}

.progress__fill {
  height: 100%;
  background: linear-gradient(
    90deg,
    var(--color-primary),
    var(--color-primary-light)
  );
  border-radius: 1rem;
  transition: width 0.6s ease;
}

.progress__percentage {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-primary);
  min-width: 3rem;
  text-align: right;
}

.tooltip__description {
  color: var(--color-text-muted);
  line-height: 1.7;
}

/*===============================================
  PROJETS
===============================================*/
.projects__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  justify-items: center;
  width: 100%;
  padding: 1rem;
}

.projects__loading {
  grid-column: 1 / -1;
  text-align: center;
  padding: var(--spacing-2xl);
}

.project__card {
  background: linear-gradient(145deg, var(--color-surface), rgba(var(--color-surface-rgb, 23, 23, 23), 0.8));
  border: 2px solid var(--color-border);
  border-radius: 1rem;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  box-shadow: 
    0 10px 30px rgba(0, 0, 0, 0.5),
    0 5px 15px rgba(0, 0, 0, 0.3),
    inset 0 1px 2px rgba(255, 255, 255, 0.05);
  transform-style: preserve-3d;
  width: 100%;
  max-width: 420px;
}

.project__card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project__card:hover {
  border-color: var(--color-primary);
  box-shadow: 
    0 20px 50px rgba(220, 38, 38, 0.25),
    0 10px 25px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(220, 38, 38, 0.15),
    inset 0 1px 3px rgba(255, 255, 255, 0.08);
  transform: translateY(-8px) scale(1.02) rotateX(2deg);
}

.project__card:hover::before {
  opacity: 1;
}

.project__image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  background: linear-gradient(135deg, #1a1a1a, #0d0d0d);
  transition: transform 0.4s ease, filter 0.3s ease;
  position: relative;
}

.project__card:hover .project__image {
  transform: scale(1.05);
  filter: brightness(1.1) contrast(1.05);
}

.project__content {
  padding: 1.75rem;
  position: relative;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.2));
}

.project__title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--color-text);
  background: linear-gradient(90deg, var(--color-text), var(--color-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: all 0.3s ease;
}

.project__card:hover .project__title {
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.project__description {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
  line-height: 1.7;
  text-align: justify;
}

.project__tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: var(--spacing-md);
}

.tech__tag {
  padding: 0.4rem 0.9rem;
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.1), rgba(220, 38, 38, 0.05));
  border: 1px solid rgba(220, 38, 38, 0.3);
  border-radius: 1.5rem;
  font-size: 0.75rem;
  color: var(--color-text);
  font-weight: 500;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tech__tag:hover {
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.2), rgba(220, 38, 38, 0.1));
  border-color: rgba(220, 38, 38, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(220, 38, 38, 0.2);
}

.project__links {
  display: flex;
  gap: var(--spacing-sm);
}

.project__link {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem;
  border: 1px solid var(--color-border);
  border-radius: 0.375rem;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  transition: all var(--transition-base);
}

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

/*===============================================
  TIMELINE (Parcours & Expériences)
===============================================*/
.timeline {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  padding-left: 0;
}

.timeline::before {
  content: "";
  position: absolute;
  left: -2rem;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(
    180deg,
    transparent,
    var(--color-primary) 10%,
    var(--color-primary) 90%,
    transparent
  );
  border-radius: 2px;
  box-shadow: 0 0 10px rgba(220, 38, 38, 0.3);
}

.timeline__item {
  position: relative;
  margin-bottom: 2.5rem;
  padding-left: 0;
}



.timeline__content {
  padding: 2rem;
  background: linear-gradient(135deg, var(--color-surface) 0%, rgba(var(--color-surface-rgb, 23, 23, 23), 0.8) 100%);
  border: 2px solid var(--color-border);
  border-left: 4px solid var(--color-primary);
  border-radius: 0.75rem;
  transition: all 0.3s ease;
  position: relative;
}

.timeline__content:hover {
  border-color: var(--color-primary);
  border-left-width: 6px;
  transform: translateX(8px);
  box-shadow: 0 8px 30px rgba(220, 38, 38, 0.15), 0 0 20px rgba(220, 38, 38, 0.1);
}

.timeline__date {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, var(--color-primary), rgba(220, 38, 38, 0.8));
  color: white;
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: 2rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 10px rgba(220, 38, 38, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.timeline__title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--color-text);
  background: linear-gradient(90deg, var(--color-text), var(--color-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.timeline__location {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.timeline__description {
  color: var(--color-text-muted);
  line-height: 1.8;
  font-size: 1rem;
}

.timeline__empty {
  text-align: center;
  padding: var(--spacing-xl);
  color: var(--color-text-darker);
  font-style: italic;
}

/*===============================================
  CAROUSEL
===============================================*/
.carousel-container {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

.carousel {
  overflow: hidden;
  border-radius: 0.75rem;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
}

.carousel__items {
  display: flex;
  transition: transform var(--transition-smooth);
}

.carousel__item {
  flex: 0 0 100%;
  min-width: 100%;
}

.carousel__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

.carousel__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background-color: var(--color-surface);
  color: var(--color-text);
  cursor: pointer;
  transition: all var(--transition-base);
}

.carousel__btn:hover:not(:disabled) {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background-color: var(--color-surface-light);
}

.carousel__btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.carousel__indicator {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  min-width: 80px;
  text-align: center;
}

/*===============================================

/* CV Section */
.cv-section {
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
  padding: 6rem 1.5rem !important;
  text-align: center;
}

.cv-section .container > div {
  max-width: 600px;
  margin: 0 auto;
}

.cv-section__icon {
  margin-bottom: 2.5rem;
}

.cv-section__icon svg {
  width: 80px;
  height: 80px;
  color: var(--color-primary);
  margin: 0 auto;
  display: block;
}

.cv-section .section__title {
  margin-bottom: 1.5rem;
  font-size: 2.5rem;
}

.cv-section .section__description {
  margin-bottom: 2.5rem;
  color: var(--color-text-muted);
  font-size: 1.125rem;
  line-height: 1.6;
}

.cv-section .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  font-size: 1.0625rem;
  font-weight: 600;
}

.cv-section .btn svg {
  width: 22px;
  height: 22px;
}

/*===============================================
  CONTACT
===============================================*/
.contact__container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  max-width: 1000px;
  margin: 0 auto;
  align-items: start;
}

.contact__form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form__group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form__label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
}

.form__input {
  padding: 0.875rem;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--color-border);
  border-radius: 0.375rem;
  color: var(--color-text);
  font-family: inherit;
  font-size: var(--text-base);
  transition: all var(--transition-base);
}

.form__textarea {
  padding: 0.875rem;
  background-color: rgba(255, 255, 255, 0.05);
  border: 2px solid var(--color-border);
  border: 1px solid var(--color-border);
  border-radius: 0.375rem;
  color: var(--color-text);
  font-family: inherit;
  font-size: var(--text-base);
  transition: all var(--transition-base);
}

.form__input:focus,
.form__textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  background-color: rgba(255, 255, 255, 0.08);
  box-shadow: var(--glow-primary);
}

.contact__form .btn {
  margin-top: 1rem;
}

.form__textarea {
  resize: vertical;
  min-height: 150px;
}

.contact__info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact__card {
  padding: var(--spacing-md);
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  text-align: center;
  transition: all var(--transition-base);
}

.contact__card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--glow-primary);
}

.contact__icon {
  margin: 0 auto var(--spacing-sm);
  color: var(--color-primary);
}

.contact__card-title {
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--spacing-xs);
}

.contact__link {
  color: var(--color-text-muted);
  transition: color var(--transition-base);
}

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

/*===============================================
  FOOTER
===============================================*/
.footer {
  background-color: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: var(--spacing-2xl) 0 var(--spacing-lg);
  margin-top: var(--spacing-2xl);
}

.footer__content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-2xl);
}

.footer__logo {
  font-family: var(--font-mono);
  font-size: var(--text-xl);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-bottom: var(--spacing-lg);
}

.footer__tagline {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

.footer__title {
  font-size: var(--text-base);
  font-weight: 600;
  margin-bottom: var(--spacing-md);
  color: var(--color-primary);
}

.footer__list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.footer__list a {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  transition: color var(--transition-fast);
}

.footer__list a:hover {
  color: var(--color-text);
}

.social__links {
  display: flex;
  gap: var(--spacing-sm);
}

.footer__bottom {
  padding-top: var(--spacing-lg);
  border-top: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-sm);
  color: var(--color-text-darker);
}

.footer__heart {
  color: var(--color-primary);
  animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
}

/*===============================================
  SCROLL TO TOP
===============================================*/
.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-primary);
  color: white;
  border-radius: 50%;
  box-shadow: var(--glow-primary);
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition-base);
  z-index: 999;
}

.scroll-top.visible {
  opacity: 1;
  pointer-events: all;
}

.scroll-top:hover {
  transform: translateY(-5px);
  box-shadow: var(--glow-primary-strong);
}

/*===============================================
  TOAST NOTIFICATIONS
===============================================*/
.toast__container {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.toast {
  padding: var(--spacing-md) var(--spacing-lg);
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  min-width: 300px;
  animation: slideUp 0.3s ease;
}

.toast--success {
  border-color: #22c55e;
}

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

@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/*===============================================
  RESPONSIVE
===============================================*/
/* Desktop Navigation - Force horizontal layout */
@media screen and (min-width: 969px) {
  .nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 4.5rem;
  padding: 0 2rem;
  gap: 2rem;
  width: 100%;
  max-width: 100%;
}

  .nav__menu {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  justify-content: center;
  max-width: none;
}

  /* Navigation List Spacing */
.nav__list {
  display: flex;
  flex-direction: row;
  gap: 2rem;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

  .nav__close {
    display: none !important;
  }

  .nav__toggle {
    display: none !important;
  }
}

@media screen and (max-width: 968px) {
  /* Header compact pour mobile */
  .header {
    padding: 0;
  }

  .nav {
    height: auto;
    min-height: auto;
    padding: 0.5rem;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center !important;
  }

  .nav__logo {
    font-size: 0.95rem;
    padding: 0.35rem 0.65rem;
    margin: 0 auto;
    order: 1;
    width: 100%;
    text-align: center;
    display: inline-flex;
    justify-content: center;
  }

  
  /* Centrer tous les conteneurs */
  .container {
    padding: 0 1rem;
    margin: 0 auto;
  }
  
  .section {
    padding: 4rem 0;
    text-align: center;
  }
  
  .section__title,
  .section__subtitle {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }
  
  /* Hero centré */
  .hero {
    text-align: center;
  }
  
  .hero__greeting,
  .hero__name,
  .hero__tagline {
    text-align: center;
  }
  
  /* About centré */
  .about__description {
    text-align: center !important;
  }
  
  .about__info,
  .about__stats {
    justify-content: center;
    margin: 0 auto;
  }
  
  /* Projets centrés */
  .projects__grid {
    justify-items: center;
    margin: 0 auto;
  }
  
  /* Timeline centrée */
  .timeline {
    margin: 0 auto;
  }
  
  /* Contact centré */
  .contact__container {
    margin: 0 auto;
  }
  
  .logo__bracket {
    font-size: 1rem;
  }

  /* Menu sur la 2e ligne, centré */
  .nav__menu {
    display: flex !important;
    align-items: center;
    justify-content: center;
    position: static !important;
    width: 100% !important;
    height: auto !important;
    background-color: transparent !important;
    border: none !important;
    padding: 0 !important;
    order: 2;
  }

  .nav__list {
    display: flex !important;
    flex-direction: row !important;
    gap: 0.4rem !important;
    align-items: center !important;
    flex-wrap: wrap;
    justify-content: center;
  }

  .nav__link {
    font-size: 0.7rem;
    padding: 0.4rem 0.5rem;
    white-space: nowrap;
  }
  
  .nav__link::before {
    display: none !important;
  }

  /* Actions sur la 3e ligne */
  .nav__actions {
    display: flex !important;
    gap: 0.6rem;
    order: 3;
    width: 100%;
    justify-content: center;
  }

  .lang__toggle {
    font-size: 0.7rem;
    padding: 0.35rem 0.6rem;
  }

  .theme-toggle {
    width: 2rem;
    height: 2rem;
  }

  /* Masquer burger */
  .nav__close,
  .nav__toggle {
    display: none !important;
  }
  
  /* Adaptation du clavier pour tablettes/mobiles */
  .keyboard {
    max-width: 100%;
    padding: 1rem 0.75rem 0.75rem;
    margin: 0 0.5rem;
  }
  
  .keyboard__row {
    gap: 0.3rem;
    margin-bottom: 0.3rem;
  }
  
  .keyboard__key {
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0.3rem;
    font-size: 0.65rem;
  }
  
  .keyboard__key-icon {
    width: 1.2rem;
    height: 1.2rem;
  }
  
  .keyboard__key-name {
    font-size: 0.65rem;
  }

  /* Sections */
  .hero__container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__cta {
    justify-content: center;
  }

  .hero__social {
    justify-content: center;
  }

  .hero__visual {
    order: -1;
  }

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

  .footer__content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer__bottom {
    flex-direction: column;
    gap: var(--spacing-sm);
    text-align: center;
  }
}


@media screen and (max-width: 576px) {
  .section__title {
    font-size: var(--text-3xl);
  }

  .hero__name {
    font-size: var(--text-3xl);
  }

  .hero__tagline {
    font-size: var(--text-base);
  }

  .hero__cta {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

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

  .keyboard {
  max-width: 950px;
  margin: 0 auto;
  padding: 2rem 1.5rem 1.5rem;
  background: linear-gradient(145deg, #1a1a1a, #0d0d0d);
  border: 2px solid rgba(255, 255, 255, 0.05);
  border-radius: 1rem;
  position: relative;
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.7),
    0 10px 30px rgba(0, 0, 0, 0.5),
    inset 0 1px 2px rgba(255, 255, 255, 0.08),
    inset 0 -2px 4px rgba(0, 0, 0, 0.4);
  perspective: 1200px;
}

.keyboard::before {
  content: "";
  position: absolute;
  top: 0.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  border-radius: 2px;
}

  .keyboard__key {
  position: relative;
  min-width: 3.2rem;
  height: 3.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 0.5rem;
  background: linear-gradient(160deg, #3a3a3a 0%, #2a2a2a 40%, #1a1a1a 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  border-bottom: 2px solid rgba(0, 0, 0, 0.6);
  border-radius: 0.375rem;
  font-size: var(--text-xs);
  transition: all 0.12s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: default;
  box-shadow: 
    0 4px 8px rgba(0, 0, 0, 0.5),
    0 2px 4px rgba(0, 0, 0, 0.3),
    inset 0 1px 2px rgba(255, 255, 255, 0.1),
    inset 0 -3px 6px rgba(0, 0, 0, 0.4);
  transform-style: preserve-3d;
  transform: translateY(0) translateZ(0);
}

.keyboard__key::before {
  content: "";
  position: absolute;
  top: 1px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,0.05), transparent);
  border-radius: 0.25rem 0.25rem 0 0;
  pointer-events: none;
}

  .projects__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  justify-items: center;
  width: 100%;
  padding: 1rem;
}

  
  /* Clavier encore plus petit pour smartphones */
  .keyboard {
    padding: 0.75rem 0.5rem 0.5rem;
    margin: 0 0.25rem;
  }
  
  .keyboard__row {
    gap: 0.25rem;
    margin-bottom: 0.25rem;
  }
  
  .keyboard__key {
    min-width: 2rem;
    height: 2rem;
    padding: 0.25rem;
  }
  
  .keyboard__key-icon {
    width: 1rem;
    height: 1rem;
  }
  
  .keyboard__key-name {
    font-size: 0.55rem;
  }
  
  .keyboard__key-percentage {
    font-size: 0.6rem;
    top: -1.5rem;
  }
  
  .keyboard__key-progress {
    height: 2px;
  }

}
