/* ACHETIA — fiche produit (préfixe pd-). Même langage que home.css. */
.pd{--midnight:#040f2a;--sky:#e1ebff;--sand:#fff3c4;--display:"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;min-width:0}
.pd h1,.pd h2,.pd h3{font-family:var(--display)}
.pd h2{font-size:clamp(24px,2.6vw,32px);letter-spacing:-.03em;line-height:1.1;font-weight:900;color:var(--deep)}
.pd-section-head{display:flex;flex-direction:column;align-items:flex-start;gap:4px;margin:0 0 22px}
.pd-related .pd-section-head{flex-direction:row;align-items:flex-end;justify-content:space-between;gap:20px;flex-wrap:wrap}
.pd-section-head p{color:var(--muted);font-size:15px;margin-top:8px;max-width:62ch;line-height:1.55}
.pd .btn.pd-btn-lg{padding:14px 20px;font-size:15px;border-radius:10px;min-height:50px}
.pd .btn.pd-whatsapp{background:#1aa84e;color:#fff}

/* ---------- Haut : galerie + achat ---------- */
.pd-top{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);gap:36px;align-items:start}
.pd-gallery{position:sticky;top:96px;min-width:0}
.pd-gallery-card{position:relative;background:#fff;border:1px solid var(--line);border-radius:22px;overflow:hidden;box-shadow:0 30px 60px -36px #0a2a5c66}
.pd-gallery-card img{width:100%;height:auto;aspect-ratio:1;object-fit:contain;transition:transform .6s cubic-bezier(.2,.8,.2,1)}
.pd-gallery-card:hover img{transform:scale(1.04)}
.pd-no-image{aspect-ratio:1;display:grid;place-items:center;align-content:center;gap:10px;color:var(--muted);background:#f6f8fb}
.pd-no-image .icon{width:48px;height:48px}
.pd-float-promo{position:absolute;top:18px;left:18px;background:var(--red);color:#fff;font-family:var(--display);font-weight:900;font-size:22px;letter-spacing:-.03em;padding:10px 18px;border-radius:999px;box-shadow:0 10px 30px #0004}
.pd-buy{min-width:0}
.pd-brand{font-size:13px;color:var(--muted);font-weight:700;text-transform:uppercase;letter-spacing:.08em;margin:4px 0 10px;display:flex;gap:12px;flex-wrap:wrap}
.pd-brand span{text-transform:none;letter-spacing:0;font-weight:400}
.pd-title{font-size:clamp(26px,3vw,38px);line-height:1.1;letter-spacing:-.035em;font-weight:900;color:var(--deep);margin:0 0 12px}
.pd-stock{display:inline-flex;align-items:center;gap:7px;font-size:13px;font-weight:700;padding:6px 12px;border-radius:999px;margin:0 0 18px}
.pd-stock .icon{width:16px;height:16px}
.pd-stock-ok{background:#e3f6ea;color:#176039}
.pd-stock-unknown{background:#eef3fc;color:#284b85}
.pd-stock-out{background:#fff1f1;color:#9c1f2c}
.pd-price{background:var(--yellow);color:var(--deep);border-radius:18px;padding:18px 22px;margin:0 0 20px;box-shadow:0 20px 40px -24px #7a5d0099}
.pd-price-main{display:flex;align-items:baseline;gap:14px;flex-wrap:wrap}
.pd-price-now{font-family:var(--display);font-size:clamp(36px,4vw,48px);font-weight:900;letter-spacing:-.045em;line-height:1;display:inline-flex;align-items:baseline;gap:8px;font-variant-numeric:tabular-nums}
.pd-price-now small{font-size:15px;letter-spacing:0;font-weight:800}
.pd-price-old{font-size:16px;text-decoration:line-through;color:#7a5d00;font-weight:700}
.pd-saving{font-size:14px;font-weight:700;margin:10px 0 0;color:#3c2f00}
.pd-price-credit{font-size:13px;color:#3c2f00;margin:12px 0 0;padding-top:12px;border-top:1px dashed #0003;line-height:1.45}
.pd-price-credit b{font-size:15px;color:var(--deep)}
.pd-actions{display:grid;grid-template-columns:auto 1fr;gap:10px;margin:0 0 10px}
.pd-actions .pd-btn-credit{grid-column:1/-1}
.pd-qty{display:inline-flex;align-items:stretch;border:1.5px solid #ccd5e1;border-radius:10px;overflow:hidden;background:#fff;height:50px}
.pd-qty button{width:44px;background:#f6f8fb;color:var(--navy);font-size:20px;font-weight:700;border-right:1px solid #e3e8ef}
.pd-qty button:last-child{border-right:0;border-left:1px solid #e3e8ef}
.pd-qty button:hover{background:#eef4ff}
.pd-qty input{width:54px;border:0;text-align:center;font-size:16px;font-weight:700;color:var(--ink);outline:0;-moz-appearance:textfield}
.pd-qty input::-webkit-outer-spin-button,.pd-qty input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.pd .pd-tontine{margin:0 0 10px}
.pd-secondary{display:flex;gap:8px;margin:0 0 22px}
.pd-trust{list-style:none;margin:0;padding:0;border-top:1px solid var(--line)}
.pd-trust li{display:flex;gap:12px;align-items:flex-start;padding:12px 0;border-bottom:1px solid var(--line);font-size:13px;color:var(--muted)}
.pd-trust li .icon{color:var(--blue);width:22px;height:22px;flex-shrink:0;margin-top:1px}
.pd-trust b{display:block;color:var(--ink);font-size:14px;margin-bottom:2px}

/* ---------- Formules ---------- */
.pd-offers{margin-top:52px;scroll-margin-top:90px}
.pd-offer-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;align-items:stretch}
.pd-offer{position:relative;display:flex;flex-direction:column;gap:12px;background:#fff;border:1px solid var(--line);border-radius:18px;padding:22px;min-width:0;transition:transform .2s,box-shadow .2s}
.pd-offer:hover{transform:translateY(-3px);box-shadow:0 18px 40px -18px #0a2a5c55}
.pd-offer header{display:flex;flex-direction:column;gap:3px}
.pd-offer h3{font-size:22px;font-weight:900;letter-spacing:-.03em;line-height:1.1}
.pd-offer header span{font-size:12px;color:var(--muted)}
.pd-offer-advance{margin:4px 0 0;display:flex;flex-direction:column;gap:2px}
.pd-offer-advance small{font-size:12px;color:var(--muted)}
.pd-offer-advance strong{font-family:var(--display);font-size:clamp(24px,2.1vw,30px);font-weight:900;letter-spacing:-.04em;line-height:1;color:var(--navy);font-variant-numeric:tabular-nums}
.pd-offer-monthly{font-size:14px;color:var(--ink);line-height:1.45;margin:0}
.pd-offer-monthly small{display:block;font-size:12px;color:var(--muted)}
.pd-offer-facts{margin:0;display:grid;grid-template-columns:1fr 1fr;gap:10px;border-top:1px solid var(--line);padding-top:12px}
.pd-offer-facts dt{font-size:11px;color:var(--muted);text-transform:uppercase;letter-spacing:.06em}
.pd-offer-facts dd{margin:3px 0 0;font-size:13px;font-weight:700}
.pd .pd-offer-schedule{font-size:13px;background:transparent;border:0;padding:0;margin:0;border-radius:0}
.pd .pd-offer-schedule summary{padding:0;background:transparent}
.pd-offer-schedule summary{cursor:pointer;color:var(--blue);font-weight:700;list-style:none;display:inline-flex;align-items:center;gap:6px}
.pd-offer-schedule summary::-webkit-details-marker{display:none}
.pd-offer-schedule summary::before{content:"";width:7px;height:7px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg) translateY(-2px);transition:transform .2s}
.pd-offer-schedule[open] summary::before{transform:rotate(-135deg) translateY(-2px)}
.pd-offer-schedule ol{margin:10px 0 0;padding:0;list-style:none;display:grid;grid-template-columns:1fr 1fr;gap:4px 12px;counter-reset:m}
.pd-offer-schedule li{display:flex;justify-content:space-between;gap:8px;counter-increment:m;padding:3px 0;border-bottom:1px dashed var(--line);font-variant-numeric:tabular-nums}
.pd-offer-schedule li::before{content:"Mois " counter(m);color:var(--muted)}
.pd-offer .btn{margin-top:auto}
.pd-offer.is-featured{background:linear-gradient(160deg,var(--navy),var(--midnight));color:#fff;border-color:transparent}
.pd-offer.is-featured::before{content:"La plus accessible";position:absolute;top:-11px;right:16px;background:var(--yellow);color:var(--deep);font-size:11px;font-weight:800;padding:4px 10px;border-radius:999px;letter-spacing:.02em}
.pd-offer.is-featured header span,.pd-offer.is-featured .pd-offer-advance small,.pd-offer.is-featured .pd-offer-monthly small,.pd-offer.is-featured .pd-offer-facts dt,.pd-offer.is-featured .pd-offer-schedule li::before{color:#b9c9ea}
.pd-offer.is-featured .pd-offer-advance strong{color:var(--yellow)}
.pd-offer.is-featured .pd-offer-monthly{color:#fff}
.pd-offer.is-featured .pd-offer-facts,.pd-offer.is-featured .pd-offer-schedule li{border-color:#ffffff22}
.pd-offer.is-featured .pd-offer-schedule summary{color:var(--yellow)}
.pd-offer.is-unavailable{opacity:.6;background:#f6f8fb}
.pd-offer-reason{font-size:13px;color:var(--muted);margin:0}
.pd-offer-note{font-size:12px;color:var(--muted);margin:16px 0 0;line-height:1.5}

/* ---------- Description + aide ---------- */
.pd-info{margin-top:52px;display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:20px;align-items:start}
.pd-info-main{background:#fff;border:1px solid var(--line);border-radius:18px;padding:28px}
.pd-info-main h2{margin-bottom:16px}
.pd-info-main p{font-size:14px;line-height:1.75;color:var(--ink);margin:0 0 10px}
.pd-included{list-style:none;margin:0 0 18px;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:8px 18px}
.pd-included li{display:flex;align-items:center;gap:10px;font-size:14px;padding:9px 12px;background:#f6f8fb;border-radius:10px}
.pd-included .icon{width:18px;height:18px;color:#176039;flex-shrink:0;stroke-width:2.4}
.pd-help{background:var(--sky);border:1px solid #c9d9fb;border-radius:18px;padding:26px;display:flex;flex-direction:column;gap:12px}
.pd-help h2{font-size:22px}
.pd-help p{font-size:14px;color:#415675;line-height:1.5;margin:0 0 6px}

/* ---------- Suggestions ---------- */
.pd-related{margin-top:52px}
.pd-related-link{font-size:14px;color:var(--blue);font-weight:700;display:inline-flex;align-items:center;gap:6px}
.pd-related-link .icon{width:18px;height:18px}
.pd-related-grid{grid-template-columns:repeat(4,minmax(0,1fr))}

/* ---------- Barre d'action mobile ---------- */
.pd-bar{display:none}

/* ---------- Responsive ---------- */
@media(max-width:1150px){
  .pd-top{gap:24px}
  .pd-offer-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .pd-related-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .pd-related-grid .product:nth-child(4){display:none}
}
@media(max-width:800px){
  .pd-top{grid-template-columns:1fr;gap:18px}
  .pd-gallery{position:static}
  .pd-gallery-card{border-radius:18px}
  .pd-float-promo{font-size:18px;padding:8px 14px;top:12px;left:12px}
  .pd-title{font-size:26px}
  .pd-price{padding:16px 18px}
  .pd-actions{grid-template-columns:auto 1fr}
  .pd-offers,.pd-info,.pd-related{margin-top:36px}
  .pd-info{grid-template-columns:1fr}
  .pd-info-main{padding:20px}
  .pd-included{grid-template-columns:1fr}
  .pd-related-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .pd-related-grid .product:nth-child(4){display:block}
  .pd-bar{display:grid;grid-template-columns:1fr auto auto;align-items:center;gap:8px;position:fixed;left:0;right:0;bottom:calc(60px + env(safe-area-inset-bottom));z-index:24;background:#fff;border-top:1px solid var(--line);padding:10px 14px;box-shadow:0 -10px 30px -12px #0a2a5c33;transition:transform .25s ease,opacity .25s ease}
  .pd-bar[hidden]{display:grid;transform:translateY(110%);opacity:0;pointer-events:none}
  .pd-bar-price{display:flex;flex-direction:column;min-width:0}
  .pd-bar-price strong{font-family:var(--display);font-size:18px;font-weight:900;letter-spacing:-.03em;color:var(--deep);white-space:nowrap}
  .pd-bar-price s{font-size:11px;color:var(--muted)}
  .pd-bar .btn{padding:10px 14px;min-height:42px;font-size:13px;white-space:nowrap}
  body.pd-page .whatsapp{bottom:150px}
}
@media(max-width:480px){
  .pd-offer-grid{grid-template-columns:1fr}
  .pd-actions{grid-template-columns:1fr}
  .pd-qty{width:100%;justify-content:space-between}
  .pd-qty input{flex:1}
  .pd-section-head{flex-direction:column;align-items:flex-start}
}
@media(prefers-reduced-motion:reduce){
  .pd *{transition:none!important}
}
