/* Poppins = typo par défaut du chatbot (messages, cartes, barre) */
.valr-cb-log, .valr-cb-log *, .valr-cb-bar, .valr-cb-bar * {
	font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
#valr-cb-app { max-width: 760px; }
.valr-cb-log {
	background: #fff;
	border: 1px solid #dcdcde;
	border-radius: 8px;
	padding: 16px;
	min-height: 320px;
	max-height: 55vh;
	overflow-y: auto;
	margin: 12px 0;
}
.valr-cb-msg {
	padding: 10px 14px;
	border-radius: 12px;
	margin: 8px 0;
	max-width: 80%;
	white-space: pre-wrap;
	line-height: 1.5;
	font-size: 15px;
}
.valr-cb-user {
	background: #e7f0fb;
	color: #1a5fb4;
	margin-left: auto;
	border-bottom-right-radius: 3px;
}
.valr-cb-assistant {
	background: transparent;
	color: #1d2327;
	padding: 2px 2px;
	max-width: 100%;
}
.valr-cb-assistant a { color: #2271b1; }
.valr-cb-arow { display: flex; align-items: flex-start; gap: 8px; margin: 8px 0; }
.valr-cb-arow .valr-cb-msg { margin: 0; }
.valr-cb-av {
	flex: 0 0 26px; width: 26px; height: 26px; border-radius: 50%; margin-top: 2px;
	display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.valr-cb-av svg { width: 26px; height: 26px; display: block; }
.valr-cb-error {
	background: #fcf0f1;
	color: #8a1f11;
	border: 1px solid #f0b4b4;
}
.valr-cb-debug {
	background: #1d2327;
	color: #9be29b;
	font-size: 12px;
	padding: 8px 12px;
	border-radius: 6px;
	margin: 4px 0;
	white-space: pre-wrap;
	overflow-x: auto;
}
.valr-cb-bar {
	display: flex; align-items: center; gap: 6px;
	background: #fff; border: 1px solid #dcdcde; border-radius: 26px;
	padding: 6px 6px 6px 18px; box-shadow: 0 1px 4px rgba(0,0,0,.05);
}
#valr-cb-input, #valr-cb-input:focus {
	flex: 1; border: 0; outline: 0; box-shadow: none; background: transparent;
	font-size: 15px; padding: 8px 0;
	margin-bottom: 0 !important; /* surcharge la marge par défaut des inputs du thème/Listeo */
}
.valr-cb-sendbtn {
	flex: 0 0 38px; width: 38px; height: 38px; border-radius: 50%; border: 0; padding: 0;
	background: #18152e; color: #fff; font-size: 18px; line-height: 1; cursor: pointer;
	display: flex; align-items: center; justify-content: center;
}
.valr-cb-sendbtn:hover { background: #2a2550; }
.valr-cb-sendbtn:disabled { background: #c5c5cd; cursor: not-allowed; }
.valr-cb-micbtn {
	flex: 0 0 36px; width: 36px; height: 36px; border-radius: 50%; border: 0; padding: 0;
	background: transparent; color: #646970; cursor: pointer;
	display: flex; align-items: center; justify-content: center;
}
.valr-cb-micbtn:hover { background: #f0f0f3; color: #18152e; }
.valr-cb-micbtn:disabled { opacity: .4; cursor: not-allowed; }
.valr-cb-micbtn.is-rec { color: #dc2626; background: #fdecec; animation: valrcb-pulse 1.2s ease-in-out infinite; }
@keyframes valrcb-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(220,38,38,.4); } 50% { box-shadow: 0 0 0 6px rgba(220,38,38,0); } }
@media (prefers-reduced-motion: reduce) { .valr-cb-micbtn.is-rec { animation: none; } }
.valr-cb-hint { display: block; color: #646970; margin-top: 8px; font-size: 12px; }

/* ---------------- Cartes ---------------- */
.vcards { display: flex; flex-direction: column; gap: 10px; margin: 6px 0 12px; max-width: 92%; }
.vcard {
	background: #fff; border: 1px solid #e6e6ea; border-radius: 14px;
	overflow: hidden; text-decoration: none; color: #1d2327;
	box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
a.vcard { display: flex; transition: box-shadow .15s, transform .15s; }
a.vcard:hover { box-shadow: 0 4px 16px rgba(0,0,0,.10); transform: translateY(-1px); }

/* Fiche (listing) — miniature en médaillon, façon Purio */
.vcard-listing { align-items: center; padding: 9px 12px 9px 10px; gap: 12px; }
.vcard-img { flex: 0 0 62px; width: 62px; height: 62px; border-radius: 10px; background: #eceef2 center/cover no-repeat; }
.vcard-img--none { display: flex; align-items: center; justify-content: center; font-size: 24px; color: #b7b7c2; }
.vcard-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.vcard-titlerow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.vcard-title { font-weight: 700; font-size: 14.5px; line-height: 1.25; color: #1d2327; }
.vbest { font-size: 11px; font-weight: 700; color: #1e7d46; background: #e7f6ec; border-radius: 6px; padding: 2px 8px; white-space: nowrap; }
.vcard-sub { font-size: 12.5px; color: #787883; line-height: 1.4; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.vcard-meta { font-size: 12px; color: #9a9aa5; margin-top: 2px; }
.vpin { color: #9a9aa5; }
.vrate { color: #e8912b; font-weight: 700; margin-left: 4px; }
.vcard-price { align-self: flex-start; margin-top: 3px; font-weight: 800; color: #1e7d46; font-size: 12.5px; }
.vmore { display: block; margin: 6px auto 0; background: #eaf1fb; color: #1a5fb4; border: 0; border-radius: 18px; padding: 7px 18px; font-size: 13px; font-weight: 600; cursor: pointer; }
.vmore:hover { background: #dce8f8; }
.vmore-hidden { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.vmore-hidden[hidden] { display: none; }

/* Fiche détaillée + blocs */
.vcard-block, .vcard-detail { padding: 12px 15px; }
.vcard-head { font-weight: 700; font-size: 13.5px; margin-bottom: 9px; color: #18152e; }
.vcard-line { font-size: 13px; color: #4a4a55; margin: 3px 0; }
.vcard-link { display: inline-block; margin-top: 8px; font-size: 13px; color: #2271b1; text-decoration: none; font-weight: 600; }
.vcard-hours { margin: 8px 0 4px; border-top: 1px solid #f0f0f3; }
.vkv { display: flex; justify-content: space-between; font-size: 12.5px; padding: 3px 0; border-bottom: 1px solid #f5f5f7; }
.vkv span { color: #787883; }
.vlive { float: right; font-size: 11px; color: #16a34a; font-weight: 700; }
.vline { font-size: 13px; color: #3a3a44; padding: 4px 0; border-bottom: 1px solid #f5f5f7; }
.vline:last-child { border-bottom: 0; }
.vline a { color: #2271b1; text-decoration: none; }
.vline small, .vcard-head small { color: #9a9aa5; font-weight: 500; }

/* Jauges (parkings / vélos) */
.vrow { padding: 7px 0; border-bottom: 1px solid #f5f5f7; }
.vrow:last-child { border-bottom: 0; }
.vrow-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 5px; }
.vrow-name { font-size: 13.5px; font-weight: 600; }
.vrow-name a { color: inherit; text-decoration: none; }
.vrow-val { font-size: 13px; font-weight: 800; }
.vrow-green { color: #16a34a; } .vrow-orange { color: #d97706; } .vrow-red { color: #dc2626; }
.vgauge { height: 7px; background: #eeeef1; border-radius: 6px; overflow: hidden; }
.vgauge-fill { display: block; height: 100%; border-radius: 6px; }
.vgauge-green { background: #16a34a; } .vgauge-orange { background: #d97706; } .vgauge-red { background: #dc2626; }

/* Chips (marées / séances) */
.vchips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.vchip { background: #f3f3f6; border-radius: 8px; padding: 4px 9px; font-size: 12.5px; font-weight: 600; color: #33333d; }
.vchip small { color: #9a9aa5; font-weight: 500; }
.vchip-vo { background: #eef4ff; color: #1d4ed8; }
.vchip-vf { background: #f3f3f6; }

/* Marées */
.vtide-next { display: flex; align-items: center; gap: 12px; }
.vtide-ico { font-size: 26px; }
.vtide-lbl { font-size: 12px; color: #787883; text-transform: capitalize; }
.vtide-h { font-size: 16px; font-weight: 800; color: #0e7490; }

/* Météo */
.vmeteo-now { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.wx { width: 32px; height: 32px; display: block; }
.vmeteo-ico { display: inline-flex; color: #d97706; }
.vday-ico { display: flex; justify-content: center; margin: 5px 0; color: #4a4a55; }
.vday-ico .wx { width: 26px; height: 26px; }
.vcards--live .vmeteo-ico { color: #ffcb66; }
.vcards--live .vday-ico { color: #e2d1b5; }
.vmeteo-t { font-size: 34px; font-weight: 800; color: #18152e; }
.vmeteo-lbl { font-weight: 700; font-size: 14px; }
.vmeteo-sub { font-size: 12.5px; color: #646970; }
.vdays { display: flex; gap: 8px; overflow-x: auto; margin-top: 10px; padding-top: 8px; border-top: 1px solid #f0f0f3; }
.vday { flex: 0 0 auto; text-align: center; min-width: 82px; background: #f8f8fb; border-radius: 10px; padding: 8px 6px; }
.vday-j { font-size: 12px; font-weight: 700; color: #33333d; text-transform: capitalize; }
.vday-c { font-size: 11px; color: #787883; margin: 3px 0; min-height: 26px; }
.vday-t { font-size: 13px; } .vday-t b { color: #18152e; }
.vday-p { font-size: 11px; color: #2563eb; margin-top: 2px; }

/* Films / carburants */
.vfilm { padding: 9px 0; border-bottom: 1px solid #f5f5f7; }
.vfilm:last-child { border-bottom: 0; }
.vfilm-t { font-weight: 700; font-size: 13.5px; } .vfilm-t small { color: #9a9aa5; font-weight: 500; }
.vfuel { padding: 4px 0 10px; }

/* Carte d'incitation à l'inscription (freemium) */
.vcard-gate { text-align: center; padding: 18px 16px; background: linear-gradient(135deg, #f3f6fc, #eef2fa); border-color: #dbe4f3; }
.vgate-title { font-weight: 800; font-size: 15px; color: #18152e; }
.vgate-sub { font-size: 13px; color: #5a5a66; margin: 5px 0 12px; }
.vgate-btns { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.vgate-btn { text-decoration: none; font-size: 13.5px; font-weight: 700; padding: 9px 18px; border-radius: 22px; border: 1px solid #c9d4e8; color: #1a5fb4; background: #fff; }
.vgate-btn:hover { background: #f4f8ff; }
.vgate-primary { background: #18152e; color: #fff; border-color: #18152e; }
.vgate-primary:hover { background: #2a2550; color: #fff; }

/* Boutons de cadrage (propose_choices) */
.vchoices-q { font-weight: 700; font-size: 14px; color: #1d2327; margin-bottom: 10px; }
.vchoices-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.vchoice { background: #fff; border: 1px solid #c9d4e8; color: #1a5fb4; border-radius: 20px; padding: 8px 15px; font-size: 13.5px; font-weight: 600; cursor: pointer; transition: background .12s; }
.vchoice:hover { background: #eef4ff; }

/* ---------------- Variante éditoriale navy (cartes temps réel) ---------------- */
.vcards--live .vcard {
	background: #1d1c3c; border-color: rgba(226,209,181,.14); color: #e2d1b5;
	box-shadow: 0 1px 3px rgba(0,0,0,.25);
}
.vcards--live .vcard-head { color: #e2d1b5; text-transform: uppercase; letter-spacing: .05em; font-size: 12.5px; }
.vcards--live .vcard-head small { color: rgba(226,209,181,.5); }
.vcards--live .vcard-title { color: #e2d1b5; }
.vcards--live .vcard-meta { color: rgba(226,209,181,.6); }
.vcards--live .vcard-line { color: #d8cbb0; }
.vcards--live .vlive { color: #ffcb66; }
/* Jauges : libre→jaune, tendu→rose, complet→sable estompé */
.vcards--live .vrow { border-bottom-color: rgba(226,209,181,.12); }
.vcards--live .vrow-name, .vcards--live .vrow-name a { color: #e2d1b5; }
.vcards--live .vrow-green  { color: #ffcb66; }
.vcards--live .vrow-orange { color: #d9667b; }
.vcards--live .vrow-red    { color: rgba(226,209,181,.5); }
.vcards--live .vgauge { background: rgba(226,209,181,.14); }
.vcards--live .vgauge-green  { background: #ffcb66; }
.vcards--live .vgauge-orange { background: #d9667b; }
.vcards--live .vgauge-red    { background: rgba(226,209,181,.3); }
/* Chips */
.vcards--live .vchip { background: #26244a; color: #e2d1b5; }
.vcards--live .vchip small { color: rgba(226,209,181,.55); }
.vcards--live .vchip-vo { background: transparent; border: 1px solid #d9667b; color: #d9667b; }
.vcards--live .vchip-vf { background: #26244a; color: #e2d1b5; }
/* Marées */
.vcards--live .vtide-lbl { color: rgba(226,209,181,.55); }
.vcards--live .vtide-h { color: #ffcb66; }
/* Météo */
.vcards--live .vmeteo-t { color: #ffcb66; }
.vcards--live .vmeteo-lbl { color: #e2d1b5; text-transform: uppercase; letter-spacing: .02em; }
.vcards--live .vmeteo-sub { color: rgba(226,209,181,.6); }
.vcards--live .vdays { border-top-color: rgba(226,209,181,.14); }
.vcards--live .vday { background: #26244a; }
.vcards--live .vday-j { color: #e2d1b5; }
.vcards--live .vday-c { color: rgba(226,209,181,.55); }
.vcards--live .vday-t { color: #e2d1b5; } .vcards--live .vday-t b { color: #ffcb66; }
.vcards--live .vday-p { color: #d9667b; }
/* Listes / films / carburants */
.vcards--live .vline { color: #d8cbb0; border-bottom-color: rgba(226,209,181,.12); }
.vcards--live .vline a { color: #ffcb66; }
.vcards--live .vline small { color: rgba(226,209,181,.5); }
.vcards--live .vfilm { border-bottom-color: rgba(226,209,181,.12); }
.vcards--live .vfilm-t { color: #e2d1b5; } .vcards--live .vfilm-t small { color: rgba(226,209,181,.5); }
.vcards--live .vkv { border-bottom-color: rgba(226,209,181,.1); }
.vcards--live .vkv span { color: rgba(226,209,181,.55); }
