:root {
  --orange: #D85A30; --orange-fonce: #B8471F; --orange-clair: #FAECE7;
  --texte: #2C2C2A; --gris: #6B6A65; --bord: #E3E1DA; --fond: #F7F6F2; --blanc: #fff;
  --vert: #2F7D4F; --vert-clair: #E6F2EA; --rouge: #B3261E; --rouge-clair: #FBE9E7; --ambre: #8A5A00; --ambre-clair: #FFF3D6;
  --rayon: 12px; --entete: 54px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --texte: #ECEAE4; --gris: #A9A69E; --bord: #3A3936; --fond: #1C1B19; --blanc: #262522; --orange-clair: #3A2219;
    --vert-clair: #18301F; --rouge-clair: #3B1714; --ambre-clair: #33270C; --vert: #6CC48F; --rouge: #F08B83; --ambre: #E8B654;
  }
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: var(--fond); color: var(--texte);
  -webkit-tap-highlight-color: transparent; font-size: 15px; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
button:disabled { opacity: .45; cursor: default; }
input, select { width: 100%; padding: 11px 12px; border: 1px solid var(--bord); border-radius: 10px; background: var(--blanc); min-height: 44px; }
input:focus, select:focus { outline: 2px solid var(--orange); outline-offset: -1px; border-color: transparent; }
label { display: block; font-size: 13px; color: var(--gris); margin: 12px 0 0; }
label input, label select { margin-top: 5px; color: var(--texte); font-size: 15px; }
label.case { display: flex; gap: 8px; align-items: center; color: var(--texte); font-size: 14px; }
label.case input { width: auto; min-height: 0; }
h1 { font-size: 22px; margin: 8px 0 4px; } h2 { font-size: 17px; margin: 0 0 8px; }
.sous { color: var(--gris); font-size: 13px; margin: 6px 0; } .centre { text-align: center; }
.principal { background: var(--orange); color: #fff; border-radius: 10px; padding: 12px 18px; font-weight: 650; min-height: 46px; }
.principal:not(:disabled):hover { background: var(--orange-fonce); }
.principal.grand { width: 100%; font-size: 17px; min-height: 54px; margin-top: 14px; }
.second { background: var(--blanc); border: 1px solid var(--bord); border-radius: 10px; padding: 11px 16px; min-height: 44px; font-weight: 550; }
.danger { background: var(--rouge-clair); color: var(--rouge); border-radius: 10px; padding: 11px 16px; min-height: 44px; font-weight: 600; }
.lien { color: var(--orange); text-decoration: underline; padding: 8px 4px; }
.icone { width: 42px; height: 42px; border-radius: 10px; font-size: 20px; display: inline-grid; place-items: center; flex: none; }
.icone.petit { width: 34px; height: 34px; font-size: 18px; background: var(--fond); }
.msg { padding: 10px 12px; border-radius: 10px; font-size: 14px; margin: 10px 0; }
.msg.ko { background: var(--rouge-clair); color: var(--rouge); } .msg.attention { background: var(--ambre-clair); color: var(--ambre); }
.ko { color: var(--rouge); } .vert { color: var(--vert); }

/* Connexion */
.centre-page { min-height: 100%; display: grid; place-items: center; padding: 16px; }
.carte-connexion { width: 100%; max-width: 380px; background: var(--blanc); border: 1px solid var(--bord); border-radius: 16px; padding: 24px; }
.carte-connexion .principal { width: 100%; margin-top: 18px; }
.carte-connexion .lien { display: block; margin: 8px auto 0; }
input.code { font-size: 28px; letter-spacing: 10px; text-align: center; margin-top: 14px; font-variant-numeric: tabular-nums; }
.choix { display: flex; flex-direction: column; align-items: flex-start; width: 100%; text-align: left; padding: 12px 14px;
  border: 1px solid var(--bord); border-radius: 10px; margin-top: 8px; background: var(--blanc); min-height: 48px; }
.choix small { color: var(--gris); font-size: 12px; } .choix.actif { border-color: var(--orange); background: var(--orange-clair); }
.chargeur { width: 34px; height: 34px; border: 3px solid var(--bord); border-top-color: var(--orange); border-radius: 50%;
  animation: tourne .8s linear infinite; margin: 20px auto; }
@keyframes tourne { to { transform: rotate(360deg); } }

/* En-tête */
.entete { position: sticky; top: 0; z-index: 5; height: var(--entete); background: var(--orange); color: #fff; display: flex;
  align-items: center; gap: 8px; padding: 0 8px; }
.entete .titre { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.15; }
.entete .titre b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.entete .titre span { font-size: 12px; opacity: .85; }
.pastille { font-size: 12px; padding: 6px 10px; border-radius: 20px; background: rgba(255,255,255,.18); color: #fff; white-space: nowrap; }
.pastille::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; background: #8FE3AE; }
.pastille.hors::before { background: #FFD27A; } .pastille.alerte::before { background: #FFB4AB; }
.caissier { color: #fff; font-size: 13px; padding: 6px 10px; border: 1px solid rgba(255,255,255,.4); border-radius: 20px; max-width: 34vw;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Caisse */
.caisse { display: grid; grid-template-columns: minmax(0, 1fr) 390px; height: calc(100dvh - var(--entete)); position: relative; }
.produits { display: flex; flex-direction: column; min-height: 0; padding: 10px 12px 0; }
.barre-recherche { display: flex; gap: 8px; align-items: center; }
.barre-recherche input { flex: 1; }
.fil { display: flex; gap: 6px; overflow-x: auto; padding: 10px 0; align-items: center; scrollbar-width: none; flex: none; }
.fil .sep { color: var(--gris); }
.chip { padding: 8px 12px; border-radius: 20px; background: var(--blanc); border: 1px solid var(--bord); white-space: nowrap; font-size: 14px; min-height: 38px; }
.chip.actif { background: var(--texte); color: var(--fond); border-color: var(--texte); }
.chip.sous-cat { border-left: 4px solid var(--c, var(--orange)); }
.grille { flex: 1; overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(138px, 1fr)); gap: 8px;
  align-content: start; padding-bottom: 16px; }
.tuile { background: var(--blanc); border: 1px solid var(--bord); border-radius: var(--rayon); padding: 10px; min-height: 92px;
  display: flex; flex-direction: column; justify-content: space-between; text-align: left; gap: 6px; }
.tuile:active { transform: scale(.98); background: var(--orange-clair); }
.tuile .nom { font-size: 14px; font-weight: 550; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tuile .bas-tuile { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; }
.tuile b { font-size: 15px; } .tuile small { color: var(--gris); font-size: 12px; }
.tuile.bas small { color: var(--ambre); font-weight: 600; } .tuile.rupture { opacity: .7; } .tuile.rupture small { color: var(--rouge); font-weight: 600; }
.plein { grid-column: 1 / -1; text-align: center; }
.panier { background: var(--blanc); border-left: 1px solid var(--bord); display: flex; flex-direction: column; min-height: 0; }
.client-panier { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--bord); }
.client-panier small { flex: 1; color: var(--gris); font-size: 12px; }
.chip.client { background: var(--orange-clair); border-color: transparent; }
.lignes { flex: 1; overflow-y: auto; padding: 4px 0; }
.ligne { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; align-items: center; padding: 9px 12px;
  border-bottom: 1px solid var(--bord); cursor: pointer; }
.ligne .lib { display: flex; flex-direction: column; min-width: 0; }
.ligne .lib b { font-size: 14px; font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ligne .lib small { color: var(--gris); font-size: 12px; }
.ligne .qte { display: flex; align-items: center; gap: 6px; } .ligne .qte span { min-width: 26px; text-align: center; font-weight: 600; }
.ligne .tot { font-weight: 650; min-width: 74px; text-align: right; font-variant-numeric: tabular-nums; }
.vide { text-align: center; color: var(--gris); padding: 40px 20px; }
.totaux { border-top: 1px solid var(--bord); padding: 10px 12px 12px; }
.totaux .l { display: flex; justify-content: space-between; font-size: 14px; padding: 2px 0; font-variant-numeric: tabular-nums; }
.totaux .l.petit { font-size: 12px; color: var(--gris); }
.totaux .l.total { font-size: 24px; font-weight: 750; padding: 6px 0; }
.actions-panier { display: grid; grid-template-columns: auto auto 1fr; gap: 8px; margin-top: 6px; }
.actions-panier .principal { min-height: 54px; font-size: 16px; }
.onglets-mobile { display: none; }
.voile { position: absolute; inset: 0; background: rgba(28,27,25,.45); display: grid; place-items: center; padding: 16px; z-index: 4; }
.carte-voile { background: var(--blanc); border-radius: 16px; padding: 22px; width: 100%; max-width: 360px; }
.carte-voile .principal { width: 100%; margin-top: 14px; }

@media (max-width: 860px) {
  .caisse { grid-template-columns: 1fr; height: calc(100dvh - var(--entete) - 58px); }
  .caisse.vue-produits .panier { display: none; } .caisse.vue-panier .produits { display: none; }
  .panier { border-left: 0; }
  .onglets-mobile { display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; height: 58px;
    background: var(--blanc); border-top: 1px solid var(--bord); z-index: 6; }
  .onglets-mobile button { font-weight: 600; font-size: 15px; } .onglets-mobile button.actif { color: var(--orange); box-shadow: inset 0 3px 0 var(--orange); }
  .grille { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); }
  .entete .caissier { display: none; }
}

/* Pages */
.page { max-width: 1000px; margin: 0 auto; padding: 14px 16px 80px; }
.page.etroit { max-width: 520px; }
.page.deux { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 16px; }
@media (max-width: 760px) { .page.deux { grid-template-columns: 1fr; } }
.fiche { background: var(--blanc); border: 1px solid var(--bord); border-radius: var(--rayon); padding: 16px; align-self: start; }
.liste { max-height: 60vh; overflow-y: auto; }
.chiffres { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; margin: 10px 0; }
.chiffres div { background: var(--blanc); border: 1px solid var(--bord); border-radius: var(--rayon); padding: 10px 12px; }
.chiffres b { display: block; font-size: 20px; } .chiffres span { color: var(--gris); font-size: 12px; }
.tableau { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 10px; background: var(--blanc); border-radius: var(--rayon); overflow: hidden; }
.tableau td, .tableau th { padding: 10px 8px; border-bottom: 1px solid var(--bord); text-align: left; }
.tableau th { color: var(--gris); font-weight: 500; font-size: 12px; } .tableau .d { text-align: right; font-variant-numeric: tabular-nums; }
.tableau tr[data-action] { cursor: pointer; } .tableau tr.ko td { color: var(--rouge); } .tableau tr.attention td { color: var(--ambre); }
.tableau tr.total td { font-weight: 700; }
.etiquette { font-size: 11px; padding: 3px 8px; border-radius: 12px; font-weight: 600; white-space: nowrap; }
.etiquette.ok { background: var(--vert-clair); color: var(--vert); } .etiquette.attente { background: var(--ambre-clair); color: var(--ambre); }
.etiquette.ko { background: var(--rouge-clair); color: var(--rouge); } .etiquette.attention { background: var(--ambre-clair); color: var(--ambre); }
.actions-col { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }

/* Modales */
.modal { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 16px; }
.modal[hidden] { display: none; }
.fond-modal { position: absolute; inset: 0; background: rgba(20,19,17,.5); }
.boite { position: relative; background: var(--blanc); border-radius: 16px; width: 100%; max-width: 480px; max-height: calc(100dvh - 32px);
  overflow-y: auto; padding: 18px; }
.modal.paiement .boite { max-width: 560px; }
.tete-modal { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.modal.menu { place-items: start; padding: 0; } .modal.menu .boite { border-radius: 0 16px 16px 0; height: 100dvh; max-height: none; max-width: 290px; padding: 12px; }
.menu { display: flex; flex-direction: column; gap: 2px; }
.menu button { text-align: left; padding: 14px 12px; border-radius: 10px; font-size: 16px; } .menu button.actif { background: var(--orange-clair); color: var(--orange-fonce); font-weight: 600; }
@media (max-width: 560px) {
  .modal { padding: 0; place-items: end stretch; }
  .boite { max-width: none; border-radius: 16px 16px 0 0; max-height: 92dvh; }
}
.paiement-ligne { border: 1px solid var(--bord); border-radius: var(--rayon); padding: 12px; margin-top: 12px; }
.modes { display: flex; flex-wrap: wrap; gap: 6px; }
.mode { padding: 9px 12px; border-radius: 10px; border: 1px solid var(--bord); background: var(--fond); font-size: 14px; min-height: 42px; }
.mode.actif { background: var(--orange); color: #fff; border-color: var(--orange); }
.coupures { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.bilan { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 12px; font-size: 15px; }
.rendu b { font-size: 20px; color: var(--vert); }
.qr-mm { text-align: center; margin-top: 10px; } .qr-mm svg { width: 180px; height: 180px; background: #fff; padding: 6px; border-radius: 8px; }
.reussite { text-align: center; }
.coche { width: 64px; height: 64px; border-radius: 50%; background: var(--vert-clair); color: var(--vert); font-size: 34px; display: grid; place-items: center; margin: 4px auto 8px; }
.rendu-grand { background: var(--vert-clair); color: var(--vert); border-radius: var(--rayon); padding: 14px; margin: 12px 0; font-size: 14px; }
.rendu-grand b { display: block; font-size: 32px; }
.ligne-retour { display: grid; grid-template-columns: 1fr 90px; gap: 10px; align-items: center; color: var(--texte); font-size: 14px; }
#video { width: 100%; border-radius: var(--rayon); background: #000; aspect-ratio: 4 / 3; object-fit: cover; margin-top: 10px; }

/* Messages courts */
#toasts { position: fixed; left: 50%; bottom: 76px; transform: translateX(-50%); z-index: 30; display: flex; flex-direction: column; gap: 6px; width: min(92vw, 420px); }
.toast { background: var(--texte); color: var(--fond); padding: 11px 14px; border-radius: 10px; font-size: 14px; box-shadow: 0 6px 20px rgba(0,0,0,.18); }
.toast.ko { background: var(--rouge); color: #fff; } .toast.attention { background: var(--ambre); color: #fff; }
@media (max-width: 860px) { #toasts { bottom: auto; top: calc(var(--entete) + 8px); } }

/* ---------------- Gestion ---------------- */
.page.large { max-width: 1240px; }
.titre-menu { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--gris); padding: 14px 12px 4px; border-top: 1px solid var(--bord); margin-top: 6px; }
.titre-menu:empty { padding: 4px 0 0; }
.barre-actions { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin: 6px 0 10px; }
.barre-actions h2, .barre-actions h3 { margin: 0; }
.barre-filtres { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 4px 0 8px; }
.barre-filtres label { margin: 0; } .barre-filtres input, .barre-filtres select { width: auto; min-width: 180px; }
.onglets { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--bord); margin: 4px 0 14px; scrollbar-width: none; }
.onglets button { padding: 10px 14px; white-space: nowrap; font-weight: 550; color: var(--gris); border-bottom: 3px solid transparent; }
.onglets button.actif { color: var(--orange-fonce); border-bottom-color: var(--orange); }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; margin: 10px 0 14px; }
.kpi { background: var(--blanc); border: 1px solid var(--bord); border-radius: var(--rayon); padding: 12px 14px; display: flex; flex-direction: column; gap: 3px; }
.kpi span { color: var(--gris); font-size: 12px; } .kpi b { font-size: 22px; font-variant-numeric: tabular-nums; } .kpi small { color: var(--gris); font-size: 12px; }
.variation { font-size: 12px; font-weight: 600; } .variation.hausse { color: var(--vert); } .variation.baisse { color: var(--rouge); }
.grille-gestion { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 12px; }
.carte-g { background: var(--blanc); border: 1px solid var(--bord); border-radius: var(--rayon); padding: 14px; min-width: 0; margin-bottom: 12px; }
.grille-gestion .carte-g { margin-bottom: 0; }
.carte-g.large { grid-column: 1 / -1; } .carte-g.etroite { max-width: 640px; }
.carte-g h3 { font-size: 14px; margin: 0 0 10px; display: flex; align-items: center; gap: 8px; }
.gestion h3 { font-size: 14px; margin: 16px 0 6px; }
.graphique { width: 100%; height: 160px; display: block; } .graphique rect { fill: var(--orange); }
.graphique rect:hover { fill: var(--orange-fonce); }
.axe { display: flex; font-size: 10px; color: var(--gris); margin-top: 4px; } .axe span { text-align: center; overflow: hidden; white-space: nowrap; }
.barres-h { display: flex; flex-direction: column; gap: 8px; }
.bh { display: grid; grid-template-columns: minmax(80px, 34%) 1fr auto; gap: 8px; align-items: center; font-size: 13px; }
.bh-lib { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bh-barre { background: var(--fond); border-radius: 4px; height: 10px; overflow: hidden; } .bh-barre i { display: block; height: 100%; background: var(--orange); border-radius: 4px; }
.bh-val { font-variant-numeric: tabular-nums; font-weight: 600; }
.alertes { display: flex; flex-direction: column; gap: 6px; }
.alerte-ligne { text-align: left; padding: 9px 12px; border-radius: 10px; font-size: 14px; }
.alerte-ligne.ko { background: var(--rouge-clair); color: var(--rouge); } .alerte-ligne.attention { background: var(--ambre-clair); color: var(--ambre); }
.alerte-ligne b { font-size: 16px; margin-right: 4px; }
.pastille-n { background: var(--rouge); color: #fff; border-radius: 12px; font-size: 11px; padding: 1px 8px; }
.vide-gestion { text-align: center; padding: 40px 16px; color: var(--gris); } .vide-gestion b { color: var(--texte); font-size: 16px; }
.vide-tableau { padding: 10px 0; }
.defile { overflow-x: auto; }
.selecteur { position: relative; margin-top: 10px; }
.suggestions { display: flex; flex-direction: column; max-height: 240px; overflow-y: auto; }
.suggestions:not(:empty) { border: 1px solid var(--bord); border-radius: 10px; margin-top: 4px; background: var(--blanc); }
.sugg { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--bord); } .sugg:hover { background: var(--orange-clair); }
.sugg small { color: var(--gris); }
.produit-choisi { padding: 8px 0; min-height: 34px; }
.deux-col { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } .trois-col { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
@media (max-width: 560px) { .deux-col, .trois-col { grid-template-columns: 1fr; } }
.ligne-saisie { display: flex; gap: 8px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--bord); }
.ligne-saisie span { flex: 1; min-width: 0; } .ligne-saisie input { width: 100px; min-height: 38px; }
.petit-champ { width: 110px; min-height: 38px; padding: 7px 9px; }
.tableau.saisie td { padding: 6px; }
.avancement { height: 10px; background: var(--bord); border-radius: 6px; overflow: hidden; margin: 8px 0 2px; }
.avancement div { height: 100%; background: var(--vert); }
.liste-courte { max-height: 360px; overflow-y: auto; }
.ligne-simple { display: block; width: 100%; text-align: left; padding: 8px 4px; border-bottom: 1px solid var(--bord); font-size: 14px; }
.ligne-simple small { color: var(--gris); }
fieldset.cadre, fieldset.cases { border: 1px solid var(--bord); border-radius: 10px; margin: 12px 0 0; padding: 8px 12px 12px; }
fieldset legend { font-size: 13px; color: var(--gris); padding: 0 4px; }
.pastille-couleur { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; }
.modal.large .boite { max-width: 760px; }
textarea { width: 100%; padding: 10px; border: 1px solid var(--bord); border-radius: 10px; background: var(--blanc); margin-top: 5px; font: inherit; }
input[type=color] { padding: 4px; height: 44px; }
.actions.gauche { justify-content: flex-start; flex-wrap: wrap; }
.msg.ok-msg { background: var(--vert-clair); color: var(--vert); }
.ligne-form { display: flex; gap: 8px; align-items: flex-end; } .ligne-form label { flex: 1; }
details summary { cursor: pointer; color: var(--orange-fonce); font-size: 14px; margin: 8px 0; }
.tableau td.d, .tableau th.d { white-space: nowrap; }
@media (max-width: 560px) { .tableau td, .tableau th { padding: 8px 5px; font-size: 13px; } .kpi b { font-size: 18px; } }

/* Rapports */
.actions-rapport { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.actions-rapport label.case { margin: 0 6px 0 0; }
.mini-mode { font-size: 12px; white-space: nowrap; }
.kpis.petits .kpi b { font-size: 17px; }
.total-ligne { text-align: right; font-weight: 600; margin: 8px 0 0; }
.tableau tr.total td { background: var(--fond); }
.grille-gestion.rapport > .kpis { grid-column: 1 / -1; margin: 0; }

/* Éditeur du logiciel (signature fixe) */
a.bouton { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; color: inherit; }
a.principal.bouton { color: #fff; }
.signature-editeur { text-align: center; font-size: 11.5px; color: var(--gris); margin-top: 16px; line-height: 1.4; }
.signature-editeur img { display: block; height: 28px; width: auto; margin: 0 auto 6px; opacity: .9; }
.menu .menu-editeur { margin-top: auto; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; border-top: 1px solid var(--bord); border-radius: 0; padding: 12px; }
.menu-editeur img { height: 30px; width: auto; }
.menu-editeur small { color: var(--gris); font-size: 11.5px; line-height: 1.35; }
.modal.menu .boite { overflow-y: auto; display: flex; flex-direction: column; }
.modal.menu .boite > .menu { flex: 1 0 auto; }
.carte-editeur { background: var(--blanc); border: 1px solid var(--bord); border-radius: 16px; padding: 20px; text-align: center; margin: 8px 0 16px; }
.logo-editeur { width: 100%; max-width: 260px; height: auto; }
.contacts-editeur { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center; margin-top: 10px; }
.ligne-editeur { display: flex; gap: 12px; align-items: center; width: 100%; text-align: left; padding: 10px 12px; border: 1px solid var(--bord); border-radius: 12px; background: var(--blanc); }
.ligne-editeur img { height: 34px; width: auto; }
.ligne-editeur small { color: var(--gris); }

/* Campagnes WhatsApp (V3) */
.cases-ligne { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 2px 0 10px; }
.titre-champ { display: block; font-size: 13px; color: var(--gris); margin: 10px 0 2px; }
.puces { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.puce { border: 1px solid var(--bord); border-radius: 999px; padding: 5px 10px; font-size: 13px; background: var(--blanc); min-height: 32px; font-family: ui-monospace, Consolas, monospace; }
.puce:hover { border-color: var(--orange); color: var(--orange-fonce); }
.bulle-wa { background: #E7F5E4; border-radius: 12px 12px 12px 2px; padding: 10px 12px; font-size: 14px; line-height: 1.45; max-width: 420px; white-space: normal; }
.apercu-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; align-items: start; }
.liste-simple { list-style: none; margin: 6px 0; padding: 0; } .liste-simple li { padding: 6px 0; border-bottom: 1px solid var(--bord); }
.liste-simple small { color: var(--gris); }
.ligne-membre { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.defile-membres { max-height: 300px; overflow-y: auto; }
.ligne-programmer { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--gris); }
.ligne-programmer input { min-height: 44px; }
.lien.ko, .second.ko { color: var(--rouge); }
.grille-gestion.campagne > .carte-g textarea { width: 100%; box-sizing: border-box; }
