/* Nos produits — tablette en paysage */

html, body { height: 100%; overflow: hidden; }
.prod { height: 100%; }

/* ---------- Tuiles (4 x 2 sur un écran paysage) ---------- */
.ptiles {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 1fr;
  gap: 20px;
  padding: 22px 28px 26px;
}

.ptile {
  position: relative;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--frb-gray-light) center / cover no-repeat;
  color: #fff;
  font: inherit;
  text-align: left;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform .15s ease;
}
.ptile:active { transform: scale(.97); }
.ptile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.78) 0%, rgba(0,0,0,.3) 45%, rgba(0,0,0,0) 70%);
}
.ptile::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 6px;
  background: linear-gradient(to right, var(--frb-orange), var(--frb-orange-dark));
}
.ptile .t {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 22px;
}
.ptile h2 {
  margin: 0;
  font-size: clamp(22px, 2.2vw, 28px);
  line-height: 1.1;
  text-shadow: 0 2px 10px rgba(0,0,0,.35);
}
.ptile p {
  margin: 6px 0 0;
  font-size: 15px;
  line-height: 1.3;
  opacity: .92;
}

/* ---------- Fiche produit ---------- */
.pdetail {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: var(--frb-bg);
  animation: fade .18s ease;
}
.pdetail[hidden] { display: none; }
.detail-close { top: 18px; right: 20px; }

.pdetail-body {
  display: flex;
  align-items: center;   /* fiches courtes centrées verticalement ; les longues défilent */
  height: 100%;
  gap: 36px;
  padding: 28px 104px;
}
/* Colonne de gauche : photo au format paysage (comme les photos sources), puis marques et lien */
.pdetail-side {
  flex: 0 0 48%;
  min-width: 0;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.pdetail-photo {
  flex: none;
  aspect-ratio: 3 / 2;
  border-radius: var(--radius);
  background: var(--frb-gray-light) center / cover no-repeat;
  box-shadow: var(--shadow);
}
#detail-extra { display: flex; flex-direction: column; }
.pdetail-info {
  flex: 1;
  min-width: 0;
  max-height: 100%;
  overflow-y: auto;
  padding: 4px 6px 24px 0;
  -webkit-overflow-scrolling: touch;
}

.pdetail-info .kicker {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--frb-orange-border);
}
.pdetail-info h2 { margin: 4px 0 12px; font-size: 42px; line-height: 1.05; }
.pdetail-info .intro { margin: 0; font-size: 20px; line-height: 1.5; color: var(--frb-text); }

.checks { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 10px; }
.checks li {
  position: relative;
  padding-left: 34px;
  font-size: 18px;
  line-height: 1.4;
}
.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--frb-orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 15px no-repeat;
}

.pdetail-info h3,
.pdetail-side h3 {
  margin: 28px 0 12px;
  font-size: 14px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--frb-orange-border);
}

.variants {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px;
}
.variant {
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,.05), 0 4px 14px rgba(0,0,0,.06);
}
.variant .vimg { height: 120px; background: var(--frb-gray-light) center / cover no-repeat; }
.variant .vtxt { padding: 14px 16px 16px; border-top: 3px solid var(--frb-orange); }
.variant h4 { margin: 0 0 6px; font-size: 20px; }
.variant p { margin: 0; font-size: 16px; line-height: 1.4; color: var(--frb-text-light); }
.variant ul { margin: 10px 0 0; padding-left: 18px; font-size: 15px; line-height: 1.45; }
.variant li::marker { color: var(--frb-orange); }

.brands { display: flex; flex-wrap: wrap; gap: 10px; }
.brand {
  padding: 9px 16px;
  border-radius: 999px;
  background: #fff;
  font-size: 16px;
  font-weight: 700;
  box-shadow: inset 0 0 0 1px var(--frb-gray-light);
}

/* Logo de marque : carte blanche, logo centré sans déformation */
.brand-logo {
  display: grid;
  place-items: center;
  width: 128px;
  height: 64px;
  padding: 8px 12px;
  border-radius: 12px;
}
.brand-logo img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }

.plink {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  min-height: 60px;
  padding: 0 28px;
  border-radius: 999px;
  background: linear-gradient(to right, var(--frb-orange), var(--frb-orange-dark));
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  text-decoration: none;
}
.plink svg { width: 24px; height: 24px; }
.plink:active { transform: scale(.97); }

@media (max-width: 1100px) {
  .ptiles { gap: 16px; padding: 18px 22px 22px; }
  .ptile p { display: none; }
  .pdetail-body { padding: 24px 92px; gap: 28px; }
  .pdetail-info h2 { font-size: 36px; }
  .pdetail-info .intro { font-size: 18px; }
}
