/* ═══════════════════════════════════════════════════════════════════════════
   Simulation immersive du module Restauration (2026-11-11)
   Partiel : app/Views/public/demos/restauration.php · script : restauration.js
   Préfixe unique : dm-rs-. Aucun sélecteur d’élément nu hors de .dm-rs.
   - habillage et fil conducteur : mêmes jetons que les démos Boutique et
     Prestations (home v2 : nuit, aurore, Newsreader en italique) ;
   - face client : page d’un bistrot fictif (ardoise, craie, bois) ;
   - face restaurant : recopie du LOOK de bo.css (v2/restaurant/index.php,
     service.php, cuisine.php : plan de salle, affluence, KDS sombre) sans
     charger bo.css. Si le back-office change d’apparence, mettre à jour ici.
   Desktop : deux faces côte à côte ; sous 900 px : onglets.
   ═══════════════════════════════════════════════════════════════════════════ */

.dm-rs{
    /* Maison (home v2) */
    --dmrs-nuit: oklch(0.16 0.02 280);
    --dmrs-violet: oklch(0.58 0.21 288);
    --dmrs-bleu: oklch(0.62 0.17 250);
    --dmrs-aurore: linear-gradient(118deg, var(--dmrs-bleu) 0%, var(--dmrs-violet) 55%, oklch(0.52 0.22 315) 100%);
    --dmrs-encre: oklch(0.20 0.02 282);
    --dmrs-gris: oklch(0.48 0.02 282);
    --dmrs-pale: oklch(0.68 0.015 282);
    --dmrs-trait: oklch(0.90 0.01 285);
    --dmrs-voile: oklch(0.975 0.006 288);
    /* Back-office (bo.css) */
    --rs-violet: oklch(0.52 0.20 285);
    --rs-violet-fonce: oklch(0.42 0.18 285);
    --rs-bleu: oklch(0.56 0.16 252);
    --rs-encre: oklch(0.24 0.03 282);
    --rs-gris: oklch(0.52 0.025 282);
    --rs-pale: oklch(0.66 0.02 282);
    --rs-trait: oklch(0.91 0.012 285);
    --rs-trait-doux: oklch(0.95 0.008 285);
    --rs-teinte: oklch(0.985 0.005 285);
    --rs-vert: oklch(0.55 0.14 155);
    --rs-rouge: oklch(0.55 0.19 25);
    --rs-orange: oklch(0.62 0.15 60);
    --rs-degrade: linear-gradient(118deg, var(--rs-bleu) 0%, var(--rs-violet) 62%, var(--rs-violet-fonce) 100%);
    --rs-ombre: 0 1px 2px rgba(40,30,80,.04), 0 6px 20px rgba(40,30,80,.06);
    /* Vitrine */
    --v-encre: #23302b;
    --v-gris: #6b7069;
    --v-trait: #e6e1d6;
    --v-fond: #fbf8f1;
    --v-accent: #b5542d;
    --v-ardoise: #26332e;
    --v-accent-fonce: #8f3f1f;

    position: relative; overflow: hidden; isolation: isolate;
    padding: 76px 24px 84px;
    background: var(--dmrs-voile);
    border-bottom: 1px solid var(--dmrs-trait);
    color: var(--dmrs-encre);
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
    scroll-margin-top: 80px;
}
.dm-rs *, .dm-rs *::before, .dm-rs *::after{ box-sizing: border-box; }
.dm-rs .dm-rs-halo{ position:absolute; inset:-10% -10% auto; height:560px; z-index:-1; pointer-events:none; filter: blur(60px); opacity:.55;
    background: radial-gradient(30% 50% at 22% 30%, oklch(0.80 0.10 288 / .55), transparent 70%),
                radial-gradient(30% 50% at 80% 20%, oklch(0.82 0.09 248 / .5), transparent 70%); }
.dm-rs .dm-rs-dedans{ max-width: 1360px; margin: 0 auto; }
.dm-rs .dm-rs-serif{ font-family: 'Newsreader', Georgia, serif; font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
.dm-rs .dm-rs-ico{ width: 18px; height: 18px; flex: 0 0 auto; display: inline-block; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dm-rs button{ font: inherit; color: inherit; }
.dm-rs :focus-visible{ outline: 2px solid var(--dmrs-violet); outline-offset: 2px; }

/* ── En-tête de section ─────────────────────────────────────────────────── */
.dm-rs .dm-rs-entete{ max-width: 860px; margin: 0 auto 30px; text-align: center; }
.dm-rs .dm-rs-murmure{ display:inline-block; font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700;
    background: var(--dmrs-aurore); -webkit-background-clip: text; background-clip: text; color: transparent; }
.dm-rs .dm-rs-titre{ margin: 12px 0 14px; font-family: 'Schibsted Grotesk', 'Inter', sans-serif; font-size: clamp(1.8rem, 3.8vw, 2.9rem);
    line-height: 1.08; font-weight: 700; letter-spacing: -0.035em; color: var(--dmrs-encre); }
.dm-rs .dm-rs-titre .dm-rs-serif{ font-weight: 400; background: var(--dmrs-aurore); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .06em; }
.dm-rs .dm-rs-chapo{ margin: 0 auto; max-width: 680px; font-size: 17px; line-height: 1.6; color: var(--dmrs-gris); }
.dm-rs .dm-rs-bandeau{ display: inline-flex; align-items: center; gap: 8px; margin: 18px 0 0; padding: 7px 14px; border-radius: 999px;
    font-size: 13px; font-weight: 600; color: oklch(0.45 0.12 60); background: oklch(0.96 0.05 80); border: 1px solid oklch(0.87 0.08 75); }
.dm-rs .dm-rs-bandeau span{ font-size: 9px; color: oklch(0.70 0.15 70); }

/* ── Fil conducteur ─────────────────────────────────────────────────────── */
.dm-rs .dm-rs-pilote{ display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; }
.dm-rs .dm-rs-fil{ list-style: none; margin: 0; padding: 6px; display: flex; gap: 6px; border-radius: 18px; background: #fff;
    border: 1px solid var(--dmrs-trait); box-shadow: 0 1px 2px rgba(40,30,80,.04), 0 10px 30px -12px rgba(40,30,80,.16); }
.dm-rs .dm-rs-fil li{ display: flex; align-items: center; gap: 10px; padding: 8px 16px 8px 8px; border-radius: 13px; min-width: 0; transition: background .3s, opacity .3s; }
.dm-rs .dm-rs-fil li b{ display: block; font-size: 14px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.25; }
.dm-rs .dm-rs-fil li small{ display: block; font-size: 12px; color: var(--dmrs-gris); line-height: 1.3; margin-top: 1px; }
.dm-rs .dm-rs-fil-rond{ width: 32px; height: 32px; flex: 0 0 auto; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 13.5px;
    background: var(--dmrs-voile); color: var(--dmrs-pale); border: 1.5px solid var(--dmrs-trait); transition: background .3s, color .3s; }
.dm-rs .dm-rs-fil-rond .dm-rs-ico{ width: 15px; height: 15px; stroke-width: 3; }
.dm-rs .dm-rs-fil li[data-etat="afaire"]{ opacity: .6; }
.dm-rs .dm-rs-fil li[data-etat="courant"]{ background: oklch(0.58 0.21 288 / .07); }
.dm-rs .dm-rs-fil li[data-etat="courant"] .dm-rs-fil-rond{ background: var(--dmrs-aurore); color: #fff; border-color: transparent; box-shadow: 0 0 0 5px oklch(0.58 0.21 288 / .15); }
.dm-rs .dm-rs-fil li[data-etat="fait"] .dm-rs-fil-rond{ background: oklch(0.62 0.15 155); color: #fff; border-color: transparent; }
.dm-rs .dm-rs-recommencer{ display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: 999px; cursor: pointer;
    background: #fff; border: 1px solid var(--dmrs-trait); font-size: 14px; font-weight: 600; color: var(--dmrs-encre); transition: border-color .2s, transform .2s; }
.dm-rs .dm-rs-recommencer:hover{ border-color: var(--dmrs-violet); }
.dm-rs .dm-rs-recommencer svg{ width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.dm-rs .dm-rs-consigne{ margin: 16px auto 22px; max-width: 760px; text-align: center; font-size: 15px; font-weight: 600; color: var(--rs-violet-fonce); min-height: 1.5em; }
.dm-rs.dm-rs-termine .dm-rs-consigne{ color: oklch(0.45 0.13 155); }

/* ── Onglets (téléphone) ────────────────────────────────────────────────── */
.dm-rs .dm-rs-onglets{ display: none; }

/* ── Scène : deux fenêtres ──────────────────────────────────────────────── */
.dm-rs .dm-rs-scene{ display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 22px; align-items: start; }
.dm-rs .dm-rs-face{ min-width: 0; }
.dm-rs .dm-rs-legende{ display: flex; align-items: baseline; gap: 8px; margin: 0 0 10px 6px; font-size: 13px; color: var(--dmrs-gris); }
.dm-rs .dm-rs-legende span{ font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; font-weight: 800; color: var(--dmrs-encre); }
.dm-rs .dm-rs-fenetre{ position: relative; display: flex; flex-direction: column; height: 780px; border-radius: 20px; overflow: hidden; background: #fff;
    border: 1px solid oklch(0.88 0.012 285); box-shadow: 0 2px 4px rgba(40,30,80,.04), 0 30px 60px -28px rgba(40,30,80,.35); }
.dm-rs .dm-rs-chrome{ flex: 0 0 auto; display: flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; background: oklch(0.965 0.006 285); border-bottom: 1px solid var(--dmrs-trait); }
.dm-rs .dm-rs-chrome i{ width: 10px; height: 10px; border-radius: 50%; background: oklch(0.86 0.01 285); }
.dm-rs .dm-rs-chrome span{ flex: 1; margin-left: 10px; max-width: 360px; padding: 4px 12px; border-radius: 8px; background: #fff; font-size: 11.5px; color: var(--dmrs-gris);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border: 1px solid var(--dmrs-trait); }
.dm-rs .dm-rs-vitrine, .dm-rs .dm-rs-bo{ flex: 1 1 auto; min-height: 0; overflow: auto; overscroll-behavior: contain; container-type: inline-size; scrollbar-width: thin; }
.dm-rs .dm-rs-noscript{ padding: 30px; text-align: center; color: var(--dmrs-gris); }

/* ── Atouts et fin ──────────────────────────────────────────────────────── */
.dm-rs .dm-rs-atouts{ list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(3, minmax(0,1fr)); }
.dm-rs .dm-rs-atouts li{ padding: 18px 20px; border-radius: 18px; background: #fff; border: 1px solid var(--dmrs-trait); }
.dm-rs .dm-rs-atouts b{ display: block; font-family: 'Schibsted Grotesk', 'Inter', sans-serif; font-size: 17px; letter-spacing: -0.02em; margin-bottom: 4px; }
.dm-rs .dm-rs-atouts li:first-child b{ background: var(--dmrs-aurore); -webkit-background-clip: text; background-clip: text; color: transparent; }
.dm-rs .dm-rs-atouts span{ font-size: 14px; line-height: 1.55; color: var(--dmrs-gris); }
.dm-rs .dm-rs-fin{ position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 18px 28px; flex-wrap: wrap; margin-top: 14px;
    padding: 24px 28px; border-radius: 22px; background: var(--dmrs-nuit); color: #fff; }
.dm-rs .dm-rs-fin::before{ content: ''; position: absolute; inset: -40%; pointer-events: none; filter: blur(50px); opacity: .7;
    background: radial-gradient(30% 50% at 15% 50%, oklch(0.55 0.22 288 / .55), transparent 70%), radial-gradient(30% 50% at 85% 50%, oklch(0.58 0.18 248 / .45), transparent 70%); }
.dm-rs .dm-rs-fin > *{ position: relative; }
.dm-rs .dm-rs-fin b{ display: block; font-family: 'Schibsted Grotesk', 'Inter', sans-serif; font-size: 20px; letter-spacing: -0.02em; }
.dm-rs .dm-rs-fin span{ display: block; margin-top: 4px; font-size: 14.5px; color: oklch(0.84 0.012 285); }
.dm-rs .dm-rs-cta{ display: inline-flex; align-items: center; min-height: 50px; padding: 14px 28px; border-radius: 999px; background: #fff; color: var(--dmrs-encre);
    font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap; transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s; }
.dm-rs .dm-rs-cta:hover{ transform: translateY(-2px); box-shadow: 0 14px 34px rgba(0,0,0,.3); }
.dm-rs.dm-rs-termine .dm-rs-fin{ box-shadow: 0 0 0 3px oklch(0.58 0.21 288 / .35); }
.dm-rs .dm-rs-annonce{ position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }


/* ═══ Face client : la page du bistrot ═══════════════════════════════════ */
.dm-rs .dm-rs-vitrine{ position: relative; background: var(--v-fond); color: var(--v-encre); padding: 0 0 18px; }
.dm-rs .dm-rs-v-tete{ position: sticky; top: 0; z-index: 3; display: flex; align-items: center; gap: 12px; padding: 14px 18px; color: #f3efe4;
    background: var(--v-ardoise) radial-gradient(120% 140% at 0% 0%, rgba(255,255,255,.07), transparent 60%); border-bottom: 3px solid #8a6a45; }
.dm-rs .dm-rs-v-logo{ width: 44px; height: 44px; flex: 0 0 auto; border-radius: 12px; display: grid; place-items: center; font-family: 'Newsreader', Georgia, serif;
    font-style: italic; font-weight: 600; font-size: 18px; color: var(--v-ardoise); background: #f3efe4; box-shadow: inset 0 0 0 2px #8a6a45; }
.dm-rs .dm-rs-v-nom{ flex: 1; min-width: 0; }
.dm-rs .dm-rs-v-nom b{ display: block; font-family: 'Newsreader', Georgia, serif; font-size: 20px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.1; }
.dm-rs .dm-rs-v-nom small{ display: block; font-size: 12px; color: #c9c4b6; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dm-rs .dm-rs-v-panier{ position: relative; width: 46px; height: 46px; flex: 0 0 auto; border-radius: 14px; display: grid; place-items: center; cursor: pointer;
    background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.22); color: #f3efe4; }
.dm-rs .dm-rs-v-panier:hover{ background: rgba(255,255,255,.14); }
.dm-rs .dm-rs-v-panier .dm-rs-ico{ width: 20px; height: 20px; }
.dm-rs .dm-rs-v-compte{ position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 99px; display: grid; place-items: center;
    font-size: 11px; font-weight: 800; color: #fff; background: var(--v-accent); border: 2px solid var(--v-ardoise); animation: dm-rs-pop .35s cubic-bezier(.2,.9,.3,1.4); }
.dm-rs .dm-rs-v-compte.dm-rs-vide{ display: none; }
.dm-rs .dm-rs-v-parcours{ display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 14px 18px 0; padding: 4px; border-radius: 14px; background: #efe9dc; }
.dm-rs .dm-rs-v-parcours button{ display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 46px; padding: 8px 10px; border: 0; border-radius: 11px;
    background: transparent; cursor: pointer; font-size: 13.5px; font-weight: 650; color: var(--v-gris); }
.dm-rs .dm-rs-v-parcours button .dm-rs-ico{ width: 16px; height: 16px; }
.dm-rs .dm-rs-v-parcours button.dm-rs-actif{ background: #fff; color: var(--v-encre); box-shadow: 0 1px 3px rgba(40,30,20,.14); }
.dm-rs .dm-rs-v-bandeau{ margin: 12px 18px 0; padding: 8px 12px; border-radius: 10px; font-size: 12.5px; text-align: center; color: var(--v-accent-fonce); background: #f8ebe3; }
.dm-rs .dm-rs-v-cat{ margin: 18px 18px 6px; font-family: 'Newsreader', Georgia, serif; font-style: italic; font-size: 19px; font-weight: 500; color: var(--v-encre);
    display: flex; align-items: center; gap: 10px; }
.dm-rs .dm-rs-v-cat::after{ content: ''; flex: 1; height: 1px; background: var(--v-trait); }
.dm-rs .dm-rs-v-plats{ list-style: none; margin: 0 18px; padding: 0; display: grid; gap: 8px; }
.dm-rs .dm-rs-v-plat{ display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 14px; border-radius: 14px; background: #fff; border: 1px solid var(--v-trait); }
.dm-rs .dm-rs-v-plat-txt{ flex: 1; min-width: 0; }
.dm-rs .dm-rs-v-plat-txt b{ display: block; font-size: 14px; font-weight: 650; line-height: 1.25; }
.dm-rs .dm-rs-v-plat-txt small{ display: block; font-size: 12px; color: var(--v-gris); margin-top: 2px; line-height: 1.35; }
.dm-rs .dm-rs-v-tags{ display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
.dm-rs .dm-rs-v-tags i{ font-style: normal; font-size: 10.5px; font-weight: 700; padding: 1px 7px; border-radius: 99px; background: #e9f1e6; color: #3f6b3a; }
.dm-rs .dm-rs-v-plat-pied{ display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: 0 0 auto; }
.dm-rs .dm-rs-v-plat-pied > b{ font-size: 14.5px; font-weight: 750; letter-spacing: -0.02em; }
.dm-rs .dm-rs-v-ajouter{ position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-width: 104px; min-height: 44px; padding: 8px 12px; border-radius: 12px;
    cursor: pointer; border: 1px solid var(--v-ardoise); background: var(--v-ardoise); color: #fff; font-size: 13px; font-weight: 650; transition: background .2s, transform .15s; }
.dm-rs .dm-rs-v-ajouter:hover{ background: #34453e; }
.dm-rs .dm-rs-v-ajouter:active{ transform: scale(.97); }
.dm-rs .dm-rs-v-ajouter .dm-rs-ico{ width: 15px; height: 15px; stroke-width: 2.6; }
.dm-rs .dm-rs-v-ajouter.dm-rs-ok{ background: oklch(0.55 0.13 155); border-color: oklch(0.55 0.13 155); }
.dm-rs .dm-rs-v-dans{ position: absolute; top: -7px; right: -7px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 99px; display: grid; place-items: center;
    font-size: 11px; font-weight: 800; background: var(--v-accent); color: #fff; border: 2px solid #fff; }
.dm-rs .dm-rs-v-barre{ position: sticky; bottom: 0; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 14px 12px 0;
    padding: 10px 10px 10px 16px; border-radius: 16px; background: var(--v-ardoise); color: #fff; font-size: 13.5px; box-shadow: 0 14px 30px -12px rgba(20,30,25,.6);
    animation: dm-rs-monter .4s cubic-bezier(.2,.8,.2,1); }
.dm-rs .dm-rs-v-btn{ display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 10px 16px; border-radius: 12px; cursor: pointer;
    background: #fff; color: var(--v-encre); border: 1px solid var(--v-trait); font-size: 13.5px; font-weight: 650; white-space: nowrap; }
.dm-rs .dm-rs-v-btn:hover{ border-color: var(--v-accent); }
.dm-rs .dm-rs-v-btn-plein{ background: var(--v-accent); border-color: var(--v-accent); color: #fff; }
.dm-rs .dm-rs-v-btn-plein:hover{ background: var(--v-accent-fonce); border-color: var(--v-accent-fonce); }

/* Commande */
.dm-rs .dm-rs-v-etape-tete{ position: sticky; top: 0; z-index: 3; display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: rgba(251,248,241,.96);
    backdrop-filter: blur(8px); border-bottom: 1px solid var(--v-trait); }
.dm-rs .dm-rs-v-retour{ display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 6px 10px 6px 6px; border-radius: 10px; border: 0; background: transparent;
    cursor: pointer; font-size: 13px; font-weight: 600; color: var(--v-gris); }
.dm-rs .dm-rs-v-retour:hover{ color: var(--v-encre); background: #f0ebe0; }
.dm-rs .dm-rs-v-retour .dm-rs-ico{ width: 16px; height: 16px; stroke-width: 2.4; }
.dm-rs .dm-rs-v-h{ margin: 0 0 0 auto; font-family: 'Newsreader', Georgia, serif; font-size: 20px; font-weight: 600; letter-spacing: -0.01em; color: var(--v-encre); }
.dm-rs .dm-rs-v-h:focus{ outline: none; }
.dm-rs .dm-rs-v-vide{ padding: 40px 20px; text-align: center; color: var(--v-gris); }
.dm-rs .dm-rs-v-vide p{ margin: 0 0 14px; }
.dm-rs .dm-rs-v-lignes{ list-style: none; margin: 12px 18px 0; padding: 0; display: grid; gap: 8px; }
.dm-rs .dm-rs-v-lignes li{ display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 14px; border-radius: 14px; background: #fff; border: 1px solid var(--v-trait); }
.dm-rs .dm-rs-v-ligne-nom{ flex: 1; min-width: 0; }
.dm-rs .dm-rs-v-ligne-nom b{ display: block; font-size: 13px; font-weight: 650; line-height: 1.25; }
.dm-rs .dm-rs-v-ligne-nom small{ display: block; font-size: 11.5px; color: var(--v-gris); }
.dm-rs .dm-rs-v-ligne-nom small.dm-rs-v-opts{ color: var(--v-accent-fonce); font-weight: 600; }
.dm-rs .dm-rs-v-qte{ display: inline-flex; align-items: center; border-radius: 12px; border: 1px solid var(--v-trait); background: var(--v-fond); }
.dm-rs .dm-rs-v-qte button{ width: 40px; height: 44px; display: grid; place-items: center; border: 0; background: transparent; cursor: pointer; color: var(--v-encre); border-radius: 11px; }
.dm-rs .dm-rs-v-qte button:hover{ background: #efe9dc; }
.dm-rs .dm-rs-v-qte button:disabled{ opacity: .3; cursor: not-allowed; }
.dm-rs .dm-rs-v-qte .dm-rs-ico{ width: 15px; height: 15px; stroke-width: 2.6; }
.dm-rs .dm-rs-v-qte output{ min-width: 18px; text-align: center; font-weight: 700; font-size: 14px; }
.dm-rs .dm-rs-v-ligne-total{ min-width: 62px; text-align: right; font-size: 13.5px; }
.dm-rs .dm-rs-v-pret{ display: flex; gap: 12px; align-items: flex-start; margin: 14px 18px 0; padding: 12px 14px; border-radius: 14px; background: #eef3ec; border: 1px solid #d3e2cf; color: #2f5a2c; text-align: left; }
.dm-rs .dm-rs-v-pret > .dm-rs-ico{ width: 22px; height: 22px; margin-top: 1px; }
.dm-rs .dm-rs-v-pret b{ display: block; font-size: 15px; }
.dm-rs .dm-rs-v-pret small{ display: block; font-size: 12px; line-height: 1.45; color: #4b6b48; margin-top: 2px; }
.dm-rs .dm-rs-v-coord{ margin: 14px 18px 0; padding: 12px 14px; border-radius: 14px; background: #f3eee3; font-size: 12.5px; display: grid; gap: 2px; }
.dm-rs .dm-rs-v-coord b{ font-size: 13px; }
.dm-rs .dm-rs-v-coord small{ color: var(--v-gris); font-style: italic; }
.dm-rs .dm-rs-v-total{ margin: 14px 18px 0; display: grid; gap: 6px; font-size: 13.5px; }
.dm-rs .dm-rs-v-total div{ display: flex; justify-content: space-between; gap: 10px; }
.dm-rs .dm-rs-v-total dd{ margin: 0; }
.dm-rs .dm-rs-v-total-fort{ font-size: 16px; }
.dm-rs .dm-rs-v-total-fort dt{ font-weight: 700; }
.dm-rs .dm-rs-v-total-fort dd{ font-weight: 800; }
.dm-rs .dm-rs-v-payer{ display: flex; align-items: center; justify-content: center; gap: 10px; width: calc(100% - 36px); min-height: 54px; margin: 16px 18px 0; border-radius: 15px; cursor: pointer;
    border: 0; background: var(--v-accent); color: #fff; font-size: 15.5px; font-weight: 700; letter-spacing: -0.01em; box-shadow: 0 12px 24px -12px rgba(143,63,31,.7); transition: transform .15s, background .2s; }
.dm-rs .dm-rs-v-payer:hover{ background: var(--v-accent-fonce); transform: translateY(-1px); }
.dm-rs .dm-rs-v-payer:disabled{ cursor: not-allowed; opacity: .55; transform: none; box-shadow: none; }
.dm-rs .dm-rs-v-payer[aria-busy="true"]{ cursor: wait; opacity: .85; }
.dm-rs .dm-rs-v-note{ margin: 10px 18px 0; font-size: 11.5px; line-height: 1.45; color: var(--v-gris); text-align: center; }
.dm-rs .dm-rs-v-note b{ color: var(--v-encre); font-weight: 600; }
.dm-rs .dm-rs-v-gris{ margin: 0 0 6px; font-size: 13px; color: var(--v-gris); }

/* Suivi de la commande */
.dm-rs .dm-rs-v-merci{ padding: 24px 20px 10px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.dm-rs .dm-rs-v-merci > .dm-rs-v-pret, .dm-rs .dm-rs-v-merci > .dm-rs-v-mail{ margin-left: 0; margin-right: 0; width: 100%; }
.dm-rs .dm-rs-v-coche{ width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: oklch(0.6 0.14 155);
    box-shadow: 0 0 0 8px oklch(0.6 0.14 155 / .14); animation: dm-rs-pop .5s cubic-bezier(.2,.9,.3,1.4); }
.dm-rs .dm-rs-v-coche .dm-rs-ico{ width: 30px; height: 30px; stroke-width: 2.6; }
.dm-rs .dm-rs-v-coche-pret{ background: var(--v-accent); box-shadow: 0 0 0 8px rgba(181,84,45,.16); }
.dm-rs .dm-rs-v-merci .dm-rs-v-h{ margin: 14px 0 4px; font-size: 24px; }
.dm-rs .dm-rs-v-merci-sous{ margin: 0; font-size: 13.5px; color: var(--v-gris); }
.dm-rs .dm-rs-v-compte-a-rebours{ width: 100%; margin: 16px 0 0; padding: 14px; border-radius: 16px; background: var(--v-ardoise); color: #f3efe4; display: grid; gap: 2px; }
.dm-rs .dm-rs-v-compte-a-rebours small{ font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #c9c4b6; }
.dm-rs .dm-rs-v-compte-a-rebours b{ font-family: 'Newsreader', Georgia, serif; font-size: 34px; font-weight: 600; line-height: 1.1; }
.dm-rs .dm-rs-v-compte-a-rebours span{ font-size: 12.5px; color: #dcd7ca; }
.dm-rs .dm-rs-v-compte-a-rebours.dm-rs-pret{ background: oklch(0.5 0.13 155); animation: dm-rs-pop .5s cubic-bezier(.2,.9,.3,1.3); }
.dm-rs .dm-rs-v-compte-a-rebours.dm-rs-pret small, .dm-rs .dm-rs-v-compte-a-rebours.dm-rs-pret span{ color: #eaf5e8; }
.dm-rs .dm-rs-v-frise{ list-style: none; width: 100%; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); }
.dm-rs .dm-rs-v-frise li{ position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--v-gris); }
.dm-rs .dm-rs-v-frise li::before{ content: ''; position: absolute; top: 15px; left: calc(-50% + 18px); right: calc(50% + 18px); height: 3px; border-radius: 3px; background: var(--v-trait); }
.dm-rs .dm-rs-v-frise li:first-child::before{ content: none; }
.dm-rs .dm-rs-v-frise li.dm-rs-fait::before, .dm-rs .dm-rs-v-frise li.dm-rs-courant::before{ background: oklch(0.6 0.14 155); }
.dm-rs .dm-rs-v-frise-rond{ position: relative; z-index: 1; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 2px solid var(--v-trait); font-size: 13px; }
.dm-rs .dm-rs-v-frise-rond .dm-rs-ico{ width: 15px; height: 15px; stroke-width: 3; }
.dm-rs .dm-rs-v-frise .dm-rs-fait{ color: var(--v-encre); }
.dm-rs .dm-rs-v-frise .dm-rs-fait .dm-rs-v-frise-rond{ background: oklch(0.6 0.14 155); border-color: oklch(0.6 0.14 155); color: #fff; }
.dm-rs .dm-rs-v-frise .dm-rs-courant{ color: var(--v-accent-fonce); }
.dm-rs .dm-rs-v-frise .dm-rs-courant .dm-rs-v-frise-rond{ background: var(--v-accent); border-color: var(--v-accent); color: #fff; box-shadow: 0 0 0 5px rgba(181,84,45,.16); }
.dm-rs .dm-rs-v-direct{ margin: 8px 0 0; font-size: 11.5px; color: var(--v-gris); }
.dm-rs .dm-rs-v-recap{ list-style: none; width: 100%; margin: 12px 0 0; padding: 10px 12px; border-radius: 12px; background: #fff; border: 1px solid var(--v-trait); display: grid; gap: 6px; text-align: left; font-size: 13px; }
.dm-rs .dm-rs-v-recap li{ display: flex; justify-content: space-between; gap: 10px; }
.dm-rs .dm-rs-v-recap small{ display: block; color: var(--v-accent-fonce); font-weight: 600; font-size: 11.5px; }
.dm-rs .dm-rs-v-mail{ width: 100%; margin: 12px 0 0; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; text-align: left;
    background: #f8ebe3; border: 1px solid #efd5c6; font-size: 12.5px; line-height: 1.4; color: var(--v-accent-fonce); }
.dm-rs .dm-rs-v-mail span{ flex: 1; min-width: 0; }
.dm-rs .dm-rs-v-merci > .dm-rs-v-btn-plein{ width: 100%; margin-top: 12px; }
.dm-rs .dm-rs-v-lien{ margin-top: 8px; min-height: 44px; padding: 8px 14px; border: 0; background: transparent; cursor: pointer; font-size: 13.5px; font-weight: 600; color: var(--v-gris); text-decoration: underline; text-underline-offset: 3px; }
.dm-rs .dm-rs-mobile-seul{ display: none; }

/* Réservation */
.dm-rs .dm-rs-v-choix{ margin: 16px 18px 0; padding: 0; border: 0; min-width: 0; }
.dm-rs .dm-rs-v-choix legend{ padding: 0; margin-bottom: 8px; font-size: 13.5px; font-weight: 700; color: var(--v-encre); }
.dm-rs .dm-rs-v-choix legend small{ font-weight: 400; color: var(--v-gris); }
.dm-rs .dm-rs-v-pave{ display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: 6px; }
.dm-rs .dm-rs-v-puces{ display: flex; flex-wrap: wrap; gap: 6px; }
.dm-rs .dm-rs-v-pave button, .dm-rs .dm-rs-v-puces button, .dm-rs .dm-rs-v-zones button{ min-height: 46px; padding: 8px 14px; border-radius: 12px; cursor: pointer;
    border: 1.5px solid var(--v-trait); background: #fff; color: var(--v-encre); font-size: 14px; font-weight: 650; font-variant-numeric: tabular-nums; transition: border-color .15s, background .15s; }
.dm-rs .dm-rs-v-pave button{ padding: 8px 4px; font-size: 15px; }
.dm-rs .dm-rs-v-pave button:hover, .dm-rs .dm-rs-v-puces button:hover, .dm-rs .dm-rs-v-zones button:hover{ border-color: #d6b9a8; }
.dm-rs .dm-rs-v-pave button.dm-rs-actif, .dm-rs .dm-rs-v-puces button.dm-rs-actif, .dm-rs .dm-rs-v-zones button.dm-rs-actif{ border-color: var(--v-ardoise); background: var(--v-ardoise); color: #fff; }
.dm-rs .dm-rs-v-zones{ display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.dm-rs .dm-rs-v-zones button{ display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; min-height: 58px; }
.dm-rs .dm-rs-v-zones small{ font-size: 11.5px; font-weight: 500; opacity: .75; }
.dm-rs .dm-rs-v-zones button.dm-rs-complet{ cursor: not-allowed; background: #f1eee7; color: #75776f; border-style: dashed; }
.dm-rs .dm-rs-v-zones button.dm-rs-complet small{ opacity: 1; font-weight: 700; color: oklch(0.5 0.16 25); }
.dm-rs .dm-rs-v-aucun{ font-size: 12.5px; color: var(--v-gris); }
.dm-rs .dm-rs-v-complet{ margin: 12px 18px 0; padding: 9px 12px; border-radius: 10px; background: oklch(0.97 0.04 80); color: oklch(0.42 0.11 60); font-size: 12.5px; }
.dm-rs .dm-rs-v-recap-resa{ margin: 14px 18px 0; padding: 12px 14px; border-radius: 14px; background: #fff; border: 1px solid var(--v-trait); display: grid; gap: 2px; }
.dm-rs .dm-rs-v-recap-resa b{ font-size: 16px; }
.dm-rs .dm-rs-v-recap-resa span{ font-size: 12.5px; color: var(--v-gris); }
.dm-rs .dm-rs-v-empreinte{ margin: 12px 18px 0; padding: 14px; border-radius: 14px; background: #f3eee3; display: flex; gap: 14px; align-items: center; }
.dm-rs .dm-rs-v-empreinte-montant{ flex: 0 0 auto; padding: 10px 12px; border-radius: 12px; background: var(--v-ardoise); color: #fff; font-family: 'Newsreader', Georgia, serif; font-size: 20px; font-weight: 600; white-space: nowrap; }
.dm-rs .dm-rs-v-empreinte p{ margin: 0; font-size: 12.5px; line-height: 1.5; }

/* Fenêtre d’options d’un plat (côté client) */
.dm-rs .dm-rs-feuille{ position: relative; width: min(100%, 440px); max-height: 100%; overflow: auto; padding: 18px 0; border-radius: 18px; background: var(--v-fond); color: var(--v-encre);
    box-shadow: 0 30px 60px -20px rgba(20,25,20,.5); animation: dm-rs-modale .35s cubic-bezier(.2,.9,.3,1.15); }
.dm-rs .dm-rs-feuille h3{ margin: 0 60px 4px 18px; font-family: 'Newsreader', Georgia, serif; font-size: 21px; font-weight: 600; }
.dm-rs .dm-rs-feuille .dm-rs-v-gris{ margin: 0 18px; }

/* ═══ Face restaurant : le back-office (look bo.css) ═════════════════════ */
.dm-rs .dm-rs-bo{ background: oklch(0.982 0.004 285); color: var(--rs-encre); font-family: 'Schibsted Grotesk', Inter, system-ui, sans-serif; letter-spacing: -0.01em; }
.dm-rs .dm-rs-fenetre-bo.dm-rs-sombre .dm-rs-bo{ background: oklch(0.17 0.02 280); }
.dm-rs .dm-rs-b-page{ padding: 20px 22px 26px; }
.dm-rs .dm-rs-b-tete{ display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; margin: 0 0 16px; }
.dm-rs .dm-rs-b-h1{ margin: 0; font-size: 1.6rem; font-weight: 700; line-height: 1.15; letter-spacing: -0.025em; color: var(--rs-encre); }
.dm-rs .dm-rs-b-h1 .dm-rs-serif{ font-weight: 500; }
.dm-rs .dm-rs-b-sous{ margin: 4px 0 0; font-size: 13px; color: var(--rs-gris); }
.dm-rs .dm-rs-b-actions{ display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.dm-rs .dm-rs-deco{ pointer-events: none; }
.dm-rs .dm-rs-h2{ margin: 0 0 12px; font-size: 1.05rem; font-weight: 700; letter-spacing: -0.025em; color: var(--rs-encre); }
.dm-rs .dm-rs-section{ margin: 0 0 22px; }

.dm-rs .dm-rs-btn{ display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 9px 15px; border-radius: 11px; cursor: pointer;
    font-size: 13.5px; font-weight: 600; line-height: 1.2; white-space: nowrap; border: 1px solid transparent; transition: transform .15s, box-shadow .2s, border-color .2s, background .2s; }
.dm-rs .dm-rs-btn .dm-rs-ico{ width: 16px; height: 16px; }
.dm-rs .dm-rs-btn-primaire{ background: var(--rs-degrade); color: #fff; box-shadow: 0 6px 16px -8px oklch(0.42 0.18 285 / .7); }
.dm-rs .dm-rs-btn-primaire:hover{ transform: translateY(-1px); box-shadow: 0 10px 22px -10px oklch(0.42 0.18 285 / .8); }
.dm-rs .dm-rs-btn-sobre{ background: #fff; color: var(--rs-encre); border-color: var(--rs-trait); }
.dm-rs .dm-rs-btn-sobre:hover{ border-color: var(--rs-violet); color: var(--rs-violet-fonce); }
.dm-rs .dm-rs-btn-mini{ padding: 7px 12px; font-size: 12.5px; border-radius: 10px; }
.dm-rs .dm-rs-btn-grand{ min-height: 56px; padding: 14px 22px; font-size: 15px; border-radius: 14px; width: 100%; }
.dm-rs .dm-rs-btn:disabled{ opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.dm-rs .dm-rs-roue{ width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; animation: dm-rs-tourne .7s linear infinite; }

/* Onglets */
.dm-rs .dm-rs-b-onglets{ display: flex; gap: 4px; padding: 4px; margin: 0 0 16px; max-width: 100%; width: max-content; overflow-x: auto; border-radius: 14px; background: #fff;
    border: 1px solid var(--rs-trait); box-shadow: var(--rs-ombre); scrollbar-width: none; }
.dm-rs .dm-rs-b-onglets::-webkit-scrollbar{ display: none; }
.dm-rs .dm-rs-b-onglet{ flex: 0 0 auto; display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 8px 14px; border-radius: 10px; border: 0; background: transparent; cursor: pointer;
    font-size: 13px; font-weight: 600; color: var(--rs-gris); white-space: nowrap; transition: background .2s, color .2s; }
.dm-rs button.dm-rs-b-onglet:hover{ background: var(--rs-trait-doux); color: var(--rs-encre); }
.dm-rs .dm-rs-b-onglet.dm-rs-actif, .dm-rs button.dm-rs-b-onglet.dm-rs-actif:hover{ background: var(--rs-encre); color: #fff; }
.dm-rs .dm-rs-b-inerte{ cursor: default; opacity: .55; }
.dm-rs .dm-rs-compteur{ min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; display: inline-grid; place-items: center; font-size: 10.5px; font-weight: 800;
    background: oklch(0.62 0.15 60 / .18); color: oklch(0.48 0.14 55); }
.dm-rs .dm-rs-actif .dm-rs-compteur{ background: rgba(255,255,255,.2); color: #fff; }

/* Chiffres */
.dm-rs .dm-rs-grille-chiffres{ display: grid; gap: 10px; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 0 0 22px; }
.dm-rs .dm-rs-grille-chiffres.dm-rs-grille-quatre{ grid-template-columns: repeat(4, minmax(0, 1fr)); }
@container (max-width: 700px){ .dm-rs .dm-rs-grille-chiffres{ grid-template-columns: repeat(3, minmax(0, 1fr)); } .dm-rs .dm-rs-grille-chiffres.dm-rs-grille-quatre{ grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.dm-rs .dm-rs-chiffre{ position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 3px; min-width: 0; padding: 14px 15px; border-radius: 16px; background: #fff;
    border: 1px solid var(--rs-trait); box-shadow: var(--rs-ombre); color: var(--rs-encre); }
.dm-rs .dm-rs-chiffre.dm-rs-principal{ background: var(--rs-degrade); border-color: transparent; color: #fff; }
.dm-rs .dm-rs-lbl{ display: flex; align-items: center; gap: 8px; margin-bottom: 4px; font-size: 12px; font-weight: 600; color: var(--rs-gris); }
.dm-rs .dm-rs-principal .dm-rs-lbl, .dm-rs .dm-rs-principal .dm-rs-sous{ color: rgba(255,255,255,.88); }
.dm-rs .dm-rs-val{ font-size: 1.5rem; font-weight: 800; letter-spacing: -.035em; line-height: 1.1; white-space: nowrap; }
.dm-rs .dm-rs-val small{ font-size: .52em; font-weight: 600; color: var(--rs-pale); letter-spacing: 0; }
.dm-rs .dm-rs-sous{ font-size: 11.5px; color: var(--rs-gris); line-height: 1.4; }
.dm-rs .dm-rs-sous b{ color: var(--rs-encre); }
.dm-rs .dm-rs-pastille-ico{ width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; flex: 0 0 auto; }
.dm-rs .dm-rs-pastille-ico .dm-rs-ico{ width: 15px; height: 15px; }
.dm-rs .dm-rs-t-violet .dm-rs-pastille-ico{ background: oklch(0.58 0.21 288 / .12); color: var(--rs-violet-fonce); }
.dm-rs .dm-rs-t-vert .dm-rs-pastille-ico{ background: oklch(0.78 0.15 155 / .18); color: oklch(0.45 0.13 155); }
.dm-rs .dm-rs-t-orange .dm-rs-pastille-ico{ background: oklch(0.80 0.15 65 / .22); color: oklch(0.52 0.15 55); }
.dm-rs .dm-rs-t-bleu .dm-rs-pastille-ico{ background: oklch(0.70 0.13 245 / .16); color: oklch(0.46 0.14 250); }
.dm-rs .dm-rs-t-rose .dm-rs-pastille-ico{ background: oklch(0.75 0.15 0 / .15); color: oklch(0.50 0.17 5); }
.dm-rs .dm-rs-pulse{ animation: dm-rs-halo-kpi 1.6s ease-out 2; }
.dm-rs .dm-rs-monte{ animation: dm-rs-monte 1.4s ease-out; }

/* Tuiles « À faire » */
.dm-rs .dm-rs-actions{ display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.dm-rs .dm-rs-action{ display: flex; gap: 12px; align-items: center; min-height: 64px; padding: 12px 15px; border-radius: 16px; background: #fff; text-align: left; cursor: pointer;
    border: 1px solid var(--rs-trait); box-shadow: var(--rs-ombre); color: var(--rs-encre); font: inherit; transition: transform .2s, border-color .2s; }
.dm-rs .dm-rs-action:hover{ transform: translateY(-2px); border-color: var(--rs-violet); }
.dm-rs .dm-rs-n{ flex: 0 0 auto; min-width: 46px; height: 46px; padding: 0 8px; border-radius: 13px; display: grid; place-items: center; font-size: 1.2rem; font-weight: 800; letter-spacing: -.03em; background: var(--rs-trait-doux); }
.dm-rs .dm-rs-ton-action .dm-rs-n{ background: oklch(0.58 0.21 288 / .12); color: var(--rs-violet-fonce); font-size: 1rem; }
.dm-rs .dm-rs-ton-alerte .dm-rs-n{ background: oklch(0.75 0.16 60 / .18); color: oklch(0.50 0.15 55); }
.dm-rs .dm-rs-ton-urgent .dm-rs-n{ background: oklch(0.70 0.17 25 / .16); color: var(--rs-rouge); }
.dm-rs .dm-rs-action b{ display: block; font-size: 13.5px; font-weight: 600; line-height: 1.3; }
.dm-rs .dm-rs-d{ display: block; font-size: 12px; color: var(--rs-gris); margin-top: 2px; line-height: 1.4; }

/* Cartes, listes */
.dm-rs .dm-rs-grille-2{ display: grid; gap: 12px; grid-template-columns: minmax(0,1fr) minmax(0,1fr); align-items: start; }
.dm-rs .dm-rs-carte{ padding: 16px 18px; border-radius: 16px; background: #fff; border: 1px solid var(--rs-trait); box-shadow: var(--rs-ombre); min-width: 0; }
.dm-rs .dm-rs-carte-tete{ display: flex; justify-content: space-between; align-items: baseline; gap: 6px 10px; flex-wrap: wrap; margin-bottom: 10px; }
.dm-rs .dm-rs-carte-tete h3{ margin: 0; font-size: 14.5px; font-weight: 700; letter-spacing: -0.02em; color: var(--rs-encre); }
.dm-rs .dm-rs-carte-tete h3 .dm-rs-serif{ font-weight: 500; }
.dm-rs .dm-rs-lien-inerte{ font-size: 12.5px; font-weight: 600; color: var(--rs-violet-fonce); opacity: .6; }
.dm-rs .dm-rs-aide{ font-size: 12px; color: var(--rs-gris); }
.dm-rs .dm-rs-agenda{ list-style: none; margin: 0; padding: 0; }
.dm-rs .dm-rs-agenda li{ display: grid; grid-template-columns: 50px minmax(0,1fr) auto; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--rs-trait-doux); font-size: 13px; }
.dm-rs .dm-rs-agenda li:last-child{ border-bottom: 0; }
.dm-rs .dm-rs-agenda li.dm-rs-estompe{ opacity: .55; }
.dm-rs .dm-rs-agenda li.dm-rs-nouvelle, .dm-rs .dm-rs-agenda-service-ligne.dm-rs-nouvelle{ background: oklch(0.58 0.21 288 / .06); box-shadow: inset 3px 0 0 var(--rs-violet); padding-left: 8px; border-radius: 8px; }
.dm-rs .dm-rs-agenda-heure{ font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.02em; font-size: 14.5px; }
.dm-rs .dm-rs-agenda-heure.dm-rs-retard{ color: var(--rs-rouge); }
.dm-rs .dm-rs-agenda-corps{ min-width: 0; }
.dm-rs .dm-rs-agenda-corps b{ display: block; font-weight: 600; overflow-wrap: anywhere; }
.dm-rs .dm-rs-discret{ display: block; font-size: 11.5px; font-weight: 400; color: var(--rs-pale); margin-top: 2px; }
.dm-rs .dm-rs-italique{ font-style: italic; }
.dm-rs .dm-rs-mono{ display: block; font-family: ui-monospace, 'Cascadia Mono', Menlo, Consolas, monospace; font-size: 12px; color: var(--rs-gris); margin-top: 2px; }
.dm-rs .dm-rs-neuf{ display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 99px; font-size: 10.5px; font-weight: 800; color: #fff; background: var(--rs-degrade); vertical-align: 2px; letter-spacing: 0; }
.dm-rs .dm-rs-calme{ margin: 0; padding: 14px 16px; border-radius: 14px; background: var(--rs-teinte); border: 1px solid var(--rs-trait-doux); font-size: 13px; color: var(--rs-gris); }
.dm-rs .dm-rs-pastille{ display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.dm-rs .dm-rs-pastille::before{ content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.dm-rs .dm-rs-pastille-ok{ background: oklch(0.94 0.06 155); color: oklch(0.45 0.13 155); }
.dm-rs .dm-rs-pastille-alerte{ background: oklch(0.95 0.06 75); color: oklch(0.50 0.13 60); }
.dm-rs .dm-rs-pastille-erreur{ background: oklch(0.95 0.04 25); color: var(--rs-rouge); }
.dm-rs .dm-rs-pastille-info{ background: oklch(0.95 0.04 250); color: oklch(0.46 0.14 252); }
.dm-rs .dm-rs-etiquette{ display: table; margin-top: 6px; padding: 3px 9px; border-radius: 7px; font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.dm-rs .dm-rs-c-bleu{ background: oklch(0.70 0.13 245 / .14); color: oklch(0.44 0.14 250); }
.dm-rs .dm-rs-c-violet{ background: oklch(0.58 0.21 288 / .12); color: var(--rs-violet-fonce); }
.dm-rs .dm-rs-message{ display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 10px 14px; border-radius: 14px; margin: 0 0 12px; font-size: 13px; line-height: 1.45; border: 1px solid var(--rs-trait); }
.dm-rs .dm-rs-message > span{ flex: 1 1 200px; min-width: 0; }
.dm-rs .dm-rs-message-info{ background: oklch(0.97 0.02 288); border-color: oklch(0.88 0.05 288); color: var(--rs-violet-fonce); }
.dm-rs .dm-rs-message-info .dm-rs-discret{ color: inherit; opacity: .85; }
.dm-rs .dm-rs-message-alerte{ background: oklch(0.97 0.04 80); border-color: oklch(0.87 0.08 75); color: oklch(0.45 0.12 60); margin: 0; }

/* Service en direct */
.dm-rs .dm-rs-direct{ display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 6px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 700; white-space: nowrap;
    background: oklch(0.94 0.06 155); color: oklch(0.40 0.12 155); }
.dm-rs .dm-rs-direct::before{ content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: dm-rs-battement 1.6s ease-in-out infinite; }
.dm-rs .dm-rs-direct small{ font-size: 11.5px; font-weight: 500; opacity: .85; font-variant-numeric: tabular-nums; }
.dm-rs .dm-rs-direct.dm-rs-prevision{ background: oklch(0.58 0.21 288 / .12); color: var(--rs-violet-fonce); }
.dm-rs .dm-rs-direct.dm-rs-prevision::before{ animation: none; }
.dm-rs .dm-rs-mise-panneau{ display: grid; gap: 14px; grid-template-columns: minmax(0,1fr) 300px; align-items: start; }
.dm-rs .dm-rs-panneau{ display: grid; gap: 12px; min-width: 0; }
.dm-rs .dm-rs-legende-courte{ display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0 0 12px; font-size: 12px; color: var(--rs-gris); }
.dm-rs .dm-rs-legende-courte span{ display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.dm-rs .dm-rs-legende-courte i{ display: inline-block; width: 10px; height: 10px; border-radius: 3px; }
.dm-rs .dm-rs-legende-courte i.dm-rs-etat-libre{ background: oklch(0.94 0.07 155); border: 1px solid oklch(0.68 0.14 155); }
.dm-rs .dm-rs-legende-courte i.dm-rs-etat-bientot{ background: oklch(0.93 0.11 90); border: 1px solid oklch(0.72 0.16 75); }
.dm-rs .dm-rs-legende-courte i.dm-rs-etat-occupee{ background: oklch(0.55 0.19 25); }
.dm-rs .dm-rs-legende-courte i.dm-rs-etat-liberer{ background: repeating-linear-gradient(135deg, oklch(0.64 0.16 52) 0 3px, oklch(0.59 0.16 48) 3px 6px); }
.dm-rs .dm-rs-plansalle-cadre{ overflow: auto; overscroll-behavior: contain; border-radius: 14px; border: 1px solid var(--rs-trait); background: var(--rs-teinte); scrollbar-width: thin; }
.dm-rs .dm-rs-plansalle{ position: relative; width: 100%; min-width: 380px; aspect-ratio: 16 / 9; background-color: var(--rs-teinte);
    background-image: radial-gradient(circle, oklch(0.80 0.02 285) 1px, transparent 1.2px); background-size: 24px 24px; }
.dm-rs .dm-rs-plansalle-table{ position: absolute; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; padding: 2px; min-width: 0; cursor: pointer;
    border-radius: 10px; border: 2px solid transparent; font: inherit; line-height: 1.1; text-align: center; overflow: hidden; user-select: none; container-type: size;
    box-shadow: 0 2px 6px -2px rgba(40,30,80,.25); transition: box-shadow .15s, transform .15s, background-color .5s, border-color .5s, color .5s; }
.dm-rs .dm-rs-plansalle-table:hover{ transform: translateY(-1px); box-shadow: 0 6px 14px -6px rgba(40,30,80,.45); }
.dm-rs .dm-rs-plansalle-table:focus-visible{ outline: 3px solid var(--rs-encre); outline-offset: 2px; }
.dm-rs .dm-rs-plansalle-table b{ display: block; max-width: 100%; font-size: clamp(12px, 34cqmin, 20px); font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none; }
.dm-rs .dm-rs-plansalle-table small{ display: block; max-width: 100%; font-size: clamp(10.5px, 21cqmin, 13px); font-weight: 600; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none; }
.dm-rs .dm-rs-etat-libre.dm-rs-plansalle-table{ background: oklch(0.94 0.07 155); border-color: oklch(0.68 0.14 155); color: oklch(0.34 0.10 155); }
.dm-rs .dm-rs-etat-bientot.dm-rs-plansalle-table{ background: oklch(0.93 0.11 90); border-color: oklch(0.72 0.16 75); color: oklch(0.38 0.10 60); }
.dm-rs .dm-rs-etat-occupee.dm-rs-plansalle-table{ background: oklch(0.55 0.19 25); border-color: oklch(0.45 0.17 25); color: #fff; }
.dm-rs .dm-rs-etat-liberer.dm-rs-plansalle-table{ border-color: oklch(0.50 0.15 50); color: #fff; background: repeating-linear-gradient(135deg, oklch(0.64 0.16 52) 0 7px, oklch(0.59 0.16 48) 7px 14px); }
.dm-rs .dm-rs-plansalle-table.dm-rs-signale{ z-index: 5; animation: dm-rs-signale 1.6s ease-out 3; }
.dm-rs .dm-rs-aff-tete{ margin: 16px 0 8px; }
.dm-rs .dm-rs-affluence-cadre{ overflow-x: auto; scrollbar-width: thin; padding-bottom: 2px; }
.dm-rs .dm-rs-affluence{ display: grid; grid-auto-flow: column; grid-auto-columns: minmax(18px, 1fr); gap: 3px; min-width: 420px; padding-bottom: 18px; }
.dm-rs .dm-rs-affluence-col{ position: relative; display: flex; align-items: flex-end; height: 64px; min-width: 0; padding: 0; border: 0; border-radius: 6px 6px 0 0; background: transparent; cursor: pointer; }
.dm-rs .dm-rs-affluence-col > i{ display: block; width: 100%; border-radius: 5px 5px 2px 2px; transition: filter .15s; }
.dm-rs .dm-rs-affluence-col:hover > i{ filter: brightness(.94); }
.dm-rs .dm-rs-affluence-col:focus-visible{ outline: 2px solid var(--rs-violet); outline-offset: 1px; }
.dm-rs .dm-rs-affluence-col > span{ position: absolute; left: 0; top: 100%; margin-top: 4px; font-size: 10px; font-weight: 600; color: var(--rs-pale); white-space: nowrap; font-variant-numeric: tabular-nums; pointer-events: none; }
.dm-rs .dm-rs-affluence-col.dm-rs-actif > i{ box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--rs-violet); }
.dm-rs .dm-rs-affluence-col.dm-rs-actif > span{ color: var(--rs-violet-fonce); font-weight: 800; }
.dm-rs .dm-rs-niv-0{ background: var(--rs-trait); }
.dm-rs .dm-rs-niv-1{ background: oklch(0.80 0.12 155); }
.dm-rs .dm-rs-niv-2{ background: oklch(0.83 0.14 90); }
.dm-rs .dm-rs-niv-3{ background: oklch(0.72 0.16 60); }
.dm-rs .dm-rs-niv-4{ background: oklch(0.58 0.20 25); }
.dm-rs .dm-rs-agenda-service{ list-style: none; margin: 0; padding: 0; }
.dm-rs .dm-rs-agenda-service > li{ border-bottom: 1px solid var(--rs-trait-doux); }
.dm-rs .dm-rs-agenda-service > li:last-child{ border-bottom: 0; }
.dm-rs .dm-rs-agenda-service-ligne{ display: grid; grid-template-columns: 54px minmax(0,1fr); gap: 10px; align-items: start; padding: 10px 2px; color: inherit; }
.dm-rs .dm-rs-agenda-service-heure{ font-size: 1.02rem; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.dm-rs .dm-rs-agenda-service-ligne b{ display: block; font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.dm-rs .dm-rs-agenda-service-vide{ padding: 16px 4px; text-align: center; font-size: 13px; color: var(--rs-pale); }
.dm-rs .dm-rs-lien-ligne{ width: 100%; border: 0; border-radius: 10px; background: transparent; font: inherit; text-align: left; cursor: pointer; min-height: 44px; }
.dm-rs .dm-rs-lien-ligne:hover{ background: var(--rs-teinte); }

/* Fenêtre d’une table (tablette au doigt : gros boutons, pas de confirmation) */
.dm-rs .dm-rs-fenetre-bo-modale{ position: relative; width: min(100%, 440px); max-height: 100%; display: flex; flex-direction: column; overflow: hidden; border-radius: 18px; background: #fff;
    box-shadow: 0 30px 60px -20px rgba(20,10,60,.5); font-family: 'Schibsted Grotesk', Inter, system-ui, sans-serif; color: var(--rs-encre); animation: dm-rs-modale .35s cubic-bezier(.2,.9,.3,1.15); }
.dm-rs .dm-rs-fen-tete{ display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 14px 16px 14px 20px; border-bottom: 1px solid var(--rs-trait-doux); }
.dm-rs .dm-rs-fen-tete h3{ margin: 0 0 2px; font-size: 1.15rem; font-weight: 700; letter-spacing: -0.02em; }
.dm-rs .dm-rs-ligne-boutons{ display: flex; align-items: center; gap: 8px; }
.dm-rs .dm-rs-fen-fermer, .dm-rs .dm-rs-modale-x{ flex: 0 0 auto; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 12px; background: transparent; color: var(--rs-gris); cursor: pointer; }
.dm-rs .dm-rs-modale-x{ position: absolute; top: 8px; right: 8px; color: var(--v-gris); }
.dm-rs .dm-rs-fen-fermer:hover, .dm-rs .dm-rs-modale-x:hover{ background: var(--rs-trait-doux); color: var(--rs-encre); }
.dm-rs .dm-rs-fen-corps{ padding: 14px 20px; overflow-y: auto; display: grid; gap: 14px; }
.dm-rs .dm-rs-fen-corps:empty{ display: none; }
.dm-rs .dm-rs-fen-pied{ display: flex; flex-direction: column; gap: 8px; padding: 12px 20px 16px; border-top: 1px solid var(--rs-trait-doux); background: var(--rs-teinte); }
.dm-rs .dm-rs-fiche{ margin: 0; display: grid; }
.dm-rs .dm-rs-fiche > div{ display: grid; grid-template-columns: 100px minmax(0,1fr); gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--rs-trait-doux); font-size: 13.5px; }
.dm-rs .dm-rs-fiche > div:last-child{ border-bottom: 0; }
.dm-rs .dm-rs-fiche dt{ color: var(--rs-gris); font-weight: 600; }
.dm-rs .dm-rs-fiche dd{ margin: 0; overflow-wrap: anywhere; }
.dm-rs .dm-rs-surtitre{ margin: 0 0 10px; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--rs-pale); }
.dm-rs .dm-rs-nombres{ display: grid; gap: 6px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.dm-rs .dm-rs-nombres button{ min-height: 52px; padding: 0 6px; border-radius: 12px; border: 1px solid var(--rs-trait); background: #fff; font: inherit; font-size: 16px; font-weight: 700;
    color: var(--rs-encre); cursor: pointer; font-variant-numeric: tabular-nums; }
.dm-rs .dm-rs-nombres button:hover{ border-color: var(--rs-violet); }
.dm-rs .dm-rs-nombres button.dm-rs-actif{ background: var(--rs-encre); border-color: var(--rs-encre); color: #fff; }
.dm-rs .dm-rs-nombres button.dm-rs-large{ grid-column: 1 / -1; font-size: 13.5px; font-weight: 600; }

/* ═══ Cuisine (KDS) : variante sombre, lisible à 2-3 m ══════════════════ */
.dm-rs .dm-rs-kds{
    --rs-encre: oklch(0.97 0.005 285); --rs-gris: oklch(0.78 0.02 282); --rs-pale: oklch(0.66 0.02 282);
    --rs-trait: oklch(0.36 0.03 280); --rs-trait-doux: oklch(0.30 0.025 280); --rs-teinte: oklch(0.17 0.02 280);
    --rs-fond-carte: oklch(0.23 0.025 280); --rs-vert: oklch(0.70 0.17 152); --rs-orange: oklch(0.78 0.16 70);
    --rs-rouge: oklch(0.66 0.21 25); --rs-violet: oklch(0.66 0.17 285);
    min-height: 100%; background: var(--rs-teinte); color: var(--rs-encre); font-size: 16px;
}
.dm-rs .dm-rs-ecran-barre{ position: sticky; top: 0; z-index: 4; display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; padding: 10px 16px; min-height: 68px;
    background: var(--rs-fond-carte); border-bottom: 1px solid var(--rs-trait); }
.dm-rs .dm-rs-ecran-titre{ flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 12px; }
.dm-rs .dm-rs-kds-h1{ margin: 0; font-size: 1.35rem; font-weight: 800; line-height: 1.15; }
.dm-rs .dm-rs-kds-h1 small{ display: block; font-size: 13px; font-weight: 600; color: var(--rs-gris); margin-top: 2px; }
.dm-rs .dm-rs-ecran-outils{ display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dm-rs .dm-rs-ecran-retour{ flex: 0 0 auto; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 13px; border: 1px solid var(--rs-trait); background: transparent; color: var(--rs-encre); cursor: pointer; }
.dm-rs .dm-rs-ecran-retour:hover{ border-color: var(--rs-gris); }
.dm-rs .dm-rs-ecran-retour .dm-rs-ico{ width: 20px; height: 20px; }
.dm-rs .dm-rs-compte{ display: inline-flex; align-items: baseline; gap: 6px; padding: 8px 12px; border-radius: 12px; background: var(--rs-teinte); border: 1px solid var(--rs-trait); font-size: 13px; font-weight: 600; color: var(--rs-gris); white-space: nowrap; }
.dm-rs .dm-rs-compte b{ font-size: 19px; font-weight: 800; color: var(--rs-encre); }
.dm-rs .dm-rs-compte.dm-rs-compte-occupe b{ color: var(--rs-orange); }
.dm-rs .dm-rs-kds-horloge{ font-family: ui-monospace, 'Cascadia Mono', Menlo, Consolas, monospace; font-size: 1.6rem; font-weight: 700; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.dm-rs .dm-rs-kds .dm-rs-btn-sobre{ background: transparent; color: var(--rs-encre); border-color: var(--rs-trait); }
.dm-rs .dm-rs-kds .dm-rs-son{ min-height: 48px; border-color: oklch(0.70 0.17 152 / .6); color: var(--rs-vert); }
.dm-rs .dm-rs-ecran-corps{ padding: 16px; }
.dm-rs .dm-rs-tickets{ display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); align-items: start; }
.dm-rs .dm-rs-ticket{ display: flex; flex-direction: column; min-width: 0; border-radius: 18px; background: var(--rs-fond-carte); border: 3px solid var(--rs-trait); overflow: hidden; }
.dm-rs .dm-rs-ticket.dm-rs-tombe{ animation: dm-rs-tombe .9s cubic-bezier(.2,.9,.3,1.15); }
.dm-rs .dm-rs-ticket-tete{ display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; background: oklch(0.27 0.03 280); }
.dm-rs .dm-rs-ticket-num{ font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; overflow-wrap: anywhere; }
.dm-rs .dm-rs-ticket-num .dm-rs-neuf{ vertical-align: 4px; }
.dm-rs .dm-rs-ticket-heure{ flex: 0 0 auto; padding: 5px 12px; border-radius: 10px; background: var(--rs-trait); font-family: ui-monospace, 'Cascadia Mono', Menlo, Consolas, monospace; font-size: 1.2rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.dm-rs .dm-rs-ticket-meta{ display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 16px 0; font-size: 15px; color: var(--rs-gris); }
.dm-rs .dm-rs-ticket-meta b{ color: var(--rs-encre); font-weight: 700; }
.dm-rs .dm-rs-ticket-delai{ display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.dm-rs .dm-rs-ticket-delai .dm-rs-ico{ width: 18px; height: 18px; }
.dm-rs .dm-rs-ticket-note{ display: flex; gap: 8px; margin: 10px 16px 0; padding: 10px 12px; border-radius: 11px; background: oklch(0.32 0.07 70); border-left: 4px solid var(--rs-orange); font-size: 15px; font-weight: 600; color: oklch(0.95 0.05 85); }
.dm-rs .dm-rs-ticket-lignes{ display: flex; flex-direction: column; gap: 8px; padding: 12px 12px 4px; }
.dm-rs .dm-rs-ticket-ligne{ display: flex; align-items: center; gap: 12px; width: 100%; min-height: 60px; padding: 10px 12px; border-radius: 13px; border: 2px solid var(--rs-trait);
    background: oklch(0.20 0.02 280); font: inherit; color: var(--rs-encre); text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background .2s, border-color .2s; }
.dm-rs .dm-rs-ticket-ligne:hover{ border-color: var(--rs-gris); }
.dm-rs .dm-rs-ticket-ligne:active{ transform: scale(.99); }
.dm-rs .dm-rs-ticket-ligne:focus-visible{ outline: 3px solid #fff; outline-offset: 2px; }
.dm-rs .dm-rs-ticket-coche{ flex: 0 0 auto; width: 36px; height: 36px; border-radius: 10px; border: 3px solid var(--rs-gris); display: grid; place-items: center; color: oklch(0.2 0.03 152); }
.dm-rs .dm-rs-ticket-coche .dm-rs-ico{ width: 22px; height: 22px; stroke-width: 3.5; }
.dm-rs .dm-rs-ticket-qte{ flex: 0 0 auto; min-width: 46px; height: 40px; padding: 0 8px; border-radius: 10px; display: grid; place-items: center; background: var(--rs-violet); color: #fff; font-size: 1.3rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.dm-rs .dm-rs-ticket-plat{ flex: 1 1 auto; min-width: 0; }
.dm-rs .dm-rs-ticket-plat > span:first-child{ display: block; font-size: 1.12rem; font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; }
.dm-rs .dm-rs-ticket-ligne.dm-rs-prete{ border-color: oklch(0.70 0.17 152 / .55); background: oklch(0.27 0.05 152); }
.dm-rs .dm-rs-ticket-ligne.dm-rs-prete .dm-rs-ticket-coche{ background: var(--rs-vert); border-color: var(--rs-vert); }
.dm-rs .dm-rs-ticket-ligne.dm-rs-prete .dm-rs-ticket-plat > span:first-child{ text-decoration: line-through; text-decoration-thickness: 2px; color: var(--rs-gris); }
.dm-rs .dm-rs-ticket-ligne.dm-rs-prete .dm-rs-ticket-qte{ background: var(--rs-trait); }
.dm-rs .dm-rs-ticket-options{ display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.dm-rs .dm-rs-kopt{ display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 9px; border: 2px solid var(--rs-trait); background: oklch(0.30 0.025 280); font-size: 1rem; font-weight: 700; color: var(--rs-encre); }
.dm-rs .dm-rs-kopt-cuisson{ padding: 5px 12px; border-color: transparent; background: oklch(0.88 0.16 95); color: oklch(0.22 0.04 90); font-size: 1.3rem; font-weight: 800; text-transform: uppercase; letter-spacing: .01em; }
.dm-rs .dm-rs-kopt-alerte{ border-color: transparent; background: var(--rs-rouge); color: #fff; font-size: 1.08rem; font-weight: 800; text-transform: uppercase; }
.dm-rs .dm-rs-ticket-ligne.dm-rs-prete .dm-rs-ticket-options{ opacity: .5; }
.dm-rs .dm-rs-ticket-actions{ display: flex; flex-wrap: wrap; gap: 8px; padding: 12px; }
.dm-rs .dm-rs-ticket-actions .dm-rs-btn{ flex: 1 1 0; min-width: 0; padding-left: 12px; padding-right: 12px; }
.dm-rs .dm-rs-btn-geant{ min-height: 56px; padding: 14px 18px; font-size: 16px; font-weight: 700; border-radius: 14px; }
.dm-rs .dm-rs-btn-geant .dm-rs-ico{ width: 20px; height: 20px; }
.dm-rs .dm-rs-kds .dm-rs-btn-primaire{ background: var(--rs-violet); box-shadow: none; }
.dm-rs .dm-rs-btn-vert{ background: oklch(0.62 0.17 152); color: oklch(0.16 0.03 152); }
.dm-rs .dm-rs-kds .dm-rs-btn:disabled{ opacity: 1; background: oklch(0.30 0.025 280); color: var(--rs-pale); }
.dm-rs .dm-rs-ticket-actions .dm-rs-btn.dm-rs-kds-imprimer{ flex: 0 0 auto; min-width: 56px; min-height: 56px; padding: 0 14px; }
.dm-rs .dm-rs-kds-imprimer .dm-rs-ico{ width: 22px; height: 22px; }
.dm-rs .dm-rs-ticket.dm-rs-ticket-urgent{ border-color: var(--rs-orange); }
.dm-rs .dm-rs-ticket.dm-rs-ticket-urgent .dm-rs-ticket-heure{ background: var(--rs-orange); color: oklch(0.2 0.03 60); }
.dm-rs .dm-rs-ticket.dm-rs-ticket-retard{ border-color: var(--rs-rouge); }
.dm-rs .dm-rs-ticket.dm-rs-ticket-retard .dm-rs-ticket-tete{ background: oklch(0.36 0.10 25); }
.dm-rs .dm-rs-ticket.dm-rs-ticket-retard .dm-rs-ticket-heure{ background: var(--rs-rouge); color: #fff; }
.dm-rs .dm-rs-ticket-retard .dm-rs-ticket-delai{ color: oklch(0.80 0.14 25); }
.dm-rs .dm-rs-ticket.dm-rs-ticket-pret{ border-color: var(--rs-vert); }
.dm-rs .dm-rs-kds-vide{ padding: 70px 20px; text-align: center; color: var(--rs-gris); }
.dm-rs .dm-rs-kds-vide .dm-rs-ico{ width: 72px; height: 72px; margin: 0 auto 16px; display: block; color: var(--rs-pale); stroke-width: 1.2; }
.dm-rs .dm-rs-kds-vide b{ display: block; font-size: 1.6rem; font-weight: 800; color: var(--rs-encre); }
.dm-rs .dm-rs-kds-vide p{ margin: 10px 0 0; font-size: 16px; }

/* ═══ Notifications, messages brefs, calques ═════════════════════════════ */
.dm-rs .dm-rs-toast-zone{ position: absolute; top: 50px; right: 14px; left: 14px; z-index: 8; display: flex; justify-content: flex-end; pointer-events: none; }
.dm-rs .dm-rs-toast{ pointer-events: auto; display: flex; align-items: center; gap: 10px; max-width: min(440px, 100%); min-width: 0; padding: 10px 8px 10px 10px; border-radius: 16px; background: oklch(0.24 0.03 282); color: #fff;
    box-shadow: 0 20px 40px -16px rgba(20,10,60,.55); font-family: 'Schibsted Grotesk', Inter, sans-serif; animation: dm-rs-toast .55s cubic-bezier(.2,.9,.3,1.2); }
.dm-rs .dm-rs-toast-ico{ width: 38px; height: 38px; flex: 0 0 auto; border-radius: 12px; display: grid; place-items: center; background: var(--rs-degrade); }
.dm-rs .dm-rs-toast-ico .dm-rs-ico{ animation: dm-rs-sonne 1s ease-in-out 2; transform-origin: 50% 10%; }
.dm-rs .dm-rs-toast-txt{ flex: 1; min-width: 0; }
.dm-rs .dm-rs-toast-txt b{ display: block; font-size: 14px; }
.dm-rs .dm-rs-toast-txt small{ display: block; font-size: 12px; color: rgba(255,255,255,.78); line-height: 1.35; }
.dm-rs .dm-rs-toast .dm-rs-btn-primaire{ background: #fff; color: var(--rs-violet-fonce); box-shadow: none; }
.dm-rs .dm-rs-toast-x{ width: 44px; height: 44px; flex: 0 0 auto; display: grid; place-items: center; border: 0; border-radius: 10px; background: transparent; color: rgba(255,255,255,.7); cursor: pointer; }
.dm-rs .dm-rs-toast-x:hover{ color: #fff; background: rgba(255,255,255,.1); }
.dm-rs .dm-rs-flash-zone{ position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 9; display: flex; justify-content: center; pointer-events: none; }
.dm-rs .dm-rs-flash{ padding: 11px 16px; border-radius: 12px; background: oklch(0.24 0.03 282); color: #fff; font-size: 13.5px; font-weight: 600; box-shadow: 0 12px 28px -12px rgba(20,10,60,.6);
    font-family: 'Schibsted Grotesk', Inter, sans-serif; animation: dm-rs-monter .3s ease; }
.dm-rs .dm-rs-calque{ display: none; }
.dm-rs .dm-rs-calque.dm-rs-ouvert{ position: absolute; inset: 38px 0 0; z-index: 10; display: grid; place-items: center; padding: 16px; }
.dm-rs .dm-rs-voile{ position: absolute; inset: 0; background: oklch(0.2 0.03 282 / .45); backdrop-filter: blur(2px); animation: dm-rs-fondu .25s ease; }

/* ═══ BO étroit (container) : comme bo.css sur tablette portrait / téléphone ═══ */
@container (max-width: 760px){
    .dm-rs .dm-rs-mise-panneau{ grid-template-columns: minmax(0,1fr); }
    .dm-rs .dm-rs-grille-2{ grid-template-columns: minmax(0,1fr); }
}
@container (max-width: 560px){
    .dm-rs .dm-rs-b-page{ padding: 16px 14px 22px; }
    .dm-rs .dm-rs-b-h1{ font-size: 1.4rem; }
    .dm-rs .dm-rs-deco{ display: none; }
    .dm-rs .dm-rs-grille-chiffres{ grid-template-columns: repeat(2, minmax(0,1fr)); }
    .dm-rs .dm-rs-grille-chiffres > .dm-rs-principal{ grid-column: 1 / -1; }
    .dm-rs .dm-rs-val{ font-size: 1.3rem; }
    .dm-rs .dm-rs-tickets{ grid-template-columns: minmax(0,1fr); }
    .dm-rs .dm-rs-kds-etroit{ display: none; }
    .dm-rs .dm-rs-ecran-barre{ padding: 10px 12px; }
    .dm-rs .dm-rs-ecran-corps{ padding: 12px; }
    .dm-rs .dm-rs-agenda li{ grid-template-columns: 46px minmax(0,1fr); }
    .dm-rs .dm-rs-agenda li > .dm-rs-pastille{ grid-column: 2; justify-self: start; }
}

/* ═══ Responsive de la section ═══════════════════════════════════════════ */
@media (max-width: 1180px){
    .dm-rs .dm-rs-scene{ grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 16px; }
    .dm-rs .dm-rs-fil li small{ display: none; }
}
@media (max-width: 899px){
    .dm-rs{ padding: 56px 16px 60px; }
    .dm-rs .dm-rs-entete{ margin-bottom: 22px; }
    .dm-rs .dm-rs-chapo{ font-size: 15.5px; }
    .dm-rs .dm-rs-pilote{ flex-direction: column; align-items: stretch; gap: 10px; }
    .dm-rs .dm-rs-fil{ width: 100%; }
    .dm-rs .dm-rs-fil li{ flex: 1 1 0; flex-direction: column; text-align: center; gap: 6px; padding: 8px 4px; }
    .dm-rs .dm-rs-fil li b{ font-size: 12px; }
    .dm-rs .dm-rs-recommencer{ align-self: center; }
    .dm-rs .dm-rs-consigne{ margin: 12px 0 14px; font-size: 14px; }
    .dm-rs .dm-rs-onglets{ position: sticky; top: 72px; z-index: 20; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin: 0 0 14px; border-radius: 15px;
        background: #fff; border: 1px solid var(--dmrs-trait); box-shadow: 0 8px 24px -14px rgba(40,30,80,.3); }
    .dm-rs .dm-rs-onglets button{ position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; border: 0; border-radius: 11px;
        background: transparent; cursor: pointer; font-size: 14.5px; font-weight: 650; color: var(--dmrs-gris); }
    .dm-rs .dm-rs-onglets button[aria-selected="true"]{ background: var(--dmrs-encre); color: #fff; }
    .dm-rs .dm-rs-pastille-tab{ min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; display: inline-grid; place-items: center; font-size: 11px; font-weight: 800; color: #fff;
        background: oklch(0.62 0.2 25); animation: dm-rs-pop .4s cubic-bezier(.2,.9,.3,1.4); }
    .dm-rs .dm-rs-pastille-tab[hidden]{ display: none; }
    .dm-rs .dm-rs-scene{ display: block; }
    .dm-rs[data-onglet="client"] .dm-rs-face-bo, .dm-rs[data-onglet="bo"] .dm-rs-face-client{ display: none; }
    .dm-rs .dm-rs-legende{ display: none; }
    .dm-rs .dm-rs-fenetre{ height: auto; min-height: 560px; border-radius: 18px; }
    .dm-rs .dm-rs-vitrine, .dm-rs .dm-rs-bo{ overflow: visible; }
    .dm-rs .dm-rs-v-tete, .dm-rs .dm-rs-v-etape-tete, .dm-rs .dm-rs-ecran-barre{ position: static; }
    .dm-rs .dm-rs-v-barre{ bottom: 12px; }
    .dm-rs .dm-rs-calque.dm-rs-ouvert{ position: fixed; inset: 0; z-index: 70; padding: 16px; }
    .dm-rs .dm-rs-feuille, .dm-rs .dm-rs-fenetre-bo-modale{ max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); }
    .dm-rs .dm-rs-toast-zone{ position: fixed; top: auto; bottom: 16px; z-index: 60; }
    .dm-rs .dm-rs-flash-zone{ position: fixed; z-index: 61; bottom: 90px; }
    .dm-rs .dm-rs-mobile-seul{ display: inline-flex; }
    .dm-rs .dm-rs-atouts{ grid-template-columns: 1fr; gap: 10px; margin-top: 22px; }
    .dm-rs .dm-rs-fin{ padding: 22px 20px; }
    .dm-rs .dm-rs-cta{ width: 100%; justify-content: center; }
}
@media (max-width: 380px){
    .dm-rs .dm-rs-v-plat{ flex-wrap: wrap; }
    .dm-rs .dm-rs-v-plat-pied{ flex-direction: row; align-items: center; justify-content: space-between; width: 100%; }
}

/* ═══ Animations ═════════════════════════════════════════════════════════ */
@keyframes dm-rs-pop{ 0%{ transform: scale(.4); opacity: 0; } 100%{ transform: scale(1); opacity: 1; } }
@keyframes dm-rs-monter{ from{ transform: translateY(16px); opacity: 0; } }
@keyframes dm-rs-fondu{ from{ opacity: 0; } }
@keyframes dm-rs-modale{ from{ opacity: 0; transform: translateY(14px) scale(.97); } }
@keyframes dm-rs-toast{ from{ opacity: 0; transform: translate3d(30px, -10px, 0) scale(.95); } }
@keyframes dm-rs-sonne{ 0%, 100%{ transform: rotate(0); } 20%{ transform: rotate(16deg); } 40%{ transform: rotate(-14deg); } 60%{ transform: rotate(9deg); } 80%{ transform: rotate(-5deg); } }
@keyframes dm-rs-tourne{ to{ transform: rotate(360deg); } }
@keyframes dm-rs-battement{ 50%{ opacity: .35; transform: scale(.8); } }
@keyframes dm-rs-tombe{ 0%{ opacity: 0; transform: translateY(-60px) rotate(-2deg); } 60%{ opacity: 1; transform: translateY(6px) rotate(.5deg); } 100%{ transform: none; } }
@keyframes dm-rs-signale{ 0%{ box-shadow: 0 0 0 0 oklch(0.72 0.16 75 / .8); } 100%{ box-shadow: 0 0 0 16px oklch(0.72 0.16 75 / 0); } }
@keyframes dm-rs-halo-kpi{ 0%{ box-shadow: 0 0 0 0 oklch(0.58 0.21 288 / .55); } 100%{ box-shadow: 0 0 0 14px oklch(0.58 0.21 288 / 0); } }
@keyframes dm-rs-monte{ 0%{ box-shadow: 0 0 0 0 oklch(0.62 0.15 155 / .5); } 100%{ box-shadow: 0 0 0 12px oklch(0.62 0.15 155 / 0); } }

@media (prefers-reduced-motion: reduce){
    .dm-rs *, .dm-rs *::before, .dm-rs *::after{ animation: none !important; transition: none !important; }
}
