/* Osark Service, application (repris de la maquette cliquable validée par Florian le 05/10/2026).
   Palette : rouge bordeaux et blanc cassé, mode nuit. Les contrastes ont été mesurés dans le navigateur sur la maquette ; toute nouvelle paire de couleurs se mesure.
   Police Bricolage Grotesque servie depuis ce dossier (aucun CDN, note 20 décision A14). */
@font-face {
  font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(fonts/bricolage-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(fonts/bricolage-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: light;
  --police-titre: 'Bricolage Grotesque', system-ui, 'Segoe UI', Roboto, sans-serif;
  --police: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  /* Clair : blanc cassé et bordeaux */
  --fond: #F3ECE0;
  --surface: #FBF7F0;
  --surface-2: #EADFCF;
  --ligne: #D8CBB9;
  --ligne-forte: #85746A;
  --texte: #2A1C1F;
  --texte-2: #594950;
  --primaire: #7A1E33;
  --primaire-fort: #5C1526;
  --sur-primaire: #FBF4EA;
  --accent: #7A1E33;
  --teinte-bordeaux: #EBD2D8;
  --ok: #2B6648;
  --teinte-ok: #D9E8DC;
  --attention: #86500A;
  --teinte-attention: #F5E2BC;
  --neutre: #594950;
  --teinte-neutre: #E4DACB;
  --focus: #1B62A8;
  --ombre: 0 1px 2px rgba(42, 28, 31, .10), 0 6px 20px rgba(42, 28, 31, .10);
  --scrim: rgba(30, 18, 21, .52);
}

:root[data-mq="dark"] {
  color-scheme: dark;
  --fond: #150F12;
  --surface: #1F171A;
  --surface-2: #2B2125;
  --ligne: #3B2E33;
  --ligne-forte: #9A888C;
  --texte: #F4EBE1;
  --texte-2: #C9B9B5;
  --primaire: #A93450;
  --primaire-fort: #C2425F;
  --sur-primaire: #FFF6EC;
  --accent: #EBA7B7;
  --teinte-bordeaux: #3E1E28;
  --ok: #8FD1AC;
  --teinte-ok: #1D3327;
  --attention: #F0C56E;
  --teinte-attention: #3A2C10;
  --neutre: #C9B9B5;
  --teinte-neutre: #2E2428;
  --focus: #8CC4FF;
  --ombre: 0 1px 2px rgba(0, 0, 0, .5), 0 8px 24px rgba(0, 0, 0, .45);
  --scrim: rgba(0, 0, 0, .62);
}

@media (prefers-color-scheme: dark) {
  :root[data-mq="auto"] {
    color-scheme: dark;
    --fond: #150F12;
    --surface: #1F171A;
    --surface-2: #2B2125;
    --ligne: #3B2E33;
    --ligne-forte: #9A888C;
    --texte: #F4EBE1;
    --texte-2: #C9B9B5;
    --primaire: #A93450;
    --primaire-fort: #C2425F;
    --sur-primaire: #FFF6EC;
    --accent: #EBA7B7;
    --teinte-bordeaux: #3E1E28;
    --ok: #8FD1AC;
    --teinte-ok: #1D3327;
    --attention: #F0C56E;
    --teinte-attention: #3A2C10;
    --neutre: #C9B9B5;
    --teinte-neutre: #2E2428;
    --focus: #8CC4FF;
    --ombre: 0 1px 2px rgba(0, 0, 0, .5), 0 8px 24px rgba(0, 0, 0, .45);
    --scrim: rgba(0, 0, 0, .62);
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--police);
  font-size: 16px;
  line-height: 1.4;
  color: var(--texte);
  background: var(--fond);
  -webkit-text-size-adjust: 100%;
  overscroll-behavior: none;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--police-titre); margin: 0; line-height: 1.15; letter-spacing: -.01em; }
p { margin: 0; }
svg.ic { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
svg.ic.sm { width: 18px; height: 18px; }
svg.ic.xs { width: 16px; height: 16px; }
svg.ic.lg { width: 28px; height: 28px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ---------- Barre de la maquette (hors application) ---------- */
.mq-root { height: 100%; display: flex; flex-direction: column; background: var(--fond); }
.mq-bar {
  flex: none; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px;
  padding: 8px 16px; background: #231519; color: #F4EBE1; font-size: 14px;
}
.mq-bar .mq-titre { font-family: var(--police-titre); font-weight: 600; font-size: 15px; margin-right: auto; display: flex; flex-direction: column; line-height: 1.2; }
.mq-bar .mq-titre small { font-family: var(--police); font-weight: 400; font-size: 12px; color: #D9C9C2; }
.mq-bar .groupe { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.mq-bar .groupe > span { font-size: 12px; color: #D9C9C2; margin-right: 4px; }
.mq-bar button {
  min-height: 36px; padding: 6px 12px; border-radius: 8px; border: 1px solid #5A4A4F; background: transparent; color: #F4EBE1; font-size: 13px;
}
.mq-bar button[aria-pressed="true"] { background: #F4EBE1; color: #231519; border-color: #F4EBE1; font-weight: 600; }
.mq-bar button:hover { border-color: #F4EBE1; }
.mq-stage { flex: 1; min-height: 0; display: flex; justify-content: center; align-items: flex-start; overflow: auto; padding: 12px; background: #CFC4B4; }
:root[data-mq="dark"] .mq-stage { background: #0B0708; }
@media (prefers-color-scheme: dark) { :root[data-mq="auto"] .mq-stage { background: #0B0708; } }
.mq-cadre { position: relative; transform-origin: top center; flex: none; }
.mq-cadre.fluide { width: 100%; height: 100%; }
.mq-cadre.fixe { box-shadow: 0 10px 40px rgba(0, 0, 0, .35); border-radius: 22px; overflow: hidden; }
@media (max-width: 760px) {
  .mq-bar { display: none; }
  .mq-stage { padding: 0; background: var(--fond); }
  .mq-cadre.fixe { box-shadow: none; border-radius: 0; width: 100% !important; height: 100% !important; transform: none !important; }
}

/* ---------- Application ---------- */
#app {
  position: relative; width: 100%; height: 100%; overflow: hidden;
  display: grid; background: var(--fond); color: var(--texte);
  grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto;
  grid-template-areas: "hdr" "main" "nav";
}
#app[data-size="tablet"], #app[data-size="desktop"] {
  grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr);
  grid-template-areas: "nav hdr" "nav main";
}
.hdr {
  grid-area: hdr; display: flex; align-items: center; gap: 4px; padding: 6px 8px 6px 16px; min-height: 56px;
  background: var(--surface); border-bottom: 1px solid var(--ligne);
}
.hdr .marque { display: flex; align-items: center; gap: 10px; min-width: 0; margin-right: auto; }
.hdr .logo { width: 32px; height: 32px; border-radius: 9px; background: var(--primaire); color: var(--sur-primaire); display: grid; place-items: center; font-family: var(--police-titre); font-weight: 700; font-size: 17px; flex: none; }
.hdr .nom { font-family: var(--police-titre); font-weight: 600; font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.hdr .nom small { display: block; font-family: var(--police); font-weight: 400; font-size: 12px; color: var(--texte-2); }
.btn-icone {
  position: relative; width: 48px; height: 48px; border-radius: 12px; border: 0; background: transparent; color: var(--texte);
  display: grid; place-items: center; flex: none;
}
.btn-icone:hover { background: var(--surface-2); }
.btn-icone .badge { position: absolute; top: 4px; right: 2px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--primaire); color: var(--sur-primaire); font-size: 12px; font-weight: 700; display: grid; place-items: center; border: 2px solid var(--surface); }
.pastille-mq {
  min-height: 36px; padding: 4px 12px; border-radius: 18px; border: 1.5px dashed var(--ligne-forte); background: transparent; color: var(--texte-2); font-size: 13px; font-weight: 600; flex: none;
}
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--teinte-bordeaux); color: var(--accent); font-weight: 700; display: grid; place-items: center; border: 0; font-family: var(--police-titre); flex: none; }

.nav { grid-area: nav; background: var(--surface); }
#app[data-size="phone"] .nav {
  display: flex; border-top: 1px solid var(--ligne); padding-bottom: env(safe-area-inset-bottom);
}
#app[data-size="phone"] .nav .nav-item { flex: 1 1 0; min-width: 0; min-height: 64px; flex-direction: column; justify-content: center; gap: 2px; font-size: 12px; padding: 6px 2px; }
#app[data-size="tablet"] .nav, #app[data-size="desktop"] .nav {
  display: flex; flex-direction: column; gap: 4px; padding: 12px 8px; border-right: 1px solid var(--ligne); overflow-y: auto;
}
#app[data-size="tablet"] .nav { width: 88px; }
#app[data-size="desktop"] .nav { width: 232px; }
#app[data-size="tablet"] .nav .nav-item { flex-direction: column; gap: 4px; font-size: 12px; padding: 10px 2px; min-height: 64px; justify-content: center; }
#app[data-size="desktop"] .nav .nav-item { flex-direction: row; gap: 12px; font-size: 16px; padding: 0 14px; min-height: 52px; justify-content: flex-start; }
.nav .nav-marque { display: none; }
#app[data-size="desktop"] .nav .nav-marque { display: flex; align-items: center; gap: 10px; padding: 6px 10px 14px; font-family: var(--police-titre); font-weight: 700; font-size: 18px; }
#app[data-size="desktop"] .nav .nav-marque .logo { width: 34px; height: 34px; border-radius: 10px; background: var(--primaire); color: var(--sur-primaire); display: grid; place-items: center; }
.nav-item {
  display: flex; align-items: center; border: 0; background: transparent; color: var(--texte-2); border-radius: 12px; font-weight: 600; text-align: center; position: relative;
}
.nav-item:hover { background: var(--surface-2); }
.nav-item[aria-current="page"] { color: var(--accent); background: var(--teinte-bordeaux); }
.nav-item .badge-nav { position: absolute; top: 6px; left: 54%; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--primaire); color: var(--sur-primaire); font-size: 11px; display: grid; place-items: center; }
#app[data-size="desktop"] .nav .nav-item .badge-nav { position: static; margin-left: auto; }
.nav .nav-bas { margin-top: auto; display: none; }
#app[data-size="desktop"] .nav .nav-bas { display: block; padding: 10px; font-size: 13px; color: var(--texte-2); }

.main { grid-area: main; min-width: 0; min-height: 0; overflow-y: auto; overflow-x: hidden; padding: 16px; position: relative; }
.main.plein { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.titre-ecran { display: flex; align-items: flex-end; gap: 12px; justify-content: space-between; flex-wrap: wrap; margin-bottom: 12px; }
.titre-ecran h1 { font-size: 26px; font-weight: 700; }
.titre-ecran .sous { color: var(--texte-2); font-size: 14px; }
.titre-ecran > div { min-width: 0; }

/* ---------- Composants ---------- */
.btn {
  min-height: 48px; padding: 0 18px; border-radius: 12px; border: 1.5px solid var(--ligne-forte); background: var(--surface); color: var(--texte);
  font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-align: center; line-height: 1.15;
}
.btn:hover { background: var(--surface-2); }
.btn-pri { background: var(--primaire); color: var(--sur-primaire); border-color: var(--primaire); }
.btn-pri:hover { background: var(--primaire-fort); border-color: var(--primaire-fort); }
.btn-ghost { border-color: transparent; background: transparent; }
.btn-warn { border-color: var(--attention); color: var(--attention); background: transparent; }
.btn-sm { min-height: 40px; padding: 0 12px; font-size: 14px; border-radius: 10px; }
.btn-bloc { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { background: var(--surface-2); color: var(--texte-2); border-color: var(--ligne); cursor: not-allowed; text-decoration: line-through; text-decoration-color: transparent; }

.seg { display: inline-flex; background: var(--surface-2); border-radius: 14px; padding: 4px; gap: 2px; max-width: 100%; }
.seg button {
  min-height: 44px; padding: 0 16px; border: 0; border-radius: 10px; background: transparent; color: var(--texte-2); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
}
.seg button[aria-pressed="true"], .seg button[aria-selected="true"] { background: var(--surface); color: var(--accent); box-shadow: var(--ombre); }
.seg.bloc { display: flex; width: 100%; }
.seg.bloc button { flex: 1 1 0; justify-content: center; min-width: 0; padding: 0 8px; }

.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chips.defile { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.chip {
  min-height: 44px; min-width: 48px; padding: 0 14px; border-radius: 22px; border: 1.5px solid var(--ligne-forte); background: var(--surface); color: var(--texte);
  font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 6px; flex: none;
}
.chip[aria-pressed="true"] { background: var(--primaire); color: var(--sur-primaire); border-color: var(--primaire); }
.chip.rond { width: 48px; padding: 0; }

.pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px 3px 7px; border-radius: 14px; font-size: 13px; font-weight: 700; white-space: nowrap; background: var(--teinte-neutre); color: var(--neutre); }
.pill.avenir { background: var(--teinte-neutre); color: var(--neutre); }
.pill.arrive { background: var(--teinte-ok); color: var(--ok); }
.pill.honore { background: var(--teinte-neutre); color: var(--texte); }
.pill.noshow { background: var(--teinte-attention); color: var(--attention); }
.pill.annule { background: var(--teinte-neutre); color: var(--neutre); text-decoration: line-through; }
.pill.attente { background: var(--teinte-attention); color: var(--attention); }
.pill.warn { background: var(--teinte-attention); color: var(--attention); }
.pill.accent { background: var(--teinte-bordeaux); color: var(--accent); }

.card { background: var(--surface); border: 1px solid var(--ligne); border-radius: 16px; padding: 14px 16px; }
.card + .card { margin-top: 12px; }
.card h2 { font-size: 18px; margin-bottom: 8px; }
.muted { color: var(--texte-2); }
.small { font-size: 13px; }
.row { display: flex; align-items: center; gap: 10px; min-width: 0; }
.row.between { justify-content: space-between; }
.row.wrap { flex-wrap: wrap; }
.grow { flex: 1 1 0; min-width: 0; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.sep { height: 1px; background: var(--ligne); margin: 12px 0; }

/* ---------- Bannières, toasts ---------- */
.bandeau { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; margin-bottom: 12px; font-size: 14px; min-width: 0; }
.bandeau.attention { background: var(--teinte-attention); color: var(--attention); border: 1px solid var(--attention); }
.bandeau.info { background: var(--teinte-bordeaux); color: var(--accent); border: 1px solid var(--accent); }
.bandeau.ok { background: var(--teinte-ok); color: var(--ok); border: 1px solid var(--ok); }
.bandeau .grow { color: var(--texte); }
.bandeau b { font-weight: 700; }

.couche { position: absolute; inset: 0; pointer-events: none; z-index: 50; }
.couche > * { pointer-events: auto; }
.toasts { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 0 12px; pointer-events: none; z-index: 70; }
#app[data-size="phone"] .toasts { bottom: 76px; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 12px; max-width: 520px; width: 100%; background: #2B1D21; color: #F8EFE5; padding: 10px 10px 10px 16px; border-radius: 14px; box-shadow: var(--ombre); font-size: 15px; }
:root[data-mq="dark"] .toast { background: #F1E6DA; color: #2A1C1F; }
@media (prefers-color-scheme: dark) { :root[data-mq="auto"] .toast { background: #F1E6DA; color: #2A1C1F; } }
.toast .grow { min-width: 0; }
.toast button { min-height: 44px; padding: 0 12px; border: 0; background: transparent; color: inherit; font-weight: 700; text-decoration: underline; border-radius: 10px; }
.alerte-resa { position: absolute; top: 8px; left: 8px; right: 8px; z-index: 65; display: flex; gap: 12px; align-items: center; background: var(--primaire); color: var(--sur-primaire); padding: 12px 14px; border-radius: 16px; box-shadow: var(--ombre); max-width: 640px; margin: 0 auto; }
.alerte-resa .grow { min-width: 0; }
.alerte-resa .btn { background: var(--sur-primaire); color: var(--primaire-fort); border-color: var(--sur-primaire); min-height: 44px; }
:root[data-mq="dark"] .alerte-resa .btn { color: #4B1020; }
.alerte-resa .ic-cloche { animation: sonne 1.2s ease-in-out 2; transform-origin: 50% 10%; }
@keyframes sonne { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(14deg); } 40% { transform: rotate(-12deg); } 60% { transform: rotate(8deg); } 80% { transform: rotate(-6deg); } }

/* ---------- Feuilles (fenêtres) ---------- */
.scrim { position: absolute; inset: 0; background: var(--scrim); z-index: 60; display: flex; align-items: flex-end; justify-content: center; }
.feuille { background: var(--surface); width: 100%; max-height: 92%; display: flex; flex-direction: column; border-radius: 22px 22px 0 0; box-shadow: var(--ombre); }
#app[data-size="tablet"] .scrim, #app[data-size="desktop"] .scrim { align-items: center; padding: 24px; }
#app[data-size="tablet"] .feuille, #app[data-size="desktop"] .feuille { width: 560px; max-width: 100%; border-radius: 22px; max-height: 92%; }
.feuille.large { }
#app[data-size="desktop"] .feuille.large { width: 720px; }
.feuille-hd { display: flex; align-items: center; gap: 10px; padding: 16px 16px 8px 20px; }
.feuille-hd h2 { font-size: 20px; flex: 1 1 0; min-width: 0; }
.poignee { display: none; }
#app[data-size="phone"] .poignee { display: block; width: 44px; height: 5px; border-radius: 3px; background: var(--ligne-forte); margin: 8px auto 0; }
.feuille-bd { padding: 8px 20px 16px; overflow-y: auto; min-height: 0; }
.feuille-ft { padding: 12px 20px calc(16px + env(safe-area-inset-bottom)); display: flex; gap: 10px; flex-wrap: wrap; border-top: 1px solid var(--ligne); }
.feuille-ft .btn { flex: 1 1 140px; }

/* ---------- Formulaires ---------- */
.champ { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; min-width: 0; }
.champ > label, .champ > .lib { font-weight: 700; font-size: 14px; }
.champ input[type="text"], .champ input[type="tel"], .champ input[type="password"], .champ input[type="time"], .champ select, .champ textarea {
  min-height: 48px; padding: 10px 12px; border-radius: 12px; border: 1.5px solid var(--ligne-forte); background: var(--surface); width: 100%; min-width: 0;
}
.champ textarea { min-height: 72px; resize: vertical; }
.champ .aide { font-size: 13px; color: var(--texte-2); }
.interrupteur { display: flex; align-items: center; gap: 12px; min-height: 52px; }
.interrupteur .grow { min-width: 0; }
.sw { position: relative; width: 56px; height: 32px; flex: none; }
.sw input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 2; }
.sw .piste { position: absolute; inset: 0; border-radius: 16px; background: var(--surface-2); border: 2px solid var(--ligne-forte); transition: background .15s; }
.sw .bouton { position: absolute; top: 4px; left: 4px; width: 24px; height: 24px; border-radius: 50%; background: var(--ligne-forte); transition: transform .15s; display: grid; place-items: center; color: var(--surface); }
.sw input:checked ~ .piste { background: var(--primaire); border-color: var(--primaire); }
.sw input:checked ~ .bouton { transform: translateX(24px); background: var(--sur-primaire); color: var(--primaire); }
.sw input:focus-visible ~ .piste { outline: 3px solid var(--focus); outline-offset: 2px; }
.sw .bouton svg { width: 14px; height: 14px; stroke-width: 3; }
.sw input:not(:checked) ~ .bouton svg { display: none; }
.pas { display: inline-flex; align-items: center; gap: 4px; }
.pas button { width: 48px; height: 48px; border-radius: 12px; border: 1.5px solid var(--ligne-forte); background: var(--surface); display: grid; place-items: center; }
.pas output { min-width: 44px; text-align: center; font-family: var(--police-titre); font-size: 22px; font-weight: 700; }

/* ---------- Service du jour ---------- */
.service-grille { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
#app[data-size="tablet"] .service-grille, #app[data-size="desktop"] .service-grille { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: start; }
.jauge { padding: 14px 16px; }
.jauge .chiffres { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.jauge .gros { font-family: var(--police-titre); font-size: 34px; font-weight: 700; line-height: 1; }
.jauge .barre { height: 14px; border-radius: 7px; background: var(--surface-2); margin: 10px 0 8px; display: flex; overflow: hidden; border: 1px solid var(--ligne); }
.jauge .barre i { display: block; height: 100%; }
.jauge .barre .b-arrive { background: var(--ok); }
.jauge .barre .b-avenir { background: var(--accent); }
.jauge .barre .b-forc { background: repeating-linear-gradient(45deg, var(--attention), var(--attention) 4px, transparent 4px, transparent 8px); }
.jauge .legende { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--texte-2); }
.jauge .legende i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.groupe-heure { margin-top: 14px; }
.groupe-heure h3 { font-size: 15px; color: var(--texte-2); display: flex; justify-content: space-between; margin: 0 4px 6px; font-family: var(--police); font-weight: 700; }
.resa {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; width: 100%; text-align: left;
  background: var(--surface); border: 1px solid var(--ligne); border-radius: 14px; padding: 10px 12px; min-height: 64px; margin-bottom: 8px; color: var(--texte);
}
.resa:hover { border-color: var(--ligne-forte); }
.resa[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.resa .h { font-family: var(--police-titre); font-weight: 700; font-size: 18px; min-width: 52px; }
.resa .qui { min-width: 0; }
.resa .qui b { display: block; font-size: 17px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.resa .qui .meta { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 3px; }
.resa .couv { font-family: var(--police-titre); font-weight: 700; font-size: 22px; display: flex; flex-direction: column; align-items: flex-end; line-height: 1; gap: 6px; }
.resa .couv small { font-family: var(--police); font-weight: 600; font-size: 12px; color: var(--texte-2); }
.tag { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; padding: 2px 8px; border-radius: 8px; background: var(--surface-2); color: var(--texte); }
.tag.sans-table { background: var(--teinte-attention); color: var(--attention); }
.tag.allergie { background: var(--teinte-attention); color: var(--attention); }
.fab {
  position: absolute; right: 16px; bottom: 16px; z-index: 20; min-height: 56px; border-radius: 28px; padding: 0 22px 0 18px; border: 0; background: var(--primaire); color: var(--sur-primaire);
  font-weight: 700; font-size: 16px; display: inline-flex; align-items: center; gap: 8px; box-shadow: var(--ombre);
}
.fab:hover { background: var(--primaire-fort); }
.panneau-droit { position: sticky; top: 0; }
.detail h2 { font-size: 22px; }
.detail .actions { display: grid; gap: 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 12px; }
.detail .actions .btn { min-width: 0; }
.mini-plan { background: var(--surface); border: 1px solid var(--ligne); border-radius: 16px; padding: 8px; }
.mini-plan svg { display: block; width: 100%; height: auto; }

/* ---------- Plan de salle ---------- */
.plan-ecran { display: flex; flex-direction: column; min-height: 0; flex: 1 1 0; }
.plan-barre { flex: none; padding: 10px 12px 8px; display: flex; flex-direction: column; gap: 8px; background: var(--surface); border-bottom: 1px solid var(--ligne); }
.plan-barre .ligne { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; min-width: 0; }
.plan-barre .ligne.defile { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 2px; scrollbar-width: thin; }
.plan-corps { display: flex; min-height: 0; flex: 1 1 0; }
.plan-zone { position: relative; flex: 1 1 0; min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.plan-scroll { flex: 1 1 0; min-height: 0; overflow: auto; background: var(--fond); overscroll-behavior: contain; position: relative; }
.plan-svg { display: block; touch-action: pan-x pan-y; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.plan-svg.edit, .plan-svg.deplace { touch-action: none; }
.plan-outils { position: absolute; right: 10px; bottom: 10px; display: flex; flex-direction: column; gap: 6px; z-index: 5; }
.plan-outils .btn-icone { background: var(--surface); border: 1.5px solid var(--ligne-forte); box-shadow: var(--ombre); }
.plan-histo { position: absolute; left: 10px; bottom: 10px; display: flex; gap: 6px; z-index: 5; }
.plan-histo .btn-icone { background: var(--surface); border: 1.5px solid var(--ligne-forte); box-shadow: var(--ombre); }
.plan-histo .btn-icone[disabled] { color: var(--texte-2); border-style: dashed; cursor: not-allowed; }
.plan-aide { position: absolute; top: 10px; left: 10px; right: 10px; z-index: 5; display: flex; justify-content: center; pointer-events: none; }
.plan-aide .bandeau { margin: 0; pointer-events: auto; box-shadow: var(--ombre); }
.plan-flanc { flex: none; width: 340px; border-left: 1px solid var(--ligne); background: var(--surface); overflow-y: auto; padding: 14px; display: none; min-height: 0; }
#app[data-size="tablet"] .plan-flanc, #app[data-size="desktop"] .plan-flanc { display: block; }
#app[data-size="tablet"][data-orient="portrait"] .plan-flanc { width: 280px; }
.plan-bas { flex: none; background: var(--surface); border-top: 1px solid var(--ligne); padding: 8px 12px 10px; }
#app[data-size="tablet"] .plan-bas, #app[data-size="desktop"] .plan-bas { display: none; }
.plan-bas .titre { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; font-weight: 700; }
.plan-legende { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--texte-2); padding: 6px 12px; background: var(--surface); border-top: 1px solid var(--ligne); flex: none; }
.plan-legende span { display: inline-flex; align-items: center; gap: 6px; }
.plan-legende i { width: 18px; height: 14px; border-radius: 4px; border: 2px solid var(--ligne-forte); display: inline-block; }
.plan-legende i.l-libre { background: var(--surface); }
.plan-legende i.l-reservee { background: var(--teinte-bordeaux); border-color: var(--accent); }
.plan-legende i.l-occupee { background: var(--teinte-ok); border-color: var(--ok); }
.plan-legende i.l-bloquee { background: repeating-linear-gradient(45deg, var(--surface-2), var(--surface-2) 3px, var(--ligne-forte) 3px, var(--ligne-forte) 4px); }
.carte-resa-mini { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; border: 1.5px solid var(--ligne-forte); background: var(--surface); border-radius: 12px; padding: 8px 12px; min-height: 52px; margin-bottom: 8px; }
.carte-resa-mini[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); background: var(--teinte-bordeaux); }
.carte-resa-mini .h { font-family: var(--police-titre); font-weight: 700; }
.carte-resa-mini .grow { min-width: 0; }
.carte-resa-mini .grow b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tray-liste { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.tray-liste .carte-resa-mini { width: 200px; flex: none; margin: 0; }

/* SVG du plan */
.plan-svg text { font-family: var(--police-titre); fill: var(--texte); pointer-events: none; }
.plan-svg .mur { fill: none; stroke: var(--ligne-forte); stroke-width: 10; stroke-linejoin: round; }
.plan-svg .decor-corps { fill: var(--surface-2); stroke: var(--ligne-forte); stroke-width: 2.5; }
.plan-svg .decor-hach { fill: url(#hach); stroke: var(--ligne-forte); stroke-width: 2.5; }
.plan-svg .tabouret { fill: var(--surface); stroke: var(--ligne-forte); stroke-width: 2; }
.plan-svg .porte { fill: var(--fond); stroke: var(--ligne-forte); stroke-width: 3; stroke-dasharray: 6 5; }
.plan-svg .tbl { cursor: default; }
.plan-svg.edit .tbl, .plan-svg.placer .tbl, .plan-svg.voir .tbl { cursor: pointer; }
.plan-svg.edit .tbl.glisse, .plan-svg .tbl.glisse { cursor: grabbing; }
.plan-svg .tbl .corps { fill: var(--surface); stroke: var(--ligne-forte); stroke-width: 3; }
.plan-svg .tbl.reservee .corps { fill: var(--teinte-bordeaux); stroke: var(--accent); }
.plan-svg .tbl.occupee .corps { fill: var(--teinte-ok); stroke: var(--ok); }
.plan-svg .tbl.bloquee .corps { fill: url(#hach); }
.plan-svg .tbl.inactive { display: none; }
.plan-svg .tbl.sel .corps { stroke: var(--focus); stroke-width: 7; }
.plan-svg .tbl.cible .corps { stroke: var(--ok); stroke-width: 6; stroke-dasharray: 10 6; }
.plan-svg .tbl.choc .corps { stroke: var(--attention); stroke-width: 6; }
.plan-svg .tbl.glisse { opacity: .92; }
.plan-svg .tbl .chaise { fill: var(--surface-2); stroke: var(--ligne-forte); stroke-width: 2; }
.plan-svg .tbl .lib { font-size: 26px; font-weight: 700; text-anchor: middle; dominant-baseline: central; }
.plan-svg .tbl .cap { font-size: 17px; font-weight: 600; text-anchor: middle; fill: var(--texte-2); }
.plan-svg .tbl .nom { font-size: 16px; font-weight: 700; text-anchor: middle; }
.plan-svg .tbl .ic-etat { stroke: var(--texte); fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.plan-svg .tbl.occupee .ic-etat { stroke: var(--ok); }
.plan-svg .tbl.reservee .ic-etat { stroke: var(--accent); }
.plan-svg .badge-portee { fill: var(--attention); }
.plan-svg .badge-txt { fill: var(--teinte-attention); font-size: 14px; font-weight: 700; text-anchor: middle; dominant-baseline: central; }
.plan-svg .union { fill: none; stroke: var(--accent); stroke-width: 3; stroke-dasharray: 12 8; }
.plan-svg .union-lib { font-size: 16px; font-weight: 700; fill: var(--accent); text-anchor: middle; }
.plan-svg .fantome { fill: none; stroke: var(--ligne-forte); stroke-width: 3; stroke-dasharray: 5 6; }
.plan-svg .poignee-rot { fill: var(--surface); stroke: var(--focus); stroke-width: 4; }
.plan-svg .grille-pt { fill: var(--ligne); }
.plan-svg .cible-depl { fill: var(--teinte-bordeaux); stroke: var(--accent); stroke-width: 3; stroke-dasharray: 8 6; opacity: .75; }

.pad { display: grid; grid-template-columns: repeat(3, 48px); grid-template-rows: repeat(3, 48px); gap: 6px; justify-content: center; }
.pad button { border-radius: 12px; border: 1.5px solid var(--ligne-forte); background: var(--surface); display: grid; place-items: center; }
.pad .centre { visibility: hidden; }

/* ---------- Semaine ---------- */
.semaine { display: grid; gap: 10px; }
.sem-jour { display: grid; grid-template-columns: 88px minmax(0, 1fr) minmax(0, 1fr); gap: 8px; align-items: stretch; }
#app[data-size="phone"] .sem-jour { grid-template-columns: 56px minmax(0, 1fr) minmax(0, 1fr); }
.sem-jour .jr { display: flex; flex-direction: column; justify-content: center; font-family: var(--police-titre); font-weight: 700; }
.sem-jour .jr small { font-family: var(--police); font-weight: 500; color: var(--texte-2); }
.sem-cell { text-align: left; border: 1px solid var(--ligne); background: var(--surface); border-radius: 14px; padding: 8px 10px; min-height: 76px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.sem-cell:hover { border-color: var(--ligne-forte); }
.sem-cell .top { display: flex; justify-content: space-between; gap: 6px; font-size: 13px; color: var(--texte-2); font-weight: 700; }
.sem-cell .nb { font-family: var(--police-titre); font-weight: 700; font-size: 18px; }
.sem-cell .mini-barre { height: 8px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.sem-cell .mini-barre i { display: block; height: 100%; background: var(--accent); }
.sem-cell.complet .mini-barre i { background: var(--attention); }
.sem-cell.ferme { background: var(--teinte-neutre); border-style: dashed; }
.sem-cell.ferme .nb { color: var(--texte-2); }

/* ---------- Menu ---------- */
.plat { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--ligne); min-height: 64px; }
.plat:last-child { border-bottom: 0; }
.plat .nom { font-weight: 700; }
.plat .al { font-size: 13px; color: var(--texte-2); }
.plat.rupture .nom { text-decoration: line-through; color: var(--texte-2); }

/* ---------- Réglages ---------- */
.reglages { display: grid; gap: 12px; max-width: 760px; }
.reglages .card h2 { display: flex; align-items: center; gap: 8px; }
.profil-grille { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 10px 0; }
.profil-grille .carte-profil { text-align: left; border: 1.5px solid var(--ligne-forte); background: var(--surface); border-radius: 14px; padding: 10px 12px; min-height: 96px; }
.profil-grille .carte-profil[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); background: var(--teinte-bordeaux); }
.profil-grille .carte-profil b { display: block; font-family: var(--police-titre); font-size: 17px; }
.table-reglage { width: 100%; border-collapse: collapse; font-size: 14px; }
.table-reglage th, .table-reglage td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--ligne); }
.journal li { padding: 8px 0; border-bottom: 1px solid var(--ligne); font-size: 14px; list-style: none; }
.journal { margin: 0; padding: 0; }
.equipier { display: flex; align-items: center; gap: 12px; min-height: 56px; border-bottom: 1px solid var(--ligne); }
.equipier:last-child { border-bottom: 0; }
.etapes { margin: 8px 0 0; padding-left: 22px; display: grid; gap: 8px; }
.etapes li { padding-left: 4px; }

/* ---------- Connexion, code ---------- */
.plein-ecran { position: absolute; inset: 0; z-index: 80; background: var(--fond); overflow-y: auto; display: flex; justify-content: center; align-items: flex-start; padding: 24px 16px; }
.connexion { width: 100%; max-width: 420px; margin-top: 4vh; }
.connexion .logo-grand { width: 64px; height: 64px; border-radius: 18px; background: var(--primaire); color: var(--sur-primaire); display: grid; place-items: center; font-family: var(--police-titre); font-weight: 700; font-size: 34px; margin: 0 0 16px; }
.pin-points { display: flex; gap: 14px; justify-content: center; margin: 16px 0; }
.pin-points i { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--ligne-forte); }
.pin-points i.on { background: var(--primaire); border-color: var(--primaire); }
.pin-pad { display: grid; grid-template-columns: repeat(3, minmax(0, 76px)); gap: 10px; justify-content: center; }
.pin-pad button { height: 64px; border-radius: 16px; border: 1.5px solid var(--ligne-forte); background: var(--surface); font-family: var(--police-titre); font-size: 24px; font-weight: 700; }
.liste-equipiers { display: grid; gap: 8px; }
.liste-equipiers button { display: flex; align-items: center; gap: 12px; text-align: left; min-height: 64px; padding: 8px 14px; border-radius: 14px; border: 1.5px solid var(--ligne-forte); background: var(--surface); }
.liste-equipiers .avatar { width: 44px; height: 44px; }

.vide { text-align: center; padding: 28px 12px; color: var(--texte-2); }
.vide h3 { color: var(--texte); margin-bottom: 6px; font-size: 18px; }

/* ---------- Compléments ---------- */
.resa .note { grid-column: 2 / 4; font-size: 14px; color: var(--texte-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plan-bas .titre { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.plan-bas { max-height: 46%; overflow-y: auto; }
#app.grand { font-size: 18px; }
#app.grand .small { font-size: 15px; }
#app.grand .resa .qui b { font-size: 19px; }
#app.grand .btn, #app.grand .chip { font-size: 18px; }
.carte-resa-mini[disabled] { cursor: not-allowed; border-style: dashed; color: var(--texte-2); }
.titre-ecran .row { max-width: 100%; }
@media (hover: hover) and (pointer: fine) { .resa:hover, .sem-cell:hover { border-color: var(--accent); } }

/* ---------- Plan : panneau à côté ou en dessous, légende compacte (06/10) ---------- */
.plan-flanc { display: block; }
#app[data-size="tablet"] .plan-bas, #app[data-size="desktop"] .plan-bas { display: block; }
.plan-svg { margin: 0 auto; }
.plan-barre .ligne.defile .sepv { flex: none; width: 1px; align-self: stretch; background: var(--ligne-forte); margin: 4px 2px; }
.plan-legende .hint { flex-basis: 100%; display: flex; align-items: center; gap: 6px; font-size: 13px; }
.plan-legende { gap: 6px 14px; padding: 6px 12px; }
#app[data-size="phone"] .plan-legende { font-size: 12px; gap: 4px 10px; }
#app[data-size="phone"] .plan-legende i { width: 14px; height: 12px; }
#app[data-size="phone"] .plan-barre { padding: 8px 10px 6px; gap: 6px; }
.pastille-mq.rond { width: 44px; height: 44px; min-height: 44px; padding: 0; border-radius: 50%; display: grid; place-items: center; }
.plan-outils { flex-direction: row; }
.edit-ligne { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.edit-btns { display: grid; grid-template-columns: repeat(3, 48px); gap: 6px; }
#app[data-size="phone"] .plan-bas { max-height: 40%; }
.plan-dock { flex: none; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 4px 8px; background: var(--surface); border-top: 1px solid var(--ligne); }
.plan-dock .btn-icone { width: 44px; height: 44px; border: 1.5px solid var(--ligne-forte); background: var(--surface); }
.plan-dock .btn-icone[disabled] { border-style: dashed; color: var(--texte-2); cursor: not-allowed; }

/* ---------- Petits écrans (318 px et plus) ---------- */
#app[data-size="phone"] .hdr { padding: 4px 6px 4px 12px; gap: 2px; }
#app[data-size="phone"] .hdr .btn-icone, #app[data-size="phone"] .hdr .pastille-mq.rond { width: 44px; height: 44px; }
#app[data-size="phone"] .hdr .avatar { width: 40px; height: 40px; }
#app[data-size="phone"] .hdr .nom small { display: none; }
#app[data-size="phone"] .hdr .marque { gap: 8px; }
#app[data-size="phone"] .plan-bas { max-height: 34%; }
#app[data-size="phone"] .plan-bas .carte-resa-mini { min-height: 52px; }
#app[data-size="phone"] .seg button { padding: 0 10px; }
#app[data-size="phone"] .main { padding: 12px; }
#app[data-size="phone"] .titre-ecran h1 { font-size: 24px; }

/* ---------- Tables réunies : une seule table (07/10) ---------- */
.plan-svg .tbl.fusion .fus-bord { fill: var(--ligne-forte); stroke: var(--ligne-forte); stroke-width: 6; stroke-linejoin: round; }
.plan-svg .tbl.fusion.reservee .fus-bord { fill: var(--accent); stroke: var(--accent); }
.plan-svg .tbl.fusion.occupee .fus-bord { fill: var(--ok); stroke: var(--ok); }
.plan-svg .tbl.fusion.sel .fus-bord { fill: var(--focus); stroke: var(--focus); stroke-width: 12; }
.plan-svg .tbl.fusion.cible .fus-bord { fill: var(--ok); stroke: var(--ok); stroke-width: 10; }
.plan-svg .tbl.fusion .fus-fond { fill: var(--surface); stroke: none; }
.plan-svg .tbl.fusion.reservee .fus-fond { fill: var(--teinte-bordeaux); }
.plan-svg .tbl.fusion.occupee .fus-fond { fill: var(--teinte-ok); }
.plan-svg .tbl.fusion.bloquee .fus-fond { fill: url(#hach); }
.plan-svg .tbl.fusion .lib { font-size: 26px; font-weight: 700; text-anchor: middle; dominant-baseline: central; }
.plan-svg .tbl.fusion .cap { font-weight: 600; text-anchor: middle; fill: var(--texte-2); }
.plan-svg .tbl.fusion .nom { font-size: 16px; font-weight: 700; text-anchor: middle; }
.plan-svg .tbl.fusion .ic-etat { stroke: var(--texte); fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.plan-svg .tbl.fusion.occupee .ic-etat { stroke: var(--ok); }
.plan-svg .tbl.fusion.reservee .ic-etat { stroke: var(--accent); }

/* Choix sélectionné bien visible, clair comme nuit */
.seg button[aria-pressed="true"], .seg button[aria-selected="true"] { box-shadow: inset 0 0 0 2px var(--accent), var(--ombre); }

/* Une grille sans piste déclarée se dimensionne sur son contenu : on la borne (mesuré à 375 px). */
.reglages, .semaine, .service-grille > div { min-width: 0; }
.reglages { grid-template-columns: minmax(0, 1fr); }
.semaine { grid-template-columns: minmax(0, 1fr); }
.profil-grille .carte-profil { min-width: 0; }

/* ---------- Salles, murs, modules (07/10) ---------- */
:root { --exterieur: #E3D6C2; }
:root[data-mq="dark"] { --exterieur: #0E090B; }
@media (prefers-color-scheme: dark) { :root[data-mq="auto"] { --exterieur: #0E090B; } }
.plan-scroll { background: var(--exterieur); }
.plan-svg .sol { fill: var(--fond); stroke: none; }
.plan-svg .marche { stroke: var(--ligne-forte); stroke-width: 2; }
.plan-svg.contour-edit .mur { stroke: var(--focus); }
.plan-svg.contour-edit .tbl, .plan-svg.contour-edit .decor { pointer-events: none; opacity: .55; }
.plan-svg .sommet { fill: var(--surface); stroke: var(--focus); stroke-width: 5; cursor: grab; }
.plan-svg .sommet.sel { fill: var(--focus); }
.plan-svg .milieu circle { fill: var(--surface); stroke: var(--ligne-forte); stroke-width: 3; cursor: copy; }
.plan-svg .milieu .ic-etat { stroke: var(--texte); fill: none; stroke-width: 2.6; stroke-linecap: round; }
.pad button[disabled], .edit-btns .btn-icone[disabled] { color: var(--texte-2); border-style: dashed; cursor: not-allowed; }

.nav-sep { display: flex; align-items: center; gap: 8px; padding: 8px 6px 2px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--texte-2); }
.nav-sep::before, .nav-sep::after { content: ""; flex: 1; height: 1px; background: var(--ligne); }
#app[data-size="desktop"] .nav-sep { justify-content: flex-start; padding: 12px 14px 4px; }
#app[data-size="desktop"] .nav-sep::before { display: none; }
#app[data-size="tablet"] .nav-sep span { display: none; }
#app[data-size="tablet"] .nav-sep::before { display: none; }
.nav .nav-fin { margin-top: auto; }

.liste-rangees { display: grid; gap: 8px; grid-template-columns: minmax(0, 1fr); max-width: 760px; }
.rangee { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; min-height: 68px; padding: 10px 14px; border-radius: 16px; border: 1px solid var(--ligne); background: var(--surface); }
.rangee:hover { border-color: var(--accent); }
.rangee .grow { min-width: 0; }
.rond-ic { width: 44px; height: 44px; border-radius: 12px; background: var(--teinte-bordeaux); color: var(--accent); display: grid; place-items: center; flex: none; }
.stats3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.stats3 > div { background: var(--surface-2); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; }
.stats3 b { font-family: var(--police-titre); font-size: 26px; line-height: 1.1; }
.stats3 span { font-size: 13px; color: var(--texte-2); }
.etapes-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.etape { display: flex; align-items: center; gap: 12px; min-width: 0; }
.etape .num { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex: none; font-weight: 700; border: 2px solid var(--ligne-forte); background: var(--surface); }
.etape.fait .num { background: var(--teinte-ok); border-color: var(--ok); color: var(--ok); }
.etape.cours .num { background: var(--primaire); border-color: var(--primaire); color: var(--sur-primaire); }
.coches { margin: 8px 0 0; padding-left: 20px; display: grid; gap: 6px; }
.card textarea { min-height: 88px; }
.champ textarea { width: 100%; min-width: 0; border: 1.5px solid var(--ligne-forte); border-radius: 12px; background: var(--surface); padding: 10px 12px; }

/* Les coins du contour dépassent un peu : on laisse de la marge autour du plan. */
.plan-scroll { padding: 14px; }
.plan-svg { overflow: visible; }

/* Offres : verrous, messagerie avec Osark, actualités du site. Couleurs : uniquement des paires déjà mesurées (texte sur surface, texte sur teinte). */
.nav-item { position: relative; }
.nav-item .verrou { display: inline-flex; color: var(--texte-2); }
#app[data-size="desktop"] .nav .nav-item .verrou { margin-left: auto; }
#app[data-size="tablet"] .nav .nav-item .verrou { position: absolute; top: 6px; right: calc(50% - 26px); }
.nav-item .verrou .ic { width: 14px; height: 14px; }
.fil { display: grid; gap: 8px; max-height: 320px; overflow-y: auto; padding: 2px; }
.bulle { max-width: 88%; padding: 8px 12px; border-radius: 14px; border: 1px solid var(--ligne); background: var(--surface); color: var(--texte); min-width: 0; overflow-wrap: anywhere; }
.bulle p { margin: 2px 0 0; }
.bulle.osark { justify-self: start; background: var(--teinte-bordeaux); border-color: var(--accent); }
.bulle.moi { justify-self: end; border-color: var(--ligne-forte); }
.actu { padding: 10px 0; border-bottom: 1px solid var(--ligne); }
.actu:last-of-type { border-bottom: 0; }
.apercu-site { margin-top: 10px; padding: 10px 12px; border: 1px dashed var(--ligne-forte); border-radius: 12px; background: var(--surface-2); display: grid; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.maquette-seule { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--ligne-forte); }

/* Application réelle : plus de cadre d'appareil ni de barre de simulation, l'application occupe toute la fenêtre. */
.mq-stage { padding: 0; background: var(--fond); }
.mq-cadre.fluide { width: 100%; height: 100%; }
