/* PTI — refonte légère du thème : effets dans l'esprit de pacificstudio.dev (première partie) et
   améliorations des pages catalogue, fiche produit, panier, connexion (seconde partie).
   Les animations passent par transform / opacity (calculés par la carte graphique) ; la classe .fx
   est posée sur <html> par une ligne de script dans l'en-tête, et retirée par pti-refonte.js si le
   visiteur a demandé moins d'animations. Sans script, la page reste lisible et utilisable. */

:root { --fx-ease: cubic-bezier(.2, .7, .2, 1); --fx-barre: 37px; }
@media (max-width: 900px) { :root { --fx-barre: 0px; } }

/* 0. Accueil : menu par-dessus la photo, qui occupe tout l'écran à l'ouverture ------------------
      (classe fx-entete posée par pti-effets.js ; sans script, l'en-tête reste comme avant) */
.fx-repere { position: absolute; top: 0; left: 0; width: 1px; height: 90px; pointer-events: none; visibility: hidden; }
.fx-entete body.home .topbar {
  position: absolute; top: 0; left: 0; right: 0; z-index: 101;
  background: transparent; border-bottom-color: transparent; color: #33404f;
}
/* (le thème pose un fond blanc en style direct sur l'en-tête au défilement : !important pour garder la main) */
.fx-entete body.home .site-header {
  position: fixed; top: 0; left: 0; right: 0;
  translate: 0 var(--fx-barre, 0px);
  background: transparent !important; border-bottom-color: transparent; box-shadow: none !important;
  -webkit-backdrop-filter: none; backdrop-filter: none;
  transition: translate .35s var(--fx-ease), background-color .35s, box-shadow .35s;
}
/* administrateur connecté : la barre noire de WordPress occupe le haut, le menu se place juste dessous */
.fx-entete body.home.admin-bar .site-header { top: var(--wp-admin--admin-bar--height, 32px); }
/* une fois la page défilée, le menu reprend son fond givré d'origine (classe sur l'en-tête seul :
   la mettre sur <html> ferait recalculer toute la page) */
.fx-entete body.home .site-header.fx-defile {
  translate: 0 0;
  background: linear-gradient(180deg, rgb(255 255 255 / .82), rgb(244 247 251 / .72)) !important;
  border-bottom-color: rgb(100 111 127 / .10);
  box-shadow: 0 10px 28px rgb(20 28 40 / .08) !important;
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
}
/* voile clair très léger en haut de la photo, pour que le menu reste lisible */
.fx-entete body.home .hero-fullscreen::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 190px; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgb(255 255 255 / .55), rgb(255 255 255 / 0));
}
.fx-entete body.home .hero-fullscreen { height: 100vh; height: 100svh; }
@media (max-width: 768px) {
  .fx-entete body.home .hero-fullscreen { height: auto; min-height: 100svh; }
}

/* 1. Titres qui montent mot à mot ------------------------------------------------------------ */
.fx-mots .fx-w {
  display: inline-block;
  opacity: 0;
  transform: translateY(.45em);
  transition: opacity .55s var(--fx-ease), transform .8s var(--fx-ease);
  transition-delay: calc(var(--i, 0) * 60ms);
}
.fx-mots.fx-on .fx-w { opacity: 1; transform: none; }
/* Le titre d'accueil attend d'être découpé ; s'il ne l'est jamais, il réapparaît seul après 2,5 s. */
.fx .hero-fullscreen h1:not(.fx-mots) { opacity: 0; animation: fx-secours 0s 2.5s forwards; }
@keyframes fx-secours { to { opacity: 1; } }

/* 2. Cartes qui arrivent en cascade (prolonge l'apparition du thème) ---------------------------- */
.fx .reveal-item:not(.fx-vu):not(.product-card):not(.special-card) {
  transition: opacity .7s var(--fx-ease), transform .9s var(--fx-ease), box-shadow .3s, border-color .3s, rotate .6s var(--fx-ease);
  transition-delay: var(--fx-d, 0ms);
}

/* 3. Halos lumineux qui dérivent dans le haut de page ------------------------------------------ */
.fx-halos { position: absolute; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; }
.fx-halos i {
  position: absolute;
  border-radius: 50%;
  opacity: .55;
  will-change: transform;
  animation: fx-derive 22s ease-in-out infinite alternate;
}
.fx-halos i:nth-child(1) { width: 70vmax; height: 70vmax; left: -22vmax; top: -34vmax; background: radial-gradient(closest-side, rgb(255 255 255 / .95), transparent 70%); }
.fx-halos i:nth-child(2) { width: 58vmax; height: 58vmax; right: -24vmax; top: -6vmax; background: radial-gradient(closest-side, rgb(110 139 184 / .5), transparent 70%); animation-duration: 28s; animation-direction: alternate-reverse; }
.fx-halos i:nth-child(3) { width: 52vmax; height: 52vmax; left: 30%; bottom: -36vmax; background: radial-gradient(closest-side, rgb(183 157 134 / .38), transparent 70%); animation-duration: 33s; }
.fx-pause .fx-halos i { animation-play-state: paused; }
@keyframes fx-derive {
  from { transform: translate3d(-4%, -3%, 0) scale(1); }
  to { transform: translate3d(6%, 5%, 0) scale(1.12); }
}
@media (max-width: 768px) {
  .fx-halos i:nth-child(3) { display: none; }
}

/* 4. Photo d'accueil : entrée douce, puis parallaxe au défilement ------------------------------- */
.fx-photo .hero-bg-img { animation: fx-entree 1.8s var(--fx-ease) both; }
@keyframes fx-entree { from { scale: 1.08; } to { scale: 1; } }
/* parallaxe : la photo descend plus lentement que la page en sortant de l'écran (ordinateur) */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) and (min-width: 769px) {
    .fx .hero-fullscreen .hero-bg-img { animation: fx-parallaxe linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
    .fx-photo .hero-bg-img { animation: fx-entree 1.8s var(--fx-ease) both, fx-parallaxe linear both; animation-timeline: auto, scroll(root); animation-range: normal, 0 100vh; }
  }
}
@keyframes fx-parallaxe { to { translate: 0 30%; } }

/* 5. Cartes : inclinaison 3D qui suit la souris + reflet (ordinateur seulement) ----------------- */
@media (hover: hover) and (pointer: fine) {
  .fx .cats-grid { perspective: 1400px; }
  /* classe posée au premier survol seulement ; la rotation 3D n'existe que pendant le survol :
     au repos, les cartes restent de simples éléments plats */
  .fx-tilt { position: relative; transition: transform .35s var(--fx-ease), box-shadow .3s, border-color .3s, rotate .6s var(--fx-ease); }
  .fx-tilt.fx-tilting { rotate: var(--fx-ax, 0) var(--fx-ay, 1) 0 var(--fx-a, 0deg); transition-duration: .35s, .3s, .3s, .12s; }
  .fx-reflet {
    position: absolute;
    inset: 0;
    z-index: 3;
    border-radius: inherit;
    pointer-events: none;
    opacity: 0;
    transition: opacity .4s;
    background: radial-gradient(380px circle at var(--fx-mx, 50%) var(--fx-my, 50%), rgb(255 255 255 / .32), transparent 46%);
  }
  .fx-tilting .fx-reflet { opacity: 1; }
}

/* 6. Reflet qui traverse les boutons ----------------------------------------------------------- */
/* (sélecteurs directs plutôt qu'une classe ajoutée par le script : rien à recalculer au chargement) */
/* (pas de reflet sur les boutons des produits : cartes, fiche, panier) */
.fx :is(.btn, .btn-contact-primary, .btn-contact-ghost):not(:is(.product-card, .special-card, .pti-product-detail-card, .pti-cart-wrap) *), .fx-brille { position: relative; overflow: hidden; }
.fx :is(.btn, .btn-contact-primary, .btn-contact-ghost):not(:is(.product-card, .special-card, .pti-product-detail-card, .pti-cart-wrap) *)::after, .fx-brille::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 32%, rgb(255 255 255 / .55) 50%, transparent 68%);
  transform: translateX(-130%);
}
.fx :is(.btn, .btn-contact-primary, .btn-contact-ghost):not(:is(.product-card, .special-card, .pti-product-detail-card, .pti-cart-wrap) *):hover::after, .fx-brille:hover::after { transform: translateX(130%); transition: transform .8s var(--fx-ease); }
.fx-une-fois::after { animation: fx-balaye 1.2s 1.4s var(--fx-ease); }
@keyframes fx-balaye { from { transform: translateX(-130%); } to { transform: translateX(130%); } }

/* 7. Chiffres du haut de page qui défilent ------------------------------------------------------ */
.fx-compte { font-variant-numeric: tabular-nums; }

/* 8. Phrase de la bannière qui s'allume mot à mot ---------------------------------------------- */
.fx-phrase .fx-w { opacity: .28; transition: opacity .35s ease; }
.fx-phrase .fx-w.fx-allume { opacity: 1; }

/* 9. Bandeau photo incliné qui se redresse (comme les écrans de pacificstudio.dev) ------------ */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .fx .container:has(> .slider-wrap) { perspective: 1800px; }
    .fx .slider-wrap { transform-origin: 50% 100%; animation: fx-redresse linear both; animation-timeline: view(); animation-range: entry 0% cover 45%; }
  }
}
@keyframes fx-redresse { from { rotate: 1 0 0 14deg; } to { rotate: 1 0 0 0deg; } }
@media (max-width: 768px) { @keyframes fx-redresse { from { rotate: 1 0 0 7deg; } to { rotate: 1 0 0 0deg; } } }

@media (prefers-reduced-motion: reduce) {
  .fx-mots .fx-w, .fx-phrase .fx-w { opacity: 1; filter: none; transform: none; transition: none; }
  .fx-halos { display: none; }
  .fx-photo .hero-bg-img, .fx-une-fois::after { animation: none; }
  .fx-tilt { rotate: none; }
}

/* ============================================================================================
   SECONDE PARTIE — pages (catalogue, fiche produit, panier, connexion, formulaires)
   ============================================================================================ */

/* Partout ----------------------------------------------------------------------------------- */
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 96px; }
:focus-visible { outline: 2px solid #4f6d96; outline-offset: 3px; }
/* le titre générique de la page (« Catalogue PTI », « Panier PTI »…) en double avec celui du contenu */
.content-card > h1:has(+ .entry-content :is(.pti-catalog-wrap, .pti-product-detail-wrap, .pti-cart-wrap, .pti-account-wrap, .pti-checkout-wrap)) {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
/* téléphones : le flou d'arrière-plan des cartes coûte cher au défilement ; les cartes sont déjà
   presque opaques, l'aspect ne change pas */
@media (max-width: 768px) {
  .cat-card, .quick-cat, .special-card, .quality-item, .faq-item, .review-card, .product-card, .pti-panel {
    -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
  }
}

/* Message en bas d'écran (ajout au panier…) */
.fx-toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 300; display: flex; align-items: center; gap: 14px;
  max-width: calc(100vw - 32px); padding: 12px 12px 12px 18px; border-radius: 18px;
  background: rgb(17 22 29 / .94); color: #fff; font-size: 14px; box-shadow: 0 18px 40px rgb(10 14 22 / .28);
  transform: translate(-50%, 24px); opacity: 0; pointer-events: none; transition: opacity .25s, transform .35s var(--fx-ease);
}
.fx-toast.fx-voit { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.fx-toast a { flex: none; padding: 8px 14px; border-radius: 12px; background: #fff; color: #11161d; font-weight: 700; text-decoration: none; }
@media (max-width: 768px) { .fx-toast { bottom: calc(96px + env(safe-area-inset-bottom)); } }
.fx-saute { animation: fx-saute .5s var(--fx-ease); }
@keyframes fx-saute { 30% { transform: scale(1.18); } 60% { transform: scale(.94); } }
.header-tool-count[hidden], .mobile-bottom-count[hidden] { display: none !important; }

/* Catalogue --------------------------------------------------------------------------------- */
.pti-catalog-chips .pti-chip { transition: background-color .2s, color .2s, box-shadow .2s, transform .2s; }
.pti-catalog-chips .pti-chip:active { transform: scale(.96); }
.fx-cache { display: none !important; }
.fx-aucun { display: none; grid-column: 1 / -1; padding: 40px 24px; text-align: center; border-radius: 24px; border: 1px dashed rgb(76 87 102 / .25); color: #44505e; }
.fx-aucun.fx-voit { display: block; }
.fx-aucun a { font-weight: 700; color: #11161d; }
/* toute la carte ouvre la fiche ; les boutons restent au-dessus */
.pti-product-card h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.pti-product-card .pti-product-actions, .pti-product-card form { position: relative; z-index: 2; }
.pti-product-card .product-badge { z-index: 2; }
/* « Voir la fiche » devient une pastille carrée à côté de « Ajouter au panier » */
.pti-product-actions-v58 { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: stretch; gap: 10px; }
.pti-product-actions-v58 > .mini-cta-icon { width: 54px; min-height: 54px; padding: 0; justify-content: center; border-radius: 16px; }
.pti-product-actions-v58 > .mini-cta-icon > span:not(.pti-ui-icon) {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.pti-product-actions-v58 > form, .pti-product-actions-v58 > form .btn, .pti-product-actions-v58 > .btn { width: 100%; height: 100%; margin: 0; }

/* Fiche produit ----------------------------------------------------------------------------- */
.pti-product-detail-copy { display: flex; flex-direction: column; }
.pti-product-detail-copy > .card-label { order: 1; }
.pti-product-detail-copy > h1 { order: 2; }
.pti-product-detail-copy > #pti-product-price-wrap { order: 3; }
.pti-product-detail-copy > .pti-product-detail-actions { order: 4; margin-top: 18px; }
.pti-product-detail-copy > .fx-rassure { order: 5; }
.pti-product-detail-copy > .pti-product-short-below { order: 6; }
.pti-product-detail-copy > .pti-product-description { order: 7; margin-top: 18px; }
.fx-rassure { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 18px 0 4px; padding: 0; list-style: none; }
.fx-rassure li {
  display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 16px; font-size: 13px; line-height: 1.3; color: #33404f;
  background: rgb(255 255 255 / .7); border: 1px solid rgb(76 87 102 / .1);
}
.fx-rassure svg { flex: none; width: 20px; height: 20px; stroke: #4f6d96; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 560px) { .fx-rassure { grid-template-columns: 1fr; } }
.fx-coupe { position: relative; max-height: 13.5em; overflow: hidden; }
.fx-coupe::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5em; background: linear-gradient(rgb(248 250 252 / 0), rgb(248 250 252)); pointer-events: none; }
.fx-lire { align-self: flex-start; order: 8; margin-top: 10px; padding: 9px 16px; border-radius: 999px; border: 1px solid rgb(76 87 102 / .2); background: #fff; font-weight: 700; color: #11161d; cursor: pointer; }
/* barre d'achat qui suit sur téléphone, au-dessus de la barre de navigation du bas */
.fx-barre-achat { display: none; }
@media (max-width: 768px) {
  .fx-barre-achat {
    position: fixed; left: 12px; right: 12px; z-index: 104; bottom: calc(max(12px, env(safe-area-inset-bottom)) + 82px);
    display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 18px;
    border-radius: 20px; background: rgb(17 22 29 / .95); color: #fff; box-shadow: 0 16px 36px rgb(10 14 22 / .25);
    transform: translateY(140%); opacity: 0; pointer-events: none; transition: transform .35s var(--fx-ease), opacity .25s;
  }
  .fx-barre-achat.fx-voit { transform: none; opacity: 1; pointer-events: auto; }
  .fx-barre-achat strong { font-size: 17px; }
  .fx-barre-achat button, .fx-barre-achat a { border: 0; border-radius: 14px; padding: 12px 16px; background: #fff; color: #11161d; font-weight: 800; text-decoration: none; }
}

/* Connexion, espace client, demande spéciale : les formulaires d'abord ---------------------- */
.pti-account-wrap { display: flex; flex-direction: column; gap: 24px; }
.pti-account-wrap > .pti-page-hero-account { display: contents; }
.pti-account-wrap .pti-page-hero-copy { order: 1; }
.pti-account-wrap .pti-auth-grid { order: 2; margin-top: 0; }
.pti-account-wrap .pti-account-hero-cards { order: 3; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.pti-account-wrap .pti-page-hero-copy h1 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.08; margin: 10px 0 8px; }
.pti-account-wrap .pti-page-hero-copy p { max-width: 720px; margin: 0; }
.pti-account-wrap .pti-hero-inline-points { display: none; }
@media (max-width: 900px) { .pti-account-wrap .pti-account-hero-cards { grid-template-columns: 1fr; } }
.pti-form input:not([type="checkbox"]):not([type="hidden"]), .pti-form textarea, .pti-form select {
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.pti-form input:not([type="checkbox"]):focus, .pti-form textarea:focus, .pti-form select:focus {
  border-color: #6e8bb8; box-shadow: 0 0 0 4px rgb(110 139 184 / .18); outline: none; background: #fff;
}
.fx-mdp { position: relative; display: block; }
.fx-mdp input { width: 100%; padding-right: 52px !important; }
.fx-mdp button {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border: 0; border-radius: 12px;
  background: transparent; color: #627182; cursor: pointer; display: grid; place-items: center;
}
.fx-mdp button:hover { background: rgb(76 87 102 / .08); color: #11161d; }
.fx-mdp svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
/* onglets « Se connecter / Créer un compte » sur téléphone */
.fx-onglets { display: none; }
@media (max-width: 900px) {
  .fx-onglets { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 6px; border-radius: 18px; order: 2; background: rgb(226 232 240 / .7); height: 56px; box-sizing: border-box; }
  /* place réservée aux onglets dès le premier affichage (ils sont ajoutés par le script) : rien ne saute */
  .fx .pti-account-wrap:has(.pti-auth-panel input[name="log"]):not(.fx-a-onglets)::before { content: ""; order: 2; height: 56px; }
  .fx-onglets button { border: 0; border-radius: 13px; padding: 12px; background: transparent; font-weight: 700; color: #44505e; }
  .fx-onglets button[aria-selected="true"] { background: #fff; color: #11161d; box-shadow: 0 4px 14px rgb(20 28 40 / .1); }
  .fx-a-onglets .pti-auth-grid { order: 3; }
  .fx-a-onglets .pti-account-hero-cards { order: 4; }
  .fx-a-onglets .pti-auth-panel.fx-inactif { display: none; }
}

/* Panier vide ------------------------------------------------------------------------------- */
.pti-cart-wrap .pti-shop-compact-head-empty .eyebrow { display: none; }
.pti-cart-wrap .pti-empty-state { text-align: center; padding: clamp(36px, 6vw, 64px) 24px; }
.pti-cart-wrap .pti-empty-state::before {
  content: ""; display: block; width: 76px; height: 76px; margin: 0 auto 18px; border-radius: 24px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234f6d96' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='19' r='1.5'/%3E%3Ccircle cx='17' cy='19' r='1.5'/%3E%3Cpath d='M4 5h2l2.2 9.2a1 1 0 0 0 1 .8h8.8a1 1 0 0 0 1-.8L21 8H7'/%3E%3C/svg%3E") center / 38px no-repeat;
  box-shadow: 0 14px 34px rgb(20 28 40 / .1);
}
.pti-empty-state .fx-actions-vide { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 8px; }

/* Panier rempli (actif dès le premier affichage : rien ne bouge quand le script arrive) -------------------------------------- */
.pti-cart-wrap .pti-shop-compact-head .eyebrow { display: none; }
/* « Total » et « Commander » en haut répètent le résumé : on ne garde que le nombre d'articles */
.fx .pti-cart-wrap:has(.pti-cart-list) .pti-shop-compact-head-meta .pti-shop-compact-pill:not(:first-child) { display: none; }
/* « Produit ajouté au panier » : bulle flottante qui s'efface seule, sans décaler la page */
@media (prefers-reduced-motion: no-preference) {
  .fx .pti-cart-wrap > .pti-notice-success {
    position: fixed; left: 50%; top: 120px; z-index: 300; margin: 0; max-width: calc(100vw - 32px);
    translate: -50% 0; box-shadow: 0 16px 36px rgb(10 14 22 / .16); pointer-events: none;
    animation: fx-notice 4.6s var(--fx-ease) forwards;
  }
}
@media (max-width: 768px) { .fx .pti-cart-wrap > .pti-notice-success { top: 80px; } }
@keyframes fx-notice {
  0% { opacity: 0; transform: translateY(-10px); }
  8%, 85% { opacity: 1; transform: none; }
  100% { opacity: 0; transform: translateY(-10px); visibility: hidden; }
}
.fx .pti-cart-wrap:has(.pti-cart-list) .pti-cart-list { display: grid; gap: 12px; }
.fx .pti-cart-wrap:has(.pti-cart-list) .pti-cart-item {
  display: grid; align-items: center; gap: 8px 20px; padding: 14px 16px; border-radius: 22px;
  grid-template-columns: 92px minmax(0, 1fr) auto auto; grid-template-areas: "img texte qte total" "img texte qte retirer";
  background: rgb(255 255 255 / .78); border: 1px solid rgb(76 87 102 / .1);
  transition: opacity .25s, transform .3s var(--fx-ease);
}
.fx .pti-cart-wrap:has(.pti-cart-list) .pti-cart-item.fx-retire { opacity: 0; transform: translateX(-24px); }
.fx .pti-cart-wrap:has(.pti-cart-list) .pti-cart-item-visual { grid-area: img; width: 92px; height: 92px; border-radius: 16px; overflow: hidden; margin: 0; }
.fx .pti-cart-wrap:has(.pti-cart-list) .pti-cart-item-visual img { width: 100%; height: 100%; object-fit: cover; }
.fx .pti-cart-wrap:has(.pti-cart-list) .pti-cart-item-copy { grid-area: texte; display: block; min-width: 0; }
.fx .pti-cart-wrap:has(.pti-cart-list) .pti-cart-item-copy .card-label { font-size: 11px; }
.fx .pti-cart-wrap:has(.pti-cart-list) .pti-cart-item-copy h3 { font-size: 18px; line-height: 1.2; margin: 4px 0 2px; }
.fx .pti-cart-wrap:has(.pti-cart-list) .pti-cart-item-copy h3 a { color: inherit; text-decoration: none; }
/* la description complète est sur la fiche : deux lignes suffisent ici */
.fx .pti-cart-wrap:has(.pti-cart-list) .pti-cart-item-copy p { margin: 0; font-size: 13px; color: #5b6573; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fx .pti-cart-wrap:has(.pti-cart-list) .pti-cart-item-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 6px; }
.fx .pti-cart-wrap:has(.pti-cart-list) .pti-cart-item-meta > span { padding: 0; border: 0; background: none; box-shadow: none; font-size: 12px; color: #687586; min-height: 0; }
.fx .pti-cart-wrap:has(.pti-cart-list) .pti-cart-item-meta .pti-ui-icon { display: none; }
.fx .pti-cart-wrap:has(.pti-cart-list) .pti-cart-item-qty { grid-area: qte; width: 116px; height: 42px; display: flex; align-items: center; }
.fx .pti-cart-wrap:has(.pti-cart-list) .pti-cart-item-qty label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.fx-qte { display: inline-flex; align-items: center; border-radius: 14px; border: 1px solid rgb(76 87 102 / .16); background: #fff; overflow: hidden; }
.fx-qte button { width: 38px; height: 40px; border: 0; background: transparent; font-size: 18px; color: #11161d; cursor: pointer; }
.fx-qte button:hover:not(:disabled) { background: rgb(76 87 102 / .07); }
.fx-qte button:disabled { color: #b5bdc8; cursor: default; }
.fx-qte input { width: 38px; height: 40px; padding: 0 !important; border: 0 !important; background: transparent !important; box-shadow: none !important; text-align: center; font-weight: 700; -moz-appearance: textfield; }
.fx-qte input::-webkit-outer-spin-button, .fx-qte input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.fx .pti-cart-wrap:has(.pti-cart-list) .pti-cart-item-total { grid-area: total; align-self: end; font-size: 18px; font-weight: 800; white-space: nowrap; text-align: right; min-width: 104px; }
.fx .pti-cart-wrap:has(.pti-cart-list) .pti-cart-item-remove { grid-area: retirer; justify-self: end; align-self: start; }
.fx .pti-cart-wrap:has(.pti-cart-list) .pti-cart-item-remove .btn { padding: 4px 6px; min-height: 0; font-size: 13px; font-weight: 600; color: #8a3b32; border: 0; background: transparent; box-shadow: none; text-decoration: underline; text-underline-offset: 3px; }
.fx .pti-cart-wrap:has(.pti-cart-list) .pti-cart-item-remove .btn:hover { color: #5e2620; }
/* « Mettre à jour » devient inutile (mise à jour automatique) ; « Passer à la commande » est dans le résumé */
.fx .pti-cart-wrap:has(.pti-cart-list) .pti-cart-inline-actions .btn-outline, .fx .pti-cart-wrap:has(.pti-cart-list) .pti-cart-inline-actions .btn-dark { display: none; }
.fx .pti-cart-wrap:has(.pti-cart-list) .pti-cart-bottom-actions { margin-top: 16px; }
.fx-panier.fx-occupe .pti-cart-layout { opacity: .6; pointer-events: none; transition: opacity .2s; }
/* résumé : les deux repères ne ressemblent plus à des boutons */
.fx .pti-cart-wrap:has(.pti-cart-list) .pti-summary-checks { display: grid; gap: 6px; margin: 14px 0 16px; }
.fx .pti-cart-wrap:has(.pti-cart-list) .pti-summary-checks > span { display: flex; align-items: center; gap: 8px; padding: 0; border: 0; background: none; box-shadow: none; font-size: 13px; color: #5b6573; min-height: 0; }
.fx .pti-cart-wrap:has(.pti-cart-list) .pti-summary-checks .pti-ui-icon { width: 18px; height: 18px; background: none; box-shadow: none; }
@media (max-width: 640px) {
  .fx .pti-cart-wrap:has(.pti-cart-list) .pti-cart-main-panel { padding: 18px 14px; }
  .fx .pti-cart-wrap:has(.pti-cart-list) .pti-cart-item { position: relative; grid-template-columns: 72px minmax(0, 1fr) auto; grid-template-areas: "img texte texte" "qte qte total"; padding: 12px; }
  .fx .pti-cart-wrap:has(.pti-cart-list) .pti-cart-item-copy { padding-right: 58px; }
  .fx .pti-cart-wrap:has(.pti-cart-list) .pti-cart-item-remove { position: absolute; top: 8px; right: 6px; }
  .fx .pti-cart-wrap:has(.pti-cart-list) .pti-cart-item-visual { width: 72px; height: 72px; }
  .fx .pti-cart-wrap:has(.pti-cart-list) .pti-cart-item-copy h3 { font-size: 16px; }
  .fx .pti-cart-wrap:has(.pti-cart-list) .pti-cart-item-copy p { display: none; }
  .fx .pti-cart-wrap:has(.pti-cart-list) .pti-cart-item-total { min-width: 0; align-self: center; text-align: left; }
  /* place pour la barre « Commander » / « Ajouter au panier » qui suit en bas */
  .fx .pti-cart-wrap:has(.pti-cart-list), .pti-product-detail-wrap { padding-bottom: 84px; }
}

/* Espace client connecté --------------------------------------------------------------------- */
.pti-account-sidebar-head-v63 .eyebrow { display: none; }
/* les chiffres du haut ouvrent leur rubrique (classe posée par le script) */
.fx-raccourci { cursor: pointer; transition: transform .2s var(--fx-ease), box-shadow .2s, border-color .2s; }
.fx-raccourci:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgb(20 28 40 / .09); }
.pti-account-panel.fx-change { animation: fx-panneau .28s var(--fx-ease); }
@keyframes fx-panneau { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (max-width: 900px) {
  /* téléphone : nom, rubriques en bande qui défile, puis tout de suite le contenu ;
     « Catalogue » et « Déconnexion » passent en bas */
  .fx .pti-account-shell-v63 { display: flex; flex-direction: column; gap: 16px; }
  .fx .pti-account-sidebar-v63 { display: contents; }
  .fx .pti-account-sidebar-head-v63 { order: 1; margin: 0; padding: 0; border: 0; }
  .fx .pti-account-sidebar-head-v63 h1 { font-size: 30px; margin: 0; }
  .fx .pti-account-sidebar-head-v63 p { display: none; }
  .fx .pti-account-meta-v65 { order: 2; display: flex; align-items: baseline; gap: 8px; margin: -8px 0 0; padding: 0; border: 0; }
  .fx .pti-account-tabs-v63 {
    order: 3; display: flex; flex-direction: row; gap: 8px; margin: 0 -14px; padding: 2px 14px 6px;
    overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .fx .pti-account-tabs-v63::-webkit-scrollbar { display: none; }
  .fx .pti-account-tabs-v63 .pti-account-tab { flex: none; width: auto; min-height: 0; margin: 0; padding: 10px 14px; gap: 8px; border-radius: 999px; scroll-snap-align: start; white-space: nowrap; }
  .fx .pti-account-tabs-v63 .pti-account-tab em { font-size: 11px; }
  .fx .pti-account-main-v63 { order: 4; }
  .fx .pti-account-mini-stats-v63 { display: none; } /* les nombres sont déjà sur les rubriques */
  .fx .pti-account-sidebar-actions-v63 { order: 5; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; }
  .fx .pti-account-sidebar-actions-v63 .btn { width: 100%; min-height: 0; padding: 12px; margin: 0; }
  .fx .pti-summary-list-v63 { grid-template-columns: 1fr 1fr; }
}

/* Commande : bandeau d'en-tête plus compact, le formulaire arrive plus haut ------------------- */
.pti-checkout-wrap > .pti-page-hero { padding-top: 20px; padding-bottom: 20px; }
.pti-checkout-wrap > .pti-page-hero h1 { font-size: clamp(26px, 3vw, 36px); line-height: 1.1; margin: 8px 0 6px; }
.pti-checkout-wrap > .pti-page-hero .eyebrow { display: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal-item, .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .fx-saute { animation: none; }
  .fx-toast, .fx-barre-achat { transition: none; }
}
