/* Styles de l'écran creas (Mur des créas). Tout est préfixé par .e-creas et passe par les variables de core.css. */

/* Vignette réelle d'une créa (image du serveur, repli propre si elle manque) */
.e-creas .cv { position: relative; display: block; width: 100%; aspect-ratio: 4 / 5; border-radius: var(--r-2); overflow: hidden; background: var(--teinte-doux); color: var(--teinte); }
.e-creas .cv.carre { aspect-ratio: 1; }
.e-creas .cv img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.e-creas .cv .cv-vide { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 6px; text-align: center; color: var(--teinte); }
.e-creas .cv .cv-vide .ico { width: 26px; height: 26px; }
.e-creas .cv.carre .cv-vide .ico { width: 18px; height: 18px; }
.e-creas .cv .cv-vide small { font-size: var(--t-11); font-weight: 700; color: var(--encre-2); }
.e-creas .cv .cv-etq { position: absolute; left: 6px; bottom: 6px; display: inline-flex; align-items: center; gap: 4px; max-width: calc(100% - 12px); padding: 2px 7px 2px 5px; border-radius: 6px; background: var(--encre); color: var(--fond); font-size: var(--t-11); font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; }
.e-creas .cv .cv-etq .ico { position: static; width: 11px; height: 11px; flex: none; }
.e-creas .cv .cv-coin { position: absolute; right: 6px; top: 6px; padding: 2px 7px; border-radius: 6px; background: var(--surface); color: var(--encre); font-size: var(--t-11); font-weight: 800; }

/* Le haut : le mur d'un coup d'oeil */
.e-creas .hero { background: var(--hero); color: var(--sur-hero); border-radius: var(--r-4) var(--r-4) var(--r-4) var(--r-1); padding: 18px 16px 16px; display: flex; flex-direction: column; gap: 12px; position: relative; overflow: hidden; box-shadow: var(--ombre); }
.e-creas .hero::before { content: ""; position: absolute; right: -60px; top: -80px; width: 210px; height: 210px; border-radius: 50%; background: var(--hero-2); }
.e-creas .hero > * { position: relative; }
.e-creas .hero-haut { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.e-creas .hero .etiquette { color: var(--sur-hero-2); }
.e-creas .hero-ligne { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.e-creas .hero-ligne > div { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.e-creas .hero-roas { font-size: clamp(2.6rem, 16cqw, 3.4rem); line-height: .95; letter-spacing: -.02em; }
.e-creas .hero-roas.sans { font-size: var(--t-30); line-height: 1.1; letter-spacing: 0; }
.e-creas .hero-nb { align-items: flex-end; text-align: right; }
.e-creas .hero-nb b { font-size: var(--t-30); line-height: 1; }
.e-creas .hero small { color: var(--sur-hero-2); font-size: var(--t-13); }
.e-creas .ruban { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 7px; }
.e-creas .ruban-v { position: relative; display: block; padding: 0; min-width: 0; border-radius: 9px; overflow: hidden; background: var(--hero-2); min-height: 40px; transition: transform .12s; }
.e-creas .ruban-v:active { transform: scale(.94); }
.e-creas .ruban-v .cv { border-radius: 0; }
.e-creas .ruban-v i { position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: var(--hero-2); }
.e-creas .ruban-v i.bon, .e-creas .hero-legende i.bon { background: var(--bon); }
.e-creas .ruban-v i.critique, .e-creas .hero-legende i.critique { background: var(--critique); }
.e-creas .hero-legende { display: flex; gap: 14px; flex-wrap: wrap; font-size: var(--t-13); color: var(--sur-hero-2); }
.e-creas .hero-legende span { display: inline-flex; align-items: center; gap: 6px; }
.e-creas .hero-legende i { width: 14px; height: 5px; border-radius: 3px; background: var(--sur-hero-2); opacity: .8; }
.e-creas .hero-legende i.bon, .e-creas .hero-legende i.critique { opacity: 1; }
.e-creas .hero-note { font-size: var(--t-13); color: var(--sur-hero-2); }

/* Les dernières ventes */
.e-creas .large { min-width: 0; }
.e-creas .ventes { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 6px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.e-creas .vente { flex: 0 0 92px; min-width: 0; display: flex; flex-direction: column; gap: 3px; scroll-snap-align: start; }
.e-creas .vente .cv { border-radius: 10px; }
.e-creas .vente > b { font-size: var(--t-15); line-height: 1.1; margin-top: 3px; }
.e-creas .vente > small { color: var(--encre-2); font-size: var(--t-11); font-weight: 700; }
.e-creas .vente-pub { font-size: var(--t-11); color: var(--encre-2); line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* La lecture par groupe */
.e-creas .lec { display: flex; flex-direction: column; gap: 6px; }
.e-creas .lec-l { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; align-items: center; text-align: left; padding: 10px 12px; border-radius: var(--r-2); background: var(--surface-2); min-height: 40px; box-shadow: inset 0 0 0 1.5px transparent; transition: box-shadow .15s; color: var(--encre); }
.e-creas .lec-l[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--teinte); background: var(--teinte-doux); }
.e-creas .lec-nom { display: flex; align-items: center; gap: 8px; min-width: 0; }
.e-creas .lec-nom i { width: 10px; height: 10px; border-radius: 3px; background: var(--teinte); flex: none; }
.e-creas .lec-nom b { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.e-creas .lec-nom small { color: var(--encre-2); font-size: var(--t-13); white-space: nowrap; }
.e-creas .lec-roas { font-size: var(--t-22); line-height: 1; }
.e-creas .lec-piste, .e-creas .cc-piste { position: relative; grid-column: 1 / -1; height: 8px; border-radius: 4px; background: var(--creux); }
.e-creas .lec-piste i, .e-creas .cc-piste i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; min-width: 4px; background: var(--encre-3); }
.e-creas .lec-piste i.bon, .e-creas .cc-piste i.bon { background: var(--bon); }
.e-creas .lec-piste i.critique, .e-creas .cc-piste i.critique { background: var(--critique); }
.e-creas .lec-piste u, .e-creas .cc-piste u { position: absolute; top: -3px; bottom: -3px; width: 2px; margin-left: -1px; background: var(--encre); text-decoration: none; border-radius: 1px; }
.e-creas .lec-bas { grid-column: 1 / -1; color: var(--encre-2); font-size: var(--t-13); }

/* Tri, filtres, vue */
.e-creas .barre-mur { display: flex; flex-direction: column; gap: 10px; }
.e-creas .barre-mur-bas { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.e-creas .btn-filtres { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 14px; border-radius: 99px; font-weight: 700; font-size: var(--t-13); color: var(--encre); box-shadow: inset 0 0 0 1.5px var(--trait-fort); }
.e-creas .btn-filtres[aria-expanded="true"] { background: var(--creux); }
.e-creas .btn-filtres em { font-style: normal; min-width: 20px; padding: 0 6px; border-radius: 10px; background: var(--famille); color: var(--sur-accent); font-size: var(--t-11); text-align: center; }
.e-creas .vue { display: flex; background: var(--creux); border-radius: var(--r-2); padding: 3px; }
.e-creas .vue button { height: 34px; min-width: 56px; padding: 0 12px; border-radius: 9px; font-weight: 700; font-size: var(--t-13); color: var(--encre-2); }
.e-creas .vue button[aria-pressed="true"] { background: var(--surface); color: var(--encre); box-shadow: var(--ombre); }
.e-creas .filtres-det { display: flex; flex-direction: column; gap: 10px; padding: 12px; background: var(--surface); border-radius: var(--r-3); box-shadow: var(--ombre); }
.e-creas .filtres-det[hidden] { display: none; }
.e-creas .filtre { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.e-creas .compte { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.e-creas .compte .btn { min-height: 40px; }

/* Le mur */
.e-creas .mur { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.e-creas .cc { display: flex; flex-direction: column; text-align: left; padding: 0; min-width: 0; background: var(--surface); border-radius: var(--r-3) var(--r-3) var(--r-3) var(--r-1); box-shadow: var(--ombre); overflow: hidden; transition: transform .14s; color: var(--encre); }
.e-creas .cc:active { transform: scale(.975); }
.e-creas .cc-vis { display: block; padding: 6px 6px 0; }
.e-creas .cc .cv { border-radius: 12px 12px 4px 4px; }
.e-creas .cc-corps { display: flex; flex-direction: column; gap: 6px; padding: 9px 11px 12px; min-width: 0; }
.e-creas .cc-angle { display: flex; align-items: center; gap: 6px; font-size: var(--t-11); font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--teinte); min-width: 0; }
.e-creas .cc-angle i { width: 8px; height: 8px; border-radius: 2px; background: var(--teinte); flex: none; }
.e-creas .cc-nom { font-weight: 700; font-size: var(--t-13); line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.5em; overflow-wrap: anywhere; }
.e-creas .cc-roas { display: flex; align-items: center; justify-content: space-between; gap: 6px; flex-wrap: wrap; }
.e-creas .cc-roas > b { font-size: var(--t-30); line-height: 1; }
.e-creas .cc-roas > b.sans { font-size: var(--t-15); line-height: 1.2; }
.e-creas .cc-roas small { display: inline-flex; flex-direction: column; align-items: flex-end; gap: 2px; font-size: var(--t-11); color: var(--encre-2); font-weight: 700; }
.e-creas .cc-piste { grid-column: auto; }
.e-creas .cc-ch { display: flex; flex-wrap: wrap; gap: 2px 10px; font-size: var(--t-13); color: var(--encre-2); }
.e-creas .cc-ch b { color: var(--encre); }
.e-creas .cc-duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.e-creas .cc-col { display: flex; flex-direction: column; gap: 1px; padding: 6px 8px; border-radius: 8px; min-width: 0; font-size: var(--t-13); }
.e-creas .cc-col.meta { background: var(--c1-doux); color: var(--c1); }
.e-creas .cc-col.shop { background: var(--c3-doux); color: var(--c3); }
.e-creas .cc-col small { font-size: var(--t-11); font-weight: 800; line-height: 1.2; }
.e-creas .cc-col b { color: var(--encre); font-size: var(--t-13); line-height: 1.2; }
.e-creas .cc-col span { color: var(--encre-2); font-size: var(--t-13); font-weight: 600; min-height: 1.2em; }
.e-creas .cc-px { display: flex; align-items: flex-start; gap: 6px; padding: 6px 8px; border-radius: 8px; background: var(--c5-doux); color: var(--c5); font-size: var(--t-11); font-weight: 700; line-height: 1.3; }
.e-creas .cc-px .ico { width: 14px; height: 14px; margin-top: 1px; flex: none; }
.e-creas .cc-px span { min-width: 0; }
.e-creas .cc.arret .cc-vis { opacity: .62; }
.e-creas .cc.grande { grid-column: 1 / -1; flex-direction: row; align-items: stretch; }
.e-creas .cc.grande .cc-vis { flex: 0 0 44%; padding: 6px 0 6px 6px; }
.e-creas .cc.grande .cc-corps { flex: 1; justify-content: center; gap: 8px; padding: 12px; }
.e-creas .cc.grande .cc-nom { font-size: var(--t-15); }

/* La fiche (feuille du bas) */
.e-creas.fiche { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.e-creas.fiche > * { min-width: 0; }
.e-creas .f-tete { display: flex; gap: 14px; align-items: flex-start; }
.e-creas .f-vis { flex: 0 0 38%; }
.e-creas .f-id { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding-top: 2px; }
.e-creas .f-id small { color: var(--encre-2); font-size: var(--t-13); }
.e-creas .f-nom { font-family: var(--f-titre); font-weight: 800; font-size: var(--t-22); line-height: 1.1; overflow-wrap: anywhere; }
.e-creas .f-puces { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.e-creas .etq-angle { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px 2px 7px; border-radius: 99px; background: var(--teinte-doux); color: var(--teinte); font-size: var(--t-11); font-weight: 800; }
.e-creas .etq-angle i { width: 8px; height: 8px; border-radius: 2px; background: var(--teinte); }
.e-creas .f-duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.e-creas .f-col { display: flex; flex-direction: column; gap: 3px; padding: 12px; border-radius: var(--r-3) var(--r-3) var(--r-3) var(--r-1); min-width: 0; font-size: var(--t-13); color: var(--encre-2); }
.e-creas .f-col.meta { background: var(--c1-doux); }
.e-creas .f-col.meta .etiquette { color: var(--c1); }
.e-creas .f-col.shop { background: var(--c3-doux); }
.e-creas .f-col.shop .etiquette { color: var(--c3); }
.e-creas .f-col b { font-size: var(--t-22); line-height: 1.1; color: var(--encre); }
.e-creas .f-col small { font-size: var(--t-13); font-weight: 700; color: var(--encre); }
.e-creas .f-trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 8px; }
.e-creas .f-trio > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.e-creas .f-trio b { font-size: var(--t-22); line-height: 1; color: var(--c5); }
.e-creas .f-trio small { color: var(--encre-2); font-size: var(--t-13); line-height: 1.2; }
.e-creas .f-ret { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.e-creas .f-ret > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.e-creas .f-ret b { font-size: var(--t-22); line-height: 1; color: var(--c5); }
.e-creas .f-ret small { color: var(--encre-2); font-size: var(--t-11); line-height: 1.25; }
.e-creas .mini { width: 36px; flex: none; display: block; }
.e-creas .mini .cv { border-radius: 8px; }

/* Ordinateur et grands écrans : le mur passe sur plus de colonnes */
@container app (min-width: 700px) {
  .e-creas .hero { padding: 26px 30px 24px; gap: 14px; }
  .e-creas .hero-roas { font-size: 4.2rem; }
  .e-creas .hero-roas.sans { font-size: var(--t-30); }
  .e-creas .ruban { grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 9px; }
  .e-creas .ventes { gap: 14px; }
  .e-creas .vente { flex-basis: 110px; }
  .e-creas .mur { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
  .e-creas .cc.grande { grid-column: span 2; }
  .e-creas .cc.grande .cc-vis { flex-basis: 40%; }
  .e-creas .lec { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
}
