/* Chantier n° 4 (30/10) — Offres façon SpiderVO. Préfixe « o4- ». Chargé après ord.css. */
.o4-tel{display:none}
@media (max-width:767px){
  /* O1 : au téléphone, une ligne par affaire, trame de Leads — barre de couleur = état, client en gras, voiture
     (« Reprise » en mot), net et délai à droite, un mot d'état, un geste bleu. */
  .or-liste .or-ln{display:block!important;position:relative;padding:0!important;min-height:0}
  .or-liste .or-ln>*:not(.o4-tel):not(.or-ln-a){display:none!important}
  .o4-tel{display:grid;grid-template-columns:6px minmax(0,1fr) auto;grid-template-areas:"b cl net" "b vo delai" "b mot go";gap:4px 10px;align-items:center;padding:10px 12px 10px 0}
  .o4-barre{grid-area:b;align-self:stretch;width:6px;border-radius:0 3px 3px 0;background:hsl(var(--ap-trait-fort))}
  .t-bleu>.o4-barre{background:hsl(var(--ap-action))}
  .t-orange>.o4-barre{background:hsl(var(--ap-ambre-vif))}
  .t-vert>.o4-barre{background:hsl(var(--ap-vert))}
  .t-rouge>.o4-barre{background:hsl(var(--ap-rouge))}
  .o4-cl{grid-area:cl;font-size:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
  .o4-net{grid-area:net;font-size:16px;justify-self:end;white-space:nowrap}
  .o4-vo{grid-area:vo;font-size:15px;color:hsl(var(--ap-doux));white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
  .o4-delai{grid-area:delai;justify-self:end;font-size:15px;color:hsl(var(--ap-doux));white-space:nowrap}
  .o4-delai.orange{color:hsl(var(--ap-ambre));font-weight:600}
  .o4-mot{grid-area:mot;justify-self:start;font-size:15px;font-weight:600;padding:2px 10px;border-radius:999px;background:hsl(var(--ap-gris-doux))}
  .o4-mot.t-bleu{background:hsl(var(--ap-action-doux));color:hsl(var(--ap-action-fort))}
  .o4-mot.t-orange{background:hsl(var(--ap-ambre-doux));color:hsl(var(--ap-ambre))}
  .o4-mot.t-vert{background:hsl(var(--ap-vert-doux));color:hsl(var(--ap-vert))}
  .o4-mot.t-rouge{background:hsl(var(--ap-rouge-doux));color:hsl(var(--ap-rouge))}
  .o4-go{grid-area:go;justify-self:end;display:inline-flex;align-items:center;height:36px;padding:0 14px;border-radius:var(--ap-r-s);background:hsl(var(--ap-action));color:#fff;font-size:15px;font-weight:600}
  /* La ligne entière ouvre l'offre (lien posé par-dessus, lot A2). */
  .or-liste .or-ln>.or-ln-a{display:block!important;position:absolute;inset:0;z-index:1}
  /* Rangée d'onglets de Commerce retirée sur la liste des offres (la barre du bas y mène ; Clients, Reprises dans ⋯),
     bulle des idées masquée (≡), phrase de la V1 retirée. */
  body:has([data-ecran="mes-offres"]) .n1-onglets{display:none!important}
  body:has([data-ecran="mes-offres"]) .bl-bouton{display:none!important}
}
@media (max-width:767px){
  /* Une seule loupe sur la liste des offres (celle de la liste) ; la recherche générale reste sur les autres écrans. */
  body:has([data-ecran="mes-offres"]) header.v2-entete .v2-search,body:has([data-ecran="mes-offres"]) header.v2-entete .ux-loupe{display:none!important}
}
.o4-vr{display:flex;gap:8px;align-items:center;font-size:13px;color:hsl(var(--ap-doux))}.o4-rp{color:hsl(var(--ap-violet,262 60% 52%))}
@media (min-width:768px){
  /* O2 : un mot par cellule, le détail au survol — plus de phrase sous « Lue ? », plus de pastille « Reprise · … »
     coupée (le montant de la reprise est dans la ligne voiture, le détail au survol), plus d'état de vente coupé
     sous le client (l'état est dans sa colonne). */
  .or-liste .or-ln .or-lu>:not(.or-p){display:none}
  .or-liste .or-ln .or-pa.rep{display:none}
  .or-liste .or-ln .or-cl .or-ev{display:none}
}
@media (min-width:768px){.or-liste .or-ln .or-ve>span{white-space:normal;overflow:visible;text-overflow:clip}}
/* O2 bureau : la colonne Action porte le geste bleu de l'état ; les anciens boutons sont dans la fiche d'offre. */
.o4-act{display:none}
@media (min-width:768px){
  .or-liste .or-ln .or-acts{display:none}
  .or-liste .or-ln .o4-act{display:flex;justify-content:flex-end}
  .o4-act .o4-go{display:inline-flex;align-items:center;height:34px;padding:0 14px;border-radius:var(--ap-r-s);background:hsl(var(--ap-action));color:#fff;font-size:14px;font-weight:600;white-space:nowrap}
}
/* O3 : la fiche d'offre — un mot d'état, le geste bleu, puis les cartes repliées sur leur ligne. */
.o4-pro{display:flex;align-items:center;gap:10px;padding:10px 16px}
.o4-pro .o4-mot{display:inline-flex;font-size:15px;font-weight:600;padding:3px 12px;border-radius:999px;background:hsl(var(--ap-gris-doux))}
.o4-pro .o4-mot.t-bleu{background:hsl(var(--ap-action-doux));color:hsl(var(--ap-action-fort))}
.o4-pro .o4-mot.t-orange{background:hsl(var(--ap-ambre-doux));color:hsl(var(--ap-ambre))}
.o4-pro .o4-mot.t-vert{background:hsl(var(--ap-vert-doux));color:hsl(var(--ap-vert))}
.o4-pro .o4-mot.t-rouge{background:hsl(var(--ap-rouge-doux));color:hsl(var(--ap-rouge))}
.o4-pro .o4-go.grand{flex:1;display:inline-flex;justify-content:center;align-items:center;height:44px;border:0;border-radius:var(--ap-r-s);background:hsl(var(--ap-action));color:#fff;font:inherit;font-size:16px;font-weight:600;cursor:pointer}
details.o4-pli>summary{list-style:none;cursor:pointer}
details.o4-pli>summary::-webkit-details-marker{display:none}
details.o4-pli>summary h3{display:flex;justify-content:space-between;gap:8px;margin:0}
details.o4-pli>summary h3::after{content:"▾";color:hsl(var(--ap-doux));margin-left:6px}
details.o4-pli[open]>summary h3::after{content:"▴"}
details.o4-pli>summary .d{margin-left:auto;font-weight:500}
.o4-vfiche{color:inherit;text-decoration:none}
.o4-vfiche:hover{text-decoration:underline}
@media (max-width:767px){
  /* La fiche d'offre plein écran au téléphone. */
  .or-volet{position:fixed!important;inset:0!important;width:auto!important;max-width:none!important;z-index:160;overflow:auto;border-radius:0!important}
}
@media (max-width:767px){
  .or-volet{z-index:171!important}
  .or-voile{z-index:170!important}
  /* Les gestes du bas passent à la ligne (rien de coupé). */
  .or-volet .or-vp{display:flex;flex-wrap:wrap;gap:8px}
  .or-volet .or-vp>*{flex:1 1 auto;min-width:0;white-space:normal;height:auto;min-height:44px}
}
details.o4-pli:not([open]){padding-bottom:12px}
.o4-vlien{color:inherit;text-decoration:none}.o4-vlien:hover{text-decoration:underline}
/* Contrôle des captures (31/10) : une carte repliée = une ligne basse ; au bureau, les cartes ne s'étirent pas. */
.or-volet .or-vc{align-items:start}
details.o4-pli:not([open]){padding:0 var(--ap-e3);min-height:44px;display:flex;flex-direction:column;justify-content:center}
details.o4-pli>summary{min-height:44px;display:flex;align-items:center}details.o4-pli>summary h3{flex:1}
.or-volet .or-vc{grid-template-columns:minmax(0,1fr);gap:8px}
details.o4-pli>summary h3{align-items:center}
/* Un seul bleu : le bouton de la prochaine action ; les gestes du bas restent, en gris. */
.or-volet:has([data-geste-prochain]) .or-vp .or-btn.prim{background:hsl(var(--ap-carte));color:hsl(var(--ap-encre));box-shadow:0 0 0 1px hsl(var(--ap-trait)) inset;border-color:hsl(var(--ap-trait))}
/* Touche finale Offres (31/10) — le ⋯ de la ligne (bureau) : les gestes directs, avec leur nom. */
.o4-act{gap:6px;align-items:center}
.o5-plus{position:relative}
.o5-plus>summary{list-style:none;display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:var(--ap-r-s);cursor:pointer;color:hsl(var(--ap-doux));font-size:18px;box-shadow:0 0 0 1px hsl(var(--ap-trait)) inset}
.o5-plus>summary::-webkit-details-marker{display:none}
.o5-plus[open]>summary,.o5-plus>summary:hover{color:hsl(var(--ap-encre));background:hsl(var(--ap-gris-doux))}
.o5-menu{position:absolute;right:0;top:40px;z-index:30;min-width:220px;padding:6px;border-radius:var(--ap-r-m);background:hsl(var(--ap-carte));box-shadow:var(--ap-ombre-2,0 8px 24px rgba(0,0,0,.14)),0 0 0 1px hsl(var(--ap-trait)) inset}
.or-liste .or-ln .o5-menu .or-acts{display:flex!important;flex-direction:column;align-items:stretch;gap:2px}
.o5-menu .or-ia{display:flex;align-items:center;gap:10px;width:100%;height:40px;padding:0 10px;border:0;border-radius:var(--ap-r-s);background:none;color:hsl(var(--ap-encre));font:inherit;font-size:14px;justify-content:flex-start;cursor:pointer;box-shadow:none}
.o5-menu .or-ia:hover{background:hsl(var(--ap-gris-doux))}
.o5-menu .or-ia::after{content:attr(title)}
/* La carte Offres de la fiche voiture : une ligne par offre, sur la trame de la liste. */
.o5-liste{display:grid;gap:6px}
.o5-ln{display:grid;grid-template-columns:minmax(0,1fr) auto auto auto;align-items:center;gap:12px;min-height:56px;padding:8px 12px 8px 16px;border-radius:var(--ap-r-m);background:hsl(var(--ap-carte));box-shadow:0 0 0 1px hsl(var(--ap-trait)) inset;color:inherit;text-decoration:none;position:relative;overflow:hidden}
a.o5-ln:hover{box-shadow:0 0 0 1px hsl(var(--ap-action)) inset}
.o5-ln::before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:hsl(var(--ap-trait))}
.o5-ln[data-ton="bleu"]::before{background:hsl(var(--ap-action))}
.o5-ln[data-ton="orange"]::before{background:hsl(var(--ap-ambre))}
.o5-ln[data-ton="vert"]::before{background:hsl(var(--ap-vert))}
.o5-ln[data-ton="rouge"]::before{background:hsl(var(--ap-rouge))}
.o5-cl{display:grid;min-width:0}
.o5-cl b{font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.o5-cl small,.o5-net small{font-size:13px;color:hsl(var(--ap-doux))}
.o5-net small.orange{color:hsl(var(--ap-ambre))}
.o5-net{display:grid;justify-items:end;font-variant-numeric:tabular-nums}
.o5-net b{font-size:15px}
.o5-mot{display:inline-flex;padding:3px 10px;border-radius:999px;font-size:13px;font-weight:600;background:hsl(var(--ap-gris-doux));white-space:nowrap}
.o5-ln[data-ton="bleu"] .o5-mot{background:hsl(var(--ap-action-doux));color:hsl(var(--ap-action-fort))}
.o5-ln[data-ton="orange"] .o5-mot{background:hsl(var(--ap-ambre-doux));color:hsl(var(--ap-ambre))}
.o5-ln[data-ton="vert"] .o5-mot{background:hsl(var(--ap-vert-doux));color:hsl(var(--ap-vert))}
.o5-ln[data-ton="rouge"] .o5-mot{background:hsl(var(--ap-rouge-doux));color:hsl(var(--ap-rouge))}
.o5-go{display:inline-flex;align-items:center;height:36px;padding:0 14px;border-radius:var(--ap-r-s);background:hsl(var(--ap-action));color:#fff;font-size:14px;font-weight:600;white-space:nowrap}
@media (max-width:767px){
  /* Téléphone : client et net sur la première ligne, le mot d'état et le geste dessous ; rien de coupé. */
  .o5-ln{grid-template-columns:minmax(0,1fr) auto;row-gap:8px;min-height:64px}
  .o5-mot{justify-self:start}
  .o5-go{justify-self:end;min-height:44px;height:44px;font-size:15px}
  .o5-cl small,.o5-net small,.o5-mot{font-size:15px}
}
.pv a.t7-prop{color:inherit;text-decoration:none}
