/* PINAPP â€” variables.css â€” Design System v5 â€” Pandora Â· Avatar Â· Cameron
   ColorimÃ©trie : Parc Avatar Disney (nuit) + Dylan Cole Avatar 3 (jour)
   Tempo musical : "The Light Always Returns" â€” Simon Franglen â€” 3.5s
   ================================================================= */

@import './css/fonts.css';
@import './css/pinapp-audit-harmony.css';
@import './css/pinapp-jour-waves.css';
@import './css/pinapp-biolume-cinematic.css';
@import './css/refonte-conformite.css';
@import './css/refonte-home.css';
@import './css/pinapp-cosmos-v1.css';
@import './css/pp-theme-toggle.css';

:root {
  /* COULEURS PANDORA */
  --teal: #00e5cc;
  --cyan-avatar: #00b4d8;
  --violet: #7b4fe8;
  --violet-pandora: #641490;
  --green: #39e075;
  --magenta: #c41e8c;
  --ambre: #ffb830;
  --or: #ffd080;

  /* Aliases rÃ©trocompatibilitÃ© */
  --accent-teal: #00e5cc;
  --accent-violet: #7b4fe8;
  --accent-green: #39e075;
  --accent-blue: #00b4d8;
  --accent-rose: #c41e8c;

  /* TEXTE â€” nuit */
  --text: #eef8ff;
  --text-primary: #eef8ff;
  --text-2: rgba(238, 248, 255, 0.78); /* â‰¥4.5:1 WCAG AA */
  --text-3: rgba(238, 248, 255, 0.55); /* secondaire â€” seuil raisonnable */
  --text-4: rgba(238, 248, 255, 0.45); /* tertiaire â€” â‰¥3:1 large text */

  /* FONDS — nuit : OLED + jungle (noir profond, pas gris bleuté) */
  --fond-nuit: #020807;
  --bg-deep: #010605;
  --fond-jour: #060d1f; /* jour — Océan Pandora (sombre eau) */

  /* GLASS NUIT — Apple : léger tint + transparence (le flou assure la lisibilité) */
  --glass: rgba(8, 26, 32, 0.38);
  --glass-nav: rgba(4, 16, 20, 0.55);
  --glass-card: rgba(6, 24, 30, 0.4);
  --glass-tag: rgba(4, 18, 22, 0.28);
  --glass-modal: rgba(2, 12, 16, 0.68);
  /* Ordre type Safari / vibrance vitre : saturate puis blur */
  --glass-blur: saturate(180%) blur(20px);
  --glass-blur-nav: saturate(180%) blur(24px);
  --glass-blur-thin: saturate(170%) blur(14px);
  --glass-edge: inset 0 1px 0 rgba(255, 255, 255, 0.14);
  --glass-edge-soft: inset 0 -1px 0 rgba(0, 0, 0, 0.08);
  --bg-card: rgba(6, 24, 30, 0.42);
  --bg-overlay: rgba(1, 10, 12, 0.52);
  --bg-primary: var(--fond-nuit);

  /* BORDERS NUIT — hairline + hint menthe (lisible sur OLED) */
  --border-card: rgba(255, 255, 255, 0.09);
  --border-subtle: rgba(72, 210, 195, 0.08);
  --border-input: rgba(90, 220, 200, 0.24);
  --separator: rgba(72, 210, 195, 0.07);

  /* OMBRES */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.22), 0 0 0 0.5px rgba(64, 200, 185, 0.11);
  --shadow-lg: 0 24px 48px rgba(0, 0, 0, 0.3), 0 0 0 0.5px rgba(64, 200, 185, 0.13);
  --shadow-xl: 0 40px 80px rgba(0, 0, 0, 0.38), 0 0 0 0.5px rgba(64, 200, 185, 0.15);
  --glow-teal:
    0 0 16px rgba(0, 229, 204, 0.55), 0 0 48px rgba(0, 229, 204, 0.28),
    0 0 96px rgba(0, 229, 204, 0.12);
  --glow-violet:
    0 0 20px rgba(123, 79, 232, 0.55), 0 0 56px rgba(123, 79, 232, 0.28),
    0 0 100px rgba(123, 79, 232, 0.12);
  --glow-teal-lg:
    0 0 24px rgba(0, 229, 204, 0.58), 0 0 72px rgba(0, 229, 204, 0.32),
    0 0 140px rgba(0, 229, 204, 0.14), 0 0 220px rgba(64, 200, 185, 0.08);
  --glow-green:
    0 0 16px rgba(57, 224, 117, 0.5), 0 0 48px rgba(57, 224, 117, 0.24),
    0 0 90px rgba(57, 224, 117, 0.1);

  /* BORDER RADIUS — base moderne (cartes / blocs) */
  --r-pill: 100px;
  --r-block: 26px;
  --r-widget: 28px;
  --r-input: 14px;
  --r-img: 20px;
  --radius-card: 16px;
  --radius-card-lg: 26px;
  --radius-input: 14px;

  /* TYPOGRAPHIE */
  --text-hero: clamp(44px, 7vw, 96px);
  --text-h1: clamp(32px, 5vw, 64px);
  --text-h2: clamp(22px, 3vw, 40px);
  --text-h3: clamp(17px, 2vw, 26px);
  --body: 16px;
  --label: 11px;
  --small: 13px;
  --text-legal: 11px;
  --font-body: var(--font-apple-sans);
  --font-display: var(--font-apple-display);
  --text-body: 1.0625rem; /* 17px â€” alignÃ© apple.com */
  --text-label: 0.6875rem; /* 11px */
  --text-cta: 0.9375rem; /* 15px */
  --radius-pill: 100px;
  --radius-modal: 20px;
  --r-lg: 16px;

  /* TIMING — arrière-plans plus lents (respiration Pandora) */
  --t-pandora: 5.5s ease-in-out infinite;
  --t-ascend: 20s ease-in-out infinite;
  --t-micro: 100ms cubic-bezier(0.25, 0.1, 0.25, 1); /* Apple min perceptible */
  --t-hover: 250ms cubic-bezier(0.25, 0.1, 0.25, 1); /* Apple sweet spot */
  --t-press: 100ms cubic-bezier(0.25, 0.1, 0.25, 1);
  --t-cordes: 600ms cubic-bezier(0.45, 0.05, 0.55, 0.95);
  --t-reveal: 700ms cubic-bezier(0.45, 0.05, 0.55, 0.95);
  --t-page: 400ms cubic-bezier(0.77, 0, 0.18, 1);
  --t-spring: 500ms cubic-bezier(0.16, 1, 0.3, 1); /* Spring Apple */
  --t-standard: 300ms cubic-bezier(0.25, 0.1, 0.25, 1);
  --t-enter: 500ms cubic-bezier(0.16, 1, 0.3, 1);
  --t-breathe: 6.5s ease-in-out infinite;
  --t-aurora: 28s ease-in-out infinite;

  /* Z-INDEX */
  --z-fond: 0;
  --z-content: 1;
  --z-card: 2;
  --z-sticky: 10;
  --z-overlay: 50;
  --z-nav: 100;
  --z-cursor: 9999;

  /* BARRES â€” vert Pandora */
  --bar: linear-gradient(90deg, #39e075, #00e5cc);
  --bar-glow: rgba(57, 224, 117, 0.28);

  /* ESPACEMENT â€” Ã©chelle compacte "pas trop de scroll" */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 44px;
  --space-7: 56px;
  --space-8: 72px;
  --space-9: 96px;
  --space-10: 128px;

  /* NAV — alignée verre (barre fixe / drawer) */
  --nav-bg: rgba(4, 16, 20, 0.55);
}

/* =====================================================
   MODE NUIT â€” dÃ©faut â€” Parc Avatar Disney
   ===================================================== */

/* =====================================================
   FOND PANDORA â€” Photo floue + couches vivantes
   ===================================================== */

body {
  background-color: var(--fond-nuit);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--text-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  max-width: 100vw;
  min-height: 100svh;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

/* Couche 1 â€” Photo Pandora floue en position fixe */
body::before {
  content: '';
  position: fixed;
  inset: -10%;
  z-index: 0;
  pointer-events: none;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.08);
  transition: filter 800ms ease;
  will-change: transform;
}

/* MODE NUIT â€” ForÃªt Pandora */
body:not(.mode-jour)::before {
  background-image: url('../assets/images/bg-pandora-nuit.png');
  /* Plus de lumière, moins de dérive bleue — tonalité sol bioluminescent */
  filter: blur(20px) saturate(128%) brightness(0.92) hue-rotate(-6deg);
}

/* Couche 2 â€” Overlay lisibilitÃ© */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  transition: background 600ms ease;
}
/* Aligné sur data-theme (défini dans le <head>) pour éviter un flash avant .mode-jour / .mode-nuit sur <body> */
html[data-theme='dark'] body::after {
  /* Nuit — Cosmos v1 : halos violet #7B2FBE + mint #2DD4BF sur fond #0A0A0A */
  background:
    radial-gradient(
      95% 50% at 50% -8%,
      rgba(123, 47, 190, 0.14) 0%,
      rgba(10, 10, 10, 0.25) 48%,
      rgba(5, 5, 5, 0.9) 100%
    ),
    radial-gradient(
      120% 70% at 50% 102%,
      rgba(45, 212, 191, 0.12) 0%,
      rgba(45, 180, 160, 0.05) 42%,
      rgba(8, 8, 8, 0.72) 100%
    ),
    radial-gradient(
      130% 85% at 50% 100%,
      rgba(91, 79, 232, 0.15) 0%,
      rgba(12, 12, 14, 0.4) 50%,
      rgba(0, 0, 0, 0.3) 100%
    ),
    radial-gradient(ellipse 55% 40% at 8% 12%, rgba(0, 229, 204, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse 50% 38% at 92% 88%, rgba(0, 229, 204, 0.06) 0%, transparent 48%),
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.35) 0%,
      rgba(14, 14, 16, 0.14) 45%,
      rgba(0, 0, 0, 0.55) 100%
    );
  animation: pinapp-biolume-field-dark 22s ease-in-out infinite alternate;
}
html[data-theme='light'] body::after {
  /* Jour — halos bioluminescence eau (cyan / indigo sur abyssal) */
  background:
    radial-gradient(95% 55% at 50% -5%, rgba(79, 195, 247, 0.14) 0%, transparent 48%),
    radial-gradient(85% 50% at 100% 20%, rgba(124, 77, 255, 0.16) 0%, transparent 52%),
    radial-gradient(90% 55% at 0% 80%, rgba(13, 71, 161, 0.14) 0%, transparent 55%),
    radial-gradient(ellipse 48% 36% at 50% 100%, rgba(127, 255, 234, 0.1) 0%, transparent 52%),
    linear-gradient(180deg, rgba(6, 13, 31, 0.35) 0%, transparent 45%, rgba(6, 13, 31, 0.55) 100%);
  animation: pinapp-biolume-field-light 24s ease-in-out infinite alternate;
}

/* Fallback si PNG absent */
@supports not (background-image: url('x.png')) {
  body:not(.mode-jour)::before {
    background: var(--fond-nuit);
  }
  body.mode-jour::before {
    background: var(--fond-jour);
  }
}

/* Espacement mobile encore plus compact */
@media (max-width: 767px) {
  :root {
    --space-6: 32px;
    --space-7: 40px;
    --space-8: 52px;
    --space-9: 64px;
    --space-10: 80px;
    --text-hero: clamp(28px, 8.5vw, 44px);
  }
  /* Photo fond â€” ajustement mobile */
  body:not(.mode-jour)::before {
    filter: blur(30px) saturate(120%) brightness(0.9) hue-rotate(-6deg);
    transform: scale(1.12);
  }
  body.mode-jour::before {
    filter: blur(30px) saturate(122%) brightness(0.8) hue-rotate(-8deg);
    transform: scale(1.12);
  }
}

/* =====================================================
   MODE JOUR â€” Dylan Cole Avatar 3 â€” coucher de soleil
   ===================================================== */

body.mode-jour,
html[data-theme='light'] body {
  background-color: var(--fond-jour);
  color-scheme: dark;
}

/* Fond jour détaillé : pandora-jour.css (::before + animations) */

/* Tokens jour */
body.mode-jour,
html[data-theme='light'] body {
  --text: #e3f2fd;
  --text-primary: #e3f2fd;
  --text-2: rgba(227, 242, 253, 0.78);
  --text-3: rgba(227, 242, 253, 0.52);
  --text-4: rgba(227, 242, 253, 0.34);
  --glass: rgba(230, 244, 255, 0.12);
  --glass-nav: rgba(6, 13, 31, 0.52);
  --glass-card: rgba(230, 244, 255, 0.14);
  --glass-blur: saturate(180%) blur(22px);
  --glass-blur-nav: saturate(180%) blur(26px);
  --glass-blur-thin: saturate(170%) blur(16px);
  --border-card: rgba(255, 255, 255, 0.14);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --teal: #4fc3f7;
  --accent-teal: #4fc3f7;
  --violet: #7c4dff;
  --accent-violet: #7c4dff;
  --green: #5eead4;
  --accent-green: #5eead4;
  --glow-violet: 0 0 24px rgba(124, 77, 255, 0.28), 0 0 56px rgba(124, 77, 255, 0.12);
  --nav-bg: rgba(6, 13, 31, 0.52);
  --bg-deep: #0d1b3e;
}

/* iOS Safari â€” position fixed marche mais scale doit rester */
@supports (-webkit-touch-callout: none) {
  body::before {
    transform: scale(1.12);
  }
}

/* =====================================================
   GLASSMORPHISM â€” cards + blocs
   ===================================================== */

.block,
.card,
[class*='card'],
.offre-card,
.etape-card,
.tech-card,
.form-card {
  background: var(--glass);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border-radius: var(--r-block);
  border: 0.5px solid var(--border-card);
  transform: translateZ(0);
  isolation: isolate;
  position: relative;
  overflow: hidden;
  box-shadow:
    var(--glass-edge, inset 0 1px 0 rgba(255, 255, 255, 0.14)),
    var(--glass-edge-soft, inset 0 -1px 0 rgba(0, 0, 0, 0.08)), var(--shadow-lg);
}

/* Reflet supÃ©rieur â€” verre */
.block::after,
.card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, transparent 100%);
  border-radius: var(--r-block) var(--r-block) 0 0;
  pointer-events: none;
  z-index: 0;
}

/* Hover doux â€” musical */
.block:hover,
.card:hover {
  transform: translateY(-3px) scale(1.005) translateZ(0);
  transition: all var(--t-hover);
}
.block:active,
.card:active {
  transform: scale(0.97) translateZ(0);
  transition: transform var(--t-micro);
}

/* =====================================================
   BLOCS SÃ‰MANTIQUES â€” dÃ©gradÃ©s Avatar
   ===================================================== */

.block-cyan {
  background:
    linear-gradient(
      135deg,
      rgba(0, 200, 180, 0.15) 0%,
      rgba(0, 229, 204, 0.08) 40%,
      transparent 70%
    ),
    rgba(6, 30, 32, 0.46);
  border-color: rgba(72, 210, 195, 0.2);
  box-shadow:
    inset 0 1px 0 rgba(0, 229, 204, 0.2),
    0 0 0 0.5px rgba(72, 210, 195, 0.12),
    var(--shadow-lg);
}
.block-violet {
  background:
    linear-gradient(
      135deg,
      rgba(90, 10, 150, 0.18) 0%,
      rgba(123, 79, 232, 0.09) 40%,
      transparent 70%
    ),
    rgba(8, 5, 20, 0.48);
  border-color: rgba(123, 79, 232, 0.2);
  box-shadow:
    inset 0 1px 0 rgba(123, 79, 232, 0.2),
    0 0 0 0.5px rgba(123, 79, 232, 0.12),
    var(--shadow-lg);
}
.block-vert {
  background:
    linear-gradient(
      135deg,
      rgba(0, 180, 100, 0.16) 0%,
      rgba(57, 224, 117, 0.08) 40%,
      transparent 70%
    ),
    rgba(0, 12, 8, 0.48);
  border-color: rgba(57, 224, 117, 0.2);
  box-shadow:
    inset 0 1px 0 rgba(57, 224, 117, 0.2),
    0 0 0 0.5px rgba(57, 224, 117, 0.12),
    var(--shadow-lg);
}
.block-ambre {
  background:
    linear-gradient(
      135deg,
      rgba(255, 160, 50, 0.16) 0%,
      rgba(255, 200, 80, 0.08) 40%,
      transparent 70%
    ),
    rgba(20, 10, 0, 0.48);
  border-color: rgba(255, 160, 50, 0.2);
}
.block-neutre {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

/* Hover sÃ©mantique */
.block-cyan:hover {
  box-shadow:
    inset 0 1px 0 rgba(0, 229, 204, 0.25),
    0 0 30px rgba(64, 200, 185, 0.2),
    var(--shadow-xl);
}
.block-violet:hover {
  box-shadow:
    inset 0 1px 0 rgba(123, 79, 232, 0.25),
    0 0 30px rgba(123, 79, 232, 0.18),
    var(--shadow-xl);
}
.block-vert:hover {
  box-shadow:
    inset 0 1px 0 rgba(57, 224, 117, 0.25),
    0 0 30px rgba(57, 224, 117, 0.18),
    var(--shadow-xl);
}

/* Mode jour — blocs Océan Pandora (override peut affiner) */
body.mode-jour .block-cyan,
html[data-theme='light'] .block-cyan {
  background:
    linear-gradient(
      135deg,
      rgba(79, 195, 247, 0.18) 0%,
      rgba(41, 182, 246, 0.08) 40%,
      transparent 70%
    ),
    rgba(13, 27, 62, 0.55);
  border-color: rgba(79, 195, 247, 0.24);
}
body.mode-jour .block-violet,
html[data-theme='light'] .block-violet {
  background:
    linear-gradient(
      135deg,
      rgba(124, 77, 255, 0.18) 0%,
      rgba(91, 79, 232, 0.08) 40%,
      transparent 70%
    ),
    rgba(13, 27, 62, 0.55);
  border-color: rgba(124, 77, 255, 0.22);
}

/* =====================================================
   LABELS â€” toujours teal
   ===================================================== */

.label {
  font-size: var(--label, 11px);
  font-weight: 500;
  letter-spacing: 0.08em; /* Apple : 0.06-0.08em max sur uppercase */
  text-transform: uppercase;
  color: var(--teal);
  display: block;
  margin-bottom: 12px;
}

/* =====================================================
   BOUTONS
   ===================================================== */

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px; /* HIG Apple minimum touch target */
  padding: 13px 32px;
  background: var(--violet, #7b4fe8);
  border-radius: var(--r-pill, 100px);
  color: #ffffff !important;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  border: none;
  cursor: pointer;
  text-align: center;
  transition:
    transform var(--t-hover),
    box-shadow var(--t-hover),
    opacity var(--t-hover);
  transform: translateZ(0);
  /* L'animation ambiante est rÃ©servÃ©e au CTA hero unique via .pinapp-breathe */
}

/* Animation ambiante â€” uniquement sur le CTA principal hero */
.pinapp-breathe {
  animation: kiri-soar 5.5s ease-in-out infinite;
}

@keyframes kiri-soar {
  0%,
  100% {
    transform: scale(1) translateY(0) translateZ(0);
    box-shadow:
      0 0 24px rgba(123, 79, 232, 0.38),
      0 0 40px rgba(0, 200, 185, 0.1);
  }
  50% {
    transform: scale(1.012) translateY(-2px) translateZ(0);
    box-shadow:
      0 0 40px rgba(123, 79, 232, 0.58),
      0 8px 32px rgba(123, 79, 232, 0.26),
      0 0 56px rgba(0, 210, 188, 0.14);
  }
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 32px;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--r-pill, 100px);
  color: rgba(238, 248, 255, 0.8) !important;
  font-size: 14px;
  text-decoration: none;
  text-align: center;
  transition: all var(--t-hover);
  transform: translateZ(0);
}

body.mode-jour .btn-secondary,
html[data-theme='light'] .btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(79, 195, 247, 0.32);
  color: rgba(227, 242, 253, 0.92) !important;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.35);
}

/* =====================================================
   INPUTS
   ===================================================== */

input,
textarea,
select {
  background: rgba(0, 20, 40, 0.5);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-input);
  border-radius: var(--r-input);
  padding: 14px 18px;
  font-family: var(--font-body);
  font-size: 16px; /* jamais moins â€” Safari zoom */
  color: var(--text);
  transition: all var(--t-hover);
  transform: translateZ(0);
  width: 100%;
  box-sizing: border-box;
}
input:focus,
textarea:focus,
select:focus {
  outline: none;
}
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  border-color: rgba(0, 229, 204, 0.55);
  box-shadow: 0 0 0 3px rgba(0, 229, 204, 0.12);
}
body.mode-jour input,
body.mode-jour textarea,
html[data-theme='light'] input,
html[data-theme='light'] textarea {
  background: rgba(6, 13, 31, 0.72);
  border-color: rgba(79, 195, 247, 0.28);
  color: #e3f2fd;
}

/* =====================================================
   BARRES DE PROGRESSION
   ===================================================== */

[class*='progress'],
.bar,
.progress-fill,
#progressBar,
.scroll-progress {
  background: var(--bar) !important;
  box-shadow: 0 0 12px var(--bar-glow);
  border-radius: 100px;
}

/* =====================================================
   NAV â€” glassmorphism Avatar
   ===================================================== */

nav,
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-nav, 100);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: all 300ms cubic-bezier(0.25, 0.1, 0.25, 1);
}
nav.scrolled,
.nav.scrolled {
  background: var(--glass-nav);
  -webkit-backdrop-filter: var(--glass-blur-nav);
  backdrop-filter: var(--glass-blur-nav);
  border-bottom: 0.5px solid var(--border-card);
}
body.mode-jour nav.scrolled,
html[data-theme='light'] nav.scrolled {
  background: var(--glass-nav);
  border-bottom: 0.5px solid var(--border-card);
}

/* =====================================================
   FOCUS + SELECTION
   ===================================================== */

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 4px;
}
::selection {
  background: rgba(0, 229, 204, 0.25);
  color: #eef8ff;
}
::-webkit-scrollbar {
  width: 4px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(64, 200, 185, 0.32);
  border-radius: 100px;
}

/* =====================================================
   MOBILE â€” backdrop-filter limitÃ©
   ===================================================== */

@media (max-width: 768px) {
  .block:not(:nth-child(-n + 3)),
  .card:not(:nth-child(-n + 3)) {
    -webkit-backdrop-filter: var(--glass-blur-thin);
    backdrop-filter: var(--glass-blur-thin);
    background: rgba(6, 26, 32, 0.5) !important;
  }
  body.mode-jour .block:not(:nth-child(-n + 3)),
  body.mode-jour .card:not(:nth-child(-n + 3)),
  html[data-theme='light'] .card:not(:nth-child(-n + 3)) {
    background: rgba(230, 244, 255, 0.16) !important;
  }
}

/* =====================================================
   SAFE AREA iOS
   ===================================================== */

@supports (padding: env(safe-area-inset-top)) {
  nav,
  .nav {
    padding-top: env(safe-area-inset-top);
  }
}

/* =====================================================
   TOUCH â€” pas de hover fantÃ´me
   ===================================================== */

@media (hover: none) {
  * {
    -webkit-tap-highlight-color: transparent;
  }
  .block:hover,
  .card:hover {
    transform: none;
  }
  .btn-primary:hover {
    transform: none;
  }
}

/* =====================================================
   REDUCED MOTION
   ===================================================== */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  canvas,
  .aurora-orb,
  .bio-particle,
  .holo-grid,
  .pandora-shape {
    display: none;
  }
}

/* =====================================================
   FALLBACK glassmorphism sans support
   ===================================================== */

@supports not (backdrop-filter: blur(1px)) {
  .block,
  .card {
    background: rgba(6, 28, 32, 0.88) !important;
  }
  nav.scrolled,
  .nav.scrolled {
    background: rgba(4, 16, 20, 0.92);
  }
  body.mode-jour .block,
  body.mode-jour .card,
  html[data-theme='light'] .block,
  html[data-theme='light'] .card {
    background: rgba(230, 244, 255, 0.88) !important;
  }
}

/* View transitions dÃ©finis dans animations.css */

/* =====================================================
   TABLETTE
   ===================================================== */

@media (min-width: 768px) and (max-width: 1024px) {
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr 1fr;
  }
  .split-section {
    flex-direction: column;
    gap: 64px;
  }
}

/* Pinapp refonte BLOC 1 — jour Océan Pandora : texte #E3F2FD (cosmos / override détaillent le reste) */
html[data-theme='light'] body {
  --text: #e3f2fd;
  --text-primary: #e3f2fd;
}
