/* Wide container override (only on the comparateur page) */
.container-wide { max-width: 1900px; }

/* 3-col layout: 1fr (achat) | 1fr (location) | 2fr (results) on ≥1100px */
.layout-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.inputs-col,
.results-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}
@media (min-width: 1100px) {
  .layout-grid {
    grid-template-columns: 1fr 1fr 2fr;
    align-items: start;
  }
}

.param-card h2 {
  margin: 0 0 14px;
  font-size: 1.05rem;
  color: var(--accent);
}
.param-card {
  display: flex;
  flex-direction: column;
}

/* Chart */
.chart-wrap {
  position: relative;
  height: 320px;
  width: 100%;
}
@media (max-width: 560px) {
  .chart-wrap { height: 240px; }
}

/* Table */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
#result-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
#result-table th,
#result-table td {
  padding: 8px 10px;
  text-align: right;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
#result-table th:first-child,
#result-table td:first-child {
  text-align: left;
}
#result-table th {
  background: var(--surface-2);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
#result-table tbody tr:hover td {
  background: var(--accent-glow);
}
#result-table td.positive { color: var(--success); font-weight: 700; }
#result-table td.negative { color: var(--danger); font-weight: 700; }

.param-card-footer {
  margin-top: auto;
  padding-top: 12px;
}

/* Inflation card */
.inflation-card {
  margin-bottom: 8px;
}
.inflation-card h2 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  color: var(--accent);
}
.inflation-intro {
  margin: 0 0 12px;
}
.inflation-top {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 16px;
}
.inflation-detail {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.inflation-detail.hidden {
  display: none;
}
.checkbox-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text-muted);
  padding-bottom: 10px;
}
.checkbox-row input[type="checkbox"] {
  width: auto;
  margin: 0;
}
@media (max-width: 560px) {
  .inflation-top { grid-template-columns: 1fr; }
  .checkbox-row { padding-bottom: 0; }
}

/* Fiscalité placement (inline dans la card location) */
.fiscalite-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 4px 0 12px;
}
.info-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 700;
  border: 1px solid var(--border);
  cursor: pointer;
}
.info-btn:hover {
  background: var(--accent-glow);
  color: var(--accent);
  border-color: var(--accent);
}
.info-detail {
  margin-top: 12px;
  padding: 12px 14px;
  background: var(--surface-2);
  border-left: 3px solid var(--accent);
  border-radius: 4px;
  font-size: 0.88rem;
  color: var(--text);
}
.info-detail.hidden { display: none; }
.info-detail p { margin: 0 0 8px; }
.info-detail p:last-child { margin: 8px 0 0; }
.info-detail ul {
  margin: 8px 0;
  padding-left: 22px;
}
.info-detail li { margin: 4px 0; color: var(--text-muted); }
.info-detail strong { color: var(--text); }
