@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400&family=DM+Sans:wght@300;400;500;600;700&display=swap');
.tpt-prod-page *, .tpt-prod-page *::before, .tpt-prod-page *::after { box-sizing: border-box; }
.tpt-prod-page h1,.tpt-prod-page h2,.tpt-prod-page h3,.tpt-prod-page p { margin: 0 !important; padding: 0; }
.tpt-prod-page a { text-decoration: none; color: inherit; }
.tpt-prod-page img { display: block; max-width: 100%; }
/* ═══════════════════════════════════════════════════
   TPT PRODUCT PAGE — Design System v1
═══════════════════════════════════════════════════ */

.tpt-prod-page *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --dark:       #1e1b27;
  --bg:         #f0ede8;
  --bg-warm:    #e8e4df;
  --green:      #768471;
  --green-lt:   #a8b8a3;
  --green-dark: #2c3a2e;
  --text:       #1e1b27;
  --text-muted: #9990a5;
  --text-sub:   #6b6560;
  --border:     #e0dbd4;
  --border-lt:  #c8c2b8;
  --white:      #f5f2ec;
  --card:       #ffffff;
  --serif:      'Playfair Display', Georgia, serif;
  --sans:       'DM Sans', Arial, sans-serif;
  --radius:     14px;
  --radius-sm:  8px;
  --max-w:      1440px;
}

body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

/* ── BREADCRUMB ── */
.tpt-bc { background: var(--bg); padding: 12px 40px; font-size: 11px; letter-spacing: 0.1em; color: var(--text-muted); text-transform: uppercase; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tpt-bc a { color: var(--text-muted); transition: color .2s; }
.tpt-bc a:hover { color: var(--green); }
.tpt-bc-sep { color: var(--border-lt); }
.tpt-bc-current { color: var(--green); }

/* ═══════════════════════════════════════════════════
   HERO PRODUIT — Galerie + Infos
═══════════════════════════════════════════════════ */

.tpt-product-hero {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 24px 40px 32px;
  display: grid;
  grid-template-columns: 5fr 6fr;
  grid-template-rows: auto 1fr;
  gap: 8px 48px;
  align-items: start;
}
/* Desktop: map left spanning all rows, intro + form stacked right */
.tpt-mapbox-preview { grid-column: 1; grid-row: 1 / -1; align-self: start; position: sticky; top: 80px; }
.tpt-hero-intro { grid-column: 2; grid-row: 1; }
.tpt-hero-form  { grid-column: 2; grid-row: 2; }

/* Galerie */
.tpt-gallery { position: sticky; top: 80px; }
.tpt-gallery-main {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
  box-shadow: 0 4px 32px rgba(42,37,32,0.08);
  margin-bottom: 12px;
}
.tpt-gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.tpt-gallery-thumbs {
  display: flex;
  gap: 8px;
}
.tpt-gallery-thumb {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color .2s;
  flex-shrink: 0;
}
.tpt-gallery-thumb.active,
.tpt-gallery-thumb:hover { border-color: var(--green); }
.tpt-gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Mapbox live preview (remplace galerie sur template GPX) */
.tpt-mapbox-preview #container-map {
  border-radius: 0;
  overflow: hidden;
  background: var(--card);
  box-shadow: 0 4px 32px rgba(42,37,32,0.08);
  aspect-ratio: 297 / 420;
  max-height: calc(100vh - 100px);
  display: flex;
  flex-direction: column;
  position: relative;
}
/* Placeholder image pendant le chargement de Mapbox */
.tpt-map-placeholder {
  position: absolute;
  inset: 0;
  z-index: 10;
  background: var(--card);
  display: flex;
  align-items: center;
  justify-content: center;
}
.tpt-map-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tpt-map-placeholder-loader {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(30,27,39,0.75);
  backdrop-filter: blur(6px);
  color: #fff;
  padding: 10px 20px;
  border-radius: 100px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.tpt-map-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: tpt-spin 0.8s linear infinite;
}
@keyframes tpt-spin { to { transform: rotate(360deg); } }
.tpt-mapbox-preview #map {
  width: 100%;
  flex: 1;
  min-height: 0;
}
.tpt-mapbox-preview .mapboxgl-map { position: relative; }
.tpt-mapbox-preview .mapboxgl-map::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,1));
}
.tpt-mapbox-preview .mapboxgl-map.no-gradient::after {
  height: 20px;
  background: linear-gradient(to bottom, rgba(255,255,255,255), rgba(255,255,255,1));
}
.tpt-mapbox-preview .mapboxgl-marker {
  width: 6px; height: 6px;
  border-radius: 50%;
  background-color: white;
  border: 1px solid black;
}
.tpt-mapbox-preview .mapboxgl-marker .svg { display: none; }
.tpt-mapbox-preview .mapboxgl-marker.no-gradient { background-color: black; }
.tpt-mapbox-preview .mapboxgl-ctrl-bottom-left,
.tpt-mapbox-preview .mapboxgl-ctrl-bottom-right { display: none; }

.tpt-mapbox-preview #text-display2profil {
  font-weight: 500;
  font-size: 38px;
  text-align: center;
  font-family: 'Teko', sans-serif;
  color: black;
  padding: 12px 16px 6px;
  line-height: 1.1;
}
.tpt-mapbox-preview .bloc-perso { display: flex; padding: 4px 16px 14px; }
.tpt-mapbox-preview #text-profil-gauche { flex: 60; margin-right: 3%; }
.tpt-mapbox-preview #profileCanvas { height: 60px; width: 80%; margin-left: 15%; border: 0; display: block; }
.tpt-mapbox-preview #text-profil-droite { flex: 40; font-family: 'Teko', sans-serif; color: black; }
.tpt-mapbox-preview #textdisplay2 { font-size: 14px; font-weight: 400; line-height: 1.2; margin-top: 4px; }
.tpt-mapbox-preview .text-container,
.tpt-mapbox-preview .text-container-1 { display: flex; margin-bottom: 0; }
.tpt-mapbox-preview #text-profil-droite-ligne1 { float: left; }
.tpt-mapbox-preview #text-profil-droite-ligne3 { float: left; }
.tpt-mapbox-preview #text-profil-droite-ligne2 { float: right; margin-left: 20%; }
.tpt-mapbox-preview #text-profil-droite-ligne4 { float: right; margin-left: 19%; }
.tpt-mapbox-preview #textdisplay-distance-data,
.tpt-mapbox-preview #textdisplay-date-data { font-size: 14px; font-weight: 400; line-height: 1.2; }
.tpt-mapbox-preview #textdisplay-distance,
.tpt-mapbox-preview #textdisplay-elevation,
.tpt-mapbox-preview #textdisplay-date,
.tpt-mapbox-preview #textdisplay-time { font-size: 9px; font-weight: 200; line-height: 1.4; }
.tpt-mapbox-preview #textdisplay-time-data,
.tpt-mapbox-preview #textdisplay-elevation-data { font-size: 14px; font-weight: 400; line-height: 1.2; }
.tpt-mapbox-preview #textdisplay-time-data { margin-top: 0; }
.tpt-mapbox-preview #textdisplay-elevation-data { margin-top: 0; }
.tpt-mapbox-preview #textdisplay-distance-data { margin-top: 0; }
.tpt-mapbox-preview #textdisplay-date-data { margin-top: 0; }

/* WAPF field ordering inside tpt-wc-form */
.tpt-wc-form div[class="wapf"] { order: 2; }
.tpt-wc-form div[class="vicode-custom-field-wrapper"] { order: 1; margin-bottom: 10px; }
.tpt-wc-form div[class="quantity"] { order: 3; }
.tpt-wc-form button[name="add-to-cart"] { order: 3; }

/* Vicode GPX input — prominent style */
.tpt-wc-form .vicode-custom-field-wrapper {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--text);
  border-top: none !important;
  padding-top: 0 !important;
  margin-top: 0;
}
.tpt-wc-form .vicode-custom-field-wrapper label {
  display: block;
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 10px;
}
.tpt-wc-form .vicode-custom-field-wrapper input[type="file"] {
  display: block;
  width: 100%;
  font-family: var(--sans);
  font-size: 13px;
  padding: 20px;
  border: 2px dashed var(--green);
  border-radius: var(--radius-sm);
  background: rgba(118,132,113,0.05);
  cursor: pointer;
  margin-bottom: 12px;
  transition: border-color .2s, background .2s;
  color: var(--text-sub);
}
.tpt-wc-form .vicode-custom-field-wrapper input[type="file"]:hover {
  border-color: #5a6e56;
  background: rgba(118,132,113,0.1);
}
.tpt-wc-form .vicode-custom-field-wrapper input[type="file"]::file-selector-button {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 10px 24px;
  border: none;
  border-radius: 6px;
  background: var(--green);
  color: #fff;
  cursor: pointer;
  margin-right: 14px;
  transition: background .2s;
}
.tpt-wc-form .vicode-custom-field-wrapper input[type="file"]::file-selector-button:hover {
  background: #5a6e56;
}
/* Supprimer les séparateurs */
.tpt-wc-form .vicode-custom-field-wrapper::before,
.tpt-wc-form .vicode-custom-field-wrapper hr,
.tpt-wc-form > hr,
.tpt-wc-form .cart > hr { display: none !important; }

@media (max-width: 900px) {
  .tpt-mapbox-preview { position: static; }
  .tpt-mapbox-preview #container-map { max-height: 70vh; }
}

/* Infos produit */
.tpt-product-info { padding-top: 8px; }
.tpt-hero-intro { padding-top: 8px; }
.tpt-hero-form { padding-top: 0; }

.tpt-product-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green);
  font-weight: 600;
  margin-bottom: 12px;
}
.tpt-product-tag::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--green);
}

.tpt-product-name {
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 900;
  color: var(--text);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.tpt-product-name em { font-style: italic; color: var(--green); }

.tpt-product-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.tpt-stars { color: #d4a847; font-size: 14px; letter-spacing: 2px; }
.tpt-rating-count { font-size: 12px; color: var(--text-muted); }

.tpt-product-price-from {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 400;
  font-family: var(--sans);
  letter-spacing: 0.02em;
}
.tpt-product-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 2px;
}
.tpt-product-price {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 700;
  color: var(--text);
}
.tpt-product-price-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.tpt-product-desc {
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.75;
  font-weight: 300;
  margin-bottom: 0;
}

/* Options / Variations */
.tpt-options { margin-bottom: 28px; }
.tpt-option-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 10px;
}
.tpt-option-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.tpt-option-btn {
  padding: 8px 18px;
  border: 1.5px solid var(--border-lt);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-sub);
  cursor: pointer;
  background: transparent;
  font-family: var(--sans);
  transition: all .2s;
}
.tpt-option-btn:hover { border-color: var(--text); color: var(--text); }
.tpt-option-btn.active { background: var(--dark); border-color: var(--dark); color: #fff; }

/* Quantité + Panier */
.tpt-cart-row {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 20px;
}
.tpt-qty {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--border-lt);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.tpt-qty button {
  width: 40px; height: 44px;
  border: none; background: transparent;
  font-size: 18px; color: var(--text-sub);
  cursor: pointer; font-family: var(--sans);
  transition: background .2s;
}
.tpt-qty button:hover { background: var(--bg-warm); }
.tpt-qty input {
  width: 44px; height: 44px;
  text-align: center;
  border: none; border-left: 1px solid var(--border); border-right: 1px solid var(--border);
  font-size: 14px; font-weight: 600;
  font-family: var(--sans); color: var(--text);
  background: transparent;
  outline: none;
}
.tpt-add-cart {
  flex: 1;
  height: 48px;
  background: var(--green);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  font-family: var(--sans);
  transition: background .25s;
}
.tpt-add-cart:hover { background: #8a9885; }

/* Mini réassurance inline */
.tpt-mini-trust {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 0;
  border-top: 1px solid var(--border);
  margin-top: 8px;
}
.tpt-mini-trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--text-sub);
}
.tpt-mini-trust-icon {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(118,132,113,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}
.tpt-mini-trust-item strong { color: var(--text); font-weight: 600; }

/* ═══════════════════════════════════════════════════
   DESCRIPTION LONGUE
═══════════════════════════════════════════════════ */

.tpt-long-desc {
  background: var(--card);
  border-top: 1px solid var(--border);
}
.tpt-long-desc-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 56px 40px 64px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 56px;
  align-items: start;
}
.tpt-long-desc-sidebar {}
.tpt-long-desc-label {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--green);
  font-weight: 600;
  margin-bottom: 14px;
}
.tpt-long-desc-title {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 16px;
}
.tpt-long-desc-accent {
  width: 40px;
  height: 2px;
  background: var(--green);
  border-radius: 2px;
  margin-bottom: 20px;
}
.tpt-long-desc-highlights {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.tpt-long-desc-highlight {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-sub);
}
.tpt-long-desc-highlight-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(118,132,113,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
}
.tpt-long-desc-highlight strong { color: var(--text); font-weight: 600; }

.tpt-long-desc-content {
  font-size: 14.5px;
  color: var(--text-sub);
  line-height: 1.85;
  font-weight: 300;
}
.tpt-long-desc-content h3 {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  margin-top: 32px;
}
.tpt-long-desc-content h3:first-child { margin-top: 0; }
.tpt-long-desc-content p { margin-bottom: 16px; }
.tpt-long-desc-content ul {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
}
.tpt-long-desc-content ul li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
}
.tpt-long-desc-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}
.tpt-long-desc-content strong { color: var(--text); font-weight: 600; }

@media (max-width: 900px) {
  .tpt-long-desc-inner { grid-template-columns: 1fr; gap: 32px; padding: 40px 20px 48px; }
}

/* ═══════════════════════════════════════════════════
   RÉASSURANCE STRIP
═══════════════════════════════════════════════════ */

.tpt-trust-strip {
  background: var(--green);
}
.tpt-trust-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.tpt-trust-item {
  text-align: center;
  padding: 28px 16px;
  border-right: 1px solid rgba(255,255,255,0.15);
}
.tpt-trust-item:last-child { border-right: none; }
.tpt-trust-icon { font-size: 22px; margin-bottom: 6px; }
.tpt-trust-label { font-size: 12px; color: rgba(255,255,255,0.92); line-height: 1.5; }
.tpt-trust-label strong { display: block; color: #fff; font-weight: 700; font-size: 12.5px; }

/* ═══════════════════════════════════════════════════
   COMMENT ÇA MARCHE
═══════════════════════════════════════════════════ */

.tpt-how {
  background: var(--card);
  padding: 64px 40px;
  border-top: 1px solid var(--border);
}
.tpt-how-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.tpt-how-title {
  font-family: var(--serif);
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 700;
  font-style: italic;
  color: var(--text);
  margin-bottom: 8px;
}
.tpt-how-accent {
  width: 56px;
  height: 2px;
  background: var(--green);
  border-radius: 2px;
  margin-bottom: 32px;
}
.tpt-how-steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.tpt-how-step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.tpt-how-step-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(118,132,113,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 2px;
}
.tpt-how-step-text {
  font-size: 14.5px;
  color: var(--text-sub);
  line-height: 1.65;
  font-weight: 300;
}
.tpt-how-step-text strong {
  color: var(--text);
  font-weight: 600;
}
.tpt-how-img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(42,37,32,0.12);
}
.tpt-how-img img {
  width: 100%;
  display: block;
}

@media (max-width: 900px) {
  .tpt-how-inner { grid-template-columns: 1fr; gap: 32px; }
  .tpt-how-img { max-width: 480px; margin: 0 auto; }
  .tpt-how { padding: 48px 20px; }
}

/* ═══════════════════════════════════════════════════
   NOS SUPPORTS D'IMPRESSION
═══════════════════════════════════════════════════ */

.tpt-supports {
  background: var(--bg);
  padding: 64px 40px;
}
.tpt-supports-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.tpt-support-card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 14px rgba(42,37,32,.06);
  display: flex;
  flex-direction: column;
  transition: transform .2s, box-shadow .2s;
}
.tpt-support-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(42,37,32,.12);
}
.tpt-support-img {
  height: 200px;
  overflow: hidden;
  background: var(--bg-warm);
}
.tpt-support-img img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform .4s;
}
.tpt-support-card:hover .tpt-support-img img { transform: scale(1.05); }
.tpt-support-body {
  padding: 20px 20px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.tpt-support-name {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
  font-style: italic;
  color: var(--text);
  text-align: center;
  margin-bottom: 12px;
}
.tpt-support-desc {
  font-size: 13px;
  color: var(--text-sub);
  line-height: 1.7;
  font-weight: 300;
  text-align: center;
  flex: 1;
}
.tpt-support-desc strong {
  color: var(--text);
  font-weight: 600;
}
.tpt-support-detail {
  display: block;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--green);
  font-weight: 500;
  text-align: center;
}

@media (max-width: 900px) {
  .tpt-supports-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .tpt-supports-grid { grid-template-columns: 1fr; max-width: 360px; }
  .tpt-support-img { height: 180px; }
}

/* ═══════════════════════════════════════════════════
   CTA PERSONNALISÉ GPX
═══════════════════════════════════════════════════ */

.tpt-perso-strip { background: var(--green-dark); padding: 56px 40px; }
.tpt-perso-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 40px;
}
.tpt-perso-eyebrow { font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--green-lt); font-weight: 500; margin-bottom: 10px; }
.tpt-perso-title { font-family: var(--serif); font-size: clamp(20px, 2.5vw, 28px); font-weight: 700; color: var(--white); line-height: 1.2; margin-bottom: 12px; }
.tpt-perso-desc { font-size: 14px; color: rgba(255,255,255,0.55); line-height: 1.7; font-weight: 300; max-width: 640px; }
.tpt-perso-btn {
  display: inline-block;
  background: var(--green);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 16px 36px;
  border-radius: 4px;
  white-space: nowrap;
  transition: all .25s;
  border: 2px solid var(--green);
}
.tpt-perso-btn:hover { background: transparent; color: var(--white); border-color: var(--green-lt); }

/* ═══════════════════════════════════════════════════
   PRODUITS SIMILAIRES
═══════════════════════════════════════════════════ */

.tpt-related {
  background: var(--bg);
  padding: 64px 40px;
}
.tpt-section-header { text-align: center; margin-bottom: 40px; }
.tpt-eyebrow { font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--green); font-weight: 500; margin-bottom: 10px; }
.tpt-section-title { font-family: var(--serif); font-size: clamp(22px, 3vw, 28px); font-weight: 700; color: var(--text); line-height: 1.2; }
.tpt-divider { width: 48px; height: 2px; background: var(--green); margin: 14px auto 0; border-radius: 2px; }

.tpt-related-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.tpt-rcard {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 14px rgba(42,37,32,.06);
  transition: transform .2s, box-shadow .2s;
  display: flex;
  flex-direction: column;
}
.tpt-rcard:hover { transform: translateY(-4px); box-shadow: 0 8px 28px rgba(42,37,32,.12); }
.tpt-rcard-img { height: 220px; overflow: hidden; background: var(--bg-warm); }
.tpt-rcard-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.tpt-rcard:hover .tpt-rcard-img img { transform: scale(1.05); }
.tpt-rcard-body { padding: 14px 16px 16px; flex: 1; display: flex; flex-direction: column; }
.tpt-rcard-cat { font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--green); font-weight: 600; margin-bottom: 5px; }
.tpt-rcard-name { font-family: var(--serif); font-size: 14px; font-weight: 700; color: var(--text); line-height: 1.3; flex: 1; margin-bottom: 10px; }
.tpt-rcard-footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.tpt-rcard-price { font-family: var(--serif); font-size: 16px; font-weight: 700; color: var(--text); }
.tpt-rcard-btn { background: var(--dark); color: #fff; padding: 7px 14px; border-radius: 6px; font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; transition: background .2s; }
.tpt-rcard-btn:hover { background: var(--green); }

/* ═══════════════════════════════════════════════════
   AVIS CLIENTS
═══════════════════════════════════════════════════ */

.tpt-reviews-section {
  background: var(--bg);
  padding: 64px 40px;
  border-top: 1px solid var(--border);
}
.tpt-reviews-widget {
  max-width: 1100px;
  margin: 0 auto;
  min-height: 120px;
}

/* ═══════════════════════════════════════════════════
   DISCIPLINES / CATÉGORIES LIÉES
═══════════════════════════════════════════════════ */

.tpt-disciplines {
  background: var(--dark);
  padding: 64px 40px;
}
.tpt-disciplines .tpt-eyebrow { color: var(--green-lt); }
.tpt-disciplines .tpt-section-title { color: var(--white); }
.tpt-disc-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.tpt-disc-card {
  flex: 1;
  min-width: 160px;
  max-width: 220px;
  height: 150px;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  display: block;
  cursor: pointer;
}
.tpt-disc-card img {
  width: 100%; height: 100%; object-fit: cover;
  display: block; transition: transform .4s;
}
.tpt-disc-card:hover img { transform: scale(1.06); }
.tpt-disc-placeholder { width: 100%; height: 100%; background: var(--green-dark); }
.tpt-disc-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(30,27,39,0.88) 0%, rgba(30,27,39,0.2) 70%, transparent 100%);
  display: flex; align-items: flex-end; padding: 16px;
}
.tpt-disc-name {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.25;
}

@media (max-width: 560px) {
  .tpt-disc-grid { gap: 8px; }
  .tpt-disc-card { min-width: 140px; height: 120px; }
}

/* ═══════════════════════════════════════════════════
   CARTE À GRATTER — CONCEPT 12 CARTES
═══════════════════════════════════════════════════ */

.tpt-scratch-concept {
  background: var(--card);
  padding: 64px 40px;
  border-top: 1px solid var(--border);
}
.tpt-scratch-concept-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 48px;
  align-items: start;
}
.tpt-scratch-concept-title {
  font-family: var(--serif);
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 700;
  font-style: italic;
  color: var(--text);
  margin-bottom: 8px;
}

/* Grille 12 cartes */
.tpt-scratch-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.tpt-scratch-card-item {
  background: var(--bg);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform .2s, box-shadow .2s;
}
.tpt-scratch-card-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(42,37,32,0.1);
}
.tpt-scratch-card-visual {
  aspect-ratio: 1;
  position: relative;
  overflow: hidden;
  border-radius: 8px 8px 0 0;
  /* Fallback si aspect-ratio pas encore appliqué */
  min-height: 0;
}
/* padding-bottom trick pour les navigateurs lents à calculer aspect-ratio */
@supports not (aspect-ratio: 1) {
  .tpt-scratch-card-visual { padding-bottom: 100%; }
}
.tpt-scratch-hidden {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--bg) 0%, #fff 100%);
  z-index: 1;
}
.tpt-scratch-hidden-icon {
  font-size: 36px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}
.tpt-scratch-hidden-label {
  font-family: var(--serif);
  font-size: 12px;
  font-weight: 700;
  color: var(--green);
  letter-spacing: 0.04em;
}
.tpt-scratch-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: none;
  z-index: 2;
}
.tpt-scratch-canvas:active { cursor: grabbing; }
.tpt-scratch-canvas.scratched { pointer-events: none; }
.tpt-scratch-card-fields {
  padding: 8px 10px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.tpt-scratch-field {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 400;
  padding: 4px 0;
  border-bottom: 1px dashed var(--border);
}
.tpt-scratch-field:last-child { border-bottom: none; }
.tpt-scratch-field-icon { font-size: 12px; flex-shrink: 0; }

@media (max-width: 900px) {
  .tpt-scratch-concept-inner { grid-template-columns: 1fr; gap: 32px; }
  .tpt-scratch-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px) {
  .tpt-scratch-concept { padding: 48px 20px; }
  .tpt-scratch-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .tpt-scratch-card-number { font-size: 22px; }
}

/* ═══════════════════════════════════════════════════
   FAQ
═══════════════════════════════════════════════════ */

.tpt-faq {
  background: var(--dark);
  padding: 64px 40px;
}
.tpt-faq .tpt-eyebrow { color: var(--green-lt); }
.tpt-faq .tpt-section-title { color: var(--white); }
.tpt-faq-list {
  max-width: 860px;
  margin: 0 auto;
}
.tpt-faq-item {
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.tpt-faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 20px;
  margin: 0 -20px;
  width: calc(100% + 40px);
  background: transparent;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  color: var(--white);
  text-align: left;
  gap: 16px;
  transition: background .25s, color .25s;
}
.tpt-faq-q:hover { background: rgba(255,255,255,0.05); color: var(--green-lt); }
.tpt-faq-item.open .tpt-faq-q { color: var(--green-lt); }
.tpt-faq-icon {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--green-lt);
  flex-shrink: 0;
  transition: transform .3s, background .25s, border-color .25s;
}
.tpt-faq-q:hover .tpt-faq-icon { border-color: var(--green-lt); background: rgba(168,184,163,0.1); }
.tpt-faq-item.open .tpt-faq-icon { transform: rotate(45deg); background: rgba(168,184,163,0.15); border-color: var(--green-lt); }
.tpt-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, padding .35s ease;
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  line-height: 1.75;
  font-weight: 300;
  padding-left: 20px;
  padding-right: 20px;
}
.tpt-faq-item.open .tpt-faq-a {
  max-height: 300px;
  padding-bottom: 24px;
}

/* ── Template sans profil : texte centré sous la carte ── */
.tpt-mapbox-noprof #text-custom {
  color: black;
  text-align: center;
  width: 100%;
  padding: 12px 16px 16px;
  font-family: var(--sans);
}
.tpt-mapbox-noprof #text-display2 {
  font-weight: 700;
  font-size: 1.6em;
  line-height: 1.2;
}
.tpt-mapbox-noprof #text-display3 {
  font-size: 0.8em;
  line-height: 1.4;
  margin-top: 2px;
}
.tpt-mapbox-noprof .text-display {
  font-size: 1em;
  margin-top: 4px;
}
/* Markers plus gros sur template sans profil */
.tpt-mapbox-noprof .mapboxgl-marker {
  width: 8px;
  height: 8px;
  border: 2px solid black;
}

/* ═══════════════════════════════════════════════════
   BLOG / ARTICLES EN LIEN
═══════════════════════════════════════════════════ */

.tpt-blog { background: var(--bg); padding: 56px 0; }
.tpt-blog-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 32px 40px 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.tpt-blog-card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(42,37,32,0.06);
  transition: transform .25s, box-shadow .25s;
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
}
.tpt-blog-card:hover { transform: translateY(-4px); box-shadow: 0 8px 32px rgba(42,37,32,0.12); }
.tpt-blog-card-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--border);
}
.tpt-blog-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.tpt-blog-card:hover .tpt-blog-card-img img { transform: scale(1.05); }
.tpt-blog-card-body { padding: 20px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.tpt-blog-card-meta { font-size: 11px; color: var(--text-muted); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 8px; display: flex; gap: 10px; align-items: center; }
.tpt-blog-card-cat { color: var(--green); font-weight: 600; }
.tpt-blog-card-title { font-family: var(--serif); font-size: 18px; font-weight: 700; line-height: 1.3; margin-bottom: 8px; color: var(--text); }
.tpt-blog-card-excerpt { font-size: 13px; color: var(--text-sub); line-height: 1.6; font-weight: 300; flex: 1; }
.tpt-blog-card-read { font-size: 12px; font-weight: 600; color: var(--green); letter-spacing: 0.06em; text-transform: uppercase; margin-top: 14px; }

@media (max-width: 900px) {
  .tpt-blog-grid { grid-template-columns: 1fr; padding: 24px 20px 0; gap: 20px; }
}

/* ═══════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════ */

@media (max-width: 900px) {
  .tpt-product-hero { grid-template-columns: 1fr; grid-template-rows: auto; gap: 16px; padding: 24px 20px 40px; }
  /* Reset grid placement, use order for mobile flow */
  .tpt-hero-intro    { grid-column: auto; grid-row: auto; order: 1; }
  .tpt-mapbox-preview { grid-column: auto; grid-row: auto; order: 2; position: static; }
  .tpt-hero-form     { grid-column: auto; grid-row: auto; order: 3; }
  .tpt-gallery { position: static; }
  .tpt-related-grid { grid-template-columns: repeat(2, 1fr); }
  .tpt-trust-inner { grid-template-columns: repeat(2, 1fr); }
  .tpt-trust-item:nth-child(2) { border-right: none; }
  .tpt-perso-inner { grid-template-columns: 1fr; text-align: center; }
  .tpt-perso-desc { margin: 0 auto 20px; }
  .tpt-bc { padding: 12px 20px; }
}

/* ── Barre sticky CTA (desktop + mobile) ── */
.tpt-sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--dark);
  padding: 10px 40px;
  display: flex;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 -2px 20px rgba(30,27,39,0.3);
  border-top: 1px solid rgba(255,255,255,0.08);
  transition: transform .3s ease, opacity .3s ease;
}
.tpt-sticky-bar.is-hidden {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}
.tpt-sticky-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: background .2s, transform .1s;
}
.tpt-sticky-btn:active { transform: scale(0.97); }
.tpt-sb-icon { font-size: 15px; }

/* Toggle : masqué sur desktop, visible sur mobile */
.tpt-sticky-toggle {
  display: none;
  background: rgba(255,255,255,0.1);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.15);
}
.tpt-sticky-toggle.is-at-preview {
  background: rgba(118,132,113,0.2);
  border-color: var(--green);
  color: var(--green-lt);
}

/* Bouton panier */
.tpt-sticky-cart {
  background: var(--green);
  color: #fff;
  min-width: 240px;
}
.tpt-sticky-cart:hover { background: #8a9885; }

/* Padding bottom pour éviter que le contenu passe sous la barre */
.tpt-prod-page { padding-bottom: 72px; }

@media (max-width: 900px) {
  .tpt-sticky-bar { padding: 10px 16px; }
  .tpt-sticky-toggle { display: flex; flex: 1; }
  .tpt-sticky-cart { flex: 1; min-width: 0; }
}

@media (max-width: 560px) {
  .tpt-product-hero { padding: 16px 16px 32px; }
  .tpt-related-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .tpt-rcard-img { height: 160px; }
  .tpt-trust-inner { grid-template-columns: 1fr; }
  .tpt-trust-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .tpt-trust-item:last-child { border-bottom: none; }
  .tpt-cart-row { flex-direction: column; }
  .tpt-add-cart { width: 100%; }
  .tpt-gallery-thumbs { overflow-x: auto; }
}

/* WooCommerce form overrides */
.tpt-wc-form { margin-bottom: 20px; }
.tpt-wc-form .cart { display: flex; flex-direction: column; gap: 0; }
.tpt-wc-form .cart > .vicode-custom-field-wrapper,
.tpt-wc-form .cart > .wapf,
.tpt-wc-form .cart > .quantity,
.tpt-wc-form .cart > button { width: 100%; }
.tpt-wc-form .cart > .quantity { display: flex; align-items: center; border: 1.5px solid var(--border-lt); border-radius: var(--radius-sm); overflow: hidden; width: auto; margin-top: 12px; }
.tpt-wc-form .cart > button[name="add-to-cart"] { margin-top: 12px; }
/* Quantity + add to cart on same line */
.tpt-wc-form .tpt-cart-row { display: flex; gap: 12px; align-items: center; margin-top: 12px; }
.tpt-wc-form .quantity { display: flex; align-items: center; border: 1.5px solid var(--border-lt); border-radius: var(--radius-sm); overflow: hidden; }
.tpt-wc-form .quantity input[type="number"] { width: 52px; height: 44px; text-align: center; border: none; font-size: 14px; font-weight: 600; font-family: var(--sans); color: var(--text); background: transparent; outline: none; -moz-appearance: textfield; }
.tpt-wc-form .quantity input::-webkit-outer-spin-button, .tpt-wc-form .quantity input::-webkit-inner-spin-button { -webkit-appearance: none; }
.tpt-wc-form .single_add_to_cart_button { flex: 1; min-width: 200px; height: 48px; background: var(--green) !important; color: #fff !important; border: none !important; border-radius: var(--radius-sm) !important; font-size: 13px !important; font-weight: 600 !important; letter-spacing: 0.1em !important; text-transform: uppercase !important; cursor: pointer; font-family: var(--sans) !important; transition: background .25s !important; }
.tpt-wc-form .single_add_to_cart_button:hover { background: #8a9885 !important; }
.tpt-wc-form .variations { width: 100%; margin-bottom: 16px; border: none; }
.tpt-wc-form .variations td, .tpt-wc-form .variations th { padding: 8px 0; border: none; }
.tpt-wc-form .variations .label label { font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text); }
.tpt-wc-form .variations select { padding: 8px 14px; border: 1.5px solid var(--border-lt); border-radius: 100px; font-size: 13px; font-family: var(--sans); color: var(--text-sub); background: transparent; outline: none; cursor: pointer; min-width: 160px; }
.tpt-wc-form .variations select:focus { border-color: var(--green); }
.tpt-wc-form .woocommerce-variation-price .price { font-family: var(--serif); font-size: 28px; font-weight: 700; color: var(--text); }
.tpt-product-rating-widget { margin-bottom: 8px; min-height: 24px; }
