/* ═══════════════════════════════════════
   YaTaf.ci — Feuille de style principale
   ═══════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green:      #0F6E56;
  --green-mid:  #1D9E75;
  --green-lite: #E1F5EE;
  --green-dark: #085041;
  --amber:      #EF9F27;
  --amber-lite: #FAEEDA;
  --text:       #2C2C2A;
  --text-2:     #5F5E5A;
  --text-3:     #888780;
  --border:     #D3D1C7;
  --bg:         #F7F6F2;
  --white:      #fff;
  --radius:     10px;
  --radius-lg:  14px;
  --max-w:      1140px;
}

body { font-family: system-ui, -apple-system, sans-serif; background: var(--bg); color: var(--text); font-size: 14px; line-height: 1.5; }
a    { color: inherit; text-decoration: none; }

/* ─── CONTENEUR CENTRÉ ───────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
}

/* ─── NAVBAR ─────────────────────────────────────────────────── */
.navbar { background: var(--green); height: 58px; position: sticky; top: 0; z-index: 100; }
.navbar .container { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.logo   { display: flex; align-items: center; gap: 10px; }
.logo-mark { width: 30px; height: 30px; border-radius: 8px; background: #fff; display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 700; color: var(--green); }
.logo-text  { font-size: 17px; font-weight: 500; color: #fff; }
.logo-ci    { font-size: 11px; color: #9FE1CB; font-weight: 400; }
.nav-r      { display: flex; align-items: center; gap: 16px; }
.nav-link-artisan { font-size: 13px; color: #9FE1CB; }
.nav-btn    { font-size: 12px; padding: 7px 16px; border-radius: 20px; background: rgba(255,255,255,.15); color: #fff; }
.nav-btn-outline { font-size: 12px; padding: 7px 16px; border-radius: 20px; border: 1.5px solid #fff; color: #fff; }
.nav-link-sm { font-size: 11px; color: #9FE1CB; }
/* ─── HERO ───────────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  padding: 3.5rem 0 3rem;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('/assets/img/hero_bg.png') center center / cover no-repeat;
  z-index: 0;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: #0F6E56;
  opacity: .82;
  z-index: 1;
}
.hero .container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 500; padding: 4px 12px; border-radius: 20px; background: rgba(255,255,255,.15); color: #E1F5EE; margin-bottom: 1rem; }
.hero-tag-dot { width: 6px; height: 6px; border-radius: 50%; background: #5DCAA5; }
.hero h1   { font-size: 36px; font-weight: 500; color: #fff; margin-bottom: 10px; line-height: 1.2; max-width: 560px; }
.hero h1 span { color: #9FE1CB; }
.hero p    { font-size: 15px; color: #9FE1CB; margin-bottom: 2rem; max-width: 440px; }
.search-wrap { background: #fff; border-radius: 14px; padding: 8px; display: flex; gap: 8px; width: 100%; max-width: 560px; align-items: center; }
.search-icon  { color: var(--text-3); flex-shrink: 0; width: 16px; height: 16px; margin-left: 6px; }
.search-wrap input { flex: 1; border: none; background: transparent; font-size: 14px; color: var(--text); padding: 4px 4px; outline: none; }
.btn-search   { padding: 10px 24px; border-radius: 10px; border: none; background: var(--green-mid); color: #fff; font-size: 14px; font-weight: 500; cursor: pointer; white-space: nowrap; }
.pills-wrap { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin-top: 1.5rem; }
.pill       { font-size: 11px; padding: 5px 14px; border-radius: 20px; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.1); color: #E1F5EE; cursor: pointer; transition: all .15s; }
.pill.active, .pill:hover { background: #fff; color: var(--green); border-color: #fff; }

/* ─── STATS STRIP ────────────────────────────────────────────── */
.stats-strip { background: var(--green-dark); }
.stats-strip .container { display: flex; align-items: center; justify-content: center; gap: 3rem; padding-top: .7rem; padding-bottom: .7rem; }
.stat-s { text-align: center; }
.stat-s-val  { font-size: 15px; font-weight: 500; color: #fff; }
.stat-s-lbl  { font-size: 10px; color: #5DCAA5; }
.stats-sep   { width: 1px; height: 20px; background: rgba(255,255,255,.15); }

/* ─── MAIN CONTENT WRAPPER ───────────────────────────────────── */
.main-content { max-width: var(--max-w); margin: 0 auto; padding: 0 2rem; }

/* ─── BANNIÈRE PUB ───────────────────────────────────────────── */
.pub-banner  { margin: 16px 0 0; border-radius: 12px; background: var(--white); border: 0.5px solid var(--border); display: flex; align-items: center; min-height: 68px; cursor: pointer; overflow: hidden; }
.pub-left    { width: 5px; background: var(--amber); align-self: stretch; flex-shrink: 0; }
.pub-content { padding: 10px 16px; flex: 1; }
.pub-top     { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2px; }
.pub-badge   { font-size: 9px; font-weight: 500; padding: 2px 6px; border-radius: 4px; background: var(--amber-lite); color: #633806; }
.pub-sponsor { font-size: 9px; color: var(--text-3); }
.pub-title   { font-size: 13px; font-weight: 500; color: var(--text); margin-bottom: 2px; }
.pub-desc    { font-size: 11px; color: var(--text-2); }
.pub-cta     { padding: 0 16px; flex-shrink: 0; }
.pub-btn     { font-size: 11px; font-weight: 500; padding: 7px 14px; border-radius: 8px; border: none; background: var(--amber); color: #412402; cursor: pointer; display: inline-block; }

/* ─── SECTION TITRE ──────────────────────────────────────────── */
.section-header  { padding: 1.5rem 0 .5rem; display: flex; align-items: center; justify-content: space-between; }
.section-title   { font-size: 16px; font-weight: 500; }
.results-count   { font-size: 13px; color: var(--text-3); }
.sort-sel        { font-size: 12px; padding: 6px 12px; border-radius: 8px; border: 0.5px solid var(--border); background: var(--white); color: var(--text-2); cursor: pointer; }

/* ─── CARDS GRID ─────────────────────────────────────────────── */
.cards-grid { padding: 0 0 0; display: grid; gap: 14px; }
@media (min-width: 1000px) { .cards-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 640px) and (max-width: 999px) { .cards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 639px) { .cards-grid { grid-template-columns: 1fr; } }

.card         { background: var(--white); border: 0.5px solid var(--border); border-radius: 14px; padding: 16px; transition: border-color .15s, transform .15s; }
.card:hover   { border-color: var(--green-mid); transform: translateY(-1px); }
.card.boosted { border: 1.5px solid var(--amber); }

.boost-tag  { display: inline-flex; align-items: center; gap: 4px; font-size: 9px; font-weight: 500; padding: 2px 8px; border-radius: 20px; background: var(--amber-lite); color: #633806; margin-bottom: 10px; }
.boost-dot  { width: 5px; height: 5px; border-radius: 50%; background: var(--amber); }

.card-top   { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 10px; }
.av         { width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 500; flex-shrink: 0; }
.av-g       { background: var(--green-lite); color: var(--green); }
.av-b       { background: #E6F1FB; color: #185FA5; }
.av-p       { background: #EEEDFE; color: #534AB7; }
.av-o       { background: var(--amber-lite); color: #633806; }

.c-name     { font-size: 14px; font-weight: 500; color: var(--text); margin-bottom: 4px; }
.c-metier   { font-size: 10px; font-weight: 500; padding: 2px 8px; border-radius: 20px; background: var(--green-lite); color: var(--green-dark); display: inline-block; }

.stars-row  { display: flex; align-items: center; gap: 3px; margin: 8px 0; }
.st         { width: 11px; height: 11px; }
.rating-txt { font-size: 11px; color: var(--text-3); margin-left: 3px; }

.c-stats    { display: flex; margin-bottom: 12px; border-radius: 8px; overflow: hidden; border: 0.5px solid var(--border); }
.c-stat     { flex: 1; text-align: center; padding: 7px 4px; border-right: 0.5px solid var(--border); background: var(--bg); }
.c-stat:last-child { border-right: none; }
.c-stat-v   { font-size: 15px; font-weight: 500; }
.c-stat-l   { font-size: 9px; color: var(--text-3); margin-top: 1px; }

.c-footer   { display: flex; align-items: center; justify-content: space-between; padding-top: 10px; border-top: 0.5px solid var(--border); }
.c-zone     { font-size: 11px; color: var(--text-3); display: flex; align-items: center; gap: 3px; }
.btn-voir   { font-size: 11px; font-weight: 500; padding: 8px 14px; border-radius: 8px; border: none; background: var(--green-mid); color: #fff; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }

/* ─── SECTION COMMENT ÇA MARCHE ─────────────────────────────── */
.how-section { padding: 3rem 0 2rem; }
.how-title   { font-size: 20px; font-weight: 500; text-align: center; margin-bottom: .4rem; }
.how-sub     { font-size: 13px; color: var(--text-3); text-align: center; margin-bottom: 2rem; }
.how-steps   { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.how-step    { background: var(--white); border: 0.5px solid var(--border); border-radius: 14px; padding: 1.5rem; text-align: center; }
.how-num     { width: 36px; height: 36px; border-radius: 50%; background: var(--green-lite); color: var(--green); display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 500; margin: 0 auto 12px; }
.how-step-title { font-size: 14px; font-weight: 500; margin-bottom: 6px; }
.how-step-desc  { font-size: 12px; color: var(--text-2); line-height: 1.6; }
.how-price      { display: inline-block; margin-top: 10px; font-size: 13px; font-weight: 500; color: var(--green); background: var(--green-lite); padding: 3px 10px; border-radius: 20px; }

/* ─── SECTION MÉTIERS ────────────────────────────────────────── */
.metiers-section { padding: 1rem 0 2rem; }
.metiers-grid    { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.metier-card     { background: var(--white); border: 0.5px solid var(--border); border-radius: 12px; padding: 16px 12px; text-align: center; cursor: pointer; transition: all .15s; }
.metier-card:hover { border-color: var(--green-mid); background: var(--green-lite); }
.metier-icon     { width: 40px; height: 40px; border-radius: 10px; background: var(--green-lite); margin: 0 auto 8px; display: flex; align-items: center; justify-content: center; }
.metier-name     { font-size: 13px; font-weight: 500; color: var(--text); margin-bottom: 2px; }
.metier-count    { font-size: 10px; color: var(--text-3); }

/* ─── SECTION CONFIANCE ──────────────────────────────────────── */
.trust-section { background: var(--green-dark); padding: 2.5rem 0; margin: 2rem 0 0; }
.trust-section .container { display: grid; grid-template-columns: repeat(3,1fr); gap: 2rem; text-align: center; }
.trust-val  { font-size: 28px; font-weight: 500; color: #fff; }
.trust-lbl  { font-size: 12px; color: #5DCAA5; margin-top: 4px; }

/* ─── CTA ARTISAN ────────────────────────────────────────────── */
.cta-artisan { background: var(--white); border: 0.5px solid var(--border); border-radius: 16px; padding: 2.5rem; margin: 2rem 0; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.cta-left h2 { font-size: 20px; font-weight: 500; margin-bottom: 6px; }
.cta-left p  { font-size: 13px; color: var(--text-2); max-width: 420px; line-height: 1.6; }
.cta-badges  { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.cta-badge   { font-size: 11px; padding: 4px 10px; border-radius: 20px; background: var(--green-lite); color: var(--green-dark); font-weight: 500; }
.cta-btn-big { padding: 14px 28px; border-radius: 12px; border: none; background: var(--green-mid); color: #fff; font-size: 15px; font-weight: 500; cursor: pointer; white-space: nowrap; flex-shrink: 0; display: inline-block; }

/* ─── PUB STRIP ──────────────────────────────────────────────── */
.pub2         { margin: 0 0 20px; border-radius: 12px; background: #E6F1FB; border: 0.5px solid #B5D4F4; padding: 14px 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pub2-left    { display: flex; align-items: center; gap: 10px; }
.pub2-icon    { width: 38px; height: 38px; border-radius: 8px; background: #185FA5; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.pub2-title   { font-size: 13px; font-weight: 500; color: #0C447C; }
.pub2-sub     { font-size: 11px; color: #378ADD; margin-top: 1px; }
.pub2-btn     { font-size: 12px; font-weight: 500; padding: 8px 18px; border-radius: 8px; background: #185FA5; color: #fff; border: none; cursor: pointer; white-space: nowrap; flex-shrink: 0; display: inline-block; }

/* ─── PROFIL ARTISAN ─────────────────────────────────────────── */
.profil-wrap     { max-width: 700px; margin: 2rem auto; padding: 0 2rem; }
.profil-card     { background: var(--white); border: 0.5px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; margin-bottom: 1rem; }
.profil-top      { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 12px; }
.profil-name     { font-size: 20px; font-weight: 500; margin-bottom: 4px; }
.profil-zone     { font-size: 12px; color: var(--text-3); margin-top: 4px; display: flex; align-items: center; gap: 4px; }
.profil-desc     { font-size: 13px; color: var(--text-2); line-height: 1.6; margin-bottom: 1.25rem; }
.contact-unlocked   { background: var(--green-lite); border-radius: 10px; padding: 1.25rem; text-align: center; }
.contact-unlocked-label { font-size: 11px; color: var(--green-mid); margin-bottom: 6px; }
.contact-number     { font-size: 26px; font-weight: 500; color: var(--green-dark); letter-spacing: 2px; }
.contact-locked     { border: 0.5px dashed var(--border); border-radius: 10px; padding: 1.5rem; text-align: center; }
.locked-preview     { font-size: 22px; color: var(--text-3); letter-spacing: 4px; margin-bottom: 8px; }
.locked-desc        { font-size: 13px; color: var(--text-2); margin-bottom: 1rem; }
.method-select      { display: flex; gap: 12px; justify-content: center; margin-bottom: 14px; flex-wrap: wrap; }
.method-select label { font-size: 13px; color: var(--text-2); display: flex; align-items: center; gap: 5px; cursor: pointer; }
.btn-pay-full       { width: 100%; padding: 13px; border-radius: 10px; border: none; background: var(--green-mid); color: #fff; font-size: 15px; font-weight: 500; cursor: pointer; display: block; text-align: center; }

/* ─── AVIS ───────────────────────────────────────────────────── */
.avis-section   { background: var(--white); border: 0.5px solid var(--border); border-radius: var(--radius-lg); padding: 1.25rem; }
.avis-title     { font-size: 14px; font-weight: 500; margin-bottom: 12px; }
.avis-item      { padding: 10px 0; border-bottom: 0.5px solid var(--border); }
.avis-item:last-child { border-bottom: none; }
.avis-header    { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.avis-av        { width: 28px; height: 28px; border-radius: 50%; background: var(--green-lite); color: var(--green); display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 500; flex-shrink: 0; }
.avis-stars     { display: flex; gap: 2px; }
.avis-date      { font-size: 10px; color: var(--text-3); }
.avis-comment   { font-size: 12px; color: var(--text-2); line-height: 1.5; margin-left: 36px; }

/* ─── AUTH ───────────────────────────────────────────────────── */
.auth-wrap   { min-height: 70vh; display: flex; align-items: center; justify-content: center; padding: 2rem 1rem; }
.auth-card   { background: var(--white); border: 0.5px solid var(--border); border-radius: var(--radius-lg); padding: 2rem; width: 100%; max-width: 400px; }
.auth-logo   { font-size: 22px; font-weight: 500; color: var(--green); text-align: center; margin-bottom: 1.5rem; }
.auth-logo span { color: var(--text-3); }
.auth-tabs   { display: flex; border: 0.5px solid var(--border); border-radius: 8px; overflow: hidden; margin-bottom: 1.25rem; }
.auth-tab    { flex: 1; padding: 9px; border: none; background: transparent; font-size: 13px; cursor: pointer; color: var(--text-2); }
.auth-tab.active { background: var(--green); color: #fff; }
.form-group  { margin-bottom: 1rem; }
.form-group label { font-size: 12px; color: var(--text-2); display: block; margin-bottom: 4px; }
.form-group input { width: 100%; padding: 10px 12px; border-radius: 8px; border: 0.5px solid var(--border); background: var(--bg); font-size: 13px; color: var(--text); outline: none; }
.form-group input:focus { border-color: var(--green-mid); }
.btn-auth    { width: 100%; padding: 12px; border-radius: 8px; border: none; background: var(--green-mid); color: #fff; font-size: 14px; font-weight: 500; cursor: pointer; }

/* ─── CONFIRMATION ───────────────────────────────────────────── */
.confirm-wrap    { max-width: 440px; margin: 3rem auto; padding: 0 1.5rem; text-align: center; }
.confirm-success { background: var(--white); border: 0.5px solid var(--border); border-radius: var(--radius-lg); padding: 2.5rem; }
.confirm-icon    { width: 56px; height: 56px; border-radius: 50%; background: var(--green-mid); display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; }
.confirm-icon svg { width: 26px; height: 26px; }
.confirm-success h2 { font-size: 20px; font-weight: 500; margin-bottom: 8px; }
.confirm-success p  { font-size: 13px; color: var(--text-2); margin-bottom: 1.25rem; }
.revealed-number { font-size: 28px; font-weight: 500; color: var(--green-dark); letter-spacing: 2px; margin: 1rem 0 6px; }
.revealed-label  { font-size: 11px; color: var(--green-mid); }
.revealed-label a { color: var(--green-mid); text-decoration: underline; }

/* ─── ALERTS ─────────────────────────────────────────────────── */
.alert-error { background: #FCEBEB; color: #A32D2D; border-radius: 8px; padding: 10px 14px; font-size: 13px; margin-bottom: 1rem; }
.alert-success { background: var(--green-lite); color: var(--green-dark); border-radius: 8px; padding: 10px 14px; font-size: 13px; margin-bottom: 1rem; }

/* ─── EMPTY STATE ────────────────────────────────────────────── */
.empty-state { grid-column: 1/-1; text-align: center; padding: 4rem 1rem; color: var(--text-3); }
.empty-state a { color: var(--green-mid); text-decoration: underline; }

/* ─── FOOTER ─────────────────────────────────────────────────── */
.footer       { background: var(--white); border-top: 0.5px solid var(--border); padding: 1.5rem 0; margin-top: 2rem; }
.footer .container { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.footer-logo  { font-size: 15px; font-weight: 500; color: var(--green); }
.footer-logo span { color: var(--text-3); }
.footer-copy  { font-size: 11px; color: var(--text-3); }
.footer-links { display: flex; gap: 16px; font-size: 11px; }
.footer-links a { color: var(--text-3); }
.footer-links a:hover { color: var(--green-mid); }

/* ─── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .how-steps     { grid-template-columns: repeat(3,1fr); gap: 10px; }
  .metiers-grid  { grid-template-columns: repeat(4,1fr); }
  .cta-artisan   { flex-direction: column; text-align: center; }
  .cta-badges    { justify-content: center; }
}
@media (max-width: 640px) {
  .container     { padding: 0 1rem; }
  .hero h1       { font-size: 24px; }
  .how-steps     { grid-template-columns: 1fr; }
  .metiers-grid  { grid-template-columns: repeat(2,1fr); }
  .trust-section .container { grid-template-columns: repeat(3,1fr); gap: 1rem; }
  .trust-val     { font-size: 20px; }
  .nav-link-artisan { display: none; }
  .stats-strip .container { gap: 1.5rem; }
  .pub2          { flex-direction: column; align-items: flex-start; }
}
