/* ============================================
   VIZIOM — Design Tokens
   ============================================ */
:root {
  --accent: #00E5CC;
  --accent-light: #4DFFE6;
  --bg: #0A0A0A;
  --bg-elevated: #141414;
  --bg-card: #1A1A1A;
  --text: #F5F0EB;
  --text-secondary: #888888;
  --text-muted: #555555;
  --border: #222222;
  --font-syne: 'Syne', sans-serif;
  --font-inter: 'Inter', sans-serif;
}

/* ============================================
   Reset & Base
   ============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: auto; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  font-family: var(--font-inter), system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

::selection { background: var(--accent); color: var(--bg); }

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

*:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ============================================
   Custom Cursor
   ============================================ */
body.custom-cursor-active,
body.custom-cursor-active * { cursor: none !important; }

@media (hover: none), (pointer: coarse) {
  #cursor-dot, #cursor-ring { display: none !important; }
}

#cursor-dot {
  position: fixed;
  left: 0; top: 0;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
}

#cursor-ring {
  position: fixed;
  left: 0; top: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(245,240,235,0.4);
  pointer-events: none;
  z-index: 9998;
  opacity: 0;
  transition: width 250ms ease-out, height 250ms ease-out, border-color 250ms ease-out;
}

/* ============================================
   Page Loader
   ============================================ */
#page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #000;
  overflow: hidden;
}

#loader-logo {
  font-family: var(--font-syne);
  font-size: clamp(3rem, 10vw, 8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  user-select: none;
  text-align: center;
}

#loader-logo span { color: var(--accent); }

#loader-sub {
  margin-top: 1.5rem;
  font-family: var(--font-inter);
  font-size: clamp(0.85rem, 1.5vw, 1rem);
  font-weight: 300;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.4);
  text-align: center;
}

#loader-bar-track {
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 3px;
  background: rgba(255,255,255,0.08);
}

#loader-bar {
  height: 100%;
  width: 100%;
  transform-origin: left;
  transform: scaleX(0);
  background: var(--accent);
  box-shadow: 0 0 14px rgba(0,229,204,0.8);
  will-change: transform;
}

/* ============================================
   Header
   ============================================ */
#header {
  position: fixed;
  left: 0; top: 0;
  width: 100%;
  z-index: 700;
  /* Header visible par defaut (l'animation d'entree initiale est en gsap.fromTo
     pour ne pas dependre de cet etat CSS) */
}

#header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem;
}

@media (min-width: 640px) { #header-inner { padding: 1.25rem 2rem; } }
@media (min-width: 768px) { #header-inner { padding: 1.5rem 2.5rem; } }
@media (min-width: 1024px) { #header-inner { padding: 1.75rem 3.5rem; } }

#header-left {
  display: flex;
  align-items: center;
  gap: 0;
  position: relative;
}

/* Logo */
#header-logo {
  font-family: var(--font-syne);
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  white-space: nowrap;
}

#header-logo span { color: var(--accent); }

/* Desktop nav */
#desktop-nav {
  display: none;
  position: relative;
  align-items: center;
  gap: 4px;
  margin-left: 4px;
}

@media (min-width: 1400px) { #desktop-nav { display: flex; } }

#nav-pill-highlight {
  position: absolute;
  left: 0; top: 0;
  height: 100%;
  border-radius: 6px;
  background: rgba(255,255,255,0.08);
  opacity: 0;
  pointer-events: none;
  transition: none;
}

.nav-link {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  font-family: var(--font-inter);
  font-size: 15px;
  color: var(--text);
  opacity: 0.6;
  border-radius: 6px;
  white-space: nowrap;
  transition: opacity 0.3s ease;
  overflow: hidden;
}

.nav-link .nav-chars { display: inline-flex; }
.nav-link .nav-char { display: inline-block; overflow: hidden; height: 1.2em; vertical-align: top; }
.nav-link .nav-char-inner { display: block; line-height: 1.2; text-shadow: 0 1.2em 0 currentColor; }

/* Mobile burger */
#mobile-burger {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
}

@media (min-width: 1400px) { #mobile-burger { display: none; } }

.burger-line {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s ease;
}

#mobile-burger.menu-open .burger-line:nth-child(1) { transform: rotate(45deg) translate(0, 4px); }
#mobile-burger.menu-open .burger-line:nth-child(2) { transform: rotate(-45deg) translate(0, -4px); }

/* Header CTA */
#header-cta {
  display: none;
  align-items: center;
  gap: 8px;
  font-family: var(--font-inter);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--accent);
  transition: opacity 0.3s ease;
}

#header-cta:hover { opacity: 0.5; }
@media (min-width: 1400px) { #header-cta { display: flex; } }


/* boutton retour */
#back-btn {
  position: relative;
  display: block;
  margin: 0 auto 3rem;
  background: rgba(22,22,22,0.6);
  border: 1px solid var(--accent);
  color: white;
  font-family: var(--font-inter);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.3s ease;
  padding: 10px 20px;
  border-radius: 999px;
}

#back-btn:hover { opacity: 0.5; }

/* ============================================
   Backdrop
   ============================================ */
#backdrop {
  position: fixed;
  inset: 0;
  z-index: 640;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  background: transparent;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

#backdrop.active {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background: rgba(0,0,0,0.3);
  opacity: 1;
  pointer-events: auto;
}

/* ============================================
   Mobile Menu
   ============================================ */
#mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 650;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 1.5rem 4rem;
  background: var(--bg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

@media (min-width: 1400px) { #mobile-menu { display: none; } }

#mobile-menu.active { opacity: 1; pointer-events: auto; }

.mobile-link {
  display: block;
  padding: 1.25rem 0;
  font-family: var(--font-syne);
  font-size: clamp(2rem, 8vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

#mobile-menu.active .mobile-link:nth-child(1) { opacity: 1; transform: translateY(0); transition-delay: 0s; }
#mobile-menu.active .mobile-link:nth-child(2) { opacity: 1; transform: translateY(0); transition-delay: 0.08s; }
#mobile-menu.active .mobile-link:nth-child(3) { opacity: 1; transform: translateY(0); transition-delay: 0.16s; }

.mobile-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2.5rem;
  font-family: var(--font-inter);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--accent);
  opacity: 0;
  transition: opacity 0.4s ease 0.25s;
}

#mobile-menu.active .mobile-cta { opacity: 1; }

/* ============================================
   Hero
   ============================================ */
#hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  overflow: hidden;
  background: var(--bg);
}

#hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  opacity: 0;
  transform-origin: center center;
  will-change: transform;
}

#hero-content, #hero-glow, #scroll-indicator {
  will-change: opacity;
}

body.scroll-locked {
  overflow: hidden;
}

body.contact-open #header {
  transition: transform 0.3s ease !important;
}

#hero-glow {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  animation: border-glow-pulse 3s ease-in-out infinite;
}

#hero-grain {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

#hero-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 2.5rem 1.5rem;
}

@media (min-width: 1400px) {
  #hero-content {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    margin-top: auto;
    padding: 0 2.5rem 3rem;
    gap: 2.5rem;
  }
}

@media (min-width: 1024px) {
  #hero-content { padding: 0 3.5rem 3.5rem; }
}

/* Hero title */
#hero-title-wrap {
  position: relative;
  text-align: center;
  opacity: 0;
}

@media (min-width: 1400px) { #hero-title-wrap { text-align: left; } }

#hero-title, #hero-title-black h1 {
  font-family: var(--font-syne);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.03em;
  font-size: clamp(2.75rem, 9vw, 6.5rem);
  color: var(--text);
}

.hero-line { display: block; overflow: hidden; }
.hero-line-inner { display: block; }

#hero-title-black {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: none;
  clip-path: circle(0px at 50% 50%);
}

@media (min-width: 1400px) { #hero-title-black { display: block; } }

#hero-title-black h1 { color: #0A0A0A; }

/* Hero desc */
#hero-desc {
  font-family: var(--font-inter);
  font-weight: 300;
  font-size: clamp(0.875rem, 1.2vw, 1rem);
  line-height: 1.7;
  color: var(--text-secondary);
  text-align: center;
  max-width: 90%;
  opacity: 0;
}

@media (min-width: 1400px) {
  #hero-desc { text-align: left; max-width: 400px; }
}

/* Scroll indicator */
#scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: none;
  flex-direction: column;
  align-items: center;
  opacity: 0;
}

@media (min-width: 1400px) { #scroll-indicator { display: flex; } }

#scroll-line-track {
  width: 1px;
  height: 64px;
  background: rgba(85,85,85,0.3);
  overflow: hidden;
}

#scroll-line-fill {
  width: 100%;
  height: 100%;
  background: var(--accent);
  animation: scroll-line 2s ease-in-out infinite;
}

/* ============================================
   Manifesto Section
   ============================================ */

#manifesto {
  position: sticky;
  top: 0;
  display: none;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  background: var(--bg-elevated);
  padding: 5rem 1.5rem;
}

@media (min-width: 640px) { #manifesto { padding: 6rem 2rem; } }
@media (min-width: 768px) { #manifesto { padding: 6rem 2.5rem; } }
@media (min-width: 1024px) { #manifesto { padding: 6rem 3.5rem; } }

#manifesto-inner {
  max-width: 75rem;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.manifesto-item {
  opacity: 0;
}

.m-word {
  display: inline-block;
  white-space: nowrap;
}

.m-char {
  display: inline-block;
  opacity: 0;
  transition: opacity 0.15s ease;
}

#m-label {
  font-family: var(--font-inter);
  font-size: clamp(0.625rem, 1vw, 0.75rem);
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.manifesto-headline {
  font-family: var(--font-syne);
  font-weight: 700;
  font-size: clamp(2.25rem, 6vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text);
}

.manifesto-muted { color: var(--text-secondary) !important; margin-bottom: 2rem; }

.manifesto-sub {
  font-family: var(--font-inter);
  font-weight: 300;
  font-size: clamp(0.875rem, 1.5vw, 1.125rem);
  color: var(--text-muted);
  margin-bottom: 3rem;
}

.manifesto-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-inter);
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text);
  transition: opacity 0.3s ease;
}

.manifesto-cta:hover { opacity: 0.5; }
.manifesto-cta span { font-size: 1rem; }

/* ============================================
   Keyframes
   ============================================ */
@keyframes border-glow-pulse {
  0%, 100% { box-shadow: inset 0 0 0 2px rgba(0,229,204,0.15), inset 0 0 25px rgba(0,229,204,0.08); }
  50%       { box-shadow: inset 0 0 0 2px rgba(0,229,204,0.45), inset 0 0 40px rgba(0,229,204,0.22); }
}

@keyframes scroll-line {
  0%   { transform: translateY(-100%); opacity: 0; }
  30%  { opacity: 1; }
  70%  { opacity: 1; }
  100% { transform: translateY(100%); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================
   Section 3
   ============================================ */
  #section-3-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: #ffffff;
  background-image:
    radial-gradient(ellipse at 50% 50%, #ffffff 20%, transparent 70%),
    radial-gradient(circle, #00E5CC 1px, transparent 1px);
  background-size:
    300% 300%,
    24px 24px;
  background-position:
    0% 0%,
    0px 0px;
  animation: dots-wave 25s ease-in-out infinite;
}

@keyframes dots-wave {
  0%   { background-position: 0% 0%,   0px 0px; }
  25%  { background-position: 100% 50%, 0px 0px; }
  50%  { background-position: 50% 100%, 0px 0px; }
  75%  { background-position: 0% 50%,  0px 0px; }
  100% { background-position: 0% 0%,   0px 0px; }
}


#section-3 {
  overflow: hidden;
  position: relative;
  z-index: 10;
  background: white;
  min-height: 120vh;
  clip-path: polygon(0 60px, 100% 0, 100% 100%, 0 100%);
  margin-top: -60px;
  padding-top: 100px;
}

#slides-container {
  display: flex;
  width: 500vw;
  height: calc(100vh - 120px);
  transition: transform 0.8s cubic-bezier(0.16,1,0.3,1);
}

.slide {
  width: 100vw;
  height: 100%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide-test {
  font-family: var(--font-syne);
  font-size: clamp(4rem, 10vw, 8rem);
  font-weight: 700;
  color: #000000;
  opacity: 0.15;
}


#slides-progress {
  position: absolute;
  height: 50px;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 24px;
  background: var(--bg-elevated);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 10;
  display: flex;
  align-items: center;
}

#slides-progress-bar {
  height: 4px;
  width: 100%;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}

#slides-progress-bar::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: var(--progress, 20%);
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.8s cubic-bezier(0.16,1,0.3,1);
}

.slide-inner {
  display: flex;
  width: 100%;
  height: 100%;
  gap: 0;
  margin-top: 150px;
}

.slide-left {
  flex: 1;
  padding: 3rem 3rem 3rem 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow-y: hidden;
}

.slide-right {
  width: 45%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem;
}

.slide-title {
  font-family: var(--font-syne);
  font-size: clamp(1.5rem, 2.5vw, 2.5rem);
  font-weight: 700;
  color: #000;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.slide-accent {
  font-family: var(--font-inter);
  font-size: clamp(0.8rem, 1vw, 0.95rem);
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.slide-desc {
  font-family: var(--font-inter);
  font-size: clamp(0.75rem, 0.9vw, 0.875rem);
  font-weight: 300;
  color: rgba(0,0,0,0.5);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.slide-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.slide-card {
  position: relative;
  background: rgba(0,0,0,0.03);
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: 10px;
  padding: 1rem 1rem 1rem 1.25rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.3s ease, filter 0.3s ease, border-color 0.3s ease;
  overflow: hidden;
}

.slide-card .card-glow {
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,229,204,0.25), transparent 70%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.slide-cards:has(.slide-card:hover) .slide-card:not(:hover) {
  filter: blur(2px);
  opacity: 0.5;
}

.slide-card:hover {
  transform: scale(1.03);
  border-color: rgba(0,229,204,0.3);
}

.slide-card:hover .card-glow {
  opacity: 1;
}

.slide-card-bar {
  width: 24px;
  height: 2px;
  background: var(--accent);
  margin-bottom: 0.75rem;
}

.slide-card-num {
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  font-family: var(--font-syne);
  font-size: 1.5rem;
  font-weight: 700;
  color: rgba(0,0,0,0.06);
}

.slide-card h3 {
  font-family: var(--font-syne);
  font-size: 0.875rem;
  font-weight: 700;
  color: #000;
  margin-bottom: 0.5rem;
}

.slide-card p {
  font-family: var(--font-inter);
  font-size: 0.75rem;
  font-weight: 300;
  color: rgba(0,0,0,0.5);
  line-height: 1.5;
}

/* Carousel */

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
}

.slide-carousel {
  width: 100%;
  height: 100%;
  max-height: calc(100vh - 180px);
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  cursor: grab;
  user-select: none;
}

.slide-carousel:active { cursor: grabbing; }

.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.5s cubic-bezier(0.16,1,0.3,1);
}

.carousel-slide {
  min-width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-syne);
  font-size: 1.5rem;
  color: rgba(255,255,255,0.3);
  border-radius: 16px;
}

.carousel-dots {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: 0.75rem;
}

.carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(0,0,0,0.3);
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
}

.carousel-dot.active {
  background: #000000;
  transform: scale(1.3);
}

.slide2-images {
  display: flex;
  gap: 0.75rem;
  width: 100%;
  height: 100%;
  margin-top: 50px;
}

.slide2-img-large {
  flex: 1;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide2-img-large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.slide2-img-small-col {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}

.slide2-img-small {
  flex: 1;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide2-img-small img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.slide2-projects-card {
  position: relative;
  background: rgba(0,0,0,0.03);
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: 8px;
  padding: 1.25rem;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  width: 100%;
  margin-top: 0.75rem;
}

.slide2-projects-card .slide-card-num {
  color: rgba(0,0,0,0.06);
}

.slide2-projects-card h3 {
  font-family: var(--font-syne);
  font-size: 0.875rem;
  font-weight: 700;
  color: #000;
  margin-bottom: 0.75rem;
}

.slide2-projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem 2rem;
}

.slide2-projects-col {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.slide2-projects-col p {
  font-family: var(--font-inter);
  font-size: 0.75rem;
  color: rgba(0,0,0,0.5);
  line-height: 1.4;
}

.slide2-project-type {
  color: var(--accent);
  font-weight: 500;
}

.slide2-img-large img,
.slide2-img-small img {
  width: 100%;
  height: auto;
  object-fit: contain;
  pointer-events: none;
  transition: transform 0.5s ease;
}

.slide2-img-large:hover img,
.slide2-img-small:hover img {
  transform: scale(1.05);
}


.slide3-inner {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 2rem 3rem;
  gap: 1.5rem;
  overflow: hidden;
  margin-top: 150px;
}

.slide3-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.slide3-body {
  display: flex;
  gap: 3rem;
  flex: 1;
  align-items: center;
  justify-content: center;
  min-height: 0;
}

.slide3-cards-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: clamp(220px, 22vw, 360px);
  flex-shrink: 0;
}

.slide3-carousel-wrap {
  flex: none;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

#carousel-3 .carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.slide3-carousel-wrap .slide-carousel {
  aspect-ratio: 1 / 1;
  width: auto;
  height: clamp(320px, 38vh, 500px);
  max-height: 100%;
}

.slide3-cards-col:has(.slide-card:hover) .slide-card:not(:hover) {
  filter: blur(2px);
  opacity: 0.5;
}


.slide4-inner {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 1.5rem 3rem;
  gap: 1rem;
  overflow: hidden;
  margin-top: 150px;
}

.slide4-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}

.slide4-title {
  font-family: var(--font-syne);
  font-size: clamp(1.5rem, 2.5vw, 2.5rem);
  font-weight: 700;
  color: #000;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-align: center;
}

.slide4-images {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  flex: 1;
  min-height: 0;
}

.slide4-img {
  border-radius: 10px;
  overflow: hidden;
  height: 100%;
}

.slide4-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  transition: transform 0.5s ease;
}

.slide4-img:hover img {
  transform: scale(1.05);
}

#carousel-1 .carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.slide4-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.slide4-card {
  position: relative;
  border-radius: 10px;
  padding: 1rem 1rem 1rem 1.25rem;
}

.slide4-card-num {
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  font-family: var(--font-syne);
  font-size: 1.2rem;
  font-weight: 700;
  color: rgba(0,0,0,0.06);
}

.slide4-card h3 {
  font-family: var(--font-syne);
  font-size: 0.8rem;
  font-weight: 700;
  color: #000;
  margin-bottom: 0.4rem;
  margin-top: 0.5rem;
}

.slide4-card p {
  font-family: var(--font-inter);
  font-size: 0.72rem;
  font-weight: 300;
  color: rgba(0,0,0,0.5);
  line-height: 1.5;
}

.slide4-cards:has(.slide4-card:hover) .slide4-card:not(:hover) {
  filter: blur(2px);
  opacity: 0.5;
}

#marquee-wrap {
  width: 100%;
  overflow: hidden;
  padding: 2.5rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  margin-top: -75px;
  transform: skewY(-2deg);
  background: var(--bg-elevated);
  position: relative;
  z-index: 1;
}

#marquee-track {
  display: flex;
  align-items: center;
  gap: 5rem;
  width: max-content;
  animation: marquee 40s linear infinite;
  transform: skewY(2deg);
}

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

.marquee-item {
  height: 40px;
  width: 120px;
  object-fit: contain;
  object-position: center;
  opacity: 0.35;
  flex-shrink: 0;
  filter: invert(1);
  transition: opacity 0.3s ease, filter 0.3s ease;
}

.marquee-item:hover {
  opacity: 1;
  filter: invert(1);
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.slide5-3d-wrap {
  width: 550px;
  height: 550px;
  border-radius: 16px;
  overflow: visible;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

#morph-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

#morph-label {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-inter);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.3);
  white-space: nowrap;
  pointer-events: none;
}


/* ============================================
   Section 4
   ============================================ */
#section-4 {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: var(--bg);
  display: none;
  flex-direction: column;
  align-items: stretch;
  justify-content: stretch;
  opacity: 0;
  overflow: hidden;
  height: 100vh;
}

#contact-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

#contact-glow {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  animation: border-glow-pulse 3s ease-in-out infinite;
}

#back-to-s3 {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--text);
  font-family: var(--font-inter);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 8px 20px;
  border-radius: 999px;
  cursor: pointer;
  transition: opacity 0.3s ease;
  z-index: 600;
  backdrop-filter: blur(10px);
}
#back-to-s3:hover { opacity: 0.5; }

#contact-inner {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  height: 100%;
  padding: 5rem 4rem 2rem 4rem;
  gap: 5rem;
}

/* ── Gauche ── */
#contact-left {
  flex: 1;
  max-width: 65%;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

#contact-title {
  font-family: var(--font-syne);
  font-size: clamp(2rem, 4vw, 5rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.0;
  letter-spacing: -0.02em;
}

#contact-desc {
  font-family: var(--font-inter);
  font-size: 1rem;
  font-weight: 300;
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
  max-width: 500px;
}

/* ── Card formulaire ── */
#contact-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 2rem;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  gap: 44px;
}

.contact-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.contact-field { display: flex; flex-direction: column; gap: 0.4rem; }

.contact-input-wrap textarea {
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-family: var(--font-inter);
  font-size: 0.875rem;
  font-weight: 300;
  font-style: italic;
  width: 100%;
  resize: none;
  line-height: 1.6;
}

.contact-input-wrap textarea::placeholder {
  color: rgba(255,255,255,0.35);
  font-style: italic;
}

.contact-input-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  padding-bottom: 0.5rem;
  transition: border-color 0.3s ease;
}

.contact-input-wrap:focus-within {
  border-bottom-color: var(--accent);
}

.contact-bullet {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.contact-input-wrap input {
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-family: var(--font-inter);
  font-size: 0.875rem;
  font-weight: 300;
  font-style: italic;
  width: 100%;
}

.contact-input-wrap input::placeholder {
  color: rgba(255,255,255,0.35);
  font-style: italic;
}

/* Selects */
.contact-tag-label {
  font-family: var(--font-inter);
  font-size: 0.875rem;
  font-weight: 400;
  color: rgba(255,255,255,0.7);
  margin-bottom: 0.25rem;
}

.contact-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.contact-tag {
  background: none;
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.5);
  font-family: var(--font-inter);
  font-size: 12px;
  font-weight: 400;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.contact-tag:hover {
  border-color: rgba(255,255,255,0.4);
  color: var(--text);
}

.contact-tag.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #000;
  font-weight: 600;
}

/* Submit */
#contact-submit-wrap {
  padding-top: 0.5rem;
}

#contact-submit {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--text);
  font-family: var(--font-inter);
  font-size: 13px;
  font-weight: 400;
  padding: 12px 28px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.3s ease, border-color 0.3s ease;
  letter-spacing: 0.05em;
}

#contact-submit:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.5);
}

/* ── Droite : socials flottants ── */
#contact-socials {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  align-items: flex-start;
  flex-shrink: 0;
  margin-top: 180px;
}

.social-pill {
  display: flex;
  align-items: center;
  gap: 0;
  cursor: pointer;
  position: relative;
}

.social-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
  transition: background 0.3s ease, border-color 0.3s ease;
  z-index: 1;
}

.social-label {
  font-family: var(--font-inter);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
  max-width: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-width 1.5s cubic-bezier(0.16,1,0.3,1), opacity 0.3s ease, padding 0.3s ease;
  padding-left: 0;
}

.social-pill:hover .social-circle {
  background: rgba(0,229,204,0.15);
  border-color: var(--accent);
}

.social-pill:hover .social-label {
  max-width: 200px;
  opacity: 1;
  padding-left: 14px;
  padding-right: 20px;
}

.social-pill:hover {
  background: rgba(0,229,204,0.08);
  border-radius: 999px;
  border: 1px solid rgba(0,229,204,0.3);
  backdrop-filter: blur(10px);
}

/* Float animation — chaque cercle avec un décalage différent */
#social-phone {
  animation: float-1 3.5s ease-in-out infinite;
}
#social-email {
  animation: float-2 4s ease-in-out infinite;
}
#social-instagram {
  animation: float-3 3.2s ease-in-out infinite;
}
#social-calendar {
  animation: float-1 4.2s ease-in-out infinite;
  margin-top: 3rem;
}

@keyframes float-1 {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(1px, -2px); }
  66% { transform: translate(-1px, 1px); }
}
@keyframes float-2 {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(-2px, 1px); }
  66% { transform: translate(1px, -1px); }
}
@keyframes float-3 {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(1px, 2px); }
  66% { transform: translate(-1px, -1px); }
}

#contact-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 600;
  display: flex;
  justify-content: space-between;
  padding: 1rem 3.5rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-family: var(--font-inter);
  font-size: 11px;
  font-weight: 300;
  color: rgba(255,255,255,0.25);
  letter-spacing: 0.05em;
}

#pixel-overlay {
  position: fixed;
  inset: 0;
  z-index: 499;
  pointer-events: none;
  display: none;
}

.pixel-cell {
  position: absolute;
  background: var(--bg);
  opacity: 0;
}

/* ============================================
   RESPONSIVE — Tablette / petit desktop
   (768px – 1399px) : dezoom via JS zoom
   ============================================ */
/* Tablette & petit desktop couvert par le bloc max-width: 1399px ci-dessous */

/* ============================================
   RESPONSIVE — Mobile & Tablette (< 1400px)
   ============================================ */
@media (max-width: 1399px) {

  /* ── Global ── */
  html, body { overflow-x: hidden; }

  /* ── Header CTA : visible sur mobile aussi ── */
  #header-cta { display: flex; }
  #header-inner { padding: 1rem 1.25rem; }

  /* ── Hero ── */
  #hero-content {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 5.5rem 1.5rem 2.5rem;
    gap: 1.25rem;
    margin-top: 0;
  }

  #hero-title-wrap { text-align: center; }
  #hero-title, #hero-title-black h1 {
    font-size: clamp(2.25rem, 11vw, 3.25rem);
  }
  #hero-title-black { display: none; }

  #hero-desc {
    text-align: center;
    max-width: 90%;
    font-size: 0.875rem;
  }

  #scroll-indicator { display: none; }

  /* ── Manifesto ── */
  #manifesto { padding: 4rem 1.25rem 3rem; }
  .manifesto-headline { font-size: clamp(1.75rem, 7.5vw, 2.5rem); }

  /* ── Section 3 — layout vertical ── */
  #marquee-wrap { margin-top: 0 !important; }

  #section-3 {
    height: 100svh !important;
    min-height: unset !important;
    overflow: clip !important;
    clip-path: polygon(0 40px, 100% 0, 100% 100%, 0 100%);
    margin-top: -40px;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  #section-3-bg {
    background-size: 200% 200%, 16px 16px;
  }


  .marquee-item { height: 28px; width: 80px; }

  /* slides-container : scroll horizontal swipe touch */
  #slides-container {
    display: flex !important;
    flex-direction: row !important;
    width: calc(6 * 100vw) !important;
    height: 100% !important;
    touch-action: pan-y;
  }

  .slide {
    width: 100vw !important;
    height: 100% !important;
    min-height: unset !important;
    flex-shrink: 0 !important;
    display: block !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    touch-action: pan-y !important;
  }

  /* ══════════════════════════════════════════
     SLIDES — Layout mobile : texte centré + grand visuel
     ══════════════════════════════════════════ */

  /* ── Typographie : centrée, marges reset ── */
  .slide-title, .slide4-title {
    font-size: clamp(1.2rem, 5.5vw, 1.8rem) !important;
    text-align: center !important;
    line-height: 1.15 !important;
    margin: 0 !important;
  }
  .slide-accent {
    text-align: center !important;
    font-size: clamp(0.7rem, 3vw, 0.85rem) !important;
    letter-spacing: 0.06em !important;
    margin: 0 !important;
  }
  .slide-desc {
    text-align: center !important;
    font-size: clamp(0.72rem, 3vw, 0.85rem) !important;
    line-height: 1.5 !important;
    max-width: 100% !important;
    margin: 0 !important;
  }

  /* ── Masquer éléments desktop inutiles sur mobile ── */
  .slide3-cards-col,
  .slide2-projects-card,
  .slide2-images,
  .slide4-images { display: none !important; }

  /* ── Cards → carrousel horizontal sur mobile ── */
  .slide-cards,
  .slide4-cards,
  .slide3-cards-mobile {
    display: flex !important;
    flex-direction: row !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
    gap: 0.75rem !important;
    width: 100% !important;
    padding-bottom: 0.5rem !important;
    margin-bottom: 0 !important;
    scrollbar-width: none !important;
  }
  .slide-cards::-webkit-scrollbar,
  .slide4-cards::-webkit-scrollbar,
  .slide3-cards-mobile::-webkit-scrollbar { display: none !important; }

  .slide-cards .slide-card,
  .slide4-cards .slide4-card,
  .slide4-cards .slide-card,
  .slide3-cards-mobile .slide-card {
    flex-shrink: 0 !important;
    width: 78% !important;
    scroll-snap-align: start !important;
  }

  /* ── Afficher carrousels photo mobile-only ── */
  .slide2-carousel-mobile,
  .slide4-carousel-mobile {
    display: block !important;
    width: 100% !important;
  }
  .slide2-carousel-mobile .slide-carousel,
  .slide4-carousel-mobile .slide-carousel {
    width: 100% !important;
    border-radius: 16px !important;
    overflow: hidden !important;
  }

  /* ── Désactiver hover blur sur touch ── */
  .slide-cards:has(.slide-card:hover) .slide-card:not(:hover),
  .slide3-cards-mobile:has(.slide-card:hover) .slide-card:not(:hover),
  .slide4-cards:has(.slide4-card:hover) .slide4-card:not(:hover) {
    filter: none !important;
    opacity: 1 !important;
  }

  /* ════ Inners : flex colonne, centré ════ */
  .slide-inner,
  .slide3-inner,
  .slide4-inner {
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    padding: calc(72px + 0.75rem) 1.25rem 3rem !important;
    gap: 0.75rem !important;
    flex-grow: 1 !important;
    flex-shrink: 0 !important;
    height: auto !important;
    min-height: unset !important;
    overflow-y: visible !important;
    margin-top: 0 !important;
    width: 100% !important;
  }

  /* ════ Blocs texte communs ════ */
  .slide3-header,
  .slide4-header {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 0.4rem !important;
  }

  /* ════ Tous les slide-left / slide-right : jamais flex-grow ════ */
  .slide-left, .slide-right {
    flex: none !important;
    width: 100% !important;
    padding: 0 !important;
    height: auto !important;
    justify-content: flex-start !important;
  }

  /* ════ Hauteur responsive pour tous les carousels photo ════ */
  .slide-carousel {
    width: 100% !important;
    height: clamp(160px, calc(100svh - 510px), 340px) !important;
    border-radius: 16px !important;
    overflow: hidden !important;
  }

  /* ════ SLIDE 1 : slide-left=texte (haut), slide-right=carousel (bas) ════ */
  #slide-1 .slide-left {
    order: -1 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 0.4rem !important;
  }
  #slide-1 .slide-right { order: 1 !important; flex-direction: column !important; }

  /* ════ SLIDE 7 : slide-left=texte (haut), slide-right=carousel (bas) ════ */
  #slide-7 .slide-left {
    order: -1 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 0.4rem !important;
  }
  #slide-7 .slide-right { order: 1 !important; flex-direction: column !important; }

  /* ════ SLIDE 2 : slide-right=texte (haut), slide-left=carousel (bas) ════ */
  #slide-2 .slide-right {
    order: -1 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 0.4rem !important;
  }
  #slide-2 .slide-left { order: 1 !important; }

  /* ════ SLIDES 3 & 5 (slide3-inner) ════ */
  .slide3-body {
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: 100% !important;
    height: auto !important;
    flex: none !important;
    gap: 0.4rem !important;
  }
  #morph-label { display: none !important; }
  #slide-3 .slide3-carousel-wrap,
  #slide-5 .slide3-carousel-wrap {
    width: 100% !important;
    height: auto !important;
    order: 1 !important;
  }
  #slide-3 .slide3-carousel-wrap .slide-carousel {
    aspect-ratio: unset !important;
  }
  /* Slide 5 — 3D canvas */
  .slide5-3d-wrap {
    width: 100% !important;
    height: clamp(160px, calc(100svh - 510px), 320px) !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    border-radius: 20px !important;
    order: 1 !important;
  }

  /* ════ SLIDE 4 (slide4-inner) ════ */
  #slide-4 .slide4-cards { order: 1 !important; }
  #slide-4 .slide4-carousel-mobile { order: 2 !important; }

  /* ── Progress bar : visible en mobile ── */
  #slides-progress {
    display: flex !important;
    height: 36px !important;
    padding: 0 1.25rem !important;
  }

  /* ── Section 4 — Contact ── */
  #section-4 {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding-top: 4.5rem !important;
  }

  #contact-inner {
    flex-direction: column !important;
    padding: 1.5rem 1.25rem 2rem !important;
    gap: 2rem !important;
    align-items: flex-start !important;
    overflow-y: visible !important;
    height: auto !important;
    min-height: unset !important;
  }

  #contact-footer {
    position: relative !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
  }

  #contact-left {
    max-width: 100% !important;
    width: 100% !important;
    gap: 1rem !important;
  }

  #contact-title { font-size: clamp(1.75rem, 7vw, 2.5rem) !important; }
  #contact-desc { font-size: 0.875rem; }

  #contact-card {
    gap: 1.5rem !important;
    padding: 1.25rem !important;
  }

  .contact-row { grid-template-columns: 1fr !important; }

  /* Socials — rangée de bulles icônes, label masqué par défaut */
  #contact-socials {
    flex-direction: row !important;
    flex-wrap: wrap !important;
    margin-top: 0 !important;
    gap: 0.75rem !important;
    width: 100% !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
  }

  .social-pill {
    cursor: pointer !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 0 !important;
    transition: gap 0.25s ease, padding 0.25s ease, background 0.25s ease !important;
  }

  .social-circle {
    width: 48px !important;
    height: 48px !important;
    flex-shrink: 0 !important;
  }

  /* Label masqué par défaut sur mobile */
  .social-label {
    display: block !important;
    max-width: 0 !important;
    opacity: 0 !important;
    overflow: hidden !important;
    white-space: nowrap !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    font-size: 11px !important;
    transition: max-width 0.3s ease, opacity 0.25s ease, padding 0.25s ease !important;
  }

  /* État ouvert : pill cliquée */
  .social-pill.active {
    background: rgba(0,229,204,0.08) !important;
    border-color: rgba(0,229,204,0.3) !important;
    border-radius: 999px !important;
    gap: 0.5rem !important;
    padding-right: 1rem !important;
  }

  .social-pill.active .social-circle {
    background: rgba(0,229,204,0.12) !important;
    border-color: var(--accent) !important;
  }

  .social-pill.active .social-label {
    max-width: 180px !important;
    opacity: 1 !important;
    padding-left: 0 !important;
    color: var(--accent) !important;
  }


  /* Animations float conservées sur mobile */

  #social-calendar { margin-top: 0 !important; }

  #contact-footer {
    padding: 0.75rem 1.25rem !important;
    font-size: 10px !important;
  }

  #back-to-s3 {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    display: block !important;
    margin: 1.5rem auto 0 !important;
    font-size: 10px !important;
    padding: 6px 14px !important;
  }

  /* Back btn manifesto */
  #back-btn { margin-bottom: 2rem; }

  /* ── Social pills : touch feedback ── */
  .social-pill:active .social-circle {
    background: rgba(0,229,204,0.15);
    border-color: var(--accent);
  }

  /* ── Mobile menu nav links : taille agrandie pour le touch ── */
  #mobile-menu nav .nav-link {
    font-size: clamp(1.5rem, 6vw, 2rem);
    font-family: var(--font-syne);
    font-weight: 700;
    opacity: 1;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
    display: block;
    width: 100%;
    letter-spacing: -0.02em;
  }

  /* ── Marquee : vitesse conservée, taille adaptée ── */
  #marquee-track { gap: 3rem; }

  /* ── Manifesto : back btn bien visible ── */
  #back-btn { font-size: 11px; }

  /* ── CTA header mobile visible avec couleur ── */
  #header-cta {
    font-size: 12px;
    gap: 4px;
  }

  /* ── Pixel overlay (inchangé) ── */

} /* fin @media max-width: 1399px */

/* ── Éléments mobile-only : masqués sur desktop ── */
@media (min-width: 1400px) {
  .slide3-cards-mobile,
  .slide2-carousel-mobile,
  .slide4-carousel-mobile { display: none !important; }
}
/* ── Footer contact : liens légaux ── */
.contact-footer-links a {
  color: inherit;
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.2s ease, color 0.2s ease;
}
.contact-footer-links a:hover {
  opacity: 1;
  color: var(--accent, #00E5CC);
}
.contact-footer-sep {
  margin: 0 0.5rem;
  opacity: 0.4;
}

/* ── Mention RGPD sous le bouton submit ── */
#contact-rgpd {
  margin-top: 0.6rem;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 300;
  line-height: 1.5;
  color: rgba(245, 240, 235, 0.45);
  letter-spacing: 0.01em;
}
#contact-rgpd a {
  color: rgba(245, 240, 235, 0.7);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s ease;
}
#contact-rgpd a:hover {
  color: var(--accent, #00E5CC);
}

/* ============================================================
   CHAT WIDGET — Assistant VIZIOM (vocal Anthropic + ElevenLabs)
   Adapte de IAI24 avec couleurs VIZIOM (accent #00E5CC)
   ============================================================ */

.chat-widget__bubble {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--accent, #00E5CC);
  color: #0A0A0A;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9500;
  box-shadow: 0 4px 24px rgba(0, 229, 204, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.chat-widget__bubble:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 32px rgba(0, 229, 204, 0.45);
}

.chat-widget__panel {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 400px;
  height: 560px;
  background: #1a1a1a;
  border: 1px solid rgba(245, 240, 235, 0.1);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  z-index: 9500;
  overflow: hidden;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.5);
  animation: chatWidgetOpen 0.25s ease-out;
  font-family: 'Inter', system-ui, sans-serif;
}
@keyframes chatWidgetOpen {
  from { opacity: 0; transform: translateY(16px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Header */
.chat-widget__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: #222;
  border-bottom: 1px solid rgba(245, 240, 235, 0.08);
}
.chat-widget__header-info { display: flex; align-items: center; gap: 12px; }
.chat-widget__avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: transparent; /* le logo VIZIOM a deja son fond circulaire noir */
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.chat-widget__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}
.chat-widget__name {
  font-size: 15px; font-weight: 600;
  color: #F5F0EB;
}
.chat-widget__status {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px;
  color: rgba(245, 240, 235, 0.5);
}
.chat-widget__status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent, #00E5CC);
}
.chat-widget__header-actions { display: flex; align-items: center; gap: 8px; }
.chat-widget__voice-toggle,
.chat-widget__close {
  background: none; border: none;
  color: rgba(245, 240, 235, 0.5);
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}
.chat-widget__voice-toggle:hover,
.chat-widget__close:hover {
  color: #F5F0EB;
  background: rgba(245, 240, 235, 0.08);
}
.chat-widget__voice-toggle--active { color: var(--accent, #00E5CC); }

/* Messages */
.chat-widget__messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scrollbar-width: thin;
  scrollbar-color: rgba(245, 240, 235, 0.1) transparent;
}
.chat-widget__msg {
  max-width: 85%;
  animation: chatMsgIn 0.2s ease-out;
}
@keyframes chatMsgIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.chat-widget__msg--user { align-self: flex-end; }
.chat-widget__msg--bot  { align-self: flex-start; }
.chat-widget__msg-content {
  padding: 10px 16px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.5;
  word-break: break-word;
}
.chat-widget__msg--user .chat-widget__msg-content {
  background: var(--accent, #00E5CC);
  color: #0A0A0A;
  border-bottom-right-radius: 4px;
}
.chat-widget__msg--bot .chat-widget__msg-content {
  background: #2a2a2a;
  color: #F5F0EB;
  border-bottom-left-radius: 4px;
}
.chat-widget__msg-content a {
  color: var(--accent, #00E5CC);
  text-decoration: underline;
}
.chat-widget__msg--user .chat-widget__msg-content a {
  color: #0A0A0A;
  font-weight: 600;
}

/* Typing indicator */
.chat-widget__typing {
  display: flex;
  gap: 4px;
  padding: 12px 16px;
  align-self: flex-start;
}
.chat-widget__typing span {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(245, 240, 235, 0.3);
  animation: chatTyping 1.2s infinite;
}
.chat-widget__typing span:nth-child(2) { animation-delay: 0.15s; }
.chat-widget__typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes chatTyping {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.3; }
  30%           { transform: translateY(-6px); opacity: 1; }
}

/* Speaking indicator */
.chat-widget__speaking {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 8px 20px;
  background: #222;
  border-top: 1px solid rgba(245, 240, 235, 0.05);
}
.chat-widget__speaking-bars {
  display: flex; align-items: center; gap: 3px; height: 20px;
}
.chat-widget__speaking-bars span {
  width: 3px;
  border-radius: 2px;
  background: var(--accent, #00E5CC);
  animation: chatSpeakBar 0.8s infinite ease-in-out;
}
.chat-widget__speaking-bars span:nth-child(1) { height: 8px;  animation-delay: 0s; }
.chat-widget__speaking-bars span:nth-child(2) { height: 14px; animation-delay: 0.1s; }
.chat-widget__speaking-bars span:nth-child(3) { height: 20px; animation-delay: 0.2s; }
.chat-widget__speaking-bars span:nth-child(4) { height: 14px; animation-delay: 0.3s; }
.chat-widget__speaking-bars span:nth-child(5) { height: 8px;  animation-delay: 0.4s; }
@keyframes chatSpeakBar {
  0%, 100% { transform: scaleY(0.5); }
  50%      { transform: scaleY(1); }
}
.chat-widget__stop-audio {
  background: none;
  border: 1px solid rgba(245, 240, 235, 0.2);
  color: rgba(245, 240, 235, 0.6);
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 10px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}
.chat-widget__stop-audio:hover {
  color: #F5F0EB;
  border-color: #F5F0EB;
}

/* Input area */
.chat-widget__input-area {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #222;
  border-top: 1px solid rgba(245, 240, 235, 0.08);
}
.chat-widget__input {
  flex: 1;
  background: #1a1a1a;
  border: 1px solid rgba(245, 240, 235, 0.1);
  border-radius: 12px;
  padding: 10px 14px;
  color: #F5F0EB;
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s;
}
.chat-widget__input::placeholder { color: rgba(245, 240, 235, 0.3); }
.chat-widget__input:focus { border-color: var(--accent, #00E5CC); }

.chat-widget__mic,
.chat-widget__send {
  background: none; border: none;
  color: rgba(245, 240, 235, 0.4);
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  transition: color 0.15s, background 0.15s;
  flex-shrink: 0;
}
.chat-widget__mic:hover,
.chat-widget__send:hover {
  color: var(--accent, #00E5CC);
  background: rgba(0, 229, 204, 0.08);
}
.chat-widget__mic--active {
  color: #ff4444;
  animation: chatMicPulse 1s infinite;
}
@keyframes chatMicPulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.5; }
}
.chat-widget__send:disabled,
.chat-widget__mic:disabled { opacity: 0.3; cursor: not-allowed; }
.chat-widget__send:disabled:hover,
.chat-widget__mic:disabled:hover {
  color: rgba(245, 240, 235, 0.4);
  background: none;
}

/* Mobile fullscreen */
@media (max-width: 767px) {
  .chat-widget__bubble {
    bottom: 20px; right: 20px;
    width: 54px; height: 54px;
  }
  .chat-widget__panel {
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100%; height: 100%;
    border-radius: 0;
    border: none;
  }
}
