/*
 * Enter any custom CSS here.
 * This file will not be overwritten by theme updates.
 *
 * ── Semantic class hooks (sa-*) ────────────────────────────────────────────
 * Every section, snippet and key element carries a stable `sa-` class you can
 * target with plain CSS — no Tailwind rebuild needed. These classes ship with
 * NO styles of their own; they exist purely as selectors for you to hook onto.
 *
 * Page scope   body.sa-tpl-<template>      e.g. .sa-tpl-product, .sa-tpl-shop
 *              body.sa-no-product-images / .sa-no-category-images when the
 *              matching theme setting is off
 * Chrome       .sa-header .sa-navbar .sa-footer
 *              .sa-navbar-link .sa-navbar-logo .sa-navbar-cart .sa-footer-link
 * Sections     .sa-<component>             e.g. .sa-hero, .sa-features, .sa-faq
 *   variant    .sa-<component>--<variant>  e.g. .sa-hero--split-media
 *   inner      .sa-<component>-title / -subtitle / -eyebrow / -media /
 *              -items / -item / -actions / -link / -price / -badge / -icon
 * Primitives   .sa-btn (+ .sa-btn--<variant>), .sa-section-header
 *              (.sa-section-title / -eyebrow / -subtitle),
 *              .sa-product-card (+ .sa-product-card--<style>,
 *              .sa-product-card-title / -price / -stock / -status / -badges),
 *              .sa-product-form + .sa-add-to-cart, .sa-product-gallery,
 *              .sa-cart-panel + .sa-cart-item, .sa-searchbar, .sa-pagination,
 *              .sa-breadcrumbs, .sa-toasts + .sa-toast, .sa-feedback-card
 *
 * Example — bigger hero heading only on the product page:
 *   .sa-tpl-product .sa-hero-title { font-size: 3rem; }
 * ───────────────────────────────────────────────────────────────────────────
*/


/* =========================================================
   LaLeague Services - Motion
   Ajoute au thème sans toucher aux fichiers Canvas.
   Les etats initiaux sont sous html.sa-motion : si le JS
   ne tourne pas, rien n'est masque.
   ========================================================= */

:root{
  --sa-ease: cubic-bezier(.16,1,.3,1);
  --sa-dur: 620ms;
  --sa-hover: 260ms;
}

/* ---------- Apparition au scroll ---------- */
html.sa-motion [data-sa-reveal]{
  opacity: 0;
  transform: translateY(18px);
}
html.sa-motion [data-sa-reveal].sa-in{
  opacity: 1;
  transform: none;
  transition: opacity var(--sa-dur) var(--sa-ease),
              transform var(--sa-dur) var(--sa-ease);
  transition-delay: var(--sa-delay, 0ms);
}

/* ---------- Survol : cartes ---------- */
.sa-product-card,
.sa-features-item,
.sa-steps-item,
.sa-faq-item{
  transition: transform var(--sa-hover) var(--sa-ease),
              border-color var(--sa-hover) var(--sa-ease),
              box-shadow var(--sa-hover) var(--sa-ease),
              background-color var(--sa-hover) var(--sa-ease);
}
.sa-product-card:hover{
  transform: translateY(-5px);
  border-color: rgba(var(--cl-accent), .45);
  box-shadow: 0 22px 44px -22px rgba(0,0,0,.8),
              0 0 0 1px rgba(var(--cl-accent), .22);
}
.sa-features-item:hover,
.sa-steps-item:hover{
  transform: translateY(-3px);
  border-color: rgba(var(--cl-accent), .32);
}

/* Image de carte : zoom discret */
.sa-product-card-media img{
  transition: transform 700ms var(--sa-ease);
}
.sa-product-card:hover .sa-product-card-media img{
  transform: scale(1.045);
}

/* ---------- Survol : boutons ---------- */
.sa-btn{
  transition: transform var(--sa-hover) var(--sa-ease),
              box-shadow var(--sa-hover) var(--sa-ease),
              background-color var(--sa-hover) var(--sa-ease),
              border-color var(--sa-hover) var(--sa-ease);
}
.sa-btn:hover{ transform: translateY(-2px); }
.sa-btn:active{ transform: translateY(0); transition-duration: 90ms; }
.sa-btn--primary.sa-btn--solid:hover{
  box-shadow: 0 12px 28px -12px rgba(var(--cl-accent), .8);
}

/* ---------- Liens de navigation ---------- */
.sa-navbar-link{ position: relative; }
.sa-navbar-link::after{
  content: "";
  position: absolute;
  left: 12px; right: 12px; bottom: 5px;
  height: 1.5px;
  border-radius: 2px;
  background: rgba(var(--cl-accent), .9);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 320ms var(--sa-ease);
}
.sa-navbar-link:hover::after{ transform: scaleX(1); }

/* ---------- FAQ ---------- */
.sa-faq-item svg{ transition: transform 320ms var(--sa-ease); }
.sa-faq-item[open] > summary svg,
.sa-faq-item [aria-expanded="true"] svg{ transform: rotate(180deg); }

/* ---------- Preference systeme : moins d'animations ---------- */
@media (prefers-reduced-motion: reduce){
  html.sa-motion [data-sa-reveal],
  html.sa-motion [data-sa-reveal].sa-in{
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .sa-product-card,
  .sa-features-item,
  .sa-steps-item,
  .sa-faq-item,
  .sa-btn,
  .sa-product-card-media img,
  .sa-navbar-link::after,
  .sa-faq-item svg{ transition: none !important; }
  .sa-btn:hover,
  .sa-product-card:hover,
  .sa-features-item:hover,
  .sa-steps-item:hover{ transform: none !important; }
}


/* =========================================================
   Hero : verrouillage du schema sombre
   Le hero repose toujours sur une image sombre. En mode
   clair, les boutons contour et la barre de recherche
   passaient en texte fonce sur fond fonce : illisible.
   On redefinit ici les variables de couleur du theme
   uniquement dans le hero, les enfants suivent.
   ========================================================= */
.sa-hero--background-image{
  --cl-background: 6,8,16;
  --cl-surface: 16,22,35;
  --cl-surface-raised: 24,32,47;
  --cl-t-primary: 238,243,250;
  --cl-t-muted: 147,161,184;
  --cl-border: rgba(165,200,255, 0.22);
  color: rgb(238,243,250);
}
.sa-hero--background-image input::placeholder{
  color: rgba(238,243,250,.55);
}