@charset "UTF-8";
/*
Theme Name: Blocksy Child
Description: Child theme for Blocksy. You can now safely customize it and not risk losing your customizations.
Author: Equinoxal
Author URI: equinoxal.fr
Template: blocksy
Version: 1.0
*/
.overflowhidden {
  overflow: hidden;
}
.pp-vehicule-prix {
  font-weight: 900;
  color: var(--wp--preset--color--palette-color-2);
  padding-left: 10px;
}
.pp-card-sold-wrap {
  margin: 0;
}
/* ===== Variables & reset léger ===== */
:root {
  --pp-gap: 24px;
  --pp-radius: 14px;
  --pp-shadow: 0 8px 24px rgba(0,0,0,.08);
  --pp-border: 1px solid rgba(0,0,0,.08);
  --pp-muted: #6b7280;
  /* gris */
  --pp-accent: #c9a56a;
  /* or Blocksy */
  --pp-bg: #fff;
}
.pp-vehicle * {
  box-sizing: border-box;
}
h1.entry-title.pp-title {
  font-size: 1.8em;
}
/* ===== Layout global ===== */
.pp-vehicle {
  margin: 0px 0 64px;
}
.pp-top {
  display: grid;
  grid-template-columns: 1.6fr 0.9fr;
  /* media / sidebar */
  gap: var(--pp-gap);
  align-items: start;
}
@media (max-width: 1024px) {
  .pp-top {
    grid-template-columns: 1fr;
  }
}
/* ===== MEDIA (slider + highlights) ===== */
.pp-media {
  display: grid;
  gap: 14px;
}
.pp-gallery-wrap {
  border-radius: var(--pp-radius);
  overflow: hidden;
  /*background:#f7f7f7;  box-shadow: var(--pp-shadow) ;*/
}
.pp-gallery .swiper-slide {
  background: #f7f7f7;
}
.pp-gallery .swiper-slide img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 1;
}
.pp-gallery .pp-gallery-thumbs {
  margin-top: 10px;
}
.pp-gallery .pp-gallery-thumbs .swiper-slide {
  height: auto;
  border-radius: 5px;
  overflow: hidden;
  opacity: 0.6;
  transition: opacity 0.2s;
}
.pp-gallery .pp-gallery-thumbs .swiper-slide-thumb-active {
  opacity: 1;
}
.pp-next, .pp-prev {
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.3));
}
/* Badge vendu (déjà injecté en HTML) */
.pp-badge-sold {
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 8px;
  background: #e11d48;
  color: #fff;
}
/* Highlights (petits badges sous le slider) */
.pp-highlights {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
@media (max-width: 900px) {
  .pp-highlights {
    grid-template-columns: repeat(2, 1fr);
  }
}
.pp-badge {
  background: var(--pp-bg);
  border: var(--pp-border);
  border-radius: 12px;
  padding: 10px 12px;
  box-shadow: var(--pp-shadow);
}
.pp-badge span {
  display: block;
  color: var(--pp-muted);
  font-size: 12px;
}
.pp-badge small {
  display: block;
  font-weight: 700;
  margin-top: 2px;
}
/* ===== SIDEBAR (carte infos/prix/CTA) ===== */
.pp-sidebar {
  position: sticky;
  top: 24px;
}
@media (max-width: 1024px) {
  .pp-sidebar {
    position: static;
  }
}
.pp-card {
  background: var(--pp-bg);
  border: var(--pp-border);
  border-radius: var(--pp-radius);
  box-shadow: var(--pp-shadow);
  padding: 18px;
}
.pp-card-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 8px;
  font-size: 25px;
  line-height: 1.2;
  color: #1f2937;
}
.pp-brand-logo {
  width: auto;
  height: 40px;
  object-fit: contain;
}
.pp-price {
  font-size: 28px;
  font-weight: 800;
  margin: 6px 0 10px;
}
.pp-location {
  color: var(--pp-muted);
  margin-bottom: 12px;
}
.pp-cta {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}
.pp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
}
.pp-btn-primary {
  background: #111827;
  color: #fff;
}
.pp-btn-secondary {
  background: #f3f4f6;
  color: #111827;
}
.pp-btn:hover {
  transform: translateY(-1px);
  transition: 0.15s ease;
}
.pp-side-meta {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.pp-side-meta li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.08);
  padding: 6px 0;
}
.pp-side-meta li strong {
  font-weight: 600;
}
.pp-side-meta li span {
  color: #111;
}
/* ===== Caractéristiques (grille) ===== */
.pp-specs {
  margin-top: 34px;
}
.pp-specs > h2 {
  font-size: 32px;
  line-height: 1.2;
  margin: 0 0 12px;
  color: #1f2937;
}
.pp-specs-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
}
@media (max-width: 700px) {
  .pp-specs-grid {
    grid-template-columns: 1fr;
  }
}
.pp-specs-grid li {
  background: var(--pp-bg);
  border: var(--pp-border);
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: var(--pp-shadow);
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.pp-specs-grid li span {
  color: var(--pp-muted);
  min-width: 170px;
  display: inline-block;
}
@media (max-width: 700px) {
  .pp-specs-grid li span {
    min-width: 120px;
  }
}
.pp-specs-grid li strong {
  font-weight: 700;
}
.pp-specs-grid li.pp-specs-full {
  grid-column: 1 / -1;
}
/* ===== Description ===== */
.pp-description {
  margin-top: 34px;
}
.pp-description > h2, .pp-contact > h2 {
  font-size: 32px;
  margin: 0 0 12px;
}
.pp-content p {
  margin: 0 0 12px;
}
/* ===== Cartes en listes (homepage) : badge + overlay déjà gérés via PHP ===== */
.pp-card-sold-wrap {
  position: relative;
}
.pp-card-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
}
/* ===== Petites finitions ===== */
.wp-block-post {
  position: relative;
}
/* pour l’overlay des cartes */
.hidden-fields-container {
  display: none;
}
/* Grille simple */
.pp-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 12px;
}
.pp-col-12 {
  grid-column: span 12;
}
.pp-col-8 {
  grid-column: span 8;
}
.pp-col-6 {
  grid-column: span 6;
}
.pp-col-4 {
  grid-column: span 4;
}
.pp-col-3 {
  grid-column: span 3;
}
/* Pastilles couleur (radio) */
.pp-colors .wpcf7-list-item {
  margin-right: 10px;
}
.pp-colors .wpcf7-list-item label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.pp-colors .wpcf7-list-item-label::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid #c7c7c7;
  background: #f3f3f3;
}
.pp-colors input[value="Noir"] + .wpcf7-list-item-label::before {
  background: #000;
}
.pp-colors input[value="Blanc"] + .wpcf7-list-item-label::before {
  background: #fff;
}
.pp-colors input[value="Gris"] + .wpcf7-list-item-label::before {
  background: #888;
}
.pp-colors input[value="Argent"] + .wpcf7-list-item-label::before {
  background: #c0c0c0;
}
.pp-colors input[value="Bleu"] + .wpcf7-list-item-label::before {
  background: #1e63ff;
}
.pp-colors input[value="Rouge"] + .wpcf7-list-item-label::before {
  background: #e1142a;
}
.pp-colors input[value="Vert"] + .wpcf7-list-item-label::before {
  background: #1c9c57;
}
.cf7-multistep .step {
  display: none;
  margin-bottom: 1rem;
  padding: 1rem;
  border: 1px solid #eee;
  border-radius: 6px;
  background: #f9f9f9;
}
.cf7-multistep .step h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}
.cf7-multistep .field-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.cf7-multistep label {
  display: block;
  margin-bottom: 0.5rem;
}
.cf7-multistep button {
  margin: 0.5rem 0.25rem;
  padding: 0.5rem 1.5rem;
  background: #C5AD5D;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
.cf7-multistep button:hover {
  opacity: 0.85;
}
/* Styled radio buttons for colours */
.wpcf7-list-item {
  display: inline-block;
  margin-right: 0.75rem;
}
.wpcf7-list-item input[type=radio] {
  display: none;
}
.wpcf7-list-item label {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-block;
  border: 2px solid #ddd;
  cursor: pointer;
}
.wpcf7-list-item input[type=radio]:checked + label {
  border-color: #C5AD5D;
}
/* Assign actual colours */
.wpcf7-list-item:nth-child(1) label {
  background: #000;
}
/* Noir */
.wpcf7-list-item:nth-child(2) label {
  background: #fff;
  border: 1px solid #ccc;
}
/* Blanc */
.wpcf7-list-item:nth-child(3) label {
  background: #888;
}
/* Gris */
.wpcf7-list-item:nth-child(4) label {
  background: #d00;
}
/* Rouge */
.wpcf7-list-item:nth-child(5) label {
  background: #0066cc;
}
/* Bleu */
