/* Comptes entre Amis — harmonisation de l'accueil des budgets (2F.9.78).
   Périmètre strict : la liste des budgets. Les autres écrans sont intacts.
   Aucun style de transformation / de recadrage n'est modifié. */
body.cea-body .cea-main.cea-home-978 {
  --cea-home-blue: #168bf0;
  --cea-home-ink: #182b40;
  --cea-home-muted: #758496;
  padding-top: 22px;
}
body.cea-body .cea-home-978 .cea-summary {
  padding: 25px 28px;
  border-radius: 23px;
  background: linear-gradient(112deg, #237bda 0%, #11bee1 100%);
  box-shadow: 0 12px 30px rgba(39,121,211,.13);
}
body.cea-body .cea-home-978 .cea-summary strong {
  font-variant-numeric: tabular-nums;
  font-size: clamp(30px, 4vw, 39px);
  letter-spacing: -.035em;
}
body.cea-body .cea-home-978 .cea-pagehead { margin: 25px 0 14px; }
body.cea-body .cea-home-978 .cea-pagehead .cea-eyebrow {
  margin: 0;
  color: #617f9e;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .10em;
}
/* Le titre "Budgets entre amis", masqué dans l'accueil Web actuel,
   reste masqué sans toucher aux titres des pages de détail. */
body.cea-body .cea-home-978 .cea-pagehead h1 { margin: 4px 0 0; }
body.cea-body .cea-home-978 .cea-home-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 23px;
}
body.cea-body .cea-home-978 .cea-home-filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  flex: 1 1 475px;
  max-width: 565px;
}
body.cea-body .cea-home-978 .cea-home-filter {
  min-height: 45px;
  padding: 9px 13px;
  border: 1px solid #e4eaf2;
  border-radius: 13px;
  background: #fff;
  color: #30445a;
  font: 700 13px/1.2 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  white-space: nowrap;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
body.cea-body .cea-home-978 .cea-home-filter[aria-pressed="true"] {
  background: var(--cea-home-blue);
  border-color: var(--cea-home-blue);
  color: #fff;
  box-shadow: 0 5px 14px rgba(22,139,240,.14);
}
body.cea-body .cea-home-978 .cea-home-filter:not([aria-pressed="true"]):hover {
  background: #f5faff;
  border-color: #bfdcf9;
}
body.cea-body .cea-home-978 .cea-home-search {
  display: flex;
  flex-direction: row; /* Neutralise le flex-direction:column des labels generiques */
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
  flex: 1 1 240px;
  max-width: 355px;
  border: 1px solid #dde8f3;
  border-radius: 14px;
  background: #fff;
  padding: 0 14px;
  color: #69839a;
}
body.cea-body .cea-home-978 .cea-home-search svg { flex: none; width: 18px; height: 18px; }
body.cea-body .cea-home-978 .cea-home-search input[type="search"] {
  min-width: 0;
  width: 100%;
  min-height: 45px;
  padding: 9px 0;
  border: 0;
  outline: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  color: var(--cea-home-ink);
  font-size: 14px;
}
body.cea-body .cea-home-978 .cea-home-search:focus-within {
  border-color: #55a7ed;
  box-shadow: 0 0 0 3px rgba(35,127,220,.14);
}
body.cea-body .cea-home-978 .cea-home-search input::placeholder { color: #8495a7; opacity: 1; }
body.cea-body .cea-home-978 .cea-home-status { margin: -9px 0 12px; color: #64788e; font-size: 12px; }
body.cea-body .cea-home-978 .cea-home-empty {
  margin: 13px 0 24px;
  padding: 20px;
  border: 1px dashed #cbd8e8;
  border-radius: 18px;
  background: #fff;
  color: #64788e;
  text-align: center;
}
body.cea-body .cea-home-978 .cea-section { margin-top: 22px; }
body.cea-body .cea-home-978 .cea-sectiontitle { margin-bottom: 12px; }
body.cea-body .cea-home-978 .cea-sectiontitle h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 790;
  letter-spacing: -.025em;
  color: var(--cea-home-ink);
}
body.cea-body .cea-home-978 .cea-sectiontitle > span {
  min-width: 26px;
  text-align: center;
  padding: 4px 8px;
  border-radius: 999px;
  color: #718398;
  background: #e7edf4;
  font-variant-numeric: tabular-nums;
}
/* Règle déterminante : trois pistes fixes sur PC, même avec UNE seule carte.
   La photo n'occupe donc plus toute la largeur du bureau. */
body.cea-body .cea-home-978 .cea-projectgrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 19px;
  align-items: start;
}
body.cea-body .cea-home-978 .cea-projectcard {
  min-width: 0;
  border: 1px solid #e5ebf3;
  border-radius: 21px;
  background: #fff;
  box-shadow: 0 5px 22px rgba(24,57,93,.055);
}
body.cea-body .cea-home-978 .cea-projectcard:hover { box-shadow: 0 11px 26px rgba(24,57,93,.115); }
body.cea-body .cea-home-978 .cea-projectcard:focus-visible {
  outline: 3px solid #2889df;
  outline-offset: 3px;
}
/* L'image garde strictement son 16:9 et les paramètres de recadrage déjà validés. */
body.cea-body .cea-home-978 .cea-projectcard .cea-cover {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 16/9;
  overflow: hidden !important;
}
body.cea-body .cea-home-978 .cea-projectbody { padding: 16px 17px 18px; }
body.cea-body .cea-home-978 .cea-projecttitle { gap: 10px; }
body.cea-body .cea-home-978 .cea-projecttitle h3 {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--cea-home-ink);
  font-size: 17px;
  font-weight: 760;
  line-height: 1.32;
}
body.cea-body .cea-home-978 .cea-projecttitle .cea-pill { flex: none; }
body.cea-body .cea-home-978 .cea-meta { margin: 11px 0 17px; color: var(--cea-home-muted); font-size: 12px; }
body.cea-body .cea-home-978 .cea-projectfacts { gap: 6px 10px; font-size: 11.5px; }
body.cea-body .cea-home-978 .cea-projectfacts strong {
  margin-left: auto;
  font-size: 15px;
  color: #23364a;
  font-variant-numeric: tabular-nums;
}
body.cea-body .cea-home-978 .cea-create { margin-top: 31px; }
body.cea-body .cea-home-978 [hidden] { display: none !important; }
@media (max-width: 900px) {
  body.cea-body .cea-home-978 .cea-projectgrid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 680px) {
  body.cea-body .cea-main.cea-home-978 { padding-top: 18px; }
  body.cea-body .cea-home-978 .cea-summary { padding: 21px 19px; border-radius: 21px; }
  body.cea-body .cea-home-978 .cea-pagehead { margin: 23px 0 15px; }
  body.cea-body .cea-home-978 .cea-home-toolbar { display: flex; flex-direction: column; gap: 12px; margin-bottom: 25px; }
  body.cea-body .cea-home-978 .cea-home-filters { flex: none; max-width: none; width: 100%; gap: 6px; }
  body.cea-body .cea-home-978 .cea-home-filter { min-height: 43px; padding: 8px 4px; font-size: 12px; border-radius: 12px; }
  body.cea-body .cea-home-978 .cea-home-search { flex: none; max-width: none; width: 100%; }
  body.cea-body .cea-home-978 .cea-section { margin-top: 24px; }
  body.cea-body .cea-home-978 .cea-sectiontitle h2 { font-size: 19px; }
  body.cea-body .cea-home-978 .cea-projectgrid { grid-template-columns: minmax(0,1fr); gap: 14px; }
  body.cea-body .cea-home-978 .cea-projectbody { padding: 16px 17px 18px; }
  body.cea-body .cea-home-978 .cea-projecttitle h3 { font-size: 17px; }
  body.cea-body .cea-home-978 .cea-projectfacts { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  body.cea-body .cea-home-978 .cea-projectcard,
  body.cea-body .cea-home-978 .cea-home-filter { transition: none; }
}
