/* ==========================================================
   REVIXA — Design system
   Concept : la fiche d'annonce reprend le langage visuel
   d'un TICKET DE DIAGNOSTIC D'ATELIER (comme une étiquette
   accrochée à un appareil en réparation) : bord perforé,
   bande code-barre, tampon de prix en monospace, statut
   façon sticker d'état. Ancré dans le métier de l'atelier.
   ========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=JetBrains+Mono:wght@400;600;700&family=Inter:wght@400;500;600&display=swap');

:root {
  --ink:        #16211f;
  --ink-soft:   #445048;
  --paper:      #eef0ea;
  --card:       #ffffff;
  --line:       #ccd2c5;
  --line-soft:  #e2e6dd;
  --signal:     #ff5a1f;
  --signal-ink: #7a2b0d;
  --circuit:    #3E9B3B;
  --circuit-light: #E5F4E1;
  --danger:     #c23b3b;

  --font-display: 'Space Grotesk', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --radius: 10px;
  --shadow-card: 0 1px 2px rgba(22,33,31,.06), 0 8px 24px -12px rgba(22,33,31,.18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 .5em;
  letter-spacing: -0.01em;
}
p { margin: 0 0 1em; color: var(--ink-soft); }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-display); font-weight: 600; font-size: 15px;
  padding: 11px 20px; border-radius: 8px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .12s ease, background .15s ease, border-color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #263631; }
.btn-signal { background: var(--signal); color: #fff; }
.btn-signal:hover { background: #e64f16; }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-text { background: none; color: var(--ink-soft); padding: 11px 8px; }
.btn-text:hover { color: var(--ink); }
.btn-block { width: 100%; }
.btn-sm { padding: 7px 14px; font-size: 13px; border-radius: 6px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 28px; height: 68px; }
.logo { display: flex; align-items: center; gap: 8px; font-family: var(--font-display); font-size: 19px; color: var(--ink); }
.logo-mark { color: var(--ink); flex-shrink: 0; }
.logo-text { letter-spacing: .01em; }
.logo-text .logo-x { color: var(--circuit); }
.footer-logo, .footer-logo .logo-mark, .footer-logo .logo-text { color: #fff; }
.main-nav { display: flex; gap: 22px; flex: 1; font-size: 14.5px; font-weight: 500; }
.main-nav a:hover { color: var(--circuit); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.mobile-actions { display: none; }
.icon-link { font-size: 18px; padding: 6px; position: relative; display: inline-flex; }
.msg-badge {
  position: absolute; top: -2px; right: -4px; background: var(--signal); color: #fff;
  font-family: var(--font-mono); font-size: 10px; font-weight: 700; line-height: 1;
  min-width: 16px; height: 16px; border-radius: 999px; display: flex; align-items: center; justify-content: center;
  padding: 0 3px; box-shadow: 0 0 0 2px var(--paper);
}
.nav-burger { display: none; background: none; border: none; font-size: 22px; cursor: pointer; }

/* ---------- Hero ---------- */
.hero { padding: 64px 0 48px; border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 12.5px; font-weight: 600; letter-spacing: .04em;
  color: var(--circuit); background: var(--circuit-light); padding: 6px 12px; border-radius: 999px;
  margin-bottom: 18px;
}
.eyebrow::before { content: '●'; font-size: 8px; }
.hero h1 { font-size: clamp(32px, 4.2vw, 50px); max-width: 15ch; }
.hero h1 em { font-style: normal; color: var(--signal); }
.hero-lead { font-size: 17.5px; max-width: 46ch; }
.hero-actions { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 28px; margin-top: 38px; font-family: var(--font-mono); }
.hero-stats div strong { display: block; font-size: 22px; color: var(--ink); }
.hero-stats div span { font-size: 12px; color: var(--ink-soft); }

/* Signature diagnostic-ticket illustration in hero */
.hero-visual { position: relative; }
.hero-photo { width: 90%; max-width: 380px; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-card); }
.hero-photo img { width: 100%; display: block; aspect-ratio: 1/1; object-fit: cover; }
.ticket-demo {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow-card);
  position: relative; padding: 22px 22px 18px; transform: rotate(-2deg);
  border: 1px solid var(--line-soft);
  margin: -70px 0 0 auto; width: 88%; max-width: 320px; z-index: 2;
}
.ticket-demo::before {
  content: ''; position: absolute; top: -1px; left: 24px; right: 24px; height: 0;
  border-top: 2px dashed var(--line);
}
.ticket-demo::after {
  content: ''; position: absolute; top: -9px; left: 50%; transform: translateX(-50%);
  width: 18px; height: 18px; background: var(--paper); border: 1px solid var(--line); border-radius: 50%;
}
.ticket-demo .ticket-head { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 11px; color: var(--ink-soft); margin-bottom: 12px; }
.ticket-demo h3 { font-size: 19px; margin-bottom: 4px; }
.ticket-demo .ticket-badge { display: inline-block; font-family: var(--font-mono); font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 4px; background: #fdecec; color: var(--danger); margin-bottom: 10px; }
.ticket-demo .ticket-price { font-family: var(--font-mono); font-size: 26px; font-weight: 700; color: var(--signal); }

/* ---------- Section headers ---------- */
.section { padding: 56px 0; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 28px; gap: 16px; flex-wrap: wrap; }
.section-head h2 { font-size: 27px; }

/* ---------- Filters bar ---------- */
.filters-bar {
  display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px; margin-bottom: 28px;
}
.filters-bar select, .filters-bar input[type="text"], .filters-bar input[type="number"] {
  font-family: var(--font-body); border: 1px solid var(--line); border-radius: 7px;
  padding: 9px 11px; font-size: 14px; background: var(--paper); color: var(--ink);
}
.filters-bar input[type="text"] { flex: 1; min-width: 180px; }

/* ---------- Listing grid & TICKET card (signature element) ---------- */
.annonces-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }

.ticket-card {
  background: var(--card); border-radius: var(--radius); border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-card); overflow: hidden; display: flex; flex-direction: column;
  transition: transform .15s ease, box-shadow .15s ease;
  position: relative;
}
.ticket-card:hover { transform: translateY(-3px); box-shadow: 0 4px 8px rgba(22,33,31,.08), 0 16px 32px -14px rgba(22,33,31,.24); }

.ticket-photo { position: relative; aspect-ratio: 4/3; background: var(--paper); overflow: hidden; }
.ticket-photo img { width: 100%; height: 100%; object-fit: cover; }
.ticket-photo .no-photo { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 34px; color: var(--line); }
.ticket-photo .no-photo-icon { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--line); }
.ticket-photo .no-photo-icon svg { width: 40%; height: 40%; }
.ticket-status {
  position: absolute; top: 10px; left: 10px; font-family: var(--font-mono); font-size: 10.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .03em; background: #fff; color: var(--danger);
  padding: 4px 8px; border-radius: 4px; box-shadow: 0 1px 3px rgba(0,0,0,.15);
}

.ticket-perf {
  height: 0; border-top: 2px dashed var(--line-soft); position: relative; margin: 0 14px;
}
.ticket-perf::before, .ticket-perf::after {
  content: ''; position: absolute; top: -6px; width: 12px; height: 12px; background: var(--paper);
  border: 1px solid var(--line-soft); border-radius: 50%;
}
.ticket-perf::before { left: -20px; }
.ticket-perf::after { right: -20px; }

.ticket-body { padding: 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.ticket-cat { font-family: var(--font-mono); font-size: 11px; color: var(--circuit); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.ticket-title { font-family: var(--font-display); font-size: 16.5px; font-weight: 600; }
.ticket-meta { font-size: 13px; color: var(--ink-soft); display: flex; gap: 6px; align-items: center; }
.ticket-foot { display: flex; justify-content: space-between; align-items: center; padding-top: 6px; margin-top: auto; }
.ticket-price { font-family: var(--font-mono); font-size: 19px; font-weight: 700; color: var(--signal); }
.ticket-loc { font-size: 12px; color: var(--ink-soft); }

/* ---------- Device showcase (icônes originales, pas de photos produit) ---------- */
.devices-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 16px; }
.device-card {
  background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 0 0 18px; text-align: center; position: relative; overflow: hidden;
  transition: transform .15s ease, box-shadow .15s ease;
}
.device-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); }
.device-photo { width: 100%; aspect-ratio: 4/3; overflow: hidden; margin-bottom: 12px; background: var(--paper); position: relative; }
.device-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.device-icon-badge {
  position: absolute; bottom: -16px; left: 50%; transform: translateX(-50%);
  width: 40px; height: 40px; border-radius: 50%; background: var(--card);
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-card);
  color: var(--circuit); border: 1px solid var(--line-soft);
}
.device-card:nth-child(2n) .device-icon-badge { color: var(--signal); }
.device-card h4 { font-family: var(--font-display); font-size: 15px; margin: 22px 0 4px; }
.device-card p { font-size: 12.5px; color: var(--ink-soft); margin: 0; padding: 0 12px; }

/* ---------- Bannière photo (vraies photos, licence libre Pexels) ---------- */
.trust-banner {
  position: relative; border-radius: var(--radius); overflow: hidden; min-height: 260px;
  display: flex; align-items: flex-end; background: var(--ink);
}
.trust-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.trust-banner-content { position: relative; z-index: 1; padding: 28px 32px; color: #fff; max-width: 520px; }
.trust-banner-content .eyebrow { background: rgba(255,255,255,.12); color: #fff; }
.trust-banner-content h3 { color: #fff; font-size: 24px; margin-bottom: 8px; }
.trust-banner-content p { color: rgba(255,255,255,.82); margin-bottom: 0; }

/* ---------- How it works ---------- */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step-card { background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 22px; }
.step-num { font-family: var(--font-mono); color: var(--signal); font-weight: 700; font-size: 13px; margin-bottom: 10px; display: block; }
.step-card h3 { font-size: 17px; }

/* Two-path CTA (particulier / pro) */
.paths-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.path-card {
  background: var(--ink); color: #fff; border-radius: var(--radius); padding: 30px;
  position: relative; overflow: hidden;
}
.path-card.pro { background: var(--circuit); }
.path-card h3 { color: #fff; font-size: 22px; }
.path-card p { color: rgba(255,255,255,.78); }
.path-card .btn { margin-top: 14px; }

/* ---------- Forms ---------- */
.form-card { background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-card); }
.form-narrow { max-width: 480px; margin: 0 auto; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 6px; }
.field .hint { font-size: 12px; color: var(--ink-soft); margin-top: 4px; }
.field input[type="text"], .field input[type="email"], .field input[type="password"],
.field input[type="number"], .field input[type="tel"], .field select, .field textarea {
  width: 100%; font-family: var(--font-body); font-size: 15px; padding: 11px 12px;
  border: 1.5px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--ink);
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--circuit); background: #fff; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.checkbox-field { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; }
.checkbox-field input { margin-top: 3px; }
.role-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 22px; }
.role-toggle label {
  border: 1.5px solid var(--line); border-radius: 8px; padding: 16px; text-align: center; cursor: pointer;
  font-family: var(--font-display); font-weight: 600; font-size: 14px; transition: border-color .15s;
}
.role-toggle input { display: none; }
.role-toggle input:checked + span { color: var(--circuit); }
.role-toggle label:has(input:checked) { border-color: var(--circuit); background: var(--circuit-light); }

.alert { padding: 12px 14px; border-radius: 8px; font-size: 14px; margin-bottom: 18px; }
.alert-success { background: var(--circuit-light); color: var(--circuit); }
.alert-error { background: #fdecec; color: var(--danger); }
.alert-info { background: #eef2fb; color: #2c4d8a; }

/* ---------- Annonce detail ---------- */
.annonce-detail { display: grid; grid-template-columns: 1.3fr .7fr; gap: 36px; align-items: start; }
.gallery-main { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; background: var(--paper); border: 1px solid var(--line-soft); margin-bottom: 10px; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.gallery-thumbs { display: flex; gap: 8px; }
.gallery-thumbs img { width: 64px; height: 64px; object-fit: cover; border-radius: 6px; border: 1.5px solid var(--line-soft); cursor: pointer; }
.detail-info-card {
  background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 24px; margin-top: 20px; box-shadow: var(--shadow-card);
}
.detail-info-card h1 { font-size: 24px; margin-bottom: 14px; }
.detail-info-label {
  display: block; font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em; color: var(--circuit); margin-bottom: 8px;
}
.detail-info-card p { font-size: 15px; white-space: pre-line; color: var(--ink); margin: 0; line-height: 1.6; }
.detail-side { background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 24px; position: sticky; top: 90px; }
.detail-price { font-family: var(--font-mono); font-size: 30px; font-weight: 700; color: var(--signal); margin-bottom: 4px; }
.spec-list { list-style: none; padding: 0; margin: 18px 0; font-size: 14.5px; }
.spec-list li { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px dashed var(--line-soft); }
.spec-list li span:first-child { color: var(--ink-soft); }
.gated-box { background: var(--paper); border: 1.5px dashed var(--line); border-radius: 8px; padding: 16px; text-align: center; margin-top: 14px; }
.gated-box p { font-size: 13.5px; margin-bottom: 10px; }

/* ---------- Dashboard / account ---------- */
.dash-layout { display: grid; grid-template-columns: 220px 1fr; gap: 32px; }
.dash-nav { display: flex; flex-direction: column; gap: 4px; }
.dash-nav a { padding: 10px 14px; border-radius: 7px; font-size: 14.5px; font-weight: 500; color: var(--ink-soft); }
.dash-nav a.active, .dash-nav a:hover { background: var(--card); color: var(--ink); }
/* ---------- Tables (scroll horizontal sur mobile plutôt que casser la mise en page) ---------- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -4px; padding: 0 4px; }
.data-table { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; min-width: 560px; }
.data-table th, .data-table td { text-align: left; padding: 12px 14px; font-size: 14px; border-bottom: 1px solid var(--line-soft); white-space: nowrap; }
.data-table th { font-family: var(--font-mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .03em; color: var(--ink-soft); background: var(--paper); }
.badge { font-family: var(--font-mono); font-size: 10.5px; font-weight: 700; padding: 3px 8px; border-radius: 4px; text-transform: uppercase; }
.badge-active { background: var(--circuit-light); color: var(--circuit); }
.badge-pending { background: #fff4e0; color: #a15c00; }
.badge-off { background: #f1f1ee; color: var(--ink-soft); }
.badge-pro { background: var(--circuit-light); color: var(--circuit); }
.badge-particulier { background: #eef0ea; color: var(--ink-soft); border: 1px solid var(--line-soft); }

/* ---------- Pricing / subscription ---------- */
.price-card { background: var(--ink); color: #fff; border-radius: var(--radius); padding: 32px; text-align: center; max-width: 380px; margin: 0 auto; }
.price-card .amount { font-family: var(--font-mono); font-size: 44px; font-weight: 700; }
.price-card .amount span { font-size: 15px; opacity: .7; }
.price-card ul { list-style: none; padding: 0; text-align: left; margin: 22px 0; }
.price-card li { padding: 7px 0; font-size: 14px; color: rgba(255,255,255,.85); }
.price-card li::before { content: '✓ '; color: var(--signal); font-weight: 700; }

/* ---------- Messagerie ---------- */
.contact-card {
  display: flex; align-items: center; gap: 14px; background: var(--card); border: 1px solid var(--line-soft);
  border-radius: var(--radius); padding: 16px 18px; margin-bottom: 20px; box-shadow: var(--shadow-card);
}
.contact-card-avatar {
  width: 46px; height: 46px; border-radius: 50%; background: var(--circuit-light); color: var(--circuit);
  font-family: var(--font-display); font-weight: 700; font-size: 18px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.contact-card-body strong { font-size: 15.5px; }
.contact-card-details { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 13px; color: var(--ink-soft); margin-top: 6px; }

/* Liste de conversations (messagerie.php) */
.inbox-list { display: flex; flex-direction: column; gap: 10px; }
.inbox-item {
  display: flex; align-items: center; gap: 14px; background: var(--card); border: 1px solid var(--line-soft);
  border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow-card); transition: transform .12s ease, border-color .12s ease;
}
.inbox-item:hover { transform: translateX(2px); border-color: var(--circuit); }
.inbox-item.non-lu { border-left: 3px solid var(--signal); }
.inbox-avatar {
  width: 44px; height: 44px; border-radius: 50%; background: var(--circuit-light); color: var(--circuit);
  font-family: var(--font-display); font-weight: 700; font-size: 17px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.inbox-body { flex: 1; min-width: 0; }
.inbox-top { display: flex; align-items: center; gap: 8px; margin-bottom: 2px; }
.inbox-nom { font-family: var(--font-display); font-weight: 600; font-size: 14.5px; }
.inbox-annonce { font-size: 12px; color: var(--circuit); font-family: var(--font-mono); margin-bottom: 3px; }
.inbox-preview { font-size: 13px; color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inbox-item.non-lu .inbox-preview { color: var(--ink); font-weight: 500; }
.inbox-time { font-size: 11.5px; color: var(--ink-soft); flex-shrink: 0; white-space: nowrap; }
.chat-layout { display: grid; grid-template-columns: 300px 1fr; gap: 0; background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; min-height: 520px; }
.conv-list { border-right: 1px solid var(--line-soft); overflow-y: auto; }
.conv-item { display: block; padding: 14px 16px; border-bottom: 1px solid var(--line-soft); font-size: 13.5px; }
.conv-item:hover, .conv-item.active { background: var(--paper); }
.conv-item strong { display: block; font-size: 14.5px; margin-bottom: 3px; }
.chat-window { display: flex; flex-direction: column; height: 100%; }
.chat-messages { flex: 1; padding: 20px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }
.bubble { max-width: 70%; padding: 10px 14px; border-radius: 12px; font-size: 14px; }
.bubble.mine { align-self: flex-end; background: var(--circuit); color: #fff; border-bottom-right-radius: 3px; }
.bubble.theirs { align-self: flex-start; background: var(--paper); border-bottom-left-radius: 3px; }
.chat-input { display: flex; gap: 10px; padding: 14px; border-top: 1px solid var(--line-soft); }
.chat-input input { flex: 1; border: 1.5px solid var(--line); border-radius: 8px; padding: 10px 12px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.75); margin-top: 60px; padding-top: 48px; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 34px; }
.footer-col h4 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 12px; }
.footer-col a, .footer-muted { display: block; font-size: 14px; color: rgba(255,255,255,.7); margin-bottom: 8px; }
.footer-col a:hover { color: #fff; }
.footer-logo { margin-bottom: 10px; }
.footer-tag { font-size: 13.5px; color: rgba(255,255,255,.55); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 18px 24px; font-size: 12.5px; color: rgba(255,255,255,.5); }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-photo { max-width: 320px; margin: 0 auto; }
  .ticket-demo { transform: none; margin: -50px auto 0; }
  .main-nav, .header-actions { display: none; }
  .nav-burger { display: block; }
  .steps-grid, .paths-grid { grid-template-columns: 1fr; }
  .annonce-detail { grid-template-columns: 1fr; }
  .detail-side { position: static; }
  .dash-layout { grid-template-columns: 1fr; }
  .dash-nav { flex-direction: row; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .dash-nav a { white-space: nowrap; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .chat-layout { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }

  /* Menu mobile : nav + actions regroupées, en colonne, via JS (voir main.js) */
  .main-nav.mobile-open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--paper);
    padding: 16px 24px 20px;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 8px 16px -8px rgba(22,33,31,.15);
  }
  .main-nav.mobile-open a { padding: 10px 4px; font-size: 16px; }
  .mobile-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line-soft); }
}

@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .header-inner { height: 60px; }
  .logo-text { font-size: 15px; }
  .hero { padding: 40px 0 32px; }
  .hero h1 { font-size: clamp(26px, 7vw, 34px); }
  .hero-lead { font-size: 15.5px; }
  .hero-actions .btn { width: 100%; }
  .hero-stats { gap: 18px; flex-wrap: wrap; }
  .section { padding: 40px 0; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .annonces-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
  .ticket-title { font-size: 15px; }
  .ticket-price { font-size: 17px; }
  .filters-bar { flex-direction: column; align-items: stretch; }
  .filters-bar select, .filters-bar input { max-width: none !important; width: 100%; }
  .filters-bar button, .filters-bar a.btn { width: 100%; margin-left: 0 !important; }
  .form-card { padding: 20px; }
  .price-card { padding: 24px 20px; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; text-align: left; }
  .chat-messages { padding: 14px; }
  .bubble { max-width: 85%; }
  .step-card, .path-card { padding: 18px; }
  .role-toggle { grid-template-columns: 1fr; }
  .inbox-item { padding: 12px; gap: 10px; }
  .inbox-avatar { width: 38px; height: 38px; font-size: 15px; }
  .inbox-time { display: none; }
}

/* Cibles tactiles confortables sur tous les écrans à doigt */
@media (pointer: coarse) {
  .btn, .icon-link, select, input[type="checkbox"], input[type="radio"] { min-height: 40px; }
  .btn { min-height: 44px; }
  input[type="checkbox"], input[type="radio"] { min-width: 20px; min-height: 20px; }
}
