/* GoodPattes — interface du logiciel (palette Maison Pompon) */
@font-face { font-family: "Gloock"; src: url("../../assets/fonts/gloock-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("../../assets/fonts/figtree-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("../../assets/fonts/figtree-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("../../assets/fonts/figtree-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("../../assets/fonts/figtree-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --cream: #FBF4EE; --paper: #FFFCF9; --blush: #EBC9C3; --blush-50: #F8E7E2; --blush-100: #F2D8D2;
  --rose: #A9475F; --rose-dark: #8A3349; --sage: #A8B89F; --sage-50: #EDF1E8; --sage-100: #DDE6D6; --sage-ink: #4C6046;
  --brass: #B8925A; --brass-50: #F5ECDD; --plum: #3B2C35; --plum-2: #4A3843; --ink: #3B2C35; --muted: #6D5A64; --line: #EADBD6;
  --ok: #4F7A55; --ko: #A4513C; --warn: #9A6B1F;
  --display: "Gloock", "Bodoni 72", Didot, Georgia, serif;
  --body: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;
  --r: 18px; --r-sm: 11px;
  --ombre: 0 1px 0 rgba(59, 44, 53, .04), 0 12px 28px -20px rgba(59, 44, 53, .35);
  --side: 248px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); font-size: 15px; line-height: 1.5; color: var(--ink); background: var(--cream); }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: var(--rose); text-underline-offset: 3px; }
h1, h2, h3 { margin: 0 0 .4em; color: var(--plum); line-height: 1.15; }
h1, h2 { font-family: var(--display); font-weight: 400; }
h2 { font-size: 1.45rem; }
h3 { font-size: 1rem; font-weight: 600; }
p { margin: 0 0 .8em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--rose); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--plum); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.muted { color: var(--muted); }
.ic { width: 20px; height: 20px; flex: none; }
code { background: var(--blush-50); padding: 1px 6px; border-radius: 6px; font-size: .92em; }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 8px 16px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--paper); color: var(--plum); font-weight: 600; text-decoration: none; cursor: pointer;
  transition: background .15s, border-color .15s, transform .15s; white-space: nowrap; }
.btn:hover { border-color: var(--blush); background: #fff; }
.btn:active { transform: translateY(1px); }
.btn-rose { background: var(--rose); border-color: var(--rose); color: #fff; }
.btn-rose:hover { background: var(--rose-dark); border-color: var(--rose-dark); color: #fff; }
.btn-sauge { background: var(--sage-50); border-color: var(--sage-100); color: var(--sage-ink); }
.btn-sauge:hover { background: var(--sage-100); }
.btn-wa { background: #E7F4EA; border-color: #CFE7D5; color: #1F6B3A; }
.btn-wa:hover { background: #D6EEDC; }
.btn-plein { width: 100%; min-height: 48px; font-size: 1rem; }
.btn-petit { min-height: 32px; padding: 4px 12px; font-size: .86rem; }
.btn-fantome { background: transparent; border-color: transparent; }
.btn-fantome:hover { background: var(--blush-50); }
.btn .ic { width: 18px; height: 18px; }
.lien { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; font-size: .9rem; }
.lien .ic { width: 16px; height: 16px; }
.wa { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #E7F4EA; color: #1F6B3A; flex: none; }
.wa:hover { background: #D6EEDC; }

/* ---------- Champs ---------- */
label { display: grid; gap: 6px; font-weight: 600; font-size: .88rem; color: var(--plum); }
input:not([type]), input[type=text], input[type=email], input[type=password], input[type=search], input[type=tel], input[type=date], input[type=time], input[type=number], select, textarea {
  width: 100%; min-height: 42px; padding: 9px 12px; border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff; font-weight: 400; font-size: .95rem; }
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--rose); box-shadow: 0 0 0 3px rgba(169, 71, 95, .15); }
.pile { display: grid; gap: 14px; }
.alerte { background: #FBEDE8; border: 1px solid #F0CFC5; color: var(--ko); padding: 10px 14px; border-radius: var(--r-sm); }
.ok { color: var(--ok); display: flex; gap: 6px; align-items: center; font-weight: 600; }

/* ---------- Ruban démo ---------- */
.demo-ruban { background: var(--plum); color: #EADFE4; font-size: .78rem; text-align: center; padding: 6px 12px; }
.demo-ruban a { color: #fff; }

/* ---------- Coquille de l'application ---------- */
.app { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); min-height: calc(100vh - 30px); }
.side { position: sticky; top: 0; height: 100vh; overflow-y: auto; background: var(--plum); color: #EFE3E8; padding: 20px 14px; display: flex; flex-direction: column; gap: 14px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; font-size: 1.25rem; font-family: var(--display); padding: 0 8px; }
.logo b { font-weight: 400; color: var(--blush); }
.side .logo { color: #fff; }
.gp-logo { width: 34px; height: 34px; flex: none; }
.salon-switch select { background: var(--plum-2); border-color: transparent; color: #fff; min-height: 38px; font-size: .86rem; }
.menu { display: grid; gap: 2px; }
.menu a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; color: #E8DCE1; text-decoration: none; font-weight: 500; }
.menu a:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.menu a[aria-current="page"] { background: var(--blush); color: var(--plum); font-weight: 600; }
.menu a span { flex: 1; }
.pastille { font-style: normal; background: var(--rose); color: #fff; font-size: .72rem; font-weight: 700; min-width: 20px; height: 20px; border-radius: 10px; display: grid; place-items: center; padding: 0 6px; }
.menu a[aria-current="page"] .pastille { background: var(--plum); }
.side-pied { margin-top: auto; display: grid; gap: 12px; }
.voir-site { display: flex; gap: 8px; align-items: center; color: var(--blush); font-size: .85rem; text-decoration: none; padding: 0 12px; }
.voir-site .ic { width: 16px; }
.moi { display: flex; align-items: center; gap: 10px; background: var(--plum-2); border-radius: 14px; padding: 8px; }
.moi img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; object-position: top; }
.moi div { flex: 1; display: grid; line-height: 1.25; }
.moi small { color: #CDBCC4; font-size: .76rem; }
.sortie { color: #E8DCE1; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; }
.sortie:hover { background: rgba(255, 255, 255, .08); color: #fff; }

.zone { min-width: 0; display: flex; flex-direction: column; }
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 16px; padding: 14px 28px; background: rgba(251, 244, 238, .9);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-titre { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; }
.top h1 { font-size: 1.6rem; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.logo-mobile { display: none; }
.recherche { position: relative; width: min(340px, 34vw); }
.recherche .ic { position: absolute; left: 12px; top: 50%; translate: 0 -50%; width: 18px; color: var(--muted); }
.recherche input { padding-left: 38px; border-radius: 999px; background: var(--paper); }
.contenu { padding: 22px 28px 60px; display: grid; gap: 22px; align-content: start; }
.sous-titre { margin: -8px 0 0; color: var(--muted); }
.surtitre { text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; font-weight: 700; color: var(--rose); margin-bottom: .4em; }

.carte { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; box-shadow: var(--ombre); min-width: 0; }
.carte-tete { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.carte-tete h2 { margin: 0; }

/* Barre d'onglets mobile */
.onglets { display: none; }
.toast { position: fixed; left: 50%; bottom: 28px; translate: -50% 0; background: var(--plum); color: #fff; padding: 12px 18px; border-radius: 14px;
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .5); z-index: 90; max-width: min(92vw, 520px); font-weight: 500; display: flex; gap: 10px; align-items: center; }
.toast .ic { color: var(--sage); }

/* ---------- Avatars et puces ---------- */
.av { border-radius: 50%; object-fit: cover; flex: none; background: var(--blush-50); }
.av-xs { width: 28px; height: 28px; } .av-s { width: 36px; height: 36px; } .av-m { width: 48px; height: 48px; } .av-l { width: 96px; height: 96px; } .av-xl { width: 160px; height: 160px; }
.av-txt { display: inline-grid; place-items: center; background: var(--t); color: var(--plum); font-family: var(--display); }
.av-xs.av-txt { font-size: .85rem; } .av-s.av-txt { font-size: 1rem; } .av-m.av-txt { font-size: 1.3rem; } .av-l.av-txt { font-size: 2.4rem; } .av-xl.av-txt { font-size: 4rem; }
.puce { display: inline-flex; align-items: center; gap: 5px; font-size: .74rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; white-space: nowrap; background: var(--blush-50); color: var(--rose-dark); }
.puce-confirme { background: var(--sage-50); color: var(--sage-ink); }
.puce-en-cours { background: var(--rose); color: #fff; }
.puce-termine { background: #F1ECE9; color: var(--muted); }
.puce-absent, .puce-annule { background: #FBEDE8; color: var(--ko); }
.puce-arrive { background: var(--brass-50); color: var(--warn); }
.puce-or { background: var(--brass-50); color: #7A5A26; }
.tag { display: inline-block; font-size: .78rem; padding: 3px 10px; border-radius: 999px; background: var(--sage-50); color: var(--sage-ink); font-weight: 600; }
.tag-alerte { background: #FBEDE8; color: var(--ko); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---------- Tableau de bord ---------- */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.kpi { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; display: grid; gap: 2px; box-shadow: var(--ombre); position: relative; overflow: hidden; }
.kpi span:first-child { color: var(--muted); font-size: .84rem; font-weight: 500; }
.kpi b { font-family: var(--display); font-weight: 400; font-size: 2rem; line-height: 1.1; color: var(--plum); }
.kpi small { color: var(--muted); font-size: .8rem; }
.jauge { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--blush-50); }
.jauge::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--v); background: var(--rose); border-radius: 0 4px 4px 0; }
.jauge-sauge::after { background: var(--sage-ink); }
.tb-grille { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 22px; align-items: start; }
.colonnes-equipe { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.col-equipe { background: var(--cream); border-radius: 14px; padding: 12px; min-width: 0; }
.col-tete { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.col-tete img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; object-position: top; }
.col-tete div { display: grid; line-height: 1.2; }
.col-tete small { color: var(--muted); font-size: .78rem; }
.fil { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.fil-rdv a { display: grid; grid-template-columns: 44px auto 1fr; grid-template-rows: auto auto; column-gap: 8px; align-items: center; background: var(--paper);
  border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; text-decoration: none; color: inherit; }
.fil-rdv a:hover { border-color: var(--blush); }
.fil-rdv time { font-weight: 700; font-size: .85rem; color: var(--plum); grid-row: span 2; }
.fil-rdv .av { grid-row: span 2; }
.fil-txt { display: grid; min-width: 0; line-height: 1.25; }
.fil-txt b, .fil-txt small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fil-txt small { color: var(--muted); font-size: .78rem; }
.fil-rdv .puce { grid-column: 3; justify-self: start; margin-top: 4px; }
.fil-rdv.st-en-cours a { border-color: var(--rose); box-shadow: 0 0 0 3px rgba(169, 71, 95, .12); }
.fil-rdv.st-termine a { opacity: .72; }
.a-faire { display: grid; gap: 14px; }
.a-faire > h2 { margin: 0; }
.tache { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; box-shadow: var(--ombre); }
.tache h3 { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.tache h3 .ic { color: var(--rose); }
.tache p { font-size: .9rem; }
.tache-rose { background: var(--blush-50); border-color: var(--blush-100); }
.mini-liste { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 8px; }
.mini-liste li { display: flex; align-items: center; gap: 10px; font-size: .9rem; }
.ml { flex: 1; min-width: 0; display: grid; line-height: 1.3; }
.ml small { color: var(--muted); font-size: .8rem; }
.mini-liste a { text-decoration: none; color: inherit; }
.mini-liste .wa, .mini-liste .btn { flex: none; }
.studio-teaser { display: grid; grid-template-columns: 1fr 360px; gap: 28px; align-items: center; }

/* Slider avant / après (repris du site) */
.ba { position: relative; margin: 0; border-radius: var(--r); overflow: hidden; aspect-ratio: 4/5; background: var(--blush-50); --pos: 50%; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-avant { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; background: #fff; translate: -1px 0; pointer-events: none; }
.ba-knob { position: absolute; top: 50%; left: 50%; width: 38px; height: 38px; translate: -50% -50%; border-radius: 50%; background: #fff; box-shadow: 0 4px 14px rgba(0, 0, 0, .2); }
.ba-knob::before, .ba-knob::after { content: ""; position: absolute; top: 50%; border: 5px solid transparent; translate: 0 -50%; }
.ba-knob::before { left: 7px; border-right-color: var(--rose); } .ba-knob::after { right: 7px; border-left-color: var(--rose); }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.ba-tag { position: absolute; top: 10px; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #fff; background: rgba(59, 44, 53, .7); padding: 4px 9px; border-radius: 999px; pointer-events: none; }
.ba-tag-l { left: 10px; } .ba-tag-r { right: 10px; background: var(--rose); }
.ba figcaption { position: absolute; left: 10px; right: 10px; bottom: 10px; background: rgba(255, 252, 249, .92); border-radius: 10px; padding: 6px 10px; font-size: .82rem; pointer-events: none; }

/* ---------- Connexion ---------- */
.page-connexion main { min-height: 100vh; }
.cnx { display: grid; grid-template-columns: 1.1fr 1fr; min-height: 100vh; }
.cnx-visuel { position: relative; overflow: hidden; background: var(--blush-50); }
.cnx-visuel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cnx-citation { position: absolute; left: 32px; right: 32px; bottom: 32px; font-family: var(--display); font-size: 1.5rem; line-height: 1.25; color: var(--plum);
  background: rgba(255, 252, 249, .86); backdrop-filter: blur(6px); padding: 18px 22px; border-radius: var(--r); margin: 0; }
.cnx-citation span { display: block; font-family: var(--body); font-size: .85rem; color: var(--muted); margin-top: 6px; }
.cnx-form { display: grid; align-content: center; gap: 14px; padding: clamp(28px, 6vw, 80px); max-width: 560px; width: 100%; justify-self: center; }
.logo-grand { font-size: 1.6rem; padding: 0; color: var(--plum); }
.logo-grand .gp-logo { width: 44px; height: 44px; }
.logo-grand b { color: var(--rose); }
.cnx-form h1 { font-size: 2.6rem; margin: 12px 0 0; }
.cnx-demo { background: var(--sage-50); border-radius: 14px; padding: 14px 16px; font-size: .88rem; color: var(--sage-ink); }
.cnx-demo p { margin: 4px 0 0; }


/* ---------- Agenda ---------- */
.fam-ciseaux { --f: #A9475F; --fb: #F7E1E5; }
.fam-tondeuse { --f: #9A6B1F; --fb: #F5ECDD; }
.fam-epilation { --f: #4C6046; --fb: #E5ECDF; }
.fam-bain { --f: #4E6A80; --fb: #E3EBF1; }
.fam-chiot { --f: #7A5A86; --fb: #EFE5F1; }
.fam-pattes { --f: #6D5A64; --fb: #F1ECE9; }
.fam-chat { --f: #8A4F6E; --fb: #F3E4EC; }
.agenda-barre { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.nav-dates { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.nav-dates h2 { margin: 0 8px; font-size: 1.5rem; }
.btn-ico { width: 40px; padding: 0; }
input.aller { width: auto; min-height: 36px; padding: 4px 10px; border-radius: 999px; }
.vues { display: inline-flex; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.vues a { padding: 6px 16px; border-radius: 999px; text-decoration: none; color: var(--muted); font-weight: 600; font-size: .9rem; }
.vues a[aria-selected="true"] { background: var(--plum); color: #fff; }
.legende { display: flex; flex-wrap: wrap; gap: 6px 16px; list-style: none; margin: -6px 0 0; padding: 0; font-size: .82rem; color: var(--muted); }
.legende li { display: inline-flex; align-items: center; gap: 6px; }
.legende i { width: 14px; height: 14px; border-radius: 4px; background: var(--fb); border-left: 4px solid var(--f); }
.aide { font-size: .85rem; margin: -8px 0 0; }
.vide { text-align: center; padding: 48px 20px; }

.grille-jour { --px: 1.55px; padding: 0; overflow: clip; }
.gj-tetes { display: grid; grid-template-columns: 56px repeat(var(--cols), minmax(150px, 1fr)); border-bottom: 1px solid var(--line); position: sticky; top: 69px; background: var(--paper); z-index: 3; }
.gj-tete { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-left: 1px solid var(--line); min-width: 0; }
.gj-tete img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; object-position: top; flex: none; }
.gj-tete div { display: grid; line-height: 1.2; min-width: 0; }
.gj-tete small { color: var(--muted); font-size: .78rem; }
.gj-corps { position: relative; display: grid; grid-template-columns: 56px repeat(var(--cols), minmax(150px, 1fr));
  height: calc((var(--h1) - var(--h0)) * var(--px));
  background-image: repeating-linear-gradient(to bottom, var(--line) 0 1px, transparent 1px calc(60 * var(--px)));
  background-position: 0 calc(30 * var(--px)); }
.gj-heures { position: relative; }
.gj-heures span { position: absolute; right: 8px; top: calc((var(--m) - var(--h0)) * var(--px) - 9px); font-size: .74rem; color: var(--muted); font-weight: 600; }
.gj-col { position: relative; border-left: 1px solid var(--line); cursor: copy; }
.gj-ferme { position: absolute; left: 0; right: 0; top: calc((var(--a) - var(--h0)) * var(--px)); height: calc((var(--b) - var(--a)) * var(--px));
  background: repeating-linear-gradient(135deg, rgba(234, 219, 214, .45) 0 6px, transparent 6px 12px); pointer-events: none; }
.bloc { position: absolute; left: 5px; right: 5px; top: calc((var(--a) - var(--h0)) * var(--px) + 1px); height: calc((var(--b) - var(--a)) * var(--px) - 3px);
  background: var(--fb); border: 0; border-left: 4px solid var(--f); border-radius: 10px; padding: 6px 8px; text-align: left; cursor: pointer;
  display: flex; flex-direction: column; gap: 2px; overflow: hidden; color: var(--plum); box-shadow: 0 1px 0 rgba(59, 44, 53, .05); transition: transform .12s, box-shadow .12s; }
.bloc:hover { transform: translateY(-1px); box-shadow: 0 8px 18px -10px rgba(59, 44, 53, .45); z-index: 2; }
.bloc-h { font-size: .74rem; font-weight: 700; color: var(--f); }
.bloc-l { display: flex; align-items: center; gap: 6px; min-width: 0; }
.bloc-l b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .92rem; }
.bloc-l .av { width: 22px; height: 22px; font-size: .75rem; }
.bloc-l .puce { padding: 1px 6px; font-size: .64rem; }
.bloc-p, .bloc-s { font-size: .76rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bloc.court { flex-direction: row; align-items: center; gap: 8px; padding: 2px 8px; }
.bloc.court .bloc-p, .bloc.court .bloc-s { display: none; }
.bloc.st-termine { opacity: .62; }
.bloc.st-en-cours { box-shadow: 0 0 0 2px var(--f); }
.bloc.st-absent, .bloc.st-annule { opacity: .5; background: repeating-linear-gradient(135deg, var(--fb) 0 8px, #fff 8px 16px); }
.bloc.st-annule b { text-decoration: line-through; }
.gj-maintenant { position: absolute; left: 56px; right: 0; top: calc((var(--m) - var(--h0)) * var(--px)); height: 2px; background: var(--rose); z-index: 2; pointer-events: none; }
.gj-maintenant span { position: absolute; left: -54px; top: -10px; background: var(--rose); color: #fff; font-size: .7rem; font-weight: 700; padding: 2px 6px; border-radius: 6px; }

.grille-semaine { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; }
.gs-jour { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 10px; min-width: 0; box-shadow: var(--ombre); }
.gs-jour.auj { border-color: var(--rose); box-shadow: 0 0 0 2px rgba(169, 71, 95, .15); }
.gs-jour.ferme { background: transparent; box-shadow: none; opacity: .7; }
.gs-tete { display: grid; text-decoration: none; color: inherit; margin-bottom: 8px; line-height: 1.15; }
.gs-tete span { font-size: .8rem; color: var(--muted); text-transform: capitalize; }
.gs-tete b { font-family: var(--display); font-weight: 400; font-size: 1.8rem; }
.gs-tete small { color: var(--muted); font-size: .76rem; }
.gs-jour ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.gs-rdv { width: 100%; display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 6px; text-align: left; border: 0; border-left: 3px solid var(--f);
  background: var(--fb); border-radius: 8px; padding: 5px 6px; cursor: pointer; color: var(--plum); }
.gs-rdv time { font-size: .72rem; font-weight: 700; color: var(--f); }
.gs-rdv span { display: grid; min-width: 0; line-height: 1.15; }
.gs-rdv b, .gs-rdv small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gs-rdv b { font-size: .84rem; } .gs-rdv small { font-size: .72rem; color: var(--muted); }
.gs-rdv.st-termine { opacity: .6; }

.grille-mois { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; padding: 14px; }
.gm-j { text-align: center; font-size: .78rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; padding-bottom: 4px; }
.gm-c { display: grid; align-content: start; gap: 2px; min-height: 92px; padding: 8px 10px; border-radius: 12px; background: var(--cream); text-decoration: none; color: inherit; border: 1px solid transparent; }
.gm-c:hover { border-color: var(--blush); }
.gm-c b { font-size: 1.05rem; }
.gm-c span { font-size: .8rem; color: var(--plum); }
.gm-c small { font-size: .72rem; color: var(--muted); }
.gm-c.hors { opacity: .35; }
.gm-c.auj { background: var(--blush-50); border-color: var(--rose); }
.gm-c.ferme { background: transparent; }
.gm-jauge { display: block; height: 5px; border-radius: 3px; background: var(--blush-50); position: relative; overflow: hidden; margin-top: 4px; }
.gm-jauge::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--v); background: var(--rose); border-radius: 3px; }

/* Tiroir et fenêtres */
.voile { position: fixed; inset: 0; background: rgba(59, 44, 53, .32); z-index: 70; }
.tiroir { position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100vw); background: var(--paper); z-index: 71; box-shadow: -30px 0 60px -30px rgba(0, 0, 0, .4);
  transform: translateX(100%); transition: transform .2s ease; overflow-y: auto; }
.tiroir.ouvert { transform: none; }
.tiroir-fermer { position: absolute; top: 12px; right: 12px; }
.tiroir-corps { padding: 26px 24px 40px; display: grid; gap: 16px; }
.t-tete { display: flex; gap: 16px; align-items: center; padding-right: 40px; }
.t-tete h2 { margin: 2px 0; font-size: 1.9rem; }
.t-tete p { margin: 0; }
.t-infos { display: grid; gap: 0; margin: 0; border-top: 1px solid var(--line); }
.t-infos div { display: grid; grid-template-columns: 110px 1fr; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.t-infos dt { color: var(--muted); font-size: .86rem; }
.t-infos dd { margin: 0; font-weight: 500; }
.t-notes { background: var(--brass-50); border-radius: 12px; padding: 12px 14px; font-size: .9rem; }
.t-notes p { margin: 4px 0 0; }
.t-client { display: grid; gap: 2px; font-size: .9rem; background: var(--cream); border-radius: 12px; padding: 12px 14px; }
.t-client span { color: var(--muted); }
.t-actions, .t-liens { display: flex; flex-wrap: wrap; gap: 8px; }
.petit { font-size: .8rem; }
.modale { border: 0; border-radius: 22px; padding: 22px; width: min(560px, calc(100vw - 24px)); background: var(--paper); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .5); color: var(--ink); }
.modale::backdrop { background: rgba(59, 44, 53, .4); }
.modale-tete { display: flex; justify-content: space-between; align-items: center; }
.modale-tete h2 { margin: 0; }
.deux { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.case { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.case input { width: 18px; height: 18px; accent-color: var(--rose); }
.estimation { margin: 0; color: var(--muted); }
.estimation b { color: var(--plum); font-size: 1.1rem; }

@media (max-width: 1100px) {
  .grille-semaine { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .gj-tetes { position: relative; top: auto; }
  .grille-jour { overflow-x: auto; }
  .gj-tetes, .gj-corps { min-width: calc(56px + var(--cols) * 150px); }
  .grille-semaine { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gm-c { min-height: 64px; padding: 6px; }
  .gm-c small, .gm-c span { display: none; }
  .deux { grid-template-columns: 1fr; }
}


/* ---------- Clients & animaux ---------- */
.barre-liste { display: grid; gap: 12px; }
.barre-liste .sous-titre { margin: 0; }
.filtres { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--line); background: var(--paper); border-radius: 999px; padding: 6px 14px; font-weight: 600; font-size: .86rem; cursor: pointer; color: var(--muted); }
.chip[aria-pressed="true"] { background: var(--plum); border-color: var(--plum); color: #fff; }
.filtre-txt input { max-width: 420px; border-radius: 999px; }
.grille-animaux { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.carte-animal { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: 16px;
  padding: 12px; text-decoration: none; color: inherit; box-shadow: var(--ombre); height: 100%; transition: border-color .15s, transform .15s; }
.carte-animal:hover { border-color: var(--blush); transform: translateY(-1px); }
.ca-txt { display: grid; line-height: 1.25; min-width: 0; }
.ca-txt b { font-size: 1.02rem; }
.ca-txt small { color: var(--muted); font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ca-txt .ca-client { color: var(--plum); }
.ca-pied { grid-column: 1 / -1; display: flex; gap: 6px; flex-wrap: wrap; }
.center { text-align: center; }

/* ---------- Fiche animal ---------- */
.retour { margin-bottom: -8px; }
.fiche-tete { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; }
.ft-photo .av-xl { box-shadow: 0 0 0 6px var(--blush-50); }
.ft-txt h2 { font-size: 2.6rem; margin: 0; }
.ft-txt p { margin: 4px 0 10px; }
.ft-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.ft-chiffres { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; }
.ft-chiffres div { background: var(--cream); border-radius: 14px; padding: 10px 14px; min-width: 120px; }
.ft-chiffres dt { font-size: .76rem; color: var(--muted); }
.ft-chiffres dd { margin: 0; font-family: var(--display); font-size: 1.5rem; color: var(--plum); }
.fiche-grille { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.fiche-col { display: grid; gap: 22px; min-width: 0; }
.rythme-ligne { list-style: none; margin: 12px 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.rythme-ligne li { background: var(--cream); border-radius: 12px; padding: 10px 12px; display: grid; }
.rythme-ligne small { color: var(--muted); font-size: .76rem; }
.alerte-douce { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; background: var(--blush-50); border-radius: 12px; padding: 10px 12px; margin: 0; }
.alerte-douce .ic { color: var(--rose); }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; }
.timeline li { display: grid; grid-template-columns: 74px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.timeline time { font-weight: 700; font-size: .85rem; color: var(--plum); }
.timeline div { display: grid; line-height: 1.3; min-width: 0; }
.timeline small { color: var(--muted); font-size: .8rem; }
.tl-futur { background: var(--sage-50); border-radius: 10px; padding-left: 8px !important; padding-right: 8px !important; border-bottom: 0 !important; margin-bottom: 4px; }
.hist-aa { max-width: 320px; margin-bottom: 14px; }
.infos { list-style: none; margin: 0 0 12px; padding: 0; display: grid; }
.infos li { display: grid; grid-template-columns: 150px 1fr; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.infos span { color: var(--muted); display: flex; gap: 6px; align-items: center; }
.infos span .ic { width: 16px; height: 16px; }
.infos b { font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.infos b.ok { color: var(--ok); } .infos b.ko { color: var(--ko); }
.autres { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.autres a { display: inline-flex; align-items: center; gap: 6px; background: var(--cream); border-radius: 999px; padding: 4px 12px 4px 4px; text-decoration: none; color: var(--plum); font-weight: 600; }
.galerie { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.galerie img { aspect-ratio: 1; object-fit: cover; border-radius: 12px; }
.decharge { font-size: .92rem; max-height: 60vh; overflow-y: auto; }
.signature { border-top: 1px dashed var(--line); padding-top: 10px; }
.signature svg { width: 220px; height: 60px; }
.signature small { display: block; color: var(--muted); }
@media (max-width: 1100px) {
  .fiche-tete { grid-template-columns: auto 1fr; }
  .ft-chiffres { grid-column: 1 / -1; grid-template-columns: repeat(4, 1fr); }
  .fiche-grille { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .fiche-tete { grid-template-columns: 1fr; text-align: left; }
  .ft-photo .av-xl { width: 110px; height: 110px; }
  .ft-txt h2 { font-size: 2rem; }
  .ft-chiffres { grid-template-columns: 1fr 1fr; }
  .rythme-ligne { grid-template-columns: 1fr; }
  .infos li { grid-template-columns: 1fr; gap: 2px; }
  .timeline li { grid-template-columns: 64px 1fr; }
  .timeline .puce { grid-column: 2; justify-self: start; }
}


/* ---------- Studio avant / après ---------- */
.studio { display: grid; grid-template-columns: minmax(300px, 400px) minmax(0, 1fr); gap: 22px; align-items: start; }
.studio-reglages { display: grid; gap: 18px; position: sticky; top: 86px; max-height: calc(100vh - 110px); overflow-y: auto; }
.studio-reglages fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 10px; }
.studio-reglages legend { font-weight: 700; color: var(--plum); margin-bottom: 8px; padding: 0; }
.choix-animaux { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.choix-animal { position: relative; display: grid; justify-items: center; gap: 4px; cursor: pointer; font-weight: 600; font-size: .8rem; }
.choix-animal input, .choix-mise input, .segments input, .couleurs input { position: absolute; opacity: 0; pointer-events: none; }
.choix-animal img, .choix-animal .av { width: 64px; height: 64px; border-radius: 16px; object-fit: cover; border: 3px solid transparent; }
.choix-animal input:checked + img, .choix-animal input:checked + .av { border-color: var(--rose); }
.choix-animal input:focus-visible + img { outline: 3px solid var(--rose); outline-offset: 2px; }
.import summary { cursor: pointer; font-weight: 600; color: var(--rose); font-size: .9rem; }
.import[open] summary { margin-bottom: 10px; }
.import input[type=file] { font-size: .8rem; font-weight: 400; }
.choix-mises { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.choix-mise { position: relative; display: grid; justify-items: center; gap: 6px; cursor: pointer; font-size: .74rem; font-weight: 600; text-align: center; }
.choix-mise i { width: 54px; height: 66px; border-radius: 10px; border: 2px solid var(--line); background: var(--cream); position: relative; overflow: hidden; }
.choix-mise input:checked + i { border-color: var(--rose); background: var(--blush-50); }
.choix-mise input:focus-visible + i { outline: 3px solid var(--rose); outline-offset: 2px; }
.mise-cote::before, .mise-cote::after { content: ""; position: absolute; top: 6px; bottom: 16px; width: 19px; border-radius: 4px; background: var(--blush); }
.mise-cote::before { left: 5px; } .mise-cote::after { right: 5px; background: var(--rose); }
.mise-pile::before, .mise-pile::after { content: ""; position: absolute; left: 6px; right: 6px; height: 20px; border-radius: 4px; background: var(--blush); }
.mise-pile::before { top: 5px; } .mise-pile::after { top: 28px; background: var(--rose); }
.mise-diagonale::before { content: ""; position: absolute; inset: 6px 6px 16px; border-radius: 4px; background: linear-gradient(105deg, var(--blush) 50%, var(--rose) 50%); }
.mise-medaillon::before { content: ""; position: absolute; inset: 6px 6px 16px; border-radius: 4px; background: var(--rose); }
.mise-medaillon::after { content: ""; position: absolute; left: 8px; bottom: 19px; width: 18px; height: 18px; border-radius: 50%; background: var(--blush); border: 2px solid #fff; }
.segments { display: inline-flex; background: var(--cream); border-radius: 999px; padding: 3px; gap: 2px; justify-self: start; }
.segments label { position: relative; font-weight: 600; }
.segments span { display: block; padding: 6px 14px; border-radius: 999px; cursor: pointer; font-size: .85rem; color: var(--muted); }
.segments input:checked + span { background: var(--plum); color: #fff; }
.segments input:focus-visible + span { outline: 3px solid var(--rose); }
.couleurs { display: flex; gap: 10px; }
.couleurs label { position: relative; cursor: pointer; }
.couleurs i { display: block; width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--line); }
.couleurs input:checked + i { box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--rose); }
.studio-apercu { display: grid; gap: 14px; min-width: 0; }
.cadre-apercu { background: repeating-conic-gradient(#F3EAE6 0 25%, #FBF6F3 0 50%) 0 0 / 22px 22px; border-radius: var(--r); padding: 22px; display: grid; place-items: center; border: 1px solid var(--line); }
.cadre-apercu canvas { width: auto; max-width: 100%; max-height: 68vh; height: auto; border-radius: 10px; box-shadow: 0 24px 50px -24px rgba(59, 44, 53, .55); }
.studio-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.legende-post p { white-space: pre-line; font-size: .9rem; margin: 0; color: var(--muted); }
.legende-post h3 { margin: 0; }
.reseaux { display: flex; gap: 20px; }
@media (max-width: 1000px) {
  .studio { grid-template-columns: 1fr; }
  .studio-reglages { position: static; max-height: none; order: 2; }
  .studio-apercu { order: 1; }
  .cadre-apercu { padding: 12px; }
  .cadre-apercu canvas { max-height: 60vh; }
}


/* ---------- Messages ---------- */
.onglets-page { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid var(--line); }
.onglets-page a { padding: 10px 14px; text-decoration: none; color: var(--muted); font-weight: 600; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.onglets-page a[aria-current="page"] { color: var(--rose); border-bottom-color: var(--rose); }
.liste-msg { list-style: none; margin: 0; padding: 0; display: grid; }
.liste-msg li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.liste-msg li:last-child { border-bottom: 0; }
.liste-msg .ml a { color: inherit; text-decoration: none; }
.liste-msg .puce .ic { width: 14px; height: 14px; }
.campagne { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 22px; align-items: start; }
.telephone { background: #1F1A1D; border-radius: 40px; padding: 12px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); position: sticky; top: 90px; }
.tel-ecran { background: #EFE7DE; border-radius: 30px; overflow: hidden; min-height: 520px; display: flex; flex-direction: column; }
.tel-tete { display: flex; align-items: center; gap: 10px; background: #F7F3EE; padding: 16px 14px 10px; border-bottom: 1px solid #E5DCD3; }
.tel-tete .gp-logo { width: 34px; height: 34px; }
.tel-tete div { display: grid; line-height: 1.2; } .tel-tete small { color: var(--muted); font-size: .72rem; }
.tel-fil { padding: 16px 12px; flex: 1; background-image: radial-gradient(rgba(59, 44, 53, .05) 1px, transparent 1px); background-size: 14px 14px; }
.bulle { background: #fff; border-radius: 4px 14px 14px 14px; padding: 10px 12px; font-size: .86rem; white-space: pre-wrap; margin: 0; box-shadow: 0 1px 1px rgba(0, 0, 0, .08); max-width: 92%; }
.modeles textarea { min-height: 72px; font-weight: 400; }
@media (max-width: 1000px) { .campagne { grid-template-columns: 1fr; } .telephone { position: static; max-width: 320px; } }


/* ---------- Caisse et factures ---------- */
.kpi-petit { font-family: var(--body) !important; font-size: .95rem !important; font-weight: 600 !important; line-height: 1.4 !important; }
.caisse { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.a-encaisser { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.a-encaisser p { width: 100%; margin: 0; }
.a-encaisser .chip { text-decoration: none; color: var(--plum); }
.ticket { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1px dashed var(--line); }
.ticket li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.ticket li > span:first-child { display: grid; flex: 1; min-width: 0; }
.ticket small { color: var(--muted); font-size: .8rem; }
.ticket:empty::before { content: "Ticket vide : choisissez une séance à encaisser ou ajoutez un produit."; color: var(--muted); font-size: .88rem; padding: 12px 0; }
.ajout summary { cursor: pointer; font-weight: 600; color: var(--rose); font-size: .9rem; }
.produits { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.produits .btn { white-space: normal; text-align: left; }
.total { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 16px; background: var(--cream); border-radius: 14px; }
.total b { font-family: var(--display); font-weight: 400; font-size: 2rem; }
.modes { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.modes label { position: relative; }
.modes input { position: absolute; opacity: 0; }
.modes span { display: block; text-align: center; padding: 10px 6px; border: 1px solid var(--line); border-radius: 12px; font-weight: 600; cursor: pointer; background: var(--paper); font-size: .9rem; }
.modes input:checked + span { background: var(--plum); color: #fff; border-color: var(--plum); }
.modes input:focus-visible + span { outline: 3px solid var(--rose); }
.journal { list-style: none; margin: 0; padding: 0; display: grid; }
.journal li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.journal time { font-weight: 700; font-size: .85rem; width: 48px; flex: none; }
.cloture { margin-top: 14px; background: var(--cream); border-radius: 14px; padding: 14px; }
.facture-actions { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.facture { max-width: 760px; width: 100%; margin: 0 auto; padding: clamp(22px, 4vw, 48px); }
.f-tete { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; border-bottom: 2px solid var(--plum); padding-bottom: 18px; margin-bottom: 18px; }
.f-logo { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 1.5rem; color: var(--plum); }
.f-logo b { font-weight: 400; }
.f-pompon { width: 34px; height: 34px; color: var(--blush); }
.f-tete p { margin: 6px 0 0; color: var(--muted); font-size: .9rem; }
.f-num { text-align: right; }
.f-num h2 { margin: 0; font-size: 2rem; }
.f-client { display: flex; gap: 12px; }
.f-client span { color: var(--muted); }
.f-lignes { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: .95rem; }
.f-lignes th, .f-lignes td { padding: 10px 6px; text-align: left; border-bottom: 1px solid var(--line); }
.f-lignes th:last-child, .f-lignes td:last-child { text-align: right; white-space: nowrap; }
.f-lignes thead th { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.f-lignes tfoot th { font-size: 1.15rem; color: var(--plum); border-bottom: 0; padding-top: 16px; }
.f-lignes tfoot td { color: var(--muted); border-bottom: 0; font-size: .88rem; padding: 4px 6px; }
.f-pied { text-align: center; color: var(--muted); font-size: .82rem; margin: 24px 0 0; }
@media (max-width: 1000px) { .caisse { grid-template-columns: 1fr; } .modes { grid-template-columns: repeat(2, 1fr); } }
@media print {
  .demo-ruban, .side, .top, .onglets, .facture-actions, .toast, .caisse-form, .kpis { display: none !important; }
  .app { display: block; } .contenu { padding: 0; }
  .carte { box-shadow: none; border: 0; }
  body { background: #fff; }
}


/* ---------- Statistiques ---------- */
.kpis-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hausse { color: var(--ok) !important; font-weight: 600; } .baisse { color: var(--ko) !important; font-weight: 600; }
.barres { width: 100%; height: auto; display: block; }
.barres .grille { stroke: #EFE3DF; stroke-width: 1; }
.barres .base { stroke: #CDB9B3; stroke-width: 1; }
.barres .axe { font: 500 12px var(--body); fill: var(--muted); }
.barres .axe-i { display: none; }
@media (max-width: 640px) { .barres .axe-m { display: none; } .barres .axe-i { display: inline; font-size: 26px; } .barres .axe-y { font-size: 22px; } }
.barres .zone { fill: transparent; }
.barre { outline: none; cursor: default; }
.barre.actif .zone, .barre:focus-visible .zone { fill: rgba(169, 71, 95, .06); }
.infobulle { position: fixed; z-index: 95; background: var(--plum); color: #fff; padding: 7px 11px; border-radius: 10px; font-size: .84rem; font-weight: 600; pointer-events: none; white-space: nowrap; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .5); }
.table-chiffres { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: .9rem; }
.table-chiffres th, .table-chiffres td { text-align: left; padding: 8px; border-bottom: 1px solid var(--line); }
.table-chiffres td:last-child, .table-chiffres th:last-child { text-align: right; }
.stats-deux { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.stats-deux h2 { margin-bottom: 2px; }
.hbarres { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 12px; }
.hbarres li { display: grid; grid-template-columns: 220px 1fr auto; gap: 12px; align-items: center; font-size: .9rem; }
.hb-l { display: flex; align-items: center; gap: 8px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hb-l img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; object-position: top; }
.hb-b { height: 12px; background: transparent; position: relative; }
.hb-b i { position: absolute; inset: 0 auto 0 0; width: var(--v); background: var(--rose); border-radius: 0 4px 4px 0; }
.hbarres b { font-variant-numeric: tabular-nums; min-width: 70px; text-align: right; }
@media (max-width: 1000px) { .kpis-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .stats-deux { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .hbarres li { grid-template-columns: 1fr auto; } .hb-b { grid-column: 1 / -1; grid-row: 2; } }


/* ---------- Liste d'attente, tournée, réglages ---------- */
.attente { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.liste-attente { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.liste-attente > li { border: 1px solid var(--line); border-radius: 16px; padding: 12px; display: grid; gap: 10px; }
.la-tete { display: flex; align-items: center; gap: 12px; }
.la-tete .ml a { color: inherit; text-decoration: none; }
.la-sug { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.la-sug > span { width: 100%; }
.chip-wa { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; background: #E7F4EA; border-color: #CFE7D5; color: #1F6B3A; }
.chip-wa .ic { width: 16px; height: 16px; }
.tournee { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.plan svg { width: 100%; height: auto; display: block; }
.arrets { list-style: none; margin: 0; padding: 0; display: grid; }
.arrets li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.arrets .num { width: 30px; height: 30px; border-radius: 50%; background: var(--rose); color: #fff; display: grid; place-items: center; font-weight: 700; flex: none; font-size: .9rem; }
.arret-salon .num { background: var(--plum); }
.arrets time { font-weight: 700; font-size: .9rem; }
.tags-ligne { color: var(--ko) !important; }
.reglages { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
.reg-large { grid-column: 1 / -1; }
.reglages h3 { margin-top: 16px; }
.equipe-reg { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 12px; }
.equipe-reg li { display: flex; gap: 12px; align-items: center; }
.equipe-reg img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; object-position: top; }
.tableau-defile { overflow-x: auto; position: relative; }
.tableau-defile td, .tableau-defile th { white-space: nowrap; }
.interrupteurs, .connexions { list-style: none; margin: 0; padding: 0; display: grid; }
.interrupteurs li, .connexions li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
input[role=switch] { appearance: none; width: 44px; height: 26px; border-radius: 13px; background: #D9CCC7; position: relative; cursor: pointer; flex: none; transition: background .15s; }
input[role=switch]::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
input[role=switch]:checked { background: var(--sage-ink); }
input[role=switch]:checked::after { transform: translateX(18px); }
@media (max-width: 1000px) { .attente, .tournee, .reglages { grid-template-columns: 1fr; } }


/* Choix WhatsApp / SMS */
.choix-envoi { position: fixed; z-index: 96; width: 270px; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 10px; box-shadow: 0 24px 50px -20px rgba(59, 44, 53, .5); display: grid; gap: 4px; }
.ce-titre { margin: 2px 6px 6px; font-size: .8rem; color: var(--muted); font-weight: 600; }
.ce-opt { display: grid; text-align: left; padding: 10px 12px; border-radius: 12px; border: 0; background: var(--cream); color: var(--plum); font-weight: 600; text-decoration: none; cursor: pointer; font-size: .92rem; }
.ce-opt small { font-weight: 400; color: var(--muted); font-size: .76rem; }
.ce-opt:hover, .ce-opt:focus-visible { background: var(--blush-50); }
.ce-wa { background: #E7F4EA; color: #1F6B3A; }
.ce-retenir { display: flex; align-items: center; gap: 8px; font-size: .76rem; font-weight: 500; color: var(--muted); margin: 6px 4px 2px; }
.ce-retenir input { accent-color: var(--rose); }
select.canal { width: auto; min-height: 36px; font-size: .85rem; }

/* ---------- Écrans moyens et petits ---------- */
@media (max-width: 1200px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tb-grille { grid-template-columns: 1fr; }
  .studio-teaser { grid-template-columns: 1fr; }
  .studio-teaser .ba { max-width: 360px; }
}
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .side { display: none; }
  .top { padding: 10px 16px; gap: 10px; flex-wrap: wrap; }
  .top h1 { font-size: 1.3rem; }
  .logo-mobile { display: block; } .logo-mobile .gp-logo { width: 30px; height: 30px; }
  .recherche { width: 100%; order: 3; }
  .btn-nouveau span { display: none; }
  .btn-nouveau { width: 40px; padding: 0; }
  .contenu { padding: 16px 16px 96px; gap: 16px; }
  .onglets { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--paper);
    border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .onglets a, .onglets button { display: grid; justify-items: center; gap: 2px; font-size: .7rem; color: var(--muted); text-decoration: none; background: none; border: 0; padding: 4px 0; cursor: pointer; }
  .onglets a[aria-current="page"] { color: var(--rose); }
  .side.ouvert { display: flex; position: fixed; inset: 0 30% 0 0; z-index: 60; height: 100%; box-shadow: 20px 0 60px rgba(0, 0, 0, .35); }
  .cnx { grid-template-columns: 1fr; }
  .cnx-visuel { min-height: 34vh; }
  .cnx-citation { font-size: 1.1rem; left: 16px; right: 16px; bottom: 16px; }
  .toast { bottom: 84px; }
}
@media (max-width: 560px) {
  .kpis { gap: 10px; }
  .kpi { padding: 12px 14px; }
  .kpi b { font-size: 1.55rem; }
  .carte { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* =====================================================================
   Bases ajoutées le 15.10.2026 : comptes et rôles, rendez-vous répétés,
   glisser-déposer, devis, comptabilité, import du fichier clients
   ===================================================================== */
.fil-ariane { margin: -4px 0 14px; }
.vide-ic { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--blush-50); color: var(--rose); margin-bottom: 10px; }
.vide-ic .ic { width: 26px; height: 26px; }
.vide-ic.ok-ic { background: var(--sage-50); color: var(--sage-ink); }
.trois { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.trois label:first-child { grid-column: 1 / -1; }
.liste-puces { margin: 0; padding-left: 18px; display: grid; gap: 6px; color: var(--muted); font-size: .92rem; }

/* Connexion : choisir son compte */
.cnx-comptes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 10px 0 12px; }
.cnx-comptes form { margin: 0; }
.cnx-compte { width: 100%; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); cursor: pointer; text-align: left; transition: border-color .15s, background .15s; }
.cnx-compte:hover { border-color: var(--rose); background: #fff; }
.cnx-compte:disabled { opacity: .5; cursor: not-allowed; }
.cnx-compte img, .cnx-compte .av { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; object-position: top; flex: none; }
.cnx-compte span { display: grid; line-height: 1.2; min-width: 0; }
.cnx-compte small { color: var(--muted); font-size: .78rem; }
.cnx-seul { grid-template-columns: 1fr; max-width: 520px; margin: 40px auto; }
.moi .av { width: 38px; height: 38px; flex: none; }

/* Équipe et accès */
.comptes td { vertical-align: middle; }
.comptes td:last-child, .comptes th:last-child { text-align: right; }
.compte-qui { display: flex; align-items: center; gap: 10px; }
.compte-qui .av { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; object-position: top; }
.compte-qui small { color: var(--muted); font-size: .8rem; }
.compte-qui .puce { font-size: .66rem; padding: 1px 6px; margin-left: 4px; }
.comptes select { min-height: 36px; padding: 4px 8px; width: auto; }
.compte-actions { white-space: nowrap; }
.interrupteur { display: inline-flex; flex-direction: row; align-items: center; gap: 8px; font-weight: 500; font-size: .86rem; }
.interrupteur input[role=switch]:disabled { opacity: .5; cursor: not-allowed; }
.interrupteur span { min-width: 72px; }
.droits td { vertical-align: middle; }
.droits td:first-child { display: grid; gap: 2px; }
.droits td:first-child small { font-size: .78rem; }
.droits th:not(:first-child), .droits td:not(:first-child) { text-align: center !important; width: 110px; }
.droits input { width: 20px; height: 20px; accent-color: var(--rose); }
.mdp-provisoire { display: flex; align-items: center; gap: 10px; }
.mdp-provisoire code { font-size: 1.3rem; padding: 6px 12px; letter-spacing: .06em; }

/* Agenda : glisser-déposer */
.bloc.mobile { cursor: grab; -webkit-touch-callout: none; user-select: none; -webkit-user-select: none; }
.bloc.glisse { cursor: grabbing; z-index: 20; transform: scale(1.02); box-shadow: 0 18px 36px -14px rgba(59, 44, 53, .55); outline: 2px solid var(--f); transition: none; opacity: .95; }
.bloc.glisse .bloc-h { background: var(--plum); color: #fff; border-radius: 6px; padding: 1px 6px; align-self: flex-start; }
.bloc.refus { outline: 2px dashed var(--ko); background: repeating-linear-gradient(135deg, #FBEDE8 0 8px, #fff 8px 16px); }
.bloc.refus .bloc-h { background: var(--ko); }
.bloc.enregistre { opacity: .6; }
body.glissement { cursor: grabbing; user-select: none; -webkit-user-select: none; }
body.glissement .gj-col { cursor: grabbing; }
.bloc-serie { display: inline-flex; color: var(--f, var(--rose)); flex: none; }
.bloc-serie .ic { width: 14px; height: 14px; }
.annonce { position: fixed; left: 50%; bottom: 24px; translate: -50% 0; z-index: 90; display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  background: var(--plum); color: #fff; padding: 12px 14px 12px 18px; border-radius: 16px; box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .55); max-width: min(720px, calc(100vw - 24px)); font-size: .92rem; }
.annonce-actions { display: flex; gap: 8px; align-items: center; margin-left: auto; }
.annonce .btn { min-height: 34px; }
.annonce .btn-fantome { color: #fff; }
.annonce .btn-fantome:hover { background: rgba(255, 255, 255, .12); }
.t-serie { display: grid; gap: 6px; background: var(--sage-50); border: 1px solid var(--sage-100); border-radius: 12px; padding: 12px 14px; font-size: .9rem; }
.t-serie b { display: flex; align-items: center; gap: 8px; color: var(--sage-ink); }
.t-serie .ic { width: 18px; height: 18px; }
.t-serie span { color: var(--muted); }
.t-serie .btn { justify-self: start; }
.t-plier { border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; background: #fff; }
.t-plier summary { cursor: pointer; font-weight: 600; color: var(--rose); }
.t-plier[open] summary { margin-bottom: 12px; }
.repeter select { min-height: 42px; }

/* Devis */
.kpi-action { display: grid; place-items: center; }
.liste-devis { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
.devis-ligne { display: grid; grid-template-columns: 150px minmax(0, 1fr) 110px 110px; gap: 14px; align-items: center; text-decoration: none; color: var(--ink); padding: 14px 18px; }
.devis-ligne:hover { border-color: var(--blush); }
.devis-ligne span { display: grid; min-width: 0; }
.devis-ligne small { color: var(--muted); font-size: .8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dl-total { font-weight: 700; text-align: right; }
.devis-ligne .puce { justify-self: end; }
.puce-devis-envoye { background: var(--brass-50); color: var(--warn); }
.puce-devis-accepte { background: var(--sage-50); color: var(--sage-ink); }
.puce-devis-refuse, .puce-devis-annule { background: #F3ECEE; color: var(--muted); }
.puce-devis-expire { background: #FBEDE8; color: var(--ko); }
.devis-form { display: grid; gap: 16px; max-width: 920px; }
.ajout-ligne select { min-width: 280px; }
.devis-lignes { width: 100%; border-collapse: collapse; font-size: .9rem; }
.devis-lignes th { text-align: left; font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 6px; border-bottom: 1px solid var(--line); }
.devis-lignes td { padding: 6px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.devis-lignes td:first-child { min-width: 260px; }
.devis-lignes td:nth-child(2) input { width: 74px; }
.devis-lignes td:nth-child(3) input { width: 110px; }
.dl-montant { white-space: nowrap; font-weight: 600; text-align: right; min-width: 90px; }
.devis-total { border-top: 2px solid var(--line); padding-top: 10px; }
.devis-etat { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; padding: 14px 18px; }
.devis-etat > div:first-child { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.facture-actions .t-liens { justify-content: flex-end; }
.f-client.deux-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.f-client.deux-col p { display: grid; gap: 2px; margin: 0; }
.f-client.deux-col span { font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.f-client.deux-col small { color: var(--muted); }
.devis .f-lignes td:nth-child(2), .devis .f-lignes th:nth-child(2) { text-align: center; width: 60px; }
.devis .f-lignes td:nth-child(3), .devis .f-lignes th:nth-child(3) { text-align: right; width: 130px; }
.devis-note { margin-top: 16px; }
.devis-accord { margin-top: 18px; }
.devis-signature { height: 70px; border: 1px dashed var(--line); border-radius: 10px; max-width: 320px; }
.devis-client { max-width: 860px; margin: 0 auto; padding: 24px 16px 60px; display: grid; gap: 16px; }
.dc-salut { font-family: var(--display); font-size: 1.6rem; color: var(--plum); margin: 0; }
.dc-reponse h2 { margin: 0; }
.alerte-douce { background: var(--brass-50); }

/* Comptabilité */
.compta-barre { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: end; margin-bottom: 16px; }
.chip.actif { background: var(--plum); border-color: var(--plum); color: #fff; }
a.chip { text-decoration: none; }
.periode { display: flex; gap: 8px; align-items: end; flex-wrap: wrap; }
.periode label { font-size: .8rem; }
.periode input { min-height: 38px; padding: 6px 10px; }
.compta { display: grid; grid-template-columns: 1.1fr 1fr; gap: 16px; margin-top: 16px; }
.compta .reg-large { grid-column: 1 / -1; }
.fichiers { list-style: none; margin: 0 0 16px; padding: 0; display: grid; }
.fichiers li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.fichiers .ml { flex: 1; display: grid; gap: 2px; }
.fichiers small { color: var(--muted); font-size: .82rem; }

/* Import */
.etapes { list-style: none; margin: 0 0 16px; padding: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.etapes li { display: flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); color: var(--muted); font-weight: 600; font-size: .88rem; }
.etapes b { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--cream); color: var(--plum); font-size: .82rem; }
.etapes li[aria-current="step"] { border-color: var(--rose); color: var(--plum); }
.etapes li[aria-current="step"] b { background: var(--rose); color: #fff; }
.depot input[type=file] { border: 2px dashed var(--line); border-radius: 14px; padding: 18px; background: var(--cream); width: 100%; font-size: .9rem; }
.ou { display: flex; align-items: center; gap: 10px; color: var(--muted); margin: 0; font-size: .85rem; }
.ou::before, .ou::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.import-apercu th { vertical-align: bottom; min-width: 150px; }
.import-apercu th select { min-height: 36px; padding: 4px 8px; margin-top: 4px; font-weight: 600; }
.import-apercu td { font-size: .85rem; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.import-apercu td:last-child, .import-apercu th:last-child { text-align: left; }

@media (max-width: 1000px) { .compta { grid-template-columns: 1fr; } }
@media (max-width: 700px) {
  .devis-ligne { grid-template-columns: 1fr auto; gap: 6px 12px; }
  .devis-ligne .dl-qui { grid-column: 1 / -1; grid-row: 2; }
  .dl-total { text-align: left; }
  .f-client.deux-col { grid-template-columns: 1fr; }
  .cnx-comptes { grid-template-columns: 1fr 1fr; }
  .annonce { left: 12px; right: 12px; translate: none; bottom: 84px; }
  .annonce-actions { margin-left: 0; }
  .ajout-ligne select { min-width: 0; width: 100%; }
  .devis-form .carte-tete { flex-wrap: wrap; }
}
@media print {
  .devis-etat, .dc-reponse, .dc-salut, .fil-ariane { display: none !important; }
  .devis-client { padding: 0; }
}

/* ---------- Studio : choix des photos (galerie ou appareil) ---------- */
.photos-choix { display: grid; gap: 10px; }
.photo-choix { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 12px; border: 1px dashed var(--line); border-radius: var(--r-sm); background: var(--paper); min-width: 0; }
.photo-titre { flex: 1 0 100%; font-weight: 600; font-size: .9rem; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.photo-ok { display: inline-flex; align-items: center; gap: 3px; color: var(--ok); font-weight: 600; }
.photo-ok .ic { width: 14px; height: 14px; }
.btn-photo { position: relative; flex: 1 1 140px; cursor: pointer; white-space: normal; text-align: left; }
.btn-photo .ic { width: 16px; height: 16px; }
.btn-photo:focus-within { outline: 3px solid var(--rose); outline-offset: 2px; }
.btn-photo.seul-tactile { background: var(--sage-50); border-color: var(--sage-100); color: var(--sage-ink); }
.si-souris { display: none; }
@media (hover: hover) and (pointer: fine) { .seul-tactile, .si-tactile { display: none; } .si-souris { display: inline; } }

/* ---------- Studio : bulletin pour le propriétaire ---------- */
.phrases { display: grid; gap: 12px; }
.phrases-titre { margin: 0 0 6px; font-weight: 700; font-size: .85rem; color: var(--plum); }
.phrases-liste { display: flex; flex-wrap: wrap; gap: 6px; }
.phrase { display: inline-flex; align-items: stretch; max-width: 100%; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); overflow: hidden; }
.phrase-choix { border: 0; background: none; font: inherit; font-size: .84rem; line-height: 1.3; text-align: left; padding: 7px 11px; color: var(--muted); cursor: pointer; min-height: 36px; }
.phrase-choix[aria-pressed="true"] { background: var(--plum); color: #fff; }
.phrase-choix[aria-pressed="true"]::before { content: "✓ "; font-weight: 700; }
.phrase:has(.phrase-choix[aria-pressed="true"]) { border-color: var(--plum); }
.phrase-suppr { border: 0; border-left: 1px solid var(--line); background: var(--cream); color: var(--muted); font-size: 1.05rem; line-height: 1; padding: 0 10px; cursor: pointer; min-width: 34px; }
.phrase-suppr:hover, .phrase-suppr:focus-visible { background: var(--blush-50); color: var(--rose-dark); }
.phrase-choix:focus-visible, .phrase-suppr:focus-visible { outline: 3px solid var(--rose); outline-offset: -3px; }
.lien-bouton { justify-self: start; border: 0; background: none; padding: 2px 0; font: inherit; font-size: .84rem; font-weight: 600; color: var(--rose); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.phrase-ajout { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 8px 12px; background: var(--paper); }
.phrase-ajout summary { cursor: pointer; font-weight: 600; font-size: .88rem; color: var(--rose); display: flex; align-items: center; gap: 6px; list-style: none; }
.phrase-ajout summary::-webkit-details-marker { display: none; }
.phrase-ajout summary .ic { width: 16px; height: 16px; }
.phrase-ajout[open] summary { margin-bottom: 10px; }
.phrase-ajout .pile { gap: 8px; }
.bulletin-apercu { background: var(--sage-50); border: 1px solid var(--sage-100); border-radius: var(--r-sm); padding: 10px 12px; font-size: .86rem; }
.bulletin-apercu b { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--sage-ink); margin-bottom: 6px; }
.bulletin-apercu p { white-space: pre-line; margin: 0; color: var(--ink); }

/* Statistiques : période affichée */
.periode-txt { margin: -4px 0 16px; font-size: .9rem; color: var(--muted); }
.periode-txt b { color: var(--ink); font-weight: 600; }

/* ---------- Tournée : adresses modifiables, « Y aller », itinéraire en parties ---------- */
.arrets li.arret { align-items: flex-start; flex-wrap: wrap; }
.arrets li.arret .num { margin-top: 2px; }
.arrets li.arret .ml { flex: 1 1 200px; min-width: 0; display: grid; gap: 2px; }
.arrets li.arret time { margin-top: 4px; }
.arret-sans { background: linear-gradient(90deg, var(--blush-50), transparent 70%); }
.arret-adresse { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: .88rem; margin-top: 4px; }
.arret-adresse .ic { width: 16px; height: 16px; color: var(--rose); flex: none; }
.arret-adresse .manque { color: var(--ko); }
.arret-adresse > span { flex: 0 1 auto; min-width: 0; }
.adresse-form { display: grid; gap: 8px; margin-top: 6px; position: relative; }
.adresse-form input { width: 100%; }
.adresse-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.arret-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.menu-aller { position: relative; }
.menu-aller summary { list-style: none; cursor: pointer; }
.menu-aller summary::-webkit-details-marker { display: none; }
.menu-aller summary .ic { width: 16px; height: 16px; }
.menu-aller-liste { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; min-width: 170px; display: grid; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-sm); box-shadow: var(--ombre); padding: 6px; }
.menu-aller-liste a { padding: 9px 10px; border-radius: 8px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .9rem; }
.menu-aller-liste a:hover, .menu-aller-liste a:focus-visible { background: var(--blush-50); }
.parties { display: grid; gap: 8px; }
.parties .btn { justify-content: flex-start; text-align: left; white-space: normal; }
.depart-form { border-top: 1px solid var(--line); padding-top: 14px; gap: 8px; }
.depart-form label:first-child { position: relative; }

/* Suggestions d'adresses (IGN / swisstopo) */
.suggestions-adresse { position: absolute; left: 0; right: 0; top: 100%; z-index: 40; margin: 4px 0 0; padding: 4px; list-style: none; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-sm); box-shadow: var(--ombre); max-height: 260px; overflow-y: auto; }
.suggestions-adresse li[role="option"] { padding: 9px 10px; border-radius: 8px; cursor: pointer; font-size: .9rem; line-height: 1.3; }
.suggestions-adresse li[role="option"]:hover, .suggestions-adresse li[aria-selected="true"] { background: var(--blush-50); }
.suggestions-source { padding: 6px 10px 4px; font-size: .72rem; color: var(--muted); border-top: 1px solid var(--line); margin-top: 4px; }
