/* =====================================================================
   FICHE PRODUIT — Éditions De La Lune — architecture "maquette 6c"
   Fichier réel : wp-content/themes/dll-theme-v42/assets/css/dll-fiche-produit.css
   Chargé uniquement sur is_product(), après dll-fiche-livre.css.

   Cible exclusivement les vraies classes du template
   woocommerce/single-product.php (préfixe .dll-sp-*). N'utilise QUE les
   tokens couleur déjà déclarés par le thème (var(--dll-vn), --dll-do,
   --dll-vn-deep, --dll-do-light, --dll-iv, --dll-iv-deep, --dll-bv) —
   aucune couleur nouvelle, conformément à la charte du site. Seuls
   l'architecture, les espacements et la hiérarchie visuelle changent.
   ===================================================================== */

/* ── 1. ARCHITECTURE : grid 2 colonnes ────────────────────────────── */
.dll-sp-wrap {
  grid-template-columns: 280px minmax(0, 1fr) !important;
  grid-template-rows: auto !important;
  gap: 2.5rem 3.5rem !important;
}

.dll-sp-col--editorial,
.dll-sp-col--sidebar {
  display: contents;
}

.dll-sp-col--cover {
  grid-column: 1;
  grid-row: 1 / span 8;
  position: sticky;
  top: 1.75rem;
  align-self: start;
}

.dll-sp-badge-coll     { grid-column: 2; order: 1; }
.dll-sp-title          { grid-column: 2; order: 2; margin-top: -30px; }
.dll-sp-auteur         { grid-column: 2; order: 3; margin-top: -30px; margin-bottom: .25rem; }
.dll-sp-sb--commander  { grid-column: 2; order: 4; }
.dll-sp-resume         { grid-column: 2; order: 5; }
.dll-sp-link-editorial { grid-column: 2; order: 6; }
.dll-sp-sb--infos      { grid-column: 2; order: 7; }
.dll-sp-desc-col       { grid-column: 2; order: 8; }

/* ── 2. BLOC COMMANDER — hiérarchie interne ───────────────────────── */
.dll-sp-sb--commander {
  background: var(--dll-iv);
  border: 1px solid var(--dll-iv-deep);
  border-radius: 6px;
  padding: 1.6rem 1.85rem 1.75rem;
  margin: .25rem 0 .5rem;
}
.dll-sp-dispo-wrap { margin-bottom: 1.35rem; }
.dll-sp-sb__formats-label { margin-bottom: .65rem; }
.dll-sp-sb__formats { gap: .85rem; margin-bottom: 1.4rem; }
.dll-sp-fmt { padding-top: .8rem; padding-bottom: .8rem; }
.dll-sp-prix { margin: 0 0 1.6rem; }
.dll-sp-prix .woocommerce-Price-amount.amount { font-size: 1.95rem; }
.dll-sp-cart-zone { margin-top: .35rem; }
.dll-sp-btn-audio { margin-top: .85rem; }
.dll-sp-a-paraitre { margin-top: .35rem; }

/* ── 3. TABLEAU INFORMATIONS — élégance et respiration ────────────── */
.dll-sp-sb--infos { margin-top: .25rem; }
.dll-sp-sb__row {
  padding-top: .7rem;
  padding-bottom: .7rem;
}
.dll-sp-sb__lbl {
  letter-spacing: .08em;
}

/* ── 4. RÉSUMÉ COURT ───────────────────────────────────────────────── */
.dll-sp-resume {
  margin: .25rem 0;
  padding: .85rem 0;
  border-top: 1px solid var(--dll-iv-deep);
  border-bottom: 1px solid var(--dll-iv-deep);
}

/* ── 5. DESCRIPTION LONGUE — séparation nette avec ce qui précède ─── */
.dll-sp-desc-col {
  margin-top: .75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--dll-iv-deep);
}

.dll-sp-desc-col__more {
  margin: 1.1rem 0 0;
}
.dll-sp-desc-col__more-link {
  color: var(--dll-bv);
  font-size: .85rem;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color .15s ease, color .15s ease;
}
.dll-sp-desc-col__more-link:hover {
  color: var(--dll-do);
  border-bottom-color: var(--dll-do);
}
.dll-sp-link-editorial {
  margin-top: .4rem;
  margin-bottom: .1rem;
}

/* ── 6. COLONNE GAUCHE — couverture + réassurance ─────────────────── */
.dll-sp-cover {
  box-shadow: 0 10px 28px rgba(26, 38, 32, .22);
  border-radius: 3px;
  overflow: hidden;
  transition: box-shadow .2s ease;
}
.dll-sp-cover:hover { box-shadow: 0 14px 36px rgba(26, 38, 32, .28); }

.dll-sp-trust {
  border-radius: 3px;
  overflow: hidden;
  margin-top: 1.75rem;
}
.dll-sp-trust__item {
  padding-top: .85rem;
  padding-bottom: .85rem;
  transition: background-color .15s ease;
}
.dll-sp-trust__item:hover { background-color: rgba(184, 149, 42, .05); }

/* ── 7. FINITIONS déjà en ligne (conservées) ──────────────────────── */
.dll-sp-fmt { transition: transform .15s ease, box-shadow .15s ease; }
.dll-sp-fmt:not(.dll-sp-fmt--disabled):hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(184, 149, 42, .25);
}
.dll-sp-sb { border-radius: 3px; overflow: hidden; }
.dll-sp-reco-card,
.dll-sp-reco__card { transition: transform .15s ease, box-shadow .15s ease; }
.dll-sp-reco-card:hover,
.dll-sp-reco__card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(45, 59, 53, .10);
}

/* ── 8. STATUT "À paraître" — convention réelle du site ───────────── */
.dll-sp-dispo-badge--paraitre {
  color: #c17a00;
  background: #fff3e0;
  border-radius: 20px;
}
.dll-sp-a-paraitre {
  border-left: 3px solid var(--dll-do);
  padding-left: 12px;
}

/* ── 9. RESPONSIVE — mêmes points de rupture que le reste du thème ── */
@media (max-width: 900px) {
  .dll-sp-wrap { grid-template-columns: 220px minmax(0, 1fr) !important; gap: 2.25rem 2rem !important; }
}
@media (max-width: 640px) {
  .dll-sp-wrap { grid-template-columns: 1fr !important; }
  .dll-sp-col--cover { position: static; grid-row: auto; max-width: 260px; margin: 0 auto; }
  .dll-sp-sb--commander { padding: 1.25rem 1.35rem 1.4rem; }
}


/* — Ajout du 24/07/2026 : produit variable Papier/Numerique — */
/* On masque le select natif WooCommerce genere pour les produits variables :
   nos cartes .dll-sp-fmt pilotent ce select en JS, la logique AJAX native
   (prix, disponibilite, ajout au panier) continue de fonctionner normalement. */
.dll-single-product .variations_form table.variations {
  display: none !important;
}
.dll-single-product .variations_form .reset_variations {
  display: none !important;
}
.dll-single-product .woocommerce-variation-price {
  font-family: var(--dll-serif, inherit);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dll-vn-deep, inherit);
  margin: 0 0 .75rem;
}
.dll-single-product .woocommerce-variation-availability {
  margin: 0 0 .75rem;
}
.dll-single-product .single_variation_wrap {
  margin-top: .5rem;
}


/* ── Correctif : collision avec la règle générique .cart (icône panier tête) ──
   La règle .cart (dll-main.css) applique un style de bouton icône circulaire
   36x36px à TOUT élément portant la classe "cart", ce qui inclut par erreur
   le formulaire natif WooCommerce <form class="variations_form cart">.
   Résultat : le formulaire d'achat est écrasé à 36px de haut et son contenu
   (prix, quantité, bouton) déborde visuellement par-dessus le bloc précommande.
   On neutralise ici les propriétés indésirables pour ce contexte précis. */
.dll-sp-cart-zone form.cart {
	width: auto !important;
	height: auto !important;
	min-height: 0 !important;
	border-radius: 0 !important;
	border: none !important;
	justify-content: flex-start !important;
	align-items: stretch !important;
	color: inherit !important;
	cursor: auto !important;
	transition: none !important;
	position: static !important;
	flex-shrink: 1 !important;
	margin-left: 0 !important;
}
