/* ===========================================================
   JaayOto — design system
   Palette : marine (#0B2A4A), turquoise (#0EA5A0), ambre (#F2A93B)
   Typo    : Space Grotesk (titres) / Inter (texte courant)
   =========================================================== */

:root {
  --navy: #0B2A4A;
  --navy-2: #123456;
  --ink: #142433;
  --teal: #0EA5A0;
  --teal-dark: #0B8480;
  --amber: #F2A93B;
  --amber-dark: #D88F22;
  --paper: #F7F5F0;
  --white: #FFFFFF;
  --line: rgba(11, 42, 74, 0.14);
  --line-soft: rgba(11, 42, 74, 0.08);
  --success: #2E9E6D;
  --danger: #C1443A;
  --radius: 6px;
  --radius-lg: 10px;
  --font-display: "Space Grotesk", "Inter", sans-serif;
  --font-body: "Inter", sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 1.15;
  margin: 0 0 .5rem;
  font-weight: 600;
}
h1 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h2 { font-size: clamp(1.35rem, 2.4vw, 1.8rem); }
h3 { font-size: 1.15rem; }

a { color: var(--teal-dark); text-decoration: none; }
a:hover { color: var(--navy); text-decoration: underline; }

p { max-width: 68ch; }

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---------- Skip link / focus ---------- */
.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--amber); color: var(--navy); padding: .6rem 1rem;
  z-index: 200; border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 2px;
}

/* ---------- Navbar ---------- */
.navbar {
  background: var(--navy);
  border-bottom: 3px solid var(--teal);
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: .85rem;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--white);
}
.brand-mark {
  width: 30px; height: 30px;
  border-radius: 7px;
  background: var(--teal);
  display: flex; align-items: center; justify-content: center;
  color: var(--navy);
  font-weight: 700;
  flex: none;
}
.brand:hover { color: var(--white); text-decoration: none; }

.nav-links, .nav-actions {
  display: flex; align-items: center; gap: 1.05rem; flex-wrap: wrap;
  list-style: none; margin: 0; padding: 0;
}
.nav-links a, .nav-actions a {
  color: rgba(255,255,255,.82);
  font-size: .95rem;
  font-weight: 500;
}
.nav-links a:hover, .nav-actions a:hover { color: var(--white); text-decoration: none; }
/* Déconnexion : bouton de formulaire (POST obligatoire) habillé comme les liens du menu */
.nav-logout {
  background: none; border: none; padding: 0; cursor: pointer;
  font: inherit; font-size: .95rem; font-weight: 500; color: rgba(255,255,255,.82);
}
.nav-logout:hover { color: var(--white); }
.nav-actions .btn { padding: .45rem .9rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .93rem;
  padding: .62rem 1.15rem;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .08s ease, box-shadow .12s ease, background .12s ease;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--amber); color: var(--navy); }
.btn-primary:hover { background: var(--amber-dark); color: var(--navy); }
.btn-teal { background: var(--teal); color: var(--white); }
.btn-teal:hover { background: var(--teal-dark); color: var(--white); }
.btn-outline { background: transparent; border-color: var(--line); color: var(--navy); }
.btn-outline:hover { border-color: var(--navy); background: var(--white); color: var(--navy); }
.btn-outline-white { background: transparent; border-color: rgba(255,255,255,.5); color: var(--white); }
.btn-outline-white:hover { background: rgba(255,255,255,.12); color: var(--white); }
.btn-danger { background: transparent; border-color: var(--danger); color: var(--danger); }
.btn-danger:hover { background: var(--danger); color: var(--white); }
.btn-sm { padding: .38rem .75rem; font-size: .82rem; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* ---------- Layout helpers ---------- */
.stack { display: flex; flex-direction: column; gap: 1rem; }
.row-gap { display: flex; flex-wrap: wrap; gap: .6rem; }
.spread { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.section { padding: 2.75rem 0; }
.section-tight { padding: 1.75rem 0; }
/* « container section » sur un même élément : garder la marge latérale du container (téléphones) */
.container.section, .container.section-tight { padding-left: 1.25rem; padding-right: 1.25rem; }

.wire-divider {
  border: none;
  height: 1px;
  margin: 0;
  background-image: linear-gradient(to right, var(--line) 60%, transparent 0%);
  background-position: bottom;
  background-size: 10px 1px;
  background-repeat: repeat-x;
}

/* ---------- Hero ---------- */
.hero {
  background: var(--navy);
  color: var(--white);
  padding: 3rem 0 3.25rem;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; inset: auto -10% -60% auto;
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(14,165,160,.35), transparent 70%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2.5rem;
  align-items: center;
  position: relative;
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
}
.hero h1 { color: var(--white); max-width: 16ch; }
.hero p.lede { color: rgba(255,255,255,.78); max-width: 46ch; font-size: 1.05rem; }

.search-panel {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--radius-lg);
  padding: 1.1rem;
  margin-top: 1.5rem;
}
.search-row { display: flex; gap: .6rem; flex-wrap: wrap; }
.search-row input {
  flex: 1 1 150px;
}

/* meter-style stat card, echoes a prepaid utility card */
.meter-card {
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.5rem;
  box-shadow: 4px 4px 0 rgba(0,0,0,.18);
  position: relative;
}
.meter-card::before {
  content: "";
  position: absolute; top: 14px; right: 16px;
  width: 22px; height: 16px;
  background: var(--amber);
  border-radius: 3px;
}
.meter-card h3 { font-size: .82rem; text-transform: none; color: var(--navy); margin-bottom: .9rem; letter-spacing: 0; }
.meter-row { display: flex; justify-content: space-between; align-items: baseline; padding: .5rem 0; border-bottom: 1px dashed var(--line); }
.meter-row:last-child { border-bottom: none; }
.meter-row .num { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; color: var(--teal-dark); }
.meter-row .label { font-size: .85rem; color: #4a5a68; }

/* ---------- Verified agent badge (carte-style) ---------- */
.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  background: var(--navy);
  color: var(--white);
  border-radius: 5px;
  padding: .3rem .55rem .3rem .4rem;
  font-size: .74rem;
  font-weight: 600;
  position: relative;
  border-left: 4px solid var(--teal);
}
.verified-badge .chip {
  width: 14px; height: 10px; background: var(--amber); border-radius: 2px; flex: none;
}

/* ---------- Cards ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow .12s ease, border-color .12s ease;
}
.card:hover { border-color: var(--teal); box-shadow: 3px 3px 0 var(--line); }

.listing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
@media (max-width: 900px) { .listing-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .listing-grid { grid-template-columns: 1fr; } }

.listing-card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--paper);
}
.listing-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.listing-card-media .verified-badge { position: absolute; top: .6rem; left: .6rem; }
.listing-card-body { padding: 1rem 1.1rem 1.15rem; }
.listing-card-body h3 { margin-bottom: .2rem; font-size: 1.02rem; }
.listing-card-meta { color: #4a5a68; font-size: .87rem; margin-bottom: .55rem; }
.price-tag {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--navy);
  letter-spacing: .3px;
}
.price-tag small { font-family: var(--font-body); font-weight: 500; font-size: .72rem; color: #4a5a68; }

/* ---------- Badges / status ---------- */
.badge {
  display: inline-block;
  font-size: .74rem;
  font-weight: 600;
  padding: .22rem .55rem;
  border-radius: 4px;
  background: var(--line-soft);
  color: var(--navy);
}
.badge-success { background: rgba(46,158,109,.14); color: var(--success); }
.badge-warning { background: rgba(242,169,59,.2); color: #8a5b0f; }
.badge-danger { background: rgba(193,68,58,.12); color: var(--danger); }

/* ---------- Forms ---------- */
label { font-weight: 600; font-size: .9rem; color: var(--navy); display: block; margin-bottom: .3rem; }
input[type=text], input[type=email], input[type=password], input[type=number],
input[type=tel], input[type=file], input[type=search], input[type=date], input:not([type]), textarea, select {
  width: 100%;
  font-family: var(--font-body);
  font-size: .95rem;
  padding: .62rem .75rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
}
textarea { resize: vertical; }
input:focus, textarea:focus, select:focus { border-color: var(--teal); outline: none; box-shadow: 0 0 0 3px rgba(14,165,160,.18); }
form p { margin: 0 0 1.1rem; max-width: none; }
.helptext { font-size: .8rem; color: #5a6b78; display: block; margin-top: .25rem; }
ul.errorlist { color: var(--danger); font-size: .85rem; padding-left: 1.1rem; margin: .2rem 0; }

.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  max-width: 640px;
}

/* ---------- Tables ---------- */
table { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
th, td { text-align: left; padding: .75rem .9rem; border-bottom: 1px solid var(--line-soft); font-size: .92rem; }
th { background: var(--paper); font-family: var(--font-display); font-weight: 600; color: var(--navy); }
tr:last-child td { border-bottom: none; }

/* ---------- Alerts / messages ---------- */
.alert { padding: .85rem 1.1rem; border-radius: var(--radius); margin-bottom: 1rem; font-size: .92rem; border-left: 4px solid; }
.alert-success { background: rgba(46,158,109,.1); border-color: var(--success); color: #1d5f42; }
.alert-error { background: rgba(193,68,58,.08); border-color: var(--danger); color: #7a2b23; }
.alert-info { background: rgba(14,165,160,.09); border-color: var(--teal); color: #0b5a57; }
.alert-warning { background: rgba(242,169,59,.14); border-color: var(--amber); color: #7a5410; }

/* ---------- Filter chips ---------- */
.chip-filter {
  display: inline-flex; align-items: center; gap: .3rem;
  border: 1.5px solid var(--line); border-radius: 999px;
  padding: .4rem .9rem; font-size: .85rem; color: var(--navy); background: var(--white);
}

/* ---------- How it works ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.step { border-top: 3px solid var(--teal); padding-top: .9rem; }
.step .step-num { font-family: var(--font-display); font-weight: 700; color: var(--teal-dark); font-size: 1.5rem; }

/* ---------- Message thread ---------- */
.thread { display: flex; flex-direction: column; gap: .6rem; margin-bottom: 1.5rem; }
.bubble { max-width: 70%; padding: .65rem .9rem; border-radius: var(--radius-lg); font-size: .93rem; }
.bubble-agent { background: var(--navy); color: var(--white); align-self: flex-end; border-bottom-right-radius: 2px; }
.bubble-buyer { background: var(--white); border: 1px solid var(--line); align-self: flex-start; border-bottom-left-radius: 2px; }
.bubble time { display: block; font-size: .72rem; opacity: .65; margin-top: .25rem; }

/* ---------- Footer ---------- */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,.75);
  padding: 2.5rem 0 1.5rem;
  margin-top: 3rem;
  font-size: .9rem;
}
.footer h4 { color: var(--white); font-size: .85rem; margin-bottom: .8rem; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
.footer a { color: rgba(255,255,255,.75); }
.footer a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.15);
  margin-top: 2rem; padding-top: 1rem;
  font-size: .8rem; color: rgba(255,255,255,.55);
}

/* ---------- Pagination ---------- */
.pagination { display: flex; gap: .4rem; list-style: none; padding: 0; margin-top: 1.5rem; }
.pagination a, .pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 34px; height: 34px; border-radius: var(--radius);
  border: 1px solid var(--line); font-size: .85rem; color: var(--navy);
}
.pagination .active span, .pagination .active a { background: var(--navy); color: var(--white); border-color: var(--navy); }

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: .4rem;
  font-size: .85rem; color: #5a6b78; margin-bottom: 1.1rem;
}
.breadcrumb a { color: #5a6b78; }
.breadcrumb a:hover { color: var(--teal-dark); }
.breadcrumb .sep { color: var(--line); }
.breadcrumb .current { color: var(--navy); font-weight: 600; }

/* ---------- Badge row (detail page) ---------- */
.badge-row { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.25rem; }
.badge-pill {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .78rem; font-weight: 600;
  padding: .32rem .7rem; border-radius: 999px;
  background: rgba(14,165,160,.1); color: var(--teal-dark);
  border: 1px solid rgba(14,165,160,.25);
}
.badge-pill.is-navy { background: var(--navy); color: var(--white); border-color: var(--navy); }
.badge-pill.is-amber { background: rgba(242,169,59,.16); color: #8a5b0f; border-color: rgba(242,169,59,.4); }

/* ---------- Gallery ---------- */
.gallery-main {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.gallery-main img {
  width: 100%; height: 100%; object-fit: cover;
  user-select: none;
}
.gallery-slide {
  position: absolute; inset: 0;
  display: none;
}
.gallery-slide.is-active { display: block; }
.gallery-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(20,36,51,.55); color: var(--white);
  border: none; display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 1.1rem; line-height: 1;
  transition: background .12s ease;
}
.gallery-nav:hover { background: rgba(20,36,51,.8); }
.gallery-nav.prev { left: .6rem; }
.gallery-nav.next { right: .6rem; }
.gallery-counter {
  position: absolute; right: .7rem; bottom: .7rem;
  background: rgba(20,36,51,.65); color: var(--white);
  font-size: .78rem; font-weight: 600;
  padding: .25rem .6rem; border-radius: 999px;
}
.gallery-thumbs {
  position: relative; display: flex; gap: .55rem; margin-top: .65rem;
  overflow-x: auto; padding-bottom: .25rem;
}
.gallery-thumb {
  flex: none; width: 76px; height: 58px;
  border-radius: var(--radius); overflow: hidden;
  border: 2px solid transparent; background: var(--paper);
  padding: 0; cursor: pointer;
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-thumb.active { border-color: var(--teal); }
.gallery-thumb:hover { border-color: var(--line); }
.gallery-thumb.active:hover { border-color: var(--teal); }

/* ---------- Spec sheet (detail sidebar) ---------- */
.ref-row {
  display: flex; align-items: center; gap: .5rem;
  font-size: .82rem; color: #5a6b78; margin-bottom: 1.1rem;
}
.ref-row button {
  background: none; border: none; cursor: pointer; color: #5a6b78;
  display: inline-flex; padding: 0;
}
.ref-row button:hover { color: var(--teal-dark); }
.spec-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1rem 1.25rem; margin-bottom: 1.25rem;
  padding-bottom: 1.25rem; border-bottom: 1px dashed var(--line);
}
.spec-grid dt { font-size: .78rem; color: #5a6b78; margin-bottom: .15rem; }
.spec-grid dd { margin: 0; font-weight: 600; color: var(--navy); font-size: .95rem; }

.detail-sidebar { position: sticky; top: 1.25rem; }

/* ---------- Empty state ---------- */
.empty-state {
  border: 1.5px dashed var(--line);
  border-radius: var(--radius-lg);
  padding: 2.5rem 1.5rem;
  text-align: center;
  color: #4a5a68;
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* ===========================================================
   Refonte « marketplace » : accueil, fiche détail à onglets,
   rapports batterie / inspection, communauté
   =========================================================== */

/* ---------- Bandeau d'information ---------- */
.topbar { background: var(--amber); color: var(--navy); font-size: .88rem; font-weight: 500; }
.topbar-inner { display: flex; align-items: center; justify-content: center; gap: 1rem; padding: .5rem 0; position: relative; }
.topbar p { margin: 0; text-align: center; max-width: none; }
.topbar button {
  position: absolute; right: 0; background: none; border: none; cursor: pointer;
  color: var(--navy); font-size: 1.2rem; line-height: 1; padding: .25rem .5rem;
}
html.topbar-closed .topbar { display: none; }

/* ---------- Hero d'accueil ---------- */
.hero-xl { background: var(--navy); color: var(--white); position: relative; overflow: hidden; padding: 3.25rem 0 3.5rem; }
.hero-xl::before {
  content: ""; position: absolute; left: -8%; top: -30%;
  width: 560px; height: 560px; border-radius: 50%;
  background: radial-gradient(circle, rgba(14,165,160,.30), transparent 68%);
  pointer-events: none;
}
.hero-xl-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 3rem; align-items: center; position: relative; }
@media (max-width: 920px) { .hero-xl-grid { grid-template-columns: 1fr; gap: 2rem; } }
.hero-xl h1 { color: var(--white); font-size: clamp(2rem, 4.4vw, 3.3rem); line-height: 1.08; max-width: 15ch; margin-bottom: 1rem; }
.hero-xl .lede { color: rgba(255,255,255,.8); font-size: 1.08rem; max-width: 44ch; }
.hero-points { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .6rem; }
.hero-points li { display: flex; align-items: center; gap: .6rem; color: rgba(255,255,255,.9); font-size: .95rem; }
.hero-points .tick {
  width: 20px; height: 20px; flex: none; border-radius: 50%;
  background: var(--teal); color: var(--navy); font-size: .75rem; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}

.search-card { background: var(--white); color: var(--ink); border-radius: 12px; padding: 1.6rem; box-shadow: 6px 6px 0 rgba(0,0,0,.2); }
.search-card h2 { font-size: 1.3rem; margin-bottom: 1.1rem; }
.search-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; margin-bottom: 1rem; }
.search-grid label { font-size: .78rem; font-weight: 600; margin-bottom: .2rem; }
.search-card .checkline { display: flex; align-items: center; gap: .5rem; font-size: .9rem; margin-bottom: 1.1rem; }
.search-card .checkline input { width: 18px; height: 18px; accent-color: var(--teal); }
.search-card .btn { width: 100%; justify-content: center; padding: .85rem; font-size: 1rem; }

/* ---------- Tuiles de navigation ---------- */
.tile-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: -1.8rem; position: relative; z-index: 2; }
@media (max-width: 920px) { .tile-row { grid-template-columns: repeat(2, 1fr); margin-top: 1.5rem; } }
@media (max-width: 520px) { .tile-row { grid-template-columns: 1fr; } }
.tile {
  display: flex; flex-direction: column; justify-content: space-between; gap: .9rem;
  min-height: 116px; padding: 1.1rem 1.2rem; border-radius: 12px; color: var(--white);
  position: relative; overflow: hidden; transition: transform .12s ease;
}
.tile:hover { text-decoration: none; transform: translateY(-3px); color: var(--white); }
.tile strong { font-family: var(--font-display); font-size: 1.1rem; }
.tile span.sub { font-size: .85rem; opacity: .85; }
.tile svg { position: absolute; right: -6px; bottom: -8px; width: 84px; height: 84px; opacity: .22; }
.tile-navy { background: var(--navy-2); }
.tile-teal { background: var(--teal-dark); }
.tile-amber { background: var(--amber); color: var(--navy); }
.tile-amber:hover { color: var(--navy); }
.tile-ink { background: var(--ink); }

/* ---------- Bandeau de chiffres ---------- */
.trust-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
  background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 1.1rem 1.4rem;
}
@media (max-width: 760px) { .trust-strip { grid-template-columns: repeat(2, 1fr); } }
.trust-strip .figure { font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; color: var(--navy); line-height: 1; }
.trust-strip .caption { font-size: .82rem; color: #5a6b78; }

/* ---------- Onglets de véhicules (accueil) + marques ---------- */
.home-split { display: grid; grid-template-columns: 1fr 250px; gap: 1.75rem; align-items: start; }
@media (max-width: 1000px) { .home-split { grid-template-columns: 1fr; } }
.tabs { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; border-bottom: 1px solid var(--line); margin-bottom: 1.25rem; }
.tab-btn {
  background: none; border: none; cursor: pointer; font-family: var(--font-display);
  font-size: 1.02rem; font-weight: 500; color: #5a6b78; padding: .7rem 0; position: relative;
}
.tab-btn:hover { color: var(--navy); }
.tab-btn[aria-selected="true"] { color: var(--navy); font-weight: 700; }
.tab-btn[aria-selected="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--teal); border-radius: 2px; }
.tabs .tabs-more { margin-left: auto; align-self: center; font-size: .9rem; font-weight: 600; }
html.js .tab-panel { display: none; }
html.js .tab-panel.is-active { display: block; }
.card-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
@media (max-width: 1100px) { .card-grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .card-grid-3 { grid-template-columns: 1fr; } }

.side-panel { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 1.1rem; }
.side-panel h3 { font-size: 1rem; margin-bottom: .8rem; }
.brand-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.brand-list a {
  display: flex; justify-content: space-between; align-items: center;
  border: 1px solid var(--line); border-radius: var(--radius); padding: .6rem .75rem;
  color: var(--navy); font-weight: 600; font-size: .92rem; background: var(--paper);
}
.brand-list a:hover { border-color: var(--teal); text-decoration: none; }
.brand-list .count { font-weight: 500; color: #5a6b78; font-size: .8rem; }

/* ---------- Carte d'annonce enrichie ---------- */
.vcard { display: block; color: inherit; }
.vcard:hover { text-decoration: none; color: inherit; }
.vcard .listing-card-media { aspect-ratio: 4 / 3; }
.vcard .noimg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #5a6b78; font-size: .85rem; }
.vcard-tags { position: absolute; left: .6rem; bottom: .6rem; display: flex; gap: .35rem; flex-wrap: wrap; }
.tag {
  font-size: .72rem; font-weight: 700; padding: .2rem .5rem; border-radius: 4px;
  background: var(--white); color: var(--navy); border: 1px solid var(--line);
}
.tag-ev { background: var(--teal); border-color: var(--teal); color: var(--white); }
.tag-soh { background: var(--navy); border-color: var(--navy); color: var(--white); }
.vcard-foot { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; }
.vcard-km { font-size: .8rem; color: #5a6b78; }

/* ---------- Pourquoi nous / parcours ---------- */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
@media (max-width: 900px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .why-grid { grid-template-columns: 1fr; } }
.why-item .ico {
  width: 46px; height: 46px; border-radius: 10px; background: rgba(14,165,160,.12);
  display: flex; align-items: center; justify-content: center; margin-bottom: .8rem; color: var(--teal-dark);
}
.why-item .ico svg { width: 24px; height: 24px; }
.why-item h3 { font-size: 1.02rem; }
.why-item p { font-size: .9rem; color: #4a5a68; margin: 0; }

.journey { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; counter-reset: step; list-style: none; padding: 0; margin: 0; }
@media (max-width: 900px) { .journey { grid-template-columns: 1fr; } }
.journey li { position: relative; padding-top: 2.6rem; }
.journey li::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 0; left: 0; width: 34px; height: 34px; border-radius: 50%;
  background: var(--navy); color: var(--white); font-family: var(--font-display); font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.journey li::after {
  content: ""; position: absolute; top: 17px; left: 44px; right: 8px; height: 0;
  border-top: 2px dotted var(--line);
}
.journey li:last-child::after { display: none; }
@media (max-width: 900px) { .journey li::after { display: none; } }
.journey h3 { font-size: 1rem; margin-bottom: .25rem; }
.journey p { font-size: .88rem; color: #4a5a68; margin: 0; }

.band { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band-navy { background: var(--navy); color: var(--white); }
.band-navy h2 { color: var(--white); }
.band-navy p { color: rgba(255,255,255,.8); }

/* ---------- Communauté ---------- */
.community-split { display: grid; grid-template-columns: 1fr 1.3fr; gap: 2.5rem; align-items: start; }
@media (max-width: 900px) { .community-split { grid-template-columns: 1fr; } }
.stat-pills { display: flex; flex-wrap: wrap; gap: 1.5rem; margin: 1.25rem 0 1.5rem; }
.stat-pills .figure { font-family: var(--font-display); font-weight: 700; font-size: 1.8rem; line-height: 1; color: var(--amber); }
.stat-pills .caption { font-size: .82rem; color: rgba(255,255,255,.75); }
.post-list { display: grid; gap: .8rem; }
.post-row { display: block; background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 1rem 1.15rem; color: var(--ink); }
.post-row:hover { border-color: var(--teal); text-decoration: none; color: var(--ink); }
.post-row h3 { font-size: 1.02rem; margin-bottom: .3rem; }
.post-meta { display: flex; flex-wrap: wrap; gap: .4rem .9rem; font-size: .8rem; color: #5a6b78; align-items: center; }
.avatar {
  display: inline-flex; width: 26px; height: 26px; border-radius: 50%; background: var(--navy); color: var(--white);
  align-items: center; justify-content: center; font-size: .72rem; font-weight: 700; flex: none;
}
.avatar.is-agent { background: var(--teal-dark); }
.post-body { white-space: pre-line; }
.comment { border-top: 1px dashed var(--line); padding: 1rem 0; display: grid; grid-template-columns: 34px 1fr; gap: .8rem; }
.comment p { margin: .25rem 0 0; white-space: pre-line; }

/* ---------- Fiche détail : en-tête, onglets, rapports ---------- */
.title-row { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; margin-bottom: .6rem; }
.title-row h1 { margin: 0; }
.grade-badge {
  display: inline-flex; align-items: center; gap: .3rem; background: var(--teal); color: var(--white);
  font-weight: 700; font-size: .8rem; padding: .25rem .55rem; border-radius: 5px; flex: none;
}
.grade-badge b { background: var(--white); color: var(--teal-dark); border-radius: 3px; padding: 0 .35rem; }

.detail-tabs { margin-top: 2rem; }
.detail-tabs .tabs { margin-bottom: 1.25rem; overflow-x: auto; flex-wrap: nowrap; gap: 1.6rem; }
.detail-tabs .tab-btn { white-space: nowrap; }
html:not(.js) .detail-tabs .tab-panel { margin-bottom: 2rem; }

.battery-layout { display: grid; grid-template-columns: 190px 1fr; gap: 1.75rem; align-items: center; }
@media (max-width: 620px) { .battery-layout { grid-template-columns: 1fr; justify-items: center; text-align: center; } }
.gauge { position: relative; width: 170px; height: 170px; }
.gauge svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.gauge .track { fill: none; stroke: var(--line-soft); stroke-width: 14; }
.gauge .value { fill: none; stroke: var(--teal); stroke-width: 14; stroke-linecap: round; }
.gauge.is-good .value { stroke: var(--amber); }
.gauge.is-watch .value { stroke: var(--danger); }
.gauge-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.gauge-center .big { font-family: var(--font-display); font-size: 2.2rem; font-weight: 700; color: var(--navy); line-height: 1; }
.gauge-center .small { font-size: .78rem; color: #5a6b78; margin-top: .25rem; }
.metric-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem 1.5rem; width: 100%; text-align: left; }
.metric dt { font-size: .78rem; color: #5a6b78; margin-bottom: .1rem; }
.metric dd { margin: 0; font-weight: 700; color: var(--navy); font-size: 1.05rem; }
.note-box { background: var(--paper); border-left: 4px solid var(--teal); border-radius: 6px; padding: .8rem 1rem; margin-top: 1.25rem; font-size: .92rem; }

.insp-head { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; margin-bottom: 1rem; }
.insp-grade {
  width: 64px; height: 64px; border-radius: 12px; background: var(--navy); color: var(--white);
  font-family: var(--font-display); font-weight: 700; font-size: 2rem; display: flex; align-items: center; justify-content: center;
}
.insp-counts { display: flex; gap: .6rem; flex-wrap: wrap; }
.insp-group { margin-top: 1.4rem; }
.insp-group h3 { font-size: 1rem; border-bottom: 1px solid var(--line); padding-bottom: .4rem; }
.insp-row { display: grid; grid-template-columns: 1fr auto; gap: .25rem 1rem; padding: .55rem 0; border-bottom: 1px dashed var(--line-soft); font-size: .92rem; }
.insp-row .why { grid-column: 1 / -1; color: #5a6b78; font-size: .84rem; }
.status { font-weight: 700; font-size: .78rem; padding: .2rem .55rem; border-radius: 4px; white-space: nowrap; }
.status-OK { background: rgba(46,158,109,.14); color: #1d6f4a; }
.status-ATTENTION { background: rgba(242,169,59,.22); color: #7a5410; }
.status-DEFECT { background: rgba(193,68,58,.13); color: #9a2f27; }

.spec-table { display: grid; grid-template-columns: 1fr 1fr; gap: 0 2rem; }
@media (max-width: 620px) { .spec-table { grid-template-columns: 1fr; } }
.spec-table div { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-bottom: 1px dashed var(--line); font-size: .93rem; }
.spec-table dt { color: #5a6b78; }
.spec-table dd { margin: 0; font-weight: 600; color: var(--navy); text-align: right; }

.feature-groups { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
@media (max-width: 620px) { .feature-groups { grid-template-columns: 1fr; } }
.feature-groups h3 { font-size: 1rem; }
.feature-groups ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.feature-groups li { display: flex; gap: .5rem; align-items: center; font-size: .92rem; }
.feature-groups li::before { content: "✓"; color: var(--teal-dark); font-weight: 700; }

.empty-inline { border: 1.5px dashed var(--line); border-radius: 10px; padding: 1.5rem; color: #4a5a68; background: var(--white); }
.owner-bar { background: rgba(242,169,59,.16); border: 1px solid rgba(242,169,59,.5); border-radius: 10px; padding: .8rem 1rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }

.sidebar-note { font-size: .82rem; color: #5a6b78; margin: 0 0 1.1rem; }
.mini-community { margin-top: 1rem; background: var(--navy); color: var(--white); border-radius: 12px; padding: 1.1rem 1.2rem; }
.mini-community h3 { color: var(--white); font-size: 1rem; }
.mini-community p { color: rgba(255,255,255,.8); font-size: .86rem; margin-bottom: .8rem; }

/* ---------- Formulaire rapports (vendeur) ---------- */
.fieldset-card { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 1.5rem; margin-bottom: 1.5rem; }
.fieldset-card h2 { font-size: 1.15rem; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.25rem; }
@media (max-width: 620px) { .two-col { grid-template-columns: 1fr; } }
.item-row { display: grid; grid-template-columns: 1.6fr 1.5fr .9fr 1.4fr 72px; gap: .5rem; align-items: start; margin-bottom: .6rem; }
@media (max-width: 900px) { .item-row { grid-template-columns: 1fr 1fr; } }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: .35rem 1rem; }
.checklist label { font-weight: 500; display: flex; gap: .5rem; align-items: center; margin: 0; }
.checklist input { width: auto; }

/* ---------- Page communauté ---------- */
.page-head { background: var(--navy); color: var(--white); padding: 2.5rem 0; }
.page-head h1 { color: var(--white); }
.page-head p { color: rgba(255,255,255,.8); }
.theme-filter { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.5rem 0; }
.theme-filter a { border: 1.5px solid var(--line); border-radius: 999px; padding: .38rem .9rem; font-size: .85rem; color: var(--navy); background: var(--white); font-weight: 500; }
.theme-filter a:hover { text-decoration: none; border-color: var(--teal); }
.theme-filter a.is-on { background: var(--navy); color: var(--white); border-color: var(--navy); }

/* ---------- Résultats de recherche ---------- */
.results-head { background: var(--white); border-bottom: 1px solid var(--line); padding: 1.25rem 0; }
.inline-search { display: flex; flex-wrap: wrap; gap: .6rem; align-items: end; }
.inline-search > div { flex: 1 1 140px; }
.inline-search .checkline { display: flex; align-items: center; gap: .4rem; flex: 0 0 auto; padding-bottom: .65rem; font-size: .9rem; }
.inline-search .checkline input { width: 18px; height: 18px; accent-color: var(--teal); }

/* Cases à cocher des fonctionnalités (formulaire de publication) */
form ul[id$="features"] { list-style: none; margin: .4rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: .3rem 1rem; }
form ul[id$="features"] label { display: flex; gap: .5rem; align-items: center; font-weight: 500; margin: 0; }
form ul[id$="features"] input { width: auto; accent-color: var(--teal); }

/* ---------- Detail page: responsive ---------- */
.detail-grid > * { min-width: 0; }
@media (max-width: 900px) {
  .detail-grid { grid-template-columns: minmax(0, 1fr) !important; gap: 1.5rem !important; }
  .detail-sidebar { position: static; }
}

/* ---------- Vendu : bandeau, voile et carte ---------- */
.sold-ribbon {
  position: absolute; top: .9rem; right: -2.2rem; z-index: 3;
  transform: rotate(35deg);
  background: var(--danger); color: var(--white);
  font-family: var(--font-display); font-weight: 700; letter-spacing: 2px; font-size: .8rem;
  padding: .3rem 2.6rem; box-shadow: 0 2px 6px rgba(0,0,0,.2);
}
.is-sold .listing-card-media img, .gallery-main.is-sold img { filter: grayscale(.85); opacity: .75; }
.is-sold .price-tag { text-decoration: line-through; color: #6b7a86; }
.listing-card-media { overflow: hidden; }
.sold-overlay {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  display: flex; align-items: center; justify-content: center;
}
.sold-overlay span {
  background: rgba(193,68,58,.92); color: var(--white);
  font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; letter-spacing: 4px;
  padding: .5rem 1.6rem; border-radius: var(--radius); transform: rotate(-8deg);
}
.sold-banner {
  display: flex; gap: .9rem; align-items: center;
  background: rgba(193,68,58,.1); border: 1.5px solid var(--danger); color: #8f2e26;
  border-radius: var(--radius-lg); padding: 1rem 1.2rem; margin-bottom: 1.25rem;
}
.sold-banner strong { display: block; font-family: var(--font-display); font-size: 1.1rem; color: #8f2e26; }
.sold-banner .icon { font-size: 1.6rem; line-height: 1; }
.unavailable-box { border: 1.5px solid var(--danger); background: rgba(193,68,58,.06); color: #8f2e26; border-radius: 10px; padding: 1.1rem; font-weight: 600; }
.unavailable-box small { display: block; font-weight: 400; color: #5a6b78; margin-top: .3rem; }

/* ---------- Galerie : lecture automatique ---------- */
.gallery-play {
  position: absolute; left: .7rem; bottom: .7rem; z-index: 3;
  background: rgba(20,36,51,.65); color: var(--white); border: none;
  font-size: .76rem; font-weight: 600; padding: .3rem .7rem; border-radius: 999px; cursor: pointer;
}
.gallery-play:hover { background: rgba(20,36,51,.85); }

/* ---------- Panier / navbar ---------- */
.cart-link { position: relative; }
.cart-count {
  display: inline-block; min-width: 1.3rem; padding: 0 .35rem; margin-left: .25rem;
  background: var(--amber); color: var(--navy); border-radius: 999px;
  font-size: .72rem; font-weight: 700; text-align: center; line-height: 1.3rem;
}
.cart-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 2rem; align-items: start; }
@media (max-width: 900px) { .cart-layout { grid-template-columns: 1fr; } }
.cart-item {
  display: grid; grid-template-columns: auto 120px 1fr auto; gap: 1rem; align-items: center;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: .8rem; margin-bottom: .75rem;
}
.cart-item .thumb { position: relative; width: 120px; aspect-ratio: 4/3; border-radius: var(--radius); overflow: hidden; background: var(--paper); }
.cart-item .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cart-item h3 { font-size: 1rem; margin: 0 0 .2rem; }
.cart-item.is-sold { background: #fbf3f2; }
@media (max-width: 560px) { .cart-item { grid-template-columns: auto 1fr; } .cart-item .thumb { display: none; } }
.summary-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.4rem; position: sticky; top: 1rem; }
.summary-card .total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line); padding-top: .8rem; margin: .8rem 0 1rem; }
.inline-form { display: inline; margin: 0; }

/* ---------- Crédit ---------- */
.bundle-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: .9rem; margin-bottom: 1.5rem; }
.bundle-option { position: relative; display: block; margin: 0; cursor: pointer; }
.bundle-option input { position: absolute; opacity: 0; }
.bundle-option .box {
  display: block; height: 100%; background: var(--white); border: 2px solid var(--line);
  border-radius: var(--radius-lg); padding: 1.1rem; font-weight: 400; color: var(--ink);
}
.bundle-option .credits { display: block; font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--navy); }
.bundle-option .price { display: block; font-weight: 700; color: var(--teal-dark); margin-top: .3rem; }
.bundle-option .hint { display: block; font-size: .8rem; color: #5a6b78; margin-top: .45rem; }
.bundle-option input:checked + .box { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(14,165,160,.18); }
.bundle-option input:focus-visible + .box { outline: 3px solid var(--amber); }
.pay-steps { counter-reset: s; list-style: none; padding: 0; margin: 0 0 1.25rem; }
.pay-steps li { counter-increment: s; position: relative; padding-left: 2.2rem; margin-bottom: .6rem; }
.pay-steps li::before { content: counter(s); position: absolute; left: 0; top: -.1rem; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--navy); color: var(--white); font-weight: 700; font-size: .8rem; display: flex; align-items: center; justify-content: center; }

/* ---------- Comptabilité ---------- */
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 2rem; }
@media (max-width: 920px) { .kpi-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .kpi-grid { grid-template-columns: 1fr; } }
.kpi { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.1rem 1.2rem; }
.kpi .label { font-size: .8rem; color: #5a6b78; }
.kpi .value { font-family: var(--font-display); font-size: 1.55rem; font-weight: 700; color: var(--navy); line-height: 1.2; margin-top: .2rem; }
.kpi .value small { font-family: var(--font-body); font-size: .75rem; font-weight: 500; color: #5a6b78; }
.kpi.is-main { background: var(--navy); border-color: var(--navy); }
.kpi.is-main .label, .kpi.is-main .value small { color: rgba(255,255,255,.75); }
.kpi.is-main .value { color: var(--amber); }
.table-wrap { overflow-x: auto; margin-bottom: 2rem; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bar-cell { display: flex; align-items: center; gap: .6rem; }
.bar-cell .bar { height: .55rem; background: var(--teal); border-radius: 3px; min-width: 2px; }

/* ---------- Logo ---------- */
.brand-logo {
  width: 46px; height: 46px; flex: none; display: block;
  border-radius: 10px; box-shadow: 0 0 0 1.5px rgba(255,255,255,.28);
}
.brand { font-size: 1.2rem; }
.brand-accent { color: var(--teal); }
.footer-brand { display: flex; align-items: center; gap: .5rem; }
.footer-brand img { flex: none; }
.footer-tagline { color: var(--amber); font-size: .82rem; font-weight: 600; margin: -.35rem 0 .6rem; }

/* ---------- Menu du compte (déroulant) ---------- */
.user-menu { position: relative; }
.user-menu summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: .4rem;
  color: var(--white); font-weight: 600; font-size: .95rem;
  padding: .4rem .75rem; border: 1px solid rgba(255,255,255,.3); border-radius: 999px;
}
.user-menu summary::-webkit-details-marker { display: none; }
.user-menu summary::after { content: "▾"; font-size: .75rem; opacity: .8; }
.user-menu[open] summary { background: rgba(255,255,255,.12); }
.user-menu ul {
  position: absolute; right: 0; top: calc(100% + .5rem); z-index: 100;
  min-width: 220px; list-style: none; margin: 0; padding: .4rem 0;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px rgba(11,42,74,.18);
}
.user-menu li a, .user-menu .nav-logout {
  display: block; width: 100%; text-align: left;
  padding: .5rem 1rem; color: var(--ink); font-size: .92rem; font-weight: 500;
}
.user-menu li a:hover, .user-menu .nav-logout:hover { background: var(--paper); color: var(--navy); text-decoration: none; }
.user-menu .nav-logout { color: var(--danger); }
.user-menu .menu-title {
  padding: .6rem 1rem .2rem; font-size: .72rem; font-weight: 700; letter-spacing: .6px;
  text-transform: uppercase; color: #5a6b78;
}
.user-menu .menu-title:not(:first-child) { border-top: 1px solid var(--line-soft); margin-top: .3rem; }

/* ---------- Bandeau d'accueil : diaporama en arrière-plan ---------- */
.hero-slides { position: absolute; inset: 0; z-index: 0; }
.hero-slide {
  position: absolute; inset: 0;
  /* Voile bleu marine, plus dense à gauche, pour garder le texte lisible sur n'importe quelle photo */
  --veil: linear-gradient(90deg, rgba(11,42,74,.92) 0%, rgba(11,42,74,.78) 45%, rgba(11,42,74,.45) 100%);
  background-image: var(--veil), var(--photo);
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.4s ease;
}
.hero-slide.is-active { opacity: 1; }
.hero-xl.has-slides::before { display: none; }
.hero-xl.has-slides .hero-xl-grid { z-index: 1; }
.hero-caption {
  position: absolute; right: 1.5rem; bottom: 2.6rem; z-index: 2;
  background: rgba(11,42,74,.7); color: var(--white);
  font-size: .78rem; font-weight: 600; letter-spacing: .4px;
  padding: .3rem .8rem; border-radius: 999px; white-space: nowrap;
}
.hero-xl.has-slides { padding-bottom: 5rem; }
@media (max-width: 920px) {
  .hero-slide { --veil: linear-gradient(rgba(11,42,74,.82), rgba(11,42,74,.82)); }
}

/* ---------- Recharge de crédit ---------- */
.lead-muted { color: #4a5a68; margin: -.25rem 0 1.5rem; }
.muted { color: #5a6b78; }
.badge-muted { background: rgba(11,42,74,.08); color: #4a5a68; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.link-button { background: none; border: 0; padding: 0; color: #5a6b78; text-decoration: underline; cursor: pointer; font: inherit; font-size: .88rem; }
.link-button:hover { color: var(--danger); }
.topup-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 1.5rem; align-items: start; }
@media (max-width: 820px) { .topup-layout { grid-template-columns: 1fr; } }
.step-title { font-size: 1.15rem; margin: 0 0 1rem; }
.amount-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.1rem; }
.amount-chips .chip {
  border: 1.5px solid var(--line); background: var(--white); color: var(--navy); border-radius: 999px;
  padding: .45rem .9rem; font: inherit; font-weight: 600; font-size: .9rem; cursor: pointer;
}
.amount-chips .chip small { font-weight: 500; color: #5a6b78; margin-left: .2rem; }
.amount-chips .chip:hover { border-color: var(--teal); }
.amount-chips .chip:last-child { border-color: rgba(242,169,59,.6); background: rgba(242,169,59,.1); }
.amount-chips .chip:last-child small { color: #8a5b0f; font-weight: 700; }
.amount-input { display: flex; align-items: center; gap: .6rem; }
.amount-input input { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; color: var(--navy); max-width: 220px; }
.amount-input span { font-weight: 600; color: #5a6b78; }
.topup-preview { min-height: 1.5rem; color: var(--teal-dark); }
.topup-preview strong { color: var(--navy); }
.bonus-list { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .75rem; }
.bonus-list li { border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem .9rem; font-size: .92rem; }
.bonus-list li.is-on { border-color: rgba(242,169,59,.6); background: rgba(242,169,59,.08); }
.bonus-list strong { display: block; color: var(--navy); }
.bonus-list .badge { margin-top: .45rem; }
.pay-card { background: var(--navy); color: var(--white); border-radius: var(--radius-lg); padding: 1.4rem; }
.pay-card .step-title { color: var(--white); }
.pay-card .pay-steps li::before { background: var(--teal); }
.pay-details { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.25rem; margin: 0 0 1.4rem; }
@media (max-width: 480px) { .pay-details { grid-template-columns: 1fr; } }
.pay-details dt { font-size: .78rem; color: rgba(255,255,255,.7); }
.pay-details dd { margin: .15rem 0 0; font-weight: 600; }
.pay-details dd.big { font-family: var(--font-display); font-size: 1.45rem; font-weight: 700; }
.pay-details dd.amber { color: var(--amber); }
.pay-details .muted { color: rgba(255,255,255,.7); font-weight: 500; }
.ref-code { font-family: var(--font-display); background: rgba(14,165,160,.22); color: var(--white); padding: .1rem .5rem; border-radius: var(--radius); letter-spacing: .04em; }
.plain-fieldset { border: 0; padding: 0; margin: 0 0 1rem; }
.plain-fieldset legend { font-weight: 600; margin-bottom: .5rem; padding: 0; }
.method-choice { display: flex; flex-wrap: wrap; gap: .6rem; }
.method-option { display: flex; align-items: center; gap: .5rem; border: 1.5px solid var(--line); border-radius: var(--radius); padding: .6rem .9rem; cursor: pointer; font-weight: 600; margin: 0; }
.method-option:has(input:checked) { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(14,165,160,.18); }
tr.is-bonus td { background: rgba(46,158,109,.06); }
.decision { display: flex; flex-direction: column; gap: .45rem; min-width: 230px; }
.reject-form { display: flex; gap: .4rem; }
.reject-form input { flex: 1; min-width: 0; padding: .35rem .5rem; font-size: .85rem; }
.publish-cost { background: rgba(14,165,160,.08); border-left: 4px solid var(--teal); padding: .7rem .9rem; border-radius: var(--radius); }
.publish-cost.is-short { background: rgba(242,169,59,.12); border-color: var(--amber); }
.pay-card .alert-success { background: rgba(242,169,59,.14); border-color: var(--amber); color: #FCE3B8; }

/* ---------- Comptes : pages d'information (activation, mot de passe) ---------- */
.notice-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 2rem 1.75rem; text-align: center; }
.notice-card h1 { font-size: 1.6rem; margin: .6rem 0 .8rem; }
.notice-card p { color: #4a5a68; }
.notice-icon { display: inline-flex; align-items: center; justify-content: center; width: 3.2rem; height: 3.2rem; border-radius: 50%; background: rgba(14,165,160,.14); color: var(--teal-dark); font-size: 1.5rem; font-weight: 700; }
.notice-icon.is-ok { background: rgba(46,158,109,.14); color: var(--success); }
.notice-icon.is-warn { background: rgba(242,169,59,.2); color: #8a5b0f; }
.login-inactive { margin-top: .8rem; }

/* ---------- Paiement : codes QR et numéro affiché au clic ---------- */
.qr-grid { display: flex; flex-wrap: wrap; gap: 1rem; margin: 0 0 1.1rem; }
.qr-card { margin: 0; background: var(--white); border-radius: var(--radius-lg); padding: .7rem .7rem .5rem; text-align: center; }
.qr-card img { display: block; width: 168px; height: 168px; object-fit: contain; }
.qr-card figcaption { color: var(--navy); font-weight: 700; font-size: .9rem; margin-top: .35rem; }
.phone-reveal { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem; margin: 0 0 1.3rem; min-height: 2.4rem; }
.phone-value { display: inline-flex; align-items: center; flex-wrap: wrap; gap: .6rem; }
.phone-value[hidden] { display: none; }
.phone-value strong { font-family: var(--font-display); font-size: 1.45rem; letter-spacing: .02em; }
.phone-copied { color: var(--amber); font-size: .85rem; font-weight: 600; }
.btn-outline-light { background: transparent; border: 1.5px solid rgba(255,255,255,.55); color: var(--white); }
.btn-outline-light:hover { border-color: var(--white); background: rgba(255,255,255,.08); color: var(--white); }

/* ---------- Tableau de bord /gestion/ ---------- */
.gestion-head { padding: 1.75rem 0; }
.gestion-nav { display: flex; gap: .25rem 1.5rem; overflow-x: auto; border-bottom: 1px solid var(--line); }
.gestion-nav a {
  white-space: nowrap; padding: .85rem 0; font-family: var(--font-display); font-weight: 500;
  color: #5a6b78; position: relative;
}
.gestion-nav a:hover { color: var(--navy); text-decoration: none; }
.gestion-nav a[aria-current="page"] { color: var(--navy); font-weight: 700; }
.gestion-nav a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--teal); border-radius: 2px; }
.gestion-h2 { font-size: 1.25rem; margin: .5rem 0 1rem; }
.gestion-filters { margin-bottom: 1rem; }
.todo-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.1rem 1.2rem; margin-bottom: 1.25rem; }
.todo-head { margin-bottom: .6rem; }
.todo-head h3 { margin: 0; font-size: 1.05rem; display: flex; align-items: center; gap: .5rem; }
.todo-split { gap: 0 1.25rem; align-items: stretch; }
.count-pill { background: var(--amber); color: var(--navy); border-radius: 999px; font-size: .78rem; font-weight: 700; padding: .1rem .55rem; }
.todo-empty { color: #5a6b78; margin: 0; padding: .9rem 1rem; border: 1.5px dashed var(--line); border-radius: var(--radius); font-size: .92rem; }
.todo-row { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .65rem 0; border-top: 1px solid var(--line-soft); flex-wrap: wrap; }
.todo-row small { color: #5a6b78; }
.todo-row .reject-form { flex: 0 1 300px; }
.suspend-form .checkline { display: flex; align-items: center; gap: .35rem; font-size: .8rem; font-weight: 500; margin-top: .3rem; }
.suspend-form .checkline input { width: auto; accent-color: var(--teal); }

.chart-card { margin: 0 0 2rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.1rem 1.2rem; }
.chart-card figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; flex-wrap: wrap; }
.chart-card h3 { margin: 0; font-size: 1.05rem; }
.chart-card figcaption .muted { font-size: .8rem; }
.bar-chart { list-style: none; margin: 1rem 0 0; padding: 0; height: 190px; display: flex; align-items: stretch; gap: 4px; }
.bar-chart li { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
.bar-chart .bar { width: 100%; max-width: 34px; min-height: 2px; background: var(--teal); border-radius: 3px 3px 0 0; display: flex; align-items: flex-end; overflow: hidden; }
.bar-chart.is-amber .bar { background: var(--amber); }
.bar-chart .bar-part { display: block; width: 100%; background: var(--navy); }
.bar-chart .bar-value { font-size: .62rem; color: #4a5a68; white-space: nowrap; margin-bottom: 2px; font-variant-numeric: tabular-nums; }
.bar-chart .bar-label { font-size: .68rem; color: #5a6b78; margin-top: 4px; white-space: nowrap; }
.key-agents { display: inline-block; width: .7rem; height: .7rem; background: var(--navy); border-radius: 2px; vertical-align: -1px; }
@media (max-width: 620px) { .bar-chart .bar-value { display: none; } .bar-chart li:nth-child(odd) .bar-label { visibility: hidden; } }

.moderation-bar { background: rgba(11,42,74,.06); border: 1px solid var(--line); border-left: 4px solid var(--navy); border-radius: 10px; padding: .8rem 1rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.moderation-bar .reject-form { min-width: 280px; }
.moderation-inline { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; margin-top: .6rem; }
.moderation-inline input { flex: 0 1 260px; padding: .3rem .5rem; font-size: .85rem; }
.link-button.is-danger { color: var(--danger); }
.perm-list { margin: 0 0 1rem; padding-left: 1.2rem; }
.perm-list li { margin-bottom: .3rem; }
.perm-list li::marker { content: "✓  "; color: var(--success); }
.perm-list.is-no li::marker { content: "✕  "; color: var(--danger); }

/* --- Recharges en attente : badge du personnel et demandes en retard (SPEC_AJUSTEMENTS.md) --- */
.topup-alert { display: flex; align-items: center; gap: .15rem; }
.topup-badge .topup-count { font-weight: 700; }
.topup-badge.has-pending .topup-count {
  display: inline-block; margin-left: .2rem; padding: 0 .45rem; border-radius: 999px;
  background: var(--amber); color: var(--navy); font-size: .78rem; line-height: 1.35rem;
}
.topup-badge.is-new .topup-count { animation: topup-pulse 1s ease-in-out 3; }
@keyframes topup-pulse { 50% { background: var(--white); } }
.topup-sound {
  display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px;
  background: none; border: 0; border-radius: 50%; color: rgba(255,255,255,.75); cursor: pointer;
}
.topup-sound:hover, .topup-sound:focus-visible { color: var(--white); background: rgba(255,255,255,.1); }
.topup-sound .mute-line { display: none; }
.topup-sound[aria-pressed="false"] { color: rgba(255,255,255,.45); }
.topup-sound[aria-pressed="false"] .mute-line { display: inline; }
@media (prefers-reduced-motion: reduce) { .topup-badge.is-new .topup-count { animation: none; } }

.topup-row td:first-child { white-space: nowrap; }
.topup-row.is-late td { background: rgba(242,169,59,.14); }
.topup-row.is-late td:first-child { box-shadow: inset 4px 0 0 var(--amber); }
.topup-row.is-critical td { background: rgba(193,68,58,.09); }
.topup-row.is-critical td:first-child { box-shadow: inset 4px 0 0 var(--danger); }
.wait-flag { display: inline-block; margin-top: .2rem; font-size: .75rem; font-weight: 700; color: #8a5b0f; }
.topup-row.is-critical .wait-flag { color: var(--danger); }

/* --- Bloc « Partager » de la fiche annonce --- */
.share-block { margin-top: 1.25rem; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.share-block h3 { font-size: .95rem; margin: 0 0 .65rem; }
.share-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem;
}
.share-btn {
  display: flex; align-items: center; gap: .45rem; width: 100%; min-height: 40px;
  padding: .45rem .65rem; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--white); color: var(--navy); font: inherit; font-size: .85rem; font-weight: 600;
  cursor: pointer; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.share-btn:hover, .share-btn:focus-visible { border-color: var(--teal); color: var(--navy); text-decoration: none; background: rgba(14,165,160,.06); }
.share-btn svg { flex: none; }
.share-btn.is-facebook svg { color: #1877F2; }
.share-btn.is-whatsapp svg { color: #1FA855; }
.share-btn.is-telegram svg { color: #229ED9; }
.share-btn.is-x svg { color: var(--ink); }
.share-btn.is-email svg, .share-btn.is-copy svg { color: var(--teal-dark); }
.share-btn.is-native { border-color: var(--teal); }
.share-btn.is-native svg { color: var(--teal-dark); }
.share-status { min-height: 1.2em; margin: .5rem 0 0; font-size: .85rem; font-weight: 600; color: var(--success); }
.share-status:empty { margin: 0; min-height: 0; }
.share-hint { margin: .4rem 0 0; font-size: .78rem; color: #5a6b78; }

/* --- Statistiques par annonce (« Mes annonces ») --- */
.listing-stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, auto); gap: .1rem .9rem; font-size: .82rem; color: #4a5a68; white-space: nowrap; }
.listing-stats strong { color: var(--navy); font-size: .92rem; }

/* --- Comparateur (bouton, barre de rappel, tableau) --- */
.vcard-wrap { position: relative; }
.compare-form { margin: 0; }
.compare-form.on-card { position: absolute; top: .55rem; right: .55rem; z-index: 2; }
.compare-form.on-detail { margin-top: .75rem; }
.compare-form.on-detail .compare-btn { width: 100%; justify-content: center; min-height: 40px; }
.compare-btn {
  display: inline-flex; align-items: center; gap: .3rem; padding: .3rem .6rem; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(255,255,255,.94); color: var(--navy);
  font: inherit; font-size: .78rem; font-weight: 600; cursor: pointer;
}
.compare-btn:hover, .compare-btn:focus-visible { border-color: var(--teal); }
.compare-btn.is-on { background: var(--teal); border-color: var(--teal); color: var(--white); }
.compare-bar { position: sticky; bottom: 0; z-index: 40; background: var(--navy); color: var(--white); box-shadow: 0 -4px 16px rgba(11,42,74,.18); }
.compare-bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: .6rem; padding-bottom: .6rem; font-size: .92rem; }
.compare-bar .btn-outline { color: var(--white); border-color: rgba(255,255,255,.5); }
.compare-wrap { overflow-x: auto; }
.compare-table { min-width: 560px; }
.compare-table th[scope="row"] { width: 170px; color: #4a5a68; font-weight: 600; font-size: .88rem; }
.compare-table thead th { vertical-align: top; min-width: 180px; }
.compare-head { display: flex; flex-direction: column; gap: .4rem; color: var(--navy); margin-bottom: .3rem; }
.compare-head:hover { text-decoration: none; }
.compare-head img, .compare-head .noimg { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); background: var(--paper); display: flex; align-items: center; justify-content: center; font-size: .8rem; color: #5a6b78; }
.compare-section th { background: var(--paper); color: var(--navy); font-family: var(--font-display); }
.compare-flag .yes { color: var(--success); font-weight: 700; }
.compare-flag .no { color: #9aa6b0; }

/* --- Mise en avant « À la une » --- */
.boost-badge {
  position: absolute; top: .6rem; left: .6rem; z-index: 1; margin-top: 2rem;
  background: var(--amber); color: var(--navy); border-radius: 999px; padding: .15rem .6rem;
  font-size: .72rem; font-weight: 700; letter-spacing: .02em; box-shadow: 0 2px 6px rgba(11,42,74,.18);
}
.boost-badge.is-inline { position: static; margin: 0; display: inline-block; vertical-align: middle; box-shadow: none; }
.featured-section { padding-bottom: 0; }
.boost-packages { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; margin: 1.25rem 0; }
.boost-package {
  display: flex; flex-direction: column; align-items: center; gap: .5rem; margin: 0; padding: 1.25rem 1rem;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); text-align: center;
}
.boost-package:hover { border-color: var(--amber); }
.boost-days { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; color: var(--navy); }
.boost-price { font-size: 1.5rem; font-weight: 700; color: var(--navy); }
.boost-price small { font-size: .75rem; color: #4a5a68; }
.boost-package.is-short { opacity: .75; }
.boost-short { color: var(--danger); font-weight: 600; }

/* --- Pages légales et contact (phase 4) --- */
.footer-legal { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; margin-top: 1.75rem; font-size: .85rem; }
.legal-page { max-width: 820px; }
.legal-nav { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; margin-bottom: 1.5rem; font-size: .9rem; }
.legal-nav a[aria-current="page"] { font-weight: 700; color: var(--navy); }
.legal-body h2 { font-size: 1.15rem; margin: 1.75rem 0 .5rem; }
.legal-body ul { padding-left: 1.2rem; }
.legal-body li { margin-bottom: .35rem; }
.legal-key { background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--teal); border-radius: var(--radius); padding: .9rem 1.1rem; }
.legal-dl { display: grid; gap: .4rem; margin: 0; }
.legal-dl div { display: grid; grid-template-columns: minmax(140px, 260px) 1fr; gap: 1rem; padding: .35rem 0; border-bottom: 1px solid var(--line-soft); }
.legal-dl dt { color: #4a5a68; font-weight: 600; }
.legal-dl dd { margin: 0; }
@media (max-width: 560px) { .legal-dl div { grid-template-columns: 1fr; gap: .1rem; } }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-body { background: var(--paper); border-radius: var(--radius); padding: .75rem 1rem; white-space: normal; overflow-wrap: anywhere; }

/* --- Avis sur les agents (phase 4) --- */
.stars { color: var(--amber-dark); letter-spacing: .08em; white-space: nowrap; }
.seller-rating { font-size: .88rem; margin: 0 0 1rem; }
.review-summary { display: flex; align-items: baseline; gap: .75rem; flex-wrap: wrap; margin-bottom: .5rem; }
.review-average { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--navy); }
.review-average small { font-size: 1rem; color: #4a5a68; }
.review-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1rem 1.15rem; margin-bottom: .9rem; overflow-wrap: anywhere; }
.review-card p { margin: .5rem 0 0; }
.review-reply { margin-top: .75rem; padding: .6rem .9rem; border-left: 3px solid var(--teal); background: var(--paper); border-radius: var(--radius); }
.review-reply-form { margin-top: .6rem; }
.review-reply-form textarea { width: 100%; margin: .5rem 0; }
.rating-field { border: 0; padding: 0; margin: 0 0 1rem; }
.rating-field legend { font-weight: 600; margin-bottom: .4rem; }
.rating-field div, .rating-field ul { display: contents; }
.rating-choice { display: inline-flex; align-items: center; gap: .35rem; margin: 0 1rem .4rem 0; font-weight: 500; }

/* --- Confiance et contact (phase 2) --- */
.btn-whatsapp { background: #1f9d55; color: var(--white); border: 1px solid #1f9d55; gap: .45rem; }
.btn-whatsapp:hover { background: #178046; color: var(--white); text-decoration: none; }
.report-link { margin: .9rem 0 0; font-size: .85rem; text-align: center; }
.report-link a { color: #6b7b88; text-decoration: underline; }
.trust-box { background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--amber); border-radius: var(--radius-lg); padding: 1rem 1.2rem; margin: 1.25rem 0; }
.trust-box h3 { margin: 0 0 .6rem; font-size: 1.02rem; }
.trust-box ul { margin: 0; padding-left: 1.1rem; font-size: .9rem; }
.trust-box li { margin-bottom: .4rem; }
.trust-foot { margin: .5rem 0 0; font-size: .85rem; }
.seller-link { color: var(--navy); }
.agent-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.25rem; }
.agent-stats { display: flex; flex-wrap: wrap; gap: .75rem; margin: 0; }
.agent-stats div { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); border-radius: var(--radius-lg); padding: .6rem 1rem; min-width: 110px; }
.agent-stats dt { font-size: .75rem; color: rgba(255,255,255,.75); }
.agent-stats dd { margin: 0; font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; color: var(--white); }
.agent-stats dd small { font-size: .8rem; font-weight: 500; color: rgba(255,255,255,.75); }
.report-actions { display: flex; flex-wrap: wrap; gap: .6rem 1rem; align-items: center; justify-content: flex-start; }
.report-actions .reject-form { margin: 0; }

/* ---------- Statistiques (/gestion/statistiques/) ---------- */
.btn-navy { background: var(--navy); color: var(--white); border-color: var(--navy); }
.stats-period { display: flex; flex-wrap: wrap; gap: .75rem 1.25rem; align-items: end; margin-bottom: .75rem; }
.stats-period-links { display: flex; gap: .4rem; flex-wrap: wrap; }
.stats-custom { display: flex; flex-wrap: wrap; gap: .5rem; align-items: end; }
.stats-custom label { display: flex; flex-direction: column; font-size: .78rem; color: #5a6b78; gap: .15rem; }
.stats-custom input { padding: .32rem .5rem; font-size: .85rem; }
.stats-error { color: var(--danger); font-size: .9rem; }
.trend { font-size: .8rem; font-weight: 600; margin-top: .3rem; color: #5a6b78; }
.trend small { font-weight: 400; }
.trend.is-good { color: var(--success); }
.trend.is-bad { color: var(--danger); }
.trend.is-na { font-style: italic; font-weight: 500; }
.line-chart { position: relative; margin-top: .9rem; padding-top: 1.1rem; }
.line-chart svg { display: block; width: 100%; height: 170px; overflow: visible; }
.line-chart .line-top { position: absolute; top: 0; left: 0; font-size: .68rem; color: #5a6b78; }
.line-chart .axis { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.line-chart .area { fill: rgba(14, 165, 160, .10); }
.line-chart .values { fill: none; stroke: var(--teal); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.line-chart .average { fill: none; stroke: var(--navy); stroke-width: 2; stroke-dasharray: 5 4; vector-effect: non-scaling-stroke; }
.line-chart .forecast { fill: none; stroke: var(--amber-dark); stroke-width: 2; stroke-dasharray: 6 4; vector-effect: non-scaling-stroke; }
.line-chart .band { fill: rgba(242, 169, 59, .22); }
.line-chart .split { stroke: var(--line); stroke-dasharray: 3 3; vector-effect: non-scaling-stroke; }
.line-dates { display: flex; justify-content: space-between; font-size: .68rem; color: #5a6b78; margin-top: 4px; }
.chart-legend { font-size: .75rem; color: #5a6b78; display: inline-flex; align-items: center; gap: .3rem; flex-wrap: wrap; }
.chart-legend > span { display: inline-block; width: 16px; height: 0; border-top: 2px solid var(--teal); margin-left: .4rem; }
.chart-legend .key-average { border-top: 2px dashed var(--navy); }
.chart-legend .key-forecast { border-top: 2px dashed var(--amber-dark); }
.share-bars { list-style: none; margin: .9rem 0 0; padding: 0; display: grid; gap: .45rem; }
.share-bars li { display: grid; grid-template-columns: minmax(90px, 32%) 1fr auto; gap: .6rem; align-items: center; font-size: .85rem; }
.share-bars .share-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.share-track { height: 10px; background: var(--line-soft); border-radius: 5px; overflow: hidden; }
.share-track span { display: block; height: 100%; background: var(--teal); border-radius: 5px; }
.share-value { font-size: .78rem; color: #5a6b78; font-variant-numeric: tabular-nums; white-space: nowrap; }
.forecast-note { background: #FFF8EC; border-left: 4px solid var(--amber); border-radius: var(--radius); padding: .7rem .9rem; font-size: .9rem; }
.forecast-empty { font-weight: 600; color: var(--navy); margin: 1rem 0 .3rem; }
.forecast-total { font-size: .9rem; margin: .6rem 0 0; }
.stats-table { margin: 0 0 1rem; }
.stats-table summary { cursor: pointer; font-weight: 600; color: var(--navy); margin-bottom: .6rem; }
.visits-summary { display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; align-items: baseline; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: .8rem 1.2rem; margin-bottom: 1.25rem; }
.visits-summary strong { font-family: var(--font-display); font-size: 1.3rem; color: var(--navy); }
@media (max-width: 620px) { .share-bars li { grid-template-columns: 1fr auto; } .share-bars .share-track { grid-column: 1 / -1; grid-row: 2; } }
.device-split { list-style: none; margin: .35rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .15rem .9rem; font-size: .85rem; color: #5a6b78; }
.device-split strong { font-family: var(--font-display); font-size: 1.15rem; color: var(--navy); }
