Fuel Advisor : carte decision, autonomie en haut, 3 meilleures stations, tendance observee testee
Tendance observee cote serveur avec seuil explicite TREND_STABLE_CENTS et tests dedies; aucun signal predictif dans le conseil. Carte hero (ACHETER MAINTENANT/ATTENDRE/FAIRE UN APPOINT), autonomie visible avant la decision, 3 meilleures stations, sections techniques repliees.
This commit is contained in:
58
style.css
58
style.css
@@ -4,3 +4,61 @@
|
||||
.card, .card *, .item, .station, .station-card { max-width: 100%; overflow-wrap: anywhere; }
|
||||
.card, .card > *, .station > *, .factor > *, .item { min-width: 0; }
|
||||
.card a { white-space: normal; }
|
||||
|
||||
/* --- Carte principale : la réponse opérationnelle domine le haut de page --- */
|
||||
.hero{border-left:4px solid var(--line,#e3e8f0)}
|
||||
.hero .verdict{margin:.2rem 0 .4rem;font-size:clamp(1.6rem,7vw,2.4rem);line-height:1.1;letter-spacing:-.01em}
|
||||
.hero-quantity{margin:.2rem 0 .3rem;font-size:clamp(1.05rem,4.6vw,1.3rem);font-weight:600}
|
||||
.hero-trend{margin:.2rem 0 .5rem;font-size:.98rem}
|
||||
.hint-inline{opacity:.65;font-size:.8em}
|
||||
.hero.tone-refuel{border-left-color:#1d4ed8}
|
||||
.hero.tone-wait{border-left-color:#0f766e}
|
||||
.hero.tone-topup{border-left-color:#b45309}
|
||||
/* --- 3 meilleures stations, très compactes --- */
|
||||
.top-stations{display:grid;gap:.5rem;grid-template-columns:1fr}
|
||||
.compact-station{padding:.55rem .7rem}
|
||||
.compact-station.best{border-color:#1d4ed8;box-shadow:0 0 0 1px #1d4ed8 inset}
|
||||
.compact-station .station-head{display:flex;justify-content:space-between;gap:.5rem;align-items:baseline;min-width:0}
|
||||
.compact-station .station-head strong{min-width:0;overflow-wrap:anywhere}
|
||||
.compact-station .hint{margin:.15rem 0}
|
||||
/* --- Sections techniques repliées par défaut sur mobile --- */
|
||||
details.section-collapse>summary{cursor:pointer;display:flex;flex-direction:column;gap:.15rem;list-style:none}
|
||||
details.section-collapse>summary::-webkit-details-marker{display:none}
|
||||
details.section-collapse>summary::after{content:'Afficher';font-size:.8rem;opacity:.7}
|
||||
details.section-collapse[open]>summary::after{content:'Masquer'}
|
||||
@media (min-width:760px){
|
||||
.top-stations{grid-template-columns:repeat(3,1fr)}
|
||||
details.section-collapse[open]>summary::after{content:''}
|
||||
}
|
||||
img.brand-logo{width:40px;height:40px;flex:0 0 auto}
|
||||
.brand{display:flex;align-items:center;gap:.6rem;min-width:0}
|
||||
|
||||
/* --- Barre du haut : véhicule et autonomie avant la décision --- */
|
||||
.top-bar{padding:.6rem .75rem}
|
||||
.top-bar-row{display:flex;flex-wrap:wrap;gap:.5rem;align-items:flex-end}
|
||||
.top-field{display:flex;flex-direction:column;min-width:0;flex:1 1 9rem}
|
||||
.top-field label{font-size:.82rem;opacity:.8}
|
||||
.top-field input,.top-field select{width:100%}
|
||||
.top-bar #advise{flex:1 1 100%}
|
||||
.top-bar #status{margin:.35rem 0 0}
|
||||
.top-bar #vehicle-info{margin:.35rem 0 0}
|
||||
@media (min-width:760px){.top-bar #advise{flex:0 0 auto}}
|
||||
|
||||
/* Mobile : la réponse opérationnelle passe avant le formulaire. L'ordre demandé est
|
||||
Fuel Advisor, véhicule, autonomie, décision, quantité, tendance, première station.
|
||||
Le reste du formulaire (carburant, favori, rayon, recherche) vient ensuite. */
|
||||
@media (max-width:759px){
|
||||
.layout{display:flex;flex-direction:column}
|
||||
#result{order:1}
|
||||
.layout>aside{order:2}
|
||||
}
|
||||
|
||||
/* Sur mobile, le haut de page doit montrer la réponse, pas le slogan : l'en-tête
|
||||
marketing est réduit au nom, et les mentions de la carte passent en second. */
|
||||
@media (max-width:759px){
|
||||
header h1{display:none}
|
||||
header{align-items:center;padding-bottom:.3rem}
|
||||
.hero .tags{display:none}
|
||||
.hero{padding-top:.6rem;padding-bottom:.6rem}
|
||||
.top-bar{padding-top:.45rem;padding-bottom:.45rem}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user