/* ==========================================================================
   Portfolio Kylian Berkat - Styles CSS vanilla
   Convention BEM alignee sur index.html et wikipedia.html
   ========================================================================== */

/* --------------------------------------------------------------------------
   Reset CSS minimal
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
}

body {
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

input, button, textarea, select {
  font: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

a {
  text-decoration: none;
  color: inherit;
}

ul, ol {
  list-style: none;
}

/* --------------------------------------------------------------------------
   Variables CSS custom
   -------------------------------------------------------------------------- */
:root {
  /* Couleurs */
  --white: #ffffff;
  --black: #000000;

  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --slate-950: #020617;

  --blue-100: #dbeafe;
  --blue-200: #bfdbfe;
  --blue-400: #60a5fa;
  --blue-500: #3b82f6;
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;

  --cyan-300: #67e8f9;
  --cyan-400: #22d3ee;
  --cyan-500: #06b6d4;
  --cyan-600: #0891b2;

  /* Wikipedia */
  --wiki-bg: #f8f9fa;
  --wiki-text: #202122;
  --wiki-border: #c8ccd1;
  --wiki-link: #3366cc;
  --wiki-muted: #54595d;
  --wiki-border-light: #eaecf0;
  --wiki-border-mid: #a2a9b1;

  /* Typographie */
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-serif: Georgia, 'Times New Roman', Times, serif;

  /* Rayons */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.25rem;
  --radius-3xl: 1.5rem;
  --radius-full: 9999px;
  --radius-card: 28px;

  /* Ombres */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 200ms ease;
  --transition-slow: 300ms ease;

  /* Layout */
  --container-max: 80rem;
  --container-px: 1.5rem;
  --container-px-lg: 2.5rem;
  --navbar-height: 72px;
}

/* --------------------------------------------------------------------------
   Base typographie
   -------------------------------------------------------------------------- */
body {
  font-family: var(--font-sans);
  color: var(--slate-900);
  background-color: var(--white);
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
  font-weight: 700;
}

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

@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

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

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

/* Animations au scroll via JS - classe .visible ajoutee par IntersectionObserver */
/* Exclure navbar et hero qui doivent etre visibles immediatement */
section[data-section],
.education__card,
.skills__card,
.future__card,
.commitments__card,
.travel__country,
.about__quality-card,
.contact__info-card {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Le hero doit apparaitre immediatement */
.hero[data-section] {
  opacity: 1;
  transform: none;
}

section[data-section].visible,
.education__card.visible,
.skills__card.visible,
.future__card.visible,
.commitments__card.visible,
.travel__country.visible,
.about__quality-card.visible,
.contact__info-card.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Experience cards - slide-in depuis la gauche avec delays */
.experience__card {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.3s ease, border-color 0.3s ease;
}

.experience__card.visible {
  opacity: 1;
  transform: translateX(0);
}

.experience__card:nth-of-type(1) { transition-delay: 0.1s; }
.experience__card:nth-of-type(2) { transition-delay: 0.2s; }
.experience__card:nth-of-type(3) { transition-delay: 0.3s; }
.experience__card:nth-of-type(4) { transition-delay: 0.4s; }
.experience__card:nth-of-type(5) { transition-delay: 0.5s; }

.about__quality-card:nth-child(2) { transition-delay: 0.06s; }
.about__quality-card:nth-child(3) { transition-delay: 0.12s; }
.about__quality-card:nth-child(4) { transition-delay: 0.18s; }
.about__quality-card:nth-child(5) { transition-delay: 0.24s; }
.about__quality-card:nth-child(6) { transition-delay: 0.3s; }

.travel__country:nth-child(2) { transition-delay: 0.06s; }
.travel__country:nth-child(3) { transition-delay: 0.12s; }
.travel__country:nth-child(4) { transition-delay: 0.18s; }
.travel__country:nth-child(5) { transition-delay: 0.24s; }
.travel__country:nth-child(6) { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  [data-section],
  .education__card,
  .experience__card,
  .skills__card,
  .future__card,
  .commitments__card,
  .travel__country,
  .about__quality-card,
  .contact__info-card {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
  }
}

/* --------------------------------------------------------------------------
   Icones SVG inline
   -------------------------------------------------------------------------- */
.icon {
  display: inline-block;
  width: 1.25rem;
  height: 1.25rem;
  vertical-align: middle;
  flex-shrink: 0;
}

.icon--xs {
  width: 0.875rem;
  height: 0.875rem;
}

.icon--sm {
  width: 1rem;
  height: 1rem;
}

.icon--lg {
  width: 1.5rem;
  height: 1.5rem;
}

.icon--xl {
  width: 1.75rem;
  height: 1.75rem;
}

.hidden {
  display: none !important;
}

/* --------------------------------------------------------------------------
   Utilitaires
   -------------------------------------------------------------------------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

::selection {
  background: var(--blue-600);
  color: var(--white);
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--slate-100); }
::-webkit-scrollbar-thumb { background: var(--slate-300); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--slate-400); }

/* ==========================================================================
   NAVBAR - Premium glassmorphism design
   ========================================================================== */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: background 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              backdrop-filter 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: transparent;
  border-bottom: 1px solid transparent;
}

#navbar.scrolled {
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 1px 0 rgba(255, 255, 255, 0.05) inset;
}

.navbar__container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--navbar-height);
}

@media (min-width: 1024px) {
  .navbar__container {
    padding: 0 var(--container-px-lg);
  }
}

/* Logo badge cercle gradient */
.navbar__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.navbar__logo-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--blue-500), var(--blue-700));
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.navbar__logo:hover .navbar__logo-badge {
  transform: scale(1.08);
  box-shadow: 0 0 28px rgba(59, 130, 246, 0.45), 0 0 0 3px rgba(59, 130, 246, 0.25);
}

/* Liens desktop avec underline anime */
.navbar__links {
  display: none;
  align-items: center;
  gap: 1.5rem;
}

.navbar__link {
  position: relative;
  font-size: 0.8125rem;
  color: var(--slate-400);
  transition: color 0.3s ease;
  padding-bottom: 2px;
  white-space: nowrap;
}

.navbar__link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--blue-500), var(--cyan-400));
  border-radius: 2px;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar__link:hover {
  color: var(--white);
}

.navbar__link:hover::after {
  width: 100%;
}

/* Actions desktop */
.navbar__actions {
  display: none;
  align-items: center;
  gap: 0.75rem;
}

/* Selecteur de langue pill compact */
.navbar__lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.125rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  padding: 0.1875rem;
}

.navbar__lang-btn {
  padding: 0.25rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: var(--radius-full);
  color: var(--slate-400);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar__lang-btn:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
}

.navbar__lang-btn.active {
  background: linear-gradient(135deg, var(--blue-600), var(--blue-500));
  color: var(--white);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

/* Bouton Wikipedia navbar */
.navbar__wiki-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  color: var(--slate-300);
  transition: all 0.3s ease;
}

.navbar__wiki-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--white);
}

/* Bouton CV navbar - accent gradient */
.navbar__cv-btn {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--blue-600), var(--blue-500));
  padding: 0.4375rem 0.875rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--white);
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.25);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.navbar__cv-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.15));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.navbar__cv-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(37, 99, 235, 0.35);
}

.navbar__cv-btn:hover::before {
  opacity: 1;
}

/* Burger mobile */
.navbar__mobile-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  color: var(--white);
  border-radius: var(--radius-lg);
  transition: background 0.3s ease, transform 0.2s ease;
}

.navbar__mobile-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
}

.navbar__mobile-toggle:active {
  transform: scale(0.92);
}

.navbar__mobile-toggle .icon {
  width: 1.375rem;
  height: 1.375rem;
}

/* Menu mobile glassmorphism */
@keyframes navSlideDown {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.navbar__mobile-menu {
  display: none;
  flex-direction: column;
  gap: 0.125rem;
  padding: 0.75rem;
  margin: 0.25rem var(--container-px) 0.75rem;
  border-radius: var(--radius-2xl);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(2, 6, 23, 0.92);
  backdrop-filter: blur(24px) saturate(1.6);
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
  animation: navSlideDown 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar__mobile-menu:not(.hidden) {
  display: flex;
}

.navbar__mobile-link {
  display: block;
  width: 100%;
  text-align: left;
  border-radius: var(--radius-lg);
  padding: 0.6875rem 1rem;
  color: var(--slate-300);
  font-size: 0.9375rem;
  transition: background 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
}

.navbar__mobile-link:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  padding-left: 1.25rem;
}

.navbar__mobile-divider {
  height: 1px;
  margin: 0.375rem 1rem;
  background: rgba(255, 255, 255, 0.06);
}

.navbar__mobile-cv-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--blue-600), var(--blue-500));
  padding: 0.75rem 1rem;
  color: var(--white);
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.2);
  transition: all 0.3s ease;
}

.navbar__mobile-cv-btn:hover {
  box-shadow: 0 6px 24px rgba(37, 99, 235, 0.35);
}

.navbar__mobile-lang {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  padding-top: 0.5rem;
}

.navbar__mobile-lang .navbar__lang-btn {
  padding: 0.375rem 0.875rem;
  font-size: 0.8125rem;
  background: rgba(255, 255, 255, 0.06);
  color: var(--slate-300);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.25s ease;
}

.navbar__mobile-lang .navbar__lang-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.navbar__mobile-lang .navbar__lang-btn.active {
  background: linear-gradient(135deg, var(--blue-600), var(--blue-500));
  color: var(--white);
  border-color: transparent;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

@media (min-width: 1024px) {
  .navbar__links { display: flex; }
  .navbar__actions { display: flex; }
  .navbar__mobile-toggle { display: none; }
}

/* ==========================================================================
   HERO - Premium design avec mesh gradient et animations
   ========================================================================== */
@keyframes heroBlobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 15px) scale(0.95); }
}

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

@keyframes heroBadgePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 50% at 20% 20%, rgba(59, 130, 246, 0.18), transparent),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(6, 182, 212, 0.08), transparent),
    radial-gradient(ellipse 50% 60% at 50% 50%, rgba(37, 99, 235, 0.06), transparent),
    linear-gradient(160deg, #020617 0%, #0a0f1e 30%, #0f172a 55%, #0c1220 100%);
}

/* Mesh grid overlay subtil */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(59, 130, 246, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

.hero__bg-effects {
  position: absolute;
  inset: 0;
  opacity: 0.4;
  pointer-events: none;
}

.hero__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: heroBlobFloat 20s ease-in-out infinite;
}

.hero__blob--blue {
  left: -5%;
  top: 10%;
  width: 22rem;
  height: 22rem;
  background: rgba(59, 130, 246, 0.2);
  animation-delay: 0s;
}

.hero__blob--cyan {
  bottom: 5%;
  right: -5%;
  width: 28rem;
  height: 28rem;
  background: rgba(6, 182, 212, 0.1);
  animation-delay: -7s;
}

.hero__blob--purple {
  top: 50%;
  left: 40%;
  width: 16rem;
  height: 16rem;
  background: rgba(99, 102, 241, 0.08);
  animation-delay: -14s;
}

.hero__container {
  position: relative;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 8rem var(--container-px) 5rem;
}

@media (min-width: 1024px) {
  .hero__container {
    padding: 9rem var(--container-px-lg) 5rem;
  }
}

.hero__grid {
  display: grid;
  gap: 4rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero__grid {
    grid-template-columns: 1.05fr 0.95fr;
  }
}

/* Colonne texte - animations sequentielles */
.hero__content {
  max-width: 42rem;
}

.hero__content > * {
  animation: heroFadeInUp 0.7s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.hero__content > *:nth-child(1) { animation-delay: 0.1s; }
.hero__content > *:nth-child(2) { animation-delay: 0.2s; }
.hero__content > *:nth-child(3) { animation-delay: 0.3s; }
.hero__content > *:nth-child(4) { animation-delay: 0.4s; }
.hero__content > *:nth-child(5) { animation-delay: 0.5s; }
.hero__content > *:nth-child(6) { animation-delay: 0.6s; }
.hero__content > *:nth-child(7) { animation-delay: 0.7s; }

/* Badge avec dot pulse */
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(59, 130, 246, 0.2);
  background: rgba(59, 130, 246, 0.08);
  padding: 0.5rem 1.125rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--blue-200);
  backdrop-filter: blur(8px);
  letter-spacing: 0.02em;
}

.hero__badge-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: var(--radius-full);
  background: var(--blue-400);
  animation: heroBadgePulse 2s ease-in-out infinite;
  box-shadow: 0 0 8px rgba(96, 165, 250, 0.6);
}

/* Titre avec gradient accent */
.hero__title {
  margin-top: 1.5rem;
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--white);
  line-height: 1.05;
}

.hero__title-accent {
  background: linear-gradient(135deg, var(--blue-400), var(--cyan-400));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@media (min-width: 640px) { .hero__title { font-size: 3.75rem; } }
@media (min-width: 1024px) { .hero__title { font-size: 4.5rem; } }

.hero__subtitle {
  margin-top: 1.25rem;
  max-width: 36rem;
  font-size: 1.125rem;
  color: var(--slate-400);
  line-height: 1.75;
}

@media (min-width: 1024px) { .hero__subtitle { font-size: 1.25rem; } }

.hero__quote {
  margin-top: 1.5rem;
  font-size: 1.375rem;
  font-weight: 500;
  font-style: italic;
  color: rgba(255, 255, 255, 0.9);
  position: relative;
  padding-left: 1.25rem;
  border-left: 2px solid var(--blue-500);
}

.hero__description {
  margin-top: 1.25rem;
  max-width: 36rem;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--slate-400);
}

/* Keywords pill badges */
.hero__keywords {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
}

.hero__keyword {
  border-radius: var(--radius-full);
  border: 1px solid rgba(59, 130, 246, 0.15);
  background: rgba(59, 130, 246, 0.06);
  padding: 0.4375rem 1rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--blue-200);
  transition: all 0.3s ease;
}

.hero__keyword:hover {
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(59, 130, 246, 0.3);
  transform: translateY(-1px);
}

/* CTA */
.hero__ctas {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Boutons generiques utilises dans hero et contact */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: var(--radius-full);
  padding: 0.875rem 1.5rem;
  font-weight: 600;
  font-size: 0.9375rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  line-height: 1;
  position: relative;
  overflow: hidden;
}

.btn--primary {
  background: linear-gradient(135deg, var(--blue-600), var(--blue-500));
  color: var(--white);
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.3);
}

.btn--primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.15));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(37, 99, 235, 0.4);
}

.btn--primary:hover::before {
  opacity: 1;
}

.btn--outline {
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.04);
  color: var(--white);
  backdrop-filter: blur(4px);
}

.btn--outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.btn--ghost {
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--slate-300);
}

.btn--ghost:hover {
  border-color: rgba(59, 130, 246, 0.4);
  color: var(--white);
  background: rgba(59, 130, 246, 0.06);
  transform: translateY(-2px);
}

/* Colonne portrait avec glow effect */
.hero__portrait-wrapper {
  position: relative;
  margin: 0 auto;
  width: 100%;
  max-width: 500px;
  animation: heroFadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.3s both;
}

.hero__portrait-glow {
  position: absolute;
  inset: -1rem;
  border-radius: 2.5rem;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.25), rgba(6, 182, 212, 0.15), rgba(99, 102, 241, 0.1));
  filter: blur(40px);
  transition: opacity 0.5s ease;
}

.hero__portrait-wrapper:hover .hero__portrait-glow {
  opacity: 0.8;
}

.hero__portrait-card {
  position: relative;
  border-radius: 1.75rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  padding: 0.875rem;
  box-shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(20px);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.hero__portrait-wrapper:hover .hero__portrait-card {
  transform: translateY(-4px);
  box-shadow: 0 30px 70px -12px rgba(0, 0, 0, 0.5);
}

.hero__portrait-img-wrapper {
  overflow: hidden;
  border-radius: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--slate-900);
}

.hero__portrait-img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  object-position: top;
  transition: transform 0.6s ease;
}

.hero__portrait-wrapper:hover .hero__portrait-img {
  transform: scale(1.03);
}

/* Mini-cards glassmorphism */
.hero__mini-cards {
  margin-top: 0.875rem;
  display: grid;
  gap: 0.625rem;
}

@media (min-width: 640px) {
  .hero__mini-cards {
    grid-template-columns: 1fr 1fr;
  }
}

.hero__mini-card {
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(2, 6, 23, 0.6);
  backdrop-filter: blur(12px);
  padding: 0.875rem 1rem;
  color: var(--white);
  transition: border-color 0.3s ease, background 0.3s ease;
}

.hero__mini-card:hover {
  border-color: rgba(59, 130, 246, 0.2);
  background: rgba(2, 6, 23, 0.7);
}

.hero__mini-card-title {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--slate-500);
  font-weight: 600;
}

.hero__mini-card-value {
  margin-top: 0.375rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.hero__email {
  margin-top: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--slate-400);
  transition: color 0.3s ease;
}

.hero__email:hover {
  color: var(--blue-400);
}

/* ==========================================================================
   SECTION COMMUNES (container, label, titre)
   ========================================================================== */
.section__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--container-px);
}

.section__container--narrow {
  max-width: 72rem;
}

@media (min-width: 1024px) {
  .section__container {
    padding: 0 var(--container-px-lg);
  }
}

.section__header {
  margin-bottom: 3rem;
}

.section__header--center {
  text-align: center;
}

.section__header--light {
  text-align: center;
  margin-bottom: 3rem;
}

.section__label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--blue-600);
  margin-bottom: 0.25rem;
}

.section__label--light {
  color: var(--blue-400);
}

.section__title {
  margin-top: 0.5rem;
  font-size: 1.875rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

@media (min-width: 1024px) {
  .section__title {
    font-size: 2.25rem;
  }
}

.section__title--gradient {
  color: var(--slate-900);
}

.section__title--gradient-light {
  color: var(--white);
}

.section__intro {
  margin-top: 1rem;
  max-width: 40rem;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--slate-500);
}

.section__subtitle {
  margin-top: 1.25rem;
  font-size: 1.125rem;
  color: var(--slate-600);
}

.section__subtitle--light {
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
  color: var(--slate-300);
}

/* ==========================================================================
   ABOUT
   ========================================================================== */
.about {
  padding: 5rem 0;
  background: var(--slate-50);
}

.about__grid {
  display: grid;
  gap: 2.5rem;
  max-width: 48rem;
}

.about__text .section__label {
  color: var(--blue-600);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.75rem;
}

.about__text .section__title {
  position: relative;
  display: block;
}

.about__text .section__title::after {
  display: none;
}

.about__content {
  margin-top: 1.25rem;
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--slate-600);
}

.about__note {
  margin-top: 1.5rem;
  border: none;
  background: transparent;
  padding: 0;
  color: var(--slate-400);
  line-height: 1.7;
  font-size: 0.9375rem;
  font-style: normal;
  position: relative;
}

.about__note::before {
  content: '—';
  margin-right: 0.5rem;
  color: var(--slate-300);
}

/* Qualites - tags horizontaux inline sous le texte */
.about__qualities {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.about__quality-card {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--slate-200);
  background: var(--white);
  padding: 0.4rem 0.875rem;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.about__quality-card:hover {
  border-color: var(--blue-300);
  background: var(--blue-100);
}

.about__quality-icon {
  display: inline-flex;
  width: 1.25rem;
  height: 1.25rem;
  align-items: center;
  justify-content: center;
  color: var(--blue-500);
}

.about__quality-icon .icon {
  width: 0.875rem;
  height: 0.875rem;
}

.about__quality-card h3 {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--slate-700);
}

/* ==========================================================================
   EDUCATION
   ========================================================================== */
.education {
  padding: 4.5rem 0;
  background: var(--white);
}

.education .section__header {
  margin-bottom: 0.5rem;
}

.education__grid {
  max-width: 64rem;
  margin: 0 auto;
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .education__grid { grid-template-columns: repeat(2, 1fr); }
}

.education__card {
  border-radius: 12px;
  border: 1px solid var(--slate-200);
  background: var(--white);
  padding: 1.75rem;
  transition: border-color 0.2s ease;
  position: relative;
}

.education__card:hover {
  border-color: var(--slate-300);
}

.education__card-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
}

.education__icon-wrapper {
  display: none;
}

.education__degree {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--slate-800);
}

.education__school {
  margin-top: 0.5rem;
  font-weight: 500;
  color: var(--blue-600);
  font-size: 0.875rem;
}

.education__status {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  border-radius: var(--radius-full);
  padding: 0.3rem 0.875rem;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.education__status--progress {
  background: rgba(34, 197, 94, 0.1);
  color: #16a34a;
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.education__status--done {
  background: rgba(59, 130, 246, 0.1);
  color: var(--blue-700);
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.education__period {
  margin-top: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--slate-500);
  background: var(--slate-50);
  padding: 0.3rem 0.875rem;
  border-radius: var(--radius-full);
}

.education__description {
  margin-top: 1rem;
  color: var(--slate-600);
  line-height: 1.75;
  font-size: 0.9375rem;
}

/* ==========================================================================
   EXPERIENCE
   ========================================================================== */
.experience {
  padding: 4.5rem 0;
  background: var(--slate-50);
}

.experience__timeline {
  position: relative;
  max-width: 64rem;
  margin: 0 auto;
}

/* Timeline line - se dessine progressivement */
.experience__timeline-line {
  display: none;
  position: absolute;
  left: 1.25rem;
  top: 0;
  height: 100%;
  width: 2px;
  background: var(--slate-200);
  border-radius: 1px;
}

.experience__timeline-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0;
  background: linear-gradient(to bottom, var(--blue-500), var(--blue-300));
  border-radius: 1px;
  transition: height 1.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.experience.visible .experience__timeline-line::after {
  height: 100%;
}

@media (min-width: 768px) {
  .experience__timeline-line { display: block; }
}

.experience__timeline > .experience__card {
  margin-bottom: 1.5rem;
}

.experience__timeline > .experience__card:last-child {
  margin-bottom: 0;
}

/* Cards experience - slide-in depuis la gauche */
.experience__card {
  position: relative;
  border-radius: 12px;
  border: 1px solid var(--slate-200);
  background: var(--white);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.3s ease,
              border-color 0.3s ease,
              opacity 0.6s ease;
}

.experience__card:hover {
  transform: translateX(6px);
  border-color: var(--blue-300);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.1);
}

/* Premiere experience mise en avant */
.experience__timeline > .experience__card:first-of-type {
  border: 1px solid var(--blue-400);
  background: linear-gradient(135deg, var(--white) 0%, rgba(219, 234, 254, 0.3) 100%);
}

.experience__timeline > .experience__card:first-of-type .experience__duration {
  background: var(--blue-600);
  color: var(--white);
}

.experience__timeline > .experience__card:first-of-type:hover {
  box-shadow: 0 8px 30px rgba(59, 130, 246, 0.15);
}

@media (min-width: 768px) {
  .experience__card { margin-left: 3.5rem; }
}

/* Timeline dots - pulse animation */
@keyframes dotPulse {
  0% { box-shadow: 0 0 0 4px var(--slate-50); }
  50% { box-shadow: 0 0 0 4px var(--slate-50), 0 0 0 8px rgba(59, 130, 246, 0.15); }
  100% { box-shadow: 0 0 0 4px var(--slate-50); }
}

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

.experience__timeline-dot {
  display: none;
  position: absolute;
  left: -3.875rem;
  top: 2rem;
  width: 2.5rem;
  height: 2.5rem;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--blue-600);
  color: var(--white);
  box-shadow: 0 0 0 4px var(--slate-50);
  z-index: 1;
  transition: box-shadow 0.3s ease;
}

.experience__card:hover .experience__timeline-dot {
  animation: dotPulse 2s ease-in-out infinite;
}

.experience__timeline-dot .icon {
  width: 1.125rem;
  height: 1.125rem;
}

@media (min-width: 768px) {
  .experience__timeline-dot { display: flex; }
}

.experience__card-inner {
  padding: 1.75rem 2rem;
}

.experience__card-header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 1024px) {
  .experience__card-header {
    flex-direction: row;
    align-items: start;
    justify-content: space-between;
  }
}

.experience__duration {
  display: inline-flex;
  border-radius: var(--radius-full);
  background: var(--blue-100);
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--blue-700);
  transition: background 0.3s ease, color 0.3s ease;
}

.experience__card:hover .experience__duration {
  background: var(--blue-600);
  color: var(--white);
}

.experience__role {
  margin-top: 0.875rem;
  font-size: 1.1875rem;
  font-weight: 700;
  color: var(--slate-800);
}

.experience__company {
  margin-top: 0.25rem;
  font-weight: 600;
  color: var(--blue-600);
  font-size: 0.9375rem;
}

.experience__meta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--slate-500);
}

.experience__meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.2s ease;
}

.experience__card:hover .experience__meta-item {
  color: var(--slate-600);
}

.experience__description {
  transition: color 0.2s ease;
}

.experience__card:hover .experience__description {
  color: var(--slate-700);
}

.experience__meta-item .icon {
  color: var(--slate-400);
}

.experience__description {
  margin-top: 1.25rem;
  color: var(--slate-600);
  line-height: 1.75;
  font-size: 0.9375rem;
}

/* ==========================================================================
   SKILLS
   ========================================================================== */
.skills {
  padding: 5rem 0;
  background: var(--slate-50);
}

.skills__grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .skills__grid { grid-template-columns: repeat(3, 1fr); }
}

.skills__card {
  border-radius: 12px;
  border: 1px solid var(--slate-200);
  background: var(--white);
  padding: 1.5rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.skills__card:hover {
  border-color: var(--blue-200);
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.06);
}

.skills__icon-wrapper {
  display: none;
}

.skills__icon-wrapper--blue,
.skills__icon-wrapper--dark,
.skills__icon-wrapper--cyan { display: none; }

.skills__card-title {
  margin-top: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--slate-900);
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--slate-100);
  margin-bottom: 0.25rem;
}

.skills__list {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.skills__list-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--slate-600);
  line-height: 1.5;
  font-size: 0.875rem;
  padding: 0.375rem 0;
  border-bottom: 1px solid var(--slate-50);
}

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

.skills__list-item::before {
  content: '';
  width: 6px;
  height: 6px;
  min-width: 6px;
  border-radius: 50%;
  background: var(--blue-500);
}

/* Langues */
.skills__langs {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.skills__lang-item {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.skills__lang-info {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.skills__lang-name {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--slate-800);
}

.skills__lang-level {
  font-size: 0.75rem;
  color: var(--slate-400);
}

.skills__lang-bar {
  width: 100%;
  height: 3px;
  border-radius: var(--radius-full);
  background: var(--slate-100);
  overflow: hidden;
}

.skills__lang-fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: var(--blue-500);
  transition: width 1s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ==========================================================================
   FUTURE
   ========================================================================== */
.future {
  padding: 5rem 0;
  background: var(--white);
}

.future__grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .future__grid { grid-template-columns: repeat(3, 1fr); }
}

.future__card {
  position: relative;
  border-radius: 12px;
  border: 1px solid var(--slate-200);
  background: var(--white);
  padding: 1.75rem 1.5rem;
  overflow: hidden;
  transition: border-color 0.2s ease;
  counter-increment: future-count;
}

.future__card::after {
  content: counter(future-count, decimal-leading-zero);
  position: absolute;
  top: 0.75rem;
  right: 1.25rem;
  font-size: 3rem;
  font-weight: 800;
  color: var(--blue-100);
  line-height: 1;
  pointer-events: none;
}

.future__card:hover {
  border-color: var(--slate-300);
}

.future {
  counter-reset: future-count;
}

.future__card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.future__icon-wrapper {
  display: none;
}

.future__arrow {
  color: var(--slate-400);
  transition: transform var(--transition-slow), color var(--transition-slow);
}

.future__card:hover .future__arrow {
  transform: translate(2px, -2px);
  color: var(--blue-500);
}

.future__card-title {
  margin-top: 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--slate-900);
}

.future__card-desc {
  margin-top: 0.75rem;
  line-height: 1.75;
  color: var(--slate-600);
  font-size: 0.95rem;
}

/* ==========================================================================
   COMMITMENTS
   ========================================================================== */
.commitments {
  padding: 5rem 0;
  background: var(--slate-50);
}

.commitments__grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .commitments__grid { grid-template-columns: repeat(3, 1fr); }
}

.commitments__card {
  position: relative;
  border-radius: 12px;
  border: 1px solid var(--slate-200);
  background: var(--white);
  padding: 1.5rem;
  transition: border-color 0.2s ease;
}

.commitments__card:hover {
  border-color: var(--slate-300);
}

.commitments__icon-wrapper {
  display: inline-flex;
  width: 2.25rem;
  height: 2.25rem;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

.commitments__icon-wrapper--rose { background: #fff1f2; color: #e11d48; }
.commitments__icon-wrapper--amber { background: #fef3c7; color: #d97706; }
.commitments__icon-wrapper--red { background: #fee2e2; color: #dc2626; }

.commitments__icon-wrapper .icon { width: 1.125rem; height: 1.125rem; }

.commitments__card-title {
  margin-top: 1rem;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--slate-900);
}

.commitments__card-desc {
  margin-top: 0.5rem;
  line-height: 1.65;
  color: var(--slate-500);
  font-size: 0.9375rem;
}

/* ==========================================================================
   TRAVEL
   ========================================================================== */
.travel {
  padding: 4.5rem 0;
  background: linear-gradient(180deg, var(--slate-900) 0%, #111827 50%, var(--slate-900) 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.travel__globe-icon {
  display: none;
}

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

@media (min-width: 640px) { .travel__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) { .travel__grid { grid-template-columns: repeat(3, 1fr); } }

.travel__country {
  border-radius: var(--radius-card);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 0;
  text-align: center;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease, border-color 0.4s ease;
  cursor: default;
  position: relative;
  overflow: hidden;
  min-height: 200px;
  display: flex;
  align-items: flex-end;
}

.travel__country-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.25) 50%, rgba(0, 0, 0, 0.1) 100%);
  transition: background 0.4s ease;
  z-index: 1;
}

.travel__country:hover .travel__country-overlay {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0.05) 100%);
}

.travel__country-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 1.5rem;
}

.travel__country:hover {
  transform: scale(1.03) translateY(-4px);
  border-color: rgba(96, 165, 250, 0.35);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(96, 165, 250, 0.15);
}

.travel__flag {
  font-size: 2.5rem;
  line-height: 1;
  display: block;
  margin-bottom: 0.25rem;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.travel__country-name {
  margin-top: 0.5rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.01em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

@media (min-width: 768px) {
  .travel__country { min-height: 240px; }
  .travel__flag { font-size: 3rem; }
}

/* ==========================================================================
   CONTACT
   ========================================================================== */
.contact {
  padding: 4.5rem 0;
  background: linear-gradient(180deg, var(--slate-800) 0%, var(--slate-900) 100%);
  color: var(--white);
  position: relative;
}

.contact::before {
  display: none;
}

.contact__card {
  padding: 0;
  color: var(--white);
}

@media (min-width: 768px) {
  .contact__card { padding: 3.5rem; }
}

.contact__title {
  margin-top: 1rem;
  font-size: 1.875rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--white);
}

@media (min-width: 1024px) {
  .contact__title { font-size: 2.25rem; }
}

.contact__subtitle {
  margin-top: 1.25rem;
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--slate-300);
  max-width: 38rem;
}

/* Contact info cards */
.contact__grid {
  margin-top: 2.5rem;
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) { .contact__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .contact__grid { grid-template-columns: repeat(4, 1fr); } }

.contact__info-card {
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  padding: 1.25rem;
  transition: border-color 0.2s ease;
}

.contact__info-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.contact__info-card--cv {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
}

.contact__info-icon {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--blue-400);
}

.contact__info-label {
  margin-top: 1rem;
  font-size: 0.8125rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--slate-400);
}

.contact__info-value {
  margin-top: 0.375rem;
  display: block;
  font-weight: 600;
  color: var(--white);
  word-break: break-all;
  position: relative;
}

a.contact__info-value {
  transition: color var(--transition-base);
}

a.contact__info-value::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--blue-400);
  transition: width 0.3s ease;
}

a.contact__info-value:hover {
  color: var(--blue-200);
  text-decoration: none;
}

a.contact__info-value:hover::after {
  width: 100%;
}

.contact__cv-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: var(--radius-full);
  background: var(--blue-500);
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--white);
  transition: background 0.2s ease;
}

.contact__cv-btn:hover {
  background: var(--blue-600);
}

/* CTA */
.contact__actions {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  background: var(--slate-950);
  padding: 2.5rem 0;
  color: var(--white);
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(90%, 1200px);
  height: 1px;
  background: var(--slate-800);
}

.footer__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--container-px);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .footer__container {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

@media (min-width: 1024px) {
  .footer__container {
    padding: 0 var(--container-px-lg);
  }
}

.footer__name {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.footer__desc {
  margin-top: 0.375rem;
  font-size: 0.875rem;
  color: var(--slate-500);
}

.footer__copyright {
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  color: var(--slate-600);
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.footer__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  color: var(--slate-400);
  transition: color 0.25s ease;
}

.footer__link:hover {
  color: var(--blue-400);
}

/* ==========================================================================
   PAGE WIKIPEDIA
   ========================================================================== */
.wiki-body {
  background: var(--wiki-bg);
  color: var(--wiki-text);
}

/* Wiki header */
.wiki-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--wiki-border);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(4px);
}

.wiki-header__container {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
}

@media (min-width: 1024px) {
  .wiki-header__container { padding: 0.75rem 2rem; }
}

.wiki-header__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.wiki-header__logo {
  display: flex;
  width: 2.5rem;
  height: 2.5rem;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--wiki-border-mid);
  background: var(--white);
  color: var(--wiki-link);
}

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

.wiki-header__subtitle {
  font-size: 0.75rem;
  color: var(--wiki-muted);
}

.wiki-header__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Le lang-switcher sur la page wiki reprend le style navbar mais avec des couleurs wiki */
.wiki-header .navbar__lang-switcher {
  border-color: var(--wiki-border-mid);
  background: var(--white);
}

.wiki-header .navbar__lang-switcher .icon {
  color: var(--wiki-muted);
}

.wiki-header .navbar__lang-btn {
  color: var(--wiki-muted);
}

.wiki-header .navbar__lang-btn:hover {
  color: var(--wiki-text);
}

.wiki-header .navbar__lang-btn.active {
  background: var(--wiki-link);
  color: var(--white);
}

.wiki-header__back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--wiki-border-mid);
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--wiki-text);
  transition: background var(--transition-base);
}

.wiki-header__back-btn:hover {
  background: var(--wiki-bg);
}

/* Wiki main */
.wiki-main {
  padding: 2rem 0;
}

.wiki-main__container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 1024px) {
  .wiki-main__container { padding: 0 2rem; }
}

/* Wiki article card */
.wiki-article {
  border-radius: 18px;
  border: 1px solid var(--wiki-border);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.wiki-article__header {
  border-bottom: 1px solid var(--wiki-border-light);
  padding: 2rem 1.5rem;
}

@media (min-width: 1024px) {
  .wiki-article__header { padding: 2rem 2.5rem; }
}

.wiki-article__title {
  font-size: 2.25rem;
  font-weight: 400;
  font-family: var(--font-serif);
  color: var(--wiki-text);
}

.wiki-article__subtitle {
  margin-top: 0.5rem;
  color: var(--wiki-muted);
}

.wiki-article__body {
  display: grid;
}

@media (min-width: 1024px) {
  .wiki-article__body { grid-template-columns: 1fr 320px; }
}

/* Wiki contenu */
.wiki-article__content {
  padding: 2rem 1.5rem;
}

@media (min-width: 1024px) {
  .wiki-article__content { padding: 2rem 2.5rem; }
}

.wiki-article__intro {
  line-height: 1.7;
  color: var(--wiki-text);
}

.wiki-article__intro strong {
  font-weight: 700;
}

/* Table des matieres */
.wiki-toc {
  margin-top: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--wiki-border);
  background: var(--wiki-bg);
  padding: 1.25rem;
}

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

.wiki-toc__list {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  list-style: decimal inside;
}

.wiki-toc__list li {
  list-style: decimal;
}

.wiki-toc__link {
  color: var(--wiki-link);
  transition: color var(--transition-base);
}

.wiki-toc__link:hover {
  text-decoration: underline;
}

/* Sections wiki */
.wiki-section {
  margin-top: 2.5rem;
  scroll-margin-top: 6rem;
}

.wiki-section__title {
  border-bottom: 1px solid var(--wiki-border-mid);
  padding-bottom: 0.5rem;
  font-size: 1.5rem;
  font-weight: 400;
  font-family: var(--font-serif);
  color: var(--wiki-text);
}

.wiki-section__content {
  margin-top: 1rem;
  line-height: 1.7;
  color: var(--wiki-text);
}

/* Wiki infobox sidebar */
.wiki-infobox {
  border-left: none;
  border-top: 1px solid var(--wiki-border-light);
  background: var(--wiki-bg);
  padding: 1.5rem;
}

@media (min-width: 1024px) {
  .wiki-infobox {
    border-left: 1px solid var(--wiki-border-light);
    border-top: none;
    padding: 2rem;
  }
}

.wiki-infobox__sticky {
  position: sticky;
  top: 6rem;
}

.wiki-infobox__card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--wiki-border-mid);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.wiki-infobox__photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top;
}

.wiki-infobox__name {
  border-bottom: 1px solid var(--wiki-border-light);
  padding: 0.75rem 1rem;
  text-align: center;
  font-weight: 600;
  color: var(--wiki-text);
}

.wiki-infobox__details {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 0.875rem;
}

.wiki-infobox__row {
  display: flex;
  align-items: start;
  gap: 0.75rem;
}

.wiki-infobox__icon {
  margin-top: 0.125rem;
  color: var(--wiki-muted);
  flex-shrink: 0;
}

.wiki-infobox__label {
  font-weight: 600;
  color: var(--wiki-text);
}

.wiki-infobox__value {
  color: var(--wiki-muted);
}

.wiki-infobox__link {
  color: var(--wiki-link);
}

.wiki-infobox__link:hover {
  text-decoration: underline;
}
