/* Page de présentation (js/landing.js) : visible seulement sans connexion (body.guest), à la place du site. */
.landing { display: none; }
body.guest .landing { display: block; }
/* Déconnecté : rien du site (ni onglets, ni amis, ni alertes, ni jeu), seulement la présentation. */
body.guest main, body.guest .site-tabs, body.guest .fab, body.guest #btn-settings, body.guest #btn-friends,
body.guest #btn-alerts, body.guest #btn-game, body.guest #btn-admin { display: none !important; }
.guest-only { display: none !important; }
body.guest .guest-only { display: inline-flex !important; }

.landing { --ld-w: 1120px; overflow-x: clip; padding: 0 24px; }
.landing section { max-width: var(--ld-w); margin: 0 auto; }
.landing h1, .landing h2 { letter-spacing: -.035em; line-height: 1.04; margin: 0; }
.ld-eyebrow { margin: 0 0 14px; font-weight: 700; font-size: .95rem; letter-spacing: .02em; color: var(--primary-2); }
.ld-grad {
  background: linear-gradient(100deg, #b6a9ff 0%, #ff8bd8 45%, #ffc85a 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ld-btn { padding: 14px 26px; font-size: 1.05rem; border-radius: 999px; }
.ld-link {
  font: inherit; font-size: 1.05rem; font-weight: 600; background: none; border: 0; color: var(--primary-2);
  cursor: pointer; padding: 10px 6px;
}
.ld-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.ld-link:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 8px; }
.ld-cta { display: flex; gap: 14px 22px; align-items: center; justify-content: center; flex-wrap: wrap; }

/* Apparition au défilement */
.ld-reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s ease, transform .9s cubic-bezier(.2, .7, .2, 1); }
.ld-reveal.in { opacity: 1; transform: none; }
.ld-hero .ld-reveal:nth-child(2) { transition-delay: .08s; }
.ld-hero .ld-reveal:nth-child(3) { transition-delay: .16s; }
.ld-hero .ld-reveal:nth-child(4) { transition-delay: .24s; }

/* ---------- En-tête : titre et éventail de cartes ---------- */
.ld-hero { text-align: center; padding: 96px 0 0; position: relative; }
.ld-hero::before {
  content: ''; position: absolute; z-index: -1; left: 50%; top: 340px; width: 900px; height: 520px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(var(--accent-rgb), .35), rgba(255, 122, 217, .12) 55%, transparent);
  filter: blur(20px);
}
.ld-hero h1 { font-size: clamp(2.6rem, 7.4vw, 5.6rem); font-weight: 800; }
.ld-lead { max-width: 640px; margin: 24px auto 34px; font-size: clamp(1.08rem, 1.8vw, 1.32rem); line-height: 1.5; color: var(--muted); }

.ld-fan { position: relative; height: clamp(300px, 46vw, 520px); margin-top: 56px; perspective: 1400px; }
.ld-card {
  --r: 0deg; --x: 0px; --y: 0px; --d: 0s;
  position: absolute; left: 50%; bottom: 0; width: clamp(150px, 22vw, 260px); aspect-ratio: .716;
  margin-left: calc(clamp(150px, 22vw, 260px) / -2);
  border-radius: 4.6% / 3.3%; overflow: hidden; background: #1a1f2b;
  transform: translate(var(--x), var(--y)) rotate(var(--r));
  box-shadow: 0 30px 60px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .06);
  animation: ld-deal 1.1s cubic-bezier(.2, .8, .2, 1) both, ld-float 6s ease-in-out infinite;
  animation-delay: var(--d), calc(var(--d) + 1.1s);
}
.ld-card img, .ld-slot img, .ld-scan-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.ld-card:nth-child(1) { --r: -24deg; --x: -36vw; --y: 22%;  --d: .35s; z-index: 1; }
.ld-card:nth-child(2) { --r: -12deg; --x: -18vw; --y: 6%;   --d: .25s; z-index: 2; }
.ld-card:nth-child(3) { --r: 0deg;   --x: 0px;   --y: -4%;  --d: .15s; z-index: 3; }
.ld-card:nth-child(4) { --r: 12deg;  --x: 18vw;  --y: 6%;   --d: .25s; z-index: 2; }
.ld-card:nth-child(5) { --r: 24deg;  --x: 36vw;  --y: 22%;  --d: .35s; z-index: 1; }
@media (min-width: 1240px) {
  .ld-card:nth-child(1) { --x: -440px; } .ld-card:nth-child(2) { --x: -220px; }
  .ld-card:nth-child(4) { --x: 220px; }  .ld-card:nth-child(5) { --x: 440px; }
}
/* Reflet holographique qui passe sur la carte du milieu */
.ld-card:nth-child(3)::after {
  content: ''; position: absolute; inset: 0; z-index: 2; mix-blend-mode: color-dodge; pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .5) 45%, rgba(160, 200, 255, .35) 52%, transparent 66%);
  background-size: 260% 100%; animation: ld-shine 5s ease-in-out infinite 1.6s;
}
@keyframes ld-deal { from { opacity: 0; transform: translate(0, 40%) rotate(0deg) scale(.9); } }
@keyframes ld-float {
  0%, 100% { transform: translate(var(--x), var(--y)) rotate(var(--r)); }
  50% { transform: translate(var(--x), calc(var(--y) - 14px)) rotate(var(--r)); }
}
@keyframes ld-shine { 0%, 15% { background-position: 130% 0; } 60%, 100% { background-position: -30% 0; } }

/* Dos de carte (en attendant les images) */
.ld-back {
  position: absolute; inset: 0; display: block;
  background:
    radial-gradient(circle at 50% 50%, #f5f5f5 0 9%, #222 9% 12%, transparent 12%),
    linear-gradient(transparent 47%, #222 47% 53%, transparent 53%),
    radial-gradient(circle at 50% 50%, transparent 0 26%, #222 26% 29%, transparent 29%),
    radial-gradient(circle at 50% 50%, #e3463f 0 28%, transparent 28%),
    radial-gradient(120% 90% at 50% 40%, #3d63c9, #1b2f74 70%);
  box-shadow: inset 0 0 0 10px #1e3a8a;
}

/* Atouts sous les boutons */
.ld-perks { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.ld-perks li {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px 8px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, .05); border: 1px solid var(--border-strong); font-weight: 600; font-size: .95rem;
}
.ld-perks span {
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: .85rem; font-weight: 800;
  background: rgba(var(--accent-rgb), .2); color: var(--primary-2);
}

/* ---------- Chiffres ---------- */
.ld-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 110px !important;
  background: var(--border); border: 1px solid var(--border); border-radius: 24px; overflow: hidden;
}
.ld-stats > div { background: var(--bg); padding: 30px 26px; display: flex; flex-direction: column; gap: 6px; }
.ld-stats b { font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.ld-stats span { color: var(--muted); }

/* ---------- Fonctionnalités, texte et visuel en alternance ---------- */
.ld-feature {
  display: grid; grid-template-columns: 1fr 1.1fr; align-items: center; gap: 64px; padding: 150px 0 0;
}
.ld-flip .ld-text { order: 2; }
.ld-feature h2 { font-size: clamp(2.3rem, 5vw, 4rem); font-weight: 800; margin-bottom: 22px; }
.ld-text p:last-child { font-size: 1.15rem; line-height: 1.6; color: var(--muted); margin: 0; max-width: 470px; }
.ld-visual { display: flex; justify-content: center; }

/* Scanner : téléphone, cadre de visée et ligne qui balaie */
.ld-phone {
  position: relative; width: min(290px, 78vw); aspect-ratio: 9 / 18.5; border-radius: 46px; padding: 12px;
  background: linear-gradient(160deg, #2b303c, #12151c); box-shadow: 0 0 0 2px #3a4050, 0 40px 80px rgba(0, 0, 0, .55);
}
.ld-phone-screen {
  position: relative; height: 100%; border-radius: 36px; overflow: hidden;
  background: radial-gradient(120% 80% at 50% 30%, #3a3324, #17140e);
  display: flex; align-items: center; justify-content: center;
}
.ld-scan-card {
  position: relative; width: 66%; aspect-ratio: .716; border-radius: 5% / 3.5%; overflow: hidden;
  transform: rotate(-4deg); box-shadow: 0 16px 34px rgba(0, 0, 0, .6);
}
.ld-scan-frame {
  position: absolute; inset: 20% 12%; border-radius: 18px;
  background:
    linear-gradient(#fff, #fff) top left / 28px 3px, linear-gradient(#fff, #fff) top left / 3px 28px,
    linear-gradient(#fff, #fff) top right / 28px 3px, linear-gradient(#fff, #fff) top right / 3px 28px,
    linear-gradient(#fff, #fff) bottom left / 28px 3px, linear-gradient(#fff, #fff) bottom left / 3px 28px,
    linear-gradient(#fff, #fff) bottom right / 28px 3px, linear-gradient(#fff, #fff) bottom right / 3px 28px;
  background-repeat: no-repeat; opacity: .9;
}
.ld-scan-line {
  position: absolute; left: 12%; right: 12%; top: 20%; height: 3px; border-radius: 3px;
  background: var(--primary-2); box-shadow: 0 0 18px 4px rgba(157, 144, 255, .7);
  animation: ld-scan 2.6s ease-in-out infinite alternate;
}
@keyframes ld-scan { to { top: 80%; } }
.ld-scan-chip {
  position: absolute; left: 50%; bottom: 44px; transform: translateX(-50%); white-space: nowrap; max-width: 88%;
  display: flex; align-items: center; gap: 8px; padding: 9px 16px 9px 9px; border-radius: 999px;
  background: rgba(18, 21, 28, .82); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid var(--border-strong); font-weight: 600; font-size: .9rem; box-shadow: 0 10px 24px rgba(0, 0, 0, .4);
}
.ld-scan-chip span:last-child { overflow: hidden; text-overflow: ellipsis; }
.ld-ok {
  flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  background: var(--success); color: #062a1c; font-size: .8rem; font-weight: 800;
}

/* Classeur : une page de 9 cases, 3 cartes manquantes en filigrane */
.ld-binder {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: min(440px, 100%); padding: 16px;
  background: linear-gradient(160deg, #1c202b, #13161d); border: 1px solid var(--border-strong); border-radius: 18px;
  box-shadow: inset 0 0 0 6px rgba(255, 255, 255, .02), 0 40px 80px rgba(0, 0, 0, .5); transform: rotate(-2deg);
}
.ld-slot { position: relative; aspect-ratio: .716; border-radius: 7px; overflow: hidden; background: #222836; }
.ld-reveal.in .ld-slot { animation: ld-pop .6s cubic-bezier(.2, .8, .2, 1.2) both; }
.ld-reveal.in .ld-slot:nth-child(3n + 2) { animation-delay: .08s; }
.ld-reveal.in .ld-slot:nth-child(3n) { animation-delay: .16s; }
@keyframes ld-pop { from { opacity: 0; transform: scale(.85); } }
.ld-slot.ld-missing { background: rgba(255, 255, 255, .03); outline: 1px dashed var(--border-strong); outline-offset: -1px; }
.ld-slot.ld-missing img { filter: grayscale(1) brightness(.45); opacity: .5; }
.ld-slot em {
  position: absolute; inset: 0; display: grid; place-items: center; font-style: normal; font-weight: 800;
  font-size: 1.15rem; color: var(--text); text-shadow: 0 1px 4px #000;
}

/* Valeur : montant et courbe */
.ld-value {
  width: min(460px, 100%); padding: 30px 30px 24px; border-radius: 28px;
  background: linear-gradient(160deg, rgba(var(--accent-rgb), .16), rgba(23, 27, 36, .9) 55%);
  border: 1px solid var(--border-strong); box-shadow: 0 40px 80px rgba(0, 0, 0, .45);
  display: flex; flex-direction: column; gap: 6px;
}
.ld-value-label { color: var(--muted); font-weight: 600; }
.ld-value-num { font-size: clamp(2.4rem, 6vw, 3.6rem); font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.ld-value-up { color: var(--success); font-weight: 700; }
.ld-spark { width: 100%; height: 110px; margin: 18px 0 14px; overflow: visible; }
.ld-spark-line { stroke-dasharray: 1; stroke-dashoffset: 1; }
.ld-reveal.in .ld-spark-line { animation: ld-draw 1.8s .3s ease-out forwards; }
@keyframes ld-draw { to { stroke-dashoffset: 0; } }
.ld-sources { display: flex; flex-wrap: wrap; gap: 8px; }
.ld-sources span, .ld-langs span {
  padding: 6px 12px; border-radius: 999px; font-size: .85rem; font-weight: 600;
  background: rgba(255, 255, 255, .06); border: 1px solid var(--border);
}

/* Valeur : périodes, info-bulle et point de la courbe (comme le graphique de l'accueil) */
.ld-value-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.ld-ranges { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: rgba(255, 255, 255, .05); border: 1px solid var(--border); }
.ld-ranges i { font-style: normal; font-size: .75rem; font-weight: 700; padding: 4px 9px; border-radius: 999px; color: var(--muted); }
.ld-ranges i.on { background: var(--primary); color: #fff; }
.ld-chart { position: relative; margin: 18px 0 14px; }
.ld-chart .ld-spark { margin: 0; display: block; }
.ld-cross { stroke: rgba(255, 255, 255, .25); stroke-width: 1; stroke-dasharray: 3 3; }
.ld-dot {
  position: absolute; left: 70%; top: 46px; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%;
  background: #9d90ff; box-shadow: 0 0 0 3px #1a1d29;
}
.ld-tip {
  position: absolute; left: 70%; top: -8px; transform: translateX(calc(-100% - 14px)); display: flex; flex-direction: column;
  padding: 7px 11px; border-radius: 10px; background: rgba(34, 38, 52, .95); border: 1px solid var(--border-strong);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .4); white-space: nowrap; line-height: 1.3;
}
.ld-tip b { font-size: .95rem; font-variant-numeric: tabular-nums; }
.ld-tip small { color: var(--muted); font-size: .75rem; }
.ld-chart .ld-dot, .ld-chart .ld-tip, .ld-cross { opacity: 0; transition: opacity .5s 1.9s; }
.ld-reveal.in .ld-chart .ld-dot, .ld-reveal.in .ld-chart .ld-tip, .ld-reveal.in .ld-cross { opacity: 1; }

/* Listes d'envies : onglets de listes et cartes souhaitées */
.ld-wish {
  width: min(440px, 100%); padding: 22px; border-radius: 28px; background: linear-gradient(160deg, #1c202b, #13161d);
  border: 1px solid var(--border-strong); box-shadow: 0 40px 80px rgba(0, 0, 0, .45); display: flex; flex-direction: column; gap: 18px;
}
.ld-wish-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.ld-wish-chips span {
  padding: 7px 13px; border-radius: 999px; font-size: .85rem; font-weight: 600; background: rgba(255, 255, 255, .06); border: 1px solid var(--border);
}
.ld-wish-chips span.on { background: rgba(var(--accent-rgb), .2); border-color: rgba(var(--accent-rgb), .5); }
.ld-wish-chips small { color: var(--muted); margin-left: 3px; }
.ld-wish-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.ld-wish-card { position: relative; display: flex; flex-direction: column; gap: 6px; text-align: center; }
.ld-wish-card small { color: var(--gold); font-weight: 700; font-size: .85rem; }
.ld-heart {
  position: absolute; top: -7px; right: -7px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: #ff5d8f; color: #fff; font-size: .8rem; box-shadow: 0 4px 10px rgba(0, 0, 0, .4); z-index: 1;
}

/* Amis : liste avec photos de profil */
.ld-friends {
  width: min(420px, 100%); padding: 22px; border-radius: 28px; background: linear-gradient(160deg, #1c202b, #13161d);
  border: 1px solid var(--border-strong); box-shadow: 0 40px 80px rgba(0, 0, 0, .45); display: flex; flex-direction: column; gap: 10px; text-align: left;
}
.ld-friends-title { font-size: 1.15rem; margin-bottom: 4px; }
.ld-friend { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 16px; background: rgba(255, 255, 255, .04); border: 1px solid var(--border); }
.ld-friend img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; flex: none; background: #222836; box-shadow: 0 0 0 2px rgba(var(--accent-rgb), .5); }
.ld-friend span { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ld-friend small { color: var(--muted); font-size: .8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ld-friend i { font-style: normal; font-size: .8rem; font-weight: 700; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .07); }
.ld-friend i.ok { background: var(--primary); color: #fff; }
.ld-friend-new { border-style: dashed; border-color: rgba(var(--accent-rgb), .5); }

/* À votre goût : aperçus des ambiances */
.ld-themes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.ld-themes span {
  display: flex; flex-direction: column; gap: 6px; padding: 12px; border-radius: 14px; background: var(--bg-c);
  border: 1px solid var(--border-strong); aspect-ratio: 1.6;
}
.ld-themes i { display: block; height: 8px; border-radius: 4px; background: rgba(128, 128, 140, .35); }
.ld-themes i:first-child { width: 45%; background: var(--ac-c); }
.ld-themes i:last-child { width: 70%; }

/* ---------- Smartphone : téléphone au centre, atouts de part et d'autre ---------- */
.ld-mobile { padding: 160px 0 0; text-align: center; }
.ld-mobile-head h2 { font-size: clamp(2.4rem, 5.6vw, 4.4rem); font-weight: 800; }
.ld-mobile-head p:last-child { max-width: 600px; margin: 24px auto 0; font-size: 1.15rem; line-height: 1.6; color: var(--muted); }
.ld-mobile-stage { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 48px; margin-top: 64px; }
.ld-points { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 40px; }
.ld-points:first-child { text-align: right; }
.ld-points:last-child { text-align: left; }
.ld-points li { display: flex; flex-direction: column; gap: 6px; }
.ld-points b { font-size: 1.25rem; letter-spacing: -.01em; }
.ld-points span { color: var(--muted); line-height: 1.5; }

.ld-phone-app .ld-phone-screen { background: var(--bg); align-items: stretch; }
.ld-app { display: flex; flex-direction: column; width: 100%; padding: 30px 12px 0; text-align: left; }
.ld-app-top { display: flex; align-items: center; gap: 7px; font-size: .95rem; font-weight: 800; }
.ld-app-top i { font-style: normal; color: var(--gold); }
.ld-app-logo { width: 20px; height: 20px; }
.ld-app-kpi {
  margin: 14px 0 12px; padding: 10px 12px; border-radius: 12px; display: flex; flex-direction: column;
  background: linear-gradient(160deg, rgba(var(--accent-rgb), .22), var(--panel)); border: 1px solid var(--border);
}
.ld-app-kpi small { color: var(--muted); font-size: .62rem; }
.ld-app-kpi b { font-size: 1.15rem; }
.ld-app-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.ld-app-grid .ld-slot { border-radius: 5px; }
.ld-app-nav {
  margin: auto -12px 0; display: flex; justify-content: space-around; padding: 10px 6px 18px;
  border-top: 1px solid var(--border); background: rgba(18, 21, 28, .95);
}
.ld-app-nav svg { width: 20px; height: 20px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ld-app-nav svg.on { stroke: var(--primary-2); }

/* ---------- Sans e-mail : formulaire d'inscription à deux champs ---------- */
.ld-signup {
  width: min(380px, 100%); padding: 28px; border-radius: 28px; display: flex; flex-direction: column; gap: 14px; text-align: left;
  background: var(--panel); border: 1px solid var(--border-strong); box-shadow: 0 40px 80px rgba(0, 0, 0, .45);
}
.ld-signup-title { font-size: 1.3rem; margin-bottom: 4px; }
.ld-field { display: flex; flex-direction: column; gap: 6px; }
.ld-field small { color: var(--muted); font-weight: 600; }
.ld-field span { padding: 12px 14px; border-radius: 12px; background: var(--bg2); border: 1px solid var(--border-strong); }
.ld-field-no small { text-decoration: line-through; }
.ld-field-no span {
  border-style: dashed; color: var(--success); font-weight: 700; background: rgba(52, 211, 153, .08); border-color: rgba(52, 211, 153, .4);
}
.ld-field-no span::before { content: '✓ '; }
.ld-signup-btn { margin-top: 6px; padding: 13px; border-radius: 999px; text-align: center; font-weight: 700; background: var(--primary); color: #fff; }

/* ---------- Et tout le reste : tuiles ---------- */
.ld-more { padding: 160px 0 0; }
.ld-more > h2 { font-size: clamp(2.3rem, 5vw, 4rem); font-weight: 800; text-align: center; margin-bottom: 44px; }
.ld-bento { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-flow: dense; gap: 18px; }
.ld-tile {
  position: relative; overflow: hidden; padding: 30px; border-radius: 28px;
  background: var(--panel); border: 1px solid var(--border);
  transition: transform .9s cubic-bezier(.2, .7, .2, 1), opacity .9s ease, border-color .2s;
}
.ld-tile:hover { border-color: var(--border-strong); }
.ld-tile-wide { grid-column: span 2; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; }
.ld-tile:nth-child(3n + 2) { transition-delay: .08s; }
.ld-tile:nth-child(3n) { transition-delay: .16s; }
.ld-tile h3 { font-size: 1.45rem; letter-spacing: -.02em; margin: 14px 0 8px; }
.ld-tile p { margin: 0; color: var(--muted); line-height: 1.55; }
.ld-ico {
  width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 1.6rem;
  background: rgba(var(--accent-rgb), .14); border: 1px solid rgba(var(--accent-rgb), .25); color: var(--primary-2);
}
.ld-dex { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.ld-dex img { width: 100%; aspect-ratio: 1; object-fit: contain; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .5)); transition: transform .3s; }
.ld-dex img:nth-child(even) { filter: brightness(0) invert(.25) drop-shadow(0 10px 14px rgba(0, 0, 0, .5)); }
.ld-tile:hover .ld-dex img { transform: translateY(-4px); }
.ld-langs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.ld-slab {
  width: 74px; padding: 7px 6px 9px; border-radius: 9px; text-align: center; line-height: 1.1;
  background: linear-gradient(#e8e9ee, #c9ccd6); color: #111; box-shadow: 0 10px 20px rgba(0, 0, 0, .45);
  display: flex; flex-direction: column; border-top: 5px solid #d3262f;
}
.ld-slab span { font-weight: 800; font-size: .72rem; color: #d3262f; }
.ld-slab b { font-size: 1.6rem; }
.ld-slab small { font-size: .52rem; font-weight: 700; letter-spacing: .04em; }

/* ---------- Appel final ---------- */
.ld-final { text-align: center; padding: 170px 0 120px; }
.ld-final h2 { font-size: clamp(2.2rem, 5.4vw, 4.2rem); font-weight: 800; }
.ld-final p { color: var(--muted); font-size: 1.15rem; margin: 22px 0 34px; }
.ld-foot {
  max-width: var(--ld-w); margin: 0 auto; padding: 22px 0 40px; border-top: 1px solid var(--border);
  color: var(--muted); font-size: .8rem; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.ld-lang {
  font: inherit; font-size: .9rem; font-weight: 600; color: var(--text); cursor: pointer; padding: 7px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .06); border: 1px solid var(--border-strong);
}
.ld-lang:hover { border-color: var(--primary); }

/* ---------- Sommaire des fonctionnalités ---------- */
.ld-index { max-width: var(--ld-w); margin: 28px auto 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.ld-index button {
  font: inherit; font-size: .9rem; font-weight: 600; color: var(--text); cursor: pointer; padding: 8px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .05); border: 1px solid var(--border-strong); transition: border-color .15s, transform .15s;
}
.ld-index button:hover { border-color: var(--primary); transform: translateY(-2px); }
.ld-index button:focus-visible { outline: none; box-shadow: var(--ring); }
.landing [data-sec] { scroll-margin-top: 90px; }

/* Téléphone : cloche et ses alertes */
.ld-app-bell { margin-left: auto; position: relative; font-size: .8rem; }
.ld-app-bell i {
  position: absolute; top: -6px; right: -8px; min-width: 14px; height: 14px; border-radius: 7px; background: #ff5d8f; color: #fff;
  font-style: normal; font-size: .55rem; font-weight: 800; display: grid; place-items: center;
}

/* Scan : bandeau du mode salon */
.ld-salon-chip {
  position: absolute; right: -28px; top: 38px; display: flex; flex-direction: column; gap: 2px; padding: 10px 14px; border-radius: 16px;
  background: rgba(18, 21, 28, .9); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border: 1px solid rgba(var(--accent-rgb), .55);
  box-shadow: 0 14px 30px rgba(0, 0, 0, .45); font-size: .82rem; text-align: left; transform: rotate(3deg);
}
.ld-salon-chip b { color: var(--primary-2); }

/* Échanges et jeu : panneaux */
.ld-trade, .ld-game {
  width: min(460px, 100%); padding: 22px; border-radius: 28px; background: linear-gradient(160deg, #1c202b, #13161d);
  border: 1px solid var(--border-strong); box-shadow: 0 40px 80px rgba(0, 0, 0, .45); display: flex; flex-direction: column; gap: 16px; text-align: left;
}
.ld-trade-head { display: flex; gap: 12px; align-items: center; }
.ld-trade-head img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px rgba(var(--accent-rgb), .5); }
.ld-trade-head span { display: flex; flex-direction: column; }
.ld-trade-head small { color: var(--muted); }
.ld-trade-cols { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; }
.ld-trade-cols small { display: block; color: var(--muted); font-weight: 600; margin-bottom: 6px; }
.ld-trade-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.ld-trade-cards .ld-slot { outline: 2px solid var(--primary); outline-offset: 1px; }
.ld-trade-arrow { font-size: 1.6rem; font-weight: 800; color: var(--primary-2); }
.ld-trade-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 16px;
  background: rgba(255, 255, 255, .04); border: 1px solid var(--border); font-weight: 700; font-variant-numeric: tabular-nums;
}
.ld-trade-bar i { font-style: normal; font-size: .78rem; padding: 3px 10px; border-radius: 99px; background: rgba(46, 180, 110, .18); color: #34d399; }
.ld-trade-bar b { margin-left: auto; padding: 8px 14px; border-radius: 999px; background: var(--primary); color: #fff; font-size: .85rem; }

/* Cote : notification d'une alerte */
.ld-notif {
  display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; padding: 12px; border-radius: 18px;
  background: rgba(255, 255, 255, .07); border: 1px solid var(--border-strong); box-shadow: 0 14px 30px rgba(0, 0, 0, .35);
  opacity: 0; transform: translateY(14px); transition: opacity .6s 2.2s, transform .6s 2.2s;
}
.ld-reveal.in .ld-notif { opacity: 1; transform: none; }
.ld-notif img { width: 34px; height: 34px; border-radius: 9px; }
.ld-notif span { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.ld-notif small { color: var(--muted); }
.ld-notif em { font-style: normal; font-size: .72rem; color: var(--muted); }

/* Pré-gradation : carte avec les lignes de centrage, notes par critère */
.ld-grade { display: flex; gap: 22px; align-items: center; justify-content: center; }
@media (max-width: 520px) { .ld-grade { flex-wrap: wrap; } }
.ld-grade-card {
  position: relative; flex: none; width: min(200px, 52vw); aspect-ratio: .716; border-radius: 4.6% / 3.3%; overflow: hidden; background: #1a1f2b;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .55); transform: rotate(-3deg);
}
.ld-grade-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ld-gl { position: absolute; z-index: 2; pointer-events: none; }
.ld-gl.o { inset: 2%; border: 2px solid #3fe08a; border-radius: 4%; }
.ld-gl.i { inset: 6.4% 5.6% 7% 6.2%; border: 2px dashed #2fd6ff; }
.ld-grade-side { display: flex; flex-direction: column; gap: 10px; width: min(220px, 100%); }
.ld-grade-final { padding: 14px 16px; border-radius: 18px; background: var(--panel); border: 1px solid var(--border-strong); }
.ld-grade-final small, .ld-grade-gain small { display: block; color: var(--muted); font-weight: 600; }
.ld-grade-final b { font-size: 1.9rem; color: var(--primary-2); letter-spacing: -.02em; }
.ld-grade-crit { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ld-grade-crit li {
  display: flex; justify-content: space-between; padding: 8px 12px; border-radius: 12px;
  background: rgba(255, 255, 255, .04); border: 1px solid var(--border); font-size: .9rem;
}
.ld-grade-crit span { color: var(--muted); }
.ld-grade-gain { padding: 12px 16px; border-radius: 18px; background: rgba(46, 180, 110, .1); border: 1px solid rgba(46, 180, 110, .5); }
.ld-grade-gain b { font-size: 1.5rem; color: #34d399; margin-right: 8px; }
.ld-grade-gain span { font-weight: 700; }

/* Envies : total pour compléter */
.ld-shop { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 16px; background: rgba(var(--accent-rgb), .12); border: 1px solid rgba(var(--accent-rgb), .4); }
.ld-shop span { color: var(--muted); }
.ld-shop strong { color: var(--text); font-variant-numeric: tabular-nums; }

/* Amis : lien du profil public */
.ld-publink { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 16px; background: rgba(var(--accent-rgb), .12); border: 1px solid rgba(var(--accent-rgb), .4); }
.ld-publink b { flex: 1; min-width: 0; font-size: .85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ld-publink i { font-style: normal; font-size: .8rem; font-weight: 700; padding: 6px 12px; border-radius: 999px; background: var(--primary); color: #fff; }

/* Jeu : booster et cartes tirées */
.ld-game-top { display: flex; justify-content: space-between; align-items: center; }
.ld-game-top span { font-weight: 800; color: var(--gold); font-variant-numeric: tabular-nums; }
.ld-game-pack { display: grid; grid-template-columns: 90px 1fr; gap: 14px; align-items: center; }
.ld-pack {
  aspect-ratio: .55; border-radius: 10px; display: grid; place-items: center; transform: rotate(-6deg);
  background: linear-gradient(160deg, #ff8bd8, #7c6cff 55%, #3b2bbf); box-shadow: 0 16px 30px rgba(0, 0, 0, .5), inset 0 0 0 3px rgba(255, 255, 255, .2);
}
.ld-pack i { font-style: normal; font-weight: 800; font-size: .7rem; letter-spacing: .12em; color: #fff; writing-mode: vertical-rl; }
.ld-game-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ld-game-cards .ld-slot:nth-child(2) { transform: translateY(-10px); box-shadow: 0 0 22px rgba(255, 200, 90, .55); }
.ld-game-row {
  display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 10px 12px; border-radius: 16px;
  background: rgba(255, 255, 255, .04); border: 1px solid var(--border); font-size: .9rem;
}
.ld-game-row b { color: #34d399; }

/* Tuile du calendrier */
.ld-cal { display: flex; flex-direction: column; gap: 8px; }
.ld-cal span { display: flex; gap: 12px; align-items: center; padding: 8px 10px; border-radius: 14px; background: rgba(255, 255, 255, .04); border: 1px solid var(--border); }
.ld-cal b { width: 44px; flex: none; display: flex; flex-direction: column; align-items: center; line-height: 1; font-size: 1.2rem; }
.ld-cal b i { font-style: normal; font-size: .65rem; text-transform: uppercase; color: var(--primary-2); }
.ld-cal em { font-style: normal; font-weight: 700; display: flex; flex-direction: column; }
.ld-cal small { color: var(--muted); font-weight: 500; }

/* ---------- Tablette et téléphone ---------- */
@media (max-width: 900px) {
  .ld-feature { grid-template-columns: 1fr; gap: 40px; padding-top: 110px; text-align: center; }
  .ld-flip .ld-text { order: 0; }
  .ld-text p:last-child { margin: 0 auto; }
  .ld-bento { grid-template-columns: 1fr 1fr; }
  .ld-bento > :last-child { grid-column: 1 / -1; }
  .ld-stats { grid-template-columns: 1fr 1fr; }
  .ld-mobile-stage { grid-template-columns: 1fr; gap: 36px; }
  .ld-mobile-stage .ld-phone-app { order: -1; margin: 0 auto; }
  .ld-points, .ld-points:first-child, .ld-points:last-child { text-align: center; gap: 26px; }
}
@media (max-width: 760px) {
  .landing { padding: 0 16px; }
  .ld-hero { padding-top: 56px; }
  .ld-fan { margin-top: 40px; height: clamp(240px, 70vw, 360px); }
  .ld-card { width: 42vw; margin-left: -21vw; }
  .ld-card:nth-child(1) { --x: -40vw; } .ld-card:nth-child(2) { --x: -21vw; }
  .ld-card:nth-child(4) { --x: 21vw; }  .ld-card:nth-child(5) { --x: 40vw; }
  .ld-stats { margin-top: 110px !important; border-radius: 20px; }
  .ld-stats > div { padding: 20px 18px; }
  .ld-more, .ld-mobile { padding-top: 110px; }
  .ld-perks li { font-size: .85rem; padding: 6px 12px 6px 8px; }
  .ld-bento { grid-template-columns: 1fr; gap: 14px; }
  .ld-tile-wide { grid-column: auto; grid-template-columns: 1fr; }
  .ld-tile { padding: 24px; border-radius: 24px; }
  .ld-final { padding: 120px 0 80px; }
  .ld-salon-chip { right: -6px; top: 18px; }
  .ld-index button { font-size: .82rem; padding: 7px 12px; }
}
@media (max-width: 440px) { body.guest .top-actions .guest-only { display: none !important; } }

@media (prefers-reduced-motion: reduce) {
  .ld-reveal { opacity: 1; transform: none; transition: none; }
  .ld-card, .ld-card::after, .ld-scan-line, .ld-reveal.in .ld-slot { animation: none !important; }
  .ld-notif { opacity: 1; transform: none; transition: none; }
  .ld-spark-line { stroke-dashoffset: 0; }
  .ld-chart .ld-dot, .ld-chart .ld-tip, .ld-cross { opacity: 1; transition: none; }
}

/* Visuels : texte aligné à gauche, même quand la section est centrée (téléphone). */
.ld-notif, .ld-grade-side, .ld-shop, .ld-publink { text-align: left; }
