/* ==========================================================================
   Aurone Configurator - front-office
   Toutes les règles sont préfixées .ac- et scopées sous .aurone-configurator
   afin de ne jamais entrer en conflit avec le thème.
   ========================================================================== */

.aurone-configurator,
.ac-sticky {
  --ac-accent: #e8117f;
  --ac-surface: #0e1b33;
  --ac-card: #132444;
  --ac-text: #ffffff;
  --ac-radius: 10px;

  --ac-muted: color-mix(in srgb, var(--ac-text) 62%, transparent);
  --ac-line: color-mix(in srgb, var(--ac-text) 16%, transparent);
  --ac-line-strong: color-mix(in srgb, var(--ac-text) 28%, transparent);
  --ac-selected-bg: color-mix(in srgb, var(--ac-accent) 14%, var(--ac-card));
  --ac-panel: #0e1b33;
  /* Bordures des cartes et des champs. Repli sur les couleurs dérivées du
     texte, remplacées par la configuration du module le cas échéant. */
  --ac-card-border: var(--ac-line);
  --ac-card-border-strong: var(--ac-line-strong);
  --ac-card-border-hover: var(--ac-line-strong);
  /* Récapitulatif et totaux : repli sur le texte et le texte atténué */
  --ac-recap-text: var(--ac-text);
  --ac-recap-muted: var(--ac-muted);
  --ac-total-label: var(--ac-muted);
  --ac-total-price: var(--ac-text);
  --ac-cta-bg: #ffffff;
  --ac-cta-text: #10203c;
  --ac-gap: 14px;
}

.aurone-configurator {
  /* Police vide = celle du thème */
  font-family: var(--ac-font-family, inherit);
  position: relative;
  display: block;
  width: 100%;
  margin: 24px 0 0;
  /* Fond et marge intérieure pilotés depuis la configuration du module.
     Un fond vide laisse simplement voir celui du thème. */
  padding: var(--ac-pad, 0);
  background: var(--ac-surface);
  /* Arrondi propre au bloc : celui des cartes et boutons reste --ac-radius */
  border-radius: var(--ac-block-radius, var(--ac-radius));
  color: var(--ac-text);
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

/* Thème clair : on ré-évalue les dérivées sur un fond clair */
.aurone-configurator.ac-theme--light,
.ac-sticky.ac-theme--light {
  --ac-muted: color-mix(in srgb, var(--ac-text) 65%, transparent);
  --ac-line: color-mix(in srgb, var(--ac-text) 14%, transparent);
  --ac-line-strong: color-mix(in srgb, var(--ac-text) 24%, transparent);
}

/* Repli pour les navigateurs sans color-mix() */
@supports not (color: color-mix(in srgb, red 50%, blue)) {
  .aurone-configurator,
  .ac-sticky {
    --ac-muted: rgba(255, 255, 255, 0.62);
    --ac-line: rgba(255, 255, 255, 0.16);
    --ac-line-strong: rgba(255, 255, 255, 0.28);
    --ac-selected-bg: rgba(232, 17, 127, 0.14);
  }
}

.aurone-configurator *,
.aurone-configurator *::before,
.aurone-configurator *::after,
.ac-sticky,
.ac-sticky *,
.ac-sticky *::before,
.ac-sticky *::after {
  box-sizing: border-box;
}

.aurone-configurator :focus-visible,
.ac-sticky :focus-visible {
  outline: 1px solid var(--ac-accent);
  outline-offset: -1px;
  border-radius: 5px;
}

/* Masquage des blocs natifs du thème remplacés par le configurateur */
.ac-hidden-by-configurator {
  display: none !important;
}

/* --------------------------------------------------------------------------
   En-tête : sur-titre et accroche
   -------------------------------------------------------------------------- */

.ac-header {
  margin: 0 0 18px;
}

.ac-header__eyebrow {
  margin: 0 0 6px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--ac-muted);
}

.ac-header__subtitle {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--ac-accent);
}

.ac-header:empty {
  display: none;
}

/* --------------------------------------------------------------------------
   Barre de caractéristiques
   -------------------------------------------------------------------------- */

.ac-specbar {
  display: flex;
  flex-wrap: wrap;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  background: var(--ac-card);
  border: 1px solid var(--ac-card-border);
  border-radius: var(--ac-radius);
  overflow: hidden;
}

.ac-specbar__item {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 78px;
  padding: 12px 8px;
  border-left: 1px solid var(--ac-card-border);
}

.ac-specbar__item:first-child {
  border-left: 0;
}

.ac-specbar__item[hidden] {
  display: none;
}

.ac-specbar__value {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}

.ac-specbar__label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ac-muted);
}

/* --------------------------------------------------------------------------
   Étapes
   -------------------------------------------------------------------------- */

.ac-steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ac-step {
  margin: 0;
  padding: 0 0 20px;
  /* Le filet sépare deux étapes : il se place donc sous l'étape entière,
     et non sous son seul en-tête. */
  border: 0;
  border-bottom: var(--ac-border-width, 1px) solid var(--ac-border-color, var(--ac-card-border));
}

.ac-step:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.ac-step__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.ac-step__title {
  margin: 0;
  font-size: var(--ac-step-label-size, 12px);
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ac-step-label, var(--ac-muted));
}

.ac-step__num {
  color: inherit;
}

.ac-step__value {
  font-size: var(--ac-step-value-size, 13px);
  font-weight: 600;
  text-align: right;
  color: var(--ac-step-value, var(--ac-accent));
}

.ac-step__row {
  display: flex;
  align-items: stretch;
  gap: 10px;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   Groupes d'une étape
   -------------------------------------------------------------------------- */

.ac-group + .ac-group {
  margin-top: 12px;
}

.ac-group__title {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ac-muted);
}

/* --------------------------------------------------------------------------
   Options : grille de cartes
   -------------------------------------------------------------------------- */

.ac-options--grid {
  display: grid;
  gap: var(--ac-gap);
  /* Classes explicites : une variable CSS en argument de repeat() n'est pas
     interprétée de façon fiable par tous les moteurs de rendu. */
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ac-options--cols-1 {
  grid-template-columns: minmax(0, 1fr);
}

.ac-options--cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ac-options--cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ac-options--cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ac-options--list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ac-option {
  position: relative;
  display: block;
  margin: 0;
  cursor: pointer;
}

.ac-option__input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* --- Carte --- */

.ac-option__card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: 100%;
  padding: 12px 14px 13px;
  background: var(--ac-card);
  border: 1px solid var(--ac-card-border);
  border-radius: var(--ac-radius);
  transition: border-color 0.15s ease, background-color 0.15s ease, transform 0.15s ease;
}

.ac-option:hover .ac-option__card {
  border-color: var(--ac-card-border-hover);
}

.ac-option__input:checked ~ .ac-option__card {
  background: var(--ac-selected-bg);
  border-color: var(--ac-accent);
}

.ac-option__input:focus-visible ~ .ac-option__card {
  outline: 2px solid var(--ac-accent);
  outline-offset: 2px;
}

.ac-option__header {
  display: flex;
  align-items: center;
  gap: 9px;
}

.ac-option__label {
  font-size: var(--ac-option-label-size, 14px);
  font-weight: 700;
  color: var(--ac-text);
}

.ac-option__input:checked ~ .ac-option__card .ac-option__label {
  color: var(--ac-accent);
}

.ac-option__badge {
  padding: 2px 7px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ac-accent);
  border: 1px solid var(--ac-accent);
  border-radius: 999px;
}

.ac-option__desc {
  font-size: var(--ac-option-desc-size, 12px);
  line-height: 1.42;
  color: var(--ac-muted);
}

.ac-option__desc p {
  margin: 0 0 4px;
}

.ac-option__desc p:last-child {
  margin-bottom: 0;
}

.ac-option__foot {
  margin-top: auto;
  padding-top: 4px;
  font-size: var(--ac-option-price-size, 13px);
  font-weight: 700;
  color: var(--ac-text);
}

.ac-option__foot:empty {
  display: none;
}

/* --- Pastille couleur / miniature --- */

.ac-option__swatch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  overflow: hidden;
  background: var(--ac-line);
  border: 1px solid var(--ac-card-border-strong);
  border-radius: 6px;
}

.ac-option__swatch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ac-option__input:checked ~ .ac-option__card .ac-option__swatch {
  border-color: var(--ac-accent);
}

/* --- Option indisponible --- */

.ac-option.is-disabled {
  cursor: not-allowed;
}

.ac-option.is-disabled .ac-option__card {
  opacity: 0.4;
}

.ac-option.is-disabled .ac-option__foot::after {
  content: attr(data-unavailable);
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: var(--ac-muted);
}

/* --------------------------------------------------------------------------
   Option : case à cocher unique (groupe à deux valeurs)
   -------------------------------------------------------------------------- */

.ac-option--toggle {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  gap: 12px;
  padding: 12px 14px;
  background: var(--ac-card);
  border: 1px solid var(--ac-card-border);
  border-radius: var(--ac-radius);
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.ac-option--toggle:hover {
  border-color: var(--ac-card-border-hover);
}

.ac-option--toggle:has(.ac-option__input:checked) {
  background: var(--ac-selected-bg);
  border-color: var(--ac-accent);
}

.ac-option__box {
  position: relative;
  width: 17px;
  height: 17px;
  margin-top: 1px;
  background: transparent;
  border: 1px solid var(--ac-card-border-strong);
  border-radius: 4px;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.ac-option__input:checked ~ .ac-option__box {
  background: var(--ac-accent);
  border-color: var(--ac-accent);
}

.ac-option__input:checked ~ .ac-option__box::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 5.5px;
  width: 4px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(43deg);
}

.ac-option__body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.ac-option__price {
  font-size: var(--ac-option-price-size, 13px);
  font-weight: 700;
  white-space: nowrap;
  color: var(--ac-text);
}

/* --------------------------------------------------------------------------
   Alignement du texte des options
   -------------------------------------------------------------------------- */

/* « À gauche » déclare explicitement ses règles plutôt que de compter sur
   l'absence de style : sans cela, un thème qui centre le texte sur un
   conteneur parent transmet son alignement par héritage, et le réglage
   n'a aucun effet. */
.ac-align--left .ac-step__head {
  justify-content: space-between;
}

.ac-align--left .ac-step__title,
.ac-align--left .ac-group__title,
.ac-align--left .ac-option__card,
.ac-align--left .ac-option__body,
.ac-align--left .ac-option__foot {
  text-align: left;
}

.ac-align--left .ac-step__value {
  text-align: right;
}

.ac-align--left .ac-option__header {
  justify-content: flex-start;
}

.ac-align--left .ac-option--toggle .ac-option__body {
  align-items: flex-start;
}

/* En-tête de l'étape : titre et rappel de sélection.
   Par défaut ils occupent les deux extrémités de la ligne ; centrés ou alignés
   à droite, ils se regroupent du côté demandé. */
.ac-align--center .ac-step__head {
  justify-content: center;
}

.ac-align--right .ac-step__head {
  justify-content: flex-end;
}

.ac-align--center .ac-step__value,
.ac-align--right .ac-step__value {
  text-align: inherit;
}

.ac-align--center .ac-step__title,
.ac-align--center .ac-group__title {
  text-align: center;
}

.ac-align--right .ac-step__title,
.ac-align--right .ac-group__title {
  text-align: right;
}

.ac-align--center .ac-option__card,
.ac-align--center .ac-option__body {
  text-align: center;
}

.ac-align--center .ac-option__header {
  justify-content: center;
}

.ac-align--center .ac-option__foot {
  text-align: center;
}

.ac-align--center .ac-option--toggle .ac-option__body {
  align-items: center;
}

.ac-align--right .ac-option__card,
.ac-align--right .ac-option__body {
  text-align: right;
}

.ac-align--right .ac-option__header {
  justify-content: flex-end;
}

.ac-align--right .ac-option__foot {
  text-align: right;
}

.ac-align--right .ac-option--toggle .ac-option__body {
  align-items: flex-end;
}

/* --------------------------------------------------------------------------
   Liste déroulante + aide
   -------------------------------------------------------------------------- */

.ac-select {
  position: relative;
  flex: 1 1 260px;
}

.ac-select::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 14px;
  width: 8px;
  height: 8px;
  margin-top: -6px;
  border: solid var(--ac-text);
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
  pointer-events: none;
}

.ac-select__field {
  width: 100%;
  height: 44px;
  padding: 0 38px 0 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ac-text);
  background: var(--ac-card);
  border: 1px solid var(--ac-card-border);
  border-radius: var(--ac-radius);
  appearance: none;
  cursor: pointer;
}

.ac-select__field option {
  color: #10203c;
  background: #fff;
}

.ac-help {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 16px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ac-accent);
  background: transparent;
  border: 1px solid var(--ac-accent);
  border-radius: var(--ac-radius);
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.ac-help:hover {
  background: var(--ac-selected-bg);
}

.ac-help__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid currentColor;
  border-radius: 50%;
}

/* --------------------------------------------------------------------------
   Bouton d'aide et infobulle
   -------------------------------------------------------------------------- */

.ac-help-wrap {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
}

.ac-step .ac-help-wrap {
  margin-top: 10px;
}

.ac-step__row .ac-help-wrap {
  margin-top: 0;
}

a.ac-help {
  text-decoration: none;
}

.ac-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  z-index: 30;
  width: max-content;
  max-width: min(320px, 78vw);
  padding: 12px 14px;
  font-size: 12.5px;
  font-weight: 400;
  line-height: 1.5;
  text-align: left;
  color: var(--ac-text);
  background: var(--ac-panel);
  border: 1px solid var(--ac-card-border);
  border-radius: var(--ac-radius);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.ac-tooltip[hidden] {
  display: none;
}

.ac-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 22px;
  border: 7px solid transparent;
  border-top-color: var(--ac-panel);
}

.ac-tooltip p {
  margin: 0 0 6px;
}

.ac-tooltip p:last-child {
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Récapitulatif
   -------------------------------------------------------------------------- */

.ac-recap {
  margin-top: 20px;
  background: var(--ac-card);
  border: 1px solid var(--ac-card-border);
  border-radius: var(--ac-radius);
}

.ac-recap__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  font-size: var(--ac-recap-size, 13px);
  font-weight: 700;
  color: var(--ac-recap-text);
  cursor: pointer;
  list-style: none;
}

.ac-recap__summary::-webkit-details-marker {
  display: none;
}

.ac-recap__chevron {
  width: 8px;
  height: 8px;
  margin-top: -3px;
  border: solid var(--ac-text);
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.ac-recap[open] .ac-recap__chevron {
  margin-top: 3px;
  transform: rotate(-135deg);
}

.ac-recap__list {
  margin: 0;
  padding: 0 16px 14px;
  list-style: none;
}

.ac-recap__list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 7px 0;
  font-size: var(--ac-recap-size, 13px);
  color: var(--ac-recap-text);
  border-top: 1px solid var(--ac-card-border);
}

.ac-recap__list li:first-child {
  border-top: 0;
}

.ac-recap__key {
  color: var(--ac-recap-muted);
}

.ac-recap__val {
  font-weight: 600;
  text-align: right;
  color: var(--ac-recap-text);
}

/* --------------------------------------------------------------------------
   Total & achat
   -------------------------------------------------------------------------- */

.ac-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: var(--ac-border-width, 1px) dashed var(--ac-border-color, var(--ac-card-border-strong));
}

.ac-total__label {
  /* Taille pilotée depuis la configuration du module */
  font-size: var(--ac-total-label-size, 17px);
  font-weight: 600;
  line-height: 1.3;
  color: var(--ac-total-label);
}

.ac-total__amount {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 10px;
}

/* Pastille « Remise de … », reprise du bandeau promotionnel du thème :
   l'intitulé en petites capitales surmonte le montant, plus gros.
   Le même bloc sert au total et à la barre collante, en plus compact. */
.ac-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  padding: 4px 12px 5px;
  line-height: 1.15;
  white-space: nowrap;
  color: var(--ac-badge-text, #ffffff);
  background: var(--ac-badge-bg, #ff0d40);
  border-radius: 3px;
}

.ac-badge__label {
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.95;
}

.ac-badge__value {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}

.ac-badge[hidden] {
  display: none;
}

/* Mention « TTC » ou « HT », accolée au montant sans le concurrencer */
.ac-tax {
  margin-left: -4px;
  font-size: calc(var(--ac-total-price-size, 28px) * 0.5);
  font-weight: 700;
  color: var(--ac-total-price);
}

.ac-tax--sticky {
  font-size: calc(var(--ac-sticky-price-size, 22px) * 0.55);
  color: inherit;
}

.ac-total__old,
.ac-sticky__old {
  font-size: 14px;
  font-weight: 600;
  text-decoration: line-through;
  color: var(--ac-total-label);
  font-variant-numeric: tabular-nums;
}

.ac-total__old[hidden],
.ac-sticky__old[hidden],
.ac-option__old[hidden] {
  display: none;
}

/* Prix barré sur une option : sur la même ligne, avant le prix courant */
.ac-option__old {
  margin-right: 6px;
  font-weight: 500;
  text-decoration: line-through;
  opacity: 0.6;
}

.ac-total__price {
  font-size: var(--ac-total-price-size, 28px);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ac-total-price);
  font-variant-numeric: tabular-nums;
}

.ac-installments {
  margin: 6px 0 0;
  font-size: 11.5px;
  color: var(--ac-total-label);
}

.ac-unavailable {
  margin: 10px 0 0;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ac-accent);
}

.ac-buy {
  display: flex;
  align-items: stretch;
  gap: 12px;
  margin-top: 16px;
}

/* --- Sélecteur de quantité --- */

.ac-qty {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  height: 48px;
  background: transparent;
  border: 1px solid var(--ac-card-border-strong);
  border-radius: var(--ac-radius);
  overflow: hidden;
}

.ac-qty__btn {
  width: 38px;
  height: 100%;
  font-size: 16px;
  line-height: 1;
  color: var(--ac-text);
  background: transparent;
  border: 0;
  cursor: pointer;
}

.ac-qty__btn:hover {
  color: var(--ac-accent);
}

.ac-qty__input {
  width: 40px;
  height: 100%;
  padding: 0;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  color: var(--ac-text);
  background: transparent;
  border: 0;
  appearance: textfield;
}

.ac-qty__input::-webkit-outer-spin-button,
.ac-qty__input::-webkit-inner-spin-button {
  margin: 0;
  appearance: none;
}

/* --- Bouton principal --- */

.ac-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex: 1 1 auto;
  min-height: 48px;
  padding: 0 22px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ac-cta-text);
  background: var(--ac-cta-bg);
  border: 1px solid transparent;
  border-radius: var(--ac-radius);
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.ac-cta:hover {
  filter: brightness(0.94);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
}

.ac-cta:active {
  transform: translateY(1px);
}

.ac-cta[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}

.ac-cta.is-loading {
  color: transparent;
  pointer-events: none;
}

.ac-cta.is-loading::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid currentColor;
  border-color: var(--ac-cta-text);
  border-top-color: transparent;
  opacity: 0.85;
  border-radius: 50%;
  animation: ac-spin 0.7s linear infinite;
}

.ac-cta {
  position: relative;
}

.ac-cta__icon {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
}

@keyframes ac-spin {
  to {
    transform: rotate(360deg);
  }
}

/* --------------------------------------------------------------------------
   Barre d'achat collante
   -------------------------------------------------------------------------- */

.ac-sticky {
  font-family: var(--ac-font-family, inherit);
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1040;
  padding: var(--ac-sticky-pad, 16px) 0
           max(var(--ac-sticky-pad, 16px), env(safe-area-inset-bottom));
  color: var(--ac-text);
  /* Opacité et flou pilotés depuis la configuration du module */
  background: var(--ac-sticky-bg, var(--ac-panel));
  -webkit-backdrop-filter: blur(var(--ac-sticky-blur, 0px));
  backdrop-filter: blur(var(--ac-sticky-blur, 0px));
  border-top: 1px solid var(--ac-card-border);
  box-shadow: 0 0px 15px rgba(0, 0, 0, 0.15);
  transform: translateY(100%);
  transition: transform 0.28s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.ac-sticky.is-visible {
  transform: translateY(0);
}

.ac-sticky__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  width: min(1140px, 100% - 32px);
  margin: 0 auto;
}

.ac-sticky__thumb[hidden] {
  display: none;
}


.ac-sticky__thumb {
  flex: 0 0 auto;
  width: var(--ac-sticky-thumb, 56px);
  height: var(--ac-sticky-thumb, 56px);
  object-fit: contain;
  background: var(--ac-card);
  border-radius: 8px;
}

.ac-sticky__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  margin-right: auto;
}

.ac-sticky__name {
  font-size: var(--ac-option-label-size, 14px);
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ac-sticky__config {
  font-size: 11.5px;
  color: var(--ac-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Dans la barre, la pastille est réduite pour ne pas dominer le prix */
.ac-sticky .ac-badge {
  padding: 3px 9px 4px;
}

.ac-sticky .ac-badge__label {
  font-size: 7.5px;
}

.ac-sticky .ac-badge__value {
  font-size: 12px;
}

.ac-sticky__price {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--ac-sticky-price-size, 22px);
  font-weight: 800;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.ac-cta--sticky {
  flex: 0 0 auto;
  min-width: 200px;
}

/* --------------------------------------------------------------------------
   Fenêtre d'aide
   -------------------------------------------------------------------------- */

.ac-modal[hidden] {
  display: none;
}

.ac-modal {
  position: fixed;
  inset: 0;
  z-index: 1060;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.ac-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 10, 24, 0.66);
}

.ac-modal__box {
  position: relative;
  width: min(560px, 100%);
  max-height: 80vh;
  overflow-y: auto;
  padding: 26px 28px;
  color: var(--ac-text);
  background: var(--ac-panel);
  border: 1px solid var(--ac-card-border);
  border-radius: calc(var(--ac-radius) + 4px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}

.ac-modal__close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 32px;
  height: 32px;
  font-size: 22px;
  line-height: 1;
  color: var(--ac-muted);
  background: transparent;
  border: 0;
  cursor: pointer;
}

.ac-modal__close:hover {
  color: var(--ac-text);
}

.ac-modal__title {
  margin: 0 0 12px;
  font-size: 17px;
  font-weight: 700;
}

.ac-modal__body {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ac-muted);
}

.ac-modal__body table {
  width: 100%;
  border-collapse: collapse;
}

.ac-modal__body td,
.ac-modal__body th {
  padding: 8px 10px;
  text-align: left;
  border-bottom: 1px solid var(--ac-card-border);
}

/* --------------------------------------------------------------------------
   Notification
   -------------------------------------------------------------------------- */

.ac-toast {
  position: fixed;
  top: 24px;
  left: 50%;
  z-index: 1070;
  padding: 12px 20px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: #16a34a;
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  transform: translate(-50%, -12px);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.ac-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.ac-toast.is-error {
  background: #dc2626;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 767px) {
  .ac-options--grid {
    grid-template-columns: 1fr;
  }

  /* L'en-tête reste sur une ligne : le passage en colonne annulait le
     réglage d'alignement de l'étape, et remettait la valeur à gauche.
     Le retour à la ligne ne se produit que si le texte n'entre pas. */
  .ac-step__head {
    flex-wrap: wrap;
    gap: 2px 10px;
  }

  /* Barre collante sur mobile : trois lignes.
       1. vignette et nom du produit
       2. prix barré, remise, prix à payer
       3. bouton d'ajout, sur toute la largeur

     Une grille nommée plutôt qu'un empilement en colonne : la vignette et le
     nom partagent la première ligne sans qu'il faille les enrober, donc sans
     toucher au balisage ni au rendu sur ordinateur. */
  /* Flou d'arrière-plan retiré : sur mobile, il fait recomposer la zone
     située derrière la barre à chaque image du défilement, ce qui suffit à
     rendre le geste saccadé. Le fond est rendu plus opaque en compensation. */
  .ac-sticky {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: var(--ac-sticky-bg, var(--ac-surface));
  }

  .ac-sticky__inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
      "vignette nom"
      "prix     prix"
      "bouton   bouton";
    align-items: center;
    gap: 8px 10px;
    width: calc(100% - 24px);
  }

  .ac-sticky__thumb {
    display: block;
    grid-area: vignette;
    /* Bornée : la taille réglée vise l'affichage sur ordinateur */
    width: min(var(--ac-sticky-thumb, 56px), 42px);
    height: min(var(--ac-sticky-thumb, 56px), 42px);
  }

  .ac-sticky__info {
    grid-area: nom;
    min-width: 0;
  }

  /* Le nom dispose de la ligne entière : deux lignes de texte au plus,
     coupées proprement plutôt que tronquées au premier mot de trop. */
  .ac-sticky__name {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    white-space: normal;
    line-height: 1.25;
  }

  /* Le résumé de configuration reste masqué : sur deux lignes déjà occupées,
     il ne ferait qu'allonger la barre. */
  .ac-sticky__config {
    display: none;
  }

  .ac-sticky__price {
    grid-area: prix;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 8px;
  }

  /* Pastille de remise rétablie, en une seule ligne pour tenir en hauteur */
  .ac-sticky .ac-badge {
    display: inline-flex;
    flex-direction: row;
    align-items: baseline;
    gap: 5px;
    padding: 3px 8px 4px;
  }

  .ac-sticky .ac-badge__label {
    font-size: 8.5px;
  }

  .ac-sticky .ac-badge__value {
    font-size: 11.5px;
  }

  .ac-qty--sticky {
    display: none;
  }

  .ac-cta--sticky {
    grid-area: bouton;
    width: 100%;
    min-width: 0;
    justify-content: center;
  }

  /* Réduction proportionnelle plutôt qu'une taille fixe : une valeur en dur
     écraserait le réglage de taille du montant. */
  .ac-total__price {
    font-size: calc(var(--ac-total-price-size, 28px) * 0.8);
  }

  .ac-total__old {
    font-size: calc(var(--ac-total-price-size, 28px) * 0.45);
  }
}

@media (prefers-reduced-motion: reduce) {
  .aurone-configurator *,
  .ac-sticky {
    transition: none !important;
    animation: none !important;
  }
}
#product .product-prices {
  text-align: left !important;
}
#product .conf-availability {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 14px;
  row-gap: 4px;
}

/* Statut de stock du thème : pastille ronde et texte colorés selon l'état.
   Tout est déduit du balisage du thème — <span class="availability-message
   {available|last_remaining_items|unavailable}"> — pour être stylé dès le
   premier affichage : une décoration posée en JavaScript laissait voir le
   texte brut le temps du chargement. front.js (decorateStock) ne fait que
   mettre à jour cette classe et le texte au changement de déclinaison. */
#product .conf-availability .product-availability-inline .separator {
  display: none;
}

/* La ligne porte d-flex (display: flex !important) dans le thème. */
#product .conf-availability .product-availability-inline[hidden] {
  display: none !important;
}

#product .conf-availability .availability-message {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
}

#product .conf-availability .availability-message::before {
  content: '';
  flex: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: currentColor;
}

#product .conf-availability .availability-message:empty::before {
  display: none;
}

#product .conf-availability .availability-message.available {
  color: #28a745;
}

#product .conf-availability .availability-message.last_remaining_items {
  color: #e07800;
}

#product .conf-availability .availability-message.unavailable {
  color: #ff0d40;
}
#product #agWidgetH {
  width: fit-content;
}

.ac-qty button:focus, ac-sticky button:focus {
  outline: none;
}

/* --------------------------------------------------------------------------
   Boutons flottants du site au-dessus de la barre collante

   html.ac-sticky-open et --ac-sticky-height sont posés par front.js
   (liftFloatingButtons). Valeurs de base reprises des feuilles d'origine :
   chatbot app.josmose.fr (24px, 90px, 16px sous 768 px) ; bouton téléphone
   du module callbacksticky (25px, 17px sous 768 px) ; #topcontrol (module
   scrolltop) est décalé par transform, sa marge basse étant un réglage du
   module.
   -------------------------------------------------------------------------- */

/* Préfixe html : la feuille du chatbot, injectée après celle-ci, redéfinit
   transition sur #cb-toggle sans bottom ; à spécificité égale elle gagnait
   et le bouton sautait au lieu de glisser. Chaque règle reprend les
   transitions d'origine de l'élément (survol, ouverture de la fenêtre) et y
   ajoute le déplacement. */
html #cb-toggle {
  transition: bottom 0.28s cubic-bezier(0.22, 0.61, 0.36, 1),
              background 0.2s, transform 0.2s;
}

html #cb-window {
  transition: bottom 0.28s cubic-bezier(0.22, 0.61, 0.36, 1),
              transform 0.2s ease, opacity 0.2s ease;
}

html #callbacksticky-trigger {
  transition: bottom 0.28s cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* Opacité animée par jQuery (module scrolltop) : pas de transition dessus. */
html #topcontrol {
  transition: transform 0.28s cubic-bezier(0.22, 0.61, 0.36, 1);
}

html.ac-sticky-open #cb-toggle {
  bottom: calc(24px + var(--ac-sticky-height, 0px)) !important;
}

html.ac-sticky-open #cb-window {
  bottom: calc(90px + var(--ac-sticky-height, 0px)) !important;
}

html.ac-sticky-open #callbacksticky-trigger {
  bottom: calc(25px + var(--ac-sticky-height, 0px)) !important;
}

html.ac-sticky-open #topcontrol {
  transform: translateY(calc(-1 * var(--ac-sticky-height, 0px)));
}

@media (max-width: 768px) {
  html.ac-sticky-open #cb-toggle {
    bottom: calc(max(16px, env(safe-area-inset-bottom, 16px)) + var(--ac-sticky-height, 0px)) !important;
  }

  html.ac-sticky-open #callbacksticky-trigger {
    bottom: calc(17px + var(--ac-sticky-height, 0px)) !important;
  }

  /* Plein écran sur mobile : la fenêtre ne bouge pas, elle passe devant. */
  html.ac-sticky-open #cb-window {
    bottom: 0 !important;
  }
}
/* ==========================================================================
   Blocs additionnels

   Rendus par des hooks distincts, hors du bloc configurateur. Ils reçoivent
   leur propre jeu de variables CSS et n'emploient aucune couleur en dur :
   toutes sont héritées des réglages du configurateur.
   ========================================================================== */

.aurone-contact,
.aurone-trust {
  box-sizing: border-box;
  font-family: var(--ac-font-family, inherit);
  color: var(--ac-text);
}

.aurone-contact *,
.aurone-trust * {
  box-sizing: border-box;
}

/* --------------------------------------------------------------------------
   Encart de contact
   -------------------------------------------------------------------------- */

.aurone-contact {
  margin: 18px 0 0;
  padding: 18px 20px;
  background: var(--ac-card);
  border: 2px solid var(--ac-accent);
  border-radius: var(--ac-block-radius, 8px);
}

.ac-contact__title {
  margin: 0 0 6px;
  font-size: var(--ac-option-label-size, 14px);
  font-weight: 700;
  line-height: 1.35;
  color: var(--ac-text);
}

.ac-contact__text {
  margin: 0 0 14px;
  font-size: var(--ac-option-desc-size, 12px);
  line-height: 1.5;
  color: var(--ac-recap-muted, var(--ac-muted));
}

.ac-contact__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.ac-contact__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  font-size: var(--ac-option-label-size, 14px);
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  border-radius: var(--ac-radius, 6px);
  transition: filter 0.15s ease;
}

.ac-contact__btn:hover {
  filter: brightness(0.94);
  text-decoration: none;
}

.ac-contact__btn svg {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
}

/* Le bouton d'appel reprend la couleur d'accent, le second reste en contour */
.ac-contact__btn--phone {
  color: var(--ac-cta-text, #fff);
  background: var(--ac-accent);
}

.ac-contact__btn--mail {
  color: var(--ac-text);
  background: transparent;
  border: var(--ac-border-width, 1px) solid var(--ac-card-border);
}

.ac-contact__note {
  margin: 12px 0 0;
  font-size: var(--ac-option-desc-size, 12px);
  line-height: 1.5;
  color: var(--ac-accent);
}

/* --------------------------------------------------------------------------
   Réassurance

   Le contenu est saisi librement en HTML. Les règles ci-dessous l'habillent
   sans rien imposer : une liste reçoit ses coches, les autres éléments
   reprennent simplement les couleurs et tailles du configurateur.
   -------------------------------------------------------------------------- */

.aurone-trust {
  margin: 16px 0 0;
  font-size: var(--ac-option-desc-size, 12px);
  line-height: 1.55;
  color: var(--ac-recap-text, var(--ac-text));
}

.aurone-trust > *:first-child {
  margin-top: 0;
}

.aurone-trust > *:last-child {
  margin-bottom: 0;
}

.aurone-trust p {
  margin: 0 0 10px;
}

.aurone-trust ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.aurone-trust ul li {
  position: relative;
  padding: 6px 0 6px 24px;
}

/* Coche reprenant la couleur du bouton d'achat */
.aurone-trust ul li::before {
  content: "\2713";
  position: absolute;
  top: 6px;
  left: 0;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--ac-cta-bg, var(--ac-accent));
}

.aurone-trust ol {
  margin: 0;
  padding-left: 20px;
}

.aurone-trust ol li {
  padding: 5px 0;
}

.aurone-trust strong,
.aurone-trust b {
  font-weight: 700;
  color: var(--ac-text);
}

.aurone-trust a {
  color: var(--ac-accent);
  text-decoration: underline;
}

.aurone-trust img {
  max-width: 100%;
  height: auto;
}

.aurone-trust hr {
  margin: 12px 0;
  border: 0;
  border-top: var(--ac-border-width, 1px) solid var(--ac-border-color, var(--ac-line));
}

@media (max-width: 767px) {
  .ac-contact__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .ac-contact__btn {
    justify-content: center;
  }
  #blockcart-modal {
    z-index: 999999;
  }
  
}
