/* ==========================================================
   KINGPHONE243 — Thème sombre « tech » (style Frandroid)
   Fond bleu nuit #101227 · Accent rose #F0447A · Roboto
   Barre dégradée bleu→violet→rose→orange en haut
   (le logo KING PHONE garde son jaune #FFB300 de marque)
   ========================================================== */

:root {
  --accent:       #F0447A;   /* rose : prix, CTA, états actifs, titres */
  --accent-fonce: #D62F63;
  --accent-tinte: #331528;   /* fond léger derrière icônes */
  --violet:       #7C6CF0;
  --noir:         #2E325F;   /* boutons secondaires (indigo sombre) */
  --encre:        #FFFFFF;
  --texte:        #C6C9E5;
  --texte-doux:   #8A8EB5;
  --fond:         #101227;   /* fond de page bleu nuit */
  --surface:      #1A1D3A;   /* cartes et panneaux */
  --surface-2:    #14162E;   /* champs, zones creuses */
  --blanc:        #FFFFFF;
  --bordure:      #2A2E55;
  --jaune:        #FFB300;   /* réservé au logo KING PHONE */
  --vert:         #22C55E;
  --rouge:        #F87171;
  --orange:       #F0447A;
  --bleu:         #F0447A;   /* alias hérité */
  --bleu-fonce:   #0D0F24;
  --bleu-clair:   #D62F63;
  --bleu-tinte:   #331528;
  --radius:       14px;
  --radius-sm:    9px;
  --ombre:        0 1px 3px rgba(0,0,0,.25), 0 6px 18px rgba(0,0,0,.25);
  --ombre-hover:  0 8px 20px rgba(0,0,0,.35), 0 18px 44px rgba(240,68,122,.10);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Roboto', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--fond);
  overflow-x: clip;
  color: var(--texte);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

img { max-width: 100%; display: block; }
a { color: var(--encre); text-decoration: none; }
a:hover { color: var(--accent); }
h1, h2, h3, h4 { color: var(--encre); line-height: 1.25; }

.conteneur { width: min(1200px, 100% - 32px); margin-inline: auto; }

i[data-lucide], svg.lucide { width: 18px; height: 18px; flex: none; }

/* ---------- Boutons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 20px; border-radius: 999px; border: none; cursor: pointer;
  font: 600 14.5px/1 'Roboto', sans-serif;
  transition: background .18s, box-shadow .18s, transform .12s, color .18s, border-color .18s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-jaune { background: var(--accent); color: #fff; box-shadow: 0 2px 14px rgba(240,68,122,.35); }
.btn-jaune:hover { background: var(--accent-fonce); color: #fff; }
.btn-bleu  { background: var(--noir); color: #fff; }
.btn-bleu:hover { background: #3A3F73; color: #fff; }
.btn-vert  { background: var(--vert); color: #06220F; }
.btn-vert:hover { background: #1CA84F; color: #06220F; }
.btn-rouge { background: #391418; color: var(--rouge); }
.btn-rouge:hover { background: #4A1A20; color: var(--rouge); }
.btn-ghost { background: transparent; color: var(--encre); border: 1.5px solid #3A3F73; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-contour { background: var(--surface); color: var(--encre); border: 1.5px solid var(--bordure); }
.btn-contour:hover { border-color: var(--accent); color: var(--accent); }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-sm { padding: 7px 13px; font-size: 13px; }
.btn-bloc { width: 100%; }

/* ---------- En-tête (sombre + barre dégradée façon Frandroid) ---------- */

.entete {
  background: #0D0F24;
  position: sticky; top: 0; z-index: 50;
  border-top: 4px solid transparent;
  border-image: linear-gradient(90deg, #3B82F6, #8B5CF6, #F0447A, #F97316) 1;
  box-shadow: 0 2px 14px rgba(0,0,0,.4);
}
.entete .logo-mot { color: #fff; }
.entete .lo-couronne { fill: #fff; }
.entete .btn-ghost { color: #fff; border-color: rgba(255,255,255,.3); }
.entete .btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.entete-inner {
  display: flex; align-items: center; gap: 18px;
  padding: 11px 0;
}

/* ----- Logo KING PHONE (reproduction vectorielle du logo officiel) ----- */

.logo { display: inline-flex; align-items: center; color: var(--encre); }
.logo:hover { color: var(--encre); }
.logo-cadre { width: 27px; height: 46px; flex: none; margin-right: -14px; }
.logo-cadre path {
  stroke: var(--jaune); stroke-width: 5.5; stroke-linecap: round; fill: none;
}
.logo-mot {
  display: inline-flex; align-items: center;
  font-size: 19px; font-weight: 800; letter-spacing: 1.5px; line-height: 1;
  color: var(--encre);
}
.logo-mot b { color: var(--jaune); font-size: 30px; font-weight: 800; margin-right: 1px; }
.logo-o {
  position: relative; display: inline-block; width: 14px; height: 19px;
  background: var(--jaune); border-radius: 4px; margin: 0 2.5px;
}
.logo-o::after {
  content: ''; position: absolute; left: 2.5px; right: 2.5px; top: 2.5px; bottom: 5px;
  background: #fff; border-radius: 2px;
}
.logo-o::before {
  content: ''; position: absolute; left: 50%; transform: translateX(-50%); bottom: 1.5px;
  width: 2.5px; height: 2.5px; border-radius: 50%; background: #fff;
}
.lo-couronne {
  position: absolute; top: -8px; left: 50%; transform: translateX(-50%);
  width: 15px; height: 7.5px; fill: #fff;
}
.logo-mot em {
  font-style: normal; font-size: 11px; letter-spacing: 0;
  background: var(--jaune); color: #101227;
  border-radius: 5px; padding: 2px 6px; margin-left: 8px; font-weight: 800;
}
.logo-sous { margin-top: 8px; padding-left: 20px; }
.ls-butembo {
  display: block; color: #fff; font-weight: 700; font-size: 14px;
  letter-spacing: 7px; text-indent: 3px;
}
.ls-tagline {
  display: block; color: var(--accent); font-weight: 700; font-size: 10.5px;
  letter-spacing: 3.5px; text-transform: uppercase; margin-top: 3px;
}

/* ----- Recherche ----- */

.recherche-entete {
  flex: 1; display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.08); border: 1.5px solid transparent;
  border-radius: 999px; padding: 4px 5px 4px 16px;
  max-width: 520px; margin-inline: auto;
  transition: border-color .15s, background .15s;
}
.recherche-entete:focus-within { border-color: var(--accent); background: rgba(255,255,255,.11); }
.recherche-entete i { color: rgba(255,255,255,.55); }
.recherche-entete input {
  flex: 1; border: none; outline: none; font: 500 14.5px 'Roboto', sans-serif;
  background: transparent; color: #fff; min-width: 40px;
}
.recherche-entete input::placeholder { color: rgba(255,255,255,.45); }
.recherche-entete button {
  border: none; background: var(--accent); color: #fff; font: 600 13.5px 'Roboto', sans-serif;
  padding: 9px 18px; border-radius: 999px; cursor: pointer; transition: background .15s;
}
.recherche-entete button:hover { background: var(--accent-fonce); }

.entete-actions { display: flex; align-items: center; gap: 10px; }

/* ----- Barre catégories (onglets) ----- */

.barre-categories { border-top: 1px solid rgba(255,255,255,.08); background: #0D0F24; }
.barre-categories-inner {
  display: flex; gap: 4px; overflow-x: auto;
  scrollbar-width: none;
}
.barre-categories-inner::-webkit-scrollbar { display: none; }
/* Centre les onglets quand il y a de la place, défile sinon */
.chip-cat:first-child { margin-left: auto; }
.chip-cat:last-child { margin-right: auto; }
.chip-cat {
  display: inline-flex; align-items: center; gap: 7px;
  color: #A6AACF; font-size: 13.5px; font-weight: 600;
  padding: 11px 14px 9px; white-space: nowrap;
  border-bottom: 2.5px solid transparent;
  transition: color .15s, border-color .15s;
}
.chip-cat i { width: 15px; height: 15px; }
.chip-cat:hover { color: #fff; }
.chip-cat.actif { color: var(--accent); border-bottom-color: var(--accent); }

/* ---------- Héro ---------- */

.hero {
  background: linear-gradient(180deg, #14172F 0%, var(--fond) 100%);
  border-bottom: 1px solid var(--bordure);
  padding: 44px 0 48px; text-align: center;
}
.hero h1 { font-size: clamp(26px, 4.2vw, 40px); font-weight: 800; color: #fff; }
.hero h1 span { color: var(--accent); }
.hero p { max-width: 640px; margin: 14px auto 26px; color: var(--texte-doux); font-size: 16px; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- Diaporama (accueil, géré par l'admin) ---------- */

.diaporama {
  position: relative; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--ombre); background: var(--surface-2);
}
.diapo-piste { display: flex; transition: transform .55s cubic-bezier(.4,0,.2,1); }
.diapo {
  min-width: 100%; position: relative; display: block;
  aspect-ratio: 8/3; background: var(--surface-2);
}
.diapo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.diapo-legende {
  position: absolute; inset: auto 0 0 0; padding: 34px 26px 20px;
  background: linear-gradient(transparent, rgba(6,7,20,.78));
}
.diapo-legende span {
  color: #fff; font-weight: 800; font-size: clamp(15px, 2.4vw, 22px);
  text-shadow: 0 1px 4px rgba(0,0,0,.5);
}
.diapo-fleche {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(20,22,46,.85); color: #fff;
  display: grid; place-items: center; transition: background .15s, opacity .2s, color .15s;
  opacity: 0; box-shadow: 0 2px 8px rgba(0,0,0,.35);
}
.diaporama:hover .diapo-fleche { opacity: 1; }
.diapo-fleche:hover { background: var(--accent); color: #fff; }
.diapo-prec { left: 14px; }
.diapo-suiv { right: 14px; }
.diapo-points {
  position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 7px;
}
.diapo-points button {
  width: 9px; height: 9px; border-radius: 999px; border: none; cursor: pointer;
  background: rgba(255,255,255,.4); transition: background .2s, width .2s; padding: 0;
}
.diapo-points button.actif { background: var(--accent); width: 24px; }

/* Version pleine largeur (accueil) */
.diaporama-pleine { border-radius: 0; box-shadow: none; }
.diaporama-pleine .diapo { aspect-ratio: 21/6; max-height: 480px; min-height: 220px; }
.diaporama-pleine .diapo-fleche { width: 44px; height: 44px; }
.diaporama-pleine .diapo-prec { left: 24px; }
.diaporama-pleine .diapo-suiv { right: 24px; }

@media (max-width: 640px) {
  .diapo, .diaporama-pleine .diapo { aspect-ratio: 16/9; }
  .diapo-fleche { opacity: 1; width: 32px; height: 32px; }
  .diaporama-pleine .diapo-prec { left: 10px; }
  .diaporama-pleine .diapo-suiv { right: 10px; }
}

/* ---------- Sections ---------- */

.section { padding: 44px 0; }
.section-titre {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 22px; gap: 12px; flex-wrap: wrap;
}
.section-titre h2 { font-size: 24px; font-weight: 800; display: flex; align-items: center; gap: 10px; color: #fff; }
.section-titre h2 i { color: var(--accent); width: 24px; height: 24px; }
.section-titre a { font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; gap: 5px; color: var(--texte-doux); }
.section-titre a:hover { color: var(--accent); }

/* Titre centré (rose, façon Frandroid) */
.section-titre.centre { justify-content: center; margin-bottom: 28px; }
.section-titre.centre h2 { font-size: clamp(22px, 3vw, 30px); text-align: center; color: var(--accent); }

.lien-centre { display: flex; justify-content: center; margin-top: 26px; }

/* ---------- Grille de cartes catégories ---------- */

.grille-cats {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px;
}
.carte-cat {
  background: var(--surface); border-radius: var(--radius);
  padding: 22px 14px; text-align: center; box-shadow: var(--ombre);
  transition: box-shadow .18s, transform .18s;
}
.carte-cat:hover { box-shadow: var(--ombre-hover); transform: translateY(-3px); color: inherit; }
.carte-cat i {
  width: 30px; height: 30px; color: var(--accent); background: var(--accent-tinte);
  padding: 12px; border-radius: 50%; box-sizing: content-box; margin-bottom: 10px;
}
.carte-cat strong { display: block; color: var(--encre); font-size: 14px; }
.carte-cat span { font-size: 12.5px; color: var(--texte-doux); }

/* ---------- Cartes annonces ---------- */

.grille-annonces {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px;
}
.carte-annonce {
  background: var(--surface); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  box-shadow: var(--ombre);
  transition: box-shadow .18s, transform .18s;
}
.carte-annonce:hover { box-shadow: var(--ombre-hover); transform: translateY(-3px); color: inherit; }
.carte-annonce-img { position: relative; aspect-ratio: 4/3; background: var(--surface-2); overflow: hidden; }
.carte-annonce-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.carte-annonce:hover .carte-annonce-img img { transform: scale(1.04); }
.badge-etat {
  position: absolute; top: 10px; left: 10px; font-size: 11.5px; font-weight: 700;
  padding: 3px 10px; border-radius: 999px; background: rgba(13,15,36,.82); color: #fff;
  backdrop-filter: blur(3px);
}
.badge-etat.neuf { background: rgba(34,197,94,.92); color: #06220F; }
.carte-annonce-corps { padding: 13px 15px 15px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.carte-annonce-corps h3 {
  font-size: 14.5px; font-weight: 700; color: var(--encre);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.carte-annonce-prix { font-size: 17px; font-weight: 800; color: var(--accent); }
.carte-annonce-prix.sur-demande { font-size: 13.5px; color: var(--accent); font-weight: 700;
  display: inline-flex; align-items: center; gap: 5px; }
.carte-annonce-meta {
  margin-top: auto; display: flex; align-items: center; justify-content: space-between;
  font-size: 12px; color: var(--texte-doux);
}
.carte-annonce-meta span { display: inline-flex; align-items: center; gap: 4px; }
.carte-annonce-meta i { width: 13px; height: 13px; }

/* ---------- Bandeau devenir boutique ---------- */

.bandeau-vendre {
  background: linear-gradient(120deg, #35299B 0%, #6D2178 55%, #B0245A 100%);
  border-radius: 18px; padding: 40px; color: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.bandeau-vendre h2 { color: #fff; font-size: 24px; }
.bandeau-vendre h2 span { color: var(--jaune); }
.bandeau-vendre p { color: rgba(255,255,255,.82); max-width: 520px; margin-top: 6px; }

/* ---------- Étapes (comment ça marche) ---------- */

.grille-etapes { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.carte-etape {
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--ombre);
  padding: 24px 20px;
}
.carte-etape .num {
  width: 36px; height: 36px; border-radius: 10px; background: var(--accent); color: #fff;
  display: grid; place-items: center; font-weight: 800; margin-bottom: 12px;
}
.carte-etape h3 { font-size: 16px; margin-bottom: 5px; }
.carte-etape p { font-size: 13.5px; color: var(--texte-doux); }

/* ---------- Page liste annonces ---------- */

.entete-page { background: #14172F; border-bottom: 1px solid var(--bordure); padding: 24px 0; }
.entete-page h1 { font-size: 24px; }
.entete-page p { color: var(--texte-doux); font-size: 14px; }

.barre-filtres {
  display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--ombre);
  padding: 12px 14px; margin: 20px 0;
}
.barre-filtres select {
  border: 1.5px solid var(--bordure); border-radius: var(--radius-sm); padding: 9px 12px;
  font: 500 14px 'Roboto', sans-serif; color: var(--encre); background: var(--surface-2); cursor: pointer;
}
.barre-filtres select:focus { outline: none; border-color: var(--accent); }

.vide {
  text-align: center; padding: 60px 20px; color: var(--texte-doux);
}
.vide i { width: 46px; height: 46px; margin-bottom: 12px; color: #4A4F80; }
.vide h3 { color: var(--encre); margin-bottom: 6px; }

.pagination { display: flex; gap: 7px; justify-content: center; margin: 30px 0; flex-wrap: wrap; }
.pagination a, .pagination span {
  min-width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--bordure);
  font-weight: 600; font-size: 14px; padding: 0 10px;
}
.pagination .actif { background: var(--accent); color: #fff; border-color: var(--accent); }
.pagination a:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Page détail annonce ---------- */

.fil-ariane { font-size: 13px; color: var(--texte-doux); padding: 16px 0 0; }
.fil-ariane a { color: var(--texte-doux); }
.fil-ariane a:hover { color: var(--accent); }

.detail-grille {
  display: grid; grid-template-columns: 1.5fr 1fr; gap: 22px; margin: 18px 0 44px;
  align-items: start;
}
.galerie { background: var(--surface); border-radius: var(--radius); box-shadow: var(--ombre); overflow: hidden; }
.galerie-principale { aspect-ratio: 4/3; background: var(--surface-2); }
.galerie-principale img { width: 100%; height: 100%; object-fit: contain; }
.galerie-vignettes { display: flex; gap: 8px; padding: 10px; overflow-x: auto; }
.galerie-vignettes img {
  width: 70px; height: 70px; object-fit: cover; border-radius: var(--radius-sm);
  border: 2px solid transparent; cursor: pointer; opacity: .6; transition: opacity .15s;
}
.galerie-vignettes img.actif, .galerie-vignettes img:hover { border-color: var(--accent); opacity: 1; }

.panneau-achat {
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--ombre);
  padding: 22px; position: sticky; top: 130px;
}
.panneau-achat h1 { font-size: 21px; margin-bottom: 8px; }
.prix-detail { font-size: 30px; font-weight: 800; color: var(--accent); margin: 8px 0 2px; }
.prix-detail.sur-demande { font-size: 20px; display: flex; align-items: center; gap: 8px; }
.meta-detail { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--texte-doux); margin: 10px 0 18px; }
.meta-detail span { display: inline-flex; align-items: center; gap: 5px; }
.meta-detail i { width: 14px; height: 14px; }

.btn-whatsapp {
  background: #25D366; color: #06220F; width: 100%; padding: 14px; font-size: 16px;
  box-shadow: 0 3px 14px rgba(37,211,102,.3);
}
.btn-whatsapp:hover { background: #1FB958; color: #06220F; }
.btn-whatsapp i { width: 21px; height: 21px; }

.carte-vendeur {
  border-top: 1px solid var(--bordure); margin-top: 20px; padding-top: 18px;
  display: flex; align-items: center; gap: 13px;
}
.avatar {
  width: 48px; height: 48px; border-radius: 50%; background: var(--accent); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 18px; flex: none;
  overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.carte-vendeur strong { display: block; color: var(--encre); font-size: 15px; }
.carte-vendeur small { color: var(--texte-doux); display: flex; align-items: center; gap: 4px; }
.badge-verifie {
  display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 700;
  color: #4ADE80; background: #10301F; padding: 2px 9px; border-radius: 999px; margin-top: 3px;
}
.badge-verifie i { width: 12px; height: 12px; }

.bloc-description {
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--ombre);
  padding: 22px; margin-top: 22px;
}
.bloc-description h2 { font-size: 17px; margin-bottom: 10px; }
.bloc-description p { white-space: pre-line; font-size: 14.5px; }

/* ---------- Formulaires ---------- */

.page-auth { display: grid; place-items: center; padding: 50px 16px; }
.carte-form {
  background: var(--surface); border-radius: 16px;
  box-shadow: var(--ombre); padding: 34px; width: 100%; max-width: 480px;
}
.carte-form-large { max-width: 720px; }
.carte-form h1 { font-size: 22px; margin-bottom: 4px; }
.carte-form > p { color: var(--texte-doux); font-size: 14px; margin-bottom: 22px; }

.champ { margin-bottom: 16px; }
.champ label { display: block; font-weight: 700; font-size: 13.5px; color: var(--encre); margin-bottom: 6px; }
.champ label small { font-weight: 500; color: var(--texte-doux); }
.champ input, .champ select, .champ textarea {
  width: 100%; border: 1.5px solid var(--bordure); border-radius: var(--radius-sm);
  padding: 11px 14px; font: 500 14.5px 'Roboto', sans-serif; color: var(--encre);
  background: var(--surface-2); transition: border-color .15s, box-shadow .15s;
}
.champ input:focus, .champ select:focus, .champ textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(240,68,122,.18);
}
.champ input::placeholder, .champ textarea::placeholder { color: #5E6390; }
.champ textarea { min-height: 130px; resize: vertical; }
.champ .aide { font-size: 12.5px; color: var(--texte-doux); margin-top: 5px; }
.champs-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.interrupteur {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  background: var(--surface-2); border: 1.5px solid var(--bordure); border-radius: var(--radius-sm);
  padding: 13px 15px; cursor: pointer;
}
.interrupteur .txt strong { display: block; font-size: 14px; color: var(--encre); }
.interrupteur .txt span { font-size: 12.5px; color: var(--texte-doux); }
.interrupteur input { display: none; }
.interrupteur .piste {
  width: 46px; height: 26px; border-radius: 999px; background: #3A3F73; position: relative;
  transition: background .18s; flex: none;
}
.interrupteur .piste::after {
  content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px;
  border-radius: 50%; background: #fff; transition: left .18s; box-shadow: 0 1px 3px rgba(0,0,0,.35);
}
.interrupteur input:checked + .piste { background: var(--vert); }
.interrupteur input:checked + .piste::after { left: 23px; }

.lien-form { text-align: center; font-size: 14px; margin-top: 18px; }
.lien-form a { font-weight: 700; color: var(--accent); }

/* ---------- Bandeau promo (connexion / inscription) ---------- */

.bandeau-promo {
  display: flex; align-items: center; gap: 12px;
  background: #0C1A11; border-radius: 12px;
  padding: 12px 15px; margin-bottom: 16px;
}
.bandeau-promo i, .bandeau-promo svg {
  width: 18px; height: 18px; flex: none;
  color: #0F1F0F; background: #4ADE80;
  padding: 7px; border-radius: 9px; box-sizing: content-box;
}
.bandeau-promo span {
  color: #6EE787; font-weight: 700; font-size: 14px; line-height: 1.45;
}

/* ---------- Connexion Google ---------- */

.btn-google {
  background: #fff; color: #16233F; border: 1.5px solid var(--bordure);
  padding: 12px; font-size: 15px; border-radius: var(--radius-sm);
}
.btn-google:hover { border-color: var(--accent); background: #F5F6FA; color: #16233F; box-shadow: var(--ombre); }
.separateur-ou {
  display: flex; align-items: center; gap: 12px; margin: 18px 0;
  color: var(--texte-doux); font-size: 12.5px; font-weight: 600;
}
.separateur-ou::before, .separateur-ou::after {
  content: ''; flex: 1; height: 1px; background: var(--bordure);
}

/* ---------- Messages flash ---------- */

.flash {
  border-radius: var(--radius-sm); padding: 13px 16px; margin: 14px 0 0;
  font-weight: 600; font-size: 14px; border: 1px solid;
}
.flash-succes { background: #0F2A1B; color: #6EE7A0; border-color: #1E4D33; }
.flash-erreur { background: #331318; color: #FCA5A5; border-color: #5A1F29; }
.flash-info   { background: #14203E; color: #93B4F5; border-color: #24407A; }

/* ---------- Espace boutique / Admin ---------- */

.tableau-bord { display: grid; grid-template-columns: 230px 1fr; gap: 22px; padding: 26px 0 50px; align-items: start; }
.menu-lateral {
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--ombre);
  padding: 12px; position: sticky; top: 130px;
}
.menu-lateral a {
  display: flex; align-items: center; gap: 10px; padding: 11px 13px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 14px; color: var(--texte); transition: background .13s, color .13s;
}
.menu-lateral a:hover { background: var(--surface-2); color: var(--accent); }
.menu-lateral a.actif { background: var(--accent); color: #fff; }
.menu-lateral a .pastille { margin-left: auto; }
.menu-lateral hr { border: none; border-top: 1px solid var(--bordure); margin: 8px 0; }

.contenu-bord { min-width: 0; } /* permet aux tableaux de défiler dans leur panneau au lieu d'élargir la page */
.contenu-bord h1 { font-size: 22px; margin-bottom: 4px; }
.contenu-bord > p.sous-titre { color: var(--texte-doux); font-size: 14px; margin-bottom: 20px; }

.grille-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 24px; }
.carte-stat {
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--ombre); padding: 18px;
  display: flex; align-items: center; gap: 14px;
}
.carte-stat i {
  width: 22px; height: 22px; color: var(--accent); background: var(--accent-tinte);
  padding: 11px; border-radius: 12px; box-sizing: content-box;
}
.carte-stat.jaune i { color: #FACC15; background: #3A2E0E; }
.carte-stat.vert  i { color: #4ADE80; background: #10301F; }
.carte-stat.rouge i { color: var(--rouge); background: #391418; }
.carte-stat strong { display: block; font-size: 22px; color: var(--encre); font-weight: 800; line-height: 1.1; }
.carte-stat span { font-size: 12.5px; color: var(--texte-doux); }

.panneau {
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--ombre);
  padding: 20px; margin-bottom: 20px;
}
.panneau h2 { font-size: 17px; margin-bottom: 14px; }

.tableau { width: 100%; border-collapse: collapse; font-size: 14px; }
.tableau th {
  text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .4px;
  color: var(--texte-doux); padding: 10px 12px; border-bottom: 1.5px solid var(--bordure);
}
.tableau td { padding: 12px; border-bottom: 1px solid var(--bordure); vertical-align: middle; }
.tableau tr:last-child td { border-bottom: none; }
.tableau .mini-img { width: 52px; height: 44px; object-fit: cover; border-radius: 8px; }
.defiler-x { overflow-x: auto; }

.pastille {
  display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700;
  padding: 3px 11px; border-radius: 999px;
}
.pastille-attente  { background: #3A2E0E; color: #FACC15; }
.pastille-approuve { background: #10301F; color: #4ADE80; }
.pastille-rejete   { background: #391418; color: var(--rouge); }
.pastille-suspendu { background: #23264A; color: #9CA3C9; }
.pastille-active   { background: #10301F; color: #4ADE80; }
.pastille-masquee  { background: #23264A; color: #9CA3C9; }
.pastille-notif    { background: var(--accent); color: #fff; min-width: 20px; height: 20px;
  justify-content: center; padding: 0 6px; border-radius: 999px; font-size: 11.5px; }

.actions-ligne { display: flex; gap: 6px; flex-wrap: wrap; }

.avis-attente {
  background: #2C230B; border: 1px solid #574413;
  border-radius: var(--radius); padding: 18px 20px; margin-bottom: 20px;
  display: flex; gap: 14px; align-items: flex-start;
}
.avis-attente i { color: #F5D06E; width: 24px; height: 24px; flex: none; margin-top: 2px; }
.avis-attente strong { color: #F5D06E; display: block; margin-bottom: 3px; }
.avis-attente p { font-size: 13.5px; color: #D9BC6A; }

/* ---------- Zone de dépôt d'images ---------- */

.zone-images {
  border: 2px dashed #3A3F73; border-radius: var(--radius); padding: 26px; text-align: center;
  cursor: pointer; transition: border-color .15s, background .15s; background: var(--surface-2);
}
.zone-images:hover, .zone-images.survol { border-color: var(--accent); background: var(--accent-tinte); }
.zone-images i { width: 32px; height: 32px; color: var(--accent); margin-bottom: 8px; }
.zone-images p { font-size: 14px; font-weight: 600; color: var(--encre); }
.zone-images small { color: var(--texte-doux); font-size: 12.5px; }
.apercus-images { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.apercus-images .apercu { position: relative; }
.apercus-images img { width: 84px; height: 84px; object-fit: cover; border-radius: var(--radius-sm);
  border: 1px solid var(--bordure); }
.apercus-images .retirer {
  position: absolute; top: -7px; right: -7px; width: 22px; height: 22px; border-radius: 50%;
  background: #DC2626; color: #fff; border: none; cursor: pointer; font-size: 13px; line-height: 1;
}

/* ---------- Pages légales (conditions, confidentialité) ---------- */

.page-legale {
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--ombre);
  padding: 36px; max-width: 860px; margin: 30px auto 44px;
}
.page-legale h1 { font-size: 26px; margin-bottom: 4px; }
.page-legale .maj { color: var(--texte-doux); font-size: 13px; margin-bottom: 22px; }
.page-legale h2 { font-size: 17px; margin: 24px 0 8px; }
.page-legale p { font-size: 14.5px; margin-bottom: 10px; }
.page-legale ul { margin: 0 0 12px 20px; }
.page-legale li { font-size: 14.5px; margin-bottom: 6px; }
.page-legale a { color: var(--accent); font-weight: 600; }

/* ---------- Pied de page (sombre) ---------- */

.pied { background: #0D0F24; color: #8A8EB5; margin-top: 40px; border-top: 1px solid var(--bordure); }
.pied-grille {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.1fr 1.4fr; gap: 28px; padding: 44px 0 34px;
}
.pied h4 {
  color: #fff; font-size: 12.5px; margin-bottom: 12px;
  text-transform: uppercase; letter-spacing: .8px;
}
.pied a { display: block; color: #8A8EB5; font-size: 13.5px; padding: 3.5px 0; }
.pied a:hover { color: var(--accent); }
.pied p { font-size: 13px; margin-top: 14px; line-height: 1.7; }
.pied .logo-mot { color: #fff; }
.pied .lo-couronne { fill: #fff; }
.pied .ls-butembo { color: #fff; }
.logo-pied .logo-mot { font-size: 17px; }
.logo-pied .logo-mot b { font-size: 27px; }
.logo-pied .logo-cadre { width: 24px; height: 42px; margin-right: -12px; }

.reseaux { display: flex; gap: 10px; margin-bottom: 20px; }
.reseaux a {
  width: 36px; height: 36px; border-radius: 50%; padding: 0;
  background: rgba(255,255,255,.08); color: #A6AACF;
  display: grid; place-items: center; transition: background .15s, color .15s;
}
.reseaux a:hover { background: var(--accent); color: #fff; }
.reseaux i { width: 17px; height: 17px; }

.chat-direct {
  display: inline-flex !important; align-items: center; gap: 8px;
  color: #fff !important; font-weight: 600; font-size: 13.5px;
  background: rgba(255,255,255,.08); border-radius: 999px; padding: 8px 15px !important;
  transition: background .15s;
}
.chat-direct:hover { background: #1FB958; }
.chat-direct i { width: 16px; height: 16px; color: #25D366; }
.chat-direct:hover i { color: #fff; }

.lettre-info {
  display: flex; align-items: center; gap: 0;
  border: 1.5px solid rgba(255,255,255,.22); border-radius: 999px;
  padding: 3px 3px 3px 16px; max-width: 300px;
  transition: border-color .15s;
}
.lettre-info:focus-within { border-color: var(--accent); }
.lettre-info input {
  flex: 1; min-width: 40px; border: none; outline: none; background: transparent;
  color: #fff; font: 500 13.5px 'Roboto', sans-serif;
}
.lettre-info input::placeholder { color: #6A6F9E; }
.lettre-info button {
  width: 34px; height: 34px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--accent); color: #fff; display: grid; place-items: center;
  transition: background .15s, color .15s; flex: none;
}
.lettre-info button:hover { background: var(--accent-fonce); }
.lettre-info button i { width: 16px; height: 16px; }

.pied-bas { background: #090B1C; color: #6A6F9E; padding: 16px 0; font-size: 12.5px; }

/* ---------- Assistance King Phone (icônes) ---------- */

.grille-assist {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 26px; max-width: 1000px; margin-inline: auto;
}
.carte-assist { text-align: center; padding: 8px 10px; }
.carte-assist i {
  width: 36px; height: 36px; color: var(--accent); margin-bottom: 12px;
}
.carte-assist strong { display: block; color: var(--encre); font-size: 15px; margin-bottom: 5px; }
.carte-assist p { font-size: 12.5px; color: var(--texte-doux); line-height: 1.6; max-width: 240px; margin-inline: auto; }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .entete-inner { flex-wrap: wrap; gap: 10px; }
  .logo { order: 1; }
  .entete-actions { order: 2; margin-left: auto; }
  .recherche-entete { order: 3; flex-basis: 100%; max-width: none; }
  .detail-grille { grid-template-columns: 1fr; }
  .panneau-achat { position: static; }
  .tableau-bord { grid-template-columns: 1fr; }
  .menu-lateral { position: static; display: flex; overflow-x: auto; gap: 4px; }
  .menu-lateral a { white-space: nowrap; }
  .menu-lateral hr { display: none; }
  .pied-grille { grid-template-columns: 1fr 1fr; }
  .pied-grille > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .masquer-mobile { display: none; }
  /* Sur mobile, l'en-tête défile avec la page pour libérer l'écran */
  .entete { position: static; }
  .carte-annonce-meta { font-size: 11px; }
  .carte-annonce-meta i { width: 12px; height: 12px; }
  .logo-mot { font-size: 16px; letter-spacing: 1px; }
  .logo-mot b { font-size: 25px; }
  .logo-cadre { width: 23px; height: 40px; margin-right: -12px; }
  .logo-o { width: 12px; height: 16px; }
  .logo-o::after { bottom: 4px; }
  .btn-publier { padding: 10px 14px; }
  .champs-2 { grid-template-columns: 1fr; }
  .grille-annonces { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
  .bandeau-vendre { padding: 26px 22px; }
  .pied-grille { grid-template-columns: 1fr; gap: 20px; }
  .carte-form { padding: 24px 20px; }
}
