﻿/* ============================================================
   PINAPP INC. — GLOBAL CSS V2
   Correctif complet · DA Pandora/Avatar · Apple glassmorphism
   Typo : pile Apple uniquement (SF Pro système — fonts.css)
   Scroll-snap fix Safari · Mode nuit défaut forcé
   Mode jour Avatar 2 renforcé · Emojis → SVG
   ============================================================ */

/* Import fonts */
@import url('/assets/css/pinapp-a11y-performance.css');
@import url('/assets/css/pp-chatbot.css');
@import url('/assets/css/fonts.css');
@import url('/assets/css/pinapp-audit-harmony.css');
@import url('/assets/css/pinapp-jour-waves.css');
@import url('/assets/css/pinapp-biolume-cinematic.css');
@import url('/assets/css/pinapp-neurodiversite.css');
@import url('/assets/css/pinapp-futur-cinema.css');
@import url('/assets/css/pinapp-loader-cinema.css');
@import url('/assets/css/pinapp-signature-ux.css');
@import url('/assets/css/pinapp-apple-polish.css');
@import url('/assets/css/pp-theme-toggle.css');

/* ── TOKENS NUIT (défaut absolu) ── */
:root {
  --bg: #080d18;
  --bg-card: rgba(255, 255, 255, 0.07);
  --bg-card-2: rgba(255, 255, 255, 0.1);
  /* Vitre Apple : saturation puis flou */
  --glass-blur: saturate(180%) blur(20px);
  --glass-blur-nav: saturate(180%) blur(24px);
  --glass-blur-menu: saturate(180%) blur(28px);
  --glass-blur-widget: saturate(180%) blur(12px);
  --glass-edge: inset 0 1px 0 rgba(255, 255, 255, 0.14);
  --glass-edge-soft: inset 0 -1px 0 rgba(0, 0, 0, 0.1);
  --text: #f0f8ff;
  --text-muted: rgba(240, 248, 255, 0.72);
  --text-soft: rgba(240, 248, 255, 0.35);
  --accent: #00e5cc;
  --accent-2: #9b6dff;
  --accent-3: #7fffea;
  --accent-4: #e040fb;
  --nacre: #e8f4f8;
  --card-border: rgba(255, 255, 255, 0.09);
  --card-border-2: rgba(0, 229, 176, 0.12);
  --separator: rgba(0, 229, 176, 0.06);
  --shadow: rgba(0, 0, 0, 0.25);
  --shadow-lg: rgba(0, 0, 0, 0.4);
  --btn-cta-bg: rgba(91, 60, 180, 0.85);
  --btn-cta-bd: rgba(179, 136, 255, 0.3);
  --btn-ghost-bd: rgba(255, 255, 255, 0.12);
  --max-w: 1280px;
  --pad-d: 80px;
  --pad-t: 40px;
  --pad-m: 20px;
  --radius: 20px;
  --radius-sm: 12px;
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-in: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --font-sans: var(--font-apple-sans);
  --font-display: var(--font-apple-display);
}

/* ── TOKENS JOUR — Eau Avatar 2 renforcée ── */
[data-theme='light'] {
  --bg: #061e22;
  --bg-card: rgba(230, 252, 255, 0.11);
  --bg-card-2: rgba(6, 40, 46, 0.55);
  --text: #f0fffd;
  --text-muted: rgba(240, 255, 253, 0.72);
  --text-soft: rgba(240, 255, 253, 0.35);
  --accent: #7fffea;
  --accent-2: #c4b5fd;
  --accent-3: #ffffff;
  --accent-4: #a78bfa;
  --nacre: #e8f4f8;
  --card-border: rgba(255, 255, 255, 0.14);
  --card-border-2: rgba(196, 181, 253, 0.14);
  --separator: rgba(127, 255, 234, 0.08);
  --shadow: rgba(0, 0, 0, 0.3);
  --shadow-lg: rgba(0, 0, 0, 0.5);
  --btn-cta-bg: rgba(109, 40, 217, 0.85);
  --btn-cta-bd: rgba(196, 181, 253, 0.35);
  --btn-ghost-bd: rgba(127, 255, 234, 0.2);
}

/* ── RESET ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  -webkit-font-smoothing: antialiased;
  text-size-adjust: 100%;
  scroll-behavior: auto;
}

/* MODE NUIT FORCÉ PAR DÉFAUT */
html:not([data-theme]) {
  color-scheme: dark;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  overflow-x: hidden;
  transition:
    background 0.6s var(--ease),
    color 0.4s var(--ease);
  min-height: 100dvh;
}

/* ── SCROLL SNAP — FIX SAFARI ── */
.snap-container {
  height: 100dvh;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: none;
}
.snap-section {
  min-height: 100dvh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  align-items: center;
  position: relative;
  /* Fix nav fixe 64px */
  padding: 84px 0 48px;
  z-index: 1;
}
@media (max-width: 768px) {
  .snap-section {
    padding: 80px 0 40px;
  }
}

/* ── CANVAS PARTICULES NUIT ── */
#canvas-pandora {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.75;
  transition: opacity 0.6s var(--ease);
}
[data-theme='light'] #canvas-pandora {
  opacity: 0;
  pointer-events: none;
}

/* ── FOND JOUR — EAU AVATAR 2 RENFORCÉE ── */
.caustics {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.7s var(--ease);
}
[data-theme='light'] .caustics {
  opacity: 1;
}

.caustics span {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  mix-blend-mode: screen;
  animation: caustic-drift linear infinite;
}
.caustics span:nth-child(1) {
  width: 70vw;
  height: 70vw;
  background: rgba(0, 229, 176, 0.18);
  top: -30%;
  left: -20%;
  animation-duration: 14s;
}
.caustics span:nth-child(2) {
  width: 50vw;
  height: 50vw;
  background: rgba(127, 255, 234, 0.12);
  top: 20%;
  right: -20%;
  animation-duration: 10s;
  animation-delay: -4s;
}
.caustics span:nth-child(3) {
  width: 40vw;
  height: 40vw;
  background: rgba(255, 255, 255, 0.08);
  bottom: -15%;
  left: 25%;
  animation-duration: 16s;
  animation-delay: -8s;
}
.caustics span:nth-child(4) {
  width: 30vw;
  height: 30vw;
  background: rgba(196, 181, 253, 0.08);
  top: 50%;
  left: 40%;
  animation-duration: 12s;
  animation-delay: -2s;
}

@keyframes caustic-drift {
  0% {
    transform: translate(0, 0) scale(1) rotate(0deg);
  }
  25% {
    transform: translate(4vw, -5vh) scale(1.08) rotate(3deg);
  }
  50% {
    transform: translate(-3vw, 4vh) scale(0.95) rotate(-2deg);
  }
  75% {
    transform: translate(2vw, -2vh) scale(1.04) rotate(1deg);
  }
  100% {
    transform: translate(0, 0) scale(1) rotate(0deg);
  }
}

/* Surface eau animée — mode jour */
.water-surface {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.7s var(--ease);
  background: repeating-linear-gradient(
    -55deg,
    transparent 0px,
    transparent 88px,
    rgba(127, 255, 234, 0.015) 88px,
    rgba(127, 255, 234, 0.015) 90px
  );
  animation: water-drift 8s ease-in-out infinite;
}
[data-theme='light'] .water-surface {
  opacity: 1;
}

@keyframes water-drift {
  0%,
  100% {
    background-position: 0 0;
  }
  50% {
    background-position: 20px 20px;
  }
}

/* Reflets surface */
.water-reflets {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 30vh;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.7s var(--ease);
  background: linear-gradient(180deg, rgba(127, 255, 234, 0.06) 0%, transparent 100%);
  animation: reflets-pulse 4s ease-in-out infinite;
}
[data-theme='light'] .water-reflets {
  opacity: 1;
}
@keyframes reflets-pulse {
  0%,
  100% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
}

/* ── Mode jour — atmosphère type Avatar / biolume (plus de caractère vs nuit) ── */
[data-theme='light'] body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 100% 72% at 50% -18%, rgba(127, 255, 234, 0.16), transparent 58%),
    radial-gradient(ellipse 52% 48% at 96% 38%, rgba(196, 181, 253, 0.11), transparent 52%),
    radial-gradient(ellipse 58% 44% at 4% 78%, rgba(167, 139, 250, 0.09), transparent 48%);
  animation: jour-biolume 18s ease-in-out infinite alternate;
}
@keyframes jour-biolume {
  0% {
    opacity: 0.72;
    filter: saturate(1);
  }
  100% {
    opacity: 1;
    filter: saturate(1.12);
  }
}

/* ── NAV DOTS ── */
.nav-dots {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.nav-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-soft);
  border: none;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  padding: 0;
}
.nav-dot.active {
  background: var(--accent);
  transform: scale(1.7);
  box-shadow: 0 0 8px var(--accent);
}
@media (max-width: 768px) {
  .nav-dots {
    display: none;
  }
}

/* ── NAV PRINCIPALE ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  z-index: 100;
  background: rgba(8, 13, 24, 0.58);
  -webkit-backdrop-filter: var(--glass-blur-nav);
  backdrop-filter: var(--glass-blur-nav);
  border-bottom: 0.5px solid var(--separator);
  transition:
    transform 0.3s var(--ease),
    background 0.5s;
}
[data-theme='light'] .nav {
  background: rgba(6, 28, 34, 0.48);
  -webkit-backdrop-filter: var(--glass-blur-nav);
  backdrop-filter: var(--glass-blur-nav);
}
.nav.hidden {
  transform: translateY(-100%);
}

/* Mobile : ne pas masquer toute la barre au scroll (sinon plus d’accès au menu burger) */
@media (max-width: 900px) {
  .nav.hidden {
    transform: none;
  }
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-d);
}
@media (max-width: 768px) {
  .nav__inner {
    padding: 0 var(--pad-m);
  }
}

.nav__logo {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.02em;
}
.nav__logo span {
  color: var(--nacre);
}

.nav__menu {
  display: flex;
  gap: 4px;
  list-style: none;
  position: relative;
}
.nav__item {
  position: relative;
}
.nav__link {
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 12px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
  transition:
    color 0.2s,
    background 0.2s;
}
@media (hover: hover) {
  .nav__link:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.05);
  }
}

.nav__dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: rgba(8, 13, 24, 0.52);
  -webkit-backdrop-filter: var(--glass-blur-menu);
  backdrop-filter: var(--glass-blur-menu);
  border: 0.5px solid var(--card-border);
  border-radius: 14px;
  padding: 8px;
  min-width: 220px;
  max-height: min(72vh, 520px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  z-index: 200;
  box-shadow:
    var(--glass-edge),
    0 16px 40px rgba(0, 0, 0, 0.35);
}
[data-theme='light'] .nav__dropdown {
  background: rgba(6, 28, 34, 0.42);
}
.nav__item:hover .nav__dropdown {
  display: block;
}
.nav__dropdown a {
  display: block;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: 8px;
  transition:
    color 0.2s,
    background 0.2s;
}
@media (hover: hover) {
  .nav__dropdown a:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.05);
  }
}
.nav__dropdown-label {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 8px 14px 4px;
  display: block;
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav__theme {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 229, 176, 0.08);
  border: 1px solid var(--card-border);
  color: var(--accent);
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.2s,
    transform 0.2s;
}
@media (hover: hover) {
  .nav__theme:hover {
    background: rgba(0, 229, 176, 0.15);
    transform: rotate(20deg);
  }
}
.nav__cta {
  font-size: 12px;
  padding: 9px 18px;
  background: var(--btn-cta-bg);
  border: 1px solid var(--btn-cta-bd);
  border-radius: 100px;
  color: var(--text);
  text-decoration: none;
  -webkit-backdrop-filter: var(--glass-blur-widget);
  backdrop-filter: var(--glass-blur-widget);
  letter-spacing: 0.04em;
  white-space: nowrap;
  transition:
    opacity 0.2s,
    transform 0.2s;
}
@media (hover: hover) {
  .nav__cta:hover {
    opacity: 0.85;
    transform: translateY(-1px);
  }
}

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav__burger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  border-radius: 1px;
  transition:
    transform 0.3s var(--ease),
    opacity 0.3s;
}
.nav__burger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav__burger.open span:nth-child(2) {
  opacity: 0;
}
.nav__burger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Drawer mobile amélioré */
.nav__drawer {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(6, 8, 20, 0.55);
  -webkit-backdrop-filter: var(--glass-blur-menu);
  backdrop-filter: var(--glass-blur-menu);
  z-index: 99;
  flex-direction: column;
  padding: 32px var(--pad-m) 40px;
  overflow-y: auto;
  border-top: 0.5px solid var(--separator);
}
[data-theme='light'] .nav__drawer {
  background: rgba(4, 18, 22, 0.48);
}
.nav__drawer.open {
  display: flex;
}

.nav__drawer-section {
  margin-bottom: 28px;
}
.nav__drawer-label {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
  display: block;
}
.nav__drawer a {
  font-size: 18px;
  color: var(--text-muted);
  text-decoration: none;
  display: block;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition:
    color 0.2s,
    padding-left 0.2s;
}
@media (hover: hover) {
  .nav__drawer a:hover {
    color: var(--text);
    padding-left: 8px;
  }
}

/* STORYBOARD dans drawer */
.drawer-story {
  margin-top: auto;
  padding-top: 28px;
  border-top: 1px solid var(--separator);
}
.drawer-story-title {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 16px;
  display: block;
}
.drawer-story-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.drawer-story-card {
  background: var(--bg-card);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 16px;
  text-decoration: none;
  transition:
    transform 0.2s,
    border-color 0.2s;
}
@media (hover: hover) {
  .drawer-story-card:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
  }
}
.drawer-story-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
}
.drawer-story-name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.drawer-story-role {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.4;
}
.drawer-story-full {
  transition: color 0.2s var(--ease);
}
@media (hover: hover) {
  .drawer-story-full:hover {
    color: var(--accent-2) !important;
  }
}

@media (max-width: 900px) {
  .nav__menu,
  .nav__cta {
    display: none;
  }
  .nav__burger {
    display: flex;
  }
}

/* ── PROGRESS ── */
#progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-4));
  z-index: 200;
  transition: width 0.1s linear;
}

/* ── CURSEUR AVEC TRAÎNÉE ── */
#cursor {
  width: 20px;
  height: 20px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition:
    transform 0.1s var(--ease),
    opacity 0.2s,
    border-color 0.3s,
    width 0.3s,
    height 0.3s;
  mix-blend-mode: difference;
  opacity: 0;
}
#cursor-trail {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(0, 229, 176, 0.2);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition:
    left 0.15s var(--ease),
    top 0.15s var(--ease),
    opacity 0.2s;
  opacity: 0;
}
@media (hover: hover) {
  #cursor {
    opacity: 1;
  }
  #cursor-trail {
    opacity: 1;
  }
}
#cursor.active {
  width: 36px;
  height: 36px;
  border-color: var(--accent-2);
}

/* ── CONTAINER ── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-d);
  width: 100%;
}
@media (max-width: 1024px) {
  .container {
    padding: 0 var(--pad-t);
  }
}
@media (max-width: 390px) {
  .container {
    padding: 0 var(--pad-m);
  }
}

/* ── CARDS GLASS ── */
.card {
  background: var(--bg-card);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 0.5px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow:
    var(--glass-edge),
    var(--glass-edge-soft),
    0 8px 32px var(--shadow);
  position: relative;
  overflow: hidden;
  transition:
    transform 0.3s var(--ease),
    box-shadow 0.3s var(--ease),
    border-color 0.3s;
}
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(
    135deg,
    rgba(0, 229, 176, 0.03) 0%,
    rgba(179, 136, 255, 0.02) 50%,
    rgba(232, 244, 248, 0.01) 100%
  );
}
@media (hover: hover) {
  .card:hover {
    transform: translateY(-4px);
    box-shadow:
      var(--glass-edge),
      var(--glass-edge-soft),
      0 24px 64px var(--shadow-lg);
    border-color: rgba(0, 229, 176, 0.15);
  }
}

/* Card accent */
.card--accent {
  border-color: rgba(0, 229, 176, 0.15);
}
.card--violet {
  border-color: rgba(179, 136, 255, 0.15);
}
.card--nacre {
  border-color: rgba(232, 244, 248, 0.15);
}

/* ── TYPOGRAPHIE ── */
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  text-wrap: balance;
  line-height: 1.05;
}
.label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  display: block;
  margin-bottom: 16px;
}

/* Typewriter hero */
.typewriter {
  overflow: hidden;
  border-right: 2px solid var(--accent);
  white-space: nowrap;
  animation:
    typewriter 2s steps(40, end) 0.5s forwards,
    blink 0.75s step-end infinite;
  width: 0;
}
@keyframes typewriter {
  to {
    width: 100%;
  }
}
@keyframes blink {
  0%,
  100% {
    border-color: var(--accent);
  }
  50% {
    border-color: transparent;
  }
}

/* ── SHIMMER ── */
.shimmer {
  background: linear-gradient(
    90deg,
    var(--text) 0%,
    var(--accent-3) 25%,
    var(--accent-2) 50%,
    var(--nacre) 75%,
    var(--text) 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 5s linear infinite;
}
@keyframes shimmer {
  0% {
    background-position: 200% center;
  }
  100% {
    background-position: -200% center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .shimmer {
    animation: none !important;
    background: none !important;
    -webkit-text-fill-color: var(--accent);
    color: var(--accent);
  }
}

/* ── BOUTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 100px;
  font-size: 13px;
  letter-spacing: 0.05em;
  font-family: var(--font-sans);
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition:
    opacity 0.2s,
    transform 0.2s var(--ease-spring);
  border: none;
}
.btn--primary {
  background: var(--btn-cta-bg);
  border: 1px solid var(--btn-cta-bd);
  color: var(--text);
  -webkit-backdrop-filter: var(--glass-blur-widget);
  backdrop-filter: var(--glass-blur-widget);
}
.btn--ghost {
  background: transparent;
  border: 1px solid var(--btn-ghost-bd);
  color: var(--text-muted);
}
.btn--nacre {
  background: rgba(232, 244, 248, 0.08);
  border: 1px solid rgba(232, 244, 248, 0.2);
  color: var(--nacre);
}
@media (hover: hover) {
  .btn:hover {
    opacity: 0.85;
    transform: translateY(-2px) scale(1.01);
  }
  .btn--ghost:hover {
    color: var(--text);
    border-color: var(--accent);
  }
}

/* ── SVG ICONS ── */
.icon-svg {
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  color: var(--accent);
  flex-shrink: 0;
}
.icon-svg--violet {
  color: var(--accent-2);
}
.icon-svg--nacre {
  color: var(--nacre);
}

/* ── LISTES ── */
.checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 16px 0;
}
.checklist li {
  font-size: 14px;
  color: var(--text-muted);
  padding-left: 20px;
  position: relative;
  line-height: 1.5;
}
.checklist li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent);
}
.crosslist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 12px 0;
}
.crosslist li {
  font-size: 13px;
  color: var(--text-muted);
  padding-left: 20px;
  position: relative;
}
.crosslist li::before {
  content: '×';
  position: absolute;
  left: 0;
  color: #ff6b6b;
  font-weight: 700;
}

/* ── ANIMATIONS ── */
.anim-fade,
.anim-up,
.anim-scale,
.anim-left,
.anim-right {
  opacity: 0;
  transition:
    opacity 0.8s var(--ease-in),
    transform 0.8s var(--ease-in);
}
.anim-up {
  transform: translateY(32px);
}
.anim-scale {
  transform: scale(0.93);
}
.anim-left {
  transform: translateX(-32px);
}
.anim-right {
  transform: translateX(32px);
}
.anim-fade.visible,
.anim-up.visible,
.anim-scale.visible,
.anim-left.visible,
.anim-right.visible {
  opacity: 1;
  transform: none;
}

/* ── BADGE ÉTUDE ── */
.study-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(0, 229, 176, 0.08);
  border: 1px solid rgba(0, 229, 176, 0.15);
  border-radius: 6px;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

/* ── OFFRE CARDS ── */
.offre-card {
  padding: 32px;
}
.offre-label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 12px;
  display: block;
}
.offre-title {
  font-size: 24px;
  margin-bottom: 14px;
  line-height: 1.1;
}
.offre-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 18px;
  line-height: 1.7;
}
.offre-reste {
  font-size: 15px;
  font-style: italic;
  color: var(--accent-3);
  margin: 14px 0;
  padding-left: 16px;
  border-left: 2px solid var(--accent);
  line-height: 1.5;
}
.offre-gain {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 700;
  color: var(--accent);
  margin: 14px 0 2px;
}
.offre-gain-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 18px;
}
.offre-price {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  color: var(--nacre);
  margin-bottom: 4px;
}
.offre-delai {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

/* ── PACK DUO ── */
.pack-duo {
  border-color: rgba(232, 244, 248, 0.18);
  background: rgba(232, 244, 248, 0.03);
}
.pack-duo-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: rgba(232, 244, 248, 0.1);
  border: 1px solid rgba(232, 244, 248, 0.22);
  border-radius: 100px;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--nacre);
  margin-bottom: 14px;
}
.pack-duo-economy {
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 20px;
}

/* ── GRAPHIQUES ── */
.bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  height: 120px;
}
.bar-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
}
.bar {
  width: 100%;
  border-radius: 6px 6px 0 0;
  background: linear-gradient(180deg, var(--accent) 0%, rgba(0, 229, 176, 0.3) 100%);
  transition: height 1.4s var(--ease-in);
  position: relative;
}
.bar-val {
  position: absolute;
  top: -22px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
}
.bar-label {
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-align: center;
}
.chart-title {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 20px;
}
.donut-wrap {
  display: flex;
  align-items: center;
  gap: 24px;
}
.donut-legend {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.donut-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
}
.donut-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.curve-legend {
  display: flex;
  gap: 16px;
  margin-top: 12px;
}
.curve-leg-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-muted);
}
.curve-leg-line {
  width: 16px;
  height: 2px;
  border-radius: 1px;
}

/* ── SÉLECTEUR SECTEUR ── */
.sector-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}
.sector-btn {
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 12px;
  letter-spacing: 0.06em;
  border: 1px solid var(--card-border);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s var(--ease);
  font-family: var(--font-sans);
}
.sector-btn.active {
  background: var(--btn-cta-bg);
  border-color: var(--btn-cta-bd);
  color: var(--text);
}

/* ── CAROUSEL PORTFOLIO MICHA ── */
.carousel-wrap {
  position: relative;
  overflow: hidden;
}
.carousel-track {
  display: flex;
  gap: 16px;
  transition: transform 0.5s var(--ease);
  will-change: transform;
}
.carousel-item {
  flex: 0 0 280px;
  height: 200px;
  background: var(--bg-card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition:
    transform 0.3s var(--ease),
    border-color 0.3s;
}
@media (hover: hover) {
  .carousel-item:hover {
    transform: scale(1.02);
    border-color: var(--accent);
  }
}
.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.85) contrast(1.05) saturate(0.9);
}
.carousel-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 2px dashed rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
}
.carousel-placeholder-icon {
  font-size: 28px;
  opacity: 0.4;
}
.carousel-placeholder-label {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.5;
}
.carousel-item-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 16px;
  background: linear-gradient(0deg, rgba(8, 13, 24, 0.9) 0%, transparent 100%);
  font-size: 12px;
  color: var(--text);
  letter-spacing: 0.04em;
}
.carousel-controls {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  justify-content: flex-end;
}
.carousel-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--card-border);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s var(--ease);
  font-size: 14px;
}
@media (hover: hover) {
  .carousel-btn:hover {
    color: var(--text);
    border-color: var(--accent);
  }
}

/* Catégories carousel */
.carousel-cats {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.carousel-cat {
  padding: 5px 12px;
  border-radius: 100px;
  font-size: 11px;
  border: 1px solid var(--card-border);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s var(--ease);
  font-family: var(--font-sans);
}
.carousel-cat.active {
  background: rgba(127, 255, 234, 0.1);
  border-color: rgba(127, 255, 234, 0.25);
  color: var(--accent-3);
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  -webkit-backdrop-filter: saturate(140%) blur(16px);
  backdrop-filter: saturate(140%) blur(16px);
}
.lightbox.open {
  display: flex;
}
.lightbox-inner {
  max-width: 90vw;
  max-height: 90vh;
  position: relative;
}
.lightbox-inner img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: 12px;
}
.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: var(--text);
  font-size: 24px;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.lightbox-close:hover {
  opacity: 1;
}

/* ── AURORA MOCK ── */
.aurora-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-2);
  border-radius: 50%;
  animation: pulse 3s ease-in-out infinite;
}
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.4;
    transform: scale(0.7);
  }
}

/* ── ÉTUDE CITÉE ── */
.etude-cite {
  display: flex;
  gap: 12px;
  padding: 16px 20px;
  background: rgba(0, 229, 176, 0.04);
  border: 1px solid rgba(0, 229, 176, 0.1);
  border-radius: var(--radius-sm);
  margin: 16px 0;
}
.etude-cite-bar {
  width: 3px;
  background: var(--accent);
  border-radius: 2px;
  flex-shrink: 0;
}
.etude-cite-text {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  font-style: italic;
}
.etude-cite-source {
  font-size: 11px;
  color: var(--text-soft);
  margin-top: 4px;
}

/* ── LEVIER PSYCHO ── */
.urgence-banner {
  padding: 12px 20px;
  background: linear-gradient(90deg, rgba(224, 64, 251, 0.1) 0%, rgba(179, 136, 255, 0.08) 100%);
  border: 1px solid rgba(224, 64, 251, 0.15);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 20px 0;
}
.urgence-dot {
  width: 6px;
  height: 6px;
  background: var(--accent-4);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

/* ── EU AI ACT BADGE ── */
.ai-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  background: rgba(179, 136, 255, 0.08);
  border: 1px solid rgba(179, 136, 255, 0.15);
  border-radius: 4px;
  font-size: 10px;
  color: var(--accent-2);
  letter-spacing: 0.06em;
}

/* ── FORMATION CARD ── */
.formation-card {
  padding: 28px;
}
.formation-level {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
  display: block;
}
.formation-title {
  font-size: 20px;
  margin-bottom: 8px;
  line-height: 1.2;
}
.formation-subtitle {
  font-size: 13px;
  font-style: italic;
  color: var(--accent-2);
  margin-bottom: 12px;
}
.formation-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 16px;
}
.formation-format {
  font-size: 11px;
  color: var(--text-soft);
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}
.formation-price {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--nacre);
  margin-bottom: 16px;
}

/* ── PRICING MICHA ── */
.pricing-table {
  width: 100%;
  border-collapse: collapse;
}
.pricing-table th {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  text-align: left;
  padding: 8px 12px;
  border-bottom: 1px solid var(--separator);
}
.pricing-table td {
  font-size: 14px;
  color: var(--text-muted);
  padding: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  vertical-align: top;
}
.pricing-table td:last-child {
  font-family: var(--font-display);
  color: var(--nacre);
  font-weight: 700;
  white-space: nowrap;
}
.pricing-table tr:hover td {
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
}

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--separator);
  padding: 60px 0 40px;
  position: relative;
  z-index: 1;
}
.footer__brand {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.footer__brand span {
  color: var(--nacre);
}
.footer__tagline {
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  margin-bottom: 24px;
}
.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 24px;
}
.footer__links a {
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.2s;
}
@media (hover: hover) {
  .footer__links a:hover {
    color: var(--accent);
  }
}
.footer__legal {
  font-size: 11px;
  color: rgba(240, 248, 255, 0.22);
}
.footer__ai-badge {
  margin-top: 12px;
}

/* ── SKIP LINK ── */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--accent);
  color: #000;
  padding: 8px 16px;
  border-radius: 4px;
  z-index: 9999;
  font-size: 14px;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 8px;
}

/* ── LINK ARROW ── */
.link-arrow {
  font-size: 13px;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s var(--ease);
}
@media (hover: hover) {
  .link-arrow:hover {
    gap: 10px;
  }
}

/* ── PLACEHOLDERS DEV ── */
.placeholder-block {
  border: 2px dashed rgba(255, 165, 0, 0.3);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  color: rgba(255, 165, 0, 0.6);
  font-size: 12px;
  letter-spacing: 0.08em;
  font-family: var(--font-apple-mono);
  background: rgba(255, 165, 0, 0.03);
}

/* Encarts médias harmonisés (glisser WebP / carousel / embed) */
.pinapp-asset-slot {
  border: 1px dashed rgba(0, 229, 176, 0.28);
  border-radius: var(--radius);
  min-height: 168px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.35rem 1.1rem;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  background: var(--bg-card);
  transition:
    border-color 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
}
[data-theme='light'] .pinapp-asset-slot {
  border-color: rgba(127, 255, 234, 0.38);
  background: rgba(6, 40, 46, 0.45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

/* Nuit Inc. — halos bioluminescents (parité avec le Studio) */
html[data-theme='dark'] body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 88% 52% at 50% -6%, rgba(0, 229, 204, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse 45% 40% at 0% 75%, rgba(179, 136, 255, 0.1) 0%, transparent 48%),
    radial-gradient(ellipse 50% 42% at 100% 25%, rgba(123, 79, 232, 0.09) 0%, transparent 50%),
    radial-gradient(ellipse 70% 50% at 50% 100%, rgba(0, 229, 204, 0.06) 0%, transparent 55%);
  animation: pinapp-biolume-field-dark 22s ease-in-out infinite alternate;
}

/* Mode jour : relief + biolume */
[data-theme='light'] body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.95;
  background:
    radial-gradient(ellipse 72% 48% at 50% 100%, rgba(167, 139, 250, 0.1), transparent 56%),
    radial-gradient(ellipse 55% 40% at 8% 18%, rgba(127, 255, 234, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse 50% 38% at 92% 82%, rgba(79, 195, 247, 0.09) 0%, transparent 48%);
  animation:
    jour-horizon 22s ease-in-out infinite alternate,
    pinapp-biolume-field-light 26s ease-in-out infinite alternate;
}
@keyframes jour-horizon {
  0% {
    opacity: 0.42;
    transform: translateY(0);
  }
  100% {
    opacity: 0.78;
    transform: translateY(-8px);
  }
}
[data-theme='light'] .card {
  transition:
    transform 0.4s var(--ease),
    box-shadow 0.4s var(--ease),
    border-color 0.35s var(--ease);
}
@media (hover: hover) {
  [data-theme='light'] .card:hover {
    transform: translateY(-3px);
    box-shadow:
      0 18px 48px rgba(0, 0, 0, 0.38),
      0 0 0 1px rgba(127, 255, 234, 0.14);
  }
}
[data-theme='light'] .nav__logo {
  filter: drop-shadow(0 0 18px rgba(127, 255, 234, 0.14));
}
[data-theme='light'] .nav-dot.active {
  box-shadow:
    0 0 10px var(--accent),
    0 0 22px rgba(196, 181, 253, 0.35);
}

/* SEO / accessibilité : titre principal réservé aux lecteurs d’écran */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Réassurance offres (bandeau sous nav) */
.pinapp-garantie-bar {
  display: block;
  text-align: center;
  font-size: 0.8125rem;
  line-height: 1.55;
  padding: 0.65rem 1rem;
  margin: 0 auto;
  max-width: 56rem;
  color: rgba(240, 248, 255, 0.88);
  background: rgba(0, 229, 176, 0.08);
  border: 1px solid rgba(0, 229, 176, 0.22);
  border-radius: 12px;
}
[data-theme='light'] .pinapp-garantie-bar {
  color: rgba(10, 37, 32, 0.88);
  background: rgba(0, 180, 150, 0.1);
  border-color: rgba(0, 180, 150, 0.22);
}
.pinapp-faq-offre {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(179, 136, 255, 0.12);
}
.pinapp-faq-offre h2 {
  font-size: 1.15rem;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}
.pinapp-faq-offre details {
  border: 1px solid rgba(179, 136, 255, 0.12);
  border-radius: 12px;
  padding: 0.65rem 0.85rem;
  margin-bottom: 0.5rem;
  background: rgba(255, 255, 255, 0.03);
}
.pinapp-faq-offre summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
}
.pinapp-faq-offre p {
  margin: 0.5rem 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.55;
}
