/* Direction artistique : street food jeune et gourmande (crème, rouge flamme, orange, brun barbecue). */
:root {
	--tm-coral: #D62300;       /* rouge flamme : action principale */
	--tm-coral-dark: #A81C00;
	--tm-coral-deep: #502314;  /* brun barbecue : titres et texte fort */
	--tm-coral-soft: #FFE7CC;  /* orange très clair */
	--tm-coral-mid: #FFC48A;
	--tm-orange: #FF8732;
	--tm-yellow: #FFAA00;
	--tm-ink: #502314;
	--tm-ink-2: #7A4A33;
	--tm-ink-3: #A9846F;
	--tm-line: #EBDCC7;
	--tm-bg: #FFFFFF;
	--tm-bg-2: #F5EBDC;        /* crème */
	--tm-cream: #FFF8EE;
	--tm-green-bg: #DDF2E2;
	--tm-green: #0F6B2F;
	--tm-amber-bg: #FFEDC2;
	--tm-amber: #7A4A00;
	--tm-blue: #2F7DE1;
	--tm-radius: 16px;
	--tm-top: 66px;
	--tm-font-head: "Fredoka", "Nunito", system-ui, sans-serif;
	--tm-font-body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
	--tm-shadow: 0 2px 0 rgba(80, 35, 20, .08), 0 10px 28px rgba(80, 35, 20, .14);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
.tm-body {
	font-family: var(--tm-font-body);
	font-size: 15px;
	line-height: 1.5;
	color: var(--tm-ink);
	background: var(--tm-bg);
	-webkit-font-smoothing: antialiased;
}
.tm-body h1, .tm-body h2, .tm-body h3 { font-family: var(--tm-font-head); font-weight: 600; line-height: 1.25; margin: 0; }
.tm-body a { color: inherit; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Boutons ---------- */
.tm-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 6px;
	height: 40px; padding: 0 16px; border-radius: 999px;
	border: 1px solid var(--tm-line); background: var(--tm-bg); color: var(--tm-ink);
	font: 500 14px/1 var(--tm-font-body); text-decoration: none; cursor: pointer; white-space: nowrap;
	transition: background .15s, border-color .15s, transform .1s;
}
.tm-btn:hover { background: var(--tm-bg-2); border-color: #d3d1c7; }
.tm-btn:active { transform: scale(.98); }
.tm-btn .ti { font-size: 18px; }
.tm-btn-primary { background: var(--tm-coral); border-color: var(--tm-coral); color: #fff; }
.tm-btn-primary:hover { background: var(--tm-coral-dark); border-color: var(--tm-coral-dark); }
.tm-btn.is-busy .ti { animation: tm-spin 1s linear infinite; }
.tm-btn:focus-visible, .tm-chip:focus-visible, .tm-item:focus-visible { outline: 2px solid var(--tm-coral); outline-offset: 2px; }

/* ---------- En-tête ---------- */
.tm-top {
	position: sticky; top: 0; z-index: 1000;
	display: flex; align-items: center; gap: 12px;
	height: var(--tm-top); padding: 0 16px;
	background: var(--tm-bg); border-bottom: 1px solid var(--tm-line);
}
.tm-logo { display: flex; align-items: center; gap: 8px; text-decoration: none; font: 600 18px var(--tm-font-head); flex: none; }
.tm-logo-mark { width: 34px; height: 34px; border-radius: 10px; background: var(--tm-coral); color: #fff; display: grid; place-items: center; font-size: 20px; }
.tm-nav { display: flex; align-items: center; gap: 18px; margin-left: auto; font-size: 14px; }
.tm-nav a { text-decoration: none; color: var(--tm-ink-2); }
.tm-nav a:hover { color: var(--tm-ink); }
.tm-nav-pro { color: var(--tm-coral-dark) !important; border: 1px solid var(--tm-coral); border-radius: 999px; padding: 6px 14px; }

.tm-search { position: relative; flex: 1; max-width: 460px; display: flex; align-items: center; }
.tm-search > .ti { position: absolute; left: 14px; color: var(--tm-ink-3); font-size: 18px; pointer-events: none; }
.tm-search input {
	width: 100%; height: 42px; padding: 0 14px 0 40px; border-radius: 999px;
	border: 1px solid var(--tm-line); background: var(--tm-bg-2); font: 400 15px var(--tm-font-body); color: var(--tm-ink);
}
.tm-search input:focus { outline: none; border-color: var(--tm-coral); background: var(--tm-bg); }
.tm-suggest {
	position: absolute; top: 48px; left: 0; right: 0; margin: 0; padding: 6px; list-style: none;
	background: var(--tm-bg); border-radius: var(--tm-radius); box-shadow: var(--tm-shadow); z-index: 10;
}
.tm-suggest li { display: flex; gap: 10px; align-items: flex-start; padding: 10px; border-radius: 8px; cursor: pointer; font-size: 14px; color: var(--tm-ink-2); }
.tm-suggest li strong { color: var(--tm-ink); font-weight: 500; }
.tm-suggest li:hover { background: var(--tm-bg-2); }
.tm-suggest li .ti { color: var(--tm-coral); margin-top: 2px; }

/* ---------- Filtres ---------- */
.tm-filters { border-bottom: 1px solid var(--tm-line); background: var(--tm-bg); }
.tm-chips { display: flex; gap: 8px; overflow-x: auto; padding: 10px 16px; scrollbar-width: none; }
.tm-chips::-webkit-scrollbar { display: none; }
.tm-chip {
	flex: none; display: inline-flex; align-items: center; gap: 6px;
	height: 36px; padding: 0 14px; border-radius: 999px;
	border: 1px solid var(--tm-line); background: var(--tm-bg); color: var(--tm-ink);
	font: 500 13px var(--tm-font-body); cursor: pointer; transition: all .15s;
}
.tm-chip .ti { font-size: 17px; color: var(--tm-coral); }
.tm-chip:hover { border-color: var(--tm-ink-3); }
.tm-chip.is-on { background: var(--tm-ink); border-color: var(--tm-ink); color: #fff; }
.tm-chip.is-on .ti { color: #fff; }
.tm-chip-open .tm-dot { width: 8px; height: 8px; border-radius: 50%; background: #639922; }
.tm-chip-open.is-on { background: var(--tm-green-bg); border-color: #97C459; color: var(--tm-green); }

.tm-bar { display: flex; align-items: center; gap: 12px; padding: 8px 16px; border-bottom: 1px solid var(--tm-line); }
.tm-seg { display: flex; background: var(--tm-bg-2); border-radius: 10px; padding: 3px; }
.tm-seg button { border: 0; background: transparent; padding: 6px 14px; border-radius: 8px; font: 500 13px var(--tm-font-body); color: var(--tm-ink-2); cursor: pointer; display: flex; gap: 6px; align-items: center; }
.tm-seg button.is-on { background: var(--tm-bg); color: var(--tm-ink); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.tm-count { font-size: 13px; color: var(--tm-ink-2); flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tm-sort select { height: 34px; border: 1px solid var(--tm-line); border-radius: 8px; padding: 0 10px; font: 500 13px var(--tm-font-body); background: var(--tm-bg); color: var(--tm-ink); }

/* ---------- Disposition carte / liste ---------- */
.tm-app { height: 100vh; height: 100dvh; display: flex; flex-direction: column; overflow: hidden; }
.tm-main { flex: 1; display: grid; grid-template-columns: 420px minmax(0, 1fr); min-height: 0; }
.tm-list { overflow-y: auto; border-right: 1px solid var(--tm-line); }
.tm-mapwrap { position: relative; min-height: 0; }
#tm-map { position: absolute; inset: 0; background: var(--tm-bg-2); }
.tm-app .tm-seg { display: none; }

@media (max-width: 899px) {
	.tm-top { gap: 8px; padding: 0 12px; }
	.tm-logo span:last-child, .tm-nav, #tm-locate span { display: none; }
	#tm-locate { width: 42px; padding: 0; flex: none; }
	.tm-count { visibility: hidden; }
	.tm-app .tm-seg { display: flex; }
	.tm-main { grid-template-columns: 1fr; }
	.tm-main[data-view="map"] .tm-list { display: none; }
	.tm-main[data-view="list"] .tm-mapwrap { display: none; }
	.tm-list { border-right: 0; }
}

/* ---------- Éléments de liste ---------- */
.tm-item { display: flex; gap: 14px; padding: 14px 16px; border-bottom: 1px solid var(--tm-line); cursor: pointer; transition: background .15s; }
.tm-item:hover, .tm-item.is-sel { background: var(--tm-bg-2); }
.tm-item.is-sel { box-shadow: inset 3px 0 0 var(--tm-coral); }
.tm-thumb, .tm-card-thumb { flex: none; width: 84px; height: 84px; border-radius: 12px; background: var(--tm-coral-soft) center / cover no-repeat; }
.tm-thumb-icon { display: grid; place-items: center; color: var(--tm-coral-dark); font-size: 34px; }
.tm-item-body, .tm-card-body { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 4px; }
.tm-item h3, .tm-card h3 { font-size: 16px; }
.tm-meta { font-size: 13px; color: var(--tm-ink-2); }
.tm-stop { font-size: 13px; color: var(--tm-ink-2); display: flex; align-items: center; gap: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tm-stop .ti { color: var(--tm-coral); }

.tm-badge { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; padding: 3px 10px; border-radius: 999px; }
.tm-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.tm-b-here, .tm-b-en_route { background: var(--tm-green-bg); color: var(--tm-green); }
.tm-b-next { background: var(--tm-amber-bg); color: var(--tm-amber); }
.tm-b-closed, .tm-b-none { background: #F1EFE8; color: var(--tm-ink-2); }

.tm-empty { padding: 48px 24px; text-align: center; color: var(--tm-ink-2); }
.tm-empty > .ti { font-size: 40px; color: var(--tm-ink-3); }
.tm-empty p { margin: 6px 0; }
.tm-empty strong { color: var(--tm-ink); }
.tm-spinner { width: 28px; height: 28px; margin: 0 auto; border: 3px solid var(--tm-coral-mid); border-top-color: var(--tm-coral); border-radius: 50%; animation: tm-spin .8s linear infinite; }
@keyframes tm-spin { to { transform: rotate(360deg); } }

/* ---------- Repères ---------- */
.tm-pin-wrap { background: none; border: 0; }
.tm-pin {
	position: relative; width: 40px; height: 40px; border-radius: 50%;
	display: grid; place-items: center; font-size: 21px;
	background: var(--tm-coral); color: #fff; border: 3px solid #fff;
	box-shadow: 0 2px 6px rgba(0,0,0,.25); transition: transform .15s;
	cursor: pointer;
}
.tm-pin.tm-next { background: #fff; color: var(--tm-coral); border-color: var(--tm-coral); }
.tm-pin.tm-closed { background: #B4B2A9; }
.tm-pin.is-hover, .tm-pin.is-sel { transform: scale(1.2); }
.tm-pin.is-sel { background: var(--tm-coral-deep); color: #fff; border-color: #fff; }
.tm-pin.tm-en_route::after {
	content: ""; position: absolute; right: -4px; bottom: -4px; width: 14px; height: 14px; border-radius: 50%;
	background: #639922; border: 2px solid #fff;
}
.tm-pulse { position: absolute; inset: -3px; border-radius: 50%; border: 3px solid var(--tm-coral); animation: tm-pulse 2s ease-out infinite; pointer-events: none; }
@keyframes tm-pulse { from { transform: scale(1); opacity: .7; } to { transform: scale(1.9); opacity: 0; } }
.tm-me { width: 22px; height: 22px; border-radius: 50%; background: var(--tm-blue); border: 4px solid #fff; box-shadow: 0 0 0 8px rgba(55,138,221,.2), 0 1px 4px rgba(0,0,0,.3); }
.tm-place { color: var(--tm-ink); font-size: 24px; line-height: 1; }
.leaflet-tooltip { font: 500 12px var(--tm-font-body); border-radius: 8px; border: 0; box-shadow: var(--tm-shadow); }

/* ---------- Carte résumée ---------- */
.tm-card {
	position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 900;
	width: min(420px, calc(100% - 24px)); background: var(--tm-bg); border-radius: 16px; box-shadow: var(--tm-shadow);
	padding: 12px; animation: tm-up .2s ease-out;
}
@keyframes tm-up { from { transform: translate(-50%, 16px); opacity: 0; } }
.tm-card-main { display: flex; gap: 12px; text-decoration: none; }
.tm-card-thumb { width: 76px; height: 76px; }
.tm-card-close { position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; border-radius: 50%; border: 0; background: var(--tm-bg-2); cursor: pointer; display: grid; place-items: center; font-size: 16px; color: var(--tm-ink-2); }
.tm-card-body h3 { padding-right: 30px; }
.tm-card-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }

.tm-toast { position: absolute; top: 16px; left: 50%; transform: translateX(-50%); z-index: 950; background: var(--tm-ink); color: #fff; padding: 10px 16px; border-radius: 999px; font-size: 14px; box-shadow: var(--tm-shadow); max-width: calc(100% - 32px); }

/* ---------- Fiche food truck ---------- */
.tm-page { max-width: 1080px; margin: 0 auto; padding: 0 16px 64px; }
.tm-hero { position: relative; height: 280px; margin: 16px 0 0; border-radius: 20px; background: var(--tm-coral-soft) center / cover no-repeat; display: grid; place-items: center; color: var(--tm-coral-dark); font-size: 96px; overflow: hidden; }
.tm-hero-actions { position: absolute; top: 14px; left: 14px; right: 14px; display: flex; justify-content: space-between; }
.tm-round { width: 42px; height: 42px; border-radius: 50%; background: #fff; border: 0; display: grid; place-items: center; font-size: 20px; color: var(--tm-ink); box-shadow: 0 1px 4px rgba(0,0,0,.15); cursor: pointer; text-decoration: none; }
.tm-round.is-on { color: var(--tm-coral); }
.tm-head { display: flex; gap: 16px; align-items: flex-end; margin: -44px 0 0 20px; position: relative; }
.tm-logo-big { width: 88px; height: 88px; border-radius: 20px; background: #fff center / cover no-repeat; border: 4px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,.12); display: grid; place-items: center; color: var(--tm-coral); font-size: 40px; flex: none; }
.tm-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; margin-top: 20px; }
.tm-title h1 { font-size: 30px; }
.tm-title .tm-meta { font-size: 14px; margin: 6px 0 10px; }
.tm-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 8px; }
.tm-section { margin-top: 32px; }
.tm-section h2 { font-size: 19px; margin-bottom: 14px; }
.tm-desc { color: var(--tm-ink-2); }
.tm-desc p:first-child { margin-top: 0; }

.tm-timeline { list-style: none; margin: 0; padding: 0; }
.tm-timeline li { position: relative; display: flex; gap: 14px; padding-bottom: 18px; }
.tm-timeline li::before { content: ""; position: absolute; left: 7px; top: 20px; bottom: 0; width: 2px; background: var(--tm-coral-mid); }
.tm-timeline li:last-child::before { display: none; }
.tm-tl-dot { flex: none; width: 16px; height: 16px; margin-top: 3px; border-radius: 50%; border: 3px solid var(--tm-coral); background: #fff; position: relative; z-index: 1; }
.tm-tl-current .tm-tl-dot { background: var(--tm-coral); box-shadow: 0 0 0 5px rgba(214,35,0,.2); }
.tm-tl-done .tm-tl-dot, .tm-tl-cancelled .tm-tl-dot { border-color: var(--tm-ink-3); }
.tm-tl-done, .tm-tl-cancelled { color: var(--tm-ink-3); }
.tm-tl-cancelled strong { text-decoration: line-through; }
.tm-tl-time { font-weight: 600; }
.tm-tl-sub { font-size: 13px; color: var(--tm-ink-2); }
.tm-tl-now { display: inline-block; margin-left: 6px; font-size: 12px; font-weight: 500; color: var(--tm-green); background: var(--tm-green-bg); padding: 1px 8px; border-radius: 999px; }

.tm-minimap { height: 260px; border-radius: 16px; overflow: hidden; border: 1px solid var(--tm-line); }
.tm-week { display: grid; gap: 8px; }
.tm-day { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 10px 12px; border-radius: 10px; background: var(--tm-bg-2); font-size: 14px; }
.tm-day.is-today { background: var(--tm-coral-soft); }
.tm-day-name { font-weight: 600; text-transform: capitalize; }
.tm-day-off { color: var(--tm-ink-3); }
.tm-menu { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.tm-dish { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 1px solid var(--tm-line); border-radius: 12px; font-size: 14px; }
.tm-dish-price { font-weight: 600; white-space: nowrap; }
.tm-veg { color: #3B6D11; font-size: 12px; }
.tm-side { position: sticky; top: calc(var(--tm-top) + 16px); align-self: start; display: grid; gap: 16px; }
.tm-box { border: 1px solid var(--tm-line); border-radius: 16px; padding: 16px; }
.tm-box h2 { font-size: 16px; margin-bottom: 10px; }
.tm-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 14px; }
.tm-contact a { text-decoration: none; display: flex; gap: 8px; align-items: center; }
.tm-contact .ti { color: var(--tm-coral); font-size: 18px; }

@media (max-width: 899px) {
	.tm-hero { height: 200px; margin: 0 -16px; border-radius: 0; }
	.tm-head { margin-left: 4px; }
	.tm-logo-big { width: 72px; height: 72px; }
	.tm-grid { grid-template-columns: 1fr; gap: 0; }
	.tm-side { position: static; margin-top: 32px; }
	.tm-title h1 { font-size: 24px; }
	.tm-actions .tm-btn { flex: 1; }
}

/* ---------- Inscription ---------- */
.tm-signup { max-width: 720px; margin: 0 auto; padding: 32px 16px 64px; }
.tm-signup-intro { text-align: center; margin-bottom: 28px; }
.tm-signup-intro h1 { font-size: 30px; }
.tm-signup-intro p { color: var(--tm-ink-2); margin: 8px 0 0; }
.tm-steps { display: flex; gap: 8px; margin-bottom: 24px; }
.tm-steps li { flex: 1; list-style: none; font-size: 13px; color: var(--tm-ink-3); padding-top: 10px; border-top: 4px solid var(--tm-line); }
.tm-steps li.is-on { color: var(--tm-coral-dark); border-color: var(--tm-coral); font-weight: 500; }
.tm-steps { padding: 0; }
.tm-panel { display: none; }
.tm-panel.is-on { display: block; }
.tm-panel h2 { font-size: 20px; margin-bottom: 16px; }
.tm-field { margin-bottom: 16px; }
.tm-field label, .tm-label { display: block; font-weight: 500; font-size: 14px; margin-bottom: 6px; }
.tm-field .tm-hint { font-size: 13px; color: var(--tm-ink-3); margin-top: 4px; }
.tm-input, .tm-field input[type="text"], .tm-field input[type="email"], .tm-field input[type="tel"], .tm-field input[type="url"], .tm-field textarea, .tm-field select {
	width: 100%; min-height: 44px; padding: 10px 14px; border: 1px solid #d3d1c7; border-radius: 10px;
	font: 400 15px var(--tm-font-body); color: var(--tm-ink); background: #fff;
}
.tm-field textarea { min-height: 96px; resize: vertical; }
.tm-input:focus, .tm-field input:focus, .tm-field textarea:focus { outline: none; border-color: var(--tm-coral); box-shadow: 0 0 0 3px rgba(214,35,0,.15); }
.tm-field.has-error input, .tm-field.has-error textarea { border-color: #E24B4A; }
.tm-error { color: #A32D2D; font-size: 13px; margin-top: 4px; }
.tm-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.tm-pick input { position: absolute; opacity: 0; pointer-events: none; }
.tm-pick label { margin: 0; }
.tm-pick span { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--tm-line); font-size: 14px; font-weight: 500; cursor: pointer; }
.tm-pick span .ti { color: var(--tm-coral); }
.tm-pick input:checked + span { background: var(--tm-coral); border-color: var(--tm-coral); color: #fff; }
.tm-pick input:checked + span .ti { color: #fff; }
.tm-pick input:focus-visible + span { outline: 2px solid var(--tm-coral); outline-offset: 2px; }
.tm-days span { width: 44px; padding: 0; justify-content: center; }
.tm-stop-row { border: 1px solid var(--tm-line); border-radius: 14px; padding: 16px; margin-bottom: 12px; position: relative; }
.tm-stop-row.has-error { border-color: #E24B4A; }
.tm-stop-row .tm-row-del { position: absolute; top: 10px; right: 10px; }
.tm-times { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tm-times input { width: 100%; min-height: 44px; padding: 8px 12px; border: 1px solid #d3d1c7; border-radius: 10px; font: 400 15px var(--tm-font-body); }
.tm-addr { position: relative; }
.tm-addr .tm-suggest { top: 48px; }
.tm-addr-ok { font-size: 13px; color: var(--tm-green); margin-top: 4px; }
.tm-upload { display: flex; align-items: center; gap: 12px; border: 2px dashed #d3d1c7; border-radius: 14px; padding: 16px; cursor: pointer; color: var(--tm-ink-2); }
.tm-upload .ti { font-size: 28px; color: var(--tm-coral); }
.tm-upload input { display: none; }
.tm-nav-btns { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; }
.tm-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--tm-ink-2); }
.tm-check input { margin-top: 3px; accent-color: var(--tm-coral); }
.tm-hp { position: absolute; left: -9999px; }
.tm-done { text-align: center; padding: 48px 16px; }
.tm-done .ti { font-size: 56px; color: #639922; }
.tm-notice { background: var(--tm-amber-bg); color: var(--tm-amber); padding: 12px 14px; border-radius: 10px; font-size: 14px; }

/* ======================================================================
   Direction artistique « street food » : surcharges
   ====================================================================== */
.tm-body { background: var(--tm-cream); font-size: 16px; }
.tm-body h1, .tm-body h2, .tm-body h3 { font-weight: 800; color: var(--tm-coral-deep); letter-spacing: -.01em; }
.tm-top { background: var(--tm-cream); border-bottom: 2px solid var(--tm-line); }
.tm-logo { font-weight: 800; color: var(--tm-coral-deep); font-size: 21px; }
.tm-logo-mark { background: var(--tm-coral); transform: rotate(-6deg); border-radius: 12px; box-shadow: 0 3px 0 var(--tm-coral-deep); }
.tm-nav a { color: var(--tm-ink-2); font-weight: 700; }
.tm-nav-pro { background: var(--tm-yellow); border: 0 !important; color: var(--tm-coral-deep) !important; box-shadow: 0 3px 0 #C98500; }
.tm-btn { height: 46px; padding: 0 20px; font-weight: 800; font-size: 15px; border: 2px solid var(--tm-line); color: var(--tm-coral-deep); }
.tm-btn:hover { background: var(--tm-bg-2); border-color: var(--tm-coral-mid); }
.tm-btn-primary { background: var(--tm-coral); border-color: var(--tm-coral); color: #fff; box-shadow: 0 4px 0 var(--tm-coral-deep); }
.tm-btn-primary:hover { background: var(--tm-coral-dark); border-color: var(--tm-coral-dark); }
.tm-btn-primary:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--tm-coral-deep); }
.tm-search input { background: #fff; border: 2px solid var(--tm-line); font-family: var(--tm-font-body); font-weight: 600; }
.tm-filters, .tm-bar { background: var(--tm-cream); border-color: var(--tm-line); }
.tm-chip { border: 2px solid var(--tm-line); font-weight: 800; font-family: var(--tm-font-body); color: var(--tm-coral-deep); background: #fff; }
.tm-chip .ti { color: var(--tm-coral); }
.tm-chip.is-on { background: var(--tm-coral-deep); border-color: var(--tm-coral-deep); }
.tm-chip-open.is-on { background: var(--tm-green-bg); border-color: #5BBE7A; color: var(--tm-green); }
.tm-seg { background: var(--tm-bg-2); }
.tm-seg button { font-weight: 800; color: var(--tm-ink-2); }
.tm-list { background: var(--tm-cream); }
.tm-item { border-bottom: 2px solid var(--tm-line); }
.tm-item:hover, .tm-item.is-sel { background: #fff; }
.tm-thumb, .tm-card-thumb { border-radius: 14px; background-color: var(--tm-coral-soft); }
.tm-thumb-icon { color: var(--tm-coral); }
.tm-badge { font-weight: 800; }
.tm-card { border-radius: 20px; border: 2px solid var(--tm-line); }
.tm-pin { background: var(--tm-coral); border-width: 3px; box-shadow: 0 3px 0 var(--tm-coral-deep), 0 4px 10px rgba(80,35,20,.3); }
.tm-pin.tm-here { box-shadow: 0 0 0 4px var(--tm-yellow), 0 3px 0 4px var(--tm-coral-deep); }
.tm-pin.tm-next { background: #fff; color: var(--tm-coral); border-color: var(--tm-coral); }
.tm-pin.tm-closed { background: #C8B7A6; box-shadow: 0 2px 0 #8A735F; }
.tm-pin.is-sel { background: var(--tm-coral-deep); }
.tm-pin.tm-en_route::after { background: var(--tm-yellow); }
.tm-pulse { border-color: var(--tm-yellow); }

/* ---------- Fiche food truck v2 ---------- */
.tm-back { display: inline-flex; align-items: center; gap: 6px; margin: 18px 0 8px; font-weight: 800; color: var(--tm-ink-2); text-decoration: none; }
.tm-back:hover { color: var(--tm-coral); }
.tm-fhead { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 20px; align-items: center; padding: 20px; background: #fff; border: 2px solid var(--tm-line); border-radius: 24px; }
.tm-fthumb { width: 96px; height: 96px; border-radius: 22px; background: var(--tm-coral-soft) center / cover no-repeat; display: grid; place-items: center; font-size: 46px; color: var(--tm-coral); transform: rotate(-4deg); box-shadow: 0 4px 0 var(--tm-coral-mid); }
.tm-ftitle h1 { font-size: 34px; line-height: 1.05; }
.tm-ftitle .tm-meta { font-size: 15px; font-weight: 700; margin: 4px 0 10px; }
.tm-fstatus { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.tm-factions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.tm-icon-btn { width: 46px; padding: 0; }
.tm-icon-btn.is-on { color: var(--tm-coral); border-color: var(--tm-coral-mid); }
.tm-show-sm { display: none; }

.tm-tour { margin-top: 24px; background: #fff; border: 2px solid var(--tm-line); border-radius: 24px; overflow: hidden; }
.tm-tour-head { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding: 18px 20px 14px; }
.tm-tour-head h2 { font-size: 24px; }
.tm-daytabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.tm-daytabs::-webkit-scrollbar { display: none; }
.tm-day-tab { flex: none; position: relative; display: flex; flex-direction: column; align-items: center; gap: 0; width: 56px; padding: 6px 0 8px; border-radius: 14px; border: 2px solid var(--tm-line); background: #fff; cursor: pointer; font-family: var(--tm-font-body); color: var(--tm-coral-deep); }
.tm-day-tab span { font-size: 12px; font-weight: 700; color: var(--tm-ink-2); }
.tm-day-tab strong { font: 800 19px/1.1 var(--tm-font-head); }
.tm-day-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--tm-coral); margin-top: 2px; }
.tm-day-tab.is-off .tm-day-dot { background: transparent; }
.tm-day-tab.is-off strong { color: var(--tm-ink-3); }
.tm-day-tab.is-on { background: var(--tm-coral); border-color: var(--tm-coral); box-shadow: 0 3px 0 var(--tm-coral-deep); }
.tm-day-tab.is-on span, .tm-day-tab.is-on strong { color: #fff; }
.tm-day-tab.is-on .tm-day-dot { background: var(--tm-yellow); }
.tm-tour-body { display: grid; grid-template-columns: minmax(0, 1fr) 340px; border-top: 2px solid var(--tm-line); }
.tm-tourmap { height: 460px; background: var(--tm-bg-2); }
.tm-dayplan { padding: 20px; border-left: 2px solid var(--tm-line); display: flex; flex-direction: column; gap: 14px; }
.tm-dayplan-title strong { font: 800 20px var(--tm-font-head); color: var(--tm-coral-deep); }
.tm-dayplan-title span { display: block; font-size: 14px; font-weight: 600; color: var(--tm-ink-2); }
.tm-dayplan .tm-timeline li { cursor: pointer; }
.tm-tl-off .tm-tl-dot { border-color: var(--tm-ink-3); }
.tm-tl-off { color: var(--tm-ink-2); }
.tm-timeline li::before { background: var(--tm-coral-mid); }
.tm-tl-dot { border-color: var(--tm-coral); }
.tm-tl-current .tm-tl-dot { background: var(--tm-coral); box-shadow: 0 0 0 5px rgba(255,170,0,.35); }

.tm-placepin { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; padding: 2px; border-radius: 999px; background: #fff; border: 2px solid var(--tm-coral); color: var(--tm-coral-deep); font: 800 12px/1 var(--tm-font-body); box-shadow: 0 2px 0 rgba(80,35,20,.25); transform: translate(0, 0); transition: transform .15s; }
.tm-placepin b { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--tm-coral); color: #fff; font-size: 11px; }
.tm-placepin.is-on { background: var(--tm-yellow); border-color: var(--tm-coral-deep); transform: scale(1.15); }
.tm-placepin.is-on b { background: var(--tm-coral-deep); }

.tm-places { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.tm-place-row { display: flex; gap: 12px; align-items: flex-start; padding: 14px; background: #fff; border: 2px solid var(--tm-line); border-radius: 16px; cursor: pointer; transition: border-color .15s, transform .15s; }
.tm-place-row:hover { border-color: var(--tm-coral-mid); transform: translateY(-2px); }
.tm-place-num { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--tm-coral); color: #fff; font: 800 13px var(--tm-font-body); }
.tm-place-row strong { color: var(--tm-coral-deep); }
.tm-section h2 { font-size: 24px; }
.tm-dish { background: #fff; border: 2px solid var(--tm-line); }
.tm-box { background: #fff; border: 2px solid var(--tm-line); border-radius: 20px; }
.tm-notice { background: var(--tm-amber-bg); color: var(--tm-amber); font-weight: 600; }

@media (max-width: 899px) {
	.tm-fhead { grid-template-columns: auto minmax(0, 1fr); padding: 16px; gap: 14px; }
	.tm-fthumb { width: 72px; height: 72px; font-size: 34px; }
	.tm-ftitle h1 { font-size: 26px; }
	.tm-factions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: stretch; }
	.tm-factions .tm-btn:not(.tm-icon-btn) { flex: 1 1 130px; min-width: 0; padding: 0 12px; }
	.tm-factions .tm-icon-btn { flex: none; }
	.tm-hide-sm { display: none; }
	.tm-show-sm { display: inline; }
	.tm-tour { margin-left: -16px; margin-right: -16px; border-radius: 0; border-left: 0; border-right: 0; }
	.tm-tour-head { padding: 16px; }
	.tm-tour-body { grid-template-columns: 1fr; }
	.tm-tourmap { height: 340px; }
	.tm-dayplan { border-left: 0; border-top: 2px solid var(--tm-line); padding: 16px; }
}

/* ---------- Choix du jour (écran carte) ---------- */
.tm-when { display: flex; gap: 8px; overflow-x: auto; padding: 10px 16px 0; scrollbar-width: none; }
.tm-when::-webkit-scrollbar { display: none; }
.tm-when-btn { position: relative; flex: none; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 16px; border-radius: 999px; border: 2px solid var(--tm-line); background: #fff; color: var(--tm-coral-deep); font: 800 14px var(--tm-font-body); cursor: pointer; white-space: nowrap; }
.tm-when-btn small { font-size: 12px; font-weight: 700; color: var(--tm-ink-2); }
.tm-when-btn .tm-dot { width: 8px; height: 8px; border-radius: 50%; background: #2EA44F; }
.tm-when-btn .ti { font-size: 17px; color: var(--tm-coral); }
.tm-when-btn:hover { border-color: var(--tm-coral-mid); }
.tm-when-btn.is-on { background: var(--tm-coral); border-color: var(--tm-coral); color: #fff; box-shadow: 0 3px 0 var(--tm-coral-deep); }
.tm-when-btn.is-on small, .tm-when-btn.is-on .ti { color: #FFE7CC; }
.tm-when-btn.is-on .tm-dot { background: var(--tm-yellow); }
.tm-when-pick input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; border: 0; padding: 0; }
.tm-when-btn:focus-visible, .tm-when-pick:focus-within { outline: 2px solid var(--tm-coral); outline-offset: 2px; }

/* Repères d'un jour à venir : camion + heure d'arrivée */
.tm-pin.tm-planned { background: var(--tm-orange); box-shadow: 0 3px 0 var(--tm-coral-deep), 0 4px 10px rgba(80,35,20,.3); }
.tm-pin.tm-planned.is-sel { background: var(--tm-coral-deep); }
.tm-pin-time { position: absolute; top: 34px; left: 50%; transform: translateX(-50%); padding: 1px 7px; border-radius: 999px; background: #fff; border: 2px solid var(--tm-coral-deep); color: var(--tm-coral-deep); font: 800 11px/1.3 var(--tm-font-body); white-space: nowrap; }
.tm-b-planned { background: #FFE7CC; color: #7A3A00; }
.tm-daystops { list-style: none; margin: 2px 0 0; padding: 0; font-size: 13px; color: var(--tm-ink-2); display: grid; gap: 2px; }
.tm-daystops strong { color: var(--tm-coral-deep); font-weight: 800; margin-right: 4px; }
