/* ============================================================
   DataBrain — 3 designs au choix (Mon compte › Apparence) :
   « wax » (par défaut) Wax Prestige · « emeraude » Émeraude Nuit · « bento » Bento Éclat
   Le design est posé sur <html data-design="…"> par index.html.
   Toutes les couleurs sont des variables : un seul endroit à modifier par design.
   ============================================================ */

/* ---------- Wax Prestige (par défaut) : vert, crème, touches d'or ---------- */
:root {
  --vert: #008751;
  --vert-fonce: #005C37;
  --or: #E8B531;
  --or-clair: #FFF4D6;
  --motif-wax: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='78' height='78' viewBox='0 0 78 78' fill='none' stroke='white' stroke-opacity='0.16' stroke-width='2'%3E%3Ccircle cx='39' cy='39' r='26'/%3E%3Ccircle cx='39' cy='39' r='16'/%3E%3Ccircle cx='39' cy='39' r='5' fill='white' fill-opacity='0.16'/%3E%3Cpath d='M0 -12 L12 0 L0 12 L-12 0Z M78 -12 L90 0 L78 12 L66 0Z M0 66 L12 78 L0 90 L-12 78Z M78 66 L90 78 L78 90 L66 78Z'/%3E%3C/svg%3E");

  --degrade-principal: linear-gradient(160deg, #00A262 0%, #008751 60%, #007344 100%);
  --degrade-hero: linear-gradient(160deg, #00A262 0%, #008751 45%, #005C37 100%);
  --degrade-bleu: linear-gradient(160deg, #0B6B44 0%, #005C37 100%);
  --lueur-principale: rgba(0, 135, 81, 0.6);
  --texte-bouton: #FFFFFF;

  --fond: #FBFAF6;
  --fond-image: none;
  --verre: #FFFFFF;
  --verre-fort: #FFFFFF;
  --verre-bord: #EFEBE0;
  --ombre: 0 10px 28px -18px rgba(40, 50, 20, 0.35);
  --encre: #13201A;
  --gris: #6E7A73;
  --ligne: rgba(19, 32, 26, 0.08);
  --champ: #FFFFFF;
  --champ-bord: #E3DED0;
  --focus: rgba(0, 135, 81, 0.2);

  --texte-orange: #C2412D;
  --orange-clair: #FDE8E4;
  --texte-vert: #007A47;
  --vert-clair: #E5F4EC;
  --texte-bleu: #005C37;
  --bleu-clair: #E5F4EC;
  --texte-or: #8A5E00;

  --rayon: 22px;
  --rayon-petit: 14px;
  color-scheme: light;
}

/* ---------- Émeraude Nuit : sombre, verre, reflets verts lumineux ---------- */
:root[data-design="emeraude"] {
  --vert: #00D47E;
  --vert-fonce: #00A862;
  --or: #F5C451;
  --or-clair: rgba(245, 196, 81, 0.15);
  --degrade-principal: linear-gradient(135deg, #00E08A 0%, #00A862 100%);
  --degrade-hero: linear-gradient(150deg, rgba(0, 212, 126, 0.24), rgba(0, 135, 81, 0.08) 55%, rgba(255, 255, 255, 0.03));
  --degrade-bleu: linear-gradient(135deg, rgba(255,255,255,0.12), rgba(255,255,255,0.06));
  --lueur-principale: rgba(0, 224, 138, 0.75);
  --texte-bouton: #01180D;
  --fond: #030D09;
  --fond-image:
    radial-gradient(36rem 26rem at 100% -5%, rgba(0, 212, 126, 0.30), transparent 65%),
    radial-gradient(32rem 26rem at -15% 35%, rgba(0, 135, 81, 0.24), transparent 70%),
    radial-gradient(28rem 22rem at 90% 100%, rgba(245, 196, 81, 0.08), transparent 70%),
    linear-gradient(180deg, #04120C 0%, #030D09 100%);
  --verre: rgba(255, 255, 255, 0.055);
  --verre-fort: rgba(9, 24, 17, 0.9);
  --verre-bord: rgba(255, 255, 255, 0.09);
  --ombre: 0 16px 40px -22px rgba(0, 0, 0, 0.9);
  --encre: #EEF7F2;
  --gris: #8FA79A;
  --ligne: rgba(255, 255, 255, 0.08);
  --champ: rgba(255, 255, 255, 0.06);
  --champ-bord: rgba(255, 255, 255, 0.13);
  --focus: rgba(0, 212, 126, 0.25);
  --texte-orange: #FF8E80;
  --orange-clair: rgba(255, 107, 91, 0.16);
  --texte-vert: #5DFFB4;
  --vert-clair: rgba(0, 212, 126, 0.16);
  --texte-bleu: #9CFFCF;
  --bleu-clair: rgba(0, 212, 126, 0.12);
  --texte-or: #F5C451;
  --rayon: 24px;
  color-scheme: dark;
}

/* ---------- Bento Éclat : clair, tuiles colorées, chiffres géants ---------- */
:root[data-design="bento"] {
  --vert: #008751;
  --lime: #C8F560;
  --corail: #FF6A4D;
  --noir: #0D1A13;
  --or: #C8F560;
  --or-clair: #F1FBD8;
  --degrade-principal: linear-gradient(0deg, #C8F560, #C8F560);
  --degrade-hero: linear-gradient(0deg, #008751, #008751);
  --degrade-bleu: linear-gradient(0deg, #0D1A13, #0D1A13);
  --lueur-principale: rgba(140, 190, 40, 0.5);
  --texte-bouton: #0D1A13;
  --fond: #F3F5EF;
  --fond-image: none;
  --verre: #FFFFFF;
  --verre-fort: #FFFFFF;
  --verre-bord: transparent;
  --ombre: 0 1px 0 rgba(13, 26, 19, 0.04);
  --encre: #0D1A13;
  --gris: #6B7A71;
  --ligne: rgba(13, 26, 19, 0.07);
  --champ: #FFFFFF;
  --champ-bord: #DCE2D7;
  --focus: rgba(200, 245, 96, 0.55);
  --texte-orange: #D9472A;
  --orange-clair: #FFE4DC;
  --texte-vert: #007A47;
  --vert-clair: #E3F7C4;
  --texte-bleu: #0D1A13;
  --bleu-clair: #E9EEE6;
  --texte-or: #4D6A00;
  --rayon: 26px;
  --rayon-petit: 16px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--fond);
  color: var(--encre);
  font-family: "Satoshi", "Roboto", "Segoe UI", -apple-system, system-ui, sans-serif;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}
body { background-image: var(--fond-image); background-attachment: fixed; }


/* ---------- Barre du haut ---------- */
.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 12px 16px;
  background: var(--verre-fort);
  border-bottom: 1px solid var(--verre-bord);
  box-shadow: 0 6px 20px -14px rgba(30, 41, 90, 0.5);
}
.marque { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; }
.marque > div { min-width: 0; }
.logo-entete {
  width: 42px; height: 42px; object-fit: contain; flex-shrink: 0;
  background: #FFFFFF; border-radius: 12px; padding: 3px;
  box-shadow: 0 4px 12px -4px rgba(30, 41, 90, 0.35), inset 0 0 0 1px rgba(15, 23, 42, 0.06);
}
.logo-entete[hidden] { display: none; }
.brand {
  font-weight: 700; font-size: 17px; line-height: 1.2; letter-spacing: -0.2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.utilisateur { font-size: 12.5px; color: var(--gris); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.etat-sync {
  min-height: 28px !important; padding: 0 10px !important; border-radius: 999px !important;
  font-size: 11.5px !important; font-weight: 700; white-space: nowrap; flex-shrink: 0;
  background: var(--verre) !important; color: var(--encre) !important;
  border: 1px solid var(--verre-bord) !important;
}
.etat-sync.ok::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; background: #10B981; box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2); }
.etat-sync.attente::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; background: #FF7A00; box-shadow: 0 0 0 3px rgba(255, 122, 0, 0.22); }
.etat-sync[hidden] { display: none; }

/* ---------- Zone principale ---------- */
main {
  max-width: 720px;
  margin: 0 auto;
  padding: 18px 16px 112px; /* place pour le menu flottant */
  display: flex; flex-direction: column; gap: 14px;
}
h1 { font-size: 26px; margin: 2px 0 0; letter-spacing: -0.4px; font-weight: 900; }
h2 { font-size: 17px; margin: 0; letter-spacing: -0.2px; }
.sous-titre { color: var(--gris); font-size: 13.5px; margin: 0; }
.sous-titre::first-letter { text-transform: uppercase; }

/* ---------- Cartes en verre avec reflet ---------- */
.carte {
  position: relative; overflow: hidden;
  background: var(--verre);
  border: 1px solid var(--verre-bord);
  border-radius: var(--rayon);
  box-shadow: var(--ombre);
  padding: 16px;
  display: flex; flex-direction: column; gap: 10px;
}
.carte::before { /* reflet de miroir en haut de la carte */
  content: ""; position: absolute; inset: 0 0 auto 0; height: 55%;
  background: linear-gradient(180deg, rgba(255,255,255,0.35), rgba(255,255,255,0));
  pointer-events: none; opacity: 0.6;
}
:root[data-theme="sombre"] .carte::before { opacity: 0.12; }
.carte > * { position: relative; }

/* Carte « héros » : dégradé miroir violet-bleu avec reflet diagonal */
.carte-bleue {
  background: var(--degrade-hero);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #FFFFFF;
  box-shadow: 0 18px 40px -16px rgba(79, 70, 229, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}
.carte-bleue::before { background: var(--reflet); height: 100%; opacity: 1; }
.carte-bleue::after { /* halo lumineux */
  content: ""; position: absolute; width: 220px; height: 220px; right: -70px; top: -90px;
  background: radial-gradient(circle, rgba(255, 176, 32, 0.55), transparent 65%);
  pointer-events: none;
}
.carte-bleue .petit { color: rgba(255, 255, 255, 0.82); }
.carte-bleue .grille-3 > div {
  background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 12px; padding: 8px 10px;
}

.grand-chiffre { font-size: 36px; font-weight: 900; letter-spacing: -1px; line-height: 1.1; }
.chiffre { font-size: 21px; font-weight: 700; letter-spacing: -0.4px; }
.petit { font-size: 13px; color: var(--gris); }
.grille-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.grille-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.vert { color: var(--texte-vert); }
.rouge { color: var(--texte-orange); }

/* ---------- Listes ---------- */
.liste { display: flex; flex-direction: column; }
.ligne {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid var(--ligne);
}
.ligne:last-child { border-bottom: none; }
.ligne .infos { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ligne .nom { font-weight: 700; }
.ligne .droite { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.vide { color: var(--gris); text-align: center; padding: 18px 0; }

/* ---------- Badges ---------- */
.badge { display: inline-block; font-size: 11.5px; font-weight: 700; border-radius: 999px; padding: 3px 9px; }
.badge-orange { background: var(--orange-clair); color: var(--texte-orange); }
.badge-vert { background: var(--vert-clair); color: var(--texte-vert); }
.badge-bleu { background: var(--bleu-clair); color: var(--texte-bleu); }

/* ---------- Boutons ---------- */
button, .btn {
  font-family: inherit; font-size: 15px; font-weight: 700;
  min-height: 46px; padding: 0 18px;
  border-radius: var(--rayon-petit);
  border: 1px solid var(--champ-bord);
  background: var(--verre); color: var(--encre);
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
button:active, .btn:active { transform: scale(0.97); }
.btn-principal {
  position: relative; overflow: hidden;
  background: var(--degrade-principal); border: 1px solid rgba(255, 255, 255, 0.45);
  color: var(--texte-bouton);
  box-shadow: 0 12px 26px -12px var(--lueur-principale), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.btn-principal::after { /* reflet brillant */
  content: ""; position: absolute; inset: 0 0 50% 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.38), rgba(255,255,255,0));
  pointer-events: none;
}
.btn-bleu {
  background: var(--degrade-bleu); border: 1px solid rgba(255, 255, 255, 0.3); color: #FFFFFF;
  box-shadow: 0 10px 22px -12px rgba(36, 72, 200, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn-petit { min-height: 36px; padding: 0 12px; font-size: 13.5px; border-radius: 11px; }
.btn-large { width: 100%; min-height: 56px; font-size: 16.5px; border-radius: 18px; }
.btn-danger { color: var(--texte-orange); border-color: rgba(255, 69, 0, 0.3); }
button:disabled { opacity: 0.45; cursor: not-allowed; box-shadow: none; }
.rangee { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.rangee-espace { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }

/* Pastilles de choix (Détail / Gros, filtres, périodes) */
.segments { display: flex; gap: 6px; flex-wrap: wrap; }
.segments button { min-height: 38px; border-radius: 999px; font-size: 13.5px; padding: 0 14px; }
.segments button.actif {
  background: var(--degrade-bleu); color: #FFFFFF; border-color: transparent;
  box-shadow: 0 8px 18px -10px rgba(79, 70, 229, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

/* ---------- Formulaires ---------- */
label { display: flex; flex-direction: column; gap: 5px; font-size: 13.5px; font-weight: 600; color: var(--gris); }
input, select, textarea {
  font-family: inherit; font-size: 16px; color: var(--encre);
  min-height: 46px; padding: 10px 14px;
  border: 1px solid var(--champ-bord); border-radius: var(--rayon-petit);
  background: var(--champ); width: 100%;
  transition: border-color 0.2s, box-shadow 0.2s;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--vert);
  box-shadow: 0 0 0 4px var(--focus);
}
input::placeholder, textarea::placeholder { color: var(--gris); opacity: 0.7; }
input[type="file"] { padding: 9px; font-size: 14px; }
select option { color: #0F172A; }
form { display: flex; flex-direction: column; gap: 12px; }
.recherche { margin: 0; }

/* ---------- Panier de la caisse ---------- */
.panier-ligne { display: grid; grid-template-columns: 1fr 90px auto; gap: 8px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--ligne); }
.panier-ligne input { min-height: 40px; padding: 4px 10px; text-align: center; }
.total-ligne { display: flex; justify-content: space-between; align-items: baseline; font-weight: 700; font-size: 22px; letter-spacing: -0.4px; }

/* ---------- Module coiffure : agenda ---------- */
.jours-agenda { display: flex; align-items: stretch; gap: 6px; }
.jours-agenda > .btn-petit { padding: 0 10px; font-size: 20px; }
.jour-agenda {
  flex: 1; min-width: 0; min-height: 64px; padding: 4px 0; border-radius: 14px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; font-weight: 600;
}
.jour-agenda span { font-size: 11.5px; color: var(--gris); text-transform: capitalize; }
.jour-agenda strong { font-size: 18px; }
.jour-agenda em { font-style: normal; font-size: 10.5px; min-height: 14px; color: var(--texte-vert); font-weight: 700; }
.jour-agenda.aujourdhui { border-color: var(--texte-vert); }
.jour-agenda.actif { background: var(--degrade-bleu); color: #FFFFFF; border-color: transparent; }
.jour-agenda.actif span, .jour-agenda.actif em { color: rgba(255, 255, 255, 0.85); }
.ligne-rdv { align-items: flex-start; }
.heure-rdv { font-weight: 700; font-size: 15px; min-width: 48px; padding-top: 1px; }
.choix-employe { min-height: 34px; padding: 4px 8px; font-size: 13px; margin-top: 4px; }

/* ---------- Module pressing ---------- */
.choix-agence { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; color: var(--gris); }
.choix-agence select { min-height: 40px; font-size: 14.5px; }
.lien-carte { display: block; color: var(--encre); text-decoration: none; }
.lien-carte:active { transform: scale(0.98); }
.grille-articles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.tuile-article {
  min-height: 64px; padding: 6px; flex-direction: column; gap: 2px;
  font-size: 13px; line-height: 1.2; text-align: center; white-space: normal; overflow-wrap: anywhere;
}
.tuile-article > span:last-child { font-weight: 600; color: var(--gris); font-size: 11.5px; }
button.ligne-depot, button.bouton-texte {
  width: 100%; min-height: 0; padding: 11px 0; border: none; border-radius: 0;
  background: none; box-shadow: none; text-align: left; font-weight: 400;
  justify-content: flex-start; align-items: center; color: var(--encre);
}
button.ligne-depot { border-bottom: 1px solid var(--ligne); }
button.bouton-texte { padding: 0; align-items: flex-start; }
.choix-service input { width: auto; min-height: 0; }
.etiquettes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 8px; background: #FFFFFF; color: #000000; }
.etiquette { border: 1.5px dashed #000000; border-radius: 6px; padding: 8px; text-align: center; break-inside: avoid; page-break-inside: avoid; }
.etiquette-numero { font-size: 22px; font-weight: 800; letter-spacing: 1px; }
.etiquette-rang { font-size: 14px; font-weight: 700; }
.etiquette-petit { font-size: 11px; line-height: 1.3; }
@media (max-width: 360px) { .grille-articles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Stock : conditionnements, variantes, codes-barres ---------- */
.unites-rapides { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; max-width: 60%; }
.unites-rapides button { flex-direction: column; gap: 0; min-height: 44px; padding: 4px 10px; line-height: 1.15; }
.unites-rapides small { font-size: 11px; font-weight: 600; opacity: 0.85; }
.choix-pastilles { display: flex; flex-wrap: wrap; gap: 8px; }
.pastille { position: relative; display: block; cursor: pointer; }
.pastille input { position: absolute; opacity: 0; pointer-events: none; }
.pastille span { display: flex; flex-direction: column; align-items: center; min-width: 84px; padding: 9px 12px; border-radius: var(--rayon-petit); border: 1.5px solid var(--champ-bord); background: var(--champ); color: var(--encre); font-weight: 800; font-size: 14px; text-align: center; }
.pastille small { font-size: 11.5px; font-weight: 600; color: var(--gris); }
.pastille input:checked + span { border-color: var(--vert); background: var(--vert-clair); box-shadow: 0 0 0 3px var(--focus); }
.pastille.epuise span { opacity: 0.5; text-decoration: line-through; }
.pastilles-stock { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 2px; }
.pastilles-stock span { font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--bleu-clair); color: var(--texte-bleu); }
.pastilles-stock span.zero { background: var(--orange-clair); color: var(--texte-orange); }
.sous-bloc { border: 1px dashed var(--champ-bord); border-radius: var(--rayon-petit); padding: 10px 12px 12px; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.sous-bloc legend { font-weight: 800; font-size: 14px; padding: 0 6px; color: var(--encre); }
.bloc-ligne { display: flex; flex-direction: column; gap: 8px; padding: 10px; border-radius: 12px; background: var(--bleu-clair); }
.bloc-ligne > .btn-petit { align-self: flex-end; }
.champ-scan { align-items: flex-end; flex-wrap: nowrap; }
.btn-scan { width: 50px; min-width: 50px; height: 46px; padding: 0; flex-shrink: 0; border-radius: var(--rayon-petit); background: var(--vert); color: #FFFFFF; border: none; }
.case { flex-direction: row !important; align-items: center; gap: 10px; color: var(--encre) !important; font-weight: 600; }
.case input { width: 22px; min-height: 22px; flex-shrink: 0; }
.scanner { position: fixed; inset: 0; z-index: 80; background: #000; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; color: #fff; }
.scanner video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scanner-cadre { position: relative; width: 78%; max-width: 360px; height: 160px; border: 3px solid #FFFFFF; border-radius: 18px; box-shadow: 0 0 0 9999px rgba(0,0,0,0.45); }
.scanner p, .scanner button { position: relative; } .scanner p { font-weight: 700; }
.choix-commerce { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.choix-commerce button { flex-direction: column; min-height: 92px; padding: 10px; white-space: normal; text-align: center; font-size: 13.5px; line-height: 1.2; }
.choix-commerce button span { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--vert-clair); color: var(--texte-vert); }
.planche-etiquettes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; background: #FFFFFF; padding: 6px; color: #000; }
.etiquette-produit { border: 1px dashed #999; border-radius: 6px; padding: 6px 6px 4px; text-align: center; break-inside: avoid; page-break-inside: avoid; }
.ep-nom { font-size: 11px; font-weight: 700; line-height: 1.2; height: 2.4em; overflow: hidden; }
.ep-prix { font-size: 15px; font-weight: 900; margin: 2px 0; }
.code-barres { width: 100%; height: 40px; display: block; fill: #000; }
.ep-code { font-family: "Consolas", monospace; font-size: 10px; letter-spacing: 1px; }
@media (max-width: 380px) { .unites-rapides { max-width: 55%; } }

/* ---------- Menu « Plus » ---------- */
.menu-plus a {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 56px; padding: 0 4px;
  color: var(--encre); text-decoration: none; font-weight: 700;
  border-bottom: 1px solid var(--ligne);
}
.menu-plus a:last-child { border-bottom: none; }
.menu-plus a span { color: var(--gris); font-size: 20px; }

/* ---------- Menu du bas flottant ---------- */
.bottomnav {
  position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 10;
  max-width: 560px; margin: 0 auto;
  height: 70px; padding: 0 6px;
  display: flex; justify-content: space-around; align-items: center;
  background: var(--verre-fort);
  border: 1px solid var(--verre-bord);
  border-radius: 24px;
  box-shadow: 0 18px 40px -16px rgba(15, 23, 42, 0.45);
}
.bottomnav[hidden] { display: none; }
.bottomnav a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-width: 58px; min-height: 52px; border-radius: 16px;
  font-size: 11.5px; font-weight: 600; color: var(--gris); text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.bottomnav a.actif {
  font-weight: 700;
  background: var(--degrade-principal);
  box-shadow: 0 10px 20px -10px var(--lueur-principale), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  color: var(--texte-bouton);
}
.bottomnav svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Fenêtre modale ---------- */
.modal {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(7, 11, 26, 0.5);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  display: flex; align-items: flex-end; justify-content: center;
}
.modal[hidden] { display: none; }
.modal-box {
  position: relative;
  width: 100%; max-width: 560px; max-height: 92vh; overflow-y: auto;
  background: var(--verre-fort);
  border: 1px solid var(--verre-bord);
  border-radius: 26px 26px 0 0;
  padding: 22px 16px 26px;
  box-shadow: 0 -20px 50px -20px rgba(0, 0, 0, 0.45);
  display: flex; flex-direction: column; gap: 12px;
}
@media (min-width: 640px) {
  .modal { align-items: center; }
  .modal-box { border-radius: 26px; }
}
.modal-close {
  position: absolute; top: 10px; right: 10px;
  width: 44px; min-height: 44px; padding: 0;
  border-radius: 50%; font-size: 24px;
}

/* ---------- Reçu / devis ---------- */
.recu {
  font-family: "Consolas", "Courier New", monospace; font-size: 13.5px; white-space: pre-wrap;
  background: #FFFFFF; color: #0F172A;
  border-radius: 14px; padding: 14px;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08);
}

/* Mention DataBrain en bas des reçus */
.recu-signature {
  display: flex; align-items: center; justify-content: center; gap: 5px;
  margin-top: 10px; padding-top: 8px; border-top: 1px dashed rgba(15, 23, 42, 0.2);
  font-family: "Satoshi", "Roboto", system-ui, sans-serif; font-size: 10.5px; color: #6B7280; white-space: normal;
}
.recu-signature img { width: 14px; height: 14px; object-fit: contain; border-radius: 3px; }

/* ---------- États imprimables (rapport, stock, dettes, relevé) ---------- */
.etat {
  background: #FFFFFF; color: #0F172A; border-radius: 14px; padding: 16px;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08);
  font-size: 12.5px; overflow-x: auto;
}
.etat-entete { display: flex; align-items: center; gap: 12px; padding-bottom: 10px; border-bottom: 2px solid #0F172A; font-size: 11.5px; color: #374151; line-height: 1.45; }
.etat-entete img { width: 54px; height: 54px; object-fit: contain; flex-shrink: 0; }
.etat-entreprise { font-size: 16px; font-weight: 700; color: #0F172A; }
.etat-titre { margin-top: 14px; font-size: 15px; font-weight: 900; letter-spacing: 0.3px; text-align: center; }
.etat-sous-titre { text-align: center; color: #6B7280; font-size: 11.5px; margin-bottom: 8px; }
.etat h3 { font-size: 13px; margin: 14px 0 6px; }
.etat-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.etat-table th, .etat-table td { border-bottom: 1px solid #E5E7EB; padding: 6px 6px; text-align: left; vertical-align: top; }
.etat-table th { background: #F3F4F6; font-weight: 700; color: #111827; }
.etat-table .d { text-align: right; white-space: nowrap; }
.etat-table tfoot td { font-weight: 700; border-top: 2px solid #0F172A; border-bottom: none; }
.etat-table em { color: #B33500; font-style: normal; font-size: 11px; }
.etat .recu-signature { margin-top: 16px; }

/* ---------- Bandeaux (installation, mise à jour) ---------- */
.bandeau {
  background: var(--verre); color: var(--encre);
  border: 1px solid var(--verre-bord);
  border-radius: var(--rayon); padding: 12px 14px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  font-size: 14px; font-weight: 600;
  box-shadow: var(--ombre);
}
.erreur { color: var(--texte-orange); font-weight: 600; font-size: 14px; }

/* ---------- Message temporaire ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 60;
  background: rgba(15, 23, 42, 0.88); color: #FFFFFF;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 11px 18px; border-radius: 999px; font-weight: 600; font-size: 14px;
  box-shadow: 0 12px 30px -12px rgba(0, 0, 0, 0.6);
  max-width: calc(100% - 32px);
}
.toast[hidden] { display: none; }

/* ---------- Animation douce à l'ouverture des pages ---------- */
@media (prefers-reduced-motion: no-preference) {
  main.entree > * { animation: apparition 0.32s ease both; }
  main.entree > *:nth-child(2) { animation-delay: 0.03s; }
  main.entree > *:nth-child(3) { animation-delay: 0.06s; }
  main.entree > *:nth-child(4) { animation-delay: 0.09s; }
  @keyframes apparition { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
}

/* ---------- Impression : seulement le reçu ---------- */
@media print {
  body { background: #FFFFFF; }
  body * { visibility: hidden; }
  .imprimable, .imprimable * { visibility: visible; }
  .imprimable { position: absolute; left: 0; top: 0; width: 100%; background: #fff; box-shadow: none; overflow: visible; }
  .modal, .modal-box { position: static; background: #fff; max-height: none; overflow: visible; box-shadow: none; border: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .etat-table th { background: #F3F4F6 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ============================================================
   ÉLÉMENTS DU TABLEAU DE BORD (communs, puis adaptés par chaque design)
   ============================================================ */
.initiale-entete {
  width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center; font-weight: 900; font-size: 18px;
  background: var(--vert); color: #FFFFFF;
}
.initiale-entete[hidden] { display: none; }
.salut h1 { font-size: 30px; letter-spacing: -1px; line-height: 1.05; }
.salut .sous-titre { margin-bottom: 4px; }
.salut-suite { display: none; }

/* Grande carte du chiffre du jour */
.hero { gap: 6px; }
.hero-haut { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.hero-variation { font-size: 11.5px; font-weight: 800; border-radius: 999px; padding: 3px 9px; background: rgba(255,255,255,0.18); color: #FFFFFF; white-space: nowrap; }
.hero-milieu { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.hero .grand-chiffre { font-size: 44px; letter-spacing: -2px; white-space: nowrap; line-height: 1.05; }
.hero .grand-chiffre small { font-size: 0.45em; letter-spacing: 0; margin-left: 2px; opacity: 0.85; }
.hero-modes { margin-top: 6px; }
.hero-modes > .petit:only-child { grid-column: 1 / -1; background: none !important; border: none !important; padding: 0 !important; }
.graph-semaine { flex-shrink: 0; }
.graph-semaine .courbe { display: none; width: 120px; height: 50px; overflow: visible; }
.courbe-ligne { fill: none; stroke: #FFFFFF; stroke-width: 2.5; stroke-linecap: round; }
.courbe-aire { fill: rgba(255,255,255,0.15); stroke: none; }
.courbe-point { fill: #FFFFFF; }
.graph-semaine .barres { display: flex; align-items: flex-end; gap: 4px; width: 112px; height: 40px; }
.graph-semaine .barres i { flex: 1; border-radius: 4px; background: rgba(255,255,255,0.3); }
.graph-semaine .barres i:last-child { background: var(--or); }
.graph-semaine .jours { display: none; }

/* Boutons ronds d'accès rapide */
.rapides { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.rapide { display: flex; flex-direction: column; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 800; color: var(--encre); text-decoration: none; text-align: center; }
.rapide-ic { position: relative; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; transition: transform 0.12s ease; }
.rapide:active .rapide-ic { transform: scale(0.92); }
.rapide-nb { position: absolute; top: -3px; right: -5px; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 11px; font-size: 11.5px; font-weight: 900; display: grid; place-items: center; background: var(--texte-orange); color: #FFFFFF; box-shadow: 0 0 0 2px var(--fond); }

/* Tuiles de chiffres */
.tuiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tuile {
  position: relative; display: flex; align-items: center; gap: 12px; min-width: 0;
  padding: 14px; border-radius: var(--rayon); text-decoration: none; color: var(--encre);
  background: var(--verre); border: 1px solid var(--verre-bord); box-shadow: var(--ombre);
  transition: transform 0.12s ease;
}
.tuile:active { transform: scale(0.98); }
.tuile-ic { width: 40px; height: 40px; flex-shrink: 0; border-radius: 13px; display: grid; place-items: center; }
.tuile-txt { display: flex; flex-direction: column; min-width: 0; }
.tuile-n { font-size: 24px; font-weight: 900; letter-spacing: -0.8px; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tuile-t { font-size: 12.5px; font-weight: 600; color: var(--gris); line-height: 1.25; }
.ton-vert .tuile-ic { background: var(--vert-clair); color: var(--texte-vert); }
.ton-bleu .tuile-ic { background: var(--bleu-clair); color: var(--texte-bleu); }
.ton-corail .tuile-ic { background: var(--orange-clair); color: var(--texte-orange); }
.ton-or .tuile-ic { background: var(--or-clair); color: var(--texte-or); }
.ton-corail .tuile-n { color: var(--texte-orange); }

/* Articles du pressing avec icône */
.tuile-article { position: relative; min-height: 108px; gap: 4px; padding: 10px 6px; border-radius: var(--rayon-petit); background: var(--verre); }
.tuile-article-ic { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: var(--vert-clair); color: var(--texte-vert); margin-bottom: 2px; }
.tuile-article.choisie { border: 2px solid var(--vert); }
.tuile-article.choisie .tuile-article-ic { background: var(--vert); color: #FFFFFF; }
.tuile-qte { position: absolute; top: 6px; right: 6px; min-width: 22px; height: 22px; border-radius: 11px; display: grid; place-items: center; font-size: 12px; font-weight: 900; background: var(--or); color: #13201A; }

/* Choix du design (Mon compte › Apparence) */
.choix-designs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.choix-design { flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 4px; min-height: 0; padding: 10px; text-align: left; white-space: normal; border-radius: var(--rayon-petit); }
.choix-design strong { font-size: 13.5px; }
.choix-design .petit { font-size: 11.5px; font-weight: 500; line-height: 1.25; }
.choix-design.actif { border: 2px solid var(--vert); box-shadow: 0 0 0 3px var(--focus); }
.apercu-design { display: flex; width: 100%; height: 44px; border-radius: 10px; overflow: hidden; margin-bottom: 4px; }
.apercu-design i { flex: 1; }
.apercu-wax { background: #008751 var(--motif-wax); background-size: 34px; }
.apercu-wax i:nth-child(1) { flex: 2; } .apercu-wax i:nth-child(2) { flex: 0.25; background: #E8B531; } .apercu-wax i:nth-child(3) { background: #FBFAF6; }
.apercu-emeraude { background: radial-gradient(circle at 80% 10%, #00D47E, #030D09 70%); }
.apercu-emeraude i:nth-child(2) { margin: 14px 6px; border-radius: 6px; background: rgba(255,255,255,0.12); border: 1px solid rgba(0,212,126,0.6); }
.apercu-bento { background: #F3F5EF; gap: 3px; padding: 4px; }
.apercu-bento i { border-radius: 6px; } .apercu-bento i:nth-child(1) { background: #008751; flex: 2; } .apercu-bento i:nth-child(2) { background: #C8F560; } .apercu-bento i:nth-child(3) { background: #FF6A4D; }

/* ============================================================
   DESIGN 1 — WAX PRESTIGE (par défaut)
   ============================================================ */
:root:not([data-design="emeraude"]) .carte::before { display: none; }
:root:not([data-design="emeraude"]) .carte-bleue::after { display: none; }

:root[data-design="wax"] .topbar {
  background: var(--degrade-hero); background-image: var(--motif-wax), var(--degrade-hero);
  background-size: 78px 78px, auto;
  color: #FFFFFF; border-bottom: none; padding: 12px 16px 18px;
  box-shadow: 0 10px 24px -16px rgba(0, 70, 40, 0.8);
}
:root[data-design="wax"] .topbar::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px;
  background: repeating-linear-gradient(90deg, var(--or) 0 14px, transparent 14px 20px, #FFFFFF 20px 26px, transparent 26px 32px);
}
:root[data-design="wax"] .utilisateur { color: rgba(255,255,255,0.82); }
:root[data-design="wax"] .initiale-entete, :root[data-design="wax"] .logo-entete { border-radius: 50%; background: #FFFFFF; color: var(--vert); box-shadow: 0 0 0 2.5px var(--or); }
:root[data-design="wax"] .etat-sync { background: rgba(255,255,255,0.16) !important; color: #FFFFFF !important; border-color: rgba(255,255,255,0.3) !important; }
:root[data-design="wax"] .etat-sync.ok::before { background: var(--or); box-shadow: 0 0 0 3px rgba(232,181,49,0.3); }
:root[data-design="wax"] .carte-bleue {
  background-image: var(--motif-wax), var(--degrade-hero); background-size: 78px 78px, auto;
  border: none; box-shadow: 0 20px 40px -20px rgba(0, 90, 50, 0.75);
}
:root[data-design="wax"] .carte-bleue .grand-chiffre small { color: var(--or); opacity: 1; }
:root[data-design="wax"] .carte-bleue .grille-3 > div { background: rgba(0,0,0,0.16); border-color: rgba(255,255,255,0.14); }
:root[data-design="wax"] .hero-variation { background: rgba(0,0,0,0.2); color: var(--or); }
:root[data-design="wax"] .rapides { background: #FFFFFF; border: 1px solid var(--verre-bord); border-radius: 26px; padding: 14px 6px 12px; box-shadow: 0 18px 36px -22px rgba(0, 60, 30, 0.45); }
:root[data-design="wax"] .rapide-1 .rapide-ic { background: var(--vert); color: #FFFFFF; box-shadow: 0 8px 18px -6px rgba(0,135,81,0.7); }
:root[data-design="wax"] .rapide-2 .rapide-ic { background: var(--or-clair); color: var(--texte-or); }
:root[data-design="wax"] .rapide-3 .rapide-ic { background: var(--vert-clair); color: var(--vert); }
:root[data-design="wax"] .rapide-4 .rapide-ic { background: #FDE8E4; color: #C2412D; }
:root[data-design="wax"] .tuile { flex-direction: column; align-items: flex-start; gap: 8px; }
:root[data-design="wax"] .tuile::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--vert); opacity: 0.85; }
:root[data-design="wax"] .ton-or::after { background: var(--or); }
:root[data-design="wax"] .ton-corail::after { background: #E0583F; }
:root[data-design="wax"] .ton-bleu::after { background: #8FB9A3; }
:root[data-design="wax"] .ligne { border-bottom-style: dashed; border-bottom-color: #E6E1D3; }
:root[data-design="wax"] .segments button.actif, :root[data-design="wax"] .jour-agenda.actif { background: var(--vert); box-shadow: 0 8px 18px -10px rgba(0,135,81,0.9); }
:root[data-design="wax"] .btn-principal::after, :root[data-design="bento"] .btn-principal::after { display: none; }
:root[data-design="wax"] .recu { border-top: 3px dashed var(--or); }
:root[data-design="wax"] .bottomnav {
  left: 0; right: 0; bottom: 0; max-width: none; height: calc(72px + env(safe-area-inset-bottom)); padding: 0 6px env(safe-area-inset-bottom);
  border-radius: 22px 22px 0 0; border: none; border-top: 1px solid var(--verre-bord); background: #FFFFFF;
  box-shadow: 0 -10px 30px -20px rgba(40, 50, 20, 0.45);
}
:root[data-design="wax"] .bottomnav a { position: relative; color: #9AA299; font-weight: 700; }
:root[data-design="wax"] .bottomnav a.actif { background: none; box-shadow: none; color: var(--vert); }
:root[data-design="wax"] .bottomnav a.actif::before { content: ""; position: absolute; top: -9px; width: 34px; height: 4px; border-radius: 0 0 4px 4px; background: var(--or); }
:root[data-design="wax"] .toast { bottom: calc(88px + env(safe-area-inset-bottom)); }

/* ============================================================
   DESIGN 2 — ÉMERAUDE NUIT
   ============================================================ */
:root[data-design="emeraude"] .topbar, :root[data-design="emeraude"] .bottomnav, :root[data-design="emeraude"] .modal-box {
  -webkit-backdrop-filter: blur(20px) saturate(150%); backdrop-filter: blur(20px) saturate(150%);
}
:root[data-design="emeraude"] .topbar { background: rgba(3, 13, 9, 0.72); border-bottom: 1px solid var(--verre-bord); box-shadow: none; }
:root[data-design="emeraude"] .initiale-entete, :root[data-design="emeraude"] .logo-entete { border-radius: 13px; }
:root[data-design="emeraude"] .initiale-entete { background: var(--degrade-principal); color: #01180D; box-shadow: 0 8px 22px -6px rgba(0,212,126,0.7), inset 0 1px 0 rgba(255,255,255,0.4); }
:root[data-design="emeraude"] .etat-sync.ok { color: #9CFFCF !important; background: rgba(0,212,126,0.12) !important; border-color: rgba(0,212,126,0.3) !important; }
:root[data-design="emeraude"] .etat-sync.ok::before { background: var(--vert); box-shadow: 0 0 10px var(--vert); }
:root[data-design="emeraude"] .salut-suite { display: block; background: linear-gradient(90deg, #00D47E, #9CFFCF); -webkit-background-clip: text; background-clip: text; color: transparent; }
:root[data-design="emeraude"] .carte::before { opacity: 0.06; }
:root[data-design="emeraude"] .carte-bleue {
  border: 1px solid rgba(0, 212, 126, 0.35); color: #FFFFFF;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), 0 20px 50px -22px rgba(0, 212, 126, 0.5);
}
:root[data-design="emeraude"] .carte-bleue::before { background: none; }
:root[data-design="emeraude"] .carte-bleue::after { width: 260px; height: 260px; right: -90px; top: -130px; background: radial-gradient(circle, rgba(0,212,126,0.5), transparent 65%); }
:root[data-design="emeraude"] .carte-bleue .petit { color: #B8DCC9; }
:root[data-design="emeraude"] .carte-bleue .grand-chiffre small { color: #9CFFCF; opacity: 1; }
:root[data-design="emeraude"] .carte-bleue .grille-3 > div { background: rgba(0,0,0,0.25); border-color: var(--verre-bord); }
:root[data-design="emeraude"] .hero-variation { background: #9CFFCF; color: #053A22; }
:root[data-design="emeraude"] .graph-semaine .courbe { display: block; }
:root[data-design="emeraude"] .graph-semaine .barres { display: none; }
:root[data-design="emeraude"] .courbe-ligne { stroke: #5DFFB4; }
:root[data-design="emeraude"] .courbe-aire { fill: rgba(0, 212, 126, 0.18); }
:root[data-design="emeraude"] .courbe-point { fill: #FFFFFF; stroke: #00D47E; stroke-width: 3; }
:root[data-design="emeraude"] .rapide-ic { background: var(--verre); border: 1px solid var(--verre-bord); color: #CFE9DC; }
:root[data-design="emeraude"] .rapide-1 .rapide-ic { background: var(--degrade-principal); border: none; color: #01180D; box-shadow: 0 12px 28px -8px rgba(0,224,138,0.85); }
:root[data-design="emeraude"] .rapide-nb { box-shadow: 0 0 0 2px #030D09; }
:root[data-design="emeraude"] .tuile-ic { border-radius: 12px; }
:root[data-design="emeraude"] .ton-bleu .tuile-ic { background: rgba(63,182,255,0.15); color: #7FD0FF; }
:root[data-design="emeraude"] .btn-principal { border: none; box-shadow: 0 14px 34px -12px rgba(0,224,138,0.8), inset 0 1px 0 rgba(255,255,255,0.5); }
:root[data-design="emeraude"] .segments button.actif, :root[data-design="emeraude"] .jour-agenda.actif { background: #FFFFFF; color: #03140C; box-shadow: none; }
:root[data-design="emeraude"] .jour-agenda.actif span, :root[data-design="emeraude"] .jour-agenda.actif em { color: #03140C; }
:root[data-design="emeraude"] .tuile-article-ic { background: radial-gradient(circle at 30% 20%, rgba(0,212,126,0.35), rgba(0,212,126,0.06)); border: 1px solid rgba(0,212,126,0.25); border-radius: 16px; color: #9CFFCF; }
:root[data-design="emeraude"] .tuile-article.choisie { border-color: var(--vert); box-shadow: 0 0 0 1px var(--vert), 0 10px 30px -10px rgba(0,212,126,0.6); }
:root[data-design="emeraude"] .tuile-qte { background: var(--vert); color: #01180D; }
:root[data-design="emeraude"] .bottomnav { background: rgba(12, 26, 19, 0.8); border-color: rgba(255,255,255,0.1); border-radius: 26px; box-shadow: 0 20px 40px -10px #000; }
:root[data-design="emeraude"] .bottomnav a { position: relative; color: #6F8A7C; }
:root[data-design="emeraude"] .bottomnav a.actif { background: none; box-shadow: none; color: #FFFFFF; }
:root[data-design="emeraude"] .bottomnav a.actif svg { color: var(--vert); filter: drop-shadow(0 0 6px rgba(0,212,126,0.8)); }
:root[data-design="emeraude"] .bottomnav a.actif::after { content: ""; position: absolute; bottom: 1px; width: 5px; height: 5px; border-radius: 50%; background: var(--vert); box-shadow: 0 0 10px 2px var(--vert); }
:root[data-design="emeraude"] .modal { background: rgba(0, 0, 0, 0.6); }
:root[data-design="emeraude"] select option { background: #0B1A12; color: #EEF7F2; }

/* ============================================================
   DESIGN 3 — BENTO ÉCLAT
   ============================================================ */
:root[data-design="bento"] .topbar { background: var(--fond); border-bottom: none; box-shadow: none; }
:root[data-design="bento"] .initiale-entete { background: var(--lime); color: var(--noir); box-shadow: 0 0 0 3px #FFFFFF; }
:root[data-design="bento"] .logo-entete { border-radius: 50%; box-shadow: 0 0 0 3px #FFFFFF; }
:root[data-design="bento"] .etat-sync { background: #FFFFFF !important; border-color: transparent !important; }
:root[data-design="bento"] .salut h1 { font-size: 36px; letter-spacing: -1.6px; }
:root[data-design="bento"] .salut h1::after { content: " ✦"; color: var(--vert); }
:root[data-design="bento"] .carte { border: none; }
:root[data-design="bento"] .carte-bleue {
  color: #FFFFFF; box-shadow: none;
  background-image: repeating-radial-gradient(circle at 100% 0, transparent 0 18px, rgba(255,255,255,0.13) 18px 21px), var(--degrade-hero);
}
:root[data-design="bento"] .carte-bleue .petit { color: rgba(255,255,255,0.85); }
:root[data-design="bento"] .hero .grand-chiffre { font-size: 50px; }
:root[data-design="bento"] .hero-milieu { flex-direction: column; align-items: stretch; }
:root[data-design="bento"] .graph-semaine .barres { width: auto; height: 46px; gap: 7px; }
:root[data-design="bento"] .graph-semaine .barres i { border-radius: 8px; background: rgba(255,255,255,0.28); }
:root[data-design="bento"] .graph-semaine .barres i:last-child { background: var(--lime); }
:root[data-design="bento"] .graph-semaine .jours { display: flex; gap: 7px; margin-top: 4px; font-size: 10.5px; font-weight: 700; color: rgba(255,255,255,0.75); }
:root[data-design="bento"] .graph-semaine .jours span { flex: 1; text-align: center; text-transform: capitalize; }
:root[data-design="bento"] .carte-bleue .grille-3 > div { background: rgba(255,255,255,0.16); border: none; border-radius: 999px; padding: 6px 12px; }
:root[data-design="bento"] .carte-bleue .grille-3 strong { color: var(--lime); }
:root[data-design="bento"] .hero-variation { background: var(--lime); color: var(--noir); }
:root[data-design="bento"] .rapide-ic { width: 60px; height: 60px; border-radius: 20px; background: #FFFFFF; color: var(--noir); }
:root[data-design="bento"] .rapide-1 .rapide-ic { background: var(--lime); }
:root[data-design="bento"] .rapide-2 .rapide-ic { background: #CDEBFF; }
:root[data-design="bento"] .rapide-3 .rapide-ic { background: #FFE2D6; }
:root[data-design="bento"] .rapide-4 .rapide-ic { background: #F4E4FF; }
:root[data-design="bento"] .rapide-nb { background: var(--noir); color: var(--lime); }
:root[data-design="bento"] .tuile { flex-direction: column; align-items: stretch; gap: 0; min-height: 116px; padding: 14px 16px; border: none; }
:root[data-design="bento"] .tuile-ic { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.6) !important; color: inherit !important; }
:root[data-design="bento"] .tuile-txt { flex-direction: column-reverse; justify-content: space-between; flex: 1; }
:root[data-design="bento"] .tuile-t { font-size: 13px; font-weight: 700; color: inherit; opacity: 0.75; padding-right: 40px; }
:root[data-design="bento"] .tuile-n { font-size: 34px; letter-spacing: -1.6px; margin-top: 10px; color: inherit !important; }
:root[data-design="bento"] .tuiles .tuile:nth-child(4n+1) { background: var(--lime); color: var(--noir); }
:root[data-design="bento"] .tuiles .tuile:nth-child(4n+2) { background: #FFFFFF; color: var(--noir); }
:root[data-design="bento"] .tuiles .tuile:nth-child(4n+3) { background: var(--corail); color: #FFFFFF; }
:root[data-design="bento"] .tuiles .tuile:nth-child(4n+4) { background: var(--noir); color: #FFFFFF; }
:root[data-design="bento"] .tuiles .tuile:nth-child(4n+4) .tuile-n { color: var(--lime) !important; }
:root[data-design="bento"] .tuiles .tuile:nth-child(4n+3) .tuile-ic, :root[data-design="bento"] .tuiles .tuile:nth-child(4n+4) .tuile-ic { background: rgba(255,255,255,0.16) !important; }
:root[data-design="bento"] .tuiles .tuile:nth-child(4n+2) .tuile-ic { background: #CDEBFF !important; }
:root[data-design="bento"] .btn-principal { border: none; box-shadow: none; }
:root[data-design="bento"] .btn-bleu { border: none; box-shadow: none; color: #FFFFFF; }
:root[data-design="bento"] .segments button.actif, :root[data-design="bento"] .jour-agenda.actif { background: var(--noir); color: #FFFFFF; box-shadow: none; }
:root[data-design="bento"] .tuile-article-ic { width: 54px; height: 54px; background: #CDEBFF; color: var(--noir); }
:root[data-design="bento"] .grille-articles > .tuile-article:nth-child(6n+2) .tuile-article-ic { background: #FFE2D6; }
:root[data-design="bento"] .grille-articles > .tuile-article:nth-child(6n+3) .tuile-article-ic { background: #F4E4FF; }
:root[data-design="bento"] .grille-articles > .tuile-article:nth-child(6n+4) .tuile-article-ic { background: #DDF5C8; }
:root[data-design="bento"] .grille-articles > .tuile-article:nth-child(6n+5) .tuile-article-ic { background: #FFF1BF; }
:root[data-design="bento"] .grille-articles > .tuile-article:nth-child(6n+6) .tuile-article-ic { background: #D9F2EC; }
:root[data-design="bento"] .tuile-article.choisie { border: none; outline: 2.5px solid var(--noir); }
:root[data-design="bento"] .grille-articles > .tuile-article.choisie .tuile-article-ic { background: var(--noir); color: var(--lime); }
:root[data-design="bento"] .tuile-qte { background: var(--noir); color: var(--lime); }
:root[data-design="bento"] .bottomnav {
  left: 50%; right: auto; transform: translateX(-50%); width: auto; max-width: calc(100% - 24px);
  height: 66px; padding: 0 8px; gap: 4px; border: none; border-radius: 33px; background: var(--noir);
  box-shadow: 0 18px 40px -12px rgba(0,0,0,0.45);
}
:root[data-design="bento"] .bottomnav a { min-width: 52px; width: 52px; height: 52px; min-height: 52px; border-radius: 26px; font-size: 0; gap: 0; color: #8A978F; }
:root[data-design="bento"] .bottomnav a.actif { width: auto; padding: 0 18px; flex-direction: row; gap: 8px; font-size: 14px; font-weight: 900; background: var(--lime); color: var(--noir); box-shadow: none; }
:root[data-design="bento"] .bottomnav a.actif svg { width: 21px; height: 21px; stroke-width: 2.2; }
