*{
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
}
.primary{

    background: #fff;
    /* Le parent est blanc */
}

.roboto-title {
  font-family: "Roboto", sans-serif;
  font-optical-sizing: auto;
  font-weight: 100;
  font-style: normal;
  font-variation-settings:
    "wdth" 100;
}

.qwigley-regular {
  font-family: "Qwigley", cursive;
  font-weight: 400;
  font-style: normal;
}

.special-offer {
    /* background: linear-gradient(90deg, #003A61 0%, #ffffff 100%); */
      background-image: url("../images/smoke-NN2merp.jpg");
    color: #fff;
     filter: brightness(1.3) opacity(0.8); /* Atténue l'image */
    /* On affiche une portion du dégradé selon l'index */
    background-size: cover;
    background-repeat: no-repeat;
    /* Par défaut, première portion */
    background-position-x: 0%;
    transition: background-position-x 0.5s;
    padding: 10px 20px;
    border-radius: 25px;
}




.gradient-child {
    /* Dégradé horizontal orange -> rose */
    background: linear-gradient(90deg, #FE9D3E 0%, #EE244B 100%);
   
  
    color: #fff;
    /* On affiche une portion du dégradé selon l'index */
    background-size: 700% 100%;
    background-repeat: no-repeat;
    /* Par défaut, première portion */
    background-position-x: 0%;
    transition: background-position-x 0.5s;
}

/* Exemple pour 7 enfants : chaque enfant reçoit une portion du dégradé */
.gradient-child:nth-child(1) { background-position-x: 0%; }
.gradient-child:nth-child(2) { background-position-x: 16.6%; }
.gradient-child:nth-child(3) { background-position-x: 33.2%; }
.gradient-child:nth-child(4) { background-position-x: 49.8%; }
.gradient-child:nth-child(5) { background-position-x: 66.4%; }
.gradient-child:nth-child(6) { background-position-x: 83%; }
.gradient-child:nth-child(7) { background-position-x: 100%; }


.gradient-title-child {
    /* Dégradé horizontal orange -> rose */
    background: linear-gradient(90deg, #FE9D3E 0%, #EE244B 100%);
    color: #fff;
    /* On affiche une portion du dégradé selon l'index */
    background-size: 700% 100%;
    background-repeat: no-repeat;
    /* Par défaut, première portion */
    background-position-x: 0%;
    transition: background-position-x 0.5s;
}

/* Exemple pour 7 enfants : chaque enfant reçoit une portion du dégradé */
.gradient-title-child:nth-child(1) { background-position-x: 0%; }
.gradient-title-child:nth-child(2) { background-position-x: 16.6%; }
.gradient-title-child:nth-child(3) { background-position-x: 33.2%; }
.gradient-title-child:nth-child(4) { background-position-x: 49.8%; }
.gradient-title-child:nth-child(5) { background-position-x: 66.4%; }
.gradient-title-child:nth-child(6) { background-position-x: 83%; }
.gradient-title-child:nth-child(7) { background-position-x: 100%; }

.parent {
display: grid;
grid-template-columns: repeat(11, 1fr);
grid-template-rows: repeat(7, 1fr);
grid-column-gap: 4px;
grid-row-gap: 4px;
}

.div1{
    background-color: pink;
}

.div1 { grid-area: 1 / 1 / 2 / 12; }
.div2 { grid-area: 7 / 1 / 8 / 12; }
.div3 { grid-area: 2 / 1 / 7 / 8; }
.div4 { grid-area: 2 / 8 / 7 / 12; }

.toast {
      animation: slideIn 0.5s forwards, fadeOut 0.5s forwards 3s;
    }
    @keyframes slideIn {
      from { transform: translateX(100%); opacity: 0; }
      to { transform: translateX(0); opacity: 1; }
    }
    @keyframes fadeOut {
      to { opacity: 0; }
    }


.card{
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column  ;
    justify-content: space-between;
}

.card .imgBx{
    position: relative;
    width: 100%;
    height: 100%;
    /* height: 240px; */
    border-radius: 15px;
    background-image: url("../images/yoomi-face-nMwWRXv.jpg");
    background-size: cover;
}

.card .imgBx::before{

  content: '';
  position: absolute;
  bottom: -1px;
  left: 55%;
  width: 20px;
  height: 20px;
  background: transparent;
  border-radius: 50%;
  box-shadow: -4px 5px 0 #d9dae1;
}

/* .card .imgBx::after{

  content: '';
  position: absolute;
  bottom: 70px;
  left: 0;
  width: 20px;
  height: 20px;
  background: transparent;
  border-radius: 50%;
  box-shadow: -10px 10px 0 white;
} */

.card .content{
  position: relative;
  width: 100%;
  /* height: 150px; */
  height: 0px;
  background: transparent;
  border-radius: 15px;
  border-top-left-radius: 0%;
}

.card .content .price {
  position: absolute;
  /* top: -80px ; */
  top: -18rem ;
  height: 18.5rem;
  width: 55%;
  /* width: 50%; */
  /* background: linear-gradient(90deg, #ebecf4 0%, #f7e6e9 100%); */
  background: transparent;
  backdrop-filter: blur(10px);
  /* height: 80px; */
  border-top: 10px solid #f1e8ee;
  border-right: 10px solid #f1e9ee;
  border-top-right-radius: 25px;
  border-bottom-left-radius: 15px;

}

.card .content .price::before {
  content: '';
  position: absolute;
  width: 25px;
  height: 25px;
  background: transparent;
  border-radius: 50%;
  box-shadow: -10px -10px 0 #f5f5fc;
}

/* .card .content .price::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: -25px;
  width: 25px;
  height: 25px;
  background: transparent;
  border-radius: 50%;
  box-shadow: -20px 10px 0 white;
} */

/* Styles pour les modales POS */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    max-width: 90vw;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 1000;
}

/* Animation pour les messages flash */
@keyframes slideInFromTop {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.flash-message {
    animation: slideInFromTop 0.3s ease-out;
}

/* Améliorations pour le formulaire de quantité */
.quantity-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Indicateur de stock */
.stock-low {
    color: #ef4444;
    font-weight: 600;
}

.stock-warning {
    color: #f59e0b;
    font-weight: 600;
}

.stock-ok {
    color: #10b981;
    font-weight: 600;
}

/* Amélioration des turbo-frame */
turbo-frame {
    display: block;
}

turbo-frame[busy] {
    opacity: 0.7;
    pointer-events: none;
}

/* Styles pour l'édition de quantité */
.quantity-display {
    transition: all 0.2s ease;
    border-radius: 4px;
}

.quantity-display:hover {
    background-color: #dbeafe !important;
    transform: scale(1.05);
}

/* Amélioration visuelle des lignes de commande */
.order-line-row:hover {
    background-color: #f8fafc;
}

/* Le bouton actions est toujours visible, mais plus discret */
.order-line-actions button {
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.order-line-row:hover .order-line-actions button {
    opacity: 1;
}

/* Effet clic boutons POS */
.button.pos-pressed, .pos-pressed.button {
  transform: scale(0.94);
  filter: brightness(0.9);
  transition: transform 60ms ease, filter 120ms ease;
}
.button { transition: transform 80ms ease, filter 120ms ease; }

/* Surface de fond du tableau de bord (non blanche) */
.dashboard-surface {
    position: relative;
    border-radius: 12px;
    padding: 16px; /* fallback si Tailwind n'est pas dispo */
    /* Dégradés doux superposés */
    background:
        radial-gradient(1200px 600px at 0% 0%, rgba(99, 102, 241, 0.08), transparent 60%),
        radial-gradient(1200px 600px at 100% 100%, rgba(14, 165, 233, 0.08), transparent 60%),
        linear-gradient(180deg, #eef2ff 0%, #f1f5f9 100%);
}

.dashboard-surface::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    /* Motif discret en points pour texturer légèrement */
    background-image: radial-gradient(rgba(30, 41, 59, 0.06) 1px, transparent 1px);
    background-size: 14px 14px;
    pointer-events: none;
}