/*==============================================================================
  ALERTS & MODALS
==============================================================================*/
.alert {
    position: fixed;
    top: 15%;
    right: 5%;
    background: #e6e9ef;
    border-radius:16px;
    color: #7c7f93;
    max-width: 99vw;
    text-align: center;
    font-size: 16px;
    padding: 20px 24px;
    width: 500px;
    box-shadow: 0 15px 40px rgba(248, 196, 216, 0.5);
    font-weight: 500;
}

.alert-etape {
    background: #e6e9ef;
    border-radius:16px;
    color: #7c7f93;
    width: 320px;
    text-align: center;
    font-size: 16px;
    padding: 20px;
    z-index: 1001;
    box-shadow: 0 12px 35px rgba(248, 196, 216, 0.6);
    font-weight: 500;
}

#paypal-response {
    visibility: hidden;
    position: absolute;
    top: 0;
    left: 50px;
    right: 50px;
    height: auto;
    background: #e6e9ef;
    color: #ddd;
    color: #7c7f93;
    opacity: 0.95;
    padding: 20px;
    z-index: 1002;
    border: 2px solid #ccc;
    border-radius:16px;
    box-shadow: 0 15px 40px rgba(136, 136, 136, 0.4);
}

#paypal-display {
    position: fixed;
    top: 0;
    left: 0;
    width: 50px;
    height: 50px;
    border: none;
    background: transparent;
    z-index: 1002;
}

#ios-prompt {
    visibility: hidden;
    position: fixed;
    left: 12px;
    bottom: 12px;
    width: 320px;
    background: #e6e9ef;
    border-radius:16px;
    color: #7c7f93;
    z-index: 1001;
    padding: 20px;
    box-shadow: 0 12px 35px rgba(0,0,0,0.15);
}

#ios1 {
    position: absolute;
    top: 8px;
}

#ios2 {
    position: absolute;
    top: 32px;
}

#info-webapp {
    font-family: 'JetBrainsMono Nerd Font';
    position: fixed;
    visibility: hidden;
    background: #e6e9ef;
    font-weight: bold;
    color: #7c7f93;
    padding: 20px 24px;
    border-radius:16px;
    top: 130px;
    left: 70px;
    z-index: 1002;
    box-shadow: 0 12px 35px rgba(0,0,0,0.15);
}


/*==============================================================================
  BUTTONS - HARMONIZED SMOOTH ROUNDED
==============================================================================*/
/* Primary Buttons (220px width, 34px height) */
input[type=submit],
input[type=submit].A,
.choose-form__button,
button.A {
    width: 220px;
    background: #e6e9ef;
    color: #7f849c;
    border: none;
    border-radius:20px;
    font-weight: bold;
    margin: 12px 12px 0 0;
    display: inline-block;
    box-shadow: 0 6px 15px rgba(248, 196, 216, 0.4);
    transition: all 0.3s ease;
    height: 36px;
}

input[type=submit]:hover,
input[type=submit].A:hover,
.choose-form__button:hover,
button.A:hover {
    background: #e6e9ef;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px #89dceb;
}

/* Secondary Buttons (150px width, 40px height) */
input[type=submit].restaurant,
button[type=button].restaurant,
input[type=submit].choose-form,
button[type=button].choose-form,
button.B {
    background: #e6e9ef;
    color: #7f849c;
    border: none;
    border-radius:20px;
    display: inline-block;
    box-shadow: 0 4px 12px rgba(248, 196, 216, 0.3);
    transition: all 0.3s ease;
    height: 36px;
}
/*choose form mode d'emploi*/
/*.choose-form {*/
    /*display: flex;*/
    /*align-items: center;*/
    /*gap: 0.75rem;*/
/*}*/

.choose-form__customer-info {
    display: none;
    flex-direction: column;
}

/*.choose-form__label {*/
    /*font-size: 0.875rem;*/
/*}*/

/*.choose-form__input {*/
    /*padding: 0.5rem;*/
    /*border: 1px solid #ccc;*/
/*}*/

.choose-form__input--quantity {
    width: 100%;
}

/*.choose-form__button {*/
    /*padding: 0.6rem 1rem;*/
    /*background: #01696f;*/
    /*color: #fff;*/
    /*border: 0;*/
    /*cursor: pointer;*/
/*}*/

/*.choose-form__button.is-loading {*/
    /*opacity: 0.6;*/
    /*pointer-events: none;*/
/*}*/

button[type=button].restaurant,
input[type=submit].restaurant 
{
    background: #89b4fa;
  color: #eff1f5;
  font-weight: bold;
  font-size: 16px;
  border-radius: 12px;
  width: 100%;
  padding: 8px;
}

button[type=button].restaurant:hover,
input[type=submit].restaurant:hover 
{
    transform: translateY(-1px);
    box-shadow: 0 6px 18px #89dceb;
}

input[type=submit].choose-form,
button[type=button].choose-form
{
    height: 36px;
    width: 100%;
    color: #7f849c;
    background: #e6e9ef;
    /*border: 4px solid lightPink;*/
}

input[type=submit].choose-form:hover, 
button[type=button].choose-form:hover 
{
    background: #e6e9ef;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px #89dceb;
}

button.B {
    height: 36px;
    width: 100%;
    font-style: italic;
    border-radius:20px;
}

/* Cart Counter Button (42px width/height) */
input[type=submit].center,
button.center {
    position: fixed;
    top: 23px;
    right: 22px;
    width: 44px;
    height: 44px;
    color: #4c4f69;
    font-size: 15px;
    background: lightPink;
    border: 6px solid lightPink;
    border-radius: 50%;
    padding-left: 8px;
    font-weight: bold;
    z-index: 1001;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

input[type=submit].center:hover,
button.center:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
    background: #e6e9ef;
}

/* Delete/Modify Buttons (25px width/height) */
input[type=submit].pann-modif {
    width: 32px;
    height: 36px;
    color: #7f849c;
    background: #e6e9ef;
    border: none;
    border-radius: 50%;
    padding-left: 9px;
    box-shadow: 0 4px 12px rgba(240, 147, 184, 0.4);
    transition: all 0.3s ease;
}

input[type=submit].pann-modif:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 18px rgba(240, 147, 184, 0.6);
    background: #e6e9ef;
}

/* Utility Buttons */
.modifier {
    float: right;
    margin-top: -35px;
    color: #585b70;
    background: #89dceb;
    border: 2px solid #e6e9ef;
    padding: 8px 12px;
    border-radius:20px;
    transition: all 0.3s ease;
    height: 36px;
}

.modifier:hover {
    background: #e6e9ef;
    transform: translateY(-1px);
}

.retour {
    color: #585b70;
    width: 110px;
    background: #e6e9ef;
    border: 2px solid #6c7086;
    padding: 8px 12px;
    border-radius:20px;
    transition: all 0.3s ease;
    height: 36px;
}

.retour:hover {
    background: #e6e9ef;
    transform: translateY(-1px);
}

#B {
    width: 180px;
    height: 36px;
    background: #e6e9ef;
    color: #7f849c;
    border: none;
    border-radius:20px;
    padding-left: 20px;
    text-align: left;
    margin-bottom: 12px;
    box-shadow: 0 4px 12px rgba(248, 196, 216, 0.3);
    transition: all 0.3s ease;
}

#B:hover {
    background: #e6e9ef;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(127, 179, 213, 0.4);
}

.submit-ticket {
    background: #e6e9ef;
    color: #7f849c;
    border-radius:20px;
    width: 100%;
    height: 36px;
    border: none;
    box-shadow: 0 4px 12px rgba(18, 145, 213, 0.4);
    transition: all 0.3s ease;
}

.submit-ticket:hover {
    background: #e6e9ef;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(127, 179, 213, 0.5);
}

#erase-ticket {
    margin-top: 20px;
    height: 36px;
    margin-left: 8px;
    background: #e6e9ef;
    border-radius:20px;
    color: #7f849c;
    box-shadow: 0 4px 12px rgba(18, 145, 213, 0.4);
    transition: all 0.3s ease;
}

#erase-ticket:hover {
    background: #e6e9ef;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(127, 179, 213, 0.5);
}

.add-button {
    font-family: 'JetBrainsMono Nerd Font';
    position: fixed;
    height: 36px;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: bold;
    border: none;
    border-radius:20px;
    background: #e6e9ef;
    color: #7f849c;
    top: 100px;
    left: 80px;
    z-index: 1001;
    box-shadow: 0 4px 12px rgba(84, 153, 199, 0.4);
    transition: all 0.3s ease;
}

.add-button:hover {
    top: 98px;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(84, 153, 199, 0.6);
    background: #e6e9ef;
}


/*==============================================================================
  CART & INVOICE
==============================================================================*/
.facture {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translate(-50%);
    background: #bac2de;
    color: #6c7086;
    border-radius:16px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    text-align: center;
    width: 500px;
    z-index: 1003;
    padding: 25px;
}

.facture-post {
    display: inline-block;
    background: linear-gradient(145deg, #f5f5f5, #f0f0f0);
    color: #7f849c;
    margin: 20px 0 20px 500px;
    padding: 25px;
    box-shadow: 0 12px 35px rgba(0,0,0,0.12);
    border-radius:16px;
    width: 285px;
    font-family: "JetBrainsMono Nerd Font";
    font-size: 16px;
}

.facture-edit {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translate(-50%);
    background: linear-gradient(145deg, #f5f5f5, #f0f0f0);
    color: #585b70;
    padding: 25px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    border-radius:16px;
    width: 285px;
    font-family: "JetBrainsMono Nerd Font";
    font-size: 16px;
    z-index: 1003;
}

.logo-ticket {
    margin: -25px 0 25px 0;
}

.print {
    display: inline-block;
    text-align: left;
    padding: 12px;
    margin: 6px;
    border-radius: 15px;
    background: linear-gradient(145deg, #7f849c, #f8f8f8);
}

.selec {
    background: linear-gradient(145deg, #7f849c, #f8f8f8);
    text-align: left;
    font-size: 15px;
    padding: 2em;
    border-radius:16px;
    width: 100%;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    margin: 12px 0;
}

.right {
    background: linear-gradient(145deg, #cdcdcd, #c0c0c0);
    color: #7f849c;
    display: block;
    padding: 1.2em;
    margin: 0;
    border-radius:16px;
    text-align: right;
    width: 100%;
    box-shadow: 0 4px 15px rgba(205, 205, 205, 0.4);
}

#result {
    display: none;
    margin: 12px;
    min-width: 300px;
    padding: 20px;
    background: linear-gradient(145deg, #7f849c, #4d4d4d);
    color: #7f849c;
    border-radius:16px;
    box-shadow: 0 12px 35px rgba(86, 86, 86, 0.4);
}

.forget-span {
    padding: 12px 16px;
    margin: 8px;
    background: linear-gradient(145deg, #ccc, #c0c0c0);
    border-radius:16px;
    border: 2px solid #d0d0d0;
    transition: all 0.3s ease;
    cursor: pointer;
}

.forget-span:hover {
    background: linear-gradient(145deg, #bbb, #a8a8a8);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(187, 187, 187, 0.4);
}

.infocgv {
    font-size: 10px;
}

#check-cgv {
    margin-bottom: 25px;
}


/*==============================================================================
  COOKIES & NOTIFICATIONS
==============================================================================*/
#cookie-law {
    display: flex;
    align-items: center;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 2%;
    background: linear-gradient(145deg, #fbfcfc, #f5f7f7);
    z-index: 999;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
    box-shadow: 0 -4px 15px rgba(0,0,0,0.1);
}

#cookie-law > div:first-child > a {
    color: inherit;
    font-weight: 500;
}

#cookie-law > div:last-child > a {
    padding: 12px 24px;
    border-radius:16px;
    color: #585b70;
    text-decoration: none;
    background: linear-gradient(145deg, #7f849c, #f8f8f8);
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
}

#cookie-law > div:last-child > a:hover {
    background: linear-gradient(145deg, #f8f8f8, #f0f0f0);
    transform: translateY(-1px);
}

#accept {
    display: flex;
    padding: 12px 20px;
    background: linear-gradient(145deg, #6c7086, #7f849c);
    border-radius:16px;
    color: white;
    font-weight: bold;
    float: right;
    box-shadow: 0 4px 12px rgba(248, 196, 216, 0.4);
    transition: all 0.3s ease;
}

#accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(248, 196, 216, 0.6);
}

.customer-info {
    position: fixed;
    left: -9999px;
}


@font-face {
  font-family: 'JetBrainsMono Nerd Font';
  src: url('/static/fonts/JetBrainsMonoNerdFont-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;  /* Prevents layout shift */
}
.icon {
  font-family: 'JetBrainsMono Nerd Font', monospace;
  font-size: 24px;
}
/*==============================================================================
  FORMS & INPUTS
==============================================================================*/
input[type=text] {
    width: 150px;
  background:#e6e9ef;
    color: #7f849c;
    border: 2px solid #e0e0e0;
    border-radius:16px;
    height: 36px;
    margin: 12px 12px 0 0;
    padding-left: 20px;
    transition: all 0.3s ease;
}

input[type=text]:focus {
    border-color: #6c7086;
    box-shadow: 0 0 0 3px rgba(248, 196, 216, 0.2);
    outline: none;
}

input[type=email] {
    margin: 1em;
    padding: 1.2em;
    border: 2px solid rgba(255,255,255,0.5);
    border-radius:16px;
    width: 185px;
  background:#e6e9ef;
    color: #7f849c;
    transition: all 0.3s ease;
}

#email-ask {
    background: #e6e9ef;
    padding: 1.4em;
    border-radius:16px;
    color: #7f849c;
    box-shadow: 0 4px 12px rgba(248, 196, 216, 0.4);
    transition: all 0.3s ease;
}

#email-ask:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(127, 179, 213, 0.5);
}

input[type=number] {
    width: 220px;
    height: 36px; 
  background:#e6e9ef;
    color: #7f849c;
    border: 2px solid rgba(255,255,255,0.6);
    border-radius:16px;
    padding: 12px 16px;
    margin-top: 12px;
    text-align: center;
    font-weight: bold;
    transition: all 0.3s ease;
}

input[type=number]:focus {
    box-shadow: 0 0 0 3px rgba(248, 196, 216, 0.3);
    outline: none;
}

input[type=number].choose {
    color: #7f849c;
  background:#e6e9ef;
    border: 2px solid #e0e0e0;
    border-radius:16px;
    width: 100px;
    margin: 0 0 0 12px;
    height: 38px;
    text-align: center;
    padding: 8px 12px;
    transition: all 0.3s ease;
}

input[type=number].choose:hover,
input[type=number].choose:focus {
  background:#e6e9ef;
    border-color: #6c7086;
    box-shadow: 0 0 0 3px rgba(248, 196, 216, 0.2);
}

input[type=time],
input[type=date] {
    padding: 12px 16px;
    -webkit-appearance: textfield;
    -moz-appearance: textfield;
    border: 2px solid #e0e0e0;
    border-radius:16px;
    resize: vertical;
    width: 220px;
    margin: 20px 0;
  color: #7f849c;
  background:#e6e9ef;
    transition: all 0.3s ease;
}

input[type=date] {
    display: block;
    min-height: 1.2em;
}

input[type=time]:focus,
input[type=date]:focus {
    border-color: #6c7086;
    box-shadow: 0 0 0 3px rgba(248, 196, 216, 0.2);
}

select {
    background: #e6e9ef;
    border: 2px solid #e6e9ef;
    margin: 10px 10px 10px 16px;
    border-radius:16px;
    height: 36px;
    width: 225px;
    color: #7f849c;
    padding-left: 20px;
    transition: all 0.3s ease;
}

select:focus {
    border-color: #e6e9ef;
    box-shadow: 0 0 0 3px rgba(248, 196, 216, 0.2);
}

select option {
    color: #7f849c;
}

::placeholder {
    color: #585b70;
    opacity: 1;
}


/*==============================================================================
  HIDDEN ELEMENTS
==============================================================================*/

/* Checkout / order flow steps */
#etape-deux,
#etape-trois,
#dropin-container,
#horaire-content,
#jour-content,
#quand-jour,
#quand-heure,
#quand-heurebis,
#anemheure,
#anemheure2,
#anemjour,
#anlivraison,
#phone-livraison,
#phone-label,
#time-heure,
#time2-heure,
#anheure,
#choose-heure,
#choose-heure2 {
    display: none;
}

/* Alerts, invoice and modal wrappers */
#alert,
#alert-etape-un,
#alert-etape-deux,
#info-commande,
#facture-display,
#facture-contain {
    display: none;
}

/* Overlay / floating panels */
#map-contain,
#map,
#accueil-contain,
#accueil-span {
    display: none;
}

/* Spacing kept separately from visibility state */
#phone-livraison {
    margin: 25px 0;
}
/*==============================================================================
  HOURS & STATUS
==============================================================================*/
#asapheure,
#asapjour {
    text-align: left;
}

.ouvert-info {
    background: #a6e3a1;
    border-radius:6px;
    padding: 10px;
    width: 100%;
}

.closed-info {
    background: #f2cdcd;
    border-radius:6px;
    padding: 10px;
    width: 100%;
}

.overlay {
    background: #7c7f93;
    color: #eff1f5;
    border-radius:6px;
    padding: 10px;
    width: 100%;
}

.ouverture {
    text-align: center;
    background: #ccd0da;
    border-radius:8px;
    width: 100%;
    padding: 8px;
    margin: 8px;
}
.ouverture-inside {
    background: #e6e9ef;
    border-radius:8px;
    padding: 8px;
    margin: 8px;
}

.jour-horaire {
    text-align: center;
    font-weight: bold;
    color: #7f849c;
    background: #e6e9ef;
    border-radius:16px;
    padding: 16px 20px;
    margin: 12px 0;
    box-shadow: 0 6px 20px rgba(136, 136, 136, 0.3);
    transition: all 0.3s ease;
}

.jour-horaire:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(170, 170, 170, 0.4);
}

img.logo {
    position: relative;
    float: right;
    overflow: hidden;
    top: 0;
    left: 5px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

img.logo:hover {
    background: linear-gradient(145deg, #d0e5ff, #6a7a9a);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(170, 170, 170, 0.4);

}

#prelude {
    display: none;
}


/*==============================================================================
  LAYOUT & STRUCTURE
==============================================================================*/
header {
    position: fixed;
    top: -20px;
    left:0;
    background-size: cover;
    min-width: 100%;
    background: #bac2de; 
    height: 110px;
    color: #7f849c;
    font-family: "JetBrainsMono Nerd Font";
    z-index: 1000;
    border-bottom-left-radius: 2px;
    border-bottom-right-radius: 2px;
}

#title-main {
    font-family: 'JetBrainsMono Nerd Font';
    font-weight: bold;
    color: #7f849c;
    position: fixed;
    top: 0;
    left: 0;
}

#title {
    position: fixed;
    top: 35px;
    left: 100px;
    font-family: 'JetBrainsMono Nerd Font';
    font-size: 17px;
}

#accueil {
    position: fixed;
    top: 0;
    left: -100px;
}

article {
    width: 98vw;
    overflow: hidden;
    margin: 100px 0 0 0;
    display: inline-block;
}

.main {
    display: flex;
    /*float: right;*/
    background: #ccd0da;
    padding: 4px;
    margin: 12px 0 0 300px;
    width: 120%;
    border-radius: 14px;

}

.center {
    text-align: center;
}

.row {
    display: inline-block;
}

.footer a {
    color: #7f849c;
    padding-right: 10px;
    text-decoration: none;
    font-weight: bold;
}


/*==============================================================================
  LOADERS & SPINNERS
==============================================================================*/

/* --- Preloader shell (not used yet; keep if you ever want it) */
.preloader {
    display: none;
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1003;
    background: linear-gradient(145deg, #6c7086, #7f849c);
    border-radius:16px;
}

/* --- Main loader layer over the page */
.loader {
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1002;
    background: linear-gradient(145deg, #6c7086, #7f849c);
    opacity: 0.7;
    /*border-radius:16px;*/
}

/* --- Centered spinner wheel */
.spinWheel {
    position: fixed;
    top: 50%;
    left: 50%;
    margin-left: -45px; /* 90px / 2 */
    margin-top: -45px;  /* 90px / 2 */
    border: 14px solid #f3f3f3;
    border-radius: 50%;
    border-top: 14px solid #6c7086;
    width: 90px;
    height: 90px;
    -webkit-animation: spin 1s linear infinite;
            animation: spin 1s linear infinite;
    box-shadow: 0 0 30px rgba(248, 196, 216, 0.6);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@-webkit-keyframes spin {
    0% { -webkit-transform: rotate(0deg); }
    100% { -webkit-transform: rotate(360deg); }
}

/* --- Nice card box example (you can keep or remove) */
.parent {
    position: relative;
    margin: 1.5rem;
    padding: 2.5rem;
    text-align: center;
    z-index: 1004;
    border-radius:16px;
}

.child {
    color: #e5e8e8;
    border: 0.2rem solid #e0e0e0;
    border-radius:16px;
    font-family: "JetBrainsMono Nerd Font";
    font-weight: 900;
    display: inline-block;
    padding: 1.5rem;
    vertical-align: middle;
    font-size: 4rem;
    background: linear-gradient(145deg, #f8f8f8, #f0f0f0);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.child:hover {
    font-size: 4.2rem;
    border: 0.2rem solid #6c7086;
    color: #e5e8e8;
    transform: scale(1.02);
    box-shadow: 0 12px 35px rgba(248, 196, 216, 0.3);
}

/* --- Smooth show/hide loader & body --- */
body {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

body:not(.loading) {
    opacity: 1;
}

body.loading {
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease-out;
}

#loader {
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s linear 0.2s, opacity 0.2s ease;
}

#loader:not(.hidden) {
    visibility: visible;
    opacity: 1;
}


/*==============================================================================
  MAP & LOCATION
==============================================================================*/

#map {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 350px;
    height: 80%;
    overflow: hidden;
    transform: translate(-50%, -50%);
    border-radius: 16px;
    z-index: 1003;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

#map-contain,
#map,
#accueil-span {
    display: none;
}

#map-contain.active,
#map.active,
#accueil-span.active {
    display: block;
}

/* Full-screen dark overlay */
.map-contain {
    position: fixed;
    inset: 0;
    padding: 25px;
    background: #2e3440;
    z-index: 1002;
}
/* Mobile search / accueil panel */
#accueil-span {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 25px;
    border: 2px solid #e0e0e0;
    border-radius: 16px;
    background: #ccd0da;
    color: #7c7f93;
    z-index: 1003;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}

/* Buttons */
#map-btn,
#accueil-inp {
    cursor: pointer;
    border: none;
    padding: 12px;
    background: transparent;
    display: none;
    border-radius: 16px;
    transition: all 0.3s ease;
}

#map-btn:hover,
#accueil-inp:hover,
.cache-ticket:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

#map-btn:active,
#accueil-inp:active {
    transform: scale(0.98);
}

/* Inputs inside accueil panel */
#select-bis,
#restos-bis {
    width: 200px;
    margin: 8px;
    border-radius: 16px;
    background: #e6e9ef;
    color: #7c7f93;
}

#sub-bis {
    width: 100px;
    margin: 8px;
    border-radius: 16px;
    background: #e6e9ef;
    color: #7c7f93;
}

/* Generic floating ticket-style button */
.cache-ticket {
    position: absolute;
    top: 36px;
    right: 82px;
    float: right;
    padding: 8px;
    border: none;
    border-radius: 50%;
    background: transparent;
    transition: all 0.3s ease;
}

/* Leaflet popup */
.leaflet-popup-content {
    margin: 12px;
    padding: 12px;
    border-radius: 15px;
    background: #e6e9ef;
    color: #7c7f93;
    font-size: 15px;
    font-weight: bold;
}
/*==============================================================================
  MEDIA QUERIES
==============================================================================*/
/* ------------------------------------------------------------------
   MAP / OVERLAY STATE
------------------------------------------------------------------ */

#map-contain,
#map,
#accueil-span {
    display: none;
}

#map-contain.active,
#map.active,
#accueil-span.active {
    display: block;
}

/* ------------------------------------------------------------------
   MAP OVERLAY
------------------------------------------------------------------ */

#map-contain {
    position: fixed;
    inset: 0;
    padding: 25px;
    background: #2e3440;
    z-index: 1002;
}

/* ------------------------------------------------------------------
   MAP PANEL
------------------------------------------------------------------ */

#map {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 350px;
    height: 80%;
    overflow: hidden;
    transform: translate(-50%, -50%);
    border-radius: 16px;
    z-index: 1003;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

/* ------------------------------------------------------------------
   ACCUEIL PANEL
------------------------------------------------------------------ */

#accueil-span {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 25px;
    border-radius: 16px;
    border: 2px solid #e0e0e0;
    background: #ccd0da;
    color: #7c7f93;
    z-index: 1003;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}

/* ------------------------------------------------------------------
   BUTTONS
------------------------------------------------------------------ */

#map-btn,
#accueil-inp {
    cursor: pointer;
    border: none;
    background: transparent;
    border-radius: 16px;
    transition: all 0.3s ease;
    display: inline-block;
}

#accueil-inp:hover,
#map-btn:hover,
.cache-ticket:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

.btn-map {
    position: fixed;
    display: inline-block;
    top: 10px;
    right: 183px;
}

.btn-ticket {
    position: fixed;
    display: inline-block;
    top: 16px;
    right: 79px;
}

.btn-search {
    position: fixed;
    display: inline-block;
    top: 7px;
    right: 119px;
}


/* ------------------------------------------------------------------
   RESPONSIVE
------------------------------------------------------------------ */

@media screen and (max-width: 1275px) {
    
    #accueil {
        display: none;
    }

    #paypal-response {
        width: 100%;
        margin: auto;
        left: 0 !important;
        right: 0 !important;
    }

    input,
    select {
        -webkit-appearance: none;
    }

    input[type=checkbox] {
        -webkit-appearance: checkbox;
    }
}

@media screen and (max-width: 670px) {

    .btn-map {
        top: -9px;
    }

    .btn-ticket {
        top: -3px;
        right: 71px;
    }

    .btn-search {
        top: -12px;
        right: 116px;
    }

    header {
        height: 82px;
        border-bottom-left-radius: 2px;
        border-bottom-right-radius: 2px;
        border-bottom: 8px solid #e6e9ef;
    }

    button.center {
        top: 6px;
        right: 12px;
    }

    .add-button {
        position: fixed;
        left: 12px;
        top: 40px;
        padding: 10px 16px;
    }

    article {
        position: relative;
        width: 100%;
        overflow: hidden;
        margin: 45px 0 0 0;
        padding: 0;
    }

    input[type=submit].center {
        margin: -11px -3px 0 0;
        padding-left: 5px;
        top: 16px;
        right: 16px;
        width: 44px;
        height: 44px;
    }

    #title-main {
        margin: 0;
        font-size: 28px;
    }

    #logo-simple {
        width: 55px;
        height: 55px;
        border-radius: 50%;
    }

    #title {
        display: none;
    }

    .left-align {
        margin: 0;
    }

    .facture {
        overflow: auto;
        position: relative;
        z-index: 1003;
        margin: 12px;
        border-radius: 16px;
    }

    .facture-post {
        overflow: auto;
        width: 285px;
        margin: 12px;
        border-radius: 16px;
    }
}

@media screen and (max-width: 500px) {

    #map {
        width: 300px;
        box-shadow: 0 20px 50px rgba(0,0,0,0.4);
    }

    #accueil-span {
        max-width: 300px;
    }

    .facture-edit {
        width: calc(100vw - 48px);
        left: 24px !important;
        right: 24px !important;
        transform: none;
    }

    .facture {
        overflow: auto;
        width: calc(100vw - 24px);
        margin: 12px;
        border-radius: 16px;
    }

    .text {
        width: calc(100% - 24px);
        margin-left: auto;
        margin-right: auto;
    }

        input[type=submit].center {
        margin: -13px 8px 0 0;
        padding-left: 12px;
        top: 20px;
        right: 14px;
        width: 44px;
        height: 44px;
    }

    #title {
        margin: 28px 0 0 12px;
        font-size: 11px;
    }

    input,
    select {
        -webkit-appearance: none;
    }

    input[type=checkbox] {
        -webkit-appearance: checkbox;
    }
}

.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom {
    -ms-touch-action: none;
    touch-action: none;
}
/*==============================================================================
  RESET & PRINCIPAL
==============================================================================*/
* {
    box-sizing: border-box;
}

body, html {
    overflow-x: hidden;
    width: 100%;
    background: #dce0e8;
    color: #7c7f93;
    font-family: "JetBrainsMono Nerd Font";
    bottom: 24px;
    font-size: 13px;
}

div {
    box-sizing: border-box;
}


/*==============================================================================
  STEPS & FORMS
==============================================================================*/
.etape-container {
    width: 100%;
    border: 2px solid #e0e0e0;
    border-radius:16px;
    background: #e6e9ef;
    color: #7f849c;
    margin: 30px 0;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    overflow: hidden;
}

.etape {
    margin: 2px 0;
    padding: 18px 20px;
    /*border: 2px solid #e0e0e0;*/
    border-radius:16px;
    background: #e6e9ef;
    color: #7f849c;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.etape:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.heure-sel {
    background: #e6e9ef;
    color: #7f849c;
    padding: 10px 16px;
    margin: 12px;
    border-radius:16px;
    box-shadow: 0 4px 12px rgba(240, 147, 184, 0.4);
    transition: all 0.3s ease;
    font-weight: bold;
}

.heure-sel:hover {
    background: linear-gradient(145deg, #FC747F, #f66474);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(252, 116, 127, 0.5);
}

#restos {
    width: 200px;
    background: #e6e9ef;
    color: #7f849c;
    border: none;
}

#threesubmit {
    margin: 12px 0;
}


/*==============================================================================
  PLATES & MENU ITEMS
==============================================================================*/

/* parent of all cards */
.left-align {
  display: flex;
  flex-wrap: wrap;
  justify-content: right;
  align-items: stretch;
  gap: 20px;
  width: min(100%, 1200px);
  margin-inline: auto;
  padding: 0 12px;
}

/* each card */
.text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  width: min(310px, 100%);
  padding: 18px;
  color: #6c7086;
  background: #bac2de;
  border: 1px solid #e8e8e8;
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
  font-family: "JetBrainsMono Nerd Font", "JetBrainsMono Nerd Font";
  font-size: 14px;
  line-height: 1.5;
  text-align: left;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.text:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.16);
}

/* image block inside .text */
.container {
  width: 100%;
  aspect-ratio: 299 / 180;
  border-radius: 20px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
  flex-shrink: 0;
}

.text p {
  margin: 0;
}

.titre-plat {
 /*border: 2px solid rgba(255, 255, 255, 0.3);*/
  background:#e6e9ef;
  color: #7f849c;
  text-align: left;
  border-radius: 6px;
  height:42px;
  width: 100%;
  padding: 4px;
}

.plat-nom {
  background: #2e3440;
  color: #eff1f5;
  font-weight: bold;
  font-size: 16px;
  border-radius: 12px;
  width: 100%;
  padding: 8px;
}

.quantitePlat {
  background:#e6e9ef;
  color: #7f849c;
  box-shadow: 0 3px 10px rgba(136, 136, 136, 0.3);
  border-radius: 6px;
  width: 100%;
  height:42px;
  padding: 10px;

}

#threedcontainer {
  border: 2px solid #e0e0e0;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

 
/*==============================================================================
  TYPOGRAPHY & FONTS
==============================================================================*/
@font-face {
    font-family: "JetBrainsMono Nerd Font";
    font-style: normal;
    font-weight: 400;
    src: local('JetBrainsMono Nerd Font'), url('https://fonts.gstatic.com/s/opensans/v17/mem8YaGs126MiZpBA-UFVZ0bf8pkAg.woff2') format('woff2');
    font-display: swap;
}

h1 {
    float: left;
    color: #7f849c;
    font-size: 50px;
    font-family: "JetBrainsMono Nerd Font";
    font-weight: bold;
    margin: 10px 0 0 20px;
}

h3 {
    width: 180px;
    padding: 12px;
    font-size: 20px;
    color: #7f849c;
    border-radius:16px;
}

h4 {
    font-family: "JetBrainsMono Nerd Font";
    font-size: 15px;
    font-weight: normal;
    margin: 15px 0;
}

b {
    font-size: 18px;
}


