/* ================================================
   components.css — Boutons, badges, modals, pub, UI
   ================================================ */

/* ─── BOUTONS ────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  padding: .6rem 1.4rem;
  border-radius: var(--r-s);
  font-size: .88rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: all var(--t);
  white-space: nowrap;
  border: none;
  font-family: var(--font);
  position: relative;
  overflow: hidden;
  text-decoration: none;
}
.btn:disabled {
  opacity: .4;
  cursor: not-allowed;
}

/* Sheen sur click */
.btn::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.12), transparent);
  transform: translateX(-100%) skewX(-15deg);
  pointer-events: none;
}
.btn:not(:disabled):hover::after {
  animation: sheen .5s ease forwards;
}

/* Orange principal (CTA) */
.btn-primary {
  background: var(--orange);
  color: var(--bg);
}
.btn-primary:hover:not(:disabled) {
  background: #E25A0F;
  box-shadow: var(--orange-glow);
}

/* Orange CTA (alias de btn-primary) */
.btn-orange {
  background: var(--orange);
  color: var(--bg);
}
.btn-orange:hover:not(:disabled) {
  background: #E25A0F;
  box-shadow: var(--orange-glow);
}

/* Contour cyan secondaire — bouton d'action neutre */
.btn-cyan {
  background: var(--cyan);
  color: var(--bg);
}
.btn-cyan:hover:not(:disabled) {
  background: #6BE6FF;
  box-shadow: var(--cyan-glow-sm);
}

/* Contour cyan */
.btn-outline {
  background: transparent;
  color: var(--cyan);
  border: 1px solid var(--border-h);
}
.btn-outline:hover:not(:disabled) {
  background: var(--cyan-dim);
  border-color: var(--cyan);
  box-shadow: var(--cyan-glow-sm);
}

/* Ghost neutre */
.btn-ghost {
  background: var(--s2);
  color: var(--text-dim);
  border: 1px solid var(--border);
}
.btn-ghost:hover:not(:disabled) {
  background: var(--s3);
  color: var(--text);
  border-color: var(--border-h);
}

/* Accent IA — fonctions IA secondaires (violet, voir tokens --ia) */
.btn-accent-ia {
  background: var(--ia-dim);
  color: var(--ia);
  border: 1px solid rgba(var(--ia-rgb),.45);
}
.btn-accent-ia:hover:not(:disabled) {
  background: rgba(var(--ia-rgb),.2);
  border-color: var(--ia);
  color: #c9a3ff;
}

/* Danger */
.btn-danger {
  background: rgba(255,60,60,.15);
  color: #ff6b6b;
  border: 1px solid rgba(255,60,60,.25);
}
.btn-danger:hover:not(:disabled) {
  background: rgba(255,60,60,.25);
}

/* Tailles */
.btn-sm {
  padding: .4rem .9rem;
  font-size: .78rem;
}
.btn-lg {
  padding: .85rem 2rem;
  font-size: 1rem;
  border-radius: var(--r);
}
.btn-block { width: 100%; }

/* Icône seule */
.btn-icon {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: var(--r-s);
  background: var(--s2);
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 1rem;
  transition: all var(--t);
}
.btn-icon:hover {
  background: var(--cyan-dim);
  border-color: var(--cyan);
  color: var(--cyan);
}

/* Loading spinner dans bouton */
.btn.loading {
  pointer-events: none;
  opacity: .7;
}
.btn.loading::before {
  content: '';
  width: 14px;
  height: 14px;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin .7s linear infinite;
  flex-shrink: 0;
}

/* ─── BADGES ─────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .2rem .55rem;
  border-radius: var(--r-s);
  font-size: .7rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .03em;
  white-space: nowrap;
}

.badge-cyan   { background: rgba(var(--cyan-rgb),.15); color: var(--cyan); border: 1px solid rgba(var(--cyan-rgb),.25); }
.badge-orange { background: rgba(var(--orange-rgb),.15); color: var(--orange); border: 1px solid rgba(var(--orange-rgb),.25); }
.badge-green  { background: rgba(0,220,100,.12); color: #00dc64; border: 1px solid rgba(0,220,100,.2); }
.badge-red    { background: rgba(255,60,60,.12);  color: #ff6b6b; border: 1px solid rgba(255,60,60,.2); }

/* Badges spéciaux annonce */
.badge-new    { background: rgba(var(--cyan-rgb),.15); color: var(--cyan); border: 1px solid rgba(var(--cyan-rgb),.3); }
.badge-pro    { background: linear-gradient(135deg, rgba(var(--cyan-rgb),.2), rgba(0,100,255,.15)); color: var(--cyan); border: 1px solid rgba(var(--cyan-rgb),.3); }
.badge-verifie { background: rgba(0,220,100,.12); color: #00dc64; border: 1px solid rgba(0,220,100,.2); }
.badge-ia     { background: rgba(var(--cyan-rgb),.15); color: var(--cyan); border: 1px solid rgba(var(--cyan-rgb),.25); }
.badge-verif  { background: rgba(0,220,100,.12); color: #00dc64; border: 1px solid rgba(0,220,100,.2); }

/* ─── CHIPS (filtres actifs, multi-select) ───────── */
.chip,
.chip-suggestion {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .38rem 1rem;
  border-radius: 20px;
  font-size: .8rem;
  font-weight: 500;
  background: var(--cyan-dim);
  color: var(--cyan);
  border: 1px solid rgba(var(--cyan-rgb),.25);
  cursor: default;
  white-space: nowrap;
  transition: background var(--t), border-color var(--t);
}
/* .chip-suggestion / .popular-tag : <button> cliquable (loadPopularTags) */
.chip-suggestion {
  font-family: inherit;
  cursor: pointer;
}
.chip-suggestion:hover {
  background: rgba(var(--cyan-rgb),.18);
  border-color: var(--cyan);
}
.chip .chip-remove {
  display: flex;
  align-items: center;
  cursor: pointer;
  opacity: .7;
  transition: opacity var(--t);
  background: none;
  border: none;
  color: inherit;
  padding: 0;
  font-size: 1em;
  line-height: 1;
}
.chip .chip-remove:hover { opacity: 1; }

.chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  align-items: center;
}

/* ─── TAGS ───────────────────────────────────────── */
.tag {
  display: inline-block;
  padding: .15rem .5rem;
  border-radius: var(--r-s);
  font-size: .72rem;
  font-weight: 600;
  background: var(--s2);
  color: var(--text-dim);
  border: 1px solid var(--border);
}

/* ─── TOGGLE SWITCH ──────────────────────────────── */
.toggle-wrap {
  display: flex;
  align-items: center;
  gap: .6rem;
  cursor: pointer;
  user-select: none;
}
.toggle {
  position: relative;
  width: 40px;
  height: 22px;
  flex-shrink: 0;
}
.toggle input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}
.toggle-slider {
  position: absolute;
  inset: 0;
  border-radius: 11px;
  background: var(--s3);
  border: 1px solid var(--border);
  transition: background var(--t), border-color var(--t);
}
.toggle-slider::before {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--text-dim);
  top: 50%;
  left: 3px;
  transform: translateY(-50%);
  transition: transform var(--t), background var(--t);
}
.toggle input:checked + .toggle-slider {
  background: rgba(var(--cyan-rgb),.2);
  border-color: var(--cyan);
}
.toggle input:checked + .toggle-slider::before {
  background: var(--cyan);
  transform: translate(18px, -50%);
}

/* ─── ÉTOILES (avis) ─────────────────────────────── */
.stars {
  display: inline-flex;
  gap: .1rem;
  color: #ffc800;
  font-size: .9rem;
  line-height: 1;
}
.stars .empty { color: var(--s3); }

/* ─── TABS ───────────────────────────────────────── */
.tabs {
  display: flex;
  gap: .25rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0;
  flex-wrap: wrap;
}

.tab-btn {
  padding: .7rem 1.1rem;
  font-size: .85rem;
  font-weight: 500;
  color: var(--text-dim);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: color var(--t), border-color var(--t);
  white-space: nowrap;
  margin-bottom: -1px;
  font-family: var(--font);
}
.tab-btn:hover { color: var(--text); }
.tab-btn.active {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
  font-weight: 600;
}

/* ─── MODALS ─────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.65);
  backdrop-filter: blur(8px);
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: fadeIn .2s ease;
}

.modal {
  background: var(--s1);
  border: 1px solid var(--border);
  border-radius: var(--r-l);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideDown .2s ease;
  position: relative;
}

.modal-lg { max-width: 760px; }
.modal-xl { max-width: 960px; }

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem 1rem;
  border-bottom: 1px solid var(--border);
}

.modal-header h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.modal-close {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-s);
  color: var(--muted);
  font-size: 1.2rem;
  background: none;
  border: none;
  cursor: pointer;
  transition: color var(--t), background var(--t);
}
.modal-close:hover { color: var(--text); background: var(--s2); }

.modal-body  { padding: 1.5rem; }
.modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  gap: .75rem;
  justify-content: flex-end;
}

/* ─── DROPDOWN ───────────────────────────────────── */
.dropdown {
  position: relative;
}
.dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 200px;
  background: var(--s2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: .5rem;
  z-index: 200;
  animation: slideDown .15s ease;
  box-shadow: 0 8px 32px rgba(0,0,0,.35);
}
.dropdown-menu.open { display: block; }
.dropdown-item {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .6rem .8rem;
  border-radius: var(--r-s);
  font-size: .85rem;
  color: var(--text-dim);
  cursor: pointer;
  transition: background var(--t), color var(--t);
  background: none;
  border: none;
  width: 100%;
  font-family: var(--font);
}
.dropdown-item:hover {
  background: rgba(var(--cyan-rgb),.08);
  color: var(--text);
}
.dropdown-item.danger { color: #ff6b6b; }
.dropdown-item.danger:hover { background: rgba(255,60,60,.1); }

/* ─── COOKIE BANNER ──────────────────────────────── */
#cookieBanner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: var(--z-toast);
  background: var(--s1);
  border-top: 1px solid var(--border);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  animation: slideDown .3s ease;
  box-shadow: 0 -4px 32px rgba(0,0,0,.4);
}

#cookieBanner p {
  flex: 1;
  font-size: .85rem;
  color: var(--text-dim);
  min-width: 200px;
}

#cookieBanner a { color: var(--cyan); }

/* .cookie-inner = wrapper émis par initCookieConsent (enveloppe p + boutons) */
.cookie-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
}
.cookie-actions,
.cookie-btns {
  display: flex;
  gap: .6rem;
  flex-shrink: 0;
}
/* Boutons cookie (.btn-cookie-* : pas de classe .btn, à styler ici) */
.btn-cookie-reject,
.btn-cookie-accept {
  padding: .55rem 1.1rem;
  border-radius: var(--r-s);
  font-size: .82rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background var(--t), border-color var(--t), filter var(--t);
}
.btn-cookie-reject {
  background: transparent;
  color: var(--text-dim);
  border: 1px solid var(--border);
}
.btn-cookie-reject:hover { border-color: var(--cyan); color: var(--text); }
.btn-cookie-accept {
  background: var(--cyan);
  color: var(--bg);
  border: 1px solid var(--cyan);
}
.btn-cookie-accept:hover { filter: brightness(1.1); }

/* ─── PUB ADSENSE ────────────────────────────────── */
.pub-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  overflow: hidden;
  background: rgba(255,255,255,.015);
  border-radius: var(--r-s);
}

.pub-leaderboard {
  height: 90px;
  border: 1px solid rgba(255,255,255,.04);
  margin: 1.5rem 0;
}

.pub-side {
  min-height: 600px;
}

.pub-mobile-inline {
  min-height: 250px;
  display: none;
}

.pub-sticky-bottom {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: var(--z-sticky);
  background: var(--s1);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: .25rem 0;
  min-height: 60px;
}

.pub-sticky-close {
  position: absolute;
  top: 2px; right: 8px;
  width: 22px; height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  color: var(--muted);
  cursor: pointer;
  background: none;
  border: none;
}

body.has-sticky-pub { padding-bottom: 60px; }

/* ─── BARRE DE COMPARAISON FLOTTANTE ──────────────
   Centralisée ici (était inline dans index.html avec un bug
   .visible≠.active). Le JS toggle .active (updateBarreComparaison).
   Mini-cartes (.vehicule-mini/.titre-mini/.prix-mini/.remove-btn)
   émises par le même JS, jamais stylées avant. */
.barre-comparaison {
  position: fixed;
  bottom: -140px; left: 0; right: 0;
  z-index: var(--z-sticky);
  background: var(--s1);
  border-top: 1px solid var(--border);
  padding: .75rem 1.5rem;
  transition: bottom .3s ease;
  box-shadow: 0 -4px 32px rgba(0,0,0,.4);
}
.barre-comparaison.active { bottom: 0; }
.barre-content { max-width: 1280px; margin: 0 auto; display: flex; align-items: center; gap: 1rem; }
.barre-info { display: flex; align-items: center; gap: .6rem; flex-shrink: 0; color: var(--text); font-size: .85rem; font-weight: 600; }
.btn-fermer { background: none; border: none; color: var(--muted); font-size: 1.2rem; line-height: 1; cursor: pointer; }
.btn-fermer:hover { color: var(--text); }
.vehicules-selectionnes { display: flex; gap: .5rem; flex: 1; min-width: 0; overflow-x: auto; padding-bottom: 2px; }
.barre-actions { display: flex; gap: .5rem; flex-shrink: 0; margin-left: auto; }

.vehicule-mini {
  position: relative;
  flex-shrink: 0;
  width: 200px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  grid-template-areas: "img titre" "img prix";
  align-items: center;
  column-gap: .55rem;
  background: var(--s2);
  border: 1px solid var(--border);
  border-radius: var(--r-s);
  padding: .35rem .5rem .35rem .35rem;
  cursor: pointer;
  transition: border-color var(--t);
}
.vehicule-mini:hover { border-color: var(--cyan); }
.vehicule-mini img {
  grid-area: img;
  width: 46px; height: 46px;
  object-fit: cover;
  border-radius: calc(var(--r-s) - 2px);
  background: var(--s1);
  display: block;
}
.vehicule-mini .titre-mini {
  grid-area: titre;
  align-self: end;
  min-width: 0;
  font-size: .72rem; font-weight: 600; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.vehicule-mini .prix-mini {
  grid-area: prix;
  align-self: start;
  font-size: .8rem; font-weight: 800; color: var(--cyan);
}
.vehicule-mini .remove-btn {
  position: absolute; top: 4px; left: 4px;
  width: 18px; height: 18px; border-radius: 50%;
  background: rgba(0,0,0,.6); color: #fff; border: none;
  font-size: .72rem; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--t);
}
.vehicule-mini .remove-btn:hover { background: rgba(255,60,60,.85); }

/* Mobile : on masque les mini-cartes (largeur 200px → débordement à droite)
   et on compresse, comme l'ancienne v3. Ne garde que le compteur + actions. */
@media (max-width: 768px) {
  .barre-comparaison { padding: .6rem 1rem; }
  .barre-content { flex-wrap: nowrap; gap: .5rem; }
  .vehicules-selectionnes { display: none; }
  .barre-info { flex: 1; min-width: 0; font-size: .85rem; }
  .barre-info span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .barre-actions { gap: .4rem; margin-left: 0; }
  .barre-actions .btn { font-size: .75rem; padding: .45rem .7rem; white-space: nowrap; }
}

/* ─── EMPTY STATE ────────────────────────────────── */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 1.5rem;
  text-align: center;
  gap: 1rem;
}

.empty-state .empty-icon {
  font-size: 3rem;
  opacity: .4;
  margin-bottom: .5rem;
}

.empty-state h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dim);
}

.empty-state p {
  font-size: .88rem;
  color: var(--muted);
  max-width: 320px;
}

/* ─── REWARDED AD ────────────────────────────────── */
#rewardedOverlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.75);
  backdrop-filter: blur(10px);
  z-index: var(--z-modal);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 2rem;
  text-align: center;
}

.rewarded-box {
  background: var(--s1);
  border: 1px solid var(--border);
  border-radius: var(--r-l);
  padding: 2rem;
  max-width: 380px;
  width: 100%;
}

.rewarded-timer {
  font-size: 3rem;
  font-weight: 800;
  color: var(--cyan);
  animation: electric-pulse 1.5s ease-in-out infinite;
}

/* ─── CARD GÉNÉRIQUE (surface réutilisable) ───────── */
.card {
  background: var(--s1);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  transition: border-color var(--t), box-shadow var(--t);
}
.card:hover {
  border-color: rgba(var(--cyan-rgb),.35);
  box-shadow: var(--cyan-glow);
}

/* ─── ALERT INLINE ───────────────────────────────── */
.alert {
  padding: .85rem 1rem;
  border-radius: var(--r-s);
  font-size: .85rem;
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  line-height: 1.5;
}
.alert-info    { background: rgba(0,150,255,.1); border: 1px solid rgba(0,150,255,.2); color: #80c8ff; }
.alert-success { background: rgba(0,220,100,.1); border: 1px solid rgba(0,220,100,.2); color: #66e89a; }
.alert-warn    { background: rgba(255,180,0,.1);  border: 1px solid rgba(255,180,0,.2);  color: #ffc800; }
.alert-danger  { background: rgba(255,60,60,.1);  border: 1px solid rgba(255,60,60,.2);  color: #ff6b6b; }

/* ─── PROGRESS BAR ───────────────────────────────── */
.progress-bar-wrap {
  height: 6px;
  background: var(--s3);
  border-radius: 3px;
  overflow: hidden;
}
.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), #0099ff);
  border-radius: 3px;
  transition: width .4s ease;
}

/* ─── AVATAR ─────────────────────────────────────── */
.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--s3);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
  font-weight: 700;
  color: var(--cyan);
  flex-shrink: 0;
  overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-sm { width: 30px; height: 30px; font-size: .75rem; }
.avatar-lg { width: 56px; height: 56px; font-size: 1.2rem; }

/* ─── LOADER PLEIN ÉCRAN ─────────────────────────── */
#pageLoader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}
.loader-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--cyan);
  animation: float .8s ease-in-out infinite;
}
.loader-dot:nth-child(2) { animation-delay: .15s; }
.loader-dot:nth-child(3) { animation-delay: .3s; }

/* ─── SCROLL TO TOP ──────────────────────────────── */
#scrollTop {
  position: fixed;
  bottom: 5rem;
  right: 1.5rem;
  width: 40px;
  height: 40px;
  background: var(--s2);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: var(--z-sticky);
  color: var(--text-dim);
  font-size: 1rem;
  transition: all var(--t);
  opacity: 0;
  pointer-events: none;
}
#scrollTop.visible {
  opacity: 1;
  pointer-events: auto;
}
#scrollTop:hover {
  background: var(--cyan-dim);
  color: var(--cyan);
  border-color: var(--cyan);
}

/* ─── RESPONSIVE COMPONENTS ──────────────────────── */
@media (max-width: 768px) {
  .pub-leaderboard { height: 60px; }
  .pub-mobile-inline { display: flex; }
  .modal { max-width: 100%; max-height: 95vh; margin: .5rem; }
  #cookieBanner { gap: 1rem; }
  .cookie-actions,
  .cookie-btns { width: 100%; }
  .cookie-actions .btn,
  .cookie-btns .btn-cookie-reject,
  .cookie-btns .btn-cookie-accept { flex: 1; }
}

/* ── Contact rapide (modal 1er message depuis l'annonce) ─────────────────── */
.cr-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.65);
  backdrop-filter: blur(8px);
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: fadeIn .2s ease;
}
.cr-card {
  background: var(--s1);
  border: 1px solid var(--border);
  border-radius: var(--r-l);
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 1.5rem;
  position: relative;
  animation: slideDown .2s ease;
}
.cr-close {
  position: absolute;
  top: .8rem;
  right: .8rem;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.2rem;
  cursor: pointer;
  line-height: 1;
  padding: .25rem;
  transition: color .15s;
}
.cr-close:hover { color: var(--text); }
.cr-header {
  display: flex;
  align-items: center;
  gap: .8rem;
  margin-bottom: 1.1rem;
  padding-right: 1.5rem;
}
.cr-avatar {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cyan-dim);
  border: 1px solid var(--border);
}
.cr-avatar-img { width: 100%; height: 100%; object-fit: cover; }
.cr-avatar-txt { font-weight: 700; color: var(--cyan); font-size: 1rem; }
.cr-header-info { min-width: 0; flex: 1; }
.cr-vendeur {
  font-weight: 700;
  color: var(--text);
  font-size: 1rem;
  margin-bottom: .35rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cr-annonce { display: flex; align-items: center; gap: .5rem; min-width: 0; }
.cr-annonce-thumb {
  width: 28px;
  height: 28px;
  border-radius: 5px;
  object-fit: cover;
  flex-shrink: 0;
}
.cr-annonce-titre {
  font-size: .82rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cr-textarea {
  width: 100%;
  resize: vertical;
  min-height: 96px;
  margin-bottom: 1rem;
}
.cr-actions { display: flex; gap: .6rem; justify-content: flex-end; }
.cr-actions .btn { flex: 1; justify-content: center; }
.cr-actions-center { justify-content: center; }
.cr-success { text-align: center; padding: .5rem 0; }
.cr-success-icon { font-size: 2.4rem; margin-bottom: .4rem; }
.cr-success-title { font-weight: 700; color: var(--text); font-size: 1.1rem; margin: 0 0 .35rem; }
.cr-success-sub { color: var(--muted); font-size: .88rem; margin: 0 0 1.2rem; line-height: 1.5; }
.cr-phone {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  margin-top: 1rem;
  padding: .65rem .85rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(var(--cyan-rgb), .05);
}
.cr-login-prompt { text-align: center; padding: .5rem 0 .25rem; }
.cr-login-text { color: var(--muted); font-size: .9rem; margin: 0 0 .9rem; line-height: 1.5; }
.cr-phone-label { font-size: .82rem; color: var(--muted); }
.cr-phone-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .95rem;
  font-weight: 700;
  color: var(--cyan);
  text-decoration: none;
}
.cr-phone-btn:hover { text-decoration: underline; }
