/* Fiches modèles (/modeles/<id>/) et comparateur (/comparer/) */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.model-shell .breadcrumbs,
.compare-shell .breadcrumbs {
  margin-bottom: 18px;
}

.model-hero {
  display: grid;
  gap: 22px;
  align-items: center;
}

.model-visual {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  overflow: hidden;
}

.model-visual img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: contain;
}

.model-visual img.cover {
  object-fit: cover;
}

.model-promo {
  position: absolute;
  top: 12px;
  left: 12px;
  max-width: calc(100% - 24px);
  padding: 6px 10px;
  border-radius: 4px;
  background: var(--orange);
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}

.model-intro h1 {
  margin: 0;
  color: var(--ink);
  font-size: 32px;
  line-height: 1.1;
}

.model-summary {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.model-price {
  display: grid;
  gap: 3px;
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
}

.model-price span {
  color: var(--orange-dark);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.model-price strong {
  color: var(--ink);
  font-size: 22px;
}

.model-price small {
  color: var(--muted);
  font-size: 12px;
}

.model-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.model-actions .primary-button {
  align-self: auto;
}

.model-secondary {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border: 1px solid var(--navy);
  border-radius: 6px;
  color: var(--navy);
  font-weight: 700;
}

.model-secondary:hover,
.model-secondary:focus-visible {
  background: var(--navy-soft);
}

.model-recipient {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.model-grid {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

.model-section {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
}

.model-section h2 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 18px;
}

.model-section p {
  margin: 0 0 6px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
}

.model-section a {
  color: var(--navy);
  font-weight: 700;
}

.model-specs {
  margin: 0;
}

.model-specs div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.model-specs div:last-child {
  border-bottom: 0;
}

.model-specs dt {
  color: var(--muted);
}

.model-specs dd {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
  text-align: right;
}

.model-section .spec-list {
  margin-top: 12px;
}

.model-list {
  margin: 0;
  padding-left: 18px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.55;
}

.model-source {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.model-source a {
  color: var(--navy);
  font-weight: 700;
}

.compare-hero h1 {
  margin: 0;
  color: var(--ink);
  font-size: 32px;
  line-height: 1.1;
}

.compare-hero .article-deck {
  font-size: 16px;
}

.compare-pickers {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.compare-pickers label {
  display: grid;
  gap: 6px;
}

.compare-pickers span {
  color: #46514b;
  font-size: 12px;
  font-weight: 700;
}

.compare-pickers select {
  width: 100%;
  min-height: 44px;
}

.compare-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.compare-wrap {
  margin-top: 18px;
  overflow-x: auto;
}

.compare-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  font-size: 13px;
}

.compare-table thead th {
  padding: 10px 8px;
  vertical-align: top;
  text-align: left;
}

.compare-table th + th,
.compare-value-row td + td,
.compare-actions-row td + td {
  border-left: 1px solid var(--line);
}

.compare-model {
  display: grid;
  gap: 2px;
  color: var(--ink);
}

.compare-model img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  margin-bottom: 6px;
  object-fit: contain;
}

.compare-model img.cover {
  object-fit: cover;
}

.compare-brand {
  color: var(--orange-dark);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.compare-name {
  font-size: 14px;
  font-weight: 800;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.compare-label-row th {
  padding: 7px 8px;
  background: var(--soft);
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-align: left;
  text-transform: uppercase;
}

.compare-value-row td,
.compare-actions-row td {
  padding: 10px 8px;
  vertical-align: top;
  color: var(--ink);
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.compare-value-row ul {
  margin: 0;
  padding-left: 15px;
}

.compare-value-row small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.compare-actions-row td {
  border-top: 1px solid var(--line);
}

.compare-quote {
  width: 100%;
  min-height: 40px;
  padding: 8px;
  border: 0;
  border-radius: 6px;
  background: var(--green);
  color: white;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.compare-quote:hover,
.compare-quote:focus-visible {
  background: var(--green-dark);
}

.compare-sheet {
  display: block;
  margin-top: 8px;
  color: var(--navy);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.compare-empty {
  padding: 22px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
}

@media (min-width: 700px) {
  .compare-pickers {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .compare-table {
    font-size: 14px;
  }

  .compare-table thead th,
  .compare-label-row th,
  .compare-value-row td,
  .compare-actions-row td {
    padding-left: 14px;
    padding-right: 14px;
  }
}

@media (min-width: 900px) {
  .model-hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 40px;
  }

  .model-intro h1,
  .compare-hero h1 {
    font-size: 42px;
  }

  .model-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* fiches : questions fréquentes, modèles comparables, pages marques */
.model-faq, .model-similar { margin: 36px 0; }
.model-faq h2, .model-similar h2 { font-size: 24px; margin: 0 0 14px; }
.model-faq details { border: 1px solid #dfe5ea; border-radius: 8px; background: white; padding: 14px 18px; margin-bottom: 10px; }
.model-faq summary { cursor: pointer; font-weight: 700; color: var(--ink); }
.model-faq details p { margin: 10px 0 0; color: var(--muted); line-height: 1.6; }
.model-similar > p { margin-top: 14px; }
.model-similar a, .brand-block a { color: var(--ink); }
.model-card-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.model-card-grid-wide { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 36px; }
.model-card { display: flex; flex-direction: column; gap: 6px; padding: 12px; border: 1px solid #dfe5ea; border-radius: 8px; background: white; color: var(--ink); transition: border-color 160ms ease, transform 160ms ease; }
.model-card:hover, .model-card:focus-visible { border-color: var(--orange); transform: translateY(-2px); }
.model-card img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: contain; background: #f5f7f9; border-radius: 6px; }
.model-card-type { font-size: 11px; font-weight: 800; text-transform: uppercase; color: var(--orange-dark); }
.model-card small { color: var(--muted); }
.brand-jump { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.brand-jump a { padding: 6px 10px; border: 1px solid #dfe5ea; border-radius: 999px; background: white; color: var(--ink); font-size: 14px; }
.brand-block { margin-bottom: 28px; }
.brand-block h2 { font-size: 22px; margin: 0 0 8px; }
.brand-block h2 small { color: var(--muted); font-size: 14px; font-weight: 500; }
.brand-block ul { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 32px; }
.brand-block li { padding: 5px 0; break-inside: avoid; }
.brand-block li span { color: var(--muted); font-size: 14px; }
@media (max-width: 760px) {
  .model-card-grid, .model-card-grid-wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brand-block ul { columns: 1; }
}
