@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,700&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300&display=swap');

:root {
  --font-size: 16px;

  /* ── Light palette ── */
  --background:        #f7f5f0;
  --foreground:        #0f0f14;
  --card:              #ffffff;
  --card-foreground:   #0f0f14;
  --popover:           #ffffff;
  --popover-foreground:#0f0f14;
  --primary:           #0f0f14;
  --primary-foreground:#f7f5f0;
  --secondary:         #eeece6;
  --secondary-foreground: #0f0f14;
  --muted:             #eeece6;
  --muted-foreground:  #6b6b7a;
  --accent:            #e8e5dd;
  --accent-foreground: #0f0f14;
  --destructive:       #c0392b;
  --destructive-foreground: #ffffff;
  --border:            rgba(15,15,20,0.10);
  --input:             transparent;
  --input-background:  #eeece6;
  --switch-background: #c8c6bf;
  --font-weight-medium: 500;
  --font-weight-normal: 400;
  --ring:              rgba(15,15,20,0.2);
  --radius:            0.625rem;

  --highlight:         #1a3a6b;   /* bleu marine — accent clé */
  --highlight-light:   #e8eef7;   /* bleu pâle pour badges */
  --gold:              #b8860b;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', sans-serif;
  --transition: 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  font-size: var(--font-size);
  scroll-behavior: smooth;
  cursor: none;
  overflow-x: hidden;
}

body {
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-body);
  font-weight: var(--font-weight-normal);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── Custom Cursor ─────────────────────────────────── */
.cursor {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary);
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  transition: transform 0.15s ease, width 0.3s ease, height 0.3s ease, background 0.3s ease;
  transform: translate(-50%, -50%);
}

.cursor.light {
  background: #ffffff;
  mix-blend-mode: normal;
}

.cursor-follower {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--primary);
  position: fixed;
  pointer-events: none;
  z-index: 9998;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, border-color 0.3s ease;
  transform: translate(-50%, -50%);
  opacity: 0.35;
}

.cursor-follower.light {
  border-color: rgba(255,255,255,0.7);
}

/* ── Navigation ────────────────────────────────────── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: var(--transition);
  width: 100%;
  box-sizing: border-box;
}

nav > .inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 2rem;
}

nav.scrolled {
  background: rgba(247,245,240,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 24px rgba(15,15,20,0.06);
}

nav.scrolled > .inner {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--primary);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  text-decoration: none;
  transition: color var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--highlight);
  transition: width var(--transition);
}

.nav-links a:hover {
  color: var(--highlight);
}
.nav-links a:hover::after {
  width: 100%;
}

/* ── Dispo badge in nav ──────────────────────────── */
.nav-dispo {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--highlight-light);
  color: var(--highlight);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.4rem 0.9rem;
  border-radius: 100px;
  border: 1px solid rgba(26,58,107,0.2);
}

.nav-dispo::before {
  content: '';
  width: 6px;
  height: 6px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse-green 2s ease-in-out infinite;
}

@keyframes pulse-green {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.3); }
}

/* ── Hero ──────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  background: transparent; /* canvas WebGL remplace le background */
}

#canvas-webgl {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* Grid texture overlay */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(15,15,20,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15,15,20,0.035) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
  z-index: 1;
}

/* ── Corner labels ── */
.hero-corner {
  position: absolute;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.hero-corner--tl { top: 2rem; left: 2rem; }
.hero-corner--tr { top: 2rem; right: 2rem; text-align: right; }
.hero-corner--bl { bottom: 2rem; left: 2rem; }
.hero-corner--br { bottom: 2rem; right: 2rem; }

.hero-corner-label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--foreground);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.hero-corner-sub {
  font-family: var(--font-body);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.6s ease 0.1s, transform 0.6s ease 0.1s;
}
.hero-corner-cta {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--highlight);
  text-decoration: none;
  border-bottom: 1.5px solid var(--highlight);
  padding-bottom: 2px;
  transition: opacity 0.3s;
  opacity: 0;
}
.hero-corner-cta:hover { opacity: 0.7; }

.hero.loaded .hero-corner-label,
.hero.loaded .hero-corner-sub,
.hero.loaded .hero-corner-cta {
  opacity: 1;
  transform: translateY(0);
}

/* ── Giant title ── */
.hero-title-wrap {
  position: relative;
  z-index: 2;
  margin-bottom: 0;
  overflow: visible; /* was hidden — coupait les descendantes */
  line-height: 1;
}

.hero-line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em; /* espace pour les descendantes (p, y, j…) */
}

.hero-line-inner {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 12vw, 13rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--primary);
  transform: translateY(110%);
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  line-height: 0.95;
  padding-bottom: 0.06em;
}

.hero-line--accent .hero-line-inner {
  color: var(--muted-foreground); /* gris moyen — contraste lisible, différencié du noir */
  -webkit-text-stroke: 0;
}

.hero-line[data-line="2"] .hero-line-inner em {
  font-style: italic;
  color: var(--highlight);
  -webkit-text-stroke: 0;
  opacity: 1;
}

.hero.loaded .hero-line[data-line="0"] .hero-line-inner { transform: translateY(0); transition-delay: 0.05s; }
.hero.loaded .hero-line[data-line="1"] .hero-line-inner { transform: translateY(0); transition-delay: 0.18s; }
.hero.loaded .hero-line[data-line="2"] .hero-line-inner { transform: translateY(0); transition-delay: 0.31s; }

/* ── Meta bar ── */
.hero-meta-bar {
  position: relative;
  z-index: 2;
  margin-top: 3rem;
  margin-bottom: 2.5rem; /* espace avant le bas du hero */
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease 0.7s, transform 0.7s ease 0.7s;
}
.hero.loaded .hero-meta-bar {
  opacity: 1;
  transform: translateY(0);
}

.hero-meta-bar-line {
  width: 0;
  height: 1px;
  background: var(--border);
  position: absolute;
  top: -1.5rem;
  left: 0;
  right: 0;
  transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.55s;
}
.hero.loaded .hero-meta-bar-line { width: 100%; }

.hero-meta-items {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
  flex-wrap: wrap;
}
.hero-meta-items span {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}
.hero-meta-dot { color: var(--highlight) !important; font-weight: 700 !important; }

.hero-meta-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.arrowDown {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.4rem;
  color: var(--muted-foreground);
  animation: bounce 2.5s ease-in-out infinite;
  z-index: 3;
  opacity: 0;
  transition: opacity 0.5s ease 1.2s;
}
.hero.loaded .arrowDown { opacity: 1; }

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* Adjust CTAs size in hero meta */
.hero-meta-actions .cta1,
.hero-meta-actions .cta2 {
  padding: 0.7rem 1.5rem;
  font-size: 0.75rem;
}

/* ── Hide old hero elements that are removed ── */
.hero-eyebrow, .hero-actions, .hero-trust, .hero > .inner { display: none; }


/* ── CTA Buttons ───────────────────────────────────── */
.cta1, .cta2 {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.95rem 2.25rem;
  border-radius: 100px;
  cursor: none;
  transition: var(--transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.cta1 {
  background: var(--highlight);
  color: #ffffff;
  border: 1.5px solid var(--highlight);
}
.cta1:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-2px);
}
.cta2 {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid rgba(15,15,20,0.3);
}
.cta2:hover {
  background: var(--primary);
  color: var(--primary-foreground);
  border-color: var(--primary);
  transform: translateY(-2px);
}

/* ── Impact band ───────────────────────────────────── */
.impact {
  background: var(--highlight);
  color: #fff;
  padding: 0;
}

.impact > .inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.impact > div {
  padding: 3rem 3.5rem;
  border-right: 1px solid rgba(255,255,255,0.15);
  transition: background var(--transition);
}
.impact > div:last-child { border-right: none; }
.impact > div:hover { background: rgba(255,255,255,0.06); }

.impact > div h2 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 700;
  color: #fff;
  line-height: 1;
  margin-bottom: 0.5rem;
  letter-spacing: -0.04em;
}

.impact > div p {
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  line-height: 1.4;
  max-width: 22ch;
}

/* ── Sections ──────────────────────────────────────── */
section {
  padding: 0;
  position: relative;
}

section > .inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 8rem 2rem;
}

section > *:not(.inner) {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

section:nth-child(even):not(.art-gallery):not(#tech):not(.impact) {
  background: var(--muted);
}

.uptitle {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--highlight);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.uptitle::before {
  content: '';
  display: block;
  width: 2rem;
  height: 1.5px;
  background: currentColor;
}

section > h2 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--primary);
  margin-bottom: 1.5rem;
  max-width: 16ch;
}

section > h3 {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  font-weight: var(--font-weight-normal);
  line-height: 1.75;
  color: var(--muted-foreground);
  max-width: 60ch;
  margin-bottom: 4rem;
  font-family: var(--font-body);
}

/* ── About Grid ────────────────────────────────────── */
.gridContainer {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) * 2);
  overflow: hidden;
  width: 100%;
  margin-top: 3rem;
}

.gridContainer > div {
  background: var(--card);
  padding: 3rem;
  transition: background var(--transition);
}

.gridContainer > div:hover {
  background: var(--highlight-light);
}

.gridContainer h2 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--highlight);
  margin-bottom: 0.5rem;
}

.gridContainer h3 {
  font-size: 0.85rem;
  font-weight: var(--font-weight-normal);
  color: var(--muted-foreground);
  line-height: 1.5;
}

/* Animate gold on exp */
.exp h2 {
  transition: all 0.6s ease;
  display: inline-block;
}
.animate-gold {
  position: relative;
  overflow: hidden;
  color: var(--gold);
  display: inline-block;
}
.animate-gold::after {
  content: "";
  position: absolute;
  top: 0;
  left: -150%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.6) 50%, rgba(255,255,255,0) 100%);
  transform: skewX(-25deg);
  animation: shine 2s infinite;
}
@keyframes shine { 0% { left: -150%; } 100% { left: 150%; } }

/* ── Approach Section ──────────────────────────────── */
.container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: start;
  width: 100%;
}

.leftsection h2, .rightsection h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--primary);
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.leftsection p {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--muted-foreground);
}

.rightsection ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.rightsection ul li {
  font-size: 0.95rem;
  color: var(--foreground);
  font-weight: var(--font-weight-medium);
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 1rem;
  cursor: default;
  transition: color var(--transition), padding-left var(--transition);
}

.rightsection ul li::before {
  content: '→';
  font-size: 0.85rem;
  color: var(--highlight);
  transition: transform var(--transition);
  flex-shrink: 0;
}

.rightsection ul li:hover {
  color: var(--highlight);
  padding-left: 0.5rem;
}

.rightsection ul li:hover::before {
  transform: translateX(4px);
}

/* ── Skills Grid ───────────────────────────────────── */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 4rem;
  width: 100%;
}

.grid > div {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) * 2);
  padding: 2.5rem;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}

.grid > div::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--highlight);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform var(--transition);
  z-index: 0;
}

.grid > div:hover::before {
  transform: scaleY(1);
}

.grid > div:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(15,15,20,0.12);
  border-color: var(--highlight);
}

.grid > div h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
  position: relative;
  z-index: 1;
  transition: color var(--transition);
}

.grid > div:hover h2 {
  color: #fff;
}

.grid > div p {
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--muted-foreground);
  position: relative;
  z-index: 1;
  transition: color var(--transition);
}

.grid > div:hover p {
  color: rgba(255,255,255,0.8);
}

.grid > div::after {
  content: '';
  position: absolute;
  top: 0;
  left: 2.5rem;
  right: 2.5rem;
  height: 2px;
  background: var(--highlight);
  transition: opacity var(--transition);
  z-index: 2;
}

.grid > div:hover::after { opacity: 0; }

/* ── Tech Grid (pills) ──────────────────────────────── */
.tech-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 3rem;
  width: 100%;
}

.tech-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 0.6rem 1.25rem 0.6rem 1rem;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  cursor: default;
}

.tech-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(26,58,107,0.1);
  border-color: rgba(26,58,107,0.3);
}

.tech-pill-name {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--foreground);
  white-space: nowrap;
}

.tech-pill-bar {
  display: block;
  width: 32px;
  height: 3px;
  background: var(--muted);
  border-radius: 100px;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.tech-pill-bar::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 100px;
  background: var(--highlight);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1);
  width: var(--w);
}

.tech-pill-bar.animated::after {
  transform: scaleX(1);
}

/* Tier sizes — les plus maîtrisés sont plus grands */
.tech-pill.tier-1 { padding: 0.7rem 1.5rem 0.7rem 1.2rem; }
.tech-pill.tier-1 .tech-pill-name { font-size: 0.95rem; font-weight: 600; color: var(--highlight); }
.tech-pill.tier-1 .tech-pill-bar { width: 40px; }
.tech-pill.tier-1 { border-color: rgba(26,58,107,0.2); background: var(--highlight-light); }

.tech-pill.tier-2 .tech-pill-name { font-weight: 500; }
.tech-pill.tier-2 .tech-pill-bar { width: 32px; }

.tech-pill.tier-3 .tech-pill-name { font-size: 0.8rem; color: var(--muted-foreground); }
.tech-pill.tier-3 .tech-pill-bar { width: 24px; }

/* ── Projects ─────────────────────────────────────── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.project-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) * 3);
  padding: 2rem 2.25rem;
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: default;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 48px rgba(15,15,20,0.1);
}

.project-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.project-year {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--muted-foreground);
  font-weight: var(--font-weight-medium);
}

.project-arrow {
  font-size: 1.1rem;
  color: var(--muted-foreground);
  transition: transform var(--transition), color var(--transition);
}

.project-card:hover .project-arrow {
  transform: translate(2px, -2px);
  color: var(--highlight);
}

.project-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 0.85rem;
}

.project-title.accent { color: var(--highlight); }

.project-desc {
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--muted-foreground);
  margin-bottom: 1.25rem;
}

.project-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.25rem; }

.tag {
  font-size: 0.75rem;
  font-weight: var(--font-weight-normal);
  color: var(--foreground);
  background: var(--muted);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 0.3rem 0.85rem;
}

.project-kpi {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--highlight);
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

/* ── Project Cards (portfolio section) ─────────────── */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) * 3);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(15,15,20,0.12);
}

.card-image { width: 100%; }

.placeholder-img {
  width: 100%;
  height: 220px;
}

.card-content { padding: 2rem 2.25rem; }

.card-tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--highlight);
  margin-bottom: 0.75rem;
}

.card-content h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--primary);
  margin-bottom: 0.85rem;
  line-height: 1.15;
}

.card-content p {
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--muted-foreground);
  margin-bottom: 1.25rem;
}

.card-tech { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.card-tech span {
  font-size: 0.75rem;
  font-weight: var(--font-weight-normal);
  color: var(--foreground);
  background: var(--muted);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 0.3rem 0.85rem;
}

/* ── Testimonials ───────────────────────────────────── */
.art-gallery {
  position: relative;
  height: 500vh;
  background: var(--background);
  /* Isolation pour éviter le chevauchement avec le footer */
  isolation: isolate;
}

.gallery-panel {
  height: 100vh;
  width: 100%;
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  padding: 0 10%;
  overflow: hidden;
  background: var(--background);
  border-top: 1px solid var(--border);
  /* z-index explicite pour empêcher le débordement sur le footer */
  z-index: 1;
}

.panel-left { justify-content: flex-start; z-index: 1; }
.panel-right {
  justify-content: flex-end;
  z-index: 2;
  clip-path: inset(100% 0 0 0);
  transition: clip-path 0.5s ease-out;
}

.gallery-panel:not(:first-child) {
  clip-path: inset(100% 0 0 0);
  transition: clip-path 0.5s ease-out;
}

.panel-content { max-width: 600px; }

.section-tag {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-tag::before {
  content: '';
  display: block;
  width: 2rem;
  height: 1.5px;
  background: var(--highlight);
  flex-shrink: 0;
}

.testimonial-text {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  margin-bottom: 2rem;
  color: var(--primary);
}

.testimonial-text strong { color: var(--highlight); font-style: italic; }

.panel-right .testimonial-text { text-align: right; }
.panel-right .section-tag { justify-content: flex-end; }
.panel-right .section-tag::before { display: none; }
.panel-right .section-tag::after {
  content: '';
  display: block;
  width: 2rem;
  height: 1.5px;
  background: var(--highlight);
  flex-shrink: 0;
}

.translate-btn {
  background: none;
  border: none;
  border-bottom: 1.5px solid var(--highlight);
  color: var(--highlight);
  font-family: var(--font-body);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 2px 0;
  margin-top: 1.5rem;
  cursor: pointer;
  transition: opacity 0.3s ease;
}
.translate-btn:hover { opacity: 0.6; }

/* ── Contact ─────────────────────────────────────────── */
#contact {
  background: var(--primary) !important;
  color: #fff;
}

#contact .uptitle {
  color: rgba(255,255,255,0.5);
}

#contact .uptitle::before {
  background: rgba(255,255,255,0.4);
}

#contact > .inner > h2 {
  color: #fff;
}

#contact > .inner > p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.65);
  max-width: 55ch;
  margin-bottom: 3rem;
}

/* ── Disponibilité band ── */
.availability-band {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: calc(var(--radius) * 2);
  padding: 1.25rem 2rem;
  margin-bottom: 3rem;
  max-width: 480px;
}

.avail-dot {
  width: 12px;
  height: 12px;
  background: #22c55e;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 0 4px rgba(34,197,94,0.25);
  animation: pulse-green 2s ease-in-out infinite;
}

.availability-band p {
  font-size: 0.9rem !important;
  color: rgba(255,255,255,0.85) !important;
  margin: 0 !important;
  max-width: unset !important;
  line-height: 1.4 !important;
}

.availability-band strong {
  color: #fff;
  font-weight: 600;
}

.contact-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.contact-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: calc(var(--radius) * 2);
  padding: 1.25rem 2rem;
  text-decoration: none;
  color: #fff;
  font-weight: 600;
  font-size: 0.88rem;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.contact-card:hover {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.4);
  transform: translateY(-2px);
}

.contact-card.primary {
  background: #fff;
  color: var(--primary);
  border-color: #fff;
  box-shadow: 0 4px 24px rgba(255,255,255,0.15);
}

.contact-card.primary:hover {
  background: rgba(255,255,255,0.9);
  transform: translateY(-3px);
  box-shadow: 0 8px 36px rgba(255,255,255,0.2);
}

/* ── Floating CTA ─────────────────────────────────── */
.floating-cta {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  z-index: 200;
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
  pointer-events: none;
  /* Décalé à gauche pour ne pas conflicte avec le chat bubble (droit) */
  margin-left: -60px;
}

.cta-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse-green 2s ease-in-out infinite;
  flex-shrink: 0;
}

.floating-cta.visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.floating-cta a {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--primary);
  color: var(--primary-foreground);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.9rem 2rem;
  border-radius: 100px;
  box-shadow: 0 8px 40px rgba(15,15,20,0.35);
  transition: var(--transition);
  cursor: none;
}

.floating-cta a:hover {
  background: var(--highlight);
  transform: translateY(-2px);
  box-shadow: 0 12px 48px rgba(26,58,107,0.35);
}

/* ── Footer ────────────────────────────────────────── */
footer {
  background: var(--background);
  color: var(--muted-foreground);
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 10;
}

footer > .inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

footer p {
  font-size: 0.8rem;
  letter-spacing: 0.05em;
}

/* Curseur visible sur footer (fond clair) */
footer .cursor, footer ~ .cursor { background: var(--primary); }

/* ── AOS overrides ─────────────────────────────────── */
[data-aos] { pointer-events: none; }
[data-aos].aos-animate { pointer-events: auto; }

/* ── Hero trust signals ────────────────────────────── */
.hero-trust {
  display: flex;
  gap: 1.75rem;
  flex-wrap: wrap;
  font-size: 0.75rem;
  color: var(--muted-foreground);
  font-weight: 500;
  margin: 0;
  letter-spacing: 0.02em;
  padding-left: 0.15rem;
}

.hero-trust span {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--muted-foreground);
}

/* ── Contact reassurance ───────────────────────────── */
.contact-reassurance {
  font-size: 0.78rem !important;
  color: rgba(255,255,255,0.4) !important;
  margin-top: 2rem !important;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  max-width: unset !important;
}

/* ── Nav max-width ─────────────────────────────────── */
nav {
  max-width: 100%;
  box-sizing: border-box;
}

/* ── Scrollbar ─────────────────────────────────────── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--muted); }
::-webkit-scrollbar-thumb { background: rgba(15,15,20,0.2); border-radius: 100px; }

/* ── Mobile nav ────────────────────────────────────── */
.menu-toggle {
  display: none;
  cursor: pointer;
  z-index: 101;
}

.bar {
  display: block;
  width: 25px;
  height: 2px;
  margin: 5px auto;
  background-color: var(--primary);
  transition: var(--transition);
}

.menu-toggle.open .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open .bar:nth-child(2) { opacity: 0; }
.menu-toggle.open .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Responsive ────────────────────────────────────── */
@media (max-width: 1024px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .gridContainer { grid-template-columns: 1fr; }
  .impact > .inner { grid-template-columns: 1fr; padding: 0; }
  .impact > .inner > div { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.12); }
  .impact > .inner > div:last-child { border-bottom: none; }
}

@media (max-width: 768px) {
  nav > .inner { padding: 1.25rem 1.5rem; }
  nav.scrolled > .inner { padding: 1rem 1.5rem; }
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--background);
    padding: 2rem;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 32px rgba(15,15,20,0.08);
  }
  .nav-links.active { display: flex; }
  .menu-toggle { display: block; }
  .nav-dispo { display: none; }

  /* Hero mobile */
  .hero { padding: 1.25rem; }
  .hero-corner--tr, .hero-corner--bl { display: none; }
  .hero-corner--tl { top: 1.25rem; left: 1.25rem; }
  .hero-corner--br { bottom: 1.25rem; right: 1.25rem; }
  .hero-title-wrap { margin-bottom: 0; }
  .hero-meta-bar { flex-direction: column; align-items: flex-start; gap: 1rem; margin-top: 2rem; }
  .hero-meta-items { display: none; }
  .hero h2 br { display: none; }

  .grid { grid-template-columns: 1fr; }
  .container { grid-template-columns: 1fr; gap: 3rem; }
  .testimonial-text { font-size: 2rem; }
  .gallery-panel { padding: 0 1.5rem; }
  .art-gallery { height: 600vh; }
  .projects-grid { grid-template-columns: 1fr; }
  .tech-bar { grid-template-columns: 110px 1fr 36px; gap: 0.75rem; }
  .tech-chart { padding: 2rem 1.5rem; }
  footer > .inner { flex-direction: column; gap: 0.5rem; text-align: center; }
  .floating-cta { bottom: 5.5rem; }
}

@media (pointer: coarse) {
  html { cursor: auto; }
  .cursor, .cursor-follower { display: none !important; }
  * { cursor: auto; }
  button, a { cursor: pointer; }
}

/* ── Chatbot styles ────────────────────────────────── */
/* (preserved from original, adapted to light theme) */