/* =========================================================================
   28/11/2026 — Confort mobile du site public. Voir src/Frontend/MobileComfort.php.
   --cy-dock = hauteur réelle de ce qui est collé en bas (barre de navigation, barre « Choisir mes dates »),
   mesurée par mobile-comfort.js. Tous les flottants se posent au-dessus, à droite (bulle) ou à gauche
   (installer), jamais l'un sur l'autre ni sur un bouton du contenu.
   ========================================================================= */

/* ---- Pagination du catalogue : une seule, et des cibles tactiles (tous écrans) ---- */
.cy-catalog-pagination[hidden]{display:none!important;}

@media (max-width:760px){
  /* ---- Flottants ---- */
  html.cy-mc .cy-back-to-top{display:none!important;}

  html.cy-mc .cy-chat-widget:not(.is-open){
    bottom:calc(var(--cy-dock,62px) + 10px)!important;right:10px!important;
    transition:bottom .2s ease,transform .25s ease,opacity .25s ease;
  }
  html.cy-mc .cy-public-install{
    left:12px!important;right:auto!important;
    bottom:calc(var(--cy-dock,62px) + 16px)!important;
    max-width:calc(100vw - 100px);
    min-height:40px;padding:0 16px!important;font-size:13px!important;
    transition:transform .25s ease,opacity .25s ease;
  }
  html.cy-install-muted .cy-public-install{display:none!important;}
  /* Bulle Campoura : 50 px au lieu de 62 (elle mordait sur « Explorer », « Voir les packs », les garanties). */
  html.cy-mc .cy-chat-widget.is-assistant:not(.is-open) .cy-chat-widget__bubble{width:50px!important;height:50px!important;}
  html.cy-mc .cy-chat-widget.is-assistant:not(.is-open) .cy-chat-widget__bubble .cy-assistant-avatar{width:44px!important;height:44px!important;}

  /* Défilement vers le bas : on lit, les flottants s'effacent (la barre de navigation reste). */
  html.cy-floats-away .cy-chat-widget:not(.is-open),
  html.cy-floats-away .cy-public-install{
    transform:translateY(calc(100% + var(--cy-dock,62px) + 24px));opacity:0;pointer-events:none;
  }
  /* Clavier ouvert : rien ne couvre le champ. */
  html.cy-typing .cy-chat-widget:not(.is-open),
  html.cy-typing .cy-public-install,
  html.cy-typing .cy-mobile-reserve,
  html.cy-typing .cy-bottom-nav{display:none!important;}

  /* Le contenu finit au-dessus de ce qui est collé en bas (dernier bouton jamais caché). */
  html.cy-mc body{padding-bottom:calc(var(--cy-dock,62px) + 8px);}

  /* ---- Accueil : garanties du héros sur plusieurs lignes au lieu d'être coupées ---- */
  .campy-v8-hero__trust{display:flex!important;flex-wrap:wrap!important;gap:6px 14px!important;white-space:normal!important;overflow:visible!important;}
  .campy-v8-hero__trust li{white-space:nowrap;}

  /* ---- Cartes du catalogue : mêmes hauteurs, prix alignés ---- */
  .cy-product-card .cy-product-title h3{
    display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
    min-height:2.6em;line-height:1.3;
  }
  .cy-product-card .cy-product-caption.is-available{
    display:inline-flex!important;align-items:center;gap:6px;width:auto!important;max-width:100%;
    white-space:nowrap;font-size:11.5px!important;padding:4px 9px!important;line-height:1.2!important;
  }
  .cy-product-card .cy-product-price{margin-top:auto;}

  /* ---- Pagination ---- */
  .cy-catalog-pagination{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:8px;}
  .cy-catalog-pagination button,.cy-catalog-pagination a,.cy-catalog-pagination .page-numbers{
    min-height:44px;min-width:44px;display:inline-flex;align-items:center;justify-content:center;padding:0 14px;border-radius:12px;
  }
}

/* ---- Stepper de quantité (tous écrans) ---- */
.cy-qty-stepper{display:flex;width:100%;align-items:stretch;border:1px solid #D5DDD7;border-radius:12px;overflow:hidden;background:#fff;max-width:100%;}
.cy-qty-stepper__btn{
  flex:0 0 52px;width:52px;min-height:48px;border:0;background:#F2F6F1;color:#193322;font:700 20px/1 inherit;cursor:pointer;
  -webkit-tap-highlight-color:transparent;
}
.cy-qty-stepper__btn:hover{background:#E3F1E8;}
.cy-qty-stepper__btn:active{background:#D9EFE1;}
.cy-qty-stepper__btn:focus-visible{outline:2px solid #1F7A4D;outline-offset:-2px;}
.cy-qty-stepper input[type=number]{
  flex:1 1 auto;width:auto!important;min-width:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;
  text-align:center;font-weight:700;font-size:16px!important;margin:0!important;background:transparent;-moz-appearance:textfield;
}
.cy-qty-stepper input[type=number]::-webkit-outer-spin-button,.cy-qty-stepper input[type=number]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0;}

@media (prefers-reduced-motion:reduce){
  html.cy-mc .cy-chat-widget,html.cy-mc .cy-public-install{transition:none!important;}
}
@media print{.cy-qty-stepper__btn{display:none;}}

/* ---- 28/11/2026 — Audit accessibilité (tous écrans) ---- */
.cy-steps__item.is-todo .cy-steps__txt small{color:#5B6A61!important}
.cy-discovery-search label > span{color:#4F5E56!important}
@media (max-width:760px){
  .cy-breadcrumb a{display:inline-flex;align-items:center;min-height:36px}
  footer li > a,.site-footer li > a,.cy-footer li > a{display:inline-block;padding:9px 0}
}

/* ---- 28/11/2026 — Conversion (lot B) ---- */
/* « Ajouter au panier » grisé tant que les dates manquent : le toucher amène au choix des dates (mobile-comfort.js). */
.cy-booking button[type=submit][disabled]{pointer-events:none;}
.cy-booking.cy-needs-dates .cy-bk-presets,.cy-booking.cy-needs-dates .cy-field-row{animation:cy-need-dates 1.2s ease 1;border-radius:12px;}
@keyframes cy-need-dates{0%,100%{box-shadow:0 0 0 0 rgba(31,122,77,0)}30%{box-shadow:0 0 0 4px rgba(31,122,77,.28)}}
/* Panier vide : la carte « Votre parcours » (vide elle aussi) ne fait qu'allonger la page avant le pied de page. */
[data-cy-cart-page]:has(.cy-cart2-empty) .cy-cart2-journey{display:none!important;}
@media (prefers-reduced-motion:reduce){.cy-booking.cy-needs-dates .cy-bk-presets,.cy-booking.cy-needs-dates .cy-field-row{animation:none;outline:2px solid #1F7A4D;}}

/* 28/11/2026 — Pages légères (sans Elementor) : en-tête de page vide quand le shortcode porte son H1 → pas de trou. */
.cy-v9-page-hero:empty{display:none!important;}
