@font-face {
  font-family: 'Diranista';
  src: url('assets/Diranista-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Satoshi';
  src: url('assets/Satoshi-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Satoshi';
  src: url('assets/Satoshi-Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

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

:root {
  --green:       #0AA05F;
  --orange:      #FF674C;
  --bleu:        #5C6DFF;
  --dark:        #1A2D22;
  --dark2:       #0f1a13;
  --cream:       #FCFAF7;
  --muted:       #7a887f;
  --fd:          'Diranista', serif;
  --fb:          'Satoshi', sans-serif;
  --active-color: #0AA05F;
  --svc-bg:      #f2fbf5;
  --svc-text:    #1a3324;
  --svc-muted:   #5a8a6a;
  --svc-surface: rgba(45,181,96,0.07);
  --svc-border:  rgba(45,181,96,0.15);
}

html { -webkit-text-size-adjust: 100%; }
html { -webkit-text-size-adjust: 100%; overflow-x: hidden; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--fb);
  background: var(--svc-bg, #FCFAF7);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100svh;
  overflow-x: hidden;
  /* Le scroll se fait sur body */
  overflow-y: auto;
}

.scene {
  width: 100%;
  max-width: 480px;
  position: relative;
  min-height: 100svh;
}

.bg-canvas {
  position: fixed;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 100%; max-width: 480px; height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* ===================== CHOOSER ===================== */

.chooser {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #FCFAF7;
  overflow: hidden;
  touch-action: none;
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.4,0,0.2,1);
}

/* Sur desktop, limiter la largeur du contenu mais pas du fond */
.chooser-header,
.chooser-fan,
.chooser-hint {
  width: 100%;
  max-width: 480px;
}

.chooser.out {
  opacity: 0;
  transform: scale(1.04);
  pointer-events: none;
}

.chooser-grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.4;
  z-index: 0;
}

/* Halo de couleur qui réagit au hover */
.chooser::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--chooser-glow, transparent);
  transition: background 0.6s ease;
  pointer-events: none;
  z-index: 0;
}

.chooser-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(18px, 4svh, 28px);
  padding: clamp(44px, 11svh, 68px) 28px 0;
  position: relative;
  z-index: 2;
}

.chooser-logo {
  width: 52px;
  height: 52px;
  border-radius: 15px;
  background: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(26,45,34,0.15);
}

.chooser-logo img {
  width: 32px;
  height: auto;
}

.chooser-title-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(10px, 2svh, 16px);
}

.chooser-name {
  font-family: var(--fb);
  font-weight: 500;
  font-size: clamp(3rem, 14vw, 4.2rem);
  color: var(--dark);
  line-height: 0.88;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.chooser-firstname {
  display: block;
  line-height: 0.9;
}

.chooser-name-serif {
  font-family: var(--fd);
  font-weight: 400;
  color: rgba(26,45,34,0.25);
  font-size: clamp(3rem, 14vw, 4.2rem);
  line-height: 0.92;
  display: block;
  letter-spacing: -0.01em;
}

.chooser-desc {
  font-family: var(--fb);
  font-size: clamp(0.8rem, 3vw, 0.92rem);
  color: rgba(26,45,34,0.4);
  line-height: 1.7;
  max-width: 260px;
}

.chooser-rule {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 0 4px;
}

.chooser-rule-line {
  flex: 1;
  height: 1px;
  background: rgba(26,45,34,0.1);
}

.chooser-rule-label {
  font-family: var(--fb);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(26,45,34,0.28);
  white-space: nowrap;
}

/* ---- Stack de cartes swipable ---- */
.chooser-fan {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  width: 100%;
  gap: 0;
  touch-action: pan-y;
  padding-bottom: clamp(4px, 1svh, 10px);
}

.stack-area {
  position: relative;
  width: clamp(260px, 72vw, 320px);
  height: clamp(163px, 45vw, 200px);
  margin: 0 auto;
}

.fan-card {
  position: absolute;
  inset: 0;
  border: none;
  background: none;
  cursor: pointer;
  padding: 0;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  transform-origin: center center;
}

.fan-card:focus-visible { outline: 2px solid var(--dark); outline-offset: 4px; }

/* États z-index par position (géré par JS via data-pos) */
.fan-card[data-pos="0"] { z-index: 3; }
.fan-card[data-pos="1"] { z-index: 2; }
.fan-card[data-pos="2"] { z-index: 1; }

.fan-card.is-dragging {
  transition: none;
  cursor: grabbing;
}

.fan-card.chosen {
  transition: transform 0.45s cubic-bezier(0.4,0,0.2,1), opacity 0.35s ease !important;
  transform: translateY(-110svh) rotate(-8deg) !important;
  opacity: 0 !important;
}
.fan-card.dismissed {
  transition: transform 0.38s cubic-bezier(0.4,0,0.8,1), opacity 0.3s ease !important;
  transform: translateY(40px) scale(0.88) !important;
  opacity: 0 !important;
}

.fan-card-inner {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.fan-front {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  padding: 0 0 clamp(10px,3vw,14px) clamp(10px,3vw,14px);
}

.fan-card--vert  .fan-front { background: var(--green); }
.fan-card--orange .fan-front { background: #FF674C; }
.fan-card--bleu  .fan-front { background: #5C6DFF; }

.fan-logo {
  width: 72%;
  height: auto;
  display: block;
}

/* Label sous la stack */
.stack-label {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--fb);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--dark);
  min-height: 22px;
  transition: opacity 0.25s ease;
}

.stack-label-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  transition: background 0.3s ease;
}

/* Indicateurs de position (dots) */
.stack-dots {
  display: flex;
  gap: 7px;
  margin-top: 14px;
}

.stack-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(26,45,34,0.15);
  transition: background 0.3s ease, transform 0.3s ease;
}

.stack-dot.active {
  transform: scale(1.4);
}

.chooser-hint {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 0 0 max(28px, env(safe-area-inset-bottom, 28px));
  margin-top: 20px;
}

.chooser-hint-dot { display: none; }

.chooser-hint-swipe {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hint-swipe-svg {
  width: 80px;
  height: 24px;
  color: rgba(26,45,34,0.4);
  animation: swipeAnim 2s ease-in-out infinite;
}

@keyframes swipeAnim {
  0%   { transform: translateX(0);     opacity: 0.4; }
  25%  { transform: translateX(-8px);  opacity: 0.9; }
  50%  { transform: translateX(0);     opacity: 0.4; }
  75%  { transform: translateX(8px);   opacity: 0.9; }
  100% { transform: translateX(0);     opacity: 0.4; }
}

#hintText {
  font-family: var(--fb);
  font-size: 0.63rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(26,45,34,0.38);
  transition: opacity 0.3s ease;
}

@keyframes dotPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.8); opacity: 0.4; }
}
@keyframes hintFloat {
  0%, 100% { transform: translateY(0); opacity: 0.7; }
  50%       { transform: translateY(5px); opacity: 1; }
}

/* ===================== TABLE SURFACE ===================== */

.table-surface {
  position: relative;
  background: var(--svc-bg);
  min-height: 100svh;
  padding-bottom: 48px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  /* Permettre le scroll natif du body */
  overflow: visible;
}

.table-surface.visible {
  opacity: 1;
  pointer-events: auto;
}

.table-items { display: flex; flex-direction: column; padding-bottom: 80px; }

.item {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.16,1,0.3,1);
  padding: 12px 16px 0;
}

.item.in {
  opacity: 1;
  transform: translateY(0);
}
.item--card   { padding-top: 16px; }
.item--footer { padding-top: 6px; }
.item--back   { padding-top: max(14px, env(safe-area-inset-top, 14px)); padding-bottom: 0; }

/* Bouton retour */
.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--svc-surface);
  border: 1px solid var(--svc-border);
  border-radius: 50px;
  padding: 8px 16px;
  color: var(--svc-muted);
  font-family: var(--fb);
  font-size: 0.72rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.btn-back:hover { background: var(--svc-border); color: var(--svc-text); }

/* ===================== FLIP CARD ===================== */

.item--card {
  perspective: 900px;
}

.flip-card {
  width: 100%;
  aspect-ratio: 85 / 55;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  transform-style: preserve-3d;
}

.flip-card-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  border-radius: 14px;
  transform: rotateY(0deg);
}

.flip-card-shine {
  position: absolute;
  inset: 0;
  border-radius: 14px;
  pointer-events: none;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.1s ease;
  mix-blend-mode: overlay;
}

.flip-front,
.flip-back {
  position: absolute;
  inset: 0;
  /*border-radius: 6px;*/
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: hidden;
  background: var(--green);
  box-shadow: 0 10px 40px rgba(0,0,0,0.35);
  -webkit-transform: translateZ(0);
}

.flip-back { transform: rotateY(180deg); }

/* ---- Badge retourner (identique recto/verso) ---- */
.fc-hint-pill {
  position: absolute;
  bottom: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--fb);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.95);
  background: rgba(255,255,255,0.22);
  /*border: 1.5px solid rgba(255,255,255,0.5);*/
  border-radius: 50px;
  padding: 7px 10px;
  pointer-events: none;
  clip-path: inset(0 round 50px);
  z-index: 2;
  animation: hintPulseLoop 3s ease-in-out infinite;
}

.fc-hint-pill svg {
  animation: hintIconSpin 3s ease-in-out infinite;
  flex-shrink: 0;
}

.fc-hint-pill--back { animation: none; }
.fc-hint-pill--back svg { animation: none; }

@keyframes hintPulseLoop {
  0%, 40%, 100% {
    background: rgba(255,255,255,0.18);
    border-color: rgba(255,255,255,0.45);
    transform: scale(1);
  }
  65% {
    background: rgba(255,255,255,0.30);
    border-color: rgba(255,255,255,0.75);
    transform: scale(1.04);
  }
}

@keyframes hintIconSpin {
  0%, 40%, 100% { transform: rotate(0deg); }
  65%            { transform: rotate(180deg); }
}

/* ---- RECTO ---- */
.fc-front-body {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 0 0 clamp(14px,4vw,20px) clamp(14px,4vw,20px);
}

.fc-logo {
  width: 72%;
  margin-bottom: -12px;
  height: auto;
  display: block;
}

/* ---- VERSO ---- */
.fb-main {
  display: flex;
  flex-direction: row;
  flex: 1;
  min-height: 0;
  padding: clamp(10px,3vw,14px) clamp(10px,3vw,14px) 0;
  gap: 0;
}

.fb-left {
  width: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-right: clamp(4px,1.5vw,8px);
}

.fb-illu-wrap {
  margin-top: -25px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fb-illu {
  width: 90%;
  height: auto;
  display: block;
}

.fb-right {
  margin-top: 5%;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-left: clamp(0px,1vw,16px);
}

.fb-identity { margin-bottom: 2px; }

.fb-name {
  font-family: var(--fb);
  font-weight: 500;
  font-size: clamp(0.95rem, 4vw, 1.25rem);
  /*color: #E3FFE3;*/
  line-height: 1.1;
}

.fb-title {
  font-family: var(--fb);
  font-size: clamp(0.75rem, 3vw, 1rem);
  color: #AAE5AA;
  margin-top: 2px;
}

.fb-contacts {
  margin-top: 5%;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.fb-line {
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  position: relative;
  z-index: 5;
}

.fb-line svg { flex-shrink: 0;
  color: #ffffffcc;
  margin-top: 1px;
  width: 15px;
  height: 15px;
}

.fb-line span {
  font-family: var(--fb);
  font-size: clamp(0.75rem, 3vw, 1rem);
  /*color: #AAE5AA;*/
  line-height: 1.5;
  transition: color 0.15s;
}

.fb-line:hover span { color: #fff; }

/* ---- Footer verso pleine largeur ---- */
.fb-footer {
  padding: 0 0 20px 0;
  /*border-top: 1px solid rgba(255,255,255,0.15);*/
  margin-top: auto;
  /*color: #E3FFE3;*/
}

.fb-tagline {
  font-family: var(--fb);
  font-size: clamp(0.75rem, 3vw, 1.15rem);
  line-height: 1.3;
  text-align: center;
  flex: 1;
}

.fb-tagline strong { font-weight: 500;}

.fb-vcf {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 11px;
  background: rgba(0,0,0,0.18);
  color: #fff;
  font-family: var(--fb);
  font-size: 0.58rem;
  font-weight: 500;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50px;
  cursor: pointer;
  transition: background 0.15s;
  position: relative;
  z-index: 5;
  flex-shrink: 0;
  white-space: nowrap;
}

.fb-vcf:hover { background: rgba(0,0,0,0.3); }
.fb-vcf svg   { opacity: 0.8; }

.flip-back {
  display: flex;
  flex-direction: column;
}

.btn-vcf-standalone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  background: var(--dark);
  color: var(--cream);
  font-family: var(--fb);
  font-size: 0.82rem;
  font-weight: 500;
  border: 1.5px solid rgba(183,240,13,0.25);
  border-radius: 50px;
  cursor: pointer;
  transition: background 0.2s, transform 0.12s;
  position: relative;
}

.btn-vcf-standalone:hover  { background: #0f2219; }
.btn-vcf-standalone:active { transform: scale(0.97); }
.btn-vcf-standalone svg    { color: var(--green); flex-shrink: 0; }

/* ===================== VCF STANDALONE ===================== */

.item--vcf {
  padding-top: 20px;
  display: flex;
  justify-content: center;
}

.btn-vcf-standalone {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 28px;
  background: var(--active-color);
  color: #fff;
  font-family: var(--fb);
  font-size: 0.85rem;
  font-weight: 500;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.12s;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

.btn-vcf-standalone:hover  { opacity: 0.88; }
.btn-vcf-standalone:active { transform: scale(0.97); }
.btn-vcf-standalone svg    { color: rgba(255,255,255,0.8); flex-shrink: 0; }

/* ===================== ACTIONS GRID ===================== */

.item--actions { padding-top: 30px; }

.actions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 8px 14px;
  background: rgba(255,255,255,0.75);
  border: 1px solid var(--svc-border);
  border-radius: 16px;
  text-decoration: none;
  transition: background 0.18s, transform 0.15s, border-color 0.18s;
  -webkit-tap-highlight-color: transparent;
}

.action-btn:hover  { background: #fff; border-color: var(--active-color); transform: translateY(-2px); }
.action-btn:active { transform: scale(0.95); }

.action-btn-icon {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: var(--svc-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s;
}

.action-btn:hover .action-btn-icon { background: rgba(var(--active-color), 0.12); }

.action-btn-icon--wa {
  background: #25D366 !important;
  color: #fff;
}

.action-btn-icon--wa svg { color: #fff !important; }

.action-btn-label {
  font-family: var(--fb);
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--svc-text);
  text-align: center;
  line-height: 1.2;
}

/* ===================== PROJECTS CAROUSEL ===================== */

.item--projects { padding-top: 18px; }

.projects-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.projects-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--fb);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--svc-muted);
  padding: 0 2px;
}

.projects-carousel {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 4px;
  /* Déborde sur les bords mais commence aligné avec le contenu */
  margin-right: -16px;
  padding-right: 16px;
}

.projects-carousel::-webkit-scrollbar { display: none; }

.project-card {
  flex: 0 0 clamp(160px, 68vw, 210px);
  scroll-snap-align: start;
  background: rgba(255,255,255,0.75);
  border: 1px solid var(--svc-border);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.18s, border-color 0.18s;
  cursor: pointer;
  text-decoration: none;
}

.project-card:hover  { transform: translateY(-2px); border-color: var(--active-color); }
.project-card:active { transform: scale(0.97); }

.project-card-img {
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--svc-surface);
  overflow: hidden;
  position: relative;
}

.project-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-card-info {
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.project-card-name {
  font-family: var(--fb);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--svc-text);
  line-height: 1.2;
}

.project-card-cat {
  font-family: var(--fb);
  font-size: 0.65rem;
  color: var(--svc-muted);
}

/* ===================== FOOTER ===================== */

/* ===================== BOTTOM NAV ===================== */

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  display: none;
  align-items: center;
  justify-content: space-between;
  background: rgba(255,255,255,0.96);
  border-top: 1px solid var(--svc-border);
  padding: 8px 24px max(16px, env(safe-area-inset-bottom, 16px));
  z-index: 100;
}

.bottom-nav.visible { display: flex; }

.bnav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 12px;
  color: var(--svc-muted);
  transition: color 0.18s, background 0.18s, transform 0.15s;
  -webkit-tap-highlight-color: transparent;
  min-width: 60px;
}

.bnav-item:hover  { color: var(--active-color); background: var(--svc-surface); }
.bnav-item:active { transform: scale(0.92); }

.bnav-item span {
  font-family: var(--fb);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

/* Bouton logo central — plus grand, pas de label */
.bnav-item--logo {
  padding: 0;
  min-width: 52px;
  background: none;
  border: none;
}

.bnav-item--logo:hover { background: none; }

.bnav-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
  display: block;
  transition: transform 0.2s cubic-bezier(0.34,1.4,0.64,1);
}

.bnav-item--logo:active .bnav-logo { transform: scale(0.88); }

/* ===================== DESKTOP ===================== */

/* ===================== BOTTOM NAV ===================== */

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  display: none;
  align-items: center;
  justify-content: space-between;
  background: rgba(255,255,255,0.96);
  border-top: 1px solid var(--svc-border);
  padding: 8px 24px max(16px, env(safe-area-inset-bottom, 16px));
  z-index: 100;
}

.bottom-nav.visible { display: flex; }

.bnav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 12px;
  color: var(--svc-muted);
  transition: color 0.18s, background 0.18s, transform 0.15s;
  -webkit-tap-highlight-color: transparent;
  min-width: 60px;
}

.bnav-item:hover  { color: var(--active-color); background: var(--svc-surface); }
.bnav-item:active { transform: scale(0.92); }

.bnav-item span {
  font-family: var(--fb);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

/* Bouton logo central — plus grand, pas de label */
.bnav-item--logo {
  padding: 0;
  min-width: 52px;
  background: none;
  border: none;
}

.bnav-item--logo:hover { background: none; }

.bnav-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
  display: block;
  transition: transform 0.2s cubic-bezier(0.34,1.4,0.64,1);
}

.bnav-item--logo:active .bnav-logo { transform: scale(0.88); }

/* ===================== DESKTOP ===================== */


@media (min-width: 431px) {
  body { align-items: flex-start; }
  .scene { max-width: 100%; }
  .bg-canvas { position: fixed; left: 0; transform: none; width: 100%; max-width: 100%; }
  .chooser { max-width: 100%; }
  .chooser-header,
  .chooser-fan,
  .chooser-hint { max-width: 560px; }
  .table-surface { max-width: 100%; }
  .table-items { max-width: 560px; margin: 0 auto; }
  .bottom-nav { max-width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .splash-scan, .splash-name-r, .splash-name-d,
  .splash-tag, .splash-cta, .splash-location,
  .splash-dot, .fc-dot, .fc-flip-hint,
  .splash-cta-icon { animation: none; opacity: 1; transform: none; }
  .item { opacity: 1; transform: none; transition: none; }
  .folder-content { transition: none; }
  .strip-link { transition: none; }
}
