/* ---------------------------------------------------------------------------
   Fiche produit : colonne de droite.
   Maquette retenue par le client : version 2 pour la structure, reassurances
   de la version 3 (intitule + precision + lien contact), titre produit entier,
   bouton d'ajout au panier laisse dans le bleu du theme.
--------------------------------------------------------------------------- */
.achyll-produit__nom {
  font-size: clamp(24px, 2.2vw, 34px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: #111;
}

/* L'action d'achat vient avant le texte de presentation sur la fiche. */
.product__actions .product__description-short { margin: 1.25rem 0 0; }

/* ---- Encadre de compatibilite -------------------------------------------- */
.achyll-produit__compat-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.25rem 0;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  background: #f5f5f7;
  color: #1c1c1e;
  font-size: 0.95rem;
}

.achyll-produit__compat-box svg {
  flex: none;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---- Services ------------------------------------------------------------ */
.achyll-produit__services {
  margin: 1.5rem 0 0;
  padding: 1.25rem 0 0;
  border-top: 1px solid #e8e8ea;
  list-style: none;
}

.achyll-produit__services li {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin: 0 0 1rem;
}

.achyll-produit__services li:last-child { margin-bottom: 0; }

.achyll-produit__services svg {
  flex: none;
  width: 24px;
  height: 24px;
  margin-top: 1px;
  fill: none;
  stroke: #1c1c1e;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.achyll-produit__services strong {
  display: block;
  color: #111;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
}

.achyll-produit__services em {
  display: block;
  margin-top: 1px;
  color: #6e6e73;
  font-size: 0.875rem;
  font-style: normal;
  line-height: 1.4;
}

.achyll-produit__services-contact {
  padding-top: 0.85rem;
  border-top: 1px solid #f0f0f2;
}

.achyll-produit__services-contact a {
  color: #111;
  font-size: 0.95rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.achyll-produit__services-contact a:hover { color: #444; }

@media (max-width: 767.98px) {
  .achyll-produit__services li { gap: 0.7rem; }
  .achyll-produit__services svg { width: 21px; height: 21px; }
}

/* ---- Logos de paiement, a la place du bloc « Partager » ------------------- */
.achyll-produit__paiements {
  align-items: center;
  gap: 0.6rem;
  padding-top: 0.25rem;
}

.achyll-produit__carte {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 30px;
  border: 1px solid #e3e3e6;
  border-radius: 5px;
  background: #fff;
}

.achyll-produit__carte--visa {
  color: #1a1f71;
  font-size: 12px;
  font-weight: 700;
  font-style: italic;
  letter-spacing: .02em;
}

.achyll-produit__carte--mc svg { width: 34px; height: 21px; }

/* ---- Onglets de la fiche produit ------------------------------------------
   Les accordeons deviennent des onglets sur ordinateur (bascule en JS). */
.achyll-onglets {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin: 0 0 1.5rem;
  border-bottom: 1px solid #e6e6e8;
}

.achyll-onglet {
  position: relative;
  padding: 0 0 0.9rem;
  border: 0;
  background: none;
  color: #6e6e73;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: color .15s ease;
}

.achyll-onglet:hover { color: #111; }

.achyll-onglet--actif {
  color: #111;
  font-weight: 700;
}

.achyll-onglet--actif::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  content: "";
  background: #111;
}

.achyll-onglets-actifs.accordion { border: 0; }
.achyll-onglets-actifs .accordion-item { border: 0; }
.achyll-panneau[hidden] { display: none; }
.achyll-panneau .accordion-body { padding-left: 0; padding-right: 0; }

/* Description a gauche, tableau de caracteristiques a droite. */
.achyll-description-colonnes {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: start;
}

.achyll-fiche-tableau .details__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.achyll-fiche-tableau .details__item {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid #eeeef0;
  font-size: 0.925rem;
}

.achyll-fiche-tableau .details__item:last-child { border-bottom: 0; }
.achyll-fiche-tableau .details__title { color: #6e6e73; }
.achyll-fiche-tableau .details__right { color: #111; text-align: right; }

@media (max-width: 991.98px) {
  .achyll-description-colonnes { grid-template-columns: 1fr; gap: 1.5rem; }
}

@media (max-width: 767.98px) {
  .achyll-onglets { display: none; }
}

/* ---- Bas de fiche : reprise de la pleine largeur ---------------------------
   ⚠️ Le theme pose `.product__bottom` en deux colonnes, la droite etant reservee
   au bandeau de reassurance. Ce bandeau a ete retire de la fiche a la demande du
   client : la colonne restait vide mais gardait ses 551 px, ce qui ecrasait la
   description et le tableau sur la moitie gauche. */
.product__bottom-right:empty {
  display: none;
}

.product__bottom:has(> .product__bottom-right:empty) {
  grid-template-columns: minmax(0, 1fr);
}

/* Repli pour les navigateurs sans :has() — la colonne est vide partout. */
@supports not selector(:has(*)) {
  .product__bottom { grid-template-columns: minmax(0, 1fr); }
}

/* Avec toute la largeur, le texte et le tableau respirent. */
.achyll-description-colonnes {
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.85fr);
  gap: 3.5rem;
}

.achyll-fiche-tableau .details__item {
  align-items: baseline;
  padding: 0.95rem 0;
}

.achyll-fiche-tableau .details__left { flex: 0 0 auto; }
.achyll-fiche-tableau .details__right { flex: 1 1 auto; }

/* ⚠️ Correction du correctif : `:empty` ne matche pas `.product__bottom-right`,
   car le gabarit y laisse des blancs d'indentation — `:empty` exige l'absence
   de TOUT noeud, y compris texte. On teste donc l'absence d'enfant ELEMENT. */
.product__bottom-right:not(:has(> *)) {
  display: none;
}

.product__bottom:not(:has(.product__bottom-right > *)) {
  grid-template-columns: minmax(0, 1fr);
}

/* Toute la largeur retrouvee : le texte et le tableau reprennent leurs aises. */
.achyll-description-colonnes {
  grid-template-columns: minmax(0, 1.7fr) minmax(360px, 0.8fr);
  gap: 4rem;
}

.achyll-fiche-tableau { max-width: 460px; }

@media (max-width: 991.98px) {
  .achyll-description-colonnes { grid-template-columns: 1fr; gap: 1.5rem; }
  .achyll-fiche-tableau { max-width: none; }
}

/* Le lien de contact prend la place liberee par « Paiement sécurisé », et les
   marques de paiement ferment la liste. Reordonne en CSS, sans toucher au
   gabarit : l'ordre du balisage reste celui de la lecture a voix haute. */
.achyll-produit__services {
  display: flex;
  flex-direction: column;
}

.achyll-produit__services > li { order: 1; }
.achyll-produit__services-contact { order: 2; }
.achyll-produit__paiements { order: 3; border-top: 0; padding-top: 0.25rem; }

/* Bouton « Donnez votre avis », remonte depuis la colonne d'achat vers l'onglet. */
.achyll-avis-action {
  margin: 0 0 1.25rem;
}

.achyll-avis-action .post-product-comment {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 1.4rem;
  border: 1px solid #111;
  border-radius: 99px;
  background: #fff;
  color: #111;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.achyll-avis-action .post-product-comment:hover {
  background: #111;
  color: #fff;
}

/* ---- Moyens de paiement : pastilles dans un panneau blanc -----------------
   Mise en page reprise de la reference client (macoque) : chaque marque dans sa
   propre pastille arrondie, a sa couleur, le tout dans un panneau blanc. */
.achyll-produit__cartes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .06);
}

.achyll-produit__carte {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 36px;
  border-radius: 7px;
  background: #fff;
}

.achyll-produit__carte svg { width: 34px; height: auto; }

/* Visa : marque blanche sur son bleu nuit. */
.achyll-produit__carte--visa { background: #1a1f71; }

/* Mastercard : fond blanc, leger liseret pour le detacher du panneau. */
.achyll-produit__carte--mc {
  background: #fff;
  border: 1px solid #ececef;
}

.achyll-produit__carte--mc svg { width: 32px; }

@media (max-width: 575px) {
  .achyll-produit__carte { width: 46px; height: 32px; }
}

/* Pastilles de moyens de paiement : fond blanc et liseret fin. */
.achyll-produit__carte { background: #fff; border: 1px solid #ececef; }
.achyll-produit__carte--visa,
.achyll-produit__carte--mc { background: #fff; }
.achyll-produit__carte img { width: 40px; height: 28px; object-fit: contain; }

/* ⚠️ Correction de spécificité : `.achyll-produit__services > li` vaut (0,2,1),
   alors que `.achyll-produit__services-contact` seul ne vaut que (0,1,0) — la
   règle générale l'emportait et tout restait en order:1. On qualifie donc les
   deux exceptions par le même chemin. */
.achyll-produit__services > li.achyll-produit__services-contact { order: 2; }
.achyll-produit__services > li.achyll-produit__paiements { order: 3; }

/* Le filet separe maintenant le lien de contact des logos de paiement :
   il passe donc du contact (qui l'a porte tant qu'il fermait la liste) au bloc
   des logos, desormais dernier. */
.achyll-produit__services > li.achyll-produit__services-contact {
  padding-top: 0;
  border-top: 0;
}

.achyll-produit__services > li.achyll-produit__paiements {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #ececef;
}

/* ---- Liens et focus dans les onglets de la fiche --------------------------
   Les liens des panneaux heritaient du bleu Bootstrap, seul element colore de
   la page. On les aligne sur le reste du site : noir souligne. */
.achyll-panneau a,
.achyll-panneau .rich-text a {
  color: #111;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.achyll-panneau a:hover,
.achyll-panneau .rich-text a:hover {
  color: #444;
  text-decoration-thickness: 2px;
}

/* Le clic laissait un cadre bleu epais autour de l'onglet. On garde un repere
   pour la navigation au clavier — c'est une aide d'accessibilite, pas un
   defaut — mais sobre, et seulement au clavier. */
.achyll-onglet:focus {
  outline: none;
}

.achyll-onglet:focus-visible {
  outline: 2px solid #111;
  outline-offset: 3px;
  border-radius: 3px;
}

/* ---- Onglet « Livraison et retours » (01/11) -----------------------------
   Deux colonnes cote a cote au-dessus de 768 px, empilees en dessous.
   Gabarit : catalog/_partials/achyll-livraison-retours.tpl */
.achyll-lr {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.5rem;
  max-width: 1040px;
  color: #333;
  font-size: 0.95rem;
  line-height: 1.6;
}

.achyll-lr__col > p { margin: 0 0 0.85rem; }

.achyll-lr .achyll-lr__titre {
  margin: 0 0 0.6rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: #111;
}

.achyll-lr__pays {
  width: 100%;
  margin: 0.25rem 0 1rem;
  border-collapse: collapse;
}

.achyll-lr__pays th,
.achyll-lr__pays td {
  padding: 0.45rem 0;
  border-bottom: 1px solid #ececef;
  font-size: 0.9rem;
  text-align: left;
}

.achyll-lr__pays th { font-weight: 500; color: #111; }
.achyll-lr__pays td { color: #6e6e73; text-align: right; }

.achyll-lr__etapes {
  margin: 0.25rem 0 1rem;
  padding: 0;
  list-style: none;
  counter-reset: lr;
}

.achyll-lr__etapes li {
  position: relative;
  padding: 0 0 0.75rem 2.25rem;
  counter-increment: lr;
}

.achyll-lr__etapes li::before {
  content: counter(lr);
  position: absolute;
  left: 0;
  top: 0.1rem;
  width: 1.5rem;
  height: 1.5rem;
  border: 1px solid #111;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.4rem;
  text-align: center;
  color: #111;
}

.achyll-lr__col > .achyll-lr__note {
  padding: 0.75rem 0.9rem;
  border-radius: 8px;
  background: #f5f5f7;
  font-size: 0.875rem;
  color: #444;
}

.achyll-lr__lien { font-weight: 500; }

@media (max-width: 767px) {
  .achyll-lr { grid-template-columns: 1fr; gap: 1.75rem; }
}

/* Le style .rich-text des tableaux pose un cadre sur chaque cellule. */
.achyll-lr table.achyll-lr__pays,
.achyll-lr table.achyll-lr__pays tr,
.achyll-lr table.achyll-lr__pays th,
.achyll-lr table.achyll-lr__pays td {
  border: 0;
  background: none;
}

.achyll-lr table.achyll-lr__pays th,
.achyll-lr table.achyll-lr__pays td {
  padding: 0.45rem 0;
  border-bottom: 1px solid #ececef;
}

/* ---- Services, version compacte orientee vente (16/11) ---------------------
   Le bloc est colle sous le bouton d'ajout au panier : deux engagements sur une
   ligne chacun (livraison en dates estimees, retours), un pied avec les marques
   de carte, et le contact reduit a un lien sous l'encadre. Remplace la version
   « carte » du matin. Surcharge les regles anterieures, toujours plus haut. */
.achyll-produit__services {
  margin: 1rem 0 0;
  padding: 0;
  border: 1px solid #e8e8ea;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

.achyll-produit__services > li,
.achyll-produit__services > li.achyll-produit__paiements {
  align-items: center;
  gap: 0.7rem;
  margin: 0;
  padding: 0.65rem 0.9rem;
  border-top: 1px solid #f0f0f2;
}

.achyll-produit__services > li:first-child { border-top: 0; }

.achyll-produit__services > li > svg {
  width: 21px;
  height: 21px;
  margin: 0;
}

/* Intitule et precision sur la meme ligne ; la precision passe dessous si la
   place manque (mobile etroit). */
.achyll-produit__services > li > span:not([class]) {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 0.5rem;
  min-width: 0;
}

.achyll-produit__services strong { font-size: 0.9rem; }
.achyll-produit__services em { margin-top: 0; }
.achyll-produit__services em b { color: #111; font-weight: 600; }

.achyll-produit__services > li.achyll-produit__paiements {
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.4rem 0.9rem;
  padding: 0.55rem 0.9rem;
  background: #fafafb;
}

.achyll-produit__paiements-titre {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #6e6e73;
  font-size: 0.8125rem;
  line-height: 1.3;
}

.achyll-produit__services .achyll-produit__paiements-titre svg {
  width: 15px;
  height: 15px;
  margin: 0;
  stroke: #6e6e73;
  stroke-width: 1.6;
}

.achyll-produit__marques {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.achyll-produit__services .achyll-produit__carte {
  width: 40px;
  height: 26px;
  border: 1px solid #e3e3e6;
  border-radius: 6px;
  background: #fff;
}

.achyll-produit__services .achyll-produit__carte--visa { font-size: 0.7rem; }

/* Le trait des pictogrammes ne doit pas cerner les disques Mastercard. */
.achyll-produit__services .achyll-produit__carte svg {
  width: 27px;
  height: auto;
  margin: 0;
  stroke: none;
}

.achyll-produit__contact {
  margin: 0.7rem 0 0;
  color: #6e6e73;
  font-size: 0.8125rem;
}

.achyll-produit__contact a {
  color: #111;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.achyll-produit__contact a:hover { color: #444; }
