
/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* ─── TOKENS ─── */
:root {
  --lp-bg: #0a0a0c;
  --lp-text: #f0ede6;
  --lp-sub: #888880;
  --lp-border: #333330;

  --app-bg: #F7F5EF;
  --app-bg2: #FAF9F5;
  --app-text: #111110;
  --app-sub: #6B6B6B;
  /* >>> Opacité du texte des courtes descriptions d'app (0 → 1) <<< */
  --hero-desc-opacity: 0.90;
  --app-border: #E0DDD5;
  --app-accent: #C8A84B;

  --nav-h: 60px;
}

/* Lightbox */
.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  cursor: zoom-out;
}

.lightbox-overlay.active {
  display: flex;
}

.lightbox-overlay img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  cursor: default;
}

.screenshots-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  row-gap: 72px;
  column-gap: 40px;
  margin-top: 40px;
  text-align: center;
}

/* Ligne 1 : les 6 images iPhone/Android sur une seule ligne, pleine largeur */
.screenshots-grid .screenshot-column--full {
  grid-column: 1 / -1;
  grid-template-columns: repeat(6, 1fr);
}
.screenshot-column--full img {
  width: 100%;
}

/* Mini-grid interne */
.screenshot-column {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 1fr au lieu de auto */
  gap: 8px;
  justify-items: center;
  min-width: 0; /* Empêche le débordement du grid */
}



/* Titre sur toute la largeur */
.screenshot-column h3 {
  grid-column: 1 / -1;
  margin-bottom: 22px;
}

.screenshot-column img {
  max-width: 100%; /* S'adapte à la colonne, pas de valeur fixe */
  width: 180px;   /* Taille souhaitée, mais bornée par max-width */
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

/* Images watchOS plus grosses */
.watchos img {
  max-width: 220px; /* Ajuste ici */
}

.watchos {
  align-content: start;
}

/* Variante 2 images (ex. watchOS Iota) */
.screenshot-column--duo {
  grid-template-columns: repeat(2, 1fr);
}

/* Colonne rapport : une seule image centrée, pleine largeur de sa colonne */
.screenshot-column--single {
  grid-template-columns: 1fr;
  justify-items: center;
  align-items: start;
}
.screenshot-column--single img {
  width: 100% !important;
  max-width: 100% !important;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}



body {
  min-width: 0;
  overflow-x: hidden;
}

.lightbox-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.15);
  border: none;
  color: white;
  font-size: 3rem;
  padding: 12px 20px;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.2s;
  line-height: 1;
}

.lightbox-btn:hover {
  background: rgba(255,255,255,0.3);
}

.lightbox-btn.prev { left: 24px; }
.lightbox-btn.next { right: 24px; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--lp-bg);
  color: var(--lp-text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

/* ─── RTL SUPPORT ─── */
[dir="rtl"] { font-family: 'Inter', 'Noto Sans Arabic', sans-serif; }

/* ─── NAV ─── */
nav {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  background: rgba(26,26,26,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--lp-border);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  cursor: default;
  pointer-events: none;
  flex: 1;
  
}
.nav-logo img {
  height: 26px;
  width: auto;
  opacity: 0.9;
  flex-shrink: 0;
}
/* Le SVG alpha est noir : on l'inverse (blanc) uniquement sur les headers sombres */
#main-nav:not(.nav-light) .nav-logo img { filter: invert(1); }
.nav-logo-text {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #6B6B6B;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  justify-content: flex-end;
}


/* ─── NAV TABS ─── */
.nav-tabs {
  display: flex;
  gap: 20px;
  align-items: center;
  flex: 3;
  justify-content: center;
}
.nav-tab {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--app-sub);
  text-decoration: none;
  cursor: pointer;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
  white-space: nowrap;
}
/* Hamburger (mobile only) */
.nav-hamburger {
  display: none;
  order: 3;
  flex: 0 0 auto;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: 4px;
  color: inherit;
}
.nav-hamburger svg { display: block; }
nav.nav-light .nav-hamburger { color: #111110; }
nav:not(.nav-light) .nav-hamburger { color: rgba(255,255,255,0.85); }
.nav-tab:hover {
  color: var(--app-text);
  border-bottom-color: var(--app-text);
}
.nav-tab.active {
  color: var(--app-text);
  border-bottom-color: var(--app-text);
}

/* ─── PAGES ─── */
.page { display: none; }
.page.active { display: block; }

/* ════════════════════════════════════════════
   HUB PAGE — LIMINAL PICTURES (new design)
════════════════════════════════════════════ */
/* ─── HUB PAGE (light split-panel design) ─── */
#page-hub {
  background: #F7F5EF;
  min-height: 100vh;
  flex-direction: column;
  font-family: 'DM Sans', sans-serif;
  -webkit-font-smoothing: antialiased;
}
#page-hub.active {
  display: flex;
}

/* ─── Hub Nav ─── */
.hub-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: var(--nav-h);
  border-bottom: 1px solid #E0DDD5;
  background: rgba(247,245,239,0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  flex-shrink: 0;
  position: relative;
  z-index: 100;
}
.hub-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}
.hub-brand img {
  height: 26px;
  width: auto;
  opacity: 0.9;
  flex-shrink: 0;
}
.hub-brand-text {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #111110;
}

/* ─── Hub Panels ─── */
.hub-panels {
  display: flex;
  flex: 1;
  min-height: 0;
}
.hub-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 48px;
  cursor: pointer;
  transition: flex 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              background 0.25s ease;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  animation: fadeUp 0.5s ease both;
}
.hub-panel--psyscale {
  background: #F7F5EF;
  animation-delay: 0.05s;
}
.hub-panel--psyscale:hover {
  flex: 1.08;
  background: #F0EDE6;
}
.hub-panel--mu {
  background: #F3F0EA;
  animation-delay: 0.1s;
}
.hub-panel--mu:hover {
  flex: 1.08;
  background: #EDE9E0;
}
.hub-panel--tau {
  background: #F5F2EB;
  animation-delay: 0.15s;
}
.hub-panel--tau:hover {
  flex: 1.08;
  background: #EFEBE2;
}
.hub-panel--iota {
  background: #F1EEE7;
  animation-delay: 0.2s;
}
.hub-panel--iota:hover {
  flex: 1.08;
  background: #EBE7DE;
}
.hub-divider {
  width: 1px;
  background: #E0DDD5;
  align-self: stretch;
  flex-shrink: 0;
}

/* ─── Panel inner ─── */
.panel-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  max-width: 320px;
}
.panel-icon {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  background: #F7F5EF;
  border: 1px solid #E0DDD5;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.panel-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
}
.hub-panel:hover .panel-icon {
  box-shadow: 0 4px 16px rgba(0,0,0,0.07);
}
.panel-meta {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.panel-type {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #6B6B6B;
  margin-bottom: 10px;
}
.panel-name {
  font-size: 38px;
  font-weight: 400;
  color: #111110;
  line-height: 0.95;
  margin-bottom: 20px;
}
.panel-name--sans {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
}
.panel-desc {
  font-size: 13px;
  color: #6B6B6B;
  line-height: 1.75;
  font-weight: 300;
  margin-bottom: 0;
  /* Hauteur réservée = 2 lignes. Garantit que icône + plateforme + nom
     restent alignés sur les 4 panneaux quelle que soit la largeur d'écran
     ou la langue. Une description plus longue déborde vers le bas sans
     rien décaler (c'est le dernier élément du bloc). */
  height: calc(13px * 1.75 * 2);
  overflow: visible;
}

/* ─── Hub Footer ─── */
.hub-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 40px;
  height: 52px;
  border-top: 1px solid #E0DDD5;
  flex-shrink: 0;
  animation: fadeUp 0.5s 0.15s ease both;
}


/* ════════════════════════════════════════════
   APP PAGES — SHARED (warm parchment)
════════════════════════════════════════════ */
.app-shell {
  background: var(--app-bg);
  color: var(--app-text);
  min-height: 100vh;
  font-family: 'DM Sans', sans-serif;
}

.app-nav {
  position: sticky;
  top: 0; z-index: 200;
  height: var(--nav-h);
  background: rgba(247,245,239,0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--app-border);
  display: flex;
  align-items: center;
  padding: 0 40px;
  gap: 20px;
}
.app-back {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--app-sub);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color 0.15s;
}
.app-back:hover { color: var(--app-text); }
.app-back svg { width: 14px; height: 14px; }

.app-nav-divider {
  width: 1px;
  height: 16px;
  background: var(--app-border);
  flex-shrink: 0;
}

/* ─── HERO APP ─── */
.app-hero {
  padding: 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  border-bottom: 1px solid var(--app-border);
  min-height: 420px;
}
.app-hero-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--app-sub);
  margin-bottom: 18px;
}
.app-hero-title {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--app-text);
  margin-bottom: 16px;
}

.app-hero-desc {
  font-size: 15px;
  color: var(--app-sub);
  line-height: 1.75;
  font-weight: 300;
  margin-bottom: 36px;
  max-width: 400px;
}

/* Courtes descriptions d'app (Mu. / Iota. / Tau. / Psi.) : noir + opacité */
.hero-free-desc { color: rgba(0,0,0,var(--hero-desc-opacity)) !important; }
.hero-free-desc strong { color: rgba(0,0,0,var(--hero-desc-opacity)) !important; font-weight: 600 !important; }

/* ─── STORE BUTTONS ─── */
.store-btns {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: flex-start;
}
.store-btn-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.store-min-req {
  font-size: 10px;
  color: var(--app-sub);
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  opacity: 0.7;
  padding-left: 2px;
  margin: 0;
}

.store-btn--disabled,
.tau-app .store-btn--disabled {
  pointer-events: none;
  cursor: default;
  opacity: 0.60;
  filter: grayscale(100%);
}
.store-btn--disabled:hover,
.tau-app .store-btn--disabled:hover {
  background: #111;
  border-color: #333;
}

/* ─── BADGES OFFICIELS DES STORES (SVG) ───────────────────────────────
   Tous les badges sont calés sur une même hauteur de boîte (--badge-h).
   Les SVG n'ont pas de résolution : ils remplissent simplement la hauteur
   de leur boîte, quelle que soit la langue. Les 3 variables ci-dessous
   permettent un ajustement optique si besoin (1 = hauteur exacte). */
:root{
  --badge-h: 48px;             /* hauteur commune à TOUS les badges */
  --badge-scale-apple: 1;      /* Apple, toutes langues */
  --badge-scale-apple-fr: 1;   /* Apple FR uniquement (SVG de gabarit différent) */
  --badge-scale-google: 1;     /* Google, calé exactement sur la hauteur d'Apple */
}
.store-badge{
  display:inline-flex; align-items:center; justify-content:center;
  height:var(--badge-h);
  padding:0 !important; border:0 !important; background:transparent !important;
  border-radius:0; text-decoration:none; transition:opacity .2s;
}
.store-badge:hover,
.tau-app .store-badge:hover{
  background:transparent !important; border:0 !important; opacity:.82;
}
.store-badge img{ display:block; width:auto; height:100%; }
.store-badge--apple img{ height:calc(100% * var(--badge-scale-apple)); }
.store-badge--apple img[src*="Apple_FR"]{ height:calc(100% * var(--badge-scale-apple-fr)); }
.store-badge--google img{ height:calc(100% * var(--badge-scale-google)); }
.store-badge.store-btn--disabled,
.tau-app .store-badge.store-btn--disabled{
  pointer-events:none; cursor:default; opacity:.55; filter:grayscale(100%);
  background:transparent !important; border:0 !important;
}

/* ─── APP HERO RIGHT ─── */
.app-hero-right {
  display: flex;
  align-items: center;
  justify-content: center;
}
.app-hero-icon-large {
  width: 180px;
  height: 180px;
  border-radius: 45px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,0.12);
}
.app-hero-icon-large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ─── APP SECTION ─── */
.app-section {
  padding: 56px 80px;
  border-bottom: 1px solid var(--app-border);
}
/* La dernière section précède le footer, qui a déjà son border-top */
.app-section:last-of-type,
.tau-app .app-section:last-of-type { border-bottom: none; }
/* Filet de sécurité : le footer chevauche toute bordure restante -> un seul trait */
.app-footer { margin-top: -1px; }
.app-section-title {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.015em;
  color: var(--app-text);
  margin-bottom: 28px;
}



#page-psyscale-contact .app-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
#page-psyscale-contact .app-section {
  flex: 1;
}

#page-psyscale-donate .app-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
#page-psyscale-donate .app-section {
  flex: 1;
}

/* Scroll offset for anchor links */
#section-about,
#section-legal,
#section-support,
#section-contact {
  scroll-margin-top: 40px;
}


/* FEATURE GRID */
.feat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--app-border);
  border: 1px solid var(--app-border);
  border-radius: 10px;
  overflow: hidden;
}
.feat-grid--5 { grid-template-columns: repeat(5, 1fr); }
.feat-card {
  background: var(--app-bg2);
  padding: 22px 20px;
}
.feat-icon { font-size: 18px; margin-bottom: 10px; }
.feat-label { font-size: 13px; font-weight: 500; color: var(--app-text); margin-bottom: 4px; }
.feat-desc { font-size: 12px; color: var(--app-sub); line-height: 1.5; }

.copyright-list {
  font-size: 15px;
  color: var(--app-text);
  line-height: 1.75;
  font-weight: 300;
  max-width: 800px;

  margin-left: 30px; /* décalage vers la droite */
  padding-left: 10px; /* optionnel */
}

.copyright-list li {
  margin-bottom: 8px; /* espace entre les lignes */
}


/* ─── APP FOOTER ─── */
.app-footer {
  border-top: 1px solid var(--app-border);
  padding: 24px 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--app-bg);
}
.app-footer-brand {
  display: flex;
  align-items: center;
  gap: 6px;
}
.app-footer-icon {
  width: 20px; height: 20px;
  border-radius: 5px;
  overflow: hidden;
}
.app-footer-icon img { width: 100%; height: 100%; object-fit: cover; }
.app-footer-name {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--app-text);
}
.app-footer-copy { font-size: 11px; color: var(--app-sub); }


/* ─── PSYSCALE ABOUT PROSE ─── */
.ps-about-prose {
  max-width: 760px;
}
.ps-about-prose p {
  font-size: 14.5px;
  color: var(--app-text);
  line-height: 1.8;
  font-weight: 300;
  margin-bottom: 20px;
}
.ps-about-prose p:last-child { margin-bottom: 0; }

/* ─── PSYSCALE TESTS PAGE ─── */
.psyscale-tests-header {
  margin-bottom: 28px;
}
.psyscale-tests-title {
  font-family: 'Inter', sans-serif;
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--app-text);
  margin-bottom: 6px;
}
.psyscale-tests-subtitle {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: var(--app-sub);
}
.psyscale-tests-search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--app-bg2);
  border: 1px solid var(--app-border);
  border-radius: 10px;
  margin-bottom: 32px;
  color: var(--app-sub);
}
.psyscale-tests-search input {
  flex: 1;
  border: none;
  background: transparent;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: var(--app-text);
  outline: none;
}
.psyscale-tests-search input::placeholder { color: var(--app-sub); }

/* Scale category section */
.ps-category-section { margin-bottom: 28px; }
.ps-category-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.ps-category-bar {
  width: 4px;
  height: 18px;
  border-radius: 3px;
}
.ps-category-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--app-sub);
}
/* Scale card grid */
.ps-scale-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}
.ps-scale-card {
  background: var(--app-bg2);
  border: 1px solid var(--app-border);
  border-radius: 12px;
  padding: 18px;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
  position: relative;
  overflow: hidden;
}
.ps-scale-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
}
.ps-scale-card:hover {
  border-color: var(--app-border);
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.ps-scale-card-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--app-text);
  margin-bottom: 2px;
}
.ps-scale-card-sub {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  color: var(--app-sub);
  margin-bottom: 10px;
}
.ps-scale-card-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.ps-pill {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 20px;
  background: var(--app-bg);
  color: var(--app-sub);
  border: 1px solid var(--app-border);
}

/* ─── LEGAL PAGE ─── */
#page-legal {
  background: #0a0a0c;
  color: var(--lp-text);
  font-family: 'Inter', sans-serif;
}
.legal-header {
  padding: 80px;
  padding-top: calc(var(--nav-h) + 48px);
  border-bottom: 1px solid var(--lp-border);
}
.legal-header h1 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 36px;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.legal-header p {
  font-size: 14px;
  color: var(--lp-sub);
}
.legal-prose {
  padding: 64px 80px;
  max-width: 800px;
}
.legal-prose h2 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--lp-text);
  margin: 40px 0 12px;
  padding-top: 40px;
  border-top: 1px solid var(--lp-border);
}
.legal-prose h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.legal-prose h3 { font-size: 13px; font-weight: 600; margin: 20px 0 6px; color: var(--lp-text); }
.legal-prose p {
  font-size: 14px;
  color: var(--lp-sub);
  line-height: 1.8;
  margin-bottom: 12px;
}
.legal-prose ul { margin: 8px 0 16px 20px; }
.legal-prose li {
  font-size: 14px;
  color: var(--lp-sub);
  line-height: 1.7;
  margin-bottom: 6px;
}
.legal-prose a { color: var(--lp-text); }

/* ─── NAV MOBILE (fixes overflow on all app pages) ─── */
@media (max-width: 768px) {

  /* Single-row nav bar */
  nav {
    padding: 0 16px;
    flex-wrap: nowrap;
    height: var(--nav-h);
    min-height: var(--nav-h);
  }

  .nav-logo {
    flex: 1 1 auto;
    order: 1;
    min-width: 0;
    gap: 9px;
  }

  .nav-logo img { height: 20px; }

  .nav-logo-text {
    font-size: 11px;
    letter-spacing: 0.08em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .nav-right {
    flex: 0 0 auto;
    order: 3;
  }

  /* Hamburger visible on phones — placed BEFORE the language selector */
  .nav-hamburger { display: flex; align-items: center; order: 2; margin-left: 0; margin-right: 4px; }

  /* Tabs become a collapsible dropdown panel below the bar */
  .nav-tabs {
    order: 4;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    justify-content: flex-start;
    padding: 4px 0;
    margin: 0;
    border-top: 1px solid rgba(0,0,0,0.06);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.12);
    display: none;
  }
  nav.nav-open .nav-tabs {
    display: flex;
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    bottom: 0;
    height: calc(100vh - var(--nav-h));
    height: calc(100dvh - var(--nav-h));
    padding: 8px 0;
    margin: 0;
    border-top: none;
    border-bottom: none;
    box-shadow: none;
    overflow-y: auto;
    z-index: 1500;
  }
  /* Full-page takeover: fully opaque so page content never shows through */
  nav.nav-open.nav-light .nav-tabs { background: #F7F5EF; }
  nav.nav-open:not(.nav-light) .nav-tabs { background: #1a1a1a; }

  /* Panel colour follows nav context (light = Psi./Mu, dark = Liminal) */
  nav.nav-light .nav-tabs { background: rgba(247,245,239,0.98); }
  nav:not(.nav-light) .nav-tabs { background: rgba(26,26,26,0.97); }
  nav:not(.nav-light) .nav-tab { color: rgba(255,255,255,0.72); }
  nav:not(.nav-light) .nav-tab:hover,
  nav:not(.nav-light) .nav-tab.active { color: #fff; }

  .nav-tab {
    width: 100%;
    box-sizing: border-box;
    font-size: 13px;
    letter-spacing: 0.04em;
    white-space: nowrap;
    padding: 14px 24px;
    border-bottom: none;
    border-left: 2px solid transparent;
  }
  .nav-tab:hover,
  .nav-tab.active {
    border-bottom-color: transparent;
    border-left-color: currentColor;
  }

}

/* ─── MU. MOBILE (phone only — does NOT affect desktop or any other page) ─── */
@media (max-width: 768px) {

  /* Hero : empiler les deux colonnes verticalement */
  #page-Mu .app-hero {
    grid-template-columns: 1fr;
    padding: 32px 20px;
    gap: 32px;
    min-height: unset;
  }

  /* Icône + tagline : remettre le margin-top excessif à 0 */
  #page-Mu .app-hero-right {
    margin-top: 0 !important;
    flex-direction: row;
    justify-content: center;
    gap: 20px;
  }

  /* Icône plus petite sur mobile */
  #page-Mu .app-hero-icon-large {
    width: 100px;
    height: 100px;
    border-radius: 24px;
  }

  /* Screenshots : une seule colonne au lieu de 2 */
  #page-Mu .screenshots-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-top: 24px;
  }

  /* Mini-grilles internes : garder les 3 images côte à côte mais contraindre leur taille */
  #page-Mu .screenshot-column {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }
  /* Ligne iPhone/Android : revenir à 3 colonnes sur mobile */
  #page-Mu .screenshot-column--full {
    grid-template-columns: repeat(3, 1fr);
  }
  /* Colonne rapport : une seule image, pas de grille 3 colonnes */
  #page-Mu .screenshot-column--single {
    grid-template-columns: 1fr;
  }

  /* Screenshots Tau. : une seule colonne, 3 images par ligne */
  #page-tau-home .screenshots-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-top: 24px;
  }
  #page-tau-home .screenshot-column,
  #page-tau-home .screenshot-column--full {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }
  #page-tau-home .screenshot-column img {
    width: 100%;
    max-width: 100%;
  }


  /* Images iOS/Android : laisser la grille les redimensionner */
  #page-Mu .screenshot-column img {
    width: 100%;
    max-width: 100%;
  }

  /* Images watchOS : idem */
  #page-Mu .watchos img {
    width: 100%;
    max-width: 100%;
  }

  /* Sections : réduire le padding horizontal */
  #page-Mu .app-section {
    padding: 32px 20px;
  }

  /* Nav : réduire le padding */
  #page-Mu .app-nav {
    padding: 0 16px;
  }

  /* ─── IOTA. : mêmes adaptations mobile ─── */
  #page-Iota .app-hero {
    grid-template-columns: 1fr;
    padding: 32px 20px;
    gap: 32px;
    min-height: unset;
  }
  #page-Iota .app-hero-right {
    margin-top: 0 !important;
    flex-direction: row !important;
    justify-content: center;
    gap: 20px;
  }
  #page-Iota .app-hero-icon-large {
    width: 100px;
    height: 100px;
    border-radius: 24px;
  }
  /* Screenshots : une seule colonne au lieu de 2 */
  #page-Iota .screenshots-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-top: 24px;
  }
  /* Ligne iPhone : 3 images par ligne */
  #page-Iota .screenshot-column,
  #page-Iota .screenshot-column--full {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }
  /* Apple Watch : 2 images */
  #page-Iota .screenshot-column--duo {
    grid-template-columns: repeat(2, 1fr);
  }
  /* Colonne rapport : une seule image */
  #page-Iota .screenshot-column--single {
    grid-template-columns: 1fr;
  }
  #page-Iota .screenshot-column img,
  #page-Iota .watchos img {
    width: 100%;
    max-width: 100%;
  }
  #page-Iota .app-section {
    padding: 32px 20px;
  }
  #page-Iota .app-nav {
    padding: 0 16px;
  }

}
/* ─── MU. CONTACT FORM ─── */
.mu-contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 560px;
}
.mu-social-links {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
}
.mu-social-links .social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid var(--app-border);
  background: var(--app-bg2);
  color: var(--app-text);
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}
.mu-social-links .social-link:hover {
  background: #f0ede6;
  border-color: var(--app-text);
  transform: translateY(-1px);
}
.mu-social-links .social-link i {
  font-size: 20px;
}
.mu-contact-field {
  position: relative;
}
.mu-contact-field input,
.mu-contact-field textarea {
  width: 100%;
  background: var(--app-bg2);
  border: 1px solid var(--app-border);
  border-radius: 8px;
  padding: 22px 16px 8px;
  font-size: 14px;
  font-family: 'DM Sans', sans-serif;
  color: var(--app-text);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none;
  -webkit-appearance: none;
  resize: none;
}
.mu-contact-field input:focus,
.mu-contact-field textarea:focus {
  border-color: var(--app-text);
  box-shadow: 0 0 0 3px rgba(17,17,16,0.06);
}
.mu-contact-field label {
  position: absolute;
  top: 50%;
  left: 16px;
  transform: translateY(-50%);
  font-size: 14px;
  color: var(--app-sub);
  font-family: 'DM Sans', sans-serif;
  pointer-events: none;
  transition: all 0.15s ease;
}
.mu-contact-field textarea ~ label { top: 18px; transform: none; }
.mu-contact-field input:focus ~ label,
.mu-contact-field input:not(:placeholder-shown) ~ label {
  top: 9px;
  transform: none;
  font-size: 10px;
  letter-spacing: 0.06em;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--app-sub);
}
.mu-contact-field textarea:focus ~ label,
.mu-contact-field textarea:not(:placeholder-shown) ~ label {
  top: 8px;
  font-size: 10px;
  letter-spacing: 0.06em;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--app-sub);
}
.mu-contact-field textarea { padding-top: 28px; min-height: 130px; line-height: 1.6; }
.mu-contact-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.mu-contact-send {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--app-text);
  color: #F7F5EF;
  border: none;
  border-radius: 8px;
  padding: 14px 24px;
  font-size: 13px;
  font-weight: 500;
  font-family: 'DM Sans', sans-serif;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  align-self: flex-start;
  text-decoration: none;
}
.mu-contact-send:hover { background: #333; transform: translateY(-1px); }
.mu-contact-send:active { transform: translateY(0); }
.mu-contact-required {
  font-size: 11px;
  color: var(--app-sub);
  margin-top: 2px;
}
.mu-contact-success {
  display: none;
  align-items: center;
  gap: 10px;
  background: #e8f5ef;
  color: #2a7a56;
  border-radius: 8px;
  padding: 14px 18px;
  font-size: 13px;
  font-weight: 500;
  font-family: 'DM Sans', sans-serif;
}
@media (max-width: 600px) {
  .mu-contact-row { grid-template-columns: 1fr; }
}

/* ─── NAV HEIGHT COMPENSATION (mobile two-row nav) ─── */
@media (max-width: 960px) {
  :root { --nav-h: 96px; }
}
/* Phones use a single-row nav + hamburger, so reset height */
@media (max-width: 768px) {
  :root { --nav-h: 60px; }
}

/* ─── PSYSCALE QUESTIONNAIRE ─── */
.psq-wrap { max-width:700px; margin:0 auto; padding:40px 32px 60px; }
.psq-header { display:flex; align-items:center; gap:12px; margin-bottom:32px; }
.psq-badge { font-family:'DM Sans',sans-serif; font-size:11px; font-weight:600; letter-spacing:0.08em; text-transform:uppercase; padding:4px 10px; border-radius:20px; }
.psq-title { font-family:'Inter',sans-serif; font-size:28px; font-weight:700; letter-spacing:-0.02em; color:var(--app-text); margin-bottom:4px; }
.psq-subtitle { font-family:'DM Sans',sans-serif; font-size:13px; color:var(--app-sub); margin-bottom:24px; }
.psq-progress { height:4px; background:var(--app-border); border-radius:4px; margin-bottom:32px; overflow:hidden; }
.psq-progress-fill { height:100%; border-radius:4px; transition:width 0.3s ease; }
.psq-q-title { font-family:'Inter',sans-serif; font-size:17px; font-weight:600; color:var(--app-text); margin-bottom:6px; }
.psq-q-desc { font-family:'DM Sans',sans-serif; font-size:13px; color:var(--app-sub); line-height:1.6; margin-bottom:20px; }
.psq-options { display:flex; flex-direction:column; gap:8px; margin-bottom:32px; }
.psq-opt { display:flex; align-items:flex-start; gap:12px; padding:14px 16px; background:var(--app-bg2); border:1px solid var(--app-border); border-radius:10px; cursor:pointer; transition:all 0.15s; font-family:'DM Sans',sans-serif; font-size:14px; color:var(--app-text); line-height:1.5; text-align:left; }
.psq-opt:hover { border-color:var(--app-text); background:#f0ede6; }
.psq-opt.selected { border-color:var(--app-text); background:#f0ede6; box-shadow:0 0 0 1px var(--app-text); }
.psq-opt-radio { width:18px; height:18px; border:2px solid var(--app-border); border-radius:50%; flex-shrink:0; margin-top:1px; display:flex; align-items:center; justify-content:center; transition:all 0.15s; }
.psq-opt.selected .psq-opt-radio { border-color:var(--app-text); }
.psq-opt.selected .psq-opt-radio::after { content:''; width:8px; height:8px; border-radius:50%; background:var(--app-text); }
.psq-btn { font-family:'DM Sans',sans-serif; font-size:13px; font-weight:500; padding:12px 24px; border-radius:8px; cursor:pointer; transition:all 0.15s; border:1px solid var(--app-border); background:var(--app-bg); color:var(--app-text); }
.psq-btn:hover { background:var(--app-border); }
.psq-btn-primary { background:var(--app-text); color:#F7F5EF; border-color:var(--app-text); }
.psq-btn-primary:hover { background:#333; }
.psq-btn-primary:disabled { opacity:0.35; cursor:not-allowed; pointer-events:auto; }
.psq-btn-primary:disabled:hover { background:var(--app-text); }
.psq-btn:disabled { opacity:0.35; cursor:not-allowed; }

/* Scroll-based question card */
.psq-question-card {
  background: var(--app-bg2);
  border: 1px solid var(--app-border);
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 20px;
  transition: border-color 0.2s;
}
.psq-question-card.answered { border-color: #c8ddd2; }
.psq-question-card .psq-q-number {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%;
  font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 600;
  margin-bottom: 12px; color: #fff;
}
.psq-question-card .psq-options { margin-bottom: 0; }

/* DES-II horizontal options */
.psq-options.psq-options-hz { flex-direction:row; flex-wrap:nowrap; gap:0; }
.psq-options-hz .psq-opt { flex:1 1 0; min-width:0; flex-direction:column; align-items:center; gap:4px; padding:8px 2px; border-radius:8px; border:1px solid transparent; background:transparent; font-size:12px; text-align:center; justify-content:center; }
.psq-options-hz .psq-opt:hover { background:var(--app-bg2); border-color:var(--app-border); }
.psq-options-hz .psq-opt.selected { background:#f0ede6; border-color:var(--app-text); box-shadow:0 0 0 1px var(--app-text); }
.psq-options-hz .psq-opt .psq-opt-radio { width:14px; height:14px; }
.psq-options-hz .psq-opt.selected .psq-opt-radio::after { width:6px; height:6px; }
.psq-options-hz .psq-opt-label { font-size:11px; line-height:1.2; white-space:nowrap; }
.psq-question-card .psq-opt { background: var(--app-bg); }

/* Result */
.psq-result { text-align:center; padding:48px 0; }
.psq-result-score { font-family:'Inter',sans-serif; font-size:56px; font-weight:700; color:var(--app-text); margin-bottom:4px; }
.psq-result-max { font-family:'DM Sans',sans-serif; font-size:14px; color:var(--app-sub); margin-bottom:24px; }
.psq-result-label { font-family:'DM Sans',sans-serif; font-size:18px; font-weight:600; margin-bottom:8px; }
.psq-result-desc { font-family:'DM Sans',sans-serif; font-size:14px; color:var(--app-sub); line-height:1.7; max-width:500px; margin:0 auto 32px; }
.psq-result-bar { height:8px; background:var(--app-border); border-radius:8px; max-width:400px; margin:0 auto 32px; overflow:hidden; }
.psq-result-bar-fill { height:100%; border-radius:8px; transition:width 0.5s ease; }
.psq-subs { display:flex; justify-content:center; gap:32px; margin-bottom:32px; }
.psq-sub { text-align:center; }
.psq-sub-label { font-family:'DM Sans',sans-serif; font-size:11px; color:var(--app-sub); text-transform:uppercase; letter-spacing:0.05em; margin-bottom:4px; }
.psq-sub-val { font-family:'Inter',sans-serif; font-size:20px; font-weight:700; color:var(--app-text); }

/* ─── ANIMATIONS ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  #ps-sidebar, #ps-sidebar-q { display: none !important; }
  nav { padding: 0 20px; }
  .hub-panels { flex-direction: column; }
  .hub-divider { width: 100%; height: 1px; }
  .hub-panel { padding: 40px 24px; }
  .panel-desc { height: auto; }
  .hub-nav { padding: 0 20px; }
  .hub-footer { grid-template-columns: 1fr; justify-items: center; height: auto; padding: 16px 20px; gap: 8px; }
  .panel-name { font-size: 28px; }
  .app-hero { grid-template-columns: 1fr; padding: 40px 24px; gap: 32px; }
  .app-hero-right { display: none; }
  .app-nav { padding: 0 20px; }
  .app-section { padding: 40px 24px; }
  .feat-grid, .feat-grid--5 { grid-template-columns: repeat(2, 1fr); }
  .app-footer { flex-direction: column; gap: 12px; padding: 24px; text-align: center; }
  .legal-header { padding: 80px 24px 40px; }
  .legal-prose { padding: 40px 24px; }
}

/* ─── Methodology tab nav ─── */
.meth-tab {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--app-sub);
  padding: 10px 20px;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.meth-tab:hover { color: var(--app-text); }
.meth-tab.active {
  color: var(--app-accent);
  border-bottom-color: var(--app-accent);
}
#meth-subnav::-webkit-scrollbar { display: none; }

/* ─── Methodology table ─── */
.meth-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  color: var(--app-text);
}
.meth-table thead th {
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--app-sub);
  background: var(--app-bg);
  border-bottom: 2px solid var(--app-border);
  white-space: nowrap;
}
.meth-table tbody td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--app-border);
  vertical-align: top;
  line-height: 1.6;
}
.meth-table tbody tr:last-child td { border-bottom: none; }
.meth-table tbody tr:nth-child(even) { background: var(--app-bg); }
.meth-table tbody tr:nth-child(odd) { background: var(--app-bg2); }
.meth-table tbody tr:hover { background: rgba(200, 168, 75, 0.08); }

/* Proportional, responsive column widths */
#meth-panel-0 .meth-table,
#meth-panel-1 .meth-table,
#meth-panel-2 .meth-table { table-layout: fixed; }
/* Let headers wrap inside their fixed columns */
#meth-panel-0 .meth-table thead th,
#meth-panel-1 .meth-table thead th,
#meth-panel-2 .meth-table thead th { white-space: normal; }
/* Long citations / URLs / DOIs wrap instead of forcing width */
#meth-panel-1 .meth-table td,
#meth-panel-2 .meth-table td { overflow-wrap: anywhere; word-break: break-word; }

/* Overview */
#meth-panel-0 .meth-table th:nth-child(1) { width: 7%; }   /* Scale (narrower) */
#meth-panel-0 .meth-table th:nth-child(2) { width: 22%; }  /* Full name (narrower) */
#meth-panel-0 .meth-table th:nth-child(3) { width: 13%; }
#meth-panel-0 .meth-table th:nth-child(4) { width: 15%; }
#meth-panel-0 .meth-table th:nth-child(5) { width: 13%; }
#meth-panel-0 .meth-table th:nth-child(6) { width: 15%; }
#meth-panel-0 .meth-table th:nth-child(7) { width: 15%; }

/* Citation & DOI — PubMed & DOI ~60% of Source Citation */
#meth-panel-1 .meth-table th:nth-child(1) { width: 8%; }    /* Scale */
#meth-panel-1 .meth-table th:nth-child(2) { width: 17%; }   /* Full name (wider) */
#meth-panel-1 .meth-table th:nth-child(3) { width: 34%; }   /* Source Citation */
#meth-panel-1 .meth-table th:nth-child(4) { width: 20.5%; } /* PubMed link */
#meth-panel-1 .meth-table th:nth-child(5) { width: 20.5%; } /* DOI */

/* Score Interpretation */
#meth-panel-2 .meth-table th:nth-child(1) { width: 8%; }   /* Scale */
#meth-panel-2 .meth-table th:nth-child(2) { width: 20%; }  /* Full name (wider) */
#meth-panel-2 .meth-table th:nth-child(3) { width: 36%; }  /* Used */
#meth-panel-2 .meth-table th:nth-child(4) { width: 36%; }  /* Source */
/* Line break after each threshold */
#meth-panel-2 .meth-table td:nth-child(3) { white-space: pre-line; }

/* ═══ MOBILE-ONLY LAYOUT FIXES (phones) ═══ */
@media (max-width: 768px) {
  /* A/1 — Methodology tab bar: fixed (no horizontal drag/scroll), wraps if needed */
  #meth-subnav {
    overflow-x: visible !important;
    flex-wrap: wrap;
  }
  #meth-subnav .meth-tab {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 10px 8px;
    font-size: 12px;
    text-align: center;
  }

  /* A/2 — Give data-table columns real width; panel scrolls horizontally */
  #page-psyscale-methodology .meth-panel .meth-table { min-width: 720px; }
  #page-psyscale-methodology #meth-panel-0 .meth-table { min-width: 880px; }
  #page-psyscale-methodology #meth-panel-1 .meth-table { min-width: 760px; }
  #page-psyscale-methodology .meth-panel { -webkit-overflow-scrolling: touch; }
}

/* A/4 — Hub: let stacked panels take natural height so the header
   never clips the Psi. card (tablet/phone stacking range) */
@media (max-width: 900px) {
  #page-hub { height: auto; }
  .hub-panels { flex: 0 0 auto; min-height: 0; }
  .hub-panel {
    flex: 0 0 auto;
    justify-content: flex-start;
    overflow: visible;
  }
}

/* A/1 — Hub (phones only): the global `nav{position:fixed !important}` was
   forcing .hub-nav to float over the stacked panels and clip the Psi.
   card. Put the header back in normal flow (sticky) so it's a standalone
   element, and shrink the panels vertically. */
@media (max-width: 768px) {
  .hub-nav {
    position: sticky !important;
    top: 0 !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    z-index: 200;
  }
  #page-hub { height: auto; min-height: 100dvh; }
  .hub-panels { flex: 1 1 auto; min-height: 0; }
  .hub-panel {
    flex: 1 1 auto;
    justify-content: center;
    padding: 24px;
    overflow: visible;
    position: relative;
    z-index: 1;
  }
  .panel-inner { gap: 16px; max-width: 320px; }
  .panel-icon { width: 56px; height: 56px; border-radius: 14px; }
  .panel-name { font-size: 24px; margin-bottom: 12px; }
  .panel-type { margin-bottom: 6px; }
  .panel-desc { margin-bottom: 0; height: auto; }
}


/* ─── LANGUAGE SELECTOR ─── */
.lang-selector-inline {
  position: relative;
  display: flex;
  align-items: center;
}
.lang-btn-globe {
  display: flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.6);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 11px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.lang-btn-globe:hover {
  color: rgba(255,255,255,0.9);
  border-color: rgba(255,255,255,0.4);
}
/* Light context (Mu/Psi. nav) */
#main-nav .lang-btn-globe {
  border-color: rgba(17,17,16,0.25);
  color: #6B6B6B;
  background: rgba(247,245,239,0.0);
}
#main-nav .lang-btn-globe:hover {
  border-color: #111110;
  color: #111110;
}
.lang-globe-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: rgba(12,12,16,0.98);
  border: 1px solid #2a2a32;
  border-radius: 10px;
  padding: 5px;
  min-width: 126px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  visibility: hidden;
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0s linear 0.15s;
  z-index: 9999;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}
.lang-globe-dropdown.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  visibility: visible;
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0s linear 0s;
}
[dir="rtl"] .lang-globe-dropdown {
  left: 0;
  right: auto;
}
.lang-opt {
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: none;
  color: #888884;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 7px 9px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.12s;
  width: 100%;
  text-align: left;
}
.lang-opt:hover  { color: #e0ddd6; background: rgba(255,255,255,0.07); }
.lang-opt.active { color: #e0ddd6; background: rgba(255,255,255,0.05); }
.hub-lang-wrap {
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: flex-end;
}
.hub-lang-wrap .lang-btn-globe {
  border-color: rgba(17,17,16,0.25);
  color: #6B6B6B;
  background: transparent;
}
.hub-lang-wrap .lang-btn-globe:hover {
  border-color: #111110;
  color: #111110;
}


/* ═══════════════════ TAU. — scoped styles (design untouched, namespaced under .tau-app) ═══════════════════ */
/* NOTE : les regles .tau-app ci-dessous qui portent le meme nom qu'une regle globale
   NE SONT PAS des doublons : leurs valeurs divergent volontairement du global.
   Concernees : .app-shell, .app-hero-eyebrow, .app-hero-icon-large, .app-section-title,
   .copyright-list, .copyright-list li, .store-min-req.
   Modifier le global ne changera donc rien sur les pages Tau. */
.page.tau-app { display: none; }
.page.tau-app.active { display: block; }
.tau-app .app-shell {
  background: var(--app-bg);
  color: var(--app-text);
  min-height: 100vh;
  font-family: 'DM Sans', sans-serif;
  padding-top: var(--nav-h);
}
.tau-app .app-hero--single { grid-template-columns: 1fr; min-height: 0; padding: 72px 80px 56px; }
.tau-app .app-hero-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--app-sub);
  margin-bottom: 18px;
}
.tau-app .app-hero-title em { font-style: italic; color: var(--app-sub); }
.tau-app .app-hero-desc strong { color: var(--app-text); font-weight: 500; }
.tau-app .app-hero-icon-large {
  width: 180px; height: 180px;
  border-radius: 45px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,0.12);
}
.tau-app .store-min-req { font-size: 10px; color: var(--app-sub); font-weight: 400; opacity: 0.7; padding-left: 2px; }
.tau-app .app-section-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--app-sub);
  margin-bottom: 10px;
}
.tau-app .app-section-title {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.015em;
  color: var(--app-text);
  margin: 0 0 12px;
}
.tau-app [role="button"] { cursor: pointer; }
.tau-app [role="button"]:focus-visible,
.tau-app .chip:focus-visible { outline: 2px solid var(--app-accent); outline-offset: 2px; }
.tau-app .app-section-lede {
  font-size: 14.5px;
  color: var(--app-sub);
  line-height: 1.75;
  font-weight: 300;
  max-width: 700px;
  margin-bottom: 28px;
}
.tau-app .app-section-lede a, .tau-app .g-prose a, .tau-app .feat-desc a, .tau-app .disclaimer a { color: var(--app-accent); cursor: pointer; text-decoration: underline; }
.tau-app .feat-grid--2 { grid-template-columns: repeat(2, 1fr); }
.tau-app .feat-grid--3 { grid-template-columns: repeat(3, 1fr); }
.tau-app .g-prose { max-width: 760px; }
.tau-app .g-prose p {
  font-size: 14.5px;
  color: var(--app-text);
  line-height: 1.8;
  font-weight: 300;
  margin-bottom: 20px;
}
.tau-app .g-prose p:last-child { margin-bottom: 0; }
.tau-app .g-prose h4 { font-family:'Inter',sans-serif; font-size: 14px; font-weight: 600; margin: 24px 0 8px; }
.tau-app .g-prose ul { margin: 8px 0 16px 20px; }
.tau-app .g-prose li { font-size: 14px; color: var(--app-text); font-weight: 300; line-height: 1.7; margin-bottom: 6px; }
.tau-app .chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tau-app .chip {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--app-sub);
  border: 1px solid var(--app-border);
  background: var(--app-bg2);
  border-radius: 20px;
  padding: 6px 12px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s;
}
.tau-app .chip:hover { color: var(--app-text); border-color: var(--app-text); }
.tau-app .metric-cat { padding: 36px 0; border-bottom: 1px solid var(--app-border); max-width: 980px; }
.tau-app .metric-cat:last-child { border-bottom: none; }
.tau-app .metric-cat-head { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; flex-wrap: wrap; }
.tau-app .metric-cat-icon { display:flex; align-items:center; justify-content:center; color:var(--app-text); font-size:22px; flex-shrink:0; }
.tau-app .metric-cat-title { font-family:'Inter',sans-serif; font-size: 17px; font-weight: 700; }
.tau-app .metric-cat-count { font-family:'DM Sans',sans-serif; font-size: 12px; font-weight:500; color: var(--app-text); }
.tau-app .metric-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px 24px; list-style: none; }
.tau-app .metric-list li {
  font-size: 13px; font-weight: 300; color: var(--app-text);
  padding-left: 18px; position: relative; line-height: 1.5;
}
.tau-app .metric-list li::before { content: '\2713'; position: absolute; left: 0; top: 0; color: var(--app-text); font-weight: 700; font-size: 11px; }
.tau-app .pc-list { list-style: none; margin-top: 10px; }
.tau-app .pc-list li { font-size: 13px; font-weight: 300; color: var(--app-text); line-height: 1.6; padding-left: 20px; position: relative; margin-bottom: 6px; }
.tau-app .pc-list li.dot::before { content: '·'; position: absolute; left: 0; color: var(--app-accent); }
.tau-app .disclaimer {
  font-size: 11.5px;
  color: var(--app-sub);
  font-weight: 300;
  line-height: 1.7;
  max-width: 760px;
}
.tau-app .app-section h4 { font-family: 'DM Sans', sans-serif; font-size: 16px; font-weight: 600; color: var(--app-text); }
.tau-app .copyright-list {
  font-size: 15px;
  color: var(--app-text);
  line-height: 1.75;
  font-weight: 300;
  max-width: 800px;
  margin-left: 30px;
  padding-left: 10px;
}
.tau-app .copyright-list li { margin-bottom: 8px; }
.tau-app .mu-contact-field input, .tau-app .mu-contact-field textarea {
  width: 100%;
  background: var(--app-bg2);
  border: 1px solid var(--app-border);
  border-radius: 8px;
  padding: 22px 16px 8px;
  font-size: 14px;
  font-family: 'DM Sans', sans-serif;
  color: var(--app-text);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none;
  -webkit-appearance: none;
  resize: none;
}
.tau-app .mu-contact-field input:focus, .tau-app .mu-contact-field textarea:focus {
  border-color: var(--app-text);
  box-shadow: 0 0 0 3px rgba(17,17,16,0.06);
}
.tau-app .mu-contact-field input:focus ~ label, .tau-app .mu-contact-field input:not(:placeholder-shown) ~ label {
  top: 9px;
  transform: none;
  font-size: 10px;
  letter-spacing: 0.06em;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--app-sub);
}
.tau-app .mu-contact-field textarea:focus ~ label, .tau-app .mu-contact-field textarea:not(:placeholder-shown) ~ label {
  top: 8px;
  font-size: 10px;
  letter-spacing: 0.06em;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--app-sub);
}

@media (max-width: 600px) {
.tau-app .mu-contact-row { grid-template-columns: 1fr; }
}

@media (max-width: 1080px) {
.tau-app .metric-list { grid-template-columns: repeat(2, 1fr); }
.tau-app .feat-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
.tau-app .app-shell { padding-top: var(--nav-h); }
.tau-app .app-hero { grid-template-columns: 1fr; padding: 40px 24px; gap: 32px; }
.tau-app .app-hero--single { padding: 48px 24px 40px; }
.tau-app .app-hero-right { display: none !important; margin-top: 0 !important; }
.tau-app .app-section { padding: 40px 24px; }
.tau-app .feat-grid, .tau-app .feat-grid--3 { grid-template-columns: repeat(2, 1fr); }
.tau-app .metric-list { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
.tau-app .feat-grid, .tau-app .feat-grid--3, .tau-app .feat-grid--2 { grid-template-columns: 1fr; }
}


/* ═══ GRAS DES NOMS D'APPS ET DES LABELS UI ═══════════════════
   Molette unique : --strong-weight.
   600 = discret · 700 = net · 800 = très marqué (actuel).
   Inter et DM Sans sont chargées jusqu'à 800 dans le <link>
   Google Fonts du <head> : ne pas dépasser 800 sans l'y ajouter. */
:root { --strong-weight: 800; --h4-weight: 700; }

p strong:not([style]),
li strong:not([style]),
.g-prose strong:not([style]),
.app-section-lede strong:not([style]),
.ps-about-prose strong:not([style]),
.hero-free-desc strong:not([style]),
.app-hero-desc strong:not([style]),
.tau-app .app-hero-desc strong:not([style]) {
  font-weight: var(--strong-weight) !important;
}

.app-section h4,
.tau-app .app-section h4,
.tau-app .g-prose h4,
.g-prose h4 {
  font-weight: var(--h4-weight);
}
