/* Tunnel : panier, commande (blocs WooCommerce) et Mon compte (shortcode), body.fqs-tunnel.
   Pages rendues par le modèle de page de Hello Elementor (titre H1 puis contenu).
   Variables Elementor v4 --fqs-* uniquement. */

/* Panier plein : WooCommerce masque le bloc « panier vide » pendant le chargement par cart.css,
   imprimé en pied de page avec ce thème ; jusque-là, « Votre panier est actuellement vide » et
   la grille des nouveautés s'affichaient 1,5 à 4 s (mesure du 19/10/2026). Même règle, en tête. */
.wp-block-woocommerce-cart.is-loading .wp-block-woocommerce-empty-cart-block { display: none; }
/* Hauteur du squelette réservée pendant ce temps : sans elle, le pied de page s'affichait en haut
   de l'écran puis était repoussé par le squelette (CLS 0,52 en mobile ralenti). */
.wp-block-woocommerce-cart.is-loading { min-height: 34rem; }

/* ---------- Conteneur et titre ---------- */
body.fqs-tunnel { background: var(--fqs-blanc); }
body.fqs-tunnel .site-main {
  box-sizing: border-box; width: 100%; max-width: 1280px; margin: 0 auto;
  padding: var(--fqs-space-md) clamp(1rem, 4vw, 3rem) var(--fqs-space-section);
  font-family: var(--fqs-texte); color: var(--fqs-bleu-nuit);
}
body.fqs-tunnel .site-main .page-header { margin: 0 0 var(--fqs-space-lg); padding: 0; }
body.fqs-tunnel .site-main .entry-title {
  margin: 0; font-family: var(--fqs-titre); font-weight: 700; font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: .95; letter-spacing: .005em; color: var(--fqs-bleu-nuit);
}
body.fqs-tunnel .site-main a { color: var(--fqs-bleu-nuit); text-decoration-color: color-mix(in srgb, var(--fqs-bleu-nuit) 35%, transparent); text-underline-offset: .2em; }
body.fqs-tunnel .site-main a:hover { color: var(--fqs-orange-fonce); }

/* Les blocs portent « alignwide » : Hello les décale de -80 px. Ici, pleine largeur du conteneur. */
body.fqs-tunnel .page-content > .alignwide, body.fqs-tunnel .page-content > .alignfull { width: auto; max-width: none; margin-inline: 0; }

/* ---------- Typographie des blocs ---------- */
body.fqs-tunnel .wp-block-woocommerce-cart, body.fqs-tunnel .wp-block-woocommerce-checkout { font-family: var(--fqs-texte); color: var(--fqs-bleu-nuit); }
body.fqs-tunnel .wc-block-components-title.wc-block-components-title,
body.fqs-tunnel .wc-block-cart__totals-title.wc-block-cart__totals-title,
body.fqs-tunnel .wc-block-components-checkout-step__title {
  font-family: var(--fqs-titre); font-weight: 700; font-size: clamp(1.4rem, 2.4vw, 1.75rem); line-height: 1.05; letter-spacing: .005em; text-transform: none; color: var(--fqs-bleu-nuit);
}
body.fqs-tunnel .wc-block-components-checkout-step__description,
body.fqs-tunnel .wc-block-components-checkout-step__heading-content { font-size: .95rem; }
body.fqs-tunnel .wc-block-components-order-summary-item__description,
body.fqs-tunnel .wc-block-components-checkout-order-summary__title-text,
body.fqs-tunnel .wc-block-components-order-summary .wc-block-components-panel__button { font-family: var(--fqs-texte); color: var(--fqs-bleu-nuit); }
body.fqs-tunnel .wc-block-components-product-name { font-weight: 600; font-size: 1.05rem; line-height: 1.3; color: var(--fqs-bleu-nuit); text-decoration: none; }
body.fqs-tunnel .wc-block-components-product-name:hover { color: var(--fqs-orange-fonce); text-decoration: underline; }
/* Description courte (fiche technique) : inutile dans le panier, et ses entités s'y affichent brutes */
body.fqs-tunnel .wc-block-components-product-metadata__description { display: none; }
body.fqs-tunnel .wc-block-components-product-price, body.fqs-tunnel .wc-block-cart-item__total,
body.fqs-tunnel .wc-block-components-totals-item__value { font-family: var(--fqs-texte); font-weight: 600; font-variant-numeric: tabular-nums; color: var(--fqs-canard); }
body.fqs-tunnel .wc-block-components-product-price del { color: var(--fqs-bleu-nuit); opacity: 1; }
/* Prix des articles (panier, récapitulatif du checkout) : 18 px, pour que le prix promo reste
   nettement plus grand que le prix barré (14 px au moins, trait fin sous 1rem). */
body.fqs-tunnel .wc-block-components-product-price { font-size: 1.125rem; }
body.fqs-tunnel .wc-block-components-product-price del { font-size: max(.62em, .875rem); text-decoration-thickness: 1.5px; }
/* Ligne d'article en mobile (classe is-mobile posée par WooCommerce) : la grille des blocs
   (80px 132px 40px) rejetait le total dans une 4e colonne implicite, large comme le badge
   « Économisez … » (qui ne revient pas à la ligne) : ligne de 400 px, page plus large que
   l'écran. Le produit prend la place restante, le total la sienne ; le badge passe sous le prix
   et revient à la ligne au besoin, sans jamais déborder. */
body.fqs-tunnel .wc-block-cart.is-mobile .wc-block-cart-items__row { grid-template-columns: 80px minmax(0, 1fr) auto; }
body.fqs-tunnel .wc-block-cart.is-mobile .wc-block-cart-item__product { grid-column: 2; min-width: 0; }
body.fqs-tunnel .wc-block-cart.is-mobile .wc-block-cart-item__total { grid-column: 3; min-width: 0; max-width: 7.5rem; }
/* Le badge ne revient à la ligne que sur petit écran ; en bureau, la place suffit (une ligne). */
@media (max-width: 479px) {
  body.fqs-tunnel .wc-block-components-sale-badge { max-width: 100%; white-space: normal; overflow-wrap: anywhere; text-align: center; }
}
/* Écran très étroit : le total passe sous le produit (prix, puis badge à côté ou dessous). */
@media (max-width: 359px) {
  body.fqs-tunnel .wc-block-cart.is-mobile .wc-block-cart-items__row { grid-template-columns: 80px minmax(0, 1fr); }
  body.fqs-tunnel .wc-block-cart.is-mobile .wc-block-cart-item__total { grid-column: 2; grid-row: 2; max-width: none; justify-self: start; }
  body.fqs-tunnel .wc-block-cart.is-mobile .wc-block-cart-item__total-price-and-sale-badge-wrapper { flex-direction: row; flex-wrap: wrap; align-items: center; gap: .25rem .5rem; }
  /* Récapitulatif du checkout : il manquait 4 px pour garder barré et promo sur une ligne. */
  body.fqs-tunnel .wc-block-components-order-summary-item__description { padding-inline-start: .75rem; }
  body.fqs-tunnel .wc-block-components-order-summary-item__individual-prices del { margin-inline-end: .3rem; }
}
body.fqs-tunnel .wc-block-components-totals-footer-item .wc-block-components-totals-item__label,
body.fqs-tunnel .wc-block-components-totals-footer-item .wc-block-components-totals-item__value { font-family: var(--fqs-titre); font-weight: 700; font-size: 1.6rem; line-height: 1; }
body.fqs-tunnel .wc-block-components-totals-footer-item .wc-block-components-totals-item__label { color: var(--fqs-bleu-nuit); }
/* Le montant total est un prix : Spectral 600, chiffres tabulaires ; le libellé « Total » reste en titre. */
body.fqs-tunnel .wc-block-components-totals-footer-item .wc-block-components-totals-item__value { font-family: var(--fqs-texte); font-weight: 600; font-variant-numeric: tabular-nums; }
body.fqs-tunnel .wc-block-cart-item__image img, body.fqs-tunnel .wc-block-components-order-summary-item__image img { border-radius: var(--fqs-radius-sm); background: var(--fqs-fond-doux); }

/* ---------- Boutons : pilule orange (bouton principal) ----------
   Spécificité au-dessus des styles globaux (wp-element-button) et du kit Elementor (.elementor-kit-11 button). */
body.fqs-tunnel .wc-block-components-button:not(.is-link) {
  min-height: 52px; padding: .8rem 1.6rem; border: 0; border-radius: var(--fqs-radius-pill); box-shadow: none;
  background: var(--fqs-orange); color: var(--fqs-bleu-nuit);
  font-family: var(--fqs-texte); font-weight: 600; font-size: 1.05rem; line-height: 1.1; text-transform: none; letter-spacing: 0;
  transition: background-color .15s ease-out, color .15s ease-out;
}
body.fqs-tunnel .wc-block-components-button:not(.is-link) .wc-block-components-button__text { color: inherit; }
body.fqs-tunnel .wc-block-components-button:not(.is-link):hover,
body.fqs-tunnel .wc-block-components-button:not(.is-link):focus { background: var(--fqs-bleu-nuit); color: var(--fqs-blanc); }
body.fqs-tunnel .wc-block-components-button:not(.is-link):focus-visible { outline: 3px solid var(--fqs-canard); outline-offset: 2px; }
body.fqs-tunnel .wc-block-components-button:not(.is-link):disabled { opacity: .55; cursor: not-allowed; }
body.fqs-tunnel .wc-block-components-button.is-link { color: var(--fqs-bleu-nuit); font-family: var(--fqs-texte); text-transform: none; }
body.fqs-tunnel .wc-block-cart__submit-button, body.fqs-tunnel .wc-block-components-checkout-place-order-button { width: 100%; }
/* « Valider la commande » est un lien : sans le soulignement des liens du contenu */
body.fqs-tunnel .site-main a.wc-block-components-button, body.fqs-tunnel .site-main a.wc-block-components-button:hover { text-decoration: none; }

/* ---------- Champs ---------- */
body.fqs-tunnel .wc-block-components-text-input input[type],
body.fqs-tunnel .wc-block-components-textarea,
body.fqs-tunnel .wc-blocks-components-select .wc-blocks-components-select__select {
  border: 2px solid var(--fqs-bordure); border-radius: var(--fqs-radius-sm); background: var(--fqs-blanc);
  font-family: var(--fqs-texte); font-size: 1rem; color: var(--fqs-bleu-nuit); box-shadow: none;
}
body.fqs-tunnel .wc-block-components-text-input input[type]:focus,
body.fqs-tunnel .wc-block-components-textarea:focus,
body.fqs-tunnel .wc-blocks-components-select .wc-blocks-components-select__select:focus {
  border-color: var(--fqs-bleu-nuit); outline: 3px solid color-mix(in srgb, var(--fqs-canard) 45%, transparent); outline-offset: 0; box-shadow: none;
}
body.fqs-tunnel .wc-block-components-text-input label, body.fqs-tunnel .wc-blocks-components-select__label { color: var(--fqs-bleu-nuit); font-family: var(--fqs-texte); }
body.fqs-tunnel .wc-block-components-text-input.has-error input[type] { border-color: var(--fqs-orange-fonce); }
body.fqs-tunnel .wc-block-components-validation-error { color: var(--fqs-orange-fonce); }
/* Quantité : largeur à son contenu (WooCommerce la fixe, le « + » débordait), boutons espacés
   du bord, focus discret sur l'ensemble comme la recherche du header (pas de cadre décalé). */
body.fqs-tunnel .wc-block-components-quantity-selector {
  display: inline-flex; align-items: stretch; width: auto; min-width: 0; padding: 0 .25rem;
  border: 2px solid var(--fqs-bordure); border-radius: var(--fqs-radius-sm); background: var(--fqs-blanc);
  transition: border-color .15s ease-out, box-shadow .15s ease-out;
}
body.fqs-tunnel .wc-block-components-quantity-selector::after { display: none; }
body.fqs-tunnel .wc-block-components-quantity-selector:focus-within { border-color: var(--fqs-bleu-nuit); box-shadow: 0 0 0 4px color-mix(in srgb, var(--fqs-bleu-nuit) 15%, transparent); }
body.fqs-tunnel .wc-block-components-quantity-selector input.wc-block-components-quantity-selector__input {
  width: 2.75rem; min-width: 0; margin: 0; padding: 0; border: 0; background: transparent; box-shadow: none;
  font-family: var(--fqs-texte); font-weight: 600; font-size: 1rem; color: var(--fqs-bleu-nuit); text-align: center;
}
body.fqs-tunnel .wc-block-components-quantity-selector .wc-block-components-quantity-selector__button {
  min-width: 2.5rem; margin: 0; padding: 0 .5rem; font-family: var(--fqs-texte); border: 0; border-radius: var(--fqs-radius-sm); background: transparent; box-shadow: none;
  color: var(--fqs-bleu-nuit); font-size: 1.15rem; line-height: 1;
}
body.fqs-tunnel .wc-block-components-quantity-selector .wc-block-components-quantity-selector__button:hover:not(:disabled) { background: var(--fqs-fond-doux); }
body.fqs-tunnel .wc-block-components-quantity-selector input.wc-block-components-quantity-selector__input:focus,
body.fqs-tunnel .wc-block-components-quantity-selector .wc-block-components-quantity-selector__button:focus { outline: none; box-shadow: none; }
body.fqs-tunnel .wc-block-cart-item__remove-link { color: var(--fqs-bleu-nuit); }

/* Packs WPC : les livres du pack (lignes woosb-bundled) ont une quantité verrouillée par le
   pack. À la place du champ figé : la mention « Inclus dans le pack », vignette réduite. */
body.fqs-tunnel .woosb-bundled .wc-block-cart-item__quantity .wc-block-components-quantity-selector { display: none; }
body.fqs-tunnel .woosb-bundled .wc-block-cart-item__quantity::before { content: "Inclus dans le pack"; font-size: .9rem; font-weight: 600; color: var(--fqs-canard); }
body.fqs-tunnel .woosb-bundled .wc-block-cart-item__image img { max-width: 56px; margin-inline-start: auto; }
body.fqs-tunnel .woosb-bundled .wc-block-components-product-name { font-weight: 400; font-size: .98rem; }

/* Choix (livraison, paiement) et cases */
body.fqs-tunnel .wc-block-components-radio-control--highlight-checked .wc-block-components-radio-control-accordion-option,
body.fqs-tunnel .wc-block-components-radio-control--highlight-checked .wc-block-components-radio-control__option { border-radius: var(--fqs-radius-sm); }
body.fqs-tunnel .wc-block-components-radio-control--highlight-checked::after { border-radius: var(--fqs-radius-sm); }
body.fqs-tunnel .wc-block-components-radio-control--highlight-checked .wc-block-components-radio-control-accordion-option--checked-option-highlighted,
body.fqs-tunnel .wc-block-components-radio-control--highlight-checked label.wc-block-components-radio-control__option--checked-option-highlighted { box-shadow: inset 0 0 0 2px var(--fqs-canard); }
body.fqs-tunnel .wc-block-components-radio-control__input:checked { border-color: var(--fqs-canard); }
body.fqs-tunnel .wc-block-components-radio-control__input:checked::before { background: var(--fqs-canard); }
body.fqs-tunnel .wc-block-components-checkbox .wc-block-components-checkbox__input[type=checkbox] { border: 2px solid var(--fqs-bordure); border-radius: 4px; }
body.fqs-tunnel .wc-block-components-checkbox .wc-block-components-checkbox__input[type=checkbox]:checked { background: var(--fqs-canard); border-color: var(--fqs-canard); }
body.fqs-tunnel .wc-block-components-checkbox .wc-block-components-checkbox__mark { fill: var(--fqs-blanc); }
body.fqs-tunnel .wc-block-components-checkbox__input:focus-visible, body.fqs-tunnel .wc-block-components-radio-control__input:focus-visible { outline: 3px solid var(--fqs-canard); outline-offset: 2px; }

/* Grille du panier et de la commande en deux colonnes, fixée par le thème (§59) : WooCommerce
   11.1.2 donnait 65 % / 35 % avec des marges intérieures en pourcentages ; 11.2.0 passe à une
   colonne latérale fixe de 360 px et un espace de 48 px (« GRATUIT » passait sous la livraison).
   Mêmes valeurs que 11.1.2, quelle que soit la version, dès 920 px de conteneur (seuil des deux
   colonnes en 11.2.0 ; en dessous, la mise en page de WooCommerce). Minimum de 24,5rem pour la
   colonne latérale : la ligne « Livraison à domicile (Livraison gratuite) GRATUIT » demande 337 px,
   plus les marges du récapitulatif ; à 1024 px, 330 px ne suffisaient pas, même en 11.1.2. */
@container (min-width: 920px) {
  body.fqs-tunnel .wc-block-components-sidebar-layout { column-gap: 0; }
  body.fqs-tunnel .wc-block-components-sidebar-layout .wc-block-components-main { flex: 1 1 0; min-width: 0; width: auto; padding-right: 4.5283018868%; }
  body.fqs-tunnel .wc-block-components-sidebar-layout .wc-block-components-sidebar { flex: 0 0 35%; width: 35%; min-width: 24.5rem; padding-left: 2.2641509434%; }
}

/* Récapitulatif, panneaux, messages */
body.fqs-tunnel .wc-block-components-sidebar .wc-block-components-panel, body.fqs-tunnel .wc-block-components-totals-wrapper { border-color: color-mix(in srgb, var(--fqs-bordure) 45%, transparent); }
body.fqs-tunnel .wc-block-checkout__sidebar .wp-block-woocommerce-checkout-order-summary-block,
body.fqs-tunnel .wc-block-cart__sidebar .wp-block-woocommerce-cart-order-summary-block {
  border: 0; border-radius: var(--fqs-radius-md); background: var(--fqs-fond-doux); padding: .25rem 1rem 1rem;
}
body.fqs-tunnel .wc-block-components-notice-banner { border-radius: var(--fqs-radius-sm); font-family: var(--fqs-texte); color: var(--fqs-bleu-nuit); }
body.fqs-tunnel .wc-block-components-notice-banner.is-error { border-color: var(--fqs-orange-fonce); }
body.fqs-tunnel .wc-block-components-notice-banner.is-success, body.fqs-tunnel .wc-block-components-notice-banner.is-info { border-color: var(--fqs-canard); background: var(--fqs-fond-doux); }
body.fqs-tunnel .wc-block-checkout__terms, body.fqs-tunnel .wc-block-components-checkout-return-to-cart-button { font-size: .95rem; }
body.fqs-tunnel .wp-block-woocommerce-empty-cart-block .wc-block-cart__empty-cart__title { font-family: var(--fqs-titre); font-weight: 700; color: var(--fqs-bleu-nuit); }
/* Panier vide, « Nouveau dans la boutique » : boutons de bloc WordPress (fond gris foncé par défaut,
   texte bleu nuit du thème, illisibles) alignés sur ceux des cartes de la boutique. Le séparateur à
   trois points au-dessus est celui du gabarit du panier vide de WooCommerce (style « points »). */
body.fqs-tunnel .wp-block-woocommerce-empty-cart-block .wc-block-grid__product-add-to-cart .wp-block-button__link {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: .55rem 1.1rem;
  border: 0; border-radius: var(--fqs-radius-pill); box-shadow: none; background: var(--fqs-orange); color: var(--fqs-bleu-nuit);
  font-family: var(--fqs-texte); font-weight: 600; font-size: .95rem; line-height: 1.1; text-transform: none; letter-spacing: 0;
  transition: background-color .15s ease-out, color .15s ease-out;
}
body.fqs-tunnel .wp-block-woocommerce-empty-cart-block .wc-block-grid__product-add-to-cart .wp-block-button__link:hover { background: var(--fqs-bleu-nuit); color: var(--fqs-blanc); }
body.fqs-tunnel .wp-block-woocommerce-empty-cart-block .wc-block-grid__product-add-to-cart .wp-block-button__link:focus-visible { outline: 3px solid var(--fqs-canard); outline-offset: 2px; }

/* ---------- Mon compte (shortcode) ---------- */
@media (min-width: 900px) {
  body.woocommerce-account.logged-in.fqs-tunnel .page-content > .woocommerce { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: var(--fqs-space-md) var(--fqs-space-xl); align-items: start; }
  /* Placement explicite : le conteneur des messages WooCommerce (premier enfant) prenait la première case. */
  body.woocommerce-account.logged-in.fqs-tunnel .page-content > .woocommerce > .woocommerce-notices-wrapper { grid-column: 1 / -1; }
  body.woocommerce-account.logged-in.fqs-tunnel .page-content > .woocommerce > .woocommerce-MyAccount-navigation { grid-column: 1; }
  body.woocommerce-account.logged-in.fqs-tunnel .page-content > .woocommerce > .woocommerce-MyAccount-content { grid-column: 2; }
}
body.fqs-tunnel .woocommerce-notices-wrapper:empty { display: none; }
body.fqs-tunnel .woocommerce-MyAccount-navigation, body.fqs-tunnel .woocommerce-MyAccount-content { float: none; width: auto; }
body.fqs-tunnel .woocommerce-MyAccount-navigation ul { display: flex; gap: .4rem; margin: 0 0 var(--fqs-space-lg); padding: 0; list-style: none; overflow-x: auto; scrollbar-width: none; }
body.fqs-tunnel .woocommerce-MyAccount-navigation ul::-webkit-scrollbar { display: none; }
body.fqs-tunnel .woocommerce-MyAccount-navigation li { flex: 0 0 auto; }
body.fqs-tunnel .woocommerce-MyAccount-navigation a {
  display: inline-flex; align-items: center; min-height: 44px; padding: .45rem 1rem; border: 2px solid var(--fqs-bordure); border-radius: var(--fqs-radius-pill);
  font-weight: 600; font-size: .95rem; color: var(--fqs-bleu-nuit); text-decoration: none; white-space: nowrap;
}
body.fqs-tunnel .woocommerce-MyAccount-navigation a:hover { border-color: var(--fqs-bleu-nuit); color: var(--fqs-bleu-nuit); }
body.fqs-tunnel .woocommerce-MyAccount-navigation .is-active a { border-color: var(--fqs-bleu-nuit); background: var(--fqs-bleu-nuit); color: var(--fqs-blanc); }
body.fqs-tunnel .woocommerce-MyAccount-navigation a:focus-visible { outline: 3px solid var(--fqs-canard); outline-offset: 2px; }
@media (min-width: 900px) {
  body.fqs-tunnel .woocommerce-MyAccount-navigation ul { flex-direction: column; overflow: visible; margin: 0; }
  body.fqs-tunnel .woocommerce-MyAccount-navigation a { display: flex; border-color: transparent; border-radius: var(--fqs-radius-sm); padding-inline: .9rem; }
  body.fqs-tunnel .woocommerce-MyAccount-navigation a:hover { border-color: transparent; background: var(--fqs-fond-doux); }
}
body.fqs-tunnel .woocommerce-MyAccount-content > p:first-child { font-size: 1.1rem; line-height: 1.6; }
body.fqs-tunnel .woocommerce-MyAccount-content h2, body.fqs-tunnel .woocommerce-MyAccount-content h3,
body.fqs-tunnel #customer_login h2, body.fqs-tunnel .woocommerce-Address-title h2, body.fqs-tunnel .woocommerce-Address-title h3 {
  margin: 0 0 .75rem; font-family: var(--fqs-titre); font-weight: 700; font-size: clamp(1.4rem, 2.4vw, 1.75rem); line-height: 1.05; color: var(--fqs-bleu-nuit);
}

/* Formulaires du compte (connexion, inscription, mot de passe oublié, détails, adresses) */
body.fqs-tunnel .woocommerce form .form-row { padding: 0; margin: 0 0 1rem; }
body.fqs-tunnel .woocommerce form .form-row label { font-weight: 600; color: var(--fqs-bleu-nuit); line-height: 1.4; }
body.fqs-tunnel .woocommerce form .form-row .input-text, body.fqs-tunnel .woocommerce form .form-row select, body.fqs-tunnel .woocommerce form .form-row textarea {
  box-sizing: border-box; width: 100%; min-height: 48px; padding: .6rem .9rem; border: 2px solid var(--fqs-bordure); border-radius: var(--fqs-radius-sm);
  background: var(--fqs-blanc); font-family: var(--fqs-texte); font-size: 1rem; color: var(--fqs-bleu-nuit);
}
body.fqs-tunnel .woocommerce form .form-row .input-text:focus, body.fqs-tunnel .woocommerce form .form-row select:focus { border-color: var(--fqs-bleu-nuit); outline: 3px solid color-mix(in srgb, var(--fqs-canard) 45%, transparent); outline-offset: 0; }
body.fqs-tunnel .woocommerce form .form-row .required { color: var(--fqs-orange-fonce); text-decoration: none; }
body.fqs-tunnel .woocommerce form.login, body.fqs-tunnel .woocommerce form.register, body.fqs-tunnel .woocommerce form.lost_reset_password {
  margin: 0; padding: clamp(1.25rem, 3vw, 2rem); border: 0; border-radius: var(--fqs-radius-md); background: var(--fqs-fond-doux);
}
body.fqs-tunnel #customer_login { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--fqs-space-lg); }
body.fqs-tunnel #customer_login::before, body.fqs-tunnel #customer_login::after { display: none; }
body.fqs-tunnel #customer_login .u-column1, body.fqs-tunnel #customer_login .u-column2 { float: none; width: auto; }
@media (min-width: 768px) { body.fqs-tunnel #customer_login { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
body.fqs-tunnel .woocommerce-form-login__rememberme { display: inline-flex; align-items: center; gap: .5rem; margin-inline-end: 1rem; }
body.fqs-tunnel .woocommerce-LostPassword { margin: 1rem 0 0; }
body.fqs-tunnel .woocommerce-privacy-policy-text { font-size: .9rem; }
body.fqs-tunnel fieldset { margin: var(--fqs-space-lg) 0 0; padding: 0; border: 0; }
body.fqs-tunnel fieldset legend { font-family: var(--fqs-titre); font-weight: 700; font-size: 1.4rem; color: var(--fqs-bleu-nuit); }

/* Commandes et adresses */
body.fqs-tunnel .woocommerce table.shop_table { border: 0; border-collapse: collapse; border-radius: 0; font-family: var(--fqs-texte); }
body.fqs-tunnel .woocommerce table.shop_table th { font-weight: 600; color: var(--fqs-bleu-nuit); border-bottom: 2px solid var(--fqs-bordure); }
body.fqs-tunnel .woocommerce table.shop_table td { border-top: 1px solid color-mix(in srgb, var(--fqs-bordure) 40%, transparent); vertical-align: middle; }
body.fqs-tunnel .woocommerce table.my_account_orders .button { min-height: 40px; padding: .4rem .9rem; font-size: .9rem; margin: .15rem .25rem .15rem 0; }
@media (max-width: 767px) {
  body.fqs-tunnel .woocommerce table.shop_table_responsive tr { display: block; margin-bottom: 1rem; padding: .75rem 1rem; border-radius: var(--fqs-radius-md); background: var(--fqs-fond-doux); }
  body.fqs-tunnel .woocommerce table.shop_table_responsive tr td { border: 0; background: transparent; }
  body.fqs-tunnel .woocommerce table.shop_table_responsive thead { display: none; }
}
body.fqs-tunnel .woocommerce-Addresses { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--fqs-space-lg); }
body.fqs-tunnel .woocommerce-Addresses::before, body.fqs-tunnel .woocommerce-Addresses::after { display: none; }
body.fqs-tunnel .woocommerce-Addresses .woocommerce-Address { float: none; width: auto; padding: 1.25rem; border-radius: var(--fqs-radius-md); background: var(--fqs-fond-doux); }
@media (min-width: 768px) { body.fqs-tunnel .woocommerce-Addresses { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
body.fqs-tunnel .woocommerce-Address-title { display: flex; flex-direction: column; align-items: flex-start; gap: .25rem; margin-bottom: .75rem; text-align: start; }
body.fqs-tunnel .woocommerce-Address-title h2, body.fqs-tunnel .woocommerce-Address-title h3 { float: none; margin: 0; text-align: start; }
body.fqs-tunnel .woocommerce-Address-title::before, body.fqs-tunnel .woocommerce-Address-title::after { display: none; }
body.fqs-tunnel .woocommerce-Address-title .edit { float: none; font-weight: 600; }
body.fqs-tunnel .woocommerce-Address address { font-style: normal; line-height: 1.6; }
body.fqs-tunnel .woocommerce-MyAccount-content mark { background: transparent; color: inherit; font-weight: 600; }

/* ---------- Formulaire Mailchimp (onglet « Abonnez-vous à la newsletter », popup) ----------
   Panier et commande : masqué, il couvrait le bas du tunnel. Onglet et popup partagent le même
   conteneur (div.mcforms-wrapper, id mcforms-<expérience>-<variation>), leur contenu est dans un
   shadow DOM : le thème ne peut masquer que le conteneur entier. Réglages du formulaire
   (couleurs, police) : dans Mailchimp (docs/correctifs-d1-d2-reglages.md). */
body.woocommerce-cart > .mcforms-wrapper[id^="mcforms-"],
body.woocommerce-checkout > .mcforms-wrapper[id^="mcforms-"] { display: none !important; }

/* ---------- Boutons de paiement (PayPal, carte, Apple Pay, Google Pay) sous l'en-tête ----------
   Le SDK de PayPal pose ses boutons en iframes position: absolute, z-index 100 et 200, dans un
   conteneur sans contexte d'empilement : au défilement, ils passaient au-dessus de l'en-tête
   sticky (z-index 50, fqs-header-footer.css). Les blocs panier et commande deviennent leur
   propre contexte d'empilement : ces z-index ne valent plus qu'à l'intérieur, et le bloc entier
   reste sous l'en-tête. Tiroir du panier (dans l'en-tête), fenêtres de consentement et popups
   (hors des blocs, au niveau de body) : inchangés. */
body.fqs-tunnel .wp-block-woocommerce-checkout,
body.fqs-tunnel .wp-block-woocommerce-cart { isolation: isolate; }
