:root {
  --paper: #f7f9fc;
  --ink: #2b394c;
  --deep: #182538;
  --blue: #64acf2;
  --blue2: #2376ca;
  --yellow: #ffda61;
  --lilac: #aa8ce6;
  --line: #d9e1eb;
  --muted: #667386;
  --green: #187a58;
}
body {
  color: var(--ink);
  background: var(--paper);
}

/* Navigation */
.nav {
  max-width: 1120px;
  height: 68px;
  padding-inline: 20px;
  border-bottom: 1px solid var(--line);
}
.logo {
  width: 126px;
}
.nav-action {
  padding: 8px 13px;
  border-color: var(--line);
  border-radius: 6px;
  background: #fff;
}
.nav-action:hover {
  border-color: var(--ink);
}

/* Accueil : la recherche est l'élément principal. */
.catalog-intro {
  max-width: 1120px;
  min-height: 0;
  margin: 18px auto 0;
  padding: 34px clamp(20px, 5vw, 54px) 32px;
  display: block;
  border: 0;
  border-radius: 10px;
  background: transparent;
  box-shadow: none;
}
.catalog-intro::before {
  content: '';
  display: block;
  width: 9px;
  height: 9px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow:
    16px 0 0 var(--yellow),
    32px 0 0 var(--lilac);
}
.catalog-intro::after {
  display: none;
}
.hero-copy {
  max-width: 760px;
}
.catalog-intro h1 {
  max-width: none;
  margin: 0;
  font-size: clamp(36px, 4.4vw, 50px);
  line-height: 1;
  letter-spacing: -0.045em;
  font-weight: 600;
}
.search {
  max-width: 680px;
  margin: 22px 0 0;
}
.search label {
  margin-bottom: 8px;
  font-size: 14px;
}
.search > div:nth-child(2) {
  border: 1px solid #aebdce;
  border-radius: 7px;
  box-shadow: none;
  padding: 4px;
  display: flex;
  gap: 4px;
}
.search > div:nth-child(2):focus-within {
  border-color: var(--blue2);
  box-shadow: 0 0 0 3px #64acf229;
}
.search input {
  min-height: 44px;
  min-width: 0;
  padding: 10px 12px;
  font-size: 16px;
}
.search button {
  min-width: 108px;
  border-radius: 5px;
  font-weight: 600;
}
.search button:disabled {
  cursor: wait;
  opacity: 0.7;
}
.quick {
  justify-content: flex-start;
  margin-top: 12px;
}
.quick button {
  min-width: 0;
  padding: 7px 12px;
  border-radius: 5px;
  background: #fff;
}
.quick button:hover {
  border-color: var(--lilac);
  background: #f7f3ff;
}

.compare {
  max-width: 1120px;
  padding: 42px 0 68px;
}
.catalog-heading {
  align-items: center;
  padding-bottom: 13px;
}
.catalog-heading h2 {
  font-size: 28px;
  font-weight: 600;
}
.status {
  padding: 0;
  background: transparent;
}
.results {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}
.product-card {
  min-height: 0;
  padding: 14px;
  border-radius: 8px;
  box-shadow: none;
  border-color: transparent;
}
.product-card:hover {
  border-color: var(--blue);
  box-shadow: 0 0 0 2px #64acf21f;
}
.product-visual {
  display: block;
  height: 224px;
  border-radius: 5px;
  background-color: #f7f9fc;
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
}
.product-visual-empty {
  display: grid;
  place-items: center;
  color: #a8b4c3;
  font-size: clamp(34px, 4vw, 54px);
  font-weight: 800;
  letter-spacing: -0.04em;
  text-decoration: none;
}
.product-meta {
  margin: 11px 3px 0;
}
.product-reference {
  color: var(--muted);
}
.product-card h3 {
  min-height: 2.6em;
  margin: 6px 3px 14px;
  font-size: 17px;
  line-height: 1.3;
  letter-spacing: -0.02em;
  font-weight: 600;
}
.product-card h3,
.collection-page .product-card h2 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.product-price {
  margin: auto 3px 11px;
}
.product-price small {
  padding-left: 8px;
  border-left: 3px solid var(--yellow);
  font-size: 12px;
}
.product-price strong {
  margin-top: 3px;
  color: var(--blue2);
  font-size: 24px;
  font-variant-numeric: tabular-nums;
}
.view-product {
  min-height: 44px;
  justify-content: center;
  border-radius: 5px;
}
.view-product,
.primary-action,
.search > div:nth-child(2) > button {
  background: var(--blue2);
  color: #fff;
}
.view-product:hover,
.primary-action:hover,
.search > div:nth-child(2) > button:hover {
  background: #195c9e;
}
:where(a, button, input):focus-visible {
  outline: 3px solid var(--lilac);
  outline-offset: 3px;
}
.empty {
  border-radius: 8px;
}
.empty strong {
  display: block;
  color: var(--ink);
  font-size: 18px;
}
.empty p {
  margin: 8px 0 18px;
}
.empty div {
  display: flex;
  justify-content: center;
  gap: 8px;
}
.empty button {
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font-weight: 700;
}
.catalog-footer {
  max-width: 1120px;
  padding-inline: 0;
}

/* Collections : une taxonomie courte, sans dupliquer l'accueil. */
.collection-page main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px 68px;
}
.collection-page .crumbs {
  padding: 15px 0;
}
.collection-intro {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: end;
  padding: 28px 0;
  border: 0;
  border-radius: 0;
}
.collection-intro::before {
  display: none;
  content: '';
  position: absolute;
  top: 25px;
  left: 28px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow:
    16px 0 0 var(--yellow),
    32px 0 0 var(--lilac);
}
.collection-lego .collection-intro {
  border-bottom: 4px solid var(--blue);
}
.collection-playmobil .collection-intro {
  border-bottom: 4px solid var(--lilac);
}
.universe-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  max-width: 1120px;
  margin: 0 auto 28px;
  padding: 0 20px;
}
.universe-links a {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px;
  color: var(--ink);
  text-decoration: none;
  border-left: 4px solid var(--blue);
  background: #edf6ff;
  border-radius: 0 8px 8px 0;
}
.universe-links .universe-playmobil {
  border-color: var(--lilac);
  background: #f5f0fc;
}
.universe-links strong {
  font-size: 22px;
  font-weight: 600;
}
.universe-links span {
  font-size: 14px;
}
.universe-links a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.universe-links a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}
.catalog-nav nav a[aria-current='page'] {
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 8px;
  text-decoration-color: var(--blue2);
}
.collection-playmobil .catalog-nav nav a[aria-current='page'] {
  text-decoration-color: #7955b3;
}
.collection-intro h1 {
  margin: 0;
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.045em;
}
.collection-intro p {
  max-width: 650px;
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.55;
}
.collection-intro > strong {
  flex: none;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}
.theme-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.theme-nav a {
  padding: 8px 11px;
  border: 1px solid transparent;
  border-radius: 5px;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}
.theme-nav a:hover,
.theme-nav a[aria-current='page'] {
  border-color: var(--blue2);
}
.theme-nav a[aria-current='page'] {
  background: #edf6ff;
}
.collection-playmobil .theme-nav a:hover,
.collection-playmobil .theme-nav a[aria-current='page'] {
  border-color: var(--lilac);
  background: #f7f2ff;
}
.theme-nav span {
  margin-left: 4px;
  color: var(--muted);
  font-weight: 500;
}
.collection-results {
  padding: 34px 0 0;
}
.product-visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.collection-page .product-card h2 {
  min-height: 2.6em;
  margin: 6px 3px 14px;
  font-size: 17px;
  line-height: 1.3;
  letter-spacing: -0.02em;
  font-weight: 600;
}

/* Même recherche sur les collections et les fiches, sans dépendance JavaScript. */
.nav-search {
  display: flex;
  gap: 4px;
  width: min(440px, 40vw);
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  box-shadow: none;
}
.nav-search:focus-within {
  border-color: var(--blue2);
}
.nav-search input {
  width: 100%;
  min-width: 0;
  padding: 8px 10px;
  border: 0;
  background: transparent;
  font-size: 16px;
}
.nav-search button {
  min-height: 40px;
  padding: 8px 12px;
  border: 0;
  border-radius: 4px;
  background: var(--blue2);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.collection-page .nav {
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 24px;
}
.collection-page .nav-search {
  width: min(440px, 100%);
  justify-self: center;
}
.collection-page .nav nav {
  display: flex;
  gap: 16px;
}

/* Fiche produit */
.product-page {
  background: #fff;
}
.product-page main {
  padding-bottom: 64px;
}
.product-page h1,
.product-page h2 {
  font-weight: 600;
}
.product-page h2 {
  margin-top: 0;
  letter-spacing: -0.025em;
}
.product-page
  main
  > :where(
    .crumbs,
    .product-hero,
    .offers-section,
    .product-insights,
    .product-description-block,
    .availability-empty
  ) {
  max-width: 1120px;
}
.product-page .crumbs {
  padding: 15px 20px;
}
.product-hero,
.offers-section,
.product-insights,
.product-description-block {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.product-page .product-hero {
  min-height: 0;
  grid-template-columns: minmax(0, 0.9fr) minmax(390px, 1.1fr);
}
.product-page .product-photo {
  min-height: 340px;
  padding: 36px;
  display: grid;
  place-items: center;
  background: #f7f9fc;
  border-radius: 8px;
}
.product-page .product-photo img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 300px;
  object-fit: contain;
  background: transparent;
  mix-blend-mode: multiply;
}
.product-page .product-photo img[src*='priix-logo'] {
  max-width: 240px;
}
.product-page .match-badge {
  display: none;
}
.product-page .product-summary {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px clamp(24px, 4vw, 48px);
}
.product-page .product-brand {
  margin: 0;
  color: var(--blue2);
  font-size: 13px;
}
.product-page .product-summary h1 {
  max-width: 24ch;
  margin: 7px 0 20px;
  font-size: clamp(28px, 3vw, 36px);
  line-height: 1.12;
  letter-spacing: -0.045em;
}
.product-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin: 0;
}
.product-specs div {
  padding: 0;
}
.product-specs div:nth-child(even) {
  padding-left: 0;
  border-left: 0;
}
.product-specs dt {
  color: var(--muted);
  font-size: 11px;
}
.product-specs dd {
  margin: 2px 0 0;
  font-size: 14px;
  font-weight: 600;
}
.product-page .price-range {
  margin: 24px 0 20px;
}
.product-page .price-range strong {
  margin: 2px 0;
  font-weight: 600;
  font-size: 40px;
  line-height: 1;
}
.product-page .price-signal {
  margin-bottom: 16px;
  color: var(--muted);
}
.primary-action,
.secondary-action,
.offer-cta,
.alert-panel button {
  border-radius: 5px;
}
.primary-action {
  padding: 12px;
  font-weight: 600;
}
.secondary-action {
  display: block;
  padding: 12px;
  border: 1px solid var(--ink);
  color: var(--ink);
  text-align: center;
  text-decoration: none;
  font-weight: 800;
}
.secondary-action:hover {
  background: var(--ink);
  color: #fff;
}
.affiliate-disclosure,
.product-page .freshness {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
  text-align: center;
}

/* Les prix livrés restent le centre de la comparaison. */
.product-page .offers-section {
  margin-block: 32px;
  padding: 28px 20px;
  border-top: 1px solid var(--line);
}
.product-page .section-heading {
  align-items: center;
  flex-direction: row;
  text-align: left;
  gap: 16px;
  margin-bottom: 18px;
}
.product-page .section-heading h2 {
  font-size: 24px;
}
.product-page .section-heading p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}
.offer-table-head,
.offer-row {
  grid-template-columns:
    minmax(160px, 1.45fr) minmax(70px, 0.65fr) minmax(76px, 0.7fr) minmax(90px, 0.8fr)
    144px;
  gap: 14px;
}
.offer-table-head {
  padding-inline: 12px;
}
.offer-row {
  min-height: 74px;
  padding: 13px 12px;
}
.merchant b {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}
.merchant > span {
  margin-top: 4px;
}
.merchant .offer-seller {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
}
.best-offer {
  padding: 3px 6px;
  border-radius: 4px;
  background: var(--yellow);
  color: var(--deep);
  font-size: 10px;
}
.item-price span,
.delivery span,
.offer-price span {
  display: block;
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 10px;
}
.item-price strong,
.delivery strong {
  font-size: 14px;
}
.offer-price strong {
  display: block;
  font-size: 21px;
  font-variant-numeric: tabular-nums;
}
.offer-price small {
  display: block;
  color: var(--muted);
  font-size: 9px;
}
.offer-best {
  border-left: 0;
  margin-inline: 0;
  background: #f4f8fd;
  border-radius: 4px;
}
.offer-amazon {
  background: #fbfcfe;
}
.offer-external-note {
  grid-column: 2 / 5;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.offer-cta {
  min-height: 44px;
  padding-block: 12px;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  font-weight: 600;
}
.offer-cta:hover {
  border-color: var(--blue2);
  color: var(--blue2);
}
.offer-disabled {
  opacity: 0.55;
}

.product-page .product-insights {
  margin-block: 32px;
  padding: 0;
  overflow: visible;
  border-top: 1px solid var(--line);
}
.product-page .history-panel,
.product-page .alert-panel {
  padding: 28px 20px;
}
.product-page .chart {
  height: 190px;
}
.product-page .chart-legend {
  justify-content: space-between;
  gap: 14px;
}
.product-page .alert-panel {
  background: #faf9fd;
  border-left: 0;
}
.product-page .alert-panel h2 {
  font-size: 24px;
}
.product-page .alert-panel input {
  border-radius: 5px;
}
.product-page .history-empty {
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.product-page .history-empty p {
  margin: 0 0 7px;
  color: var(--blue2);
  font-size: 12px;
  font-weight: 800;
}
.product-page .history-empty h2 {
  max-width: 480px;
  margin: 0;
  font-size: 28px;
  line-height: 1.08;
}
.product-page .history-empty span {
  max-width: 480px;
  margin-top: 10px;
  color: var(--muted);
}
.product-page .history-empty > strong {
  margin-top: 24px;
  font-size: 36px;
}
.product-page .history-empty > small {
  color: var(--muted);
}
.product-page .trend-down {
  color: var(--green);
}
.product-page .trend-up {
  color: #a84639;
}

.product-page .product-description-block {
  margin-block: 32px;
  padding: 28px 20px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 36px;
  align-items: start;
}
.product-page .product-description-block > div > p:first-child {
  display: none;
}
.product-page .product-description-block h2 {
  font-size: 24px;
}
.product-details summary {
  padding: 4px 0 16px;
  cursor: pointer;
  font-weight: 600;
}
.product-details summary:focus-visible {
  outline: 3px solid var(--lilac);
  outline-offset: 3px;
}
.product-page .product-description-block p {
  max-width: 62ch;
  margin: 9px 0 0;
  color: var(--muted);
  line-height: 1.6;
}
.product-page .product-description-block dl {
  margin: 0;
}
.product-page .product-description-block dl div {
  grid-template-columns: 1fr 1.4fr;
  padding-block: 9px;
}
.product-page .catalog-source {
  margin-top: 20px;
  font-size: 12px;
}

.availability-empty {
  margin: 14px auto;
  padding: 26px 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.availability-empty .empty-marker {
  display: none;
}
.availability-empty h2 {
  margin: 0 0 6px;
  font-size: 21px;
}
.availability-empty p {
  margin: 0;
  color: var(--muted);
}

/* Pages légales */
.legal-page {
  max-width: 920px;
  margin: 54px auto 90px;
  padding: 0 28px;
}
.legal-page > header {
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line);
}
.legal-page > header > p:first-child {
  color: var(--blue2);
  font-weight: 800;
}
.legal-page h1 {
  max-width: 760px;
  margin: 8px 0 16px;
  font-size: clamp(40px, 6vw, 66px);
  line-height: 1;
}
.legal-page section {
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
}
.legal-page h2 {
  margin: 0 0 18px;
  font-size: 29px;
}
.legal-page p {
  max-width: 76ch;
  color: var(--muted);
  line-height: 1.7;
}
.legal-page dl div {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 20px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}
.legal-page dd {
  margin: 0;
}
.legal-warning {
  margin-top: 26px;
  padding: 17px;
  border-left: 4px solid var(--yellow);
  background: #fff8d9;
}
.privacy-note {
  margin: 14px 0 4px;
  color: var(--muted);
  font-size: 11px;
}
.unsubscribe-form {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 30px;
}
.unsubscribe-form button {
  padding: 13px 18px;
  border: 0;
  border-radius: 5px;
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  font-weight: 800;
}

@media (min-width: 821px) {
  .offer-row .item-price > span,
  .offer-row .delivery > span,
  .offer-row .offer-price > span {
    display: none;
  }
}
@media (max-width: 900px) {
  .product-page .nav,
  .collection-page .nav {
    height: auto;
    padding-block: 12px;
    grid-template-columns: 1fr auto;
    gap: 12px;
  }
  .product-page .nav-search,
  .collection-page .nav-search {
    display: flex;
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
  }
  .product-page .product-hero {
    grid-template-columns: minmax(0, 0.85fr) minmax(360px, 1.15fr);
  }
  .product-page .product-photo {
    min-height: 300px;
    padding: 28px;
  }
  .product-page .product-description-block {
    grid-template-columns: 1fr;
    gap: 26px;
  }
}
@media (max-width: 820px) {
  .nav {
    padding-inline: 16px;
  }
  .catalog-page .catalog-intro {
    margin-inline: 10px;
    padding: 30px 22px;
  }
  .catalog-page .compare {
    padding: 34px 14px 52px;
  }
  .catalog-page .results {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .product-page .product-hero {
    grid-template-columns: 1fr;
  }
  .product-page .product-photo {
    min-height: 220px;
    height: 240px;
    padding: 20px;
  }
  .product-page .product-photo img {
    max-height: 200px;
  }
  .product-page .product-insights {
    grid-template-columns: 1fr;
  }
  .product-page .offer-table-head {
    display: none;
  }
  .product-page .offer-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px 8px;
  }
  .product-page .offer-row .merchant {
    grid-column: 1 / -1;
  }
  .product-page .offer-external-note {
    grid-column: 1 / -1;
  }
  .product-page .offer-row .item-price,
  .product-page .offer-row .delivery,
  .product-page .offer-row .offer-price {
    grid-column: auto;
    grid-row: auto;
    text-align: left;
  }
  .product-page .offer-row .offer-cta {
    grid-column: 1 / -1;
    grid-row: auto;
  }
  .product-page .alert-panel {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .collection-intro {
    display: block;
    padding: 24px 0;
  }
  .collection-intro::before {
    left: 20px;
  }
  .collection-intro > strong {
    display: block;
    margin-top: 14px;
  }
}
@media (max-width: 520px) {
  .catalog-page .nav nav {
    display: flex;
    gap: 12px;
    font-size: 13px;
  }
  .catalog-page .nav {
    grid-template-columns: 1fr auto;
  }
  .catalog-page .nav-action {
    display: none;
  }
  .catalog-page .catalog-intro h1 {
    font-size: 30px;
    line-height: 1.1;
  }
  .catalog-page .catalog-intro {
    padding: 24px 18px;
  }
  .catalog-page .catalog-heading {
    flex-direction: row;
    text-align: left;
    gap: 12px;
  }
  .catalog-heading h2 {
    font-size: 24px;
  }
  .catalog-page .search > div:nth-child(2) {
    display: flex;
  }
  .catalog-page .search button {
    min-height: 42px;
  }
  .catalog-page .results {
    grid-template-columns: 1fr;
  }
  .catalog-page .product-visual {
    height: 220px;
  }
  .catalog-page .product-card h3 {
    min-height: 0;
  }
  .catalog-footer,
  footer {
    margin-inline: 18px;
    padding-inline: 0;
  }
  .product-page .product-summary {
    padding: 28px 20px;
  }
  .product-page .product-summary h1 {
    font-size: 28px;
  }
  .product-specs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .product-specs div:nth-child(even) {
    padding-left: 0;
    border-left: 0;
  }
  .product-page .offers-section,
  .product-page .history-panel,
  .product-page .alert-panel,
  .product-page .product-description-block {
    padding: 24px 18px;
  }
  .product-page .product-description-block dl div {
    grid-template-columns: 1fr 1.4fr;
  }
  .legal-page {
    margin-top: 34px;
    padding-inline: 20px;
  }
  .legal-page dl div {
    grid-template-columns: 1fr;
    gap: 3px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .product-card {
    transition: none;
  }
}
