/* boutiq.sn — annuaire / vitrine marketplace. Landing page destinée à
   « susciter l'appétit » : navy profond + or, fond ivoire, serif Fraunces
   pour les titres. (Le thème par boutique est ailleurs, sur la vitrine.) */

:root {
  --nav: #14213D;
  --nav-fonce: #0d1628;
  --or: #C79A3A;
  --or-clair: #E6C877;
  --fond: #FBF7F0;
  --carte: #ffffff;
  --texte: #22252B;
  --doux: #6a7180;
  --bord: #e7e2d6;
  --blanc: #fff;
  --ombre: 0 6px 24px rgba(20, 33, 61, .08);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--texte);
  background: var(--fond);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.conteneur { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.centre { text-align: center; }

/* En-tête */
.site-entete {
  background: rgba(251, 247, 240, .88);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--bord);
  position: sticky; top: 0; z-index: 30;
}
.site-entete .conteneur { display: flex; align-items: center; gap: 16px; min-height: 72px; }
.logo { font-family: var(--serif); font-weight: 700; font-size: 23px; color: var(--nav); letter-spacing: -.01em; display: inline-flex; align-items: center; gap: 10px; }
.logo span { color: var(--or); }
.logo .mot { color: var(--nav); }
.logo .mot span { color: var(--or); }
.site-entete .logo img { height: 42px; width: auto; display: block; }
.entete-liens { margin-left: auto; display: flex; gap: 4px; align-items: center; }
.entete-liens a { padding: 9px 13px; border-radius: 9px; font-weight: 600; font-size: 14px; color: var(--nav); }
.entete-liens a:hover { background: rgba(20, 33, 61, .06); }
.entete-liens a.lien-ouvrir { display: none; }
.entete-liens a.plein {
  background: var(--nav); color: #fff; box-shadow: var(--ombre);
}
.entete-liens a.plein:hover { background: var(--nav-fonce); }
@media (min-width: 780px) { .entete-liens a.lien-ouvrir { display: inline-block; } }

/* Boutons */
.btn-or, .btn-clair {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px; font-weight: 700; font-size: 15px;
  border: 2px solid transparent; cursor: pointer; transition: transform .12s ease;
}
.btn-or { background: linear-gradient(180deg, var(--or-clair), var(--or)); color: #3a2c05; box-shadow: 0 8px 22px rgba(199, 154, 58, .35); }
.btn-or:hover { transform: translateY(-2px); }
.btn-clair { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .5); }
.btn-clair:hover { background: rgba(255, 255, 255, .12); }

/* ---------- BANNIÈRE DU SITE (bande image pleine largeur) ----------
   Visuel boutiq.sn (logo + slogan produits + CTA), fond crème identique au
   fond du site → se fond bord à bord sur les très grands écrans. */
.banniere-site {
  width: 100%; background: var(--fond); line-height: 0;
  border-bottom: 3px solid #FE8B00;
}
.banniere-site img {
  display: block; width: 100%; max-width: 1440px; height: auto; margin: 0 auto;
}

/* ---------- HERO ---------- */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(1200px 600px at 15% -10%, #1c3a6b 0%, var(--nav) 45%, var(--nav-fonce) 100%);
  color: #fff; padding: 52px 20px 88px; text-align: center;
}
.hero-halo {
  position: absolute; width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(199, 154, 58, .38), transparent 70%);
  right: -120px; top: -140px; pointer-events: none;
}
.hero .conteneur { position: relative; max-width: 820px; }
.hero-kicker {
  text-transform: uppercase; letter-spacing: .18em; font-size: 12px; font-weight: 600;
  color: var(--or-clair); margin: 0 0 18px;
}
.hero h1 {
  font-family: var(--serif); font-weight: 600; font-size: clamp(34px, 6vw, 56px);
  line-height: 1.08; margin: 0 0 20px; letter-spacing: -.02em;
}
.hero h1 span { color: var(--or-clair); font-style: italic; }
.hero-sous { font-size: clamp(16px, 2.2vw, 19px); color: rgba(255, 255, 255, .82); max-width: 620px; margin: 0 auto 30px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-note { margin: 26px 0 0; font-size: 13px; color: rgba(255, 255, 255, .62); }
.hero-note strong { color: #fff; }

/* ---------- VALEURS ---------- */
.valeurs { margin-top: -46px; }
.valeurs .conteneur {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 18px;
}
.valeur {
  background: var(--carte); border: 1px solid var(--bord); border-radius: 18px;
  padding: 22px 20px; box-shadow: var(--ombre);
}
.valeur .v-ico { font-size: 26px; }
.valeur h3 { font-family: var(--serif); font-weight: 600; font-size: 18px; margin: 10px 0 6px; color: var(--nav); }
.valeur p { margin: 0; font-size: 14px; color: var(--doux); }

/* ---------- FIL / VITRINE ---------- */
.fil { padding: 56px 0 20px; }
.fil-tete { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.retour-accueil { display: inline-block; margin-bottom: 14px; color: var(--nav); font-weight: 600; font-size: 14px; }
.mini-recherche { display: flex; }
.mini-recherche input {
  width: min(320px, 60vw); padding: 11px 14px; border: 1px solid var(--bord); border-right: none;
  border-radius: 999px 0 0 999px; font: inherit; background: var(--blanc);
}
.mini-recherche button {
  border: 1px solid var(--nav); background: var(--nav); color: #fff; padding: 0 16px;
  border-radius: 0 999px 999px 0; cursor: pointer; display: flex; align-items: center;
}
.fil-vide {
  text-align: center; background: var(--carte); border: 1px solid var(--bord);
  border-radius: 22px; padding: 54px 24px; box-shadow: var(--ombre);
}
.fil-vide h2 { font-family: var(--serif); font-weight: 600; color: var(--nav); font-size: 24px; margin: 0 0 10px; }
.fil-vide p { color: var(--doux); max-width: 46ch; margin: 0 auto 22px; }
.lien-fort { color: var(--nav); font-weight: 700; }

/* ---------- ÉTAPES ---------- */
.etapes { padding: 60px 0; background: linear-gradient(180deg, transparent, rgba(20, 33, 61, .04)); }
.etapes-grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-top: 26px; }
.etape { background: var(--carte); border: 1px solid var(--bord); border-radius: 18px; padding: 26px 22px; }
.etape .num {
  display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px;
  border-radius: 50%; background: var(--nav); color: var(--or-clair); font-family: var(--serif);
  font-weight: 700; font-size: 19px; margin-bottom: 12px;
}
.etape h3 { font-family: var(--serif); font-weight: 600; font-size: 18px; margin: 0 0 6px; color: var(--nav); }
.etape p { margin: 0; font-size: 14px; color: var(--doux); }

/* ---------- CATÉGORIES ---------- */
.cats { padding: 56px 0 70px; }
.cats-grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-top: 24px; }
.cat-carte {
  display: flex; align-items: flex-end; min-height: 116px; padding: 16px;
  border-radius: 16px; color: #fff; font-family: var(--serif); font-weight: 600; font-size: 17px;
  background: var(--nav); position: relative; overflow: hidden; box-shadow: var(--ombre);
  transition: transform .12s ease;
}
.cat-carte:hover { transform: translateY(-3px); }
.cat-carte span { position: relative; z-index: 1; }
.cat-carte::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .35)); }
.cat-mode { background: linear-gradient(135deg, #6C4AB6, #3d2a7a); }
.cat-cosmetique { background: linear-gradient(135deg, #D96BA0, #a13f74); }
.cat-alimentaire { background: linear-gradient(135deg, #0E7C57, #0a5a3f); }
.cat-electronique { background: linear-gradient(135deg, #2B7DE0, #1a4f8f); }
.cat-maison { background: linear-gradient(135deg, #E08A2B, #a35f16); }
.cat-artisanat { background: linear-gradient(135deg, #B23A3A, #7a2626); }
.cat-services { background: linear-gradient(135deg, #14213D, #0d1628); }

/* ---------- BANDE CTA ---------- */
.bande-cta {
  background: radial-gradient(900px 400px at 85% 120%, #1c3a6b, var(--nav) 60%, var(--nav-fonce));
  color: #fff; text-align: center; padding: 62px 20px;
}
.bande-cta h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(24px, 4vw, 34px); margin: 0 0 12px; }
.bande-cta p { color: rgba(255, 255, 255, .8); margin: 0 auto 26px; max-width: 52ch; }

/* ---------- Page « Ouvrir ma boutique » ---------- */
.btn-wa-grand {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 28px; border-radius: 999px; font-weight: 700; font-size: 16px;
  background: #25D366; color: #063d1c; box-shadow: 0 8px 22px rgba(37, 211, 102, .35);
  transition: transform .12s ease;
}
.btn-wa-grand:hover { transform: translateY(-2px); }
.liste-avantages { list-style: none; padding: 0; margin: 8px 0 30px; display: grid; gap: 10px; }
.liste-avantages li {
  position: relative; padding: 12px 14px 12px 44px; background: var(--carte);
  border: 1px solid var(--bord); border-radius: 12px; font-size: 15px;
}
.liste-avantages li::before {
  content: "✓"; position: absolute; left: 14px; top: 11px; width: 22px; height: 22px;
  background: var(--nav); color: var(--or-clair); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700;
}
.prix-encart {
  text-align: center; background: var(--carte); border: 1px solid var(--bord);
  border-radius: 20px; padding: 32px 24px; box-shadow: var(--ombre);
}
.prix-gros { font-family: var(--serif); font-weight: 700; font-size: 42px; color: var(--nav); }
.prix-gros span { font-size: 18px; color: var(--doux); font-weight: 500; }
.prix-encart p { color: var(--doux); margin: 8px auto 20px; max-width: 44ch; }

/* Puces catégories */
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 15px; border-radius: 999px; border: 1px solid var(--bord);
  background: var(--carte); font-size: 13px; font-weight: 600; color: var(--nav);
}
.chip:hover { border-color: var(--or); }
.chip.actif { background: var(--nav); color: #fff; border-color: var(--nav); }
.chip .n { opacity: .55; font-weight: 500; }

/* Barre de filtres */
.filtres {
  background: var(--blanc); border: 1px solid var(--bord); border-radius: 12px;
  padding: 12px; margin: 16px 0; display: flex; gap: 10px; flex-wrap: wrap; align-items: end;
}
.filtres .champ { display: flex; flex-direction: column; gap: 4px; }
.filtres label { font-size: 12px; color: var(--doux); font-weight: 600; }
.filtres input, .filtres select {
  padding: 9px 11px; border: 1px solid var(--bord); border-radius: 8px; font: inherit; background: var(--blanc);
}
.filtres button {
  padding: 9px 16px; border: none; border-radius: 8px; background: var(--nav);
  color: #fff; font: inherit; font-weight: 600; cursor: pointer;
}
.filtres a.raz { align-self: center; font-size: 13px; color: var(--doux); }

main { padding: 8px 0 48px; }
.section-titre {
  font-family: var(--serif); font-weight: 600; font-size: 22px; color: var(--nav);
  margin: 6px 0 16px; letter-spacing: -.01em;
}
.section-titre.centre { text-align: center; }

/* Grille produits */
.grille {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(175px, 1fr)); gap: 18px;
}
.carte {
  background: var(--carte); border: 1px solid var(--bord); border-radius: 16px;
  overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--ombre);
  transition: transform .12s ease;
}
.carte:hover { transform: translateY(-3px); }
.carte .visuel {
  aspect-ratio: 1/1; background: #f0ece2; display: flex; align-items: center;
  justify-content: center; color: #b8b0a0; font-size: 12px;
}
.carte .visuel img { width: 100%; height: 100%; object-fit: cover; }
.carte .corps { padding: 13px; display: flex; flex-direction: column; gap: 5px; }
.carte .nom { font-weight: 600; font-size: 14px; }
.carte .prix { font-family: var(--serif); font-weight: 600; color: var(--nav); font-size: 16px; }
.carte .par { font-size: 12px; color: var(--doux); display: flex; align-items: center; gap: 4px; }

/* Grille boutiques */
.grille-boutiques {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px;
}
.boutique-carte {
  background: var(--blanc); border: 1px solid var(--bord); border-radius: 12px;
  padding: 16px; display: flex; gap: 12px; align-items: center;
}
.boutique-carte:hover { border-color: var(--nav); }
.boutique-carte .logo-b {
  width: 52px; height: 52px; border-radius: 10px; background: var(--fond);
  object-fit: cover; flex-shrink: 0; display: flex; align-items: center;
  justify-content: center; color: var(--nav); font-weight: 800; font-size: 20px;
}
.boutique-carte .infos { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.boutique-carte .n { font-weight: 700; }
.boutique-carte .meta { font-size: 12px; color: var(--doux); }

/* ---------- LES BOUTIQUES (bloc accueil) ---------- */
.boutiques-accueil { padding: 14px 0 40px; }

/* ---------- À PROPOS (bloc SEO discret, fin d'accueil) ---------- */
.a-propos-annuaire { padding: 8px 0 64px; }
.a-propos-annuaire .conteneur { max-width: 760px; }
.a-propos-annuaire h2 {
  font-family: var(--serif); font-weight: 600; color: var(--nav);
  font-size: clamp(19px, 3vw, 24px); margin: 0 0 14px;
}
.a-propos-annuaire p { margin: 0 0 12px; color: var(--doux); font-size: 15px; line-height: 1.6; }
.a-propos-annuaire strong { color: var(--texte); }
.a-propos-annuaire a { color: var(--nav); font-weight: 600; text-decoration: underline; }
.boutiques-accueil .fil-tete { margin-bottom: 20px; }

.badge-verifie {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 11px; font-weight: 700; color: #0a7d3f;
}
.badge-verifie svg { width: 13px; height: 13px; fill: currentColor; }

/* Pagination */
.pagination { display: flex; gap: 8px; justify-content: center; align-items: center; margin: 28px 0 0; }
.pagination a, .pagination span {
  padding: 8px 14px; border-radius: 8px; border: 1px solid var(--bord);
  background: var(--blanc); font-size: 14px; font-weight: 600;
}
.pagination .courant { background: var(--nav); color: #fff; border-color: var(--nav); }
.pagination .inactif { opacity: .4; }

.vide {
  text-align: center; color: var(--doux); padding: 44px 16px;
  background: var(--blanc); border: 1px dashed var(--bord); border-radius: 12px;
}

/* Rail boutiques sur l'accueil */
.rail { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 6px; }
.rail .mini {
  flex: 0 0 auto; width: 150px; background: var(--blanc); border: 1px solid var(--bord);
  border-radius: 12px; padding: 14px; text-align: center;
}
.rail .mini .logo-b {
  width: 44px; height: 44px; margin: 0 auto 8px; border-radius: 10px; background: var(--fond);
  display: flex; align-items: center; justify-content: center; color: var(--nav); font-weight: 800;
  object-fit: cover;
}
.rail .mini .n { font-weight: 600; font-size: 13px; }
.rail .mini .c { font-size: 11px; color: var(--doux); }

/* Pied */
.site-pied {
  background: var(--nav-fonce); color: rgba(255, 255, 255, .7);
  padding: 44px 20px 30px; font-size: 14px;
}
.site-pied .conteneur { display: grid; gap: 18px; }
.site-pied .pied-marque .logo { color: #fff; }
.site-pied .pied-marque p { margin: 8px 0 0; max-width: 40ch; }
.site-pied .pied-liens { display: flex; gap: 18px; flex-wrap: wrap; }
.site-pied a { color: #fff; font-weight: 600; }
.site-pied a:hover { color: var(--or-clair); }
.site-pied .pied-bas { margin: 8px 0 0; font-size: 13px; color: rgba(255, 255, 255, .5); }
@media (min-width: 720px) {
  .site-pied .conteneur { grid-template-columns: 1fr auto; align-items: start; }
  .site-pied .pied-bas { grid-column: 1 / -1; border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 16px; }
}

.intro-cat { color: var(--doux); max-width: 68ch; margin: 4px 0 8px; }

/* ---------- Formulaire « Ouvrir ma boutique » ---------- */
.messages { margin: 18px 0 0; display: flex; flex-direction: column; gap: 8px; }
.msg { padding: 10px 14px; border-radius: 8px; font-size: 14px; }
.msg-erreur { background: #fdecec; color: #a12020; border: 1px solid #f5c6c6; }
.msg-info { background: #eef4ff; color: #1c3a6b; border: 1px solid #c9dbf5; }

.formulaire { margin: 22px 0 48px; max-width: 780px; }
.formulaire fieldset {
  border: 1px solid var(--bord); border-radius: 12px; background: var(--blanc);
  padding: 18px; margin: 0 0 18px;
}
.formulaire legend { font-weight: 700; color: var(--nav); padding: 0 8px; }
.grille-champs { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.champ { display: flex; flex-direction: column; gap: 5px; font-size: 14px; font-weight: 600; color: var(--texte); margin-top: 14px; }
.grille-champs .champ { margin-top: 0; }
.champ:first-child { margin-top: 0; }
.champ .opt, .champ .label + .opt { font-weight: 500; color: var(--doux); }
.champ .label { font-weight: 600; }
.champ input, .champ select, .champ textarea {
  padding: 10px 12px; border: 1px solid var(--bord); border-radius: 8px;
  font: inherit; font-weight: 400; background: var(--blanc); width: 100%;
}
.champ textarea { resize: vertical; }
.champ small { font-weight: 400; color: var(--doux); font-size: 12px; }
.avec-suffixe { display: flex; align-items: center; gap: 6px; }
.avec-suffixe input { flex: 1; }
.avec-suffixe span { color: var(--doux); font-weight: 600; white-space: nowrap; }

.btn-afficher-mdp {
  flex: none; background: var(--fond, #f6f7f9); border: 1px solid var(--bord);
  border-radius: 8px; padding: 10px 12px; font: inherit; font-weight: 600;
  font-size: 13px; color: var(--nav); cursor: pointer; white-space: nowrap;
}
.btn-afficher-mdp:hover { background: var(--bord); }

/* Sélecteur de couleur par nom (atelier de montage) */
.avec-pastille { display: flex; align-items: center; gap: 8px; }
.avec-pastille select { flex: 1; }
.pastille-couleur {
  flex: none; width: 26px; height: 26px; border-radius: 7px;
  border: 1px solid rgba(0, 0, 0, .15); box-shadow: inset 0 0 0 2px #fff;
}

.champ-check { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; font-size: 14px; }
.champ-check input { margin-top: 3px; }

/* Grilles de cases à cocher (catégories, couleurs, styles) */
.cases-grille {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 8px 14px; margin: 6px 0 4px;
}
.case {
  display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 400;
  padding: 7px 10px; border: 1px solid var(--bord); border-radius: 8px; cursor: pointer;
  background: var(--blanc);
}
.case:hover { border-color: var(--nav); }
.case input { margin: 0; }
.case .pastille {
  width: 15px; height: 15px; border-radius: 50%; border: 1px solid rgba(0,0,0,.15); flex-shrink: 0;
}
.case-legende { font-size: 12px; color: var(--doux); margin: 2px 0 2px; }

.contrat-cadre {
  max-height: 320px; overflow-y: auto; border: 1px solid var(--bord);
  border-radius: 10px; padding: 4px 16px; background: var(--fond); margin-bottom: 6px;
}
.contrat h2 { font-size: 17px; color: var(--nav); }
.contrat h2 .v { font-weight: 400; color: var(--doux); font-size: 13px; }
.contrat h3 { font-size: 14px; margin: 16px 0 4px; }
.contrat p, .contrat li { font-size: 13px; line-height: 1.6; color: var(--texte); }
.contrat ul, .contrat ol { margin: 4px 0 4px 18px; padding: 0; }

#signature-pad {
  touch-action: none; cursor: crosshair; width: 100%; max-width: 600px;
  height: 180px; border: 2px dashed var(--bord); border-radius: 10px; background: var(--blanc);
}
.signature-actions { display: flex; align-items: center; gap: 12px; margin-top: 6px; }
.signature-actions .lien { background: none; border: none; color: var(--nav); font: inherit; font-weight: 600; cursor: pointer; padding: 0; }
.etat-vide { font-size: 12px; color: #a12020; font-weight: 600; }
.etat-ok { font-size: 12px; color: #0a7d3f; font-weight: 600; }

.btn-envoyer {
  background: var(--nav); color: #fff; border: none; border-radius: 10px;
  padding: 13px 26px; font: inherit; font-weight: 700; cursor: pointer;
}
.btn-envoyer:hover { background: var(--nav-fonce); }
.note-form { color: var(--doux); font-size: 13px; margin-top: 12px; }

/* Confirmation */
.confirmation { text-align: center; padding: 44px 16px; }
.confirmation .coche {
  width: 56px; height: 56px; border-radius: 50%; background: #0a7d3f; color: #fff;
  font-size: 30px; line-height: 56px; margin: 0 auto 16px;
}
.confirmation h1 { color: var(--nav); font-size: 22px; }
.confirmation p { color: var(--texte); }
.btn-retour {
  display: inline-block; background: var(--nav); color: #fff; padding: 11px 22px;
  border-radius: 10px; font-weight: 600;
}

/* ---------- Espace marchand (/gerer/) ---------- */
.msg-ok { background: #e7f6ec; color: #0a6b34; border: 1px solid #b7e2c5; }

.gerer-nav { flex-wrap: wrap; }
.gerer-nav a.actif-nav { background: var(--nav); color: #fff; }
.lien-deco {
  background: none; border: 1px solid var(--bord); color: var(--doux);
  border-radius: 8px; padding: 8px 12px; font: inherit; font-weight: 600; cursor: pointer;
}
.lien-deco:hover { border-color: #c33; color: #c33; }

.gerer-main { padding: 24px 0 56px; }
.gerer-h1 { font-size: 24px; color: var(--nav); margin: 6px 0 18px; }
.gerer-h2 { font-size: 18px; color: var(--nav); margin: 30px 0 12px; }
.gerer-sous { color: var(--doux); font-size: 14px; margin: 6px 0 16px; }
.gerer-sous a { color: var(--nav); font-weight: 600; }
.gerer-titre-ligne { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

.cartes-stat { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin: 12px 0; }
.stat { background: var(--blanc); border: 1px solid var(--bord); border-radius: 12px; padding: 16px; }
.stat .v { font-size: 22px; font-weight: 800; color: var(--nav); }
.stat .l { font-size: 12px; color: var(--doux); margin-top: 2px; }
.stat.alerte { border-color: #f0c0c0; background: #fdf2f2; }
.stat.alerte .v { color: #b02020; }

.gerer-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 20px 0; }
.btn-ligne-nav {
  display: inline-flex; align-items: center; background: var(--blanc); color: var(--nav);
  border: 1px solid var(--nav); border-radius: 10px; padding: 12px 20px; font-weight: 700; font-size: 14px;
}
.btn-ligne-nav:hover { background: var(--fond); }

.bloc-info { background: var(--blanc); border: 1px solid var(--bord); border-radius: 12px; padding: 18px; margin: 20px 0; }
.bloc-info h2 { margin: 0 0 8px; font-size: 15px; color: var(--nav); }
.bloc-info ul { margin: 0; padding-left: 18px; }
.bloc-info li { font-size: 14px; color: var(--texte); margin: 4px 0; }

.plafond-atteint { color: #b02020; font-size: 13px; font-weight: 600; }

.gerer-table { width: 100%; border-collapse: collapse; background: var(--blanc); border: 1px solid var(--bord); border-radius: 12px; overflow: hidden; }
.gerer-table th, .gerer-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--bord); font-size: 14px; vertical-align: middle; }
.gerer-table th { background: var(--fond); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--doux); }
.gerer-table tr:last-child td { border-bottom: none; }
.gerer-table .vig-cell { width: 52px; }
.gerer-table .vig-cell img { width: 44px; height: 44px; object-fit: cover; border-radius: 6px; }
.vig-vide { display: block; width: 44px; height: 44px; border-radius: 6px; background: #eef0f3; }
.lien-produit { font-weight: 600; color: var(--nav); }
.actions-cell { white-space: nowrap; }
.lien-mini { background: none; border: none; color: var(--nav); font: inherit; font-weight: 600; font-size: 13px; cursor: pointer; padding: 0 6px; }
.lien-mini.rouge { color: #c33; }

.tag { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.tag-vert { background: #e7f6ec; color: #0a6b34; }
.tag-rouge { background: #fdecec; color: #a12020; }
.tag-gris { background: #eef0f3; color: #566; }

.photos-grille { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.photo-item { width: 110px; text-align: center; }
.photo-item img { width: 110px; height: 110px; object-fit: cover; border-radius: 8px; border: 1px solid var(--bord); }
.photos-suppr-forms { display: none; }

.zone-danger { margin-top: 28px; padding: 16px; border: 1px solid #f0c0c0; border-radius: 12px; background: #fdf2f2; max-width: 640px; }
.zone-danger p { margin: 0 0 10px; color: #a12020; font-size: 13px; }
.btn-supprimer { background: #c0392b; color: #fff; border: none; border-radius: 8px; padding: 10px 18px; font: inherit; font-weight: 700; cursor: pointer; }

.gerer-connexion { background: var(--blanc); border: 1px solid var(--bord); border-radius: 14px; padding: 28px; margin: 48px 0; }
.gerer-connexion h1 { margin: 0; font-size: 22px; color: var(--nav); }
.gerer-connexion .sous { color: var(--doux); margin: 2px 0 18px; font-weight: 600; }
.gerer-connexion .aide { font-size: 12px; color: var(--doux); margin-top: 14px; }
.gerer-connexion a { color: var(--nav); font-weight: 600; }
.btn-bloc { width: 100%; }

/* ---------- Régie staff ---------- */
.staff-2col { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 900px) { .staff-2col { grid-template-columns: 1.3fr 1fr; align-items: start; } }
.bloc-info h2 { margin-top: 14px; }
.bloc-info h2:first-child { margin-top: 0; }
table.kv { width: 100%; border-collapse: collapse; }
table.kv th { text-align: left; vertical-align: top; padding: 4px 10px 4px 0; color: var(--doux); font-weight: 600; font-size: 13px; white-space: nowrap; width: 1%; }
table.kv td { padding: 4px 0; font-size: 13px; border-bottom: 1px solid var(--bord); }
.gerer-nav b { color: var(--or); }
