/* ============================================================
   AD-DETAILS.CSS — TedPlas · Détails d'annonce
   Inclut : système d'offres complet (bouton, modal, bandeau vendeur)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;600;700;800&family=Lato:wght@300;400;700;900&display=swap');

/* ── VARIABLES ──────────────────── */
:root {
  --primary-orange:       #F66B0E;
  --primary-orange-hover: #E55A00;
  --primary-orange-light: #FF7A1F;
  --text-dark:            #212121;
  --text-secondary:       #757575;
  --text-light:           #9E9E9E;
  --bg-cream:             #FFF8F1;
  --bg-white:             #FFFFFF;
  --bg-light-gray:        #F5F5F5;
  --bg-dark:              #1A1A1A;
  --border-color:         #E0E0E0;
  --shadow-light:         rgba(0, 0, 0, 0.05);
  --shadow-medium:        rgba(0, 0, 0, 0.1);
  --shadow-strong:        rgba(0, 0, 0, 0.15);
  --verified-color:       #1DA1F2;
  --success:              #4CAF50;
  --danger:               #FF3B30;
  --warning:              #FF9800;
  --header-height:        70px;
  --transition-speed:     0.3s;
  --card-radius:          16px;

  --orange-pale:  rgba(246, 107, 14, 0.08);
  --orange-glow:  rgba(246, 107, 14, 0.15);
  --spring:       cubic-bezier(.34, 1.56, .64, 1);

  /* Offre — couleur orange/jaune TedPlas */
  --offer-color:       #F66B0E;
  --offer-light:       #FF7A1F;
  --offer-pale:        rgba(246, 107, 14, 0.08);
  --offer-glow:        rgba(246, 107, 14, 0.18);
  --accept-color:      #16A34A;
  --accept-light:      #22C55E;
  --accept-pale:       rgba(22, 163, 74, 0.1);
  --reject-color:      #DC2626;
  --reject-pale:       rgba(220, 38, 38, 0.1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Roboto', 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-cream);
  color: var(--text-dark);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

/* ── Container ── */
.tp-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.tp-main { padding: 28px 0 48px; }

/* ═══════════════════════════════════════════════════════════
   BREADCRUMB
═══════════════════════════════════════════════════════════ */
.tp-breadcrumb {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-color);
  padding: 12px 0;
}
.tp-breadcrumb .tp-container {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--text-secondary); flex-wrap: wrap;
}
.tp-breadcrumb a { transition: color var(--transition-speed); color: var(--text-secondary); text-decoration: none; }
.tp-breadcrumb a:hover { color: var(--primary-orange); }
.tp-breadcrumb .sep { color: var(--border-color); font-size: 10px; }
.tp-breadcrumb .current {
  color: var(--text-dark); font-weight: 600;
  max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ═══════════════════════════════════════════════════════════
   BANDEAU OFFRES EN ATTENTE (vendeur)
═══════════════════════════════════════════════════════════ */
.tp-offers-banner {
  background: var(--bg-white);
  border: 2px solid var(--offer-color);
  border-radius: var(--card-radius);
  margin-bottom: 24px;
  overflow: hidden;
  box-shadow: 0 4px 20px var(--offer-glow);
  animation: tp-slide-down .4s var(--spring);
}

@keyframes tp-slide-down {
  from { opacity: 0; transform: translateY(-16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.tp-offers-banner__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: linear-gradient(135deg, var(--offer-color) 0%, var(--offer-light) 100%);
  color: #fff;
}

.tp-offers-banner__title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
}

.tp-offers-banner__title i { font-size: 16px; }

.tp-offers-banner__count {
  background: rgba(255,255,255,.25);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.tp-offers-banner__toggle {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
  border: none;
  color: #fff;
  font-size: 13px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all var(--transition-speed);
}

.tp-offers-banner__toggle:hover { background: rgba(255,255,255,.35); }
.tp-offers-banner__toggle.is-collapsed i { transform: rotate(-90deg); }
.tp-offers-banner__toggle i { transition: transform var(--transition-speed); }

.tp-offers-banner__list {
  overflow: hidden;
  transition: max-height .4s ease;
  max-height: 600px;
}

.tp-offers-banner__list.is-collapsed { max-height: 0; }

/* Ligne d'offre */
.tp-offer-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-color);
  transition: background var(--transition-speed);
  flex-wrap: wrap;
}

.tp-offer-row:last-child { border-bottom: none; }
.tp-offer-row:hover { background: var(--offer-pale); }

.tp-offer-row.is-processing { opacity: .6; pointer-events: none; }

.tp-offer-row.is-accepted {
  background: var(--accept-pale);
  animation: tp-row-flash-accept .5s ease;
}

.tp-offer-row.is-rejected {
  background: var(--reject-pale);
  animation: tp-row-flash-reject .5s ease;
}

@keyframes tp-row-flash-accept {
  0%   { background: rgba(22,163,74,.35); }
  100% { background: var(--accept-pale); }
}

@keyframes tp-row-flash-reject {
  0%   { background: rgba(220,38,38,.3); }
  100% { background: var(--reject-pale); }
}

.tp-offer-row__user { display: flex; align-items: center; gap: 10px; min-width: 160px; }

.tp-offer-row__avatar {
  width: 40px; height: 40px; border-radius: 50%; object-fit: cover;
  border: 2px solid var(--border-color);
  flex-shrink: 0;
}

.tp-offer-row__avatar--ph {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--offer-color) 0%, var(--offer-light) 100%);
  color: #fff; font-size: 16px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.tp-offer-row__name { font-size: 14px; font-weight: 700; color: var(--text-dark); }
.tp-offer-row__time { font-size: 12px; color: var(--text-light); }

.tp-offer-row__middle { flex: 1; min-width: 120px; }

.tp-offer-row__amount {
  font-family: 'Lato', sans-serif;
  font-size: 20px;
  font-weight: 900;
  color: var(--offer-color);
  line-height: 1;
}

.tp-offer-row__note { font-size: 12px; color: var(--text-secondary); margin-top: 3px; }

.tp-offer-row__actions { display: flex; gap: 8px; flex-shrink: 0; }

.tp-offer-row__btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 18px;
  border-radius: 8px;
  font-size: 13px; font-weight: 700;
  border: none; cursor: pointer;
  transition: all var(--transition-speed) var(--spring);
  font-family: inherit;
}

.tp-offer-row__btn:hover { transform: translateY(-2px); }

.tp-offer-row__btn--accept {
  background: linear-gradient(135deg, var(--accept-color) 0%, var(--accept-light) 100%);
  color: #fff;
  box-shadow: 0 3px 10px rgba(22,163,74,.3);
}
.tp-offer-row__btn--accept:hover { box-shadow: 0 6px 18px rgba(22,163,74,.4); }

.tp-offer-row__btn--reject {
  background: var(--bg-light-gray);
  color: var(--reject-color);
  border: 1.5px solid rgba(220,38,38,.25);
}
.tp-offer-row__btn--reject:hover { background: var(--reject-pale); }

.tp-offer-row__status-badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 700; padding: 6px 12px; border-radius: 99px;
}
.tp-offer-row__status-badge--accepted { background: var(--accept-pale); color: var(--accept-color); }
.tp-offer-row__status-badge--rejected { background: var(--reject-pale); color: var(--reject-color); }

/* ═══════════════════════════════════════════════════════════
   HERO GRID
═══════════════════════════════════════════════════════════ */
.tp-hero {
  display: grid;
  grid-template-columns: 1fr 440px;
  gap: 36px;
  align-items: start;
  margin-bottom: 44px;
}

/* ═══════════════════════════════════════════════════════════
   GALERIE
═══════════════════════════════════════════════════════════ */
.tp-gallery {
  position: sticky;
  top: calc(var(--header-height) + 16px);
}

.tp-gallery__main {
  position: relative;
  background: var(--bg-white);
  border-radius: var(--card-radius);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  box-shadow: 0 2px 12px var(--shadow-light);
  cursor: zoom-in;
  border: 1.5px solid transparent;
  transition: box-shadow var(--transition-speed), border-color var(--transition-speed);
}

.tp-gallery__main:hover {
  box-shadow: 0 8px 28px var(--shadow-medium);
  border-color: rgba(246, 107, 14, 0.1);
}

.tp-gallery__img {
  width: 100%; height: 100%; object-fit: contain;
  transition: transform .42s ease, opacity .28s ease;
}

.tp-gallery__img.is-fading { opacity: 0; transform: scale(.98); }

.tp-gallery__zoom {
  position: absolute; bottom: 14px; right: 14px;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.9); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: var(--text-secondary);
  box-shadow: 0 2px 8px var(--shadow-medium);
  transition: all var(--transition-speed); z-index: 2; border: none; cursor: pointer;
}
.tp-gallery__zoom:hover { transform: scale(1.1); color: var(--primary-orange); }

.tp-gallery__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255,255,255,.92); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; color: var(--text-dark);
  box-shadow: 0 4px 14px var(--shadow-medium);
  transition: all var(--transition-speed) var(--spring); z-index: 2; opacity: 0;
  border: none; cursor: pointer;
}
.tp-gallery__main:hover .tp-gallery__nav { opacity: 1; }
.tp-gallery__nav:hover { background: var(--bg-white); transform: translateY(-50%) scale(1.1); color: var(--primary-orange); }
.tp-gallery__nav--prev { left: 12px; }
.tp-gallery__nav--next { right: 12px; }

.tp-gallery__counter {
  position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%);
  background: rgba(33,33,33,.55); backdrop-filter: blur(6px);
  color: #fff; font-size: 12px; font-weight: 600;
  padding: 4px 12px; border-radius: 99px; letter-spacing: .04em;
}

.tp-reserved-ribbon { position: absolute; top: 18px; left: -8px; z-index: 3; }
.tp-reserved-ribbon span {
  display: inline-block; background: var(--warning); color: var(--text-dark);
  font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 5px 16px 5px 12px;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 50%, calc(100% - 8px) 100%, 0 100%);
  border-radius: 2px 0 0 2px;
}

.tp-gallery__thumbs {
  display: flex; flex-direction: row; flex-wrap: nowrap;
  gap: 10px; margin-top: 12px;
  overflow-x: auto; overflow-y: visible; padding-bottom: 6px;
  scrollbar-width: thin; scrollbar-color: var(--border-color) transparent;
  -webkit-overflow-scrolling: touch;
}
.tp-gallery__thumbs::-webkit-scrollbar { height: 4px; }
.tp-gallery__thumbs::-webkit-scrollbar-track { background: transparent; }
.tp-gallery__thumbs::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 4px; }

.tp-gallery__thumb {
  flex: 0 0 72px; width: 72px; height: 72px;
  border-radius: 8px; overflow: hidden;
  border: 2px solid transparent;
  transition: all var(--transition-speed); cursor: pointer;
  background: var(--bg-white); padding: 0; display: block;
}
.tp-gallery__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.tp-gallery__thumb:hover { border-color: var(--primary-orange-light); }
.tp-gallery__thumb.is-active { border-color: var(--primary-orange); box-shadow: 0 0 0 2px var(--orange-glow); }

.tp-gallery__empty {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  font-size: 48px; color: var(--border-color);
}

/* ═══════════════════════════════════════════════════════════
   PANNEAU INFO
═══════════════════════════════════════════════════════════ */
.tp-info { display: flex; flex-direction: column; gap: 18px; }

.tp-info__toprow {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}

.tp-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 14px;
  background: var(--orange-pale); color: var(--primary-orange-hover);
  font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  border-radius: 99px;
}

.tp-info__acts { display: flex; gap: 8px; }

.tp-act-btn {
  position: relative; width: 40px; height: 40px; border-radius: 50%;
  background: var(--bg-white); border: 1.5px solid var(--border-color);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: var(--text-secondary);
  box-shadow: 0 1px 4px var(--shadow-light);
  transition: all var(--transition-speed) var(--spring);
  overflow: visible; cursor: pointer;
}
.tp-act-btn:hover { border-color: var(--primary-orange); color: var(--primary-orange); transform: scale(1.1); background: var(--orange-pale); }
.tp-act-btn--fav.is-active { background: #fef2f2; border-color: #fca5a5; color: var(--danger); }
.tp-act-btn--fav.is-active:hover { background: #fee2e2; }

.tp-act-btn__count {
  position: absolute; bottom: -6px; right: -6px;
  background: linear-gradient(135deg, var(--primary-orange) 0%, var(--primary-orange-light) 100%);
  color: #fff; font-size: 10px; font-weight: 800;
  min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center; line-height: 1;
}

.tp-info__title {
  font-family: 'Lato', 'Roboto', sans-serif;
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 900; line-height: 1.25; color: var(--text-dark); letter-spacing: -.3px;
}

/* Bloc prix */
.tp-price-block {
  background: linear-gradient(135deg, #1A1A2E 0%, #16213E 50%, #0F3460 100%);
  border-radius: var(--card-radius); padding: 18px 22px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; position: relative; overflow: hidden;
}
.tp-price-block::before {
  content: ''; position: absolute; top: -40%; right: -5%;
  width: 180px; height: 180px; border-radius: 50%;
  background: radial-gradient(circle, rgba(246,107,14,.18) 0%, transparent 70%);
  pointer-events: none;
}
.tp-price-block__main { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; position: relative; }
.tp-price-block__amount {
  font-family: 'Lato', sans-serif;
  font-size: clamp(22px, 3.5vw, 32px); font-weight: 900; color: #fff; letter-spacing: -.03em; line-height: 1;
}
.tp-price-block__amount.price-updated {
  animation: tp-price-pop .5s var(--spring);
  color: var(--accept-light) !important;
}
@keyframes tp-price-pop {
  0%   { transform: scale(1.3); color: #fff; }
  100% { transform: scale(1); }
}
.tp-price-block__original { font-size: 15px; color: rgba(255,255,255,.45); text-decoration: line-through; }
.tp-price-block__badge {
  background: linear-gradient(135deg, var(--primary-orange) 0%, var(--primary-orange-light) 100%);
  color: #fff; font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 99px;
}

.tp-pill {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 700; padding: 5px 13px; border-radius: 99px;
}
.tp-pill--green  { background: rgba(76,175,80,.12); color: #2e7d32; }
.tp-pill--blue   { background: rgba(29,161,242,.1); color: #0e76a8; }
.tp-pill--purple { background: var(--offer-pale); color: var(--offer-color); }
.tp-pill--orange { background: var(--orange-pale); color: var(--primary-orange-hover); }

.tp-type-badges { display: flex; gap: 8px; flex-wrap: wrap; }

/* Spécifications */
.tp-specs {
  list-style: none; background: var(--bg-white);
  border-radius: var(--card-radius); overflow: hidden;
  box-shadow: 0 2px 12px var(--shadow-light);
  border: 1.5px solid transparent;
  transition: box-shadow var(--transition-speed), border-color var(--transition-speed);
}
.tp-specs:hover { box-shadow: 0 6px 20px var(--shadow-medium); border-color: rgba(246,107,14,.08); }
.tp-specs li {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--border-color);
  transition: background var(--transition-speed);
}
.tp-specs li:last-child { border-bottom: none; }
.tp-specs li:hover { background: var(--bg-light-gray); }
.tp-specs__label { font-size: 13px; color: var(--text-secondary); font-weight: 500; flex-shrink: 0; min-width: 110px; }
.tp-specs__val { font-size: 13px; font-weight: 600; color: var(--text-dark); text-align: right; display: flex; align-items: center; gap: 5px; }
.tp-specs__val--badge { background: var(--orange-pale); color: var(--primary-orange-hover); padding: 3px 10px; border-radius: 99px; font-size: 11px; font-weight: 700; }

.tp-amenities { margin-top: 4px; }
.tp-amenities__label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--text-light); margin-bottom: 8px; }
.tp-amenities__grid { display: flex; flex-wrap: wrap; gap: 8px; }

/* ═══════════════════════════════════════════════════════════
   CTA BUTTONS — avec bouton offre
═══════════════════════════════════════════════════════════ */
.tp-cta { display: flex; flex-direction: column; gap: 10px; }

.tp-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 9px; padding: 14px 22px; border-radius: 10px;
  font-size: 15px; font-weight: 700; letter-spacing: .2px;
  transition: all var(--transition-speed) var(--spring);
  position: relative; overflow: hidden; font-family: inherit; border: none; cursor: pointer; text-decoration: none;
}
.tp-btn::after { content: ''; position: absolute; inset: 0; background: rgba(255,255,255,.12); opacity: 0; transition: opacity .16s; }
.tp-btn:hover::after { opacity: 1; }
.tp-btn:active { transform: scale(.97); }

.tp-btn--primary {
  background: linear-gradient(135deg, var(--primary-orange) 0%, var(--primary-orange-light) 100%);
  color: #fff; box-shadow: 0 4px 12px rgba(246,107,14,.3);
}
.tp-btn--primary:hover { box-shadow: 0 8px 24px rgba(246,107,14,.4); transform: translateY(-2px); color: #fff; }

.tp-btn--secondary { background: var(--text-dark); color: #fff; box-shadow: 0 4px 12px var(--shadow-medium); }
.tp-btn--secondary:hover { background: #333; transform: translateY(-2px); color: #fff; }

.tp-btn--ghost { background: var(--bg-white); color: var(--primary-orange); border: 1.5px solid var(--primary-orange); }
.tp-btn--ghost:hover { background: var(--orange-pale); transform: translateY(-2px); }

.tp-btn--danger {
  background: linear-gradient(135deg, var(--danger) 0%, #FF6B6B 100%);
  color: #fff; box-shadow: 0 4px 12px rgba(255,59,48,.25);
}
.tp-btn--danger:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(255,59,48,.35); color: #fff; }

/* ── Bouton OFFRE ── */
.tp-btn--offer {
  background: linear-gradient(135deg, var(--offer-color) 0%, var(--offer-light) 100%);
  color: #fff;
  box-shadow: 0 4px 14px var(--offer-glow);
  border: none;
  position: relative;
  overflow: hidden;
}
.tp-btn--offer::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,.15) 60%, transparent 80%);
  transform: translateX(-100%);
  transition: transform .5s ease;
}
.tp-btn--offer:hover::before { transform: translateX(100%); }
.tp-btn--offer:hover { box-shadow: 0 8px 24px var(--offer-glow); transform: translateY(-2px); color: #fff; }

/* Bouton submit offre dans modal */
.tp-btn--offer-submit {
  background: linear-gradient(135deg, var(--offer-color) 0%, var(--offer-light) 100%);
  color: #fff;
  box-shadow: 0 4px 14px var(--offer-glow);
  border: none;
}
.tp-btn--offer-submit:hover { box-shadow: 0 8px 24px var(--offer-glow); transform: translateY(-2px); color: #fff; }

.tp-btn--full { width: 100%; }
.tp-btn.is-loading { pointer-events: none; opacity: .7; }
.tp-btn.is-loading::before {
  content: ''; width: 15px; height: 15px;
  border: 2px solid rgba(255,255,255,.4); border-top-color: #fff;
  border-radius: 50%; animation: tp-spin .6s linear infinite; margin-right: 4px;
}

.tp-login-prompt {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: var(--bg-light-gray); padding: 14px 18px; border-radius: 10px;
  font-size: 14px; color: var(--text-secondary); border: 1px solid var(--border-color);
}
.tp-login-prompt i { color: var(--primary-orange); }
.tp-login-prompt .tp-btn { margin-left: auto; padding: 9px 18px; font-size: 14px; }

/* ═══════════════════════════════════════════════════════════
   CARTE VENDEUR
═══════════════════════════════════════════════════════════ */
.tp-seller {
  background: var(--bg-white); border-radius: var(--card-radius); padding: 18px;
  box-shadow: 0 2px 12px var(--shadow-light); border: 1.5px solid transparent;
  transition: box-shadow var(--transition-speed), border-color var(--transition-speed);
}
.tp-seller:hover { box-shadow: 0 8px 24px var(--shadow-medium); border-color: rgba(246,107,14,.1); }
.tp-seller__label { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-light); margin-bottom: 12px; }
.tp-seller__body { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.tp-seller__avatar-wrap { position: relative; flex-shrink: 0; }
.tp-seller__avatar { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; border: 2px solid var(--border-color); display: block; }
.tp-seller__avatar--placeholder {
  width: 54px; height: 54px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-orange) 0%, var(--primary-orange-light) 100%);
  color: #fff; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 700;
}
.tp-seller__verified {
  position: absolute; bottom: -2px; right: -2px; width: 20px; height: 20px;
  background: var(--bg-white); border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: var(--verified-color); box-shadow: 0 1px 4px var(--shadow-medium);
}
.tp-seller__verified-inline {
  display: inline-flex; align-items: center; color: var(--verified-color);
  font-size: 13px; margin-left: 4px; vertical-align: middle; position: relative; cursor: default;
}
.tp-seller__verified-inline::after {
  content: "Vendeur vérifié"; position: absolute; bottom: calc(100% + 7px); left: 50%; transform: translateX(-50%);
  background: var(--text-dark); color: #fff; font-size: 11px; font-weight: 600; white-space: nowrap;
  padding: 5px 10px; border-radius: 6px; pointer-events: none; opacity: 0; transition: opacity var(--transition-speed); z-index: 10;
}
.tp-seller__verified-inline:hover::after { opacity: 1; }
.tp-seller__meta { flex: 1; min-width: 0; }
.tp-seller__name {
  font-size: 15px; font-weight: 700; color: var(--text-dark); transition: color var(--transition-speed);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  display: flex; align-items: center; text-decoration: none;
}
.tp-seller__name:hover { color: var(--primary-orange); }
.tp-seller__stats { display: flex; gap: 12px; margin-top: 4px; font-size: 12px; color: var(--text-secondary); }
.tp-seller__stats i { color: var(--warning); margin-right: 3px; }
.tp-seller__stats em { color: var(--text-secondary); font-style: normal; }
.tp-seller__since { font-size: 12px; color: var(--text-light); margin-top: 2px; }
.tp-seller__profile-btn {
  display: inline-flex; align-items: center; gap: 5px; padding: 8px 14px; border-radius: 8px;
  background: var(--bg-light-gray); font-size: 13px; font-weight: 700; color: var(--text-secondary);
  margin-left: auto; transition: all var(--transition-speed); white-space: nowrap; flex-shrink: 0; text-decoration: none;
}
.tp-seller__profile-btn:hover { background: var(--orange-pale); color: var(--primary-orange); }

/* ═══════════════════════════════════════════════════════════
   SECTIONS
═══════════════════════════════════════════════════════════ */
.tp-section {
  background: var(--bg-white); border-radius: var(--card-radius); padding: 30px; margin-bottom: 22px;
  box-shadow: 0 2px 12px var(--shadow-light); border: 1.5px solid transparent;
  transition: box-shadow var(--transition-speed), border-color var(--transition-speed);
}
.tp-section:hover { box-shadow: 0 8px 28px var(--shadow-medium); border-color: rgba(246,107,14,.08); }
.tp-section__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; gap: 12px; }
.tp-section__title {
  font-family: 'Lato', 'Roboto', sans-serif; font-size: clamp(17px, 2.5vw, 20px);
  font-weight: 900; color: var(--text-dark); letter-spacing: -.2px; position: relative; padding-bottom: 8px;
}
.tp-section__title::after {
  content: ''; position: absolute; bottom: 0; left: 0; width: 30px; height: 3px;
  background: linear-gradient(135deg, var(--primary-orange) 0%, var(--primary-orange-light) 100%); border-radius: 2px;
}

.tp-description {
  font-size: 15px; line-height: 1.8; color: var(--text-secondary);
  max-height: 200px; overflow: hidden; transition: max-height .42s ease; position: relative;
}
.tp-description.is-expanded { max-height: 2000px; }
.tp-description::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 60px;
  background: linear-gradient(to bottom, transparent, var(--bg-white)); pointer-events: none; transition: opacity var(--transition-speed);
}
.tp-description.is-expanded::after { opacity: 0; }
.tp-expand-btn {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 14px;
  color: var(--primary-orange); font-size: 14px; font-weight: 700;
  background: none; border: none; cursor: pointer; padding: 0; transition: color var(--transition-speed);
}
.tp-expand-btn i { transition: transform var(--transition-speed) ease; }
.tp-expand-btn[aria-expanded="true"] i { transform: rotate(180deg); }
.tp-expand-btn:hover { color: var(--primary-orange-hover); }
.tp-link-more { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 700; color: var(--primary-orange); text-decoration: none; transition: gap var(--transition-speed); }
.tp-link-more:hover { gap: 8px; }

/* Avis */
.tp-reviews { display: flex; flex-direction: column; gap: 14px; }
.tp-review { background: var(--bg-light-gray); border-radius: var(--card-radius); padding: 18px; border: 1.5px solid transparent; transition: all var(--transition-speed); }
.tp-review:hover { box-shadow: 0 6px 20px var(--shadow-medium); border-color: rgba(246,107,14,.1); }
.tp-review__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.tp-review__user { display: flex; align-items: center; gap: 10px; }
.tp-review__avatar { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.tp-review__avatar--ph {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-orange) 0%, var(--primary-orange-light) 100%);
  color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px;
}
.tp-review__name { font-size: 14px; font-weight: 700; color: var(--text-dark); }
.tp-review__date { font-size: 12px; color: var(--text-light); }
.tp-stars { display: flex; gap: 2px; }
.tp-stars i { font-size: 12px; color: var(--border-color); }
.tp-stars i.is-on { color: var(--warning); }
.tp-review__text { font-size: 14px; line-height: 1.7; color: var(--text-secondary); }

/* Similaires */
.tp-similar-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
a.tp-sim-card { text-decoration: none; color: inherit; display: flex; flex-direction: column; }
a.tp-sim-card:visited, a.tp-sim-card:hover, a.tp-sim-card:focus { text-decoration: none; color: inherit; outline: none; }
.tp-sim-card {
  background: var(--bg-white); border-radius: var(--card-radius); overflow: hidden;
  box-shadow: 0 2px 12px var(--shadow-light); border: 1.5px solid transparent;
  transition: all var(--transition-speed) var(--spring);
}
.tp-sim-card:hover { box-shadow: 0 12px 36px var(--shadow-medium); transform: translateY(-5px); border-color: rgba(246,107,14,.12); }
.tp-sim-card__img { aspect-ratio: 1; overflow: hidden; background: var(--bg-light-gray); }
.tp-sim-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .42s ease; }
.tp-sim-card:hover .tp-sim-card__img img { transform: scale(1.07); }
.tp-sim-card__body { padding: 14px; flex: 1; }
.tp-sim-card__title { font-size: 13px; font-weight: 600; color: var(--text-dark); margin-bottom: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.4; }
.tp-sim-card__price { font-size: 15px; font-weight: 800; color: var(--primary-orange); margin-bottom: 4px; }
.tp-sim-card__loc { font-size: 12px; color: var(--text-light); display: flex; align-items: center; gap: 4px; }

/* ═══════════════════════════════════════════════════════════
   BARRE SIGNALEMENT
═══════════════════════════════════════════════════════════ */
.tp-report-bar { display: flex; justify-content: center; padding: 14px 0 6px; }
.tp-report-btn {
  display: inline-flex; align-items: center; gap: 7px; color: var(--text-light);
  font-size: 13px; font-weight: 600; padding: 8px 16px; border-radius: 8px;
  transition: all var(--transition-speed); background: none; border: none; cursor: pointer; font-family: inherit;
}
.tp-report-btn:hover { background: rgba(255,59,48,.08); color: var(--danger); }

/* ═══════════════════════════════════════════════════════════
   MODALES
═══════════════════════════════════════════════════════════ */
.tp-modal {
  display: none; position: fixed; inset: 0; z-index: 9000;
  background: rgba(33,33,33,.72); backdrop-filter: blur(4px);
  align-items: center; justify-content: center; padding: 20px;
  animation: tp-fade-in .28s ease;
}
.tp-modal.is-open { display: flex; }

.tp-modal__dialog {
  background: var(--bg-white); border-radius: var(--card-radius); padding: 32px;
  max-width: 500px; width: 100%; position: relative;
  animation: tp-slide-up .28s var(--spring);
  max-height: 90vh; overflow-y: auto;
  box-shadow: 0 20px 60px var(--shadow-strong);
}
.tp-modal__dialog--sm { max-width: 380px; }

.tp-modal__title { font-family: 'Lato', sans-serif; font-size: 19px; font-weight: 900; color: var(--text-dark); margin-bottom: 22px; padding-right: 36px; }
.tp-modal__close {
  position: absolute; top: 18px; right: 18px; width: 34px; height: 34px; border-radius: 50%;
  background: var(--bg-light-gray); border: none; display: flex; align-items: center; justify-content: center;
  font-size: 15px; color: var(--text-secondary); transition: all var(--transition-speed); cursor: pointer; z-index: 1;
}
.tp-modal__close:hover { background: rgba(255,59,48,.1); color: var(--danger); transform: scale(1.1); }

.tp-modal--fullscreen { padding: 0; }
.tp-modal--fullscreen .tp-modal__zoom-img { max-width: 92vw; max-height: 92vh; object-fit: contain; border-radius: 8px; animation: tp-slide-up .28s var(--spring); }
.tp-modal__close-top {
  position: fixed; top: 20px; right: 20px; width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.15); backdrop-filter: blur(6px); border: none;
  display: flex; align-items: center; justify-content: center; font-size: 20px; color: #fff;
  transition: background var(--transition-speed); z-index: 10; cursor: pointer;
}
.tp-modal__close-top:hover { background: rgba(255,255,255,.25); }
.tp-modal__nav {
  position: fixed; top: 50%; transform: translateY(-50%); width: 50px; height: 50px; border-radius: 50%;
  background: rgba(255,255,255,.15); backdrop-filter: blur(6px); border: none;
  display: flex; align-items: center; justify-content: center; font-size: 20px; color: #fff;
  transition: background var(--transition-speed); z-index: 10; cursor: pointer;
}
.tp-modal__nav--prev { left: 20px; }
.tp-modal__nav--next { right: 20px; }
.tp-modal__nav:hover { background: rgba(255,255,255,.25); }

/* ── Contenu interne modale offre ── */
.tp-offer-modal-header {
  display: flex; align-items: center; gap: 14px; margin-bottom: 20px;
}
.tp-offer-modal-icon {
  width: 50px; height: 50px; border-radius: 14px;
  background: linear-gradient(135deg, var(--offer-color) 0%, var(--offer-light) 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: #fff;
  box-shadow: 0 6px 18px var(--offer-glow); flex-shrink: 0;
}
.tp-offer-modal-sub { font-size: 13px; color: var(--text-light); }
.tp-offer-modal-header .tp-modal__title { margin-bottom: 0; padding-right: 0; }

.tp-offer-current-price {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--bg-light-gray); border-radius: 10px; padding: 12px 18px;
  margin-bottom: 20px; border: 1px solid var(--border-color);
}
.tp-offer-current-price__label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--text-light); }
.tp-offer-current-price__value { font-family: 'Lato', sans-serif; font-size: 20px; font-weight: 900; color: var(--text-dark); }

.tp-offer-input-wrap { position: relative; }
.tp-offer-input-prefix {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  font-size: 13px; font-weight: 700; color: var(--offer-color);
}
.tp-offer-input { padding-left: 48px !important; font-size: 18px !important; font-weight: 700 !important; }
.tp-offer-input:focus { border-color: var(--offer-color) !important; box-shadow: 0 0 0 3px var(--offer-glow) !important; }

.tp-offer-diff {
  margin-top: 6px; font-size: 12px; font-weight: 700;
  min-height: 18px; transition: all .2s ease;
}
.tp-offer-diff--lower { color: var(--accept-color); }
.tp-offer-diff--higher { color: var(--reject-color); }
.tp-offer-diff--same { color: var(--text-secondary); }

/* Formulaires */
.tp-form { display: flex; flex-direction: column; gap: 16px; }
.tp-form__group { display: flex; flex-direction: column; gap: 6px; }
.tp-form__label { font-size: 13px; font-weight: 700; color: var(--text-secondary); text-transform: uppercase; letter-spacing: .4px; }
.tp-form__hint { font-size: 12px; color: var(--text-light); }
.tp-form__input,
.tp-form__select,
.tp-form__textarea {
  padding: 11px 14px; border: 1.5px solid var(--border-color); border-radius: 10px;
  font-size: 14px; font-family: inherit; color: var(--text-dark);
  background: var(--bg-light-gray); transition: all var(--transition-speed); outline: none; resize: vertical;
}
.tp-form__input:focus, .tp-form__select:focus, .tp-form__textarea:focus {
  border-color: var(--primary-orange); background: var(--bg-white); box-shadow: 0 0 0 3px var(--orange-glow);
}
.tp-form__textarea { min-height: 110px; }

/* Partage */
.tp-share-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.tp-share-tile {
  display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 16px 10px;
  border-radius: 10px; font-size: 13px; font-weight: 700; color: #fff;
  transition: all var(--transition-speed) var(--spring); text-decoration: none; border: none; cursor: pointer;
}
.tp-share-tile:hover { transform: translateY(-3px); filter: brightness(1.1); }
.tp-share-tile i { font-size: 20px; }
.tp-share-tile--fb { background: #1877F2; }
.tp-share-tile--wa { background: #25D366; }
.tp-share-tile--tw { background: #000; }
.tp-share-tile--cp { background: var(--text-dark); }
.tp-share-url input { width: 100%; padding: 10px 13px; border: 1.5px solid var(--border-color); border-radius: 8px; font-size: 13px; background: var(--bg-light-gray); color: var(--text-secondary); outline: none; font-family: inherit; }

/* ═══════════════════════════════════════════════════════════
   TOASTS
═══════════════════════════════════════════════════════════ */
.tp-toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 99999; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.tp-toast {
  display: flex; align-items: center; gap: 12px; background: var(--text-dark); color: #fff;
  padding: 13px 18px; border-radius: 12px; font-size: 13px; font-weight: 600;
  box-shadow: 0 6px 24px var(--shadow-strong); pointer-events: all;
  transform: translateX(120%); animation: tp-toast-in .42s var(--spring) forwards;
  border-left: 4px solid var(--primary-orange); min-width: 240px; max-width: 360px;
}
.tp-toast--success { border-left-color: var(--success); }
.tp-toast--error   { border-left-color: var(--danger); }
.tp-toast--warning { border-left-color: var(--warning); }
.tp-toast--offer   { border-left-color: var(--offer-color); }
.tp-toast i { font-size: 16px; flex-shrink: 0; }
.tp-toast--success i { color: var(--success); }
.tp-toast--error i   { color: var(--danger); }
.tp-toast--warning i { color: var(--warning); }
.tp-toast--offer i   { color: var(--offer-light); }
.tp-toast.is-leaving { animation: tp-toast-out .25s ease forwards; }

/* ═══════════════════════════════════════════════════════════
   SCROLL TO TOP
═══════════════════════════════════════════════════════════ */
.tp-scroll-top {
  position: fixed; bottom: 32px; right: 32px; width: 46px; height: 46px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-orange) 0%, var(--primary-orange-light) 100%);
  color: #fff; border: none; display: flex; align-items: center; justify-content: center;
  font-size: 17px; box-shadow: 0 4px 16px rgba(246,107,14,.35);
  z-index: 999; opacity: 0; pointer-events: none; transform: translateY(12px);
  transition: all var(--transition-speed) var(--spring); cursor: pointer;
}
.tp-scroll-top.is-visible { opacity: 1; pointer-events: all; transform: translateY(0); }
.tp-scroll-top:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(246,107,14,.5); }

/* ═══════════════════════════════════════════════════════════
   ANIMATIONS
═══════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .tp-hero { grid-template-columns: 1fr 400px; gap: 24px; }
}

@media (max-width: 900px) {
  .tp-hero { grid-template-columns: 1fr; gap: 0; }
  .tp-gallery { position: static; margin-bottom: 22px; }
  .tp-gallery__main { max-height: 420px; }
}

@media (max-width: 768px) {
  :root { --header-height: 60px; }
  .tp-container { padding: 0 16px; }
  .tp-main { padding: 16px 0 32px; }
  .tp-section { padding: 22px 18px; border-radius: 14px; }
  .tp-info__title { font-size: 20px; }
  .tp-price-block__amount { font-size: 24px; }
  .tp-similar-grid { grid-template-columns: repeat(2, 1fr); }
  .tp-toast-container { right: 12px; left: 12px; bottom: 16px; }
  .tp-toast { min-width: unset; max-width: 100%; }
  .tp-scroll-top { bottom: 80px; right: 14px; }

  /* Bandeau offres responsive */
  .tp-offer-row { flex-wrap: wrap; }
  .tp-offer-row__actions { width: 100%; justify-content: flex-end; }
  .tp-offer-row__btn { flex: 1; justify-content: center; }
}

@media (max-width: 480px) {
  .tp-gallery__main { max-height: 320px; }
  .tp-specs__label { min-width: 90px; font-size: 12px; }
  .tp-specs li { padding: 10px 14px; }
  .tp-modal__dialog { padding: 22px 18px; border-radius: 14px; }
  .tp-similar-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .tp-gallery__thumb { flex: 0 0 60px; width: 60px; height: 60px; }
  .tp-offer-row__user { min-width: unset; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

@media print {
  .tp-modal, .tp-toast-container, .tp-scroll-top, .tp-report-bar { display: none; }
}