/* L'onglet « Marché » (docs/espace-app.md § Marché) : le radar, la découverte des concurrents et l'étude comparative. Des
   cartes plates et bordées ; le vert marque ton app et le choix, le rouge et l'ambre une alerte ou une plainte fréquente. */
.marche { display: flex; flex-direction: column; gap: var(--e-page); min-width: 0; }
.marche p { margin: 0; }
.marche a { color: inherit; text-decoration: none; }
.marche a:hover { text-decoration: underline; }
.marche .mc-charge { min-height: var(--t-vide); display: flex; align-items: center; justify-content: center; gap: var(--e-m); }

/* les cartes de l'onglet, comme les cartes de module : fond de carte, filet clair ; la tienne bordée de vert */
.marche .mc-radar-app, .marche .mc-alerte, .marche .mc-candidat, .marche .mc-app, .marche .mc-bloc {
  display: flex; flex-direction: column; min-width: 0;
  border-radius: var(--r-carte);
  background: var(--carte);
  box-shadow: inset 0 0 0 var(--filet) var(--blanc-bord);
}
.marche .mc-radar-app.nous, .marche .mc-app.nous { box-shadow: inset 0 0 0 var(--filet) var(--accent-bord); }

/* le radar : une carte par app, puis les alertes */
.marche .mc-radar { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--t-colonne)), 1fr)); gap: var(--e-xl); }
.marche .mc-radar-app { gap: var(--e-l); padding: var(--e-xxl); }
.marche .mc-radar-note { display: flex; align-items: baseline; flex-wrap: wrap; gap: var(--e-m); }
.marche .mc-radar-valeur { color: var(--texte); font: var(--f-kpi); letter-spacing: var(--i-kpi); font-variant-numeric: tabular-nums; }
.marche .mc-radar-etoile { color: var(--tertiaire); font: var(--f-grand); }
.marche .mc-ecart { padding: var(--e-pastille-v) var(--e-pastille-h); border-radius: var(--r-capsule); font: var(--f-label); font-variant-numeric: tabular-nums; }
.marche .mc-ecart.monte { background: color-mix(in srgb, var(--succes) 16%, transparent); color: var(--succes); }
.marche .mc-ecart.baisse { background: color-mix(in srgb, var(--danger) 16%, transparent); color: var(--danger); }
.marche .mc-radar-faits { display: flex; flex-direction: column; gap: var(--e-s); margin: 0; }
.marche .mc-fait { display: flex; align-items: center; justify-content: space-between; gap: var(--e-m); }
.marche .mc-fait dt { color: var(--tertiaire); font: var(--f-petit); }
.marche .mc-fait dd { display: flex; align-items: center; gap: var(--e-s); margin: 0; color: var(--texte); font: var(--f-corps-gras); font-variant-numeric: tabular-nums; text-align: right; }
.marche .mc-fait .mc-ecart { font: var(--f-mini-gras); }
.marche .mc-alertes { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--t-colonne)), 1fr)); gap: var(--e-xl); }
.marche .mc-alerte { gap: var(--e-m); padding: var(--e-xxl); }
.marche .mc-alerte-tete { display: flex; align-items: center; flex-wrap: wrap; gap: var(--e-m); min-width: 0; }
.marche .mc-alerte-tete strong { font: var(--f-corps-gras); color: var(--texte); }
.marche .mc-alerte-texte { color: var(--texte); font: var(--f-corps); }
.marche .mc-calme { display: flex; align-items: center; gap: var(--e-s); color: var(--succes); font: var(--f-corps); }
.marche .mc-negatifs { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--e-m); }

/* la découverte */
.marche .mc-panneau { gap: var(--e-xl); }
.marche .mc-candidats { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--t-colonne)), 1fr)); gap: var(--e-m); }
.marche .mc-candidat { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; align-items: start; gap: var(--e-m); padding: var(--e-xl); cursor: pointer; }
.marche .mc-candidat:hover { background: var(--releve); }
.marche .mc-candidat.choisi { background: var(--accent-doux); box-shadow: inset 0 0 0 var(--filet) var(--accent-bord); }
.marche .mc-candidat input, .marche .mc-option input { margin: var(--e-xs) 0 0; accent-color: var(--vert); }
.marche .mc-candidat .puces-onglet { gap: var(--e-xs); margin-top: var(--e-xs); }
.marche .mc-candidat .puce { height: auto; min-height: var(--t-bouton-reglage); padding-block: var(--e-xs); }
.marche .mc-store { white-space: nowrap; }
.marche .mc-retirer { display: inline-flex; align-items: center; margin-left: var(--e-xs); padding: 0; border: 0; background: none; color: var(--secondaire); cursor: pointer; }
.marche .mc-retirer:hover { color: var(--texte); }
.marche .mc-saisie { display: flex; gap: var(--e-m); }
.marche .mc-saisie .champ { flex: 1; min-width: 0; }
.marche .mc-reglages { display: flex; flex-direction: column; gap: var(--e-m); }
.marche .mc-option { display: flex; align-items: flex-start; gap: var(--e-m); color: var(--secondaire); font: var(--f-corps); cursor: pointer; }
.marche .mc-historique { display: flex; flex-direction: column; gap: var(--e-m); }
.marche .mc-historique:empty { display: none; }

/* l'étude */
.marche .mc-zone { display: flex; flex-direction: column; gap: var(--e-xl); min-width: 0; }
.marche .mc-zone:empty { display: none; }
.marche .mc-document { gap: var(--e-xxl); }
.marche .mc-resume { font: var(--f-corps); color: var(--texte); }
.marche .mc-section { display: flex; flex-direction: column; gap: var(--e-l); padding-top: var(--e-xxl); border-top: var(--filet) solid var(--blanc-bord); min-width: 0; }
.marche .mc-section > .surtitre { margin: 0; color: var(--texte); font: var(--f-corps-gras); }
.marche .mc-apps { gap: var(--e-m); }
.marche .mc-app { gap: var(--e-m); padding: var(--e-xl); }
.marche .mc-app-tete { display: flex; align-items: center; gap: var(--e-m); min-width: 0; }
.marche .mc-app-tete .titre-ligne { display: flex; align-items: center; flex-wrap: wrap; gap: var(--e-m); }
.marche .mc-bloc { gap: var(--e-s); padding: var(--e-xxl); }
.marche .mc-point { display: flex; flex-direction: column; gap: var(--e-s); padding-top: var(--e-m); border-top: var(--filet) solid var(--blanc-bord); }
.marche .mc-hook { display: flex; align-items: center; gap: var(--e-m); color: var(--texte); font: var(--f-citation); }
.marche .mc-hook p { flex: 1; min-width: 0; }
.marche .mc-sources { display: flex; flex-direction: column; gap: var(--e-s); margin: 0; padding-left: var(--e-xxl); }

/* la matrice plaintes × apps : la couleur dit la fréquence, rouge pour fréquente, ambre pour courante */
.marche .mc-matrice { overflow-x: auto; min-width: 0; }
.marche .mc-matrice table { width: 100%; border-collapse: collapse; font: var(--f-corps); }
.marche .mc-matrice th, .marche .mc-matrice td { padding: var(--e-m); border-bottom: var(--filet) solid var(--blanc-bord); text-align: left; vertical-align: top; }
.marche .mc-matrice thead th { color: var(--tertiaire); font: var(--f-surtitre); white-space: nowrap; }
.marche .mc-matrice thead th.nous { color: var(--texte); }
.marche .mc-matrice tbody th { display: flex; flex-direction: column; gap: var(--e-xs); min-width: var(--t-case-etroite); font-weight: normal; }
.marche .mc-case { min-width: var(--t-numero); }
.marche .mc-case-bouton, .marche .mc-case-vide { display: flex; flex-direction: column; align-items: flex-start; gap: var(--e-xs); width: 100%; padding: var(--e-s); border: 0; border-radius: var(--r-barre); background: none; color: inherit; font: inherit; text-align: left; }
.marche .mc-case-bouton { cursor: pointer; }
.marche .mc-case-bouton:hover { background: var(--releve); }
.marche .mc-case.ouverte .mc-case-bouton { background: var(--gris-actif); }
.marche .mc-niveau { font: var(--f-tag); font-variant-numeric: tabular-nums; color: var(--tertiaire); }
.marche .mc-case.high .mc-niveau { color: var(--danger); }
.marche .mc-case.medium .mc-niveau { color: var(--ambre); }
.marche .mc-case.low .mc-niveau { color: var(--secondaire); }
.marche .mc-detail { display: flex; flex-direction: column; gap: var(--e-m); }
.marche .mc-detail:empty { display: none; }

/* les avis cités, partagés avec l'onglet Idée */
.mc-citations { display: flex; flex-direction: column; gap: var(--e-s); }
.mc-citation { display: flex; flex-direction: column; gap: var(--e-xs); margin: 0; padding: var(--e-s) 0 var(--e-s) var(--e-l); border-left: var(--filet-epais) solid var(--accent-bord); }
.mc-citation p { margin: 0; }
.mc-citation > p:first-child { color: var(--texte); font: var(--f-citation); overflow-wrap: anywhere; }
.mc-citation a { color: inherit; }
