/* ============ Reset / Base ============ */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

:root {
  --bg: #0e0b14;
  --bg-2: #15111d;
  --surface: #1c1726;
  --surface-2: #251e33;
  --border: #2e2640;
  --text: #efe9f7;
  --text-dim: #b6acc8;
  --muted: #8a8298;
  --primary: #ff2d6f;       /* rose passion */
  --primary-2: #ff6b9c;
  --accent: #b06bff;        /* violet */
  --success: #44d26a;
  --error: #ff5868;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 6px 24px rgba(0,0,0,.35);
  --max-w: 1180px;
}

html { color-scheme: dark; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background:
    radial-gradient(1100px 600px at 80% -10%, rgba(176,107,255,.18), transparent 60%),
    radial-gradient(900px 500px at -10% 0%, rgba(255,45,111,.15), transparent 60%),
    var(--bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary-2); text-decoration: none; }
a:hover { color: var(--primary); }
img { max-width: 100%; display: block; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

/* ============ Header (style BONQ : blanc, nav uppercase, CTA jaune) ============ */
:root {
  --header-bg: #ffffff;
  --header-text: #0f1c3f;     /* navy profond */
  --header-text-hover: #ff2d6f;
  --header-border: #e9eaf2;
  --cta-yellow: #ffe938;
  --cta-yellow-hover: #ffd400;
  --new-dot: #ffd400;
}

.site-header {
  position: sticky; top: 0; z-index: 30;
  background: var(--header-bg);
  border-bottom: 1px solid var(--header-border);
  box-shadow: 0 1px 0 rgba(15,28,63,.03);
}
.header-row {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; gap: 18px;
}

/* Logo */
.logo {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--header-text); font-weight: 800; letter-spacing: -.01em;
}
.logo:hover { color: var(--header-text); }
.logo-icon {
  width: 44px; height: 44px;
  flex-shrink: 0;
}
.logo-text { font-size: 22px; line-height: 1; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Inter, sans-serif; }
.logo-text .dot { color: var(--primary); font-weight: 800; }
.logo-large { font-size: 24px; }
.logo-large .logo-icon { width: 56px; height: 56px; }

/* Navigation */
.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  color: var(--header-text);
  padding: 10px 14px;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .06em;
  border-radius: 6px;
  transition: color .12s ease;
  position: relative;
}
.nav a:hover { color: var(--header-text-hover); }
.nav a.active { color: var(--header-text-hover); }
.nav a.has-dot::after {
  content: '';
  position: absolute;
  top: 6px; right: 4px;
  width: 8px; height: 8px;
  background: var(--new-dot);
  border-radius: 50%;
  box-shadow: 0 0 0 2px #fff;
}

/* Bouton CTA jaune (passer une annonce) */
.btn-cta {
  background: var(--cta-yellow);
  color: var(--header-text);
  border: 0;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .06em;
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px;
  transition: background .12s ease, transform .08s ease, box-shadow .15s ease;
  box-shadow: 0 4px 14px rgba(255,233,56,.4);
  cursor: pointer;
  white-space: nowrap;
}
.btn-cta:hover {
  background: var(--cta-yellow-hover);
  color: var(--header-text);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(255,233,56,.55);
}
.btn-cta .plus { font-weight: 900; font-size: 16px; line-height: 1; }

/* Menu burger (mobile) */
.nav-toggle {
  display: none;
  background: none; border: 0; padding: 8px;
  color: var(--header-text); cursor: pointer;
}
.nav-toggle svg { width: 26px; height: 26px; }

@media (max-width: 880px) {
  .nav { display: none; }
  .nav.open {
    display: flex;
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 8px 16px 16px;
    border-bottom: 1px solid var(--header-border);
    box-shadow: 0 4px 16px rgba(0,0,0,.08);
    gap: 0;
  }
  .nav.open a {
    padding: 14px 8px;
    border-radius: 0;
    border-bottom: 1px solid var(--header-border);
  }
  .nav.open a:last-child { border-bottom: 0; }
  .nav.open .btn-cta {
    margin-top: 12px;
    justify-content: center;
    border-radius: 999px;
    border-bottom: 0;
  }
  .nav-toggle { display: inline-flex; }
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 16px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 14px; line-height: 1;
  border: 1px solid transparent; cursor: pointer; user-select: none;
  transition: transform .08s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-lg { padding: 13px 22px; font-size: 15px; }
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff; border-color: transparent;
  box-shadow: 0 6px 18px rgba(255,45,111,.35);
}
.btn-primary:hover { color: #fff; box-shadow: 0 10px 22px rgba(255,45,111,.45); }
.btn-ghost {
  background: transparent; color: var(--text); border-color: var(--border);
}
.btn-ghost:hover { background: var(--surface); }

/* ============ Hero ============ */
.hero {
  padding: 64px 0 36px;
  background:
    radial-gradient(800px 400px at 50% 0%, rgba(255,45,111,.12), transparent 70%);
}
.hero h1 {
  margin: 0 0 8px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1; letter-spacing: -.02em;
}
.hero .lead { color: var(--text-dim); max-width: 760px; margin: 0 0 28px; font-size: 17px; }
.hero .stats { color: var(--muted); margin-top: 18px; }

/* ============ Search bar ============ */
.search-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr) auto;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow);
}
.search-bar .field { display: flex; flex-direction: column; min-width: 0; }
.search-bar .field.grow { grid-column: span 1; }
.search-bar label {
  font-size: 12px; font-weight: 600; color: var(--text-dim);
  margin-bottom: 6px; text-transform: uppercase; letter-spacing: .04em;
}
.search-bar select,
.search-bar input[type="search"] {
  background: var(--bg-2);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 12px; font-size: 14px;
  outline: none;
}
.search-bar select:focus,
.search-bar input:focus { border-color: var(--primary); }
.search-bar .btn { align-self: end; height: 42px; }

@media (max-width: 880px) {
  .search-bar { grid-template-columns: 1fr 1fr; }
  .search-bar .btn { grid-column: span 2; height: 46px; }
}
@media (max-width: 480px) {
  .search-bar { grid-template-columns: 1fr; }
  .search-bar .btn { grid-column: auto; }
}

/* ============ Results / Cards ============ */
.grid-toolbar {
  display: flex; align-items: baseline; justify-content: space-between;
  margin: 28px 0 14px;
}
.grid-toolbar h2 { margin: 0; font-size: 20px; }
.sort .muted { margin-right: 6px; }

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .12s ease, border-color .12s ease, box-shadow .12s ease;
  color: inherit;
}
.card:hover {
  transform: translateY(-2px);
  border-color: rgba(255,45,111,.5);
  box-shadow: 0 8px 24px rgba(0,0,0,.4);
}
.card .thumb {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #2a1f3d, #1a1426);
  position: relative; overflow: hidden;
}
.card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.card .thumb .ph {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 36px;
  background: linear-gradient(135deg, #2a1f3d 0%, #1a1426 100%);
}
.card .thumb .age-pill {
  position: absolute; top: 10px; right: 10px;
  background: rgba(0,0,0,.55); color: #fff; backdrop-filter: blur(4px);
  padding: 4px 9px; border-radius: 999px; font-size: 12px; font-weight: 700;
}
.card .body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card h3 { margin: 0; font-size: 15px; line-height: 1.3; }
.card .meta { color: var(--text-dim); font-size: 13px; }
.card .desc {
  color: var(--text-dim); font-size: 13px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.card .badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 8px; }
.badge {
  display: inline-block;
  font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: 4px 8px; border-radius: 999px;
  background: rgba(176,107,255,.13); color: #d2bcff; border: 1px solid rgba(176,107,255,.25);
}
.badge.h { background: rgba(81,145,255,.14); color: #a8c8ff; border-color: rgba(81,145,255,.3); }
.badge.f { background: rgba(255,45,111,.16); color: #ffb3cb; border-color: rgba(255,45,111,.35); }
.badge.c { background: rgba(255,165,80,.15); color: #ffd5a3; border-color: rgba(255,165,80,.3); }

/* Pagination */
.pagination {
  display: flex; justify-content: center; gap: 8px;
  margin: 30px 0 60px;
}
.pagination button {
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text); padding: 8px 14px; border-radius: var(--radius-sm);
  cursor: pointer; font-size: 14px;
}
.pagination button.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.pagination button:disabled { opacity: .4; cursor: not-allowed; }

/* CTA banner */
.cta-banner {
  margin: 40px 0 0;
  background: linear-gradient(135deg, rgba(255,45,111,.12), rgba(176,107,255,.12));
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.cta-row {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 28px 20px;
}
.cta-row h3 { margin: 0 0 4px; font-size: 20px; }
@media (max-width: 600px) { .cta-row { flex-direction: column; text-align: center; } }

/* ============ Forms ============ */
.form { display: flex; flex-direction: column; gap: 18px; margin-top: 24px; }
fieldset {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px 16px;
  background: var(--surface);
}
legend {
  padding: 0 8px; color: var(--text-dim);
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
}
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.row .field.small { max-width: 140px; }
@media (max-width: 600px) { .row { grid-template-columns: 1fr; } }

.field { display: flex; flex-direction: column; }
.field + .field { margin-top: 12px; }
.field label {
  font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--text-dim);
}
.field .hint { font-size: 12px; color: var(--muted); margin-top: 4px; }

input[type="text"], input[type="email"], input[type="number"], input[type="search"],
input[type="tel"], input[type="file"], select, textarea {
  width: 100%;
  background: var(--bg-2);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 12px; font-size: 15px;
  outline: none; font-family: inherit;
}
textarea { resize: vertical; min-height: 120px; }
input:focus, select:focus, textarea:focus { border-color: var(--primary); }
input[type="file"] { padding: 9px 10px; }

.checkbox {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 8px 0; font-size: 14px; color: var(--text-dim);
}
.checkbox + .checkbox { border-top: 1px dashed var(--border); }
.checkbox input { margin-top: 3px; }

.form-actions { display: flex; gap: 12px; align-items: center; margin-top: 4px; }

.alert {
  padding: 14px 16px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--surface);
}
.alert h3 { margin: 0 0 6px; font-size: 16px; }
.alert-error { border-color: rgba(255,88,104,.45); background: rgba(255,88,104,.1); color: #ffb8c0; }
.alert-success { border-color: rgba(68,210,106,.4); background: rgba(68,210,106,.08); color: #c4f5d2; }
.alert code { display: inline-block; word-break: break-all; background: rgba(0,0,0,.35); padding: 6px 8px; border-radius: 6px; }

/* ============ Annonce detail ============ */
.back-link { display: inline-block; margin: 24px 0 14px; color: var(--text-dim); }
.annonce-detail { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 24px; margin-bottom: 60px; }
.annonce-head h1 { margin: 0 0 6px; font-size: 26px; line-height: 1.2; }
.annonce-head .meta { color: var(--text-dim); margin: 0 0 12px; }
.annonce-head .badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.annonce-photo { margin: 18px 0 22px; border-radius: var(--radius); overflow: hidden; max-height: 460px; background: #000; display: flex; align-items: center; justify-content: center; }
.annonce-photo img { max-height: 460px; width: auto; }
.annonce-body h2 { font-size: 16px; color: var(--text-dim); text-transform: uppercase; letter-spacing: .08em; margin: 0 0 10px; }
.pre { white-space: pre-wrap; }
.annonce-actions { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.contact-box { margin-top: 22px; padding: 18px; border: 1px dashed var(--border); border-radius: var(--radius); background: var(--bg-2); }

/* ============ Villes (cloud / pills) ============ */
.other-cities { margin: 50px 0 30px; }
.other-cities h3 { font-size: 16px; color: var(--text-dim); text-transform: uppercase; letter-spacing: .08em; margin: 0 0 14px; }
.cities-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.city-pill {
  display: inline-block;
  padding: 8px 14px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text-dim); font-size: 14px; font-weight: 500;
  transition: all .12s ease;
}
.city-pill:hover {
  background: rgba(255,45,111,.1);
  border-color: rgba(255,45,111,.4);
  color: var(--text);
  transform: translateY(-1px);
}

/* Grille de villes populaires (homepage) */
.popular-cities {
  margin: 40px 0 20px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.popular-cities h2 { margin: 0 0 4px; font-size: 18px; }
.popular-cities .subtitle { color: var(--text-dim); margin: 0 0 18px; font-size: 14px; }
.popular-cities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 8px;
}
.popular-cities-grid a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; border-radius: var(--radius-sm);
  background: var(--bg-2); border: 1px solid var(--border);
  color: var(--text-dim); font-size: 14px; font-weight: 500;
  transition: all .12s ease;
}
.popular-cities-grid a:hover {
  background: rgba(176,107,255,.08);
  border-color: rgba(176,107,255,.3);
  color: var(--text);
}
.popular-cities-grid .count {
  font-size: 12px; color: var(--muted);
  background: rgba(0,0,0,.25); padding: 2px 8px; border-radius: 999px;
}

/* ============ Footer ============ */

/* Badges de confiance (au-dessus du footer) */
.trust-badges {
  margin-top: 50px;
  padding: 26px 0;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
}
.trust-badges-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 36px 56px;
  padding: 0 20px;
}
.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 500;
}
.trust-badge svg {
  width: 22px; height: 22px;
  color: var(--primary);
  flex-shrink: 0;
}

/* Footer principal (4 colonnes) */
.site-footer {
  background: var(--bg);
  padding: 50px 0 0;
  color: var(--text-dim);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding: 0 20px 30px;
}
.footer-col h4 {
  margin: 0 0 18px;
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  font-family: Georgia, 'Times New Roman', serif;
  letter-spacing: .01em;
}
.footer-col ul {
  list-style: none;
  padding: 0; margin: 0;
}
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 400;
  transition: color .12s ease;
}
.footer-col a:hover {
  color: var(--primary);
  text-decoration: none;
}
.footer-col p {
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.55;
  margin: 0 0 14px;
}
.footer-col p strong { color: var(--text); }
.footer-col p.disclaimer {
  font-size: 13px;
  color: var(--muted);
  margin-top: 16px;
}

/* Colonne brand */
.footer-brand h4 {
  font-size: 20px;
  margin-bottom: 14px;
}
.btn-green {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 8px;
  background: linear-gradient(135deg, #2dd96d 0%, #1ab859 100%);
  color: #fff !important;
  font-weight: 700;
  font-size: 14px;
  text-transform: none;
  box-shadow: 0 4px 14px rgba(45,217,109,.3);
  transition: all .15s ease;
  margin-top: 4px;
}
.btn-green:hover {
  color: #fff !important;
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(45,217,109,.45);
}
.btn-green::before {
  content: '';
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 8px rgba(255,255,255,.8);
}

/* Bandeau bas (copyright) */
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 18px 20px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}
.footer-bottom a { color: var(--text-dim); }
.footer-bottom a:hover { color: var(--primary); }

@media (max-width: 1000px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .footer-brand { grid-column: span 2; }
}
@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  .trust-badges-row { gap: 18px 28px; }
  .trust-badge { font-size: 13px; }
}

/* ============ 18+ Gate ============ */
.gate-body {
  display: grid; place-items: center; min-height: 100vh;
}
.gate { width: 100%; padding: 24px; }
.gate-card {
  max-width: 540px; margin: 0 auto;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px 28px; text-align: center;
  box-shadow: var(--shadow);
}
.gate-card .logo { justify-content: center; margin-bottom: 18px; }
.gate-card h1 { font-size: 24px; margin: 6px 0 12px; }
.gate-card .lead { color: var(--text-dim); margin: 0 0 14px; font-size: 16px; }
.gate-card p { margin: 0 0 14px; }
.gate-actions { display: flex; flex-direction: column; gap: 10px; margin: 22px 0 16px; }
.gate-actions .btn { width: 100%; }
