/* ==================================================
   VARIABLES & POLICES
   ================================================== */
:root {
  --main-texturee: url("../textures/bg-red-wood.png");
  --main-texture-red: #a80f0f;
  --main-texture: #980e0e;
  --main-color: #eee;
  --main-texture-b: #2d4f15;
  
  --bg: #333;
  --text: #222;
  --muted: #777;
  --white: #fff;
  --overlay: rgba(0,0,0,.6);

  --morphofluid: #000;
  --brand: #b06f26;
  --brandt: #544;
  --brand-weak: #c00;

  --card-bg: #fff;
  --shadow-md: 0 2px 6px rgba(0,0,0,.55);
  --shadow-lg: 0 8px 20px rgba(0,0,0,.30);

  --radius-sm: 8px;
  --radius-md: 10px;
  --radius-lg: 12px;

  --gap-xs: .5em;
  --gap-sm: .75em;
  --gap-md: 12px;

  --t: .5s;
  --ease: cubic-bezier(.2,.8,.2,1);
  --stagger: 60ms;
}

@font-face {
  font-family: "LeckerliOne";
  src: url("../fonts/LeckerliOne-Regular.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: "Permanent";
  src: url("../fonts/PermanentMarker-Regular.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: "Roboto";
  src: url("../fonts/Roboto-VariableFont_wdth,wght.ttf") format("truetype");
  font-display: swap;
}
/* Base : petits écrans */
body { font-size: .9em; }
/* Android / iPhone "moyen" */
@media (min-width: 360px) {
  body { font-size: 1em; }
}
/* Grands écrans */
@media (min-width: 412px) {
  body { font-size: 1.05em; }
}
body, html {
  margin: 0; padding: 0;
  overflow: hidden;
  width: 100%; height: 100dvh;
  background: #000;
  background: var(--main-texture);
    
}

.cellshade-1,
.cellshade-2,
.cellshade-3,
.cellshade-4 {
  text-shadow: 0 0em .4em #000;
}
.app-view {
  position: absolute;
  top: 0;
  left: 0;                 /* 👈 ajoute cette ligne */
  right: 0;                /* 👈 ou width:auto pour que les côtés soient bornés */
  width: 100%;
  height: 93dvh;
  max-height: 93dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;        /* 👈 suffit à bloquer x+y */
  scroll-behavior: smooth;
  transform: scale(1);
  transform-origin: center top; /* 👈 évite le débordement dû au scale */
}
.app-space {
  width: 100%;
  height: 80vh;
  min-height: 80vh;
  max-height: 75vh;
  touch-action: pan-x;
  
  
}

.view-inner {
  padding: 0em;
}


/* Classes tilitaires */
.red {
  color: #900;
}
.disable {
  opacity: .5;
}
.back-switch-btn {
  font-size: 2em ;
  color: #eee;
}
#user-back-switch-btn {
  font-size: 1.6em ;
  color: #eee;
  text-align: right;
  font-weight: normal;
  font-family: "Roboto";
}
#branding {
  color: #eee;
  font-size: 30px;
  font-weight: 900;
  font-family: "Permanent";
  text-align: left;
  line-height: 1.5em;
  background: #0000;
  background: var(--main-texture);
  marggin-left: 50%;
  transfform: translateX(-50%);
}
#phone-block {
  color: #eee !important;
  font-size: 20px;
  font-weight: 900;
  font-family: "Roboto";
  text-align: right;
  line-height: 1.5em;
  background: #000;
  background: #000;
  background: var(--main-texture);
  margin-right: 0em;
  padding: .25em;
  /* Annuler les styles de lien */
  text-decoration: none;
  cursor: pointer;
}
#phone-block:hover,
#phone-block:visited,
#phone-block:active,
#phone-block:focus {
  color: #eee !important;
  text-decoration: none;
}
#navdock {
  
  color: var(--main-color);
  font-size: 1.5em;
  font-weight: 900;
  font-family: "Permanent";
  text-align: center;
  background: #eea0;
  background: var(--main-texture);
  padding: 0.25em;
  padding-bottom: 0;
  display: flex;
  width: 100%;
  position: relative;
  justify-content: center;
  height: 1.2em;
  ttransition: height var(--t) ease,
              opacity var(--t) ease;
}

#navdock > div {
  width: 1.2em;
  height: 1.2em;
  
  border-radius: 50%;
  background: #eee0;
  justify-content: center;
  overflow: hidden;
  line-height: 1.2em;
  text-align: center;
  opacity: 0.7;
  text-shadow: 0 0 .5em #222;
}
#navdock > div.active {
  color: #222;
  text-shadow: 0 0 .5em #eee0;
  opacity: 1;
  background: #eee0;
  justify-content: center;
  transform: scale(1.4);
}
@media (min-width: 500px) {
  /* Styles appliqués uniquement si la largeur du viewport > 500px */
  #root-ground {
    padding: 0 50px;
  }
}
@media (min-width: 1000px) {
  /* Styles appliqués uniquement si la largeur du viewport > 1000px */
  #root-ground {
    padding: 0 200px;
  }
}


#content {
  flex: 1;             /* prend tout l’espace restant */
  background: #eee5;
  background: #eee0;
  background: var(--main-texture);
  display: block;
  overflow: scroll;
  trhansition: height var(--t) ease,
              opacity var(--t) ease;
}
#content.fadeOut,  #navdock.fadeOut{
  opacity: 0;
  max-height: 0px;
}

#footer {
  
  margin-top: auto;    /* pousse le footer en bas */
  color: #eee;
  background: #eee0;
  text-align: left;
  hpadding: .75em;
  display: flex;
  font-family: "Roboto";
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  padding: .5em 0em;
}
#footer > div#user-switch-btn {
  font-size: 2em;
  background: #0000;
  position: relative;
}
#footer > div#cgv-switch-btn {
  font-size: 1em;
  background: #0900;
  text-align: center;
  display: flex;
  flex-grow: 1;
  justify-content: right;
}
#footer > div#cgv-switch-btn > div.location-side {
  font-size: 2em;
  background: #a5a0;
}
#footer > div#cgv-switch-btn > div.cgv-link-side {
  font-size: 1em;
  background: #2590;
  flex-grow:1;
}
#footer-ext-panel {
  overflow: scroll;
  display: block;
  
}
.btn {
  color: #222;
  background: #eee;
  padding: .75em;
  border: 1px solid #eee;
  border-radius: .8em;
  text-align: center;
  display: inline-block;
}

.shutscanbtn {
 marggin: 1em;
 margin-left: 50%;
 margin-top: 20%;
 transform: translateX(-50%);
}
.pizza-card,

.hybrid-card{
  position:relative; overflow:hidden;
  border-radius: var(--radius-md);
  background: var(--card-bg);
  aaspect-ratio: 3 / 2;
  miin-height:3em;
  cursor:pointer;
  box-shadow: var(--shadow-md);
  transition:
    transform var(--t) var(--ease),
    box-shadow var(--t) var(--ease),
    filter var(--t) var(--ease),
    border-radius var(--t) var(--ease),
    width var(--t) var(--ease); /* au cas où Masonry/resize */
}
@media (hover:hover){
  .pizza-card:hover, .hybrid-card:hover{
    box-shadow: 0 6px 14px rgba(0,0,0,.0);
  }
}
  
/* Image de fond carte (ne pas confondre avec .modal-bg) */
.card-bg{
  position:absolute; inset:0;
  background-size: 200% auto; background-position: center;
  filter: brightness(1);
  transition: filter var(--t) var(--ease), transform var(--t) var(--ease);
}
.card-bg::before{
  content:"";
  position:absolute; inset:0;
  background: #fff7;
  z-index:-1;
}

/* Contenu compact */
.pizza-content,
.card-compact{
  position:relative; z-index:1;
  display:flex; flex-direction:column; align-items:flex-start;
  gap:.25rem; padding:.5rem;
  color:#fff; text-shadow:0 1px 3px #0008; font-weight:bold;
}
.pizza-name{
  font: bold 1.25em "Permanent", system-ui, sans-serif;
  margin:0;
}
.pizza-ingredients{
  font-size:.95em; font-weight:800; line-height:1.3;
  font-family: "LeckerliOne";
  color: #fff;
  color:#000; white-space:normal;
  overflow:visible; text-overflow:unset; max-height:none;
  text-shadow: 0 0 .3em #fff4;
  line-height: 1.1em;
  
}

/* ===================================
   PICTOGRAMMES / INGRÉDIENTS
   ================================================== */
.ingredients-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1em ;
  background: #d750;
  padding: 0.5em .99em;
}

/* Chaque bouton d’ingrédient */
.ingredients-grid > .icon-button {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #eee;
  aspect-ratio: 1 / 1.15;
  box-shadow: 0 0 .5em rgba(0, 0, 0, .58);
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
  border-radius: .5em;
  overflow: hidden;
}

/* Pictogramme */
.ingredients-grid > .icon-button > .icon-btn-picto {
  flex-grow: 1;
  background: #de50;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ingredients-grid > .icon-button > .icon-btn-picto > img {
  width: 80%;
  height: auto;
}

/* Label sous l’icône */
.ingredients-grid > .icon-button > .icon-btn-label {
  flex-shrink: 0;
  background: #d7e0;
  text-align: center;
  font-size: .9em;
  line-height: .8em;
  padding: .3em 0;
  border-top: 1px solid #0002;
}
/*
.ingredients-grid .icon-button-img{
  width:56px; height:56px; display:block;
  margin:0 auto .25rem;
}
.ingredients-grid .icon-button-label{
  font-size:.8em; color:#333; text-align:center; line-height:1.1;
}
*/
@media (hover:hover){
  .ingredients-grid .icon-button:hover{
    transform: translateY(-2px);
    box-shadow:0 6px 16px rgba(0,0,0,.22);
  }
}
.cat-header {
  color: #eee;
  background: var(--main-texture);
  width: Calc(100% - .5em);
  font-size: 2em;
  font-family: "LeckerliOne";
  padding-bottom: .25em;
  padding-left: .5em;
  position: sticky;
  top: 0px;
  z-index: 99999;
}
.cat-header {
  width: 100%;
  box-sizing: border-box;
}

.userland-card {
  position: relative;
  display: inline-block;
  background: #eee;
  margin: 1em;
  margin-top: 0;
  padding: 1em;
  pacdding-top: 2em;
  padding-bottom: 1em;
  
  border-radius: .8em;
}
.userland-card > div.userland-qr > canvas {
  margin-left: 50%;
  transform: translateX(-50%);
}
.userland-label {
  color: #eee;
  background: #2222;
  margin: 1em;
  margin-top: 0;
  padding: 1em;
  
  
  border-radius: .8em;
  
  font-family: "Roboto";
}
.userland-section {
  color: #eee;
  background: #2220;
  margin: 0em;
  margin-top: 0;
  padding: .5em 1em;
  
  
  border-radius: .8em;
  
  font-family: "Roboto";
}
.userland-scan-btn {
  display: inline-block;
  position: absolute;
  right: 1em;
  bottom: 1em;
}
.card-label {
  color: #aaa;
  padding-top: 1em;
  font-family: "Roboto";
  font-weight: bold;
}
.map-section {
  padding: 0em;
}
.map-ctnr {
  background: #aaa;
  height: 100vw - 0em;
  border-radius: 0em ;
  box-shadow: 0 0 0em #222;
  overflow: hidden;
}
.map-ctnr > svg {
  width: 100%;
  height: auto;
}
/*
.user-card, .root-card {
  display: inline-block;
  color: #222;
  background: #ea6;
  
  padding: .5em;
  margin: .5em;
  width: Calc(Calc(Calc(100% - 1em) - 3em) / 3);
  border-radius: .25em;
  font-family: "Roboto";
  font-weight: bold;
}
 .root-card {
  
  color: #222;
  background: #b22;
  
  
}*/
.shopland-section {
  font-family: "Roboto";
  padding: 0em;
  
}
.monitorLog {
  
  font-family: monospace;
  padding: .5em;
  margin-top: .5em;
  background: #eee0;                       /* (optionnel) fond clair pour mieux voir */
  border-radius: .5em;                    /* (optionnel) coins arrondis */
}
.monitor-section {
  display: block/;
  
  
  padding: .5em;
  margin-top: .0em;
  background: #eee0;                       /* (optionnel) fond clair pour mieux voir */
  
}
 #activityLog {
  font-family: monospace;
  padding: .5em;
  margin-top: .5em;
}
.usergrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .25em ;
}
.usercard {
  background: #eee;
  border-radius: .4em;
  padding: .4em .6em;
  margin-bottom: .3em;
  box-shadow: 0 0 2px rgba(0,0,0,.2);
  
  display: inline-block;
}



/* ==== Conteneur d'intégration ==== */
.grid-container {
  margin-top: .5em;
  margin-bottom: .8em;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: .5em;
  padding: .5em;
  background: #fafafa;
  overflow: scroll;
}
.root-card { background: #fee; border-left: 1em solid #200; 
}
.user-card { background: #eef; border-left: 1em solid #00c; }
.guest-card { background: #fee; border-left: 1em solid #aaa; }

.evt { 
  font-size: .85em;
  background: #f9f9f9;
  border-left: 1em solid #aaa;
  margin-bottom: .3em;
  padding: .3em .5em;
}
.evt-suid {
  font-weight: bold;
}
.evt-root_login { border-color: #800; }
.evt-login { border-color: #0c0; }
.evt-new_user { border-color: #00c; }

#create-product-panel {
  overflow: scroll;
}
.price-grid {
  border-collapse: collapse;
  width: 100%;
  text-align: center;
}
.price-grid th, .price-grid td {
  border: 1px solid #444;
  padding: .3em;
}
.price-grid input {
  width: 80%;
  background: #333;
  color: #fff;
  border: none;
  border-radius: .3em;
  text-align: center;
}
/* === Zone principale du GUI === */
.product-gui {
  display: flex;
  flex-direction: column;
  gap: .8em;
  background: #b51b1b; /* rouge FleurePizza */
  color: #eee;
  padding: 1em;
  border-radius: .8em;
  box-shadow: 0 0 10px #0006;
  font-family: "Segoe UI", Roboto, sans-serif;
  animation: fadeIn .4s ease;
}

/* === Résumé (haut de l’écran) === */
.product-summary {
  background: #861010; /* rouge plus foncé */
  padding: .6em .8em;
  border-radius: .5em;
  line-height: 1.4em;
  font-size: .95em;
  box-shadow: inset 0 0 4px #0005;
}
.product-summary ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.product-summary li {
  margin: .2em 0;
}
.product-summary b {
  color: #fff;
  font-weight: 600;
}

/* === Étapes (bas de l’écran) === */
.product-steps {
  background: #f7f7f7;
  color: #222;
  padding: 1em;
  border-radius: .5em;
  box-shadow: inset 0 0 3px #0003;
}

/* === Titres d’étapes === */
.product-steps h4 {
  color: #c00;
  margin-top: 0;
  margin-bottom: .6em;
  font-size: 1.05em;
  font-weight: 700;
}

/* === Champs === */
.product-steps input,
.product-steps select {
  width: 100%;
  margin: .3em 0 .8em;
  padding: .5em .6em;
  border: 1px solid #ccc;
  border-radius: .4em;
  background: #fff;
  font-size: .95em;
  box-sizing: border-box;
}
.product-steps input:focus,
.product-steps select:focus {
  outline: none;
  border-color: #c00;
  box-shadow: 0 0 4px #c004;
}

/* === Boutons === */
.product-steps button,
.cat-btns button {
  cursor: pointer;
  border: none;
  background: #c00;
  color: #fff;
  font-weight: 600;
  border-radius: .5em;
  padding: .6em 1em;
  margin-top: .4em;
  transition: background .2s;
  font-size: 1.15em;
}
.product-steps button:hover,
.cat-btns button:hover {
  background: #a00;
}
.cat-btns {
  display: flex;
  gap: .4em;
  flex-wrap: wrap;
}
.cat-btns button[disabled] {
  background: #777;
  cursor: not-allowed;
}

/* === Tableau des prix === */
.price-grid {
  border-collapse: collapse;
  width: 100%;
  text-align: center;
  margin-top: .5em;
  border: 1px solid #ccc;
  background: #fff;
  color: #222;
  border-radius: .4em;
  overflow: hidden;
}
.price-grid th {
  background: #c00;
  color: #fff;
  padding: .4em;
  font-weight: 600;
}
.price-grid td {
  border: 1px solid #ccc;
  padding: .3em .2em;
}
.price-grid td:first-child {
  font-weight: bold;
  background: #eee;
}
.price-grid input {
  width: 90%;
  background: #f2f2f2;
  border: 1px solid #bbb;
  border-radius: .3em;
  text-align: center;
  padding: .3em;
}
.price-grid input:focus {
  color: #222;
  background: #fff;
  border-color: #c00;
  outline: none;
}

/* === Animation légère === */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
/* --- Animation d'ouverture / fermeture du GUI produit --- */
.product-gui {
  opacity: 0;
  transform: translateY(10px) scale(0.98);
  transition: all .35s ease;
}

.product-gui.opening {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.product-gui.closing {
  opacity: 0;
  transform: translateY(10px) scale(0.95);
}

/* (optionnel) petit fondu global des userland-section lors du masquage */
.userland-section {
  transition: opacity .3s ease;
}
.userland-section[style*="display: none"] {
  opacity: 0;
}
/* === Grille prix tacos === */
.tacos-price-grid {
  display: grid;
  grid-template-columns: 1fr repeat(3, 1fr); /* 1 col pour labels, 3 pour tailles */
  gap: .3em;
  background: #fff;
  border-radius: .5em;
  overflow: hidden;
  border: 1px solid #ccc;
  margin-top: .5em;
}
.tacos-price-grid .grid-header {
  background: #c00;
  color: #fff;
  font-weight: bold;
  text-align: center;
  padding: .4em 0;
}
.tacos-price-grid .grid-row {
  background: #eee;
  text-align: center;
  font-weight: bold;
  line-height: 2em;
}
.tacos-price-grid .grid-cell {
  text-align: center;
  background: #fafafa;
  padding: .3em;
  border-top: 1px solid #ddd;
  border-left: 1px solid #ddd;
}
.tacos-price-grid input {
  width: 80%;
  text-align: center;
  border: 1px solid #ccc;
  border-radius: .3em;
  background: #f6f6f6;
  padding: .3em;
  transition: border .2s;
}
.tacos-price-grid input:focus {
  border-color: #c00;
  background: #fff;
  outline: none;
}
.panizza-price-grid {
  display: grid;
  grid-template-columns: 1fr repeat(3, 1fr);
  gap: .3em;
  background: #fff;
  border-radius: .5em;
  overflow: hidden;
  border: 1px solid #ccc;
  margin-top: .5em;
}
.panizza-price-grid .grid-header {
  background: #c00;
  color: #fff;
  font-weight: bold;
  text-align: center;
  padding: .4em 0;
}
.panizza-price-grid .grid-row {
  background: #eee;
  text-align: center;
  font-weight: bold;
  line-height: 2em;
}
.panizza-price-grid .grid-cell {
  text-align: center;
  background: #fafafa;
  padding: .3em;
  border-top: 1px solid #ddd;
  border-left: 1px solid #ddd;
}
.panizza-price-grid input {
  width: 80%;
  text-align: center;
  border: 1px solid #ccc;
  border-radius: .3em;
  background: #f6f6f6;
  padding: .3em;
  transition: border .2s;
}
.panizza-price-grid input:focus {
  border-color: #c00;
  background: #fff;
  outline: none;
}
/* === STRUCTURE DE BASE === */
.cat-section {
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(0,0,0,0.1);
  padding-bottom: 0.5rem;
}
.cat-section:last-child {
  height: 85vh;
  height: 85dvh;
}

.cat-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  justify-content: left;
  padding: .4rem .6rem;
  background: var(--main-texture);
  border-radius: 0rem;
}


.header-left {
  display: flex;
  align-items: center;
  gap: .4rem;
}

.header-right {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  align-items: center;
}


/* === ICONES DE CATEGORIES === */
.cat-icon {
  width: 1.6em;
  height: 1.6em;
  object-fit: contain;
  vertical-align: middle;
  filter: drop-shadow(1px 1px 0 #0008);
}

/* === TITRES === */
.cat-title {
  font-weight: 700;
  font-size: 1.1em;
  line-height: 1.2em;
  display: flex;
  align-items: center;
  color: #fff;
  text-transform: capitalize;
}
.cat-sub-title {
  font-size: .75em;
}
.cat-title > i {
  font-size: 1.35em;
}
/* === LABELS ET SÉLECTEURS === */
.filter-label {
  font-size: .85em;
  opacity: 0.85;
  color: #ccc;
}

.filter-box {
  display: flex;
  align-items: center;
  gap: .3rem;
  border-radius: .35em;
  overflow: hidden;
}


.custom-selector {
  display: flex;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: .3rem;
  overflow: hidden;
  background: rgba(0,0,0,0.25);
}

.selector-item {
  padding: .5rem .5rem;
  font-size: .5em;
  cursor: pointer;
  color: #888;
  transition: all .15s ease;
  
}

.selector-item:not(:last-child) {
  border-right: 1px solid rgba(255,255,255,0.1);
}

.selector-item:hover {
  background: rgba(255,255,255,0.1);
}

.selector-item.active {
  background: rgba(255,255,255,0.2);
  background: var(--brand);
  color: #eee;
  font-weight: 600;
  
}
.selector-item:first-child {
  padding-left: 1em;
}
.selector-item:last-child {
  padding-right: .85em;
}

/* === RÉACTIVITÉ === */
@media (max-width: 600px) {
  .cat-header {
    flex-direction: column;
    align-items: flex-start;
    gap: .4rem;
    width: 100%;
  }
  .header-right {
    justify-content: flex-start;
  }
  .cat-icon {
    width: 1.4em;
    height: 1.4em;
  }
  .cat-title {
    font-size: 1em;
  }
}
.smart-card {
  displvay: flex;
  flex-direction: column;
  align-items: left;
  background: rgba(0,0,0,0.15);
  border-radius: .5rem;
  padding: .4rem;
  overflow: hidden;
  cursor: pointer;
  transition: height .5s ease, transform .15s ease, background .15s ease;
  font-family: "LeckerliOne";
}

.smart-card.glass-card.expanded {
  height: 30vh;
}

.card-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: .4rem;
  background: rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-body {
  text-align: left;
}

.card-title {
  font-weight: 600;
  color: #222;
  font-size: 1.25em;
  text-shadow: none;
  text-transform: lowercase;
}
.card-title::first-letter {
  text-transform: uppercase;
}
.card-ctnt {
  font-weight: 400;
  color: #222;
  font-size: 1.05em;
  text-shadow: 1px 1px 0 #000;
  text-transform: lowercase;
  text-shadow: none;

}
.card-price {
  position: absolute;
  top: 0;
  right: 0;
  background: #a20;
  color: #eee;
  font-size: 1.35em;
  font-family: "Roboto";
  font-weight: bold;
  padding: .25em;
  border-radius: .25em;
}
.card-desc {
  font-family: Roboto;
  font-size: .9em;
  color: #222;
  padding: .2em 0;
  text-shadow: none;
  text-align: c;
}


.smart-grid {
  margin-top: .4rem;
  padding: .3rem 0;
}

.smart-card.glass {
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}
.smart-card.glass:hover {
  
}
.glass-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow: hidden;

  background-size: 200%;
  background-position: center;
  background-repeat: no-repeat;

  transition: background-size .6s ease, background-position .6s ease;
}

/* voile translucide pour lisibilité */
.glass-veil {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.6);
  z-index: 0;
  transition: background .5s ease;
}

/* --- État étendu --- */
.glass-card.expanded {
  flex-direction: row;
  justify-content: space-between;
  align-items: stretch;

  background-size: auto 100%;       /* l’image s’adapte à la hauteur */
  background-position: right center; /* décalée à droite */
}

/* fond secondaire qui comble la zone gauche */
.glass-card.expanded::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #fff 90%, transparent 100%);
  z-index: -1; /* derrière tout */
  transition: opacity .6s ease;
}

.glass-card.expanded > .glass-veil {
  background: rgba(255,255,255,0.1);
}

/* Animation douce */
.glass-card,
.glass-card::before,
.glass-veil {
  transition: all .6s ease;
}
.glass-body {
  position: relative;
  z-index: 1;
  padding: 0em;
  color: #fff;
  text-shadow: 0 1px 3px #000;
}
.site-config-panel {
  font-family: Roboto;
  background: #fff0;
  padding: 1em;

  text-align: left;
  margin-bottom: .8em;
  text-shadow: none;
  color: #fff;
}

.site-config-panel .field {
  text-shadow: none;
  margin-bottom: 0.8em;
}

.site-config-panel label {
  display: block;
  text-shadow: none;
  font-weight: 600;
  margin-bottom: 0.2em;
}

.site-config-panel input,
.site-config-panel textarea {
  width: 100%;
  padding: 0.4em;
  border-radius: 6px;
  border: 1px solid #ccc;
}

.site-config-panel .buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 1em;
}





.cat-section.collapsed {
  max-height: 0;
  opacity: 0;
  pointer-events: none;
}

/* === Dock compact (vue réduite) === */
.smart-docck {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-around;
  background: #eee;
  
  padding: .3rem .6rem;
  z-index: 100;
  transition: transform 0.3s ease;
}

.smart-dock.hidden {
  transform: translateY(100%);
}

/* Icônes du dock */
.smart-dock img {
  width: 28px;
  height: 28px;
  opacity: 0.8;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.smart-dock img:hover {
  opacity: 1;
  transform: scale(1.15);
}
(.smart-loader {
  position: fixed;
  inset: 0;
  background: var(--main-texture, #b71c1c);
  color: #fff;
  font-family: 'LeckerliOne', cursive;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity .4s ease;
}

.smart-loader.fade-out {
  opacity: 0;
  pointer-events: none;
}

.loader-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: .8em;
}

.loader-text {
  font-size: 1.1em;
  margin-bottom: .8em;
}

.loader-progress {
  width: 80%;
  height: 6px;
  border-radius: 4px;
  background: rgba(255,255,255,0.2);
  overflow: hidden;
  margin-top: 6px;
}

.loader-progress-bar {
  width: 0%;
  height: 100%;
  background: #fff;
  border-radius: 4px;
  transition: width .25s ease;
}

@keyframes spin {
  to { transform: rotate(360deg); }
})
/*

.cat-section {
  margin: 0;
  
}
 div.smart-grid {
  max-height: 0;
  overflow: hidden;
  margin: 0;
}
 div.header-right {
  max-height: 0;
  overflow: hidden;
  margin: 0;
}
 div.filter-box {
  max-height: 0;
  overflow: hidden;
  margin: 0;
}
*/
.smart-card.clicked {
  transform: scale(0.97);
  transition: transform 0.1s ease;
}
.smart-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.modal-selectors {
  display: flex;
  gap: .5em;
  justify-content: center;
  flex-wrap: wrap;
  margin: .2em 0;
  font-size: 1.84em;
  font-family: "LeckerliOne";
  color: #222;
}
/*
.modal-selectors > .custom-selector {
  display: flex;
  gap: .3em;
  background: #eee;
  padding: .3em .5em;
  border-radius: .4em;
}

.modal-selectors > .custom-selector > .selector-item {
  padding: .2em .6em;
  border-radius: .3em;
  background: #fff;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.modal-selectors > .custom-selector > .selector-item.active {
  background: var(--main-texture, #b71c1c);
  color: #fff;
}
@media (max-width: 600px) {
  .modal-selectors > .custom-selector {
    flex-wrap: wrap;
    justify-content: center;
  }
  .modal-selectors > .custom-selector > .selector-item {
    font-size: .9em;
    padding: .25em .5em;
  }
}
*/
.smart-card.indic-card {
  background: none ;
  background-image: none ;
  box-shadow: none;
  border: none;
  backdrop-filter: none;
  filter: none;
  opacity: 1;
}

.smart-card.indic-card .glass-veil {
  display: none;
}

.smart-card.indic-card .card-body {
  background: transparent;
  padding: .3em .6em;
  text-align: left;
}

.smart-card.indic-card .card-title {
  color: var(--main-text, #fff);
  font-weight: 600;
  font-size: 1em;
  
  
}

.smart-card.indic-card .card-price {
  display: inline-block;
  background:  #b71c1c !important;
  color: #fff;
  border-radius: .4em;
  padding: 0 .4em;
  margin-left: .4em;
  font-weight: 700;
}

/* Conteneur principal du bouton pictogramme */



/* Variante sans barre diagonale (plus subtile) */


.modal-fade-layer {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.95);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 1em;
  overflow-y: auto;
  z-index: 50;
  border-radius: 1em;
}

.modal-fade-layer h3 {
  margin-bottom: .6em;
  color: #c00;
  font-family: 'Leckerli One', cursive;
  font-size: 1.4em;
}

.modal-adder-panel .ingr-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .4em;
  margin-bottom: 1em;
}

.modal-adder-panel .btn-cancel {
  background: #c00;
  color: #fff;
  border: none;
  padding: .6em 1.4em;
  border-radius: .5em;
  font-weight: bold;
  cursor: pointer;
}
.keycard-form {
  display: grid;
  gap: .5em;
  background: rgba(255,255,255,0.06);
  padding: .8em;
  border-radius: .5em;
}
.keycard-form label {
  font-weight: 600;
  font-size: .9em;
}
.keycard-form input, .keycard-form select {
  font-size: 1em;
  padding: .3em .4em;
  border-radius: .3em;
  border: 1px solid #8884;
  background: rgba(255,255,255,0.08);
  color: var(--text-color,#fff);
}
.keycard-form .btn-main {
  background: var(--main-texture,#c00);
  color: #fff;
  border: none;
  border-radius: .4em;
  padding: .4em .8em;
  cursor: pointer;
}
.keycard-result {
  margin-top: 1em;
  font-size: .9em;
  background: rgba(0,0,0,.1);
  padding: .6em;
  border-radius: .4em;
}
.keycard-result textarea {
  font-family: monospace;
}
.keycard-result .err { color: #ff8080; font-weight: 600; }

.card-ingr-icons {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: center;
  gap: 0.25em;
  margin: 0;
  padding: 0;
  height: 2em;
}

.card-ingr-icons .icon-button.mini {
  width: 1.8em;
  height: 1.5em;
  padding: 0;
  background: none;
  box-shadow: none;
  border-radius: 0.4em;
}

.card-ingr-icons .icon-button.mini .icon-btn-picto {
  width: 100%;
  height: 100%;
}

.card-ingr-icons .icon-button.mini .icon-button-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.modal-overlay.memo {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.modal-memo {
  background: var(--main-texture, repeating-linear-gradient(
    45deg,
    #fafafa,
    #fafafa 10px,
    #f0f0f0 10px,
    #f0f0f0 20px
  ));
  border-radius: 1em;
  box-shadow: 0 0 20px rgba(0,0,0,0.3);
  padding: 1em;
  max-width: 480px;
  width: 90%;
  color: #222;
  font-family: Roboto, sans-serif;
}

.memo-header {
  text-align: center;
  font-size: 1.2em;
  font-weight: bold;
}

.memo-list {
  margin: 1em 0;
  max-height: 300px;
  overflow-y: auto;
}

.memo-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px dashed #ccc;
  padding: 0.3em 0;
  gap: 0.5em;
}

.memo-line .memo-order {
  flex: 1;
}

.memo-line .memo-price {
  font-weight: bold;
}

.memo-line .memo-del {
  background: none;
  border: none;
  color: #a00;
  font-size: 1.2em;
  cursor: pointer;
}

.memo-footer {
  border-top: 1px solid #ddd;
  padding-top: 0.6em;
  display: flex;
  flex-direction: column;
  gap: 0.6em;
}

.memo-total {
  text-align: right;
  font-weight: bold;
  font-size: 1.1em;
}

.memo-actions {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5em;
}

.memo-btn {
  flex: 1;
  border: none;
  border-radius: 0.4em;
  padding: 0.5em;
  cursor: pointer;
  font-weight: 600;
  color: #fff;
  background: #333;
  transition: 0.2s;
}

.memo-btn.clear { background: #c33; }
.memo-btn.send { background: #090; }
.memo-btn.close { background: #555; }

.memo-btn:hover { opacity: 0.8; }

.memo-empty {
  text-align: center;
  color: #666;
  padding: 1em 0;
}
/* SECTION MÉMO COMPLÈTE */
.userland-section.memo.fullview {
  background: #fff;
  background-image: repeating-linear-gradient(
    45deg,
    rgba(0,0,0,0.1) 0,
    rgba(0,0,0,0.05) 5px,
    transparent 1px,
    transparent 8px
  );
  border-radius: 1em;
  padding: 0.8em 1em;
  margin: 0.6em .5em;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.25);
  color: #222;
  display: flex;
  flex-direction: column;
  gap: 0.6em;
  max-height: 55vh;
  
}

.memo-header-line {
  display: flex;
  justify-content: left;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
  border-bottom: 2px solid rgba(0, 0, 0, 0.15);
  padding-bottom: 0.3em;
  font-size: 1.05em;
}

.memo-full-list {
  max-height: 50vh;
  overflow-y: auto;
  padding: 0.3em 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.memo-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.2em 0;
  font-size: 1.2em;
}

.memo-order {
  flex: 1;
  margin-right: 0.5em;
  whigte-space: nowrap;
  overflow: hidden;
  textgv-overflow: ellipsis;
}

.memo-price {
  font-weight: 600;
  color: #000;
}

.memo-empty {
  text-align: center;
  color: #666;
  font-style: italic;
  padding: 1em 0;
}

.memo-total-box {
  text-align: right;
  font-weight: bold;
  font-size: 1em;
  color: #000;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  padding-top: 0.4em;
}

.memo-mini-actions {
  display: flex;
  justify-content: space-between;
  gap: 0.5em;
  margin-top: 0.4em;
}

.memo-mini-btn {
  flex: 1;
  border: none;
  border-radius: 0.5em;
  padding: 0.45em;
  font-weight: 600;
  color: #fff;
  font-size: 0.9em;
  cursor: pointer;
  transition: 0.2s;
}

.memo-mini-btn.view { background: #555; }
.memo-mini-btn.send { background: #0a0; }
.memo-mini-btn.clear { background: #c33; }

.memo-mini-btn:hover { opacity: 0.85; }

/* Scroll doux */
.memo-full-list::-webkit-scrollbar {
  width: 6px;
}
.memo-full-list::-webkit-scrollbar-thumb {
  background: #bbb;
  border-radius: 3px;
}


/* Carte utilisateur */
.userland-card {
  position: relative;
  text-align: center;
  margin: 0 auto;
  transition: all 0.3s ease;
  background: var(--card-bg, #fff);
  border-radius: .6em;
  overflow: hidden;
}

/* --- État condensé --- */
.userland-card .card-collapsed {
  display: flex;
  align-items: center;
  justify-content: center;
  heigght: 3.2em;           /* hauteur minimale très réduite */
  padding: 0;
  cursor: pointer;
  font-size: 1.8em;        /* taille d’icône plus compacte */
  color: var(--main-text, #000);
  transition: background 0.2s ease;
}
.userland-card .card-collapsed:hover {
  background: rgba(0, 0, 0, 0.05);
}

/* --- État étendu --- */
.userland-card .card-expanded {
  transition: all 0.3s ease;
  padding: .6em 0 1em 0;
  display: block;
}
.userland-card .card-expanded.hidden {
  display: none;
}

.userland-card .card-collapsed.hidden {
  display: none;
}

/* Supprime les marges verticales du QR et du label */
.userland-card .userland-qr {
  margin: 0 auto .4em auto;
}
.userland-card .card-label {
  margin-top: .3em;
  font-size: .85em;
  color: #333;
}

/* Petit effet de zoom à l’ouverture */
.userland-card.extended {
  transform: scale(1.02);
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  display: block;
}
/* Effet stabilo épais rouge via l'underline natif */
.discount{
  text-decoration-line: none;
  text-decoration-color: #e53935;        /* rouge stabilo */
  text-decoration-style: solid;
  text-decoration-thickness: 0.30em;     /* épaisseur du surlignage */
  text-underline-offset: 2px;         /* distance par rapport au texte */
  text-decoration-skip-ink: none;        /* évite les “trous” sous les lettres */
  line-height: 1.3em;
}
.memo-line.confirming {
  background: rgba(255, 230, 230, 0.8);
  border: 1px solid #e66;
  border-radius: 0.4em;
  padding: 0.4em;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.memo-confirm {
  width: 100%;
  text-align: center;
  font-size: 0.9em;
  color: #900;
}

.memo-confirm-actions {
  display: flex;
  justify-content: center;
  gap: 0.5em;
  margin-top: 0.4em;
}

.memo-confirm-actions button {
  border: none;
  border-radius: 0.4em;
  padding: 0.3em 0.6em;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}

.memo-btn-cancel {
  background: #ccc;
  color: #000;
}

.memo-btn-delete {
  background: #c33;
  color: #fff;
}

.memo-confirm-actions button:hover {
  opacity: 0.85;
}
/* Petit badge sur l’icône QR */
.memo-badge {
  position: absolute;
  top: -0.25em;
  right: -0.25em;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.1em;
  height: 1.1em;
  background: #000;
  color: #fff;
  font-weight: 700;
  font-size: 0.55em;
  border-radius: 50%;
  line-height: 1;
  text-align: center;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.5);
  transform: scale(1);
  transition: transform 0.2s ease;
}
.memo-badge:not(:empty) {
  transform: scale(1);
}
.memo-badge:empty {
  display: none;
}

/* Animation rebond / tilt */
@keyframes icon-tilt {
  0% { transform: scale(1) rotate(0deg); }
  20% { transform: scale(1.2) rotate(-8deg); }
  40% { transform: scale(1.2) rotate(8deg); }
  60% { transform: scale(1.1) rotate(-4deg); }
  80% { transform: scale(1.1) rotate(4deg); }
  100% { transform: scale(1) rotate(0deg); }
}
@keyframes icon-jump {
  0% { transform: scale(1); }
  20% { transform: scale(1.2); }
  40% { transform: scale(1.5); }
  60% { transform: scale(1.3); }
  80% { transform: scale(1.1); }
  100% { transform: scale(1); }
}
.tilt {
  animation: icon-tilt 0.5s ease;
}
.jump {
  animation: icon-jump 0.5s ease;
}

.memo-addons {
  color: #070; /* vert pour les ajouts */
  backgrocund: #222;
  white-spahce: nowrap;
  font-size: .9em;
}

.memo-without {
  white-spagce: nowrap;
  color: #c00; /* rouge pour les retraits */
}

.memo-addons i,
.memo-without i {
  margin: 0 0.25em;
}
.memo-pate-cheesy , .attr-pate{
  background: rgba(255,170,9,0.477);
  border: 1px solid rgba(255,170,9,0.977);
  color: #950;
  padding: 0.1em 0.4em;
  border-radius: 0.4em;
  font-weight: 600;
}
.attr-size{
  background: #22d5;
  border: 1px solid #22d;
  color: #000;
  padding: 0.1em 0.4em;
  border-radius: 0.4em;
  font-weight: 600;
}
.usercard.manager-card {
  background: rgba(255,170,9,0.977);;
}

.modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.modal-content {
  background: #fff;
  color: #111;
  padding: 1em 1.5em;
  border-radius: 1em;
  width: 90%;
  max-width: 480px;
  box-shadow: 0 0 15px rgba(0,0,0,0.3);
  position: relative;
  font-size: 0.9em;
}

.modal-close {
  position: absolute;
  top: .2em;
  right: .5em;
  font-size: 1.8em;
  cursor: pointer;
  color: #c00;
}

.memo-detail-lines {
  margin-top: 1em;
  line-height: 1.4em;
}

.order-line {
  margin-bottom: 0.4em;
}

.addons {
  font-size: 0.85em;
  color: #444;
  margin-left: 1.2em;
}

.memo-total {
  margin-top: 1em;
  font-weight: 700;
  text-align: right;
  font-size: 1em;
}
/* ================================
   DÉTAIL MÉMO — AFFICHAGE ÉQUIPE
   ================================ */

.modal-content {
  background: #fefefe;
  color: #111;
  border-radius: 0.8em;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.3);
  padding: 1em 1.5em;
  width: 92%;
  max-width: 480px;
  font-family: "Roboto", sans-serif;
}

.modal-content h3 {
  margin: 0;
  font-size: 1.4em;
  font-weight: 700;
  text-align: center;
  border-bottom: 2px solid #e33;
  padding-bottom: 0.3em;
}

.modal-content small {
  display: block;
  text-align: center;
  color: #555;
  margin: 0.3em 0 0.6em;
}

/* --- Lignes produits --- */
.memo-detail-lines {
  margin-top: 0.6em;
  border-top: 1px dashed #ccc;
}

.order-line {
  padding: 0em;
  border-bottom: 1px dashed #555;
  line-height: 1.2em;
  font-size: 1.3em;
}

.order-line b {
  display: inline-block;
  font-weight: 700;
  color: #111;
}

.order-line .price {
  float: right;
  font-weight: 700;
  color: #000;
}

/* --- Suppléments ajoutés --- */
.addons {
  margin-left: 1em;
  font-size: 0.9em;
  color: #090;
}

.addons i {
  color: #090;
  font-style: normal;
  font-weight: 700;
  margin-right: 0.2em;
}

/* --- Ingrédients retirés --- */
.removed {
  margin-left: 1em;
  font-size: 0.9em;
  color: #c00;
}

.removed i {
  color: #c00;
  font-style: normal;
  font-weight: 700;
  margin-right: 0.2em;
}

/* --- Totaux --- */
.memo-total {
  margin-top: 0.8em;
  text-align: right;
  font-size: 1.2em;
  font-weight: 700;
  border-top: 2px solid #111;
  padding-top: 0.4em;
}

/* --- Animation ouverture --- */
.modal-content {
  animation: ticketFadeIn 0.25s ease-out;
}

@keyframes ticketFadeIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* --- Effet visuel au clic sur carte --- */
.memo-card {
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.2s ease;
}
.memo-card:active {
  transform: scale(0.97);
  box-shadow: 0 0 8px rgba(0,0,0,0.4) inset;
}
.memo-discount {
  background: #8004;
}



.monitor-section {
  
  
  background: #2220;
  padding: .5em;
  overflow: hidden;
}

.monitor-section h3 {
  padding: 0.3em 0em;
  margin: 0em;
  color: #eee;
}
.monitor-section h3.monitor-toggle {
  cursor: pointer;
  user-select: none;
  transition: color 0.2s ease;
}
.monitor-section h3.monitor-toggle:hover {
  color: var(--brand, #ffb347);
}

/* --- Contenu pliable --- */
.monitor-section .section-body {
  max-height: 1000px;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.monitor-section.collapsed .section-body {
  max-height: 0;
  opacity: 0;
  pointer-events: none;
}

/* Petit indicateur visuel (triangle ou chevron) */
.monitor-toggle::before {
  content: "▾";
  display: inline-block;
  margin-right: .4em;
  transition: transform 0.25s ease;
}
.monitor-section.collapsed .monitor-toggle::before {
  transform: rotate(-90deg);
}