/**
 * Premium Hummingbird — Hook integration styles
 * Rend la sortie des modules PrestaShop (newsletter, liens CMS/légaux, réassurance,
 * contact…) cohérente avec le design premium ValRhôn'Énergie.
 * Chargé après theme.css, ne touche qu'aux zones de hooks ajoutées.
 */

/* ============ Topbar : ps_contactinfo (displayNav1) ============ */
.topbar__inner {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  gap: 18px;
}
.topbar__msg { text-align: center; }
.topbar__msg strong { font-weight: 700; }
.topbar__nav1 { position: absolute; right: 0; display: flex; align-items: center; gap: 18px; text-transform: none; letter-spacing: normal; }
.topbar__nav1 ul { display: flex; gap: 18px; margin: 0; padding: 0; list-style: none; }
.topbar__nav1 a { color: #fff; text-decoration: none; }
.topbar__nav1 a:hover { color: #cfe7f2; }
.topbar__nav1 .material-icons { font-size: 15px; vertical-align: middle; margin-right: 4px; }

/* ============ Bandeau réassurance : blockreassurance (displayNavFullWidth) ============ */
.premium-reassurance { background: #fff; border-bottom: 1px solid var(--line); }
.premium-reassurance .block-reassurance,
.premium-reassurance ul {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 36px; margin: 0; padding: 14px 0; list-style: none;
}
.premium-reassurance .block-reassurance li,
.premium-reassurance .block-reassurance > div { display: flex; align-items: center; gap: 10px; }
.premium-reassurance img, .premium-reassurance svg { width: 26px; height: 26px; }
.premium-reassurance p, .premium-reassurance span { margin: 0; font-size: 13px; color: var(--ink); font-weight: 500; }
.premium-reassurance h3 { font-size: 13px; margin: 0; font-weight: 600; }

/* ============ Produits phares injectes par module ============ */
.ps-featuredproducts {
  padding: 56px 0 72px;
}
.ps-featuredproducts .module-products {
  max-width: 1280px;
}
/* components/module-products.tpl enveloppe TOUJOURS productlist.tpl dans
   .module-products__list : ce wrapper n'a donc qu'un seul enfant, .products.
   Poser la grille sur le wrapper enfermait .products dans une piste de 320px
   -> une seule carte par ligne. La grille appartient a .products seul. */
.ps-featuredproducts .module-products__list {
  display: block;
}
.ps-featuredproducts .products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 26px;
  align-items: stretch;
}
.ps-featuredproducts .product-miniature {
  width: auto;
  max-width: none;
}
.ps-featuredproducts .product-miniature__image-container {
  height: 260px;
  aspect-ratio: auto;
}
.ps-featuredproducts .product-miniature__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ps-featuredproducts .product-miniature__actions {
  margin-top: 18px;
}
.ps-featuredproducts .product-miniature__form {
  display: grid;
  gap: 14px;
}
.ps-featuredproducts .quantity-button__group {
  display: flex !important;
  align-items: stretch;
  width: 100%;
  min-width: 0;
}
.ps-featuredproducts .quantity-button__group .btn {
  flex: 0 0 48px;
  width: 48px;
  min-width: 48px;
  height: 48px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 0;
  background: #fff;
  color: var(--ink);
}
.ps-featuredproducts .quantity-button__group .decrement {
  border-radius: 999px 0 0 999px;
}
.ps-featuredproducts .quantity-button__group .increment {
  border-radius: 0 999px 999px 0;
}
.ps-featuredproducts .quantity-button__group .form-control {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
  height: 48px;
  border-inline: 0;
  border-color: var(--line);
  border-radius: 0;
  text-align: center;
  font-weight: 600;
  color: var(--ink);
  background: var(--cream);
}
.ps-featuredproducts .quantity-button__group .d-none {
  display: none !important;
}
.ps-featuredproducts .quantity-button__symbol {
  line-height: 1;
}
.ps-featuredproducts .module-products__buttons {
  margin-top: 28px;
}
@media (max-width: 520px) {
  .ps-featuredproducts .products {
    grid-template-columns: 1fr;
  }
}

/* ============ Pré-footer : newsletter / réseaux / réassurance (displayFooterBefore) ============ */
.premium-footer__before { padding-bottom: 42px; margin-bottom: 42px; border-bottom: 1px solid rgba(255,255,255,.1); }
.premium-footer__before .wrap {
  display: flex; flex-wrap: wrap; gap: 40px; align-items: center; justify-content: space-between;
}
.premium-footer__before h3, .premium-footer__before .h3, .premium-footer__before h4 {
  color: #fff; font-size: 15px; font-weight: 600; margin: 0 0 12px;
}
.premium-footer__before p { color: #8ba1ab; font-size: 14px; margin: 0 0 10px; }
.premium-footer__before .block_newsletter,
.premium-footer__before .ps-emailsubscription,
.premium-footer__before [class*="emailsubscription"] { flex: 1 1 360px; }
.premium-footer__before form { display: flex; gap: 10px; flex-wrap: wrap; }
.premium-footer__before input[type="email"],
.premium-footer__before input[type="text"] {
  flex: 1 1 200px; padding: 12px 14px; border-radius: 8px;
  border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.05); color: #fff;
}
.premium-footer__before input::placeholder { color: rgba(255,255,255,.45); }
.premium-footer__before button:not(.btn-close),
.premium-footer__before input[type="submit"],
.premium-footer__before .btn {
  padding: 12px 22px; border: none; border-radius: 8px; cursor: pointer;
  background: var(--eau); color: #fff; font-weight: 600; transition: .2s;
}
.premium-footer__before button:not(.btn-close):hover,
.premium-footer__before .btn:hover { background: var(--eau-deep); }
.premium-footer__before .alert {
  flex: 1 1 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 12px;
  padding: 13px 16px;
  border: 1px solid rgba(143, 210, 238, .22);
  border-radius: 12px;
  background: rgba(143, 210, 238, .1);
  color: #cfe7f2;
  font-size: 14px;
  font-weight: 500;
}
.premium-footer__before .alert-success {
  border-color: rgba(140, 198, 63, .3);
  background: rgba(140, 198, 63, .12);
  color: #d6efb4;
}
.premium-footer__before .btn-close {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 50%;
  background-color: rgba(255, 255, 255, .08);
  background-size: 10px;
  filter: invert(1) grayscale(1) brightness(1.6);
  opacity: .75;
  transition: opacity .2s, background-color .2s;
}
.premium-footer__before .btn-close:hover,
.premium-footer__before .btn-close:focus {
  background-color: rgba(255, 255, 255, .14);
  opacity: 1;
}
.premium-footer__before .social-sharing,
.premium-footer__before [class*="social"] ul { display: flex; gap: 12px; margin: 0; padding: 0; list-style: none; }

/* ============ Colonnes footer pilotées par modules (displayFooter) ============ */
/* ps_linklist + ps_customeraccountlinks + ps_contactinfo, calqués sur .foot-col */
.foot-modules {
  grid-column: 2 / -1;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 44px;
}
.foot-modules .links, .foot-modules .linklist { display: contents; }   /* aplatit les wrappers modules */
.foot-modules .footer-block, .foot-modules > div { min-width: 0; }
.foot-modules h3, .foot-modules h4,
.foot-modules .footer-block__title, .foot-modules .h3 {
  font-family: "Hanken Grotesk"; color: #fff; font-size: 12px; letter-spacing: .16em;
  text-transform: uppercase; margin: 0 0 18px; font-weight: 600;
}
.foot-modules ul { list-style: none; display: grid; gap: 11px; margin: 0; padding: 0; }
.foot-modules a { color: #9fb6c0; transition: .2s; font-size: 14px; text-decoration: none; }
.foot-modules a:hover { color: #8fd2ee; }
.foot-modules .navbar-toggler, .foot-modules .collapse-icons { display: none; }   /* pas d'accordéon mobile ici */

/* ============ Bas de footer : displayFooterAfter ============ */
.premium-footer__after { padding-top: 28px; }
.premium-footer__after .block-reassurance, .premium-footer__after ul {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 30px; margin: 0; padding: 0; list-style: none;
}
.premium-footer__after p, .premium-footer__after span { color: #9fb6c0; font-size: 13px; margin: 0; }

/* ============ Responsive ============ */
@media (max-width: 980px) {
  .foot-modules { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
  .topbar__nav1 { display: none; }
}


/* ===== Menu : megamenu + mobile ===== */
/* Sous-categories empilees en colonne (evite le debordement sur la colonne Produits). */
.premium-menu-tree { display: flex !important; flex-direction: column !important; gap: 8px !important; align-items: stretch !important; }
/* Menu mobile : sous-categories visibles et indentees sous chaque categorie. */
#mobile-nav .premium-menu-tree { margin: 4px 0 12px 14px; padding-left: 12px; border-left: 1px solid var(--line, #e6e6e6); }
#mobile-nav .premium-menu-tree__link { display: block; font-size: 14px; font-weight: 500; padding: 6px 0; color: var(--ink, #0C1B22); text-decoration: none; }
#mobile-nav > ul > li > a { font-weight: 700; }

/* Menu mobile jamais visible en desktop, meme si ouvert avant resize.
   Le header bascule en burger jusqu'a 1000px ; a 768px (tablette), le menu
   mobile doit donc pouvoir s'ouvrir. */
@media (min-width: 1001px) { .mobile-nav, .mobile-nav:not([hidden]) { display: none !important; } }

/* ===== Footer : la police Material Icons ne se charge pas (font-family -> Arial),
   donc chaque <i class="material-icons"> s'affiche en carre "tofu".
   Ces icones (toggle d'accordeon mobile + icone e-mail du contact) ne sont pas
   utiles ici : on les masque, on neutralise le bouton toggle qui fuit en desktop
   (utilitaire .d-md-none absent du bundle), et on garde les colonnes depliees. ===== */
.premium-footer .material-icons { display: none !important; }
.premium-footer button.stretched-link,
.foot-modules button.stretched-link { display: none !important; }
.foot-modules .collapse { display: block !important; height: auto !important; visibility: visible !important; }

/* ===== Checkout : harmoniser le formulaire d'adresse avec la page /adresse =====
   Le tunnel reutilise les memes champs (.form-fields/.form-label/.form-control) que
   le carnet d'adresses, mais account.css n'y est pas charge : on replique le style
   premium (labels MAJ, champs arrondis, hints, cases a cocher) scope au checkout. */
.vre-checkout__step .mb-3,
.js-address-form .mb-3 { margin-bottom: 22px !important; }

.vre-checkout__step label.form-label,
.vre-checkout__step .form-label,
.js-address-form .form-label {
  display: block !important;
  margin-bottom: 10px !important;
  color: var(--slate) !important;
  font-family: "Hanken Grotesk", sans-serif !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: .1em !important;
  text-transform: uppercase !important;
}
.vre-checkout__step .form-label.required::after,
.js-address-form .form-label.required::after { content: " *"; color: var(--red); }

.vre-checkout__step .form-control,
.vre-checkout__step .form-select,
.js-address-form .form-control,
.js-address-form .form-select {
  width: 100% !important;
  min-height: 50px !important;
  padding: 13px 16px !important;
  color: var(--ink) !important;
  background-color: #fff !important;
  border: 1px solid var(--line) !important;
  border-radius: 12px !important;
  box-shadow: none !important;
  font-family: "Hanken Grotesk", sans-serif !important;
  font-size: 15px !important;
  transition: border-color .25s, box-shadow .25s;
}
.vre-checkout__step .form-control:focus,
.vre-checkout__step .form-select:focus,
.js-address-form .form-control:focus,
.js-address-form .form-select:focus {
  border-color: var(--eau) !important;
  box-shadow: 0 0 0 3px rgba(14,155,214,.14) !important;
  outline: none !important;
}
.vre-checkout__step .form-text,
.js-address-form .form-text {
  display: block !important; margin-top: 7px !important;
  color: rgba(92,107,114,.78) !important; font-size: 12px !important;
}
.vre-checkout__step .form-check,
.js-address-form .form-check {
  display: flex !important; align-items: flex-start; gap: 9px; margin: 8px 0 !important;
}
.vre-checkout__step .form-check-input,
.js-address-form .form-check-input {
  width: 18px; height: 18px; margin-top: 2px; accent-color: var(--eau-deep);
}
.vre-checkout__step .form-check-label,
.js-address-form .form-check-label {
  margin: 0 !important; color: var(--ink); font-size: 14px; line-height: 1.45; cursor: pointer;
  text-transform: none !important; font-weight: 400 !important; letter-spacing: normal !important;
}

/* ===== Pages listing : suppression de la colonne de gauche (arbre de categories) =====
   L'arbre de categories (ps_categorytree) fait doublon avec la nav/megamenu et la
   colonne ne contient que lui (pas de recherche a facettes active). On masque la
   colonne de gauche et on passe le contenu en pleine largeur sur ces controleurs.
   NB: le layout est fige a l'install du theme, donc on le force ici en CSS. */
#category #left-column, #best-sales #left-column, #new-products #left-column,
#prices-drop #left-column, #manufacturer #left-column, #supplier #left-column { display: none !important; }
#category #center-column, #best-sales #center-column, #new-products #center-column,
#prices-drop #center-column, #manufacturer #center-column, #supplier #center-column {
  flex: 0 0 100% !important; max-width: 100% !important; width: 100% !important;
}

/* ===== Checkout : etape "Mode de livraison" — transporteurs en cartes premium =====
   Le template custom (.delivery-option__*) n'avait aucun style : chaque transporteur
   devient une carte cliquable (radio + logo + nom | description | prix), avec un
   etat selectionne mis en avant. Charge via hooks.css (hors bundle) -> sur en prod. */
.delivery-options__list { display: flex; flex-direction: column; gap: 12px; margin: 6px 0 10px; }
.delivery-option__item { margin: 0 !important; }

.delivery-option__label {
  display: grid !important;
  grid-template-columns: auto 1fr auto;
  align-items: center; column-gap: 16px;
  width: 100%; margin: 0 !important; padding: 16px 18px;
  border: 1px solid var(--line); border-radius: 14px; background: #fff;
  cursor: pointer; transition: border-color .2s, box-shadow .2s, background .2s;
}
.delivery-option__label:hover { border-color: var(--eau); }
.delivery-option__item:has(input:checked) .delivery-option__label {
  border-color: var(--eau); background: rgba(14,155,214,.045);
  box-shadow: 0 0 0 3px rgba(14,155,214,.12);
}

.delivery-option__left { display: flex; align-items: center; gap: 13px; min-width: 0; }
.delivery-option__check { margin: 0 !important; padding: 0 !important; min-height: 0 !important; display: inline-flex; }
.delivery-option__check .form-check-input { width: 20px; height: 20px; margin: 0; accent-color: var(--eau-deep); cursor: pointer; }
.delivery-option__carrier { display: flex; align-items: center; gap: 12px; min-width: 0; }
.delivery-option__carrier-logo { width: 44px; height: 44px; object-fit: contain; flex: 0 0 auto; }
.delivery-option__carrier-name { font-weight: 700; font-size: 15px; color: var(--ink); line-height: 1.3; }

.delivery-option__content { font-size: 13px; color: var(--slate); line-height: 1.4; }
.delivery-option__content p { margin: 0; }

.delivery-option__price { justify-self: end; font-weight: 700; font-size: 15px; color: var(--eau-deep); white-space: nowrap; }

@media (max-width: 560px) {
  .delivery-option__label { grid-template-columns: auto 1fr; row-gap: 7px; column-gap: 12px; padding: 14px 15px; }
  .delivery-option__content { grid-column: 1 / -1; }
  .delivery-option__price { grid-column: 2; grid-row: 1; }
}

/* ===== Checkout : resume panier — toggle "Afficher les details" non fonctionnel =====
   Le bouton est un .accordion-button (data-bs-toggle=collapse) mais le JS Bootstrap
   Collapse n'est PAS charge dans le theme -> le bouton ne fait rien ; et la CSS
   collapse etant absente, le panneau .collapse reste affiche quoi qu'il arrive.
   Le detail produit est donc deja visible : on masque ce toggle mort et on force
   le detail a rester visible (au cas ou la CSS Bootstrap se chargerait un jour). */
.cart-summary .accordion-button { display: none !important; }
.cart-summary .accordion-collapse,
.cart-summary #cart-summary-product-list {
  display: block !important; height: auto !important; visibility: visible !important;
}
.cart-summary .accordion,
.cart-summary .accordion-item,
.cart-summary .accordion-header,
.cart-summary .accordion-body {
  border: 0 !important; background: transparent !important; padding: 0 !important; margin: 0 !important;
}

/* ===== Bloc "Notre selection" (ps_featuredproducts) — bouton "Voir tous les produits" =====
   Le bouton etait un .btn-outline-primary Bootstrap brut + une icone material-icons
   tofu. Texte passe en FR dans le tpl ; ici on le stylise en pill premium et on
   neutralise toute material-icons residuelle du bloc. */
.module-products__buttons { display: flex; justify-content: center; margin-top: 28px; }
.module-products__buttons .btn,
.module-products__buttons .btn-outline-primary {
  display: inline-flex !important; align-items: center; gap: 9px;
  padding: 13px 30px !important; border: 1px solid var(--line) !important; border-radius: 999px !important;
  background: #fff !important; color: var(--ink) !important;
  font-family: "Hanken Grotesk", sans-serif; font-size: 14px !important; font-weight: 600 !important;
  text-decoration: none; box-shadow: none !important; text-transform: none !important;
  transition: background .2s, color .2s, border-color .2s;
}
.module-products__buttons .btn:hover { background: var(--ink) !important; color: #fff !important; border-color: var(--ink) !important; }
.module-products__buttons .btn .btn-arrow { font-size: 17px; line-height: 1; transition: transform .2s; }
.module-products__buttons .btn:hover .btn-arrow { transform: translateX(3px); }
.module-products__buttons .material-icons { display: none !important; }

/* ===== Fiche produit : selecteur de declinaisons premium ===== */
.vre-product .product__variants { gap: 16px; }
.vre-product .product-variant {
  position: relative;
  padding: 18px;
  border: 1px solid rgba(12,27,34,.10);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255,255,255,.98), rgba(242,249,252,.92));
  box-shadow: 0 18px 44px rgba(12,27,34,.08);
}
.vre-product .product-variant__label {
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}
.vre-product .product-variant__legend {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  letter-spacing: .11em;
}
.vre-product .product-variant__legend::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--eau, #0e9bd6);
  box-shadow: 0 0 0 5px rgba(14,155,214,.12);
}
.vre-product .product-variant__selected { display: none; }
.vre-product .product-variant .form-select {
  width: 100%;
  min-height: 58px;
  padding: 0 54px 0 18px;
  border: 1px solid rgba(12,27,34,.14);
  border-radius: 16px;
  background-color: #fff;
  background-image:
    linear-gradient(45deg, transparent 50%, #0c1b22 50%),
    linear-gradient(135deg, #0c1b22 50%, transparent 50%),
    linear-gradient(135deg, rgba(14,155,214,.12), rgba(16,42,52,.05));
  background-position: calc(100% - 28px) 50%, calc(100% - 21px) 50%, right 12px center;
  background-size: 7px 7px, 7px 7px, 34px 34px;
  background-repeat: no-repeat;
  color: var(--ink, #0c1b22);
  font-size: 15px;
  font-weight: 750;
  letter-spacing: .01em;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.85), 0 10px 24px rgba(12,27,34,.06);
  appearance: none;
  cursor: pointer;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.vre-product .product-variant .form-select:hover {
  border-color: rgba(14,155,214,.45);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.85), 0 14px 30px rgba(12,27,34,.10);
  transform: translateY(-1px);
}
.vre-product .product-variant .form-select:focus {
  border-color: var(--eau, #0e9bd6);
  box-shadow: 0 0 0 4px rgba(14,155,214,.16), 0 14px 30px rgba(12,27,34,.10);
  outline: none;
}

@media (max-width: 575px) {
  .vre-product .product-variant { padding: 15px; border-radius: 18px; }
  .vre-product .product-variant .form-select { min-height: 54px; font-size: 14px; }
}

/* ===== Category hero : informations complementaires ===== */
.vre-category-hero__additional {
  position: relative;
  z-index: 1;
  color: var(--ink, #0c1b22);
}
.vre-category-hero__additional h2,
.vre-category-hero__additional h3,
.vre-category-hero__additional h4 {
  margin: 0 0 10px;
  font-family: "Fraunces", serif;
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 360;
  line-height: 1.04;
  letter-spacing: -.035em;
  color: var(--ink, #0c1b22);
}
.vre-category-hero__additional p,
.vre-category-hero__additional li {
  color: var(--slate, #5d7078);
  font-size: 15px;
  line-height: 1.65;
}
.vre-category-hero__additional p:last-child,
.vre-category-hero__additional ul:last-child,
.vre-category-hero__additional ol:last-child {
  margin-bottom: 0;
}

/* ===== Page marques : integration premium ===== */
.vre-brands-page {
  padding: clamp(40px, 6vw, 88px) 0 clamp(66px, 8vw, 112px);
  background:
    linear-gradient(180deg, rgba(248,250,249,.96), rgba(255,255,255,1) 48%),
    radial-gradient(circle at 12% 0, rgba(14,155,214,.10), transparent 34%);
}
.vre-brands-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  align-items: end;
  gap: clamp(28px, 5vw, 72px);
  margin: 0 0 clamp(30px, 5vw, 54px);
  padding: clamp(34px, 5vw, 64px);
  border: 1px solid rgba(12,27,34,.08);
  border-radius: 34px;
  background:
    radial-gradient(circle at 85% 12%, rgba(14,155,214,.16), transparent 32%),
    linear-gradient(135deg, rgba(255,255,255,.98), rgba(241,249,252,.94));
  box-shadow: 0 30px 80px rgba(12,27,34,.10);
  overflow: hidden;
}
.vre-brands-hero::after {
  content: "";
  position: absolute;
  right: -58px;
  bottom: -70px;
  width: 210px;
  height: 210px;
  border-radius: 999px;
  background: rgba(14,155,214,.10);
}
.vre-brands-hero .eyebrow {
  margin-bottom: 16px;
}
.vre-brands-hero__copy {
  position: relative;
  z-index: 1;
}
.vre-brands-hero h1 {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: 720px;
  font-family: "Fraunces", serif;
  font-size: clamp(42px, 6vw, 76px);
  font-weight: 340;
  line-height: .98;
  letter-spacing: -.045em;
  color: var(--ink, #0c1b22);
}
.vre-brands-hero p:not(.eyebrow) {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 18px 0 0;
  color: var(--slate, #5d7078);
  font-size: 17px;
  line-height: 1.72;
}
.vre-brands-hero__mark {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: end;
  min-height: 190px;
  padding: 24px;
  border: 1px solid rgba(14,155,214,.16);
  border-radius: 26px;
  background: rgba(255,255,255,.72);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
}
.vre-brands-hero__mark span {
  color: var(--slate, #5d7078);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.vre-brands-hero__mark strong {
  margin-top: 8px;
  font-family: "Fraunces", serif;
  color: var(--ink, #0c1b22);
  font-size: 34px;
  font-weight: 360;
  letter-spacing: -.04em;
}
.vre-brands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 340px));
  justify-content: center;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.vre-brand-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 290px;
  padding: 24px;
  border: 1px solid rgba(12,27,34,.08);
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(246,250,252,.96));
  box-shadow: 0 22px 62px rgba(12,27,34,.10);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.vre-brand-card::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(14,155,214,.08);
  border-radius: 22px;
  pointer-events: none;
}
.vre-brand-card:hover {
  transform: translateY(-4px);
  border-color: rgba(14,155,214,.28);
  box-shadow: 0 26px 62px rgba(12,27,34,.13);
}
.vre-brand-card__image {
  display: grid;
  place-items: center;
  min-height: 146px;
  margin-bottom: 24px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 50% 18%, rgba(14,155,214,.10), transparent 42%),
    linear-gradient(135deg, #f7fbfd, #fff);
}
.vre-brand-card__image picture {
  display: grid;
  place-items: center;
}
.vre-brand-card__image img {
  max-width: 148px;
  max-height: 78px;
  object-fit: contain;
}
.vre-brand-card__infos {
  margin-top: auto;
}
.vre-brand-card__title {
  display: inline-flex;
  align-items: center;
  color: var(--ink, #0c1b22);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.02em;
  text-decoration: none;
}
.vre-brand-card__title::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-left: 10px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
  opacity: .5;
}
.vre-brand-card__products {
  margin: 9px 0 0;
  color: var(--slate, #5d7078);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

@media (max-width: 575px) {
  .vre-brands-page { padding-top: 26px; }
  .vre-brands-hero { grid-template-columns: 1fr; border-radius: 24px; padding: 28px; }
  .vre-brands-hero__mark { min-height: auto; }
  .vre-brands-grid { grid-template-columns: 1fr; }
  .vre-brand-card { min-height: 220px; }
}

/* ===== Bandeau cookies (RGPD) ===== */
.vre-cookie {
  position: fixed; left: 18px; right: auto; bottom: 18px; z-index: 1200;
  width: calc(100% - 36px); max-width: 560px;
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 18px 50px rgba(12,27,34,.18);
  opacity: 0; transform: translateY(14px); transition: opacity .3s ease, transform .3s ease;
}
.vre-cookie.is-visible { opacity: 1; transform: none; }
.vre-cookie.is-leaving { opacity: 0; transform: translateY(14px); }
.vre-cookie__inner { padding: 20px 22px; }
.vre-cookie__title { display: block; font-family: "Hanken Grotesk", sans-serif; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); margin-bottom: 8px; }
.vre-cookie__text p { margin: 0; color: var(--slate); font-size: 13.5px; line-height: 1.55; }
.vre-cookie__link { color: var(--eau-deep); font-weight: 600; text-decoration: underline; }
.vre-cookie__actions { display: flex; gap: 10px; margin-top: 16px; }
.vre-cookie__btn {
  flex: 1 1 0; padding: 11px 18px; border-radius: 999px; cursor: pointer;
  font-family: "Hanken Grotesk", sans-serif; font-size: 13px; font-weight: 700;
  border: 1px solid var(--ink); transition: background .2s, color .2s, border-color .2s;
}
.vre-cookie__btn--ghost { background: #fff; color: var(--ink); }
.vre-cookie__btn--ghost:hover { background: var(--ink); color: #fff; }
.vre-cookie__btn--accept { background: var(--eau-deep); border-color: var(--eau-deep); color: #fff; }
.vre-cookie__btn--accept:hover { background: var(--eau); border-color: var(--eau); }
@media (max-width: 600px) {
  .vre-cookie { left: 12px; right: 12px; bottom: 12px; width: auto; }
  .vre-cookie__inner { padding: 17px 18px; }
}

/* ===== Auth : bouton "Creer un compte" =====
   .vre-auth-alt a (style lien : border-bottom + padding-bottom 2px) cassait le .btn
   -> padding asymetrique + bordure seulement en bas. On restaure un vrai bouton ghost
   clair sur le hero sombre. (Override garanti via hooks.css, hors bundle.) */
.vre-auth-alt a.btn,
.vre-auth-alt a.btn-ghost-d {
  padding: 14px 28px !important;
  border: 1px solid rgba(255,255,255,0.35) !important;
  color: #fff !important;
}
.vre-auth-alt a.btn-ghost-d:hover {
  background: rgba(255,255,255,0.08) !important;
  border-color: rgba(255,255,255,0.6) !important;
  color: #fff !important;
}

/* ===== Material Icons : police + classe absentes du bundle CSS de la prod =====
   La police est bien dans le theme (assets/fonts/) mais le bundle prod ne declare
   ni le @font-face ni la classe .material-icons -> icones en carre "tofu"
   (oeil du mot de passe, bouton retour accueil...). On declare les deux. */
@font-face {
  font-family: 'Material Icons';
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url('../fonts/MaterialIcons-Regular-2d8017489da689caedc1.woff2') format('woff2'),
       url('../fonts/MaterialIcons-Regular-08cefa1bc6566a650da7.woff') format('woff');
}
.material-icons {
  font-family: 'Material Icons' !important;
  font-weight: normal; font-style: normal; font-size: 24px; line-height: 1;
  letter-spacing: normal; text-transform: none; display: inline-block;
  white-space: nowrap; word-wrap: normal; direction: ltr;
  -webkit-font-feature-settings: 'liga'; font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
}

/* ===== Utilitaires hummingbird/Bootstrap absents du bundle prod ===== */
.d-none { display: none !important; }
@media (min-width: 768px) { .d-md-none { display: none !important; } }
.tab-content > .tab-pane { display: none; }
.tab-content > .tab-pane.active { display: block; }

/* ===== Checkout etape 1 (Informations personnelles) : invite / connexion =====
   Markup 100% hummingbird de base (nav-underline + tab-pane + form-check-inline
   + input-group mot de passe). Le bundle prod n'a pas ces styles -> puces de
   liste, radios empilees, bouton mdp qui passe a la ligne. Restyle premium. */
.vre-checkout__step .nav {
  list-style: none; display: flex; gap: 10px; flex-wrap: wrap;
  margin: 0 0 22px; padding: 0; border: 0;
}
.vre-checkout__step .nav li { list-style: none; }
.vre-checkout__step .nav li::marker { content: none; }
.vre-checkout__step .nav-link {
  display: inline-flex; align-items: center;
  padding: 12px 24px; border: 1px solid var(--line); border-radius: 999px;
  background: #fff; color: var(--ink);
  font-family: "Hanken Grotesk", sans-serif; font-size: 13px; font-weight: 600;
  letter-spacing: .02em; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.vre-checkout__step .nav-link:hover { border-color: var(--ink); }
.vre-checkout__step .nav-link.active { background: var(--ink); border-color: var(--ink); color: #fff; }

/* Radios (Titre M. / Mme) sur une ligne, comme hummingbird de base */
.vre-checkout__step .form-check-inline {
  display: inline-flex !important; align-items: center;
  margin: 2px 24px 2px 0 !important;
}

/* Champ mot de passe : input + bouton oeil dans un seul groupe arrondi */
.vre-checkout__step .input-group { display: flex; flex-wrap: nowrap; align-items: stretch; width: 100%; }
.vre-checkout__step .input-group .form-control {
  flex: 1 1 auto; width: 1% !important;
  border-radius: 12px 0 0 12px !important; border-right: 0 !important;
}
.vre-checkout__step .input-group .btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 54px; padding: 0 15px; margin: 0;
  border: 1px solid var(--line); border-left: 0; border-radius: 0 12px 12px 0;
  background: #fff; color: var(--slate); cursor: pointer; box-shadow: none;
  transition: color .2s, background .2s;
}
.vre-checkout__step .input-group .btn:hover { color: var(--ink); background: #f7f5f1; }
.vre-checkout__step .input-group .btn .material-icons { font-size: 20px; }

/* Bloc « Creer un compte (optionnel) » */
.vre-checkout__step .form-check-label em { color: var(--slate); font-size: 13px; }
.vre-checkout__step .js-password-form__input-wrapper { margin-top: 14px; }

/* ===== Carrousel Bootstrap (galerie produit) — absent du bundle prod =====
   Le theme habille la galerie (.vre-product .carousel-*) mais compte sur Bootstrap
   pour la mecanique. Sans elle, les .carousel-item s'empilaient verticalement.
   La navigation est assuree par hooks.js. */
.carousel { position: relative; }
.carousel-inner { position: relative; width: 100%; overflow: hidden; }
.carousel-inner > .carousel-item { display: none; width: 100%; }
.carousel-inner > .carousel-item.active { display: block; }
/* dans la galerie produit, les items sont des <button> */
button.carousel-item { padding: 0; border: 0; background: none; text-align: inherit; cursor: zoom-in; }

.carousel-control-prev,
.carousel-control-next {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 4;
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0;
  border: 1px solid var(--line); border-radius: 999px;
  background: rgba(255,255,255,.92); color: var(--ink);
  cursor: pointer; transition: background .2s, border-color .2s;
}
.carousel-control-prev { left: 12px; }
.carousel-control-next { right: 12px; }
.carousel-control-prev:hover,
.carousel-control-next:hover { background: #fff; border-color: var(--ink); }
.carousel-control-prev-icon,
.carousel-control-next-icon {
  display: block; width: 10px; height: 10px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
}
.carousel-control-prev-icon { transform: rotate(135deg); margin-left: 4px; }
.carousel-control-next-icon { transform: rotate(-45deg); margin-right: 4px; }

/* vignette active */
.product__thumbnail.active { outline: 2px solid var(--eau-deep); outline-offset: 2px; border-radius: 10px; }

/* pas de scroll de la page quand la modale est ouverte */
body.modal-open { overflow: hidden; }

/* ===== Footer : passage en une colonne sur mobile =====
   .foot-top restait en 2 colonnes (1fr 2fr) jusqu'aux tres petits ecrans :
   la colonne de marque tombait a ~107px et le texte se brisait tous les 2 mots. */
@media (max-width: 760px) {
  .foot-top { grid-template-columns: 1fr !important; gap: 30px !important; }
  .foot-brand p { max-width: none; }
  .foot-modules { grid-column: 1 / -1; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 28px 22px; }
}

/* ===== Utilitaires Bootstrap manquants (images) =====
   Sans .img-fluid{height:auto}, l'attribut HTML height="720" l'emportait sur
   aspect-ratio : les visuels produit occupaient 720px de haut pour une image
   reellement carree -> enorme vide, surtout sur mobile. */
.img-fluid { max-width: 100%; height: auto; }
.w-100 { width: 100% !important; }

/* ===== Accordeons fiche produit (Bootstrap Collapse absent du bundle) =====
   Le theme stylise deja les entetes et l'etat :not(.collapsed), mais rien ne
   masquait les panneaux : tout restait ouvert en permanence et le clic sur
   l'entete etait inerte. Le pliage est pilote par hooks.js. */
.vre-product .product__accordion .accordion-collapse:not(.show) { display: none; }
.vre-product .product__accordion .accordion-button {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; text-align: left; cursor: pointer;
}
.vre-product .product__accordion .accordion-button::after {
  content: ""; flex: 0 0 auto;
  width: 10px; height: 10px; margin-left: 18px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg); transition: transform .25s;
}
.vre-product .product__accordion .accordion-button:not(.collapsed)::after {
  transform: rotate(-135deg);
}

/* ===== Checkout : modales Bootstrap 4 des modules de paiement =====
   ps_wirepayment injecte une modale « Plus d'informations » en syntaxe
   Bootstrap 4 (data-toggle / data-dismiss). Bootstrap etant absent du bundle,
   elle s'affichait EN CLAIR au milieu de l'option de paiement, croix « x »
   comprise. On la masque et on la stylise correctement une fois ouverte
   (ouverture/fermeture assurees par hooks.js). */
.vre-checkout__step .modal:not(.show) { display: none !important; }
.vre-checkout__step .modal.show {
  position: fixed; inset: 0; z-index: 1060;
  display: flex !important; align-items: center; justify-content: center;
  padding: 20px; background: rgba(7,28,40,.72);
}
.vre-checkout__step .modal.show .modal-dialog { width: 100%; max-width: 520px; margin: 0; }
.vre-checkout__step .modal.show .modal-content {
  border: 1px solid var(--line); border-radius: 16px; background: #fff;
  box-shadow: 0 30px 90px -40px rgba(7,28,40,.6); overflow: hidden;
}
.vre-checkout__step .modal .modal-header {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 20px 10px; border-bottom: 1px solid var(--line);
}
.vre-checkout__step .modal .modal-title { font-family: "Fraunces", serif; font-size: 19px; color: var(--ink); margin: 0; }
.vre-checkout__step .modal .modal-body { padding: 16px 20px 20px; color: var(--slate); font-size: 14px; }
.vre-checkout__step .modal .close {
  flex: 0 0 auto; padding: 0 4px; border: 0; background: none;
  font-size: 26px; line-height: 1; color: var(--slate); cursor: pointer;
}
.vre-checkout__step .modal .close:hover { color: var(--ink); }

/* ===== Checkout : signalement des champs en erreur =====
   login.css stylise les alertes de la page d'inscription (.vre-auth-card) mais
   rien ne les stylisait dans le tunnel : l'erreur s'affichait sans fond ni
   couleur, et le champ fautif n'etait pas identifiable. On reprend le meme
   habillage et on marque le champ concerne. */
.vre-checkout__step .alert {
  border-radius: 12px !important;
  padding: 14px 16px !important;
  margin: 10px 0 0 !important;
  border: 1px solid transparent !important;
  font-size: 14px !important;
}
.vre-checkout__step .alert-danger {
  background: rgba(230,48,39,.08) !important;
  color: var(--red) !important;
  border-color: rgba(230,48,39,.2) !important;
}
.vre-checkout__step .help-block { margin: 0; }

/* champ fautif : bordure rouge + libelle rouge */
.vre-checkout__step .has-error .form-control,
.vre-checkout__step .has-error .form-select {
  border-color: var(--red) !important;
  box-shadow: 0 0 0 3px rgba(230,48,39,.12) !important;
}
.vre-checkout__step .has-error .form-label { color: var(--red) !important; }

/* la croix de fermeture de l'alerte (Bootstrap absent du bundle) */
.vre-checkout__step .alert-dismissible { position: relative; padding-right: 44px !important; }
.vre-checkout__step .alert .btn-close {
  position: absolute; top: 10px; right: 12px;
  width: 22px; height: 22px; padding: 0; border: 0; border-radius: 999px;
  background: none; color: inherit; opacity: .55; cursor: pointer;
}
.vre-checkout__step .alert .btn-close::before { content: "\00d7"; font-size: 19px; line-height: 1; }
.vre-checkout__step .alert .btn-close:hover { opacity: 1; }


/* --- Option de livraison / paiement cochee ---------------------------------
   theme.css stylait deja .carrier.selected et .payment-option.selected, mais
   aucun script n'ajoutait la classe (hooks.js s'en charge desormais). Le style
   .selected etait par ailleurs identique au :hover : on le renforce pour que la
   carte cochee reste identifiable quand la souris est ailleurs. */
.vre-checkout__step .carrier.selected,
.vre-checkout__step .payment-option.selected {
  border-color: var(--eau) !important;
  background: #fff !important;
  box-shadow: 0 0 0 3px rgba(14, 155, 214, .14);
}
.vre-checkout__step .carrier.selected .carrier-name,
.vre-checkout__step .payment-option.selected .payment-option-name { color: var(--eau); }


/* ============ Carte "Informations de paiement" (confirmation de commande) ============
   Les modules de paiement (ps_wirepayment, stripe_official...) rendent leur bloc en
   markup Bootstrap (.card / .card-body / .card-footer / .dl-list / .h2 / .h3 /
   .text-secondary). Bootstrap etant absent du bundle prod, tout arrivait sans style :
   carte transparente, sans bordure ni radius, liste de definitions a plat. On habille
   ces classes avec les tokens du theme, en restant scope a la confirmation pour ne
   rien casser ailleurs. Le cadre exterieur est deja porte par
   .vre-confirmation__module-card : la .card interieure reste donc transparente. */
.vre-confirmation__module-card .card {
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  margin: 0;
}
.vre-confirmation__module-card .card-body { padding: 0; }

.vre-confirmation__module-card .card-body > .h2,
.vre-confirmation__module-card .card-body > h2 {
  font-family: "Fraunces", Georgia, serif;
  font-size: 26px;
  font-weight: 400;
  line-height: 1.14;
  color: var(--ink);
  margin: 0 0 6px;
}
.vre-confirmation__module-card .card-subtitle,
.vre-confirmation__module-card .card-body > .h3 {
  display: block;
  font-family: "Hanken Grotesk", system-ui, sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--eau);
  margin: 0 0 20px;
}
.vre-confirmation__module-card p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--slate);
  margin: 0 0 18px;
}
.vre-confirmation__module-card p:last-child { margin-bottom: 0; }

/* Coordonnees bancaires : paire libelle / valeur dans un encart */
.vre-confirmation__module-card .dl-list {
  display: grid;
  grid-template-columns: minmax(0, 190px) minmax(0, 1fr);
  gap: 12px 24px;
  align-items: baseline;
  margin: 0 0 22px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #faf9f5;
}
.vre-confirmation__module-card .dl-list dt {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--slate);
  margin: 0;
}
.vre-confirmation__module-card .dl-list dd {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
/* le montant est la 1re valeur : on lui donne le poids d'un chiffre cle */
.vre-confirmation__module-card .dl-list dd:first-of-type {
  font-family: "Fraunces", Georgia, serif;
  font-size: 22px;
  line-height: 1.2;
}

/* Pied de carte : simple separateur. Volontairement SANS marge negative de
   pleine largeur : le padding de .vre-confirmation__module-card change selon le
   breakpoint (28px puis 24px), une marge negative fixe debordait de la carte. */
.vre-confirmation__module-card .card-footer {
  margin: 22px 0 0;
  padding: 18px 0 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: none;
  font-size: 14px;
  line-height: 1.6;
  color: var(--slate);
}
.vre-confirmation__module-card .card-footer a {
  color: var(--eau);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.vre-confirmation__module-card .card-footer a:hover { color: var(--ink); }

@media (max-width: 640px) {
  .vre-confirmation__module-card .dl-list {
    grid-template-columns: 1fr;
    gap: 4px 0;
    padding: 18px;
  }
  .vre-confirmation__module-card .dl-list dt { margin-top: 12px; }
  .vre-confirmation__module-card .dl-list dt:first-child { margin-top: 0; }
}


/* ============ Voile de chargement des moyens de paiement ============
   Pose par le garde inline de head.tpl DES LE PREMIER RENDU (html.vre-paiement-attente),
   puis repris par hooks.js sur la liste elle-meme. Les deux selecteurs masquent la
   meme chose, ce qui permet de passer le relais sans laisser une seule frame de
   contenu visible.
   Le contenu reel garde sa place dans le flux et n'est que rendu invisible :
   surtout pas display:none, sinon les modules qui mesurent leur conteneur ou y
   montent une iframe (Stripe, PayPal...) se retrouvent a 0x0.
   Pas de faux squelette de cartes : le nombre d'options finales est inconnu (un
   module peut masquer la sienne), de fausses cartes se liraient comme des boites
   vides. Un seul panneau calme, puis fondu croise vers le contenu reel. */
html.vre-paiement-attente .payment-options > *,
.vre-checkout__step .payment-options.vre-payment-loading > *:not(.vre-payment-loader) {
  opacity: 0;
  pointer-events: none;
}

/* Le panneau, c'est le conteneur lui-meme. box-shadow inset plutot que border :
   un cadre de 1px ajouterait 2px de layout et decalerait le contenu a la levee.
   HAUTEUR FIGEE : masquer l'opacite ne suffisait pas. Le contenu reel garde sa
   place dans le flux, donc quand un module injecte son formulaire puis masque son
   option, le conteneur se redimensionne SOUS le voile -- le panneau suivait et on
   voyait grand -> petit -> grand. On fige donc la hauteur du premier rendu
   jusqu'a la levee, ou hooks.js anime une transition unique vers la hauteur
   reelle. overflow:hidden pour que le contenu masque ne deborde pas. */
html.vre-paiement-attente .payment-options,
.vre-checkout__step .payment-options.vre-payment-loading {
  position: relative;
  height: 96px;
  overflow: hidden;
  border-radius: 14px;
  background: #faf9f5;
  box-shadow: inset 0 0 0 1px var(--line);
}
.payment-options {
  transition: height .26s ease, background-color .26s ease, box-shadow .26s ease;
}
.payment-options > * { transition: opacity .26s ease; }

.vre-payment-loader {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 1;
  transition: opacity .26s ease;
}
.vre-payment-loader--sortie { opacity: 0; }
.vre-payment-loader::before {
  content: "";
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid rgba(14, 155, 214, .2);
  border-top-color: var(--eau);
  animation: vre-payment-spin .7s linear infinite;
}
@keyframes vre-payment-spin {
  to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .vre-payment-loader::before { animation-duration: 2.4s; }
  .payment-options,
  .payment-options > *,
  .vre-payment-loader { transition: none; }
}


/* ============ Cible de clic des moyens de paiement ============
   Le <label> de PrestaShop ne couvre que le titre : une bande de 177x20 px dans
   une carte de 695x84. Cliquer "sur la box" ne faisait donc rien la plupart du
   temps, et il fallait viser le radio au pixel pres.
   On etend le label a toute la carte avec un ::after, ce qui donne l'activation
   NATIVE du navigateur : pas de JS, pas d'evenement synthetique, et ca marche
   meme si le JS casse.
   Le `:not(:has(input:checked))` est essentiel : sur l'option selectionnee le
   module affiche son formulaire DANS la carte (champ carte bancaire, boutons).
   Une surcouche permanente les rendrait inaccessibles -- elle ne doit exister
   que tant que l'option n'est pas choisie. */
.vre-checkout__step .payment-option { position: relative; }
.vre-checkout__step .payment-option:not(:has(input:checked)) .payment-option__label::after {
  content: "";
  position: absolute;
  inset: 0;
  cursor: pointer;
}
.vre-checkout__step .payment-option__label { cursor: pointer; }


/* ============ Retour visuel du choix d'un moyen de paiement ============
   theme.css donnait au `:hover` EXACTEMENT le rendu de `.selected` (bordure
   --eau + fond blanc), l'etat choisi n'ajoutant qu'un halo translucide. Sur
   desktop la carte qu'on s'apprete a cliquer est donc deja bleue : le clic ne
   produisait presque aucun changement visible et paraissait mort.
   On redescend le survol a une simple intention, et on reserve la couleur pleine
   a l'option reellement choisie. Specificite volontairement superieure a celle de
   theme.css (le `:not(.selected)` ajoute une classe), pas de !important. */
.vre-checkout__step .payment-option:not(.selected):hover,
.vre-checkout__step .carrier:not(.selected):hover {
  border-color: rgba(14, 155, 214, .32);
  background: #fff;
}

/* Retour tactile immediat : la carte repond au doigt/clic avant meme que l'etat
   ne change, ce qui supprime la sensation de latence. */
.vre-checkout__step .payment-option:not(.selected):active {
  transform: scale(.995);
  border-color: rgba(14, 155, 214, .55);
}
.vre-checkout__step .payment-option { transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease, transform .1s ease; }

/* L'option choisie : bordure pleine + halo (deja poses plus haut) ET le libelle
   passe en --eau. La regle d'origine visait `.payment-option-name`, une classe
   que ce theme ne rend pas -- le vrai libelle est `.payment-option__label`. */
.vre-checkout__step .payment-option.selected .payment-option__label,
.vre-checkout__step .payment-option.selected .payment-option-name {
  color: var(--eau);
  font-weight: 600;
}

@media (prefers-reduced-motion: reduce) {
  .vre-checkout__step .payment-option:not(.selected):active { transform: none; }
}


/* ============ Libelle des CGV au paiement ============
   Le lien "conditions generales de vente" heritait de la couleur du texte, sans
   soulignement : indiscernable du libelle alors qu'il en occupe ~45 % de la
   largeur. En cliquant le libelle pour cocher la case, on tombait une fois sur
   deux sur le lien sans le savoir -> redirection vers les CGV. On le rend
   identifiable au premier coup d'oeil, et on signale qu'il s'ouvre a cote. */
.vre-checkout__step .js-conditions-to-approve .form-check-label { cursor: pointer; line-height: 1.6; }
.vre-checkout__step .js-conditions-to-approve .form-check-label a {
  color: var(--eau);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  white-space: nowrap;
}
.vre-checkout__step .js-conditions-to-approve .form-check-label a::after {
  content: "\2197";              /* fleche "s'ouvre a cote" */
  font-size: .78em;
  margin-left: .25em;
  text-decoration: none;
  display: inline-block;
}
.vre-checkout__step .js-conditions-to-approve .form-check-label a:hover,
.vre-checkout__step .js-conditions-to-approve .form-check-label a:focus-visible {
  color: var(--ink);
  text-decoration-thickness: 2px;
}
