.lv-carburant-search,
.lv-carburant-results,
.lv-legende-wrapper {
--lvc-border: #e2e8f0;
--lvc-ink: #0f172a;
--lvc-muted: #64748b;
--lvc-accent: #16a34a;
box-sizing: border-box;
font-family: inherit;
}
.lv-carburant-search *,
.lv-carburant-results *,
.lv-legende-wrapper * { box-sizing: border-box; } .lv-carburant-search {
max-width: 640px;
margin: 0 auto 22px;
padding: 20px;
border: 1px solid var(--lvc-border);
border-radius: 16px;
background: #fff;
box-shadow: 0 6px 22px rgba(15, 23, 42, .06);
}
.lv-cb-label {
display: block;
font-size: 13px;
font-weight: 700;
color: var(--lvc-muted);
margin: 0 0 7px;
text-transform: uppercase;
letter-spacing: .03em;
}
.lv-cb-field { margin-bottom: 16px; } .lv-select-wrapper { position: relative; }
.lv-select-display {
width: 100%;
text-align: left;
padding: 12px 40px 12px 14px;
border: 1.5px solid var(--lvc-border);
border-radius: 12px;
background: #f8fafc;
font-size: 15px;
font-weight: 600;
color: var(--lvc-ink);
cursor: pointer;
position: relative;
}
.lv-select-display::after {
content: "";
position: absolute;
right: 16px; top: 50%;
width: 9px; height: 9px;
border-right: 2px solid var(--lvc-muted);
border-bottom: 2px solid var(--lvc-muted);
transform: translateY(-65%) rotate(45deg);
transition: transform .2s;
}
.lv-select-wrapper.open .lv-select-display::after { transform: translateY(-35%) rotate(-135deg); }
.lv-select-options {
list-style: none;
margin: 6px 0 0;
padding: 6px;
position: absolute;
z-index: 30;
left: 0; right: 0;
background: #fff;
border: 1px solid var(--lvc-border);
border-radius: 12px;
box-shadow: 0 12px 30px rgba(15, 23, 42, .14);
display: none;
max-height: 320px;
overflow: auto;
}
.lv-select-wrapper.open .lv-select-options { display: block; }
.lv-select-options li {
padding: 10px 12px;
border-radius: 9px;
cursor: pointer;
font-weight: 600;
color: var(--lvc-ink);
display: flex;
align-items: center;
gap: 8px;
}
.lv-select-options li::before {
content: "";
width: 12px; height: 12px;
border-radius: 50%;
background: var(--chip, #cbd5e1);
flex: 0 0 auto;
}
.lv-select-options li small { color: var(--lvc-muted); font-weight: 600; }
.lv-select-options li:hover,
.lv-select-options li.sel { background: #f1f5f9; } .lv-tabs {
display: flex;
gap: 6px;
background: #f1f5f9;
padding: 4px;
border-radius: 12px;
margin-bottom: 14px;
}
.lv-tab {
flex: 1;
padding: 9px 10px;
border: 0;
border-radius: 9px;
background: transparent;
font-size: 14px;
font-weight: 700;
color: var(--lvc-muted);
cursor: pointer;
transition: background .15s, color .15s;
}
.lv-tab.active { background: #fff; color: var(--lvc-ink); box-shadow: 0 1px 3px rgba(15, 23, 42, .12); }
.lv-tab-content { display: none; }
.lv-tab-content.active { display: block; } .lv-carburant-radius {
width: 100%;
accent-color: var(--lvc-accent);
margin: 4px 0 14px;
}
.lv-radius-val { color: var(--lvc-accent); } .lv-carburant-btn {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 8px;
width: 100%;
padding: 13px 18px;
border: 0;
border-radius: 12px;
background: var(--lvc-accent);
color: #fff;
font-size: 15px;
font-weight: 700;
cursor: pointer;
transition: filter .15s, transform .05s;
}
.lv-carburant-btn:hover { filter: brightness(1.06); }
.lv-carburant-btn:active { transform: translateY(1px); }
.lv-carburant-geoloc-btn.loading { opacity: .7; pointer-events: none; }
.lv-cb-row { display: flex; gap: 8px; }
.lv-cb-row input[type="text"] {
flex: 1;
padding: 12px 14px;
border: 1.5px solid var(--lvc-border);
border-radius: 12px;
font-size: 15px;
}
.lv-cb-row .lv-carburant-btn { width: auto; white-space: nowrap; } .lv-carburant-loading {
display: flex;
align-items: center;
gap: 10px;
justify-content: center;
padding: 22px;
color: var(--lvc-muted);
font-weight: 600;
}
.lv-spinner {
width: 20px; height: 20px;
border: 3px solid #e2e8f0;
border-top-color: var(--lvc-accent);
border-radius: 50%;
animation: lvc-spin .8s linear infinite;
}
@keyframes lvc-spin { to { transform: rotate(360deg); } } .lv-carburant-results {
display: grid;
grid-template-columns: 1fr;
gap: 14px;
}
@media (min-width: 720px) { .lv-carburant-results { grid-template-columns: 1fr 1fr; } }
.lv-cb-empty {
grid-column: 1 / -1;
text-align: center;
color: var(--lvc-muted);
padding: 26px;
background: #f8fafc;
border-radius: 12px;
}
.lv-carburant-card {
position: relative;
border: 1px solid var(--lvc-border);
border-radius: 14px;
background: #fff;
overflow: hidden;
box-shadow: 0 2px 10px rgba(15, 23, 42, .05);
display: flex;
flex-direction: column;
}
.lv-carburant-card.is-top {
border-color: #bbf7d0;
box-shadow: 0 6px 22px rgba(22, 163, 74, .16);
}
.lv-cb-rank {
align-self: flex-start;
margin: 12px 0 0 12px;
padding: 4px 10px;
border-radius: 999px;
font-size: 12px;
font-weight: 800;
background: #f1f5f9;
color: var(--lvc-muted);
}
.lv-carburant-card.is-top .lv-cb-rank { background: var(--lvc-accent); color: #fff; }
.lv-cb-main { padding: 10px 14px 14px; }
.lv-cb-head {
display: flex;
align-items: baseline;
justify-content: space-between;
gap: 8px;
}
.lv-cb-head h3 { margin: 0; font-size: 17px; color: var(--lvc-ink); line-height: 1.25; }
.lv-cb-dist {
flex: 0 0 auto;
font-size: 12px;
font-weight: 700;
color: var(--lvc-accent);
background: #f0fdf4;
padding: 3px 9px;
border-radius: 999px;
}
.lv-cb-addr { font-size: 13px; color: var(--lvc-muted); margin: 4px 0 10px; }
.lv-cb-bigprice {
font-size: 28px;
font-weight: 800;
color: var(--lvc-ink);
line-height: 1;
margin: 0 0 10px;
}
.lv-cb-bigprice small { font-size: 13px; font-weight: 600; color: var(--lvc-muted); }
.lv-carburant-prices {
display: flex;
flex-wrap: wrap;
gap: 6px;
margin-bottom: 12px;
}
.lv-price {
font-size: 12.5px;
color: var(--lvc-ink);
background: #fff;
border: 1px solid var(--lvc-border);
border-left: 3px solid var(--chip, #cbd5e1);
padding: 4px 9px;
border-radius: 7px;
white-space: nowrap;
}
.lv-price b { color: var(--chip, #475569); margin-right: 4px; }
.lv-price.is-empty { opacity: .45; }
.lv-price.is-selected {
background: var(--chip, #16a34a);
border-color: var(--chip, #16a34a);
color: #fff;
font-weight: 700;
}
.lv-price.is-selected b { color: #fff; }
.lv-cb-actions {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 8px;
}
.lv-cb-go {
text-decoration: none;
font-size: 13px;
font-weight: 700;
padding: 7px 13px;
border-radius: 9px;
background: var(--lvc-ink);
color: #fff !important;
}
.lv-cb-go.alt { background: #1d4ed8; }
.lv-cb-go:hover { filter: brightness(1.1); }
.lv-cb-page {
font-size: 13px;
font-weight: 700;
text-decoration: none;
color: var(--lvc-accent) !important;
}
.lv-cb-maj { font-size: 11px; color: #94a3b8; margin-left: auto; } .lv-legende-wrapper {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
gap: 10px;
margin: 16px 0;
}
.lv-legende-item {
display: flex;
align-items: center;
gap: 9px;
padding: 10px 12px;
border: 1px solid var(--lvc-border);
border-radius: 11px;
background: #fff;
font-size: 13px;
}
.lv-legende-color { width: 14px; height: 14px; border-radius: 50%; flex: 0 0 auto; }
.lv-legende-name { color: var(--lvc-ink); }
.lv-legende-name small { color: var(--lvc-muted); font-weight: 600; }
.lv-legende-avg { margin-left: auto; color: var(--lvc-muted); font-size: 12px; white-space: nowrap; }
.lv-legende-avg strong { color: var(--lvc-ink); }