/* Site public MobilsYaar — maquettes 17 à 19, palette CDC §23. Léger : aucune image décorative, aucun script. */
:root {
  --navy: #0b2a55; --blue: #163e7a; --orange: #f07a1c; --ink: #0e1726; --muted: #4a5466;
  --bg: #f3f5f9; --surface: #fff; --border: #d9dee7; --line: #e3e7ee; --soft: #e8eef7;
  --ok: #0f6b36; --ok-soft: #e3f3e9; --warn: #6e4600; --warn-soft: #fff0cc; --danger: #a32014; --danger-soft: #fde8e6;
  --wa: #128c4a;
  --heading: Archivo, 'Helvetica Neue', Arial, sans-serif;
  --body: 'Atkinson Hyperlegible', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.45; }
h1, h2, h3 { font-family: var(--heading); margin: 0; line-height: 1.15; }
a { color: var(--blue); }
a:hover { color: var(--navy); }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: 14.5px; }

/* En-tête */
.banner { background: #0f1a2e; color: #fff; font-size: 15px; }
.banner .wrap { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; min-height: 48px; padding-top: 6px; padding-bottom: 6px; }
.site-header { background: var(--surface); border-bottom: 1px solid var(--border); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; min-height: 68px; padding-top: 8px; padding-bottom: 8px; }
.logo { font-family: var(--heading); font-weight: 800; font-size: 24px; color: var(--blue); text-decoration: none; }
.logo span { color: var(--orange); }
.header-search { flex: 1 1 260px; display: flex; gap: 8px; }
.header-search input { flex: 1; min-width: 0; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 18px; align-items: center; margin-left: auto; }
.nav a, .link-button { font-weight: 700; font-size: 16px; text-decoration: none; color: var(--ink); min-height: 44px; display: inline-flex; align-items: center; background: none; border: 0; padding: 0; cursor: pointer; }
.nav a:hover, .link-button:hover { color: var(--blue); }
.inline { display: inline; margin: 0; }

/* Champs et boutons */
.input, .select, textarea { min-height: 48px; border: 2px solid #c5ccd8; border-radius: 12px; padding: 0 14px; background: #fff; width: 100%; }
textarea { padding: 10px 14px; min-height: 110px; resize: vertical; }
.input:focus, .select:focus, textarea:focus { border-color: var(--blue); outline: none; }
.field { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: 15px; }
.field .hint { font-weight: 400; color: var(--muted); font-size: 14px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; border-radius: 12px; border: 0; padding: 0 20px; font-weight: 700; font-size: 17px; cursor: pointer; text-decoration: none; text-align: center; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--navy); color: #fff; }
.btn-orange { background: var(--orange); color: var(--ink); }
.btn-orange:hover { background: #d96a12; color: var(--ink); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: #0d6e3a; color: #fff; }
.btn-ghost { background: #fff; color: var(--blue); border: 2px solid #c5ccd8; }
.btn-ghost:hover { border-color: var(--blue); }
.btn-block { width: 100%; }
.btn-small { min-height: 44px; font-size: 15px; padding: 0 14px; }

/* Contenu */
main { padding: 20px 0 48px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 18px; }
.notice { border-radius: 12px; padding: 12px 16px; }
.notice.ok { background: var(--ok-soft); color: var(--ok); }
.notice.error { background: var(--danger-soft); color: var(--danger); }
.notice.info { background: var(--soft); color: var(--blue); }
.notice.warn { background: var(--warn-soft); color: var(--warn); }
.pill { display: inline-flex; font-size: 14px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.off { background: #eef0f4; color: #3d4657; }
.crumbs { font-size: 14.5px; color: var(--muted); }

/* Accueil */
.hero { background: var(--navy); color: #fff; border-radius: 20px; padding: 28px 22px; display: flex; flex-direction: column; gap: 14px; }
.hero h1 { font-size: clamp(28px, 5vw, 40px); font-weight: 800; }
.hero .kicker { color: #ffb16f; font-weight: 700; font-size: 14px; letter-spacing: 0.06em; }
.hero form { display: flex; flex-wrap: wrap; gap: 10px; }
.hero form .input { flex: 1 1 260px; width: auto; border-color: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; background: #fff; border: 2px solid var(--border); color: var(--ink); font-weight: 700; text-decoration: none; }
.chip:hover, .chip.on { border-color: var(--blue); color: var(--blue); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.cta { background: #fff4e9; border-radius: 16px; padding: 18px 20px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }

/* Résultats */
.results-layout { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.filters { flex: 1 1 240px; max-width: 300px; }
.filters form { display: flex; flex-direction: column; gap: 14px; }
.results { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.result { display: flex; flex-wrap: wrap; gap: 14px; background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 12px; color: var(--ink); text-decoration: none; }
.result:hover { border-color: var(--blue); color: var(--ink); }
.thumb { width: 132px; height: 100px; flex: none; border-radius: 10px; background: #dde4ef; object-fit: cover; }
.result-body { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.result-title { font-weight: 700; font-size: 18px; }
.price { font-family: var(--heading); font-weight: 800; font-size: 21px; white-space: nowrap; }
.pager { display: flex; justify-content: space-between; gap: 10px; }

/* Fiche */
.part-layout { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.gallery { flex: 3 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.main-photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 16px; background: #dde4ef; }
.no-photo { width: 100%; aspect-ratio: 4 / 3; border-radius: 16px; background: #dde4ef; display: flex; align-items: center; justify-content: center; color: #5b6679; }
.thumbs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.thumbs a { border-radius: 10px; overflow: hidden; border: 3px solid transparent; }
.thumbs a.on { border-color: var(--blue); }
.thumbs img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.part-info { flex: 2 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.part-info h1 { font-size: clamp(26px, 4vw, 32px); font-weight: 800; }
.big-price { font-family: var(--heading); font-weight: 800; font-size: 34px; }
.contact { display: flex; flex-direction: column; gap: 10px; }
.contact form { margin: 0; }
.phone-shown { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px; border-radius: 12px; background: var(--soft); color: var(--blue); text-decoration: none; }
.phone-shown strong { font-family: var(--heading); font-size: 26px; letter-spacing: 0.02em; }
.facts { margin: 0; }
.facts div { display: flex; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.facts div:last-child { border-bottom: 0; }
.facts dt { flex: 0 0 110px; color: var(--muted); font-weight: 700; }
.facts dd { margin: 0; flex: 1; }
.seller { display: flex; align-items: center; gap: 12px; }
.avatar { width: 48px; height: 48px; border-radius: 24px; background: var(--soft); color: var(--blue); font-family: var(--heading); font-weight: 800; display: flex; align-items: center; justify-content: center; flex: none; }
.similar { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }

/* Formulaires (connexion, demande, signalement) */
.narrow { max-width: 560px; margin: 0 auto; }
.form { display: flex; flex-direction: column; gap: 16px; }
.choices { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.choice { display: flex; gap: 12px; align-items: center; min-height: 48px; padding: 0 14px; border: 2px solid var(--border); border-radius: 12px; background: #fff; cursor: pointer; font-weight: 700; }
.choice input { width: 22px; height: 22px; margin: 0; flex: none; }
details summary { cursor: pointer; font-weight: 700; min-height: 44px; display: flex; align-items: center; }

.site-footer { border-top: 1px solid var(--border); background: #fff; padding: 22px 0 32px; font-size: 15px; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }

@media (max-width: 640px) {
  .filters { max-width: none; }
  .thumb { width: 96px; height: 76px; }
  .header-search { order: 3; flex-basis: 100%; }
}
