/* =========================================================================
   FICHE DE PRODUIT — design/PageFicheProduit.dc.html
   Bandes, titres et cartes viennent de fiche-production.css. Mobile
   d'abord, aux paliers du rail (768, 1280).
   ========================================================================= */

/* --- La tête : photo à gauche (5 colonnes), achat à droite ---------------- */
.fiche-produit__rangee {
  display: flex;
  flex-wrap: wrap;
  gap: var(--e-8) var(--gout);
  align-items: flex-start;
}
.fiche-produit__visuel { flex: 0 0 auto; width: 100%; }
@media (min-width: 768px)  { .fiche-produit__visuel { width: 324px; } }
@media (min-width: 1280px) { .fiche-produit__visuel { width: 468px; } }

.fiche-produit__achat {
  flex: 1 1 340px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.fiche-produit__surtitre {
  margin: 0;
  font-size: var(--t-label);
  letter-spacing: var(--a-label);
  text-transform: uppercase;
  font-weight: var(--g-fort);
  color: var(--c-ink-3);
}
.fiche-produit__titre {
  margin: var(--e-3) 0 0;
  font-family: var(--f-titre);
  font-size: var(--t-h1);
  line-height: var(--l-titre);
  letter-spacing: var(--a-titre);
  font-weight: var(--g-normal);
  color: var(--c-ink);
}
.fiche-produit__chapeau { margin-top: var(--e-4); }

.fiche-produit__prix {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0 var(--e-2);
  margin: var(--e-6) 0 0;
}
.fiche-produit__montant {
  font-family: var(--f-titre);
  font-size: var(--t-h2);
  line-height: var(--l-titre);
  font-variant-numeric: tabular-nums;
}
.fiche-produit__taxes { font-size: var(--t-small); color: var(--c-ink-3); }
.fiche-produit__format {
  margin: var(--e-1) 0 0;
  font-size: var(--t-small);
  line-height: var(--l-dense);
  color: var(--c-ink-2);
}

/* Le bloc d'achat est plafonné à 320 px (R-08) : en pleine colonne, le
   bouton serait une bande. */
.fiche-produit__bouton { width: 100%; max-width: 320px; margin-top: var(--e-6); }
.fiche-produit__bouton form { margin: 0; }
.fiche-produit__bouton form .mb-3 { margin-bottom: 0 !important; }
.fiche-produit__bouton .bouton { width: 100%; }
/* Le sélecteur de Commerce : étiquette au-dessus, champ pleine largeur,
   un espace avant le bouton. Il a toujours une valeur choisie : la mention
   « (obligatoire) » du site n'y apporte rien. */
.fiche-produit__bouton .attribute-widgets .js-form-item { margin-bottom: var(--e-4) !important; }
.fiche-produit__bouton label { display: block; margin-bottom: var(--e-2); font-size: var(--t-small); font-weight: var(--g-fort); }
.fiche-produit__bouton .champ-obligatoire { display: none; }
.fiche-produit__bouton .form-select { width: 100%; }

/* Les couleurs en pastilles : des boutons radio de Commerce (« attribut
   rendu », gabarit commerce-product-attribute-value--couleur--add-to-cart).
   Commerce cache le bouton par display: none, ce qui le retire aussi de la
   tabulation ; ici il reste en place, transparent, par-dessus sa pastille :
   le clic, le clavier et le lecteur d'écran passent par lui. Cible de
   44 px : la pastille de 28 px et sa marge. */
.fiche-produit__bouton .product--rendered-attribute legend {
  float: none;
  margin-bottom: var(--e-1);
  font-size: var(--t-small);
  line-height: var(--l-dense);
  font-weight: var(--g-fort);
}
.fiche-produit__bouton .product--rendered-attribute .radio { display: flex; flex-wrap: wrap; margin-left: calc(-1 * var(--e-2)); }
.fiche-produit__bouton .product--rendered-attribute .form-check { position: relative; min-height: 0; margin: 0 !important; padding: 0; }
.fiche-produit__bouton .product--rendered-attribute .form-check-input {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.fiche-produit__bouton .product--rendered-attribute .form-check-label { margin: 0; padding: var(--e-2); line-height: 0; font-weight: var(--g-normal); }
.pastille {
  display: block;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--teinte);
  box-shadow: inset 0 0 0 1px var(--c-voile-leger);
}
/* Le liseré intérieur garde un beige visible sur le papier ; l'anneau
   d'encre marque le choix. */
.form-check-input:hover + .form-check-label .pastille { box-shadow: inset 0 0 0 1px var(--c-voile-leger), 0 0 0 2px var(--c-paper), 0 0 0 3px var(--c-line-fort); }
.form-check-input:checked + .form-check-label .pastille { box-shadow: inset 0 0 0 1px var(--c-voile-leger), 0 0 0 2px var(--c-paper), 0 0 0 4px var(--c-ink); }
.form-check-input:focus-visible + .form-check-label .pastille { outline: 2px solid var(--c-focus); outline-offset: 6px; }
.pastille-nom { display: block; line-height: var(--l-dense); font-size: var(--t-small); }

.fiche-produit__dispo {
  margin: var(--e-2) 0 0;
  font-size: var(--t-small);
  line-height: var(--l-dense);
  color: var(--c-ink-3);
}

/* Expédition et origine : sous un filet, comme l'identité d'une parution. */
.fiche-produit__bloc {
  width: 100%;
  max-width: var(--l-max-texte);
  margin-top: var(--e-8);
  padding-top: var(--e-4);
  border-top: 1px solid var(--c-line);
}
.fiche-produit__bloc .fiche-etiquette { margin-bottom: var(--e-3); }
.fiche-produit__expedition {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--e-2);
  font-size: var(--t-small);
  line-height: var(--l-dense);
  color: var(--c-ink-2);
}
.fiche-produit__expedition li { display: flex; gap: var(--e-2); }
.fiche-produit__expedition .bi { flex: 0 0 auto; color: var(--c-vert-700); }
.fiche-produit__lien {
  display: inline-flex;
  align-items: center;
  min-height: var(--cible-min);
  font-size: var(--t-small);
  color: var(--c-vert-700);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.fiche-produit__lien:hover { color: var(--c-vert-900); }

.fiche-produit__description { max-width: var(--l-max-texte); }
