﻿/* Playfair Display self-hosted (rendu identique mobile / desktop) */
@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 400 900;
  font-display: block;
  src: url("/fonts/playfair-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 400 900;
  font-display: block;
  src: url("/fonts/playfair-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  /* DA ScanEstim : alignée logo 3D + wordmark ScanEstim.fr */
  --bg: #eceee9;
  --neon-cyan: #3d8f55; /* legacy alias → vert marque (plus de bleu hors DA) */
  --neon-green: #0a1610;
  --neon-violet: #0a1610;
  --neon-orange: #c47a12;
  --panel: rgba(255, 255, 255, 0.98);
  --panel-2: rgba(247, 249, 246, 0.98);
  --ink: #0a1610;
  --muted: #4a554e;
  --line: rgba(10, 22, 16, 0.14);
  --accent: #0a1610;
  --accent-2: #5aba5f; /* nuances jauges / scores uniquement */
  --brand-green: #0a1610; /* noir Estim — fonds sombres / texte fort */
  --brand-laser: #81f08c; /* glow logo 3D uniquement */

  --brand-scan: #3d8f55; /* vert wordmark Scan/.fr — accents UI */
  --brand-estim: #0a1610; /* noir logo - Estim */
  --brand-glow: #c8ffcb;
  --lilac: #0a1610; /* legacy alias → ink */
  --lilac-2: #3d8f55; /* legacy alias → brand-scan */
  --warn: #b8860b;
  --scan-vente: #c9a227;
  --scan-vente-bg: rgba(201, 162, 39, 0.12);
  --scan-location: #2b6cb0;
  --scan-location-bg: rgba(43, 108, 176, 0.1);
  --radius: 16px;
  --glass-bg: linear-gradient(
    155deg,
    #ffffff 0%,
    #f4f7f3 55%,
    #ebf1ea 100%
  );
  --glass-border: 1px solid rgba(10, 22, 16, 0.12);
  --glass-shadow:
    0 10px 28px rgba(10, 22, 16, 0.08),
    0 1px 0 rgba(255, 255, 255, 0.9);
  --glass-blur: blur(10px) saturate(1.05);
  /* Même serif que le wordmark ScanEstim.fr */
  --font-brand: "Playfair Display", Georgia, serif;
  font-family: var(--font-brand);
}

* {
  box-sizing: border-box;
}

html,
body {
  font-family: var(--font-brand);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: geometricPrecision;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

button,
input,
select,
textarea,
optgroup,
option {
  font-family: inherit;
}

.brand-wordmark,
.brand-slogan,
.hero h1 {
  font-family: var(--font-brand);
}


html {
  height: 100%;
  min-height: 100%;
  min-height: 100dvh;
  background-color: var(--bg);
}

body {
  margin: 0;
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 95% 60% at 50% -12%, rgba(61, 143, 85, 0.18), transparent 58%),
    linear-gradient(180deg, #e8ebe6 0%, #f4f5f2 38%, #ffffff 100%);
  color: var(--ink);
  min-height: 100%;
  min-height: 100vh;
  min-height: 100dvh;
}

/* Plus de lumi�res / orbes flous (h�ritage immoscan-app) - fond blanc uni */
body::before,
body::after {
  content: none;
  display: none;
}

body.has-scan-ambient::before {
  content: none;
  display: none;
  background: none;
}

@media print {
  body::before,
  body::after {
    display: none !important;
  }
}

.page,
.landing,
.modal,
.paste-menu,
.admin-dash,
.legal-page {
  position: relative;
  z-index: 1;
}

.page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 8px 20px 56px;
}

body.is-logged .page {
  padding-top: 2px;
}

body.is-logged .hero {
  margin-top: 0;
}

.hero {
  text-align: center;
  margin: 0 0 4px;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  position: relative;
}

.brand-mark {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.brand-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2.8vw, 24px);
}

.brand-logo-full {
  display: none !important;
}

.brand-house {
  position: relative;
  width: clamp(118px, 16vw, 176px);
  height: clamp(118px, 16vw, 176px);
  flex: 0 0 auto;
  border-radius: 0;
  overflow: visible;
  background: transparent !important;
  border: 0;
  outline: 0;
  box-shadow: none !important;
  animation: brand-mark-float 5.2s ease-in-out infinite;
  filter: drop-shadow(0 6px 12px rgba(10, 22, 16, 0.16));
}

.logo-house,
.logo-scale,
.logo-mark,
.logo-mark-anim,
.logo-mark-leds {
  width: 100%;
  height: 100%;
  flex: 0 0 auto;
  display: block;
  object-fit: contain;
  object-position: center;
  transform-origin: 50% 45%;
  background: transparent !important;
  border: 0;
  outline: 0;
  box-shadow: none !important;
  border-radius: 0;
  mix-blend-mode: normal;
}

.logo-mark-anim,
.logo-mark-leds {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.logo-mark-leds {
  mix-blend-mode: screen;
  z-index: 3;
}

@keyframes brand-mark-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

/* Pendant le chargement : logo centr� dans l'anneau, pas dans le bandeau marque. */
body.is-scanning .hero .brand-logo-full,
body.is-scanning .hero .brand-house,
#app:has(#loader:not(.hidden)) .hero .brand-logo-full,
#app:has(#loader:not(.hidden)) .hero .brand-house {
  display: none;
}

.scan-beam {
  display: none;
}

.logo-loupe {
  display: none;
}

.hero h1,
.brand-wordmark {
  margin: 0;
  font-size: clamp(3.2rem, 8.8vw, 5.2rem);
  letter-spacing: -0.035em;
  font-weight: 800;
  line-height: 1.02;
  white-space: nowrap;
  color: var(--ink);
  position: relative;
  display: inline-block;
  overflow: visible;
  /* Place pour le r de .fr + drop-shadow (filtre Chrome clippe le glyphe) */
  padding-right: 0.28em;
  box-sizing: content-box;
  animation: brand-word-breathe 5.2s ease-in-out infinite;
}

@keyframes brand-word-breathe {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-1px);
  }
}

.brand-wordmark-base {
  position: relative;
  z-index: 0;
  display: inline-block;
  /* Padding dans la zone filter: sinon Chrome coupe le r de .fr */
  padding: 0.06em 0.38em 0.32em 0.04em;
  margin: 0;
  filter: drop-shadow(0 2px 0 rgba(10, 22, 16, 0.48))
    drop-shadow(0 5px 12px rgba(10, 22, 16, 0.26));
}

.brand-wordmark-shine {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1;
  padding: 0.06em 0.38em 0.32em 0.04em;
  box-sizing: content-box;
  white-space: nowrap;
  pointer-events: none;
  color: #e8ffea;
  background: none;
  border: 0;
  outline: 0;
  box-shadow: none;
  /* Pas de filter ici: sinon Chrome peint un rectangle autour du mask */
  filter: none !important;
  -webkit-filter: none !important;
  /* Soft vertical scan band - mask keeps light inside glyph outlines only */
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 0, 0, 0.12) 40%,
    #000 48%,
    #000 52%,
    rgba(0, 0, 0, 0.12) 60%,
    transparent 100%
  );
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 0, 0, 0.12) 40%,
    #000 48%,
    #000 52%,
    rgba(0, 0, 0, 0.12) 60%,
    transparent 100%
  );
  -webkit-mask-size: 28% 100%;
  mask-size: 28% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: -40% 0;
  mask-position: -40% 0;
  animation: brand-letter-scan 4.8s ease-in-out infinite;
}

.brand-wordmark-shine .brand-scan,
.brand-wordmark-shine .brand-estim,
.brand-wordmark-shine .brand-tld {
  color: #e8ffea;
  -webkit-text-fill-color: #e8ffea;
  background: none !important;
  -webkit-background-clip: unset;
  background-clip: unset;
  /* Annule les drop-shadow du wordmark de base (sinon cadre autour du scan) */
  filter: none !important;
  -webkit-filter: none !important;
  text-shadow: none;
  box-shadow: none;
  outline: 0;
  border: 0;
}

@keyframes brand-letter-scan {
  0%,
  10% {
    -webkit-mask-position: -42% 0;
    mask-position: -42% 0;
  }
  90%,
  100% {
    -webkit-mask-position: 142% 0;
    mask-position: 142% 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .brand-house,
  .brand-wordmark {
    animation: none;
  }
  .brand-wordmark-shine {
    animation: none;
    opacity: 0;
  }
}

.brand-scan,
.brand-tld {
  background: linear-gradient(165deg, #4a9660 0%, #3d8f55 42%, #2f7344 78%, #245a36 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  -webkit-text-fill-color: transparent;
  filter: none;
  text-shadow: none;
}

.brand-estim {
  background: linear-gradient(165deg, #0f1a14 0%, #0a1610 48%, #050a07 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  -webkit-text-fill-color: transparent;
  filter: none;
  text-shadow: none;
}

.brand-tld {
  display: inline-block;
  font-size: 0.92em;
  font-weight: 800;
  letter-spacing: 0;
  margin-left: 0.02em;
  padding-right: 0.12em;
  vertical-align: baseline;
  position: relative;
  top: 0;
  line-height: 1;
  overflow: visible;
}



.landing .landing-brand,
.landing .landing-brand-title,
.hero .brand,
.hero .brand-mark,
.hero .brand-row {
  overflow: visible;
}


.brand-slogan {
  margin: 0;
  font-size: clamp(0.58rem, 1.4vw, 0.72rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-estim);
  text-align: center;
  line-height: 1.25;
}

.brand-slogan-accent {
  color: var(--brand-scan);
  font-weight: inherit;
}

.brand-suffix {
  font-size: 0.58em;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-left: 0.02em;
  opacity: 0.88;
  vertical-align: 0.14em;
}

.scan-when {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.02em;
  line-height: 1.35;
  text-align: left;
  opacity: 0.9;
}
.scan-when-guest {
  color: #e05c5c;
  font-weight: 700;
  opacity: 1;
}
.guest-scan-promo-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 14px;
  margin: 0 0 12px;
  padding: 10px 12px;
  border: var(--glass-border);
  border-radius: 14px;
  background: var(--glass-bg);
  box-shadow: var(--glass-shadow);
}
.guest-scan-promo-bar.hidden {
  display: none !important;
}
.guest-scan-promo-btn {
  flex: 0 0 auto;
  padding: 0.65rem 1.1rem;
  font-size: 0.95rem;
  font-weight: 800;
  border-radius: 999px;
}
.guest-scan-promo-timer,
.guest-scan-timer {
  margin: 0;
  flex: 1 1 auto;
  text-align: center;
  font-size: clamp(1.85rem, 6vw, 2.75rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 0.02em;
  color: #e05c5c;
  font-variant-numeric: tabular-nums;
}
.guest-scan-timer.hidden {
  display: none !important;
}
#guest-loader-timer {
  margin-top: 6px;
  width: 100%;
}
.guest-result-banner {
  margin: 0 0 14px;
  padding: 12px 10px;
  text-align: center;
  font-size: clamp(1.15rem, 4.2vw, 1.85rem);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #e05c5c;
}
.guest-result-banner.hidden {
  display: none !important;
}

@keyframes house-wiggle {
  0%, 42%, 72%, 100% { transform: rotate(0) scale(1); }
  50% { transform: rotate(-7deg) scale(1.08); }
  58% { transform: rotate(6deg) scale(1.1); }
  64% { transform: rotate(-3deg) scale(1.04); }
}

@keyframes scan-beam {
  0% { top: 16%; opacity: 0; }
  12% { opacity: 1; }
  88% { opacity: 1; }
  100% { top: 78%; opacity: 0; }
}

body.is-scanning .brand-house .logo-house,
body.is-scanning .scan-beam {
  animation-duration: 1.7s;
}

.paste-menu {
  position: fixed;
  z-index: 50;
  min-width: 160px;
  padding: 6px;
  background: var(--glass-bg);
  border: var(--glass-border);
  border-radius: 10px;
  box-shadow: var(--glass-shadow);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}

.paste-menu button {
  width: 100%;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  text-align: left;
  padding: 10px 12px;
}

.paste-menu button:hover {
  background: var(--panel-2);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.scan-bar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: stretch;
  margin-bottom: 22px;
}

.scan-url-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
  min-width: 0;
}

.scan-bar input,
.scan-url-row input {
  flex: 1;
  min-width: 0;
  width: 100%;
  background: rgba(23, 32, 28, 0.48);
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 14px 20px;
  font: 15px/1.4 var(--font-brand);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  -webkit-user-select: text;
  user-select: text;
}

.scan-bar input:focus,
.scan-url-row input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.paste-link-btn {
  flex: 0 0 auto;
  white-space: nowrap;
  border-radius: 999px;
  padding: 0 16px;
}

@media (min-width: 821px) {
  .paste-link-btn {
    display: none;
  }
  /* Landing invit� : garder � Coller � visible (Ctrl+V seul ne suffit pas toujours). */
  .landing-scan-bar .paste-link-btn {
    display: inline-flex;
    align-items: center;
  }
}

.scan-actions {
  display: flex;
  gap: 8px;
}

.layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.panel {
  background: var(--glass-bg);
  border: var(--glass-border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--glass-shadow);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.panel-head h2 {
  margin: 0;
  font-size: 1.05rem;
}

.actions {
  display: flex;
  gap: 8px;
}

code {
  color: var(--accent);
}

button {
  border: 0;
  border-radius: 999px;
  padding: 9px 14px;
  cursor: pointer;
  font-weight: 600;
  white-space: nowrap;
}

.primary {
  background: var(--brand-scan);
  color: #ffffff;
  padding: 12px 22px;
  font-size: 1rem;
  font-weight: 800;
  border: 1px solid #2a6b3c;
}

.primary:hover,
.primary:focus-visible {
  background: #2a6b3c;
  color: #ffffff;
  outline: none;
}

.primary:disabled,
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.ghost {
  background: rgba(20, 40, 25, 0.03);
  color: var(--ink);
  border: 1px solid rgba(20, 40, 25, 0.14);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.scan-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin: 28px 0 8px;
  flex-wrap: wrap;
}

.scan-vote {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.scan-vote-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  padding: 0.65rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(20, 40, 25, 0.14);
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.scan-vote-btn .btn-ico {
  width: 18px;
  height: 18px;
}

.scan-vote-btn[data-vote="like"]:hover,
.scan-vote-btn[data-vote="like"].is-on {
  border-color: rgba(61, 143, 85, 0.7);
  color: #7dd3a0;
  background: rgba(61, 143, 85, 0.12);
}

.scan-vote-btn[data-vote="dislike"]:hover,
.scan-vote-btn[data-vote="dislike"].is-on {
  border-color: rgba(224, 92, 92, 0.7);
  color: #f0a0a0;
  background: rgba(224, 92, 92, 0.12);
}

.scan-footer-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 220px;
}

.scan-footer-btn .btn-ico {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.print-scan-btn {
  background: linear-gradient(90deg, #e05c5c 0%, #e0c354 50%, #3d8f55 100%);
  color: #0a1610;
  border: 0;
  font-weight: 700;
}

.print-scan-btn:hover {
  filter: brightness(1.06);
}

.loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin: 56px auto 28px;
}

/* Analyse type chat : barre compacte, plus de grand anneau d'attente */
.loader.loader--stream {
  align-items: stretch;
  gap: 10px;
  width: min(96vw, 36rem);
  margin: 1.1rem auto 1.25rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(20, 30, 22, 0.1);
  border-radius: 14px;
  background: linear-gradient(165deg, #ffffff 0%, #f4f7f4 100%);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.04);
}

.loader-stream-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.loader-stream-dots {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 0.45rem;
  flex-shrink: 0;
}

.loader-stream-dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-green);
  opacity: 0.35;
  animation: loader-stream-dot 1.1s ease-in-out infinite;
}

.loader-stream-dots i:nth-child(2) {
  animation-delay: 0.18s;
}

.loader-stream-dots i:nth-child(3) {
  animation-delay: 0.36s;
}

@keyframes loader-stream-dot {
  0%,
  80%,
  100% {
    opacity: 0.28;
    transform: translateY(0);
  }
  40% {
    opacity: 1;
    transform: translateY(-2px);
  }
}

.loader-stream-copy {
  min-width: 0;
  flex: 1;
}

.loader--stream .loader-bar-text {
  display: block;
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #0a1610;
}

.loader--stream .loader-step {
  margin: 0.2rem 0 0;
  max-width: none;
  text-align: left;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
}

.loader--stream .scan-kind {
  align-self: flex-start;
  margin: 0;
  max-width: none;
  width: auto;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  padding: 5px 10px;
}

.loader--stream .guest-scan-timer {
  margin: 0;
  text-align: left;
}

/* R�v�lation progressive type ChatGPT */
.results.is-revealing .scan-reveal-later {
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
}

.results .scan-reveal-later.is-in {
  opacity: 1;
  transform: none;
  pointer-events: auto;
  transition: opacity 0.38s ease, transform 0.38s ease;
}

.scan-type-host.is-typing::after {
  content: "";
  display: inline-block;
  width: 0.42em;
  height: 1.05em;
  margin-left: 2px;
  vertical-align: -0.15em;
  background: var(--brand-green);
  animation: scan-caret-blink 0.85s steps(1) infinite;
}

@keyframes scan-caret-blink {
  0%,
  45% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .loader-stream-dots i,
  .scan-type-host.is-typing::after {
    animation: none;
  }
  .results.is-revealing .scan-reveal-later,
  .results .scan-reveal-later.is-in {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.loader-house {
  width: 220px;
  height: 220px;
  animation: none;
}

.loader-scene {
  position: relative;
  width: 280px;
  height: 280px;
}

.loader-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.loader-ring-track,
.loader-ring-arc {
  fill: none;
  stroke-width: 6.5;
}

.loader-ring-track {
  stroke: #ece8d8;
  opacity: 0.42;
}

.loader-ring-arc {
  stroke: url(#loader-ring-grad);
  stroke-linecap: round;
  stroke-dasharray: 0 100;
  stroke-dashoffset: 0;
}

.loader-scene .loader-house {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  width: 112px;
  height: 96px;
}

.loader-beam {
  position: absolute;
  left: 48px;
  right: 48px;
  height: 5px;
  border-radius: 99px;
  background: linear-gradient(90deg, transparent, #81f08c, #fff, transparent);
  box-shadow: 0 0 14px rgba(129, 240, 140, 0.55);
  animation: scan-beam 1.5s ease-in-out infinite;
  pointer-events: none;
  z-index: 2;
}

.loader-loupe {
  position: absolute;
  width: 96px;
  height: 96px;
  animation: loader-loupe-orbit 2.2s ease-in-out infinite;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.35));
  z-index: 3;
}

@keyframes loader-loupe-orbit {
  0%, 100% { top: 4px; left: 178px; transform: rotate(-22deg); }
  28% { top: 48px; left: 8px; transform: rotate(14deg) scale(1.08); }
  52% { top: 168px; left: 36px; transform: rotate(-10deg) scale(1.16); }
  76% { top: 24px; left: 108px; transform: rotate(20deg); }
}

.loader-bar-text {
  color: var(--ink);
  font-weight: 800;
  font-size: 1.2rem;
  pointer-events: none;
}

.loader-step {
  margin: -6px 0 0;
  max-width: 24rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
  min-height: 1.4em;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.loader-step.is-swap {
  opacity: 0.28;
  transform: translateY(5px);
}

.scan-kind {
  margin: 0 0 10px;
  padding: 10px 18px;
  width: 100%;
  text-align: center;
  font-size: clamp(1.65rem, 4.6vw, 2.75rem);
  font-weight: 900;
  letter-spacing: 0.14em;
  line-height: 1.15;
  text-transform: uppercase;
  border-radius: 14px;
  border: 2px solid currentColor;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 10px 28px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
}

.loader .scan-kind {
  margin: 4px 0 0;
  max-width: 28rem;
}

.scan-kind.is-vente {
  color: var(--scan-vente);
  background: linear-gradient(
    155deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(224, 195, 84, 0.22) 45%,
    rgba(224, 195, 84, 0.1) 100%
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 10px 28px rgba(0, 0, 0, 0.22),
    0 0 24px rgba(224, 195, 84, 0.16);
}

.scan-kind.is-location {
  color: var(--scan-location);
  background: linear-gradient(
    155deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(126, 200, 255, 0.24) 45%,
    rgba(126, 200, 255, 0.1) 100%
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 10px 28px rgba(0, 0, 0, 0.22),
    0 0 24px rgba(126, 200, 255, 0.16);
}

/* Banner SCAN VENTE / SCAN LOCATION : scintillement n�on doux (loader + r�sultat). */
#loader-kind.scan-kind.is-vente,
#result-kind.scan-kind.is-vente {
  animation: neon-scan-banner-vente 2.6s ease-in-out infinite;
}

#loader-kind.scan-kind.is-location,
#result-kind.scan-kind.is-location {
  animation: neon-scan-banner-location 2.6s ease-in-out infinite;
}

@keyframes neon-scan-banner-vente {
  0%,
  100% {
    opacity: 0.78;
    filter: brightness(0.92);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.16),
      0 10px 28px rgba(0, 0, 0, 0.22),
      0 0 12px rgba(224, 195, 84, 0.18),
      0 0 22px rgba(224, 195, 84, 0.1);
  }
  50% {
    opacity: 1;
    filter: brightness(1.12);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.28),
      0 10px 28px rgba(0, 0, 0, 0.22),
      0 0 16px rgba(224, 195, 84, 0.45),
      0 0 32px rgba(224, 195, 84, 0.35),
      0 0 48px rgba(255, 210, 90, 0.22);
  }
}

@keyframes neon-scan-banner-location {
  0%,
  100% {
    opacity: 0.78;
    filter: brightness(0.92);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.16),
      0 10px 28px rgba(0, 0, 0, 0.22),
      0 0 12px rgba(126, 200, 255, 0.18),
      0 0 22px rgba(126, 200, 255, 0.1);
  }
  50% {
    opacity: 1;
    filter: brightness(1.12);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.28),
      0 10px 28px rgba(0, 0, 0, 0.22),
      0 0 16px rgba(126, 200, 255, 0.45),
      0 0 32px rgba(126, 200, 255, 0.35),
      0 0 48px rgba(160, 220, 255, 0.22);
  }
}

@media (prefers-reduced-motion: reduce) {
  #loader-kind.scan-kind.is-vente,
  #loader-kind.scan-kind.is-location,
  #result-kind.scan-kind.is-vente,
  #result-kind.scan-kind.is-location {
    animation: none;
    opacity: 1;
    filter: none;
  }
}

.home-scan-types {
  margin: 0;
  max-width: none;
  width: 100%;
  text-align: center;
}

.home-scan-types-lead {
  display: none !important;
}

.home-scan-types-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  width: 100%;
}

.home-scan-types .scan-kind {
  width: 100%;
  max-width: none;
  flex: none;
  margin: 0;
  padding: 5px 10px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  border-radius: 10px;
  color: #0a1610;
  border-color: #0a1610;
  background: rgba(255, 255, 255, 0.92);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 6px 16px rgba(0, 0, 0, 0.12);
}

.home-scan-types .scan-kind.is-vente,
.home-scan-types .scan-kind.is-location {
  color: #0a1610;
  border-color: #0a1610;
  background: rgba(255, 255, 255, 0.92);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 6px 16px rgba(0, 0, 0, 0.12);
}

.home-scan-types .scan-kind.is-vente {
  animation: neon-kind-vente 3.2s ease-in-out infinite;
}

.home-scan-types .scan-kind.is-location {
  animation: neon-kind-location 3.2s ease-in-out infinite;
}

@keyframes neon-kind-vente {
  0%,
  8% {
    color: #0a1610;
    border-color: #0a1610;
    opacity: 1;
    filter: none;
    text-shadow: none;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.16),
      0 6px 16px rgba(0, 0, 0, 0.12);
  }
  18%,
  42% {
    color: var(--brand-green);
    border-color: var(--brand-green);
    opacity: 1;
    filter: brightness(1.05);
    text-shadow:
      0 0 6px rgba(27, 94, 32, 0.45),
      0 0 14px rgba(27, 94, 32, 0.28);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.22),
      0 6px 16px rgba(0, 0, 0, 0.12),
      0 0 10px rgba(27, 94, 32, 0.4),
      0 0 22px rgba(27, 94, 32, 0.32),
      0 0 36px rgba(27, 94, 32, 0.18);
  }
  52%,
  100% {
    color: #0a1610;
    border-color: #0a1610;
    opacity: 1;
    filter: none;
    text-shadow: none;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.16),
      0 6px 16px rgba(0, 0, 0, 0.12);
  }
}

@keyframes neon-kind-location {
  0%,
  52% {
    color: #0a1610;
    border-color: #0a1610;
    opacity: 1;
    filter: none;
    text-shadow: none;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.16),
      0 6px 16px rgba(0, 0, 0, 0.12);
  }
  62%,
  86% {
    color: var(--brand-green);
    border-color: var(--brand-green);
    opacity: 1;
    filter: brightness(1.05);
    text-shadow:
      0 0 6px rgba(27, 94, 32, 0.45),
      0 0 14px rgba(27, 94, 32, 0.28);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.22),
      0 6px 16px rgba(0, 0, 0, 0.12),
      0 0 10px rgba(27, 94, 32, 0.4),
      0 0 22px rgba(27, 94, 32, 0.32),
      0 0 36px rgba(27, 94, 32, 0.18);
  }
  96%,
  100% {
    color: #0a1610;
    border-color: #0a1610;
    opacity: 1;
    filter: none;
    text-shadow: none;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.16),
      0 6px 16px rgba(0, 0, 0, 0.12);
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-scan-types .scan-kind.is-vente,
  .home-scan-types .scan-kind.is-location {
    animation: none;
    color: #0a1610;
    border-color: #0a1610;
    opacity: 1;
    filter: none;
    text-shadow: none;
  }
}

.home-scan-type-sub {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin-top: 3px;
  line-height: 1;
  opacity: 0.82;
  color: inherit;
}

.home-scan-type-ico {
  width: 0.95rem;
  height: 0.95rem;
  display: block;
  flex-shrink: 0;
}

/* Masqu�s pendant loader + r�sultat du scan. R�apparaissent au � Nouveau scan �. */
#app:has(#results:not(.hidden)) .home-entry-scan-col .home-scan-types,
#app:has(#loader:not(.hidden)) .home-entry-scan-col .home-scan-types,
body.is-scanning .home-entry-scan-col .home-scan-types,
#app:has(#results:not(.hidden)) .home-scan-types,
#app:has(#loader:not(.hidden)) .home-scan-types,
body.is-scanning .home-scan-types,
#app:has(#results:not(.hidden)) .home-scan-cats,
#app:has(#loader:not(.hidden)) .home-scan-cats,
body.is-scanning .home-scan-cats,
#app:has(#results:not(.hidden)) .home-scan-cat-soon,
#app:has(#loader:not(.hidden)) .home-scan-cat-soon,
body.is-scanning .home-scan-cat-soon {
  display: none;
}

/* R�sultat : logo balance (animation interne SVG uniquement). */
#app:has(#results:not(.hidden)) .brand-house .logo-house,
#app:has(#results:not(.hidden)) .brand-house .logo-scale {
  animation: none;
  filter: none;
}

#app:has(#results:not(.hidden)) .brand-house .scan-beam {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  #app:has(#results:not(.hidden)) .brand-house .logo-house,
  #app:has(#results:not(.hidden)) .brand-house .logo-scale {
    animation: none;
  }
}

.results {
  margin-top: 8px;
  position: relative;
}

.results-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
  gap: 18px;
  align-items: start;
}

.results-main {
  min-width: 0;
}

.scan-comments {
  position: sticky;
  top: 12px;
  padding: 12px 12px 14px;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  background: transparent;
  max-height: calc(100vh - 24px);
  overflow: auto;
}

.scan-comments-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 4px;
}

.scan-comments-title {
  margin: 0;
  font-size: 0.98rem;
}

.scan-comments-close {
  display: none;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  margin: -4px -4px 0 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.scan-comments.hidden {
  display: none !important;
}

.scan-comments-lead {
  margin: 0 0 10px;
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.35;
}

.scan-comments-list {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  display: grid;
  gap: 8px;
}

.scan-comment-item {
  padding: 8px 9px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid rgba(20, 40, 25, 0.1);
  font-size: 0.82rem;
  line-height: 1.35;
  color: var(--ink);
}

.scan-comment-user {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 2px;
}

.scan-comment-user .username-handle.is-verified {
  color: #3d8f55;
}

.scan-comment-time {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 500;
  margin-left: 6px;
}

.scan-comments-form {
  display: grid;
  gap: 8px;
}

.scan-comments-form input {
  width: 100%;
  background: #ffffff;
  color: var(--ink);
  border: 1px solid rgba(20, 40, 25, 0.14);
  border-radius: 10px;
  padding: 10px 11px;
  font: 13px/1.35 var(--font-brand);
}

.scan-comment-send {
  width: 100%;
  padding: 9px 12px;
  font-size: 0.86rem;
}

.scan-comments-error {
  margin: 8px 0 0;
  color: #e8a0a0;
  font-size: 0.78rem;
}

.scan-comments-error.hidden {
  display: none;
}

.scan-vote-btn.is-comments-on {
  border-color: rgba(224, 195, 84, 0.55);
  color: #e0c354;
}

@media (max-width: 980px) {
  .results-layout {
    grid-template-columns: 1fr;
  }
  /* Mobile : panneau en feuille fixe (sinon ouvert en bas de page, invisible) */
  .scan-comments:not(.hidden) {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: max(10px, env(safe-area-inset-bottom, 0px));
    top: auto;
    z-index: 80;
    max-height: min(72vh, 560px);
    overflow: auto;
    padding: 14px 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 16px;
    background: rgba(12, 18, 16, 0.96);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
  }
  .scan-comments-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .scan-comments-backdrop:not(.hidden) {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 70;
    background: rgba(0, 0, 0, 0.45);
    border: 0;
    padding: 0;
    margin: 0;
    cursor: pointer;
  }
}

.scan-comments-backdrop {
  display: none;
}

.json-actions {
  display: flex;
  justify-content: flex-end;
  margin: 8px 0;
}

.status {
  margin: 8px 0 14px;
  color: var(--muted);
  white-space: pre-line;
}

.status.ok {
  color: var(--accent);
}

.status.warn {
  color: var(--warn);
}

.status.warn strong {
  display: block;
  color: inherit;
  font-weight: 600;
}

.status-extra {
  display: block;
  margin-top: 4px;
  font-size: 0.95em;
  opacity: 0.92;
}

.summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 22px;
  margin-bottom: 18px;
}

.kpi {
  background: var(--glass-bg);
  border: var(--glass-border);
  border-radius: 12px;
  padding: 14px 14px 13px;
  box-shadow: var(--glass-shadow);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}

.kpi .label {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  margin-bottom: 4px;
}

.kpi .value {
  font-size: 1.15rem;
  font-weight: 700;
}

.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 16px;
  margin-top: 6px;
}

.field {
  display: grid;
  grid-template-columns: minmax(108px, 38%) 1fr;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(29, 41, 36, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px) saturate(1.2);
  -webkit-backdrop-filter: blur(10px) saturate(1.2);
}

.field dt {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.field dd {
  margin: 0;
  font-weight: 600;
}

.field.is-ref dd,
.field-ref dd,
.field.is-ref dd strong,
.field-ref dd strong {
  color: #e0c354 !important;
}

.hidden {
  display: none !important;
}

#print-a4 {
  display: none !important;
  pointer-events: none;
}

.score-box {
  display: grid;
  grid-template-columns: minmax(280px, 38%) 1fr;
  gap: 20px;
  margin-bottom: 18px;
  padding: 18px 18px 16px;
  border-radius: 16px;
  border: var(--glass-border);
  background: var(--glass-bg);
  box-shadow: var(--glass-shadow);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}

.score-media {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}

.score-photo {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #0c120f;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

.score-points {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: grid;
  gap: 6px;
}

.score-points li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 8px;
  align-items: start;
  font-size: 0.84rem;
  line-height: 1.4;
  color: #2a322c;
  font-weight: 500;
}

.score-points .mark {
  font-weight: 800;
  text-align: center;
}

.score-points li.plus .mark { color: #3d8f55; }
.score-points li.moins .mark { color: #e05c5c; }
.score-points li.info .mark { color: var(--muted); }

.score-copy .score-resume {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.55;
  font-weight: 500;
}

.score-box.tone-good {
  border: 2px solid rgba(61, 143, 85, 0.72);
  box-shadow:
    var(--glass-shadow),
    0 0 28px rgba(61, 143, 85, 0.18);
}
.score-box.tone-mid {
  border: 2px solid rgba(196, 164, 58, 0.75);
  box-shadow:
    var(--glass-shadow),
    0 0 28px rgba(224, 195, 84, 0.16);
}
.score-box.tone-bad {
  border: 2px solid rgba(196, 74, 74, 0.72);
  box-shadow:
    var(--glass-shadow),
    0 0 28px rgba(224, 92, 92, 0.16);
}

.score-ring {
  width: 210px;
  height: 210px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto;
  background: conic-gradient(var(--c, var(--accent)) calc(var(--p) * 1%), #24332c 0);
  box-shadow:
    0 10px 26px rgba(0, 0, 0, 0.32),
    0 0 22px color-mix(in srgb, var(--c, var(--accent)) 22%, transparent),
    0 0 2px color-mix(in srgb, var(--c, var(--accent)) 55%, transparent);
}

.score-ring-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.score-ring-wrap.is-guest-lock .score-ring {
  margin: 0;
}

.guest-blur {
  display: inline-block;
  filter: blur(7px);
  user-select: none;
  pointer-events: none;
  -webkit-user-select: none;
}

.guest-blur--block {
  display: block;
  width: 100%;
}

.scan-risques > .guest-lock-hint {
  display: block;
  margin: 8px 0 0;
}

.scan-risques-head .guest-lock-hint {
  display: inline-block;
  margin: 0;
}

.guest-blur--note {
  filter: blur(14px);
}

/* Chiffres au-dessus des barres / courbe : flout�s en mode invit� */
body.is-guest-scan .prix-chart-svg .prix-chart-value,
body.is-guest-scan .hist-chart-svg .hist-chart-value {
  filter: blur(7px);
  user-select: none;
  pointer-events: none;
}

.score-ring .guest-blur--note {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.guest-lock-hint {
  display: inline-block;
  margin-left: 0.35em;
  color: #e05c5c;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  white-space: nowrap;
  vertical-align: baseline;
  user-select: none;
}

.score-ring-wrap .guest-lock-hint {
  margin-left: 0;
  font-size: 0.85rem;
}

.resume-prix-estime .guest-blur,
.resume-prix-range .guest-blur {
  vertical-align: baseline;
}

.score-ring span {
  width: 176px;
  height: 176px;
  border-radius: 50%;
  background: #0f1412;
  border: 0;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1;
  color: var(--c, var(--ink));
}

.score-ring span b {
  font-size: 2.7rem;
  font-weight: 800;
}

.score-ring span small {
  margin-top: 4px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  opacity: 0.8;
}

.resume-box {
  margin-bottom: 18px;
  padding: 18px 18px 16px;
  border-radius: 16px;
  border: var(--glass-border);
  background: var(--glass-bg);
  box-shadow: var(--glass-shadow);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}

.resume-box h3 {
  margin: 0 0 12px;
  font-size: 1.05rem;
}

.resume-prix {
  position: relative;
  margin: 0 0 14px;
  padding: 18px 20px;
  border-radius: 14px;
  border: 2px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.12) 0%,
    rgba(29, 41, 36, 0.4) 55%,
    rgba(15, 20, 18, 0.5) 100%
  );
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
}

.resume-prix:has(.resume-prix-disclaimer) {
  padding-bottom: 28px;
}

.resume-prix-label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}

.resume-prix-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
}

.resume-prix-value {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.1;
}

.resume-prix-value strong {
  font-weight: 800;
  color: inherit;
}

.resume-prix-tag {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--muted);
}

.resume-prix-deal {
  font-weight: 700;
}

.prix-stars {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: 0 0 auto;
  color: #e0c354 !important;
}

.prix-star {
  position: relative;
  display: block;
  width: 2.2rem;
  height: 2.2rem;
  flex: 0 0 auto;
}

.prix-star svg {
  display: block;
  width: 2.2rem;
  height: 2.2rem;
}

.prix-star.is-full svg {
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 1.2;
}

.prix-star.is-empty svg {
  fill: transparent;
  stroke: currentColor;
  stroke-width: 1.4;
  opacity: 0.42;
}

.prix-star.is-half .prix-star-outline {
  fill: transparent;
  stroke: currentColor;
  stroke-width: 1.4;
  opacity: 0.42;
}

.prix-star.is-half .prix-star-half {
  position: absolute;
  left: 0;
  top: 0;
  width: 50%;
  height: 100%;
  overflow: hidden;
}

.prix-star.is-half .prix-star-half svg {
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 1.2;
}

.resume-prix-estime {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 10px;
  margin: 14px 0 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
}

.resume-prix-estime-label {
  font-size: 1.05rem;
  font-weight: 700;
}

.resume-prix-estime--missing {
  align-items: flex-start;
  font-weight: 600;
}

.resume-prix-estime-note {
  flex: 1 1 220px;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--muted, #9aa3b5);
}

.resume-prix-disclaimer {
  position: absolute;
  right: 12px;
  bottom: 8px;
  margin: 0;
  max-width: calc(100% - 24px);
  text-align: right;
  font-size: 0.62rem;
  font-weight: 300;
  color: #fff;
  letter-spacing: 0.02em;
  line-height: 1.35;
}

.resume-prix-estime strong {
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.1;
}

.resume-prix-range {
  flex: 1 1 100%;
  margin: 2px 0 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--muted, #9aa3b5);
  letter-spacing: 0.01em;
  line-height: 1.4;
}

.resume-prix-range strong {
  font-size: 1.12rem;
  font-weight: 700;
  line-height: inherit;
  color: inherit;
}

.resume-prix-hypo {
  margin: 6px 0 0;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.4;
}

.resume-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.resume-recap {
  margin: 0 0 16px;
  padding: 14px 16px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.08) 0%,
    rgba(29, 41, 36, 0.36) 50%,
    rgba(15, 20, 18, 0.48) 100%
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 8px 22px rgba(0, 0, 0, 0.16);
}

.resume-recap-lead {
  margin: 0 0 12px;
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
}

.resume-recap-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.resume-recap-item {
  display: grid;
  grid-template-columns: 7.2rem 1fr;
  gap: 10px 14px;
  align-items: start;
  margin: 0;
  padding: 0;
  font-size: 0.92rem;
  line-height: 1.4;
}

.resume-recap-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 0.15em;
}

.resume-recap-text {
  color: var(--ink);
}

.resume-recap-empty {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.92rem;
}

.resume-col {
  padding: 14px 14px 14px 16px;
  border-radius: 12px;
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.08) 0%,
    rgba(29, 41, 36, 0.36) 50%,
    rgba(15, 20, 18, 0.48) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 8px 22px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(12px) saturate(1.25);
  -webkit-backdrop-filter: blur(12px) saturate(1.25);
}

.resume-col h4 {
  margin: 0 0 10px;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.resume-col.forts {
  border-left: 3px solid rgba(61, 143, 85, 0.95);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 8px 22px rgba(0, 0, 0, 0.16),
    0 0 18px rgba(61, 143, 85, 0.12);
}

.resume-col.faibles {
  border-left: 3px solid rgba(224, 92, 92, 0.95);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 8px 22px rgba(0, 0, 0, 0.16),
    0 0 18px rgba(224, 92, 92, 0.12);
}

.resume-col.forts h4 { color: #3d8f55; }
.resume-col.faibles h4 { color: #e05c5c; }

.resume-col ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 10px;
  color: var(--ink);
  font-size: 0.86rem;
  line-height: 1.45;
}

.resume-col li.empty {
  list-style: none;
  margin-left: -18px;
  color: var(--muted);
}

.resume-col strong {
  color: var(--ink);
  font-weight: 800;
}

.prix-energie-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr);
  align-items: stretch;
  margin: 14px 0 0;
  border-radius: 12px;
  background: var(--glass-bg);
  border: var(--glass-border);
  box-shadow: var(--glass-shadow);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  overflow: hidden;
}

.prix-energie-split {
  width: 1px;
  background: rgba(255, 255, 255, 0.14);
  justify-self: stretch;
}

.prix-energie-row .prix-chart {
  margin: 0;
  border: none;
  border-radius: 0;
  background: transparent;
}

@media (max-width: 860px) {
  .prix-energie-row {
    grid-template-columns: 1fr;
  }

  .prix-energie-split {
    width: 100%;
    height: 1px;
  }
}

.prix-chart {
  margin: 14px 0 0;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--glass-bg);
  border: var(--glass-border);
  box-shadow: var(--glass-shadow);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}

.prix-chart h4 {
  margin: 0 0 10px;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
}

.location-energie-brief-text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--ink);
  font-weight: 600;
}

.prix-chart-body {
  margin: 0;
}

.prix-chart-svg {
  display: block;
  width: 100%;
  max-width: 820px;
  height: auto;
  margin: 0 auto;
  overflow: visible;
  color: var(--ink);
}

.prix-chart-svg .prix-chart-track {
  fill: rgba(29, 41, 36, 0.55);
}

.prix-chart-svg .prix-chart-bar {
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.28));
}

.prix-chart-svg .prix-chart-grid {
  stroke: var(--line);
  stroke-width: 1;
  stroke-dasharray: 3 4;
}

.prix-chart-svg .prix-chart-axis {
  stroke: var(--line);
  stroke-width: 1.25;
}

.prix-chart-svg text {
  fill: currentColor;
  font-family: inherit;
}

.prix-chart-svg .prix-chart-value {
  font-size: 13px;
  font-weight: 800;
}

.prix-chart-svg .prix-chart-label {
  font-size: 12px;
  font-weight: 600;
}

.prix-chart-svg .prix-chart-hint {
  font-size: 9px;
  font-weight: 500;
  fill: var(--muted);
}

.prix-chart-caption {
  margin: 8px 0 0;
  font-size: 0.72rem;
  line-height: 1.4;
  color: var(--muted);
}

.resume-box > .resume-prix {
  margin-top: 14px;
  margin-bottom: 0;
}

.scan-lieu,
.scan-risques,
.scan-historique,
.scan-identite {
  margin-top: 16px;
  padding: 16px;
  border-radius: 14px;
  background: var(--glass-bg);
  border: var(--glass-border);
  box-shadow: var(--glass-shadow);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}

.scan-lieu-title,
.scan-risques-title,
.scan-historique-title,
.scan-identite-title {
  margin: 0 0 8px;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
}

.scan-identite-grid {
  margin: 10px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 20px;
}

.scan-identite-item {
  margin: 0;
  min-width: 0;
}

.scan-identite-item dt {
  margin: 0 0 4px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.scan-identite-item dd {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
  word-break: break-word;
}

.scan-identite-item dd.is-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.scan-identite-foot {
  margin: 12px 0 0;
  font-size: 0.72rem;
  line-height: 1.4;
  color: var(--muted);
}

@media (max-width: 640px) {
  .scan-identite-grid {
    grid-template-columns: 1fr;
  }
}

.scan-historique-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.scan-historique-item {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(8, 12, 10, 0.35);
}

.scan-historique-badge {
  display: block;
  margin: 0 0 6px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.scan-historique-price {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
}

.scan-historique-price strong {
  font-weight: 800;
}

.scan-historique-lead {
  margin: 0 0 10px;
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--muted);
}

.hist-chart-body {
  margin: 4px 0 0;
}

@media (max-width: 640px) {
  .scan-historique {
    margin-top: 14px;
    padding: 14px 12px;
  }

  .hist-chart-svg {
    max-width: 100%;
  }

  .hist-chart-svg .hist-chart-value {
    font-size: 9px;
  }

  .hist-chart-svg .hist-chart-date {
    font-size: 8px;
  }
}

.hist-chart-svg {
  display: block;
  width: 100%;
  max-width: 820px;
  height: auto;
  margin: 0 auto;
  overflow: visible;
  color: var(--ink);
}

.hist-chart-svg .hist-chart-grid {
  stroke: var(--line);
  stroke-width: 1;
  stroke-dasharray: 3 4;
}

.hist-chart-svg .hist-chart-axis {
  stroke: var(--line);
  stroke-width: 1.25;
}

.hist-chart-svg .hist-chart-curve {
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.hist-chart-svg .hist-chart-dot {
  stroke: rgba(12, 18, 16, 0.85);
  stroke-width: 1.25;
}

.hist-chart-svg text {
  fill: currentColor;
  font-family: inherit;
}

.hist-chart-svg .hist-chart-value {
  font-size: 11px;
  font-weight: 800;
}

.hist-chart-svg .hist-chart-date {
  font-size: 10px;
  font-weight: 600;
  fill: var(--muted);
}

.hist-chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  justify-content: center;
  margin: 8px 0 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--muted);
}

.hist-leg::before {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: -1px;
}

.hist-leg-low::before {
  background: #e04848;
}

.hist-leg-mid::before {
  background: #e8c440;
}

.hist-leg-high::before {
  background: #3d8f55;
}

.scan-historique-notes {
  margin: 10px 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.scan-historique-notes strong {
  color: var(--ink);
  font-weight: 700;
}

.scan-historique-note,
.scan-historique-empty,
.scan-historique-foot {
  margin: 8px 0 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--muted);
}

.scan-historique-foot {
  margin-top: 12px;
}

.scan-lieu-addr {
  margin: 0 0 6px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
}

.scan-lieu-meta,
.scan-risques-empty,
.scan-risques-foot,
.scan-lieu-links,
.scan-lieu-approx,
.scan-lieu-poi-empty {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--muted);
}

.scan-lieu-poi {
  margin: 8px 0 0;
  padding: 0 0 0 1.1rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--text, #e8eee9);
}

.scan-lieu-poi li {
  margin: 0.2rem 0;
}

.scan-lieu-map {
  position: relative;
  margin: 12px 0 8px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #0c1210;
  aspect-ratio: 16 / 9;
  max-height: 260px;
  min-height: 180px;
}

.scan-lieu-static {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #0c1210;
}

.scan-lieu-frame {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 180px;
  border: 0;
  background: transparent;
  filter: grayscale(0.15) contrast(1.05);
}

@media (max-width: 640px) {
  .scan-lieu-map {
    max-height: 220px;
    min-height: 160px;
  }

  /* Sur mobile, l'iframe OSM est souvent vide / bloqu�e : image statique visible. */
  .scan-lieu-frame {
    opacity: 0;
    pointer-events: none;
  }

  .scan-lieu-static.is-broken {
    display: none;
  }

  .scan-lieu-map.is-static-fail .scan-lieu-frame {
    opacity: 1;
    pointer-events: auto;
  }
}

.scan-lieu-links a,
.scan-risques-foot a {
  color: #7dd3a0;
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.scan-risques-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.scan-risques-head .scan-risques-title {
  margin: 0;
}

.scan-risques-niveau {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.scan-risques-niveau.is-eleve {
  color: #b71c1c;
  border-color: rgba(224, 92, 92, 0.4);
  background: rgba(224, 92, 92, 0.14);
}

.scan-risques-niveau.is-moyen {
  color: #8a6d0a;
  border-color: rgba(201, 162, 39, 0.4);
  background: rgba(224, 195, 84, 0.18);
}

.scan-risques-niveau.is-faible,
.scan-risques-niveau.is-aucun {
  color: #0a1610;
  border-color: rgba(46, 125, 50, 0.35);
  background: rgba(61, 143, 85, 0.14);
}

.scan-risques-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11.5rem, 1fr));
  gap: 8px;
}

@media (max-width: 640px) {
  .scan-risques {
    margin-top: 14px;
    padding: 14px 12px;
  }

  .scan-risques-grid {
    grid-template-columns: 1fr;
  }

  .scan-risques-head {
    flex-wrap: wrap;
    gap: 8px;
  }
}

.scan-risque-tile {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 11px;
  border-radius: 10px;
  border: 1px solid rgba(20, 30, 22, 0.1);
  background: rgba(90, 99, 92, 0.08);
}

.scan-risque-name {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--ink);
  text-transform: capitalize;
}

.scan-risque-sev {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.scan-risque-tile.is-high {
  background: rgba(224, 92, 92, 0.14);
  border-color: rgba(224, 92, 92, 0.28);
}
.scan-risque-tile.is-mid {
  background: rgba(224, 195, 84, 0.18);
  border-color: rgba(201, 162, 39, 0.32);
}
.scan-risque-tile.is-present {
  background: rgba(240, 146, 72, 0.16);
  border-color: rgba(220, 120, 40, 0.3);
}
.scan-risque-tile.is-low {
  background: rgba(61, 143, 85, 0.12);
  border-color: rgba(46, 125, 50, 0.22);
}

.scan-risque-tile.is-high .scan-risque-sev { color: #c62828; }
.scan-risque-tile.is-mid .scan-risque-sev { color: #9a7a14; }
.scan-risque-tile.is-present .scan-risque-sev { color: #c45e12; }
.scan-risque-tile.is-low .scan-risque-sev { color: #3d8f55; }

.scan-risque-statut,
.scan-risque-scope {
  font-size: 0.68rem;
  line-height: 1.3;
  color: var(--muted);
}

.scan-risques-catnat {
  margin-top: 14px;
}

.scan-risques-catnat h5 {
  margin: 0 0 6px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink);
}

.scan-risques-catnat ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.scan-risques-foot {
  margin-top: 12px;
}

.photo-analyse {
  margin-top: 16px;
  margin-bottom: 8px;
  padding: 16px;
  border-radius: 12px;
  background: var(--glass-bg);
  border: var(--glass-border);
  box-shadow: var(--glass-shadow);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}

.photo-analyse h4 {
  margin: 0 0 10px;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
}

.photo-analyse-signals {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
}

.photo-analyse-signals li {
  margin: 0;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink);
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.12), rgba(201, 184, 245, 0.18));
  border: 1px solid rgba(201, 184, 245, 0.4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.photo-analyse-copy {
  margin: 0 0 12px;
}

.photo-analyse-copy p {
  margin: 0 0 8px;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--ink);
}

.photo-analyse-copy p:last-child {
  margin-bottom: 0;
}

.photo-analyse-copy strong {
  font-weight: 800;
}

.photo-analyse-detail {
  display: block;
  margin-top: 4px;
  font-size: 0.72rem;
  line-height: 1.35;
  color: var(--muted);
  font-weight: 500;
}

.photo-analyse-empty {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.photo-analyse-more {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 600;
}

.photo-analyse-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 10px;
}

.photo-analyse-grid figure {
  margin: 0;
}

.photo-analyse-grid .photo-thumb {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.photo-analyse-grid img {
  display: block;
  width: 100%;
  height: 112px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #0c120f;
  transition: transform 0.18s ease, outline-color 0.18s ease;
}

.photo-analyse-grid .photo-thumb:hover,
.photo-analyse-grid .photo-thumb:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.28);
}

.photo-analyse-grid .photo-thumb:hover img,
.photo-analyse-grid .photo-thumb:focus-visible img {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.photo-analyse-grid figcaption {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin-top: 4px;
  font-size: 0.68rem;
  line-height: 1.3;
  color: var(--muted);
}

.photo-analyse-grid figcaption strong {
  color: var(--ink);
  font-weight: 700;
}

.photo-lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(8, 12, 10, 0.88);
  cursor: zoom-out;
}

.photo-lightbox.hidden {
  display: none;
}

.photo-lightbox img {
  max-width: min(920px, 100%);
  max-height: 88vh;
  object-fit: contain;
  border-radius: 10px;
  border: 1px solid var(--line);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
}

.photo-lightbox-close {
  position: absolute;
  top: 16px;
  right: 18px;
  width: 36px;
  height: 36px;
  border-radius: 99px;
  background: var(--glass-bg);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--ink);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.score-points strong,
.kpi .value strong,
.field dd strong {
  font-weight: 800;
}

.score-copy .score-resume {
  margin: 0 0 12px;
  color: #1a221c;
  font-size: 0.94rem;
  line-height: 1.55;
  font-weight: 500;
}

.score-copy p {
  margin: 0 0 10px;
  color: #3a433c;
  font-size: 0.9rem;
  line-height: 1.5;
}

.score-copy p.verdict {
  margin: 0 0 14px;
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.3;
  text-transform: uppercase;
  color: #3d8f55;
}

.scan-place-row {
  position: sticky;
  top: 0;
  z-index: 24;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 2px 0 14px;
  padding: 10px 0 10px;
  background:
    linear-gradient(180deg, rgba(15, 20, 18, 0.72) 0%, rgba(15, 20, 18, 0.55) 72%, rgba(15, 20, 18, 0.28) 100%);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid transparent;
}

.results:not(.hidden) .scan-place-row {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.scan-place-main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1 1 auto;
}

.scan-place {
  margin: 0;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.scan-vote-inline {
  flex: 0 0 auto;
  gap: 6px;
}

.scan-vote-icon {
  min-width: 0;
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 10px;
}

.scan-vote-icon .btn-ico {
  width: 18px;
  height: 18px;
}

.score-bars {
  display: grid;
  gap: 10px;
  margin-top: 2px;
}

.score-bar {
  display: grid;
  grid-template-columns: 128px 1fr 56px;
  gap: 10px;
  align-items: center;
  font-size: 0.8rem;
  color: var(--muted);
}

.score-bar i {
  height: 11px;
  border-radius: 99px;
  background: rgba(36, 51, 44, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: block;
  overflow: hidden;
  box-shadow:
    inset 0 1px 2px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.score-bar i b {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  box-shadow: 0 0 12px rgba(125, 211, 160, 0.35);
  border-radius: 99px;
}

.score-bar-note {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.05;
  font-weight: 700;
}

.score-bar-note b {
  font-size: 0.92rem;
}

.score-bar-note small {
  font-size: 0.68rem;
  font-weight: 600;
  opacity: 0.85;
}

.json-box {
  margin-top: 16px;
  color: var(--muted);
}

.json-box pre {
  overflow: auto;
  background: #0c120f;
  border-radius: 10px;
  padding: 12px;
  color: #cfe8d6;
  font-size: 12px;
}

body.booting #landing,
body.booting #app {
  visibility: hidden;
}

.landing {
  max-width: none;
  margin: 0 auto;
  padding: 0 0 48px;
  background:
    radial-gradient(ellipse 90% 55% at 50% -8%, rgba(61, 143, 85, 0.14), transparent 62%),
    linear-gradient(180deg, #f3f4f2 0%, #ffffff 42%, #ffffff 100%);
}

.landing-top {
  position: fixed;
  top: 8px;
  right: 8px;
  left: auto;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0;
  max-width: calc(100vw - 16px);
}

body.register-locked .landing-top {
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.register-construction-note {
  margin: 0;
  max-width: min(260px, calc(100vw - 24px));
  padding: 8px 10px;
  font-size: 12px;
  line-height: 1.35;
  text-align: right;
  color: #3a342c;
  background: rgba(255, 248, 235, 0.96);
  border: 1px solid rgba(180, 140, 60, 0.35);
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(40, 30, 10, 0.08);
}

.register-construction-note.hidden,
.register-construction-note[hidden] {
  display: none !important;
}

button.is-register-locked,
[data-auth-open="register"].is-register-locked {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

.landing .landing-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: 0 auto 4px;
  gap: 2px;
  cursor: pointer;
}

.landing .landing-brand-title {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  width: auto;
}

.landing-brand-hero {
  display: none !important;
}

.landing-brand-slogan-fallback {
  display: none !important;
}

.landing .landing-brand-row {
  display: none;
}

.landing .landing-brand .brand-logo-full {
  display: none !important;
}

.landing .landing-brand .brand-house {
  position: relative;
  right: auto;
  top: auto;
  translate: none;
  margin: 0;
  flex: 0 0 auto;
}

.landing .landing-brand .brand-house,
.landing .landing-brand .logo-house,
.landing .landing-brand .logo-scale,
.landing .landing-brand .logo-mark {
  width: clamp(124px, 17vw, 188px);
  height: clamp(124px, 17vw, 188px);
  background: transparent !important;
  box-shadow: none !important;
}

.landing .landing-brand h1,
.landing .landing-brand .brand-wordmark {
  margin: 0;
  font-size: clamp(3.35rem, 9vw, 5.4rem);
  letter-spacing: -0.03em;
  font-weight: 800;
  line-height: 1.02;
  white-space: nowrap;
}

.landing-auth-btns {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.contact-wrap {
  position: relative;
  flex: 0 0 auto;
  z-index: 2;
  overflow: visible;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.contact-icon {
  width: 16px;
  height: 16px;
  display: block;
  flex-shrink: 0;
}

.contact-pop {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 80;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  padding: 10px 12px;
  background: var(--glass-bg);
  border: var(--glass-border);
  border-radius: 12px;
  box-shadow: var(--glass-shadow);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  white-space: nowrap;
}

@media screen {
  .contact-pop[hidden],
  .contact-pop.hidden {
    display: none !important;
  }

  .contact-pop:not([hidden]) {
    display: flex !important;
  }
}

.contact-pop a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--lilac);
  font-weight: 700;
  text-decoration: none;
}

.contact-pop a:hover,
.contact-pop a:focus {
  text-decoration: underline;
}

.contact-social-icon {
  width: 18px;
  height: 18px;
  display: block;
  flex-shrink: 0;
}

.landing-hero {
  text-align: center;
  margin: 0 auto 2px;
  overflow-x: clip;
  width: min(96vw, 1180px);
  padding: 0 12px;
  box-sizing: border-box;
}

.landing-kicker {
  margin: 0 0 10px;
  color: var(--lilac);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 700;
}

.lbc-annonce {
  color: var(--accent);
}

.hero-annonce {
  white-space: nowrap;
}

.hero-annonce .flag-b {
  color: #0055a4;
  text-shadow: 0 0 0.6px #002395;
}

.hero-annonce .flag-w {
  color: #ffffff;
  text-shadow:
    0 0 1px rgba(0, 0, 0, 0.95),
    0 1px 2px rgba(0, 0, 0, 0.8),
    0 0 8px rgba(0, 0, 0, 0.45);
}

.hero-annonce .flag-r {
  color: #ef4135;
}

.inscription-link {
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: #0a1610;
  font: inherit;
  font-size: 1.18em;
  font-weight: 800;
  line-height: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.14em;
  text-decoration-thickness: 0.1em;
  animation: landing-hl-blink 1.05s ease-in-out infinite;
}

.inscription-link:focus-visible {
  outline: 2px solid var(--brand-green);
  outline-offset: 3px;
  border-radius: 2px;
}

.landing-hl-blink {
  color: #0a1610;
  font-size: 1.18em;
  font-weight: 800;
  animation: landing-hl-blink 1.05s ease-in-out infinite;
}

@keyframes landing-hl-blink {
  0%,
  100% {
    color: #0a1610;
  }
  50% {
    color: #0a1610;
  }
}

@media (prefers-reduced-motion: reduce) {
  .landing-hl-blink,
  .inscription-link {
    animation: none;
    color: #0a1610;
  }
}

.landing-hero h2 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 5vw, 3.1rem);
  letter-spacing: -0.04em;
  line-height: 1.15;
}

.landing-lead {
  margin: 0 auto;
  max-width: 640px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.5;
}

.landing-trial {
  margin: 28px 0 18px;
  text-align: center;
}

.landing-trial-title {
  margin: 0 auto 12px;
  max-width: 22ch;
  color: #fff;
  font-size: clamp(1.55rem, 3.6vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.landing-trial-sub {
  margin: 0 auto 22px;
  max-width: 36rem;
  color: var(--brand-green);
  font-size: 1.05rem;
  line-height: 1.5;
}

.landing-scan {
  width: min(96vw, 54rem);
  margin: 0.35rem auto 1.35rem;
}
.landing-scan .landing-scan-bar {
  margin-bottom: 1rem;
}
.landing-scan .scan-benefits {
  margin-top: 0.25rem;
}
.landing-scan-hint {
  margin: 0 0 0.65rem;
  text-align: center;
  font-size: 0.95rem;
  color: var(--muted);
}
.landing-scan-bar {
  margin: 0;
  width: 100%;
}
.landing-scan-bar .scan-url-row {
  width: 100%;
  flex: 1;
  min-width: 0;
}
@media (min-width: 721px) {
  .landing-scan-bar {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 10px;
  }
  .landing-scan-bar .scan-actions {
    margin: 0;
    flex: 0 0 auto;
    display: flex;
    align-items: stretch;
  }
  .landing-scan-bar .scan-actions .primary {
    white-space: nowrap;
    min-width: 10rem;
  }
}

/* Accueil type SeLoger : carte centrale + onglets Scanner | Estimer, barre toujours visible */
.home-desk {
  display: block;
  width: 100%;
  max-width: none;
  margin: 0 auto 1.1rem;
  padding: 0 clamp(12px, 2.4vw, 28px);
  box-sizing: border-box;
  min-height: 0;
}

.home-desk-card {
  width: min(100%, 52rem);
  margin: 0 auto;
  padding: 0.85rem clamp(0.9rem, 2.2vw, 1.35rem) 1.1rem;
  background: linear-gradient(165deg, #ffffff 0%, #f1f8f3 100%);
  border: 1.5px solid rgba(10, 22, 16, 0.16);
  border-radius: 22px;
  box-shadow:
    0 12px 32px rgba(10, 22, 16, 0.08),
    0 1px 0 rgba(255, 255, 255, 0.9);
  box-sizing: border-box;
}

.home-desk-tabs {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0.15rem 1.5rem;
  margin: 0 0 0.75rem;
  padding: 0 0 0.4rem;
  border-bottom: 1px solid rgba(20, 30, 22, 0.1);
}

.home-desk-tab {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin: 0;
  padding: 0.45rem 0.2rem 0.55rem;
  border: none;
  border-bottom: 2.5px solid transparent;
  border-radius: 0;
  background: transparent;
  color: #5a635c;
  box-shadow: none;
  cursor: pointer;
  font-size: clamp(0.92rem, 2.1vw, 1.05rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
  white-space: nowrap;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.home-desk-tab-ico {
  width: 1.15rem;
  height: 1.15rem;
  flex-shrink: 0;
}

.home-desk-tab:hover,
.home-desk-tab:focus-visible {
  color: var(--brand-green);
  outline: none;
}

.home-desk-tab.is-active {
  color: #0a1610;
  border-bottom-color: var(--brand-scan);
  font-weight: 800;
}

.home-desk-tab.is-active .home-desk-tab-ico {
  color: var(--brand-scan);
}

.home-desk-panel[hidden] {
  display: none !important;
}

.home-desk-panel--scan,
.home-desk-panel--estim,
.home-desk-panel--history {
  width: 100%;
  min-width: 0;
}


.home-desk-panel--history {
  width: 100%;
  min-width: 0;
}

.home-desk-history-lead {
  margin: 0 0 0.85rem;
  font-size: 0.92rem;
  line-height: 1.45;
  color: #3a3a3a;
}

.home-desk-panel--history .history-sort {
  margin: 0 0 0.85rem;
}

.home-desk-panel--history .history-list {
  max-height: min(62vh, 36rem);
  overflow: auto;
  padding-right: 0.15rem;
}


/* Historique: onglet desk only (plus de bouton barre compte) */
#account-history {
  display: none !important;
}
body.is-logged #app-entry-history:not([hidden]):not(.hidden) {
  display: inline-flex !important;
}
.home-desk-tab--history[hidden],
.home-desk-tab--history.hidden {
  display: none !important;
}

.home-desk.is-mode-history .home-desk-card {
  width: 100%;
}


.home-desk-search-label {
  margin: 0 0 0.55rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: #0a1610;
}

.home-desk .home-scan-types,
.home-desk .home-scan-cats {
  margin: 0 0 0.85rem;
}

.home-scan-cats {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  justify-content: center;
  gap: 0.7rem;
  width: 100%;
  max-width: 16.5rem;
  margin-left: auto;
  margin-right: auto;
}

/* Tuiles carrees - override fort de button { border-radius: 999px } */
button.home-scan-cat,
.home-scan-cat {
  appearance: none;
  -webkit-appearance: none;
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.28rem;
  box-sizing: border-box;
  width: auto;
  min-width: 0;
  min-height: 5.1rem;
  aspect-ratio: 1 / 1;
  max-width: 6.85rem;
  margin: 0;
  padding: 0.55rem 0.4rem 0.5rem;
  border: 1.5px solid rgba(10, 22, 16, 0.18);
  border-radius: 16px !important;
  background: #ffffff;
  color: #0a1610;
  box-shadow: 0 2px 8px rgba(10, 22, 16, 0.05);
  cursor: pointer;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.15;
  white-space: normal !important;
  overflow: hidden;
  text-align: center;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, color 0.15s ease, background 0.15s ease;
}

button.home-scan-cat:hover,
button.home-scan-cat:focus-visible,
.home-scan-cat:hover,
.home-scan-cat:focus-visible {
  border-color: rgba(61, 143, 85, 0.65);
  color: #0a1610;
  outline: none;
  box-shadow: 0 4px 14px rgba(61, 143, 85, 0.14);
}

button.home-scan-cat.is-active,
button.home-scan-cat[aria-pressed="true"],
.home-scan-cat.is-active,
.home-scan-cat[aria-pressed="true"] {
  border-color: #3d8f55;
  background: linear-gradient(165deg, #ffffff 0%, #eefaf3 100%);
  color: #0a1610;
  box-shadow:
    0 0 0 1px rgba(61, 143, 85, 0.35),
    0 6px 16px rgba(61, 143, 85, 0.16);
}

.home-scan-cat-label {
  display: block;
  position: relative;
  z-index: 1;
  order: 2;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-scan-cat-icos {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.32rem;
  order: 1;
  width: 100%;
  color: inherit;
  opacity: 0.92;
  pointer-events: none;
}

.home-scan-cat-ico {
  width: 1.4rem;
  height: 1.4rem;
  display: block;
  flex: 0 0 auto;
  overflow: visible;
}

.home-scan-cat-soon {
  display: none;
  margin: 0.35rem auto 0.15rem;
  text-align: center;
  max-width: 18rem;
}

.home-desk.is-cat-vehicule .home-scan-cat-soon:not(.hidden):not([hidden]) {
  display: block;
}

.home-desk .landing-scan,
.home-desk #scan-form,
.home-desk .home-scan-panel {
  width: 100%;
  margin: 0;
}

.home-desk-panel--estim {
  padding: 1.25rem 0.25rem 0.5rem;
  text-align: center;
}

.home-desk .home-entry-sub--soon {
  display: block;
  margin: 0;
  font-size: 1.02rem;
  font-weight: 600;
  color: #5a635c;
}

.home-desk .scan-bar,
.home-desk .landing-scan-bar {
  gap: 12px;
  margin-bottom: 1rem;
}

.home-desk .scan-bar input,
.home-desk .scan-url-row input {
  min-height: 3.55rem;
  padding: 1rem 1.35rem;
  font-size: 1.05rem;
  line-height: 1.35;
  border-radius: 999px;
  background: #ffffff;
  color: #0a1610;
  border: 1.5px solid rgba(20, 30, 22, 0.16);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.home-desk .paste-link-btn {
  padding: 0 1.15rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 700;
}

.home-desk .scan-actions .primary,
.home-desk .landing-extract-btn {
  min-height: 3.4rem;
  min-width: 11.5rem;
  padding: 0 1.35rem;
  font-size: 1.02rem;
  border-radius: 999px;
}

@media (min-width: 721px) {
  .home-desk .landing-scan-bar,
  .home-desk .scan-bar {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 12px;
  }
  .home-desk .landing-scan-bar .scan-url-row,
  .home-desk .scan-bar .scan-url-row {
    flex: 1 1 auto;
  }
  .home-desk .landing-scan-bar .scan-actions,
  .home-desk .scan-bar .scan-actions {
    flex: 0 0 auto;
  }
}

@media (max-width: 720px) {
  .home-desk {
    margin: 0.2rem 0 1.15rem;
    padding: 0 12px;
  }
  .home-desk-card {
    padding: 0.95rem 0.9rem 1.1rem;
    border-radius: 18px;
  }
  .home-desk-tabs {
    gap: 0.75rem;
  }
  .home-desk-tab {
    font-size: 0.86rem;
    padding: 0.35rem 0.1rem 0.45rem;
  }
  .home-desk-tab-ico {
    width: 1rem;
    height: 1rem;
  }
  .home-desk .scan-bar input,
  .home-desk .scan-url-row input {
    min-height: 3.15rem;
    font-size: 0.98rem;
    padding: 0.85rem 1.1rem;
  }
}

.home-desk .home-scan-results-host {
  width: 100%;
  margin-top: 0.65rem;
  min-width: 0;
}

.home-desk .home-scan-results-host:empty {
  margin-top: 0;
}

.home-desk #results {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
}

.home-desk #results .results-layout {
  display: block;
  grid-template-columns: 1fr;
  gap: 0;
}

.home-desk #results .scan-place-row {
  position: static;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid rgba(20, 30, 22, 0.1);
  margin: 0.25rem 0 0.85rem;
  padding: 0.2rem 0 0.65rem;
}

.home-desk #results .scan-place {
  color: var(--ink);
  font-size: clamp(1.12rem, 2.2vw, 1.32rem);
}

.home-desk #results .score-box {
  grid-template-columns: 1fr;
  margin-bottom: 0.9rem;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.home-desk #results .score-box.tone-good,
.home-desk #results .score-box.tone-mid,
.home-desk #results .score-box.tone-bad,
.home-desk #results .score-box.tone-neutre {
  border: none;
  box-shadow: none;
}

.home-desk #results .resume-box {
  margin-bottom: 0.9rem;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.home-desk #results .resume-prix {
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  padding: 0.35rem 0 0.85rem;
}

.home-desk #results .score-photo {
  height: min(220px, 42vw);
  border-radius: 8px;
  box-shadow: none;
}

.home-desk #results .scan-lieu,
.home-desk #results .scan-risques,
.home-desk #results .scan-historique,
.home-desk #results .scan-identite,
.home-desk #results .photo-analyse,
.home-desk #results .prix-energie-row,
.home-desk #results .prix-chart,
.home-desk #results .field,
.home-desk #results .kpi,
.home-desk #results .resume-recap {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-radius: 0;
  padding-left: 0;
  padding-right: 0;
}

/* Garder les pastilles risques color�es (ne pas les aplatir) */
.home-desk #results .scan-risque-tile {
  background: rgba(90, 99, 92, 0.08) !important;
  border: 1px solid rgba(20, 30, 22, 0.1) !important;
  border-radius: 10px !important;
  padding: 10px 11px !important;
}
.home-desk #results .scan-risque-tile.is-high {
  background: rgba(224, 92, 92, 0.14) !important;
  border-color: rgba(224, 92, 92, 0.28) !important;
}
.home-desk #results .scan-risque-tile.is-mid {
  background: rgba(224, 195, 84, 0.18) !important;
  border-color: rgba(201, 162, 39, 0.32) !important;
}
.home-desk #results .scan-risque-tile.is-present {
  background: rgba(240, 146, 72, 0.16) !important;
  border-color: rgba(220, 120, 40, 0.3) !important;
}
.home-desk #results .scan-risque-tile.is-low {
  background: rgba(61, 143, 85, 0.12) !important;
  border-color: rgba(46, 125, 50, 0.22) !important;
}

.home-desk #results .scan-lieu,
.home-desk #results .scan-risques,
.home-desk #results .scan-historique,
.home-desk #results .scan-identite,
.home-desk #results .photo-analyse {
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
  margin-top: 0.75rem;
}

/* D�filement type ChatGPT : pas de "cartes" nettes */
.home-desk #results.is-revealing .scan-reveal-later {
  opacity: 0;
  transform: translateY(6px);
  max-height: 0;
  overflow: hidden;
  margin-top: 0;
  margin-bottom: 0;
  transition:
    opacity 0.45s ease,
    transform 0.45s ease,
    max-height 0.55s ease,
    margin 0.35s ease;
}

.home-desk #results .scan-reveal-later.is-in {
  opacity: 1;
  transform: none;
  max-height: 4000px;
}

.scan-live {
  margin: 0.85rem 0 0.5rem;
  min-height: 1.4rem;
}

.scan-live-pct {
  margin: 0 0 0.55rem;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--brand-green);
}

.scan-live-stream {
  margin: 0;
  color: #0a1610;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.55;
}

.scan-live-stream p {
  margin: 0 0 0.55rem;
}

.scan-live-stream p:last-child {
  margin-bottom: 0;
}

.score-photo--shell {
  width: 100%;
  height: 280px;
  border-radius: 12px;
  border: 1px dashed rgba(20, 30, 22, 0.18);
  background: linear-gradient(165deg, #f7f9f7 0%, #eef3ee 100%);
}

.score-box.is-shell .score-bar i b {
  transition: width 0.4s ease;
}

.scan-shell-fixed-blocks {
  margin-top: 1rem;
  display: grid;
  gap: 0.65rem;
}

.scan-shell-fixed-blocks h4 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #0a1610;
}

.results.is-scan-shell .scan-reveal-later {
  opacity: 1;
  transform: none;
}

/* Phrases / b�n�fices : pas d'encadr�, fond blanc - visibles avec la barre (2e clic catégorie) */
.scan-benefits {
  width: 100%;
  margin: 0.75rem 0 0;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  text-align: left;
}

body.is-scanning .scan-benefits,
.home-scan-panel:has(#results:not(.hidden)) .scan-benefits,
.home-scan-panel:has([data-scan-results-host] #results:not(.hidden)) .scan-benefits {
  display: none !important;
}

/* Pendant le scan inline : pas de jauge, seulement le % live */
body.is-scanning .loader.loader--stream {
  display: none !important;
}

/* Jamais de % live sous la barre */
.scan-live-pct,
#scan-live-pct,
#app-scan-live-pct {
  display: none !important;
}

body.scan-on-landing #landing {
  display: block;
}

body.scan-on-landing #app {
  display: block;
}

body.scan-on-landing #app > .hero,
body.scan-on-landing #app > .home-desk,
body.scan-on-landing #app > .account-bar,
body.scan-on-landing #landing .offers {
  display: none !important;
}

/* Accueil unifi� legacy (cartes) - conserv� si encore r�f�renc� */
.home-entry {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  width: min(96vw, 52rem);
  margin: -0.35rem auto 1.4rem;
  align-items: start;
}
.home-entry-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 10.5rem;
  padding: 1.55rem 1.35rem;
  border: 1.5px solid rgba(20, 30, 22, 0.16);
  border-radius: 20px;
  background: #ffffff;
  color: var(--ink);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.05);
  cursor: pointer;
  text-align: center;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
.home-entry-card:hover,
.home-entry-card:focus-visible {
  border-color: var(--brand-green);
  box-shadow: 0 10px 26px rgba(27, 94, 32, 0.12);
  outline: none;
}
.home-entry-scan-col {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  width: 100%;
  min-width: 0;
  justify-self: start;
  transform: translate(-28px, -22px);
}
.home-entry-card--scan {
  border-color: rgba(27, 94, 32, 0.35);
  background: linear-gradient(165deg, #ffffff 0%, #f3faf5 100%);
  width: 100%;
  transform: none;
}
.home-entry-card--estim {
  justify-self: end;
  background: linear-gradient(165deg, #ffffff 0%, #f7f8fb 100%);
  transform: translate(28px, -22px);
}
.home-entry-scan-col:has(.home-entry-card--scan:hover),
.home-entry-scan-col:has(.home-entry-card--scan:focus-visible) {
  transform: translate(-28px, -24px);
}
.home-entry-card--estim:hover,
.home-entry-card--estim:focus-visible {
  transform: translate(28px, -24px);
}
.home-entry-title {
  font-size: clamp(1.35rem, 3.2vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-align: center;
}
.home-entry-sub {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--muted);
  text-transform: none;
  max-width: 18rem;
  line-height: 1.35;
}
.home-entry-sub--long {
  font-size: 0.72rem;
  font-weight: 500;
  max-width: 16.5rem;
  line-height: 1.4;
}
.home-entry-sub--soon {
  text-transform: none;
  color: var(--brand-green);
  font-size: 0.78rem;
  font-weight: 700;
  max-width: 14rem;
  line-height: 1.3;
}
.home-entry-card--estim.is-soon-open .home-entry-sub--soon {
  display: block;
}
.home-scan-panel.hidden,
.home-scan-panel[hidden] {
  display: none !important;
}
.scan-benefits-lead {
  margin: 0 0 0.55rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #0a1610;
}
.scan-benefits-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}
.scan-benefits-list > li {
  display: grid;
  grid-template-columns: 1.65rem 1fr;
  gap: 0.55rem 0.7rem;
  align-items: start;
  line-height: 1.35;
}
.scan-benefits-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.65rem;
  height: 1.65rem;
  margin-top: 0.05rem;
  color: var(--brand-green);
  flex-shrink: 0;
  border-radius: 8px;
  background: rgba(27, 94, 32, 0.08);
}
.scan-benefits-list > li:nth-child(1) .scan-benefits-ico { color: #0a1610; background: rgba(27, 94, 32, 0.12); }
.scan-benefits-list > li:nth-child(2) .scan-benefits-ico { color: #2b6cb0; background: rgba(43, 108, 176, 0.12); }
.scan-benefits-list > li:nth-child(3) .scan-benefits-ico { color: #b8860b; background: rgba(201, 162, 39, 0.16); }
.scan-benefits-list > li:nth-child(4) .scan-benefits-ico { color: #c62828; background: rgba(198, 40, 40, 0.1); }
.scan-benefits-list > li:nth-child(5) .scan-benefits-ico { color: #d84315; background: rgba(240, 146, 72, 0.14); }
.scan-benefits-list > li:nth-child(6) .scan-benefits-ico { color: #3d8f55; background: rgba(61, 143, 85, 0.14); }
.scan-benefits-list > li:nth-child(7) .scan-benefits-ico { color: #6b4ea0; background: rgba(107, 78, 160, 0.12); }
.scan-benefits-ico svg {
  width: 100%;
  height: 100%;
  display: block;
}
.scan-benefits-copy {
  display: grid;
  gap: 0.12rem;
  min-width: 0;
}
.scan-benefits-cat {
  color: #0a1610;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.scan-benefits-detail {
  color: #3a433c;
  font-size: 0.86rem;
  font-weight: 500;
  line-height: 1.4;
}
#scan-form {
  width: min(96vw, 54rem);
  margin: 0 auto 1.1rem;
}
#scan-form .scan-bar {
  margin-bottom: 0;
}
@media (max-width: 560px) {
  .home-entry {
    grid-template-columns: 1fr;
    gap: 12px;
    width: min(96vw, 28rem);
  }
  .home-entry-card {
    min-height: 8.2rem;
    padding: 1.3rem 1.1rem;
  }
  .home-entry-scan-col,
  .home-entry-scan-col:has(.home-entry-card--scan:hover),
  .home-entry-scan-col:has(.home-entry-card--scan:focus-visible),
  .home-entry-card--estim,
  .home-entry-card--estim:hover,
  .home-entry-card--estim:focus-visible {
    justify-self: stretch;
    transform: translate(0, -6px);
  }
  .scan-benefits-list > li {
    grid-template-columns: 1.55rem 1fr;
    gap: 0.45rem 0.6rem;
  }
  .scan-benefits {
    width: 100%;
  }
}
.landing-extract-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  line-height: 1.15;
  padding-top: 10px;
  padding-bottom: 10px;
}
.landing-extract-guest {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  opacity: 0.9;
  white-space: nowrap;
}
.landing-promo-cta-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  gap: 14px;
  margin: 1.15rem auto 1.35rem;
  width: min(96vw, 54rem);
}
.landing-promo-cta-wrap.hidden {
  display: none !important;
}
.landing-promo-cta {
  flex: 1 1 15rem;
  max-width: 26rem;
  width: auto;
  padding: 1rem 1.35rem;
  font-size: clamp(1.05rem, 2.8vw, 1.35rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  border-radius: 999px;
  box-shadow: 0 10px 28px rgba(61, 143, 85, 0.28);
}
.landing-promo-cta-wrap .promo-landing-banner {
  flex: 1 1 18rem;
  margin: 0;
  max-width: 28rem;
  display: flex;
  align-items: center;
  text-align: left;
}
.landing-promo-cta-wrap .promo-landing-banner p {
  text-align: left;
}
.landing--offers .landing-promo-cta {
  display: none !important;
}
.landing--offers .landing-promo-cta-wrap:not(.hidden) {
  display: flex;
  width: min(100%, 42rem);
  margin: 0 auto 1.1rem;
}
.landing--offers .landing-promo-cta-wrap .promo-landing-banner {
  max-width: none;
  width: 100%;
  text-align: center;
}
.landing--offers .landing-promo-cta-wrap .promo-landing-banner p {
  text-align: center;
}
.landing--trial .landing-promo-cta-wrap:not(.hidden) {
  display: flex;
}
.landing-back-guest-wrap {
  display: flex;
  justify-content: center;
  margin: 0 auto 1.1rem;
  width: min(100%, 40rem);
}
.landing-back-guest-wrap.hidden {
  display: none !important;
}
.landing-back-guest {
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
}
.landing--trial .landing-back-guest-wrap {
  display: none !important;
}
.landing-home-scan-types {
  margin: 0;
}
.landing-offers-intro {
  width: min(100%, 40rem);
  margin: 0 auto 1rem;
  text-align: center;
  font-size: 1rem;
  color: var(--muted);
}

/* Offres masquées sur l'accueil - visibles seulement après le timer / CTA */
.landing:not(.landing--offers) .offers,
.landing:not(.landing--offers) .landing-offers-intro {
  display: none !important;
}

/* Page offres (invit� après timer) : on quitte le bureau Scanner/Estimer, on garde logo + domaine */
.landing.landing--offers .home-desk {
  display: none !important;
}

.landing.landing--offers .landing-hero {
  display: block !important;
  margin-bottom: 1.25rem;
  padding-top: 0.35rem;
}

.landing.landing--offers .landing-hero .landing-brand {
  cursor: pointer;
  margin-bottom: 0.5rem;
}

.landing.landing--offers .landing-hero .brand-slogan {
  display: none;
}

.landing.landing--offers .offers {
  margin-top: 0.5rem;
}

.landing.landing--offers {
  background:
    radial-gradient(ellipse 90% 50% at 50% -6%, rgba(61, 143, 85, 0.12), transparent 60%),
    linear-gradient(180deg, #f7fbf8 0%, #ffffff 40%, #ffffff 100%);
}

/* Connect� : jamais de flou ni bandeaux invit� */
body.is-scanning .guest-result-banner,
body.is-scanning .guest-scan-promo-bar,
body.is-scan-revealing .guest-result-banner,
body.is-scan-revealing .guest-scan-promo-bar,
.results.is-scan-shell .guest-result-banner,
.results.is-scan-shell .guest-scan-promo-bar {
  display: none !important;
}

.offers {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr) minmax(0, 1.55fr);
  gap: 18px;
  align-items: stretch;
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

.offer-card {
  background: linear-gradient(165deg, #ffffff 0%, #f7fbf8 100%);
  border: 1.5px solid rgba(20, 40, 25, 0.12);
  border-radius: 20px;
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 420px;
  overflow: hidden;
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.05),
    0 1px 0 rgba(255, 255, 255, 0.9);
  color: var(--ink);
}

.offer-card.offer-monthly {
  position: relative;
  border: 2.5px solid #0a1610;
  box-shadow:
    0 0 0 1px rgba(61, 143, 85, 0.2),
    0 14px 32px rgba(27, 94, 32, 0.1);
  background:
    radial-gradient(80% 55% at 85% -5%, rgba(61, 143, 85, 0.16), transparent 58%),
    linear-gradient(165deg, #ffffff 0%, #f1f9f3 100%);
  animation: offer-monthly-green-pulse 3.2s ease-in-out infinite;
}

@keyframes offer-monthly-green-pulse {
  0%,
  100% {
    border-color: #0a1610;
    box-shadow:
      0 0 0 1px rgba(61, 143, 85, 0.18),
      0 14px 32px rgba(27, 94, 32, 0.08),
      0 0 12px rgba(61, 143, 85, 0.12);
  }
  50% {
    border-color: #3d8f55;
    box-shadow:
      0 0 0 1px rgba(61, 143, 85, 0.35),
      0 16px 36px rgba(27, 94, 32, 0.12),
      0 0 18px rgba(61, 143, 85, 0.22);
  }
}

@media (prefers-reduced-motion: reduce) {
  .offer-card.offer-monthly {
    animation: none;
  }
}

.offer-coin-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  pointer-events: none;
  z-index: 1;
}

.offer-coin-icon {
  width: 40px;
  height: 40px;
  display: block;
}

.offer-infinity-icon {
  width: 28px;
  height: 28px;
  display: block;
  flex-shrink: 0;
}

.offer-card.offer-free {
  border: 1.75px solid rgba(27, 94, 32, 0.45);
  background:
    radial-gradient(70% 50% at 20% 0%, rgba(61, 143, 85, 0.1), transparent 55%),
    linear-gradient(165deg, #ffffff 0%, #f3faf5 100%);
  justify-content: flex-start;
  text-align: center;
  gap: 0;
}

.offer-card.offer-unit {
  border-color: rgba(20, 40, 25, 0.14);
}

.offer-visual {
  margin: 0;
  flex-shrink: 0;
  background: #e8f0ea;
  border-bottom: 1px solid rgba(27, 94, 32, 0.18);
}

.offer-card.offer-unit .offer-visual {
  border-bottom-color: rgba(20, 40, 25, 0.1);
}

.offer-card.offer-monthly .offer-visual {
  border-bottom-color: rgba(27, 94, 32, 0.28);
}

.offer-visual img {
  display: block;
  width: 100%;
  height: clamp(168px, 20vw, 228px);
  object-fit: cover;
  object-position: center;
}

.offer-card.offer-free .offer-visual img {
  object-position: center 55%;
}

.offer-card.offer-monthly .offer-visual img {
  object-position: center 45%;
}

.offer-body {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  flex: 1 1 auto;
  width: 100%;
  padding: 22px 20px 20px;
  box-sizing: border-box;
  position: relative;
  min-height: 0;
}

.offer-card.offer-free .offer-body {
  align-items: center;
  text-align: center;
}

.offer-card.offer-free h3 {
  margin: 0 0 4px;
  color: var(--ink);
  text-transform: uppercase;
}

.offer-hl {
  color: #0a1610;
  font-weight: 700;
}

.offer-free-price-cluster {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  max-width: 100%;
  padding: 0 4px;
  box-sizing: border-box;
}

.offer-free-checks {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  width: min(100%, 18.5rem);
  margin: 0 auto;
}

.offer-free-badge,
.offer-free-nocard {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  column-gap: 10px;
  width: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.offer-free-badge {
  color: #0a1610;
  font-size: clamp(1.05rem, 2.8vw, 1.28rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.offer-free-check-label {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
  text-align: right;
}

.offer-free-badge .offer-point-icon,
.offer-free-nocard .offer-point-icon {
  margin-top: 0;
  width: 1.15rem;
  height: 1.15rem;
  justify-self: end;
}

.offer-gift-icon {
  width: clamp(2.75rem, 9vw, 3.75rem);
  height: auto;
  max-width: 3.75rem;
  max-height: 3.75rem;
  flex-shrink: 0;
  display: block;
  object-fit: contain;
}

.offer-free-price {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2.35rem, 4vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.offer-free-nocard {
  color: #3d8f55;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.offer-free-nocard .offer-point-icon {
  width: 0.95rem;
  height: 0.95rem;
}

.offer-free-lead {
  margin: 0 auto 20px;
  max-width: 16.5rem;
  color: #2a322c;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.45;
}

.offer-actions {
  margin-top: auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  min-height: 5.75rem;
}

.offer-free-cta,
.offer-card .primary,
.offer-card .ghost {
  width: 100%;
  min-height: 3.25rem;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: normal;
}

.offer-free-cta {
  margin: 0 0 14px;
  border: 0;
  border-radius: 12px;
  padding: 15px 18px;
  background: var(--brand-scan);
  color: #0b1610;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: -0.01em;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(61, 143, 85, 0.28);
  flex-direction: column;
  gap: 2px;
  line-height: 1.15;
}

.offer-free-cta-main {
  display: block;
}

.offer-free-cta-sub {
  display: block;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  opacity: 0.85;
  line-height: 1.2;
}

.offer-free-cta:hover,
.offer-free-cta:focus-visible {
  background: #3d8f55;
  outline: none;
}

.offer-free-foot {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
}

.offer-tag-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 8px;
}

.offer-tag-row .offer-tag {
  margin: 0;
}

.offer-credit-x1 {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  color: #c9a227;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
}

.offer-credit-coin {
  width: 22px;
  height: 22px;
  display: block;
  flex-shrink: 0;
}

.offer-credit-x1-label {
  color: #c9a227;
}

.offer-tag {
  margin: 0 0 8px;
  color: var(--brand-green);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.offer-card.offer-monthly .offer-tag {
  color: #0a1610;
}

.offer-card h3 {
  margin: 0 0 10px;
  font-size: 1.55rem;
  color: var(--ink);
}

.offer-monthly-title-text {
  position: relative;
  display: inline-block;
}

.offer-monthly-title-check {
  position: absolute;
  left: calc(100% + 0.45rem);
  top: 50%;
  transform: translateY(-50%);
  width: 2.85rem;
  height: 2.85rem;
  pointer-events: none;
}

.offer-price {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  /* Non-promo: spacing is an NBSP inside .offer-price-unit (survives mobile collapse). */
  column-gap: 0;
  row-gap: 0.2em;
  margin: 0 0 10px;
  font-size: 2.15rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--ink);
}

.offer-price-main {
  flex: 0 0 auto;
  /* Keep large price styling; do not share .offer-price-unit rules */
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  color: inherit;
}

.offer-price.is-promo {
  column-gap: 0.65rem;
  row-gap: 0.35rem;
}

.offer-price-was {
  font-size: 1.15rem;
  font-weight: 600;
  color: #e05c5c;
  text-decoration: line-through;
  text-decoration-color: #e05c5c;
  text-decoration-thickness: 0.75px;
  text-decoration-skip-ink: none;
  opacity: 1;
}

.offer-price-now {
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  color: var(--accent);
}

.promo-landing-banner {
  margin: 0 0 22px;
  padding: 14px 16px;
  border: 1px solid rgba(27, 94, 32, 0.18);
  border-radius: 12px;
  background: linear-gradient(165deg, #ffffff 0%, #f3faf5 100%);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
  text-align: center;
}

.promo-landing-banner p {
  margin: 0;
  color: #2a322c;
  line-height: 1.45;
  font-size: 0.98rem;
}

.promo-landing-banner strong {
  color: #0a1610;
  font-weight: 700;
}

.promo-share-btn {
  color: var(--accent);
  font-weight: 700;
}

.promo-share-pop {
  min-width: 210px;
  white-space: normal;
}

.promo-share-code-line {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.promo-share-code-line strong {
  color: #e0c354;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.promo-share-url-line {
  margin: 0 0 6px;
  color: var(--lilac);
  font-size: 0.72rem;
  line-height: 1.35;
  word-break: break-all;
  max-width: 220px;
}

.promo-share-reassure {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
  white-space: normal;
  max-width: 220px;
}

.promo-share-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin: 0;
  padding: 6px 2px;
  border: 0;
  background: transparent;
  color: var(--lilac);
  font: inherit;
  font-weight: 700;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.promo-share-action:hover,
.promo-share-action:focus {
  text-decoration: underline;
}

.promo-share-hint {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
  white-space: normal;
  max-width: 220px;
}

@media screen {
  .promo-landing-banner[hidden],
  .promo-landing-banner.hidden,
  .promo-share-wrap[hidden],
  .promo-share-wrap.hidden,
  .promo-share-url-line[hidden],
  .promo-share-url-line.hidden,
  .promo-share-hint[hidden],
  .promo-share-hint.hidden,
  .promo-share-native[hidden],
  .promo-share-native.hidden {
    display: none !important;
  }
}

.offer-price-unit {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  flex: 0 0 auto;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--muted);
  vertical-align: middle;
}

.offer-cb-icon {
  width: 1.05em;
  height: 1.05em;
  flex-shrink: 0;
  color: var(--muted);
  opacity: 0.9;
}

.offer-desc {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.45;
}

.offer-unlimited-highlight {
  margin: 0 0 4px;
  color: #0a1610;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.3;
}

.offer-unlimited-sub {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.4;
}

.offers .offer-no-card {
  color: var(--ink);
  font-weight: 800;
}

.offer-points {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  color: var(--ink);
  line-height: 1.55;
  flex: 1 1 auto;
  display: grid;
  gap: 8px;
}

.offer-points li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.offer-point-icon {
  width: 1.05rem;
  height: 1.05rem;
  flex: 0 0 auto;
  margin-top: 0.18em;
}

.offer-card.offer-free .offer-points {
  margin: 0 0 16px;
  width: 100%;
}

.offer-monthly-btn {
  background: #0a1610;
  color: #ffffff;
}

.offer-card .ghost[data-offer],
.offer-card .primary[data-offer],
.offer-card button[data-offer] {
  border-radius: 12px;
  font-weight: 700;
}

.offer-card.offer-monthly .offer-monthly-btn,
.offer-card.offer-monthly button[data-offer="monthly"] {
  background: #0a1610;
  color: #ffffff;
  border-color: #0a1610;
}

.offer-card.offer-monthly .offer-monthly-btn:hover,
.offer-card.offer-monthly button[data-offer="monthly"]:hover {
  background: #3d8f55;
}

.landing-legal {
  margin: 28px auto 0;
  max-width: 720px;
  text-align: center;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.landing-legal a {
  color: var(--lilac);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-page {
  max-width: 720px;
  margin: 28px auto 48px;
  padding: 40px 20px 64px;
  color: var(--ink);
  line-height: 1.55;
  background: var(--glass-bg);
  border: var(--glass-border);
  border-radius: 18px;
  box-shadow: var(--glass-shadow);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}

.legal-page h1 {
  margin: 0 0 18px;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  letter-spacing: -0.03em;
}

.legal-page h2 {
  margin: 28px 0 10px;
  font-size: 1.15rem;
  color: var(--lilac);
}

.legal-page p,
.legal-page ul {
  color: var(--muted);
}

.legal-page a {
  color: var(--accent);
}

.legal-page ul {
  padding-left: 1.2em;
}

.legal-page li {
  margin: 0 0 8px;
}

.legal-page code {
  font-size: 0.92em;
}

.legal-updated {
  margin: -8px 0 18px;
  font-size: 0.86rem;
}

.legal-back {
  margin: 0 0 22px;
}

.legal-back a {
  color: var(--lilac);
  text-decoration: none;
}

.legal-back a:hover {
  text-decoration: underline;
}

.account-bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  overflow: visible;
  width: 100vw;
  max-width: 100vw;
  margin: 0 0 2px calc(50% - 50vw);
  padding: 0 12px;
  box-sizing: border-box;
  background: transparent;
  border: none;
  border-radius: 0;
}

/* Scan invit� (#app sans session) : pas de barre compte en haut � droite. */
body:not(.is-logged) #app .account-bar {
  display: none !important;
}

.account-quota-wrap {
  display: inline-flex;
  align-items: flex-end;
  gap: 16px;
  flex: 1 1 auto;
  min-width: 0;
  max-width: min(92vw, 920px);
  padding: 4px 0 2px;
  order: 1;
  overflow: visible;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.account-quota-icon {
  display: none !important;
}

.account-quota-line {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  overflow: visible;
}

.account-quota-coin {
  width: 1.45rem !important;
  height: 1.45rem !important;
  min-width: 1.45rem;
  min-height: 1.45rem;
  flex: 0 0 auto;
  display: block !important;
  overflow: visible;
  transform: translateY(1px);
  pointer-events: none;
}

.account-quota-coin.hidden,
.account-quota-coin[hidden] {
  display: none !important;
}

.account-quota {
  color: var(--ink);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  white-space: nowrap;
}

.account-quota-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  padding-bottom: 6px;
}

.account-credits-bank {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
}

.account-credits-bank.hidden {
  display: none;
}

.account-social-top {
  display: none !important;
}

.account-username {
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
  align-self: center;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.account-username.hidden {
  display: none !important;
}

.username-handle {
  color: var(--ink);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  vertical-align: baseline;
}

.username-handle.is-verified {
  color: #3d8f55;
}

.username-verified-badge {
  width: 0.95em;
  height: 0.95em;
  flex: 0 0 auto;
  display: inline-block;
  vertical-align: -0.1em;
}

.admin-client-username {
  display: block;
  margin-top: 2px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink);
}

.admin-client-username.is-unconfirmed {
  color: #e05c5c;
}

.admin-client-username.is-verified {
  color: #3d8f55;
}

.account-social-btn {
  position: relative;
  padding: 3px 8px !important;
  font-size: 0.68rem !important;
  line-height: 1.2 !important;
  border-radius: 999px;
  flex: 0 0 auto !important;
  min-height: 0;
}

.account-social-btn.hidden {
  display: none !important;
}

.account-social-btn.is-active {
  border-color: rgba(224, 195, 84, 0.65);
  color: #e0c354;
  background: rgba(224, 195, 84, 0.12);
}

.account-social-sheet {
  width: 100%;
  max-width: 100%;
  padding: 6px 8px;
  border: 1px solid rgba(20, 40, 25, 0.12);
  border-radius: 8px;
  background: #ffffff;
  box-sizing: border-box;
  align-self: stretch;
}

.account-social-sheet.hidden,
.account-social-sheet[hidden] {
  display: none !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
}

.account-social-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 4px;
}

.account-social-sheet-title {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.01em;
}

.account-social-close {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(20, 40, 25, 0.14);
  border-radius: 999px;
  background: #ffffff;
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.account-social-close:hover,
.account-social-close:focus-visible {
  border-color: rgba(224, 195, 84, 0.65);
  color: #e0c354;
}

.account-social-pane-lead {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.25;
}

.account-social-sheet .social-action-row {
  margin: 0;
  gap: 4px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.account-social-sheet .social-action-row input,
.account-social-sheet .social-action-row select {
  padding: 5px 8px;
  font-size: 0.78rem;
  min-height: 0;
  border-radius: 8px;
}

.account-social-sheet .social-action-msg textarea {
  min-height: 20rem;
  height: min(50vh, 28rem);
  max-height: min(60vh, 34rem);
  padding: 10px 12px;
  font-size: 0.9rem;
  border-radius: 8px;
}

.account-social-sheet .social-action-row input[type="number"] {
  width: 3.2rem;
  flex: 0 0 auto;
}

.account-social-sheet .social-action-row .ghost,
.account-social-sheet .social-action-row .primary {
  padding: 5px 9px !important;
  font-size: 0.72rem !important;
}

.account-social-sheet .modal-error,
.account-social-sheet .auth-notice {
  margin: 4px 0 0;
  font-size: 0.72rem;
}

.account-quota-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  justify-content: flex-end;
  padding-bottom: 0;
  position: relative;
  z-index: 2;
  overflow: visible;
}

.account-xp {
  display: flex;
  align-items: flex-end;
  gap: 0;
  margin-left: 0;
  padding-left: 0;
  border-left: none;
  min-width: 0;
}

.account-xp-icon,
.account-xp-icon.hidden {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .xp-building .xp-window,
  .xp-building .xp-flame-a,
  .xp-building .xp-flame-b,
  .xp-building .xp-sun-rays,
  .xp-building .xp-star,
  .xp-building .xp-pool {
    animation: none !important;
  }
}

.account-xp-icon {
  --xp-icon-size: 52px;
  width: var(--xp-icon-size);
  height: var(--xp-icon-size);
  flex: 0 0 var(--xp-icon-size);
  display: grid;
  place-items: end center;
  align-self: flex-end;
  margin: 0;
  /* Garde soleil / d�cos dans la colonne ic�ne, sans chevaucher le texte � droite */
  overflow: hidden;
  isolation: isolate;
  position: relative;
  z-index: 0;
  pointer-events: none;
}

.account-xp-icon svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: hidden;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.45));
}

.account-xp-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 140px;
  width: min(28vw, 200px);
  max-width: 200px;
  padding-bottom: 4px;
  position: relative;
  z-index: 2;
  background: transparent;
}

.account-xp-top {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: nowrap;
  min-width: 0;
}

.account-xp-next-gift {
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: rgba(232, 240, 234, 0.78);
  white-space: nowrap;
  min-width: 0;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: rgba(232, 240, 234, 0.35);
  text-underline-offset: 2px;
}

.account-xp-next-gift:hover,
.account-xp-next-gift:focus-visible {
  color: var(--ink);
  text-decoration-color: rgba(232, 240, 234, 0.7);
  outline: none;
}

.account-xp-hint {
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(232, 240, 234, 0.92);
  letter-spacing: 0.01em;
  white-space: nowrap;
  flex: 0 0 auto;
}

.account-xp-gift {
  position: relative;
  margin-left: auto;
  width: 30px;
  height: 30px;
  padding: 0;
  border-radius: 9px;
  border: 1px solid rgba(224, 195, 84, 0.45);
  background: rgba(224, 195, 84, 0.14);
  color: #e0c354;
  cursor: pointer;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
}

.account-xp-gift.hidden {
  display: none !important;
}

.account-xp-gift:hover,
.account-xp-gift:focus-visible {
  filter: brightness(1.08);
  border-color: #e0c354;
}

.account-xp-gift.is-pending {
  animation: xp-gift-pulse 1.6s ease-in-out infinite;
}

@keyframes xp-gift-pulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(224, 195, 84, 0.35);
  }
  50% {
    transform: scale(1.06);
    box-shadow: 0 0 0 6px rgba(224, 195, 84, 0);
  }
}

.account-xp-gift-ico {
  width: 16px;
  height: 16px;
  display: block;
}

.account-xp-gift-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: #e05c5c;
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 16px;
  text-align: center;
  box-shadow: 0 0 0 2px rgba(15, 20, 18, 0.85);
}

.account-xp-level {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--ink);
  white-space: nowrap;
  flex: 0 0 auto;
}

.account-xp-next-gift.hidden {
  display: none !important;
}

.account-xp-hint.hidden {
  display: none !important;
}

.account-xp-bar {
  display: block;
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(8, 12, 10, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.account-xp-bar.is-empty,
.account-xp-bar[hidden] {
  display: none !important;
}

.account-xp-fill {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: var(--xp-color, #3d8f55);
  box-shadow: 0 0 10px color-mix(in srgb, var(--xp-color, #3d8f55) 55%, transparent);
  transition: width 0.45s ease, background 0.45s ease;
}

.account-sub {
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
}

.account-sub.hidden {
  display: none;
}

.account-cancel-btn {
  margin: 0;
  padding: 3px 8px;
  border: 1px solid rgba(224, 92, 92, 0.4);
  border-radius: 999px;
  background: transparent;
  color: #e05c5c;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  opacity: 0.82;
}

.account-cancel-btn:hover,
.account-cancel-btn:focus-visible {
  opacity: 1;
  border-color: #e05c5c;
}

.account-cancel-btn.hidden {
  display: none;
}

.account-meta {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  overflow: visible;
  margin-left: auto;
  min-width: 0;
  height: auto;
  min-height: 0;
  align-self: flex-start;
  order: 3;
  padding: 8px 10px;
  background: var(--glass-bg);
  border: var(--glass-border);
  border-radius: 14px;
  box-shadow: var(--glass-shadow);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}

.account-email {
  display: none !important;
}

.account-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(20, 40, 25, 0.14);
  border-radius: 10px;
  background: #ffffff;
  color: var(--ink);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.account-menu-toggle:hover,
.account-menu-toggle:focus-visible {
  border-color: rgba(27, 94, 32, 0.4);
  outline: none;
}

.account-menu-bars {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 18px;
  height: 14px;
  pointer-events: none;
}

.account-menu-bars i {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.account-meta.is-menu-open .account-menu-bars i:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.account-meta.is-menu-open .account-menu-bars i:nth-child(2) {
  opacity: 0;
}

.account-meta.is-menu-open .account-menu-bars i:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.account-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  overflow: visible;
}

.account-bar .ghost {
  padding: 6px 9px;
  font-size: 0.78rem;
  white-space: nowrap;
  flex: 0 0 auto;
}

.account-bar .contact-btn {
  gap: 6px;
}

#account-admin.account-admin-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  visibility: visible;
  background: transparent;
  color: #e0c354;
  border: 1px solid var(--line);
}

#account-admin.account-admin-btn:hover,
#account-admin.account-admin-btn:focus-visible {
  color: #f0d56a;
  border-color: #e0c354;
}

body.is-logged #account-admin.account-admin-btn:not(.hidden):not([hidden]) {
  display: inline-flex;
}

#account-admin.hidden,
#account-admin[hidden] {
  display: none !important;
}

body.app-page-open {
  overflow: hidden;
}

.app-page {
  position: fixed;
  inset: 0;
  z-index: 88;
  background:
    radial-gradient(ellipse 90% 50% at 50% -8%, rgba(61, 143, 85, 0.12), transparent 58%),
    linear-gradient(180deg, #f7fbf8 0%, #ffffff 42%, #ffffff 100%);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 16px 22px 18px;
  color: var(--ink);
}

.app-page.hidden {
  display: none !important;
}

.app-page-inner {
  width: 100%;
  max-width: none;
  margin: 0;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.app-page-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  flex-shrink: 0;
}

.app-page-top h2 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
}

.app-page-top > .ghost {
  flex-shrink: 0;
}

.app-page-lead {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.45;
  max-width: 46rem;
}

.app-page-empty {
  margin: 4px 0 12px;
  color: var(--muted);
  font-size: 1.05rem;
  flex-shrink: 0;
}

.app-page-scroll {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding-bottom: 8px;
}

.profile-recap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 0 0 20px;
  padding: 18px 20px;
  background: var(--glass-bg);
  border: var(--glass-border);
  border-radius: 16px;
  box-shadow: var(--glass-shadow);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}

.profile-recap > div {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.profile-recap dt {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.profile-recap dd {
  margin: 0;
  word-break: break-word;
  font-size: 1.08rem;
}

.profile-recap .profile-email-value,
.profile-recap #profile-email {
  font-weight: 700;
  color: var(--ink);
}

.profile-plan-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(125, 211, 160, 0.16);
  border: 1px solid var(--accent);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.98rem;
  line-height: 1.35;
}

.profile-page-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
  align-items: start;
}

.profile-card-block {
  background: var(--glass-bg);
  border: var(--glass-border);
  border-radius: 16px;
  padding: 20px 22px 18px;
  display: grid;
  gap: 12px;
  box-shadow: var(--glass-shadow);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}

.profile-section {
  margin: 0 0 4px;
  font-size: 1.08rem;
}

.field-hint {
  margin: -4px 0 4px;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.35;
}

.profile-social {
  grid-column: 1 / -1;
}

.profile-social-link {
  grid-column: 1 / -1;
}

.profile-social-lead {
  margin: 0 0 8px;
  font-size: 0.88rem;
}

.account-social-badge,
.social-hub-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.15rem;
  height: 1.15rem;
  padding: 0 5px;
  margin-left: 4px;
  border-radius: 999px;
  background: #e11d48;
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 1;
  vertical-align: middle;
  box-shadow: 0 0 0 2px #ffffff;
}

#account-friends-badge.account-social-badge {
  position: absolute;
  top: -6px;
  right: -7px;
  margin-left: 0;
  min-width: 1.05rem;
  height: 1.05rem;
  padding: 0 4px;
  font-size: 0.58rem;
  pointer-events: none;
}

.account-social-badge.hidden,
.social-hub-badge.hidden {
  display: none !important;
}

/* Page Social - hub */
#social-page.social-hub {
  background-color: #ffffff;
  background-image:
    radial-gradient(ellipse 70% 50% at 12% -10%, rgba(61, 143, 85, 0.12), transparent 58%),
    radial-gradient(ellipse 55% 42% at 92% 8%, rgba(27, 94, 32, 0.06), transparent 55%),
    linear-gradient(180deg, #f7fbf8 0%, #ffffff 45%, #ffffff 100%);
  background-repeat: no-repeat, no-repeat, no-repeat;
  background-position: center, center, center;
  background-size: auto, auto, auto;
  color: var(--ink);
}

.social-hub-inner {
  max-width: 920px;
  margin: 0 auto;
  width: 100%;
}

.social-hub-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
  flex-shrink: 0;
}

.social-hub-tab {
  appearance: none;
  border: 1px solid rgba(20, 40, 25, 0.14);
  background: #ffffff;
  color: var(--ink);
  border-radius: 999px;
  padding: 0.55rem 0.95rem;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.social-hub-tab:hover {
  border-color: rgba(27, 94, 32, 0.4);
}

.social-hub-tab.is-active {
  border-color: rgba(27, 94, 32, 0.55);
  background: rgba(61, 143, 85, 0.12);
  color: #0a1610;
}

.social-hub-scroll {
  display: grid;
  gap: 14px;
  padding-bottom: 28px;
}

.social-hub-pane.hidden,
.social-hub-pane[hidden] {
  display: none !important;
}

.social-hub-pane {
  display: grid;
  gap: 14px;
}

.social-hub-card {
  padding: 18px 18px 16px;
  border-radius: 18px;
  border: 1px solid rgba(20, 40, 25, 0.12);
  background: linear-gradient(165deg, #ffffff 0%, #f7fbf8 100%);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.05);
  color: var(--ink);
}

.social-hub-card-title {
  margin: 0 0 4px;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.social-hub-card-lead {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.4;
}

.social-hub-row {
  margin: 0;
}

.social-hub-list {
  margin: 0;
  max-height: none;
}

.social-hub-list .social-row {
  padding: 10px 12px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid rgba(20, 40, 25, 0.1);
  margin-bottom: 8px;
  color: var(--ink);
}

.social-hub-list .social-row:last-child {
  margin-bottom: 0;
}

.social-hub-credits-pill {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(201, 162, 39, 0.14);
  color: #8a6d0a;
  font-size: 0.78rem;
  font-weight: 700;
}

.social-hub-share-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 14px;
}

.social-hub-share-grid label {
  display: grid;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--muted);
}

.social-hub-share-grid select {
  width: 100%;
  background: #ffffff;
  color: var(--ink);
  border: 1px solid rgba(20, 40, 25, 0.14);
  border-radius: 12px;
  padding: 10px 12px;
  font: 14px/1.4 var(--font-brand);
}

.social-hub-share-scan-block {
  display: grid;
  gap: 8px;
}

.social-hub-share-scan-label {
  font-size: 0.82rem;
  color: var(--muted);
}

.social-share-scan-list {
  display: grid;
  gap: 8px;
  max-height: 340px;
  overflow: auto;
  padding: 2px;
}

.social-share-sort {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
}

.social-hub-share-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  margin: 0 0 8px;
}

.social-hub-share-btn {
  width: auto;
  flex: 0 0 auto;
  margin: 0;
  padding: 0.55rem 1rem;
  font-size: 0.82rem;
  white-space: nowrap;
}

.social-share-scan-item {
  appearance: none;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 10px;
  align-items: center;
  width: 100%;
  text-align: left;
  cursor: pointer;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(20, 40, 25, 0.12);
  border-left: 3px solid var(--share-tone, rgba(27, 94, 32, 0.35));
  background: #ffffff;
  color: var(--ink);
  font: 14px/1.35 var(--font-brand);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.social-share-scan-item:hover {
  border-color: rgba(27, 94, 32, 0.4);
  background: #f7fbf8;
}

.social-share-scan-item.is-selected {
  border-color: rgba(27, 94, 32, 0.55);
  background: rgba(61, 143, 85, 0.1);
}

.social-share-scan-thumb {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  object-fit: cover;
  background: #eef2ee;
  display: block;
}

.social-share-scan-thumb--ph {
  background: linear-gradient(135deg, #eef2ee, #f7fbf8);
}

.social-share-scan-body {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.social-share-scan-title-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  align-items: center;
  min-width: 0;
}

.social-share-scan-kind {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #0a1610;
  flex: 0 0 auto;
}

.social-share-scan-kind.is-vente {
  color: #8a6d0a;
}

.social-share-scan-kind.is-location {
  color: #2b6cb0;
}

.social-share-scan-place {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
}

.social-share-scan-when {
  font-size: 0.78rem;
  color: var(--muted);
}

.social-share-scan-stars {
  display: inline-flex;
  align-items: center;
}

.social-share-scan-stars .prix-stars {
  transform: scale(0.82);
  transform-origin: left center;
}

.social-share-scan-note-num {
  font-size: 0.82rem;
  font-weight: 600;
  color: #0a1610;
}

.social-share-scan-hint {
  margin: 0;
  font-size: 0.84rem;
  color: var(--muted);
}

.social-share-scan-hint.hidden {
  display: none !important;
}

@media (max-width: 720px) {
  .social-hub-share-grid {
    grid-template-columns: 1fr;
  }
  .social-hub-share-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .social-hub-share-btn {
    width: 100%;
  }
  .social-hub-tabs {
    gap: 6px;
  }
  .social-hub-tab {
    font-size: 0.78rem;
    padding: 0.48rem 0.78rem;
  }
  #social-page.social-hub {
    padding: 12px 12px 14px;
  }
}

.social-actions {
  display: grid;
  gap: 10px;
}

.social-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.social-action-row input,
.social-action-row select {
  flex: 1 1 140px;
  min-width: 120px;
  background: #ffffff;
  color: var(--ink);
  border: 1px solid rgba(20, 40, 25, 0.14);
  border-radius: 12px;
  padding: 10px 12px;
  font: 14px/1.4 var(--font-brand);
}

.social-action-row input[type="number"] {
  flex: 0 0 72px;
  min-width: 72px;
}

.social-action-msg {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto minmax(28rem, 1fr);
  gap: 8px;
  align-items: stretch;
}

.social-action-msg select {
  grid-column: 1;
  grid-row: 1;
  flex: none;
  min-width: 0;
  width: 100%;
}

.social-action-msg button {
  grid-column: 2;
  grid-row: 1;
  align-self: stretch;
}

.social-action-msg textarea {
  grid-column: 1 / -1;
  grid-row: 2;
  width: 100%;
  min-height: 28rem;
  height: min(62vh, 40rem);
  max-height: min(75vh, 48rem);
  resize: vertical;
  box-sizing: border-box;
  background: #ffffff;
  color: var(--ink);
  border: 1px solid rgba(20, 40, 25, 0.14);
  border-radius: 12px;
  padding: 12px 14px;
  font: 15px/1.45 var(--font-brand);
  overflow-y: auto;
}

.social-action-msg textarea:focus {
  outline: none;
  border-color: rgba(27, 94, 32, 0.45);
}

.social-lists {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 8px;
}

.social-sub {
  margin: 0 0 6px;
  font-size: 0.92rem;
  color: var(--ink);
}

.social-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
  max-height: 220px;
  overflow: auto;
}

.social-row,
.social-msg,
.social-empty {
  padding: 8px 10px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid rgba(20, 40, 25, 0.1);
  font-size: 0.86rem;
  color: var(--ink);
}

.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  justify-content: space-between;
}

.social-row > span {
  flex: 1 1 auto;
  min-width: 0;
}

.social-row .ghost {
  padding: 5px 10px;
  font-size: 0.78rem;
}

.social-empty {
  color: var(--muted);
}

.social-msg-time {
  color: var(--muted);
  font-size: 0.75rem;
  margin-left: 6px;
}

.social-msg {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-start;
  justify-content: space-between;
}

.social-msg-main {
  flex: 1 1 160px;
  min-width: 0;
}

.social-msg-body {
  margin-top: 4px;
  white-space: pre-wrap;
  word-break: break-word;
}

.social-msg-share {
  display: flex;
  gap: 10px;
  align-items: center;
  width: 100%;
  margin-top: 8px;
  padding: 8px;
  border-radius: 10px;
  border: 1px solid rgba(20, 40, 25, 0.1);
  background: #f7fbf8;
  color: inherit;
  text-align: left;
  cursor: pointer;
  font: inherit;
}

.social-msg-share:hover,
.social-msg-share:focus-visible {
  border-color: rgba(27, 94, 32, 0.45);
  background: rgba(61, 143, 85, 0.1);
  outline: none;
}

.social-msg-share-thumb {
  width: 52px;
  height: 52px;
  border-radius: 9px;
  object-fit: cover;
  background: #eef2ee;
  flex: 0 0 auto;
  display: block;
}

.social-msg-share-thumb--ph {
  background: linear-gradient(135deg, #eef2ee, #f7fbf8);
}

.social-msg-share-body {
  display: grid;
  gap: 3px;
  min-width: 0;
  flex: 1 1 auto;
}

.social-msg-share-title-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  align-items: center;
  min-width: 0;
}

.social-msg-share-kind {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #0a1610;
  flex: 0 0 auto;
}

.social-msg-share-kind.is-vente {
  color: #8a6d0a;
}

.social-msg-share-kind.is-location {
  color: #2b6cb0;
}

.social-msg-share-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #0a1610;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 600;
}

.social-msg-share-stars {
  line-height: 1;
}

.social-msg-share-stars .prix-stars {
  font-size: 0.78rem;
}

.social-msg-share-cta {
  font-size: 0.72rem;
  color: var(--muted);
}

.social-msg-reply {
  flex: 0 0 auto;
  padding: 5px 10px;
  font-size: 0.78rem;
  margin-top: 2px;
}

.social-messages {
  max-height: 280px;
}

.profile-card-block label {
  display: grid;
  gap: 6px;
  font-size: 0.9rem;
  color: var(--muted);
}

.profile-card-block input {
  width: 100%;
  background: #ffffff;
  color: var(--ink);
  border: 1px solid rgba(20, 40, 25, 0.14);
  border-radius: 12px;
  padding: 12px 14px;
  font: 15px/1.4 var(--font-brand);
  box-shadow: none;
}

.profile-card-block input:focus {
  outline: 2px solid var(--lilac);
  outline-offset: 1px;
}

.profile-sticky-save {
  position: sticky;
  bottom: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
  padding: 14px 0 2px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), #ffffff 38%);
}

.profile-password {
  margin-top: 0;
  padding-top: 20px;
}

.history-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 14px;
  flex: 1;
  min-height: 0;
  overflow: auto;
  margin-top: 4px;
  padding: 2px 2px 20px;
}

.history-sort {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 2px 0 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(61, 143, 85, 0.06);
  border: 1px solid rgba(61, 143, 85, 0.16);
}

.history-sort.hidden {
  display: none;
}

.history-sort-label {
  color: #2a6b3c;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-right: 2px;
}

.history-sort-btn {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid rgba(10, 22, 16, 0.14);
  background: #ffffff;
  color: #2a332c;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  line-height: 1.2;
  box-shadow: 0 1px 2px rgba(10, 22, 16, 0.04);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.history-sort-btn:hover,
.history-sort-btn:focus-visible {
  border-color: rgba(61, 143, 85, 0.45);
  color: #1a4a28;
  outline: none;
}

.history-sort-btn.is-active {
  color: #ffffff;
  border-color: #2a6b3c;
  background: #3d8f55;
  box-shadow: 0 2px 8px rgba(42, 107, 60, 0.28);
}

.history-sort-btn--vente.is-active {
  color: #5c4a12;
  border-color: #c9a227;
  background: #f5e9c0;
  box-shadow: 0 2px 8px rgba(201, 162, 39, 0.25);
}

.history-sort-btn--location.is-active {
  color: #ffffff;
  border-color: #1e5a96;
  background: #2b6cb0;
  box-shadow: 0 2px 8px rgba(43, 108, 176, 0.28);
}

.history-sort-btn--liked.is-active {
  color: #ffffff;
  border-color: #2a6b3c;
  background: #2a6b3c;
  box-shadow: 0 2px 8px rgba(42, 107, 60, 0.28);
}

.history-sort-sep {
  width: 1px;
  height: 22px;
  background: rgba(61, 143, 85, 0.28);
  margin: 0 4px;
}

.history-item-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  min-width: 0;
}

.history-item-kind {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1;
  border-radius: 999px;
  padding: 3px 6px;
  border: 1px solid currentColor;
}

.history-item-kind.is-vente {
  color: var(--scan-vente);
  background: var(--scan-vente-bg);
}

.history-item-kind.is-location {
  color: var(--scan-location);
  background: var(--scan-location-bg);
}

button.history-item {
  --history-tone: var(--line);
  appearance: none;
  -webkit-appearance: none;
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  align-items: center;
  width: 100%;
  text-align: left;
  padding: 12px;
  border: 2px solid var(--history-tone);
  border-radius: 16px;
  background: var(--glass-bg);
  color: var(--ink);
  cursor: pointer;
  white-space: normal;
  pointer-events: auto;
  box-shadow: var(--glass-shadow);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  transition:
    box-shadow 0.12s ease,
    border-color 0.12s ease,
    transform 0.12s ease,
    background 0.12s ease;
}

button.history-item:hover,
button.history-item:focus-visible {
  border-color: var(--history-tone);
  background: linear-gradient(165deg, #ffffff 0%, #f3faf5 100%);
  transform: translateY(-1px);
  box-shadow:
    var(--glass-shadow),
    inset 0 0 0 1px var(--history-tone),
    0 0 0 2px var(--history-tone);
  outline: none;
}

.history-item img {
  width: 120px;
  height: 90px;
  object-fit: cover;
  border-radius: 12px;
  background: #eef2ee;
  display: block;
}

.history-item-ph {
  width: 120px;
  height: 90px;
  border-radius: 12px;
  background: #e8f0ea;
}

.history-item-body {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.history-item-title {
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.history-item-meta {
  color: var(--muted);
  font-size: 0.86rem;
}

.history-item-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
}

.history-item-note {
  display: inline-flex;
  font-size: 0.75rem;
  font-weight: 800;
  color: #0b1610;
  background: var(--accent);
  border-radius: 999px;
  padding: 2px 8px;
}

.history-item-vote {
  display: inline-flex;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 2px 8px;
}

.history-item-vote.is-like {
  color: #0b1610;
  background: #7dd3a0;
}

.history-item-vote.is-dislike {
  color: #fff;
  background: #e05c5c;
}

.history-item-vote-actions {
  display: inline-flex;
  gap: 4px;
}

.history-vote-btn {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  border: 1px solid rgba(232, 240, 234, 0.16);
  background: rgba(15, 20, 18, 0.45);
  color: #c5d2c9;
  font-size: 0.7rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.history-vote-btn.is-on[data-history-vote="like"],
.history-vote-btn[data-history-vote="like"]:hover {
  color: #7dd3a0;
  border-color: rgba(61, 143, 85, 0.55);
}

.history-vote-btn.is-on[data-history-vote="dislike"],
.history-vote-btn[data-history-vote="dislike"]:hover {
  color: #f0a0a0;
  border-color: rgba(224, 92, 92, 0.55);
}

.history-item-open {
  color: var(--lilac);
  font-size: 0.8rem;
  font-weight: 600;
}

.paywall {
  margin: 0 0 22px;
  padding: 20px 22px;
  border-radius: 16px;
  border: 1px solid rgba(201, 184, 245, 0.35);
  background: linear-gradient(
    155deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(201, 184, 245, 0.14) 45%,
    rgba(29, 41, 36, 0.42) 100%
  );
  box-shadow: var(--glass-shadow);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}

.paywall-msg {
  margin: 0 0 14px;
  line-height: 1.45;
}

.paywall-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(8, 12, 10, 0.55);
  backdrop-filter: blur(8px) saturate(1.15);
  -webkit-backdrop-filter: blur(8px) saturate(1.15);
}

.modal.hidden {
  display: none;
}

.modal-card {
  position: relative;
  width: min(480px, 100%);
  max-height: min(90vh, 760px);
  overflow: auto;
  background: var(--glass-bg);
  border: var(--glass-border);
  border-radius: 18px;
  padding: 28px 24px 22px;
  box-shadow: var(--glass-shadow), 0 24px 60px rgba(0, 0, 0, 0.4);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}

.modal-card h2 {
  margin: 0 0 8px;
}

.modal-card h2#auth-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 0.4em;
  row-gap: 0.1em;
}

.auth-title-bonus {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink);
  opacity: 0.82;
  white-space: nowrap;
  line-height: 1.3;
}

.modal-lead,
.billing-dev-note {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.45;
}

.billing-dev-note {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px dashed var(--lilac-2);
  color: var(--lilac);
  font-size: 0.9rem;
}

.modal-card form {
  display: grid;
  gap: 12px;
}

.auth-profile {
  display: grid;
  gap: 12px;
}

.auth-profile.hidden {
  display: none;
}

.modal-card label.auth-legal {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  line-height: 1.4;
}

.modal-card label.auth-legal.hidden {
  display: none;
}

.modal-card label.auth-legal input[type="checkbox"] {
  width: auto;
  flex: 0 0 auto;
  margin-top: 2px;
  padding: 0;
  accent-color: var(--lilac);
}

.modal-card label.auth-legal a {
  color: var(--lilac);
}

.billing-legal {
  margin: 14px 0 0;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.45;
}

.billing-legal a {
  color: var(--lilac);
}

.auth-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.address-postal-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 8.75rem;
  gap: 12px;
  align-items: start;
}

.address-postal-row > label:first-child {
  min-width: 0;
}

.address-postal-row .code-postal-field input {
  letter-spacing: 0.06em;
}

@media (max-width: 520px) {
  .auth-row {
    grid-template-columns: 1fr;
  }

  .address-postal-row {
    grid-template-columns: minmax(0, 1fr) 7.5rem;
  }
}

.modal-card label {
  display: grid;
  gap: 6px;
  font-size: 0.9rem;
  color: var(--muted);
}

.modal-card input {
  width: 100%;
  background: #ffffff;
  color: var(--ink);
  border: 1px solid rgba(20, 40, 25, 0.14);
  border-radius: 12px;
  padding: 12px 14px;
  font: 15px/1.4 var(--font-brand);
  box-shadow: none;
}

.modal-card input:focus {
  outline: 2px solid var(--lilac);
  outline-offset: 1px;
}

.password-field {
  position: relative;
  display: block;
  min-width: 0;
}

.password-field input {
  padding-right: 2.75rem;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 0.35rem;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.password-toggle:hover,
.password-toggle:focus-visible {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
}

.password-toggle:focus-visible {
  outline: 2px solid var(--lilac);
  outline-offset: 1px;
}

.password-toggle-icon {
  width: 1.15rem;
  height: 1.15rem;
  display: block;
}

.password-toggle-icon.hidden {
  display: none;
}

.modal-error {
  margin: 0;
  color: var(--warn);
  font-size: 0.9rem;
}

.auth-notice {
  margin: 0;
  color: var(--accent);
  font-size: 0.92rem;
  line-height: 1.45;
}

.auth-notice.hidden,
#auth-resend.hidden {
  display: none;
}

.modal-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.modal-switch {
  margin: 14px 0 0;
  text-align: center;
}

.auth-forgot-wrap {
  margin: -4px 0 8px;
  text-align: right;
}

.auth-forgot-wrap .link-btn {
  font-size: 0.92rem;
  font-weight: 600;
}

.link-btn {
  background: none;
  border: 0;
  color: var(--lilac);
  padding: 0;
  font-weight: 600;
  cursor: pointer;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 99px;
  background: transparent;
  color: var(--ink);
  font-size: 1.4rem;
  line-height: 1;
}

@media screen and (max-width: 900px) {
  .offers {
    grid-template-columns: 1fr;
    max-width: none;
  }

  .landing-trial-title {
    max-width: 18ch;
  }

  .offer-visual img {
    height: clamp(180px, 48vw, 260px);
  }

  .offer-gift-icon {
    width: clamp(2.5rem, 12vw, 3.25rem);
    max-width: 3.25rem;
    max-height: 3.25rem;
  }

  .offer-card {
    min-height: 0;
  }

  .scan-bar,
  .scan-actions,
  .summary,
  .score-box,
  .resume-grid {
    grid-template-columns: 1fr;
  }

  .resume-recap-item {
    grid-template-columns: 1fr;
    gap: 2px 0;
  }

  .score-bar {
    grid-template-columns: 88px 1fr 44px;
  }

  .field {
    grid-template-columns: minmax(96px, 36%) 1fr;
  }

  .scan-actions .primary,
  .scan-actions .ghost {
    width: 100%;
  }

  .score-photo {
    height: 180px;
  }


  .score-ring {
    width: 176px;
    height: 176px;
  }

  .score-ring span {
    width: 124px;
    height: 124px;
  }

  .score-ring span b {
    font-size: 2.2rem;
  }

  .photo-analyse-grid {
    grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  }

  .photo-analyse-grid img {
    height: 96px;
  }

  .scan-place-row {
    top: 0;
    padding-top: 8px;
    padding-bottom: 8px;
  }
}

@media screen and (max-width: 640px) {
  .fields {
    grid-template-columns: 1fr;
  }

  .field {
    grid-template-columns: 1fr;
  }
}

@media print {
  @page {
    size: A4 portrait;
    margin: 8mm 8mm 10mm;
  }

  html,
  body {
    height: auto !important;
    max-height: none !important;
    min-height: 0 !important;
    overflow: visible !important;
    margin: 0 !important;
    padding: 0 !important;
    background: var(--bg) !important;
    color: var(--ink) !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  #print-capture-host {
    display: none !important;
  }

  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  .scan-actions,
  .scan-footer,
  .paste-menu,
  .loader,
  .status,
  .landing,
  .landing-top,
  .account-bar,
  .paywall,
  .modal,
  .admin-dash,
  .app-page,
  .history-list,
  .photo-lightbox,
  .contact-pop,
  .json-box,
  .home-scan-types,
  .scan-beam,
  .hero,
  .scan-bar {
    display: none !important;
    position: static !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
  }

  .logo-house,
  .logo-loupe,
  .scan-beam,
  .loader-house,
  .loader-loupe,
  .loader-beam,
  .loader-ring-arc {
    animation: none !important;
  }

  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  .resume-col,
  .resume-recap,
  .resume-prix {
    break-inside: avoid !important;
    page-break-inside: avoid !important;
  }

  .resume-box {
    display: flex !important;
    flex-direction: column !important;
  }

  .resume-box > h3 {
    order: 1;
  }

  .resume-box > .resume-recap {
    order: 2;
  }

  .resume-box > .resume-prix {
    order: 3;
    break-before: page !important;
    page-break-before: always !important;
    break-after: avoid !important;
    page-break-after: avoid !important;
  }

  .resume-box > .prix-energie-row,
  .resume-box > .prix-chart {
    order: 4;
    break-before: avoid !important;
    page-break-before: avoid !important;
    break-inside: avoid !important;
    page-break-inside: avoid !important;
  }

  .resume-box > .scan-lieu,
  .resume-box > .scan-risques {
    order: 5;
    break-inside: avoid !important;
    page-break-inside: avoid !important;
  }

  .resume-box > .scan-historique {
    order: 6;
    break-inside: avoid !important;
    page-break-inside: avoid !important;
  }

  .resume-box > .photo-analyse {
    order: 7;
    break-before: avoid !important;
    page-break-before: avoid !important;
    break-inside: auto !important;
    page-break-inside: auto !important;
  }

  .scan-lieu-map,
  .scan-lieu-frame,
  .scan-lieu-static {
    display: none !important;
  }

  .hero {
    display: none !important;
  }

  body.is-logged .hero,
  body.is-logged .page,
  body.is-logged #app,
  body.is-logged .scan-bar,
  body.is-logged #results {
    margin: 0 !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
  }

  .hero h1 {
    font-size: 1.55rem;
    letter-spacing: -0.04em;
    color: var(--ink) !important;
  }

  .brand {
    gap: 8px;
  }

  .brand-house,
  .logo-house {
    width: 64px;
    height: 64px;
  }

  .logo-loupe {
    width: 24px;
    height: 24px;
  }

  .scan-bar {
    display: none !important;
  }

  .scan-bar input {
    padding: 4px 10px;
    font-size: 11px;
    line-height: 1.25;
    color: var(--ink) !important;
    background: var(--panel) !important;
    border-color: var(--line) !important;
  }

  #results {
    display: block !important;
    color: var(--ink) !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
    max-width: 100%;
    margin: 0 !important;
    padding: 0 !important;
  }

  .page {
    padding: 0 !important;
    max-width: none !important;
  }

  .scan-place-row {
    margin: 0 0 6px;
    gap: 2px 10px;
  }

  .scan-place {
    font-size: 1.05rem;
    margin: 0;
    color: #fff !important;
  }

  .scan-kind {
    font-size: 1.2rem;
    letter-spacing: 0.1em;
    margin: 0 0 8px;
    padding: 6px 10px;
  }

  .scan-when {
    font-size: 0.7rem;
    margin: 0;
    color: #fff !important;
  }

  .kpi .value,
  .kpi .value strong,
  .field dd,
  .field dd strong,
  .score-copy,
  .score-copy p,
  .score-copy .score-resume,
  .resume-box,
  .resume-col ul,
  .resume-recap,
  .resume-recap-lead,
  .resume-recap-text,
  .prix-chart,
  .prix-chart-caption,
  .resume-prix-disclaimer,
  .resume-prix-estime,
  .photo-analyse,
  .photo-analyse-copy p {
    color: var(--ink) !important;
  }

  .field.is-ref dd,
  .field-ref dd,
  .field.is-ref dd strong,
  .field-ref dd strong {
    color: #e0c354 !important;
  }

  .kpi .label,
  .field dt,
  .prix-chart-caption,
  .score-copy p:not(.verdict) {
    color: var(--muted) !important;
  }

  .resume-prix-disclaimer {
    position: static !important;
    right: auto;
    bottom: auto;
    max-width: none;
    margin: 4px 0 0 !important;
    padding: 0 !important;
    text-align: left;
    font-size: 0.62rem !important;
    line-height: 1.3;
    color: #fff !important;
  }

  .score-box,
  .resume-box {
    margin-bottom: 5px !important;
    padding: 7px 9px !important;
    border-radius: 10px;
    gap: 8px;
    overflow: visible;
    max-width: 100%;
  }

  .score-box {
    display: grid !important;
    grid-template-columns: minmax(210px, 36%) 1fr !important;
    align-items: start;
  }

  .score-media {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch;
    gap: 10px;
  }

  .resume-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 8px;
  }

  .summary {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 6px;
    margin: 8px 0 6px !important;
    break-before: avoid !important;
    page-break-before: avoid !important;
    break-inside: avoid !important;
    page-break-inside: avoid !important;
  }

  .fields {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 4px 14px;
    overflow: visible;
    break-before: avoid !important;
    page-break-before: avoid !important;
    break-inside: auto !important;
    page-break-inside: auto !important;
  }

  .score-photo {
    display: block;
    width: 100%;
    flex: none;
    height: 126px !important;
    min-width: 0;
    object-fit: cover;
    border-radius: 10px;
  }

  .score-ring {
    display: grid;
    place-items: center;
    width: 96px !important;
    height: 96px !important;
    margin: 0 auto !important;
    flex: 0 0 auto;
  }

  .score-ring span {
    width: 82px;
    height: 82px;
  }

  .score-ring span b {
    font-size: 1.55rem;
  }

  .score-ring span small {
    font-size: 0.62rem;
    margin-top: 2px;
  }

  .score-copy p.verdict {
    font-size: 0.92rem;
    margin: 0 0 4px;
    color: #3d8f55 !important;
  }

  .score-copy .score-resume {
    font-size: 0.78rem;
    line-height: 1.4;
    margin: 0 0 8px;
  }

  .score-points {
    gap: 4px;
    margin: 0 0 8px;
    font-size: 0.74rem;
    line-height: 1.3;
  }

  .score-points li {
    grid-template-columns: 16px 1fr;
    gap: 6px;
    font-size: 0.74rem;
    line-height: 1.3;
  }

  .score-bars {
    gap: 5px;
  }

  .score-bar {
    grid-template-columns: 88px 1fr 40px !important;
    font-size: 0.68rem;
    gap: 6px;
  }

  .score-bar i {
    height: 6px;
  }

  .score-bar-note b {
    font-size: 0.78rem;
  }

  .score-bar-note small {
    font-size: 0.58rem;
  }

  .resume-box h3 {
    margin: 0 0 8px;
    font-size: 0.92rem;
  }

  .photo-analyse {
    margin: 2px 0 5px;
    padding: 6px 8px;
    overflow: visible;
  }

  .photo-analyse h4 {
    margin: 0 0 4px;
    font-size: 0.78rem;
  }

  .photo-analyse-signals {
    gap: 4px;
    margin: 0 0 6px;
    max-height: none;
    overflow: visible;
  }

  .photo-analyse-signals li {
    padding: 1px 7px;
    font-size: 0.62rem;
  }

  .photo-analyse-copy {
    margin: 0 0 6px;
    max-height: none;
    overflow: visible;
  }

  .photo-analyse-copy p {
    font-size: 0.72rem;
    line-height: 1.35;
    margin: 0 0 4px;
  }

  .photo-analyse-grid {
    grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
    gap: 5px;
    max-height: none;
    overflow: visible;
  }

  .photo-analyse-grid .photo-thumb {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: none;
    cursor: default;
  }

  .photo-analyse-grid img {
    height: 56px;
    width: 100%;
    object-fit: cover;
    border-radius: 5px;
  }

  .photo-analyse-grid figcaption {
    display: none;
  }

  .resume-col {
    padding: 6px 8px;
  }

  .resume-recap {
    padding: 8px 10px;
  }

  .resume-recap-lead {
    margin: 0 0 8px;
    font-size: 0.82rem;
  }

  .resume-recap-item {
    grid-template-columns: 5.5rem 1fr;
    gap: 4px 8px;
    font-size: 0.72rem;
  }

  .resume-col h4,
  .prix-chart h4 {
    margin: 0 0 4px;
    font-size: 0.72rem;
  }

  .resume-col ul {
    gap: 2px;
    font-size: 0.7rem;
    line-height: 1.3;
    padding-left: 14px;
  }

  .prix-chart {
    margin: 8px 0 0 !important;
    padding: 6px 8px !important;
    overflow: visible !important;
    max-height: none;
  }

  .prix-chart-body {
    overflow: visible !important;
    max-height: none;
    height: auto;
  }

  .prix-chart-svg {
    display: block;
    width: 100%;
    max-width: 100%;
    height: 112px !important;
    max-height: 112px !important;
    min-height: 0 !important;
    overflow: visible !important;
    margin: 0 auto;
    color: var(--ink) !important;
  }

  .prix-chart-svg text,
  .prix-chart-svg .prix-chart-value,
  .prix-chart-svg .prix-chart-label {
    fill: var(--ink) !important;
  }

  .prix-chart-svg .prix-chart-track {
    fill: var(--panel-2);
  }

  .prix-chart-svg .prix-chart-grid,
  .prix-chart-svg .prix-chart-axis {
    stroke: var(--line);
  }

  .prix-chart-svg .prix-chart-bar {
    filter: none;
  }

  .prix-chart-svg .prix-chart-value {
    font-size: 13px;
  }

  .prix-chart-svg .prix-chart-label {
    font-size: 11px;
  }

  .prix-chart-svg .prix-chart-hint {
    font-size: 8px;
    fill: var(--muted) !important;
  }

  .prix-chart-caption {
    display: none;
  }

  .resume-box > .resume-prix,
  .resume-prix {
    margin: 6px 0 0 !important;
    padding: 10px 12px !important;
    overflow: visible;
  }

  .resume-prix:has(.resume-prix-disclaimer) {
    padding-bottom: 10px !important;
  }

  .resume-prix-label {
    margin-bottom: 4px;
    font-size: 0.78rem;
  }

  .resume-prix-row {
    gap: 8px 12px;
  }

  .resume-prix-value,
  .resume-prix-estime strong {
    font-size: 1.28rem;
  }

  .resume-prix-range {
    font-size: 0.95rem;
  }

  .resume-prix-range strong {
    font-size: 1.05rem;
  }

  .resume-prix-estime {
    margin: 4px 0 0;
  }

  .resume-prix-estime,
  .resume-prix-estime-label {
    font-size: 0.72rem;
  }

  .prix-stars,
  .prix-star {
    color: #e0c354 !important;
  }

  .prix-star,
  .prix-star svg {
    width: 1.05rem;
    height: 1.05rem;
  }

  .kpi {
    padding: 8px 10px;
    border-radius: 8px;
    break-inside: auto;
    page-break-inside: auto;
  }

  .kpi .label {
    font-size: 0.62rem;
    margin-bottom: 2px;
  }

  .kpi .value {
    font-size: 0.88rem;
    color: var(--ink) !important;
  }

  .fields {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 4px 14px;
    overflow: visible;
  }

  .field {
    padding: 2px 4px;
    border-radius: 4px;
    grid-template-columns: minmax(92px, 38%) 1fr;
    gap: 4px;
    break-inside: auto;
    page-break-inside: auto;
  }

  .field dt {
    font-size: 0.68rem;
    color: var(--muted) !important;
  }

  .field dd,
  .field dd strong {
    font-size: 0.7rem;
    color: var(--ink) !important;
  }

  .field.is-ref dd,
  .field-ref dd,
  .field.is-ref dd strong,
  .field-ref dd strong {
    color: #e0c354 !important;
  }
}

@media print {
  html.print-sheet-ready,
  html.print-sheet-ready body {
    width: 210mm !important;
    max-width: 210mm !important;
    height: 297mm !important;
    max-height: 297mm !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    background: #0f1412 !important;
  }

  html.print-sheet-ready body > *:not(#print-a4) {
    display: none !important;
    height: 0 !important;
    width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    position: static !important;
  }

  html.print-sheet-ready #app,
  html.print-sheet-ready .page,
  html.print-sheet-ready .landing,
  html.print-sheet-ready #results,
  html.print-sheet-ready .account-bar {
    display: none !important;
  }

  html.print-sheet-ready #print-a4 {
    display: block !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: auto !important;
    bottom: auto !important;
    width: 210mm !important;
    height: 297mm !important;
    max-width: 210mm !important;
    max-height: 297mm !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    object-fit: contain !important;
    page-break-after: avoid !important;
    page-break-inside: avoid !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .logo-house,
  .logo-loupe,
  .scan-beam,
  .loader-house,
  .loader-loupe,
  .loader-beam,
  .loader-ring-arc {
    animation: none !important;
  }
}

body.admin-open {
  overflow: hidden;
}

.admin-dash {
  position: fixed;
  inset: 0;
  z-index: 90;
  background:
    radial-gradient(ellipse 80% 45% at 50% -8%, rgba(61, 143, 85, 0.14), transparent 55%),
    linear-gradient(180deg, #f4f7f4 0%, #ffffff 28%, #ffffff 100%);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 18px 24px 20px;
  color: #0a1610;
}

.admin-dash.hidden {
  display: none !important;
}

.admin-dash::before {
  content: none;
  display: none;
}

.admin-dash-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: none;
  margin: 0;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.admin-dash-top,
.admin-tabs,
#admin-error {
  flex-shrink: 0;
}

.admin-dash-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.admin-kicker {
  margin: 0 0 4px;
  color: #3d8f55;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.admin-dash-top h2 {
  margin: 0;
  font-size: clamp(1.85rem, 3.4vw, 2.45rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #0a1610;
}

.admin-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.admin-tab {
  background: #ffffff;
  color: #0a1610;
  border: 1.5px solid rgba(10, 22, 16, 0.14);
  border-radius: 999px;
  padding: 0.55rem 1.05rem;
  font-weight: 700;
  font-size: 0.92rem;
  box-shadow: 0 2px 8px rgba(10, 22, 16, 0.04);
}

.admin-tab:hover,
.admin-tab:focus-visible {
  border-color: rgba(61, 143, 85, 0.7);
  outline: none;
}

.admin-tab.is-on {
  background: #0a1610;
  color: #3d8f55;
  border-color: #0a1610;
  box-shadow: 0 6px 16px rgba(10, 22, 16, 0.18);
}

.admin-panel {
  flex: 1;
  min-height: 0;
  overflow: auto;
}

.admin-panel h3 {
  margin: 22px 0 10px;
  font-size: 1.15rem;
  font-weight: 800;
  color: #0a1610;
}

.admin-live {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.admin-stat {
  background: linear-gradient(165deg, #ffffff 0%, #f3faf5 100%);
  border: 1.5px solid rgba(10, 22, 16, 0.1);
  border-left: 4px solid #3d8f55;
  border-radius: 16px;
  padding: 18px 20px;
  box-shadow: 0 8px 22px rgba(10, 22, 16, 0.06);
}

.admin-stat p {
  margin: 0 0 8px;
  color: #4a554e;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.admin-stat strong {
  display: block;
  font-size: clamp(2.2rem, 4vw, 3rem);
  line-height: 1.05;
  font-weight: 800;
  color: #0a1610;
  letter-spacing: -0.03em;
}

.admin-stat span {
  display: block;
  margin-top: 8px;
  color: #5a635c;
  font-size: 0.88rem;
  line-height: 1.35;
}

.admin-refresh-hint {
  margin: 14px 0 8px;
  color: #5a635c;
  font-size: 0.9rem;
  line-height: 1.45;
}

.admin-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 12px;
}

.admin-chip {
  appearance: none;
  background: #ffffff;
  color: #0a1610;
  border: 1.5px solid rgba(10, 22, 16, 0.14);
  border-radius: 999px;
  padding: 0.5rem 0.95rem;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(10, 22, 16, 0.04);
}

.admin-chip:hover,
.admin-chip:focus-visible {
  border-color: #3d8f55;
  outline: none;
}

.admin-chip.is-on {
  background: #3d8f55;
  color: #0a1610;
  border-color: #3d8f55;
  box-shadow: 0 4px 14px rgba(61, 143, 85, 0.28);
}

.admin-picker-hint {
  margin: 0 0 12px;
  color: #6a746c;
  font-size: 0.92rem;
}

.admin-chart-wrap,
.admin-scans-view,
.admin-sales-view {
  background: #ffffff;
  border: 1.5px solid rgba(10, 22, 16, 0.1);
  border-radius: 18px;
  padding: 16px 18px 14px;
  box-shadow: 0 10px 28px rgba(10, 22, 16, 0.06);
}

.admin-chart-caption {
  margin: 10px 0 0;
  color: #5a635c;
  font-size: 0.86rem;
}

.admin-stat-accent {
  border-left-color: #0a1610;
  background: linear-gradient(165deg, #0a1610 0%, #143024 100%);
  color: #ffffff;
}

.admin-stat-accent p {
  color: rgba(61, 143, 85, 0.85);
}

.admin-stat-accent strong {
  color: #3d8f55;
}

.admin-stat-accent span {
  color: rgba(255, 255, 255, 0.72);
}

.admin-bars {
  display: grid;
  gap: 7px;
  background: #ffffff;
  border: 1px solid rgba(20, 30, 22, 0.12);
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.admin-bar-row {
  display: grid;
  grid-template-columns: 92px 1fr 42px;
  gap: 10px;
  align-items: center;
}

.admin-bar-label {
  color: var(--muted);
  font-size: 0.82rem;
}

.admin-bar-track {
  height: 10px;
  border-radius: 99px;
  background: #eef2ef;
  overflow: hidden;
}

.admin-bar-track i {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #2a6b3c, #3d8f55);
}

.admin-bar-n {
  text-align: right;
  font-weight: 700;
  font-size: 0.85rem;
}

.admin-table-wrap {
  overflow: auto;
  background: #ffffff;
  border: 1px solid rgba(20, 30, 22, 0.12);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
  border-radius: 16px;
}

.admin-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 980px;
}

.admin-table th,
.admin-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
  vertical-align: middle;
}

.admin-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  color: #0a1610;
  font-weight: 700;
  white-space: nowrap;
  background: #f3f7f4;
  box-shadow: inset 0 -1px 0 rgba(20, 30, 22, 0.12);
}

.admin-table tbody tr:hover td {
  background: rgba(27, 94, 32, 0.05);
}

.admin-table tbody tr:last-child td {
  border-bottom: 0;
}

.admin-empty {
  color: var(--muted);
  text-align: center !important;
  padding: 28px 16px !important;
}

.admin-panel-clients:not(.hidden) {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.admin-clients-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: end;
  margin-bottom: 14px;
}

.admin-client-search-field {
  flex: 1 1 280px;
  min-width: min(100%, 280px);
}

.admin-clients-toolbar label {
  display: grid;
  gap: 6px;
  font-size: 0.88rem;
  color: var(--muted);
}

.admin-clients-toolbar input,
.admin-clients-toolbar select {
  min-width: 180px;
  background: #ffffff;
  color: #0a1610;
  border: 1px solid rgba(20, 30, 22, 0.18);
  border-radius: 12px;
  padding: 10px 12px;
  font: 15px/1.4 var(--font-brand);
}

.admin-client-search-field input {
  width: 100%;
  min-width: 0;
}

.admin-clients-toolbar .ghost {
  padding: 10px 14px;
}

.admin-client-meta {
  margin: 0 0 2px auto;
  color: var(--lilac);
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
}

.admin-clients-table-wrap {
  flex: 1;
  min-height: 0;
  border-color: rgba(20, 30, 22, 0.12);
  background: #ffffff;
}

.admin-table-clients {
  width: 100%;
  min-width: 760px;
}

.admin-table-clients thead th {
  background: #eef5f0;
  color: #0a1610;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 10px 12px;
}

.admin-table-clients tbody td {
  padding: 10px 12px;
  font-size: 0.86rem;
  background: #ffffff;
  color: #0a1610;
}

.admin-table-clients tbody tr td:first-child {
  border-left: 3px solid transparent;
}

.admin-table-clients tbody tr:nth-child(odd) td {
  background: #fafcfa;
}

.admin-table-clients tbody tr:hover td {
  background: rgba(27, 94, 32, 0.06);
}

.admin-table-clients tbody tr:hover td:first-child {
  border-left-color: #0a1610;
}

.admin-table-clients tbody tr.is-blocked td:first-child {
  border-left-color: #c44a4a;
}

.admin-client-cell {
  min-width: 160px;
  max-width: 260px;
}

.admin-client-cell strong {
  display: block;
  font-size: 0.92rem;
  line-height: 1.25;
  color: #0a1610;
}

.admin-client-cell .admin-client-username {
  display: inline-block;
  margin-top: 2px;
  color: #0a1610;
  font-size: 0.8rem;
  font-weight: 700;
}

.admin-client-cell .admin-client-email {
  display: block;
  margin-top: 3px;
  color: #5a635c;
  font-size: 0.78rem;
  word-break: break-word;
}

.admin-client-meta-line {
  display: block;
  margin-top: 4px;
  color: #5a635c;
  font-size: 0.72rem;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 240px;
}

.admin-num-cell {
  white-space: nowrap;
  color: var(--muted);
}

.admin-addr-cell {
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-credits-cell strong {
  display: block;
  font-variant-numeric: tabular-nums;
  font-size: 1.05rem;
}

.admin-credits-cell strong.has-credits {
  color: #0a1610;
}

.admin-credits-cell strong.no-credits {
  color: #9a7a14;
}

.admin-credits-cell span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.35;
  white-space: normal;
}

.admin-date-cell {
  white-space: nowrap;
  color: #3d4a42;
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
}

.admin-plan {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: lowercase;
  border: 1px solid transparent;
}

.admin-plan.is-admin {
  color: #1a1428;
  background: #e0c354;
}

.admin-plan.is-unlimited {
  color: #1a1428;
  background: var(--lilac);
}

.admin-plan.is-sub {
  color: #062018;
  background: #7dd3a0;
}

.admin-plan.is-paid {
  color: #1a1428;
  background: #2dd4c8;
}

.admin-plan.is-trial {
  color: #3d4a42;
  background: #eef2ef;
  border-color: rgba(20, 30, 22, 0.14);
}

.admin-abo-chip,
.admin-hist-chip {
  display: inline-flex;
  align-items: center;
  max-width: 140px;
  padding: 3px 8px;
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.25;
  white-space: normal;
}

.admin-abo-chip {
  color: #5a635c;
  background: #f3f5f3;
  border: 1px solid rgba(20, 30, 22, 0.12);
}

.admin-abo-chip.is-on {
  color: #0d3d18;
  background: #c8e6c9;
  border-color: transparent;
}

.admin-hist-chip.is-off {
  color: #5a635c;
  background: #f3f5f3;
  border: 1px solid rgba(20, 30, 22, 0.12);
}

.admin-hist-chip.is-on {
  color: #1a1428;
  background: #b9a4f0;
  border: 1px solid transparent;
}

.admin-table tr.is-blocked td {
  opacity: 0.72;
}

.admin-blocked-badge {
  display: inline-block;
  margin-left: 6px;
  color: #e05c5c;
  font-size: 0.74rem;
  font-weight: 800;
  font-style: normal;
  letter-spacing: 0.02em;
}

.admin-block-btn {
  margin-top: 0;
}

.admin-block-btn.is-blocked {
  color: #e0c354;
  border-color: #e0c354;
}

.admin-actions-cell {
  min-width: 168px;
}

.admin-actions-cell .admin-block-btn,
.admin-actions-cell .admin-delete-btn {
  width: 100%;
}

.admin-delete-btn {
  margin-top: 6px;
  color: #e05c5c;
  border-color: rgba(224, 92, 92, 0.55);
}

.admin-delete-btn:hover,
.admin-delete-btn:focus-visible {
  color: #ff7a7a;
  border-color: #e05c5c;
  background: rgba(224, 92, 92, 0.12);
}

.admin-promo-expires-cell {
  min-width: 168px;
}

.admin-promo-expires-cell > span {
  display: block;
  margin-bottom: 6px;
}

.admin-promo-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.admin-promo-extend {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}

.admin-promo-delete {
  color: #ff8a8a;
  border-color: rgba(224, 92, 92, 0.55);
}

.admin-promo-extend input[type="date"] {
  min-width: 9.5rem;
  max-width: 11rem;
  padding: 0.35rem 0.45rem;
  border-radius: 8px;
  border: 1px solid rgba(20, 30, 22, 0.18);
  background: #ffffff;
  color: #0a1610;
  font: inherit;
}

.admin-grant {
  display: flex;
  gap: 6px;
  margin-bottom: 6px;
}

.admin-grant input {
  width: 58px;
  flex: 0 0 58px;
  background: #ffffff;
  color: #0a1610;
  border: 1px solid rgba(20, 30, 22, 0.18);
  border-radius: 10px;
  padding: 7px 8px;
  font: 14px/1.3 var(--font-brand);
}

.admin-grant .ghost {
  flex: 1;
  padding: 7px 10px;
  font-size: 0.78rem;
}

.admin-promo-form {
  background: #ffffff;
  border: 1px solid rgba(20, 30, 22, 0.12);
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
  padding: 18px;
  margin-bottom: 18px;
}

.admin-promo-form h3 {
  margin: 0 0 8px;
}

.admin-promo-form .admin-refresh-hint {
  margin: 0 0 14px;
}

.admin-table-promos {
  min-width: 980px;
}

#admin-panel-promos > .admin-refresh-hint {
  margin: 0 0 12px;
}

.admin-promo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 14px;
}

.admin-promo-form label {
  display: grid;
  gap: 6px;
  font-size: 0.88rem;
  color: var(--muted);
}

.admin-promo-form input {
  width: 100%;
  background: #ffffff;
  color: #0a1610;
  border: 1px solid rgba(20, 30, 22, 0.18);
  border-radius: 12px;
  padding: 10px 12px;
  font: 15px/1.4 var(--font-brand);
}

.admin-picker-label {
  margin: 18px 0 0;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.admin-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 4px;
}

.admin-chip {
  border: 1px solid rgba(20, 30, 22, 0.14);
  background: #ffffff;
  color: #0a1610;
  border-radius: 999px;
  padding: 10px 16px;
  font: 600 0.9rem/1.2 var(--font-brand);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.admin-chip:hover:not(:disabled) {
  border-color: var(--brand-green);
}

.admin-chip:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}

.admin-chip.is-on {
  color: #0a1610;
  border-color: #3d8f55;
  background: #3d8f55;
}

.admin-chip.chip-gold.is-on,
.admin-chip.chip-lilac.is-on,
.admin-chip.chip-green.is-on,
.admin-chip.chip-coral.is-on,
.admin-chip.chip-teal.is-on {
  background: #0a1610;
  color: #3d8f55;
  border-color: #0a1610;
}

.admin-picker-hint {
  margin: 16px 0 0;
  padding: 18px 20px;
  border: 1px dashed rgba(20, 30, 22, 0.18);
  border-radius: 14px;
  color: #5a635c;
  background: #f7f9f7;
}

.admin-sales-kpis {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 8px 0 10px;
  flex-shrink: 0;
}

.admin-stat-accent {
  border-width: 2px;
}

.admin-sales-view.theme-gold .admin-stat-accent {
  border-color: #e0c354;
}

.admin-sales-view.theme-gold .admin-stat-accent strong {
  color: #e0c354;
}

.admin-sales-view.theme-lilac .admin-stat-accent {
  border-color: #b9a4f0;
}

.admin-sales-view.theme-lilac .admin-stat-accent strong {
  color: #b9a4f0;
}

.admin-sales-view.theme-green .admin-stat-accent {
  border-color: #7dd3a0;
}

.admin-sales-view.theme-green .admin-stat-accent strong {
  color: #7dd3a0;
}

.admin-sales-view.theme-coral .admin-stat-accent {
  border-color: #f4a261;
}

.admin-sales-view.theme-coral .admin-stat-accent strong {
  color: #f4a261;
}

.admin-sales-view.theme-teal .admin-stat-accent {
  border-color: #2dd4c8;
}

.admin-sales-view.theme-teal .admin-stat-accent strong {
  color: #2dd4c8;
}

.admin-panel-traffic:not(.hidden) {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.admin-panel-traffic .admin-live,
.admin-panel-traffic .admin-refresh-hint,
.admin-panel-traffic .admin-picker,
.admin-panel-traffic .admin-picker-hint {
  flex-shrink: 0;
}

#admin-traffic-chart:not(.hidden) {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  margin-top: 10px;
}

#admin-traffic-svg.admin-chart {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  margin-top: 0;
}

#admin-traffic-svg .admin-chart-legend {
  flex-shrink: 0;
}

#admin-traffic-svg .admin-chart-scroll {
  flex: 1;
  min-height: 0;
  height: auto;
}

#admin-traffic-svg .admin-chart-svg {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
}

#admin-traffic-chart .admin-chart-caption {
  flex-shrink: 0;
}

.admin-sales-view .admin-chart {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  margin-top: 8px;
}

.admin-panel-sales:not(.hidden) {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.admin-panel-sales .admin-refresh-hint,
.admin-panel-sales .admin-picker-label,
.admin-panel-sales .admin-picker,
.admin-panel-sales .admin-picker-hint {
  flex-shrink: 0;
}

.admin-panel-scans:not(.hidden) {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.admin-panel-scans .admin-refresh-hint,
.admin-panel-scans .admin-picker,
.admin-panel-scans .admin-picker-hint {
  flex-shrink: 0;
}

#admin-sales-view:not(.hidden) {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

#admin-scans-view:not(.hidden) {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.admin-scans-view .admin-chart {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  margin-top: 8px;
}

#admin-scans-chart .admin-chart-legend {
  flex-shrink: 0;
}

#admin-scans-chart .admin-chart-scroll {
  flex: 1;
  min-height: 0;
  height: auto;
}

#admin-scans-chart .admin-chart-svg {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
}

#admin-scans-chart .admin-chart-empty {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
}

#admin-scans-caption {
  flex-shrink: 0;
}

.admin-scans-view.theme-gold .admin-stat-accent {
  border-color: #3d8f55;
  background: linear-gradient(165deg, #0a1610 0%, #143024 100%);
}

.admin-scans-view.theme-gold .admin-stat-accent strong {
  color: #3d8f55;
}

.admin-scans-view.theme-gold .admin-chart-scroll,
.admin-scans-view.theme-gold .admin-chart-empty {
  border-color: rgba(61, 143, 85, 0.45);
}

#admin-sales-chart .admin-chart-legend {
  flex-shrink: 0;
}

#admin-sales-chart .admin-chart-scroll {
  flex: 1;
  min-height: 0;
  height: auto;
}

#admin-sales-chart .admin-chart-svg {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
}

#admin-sales-chart .admin-chart-empty {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
}

#admin-sales-caption {
  flex-shrink: 0;
}

.admin-chart-scroll {
  overflow-x: auto;
  background: #ffffff;
  border: 1px solid rgba(20, 30, 22, 0.12);
  border-radius: 16px;
  padding: 8px 4px 4px;
}

.admin-chart-svg {
  display: block;
  width: 100%;
  min-width: 480px;
  height: 288px;
}

.admin-chart-grid {
  stroke: rgba(20, 30, 22, 0.1);
  stroke-width: 1;
}

.admin-col-val {
  fill: #0a1610;
  font-size: 14px;
  font-weight: 800;
  font-family: var(--font-brand);
}

.admin-col-sub {
  fill: #9a7a14;
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font-brand);
}

.admin-col-lab {
  fill: #3d4a42;
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font-brand);
}

.admin-chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 0.86rem;
}

.admin-chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.admin-chart-legend i {
  width: 12px;
  height: 12px;
  border-radius: 4px;
}

.admin-chart-empty,
.admin-chart-caption {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.admin-chart-empty {
  margin: 0;
  padding: 28px 20px;
  text-align: center;
  border-radius: 16px;
  border: 1px dashed rgba(20, 30, 22, 0.18);
  background: #f7f9f7;
  color: #5a635c;
  font-size: 0.98rem;
}

.admin-sales-view.theme-gold .admin-chart-scroll,
.admin-sales-view.theme-gold .admin-chart-empty {
  border-color: #e0c354;
}

.admin-sales-view.theme-lilac .admin-chart-scroll,
.admin-sales-view.theme-lilac .admin-chart-empty {
  border-color: #b9a4f0;
}

.admin-sales-view.theme-green .admin-chart-scroll,
.admin-sales-view.theme-green .admin-chart-empty {
  border-color: #7dd3a0;
}

.admin-sales-view.theme-coral .admin-chart-scroll,
.admin-sales-view.theme-coral .admin-chart-empty {
  border-color: #f4a261;
}

.admin-sales-view.theme-teal .admin-chart-scroll,
.admin-sales-view.theme-teal .admin-chart-empty {
  border-color: #2dd4c8;
}

.admin-col-bar {
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.28));
}

@media screen and (max-width: 900px) {
  .admin-live,
  .admin-promo-grid {
    grid-template-columns: 1fr;
  }

  .admin-clients-toolbar input,
  .admin-clients-toolbar select {
    min-width: 0;
    width: 100%;
  }

  .admin-client-meta {
    margin-left: 0;
    width: 100%;
  }

  .admin-clients-table-wrap {
    overflow: visible;
    background: transparent;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .admin-table-clients {
    min-width: 0;
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px;
  }

  .admin-table-clients thead {
    display: none;
  }

  .admin-table-clients tbody tr {
    display: block;
    margin: 0;
    border-radius: 14px;
    border: 1px solid rgba(20, 40, 25, 0.12);
    background: linear-gradient(165deg, #ffffff 0%, #f7fbf8 100%);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
    overflow: hidden;
  }

  .admin-table-clients tbody tr.is-blocked {
    border-color: rgba(224, 92, 92, 0.45);
  }

  .admin-table-clients tbody tr td,
  .admin-table-clients tbody tr:nth-child(odd) td,
  .admin-table-clients tbody tr:hover td {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
    padding: 9px 12px;
    border: none;
    border-bottom: 1px solid rgba(20, 40, 25, 0.08);
    background: transparent !important;
    border-left: none !important;
    color: var(--ink);
  }

  .admin-table-clients tbody tr td:last-child {
    border-bottom: none;
  }

  .admin-table-clients tbody tr td::before {
    content: attr(data-label);
    flex: 0 0 auto;
    min-width: 78px;
    color: #0a1610;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding-top: 2px;
  }

  .admin-table-clients tbody tr td.admin-empty {
    display: block;
    text-align: center;
  }

  .admin-table-clients tbody tr td.admin-empty::before {
    content: none;
  }

  .admin-client-cell {
    min-width: 0;
    max-width: none;
    flex-direction: column !important;
    align-items: stretch !important;
  }

  .admin-client-cell::before {
    margin-bottom: 4px;
  }

  .admin-client-meta-line {
    max-width: none;
    white-space: normal;
  }

  .admin-credits-cell,
  .admin-abo-cell,
  .admin-history-cell,
  .admin-date-cell {
    align-items: center !important;
  }

  .admin-actions-cell {
    min-width: 0;
    flex-direction: column !important;
    align-items: stretch !important;
  }

  .admin-actions-cell::before {
    margin-bottom: 6px;
  }

  .admin-grant {
    width: 100%;
  }

  .admin-abo-chip,
  .admin-hist-chip {
    max-width: none;
  }

  .admin-dash,
  .app-page {
    padding: 12px 12px 14px;
  }

  /* Mobile : permettre de faire défiler Trafic / Scans / Ventes / Clients */
  .admin-dash {
    overflow: hidden;
  }

  .admin-dash-inner {
    min-height: 0;
  }

  .admin-panel,
  .admin-panel-traffic:not(.hidden),
  .admin-panel-scans:not(.hidden),
  .admin-panel-sales:not(.hidden),
  .admin-panel-clients:not(.hidden),
  #admin-panel-promos:not(.hidden) {
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: pan-y;
    padding-bottom: 28px;
  }

  #admin-traffic-chart:not(.hidden),
  #admin-scans-view:not(.hidden),
  #admin-sales-view:not(.hidden) {
    flex: 0 0 auto;
    min-height: 320px;
  }

  #admin-traffic-svg.admin-chart,
  .admin-scans-view .admin-chart,
  .admin-sales-view .admin-chart {
    flex: 0 0 auto;
    min-height: 300px;
  }

  #admin-traffic-svg .admin-chart-scroll,
  #admin-scans-chart .admin-chart-scroll,
  #admin-sales-chart .admin-chart-scroll {
    flex: 0 0 auto;
    height: 300px;
    min-height: 300px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
  }

  #admin-traffic-svg .admin-chart-svg,
  #admin-scans-chart .admin-chart-svg,
  #admin-sales-chart .admin-chart-svg {
    height: 100%;
  }

  .profile-recap,
  .profile-page-grid {
    grid-template-columns: 1fr;
  }

  .history-list {
    grid-template-columns: 1fr;
  }

  .admin-sales-kpis {
    grid-template-columns: 1fr;
  }

  .admin-bar-row {
    grid-template-columns: 72px 1fr 36px;
  }
}

@media screen and (max-width: 720px) {
  html {
    -webkit-text-size-adjust: 100%;
  }

  /* clip (not hidden): overflow-x:hidden on html/body makes position:fixed
     resolve against the body box and can leave a naked --bg strip under d�cor. */
  html,
  body {
    overflow-x: clip;
  }

  .page,
  .landing,
  #app {
    overflow-x: clip;
    max-width: 100%;
  }

  .page {
    padding: 2px 12px 40px;
  }

  body.is-logged .page {
    padding-top: 0;
  }

  body.is-logged .hero {
    margin-top: 0;
  }

  .account-bar {
    width: 100%;
    max-width: 100%;
    margin: 0 0 4px;
    padding: 0 10px;
    flex-wrap: wrap;
    gap: 8px;
    overflow: visible;
  }

  .account-quota-wrap {
    display: flex !important;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    width: 100%;
    max-width: 100%;
    padding: 6px 0;
    overflow: visible;
  }

  .account-quota {
    font-size: 1.12rem;
  }

  .account-quota-main {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    justify-content: center;
    padding-bottom: 0;
  }

  .account-quota-text {
    padding-bottom: 0;
  }

  .account-xp {
    display: flex;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    flex: 0 0 auto;
    align-self: stretch;
  }

  .account-xp:not(.hidden) {
    display: flex !important;
  }

  .account-xp-icon:not(.hidden) {
    display: grid !important;
  }

  .account-xp-icon {
    /* La taille r�elle vient de --xp-icon-size (JS), pas d'un plafond CSS trop bas */
    width: var(--xp-icon-size) !important;
    height: var(--xp-icon-size) !important;
    flex: 0 0 var(--xp-icon-size);
    max-width: 112px;
    max-height: 112px;
    align-self: flex-end;
    margin: 0;
    overflow: hidden;
  }

  .account-xp-icon svg {
    width: 100% !important;
    height: 100% !important;
    overflow: hidden;
  }

  .account-xp-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-width: none;
    width: 100%;
    min-width: 0;
    flex: 1 1 auto;
    padding-bottom: 0;
    z-index: 2;
  }

  .account-xp-top {
    flex-wrap: wrap;
    row-gap: 2px;
    align-items: center;
  }

  .account-xp-next-gift {
    font-size: 0.78rem;
    color: rgba(232, 240, 234, 0.9);
  }

  .account-xp-bar {
    height: 12px;
    flex: 0 0 auto;
  }

  .account-xp-level {
    font-size: 0.82rem;
  }

  .account-xp-hint {
    font-size: 0.76rem;
  }

  .account-sub {
    font-size: 0.75rem;
    white-space: normal;
    line-height: 1.3;
  }

  .account-meta {
    width: 100%;
    margin-left: 0;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    padding: 0;
    gap: 8px;
    order: 3;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .account-menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .account-username {
    align-self: center;
    font-size: 0.68rem;
    padding: 0;
    background: transparent;
    border: none;
  }

  .account-actions {
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
    flex-wrap: wrap;
    overflow: visible;
    gap: 3px;
  }

  /* Ferm� : seuls pseudo + hamburger restent visibles. */
  .account-meta:not(.is-menu-open) .account-actions {
    display: none;
  }

  .account-meta.is-menu-open .account-actions {
    display: flex;
    flex: 1 1 100%;
    width: 100%;
    gap: 8px;
    margin-top: 4px;
    padding-top: 6px;
    border-top: 1px solid rgba(232, 240, 234, 0.12);
  }

  .account-bar .ghost,
  .account-social-btn,
  .account-cancel-btn {
    padding: 2px 6px !important;
    font-size: 0.6rem !important;
    line-height: 1.15 !important;
    border-radius: 999px;
  }

  /* Ouvert : boutons un peu plus gros pour le doigt. */
  .account-bar .account-meta.is-menu-open .ghost,
  .account-bar .account-meta.is-menu-open .account-social-btn,
  .account-bar .account-meta.is-menu-open .account-cancel-btn {
    padding: 8px 12px !important;
    font-size: 0.78rem !important;
    line-height: 1.25 !important;
  }

  .account-bar .contact-btn {
    gap: 3px;
  }

  .account-bar .contact-icon {
    width: 11px;
    height: 11px;
  }

  .account-bar .account-meta.is-menu-open .contact-btn {
    gap: 6px;
  }

  .account-bar .account-meta.is-menu-open .contact-icon {
    width: 15px;
    height: 15px;
  }

  .account-social-sheet {
    max-width: 100%;
    padding: 4px 6px;
  }

  .account-social-pane-lead {
    font-size: 0.6rem;
    margin-bottom: 2px;
  }

  .account-social-close {
    width: 18px;
    height: 18px;
    font-size: 0.9rem;
  }

  .account-quota-coin {
    width: 1.2rem !important;
    height: 1.2rem !important;
    min-width: 1.2rem;
    min-height: 1.2rem;
  }

  .hero {
    margin: 6px 0 14px;
  }

  .hero h1 {
    font-size: 1.7rem;
  }

  .home-scan-types {
    margin: 0;
    width: 100%;
    max-width: none;
  }

  .home-scan-types .scan-kind {
    width: 100%;
    max-width: none;
    font-size: 0.72rem;
    padding: 5px 8px;
  }

  .home-scan-type-sub {
    gap: 0.28rem;
    margin-top: 2px;
  }

  .home-scan-type-ico {
    width: 0.85rem;
    height: 0.85rem;
  }

  .brand {
    gap: 2px;
  }

  .brand-house,
  .logo-house,
  .logo-scale {
    width: clamp(104px, 26vw, 148px) !important;
    height: clamp(104px, 26vw, 148px) !important;
  }

  .hero h1,
  .brand-wordmark {
    font-size: clamp(2.7rem, 11vw, 3.8rem) !important;
  }

  .logo-loupe {
    width: 26px;
    height: 26px;
  }

  .scan-bar {
    margin-bottom: 14px;
    gap: 8px;
    grid-template-columns: 1fr;
  }

  .scan-bar input,
  .scan-url-row input {
    padding: 12px 14px;
    font-size: 16px; /* évitée le zoom iOS au focus */
  }

  .scan-bar input::placeholder,
  .scan-url-row input::placeholder {
    font-size: 0.78rem;
    letter-spacing: -0.01em;
  }

  .landing-scan-hint {
    font-size: 0.82rem;
  }

  .scan-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .score-box {
    padding: 10px;
    gap: 10px;
  }

  .score-photo {
    height: 150px;
  }

  .score-ring {
    width: 112px;
    height: 112px;
  }

  .score-ring span {
    width: 78px;
    height: 78px;
  }

  .score-ring span b {
    font-size: 1.35rem;
  }

  .score-ring span small {
    font-size: 0.62rem;
  }

  .score-copy p.verdict {
    font-size: 0.82rem;
  }

  .score-points {
    font-size: 0.8rem;
  }

  .prix-chart-svg {
    max-width: 100%;
  }

  .resume-prix-row {
    flex-wrap: wrap;
  }

  .prix-stars {
    gap: 2px;
  }

  .prix-star,
  .prix-star svg {
    width: 1.15rem;
    height: 1.15rem;
  }

  .landing {
    padding: 0 12px 40px;
  }

  .landing-top {
    position: static;
    top: auto;
    right: auto;
    justify-content: flex-end;
    max-width: none;
    margin: 0 0 4px;
  }

  .landing-auth-btns {
    width: 100%;
    justify-content: flex-end;
    gap: 6px;
  }

  .landing-auth-btns .ghost,
  .landing-auth-btns .primary,
  .contact-btn {
    padding: 7px 10px;
    font-size: 0.76rem;
  }

  .landing-hero {
    margin: 2px auto 4px;
  }

  .landing .landing-brand {
    margin-bottom: 4px;
  }

  .landing .landing-brand-title {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .landing .landing-brand-row {
    display: none;
  }

  .landing .landing-brand .brand-logo-full {
    display: none !important;
  }

  .landing .landing-brand .brand-house {
    position: relative;
    right: auto;
    top: auto;
    translate: none;
    margin: 0;
  }

  .landing .landing-brand .brand-house,
  .landing .landing-brand .logo-house,
  .landing .landing-brand .logo-scale {
    width: 120px;
    height: 120px;
  }

  .landing .landing-brand h1,
  .landing .landing-brand .brand-wordmark {
    font-size: clamp(2.8rem, 11vw, 3.6rem);
  }

  .landing-kicker {
    font-size: 0.68rem;
    letter-spacing: 0.08em;
  }

  .landing-hero h2 {
    font-size: 1.25rem;
  }

  .modal-card {
    width: calc(100vw - 20px);
    max-width: none;
    margin: 10px auto;
    padding: 18px 14px 16px;
  }

  .history-item {
    grid-template-columns: 88px 1fr;
    gap: 12px;
    padding: 10px;
  }

  .history-item img,
  .history-item-ph {
    width: 88px;
    height: 68px;
  }

  .contact-pop {
    left: 0;
    right: auto;
    max-width: calc(100vw - 24px);
    white-space: normal;
  }

  /* Promo share : en flux sous le bouton (évitée coupure overflow-x:clip / hors �cran). */
  .promo-share-wrap {
    position: relative;
    flex: 1 1 100%;
    width: 100%;
    max-width: 100%;
    z-index: 90;
  }

  .promo-share-pop {
    position: static;
    left: auto;
    right: auto;
    top: auto;
    margin-top: 6px;
    min-width: 0;
    width: 100%;
    max-width: none;
    box-sizing: border-box;
    white-space: normal;
  }

  .promo-share-url-line,
  .promo-share-reassure,
  .promo-share-hint {
    max-width: none;
  }

  .legal-page {
    padding: 20px 16px 48px;
  }
}

/* --- DA ScanEstim claire : correctifs �lots encore sombres --- */
.scan-bar input,
.scan-url-row input,
.modal-card input,
.modal-card textarea,
.account-social-sheet input,
.account-social-sheet textarea,
.social-action-msg textarea,
.social-action-row input[type="number"] {
  background: #ffffff;
  color: var(--ink);
  border: 1px solid rgba(20, 40, 25, 0.16);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.scan-vote-btn,
.scan-footer-btn.ghost {
  background: #f4f7f4;
  color: var(--ink);
  border: 1px solid rgba(20, 40, 25, 0.14);
}

.scan-vote-btn[data-vote="like"]:hover,
.scan-vote-btn[data-vote="like"].is-on {
  border-color: rgba(27, 94, 32, 0.55);
  color: var(--brand-green);
  background: rgba(27, 94, 32, 0.08);
}

.modal {
  background: rgba(255, 255, 255, 0.55);
}

.modal-card {
  background: #ffffff;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
}

.loader-house.logo-scale {
  width: 112px;
  height: 96px;
  animation: none;
}

.landing-legal,
.legal-updated {
  color: var(--muted);
}

.landing-hl-blink,
.inscription-link {
  color: #0a1610;
}

/* Cartes / panneaux encore ancr�s sur dark */
.offer-card,
.history-item,
.block,
.panel,
.account-panel,
.admin-card,
.social-hub-card,
.traffic-card,
.sys-card {
  color: var(--ink);
}

.score-ring span {
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(20, 40, 25, 0.1);
}

.score-photo,
.photo-analyse-grid .photo-thumb {
  background: #eef2ee;
}

.json-box pre {
  background: #f4f7f4;
  color: #1a2a1c;
}

.offer-visual {
  background: #e8f0ea;
  border-bottom-color: rgba(27, 94, 32, 0.18);
}

.offer-card {
  background: linear-gradient(165deg, #ffffff 0%, #f7fbf8 100%);
  border-color: rgba(20, 40, 25, 0.12);
  color: var(--ink);
}

.block,
.panel,
.account-panel,
.admin-card,
.history-item,
.social-hub-card,
.traffic-card,
.sys-card {
  background: #ffffff;
  border: 1px solid rgba(20, 40, 25, 0.12);
  color: var(--ink);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
}





/* === Mobile desk / clics (ScanEstim DA) === */
@media (max-width: 720px) {
  .home-desk {
    position: relative;
    z-index: 5;
    margin: 0.15rem 0 1rem;
    padding: 0 10px;
  }

  .home-desk-card {
    padding: 0.75rem 0.7rem 0.95rem;
    border-radius: 16px;
    width: 100%;
  }

  .home-desk-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.15rem;
    margin: 0 0 0.65rem;
    padding: 0 0 0.3rem;
    overflow: visible;
  }

  /* Invité / sans historique : 2 colonnes */
  .home-desk-tabs:not(:has(.home-desk-tab--history:not([hidden]):not(.hidden))) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-desk-tab {
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
    width: 100%;
    min-height: 48px;
    padding: 0.4rem 0.15rem 0.45rem;
    font-size: 0.72rem;
    line-height: 1.15;
    white-space: normal;
    text-align: center;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(61, 143, 85, 0.28);
  }

  .home-desk-tab-ico {
    width: 1.05rem;
    height: 1.05rem;
  }

  .home-scan-cats {
    max-width: 100%;
    gap: 0.65rem;
  }

  button.home-scan-cat,
  .home-scan-cat {
    min-height: 5.6rem;
    max-width: none;
    padding: 0.55rem 0.35rem 0.5rem;
    font-size: 0.8rem;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(61, 143, 85, 0.28);
  }

  .home-scan-cat-soon {
    display: none;
    margin: 0.55rem auto 0.35rem;
    padding: 0.55rem 0.75rem;
    max-width: 100%;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    color: #2a6b3c !important;
    background: rgba(61, 143, 85, 0.14);
    border: 1px solid rgba(61, 143, 85, 0.45);
    border-radius: 12px;
  }

  .home-desk.is-cat-vehicule .home-scan-cat-soon:not(.hidden):not([hidden]) {
    display: block !important;
  }

  /* Marque un peu plus compacte connecté (place pour le desk) */
  body.is-logged .brand-house,
  body.is-logged .logo-house,
  body.is-logged .logo-scale,
  body.is-logged .logo-mark {
    width: clamp(72px, 18vw, 100px) !important;
    height: clamp(72px, 18vw, 100px) !important;
  }

  body.is-logged .hero h1,
  body.is-logged .brand-wordmark {
    font-size: clamp(1.9rem, 7.2vw, 2.55rem) !important;
  }

  body.is-logged .hero {
    margin: 4px 0 8px;
  }

  body.is-logged .brand-slogan {
    font-size: 0.52rem;
    letter-spacing: 0.08em;
  }

  .home-desk-tab,
  .home-scan-cat,
  .home-desk .primary,
  .home-desk .ghost,
  .home-desk .paste-link-btn {
    pointer-events: auto !important;
  }
}
