/* ══ VARIABLES ═══════════════════════════════════════════════════ */
:root {
  --orange:    #EF7900;
  --orange-lt: #FFF3E6;
  --navy:      #0D1A8C;
  --navy-lt:   #EEF1FF;
  --dark:      #1F2937;
  --gray-bg:   #F3F4F6;
  --gray-brd:  #E5E7EB;
  --text:      #111827;
  --muted:     #6B7280;
  --green:     #10B981;
  --green-lt:  #D1FAE5;
  --red:       #EF4444;
  --nav-h:     64px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  min-height: 100%;
  background: var(--gray-bg);
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
}
body { padding-bottom: calc(var(--nav-h) + 8px); }

/* ══ HERO ════════════════════════════════════════════════════════ */
.hero {
  background: var(--navy);
  padding: 0 20px 32px;
  position: relative;
  border-radius: 0 0 20% 20%;
  overflow: hidden;
  min-height: 191px;
}
/* Demi-cercle décoratif en bas du hero */
.hero::after {
  content: '';
  position: absolute;
  bottom: -28px; left: 50%;
  transform: translateX(-50%);
  width: 130%; height: 56px;
  background: var(--gray-bg);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}

/* ── Topbar dans le hero ──────────────────────────────────────── */
.hero-topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0 16px;
  position: relative; z-index: 2;
}
.logo {
  display: flex; align-items: center; gap: 8px;
  text-decoration: none;
}
.logo-star {
  width: 36px; height: 36px; background: var(--orange);
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.logo-text {
  font-size: 22px; font-weight: 900; color: #fff;
  letter-spacing: -.5px;
  font-style: italic;
}
.hero-right { display: flex; align-items: center; gap: 10px; }

/* Sélecteur ville */
.ville-btn {
  display: flex; align-items: center; gap: 5px;
  background: rgba(255,255,255,.08); border: 1.5px solid rgba(255,255,255,.18);
  border-radius: 20px; padding: 6px 12px;
  color: #fff; font-size: 13px; font-weight: 700;
  cursor: pointer; transition: background .15s; white-space: nowrap;
  text-decoration: none;
}
.ville-btn:hover { background: rgba(255,255,255,.14); }
.ville-btn i { font-size: 14px; color: var(--orange); }

/* Cloche notif */
.notif-btn {
  position: relative; width: 38px; height: 38px;
  background: rgba(255,255,255,.08); border: 1.5px solid rgba(255,255,255,.15);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: #fff; font-size: 18px;
  text-decoration: none; transition: background .15s; flex-shrink: 0;
}
.notif-btn:hover { background: rgba(255,255,255,.16); }
.notif-badge {
  position: absolute; top: -2px; right: -2px;
  background: var(--red); color: #fff;
  font-size: 9px; font-weight: 900;
  width: 17px; height: 17px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--navy);
}

/* ── Corps du hero ────────────────────────────────────────────── */
.hero-body {
  display: flex; align-items: flex-start; justify-content: space-between;
  position: relative; z-index: 2;
}
.hero-text { flex: 1; }
.hero-title {
  font-size: 22px; font-weight: 900; color: #fff;
  line-height: 1.25; margin-bottom: 10px;
  max-width: 240px;
}
.hero-title span { color: var(--orange); }
.hero-sub {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: rgba(255,255,255,.7); font-weight: 500;
}
.hero-sub .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green); flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(16,185,129,.3);
}
.hero-photo {
  width: 130px; flex-shrink: 0;
  display: flex; align-items: flex-end; justify-content: center;
  margin-top: 0px;
}
.hero-photo img {
  width: 130px; height: 166px; object-fit: cover;
  object-position: top center;
  border-radius: 16px 16px 0 0;
}
.hero-photo-placeholder {
  width: 110px; height: 130px;
  background: rgba(255,255,255,.07);
  border-radius: 14px 14px 0 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 56px;
}

/* ══ SEARCH CARD ═════════════════════════════════════════════════ */
.search-card {
  margin: -31px 16px 0;
  background: #fff;
  border-radius: 16px;
  padding: 10px 10px 10px 16px;
  display: flex; align-items: center; gap: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,.12);
  position: relative; z-index: 10;
  margin-bottom: 21px;
}
.search-icon { color: var(--muted); font-size: 17px; flex-shrink: 0; }
.search-input {
  flex: 1; border: none; background: transparent;
  font-size: 14px; color: var(--text); outline: none;
  font-family: inherit;
}
.search-input::placeholder { color: #9CA3AF; }
.search-btn {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--orange); color: #fff; border: none;
  font-size: 18px; cursor: pointer; display: flex;
  align-items: center; justify-content: center;
  flex-shrink: 0; transition: background .15s;
}
.search-btn:hover { background: #D46A00; }

/* ══ PAGE CONTENT ════════════════════════════════════════════════ */
.page { padding: 0px 0 0; }

/* ── Section header ──────────────────────────────────────────── */
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px; margin-bottom: 14px;
}
.section-title {
  font-size: 17px; font-weight: 800; color: var(--text);
}
.voir-tout {
  font-size: 13px; font-weight: 700; color: var(--navy);
  text-decoration: none; white-space: nowrap;
}
.voir-tout:hover { text-decoration: underline; }

/* ══ CATÉGORIES ══════════════════════════════════════════════════ */
.categories-scroll {
  display: flex; gap: 10px;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  scrollbar-width: none; padding: 4px 16px 12px;
}
.categories-scroll::-webkit-scrollbar { display: none; }

.cat-card {
  flex-shrink: 0; width: 117px;
  background: #fff; border: 1.5px solid var(--gray-brd);
  border-radius: 14px; padding: 16px 8px 12px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  text-decoration: none; color: var(--text);
  box-shadow: 0 1px 4px rgba(0,0,0,.05);
  transition: box-shadow .15s, transform .15s;
  position: relative;
}
.cat-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.1); transform: translateY(-2px); }

.cat-icon {
  width: 46px; height: 46px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--gray-bg);
}
.cat-icon svg { width: 26px; height: 26px; }
.cat-nom { font-size: 11px; font-weight: 700; color: var(--text); text-align: center; line-height: 1.25; }
.cat-badge {
  font-size: 9px; font-weight: 800; color: var(--orange);
  display: flex; align-items: center; gap: 3px; white-space: nowrap;
}
.cat-badge::before { content: '🔥'; font-size: 10px; }

/* ══ PRESTATIONS VEDETTE ════════════════════════════════════════ */
.vedette-scroll {
  display: flex; gap: 12px;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  scrollbar-width: none; padding: 4px 16px 12px;
}
.vedette-scroll::-webkit-scrollbar { display: none; }

.vedette-card {
  flex-shrink: 0; width: 170px;
  background: #fff; border: 1.5px solid var(--gray-brd);
  border-radius: 14px; overflow: hidden;
  box-shadow: 0 1px 6px rgba(0,0,0,.06);
  text-decoration: none; color: var(--text);
  transition: box-shadow .15s, transform .15s;
  display: flex; flex-direction: column;
}
.vedette-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,.1); transform: translateY(-2px); }

.vedette-img {
  width: 100%; height: 110px;
  /*background: var(--gray-bg);*/
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.vedette-img img { width: 100%; height: 100%; object-fit: cover; }
.vedette-img-ph { font-size: 44px; }

.vedette-badge {
  position: absolute; top: 8px; left: 8px;
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 10px; font-weight: 800;
  padding: 3px 9px; border-radius: 20px; line-height: 1.4;
}
.vedette-body { padding: 10px 12px; flex: 1; display: flex; flex-direction: column; gap: 3px; }
.vedette-nom  { font-size: 14px; font-weight: 800; color: var(--text); line-height: 1.25; }
.vedette-desc { font-size: 11px; color: var(--muted); }
.vedette-prix {
  margin-top: 8px; font-size: 12px; color: var(--muted);
}
.vedette-prix strong {
  font-size: 13px; font-weight: 800; color: var(--orange);
}

/* ══ COMMENT ÇA FONCTIONNE ══════════════════════════════════════ */
.how-section {
  margin: 8px 16px 24px;
  background: #fff; border-radius: 18px;
  padding: 19px 10px;
  box-shadow: 0 1px 6px rgba(0,0,0,.05);
}
.how-title {
  font-size: 17px; font-weight: 800; color: var(--text);
  text-align: center; margin-bottom: 24px;
}
.how-steps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
  position: relative;
}
/* Ligne de connexion entre les steps */
.how-steps::before {
  content: '';
  position: absolute;
  top: 22px; left: calc(16.66% + 10px); right: calc(16.66% + 10px);
  height: 2px; background: var(--gray-brd);
  z-index: 0;
}
.how-step {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: 10px; position: relative; z-index: 1;
}
.how-step-num {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--navy); color: #fff;
  font-size: 16px; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 4px rgba(13,26,140,.1);
  flex-shrink: 0;
}
.how-step:last-child .how-step-num { background: var(--green); box-shadow: 0 0 0 4px rgba(16,185,129,.1); }
.how-step-icon {
  font-size: 28px; line-height: 1;
}
.how-step-label {
  font-size: 12px; font-weight: 800; color: var(--text); line-height: 1.3;
}
.how-step-desc {
  font-size: 10px; color: var(--muted); line-height: 1.5;
}

/* ══ CTA ARTISAN ═════════════════════════════════════════════════ */
.cta-artisan {
  margin: 0 16px 24px;
  background: var(--orange-lt);
  border: 1.5px solid #FDDDB8;
  border-radius: 18px;
  padding: 20px 16px 20px 20px;
  display: flex; align-items: center; gap: 12px;
  position: relative; overflow: hidden;
}
.cta-artisan-photo {
  flex-shrink: 0; width: 72px;
  display: flex; align-items: flex-end;
}
.cta-artisan-photo img {
  width: 167px; border-radius: 12px; object-fit: cover;
}
.cta-artisan-photo-ph {
  width: 68px; height: 80px;
  /*background: rgba(239,121,0,.15);*/
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 38px;
}
.cta-artisan-wrench {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  font-size: 52px; opacity: .07; pointer-events: none;
}
.cta-artisan-body { flex: 1; min-width: 0; }
.cta-artisan-title {
  font-size: 14px; font-weight: 900; color: #A52A2A; line-height: 1.3;
  margin-bottom: 4px;
}
.cta-artisan-desc  {
  font-size: 11px; color: var(--muted); line-height: 1.5; margin-bottom: 10px;
}
.cta-artisan-chips {
  display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 12px;
}
.cta-chip {
  font-size: 10px; font-weight: 700;
  padding: 3px 8px; border-radius: 20px;
  display: inline-flex; align-items: center; gap: 3px;
}
.cta-chip-green { background: var(--green-lt); color: #065F46; }
.cta-chip-blue  { background: var(--navy-lt);  color: var(--navy); }
.btn-cta {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--orange); color: #fff;
  border: none; border-radius: 20px;
  padding: 10px 18px; font-size: 13px; font-weight: 800;
  cursor: pointer; text-decoration: none;
  transition: background .15s; white-space: nowrap;
}
.btn-cta:hover { background: #D46A00; }

/* ══ BOTTOM NAV — défini dans layoutAuth.css, pas de surcharge ici ══ */

/* ══ TOAST ═══════════════════════════════════════════════════════ */
#toast {
  position: fixed; bottom: calc(var(--nav-h) + 16px); left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--dark); color: #fff;
  padding: 11px 20px; border-radius: 10px;
  font-size: 13px; font-weight: 600;
  opacity: 0; transition: all .25s;
  pointer-events: none; z-index: 500; white-space: nowrap;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
