/* ─────────────────────────────────────────────
   Design system "Premium Pro"
   Inspiration : studio d'architecture, cabinet conseil
   Palette : navy profond, sable chaud, écru
   ───────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  /* ── Couleurs de fond ── */
  --fond: #fafaf7;           /* écru très clair, chaleureux */
  --surface: #ffffff;        /* cartes */
  --surface-warm: #f5f3ee;   /* fond chaud secondaire */

  /* ── Texte ── */
  --texte: #1a1a18;          /* presque noir, chaud */
  --texte-medium: #4d4a45;
  --texte-faible: #8a857e;

  /* ── Bordures ── */
  --bord: #e8e5dd;           /* écru, doux */
  --bord-fort: #d4cfc4;

  /* ── Couleur principale (actions, liens) ── */
  --primary: #1d2e4d;        /* navy profond, presque slate */
  --primary-hover: #243756;
  --primary-light: #eef1f7;

  /* ── Accent secondaire (highlight, prix, KPIs) ── */
  --accent: #b8703a;         /* sable chaud / terre cuite douce */
  --accent-hover: #a5612e;
  --accent-light: #faf2e8;

  /* ── États ── */
  --success: #2d6b4a;        /* vert sapin */
  --success-light: #ecf3ef;
  --warning: #a06b2a;        /* ocre */
  --warning-light: #faf2e3;
  --danger: #8a2929;         /* bordeaux */
  --danger-light: #f5e8e8;

  /* ── Anciennes variables (compat) ── */
  --bleu: var(--primary);
  --bleu-fonce: var(--primary-hover);
  --orange: var(--accent);
  --vert: var(--success);
  --rouge: var(--danger);
  --gris-fond: var(--surface-warm);
  --gris-bord: var(--bord);

  /* ── Spacing scale ── */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;

  /* ── Radius ── */
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;

  /* ── Shadow ── */
  --shadow-xs: 0 1px 2px rgba(26, 26, 24, 0.04);
  --shadow-sm: 0 2px 6px rgba(26, 26, 24, 0.05);
  --shadow-md: 0 8px 20px rgba(26, 26, 24, 0.06);
  --shadow-lg: 0 20px 40px rgba(26, 26, 24, 0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { font-feature-settings: 'cv11', 'ss01'; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--fond);
  color: var(--texte);
  line-height: 1.55;
  min-height: 100vh;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { letter-spacing: -0.025em; line-height: 1.2; font-weight: 700; }

/* ──────────────────────────────────────────────
   TOPBAR — refined
   ────────────────────────────────────────────── */

.topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--bord);
  padding: 14px 32px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-logo {
  background: var(--primary);
  color: white;
  font-weight: 700;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 15px;
  letter-spacing: -0.02em;
}
.brand-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--texte);
  letter-spacing: -0.02em;
}
.brand-tag {
  font-size: 11px;
  font-weight: 600;
  margin-left: auto;
  flex-shrink: 0;
  color: var(--texte-faible);
  background: var(--surface-warm);
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.02em;
  border: 1px solid var(--bord);
}

.main-nav { display: flex; gap: 4px; flex: 1; }
.nav-link {
  color: var(--texte-medium);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.15s ease;
}
.nav-link:hover { color: var(--texte); background: var(--surface-warm); }
.nav-link.active { color: var(--primary); background: var(--primary-light); font-weight: 600; }

/* ──────────────────────────────────────────────
   LAYOUT
   ────────────────────────────────────────────── */

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

/* ──────────────────────────────────────────────
   PAGE HEADER
   ────────────────────────────────────────────── */

.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 32px;
  gap: 16px;
  flex-wrap: wrap;
}
.page-header h1 {
  font-size: 30px;
  letter-spacing: -0.028em;
  font-weight: 700;
}
.page-header .subtitle {
  color: var(--texte-faible);
  font-size: 15px;
  margin-top: 4px;
}

/* ──────────────────────────────────────────────
   BOUTONS
   ────────────────────────────────────────────── */

.btn-primary, .btn-secondary, .btn-danger, .btn-ghost {
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.01em;
  text-decoration: none;
  border: none;
}
.btn-primary {
  background: var(--primary);
  color: white;
}
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-1px); }
.btn-secondary {
  background: var(--surface);
  color: var(--texte);
  border: 1px solid var(--bord-fort);
}
.btn-secondary:hover { background: var(--surface-warm); border-color: var(--primary); }
.btn-danger {
  background: var(--surface);
  color: var(--danger);
  border: 1px solid var(--danger);
  padding: 8px 14px;
  font-size: 13px;
}
.btn-danger:hover { background: var(--danger-light); }
/* CTA principal — disponible sur TOUTES les pages (landing.css et
   devis-nouveau.css le raffinent localement via la cascade) */
.btn-cta-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 14px 26px;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: all 0.15s;
}
.btn-cta-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-ghost {
  background: transparent;
  color: var(--texte-medium);
  padding: 8px 14px;
}
.btn-ghost:hover { background: var(--surface-warm); color: var(--texte); }

/* ──────────────────────────────────────────────
   FORMULAIRES
   ────────────────────────────────────────────── */

.search-form { display: flex; flex-direction: column; gap: 18px; }
.search-form input[type="text"],
.search-form input[type="number"],
.search-form select,
.modal-field input,
.modal-field textarea,
.modal-field select {
  width: 100%;
  padding: 12px 14px;
  font-size: 14px;
  font-family: inherit;
  border: 1px solid var(--bord-fort);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--texte);
  transition: all 0.15s ease;
}
.search-form input:focus,
.search-form select:focus,
.modal-field input:focus,
.modal-field textarea:focus,
.modal-field select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}
#query { font-size: 16px; }

.filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}
.filters label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--texte-faible);
  letter-spacing: 0.02em;
}
.filters label span {
  text-transform: uppercase;
}
.filters input[type="range"] {
  width: 100%;
  accent-color: var(--primary);
}

#search-btn {
  background: var(--primary);
  color: white;
  font-size: 15px;
  font-weight: 600;
  padding: 13px 22px;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.15s ease;
  align-self: flex-start;
}
#search-btn:hover { background: var(--primary-hover); }
#search-btn:disabled { background: var(--texte-faible); cursor: not-allowed; }

/* ──────────────────────────────────────────────
   CARDS GÉNÉRIQUES
   ────────────────────────────────────────────── */

.search-card,
.results-section,
.form-section {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid var(--bord);
  margin-bottom: 24px;
}
.search-card h1 { font-size: 24px; margin-bottom: 6px; }
.subtitle { color: var(--texte-faible); margin-bottom: 24px; font-size: 14px; }

.results-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 18px;
}
.results-header h2 { font-size: 18px; }
.results-meta { font-size: 13px; color: var(--texte-faible); }

/* ──────────────────────────────────────────────
   TABLEAU RÉSULTATS
   ────────────────────────────────────────────── */

.table-wrapper { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th {
  text-align: left;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--texte-faible);
  padding: 10px 8px;
  border-bottom: 1px solid var(--bord);
  font-weight: 600;
}
td { padding: 16px 8px; border-bottom: 1px solid var(--bord); vertical-align: top; }
tr:last-child td { border-bottom: none; }
.prix-cell { font-weight: 700; font-size: 16px; color: var(--accent); white-space: nowrap; }
.dispo-ok { color: var(--success); font-weight: 600; font-size: 13px; }
.dispo-limited { color: var(--warning); font-weight: 600; font-size: 13px; }
.notes-ia { font-size: 13px; color: var(--texte-faible); max-width: 280px; }
.btn-voir {
  display: inline-block;
  padding: 7px 13px;
  background: var(--primary);
  color: white;
  text-decoration: none;
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.btn-voir:hover { background: var(--primary-hover); }

/* ── Loading ── */
.loading {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 56px;
  text-align: center;
  border: 1px solid var(--bord);
}
.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--bord);
  border-top-color: var(--primary);
  border-radius: 50%;
  margin: 0 auto 16px;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading p { color: var(--texte-faible); }

.error {
  background: var(--danger-light);
  border: 1px solid var(--danger);
  color: var(--danger);
  padding: 14px 16px;
  border-radius: var(--radius);
  font-size: 14px;
}

/* ── Utils ── */
.hidden { display: none !important; }

/* ──────────────────────────────────────────────
   MODAL
   ────────────────────────────────────────────── */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 26, 24, 0.55);
  display: grid;
  place-items: center;
  z-index: 1000;
  padding: 16px;
  backdrop-filter: blur(4px);
}
.modal {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 32px;
  max-width: 480px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  max-height: 90vh;
  overflow-y: auto;
}
.modal h2 { font-size: 20px; margin-bottom: 18px; }
.modal-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.modal-field label { font-size: 12px; font-weight: 600; color: var(--texte-medium); text-transform: uppercase; letter-spacing: 0.04em; }
.modal-field textarea { min-height: 80px; resize: vertical; }
.modal-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 12px; flex-wrap: wrap; }

/* ──────────────────────────────────────────────
   TOAST
   ────────────────────────────────────────────── */

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--texte);
  color: white;
  padding: 12px 22px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 14px;
  box-shadow: var(--shadow-lg);
  z-index: 2000;
}

/* ──────────────────────────────────────────────
   DROPDOWN + Chantier
   ────────────────────────────────────────────── */

.chantier-dropdown-wrapper { position: relative; }
.btn-add-chantier {
  background: var(--accent);
  color: white;
  border: none;
  padding: 7px 12px;
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
  transition: all 0.15s;
}
.btn-add-chantier:hover { background: var(--accent-hover); }
.chantier-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 4px;
  background: var(--surface);
  border: 1px solid var(--bord);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  min-width: 240px;
  padding: 6px;
  z-index: 100;
}
.chantier-dropdown button {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  cursor: pointer;
  color: var(--texte);
  font-family: inherit;
}
.chantier-dropdown button:hover { background: var(--surface-warm); }
.chantier-dropdown .divider { border-top: 1px solid var(--bord); margin: 4px 0; }
.chantier-dropdown .nouveau { color: var(--primary); font-weight: 600; }

/* ──────────────────────────────────────────────
   CHANTIER CARDS
   ────────────────────────────────────────────── */

.chantier-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}
.chantier-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 22px;
  border: 1px solid var(--bord);
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  color: inherit;
  display: block;
}
.chantier-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.chantier-card h3 { font-size: 17px; margin-bottom: 12px; color: var(--texte); }
.chantier-card .meta { display: flex; gap: 10px; font-size: 13px; color: var(--texte-faible); margin-bottom: 14px; }
.chantier-card .budget-bar { height: 6px; background: var(--surface-warm); border-radius: 3px; overflow: hidden; margin-top: 10px; }
.chantier-card .budget-fill { height: 100%; background: var(--success); transition: width 0.3s; }
.chantier-card .budget-fill.attention { background: var(--warning); }
.chantier-card .budget-fill.depasse { background: var(--danger); }
.chantier-card .budget-text { font-size: 12px; color: var(--texte-faible); margin-top: 6px; }

/* ── Empty state ── */
.empty-state {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 56px 32px;
  text-align: center;
  border: 1px dashed var(--bord-fort);
}
.empty-state h3 { font-size: 18px; margin-bottom: 8px; font-weight: 600; }
.empty-state p { color: var(--texte-faible); margin-bottom: 22px; }

/* ── Produit card ── */
.produit-card {
  background: var(--surface);
  border: 1px solid var(--bord);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 10px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 16px;
  align-items: center;
}
.produit-card .info strong { display: block; margin-bottom: 4px; }
.produit-card .info .sub { font-size: 13px; color: var(--texte-faible); }
.produit-card .prix-cell { font-size: 15px; }

/* ──────────────────────────────────────────────
   ONGLETS
   ────────────────────────────────────────────── */

.tabs { display: flex; gap: 4px; margin-bottom: 18px; border-bottom: 1px solid var(--bord); }
.tab {
  background: none;
  border: none;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--texte-faible);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  margin-bottom: -1px;
  border-bottom: 2px solid transparent;
}
.tab:hover { color: var(--texte); }
.tab.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }
.tab-count {
  background: var(--surface-warm);
  color: var(--texte-faible);
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  min-width: 22px;
  text-align: center;
}
.tab.active .tab-count { background: var(--primary); color: white; }

/* ──────────────────────────────────────────────
   ANNONCES
   ────────────────────────────────────────────── */

.filters-bar {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 14px;
  margin-bottom: 20px;
  border: 1px solid var(--bord);
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 10px;
}
.filters-bar input, .filters-bar select {
  padding: 10px 14px;
  border: 1px solid var(--bord-fort);
  border-radius: var(--radius);
  font-size: 14px;
  font-family: inherit;
  background: var(--surface);
}
.filters-bar input:focus, .filters-bar select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.annonces-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.annonce-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--bord);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
}
.annonce-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}
.annonce-photo {
  background: linear-gradient(135deg, var(--surface-warm) 0%, #ede9df 100%);
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  font-size: 50px;
  color: var(--primary);
  opacity: 0.7;
  position: relative;
  overflow: hidden;
}
.annonce-photo img { width: 100%; height: 100%; object-fit: cover; opacity: 1; }
.annonce-photo.has-photo { opacity: 1; }
.annonce-badges { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; }
.badge {
  font-size: 10px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.badge-neuf { background: var(--success); color: white; }
.badge-occasion { background: var(--accent); color: white; }
.badge-mine { background: var(--primary); color: white; }

.annonce-content { padding: 16px; display: flex; flex-direction: column; flex: 1; }
.annonce-titre {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  letter-spacing: -0.01em;
}
.annonce-prix { font-size: 20px; font-weight: 800; color: var(--accent); margin-bottom: 10px; letter-spacing: -0.02em; }
.annonce-prix .unite { font-size: 12px; font-weight: 500; color: var(--texte-faible); letter-spacing: 0; }
.annonce-meta { font-size: 12px; color: var(--texte-faible); margin-bottom: 12px; display: flex; flex-direction: column; gap: 3px; }
.annonce-vendeur {
  font-size: 12px;
  color: var(--texte);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--bord);
}
.annonce-vendeur .avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--primary); color: white; display: grid; place-items: center; font-weight: 700; font-size: 11px; flex-shrink: 0; }
.annonce-vendeur .pseudo { font-weight: 600; }
.annonce-vendeur .metier { display: block; color: var(--texte-faible); font-size: 11px; }
.annonce-actions { display: flex; gap: 8px; margin-top: auto; }
.annonce-actions button { flex: 1; }

.info-box {
  background: var(--primary-light);
  border: 1px solid #c4cee0;
  color: var(--primary);
  padding: 12px 14px;
  border-radius: var(--radius);
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 16px;
}

.annonces-empty {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 56px 32px;
  text-align: center;
  border: 1px dashed var(--bord-fort);
  grid-column: 1 / -1;
}

/* ──────────────────────────────────────────────
   PHOTO UPLOAD
   ────────────────────────────────────────────── */

.photo-upload { display: flex; flex-direction: column; gap: 10px; }
.photo-upload-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 28px;
  background: var(--surface-warm);
  border: 1px dashed var(--bord-fort);
  border-radius: var(--radius);
  cursor: pointer;
  text-align: center;
  transition: all 0.15s ease;
  font-family: inherit;
}
.photo-upload-btn:hover { background: var(--accent-light); border-color: var(--accent); }
.photo-upload-btn span { font-size: 14px; font-weight: 600; color: var(--primary); }
.photo-upload-btn small { font-size: 11px; color: var(--texte-faible); }
.photo-preview { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--surface-warm); aspect-ratio: 4 / 3; max-height: 240px; }
.photo-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-remove {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(26, 26, 24, 0.7);
  color: white;
  border: none;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  display: grid;
  place-items: center;
  line-height: 1;
  font-family: inherit;
}
.photo-remove:hover { background: var(--danger); }

/* ──────────────────────────────────────────────
   RESPONSIVE
   ────────────────────────────────────────────── */

@media (max-width: 720px) {
  .filters-bar { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .topbar { padding: 12px 16px; flex-wrap: wrap; gap: 12px; }
  .brand-tag { order: 2; }
  .main-nav { flex: none; width: 100%; order: 3; }
  .container { padding: 24px 16px 48px; }
  .search-card, .form-section, .modal { padding: 20px; }
  .search-card h1 { font-size: 22px; }
  .page-header h1 { font-size: 24px; }
  .produit-card { grid-template-columns: 1fr; gap: 8px; }
}

/* ──────────────────────────────────────────────
   PROJETS ÉQUIPE (sprint 07/2026)
   ────────────────────────────────────────────── */

.projets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.projet-card {
  background: var(--surface);
  border: 1px solid var(--bord);
  border-radius: var(--radius-lg);
  padding: 20px;
  cursor: pointer;
  transition: box-shadow 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}
.projet-card:hover {
  box-shadow: 0 8px 22px rgba(29, 46, 77, 0.1);
  transform: translateY(-2px);
  border-color: var(--bord-fort);
}
.projet-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.projet-card .desc {
  font-size: 13px;
  color: var(--texte-faible);
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.projet-card .meta {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--texte-faible);
}

/* Badges spécifiques projets (complètent .badge existant) */
.badge-proprietaire { background: var(--primary); color: white; }
.badge-invite { background: var(--surface-warm); color: var(--texte-medium); border: 1px solid var(--bord-fort); }
.badge-actif { background: var(--success-light); color: var(--success); }
.badge-archive { background: var(--surface-warm); color: var(--texte-faible); border: 1px solid var(--bord); }
.badge-alerte { background: #fdecea; color: #dc2626; }
.badge-integre { background: var(--success-light); color: var(--success); }

/* Lignes membre / invitation */
.membre-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--bord);
  flex-wrap: wrap;
}
.membre-row:last-child { border-bottom: none; }
.membre-row .info { flex: 1; min-width: 160px; }
.membre-row .info .sub { display: block; font-size: 12px; color: var(--texte-faible); margin-top: 2px; }
.membre-row .conso { font-size: 13px; color: var(--texte-medium); white-space: nowrap; }
.input-allocation {
  width: 70px;
  padding: 6px 8px;
  border: 1px solid var(--bord-fort);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 13px;
}

/* Cartes de devis soumis */
.soumission-card {
  background: var(--surface);
  border: 1px solid var(--bord);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.soumission-card .info { flex: 1; min-width: 180px; }
.soumission-card .info .sub { display: block; font-size: 12px; color: var(--texte-faible); margin-top: 2px; }
.soumission-card .montant { font-weight: 700; color: var(--accent); white-space: nowrap; }

/* Bloc lien d'invitation à copier */
.lien-invitation-bloc {
  background: var(--accent-light);
  border: 1px solid var(--bord);
  border-radius: var(--radius);
  padding: 14px;
  margin-top: 14px;
}
.lien-invitation-bloc input {
  flex: 1;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid var(--bord-fort);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 12px;
  background: var(--surface);
}
