/* ==========================================================================
   NumiApp — module SERVICES À LA MAISON (site public). Fichier scopé `.numi-services`.
   Accent = violet #8B5CF6 (theme_color de la section « Home/On Demand Service »).
   Chargé APRÈS style.css / numiapp-socle.css : aucune règle `!important`.
   Le vert de marque NumiApp (#1CB084) reste le socle pour les actions neutres.
   Contraste : les fonds pleins utilisent la nuance 700 (texte blanc lisible).
   ========================================================================== */

.ns {
    --ns-accent: #8B5CF6;
    --ns-accent-700: #6D28D9;   /* nuance sûre pour texte blanc */
    --ns-accent-50: #F5F3FF;
    --ns-ink: #0B1220;
    --ns-ink-2: #475569;
    --ns-muted: #64748B;
    --ns-line: #E6E8F0;
    --ns-bg: #FFFFFF;
    --ns-bg-soft: #F7F7FB;
    --ns-brand: #1CB084;
    --ns-brand-700: #0E8A66;
    --ns-radius: 16px;
    --ns-radius-sm: 10px;
    --ns-shadow: 0 6px 24px rgba(15, 23, 42, .07);
    --ns-shadow-sm: 0 2px 10px rgba(15, 23, 42, .06);
    color: var(--ns-ink);
    font-family: 'Poppins', system-ui, -apple-system, "Segoe UI", sans-serif;
}

.ns *, .ns *::before, .ns *::after { box-sizing: border-box; }
.ns a { color: var(--ns-accent-700); text-decoration: none; }
.ns a:hover { text-decoration: underline; }
.ns .ns-container { max-width: 1180px; margin: 0 auto; padding: 0 18px; }
.ns .ns-muted { color: var(--ns-muted); font-size: 13px; }
.ns .ns-req { color: #DC2626; }
.ns .ns-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.ns .ns-mono { font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; background: #F1F5F9; padding: 1px 6px; border-radius: 6px; font-size: .92em; }
.ns .ns-mono-sm { font-size: 12px; }
.ns .ns-h1 { font-size: 30px; line-height: 1.15; margin: 0 0 6px; font-weight: 700; }
.ns .ns-hl { color: var(--ns-accent-700); }
.ns .ns-sep { color: #CBD5E1; }

/* ---------- boutons ---------- */
.ns .ns-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    border: 1px solid transparent; border-radius: 999px; padding: 11px 20px;
    font-size: 14px; font-weight: 600; cursor: pointer; line-height: 1; transition: transform .06s ease, box-shadow .15s ease;
    text-decoration: none;
}
.ns .ns-btn:hover { text-decoration: none; }
.ns .ns-btn:active { transform: translateY(1px); }
.ns .ns-btn-primary { background: var(--ns-accent-700); color: #fff; }
.ns .ns-btn-primary:hover { background: #5B21B6; color: #fff; }
.ns .ns-btn-primary:disabled { background: #C7C7D6; color: #fff; cursor: not-allowed; }
.ns .ns-btn-ghost { background: #fff; color: var(--ns-accent-700); border-color: var(--ns-line); }
.ns .ns-btn-ghost:hover { border-color: var(--ns-accent); color: var(--ns-accent-700); }

/* ---------- bandeau de tête ---------- */
.ns .ns-topbar { background: linear-gradient(180deg, #FFFFFF 0%, var(--ns-accent-50) 100%); border-bottom: 1px solid var(--ns-line); padding: 14px 0 16px; }
.ns .ns-brandline { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; }
.ns .ns-logo { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 18px; color: var(--ns-ink); }
.ns .ns-logo:hover { text-decoration: none; }
.ns .ns-logo-ico { font-size: 22px; }
.ns .ns-badge-brand { font-size: 11px; background: var(--ns-brand-700); color: #fff; padding: 2px 8px; border-radius: 999px; font-weight: 600; }
.ns .ns-slogan { color: var(--ns-muted); font-size: 13px; }
.ns .ns-quick { margin-left: auto; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.ns .ns-quicklink { font-size: 14px; color: var(--ns-ink-2); font-weight: 500; }
.ns .ns-quick-cta { font-size: 14px; font-weight: 600; background: var(--ns-accent-700); color: #fff; padding: 9px 16px; border-radius: 999px; }
.ns .ns-quick-cta:hover { background: #5B21B6; color: #fff; text-decoration: none; }
.ns .ns-searchbar { display: flex; gap: 10px; }
.ns .ns-searchbar input {
    flex: 1; border: 1px solid var(--ns-line); border-radius: 999px; padding: 13px 18px; font-size: 15px;
    background: #fff; color: var(--ns-ink);
}
.ns .ns-searchbar input:focus { outline: none; border-color: var(--ns-accent); box-shadow: 0 0 0 3px rgba(139, 92, 246, .18); }
.ns .ns-searchbar button { border: none; background: var(--ns-accent-700); color: #fff; border-radius: 999px; padding: 0 26px; font-weight: 600; cursor: pointer; }
.ns .ns-searchbar button:hover { background: #5B21B6; }

/* ---------- héros ---------- */
.ns .ns-hero { display: grid; grid-template-columns: 1.55fr 1fr; gap: 26px; padding: 30px 0 8px; align-items: start; }
.ns .ns-pill { display: inline-block; background: var(--ns-accent-50); color: var(--ns-accent-700); font-size: 12px; font-weight: 600; padding: 5px 12px; border-radius: 999px; margin-bottom: 12px; }
.ns .ns-hero-copy h1 { font-size: 40px; line-height: 1.1; margin: 0 0 14px; font-weight: 800; }
.ns .ns-hero-copy p { font-size: 16px; color: var(--ns-ink-2); max-width: 620px; }
.ns .ns-hero-actions { display: flex; gap: 12px; margin: 20px 0 24px; flex-wrap: wrap; }
.ns .ns-hero-stats { display: flex; gap: 26px; flex-wrap: wrap; }
.ns .ns-stat { display: flex; flex-direction: column; }
.ns .ns-stat b { font-size: 26px; color: var(--ns-accent-700); }
.ns .ns-stat span { font-size: 12px; color: var(--ns-muted); }
.ns .ns-howmin { background: #fff; border: 1px solid var(--ns-line); border-radius: var(--ns-radius); padding: 22px; box-shadow: var(--ns-shadow); }
.ns .ns-howmin h3 { margin: 0 0 14px; font-size: 16px; }
.ns .ns-howlist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.ns .ns-howlist li { display: flex; gap: 10px; font-size: 14px; color: var(--ns-ink-2); }
.ns .ns-howlist span { flex: 0 0 24px; height: 24px; border-radius: 50%; background: var(--ns-accent-50); color: var(--ns-accent-700); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; }
.ns .ns-howlist b { color: var(--ns-ink); }

/* ---------- sections ---------- */
.ns .ns-section { padding: 26px 0; border-top: 1px solid var(--ns-line); }
.ns .ns-section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.ns .ns-section-title h2 { font-size: 22px; margin: 0; font-weight: 700; }
.ns .ns-sub { color: var(--ns-muted); font-size: 14px; }

/* ---------- catégories / métiers ---------- */
.ns .ns-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.ns .ns-cat { display: flex; flex-direction: column; gap: 4px; background: #fff; border: 1px solid var(--ns-line); border-radius: var(--ns-radius); padding: 16px; color: var(--ns-ink); box-shadow: var(--ns-shadow-sm); }
.ns .ns-cat:hover { text-decoration: none; border-color: var(--ns-accent); transform: translateY(-2px); }
.ns .ns-cat-ico { font-size: 26px; height: 40px; display: inline-flex; align-items: center; }
.ns .ns-cat-ico img { height: 36px; width: auto; }
.ns .ns-cat-nom { font-weight: 600; font-size: 16px; }
.ns .ns-cat-n { font-size: 12px; color: var(--ns-muted); }
.ns .ns-catapps { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.ns .ns-chip { display: inline-block; font-size: 12px; background: var(--ns-bg-soft); border: 1px solid var(--ns-line); color: var(--ns-ink-2); padding: 3px 9px; border-radius: 999px; }
.ns .ns-chip-app { background: var(--ns-accent-50); border-color: #DDD6FE; color: var(--ns-accent-700); }
.ns .ns-chip-open { background: #FEF3C7; border-color: #FDE68A; color: #92400E; }

.ns .ns-metiers { display: flex; flex-direction: column; gap: 16px; }
.ns .ns-metier { background: #fff; border: 1px solid var(--ns-line); border-radius: var(--ns-radius); padding: 18px; box-shadow: var(--ns-shadow-sm); }
.ns .ns-metier-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.ns .ns-metier-titre { display: inline-flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 700; color: var(--ns-ink); }
.ns .ns-metier-ico { height: 34px; width: auto; }
.ns .ns-metier-ico-txt { font-size: 24px; height: 34px; display: inline-flex; align-items: center; }
.ns .ns-metier-n { font-size: 13px; color: var(--ns-muted); }
.ns .ns-souscats { display: flex; flex-wrap: wrap; gap: 8px; }
.ns .ns-souscat { font-size: 13px; background: var(--ns-bg-soft); border: 1px solid var(--ns-line); border-radius: 999px; padding: 6px 12px; color: var(--ns-ink-2); }
.ns .ns-souscat:hover { border-color: var(--ns-accent); color: var(--ns-accent-700); text-decoration: none; }
.ns .ns-souscat-n { background: var(--ns-accent-700); color: #fff; border-radius: 999px; font-size: 11px; padding: 0 6px; margin-left: 4px; }

/* ---------- filtres ---------- */
.ns .ns-filtres { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; background: #fff; border: 1px solid var(--ns-line); border-radius: var(--ns-radius); padding: 16px; margin-bottom: 20px; box-shadow: var(--ns-shadow-sm); }
.ns .ns-filtre { display: flex; flex-direction: column; gap: 5px; }
.ns .ns-filtre label { font-size: 12px; color: var(--ns-muted); font-weight: 500; }
.ns .ns-filtre select, .ns .ns-filtre input { border: 1px solid var(--ns-line); border-radius: var(--ns-radius-sm); padding: 9px 11px; font-size: 14px; background: #fff; min-width: 150px; }
.ns .ns-filtre select:focus, .ns .ns-filtre input:focus { outline: none; border-color: var(--ns-accent); }

/* ---------- cartes prestataires ---------- */
.ns .ns-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.ns .ns-card { display: flex; gap: 14px; background: #fff; border: 1px solid var(--ns-line); border-radius: var(--ns-radius); padding: 14px; box-shadow: var(--ns-shadow-sm); }
.ns .ns-card-photo { position: relative; flex: 0 0 76px; height: 76px; border-radius: 14px; overflow: hidden; background: var(--ns-accent-50); display: flex; align-items: center; justify-content: center; }
.ns .ns-card-photo img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.ns .ns-card-avatar { font-size: 30px; font-weight: 700; color: var(--ns-accent-700); }
.ns .ns-card-body { flex: 1; min-width: 0; }
.ns .ns-card-name { margin: 0 0 4px; font-size: 16px; font-weight: 700; }
.ns .ns-card-name a { color: var(--ns-ink); }
.ns .ns-card-meta { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ns-ink-2); }
.ns .ns-note { color: #B45309; font-weight: 600; }
.ns .ns-note-vide { color: var(--ns-muted); font-weight: 500; }
.ns .ns-card-metiers { display: flex; flex-wrap: wrap; gap: 5px; margin: 8px 0 6px; }
.ns .ns-card-zone { font-size: 13px; color: var(--ns-ink-2); margin: 0 0 10px; }
.ns .ns-dist { color: var(--ns-accent-700); font-weight: 600; }
.ns .ns-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid var(--ns-line); padding-top: 10px; }
.ns .ns-tarif { font-size: 14px; color: var(--ns-ink-2); }
.ns .ns-tarif b { color: var(--ns-ink); }
.ns .ns-btn-ghost.ns-btn { padding: 8px 14px; font-size: 13px; }

/* ---------- fiche prestataire ---------- */
.ns .ns-breadcrumb { font-size: 13px; color: var(--ns-muted); margin: 4px 0 14px; }
.ns .ns-fiche { background: #fff; border: 1px solid var(--ns-line); border-radius: var(--ns-radius); padding: 22px; box-shadow: var(--ns-shadow-sm); }
.ns .ns-fiche-head { display: flex; gap: 20px; align-items: flex-start; flex-wrap: wrap; }
.ns .ns-fiche-photo { flex: 0 0 120px; width: 120px; height: 120px; border-radius: 20px; overflow: hidden; background: var(--ns-accent-50); display: flex; align-items: center; justify-content: center; }
.ns .ns-fiche-photo img { width: 100%; height: 100%; object-fit: cover; }
.ns .ns-fiche-initiale { font-size: 48px; font-weight: 700; color: var(--ns-accent-700); }
.ns .ns-fiche-id { flex: 1; min-width: 260px; }
.ns .ns-fiche-meta { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ns-ink-2); flex-wrap: wrap; }
.ns .ns-fiche-zone { font-size: 14px; color: var(--ns-ink-2); margin: 8px 0; }
.ns .ns-fiche-metiers { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.ns .ns-fiche-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.ns .ns-fiche-map, .ns .ns-map { height: 300px; border-radius: var(--ns-radius); margin: 18px 0; border: 1px solid var(--ns-line); background: var(--ns-bg-soft); z-index: 1; }
.ns .ns-fiche-bloc { margin-top: 22px; border-top: 1px solid var(--ns-line); padding-top: 18px; }
.ns .ns-fiche-bloc h2 { font-size: 18px; margin: 0 0 12px; }
.ns .ns-services { display: flex; flex-direction: column; gap: 12px; }
.ns .ns-service { display: flex; gap: 14px; align-items: center; justify-content: space-between; border: 1px solid var(--ns-line); border-radius: var(--ns-radius-sm); padding: 14px; flex-wrap: wrap; }
.ns .ns-service h3 { margin: 0 0 4px; font-size: 15px; }
.ns .ns-service p { margin: 0; font-size: 13px; color: var(--ns-muted); }
.ns .ns-service-meta { display: flex; gap: 12px; font-size: 12px; color: var(--ns-muted); margin-top: 6px; flex-wrap: wrap; }
.ns .ns-service-side { display: flex; align-items: center; gap: 12px; }
.ns .ns-galerie { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.ns .ns-galerie img { width: 100%; height: 120px; object-fit: cover; border-radius: var(--ns-radius-sm); border: 1px solid var(--ns-line); }
.ns .ns-workers { display: flex; flex-wrap: wrap; gap: 12px; }
.ns .ns-worker { display: flex; align-items: center; gap: 8px; background: var(--ns-bg-soft); border-radius: var(--ns-radius-sm); padding: 8px 12px; font-size: 13px; }
.ns .ns-worker img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.ns .ns-worker small { color: #B45309; }

/* ---------- formulaire de demande ---------- */
.ns .ns-demande { max-width: 860px; margin: 22px auto; }
.ns .ns-demande-head { margin-bottom: 18px; }
.ns .ns-form { background: #fff; border: 1px solid var(--ns-line); border-radius: var(--ns-radius); padding: 24px; box-shadow: var(--ns-shadow); }
.ns .ns-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.ns .ns-field { display: flex; flex-direction: column; gap: 6px; }
.ns .ns-field-wide { grid-column: 1 / -1; }
.ns .ns-field label { font-size: 14px; font-weight: 600; color: var(--ns-ink); }
.ns .ns-field input, .ns .ns-field select, .ns .ns-field textarea {
    border: 1px solid var(--ns-line); border-radius: var(--ns-radius-sm); padding: 12px 14px; font-size: 15px;
    background: #fff; color: var(--ns-ink); font-family: inherit;
}
.ns .ns-field input:focus, .ns .ns-field select:focus, .ns .ns-field textarea:focus { outline: none; border-color: var(--ns-accent); box-shadow: 0 0 0 3px rgba(139, 92, 246, .16); }
.ns .ns-help { font-size: 12px; color: var(--ns-muted); }
.ns .ns-form .ns-map { height: 260px; margin: 6px 0 0; }

.ns .ns-recap { background: var(--ns-bg-soft); border: 1px solid var(--ns-line); border-radius: var(--ns-radius); padding: 18px; margin: 22px 0; }
.ns .ns-recap h3 { margin: 0 0 12px; font-size: 15px; }
.ns .ns-recap-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ns .ns-recap-list li { display: flex; gap: 12px; justify-content: space-between; font-size: 14px; border-bottom: 1px dashed var(--ns-line); padding-bottom: 8px; }
.ns .ns-recap-list li:last-child { border-bottom: none; }
.ns .ns-recap-list span { color: var(--ns-muted); flex: 0 0 40%; }
.ns .ns-recap-list b { text-align: right; color: var(--ns-ink); }

.ns .ns-form-actions { display: flex; align-items: center; gap: 16px; margin-top: 20px; flex-wrap: wrap; }
.ns .ns-login-note { font-size: 14px; color: var(--ns-ink-2); }
.ns .ns-form-status { font-size: 13px; color: var(--ns-accent-700); }

/* ---------- alertes / honnêteté ---------- */
.ns .ns-alert { border-radius: var(--ns-radius-sm); padding: 12px 16px; font-size: 14px; margin-bottom: 16px; }
.ns .ns-alert-err { background: #FEF2F2; border: 1px solid #FECACA; color: #991B1B; }
.ns .ns-alert-info { background: var(--ns-accent-50); border: 1px solid #DDD6FE; color: #4C1D95; }
.ns .ns-honnete { background: #FFFBEB; border: 1px solid #FDE68A; border-radius: var(--ns-radius); padding: 18px 20px; color: #713F12; font-size: 14px; line-height: 1.55; }
.ns .ns-honnete h3 { margin: 0 0 8px; font-size: 15px; color: #92400E; }
.ns .ns-honnete code { background: #FEF3C7; padding: 1px 6px; border-radius: 6px; }
.ns .ns-honnete-mini { font-size: 13px; padding: 12px 16px; margin: 16px 0; }

/* ---------- avantages ---------- */
.ns .ns-panel { background: #fff; border: 1px solid var(--ns-line); border-radius: var(--ns-radius); padding: 20px; box-shadow: var(--ns-shadow-sm); }
.ns .ns-avantages { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.ns .ns-av span { font-size: 22px; }
.ns .ns-av b { display: block; margin: 6px 0 4px; font-size: 15px; }
.ns .ns-av p { margin: 0; font-size: 13px; color: var(--ns-muted); }

/* ---------- confirmation / suivi / détail ---------- */
.ns .ns-confirm { max-width: 720px; margin: 30px auto; text-align: center; }
.ns .ns-confirm-ok { font-size: 54px; }
.ns .ns-confirm-actions { display: flex; gap: 12px; justify-content: center; margin-top: 22px; flex-wrap: wrap; }
.ns .ns-demandes { display: flex; flex-direction: column; gap: 12px; }
.ns .ns-demande-row { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--ns-line); border-radius: var(--ns-radius); padding: 16px; box-shadow: var(--ns-shadow-sm); color: var(--ns-ink); }
.ns .ns-demande-row:hover { text-decoration: none; border-color: var(--ns-accent); }
.ns .ns-demande-main { flex: 1; min-width: 0; }
.ns .ns-demande-main h3 { margin: 0 0 4px; font-size: 16px; }
.ns .ns-demande-desc { margin: 0 0 8px; font-size: 13px; color: var(--ns-muted); }
.ns .ns-demande-meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: 13px; color: var(--ns-ink-2); margin: 0; }
.ns .ns-demande-go { font-size: 26px; color: var(--ns-accent-700); }
.ns .ns-statut { font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; }
.ns .ns-statut-placed { background: #EDE9FE; color: #6D28D9; }
.ns .ns-statut-accepted { background: #DCFCE7; color: #166534; }
.ns .ns-statut-assigned { background: #DBEAFE; color: #1E40AF; }
.ns .ns-statut-ongoing { background: #FEF3C7; color: #92400E; }
.ns .ns-statut-completed { background: #DCFCE7; color: #065F46; }
.ns .ns-statut-cancelled, .ns .ns-statut-rejected { background: #FEE2E2; color: #991B1B; }
.ns .ns-introuvable { max-width: 620px; margin: 50px auto; text-align: center; }
.ns .ns-introuvable-ico { font-size: 52px; }

/* ---------- état vide ---------- */
.ns .ns-empty { background: #fff; border: 1px dashed var(--ns-line); border-radius: var(--ns-radius); padding: 30px; text-align: center; color: var(--ns-ink-2); }
.ns .ns-empty b { font-size: 16px; }
.ns .ns-empty-mini { padding: 18px; }
.ns .ns-note { font-size: 13px; color: var(--ns-muted); }
.ns .ns-reponse { background: var(--ns-bg-soft); border-radius: var(--ns-radius-sm); padding: 14px; font-size: 14px; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
    .ns .ns-hero { grid-template-columns: 1fr; }
    .ns .ns-hero-copy h1 { font-size: 30px; }
    .ns .ns-form-grid { grid-template-columns: 1fr; }
    .ns .ns-quick { margin-left: 0; }
}
@media (max-width: 560px) {
    .ns .ns-searchbar { flex-direction: column; }
    .ns .ns-hero-copy h1 { font-size: 26px; }
    .ns .ns-h1 { font-size: 24px; }
    .ns .ns-recap-list span { flex: 0 0 45%; }
}
