/* Portfolio · Christina Sarthal */

:root {
  --bg: #0a0a0a;
  --bg-card: #131313;
  --bg-elev: #1a1a1a;
  --ink: #f5f5f5;
  --ink-dim: #888;
  --ink-faint: #555;
  --pink: #FD2A8A;
  --pink-glow: rgba(253, 42, 138, 0.5);
  --pink-soft: rgba(253, 42, 138, 0.15);
  --line: rgba(255, 255, 255, 0.08);
}

/* FORCER LE THEME CLAIR PAR DEFAUT */
html,
html:not([data-theme]),
html[data-theme="light"] {
  --bg: #f6f4ef !important;
  --bg-card: #ffffff !important;
  --bg-elev: #ffffff !important;
  --ink: #0a0a0a !important;
  --ink-dim: #666 !important;
  --ink-faint: #aaa !important;
  --pink-glow: rgba(253, 42, 138, 0.4) !important;
  --pink-soft: rgba(253, 42, 138, 0.08) !important;
  --line: rgba(0, 0, 0, 0.08) !important;
}

html[data-theme="dark"] {
  --bg: #0a0a0a !important;
  --bg-card: #131313 !important;
  --bg-elev: #1a1a1a !important;
  --ink: #f5f5f5 !important;
  --ink-dim: #888 !important;
  --ink-faint: #555 !important;
  --pink-glow: rgba(253, 42, 138, 0.5) !important;
  --pink-soft: rgba(253, 42, 138, 0.15) !important;
  --line: rgba(255, 255, 255, 0.08) !important;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  overflow-x: hidden;
}

html,
body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
  transition: background 0.5s ease, color 0.5s ease;
}

body {
  overflow-x: hidden;
  position: relative;
}


/* ---------- NAVBAR ---------- */
.site-nav {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 500;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 10px 24px;
  background: rgba(10, 10, 10, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
  transition: top 0.3s, background 0.3s, border-color 0.3s;
  white-space: nowrap;
}

.nav-logo {
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: 16px;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo span {
  color: var(--pink);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-dim);
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 999px;
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover {
  color: var(--ink);
  background: var(--bg-elev);
}

.nav-links a.active {
  color: var(--pink);
  background: var(--pink-soft);
}

.nav-cv {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 12px;
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--pink);
  color: #fff;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 4px 16px var(--pink-glow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.nav-cv:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px var(--pink-glow);
}

/* Burger mobile */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
  flex-shrink: 0;
}

.nav-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: all 0.3s;
}

.nav-burger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-burger.open span:nth-child(2) {
  opacity: 0;
}

.nav-burger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Menu mobile déroulant */
.nav-mobile-menu {
  display: none;
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100vw - 40px);
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 16px;
  z-index: 499;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  flex-direction: column;
  gap: 4px;
  transition: background 0.3s, border-color 0.3s;
}

[data-theme="light"] .site-nav {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .nav-mobile-menu {
  background: rgba(255, 255, 255, 0.97);
  border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .nav-burger span {
  background: var(--ink);
}

.site-nav.hidden {
  top: -80px;
}


.nav-mobile-menu.open {
  display: flex;
}

.nav-mobile-menu a {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-dim);
  text-decoration: none;
  padding: 12px 16px;
  border-radius: 12px;
  transition: color 0.2s, background 0.2s;
}

.nav-mobile-menu a:hover {
  color: var(--ink);
  background: var(--bg-elev);
}

.nav-mobile-menu a.active {
  color: var(--pink);
  background: var(--pink-soft);
}

.nav-mobile-menu .nav-cv-mobile {
  margin-top: 8px;
  padding: 14px;
  border-radius: 999px;
  background: var(--pink);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 13px;
  text-align: center;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 16px var(--pink-glow);
}

@media (max-width: 680px) {

  .nav-links,
  .nav-cv {
    display: none;
  }

  .nav-burger {
    display: flex;
  }

  .site-nav {
    gap: 12px;
  }
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

/* ── SECTIONS ── */
.section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 120px 48px;
  position: relative;
}

@media (max-width: 768px) {
  .section {
    padding: 80px 20px;
  }
}

.eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: 16px;
  display: inline-block;
}

.h1,
.h2 {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 0.95;
}

.h2 {
  font-size: clamp(36px, 5vw, 72px);
  margin-bottom: 24px;
}

.h2 em {
  font-style: italic;
  color: var(--pink);
  font-weight: 300;
}

#about .h2 {
  margin-bottom: 32px;
}

.lead {
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.6;
  color: var(--ink-dim);
  max-width: 640px;
}

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 80px 24px 40px;
}

.hero-title {
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: clamp(42px, 12vw, 280px);
  letter-spacing: -0.05em;
  line-height: 0.88;
  text-transform: uppercase;
  position: relative;
  z-index: 3;
  margin: 0;
  width: 100%;
  text-align: center;
  overflow-wrap: normal;
  word-break: normal;
  padding: 0 8px;
}

.hero-title .dot {
  color: transparent;
  position: relative;
  display: inline-block;
}

.hero-title .dot::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0.08em;
  transform: translateX(-50%);
  width: 0.18em;
  height: 0.18em;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 0.12em 0.04em var(--pink-glow);
}

.hero-title .italic {
  font-style: italic;
  font-weight: 300;
  color: var(--pink);
  display: block;
  font-size: clamp(13px, 3.5vw, 120px);
  letter-spacing: 0.01em;
  margin-top: 0.15em;
  text-transform: none;
  line-height: 1.2;
}

.hero-halo {
  position: absolute;
  bottom: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 140vw;
  max-width: 1800px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 30%, var(--pink) 0%, rgba(253, 42, 138, 0.4) 12%, rgba(253, 42, 138, 0.1) 30%, transparent 55%);
  filter: blur(20px);
  z-index: 1;
  pointer-events: none;
  animation: halo-breathe 8s ease-in-out infinite;
}

@keyframes halo-breathe {

  0%,
  100% {
    opacity: 0.85;
    transform: translateX(-50%) scale(1);
  }

  50% {
    opacity: 1;
    transform: translateX(-50%) scale(1.04);
  }
}

.hero-arc {
  position: absolute;
  bottom: 8%;
  left: 50%;
  transform: translateX(-50%);
  width: 130vw;
  max-width: 1700px;
  aspect-ratio: 1;
  border-radius: 50%;
  border-top: 1.5px solid rgba(253, 42, 138, 0.7);
  z-index: 2;
  pointer-events: none;
  box-shadow: 0 -2px 60px rgba(253, 42, 138, 0.4);
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--ink-dim);
  z-index: 3;
  animation: bob 2.5s ease-in-out infinite;
  white-space: nowrap;
}

@keyframes bob {

  0%,
  100% {
    transform: translate(-50%, 0);
    opacity: 0.6;
  }

  50% {
    transform: translate(-50%, 8px);
    opacity: 1;
  }
}

/* ── ABOUT ── */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: center;
  margin-top: -15px;
}

@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    margin-top: 32px;
  }

  #about .h2 {
    margin-bottom: 8px;
  }
}

.about-text {
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.65;
  color: var(--ink);
  text-align: justify;
}

.about-text p {
  margin-bottom: 18px;
}

/* ── CARTE 3D PHOTO ── */
.about-photo-scene {
  width: min(340px, 100%);
  max-width: 340px;
  min-height: 425px;
  margin: 0 auto;
  perspective: 1100px;
  display: block;
  position: relative;
  z-index: 5;
}

.about-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  min-height: 425px;
  position: relative;
  display: block;
  border-radius: 16px;
  overflow: hidden;
  background: radial-gradient(circle at 70% 100%, var(--pink-glow), transparent 60%), linear-gradient(135deg, #1f1f1f, #0e0e0e);
  border: 1px solid var(--line);
  box-shadow: 0 24px 50px -20px rgba(0, 0, 0, 0.55), 0 0 0 1px var(--line);
  transform-style: preserve-3d;
  will-change: transform;
  cursor: pointer;
  animation: about-float 7s ease-in-out infinite;
  z-index: 5;
}

.about-photo-img {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 110%;
  height: 110%;
  transform: translate(-50%, -50%);
  object-fit: contain;
  object-position: center;
  display: block;
  border-radius: 12px;
  z-index: 3;
}

.about-photo-shadow {
  position: absolute;
  inset: 8% 12% -14% 12%;
  background: radial-gradient(ellipse at 50% 100%, rgba(253, 42, 138, 0.45), transparent 70%);
  filter: blur(26px);
  z-index: 0;
}

.about-photo-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(253, 42, 138, 0.16) 1px, transparent 1px), linear-gradient(90deg, rgba(253, 42, 138, 0.16) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(circle at 50% 45%, #000 35%, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at 50% 45%, #000 35%, transparent 80%);
  z-index: 1;
}

.about-photo-glow {
  position: absolute;
  left: 50%;
  top: 42%;
  width: 60%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, var(--pink), transparent 65%);
  opacity: 0.4;
  filter: blur(14px);
  transform: translate(-50%, -50%);
  z-index: 2;
}

.about-photo-tag {
  position: absolute;
  bottom: 14px;
  left: 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: #fff;
  text-transform: uppercase;
  z-index: 4;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.about-photo-glare {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 0%), rgba(255, 255, 255, 0.28), transparent 45%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 5;
}

.about-photo.is-tilting {
  animation: none;
  box-shadow: 0 40px 80px -24px rgba(0, 0, 0, 0.6), 0 0 50px var(--pink-soft), 0 0 0 1px rgba(253, 42, 138, 0.35);
}

.about-photo.is-tilting .about-photo-glare {
  opacity: 1;
}

@keyframes about-float {

  0%,
  100% {
    transform: perspective(1100px) rotateX(4deg) rotateY(-7deg) translateY(0);
  }

  50% {
    transform: perspective(1100px) rotateX(-3deg) rotateY(7deg) translateY(-10px);
  }
}

@media (max-width: 900px) {
  .about-photo {
    animation-duration: 8s;
  }
}

/* ── MARQUEE ── */
.orbit-section {
  text-align: center;
  overflow: visible;
  position: relative;
  z-index: 2;
  padding-bottom: 40px;
}

#orbit-container {
  width: 100%;
  margin: -100px 0 0;
}

.marquee-row {
  overflow: visible;
}

.marquee-wrap {
  overflow: visible;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px 0;
  mask-image: linear-gradient(to right, transparent 0%, #000 4%, #000 96%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 5%, #000 95%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 4%, #000 96%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 5%, #000 95%, transparent 100%);
  mask-composite: intersect;
  -webkit-mask-composite: source-in;
}

.marquee-track {
  display: flex;
  width: max-content;
  gap: 14px;
  animation: marquee-left var(--dur, 28s) linear infinite;
}

.marquee-track.reverse {
  animation-name: marquee-right;
}

.marquee-track:hover {
  animation-play-state: paused;
}

@keyframes marquee-left {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(-100% / 3));
  }
}

@keyframes marquee-right {
  from {
    transform: translateX(calc(-100% / 3));
  }

  to {
    transform: translateX(0);
  }
}

.marquee-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.marquee-icon {
  position: relative;
  width: 62px;
  height: 62px;
  border-radius: 16px;
  background: var(--bg-card);
  border: 1px solid transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
  transition: transform 0.25s, box-shadow 0.25s;
}

.marquee-icon:hover {
  transform: translateY(-4px) scale(1.06);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5), 0 0 16px var(--accent, var(--pink)), 0 0 32px var(--accent, var(--pink));
}

.marquee-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 80%, var(--accent, var(--pink)), transparent 65%);
  opacity: 0.15;
}

.marquee-logo {
  position: relative;
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.marquee-mono {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 14px;
  color: #fff;
  letter-spacing: -0.02em;
}

.marquee-name {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
  white-space: nowrap;
  text-transform: uppercase;
}

@media (max-width: 600px) {
  .marquee-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
  }

  .marquee-logo {
    width: 28px;
    height: 28px;
  }

  .marquee-mono {
    font-size: 11px;
  }
}


/* ── PROJECTS ── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 60px;
}

@media (max-width: 1024px) {
  .projects-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 680px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
}

#projects {
  position: relative;
  z-index: 1;
}

.project-card {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 24px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--line);
  transition: transform 0.4s cubic-bezier(.2, .7, .2, 1), box-shadow 0.4s;
}

.project-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 30px 60px -10px rgba(0, 0, 0, 0.6), 0 0 40px var(--pink-soft);
}

.project-img {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, #1a0812 0%, #0d0d0d 50%, #0a0d1a 100%);
  transition: transform 0.6s cubic-bezier(.2, .7, .2, 1);
}

.project-card:hover .project-img {
  transform: scale(1.04);
}

.project-halo {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 60%, rgba(253, 42, 138, 0.55) 0%, transparent 55%),
    radial-gradient(circle at 80% 15%, rgba(100, 10, 50, 0.3) 0%, transparent 45%);
  animation: card-halo 5s ease-in-out infinite alternate;
}

.project-card:nth-child(2) .project-halo {
  animation-delay: -2s;
}

.project-card:nth-child(3) .project-halo {
  animation-delay: -4s;
}

@keyframes card-halo {
  from {
    background:
      radial-gradient(circle at 25% 65%, rgba(253, 42, 138, 0.55) 0%, transparent 55%),
      radial-gradient(circle at 80% 15%, rgba(100, 10, 50, 0.3) 0%, transparent 45%);
  }

  to {
    background:
      radial-gradient(circle at 70% 35%, rgba(253, 42, 138, 0.55) 0%, transparent 55%),
      radial-gradient(circle at 20% 80%, rgba(100, 10, 50, 0.3) 0%, transparent 45%);
  }
}

.project-glass {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 20px 20px;
  background: linear-gradient(to bottom,
      rgba(0, 0, 0, 0) 0%,
      rgba(0, 0, 0, 0.4) 20%,
      rgba(0, 0, 0, 0.75) 100%);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  border-top: none;
  z-index: 2;
}

.project-card:hover .project-glass {
  background: linear-gradient(to bottom,
      rgba(0, 0, 0, 0) 0%,
      rgba(0, 0, 0, 0.5) 20%,
      rgba(0, 0, 0, 0.85) 100%);
}

s .project-num {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.25em;
  color: var(--pink);
  margin-bottom: 6px;
}

.project-title {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: clamp(16px, 2vw, 22px);
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: #fff;
  margin-bottom: 10px;
}

.project-link {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--pink);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.3s, transform 0.3s;
  display: block;
}

.project-card:hover .project-link {
  opacity: 1;
  transform: translateX(0);
}

.btn-all-projects {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 14px;
  padding: 14px 28px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.btn-all-projects:hover {
  border-color: var(--pink);
  color: var(--pink);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--pink-soft);
}

/* ── CERTIFICATIONS · TIMELINE ── */
.timeline-certif {
  margin-top: 60px;
  position: relative;
  padding-left: 30px;
}

/* ligne verticale */
.timeline-certif::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: var(--pink);
  opacity: 0.5;
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
  padding-left: 32px;
}

/* point sur la timeline */
.timeline-dot {
  position: absolute;
  left: -18px;
  top: 4px;
  width: 12px;
  height: 12px;
  background: var(--pink);
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--pink-soft);
  transition: transform 0.2s, box-shadow 0.2s;
}

.timeline-item:hover .timeline-dot {
  transform: scale(1.3);
  box-shadow: 0 0 0 6px var(--pink-soft);
}

.timeline-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px 24px;
  transition: transform 0.2s ease, border-color 0.2s;
}

.timeline-card:hover {
  border-color: var(--pink);
  transform: translateX(4px);
}

.timeline-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 10px;
}

.timeline-year {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 600;
  color: var(--pink);
  background: var(--pink-soft);
  padding: 2px 10px;
  border-radius: 99px;
  letter-spacing: 0.05em;
}

.timeline-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-faint);
  background: var(--bg-elev);
  padding: 2px 8px;
  border-radius: 99px;
}

.timeline-title {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
  color: var(--ink);
}

.timeline-org {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--ink-dim);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.timeline-desc {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-dim);
  margin-bottom: 12px;
}

.timeline-link {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--pink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s;
}

.timeline-link:hover {
  gap: 10px;
}

/* dernier élément sans marge */
.timeline-item:last-child {
  margin-bottom: 0;
}

/* responsive */
@media (max-width: 640px) {
  .timeline-certif {
    padding-left: 20px;
  }

  .timeline-certif::before {
    left: 6px;
  }

  .timeline-item {
    padding-left: 24px;
  }

  .timeline-dot {
    left: -12px;
    width: 10px;
    height: 10px;
  }

  .timeline-card {
    padding: 14px 18px;
  }

  .timeline-title {
    font-size: 16px;
  }
}



/* ── CONTACT ── */
.contact {
  padding: 140px 24px 160px;
  position: relative;
  background: radial-gradient(ellipse at center 80%, rgba(253, 42, 138, 0.18), transparent 60%);
  overflow: hidden;
}

.contact-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.contact h2 {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: clamp(40px, 6vw, 80px);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 16px;
}

.contact h2 em {
  font-style: italic;
  color: var(--pink);
  font-weight: 300;
}

.contact-lead {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-dim);
  max-width: 480px;
  margin: 0 auto 48px;
}

/* Formulaire */
.contact-form-wrap {
  width: min(560px, 92vw);
  margin: 0 auto;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 500px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.form-group label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-dim);
  text-align: left;
}

.form-group input,
.form-group textarea {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 18px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
  resize: none;
  width: 100%;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 3px var(--pink-soft);
  background: var(--bg-elev);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--ink-faint);
}


.form-privacy-note {
  margin: 4px 0 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--pink-soft);
  color: var(--ink-dim);
  font-size: 13px;
  line-height: 1.5;
  text-align: left;
}

.form-privacy-note a {
  color: var(--pink);
  font-weight: 700;
  text-decoration: none;
}

.form-privacy-note a:hover,
.form-privacy-note a:focus-visible {
  text-decoration: underline;
}

/* Bouton envoi */
.btn-form {
  width: 100%;
  margin-top: 8px;
  padding: 16px 28px;
  border-radius: 999px;
  border: none;
  background: var(--pink);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 8px 32px var(--pink-glow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-form:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px var(--pink-glow);
}

.btn-form svg {
  flex-shrink: 0;
}

/* Status message */
#form-status {
  margin-top: 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--pink);
  text-align: center;
  min-height: 20px;
}

/* Boutons du bas */
.contact-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-top: 40px;
  flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  padding: 14px 26px;
  border-radius: 999px;
  font-size: 14px;
  letter-spacing: -0.01em;
  transition: transform 0.2s, box-shadow 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary {
  background: var(--pink);
  color: white;
  box-shadow: 0 8px 32px var(--pink-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px var(--pink-glow);
}

.btn-secondary {
  border: 1px solid var(--line);
  color: var(--ink);
}

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

/* ── FOOTER ── */
.footer {
  padding: 60px 32px 40px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--ink-dim);
  letter-spacing: 0.1em;
}

@media (max-width: 600px) {
  .footer {
    flex-direction: column;
    align-items: flex-start;
    padding: 40px 20px 32px;
    gap: 16px;
  }
}

.footer-cs {
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--ink);
  cursor: pointer;
  user-select: none;
}

.footer-cs em {
  font-style: italic;
  color: var(--pink);
  font-weight: 300;
}

.footer-links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

.footer-links a {
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--pink);
}

/* ── CV FIXE ── */
.cv-fixed-btn {
  position: fixed;
  bottom: 96px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--pink), rgba(253, 42, 138, 0.5));
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: 14px;
  letter-spacing: 0.04em;
  border: none;
  cursor: pointer;
  z-index: 100;
  box-shadow: 0 0 30px var(--pink-glow), 0 0 60px rgba(253, 42, 138, 0.3);
  animation: cv-pulse 2.6s ease-in-out infinite;
  transition: transform 0.3s cubic-bezier(.2, .7, .2, 1);
}

.cv-fixed-btn:hover {
  transform: scale(1.12);
  animation-play-state: paused;
}

@keyframes cv-pulse {

  0%,
  100% {
    box-shadow: 0 0 30px var(--pink-glow), 0 0 60px rgba(253, 42, 138, 0.3), 0 0 0 0 rgba(253, 42, 138, 0.5);
  }

  50% {
    box-shadow: 0 0 40px var(--pink-glow), 0 0 80px rgba(253, 42, 138, 0.4), 0 0 0 10px rgba(253, 42, 138, 0);
  }
}

/* ── GEAR ── */
.gear-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s cubic-bezier(.2, .7, .2, 1), box-shadow 0.3s, border-color 0.3s;
  max-width: none;
}

.gear-btn:hover {
  border-color: var(--pink);
  box-shadow: 0 8px 32px var(--pink-glow);
}

.gear-btn svg {
  width: 26px;
  height: 26px;
  color: var(--ink);
  transition: transform 0.6s cubic-bezier(.2, .7, .2, 1), color 0.3s;
  max-width: none;
}

.gear-btn:hover svg {
  color: var(--pink);
}

.gear-btn.open svg {
  transform: rotate(120deg);
  color: var(--pink);
}

/* ── SETTINGS ── */
.settings-panel {
  position: fixed;
  bottom: 96px;
  right: 24px;
  width: 280px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  z-index: 99;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s cubic-bezier(.2, .7, .2, 1);
  max-width: calc(100vw - 48px);
}

.settings-panel.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.settings-row {
  margin-bottom: 18px;
}

.settings-row:last-child {
  margin-bottom: 0;
}

.settings-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.segmented {
  display: flex;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 3px;
  gap: 2px;
}

.segmented button {
  flex: 1;
  padding: 8px 6px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 8px;
  color: var(--ink-dim);
  transition: all 0.2s;
}

.segmented button.active {
  background: var(--pink);
  color: white;
}

.segmented button:not(.active):hover {
  color: var(--ink);
}

.audio-btn {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
  transition: all 0.2s;
}

.audio-btn:hover {
  border-color: var(--pink);
  color: var(--pink);
}

.audio-btn.playing {
  background: var(--pink);
  color: white;
  border-color: var(--pink);
}

/* ── CV MODAL ── */
.cv-modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.cv-modal-backdrop.open {
  display: flex;
}

.cv-modal {
  width: 100%;
  max-width: 820px;
  max-height: 92vh;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6), 0 0 80px rgba(253, 42, 138, 0.2);
  animation: modal-in 0.3s cubic-bezier(.2, .7, .2, 1);
}

@keyframes modal-in {
  from {
    transform: translateY(20px) scale(0.96);
    opacity: 0;
  }

  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.cv-modal-head {
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.cv-modal-title h3 {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.cv-modal-title h3 em {
  font-style: italic;
  color: var(--pink);
  font-weight: 300;
}

.cv-modal-title p {
  font-size: 12px;
  color: var(--ink-dim);
  margin-top: 2px;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.1em;
}

.cv-modal-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.btn-cv {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  border: 1px solid var(--line);
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, transform 0.2s;
}

.btn-cv:hover {
  border-color: var(--pink);
  color: var(--pink);
  transform: translateY(-2px);
}

.btn-cv.primary {
  background: var(--pink);
  color: white;
  border-color: var(--pink);
  box-shadow: 0 6px 20px var(--pink-glow);
}

.btn-cv.primary:hover {
  color: white;
}

.cv-modal-close {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}

.cv-modal-close:hover {
  border-color: var(--pink);
  color: var(--pink);
  transform: rotate(90deg);
}

.cv-modal-body {
  flex: 1;
  overflow: auto;
  background: #f0eee9;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cv-zoom-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(0, 0, 0, 0.06);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  width: 100%;
  justify-content: center;
  flex-shrink: 0;
}

.cv-zoom-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  background: white;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s;
}

.cv-zoom-btn:hover {
  background: var(--pink);
  color: white;
  border-color: var(--pink);
}

.cv-zoom-level {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  min-width: 40px;
  text-align: center;
  color: #444;
}

.cv-img-wrap {
  padding: 24px;
  display: flex;
  justify-content: center;
  transition: transform 0.2s;
}

.cv-preview-img {
  width: 100%;
  max-width: 680px;
  border-radius: 8px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
  transform-origin: top center;
  transition: transform 0.2s;
}

@media (max-width: 720px) {
  .cv-modal-head {
    padding: 14px 16px;
  }

  .btn-cv {
    padding: 8px 12px;
    font-size: 12px;
  }
}

/* ── REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(.2, .7, .2, 1), transform 0.8s cubic-bezier(.2, .7, .2, 1);
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ── EASTER EGG ── */
@keyframes confetti-fall {
  to {
    transform: translateY(100vh) rotate(720deg);
    opacity: 0;
  }
}

.egg-particle {
  position: fixed;
  top: -20px;
  width: 10px;
  height: 10px;
  background: var(--pink);
  z-index: 300;
  pointer-events: none;
  animation: confetti-fall 2s ease-in forwards;
  max-width: none;
}

.egg-message {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Caveat', cursive;
  font-size: 64px;
  color: var(--pink);
  z-index: 301;
  pointer-events: none;
  text-shadow: 0 0 40px var(--pink-glow);
  animation: egg-pop 2s ease-out forwards;
  white-space: nowrap;
}

@keyframes egg-pop {
  0% {
    transform: translate(-50%, -50%) scale(0.5);
    opacity: 0;
  }

  20% {
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 1;
  }

  80% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }

  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0;
  }
}

/* ══════════════════════════════════════════════════════════════
   AMBIANCE GLOBALE — étoiles roses + blobs organiques (thème clair)
   ══════════════════════════════════════════════════════════════ */

/* Couche fixe derrière tout le contenu */
.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

/* Dégradés de fond rose */
.ambient-grad {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  animation: ambient-drift 20s ease-in-out infinite;
}

.ambient-grad.g1 {
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, var(--pink-soft), transparent 70%);
  top: -20%;
  left: -10%;
  animation-duration: 22s;
}

.ambient-grad.g2 {
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, var(--pink-soft), transparent 70%);
  top: 40%;
  right: -15%;
  animation-duration: 18s;
  animation-delay: -6s;
}

.ambient-grad.g3 {
  width: 40vw;
  height: 40vw;
  background: radial-gradient(circle, var(--pink-soft), transparent 70%);
  bottom: -10%;
  left: 30%;
  animation-duration: 25s;
  animation-delay: -12s;
}

@keyframes ambient-drift {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  33% {
    transform: translate(3%, 4%) scale(1.05);
  }

  66% {
    transform: translate(-2%, -3%) scale(0.97);
  }
}

/* Petites étoiles roses discrètes */
.ambient-star {
  position: absolute;
  width: var(--s, 2px);
  height: var(--s, 2px);
  border-radius: 50%;
  background: var(--pink);
  opacity: var(--o, 0.5);
  box-shadow: 0 0 var(--g, 4px) rgba(253, 42, 138, 0.7);
  animation: ambient-twinkle var(--tw, 4s) ease-in-out infinite;
  animation-delay: var(--d, 0s);
}

@keyframes ambient-twinkle {

  0%,
  100% {
    opacity: calc(var(--o, 0.5) * 0.25);
    transform: scale(0.7);
  }

  50% {
    opacity: var(--o, 0.5);
    transform: scale(1);
  }
}

/* Poussière d'étoiles dans le héro */
.hero-dust {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.hero-dot {
  position: absolute;
  border-radius: 50%;
  background: #fff;
  opacity: var(--o, 0.4);
  animation: ambient-twinkle var(--tw, 4s) ease-in-out infinite;
  animation-delay: var(--d, 0s);
}

/* En thème clair, on garde la teinte rose un peu plus présente */
[data-theme="light"] .ambient-grad {
  opacity: 0.7;
}

/* ── FORMES ORGANIQUES 3D · thème clair uniquement ── */
.ambient-organic {
  display: none;
}

[data-theme="light"] .ambient-organic {
  display: block;
  position: absolute;
  z-index: -1;
  aspect-ratio: 1;
  border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%;
  transform-style: preserve-3d;
  will-change: transform, border-radius;
  pointer-events: none;
}

[data-theme="light"] .ambient-organic.o1 {
  width: 17vw;
  max-width: 230px;
  background: radial-gradient(circle at 34% 30%, rgba(253, 42, 138, 0.30), rgba(253, 42, 138, 0.09) 68%, rgba(253, 42, 138, 0.04) 100%);
  filter: drop-shadow(0 18px 26px rgba(253, 42, 138, 0.20));
  animation: organic-morph 16s ease-in-out infinite, organic-3d-a 26s ease-in-out infinite;
}

[data-theme="light"] .ambient-organic.o2 {
  width: 15vw;
  max-width: 200px;
  background: radial-gradient(circle at 35% 30%, rgba(20, 20, 20, 0.13), rgba(20, 20, 20, 0.05) 66%, rgba(20, 20, 20, 0.02) 100%);
  mix-blend-mode: multiply;
  filter: drop-shadow(0 18px 26px rgba(0, 0, 0, 0.12));
  animation: organic-morph 24s ease-in-out infinite reverse, organic-3d-b 40s ease-in-out infinite;
  animation-delay: -6s, -10s;
}

[data-theme="light"] .ambient-organic.o3 {
  width: 13vw;
  max-width: 180px;
  background: radial-gradient(circle at 38% 32%, rgba(253, 42, 138, 0.28), rgba(253, 42, 138, 0.08) 68%, rgba(253, 42, 138, 0.03) 100%);
  filter: drop-shadow(0 16px 24px rgba(253, 42, 138, 0.18));
  animation: organic-morph 22s ease-in-out infinite, organic-3d-b 34s ease-in-out infinite reverse;
  animation-delay: -9s, -12s;
}

[data-theme="light"] .ambient-organic.o4 {
  width: 8vw;
  max-width: 110px;
  background: radial-gradient(circle at 35% 30%, rgba(20, 20, 20, 0.12), rgba(20, 20, 20, 0.04) 66%, rgba(20, 20, 20, 0.02) 100%);
  mix-blend-mode: multiply;
  filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.10));
  animation: organic-morph 20s ease-in-out infinite, organic-3d-a 32s ease-in-out infinite;
  animation-delay: -13s, -3s;
}

[data-theme="light"] .ambient-organic.o5 {
  width: 9vw;
  max-width: 120px;
  background: radial-gradient(circle at 36% 30%, rgba(253, 42, 138, 0.34), rgba(253, 42, 138, 0.10) 68%, rgba(253, 42, 138, 0.04) 100%);
  filter: drop-shadow(0 12px 20px rgba(253, 42, 138, 0.22));
  animation: organic-morph 19s ease-in-out infinite reverse, organic-3d-a 30s ease-in-out infinite;
  animation-delay: -4s, -7s;
}

@keyframes organic-morph {

  0%,
  100% {
    border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%;
  }

  25% {
    border-radius: 67% 33% 38% 62% / 58% 63% 37% 42%;
  }

  50% {
    border-radius: 38% 62% 54% 46% / 65% 38% 62% 35%;
  }

  75% {
    border-radius: 55% 45% 32% 68% / 38% 57% 43% 62%;
  }
}

@keyframes organic-3d-a {

  0%,
  100% {
    transform: perspective(900px) rotateX(0deg) rotateY(0deg) translateZ(0) rotate(0deg) scale(1);
  }

  25% {
    transform: perspective(900px) rotateX(22deg) rotateY(-18deg) translateZ(55px) translate(5%, -5%) rotate(10deg) scale(1.1);
  }

  50% {
    transform: perspective(900px) rotateX(-14deg) rotateY(16deg) translateZ(-40px) translate(8%, 4%) rotate(-8deg) scale(0.94);
  }

  75% {
    transform: perspective(900px) rotateX(16deg) rotateY(24deg) translateZ(30px) translate(-4%, 6%) rotate(14deg) scale(1.06);
  }
}

@keyframes organic-3d-b {

  0%,
  100% {
    transform: perspective(900px) rotateX(0deg) rotateY(0deg) translateZ(0) rotate(0deg) scale(1);
  }

  25% {
    transform: perspective(900px) rotateX(-20deg) rotateY(20deg) translateZ(45px) translate(-6%, 5%) rotate(-12deg) scale(1.08);
  }

  50% {
    transform: perspective(900px) rotateX(18deg) rotateY(-16deg) translateZ(-35px) translate(-8%, -4%) rotate(10deg) scale(0.93);
  }

  75% {
    transform: perspective(900px) rotateX(-12deg) rotateY(-22deg) translateZ(28px) translate(5%, -6%) rotate(-14deg) scale(1.05);
  }
}

@media (prefers-reduced-motion: reduce) {

  .ambient-grad,
  .ambient-star,
  .about-photo,
  .hero-dot {
    animation: none;
  }

  [data-theme="light"] .ambient-organic {
    animation: none;
  }
}

/* ══════════════════════════════════════════════════════════════
   MODALE CERTIFICAT
   ══════════════════════════════════════════════════════════════ */

.certif-modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.certif-modal-backdrop.open {
  display: flex;
}

.certif-modal {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 24px;
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: certif-modal-in 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--line);
}

@keyframes certif-modal-in {
  from {
    opacity: 0;
    transform: scale(0.94) translateY(16px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.certif-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}

.certif-modal-title h3 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 4px;
}

.certif-modal-title p {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--pink);
  letter-spacing: 0.1em;
  margin: 0;
}

.certif-modal-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.certif-modal-body {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 24px;
  background: var(--bg-elev);
}

#certif-modal-img {
  max-width: 100%;
  max-height: 75vh;
  width: auto;
  height: auto;
  border-radius: 12px;
  display: block;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--line);
}

@media (max-width: 600px) {
  .certif-modal-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .certif-modal-actions {
    width: 100%;
    justify-content: space-between;
  }

  #certif-modal-img {
    max-height: 60vh;
  }
}

/* ── ICÔNES SOCIALES · section about ── */
.about-socials {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.about-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  color: var(--ink-dim);
  transition: all 0.25s ease;
  text-decoration: none;
}

.about-social-link svg {
  width: 18px;
  height: 18px;
}

.about-social-link:hover {
  background: var(--pink);
  border-color: var(--pink);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px var(--pink-glow);
}

/* ── BOUTON CONTACT · section about ── */
.btn-contact-about {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  margin-bottom: 24px;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: 999px;
  background: var(--pink);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 8px 32px var(--pink-glow);
  transition: transform 0.2s, box-shadow 0.2s, gap 0.2s;
}

.btn-contact-about:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px var(--pink-glow);
  gap: 14px;
  color: #fff;
}
