/* ============================================
   VARIABLES & RESET
   ============================================ */
:root {
  --accent1: #ed6a5a;
  --accent2: #f4f1bb;
  --accent3: #9bc1bc;
  --accent4: #5d576b;
  --fg-loading: #141414;
  --text-color: #ffffff;
  --bg-color: #0a0a0a;
  --blur-amount: 0px;
}

html.no-scroll,
body.no-scroll {
  overflow: hidden !important;
  height: 100vh !important;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  cursor: none;
}

html {
  width: 100%;
  overflow-x: hidden;
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: "Poppins", sans-serif;
}

body {
  width: 100%;
  /* pas de overflow-x ici */
}

/* ============================================
   BUBBLE MENU
   ============================================ */
.bubble-menu {
  position: fixed; /* Toujours visible au scroll */
  left: 0;
  right: 0;
  top: 2em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 2em;
  pointer-events: none;
  z-index: 99;
}

/* Conserver les classes pour la compatibilité JS */
.bubble-menu.fixed {
  position: fixed;
}
.bubble-menu.absolute {
  position: fixed;
}

.bubble-menu .bubble {
  --bubble-size: 48px;
  width: var(--bubble-size);
  height: var(--bubble-size);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
}

.bubble-menu .logo-bubble,
.bubble-menu .toggle-bubble {
  will-change: transform;
}

.bubble-menu .logo-bubble {
  width: auto;
  min-height: var(--bubble-size);
  height: var(--bubble-size);
  padding: 0 16px;
  border-radius: calc(var(--bubble-size) / 2);
  gap: 8px;
}

.bubble-menu .toggle-bubble {
  width: var(--bubble-size);
  height: var(--bubble-size);
}

.bubble-menu .logo-content {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 100%;
  font-weight: 700;
  font-size: 1rem;
  color: #111;
}

.bubble-menu .menu-btn {
  border: none;
  background: #fff;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.bubble-menu .menu-line {
  width: 26px;
  height: 2px;
  background: #111;
  border-radius: 2px;
  display: block;
  margin: 0 auto;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
  transform-origin: center;
}

.bubble-menu .menu-line + .menu-line {
  margin-top: 6px;
}

.bubble-menu .menu-btn.open .menu-line:first-child {
  transform: translateY(4px) rotate(45deg);
}
.bubble-menu .menu-btn.open .menu-line:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

@media (min-width: 768px) {
  .bubble-menu .bubble {
    --bubble-size: 56px;
  }
  .bubble-menu .logo-bubble {
    padding: 0 16px;
  }
}

/* ============================================
   BUBBLE MENU ITEMS & OVERLAY
   ============================================ */
.bubble-menu-items {
  position: fixed; /* Couvre toujours le viewport, même après scroll */
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 98;
}

/* Conserver les classes pour la compatibilité JS */
.bubble-menu-items.fixed {
  position: fixed;
}
.bubble-menu-items.absolute {
  position: fixed;
}

.bubble-menu-items .pill-list {
  list-style: none;
  margin: 0;
  padding: 0 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  row-gap: 4px;
  width: 100%;
  max-width: 1600px;
  margin-left: auto;
  margin-right: auto;
  pointer-events: auto;
  justify-content: stretch;
}

.bubble-menu-items .pill-col {
  display: flex;
  justify-content: center;
  align-items: stretch;
  flex: 0 0 calc(100% / 3);
  box-sizing: border-box;
}

.bubble-menu-items .pill-col:nth-child(4):nth-last-child(2) {
  margin-left: calc(100% / 6);
}
.bubble-menu-items .pill-col:nth-child(4):last-child {
  margin-left: calc(100% / 3);
}

.bubble-menu-items .pill-link {
  --pill-bg: #0a0a0a;
  --pill-color: #ffffff;
  --item-rot: 0deg;
  --pill-min-h: 160px;
  --hover-bg: #1a1a1a;
  --hover-color: #ffffff;
  width: 100%;
  min-height: var(--pill-min-h);
  padding: clamp(1.5rem, 3vw, 8rem) 0;
  font-size: clamp(1.5rem, 4vw, 4rem);
  font-weight: 400;
  line-height: 0;
  border-radius: 999px;
  background: var(--pill-bg);
  color: var(--pill-color);
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition:
    background 0.3s ease,
    color 0.3s ease;
  will-change: transform;
  box-sizing: border-box;
  white-space: nowrap;
  overflow: hidden;
  height: 10px;
}

@media (min-width: 900px) {
  .bubble-menu-items .pill-link {
    transform: rotate(var(--item-rot));
  }
  .bubble-menu-items .pill-link:hover {
    transform: rotate(var(--item-rot)) scale(1.06);
    background: var(--hover-bg);
    color: var(--hover-color);
  }
  .bubble-menu-items .pill-link:active {
    transform: rotate(var(--item-rot)) scale(0.94);
  }
}

.bubble-menu-items .pill-link .pill-label {
  display: inline-block;
  will-change: transform, opacity;
  height: 1.2em;
  line-height: 1.2;
}

@media (max-width: 899px) {
  .bubble-menu-items {
    align-items: flex-start;
    padding-top: 120px;
  }
  .bubble-menu-items .pill-list {
    row-gap: 16px;
  }
  .bubble-menu-items .pill-col {
    flex: 0 0 100%;
    margin-left: 0 !important;
    overflow: visible;
  }
  .bubble-menu-items .pill-link {
    font-size: clamp(1.2rem, 3vw, 4rem);
    padding: clamp(1rem, 2vw, 2rem) 0;
    min-height: 80px;
  }
  .bubble-menu-items .pill-link:hover {
    transform: scale(1.06);
    background: var(--hover-bg);
    color: var(--hover-color);
  }
  .bubble-menu-items .pill-link:active {
    transform: scale(0.94);
  }
}

/* ============================================
   CUSTOM CURSOR
   ============================================ */
.cursor {
  position: fixed;
  width: 10px;
  height: 10px;
  background: #fff;
  border-radius: 50%;
  z-index: 9999;
  pointer-events: none;
  transform: translate(-50%, -50%);
  will-change: transform;
  mix-blend-mode: difference;
}

.cursor-follower {
  position: fixed;
  width: 40px;
  height: 40px;
  border: 1px solid #fff;
  border-radius: 50%;
  z-index: 9998;
  pointer-events: none;
  transform: translate(-50%, -50%);
  will-change: transform;
  mix-blend-mode: difference;
}

.cursor-hover .cursor-follower {
  transform: translate(-50%, -50%) scale(1.5);
  background: rgba(255, 255, 255, 0.1);
  border-color: transparent;
  transition:
    width 0.3s,
    height 0.3s;
}

/* ============================================
   LOADING SCREEN
   ============================================ */
#loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--accent4);
  z-index: 200000;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.5s ease;
}

#loading-screen.fade-out {
  opacity: 0;
  pointer-events: none;
}

.loading-container {
  filter: url("#gooey");
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.loading-text {
  letter-spacing: 10px;
  font-size: 8rem;
  color: var(--accent2);
}

.drop {
  position: absolute;
  background: var(--accent2);
  width: 22px;
  height: 22px;
  border-radius: 60% 70% 50% 60% / 65% 66% 60% 65%;
  animation: move 3s ease infinite;
}

.drop::after {
  width: 17px;
  height: 17px;
  content: "";
  position: absolute;
  background: var(--accent2);
  border-radius: 50% 60% 60% 70% / 60% 65% 65% 65%;
  left: 25px;
  top: 3px;
  animation: drop_effect 3s ease infinite;
}

@keyframes move {
  0%,
  100% {
    transform: translateX(370px);
  }
  50% {
    transform: translateX(-370px);
  }
}

@keyframes drop_effect {
  0% {
    left: 0px;
  }
  5% {
    left: 35px;
  }
  45% {
    left: 0px;
  }
  50% {
    left: 0px;
  }
  55% {
    left: -30px;
  }
  95% {
    left: 0px;
  }
  100% {
    left: 0;
  }
}

/* ============================================
   TRANSITION CURTAIN
   ============================================ */
.transition-curtain {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 100000;
  pointer-events: none;
  isolation: isolate;
}

.curtain-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: scaleY(1);
  transform-origin: top;
  contain: layout style;
}
.curtain-layer.layer-1 {
  background-color: var(--fg-loading);
}
.curtain-layer.layer-2 {
  background-color: var(--accent1);
}
.curtain-layer.layer-3 {
  background-color: var(--accent2);
}
.curtain-layer.layer-4 {
  background-color: var(--accent3);
}
.curtain-layer.layer-5 {
  background-color: var(--accent4);
}

/* ============================================
   HOME CONTENT
   ============================================ */
#home-content {
  opacity: 0;
  filter: blur(var(--blur-amount));
  will-change: filter;
}
#home-content.content-visible {
  opacity: 1;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-bg-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.1);
  will-change: transform;
}

.hero-text-container {
  text-align: center;
  z-index: 2;
  mix-blend-mode: overlay;
}

.name {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 10vw;
  font-weight: 900;
  line-height: 0.9;
  text-transform: uppercase;
  color: #fff;
  opacity: 0;
  transform: translateY(50px);
}

.subtitle {
  font-size: 1.5rem;
  font-weight: 300;
  margin-top: 20px;
  letter-spacing: 2px;
  opacity: 0;
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0.7;
}

.scroll-indicator span {
  font-size: 0.8rem;
  letter-spacing: 3px;
  margin-bottom: 10px;
}

.scroll-indicator .line {
  width: 1px;
  height: 40px;
  background: #fff;
  animation: scrollLine 2s infinite;
  transform-origin: top;
  will-change: transform;
}

@keyframes scrollLine {
  0% {
    transform: scaleY(0);
  }
  50% {
    transform: scaleY(1);
  }
  100% {
    transform: scaleY(0);
    transform-origin: bottom;
  }
}

/* ============================================
   TECH STACK SECTION (BRUTALIST MARQUEE)
   ============================================ */
.tech-stack-section {
  padding: 15vh 5rem 5vh 5rem;
  background-color: var(--bg-color);
  position: relative;
  z-index: 10;
}

.tech-stack-header {
  margin-bottom: 4rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sys-status {
  font-family: monospace;
  font-size: 0.9rem;
  color: #10b981; /* Vert terminal */
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 2px;
}

.sys-status .pulse {
  width: 8px;
  height: 8px;
  background-color: #10b981;
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.tech-title {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: -2px;
  color: #fff;
}

.tech-subtitle {
  font-family: monospace;
  color: rgba(255, 255, 255, 0.5);
  font-size: 1rem;
  letter-spacing: 1px;
}

.tech-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.tech-row {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  cursor: none; /* Pour ton custom cursor */
  position: relative;
  overflow: hidden;
  transition: padding 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Le fond de couleur qui se déploie */
.tech-row::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--row-color);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 0;
}

.tech-row:hover::before {
  transform: scaleY(1);
  transform-origin: top;
}

.tech-row:hover {
  padding: 4.5rem 0 3.5rem 0; /* Agrandissement au survol */
}

.tech-row-title {
  display: flex;
  align-items: center;
  gap: 2rem;
  position: relative;
  z-index: 1;
  transition:
    transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    color 0.3s ease;
}

.tech-row:hover .tech-row-title {
  color: #0a0a0a;
  transform: translateX(2rem); /* Décalage à droite façon Prashant */
}

.tech-index {
  font-family: monospace;
  font-size: 1.2rem;
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.tech-row:hover .tech-index {
  opacity: 1;
}

.tech-row h3 {
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -1px;
}

/* Le texte défilant (Marquee) inspiré de Naresh */
.tech-marquee {
  position: absolute;
  bottom: 1rem;
  left: 0;
  width: 100%;
  overflow: hidden;
  opacity: 0;
  z-index: 1;
  transform: translateY(20px);
  transition:
    opacity 0.4s ease,
    transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.tech-row:hover .tech-marquee {
  opacity: 1;
  transform: translateY(0);
}

.tech-marquee-inner {
  display: flex;
  white-space: nowrap;
  font-family: monospace;
  font-size: 1.2rem;
  font-weight: bold;
  color: rgba(10, 10, 10, 0.8);
  width: max-content;
}

.tech-marquee-inner span {
  padding: 0 1rem;
}

.tech-marquee-inner .separator {
  opacity: 0.4;
  font-weight: normal;
}

@media (max-width: 768px) {
  .tech-stack-section {
    padding: 10vh 2rem;
  }
  .tech-row-title {
    gap: 1rem;
  }
  .tech-row:hover .tech-row-title {
    transform: translateX(1rem);
  }
}

@media (max-width: 768px) {
  .loading-text {
    font-size: 4rem;
    letter-spacing: 5px;
  }
  .name {
    font-size: 14vw;
  }
}

/* ─────────────────────────────────────────
   HERO ENRICHMENTS
───────────────────────────────────────── */

/* Badge disponibilité */
.hero-badge {
  position: absolute;
  top: 7rem;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.7rem;
  font-family: monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  padding: 6px 16px;
  white-space: nowrap;
  z-index: 3;
  opacity: 0;
  animation: fadeInBadge 0.8s ease forwards 3.2s;
}

.hero-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px #4ade80;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(0.8);
  }
}

@keyframes fadeInBadge {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* Méta-infos flottantes gauche / droite */
.hero-meta {
  position: absolute;
  bottom: 12vh;
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  z-index: 3;
  opacity: 0;
  animation: fadeInMeta 1s ease forwards 3.5s;
}

.hero-meta--left {
  left: 2.5rem;
  align-items: flex-start;
}
.hero-meta--right {
  right: 2.5rem;
  align-items: flex-end;
  text-align: right;
}

.hero-meta-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero-meta-value {
  font-size: clamp(1.2rem, 2vw, 1.8rem);
  font-weight: 900;
  line-height: 1;
  color: #fff;
}

.hero-meta-label {
  font-size: 0.6rem;
  font-family: monospace;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
}

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

/* Ligne de séparation décorative en bas du hero */
.hero-divider {
  position: absolute;
  bottom: 6vh;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 1.2rem;
  z-index: 3;
  opacity: 0;
  animation: fadeInBadge 0.8s ease forwards 3.8s;
  white-space: nowrap;
}

.hero-divider-line {
  display: block;
  width: 80px;
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
}

.hero-divider-text {
  font-size: 0.6rem;
  font-family: monospace;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
}

@media (max-width: 768px) {
  .hero-meta {
    display: none;
  }
  .hero-badge {
    top: 5.5rem;
  }
  /* hero-divider (bottom: 6vh) et scroll-indicator (bottom: 40px) se superposent sur petit écran */
  .hero-divider {
    display: none;
  }
  .scroll-indicator {
    bottom: 24px;
  }
}

/* ─────────────────────────────────────────
   ABOUT SECTION
───────────────────────────────────────── */
.about-section {
  position: relative;
  width: 100%;
  padding: 14vh 5rem 12vh;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  overflow: hidden;
}

.about-tag {
  display: inline-block;
  font-size: 0.65rem;
  font-family: monospace;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 4px 14px;
}

.about-header {
  margin-bottom: 5rem;
}

/* Grande phrase révélée au scroll */
.about-statement {
  margin-bottom: 8rem;
  max-width: 1100px;
}

.about-statement-text {
  font-size: clamp(2.2rem, 4.5vw, 5rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: rgba(255, 255, 255, 0.15); /* gris par défaut, éclairé au scroll */
}

.word-reveal {
  display: inline;
  transition: color 0.4s ease;
}

.word-reveal.lit {
  color: rgba(255, 255, 255, 0.9);
}
.word-reveal.accent-word {
  color: rgba(255, 255, 255, 0.15);
}
.word-reveal.accent-word.lit {
  color: var(--accent1);
}

/* Grille about */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 6rem;
  align-items: start;
}

/* Photo */
.about-photo-frame {
  position: relative;
}

.about-photo-placeholder {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.photo-placeholder-text {
  font-size: 0.65rem;
  font-family: monospace;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.2);
  text-align: center;
  line-height: 2;
  z-index: 1;
}

.photo-placeholder-deco {
  position: absolute;
  bottom: -40px;
  right: -40px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: var(--accent1);
  opacity: 0.07;
  filter: blur(30px);
}

/* Badge flottant sur la photo */
.about-photo-badge {
  position: absolute;
  bottom: -1.5rem;
  right: -1.5rem;
  background: #fff;
  color: #111;
  border-radius: 50%;
  width: 90px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.6rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  line-height: 1.4;
}

/* Bio */
.about-bio {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-bottom: 3rem;
}

.about-bio p {
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 300;
}

/* Stats */
.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding: 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  margin-bottom: 2.5rem;
}

.about-stat {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  column-gap: 2px;
  row-gap: 4px;
}

.stat-number {
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 900;
  line-height: 1;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.stat-suffix {
  font-size: clamp(1.5rem, 2vw, 2.2rem);
  font-weight: 900;
  color: var(--accent1);
  line-height: 1;
  display: inline;
  margin-left: 2px;
}

.stat-label {
  flex: 0 0 100%; /* Force sur sa propre ligne */
  font-size: 0.65rem;
  font-family: monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
  margin-top: 4px;
}

/* CTA CV */
.about-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  font-family: monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  padding: 10px 22px;
  transition:
    color 0.3s ease,
    border-color 0.3s ease,
    background 0.3s ease;
}

.about-cta:hover {
  color: #111;
  background: #fff;
  border-color: #fff;
}

.about-cta svg {
  transition: transform 0.3s ease;
}

.about-cta:hover svg {
  transform: translateY(3px);
}

@media (max-width: 900px) {
  .about-section {
    padding: 12vh 1.5rem 10vh;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
  .about-photo-frame {
    max-width: 320px;
  }
  .about-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
}

/* ─────────────────────────────────────────
   PROJECTS SECTION
───────────────────────────────────────── */
.projects-section {
  position: relative;
  width: 100%;
  padding: 10vh 5rem 14vh;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.projects-header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 6rem;
}

.projects-title {
  font-size: clamp(4rem, 9vw, 10rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: #fff;
  margin-top: 1.2rem;
}

.projects-title em {
  font-style: italic;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.4);
}

.projects-count {
  font-size: 0.7rem;
  font-family: monospace;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.3);
  margin-top: 0.5rem;
}

/* Liste projets */
.projects-list {
  display: flex;
  flex-direction: column;
}

.project-divider {
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
}

.project-item {
  position: relative;
  cursor: pointer;
  overflow: hidden;
}

.project-item-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2.2rem 0;
  position: relative;
  z-index: 2;
  transition: padding 0.4s ease;
}

.project-item:hover .project-item-inner {
  padding: 2.2rem 1.5rem;
}

.project-left {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.project-num {
  font-size: 0.65rem;
  font-family: monospace;
  color: rgba(255, 255, 255, 0.25);
  letter-spacing: 0.1em;
  min-width: 2ch;
}

.project-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.project-name {
  font-size: clamp(1.4rem, 3vw, 2.6rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.3s ease;
  line-height: 1;
}

.project-item:hover .project-name {
  color: #fff;
}

.project-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.project-tag {
  font-size: 0.58rem;
  font-family: monospace;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--tag-color, rgba(255, 255, 255, 0.4));
  border: 1px solid var(--tag-color, rgba(255, 255, 255, 0.2));
  border-radius: 999px;
  padding: 3px 10px;
  opacity: 0.8;
}

.project-right {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.project-year {
  font-size: 0.7rem;
  font-family: monospace;
  color: rgba(255, 255, 255, 0.25);
  letter-spacing: 0.1em;
}

.project-arrow {
  font-size: 1.4rem;
  color: rgba(255, 255, 255, 0.3);
  transition:
    transform 0.3s ease,
    color 0.3s ease;
  display: block;
}

.project-item:hover .project-arrow {
  transform: translateX(4px) translateY(-4px);
  color: #fff;
}

/* Preview image qui se révèle au hover */
.project-preview {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.5s cubic-bezier(0.76, 0, 0.24, 1);
}

.project-item:hover .project-preview {
  transform: scaleY(1);
}

.project-preview-img {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-family: monospace;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.3);
  text-transform: uppercase;
}

@media (max-width: 768px) {
  .projects-section {
    padding: 10vh 1.5rem 12vh;
  }
  .project-item-inner {
    padding: 1.8rem 0;
  }
  .project-item:hover .project-item-inner {
    padding: 1.8rem 0.5rem;
  }
  .project-left {
    gap: 1rem;
  }
  .project-right {
    gap: 1rem;
  }
  .project-year {
    display: none;
  }
}

/* ─────────────────────────────────────────
   FOOTER — version enrichie
───────────────────────────────────────── */
.footer {
  display: flex;
  flex-direction: column;
  background: #0d0d0d;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: 5rem 5rem 3rem;
  gap: 0;
}

/* Ligne du haut */
.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  margin-bottom: 5rem;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  font-family: monospace;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.4);
}

.footer-status em {
  font-style: normal;
  color: rgba(255, 255, 255, 0.6);
}

.footer-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px #4ade80;
  flex-shrink: 0;
  animation: pulse-dot 2s ease-in-out infinite;
}

.footer-nav {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.footer-nav a {
  font-size: 0.72rem;
  font-family: monospace;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  text-decoration: none;
  transition: color 0.25s ease;
}

.footer-nav a:hover {
  color: #fff;
}

/* Bloc CTA central */
.footer-cta {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 5rem;
  flex-wrap: wrap;
}

.footer-title {
  font-size: clamp(5rem, 13vw, 14rem);
  font-weight: 900;
  line-height: 0.88;
  letter-spacing: -0.04em;
  color: #fff;
}

.footer-title em {
  font-style: italic;
  color: transparent;
  -webkit-text-stroke: 2px rgba(255, 255, 255, 0.35);
}

.footer-email {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  align-items: flex-end;
  text-decoration: none;
  flex-shrink: 0;
  padding-bottom: 0.8rem;
  position: relative;
}

.footer-email-label {
  font-size: 0.6rem;
  font-family: monospace;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.3);
  text-transform: uppercase;
}

.footer-email-address {
  font-size: clamp(0.9rem, 2vw, 1.5rem);
  font-weight: 900;
  color: var(--accent1);
  letter-spacing: -0.01em;
  transition: color 0.25s ease;
}

.footer-email-arrow {
  font-size: 1.8rem;
  color: rgba(255, 255, 255, 0.25);
  transition:
    transform 0.3s ease,
    color 0.3s ease;
  line-height: 1;
  align-self: flex-end;
}

.footer-email:hover .footer-email-address {
  color: #fff;
}
.footer-email:hover .footer-email-arrow {
  transform: translate(4px, -4px);
  color: #fff;
}

/* Réseaux sociaux */
.footer-socials {
  display: flex;
  gap: 1.2rem;
  padding: 2.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.68rem;
  font-family: monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 8px 18px;
  transition:
    color 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease;
}

.footer-social-link:hover {
  color: #111;
  background: #fff;
  border-color: #fff;
}

.footer-social-link svg {
  flex-shrink: 0;
}

/* Ligne du bas */
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copy,
.footer-made {
  font-size: 0.65rem;
  font-family: monospace;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.2);
}

.footer-heart {
  color: var(--accent1);
  font-size: 0.75rem;
}

@media (max-width: 768px) {
  .footer {
    padding: 4rem 1.5rem 2.5rem;
  }
  .footer-top {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-cta {
    flex-direction: column;
    align-items: flex-start;
    gap: 3rem;
  }
  .footer-email {
    align-items: flex-start;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ============================================
   PROJECT TRANSITION — "THE ORIGIN"
   ============================================ */

/* Wrapper fixe qui couvre tout le viewport */
.pt-wrap {
  position: fixed;
  inset: 0;
  z-index: 9999999;
  pointer-events: all;
  overflow: hidden;
}

/* Cercle coloré qui s'expand depuis le clic */
.pt-circle {
  position: absolute;
  inset: 0;
  will-change: clip-path;
}

/* Le grand numéro fantôme centré */
.pt-number {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 48vw;
  font-weight: 900;
  line-height: 1;
  color: rgba(0, 0, 0, 0.08);
  user-select: none;
  pointer-events: none;
  will-change: transform, opacity;
}

/* Flash final avant navigation */
.pt-flash {
  position: absolute;
  inset: 0;
  background: #0a0a0a;
  opacity: 0;
  will-change: opacity;
}

/* Lignes verticales qui "déchirent" la page */
.pt-shards {
  position: absolute;
  inset: 0;
  display: flex;
}

.pt-shard {
  flex: 1;
  height: 100%;
  transform-origin: top center;
  will-change: transform, opacity;
}

/* Retour depuis une page projet — animation d'entrée */
.page-entering .pt-wrap-return {
  position: fixed;
  inset: 0;
  z-index: 9999999;
  pointer-events: none;
}
