/*
Theme Name: Midea PortaSplit
Theme URI: https://mideafrance.co/
Author: Réplique sur mesure (d'après le thème Shopify Horizon + GemPages)
Description: Thème WordPress mono-produit reproduisant la page produit Shopify "Midea PortaSplit". Compatible WooCommerce (facultatif). Inclut galerie produit, estimateur de livraison, FAQ, marquee, et un widget d'avis façon Loox.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
Text Domain: midea-portasplit
*/

/* =========================================================================
   TOKENS  (extraits du thème Shopify : Instrument Sans, bleu #1f94d2, etc.)
   ========================================================================= */
:root{
  --font: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --brand:        #1f94d2;   /* bleu Midea (accents) */
  --logo-blue:    #00b0f0;   /* bleu exact du logo (header) */
  --brand-soft:   #F4F8FE;   /* fond bloc livraison */
  --brand-border: #5594E7;   /* bordure bloc livraison */
  --ink:          #000000;
  --ink-2:        #1F2937;
  --ink-3:        #4B5563;
  --muted:        #6b7280;
  --line:         #e6e6e6;
  --bg:           #ffffff;
  --bg-soft:      #f7f7f7;
  --green:        #16A34A;    /* pastille "en ligne" */
  --red:          #e11d1d;    /* prix barré / urgence */
  --star:         #00b67a;    /* vert étoile Trustpilot-like */

  --radius:       10px;
  --radius-pill:  100px;
  --shadow-sm:    0 1px 3px rgba(0,0,0,.08);
  --shadow-md:    0 6px 24px rgba(0,0,0,.10);

  --container:    1180px;
  --gap:          clamp(16px, 4vw, 48px);
}

/* =========================================================================
   RESET / BASE
   ========================================================================= */
*,*::before,*::after{box-sizing:border-box;}
html{-webkit-text-size-adjust:100%;}
body{
  margin:0;
  font-family:var(--font);
  font-size:16px;
  line-height:1.55;
  color:var(--ink);
  background:var(--bg);
  -webkit-font-smoothing:antialiased;
}
img,video{max-width:100%;display:block;height:auto;}
a{color:inherit;text-decoration:none;}
button{font-family:inherit;cursor:pointer;}
h1,h2,h3,h4,p{margin:0;}
.container{max-width:var(--container);margin-inline:auto;padding-inline:20px;}
.visually-hidden{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;}

/* =========================================================================
   ANNOUNCEMENT BAR
   ========================================================================= */
.announcement{position:sticky;top:0;z-index:60;background:rgba(24,147,214,.7);color:#fff;font-size:13px;font-weight:600;letter-spacing:.02em;transition:background .25s ease;}
.announcement.is-scrolled{background:#1893d6;}
.announcement__track{display:flex;align-items:center;justify-content:center;min-height:38px;text-align:center;padding:6px 16px;}
.announcement__item{display:none;}
.announcement__item.is-active{display:block;animation:annFade .5s ease;}
@keyframes annFade{from{opacity:0}to{opacity:1}}

/* =========================================================================
   HEADER
   ========================================================================= */
.site-header{background:var(--logo-blue);color:#fff;border-bottom:1px solid rgba(255,255,255,.2);}
.site-header__row{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;min-height:64px;}
.header-nav{display:flex;gap:22px;font-size:14px;}
.header-nav a:hover{opacity:.7;}
.site-logo{justify-self:center;}
.site-logo img{height:40px;width:auto;}
.header-actions{justify-self:end;display:flex;align-items:center;gap:18px;}
.header-actions a{display:inline-flex;align-items:center;gap:6px;font-size:14px;}
.cart-link{position:relative;}
.cart-link .cart-count{position:absolute;top:-8px;right:-10px;background:#fff;color:var(--brand);font-size:11px;font-weight:700;min-width:17px;height:17px;border-radius:50%;display:grid;place-items:center;padding:0 4px;}
@media(max-width:768px){
  .site-header__row{grid-template-columns:1fr auto 1fr;}
  .header-nav{display:none;}
  .site-logo{justify-self:center;grid-column:2;}
  .header-actions{grid-column:3;}
}

/* =========================================================================
   PRODUCT — LAYOUT
   ========================================================================= */
.product{padding:24px 0 8px;}
.product__grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:var(--gap);align-items:start;}
@media(max-width:900px){.product__grid{grid-template-columns:minmax(0,1fr);gap:20px;}}

/* Gallery ---------------------------------------------------------------- */
.gallery{position:sticky;top:54px;min-width:0;}
@media(max-width:900px){.gallery{position:static;}}
.gallery__stage{position:relative;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;background:#fff;}
.gallery__stage img{width:100%;aspect-ratio:1/1;object-fit:cover;}
.gallery__thumbs{display:flex;gap:8px;margin-top:10px;min-width:0;max-width:100%;overflow-x:auto;scroll-snap-type:x proximity;-webkit-overflow-scrolling:touch;scrollbar-width:none;}
.gallery__thumbs::-webkit-scrollbar{display:none;}
.gallery__thumb{flex:0 0 auto;width:clamp(64px,18vw,88px);scroll-snap-align:start;border:2px solid transparent;border-radius:8px;overflow:hidden;padding:0;background:none;}
.gallery__thumb img{width:100%;aspect-ratio:1/1;object-fit:cover;}
.gallery__thumb.is-active{border-color:var(--ink);}

/* Product info ----------------------------------------------------------- */
.pinfo{display:flex;flex-direction:column;gap:16px;}

/* Rating row (green stars) */
.rating{display:flex;align-items:center;gap:8px;flex-wrap:wrap;}
.rating__stars{display:inline-flex;gap:2px;}
.rating__stars img{width:22px;height:22px;}
.rating__label{font-size:14px;}
.rating__label b{font-weight:800;}
.rating__excellent{font-weight:800;letter-spacing:.02em;}

/* Title */
.pinfo__title{font-size:clamp(22px,3.2vw,30px);font-weight:800;line-height:1.2;}
@media(max-width:600px){.pinfo__title{font-size:16px;line-height:1.3;}}

/* Price */
/* Livraison express DHL */
.express-ship{display:flex;align-items:center;justify-content:flex-start;gap:6px;font-size:12px;font-weight:600;color:var(--ink-2);text-align:left;}
.express-ship__ico{width:22px;height:22px;flex-shrink:0;color:var(--brand);}
.express-ship__dhl{display:inline-block;background:#ffcc00;color:#d40511;font-weight:800;font-style:italic;padding:1px 7px;border-radius:4px;letter-spacing:.01em;white-space:nowrap;}
.express-ship__free{color:var(--green);font-weight:800;text-transform:uppercase;}
.express-ship--center{justify-content:center;text-align:center;margin-top:8px;}

.price{display:flex;align-items:center;justify-content:center;gap:14px;flex-wrap:wrap;}
.price__now{font-size:24px;font-weight:800;}
.price__was{font-size:24px;color:var(--red);text-decoration:line-through;}
.price__badge{background:var(--red);color:#fff;font-size:12px;font-weight:800;padding:5px 10px;border-radius:6px;letter-spacing:.03em;}

/* Stock line */
.stock-line{font-size:15px;}
.stock-line b,.stock-line .stock-num{color:var(--red);font-weight:800;}

/* Buy buttons */
.buy{display:flex;flex-direction:column;gap:10px;margin:4px 0;}
.btn-primary{
  display:flex;align-items:center;justify-content:center;gap:10px;
  width:100%;border:0;border-radius:var(--radius-pill);
  background:var(--logo-blue);color:#fff;
  font-size:16px;font-weight:800;letter-spacing:.04em;text-transform:uppercase;
  padding:18px 22px;line-height:1.1;transition:transform .06s ease, background .2s ease;
}
.btn-primary:hover{background:#0099d6;}
.btn-primary:active{transform:translateY(1px);}
.btn-primary--pulse{animation:btnPulse 2.2s infinite;}
@keyframes btnPulse{0%{box-shadow:0 0 0 0 rgba(31,148,210,.45)}70%{box-shadow:0 0 0 14px rgba(31,148,210,0)}100%{box-shadow:0 0 0 0 rgba(31,148,210,0)}}

.payments{margin:2px 0;}
.payments img{margin:0 auto;max-height:34px;width:auto;}

/* Bundle (équivalent Katching) — calé sur la capture */
.bundle{margin:4px 0 2px;}
.bundle__head{display:flex;align-items:center;gap:14px;margin-bottom:14px;}
.bundle__head::before,.bundle__head::after{content:"";flex:1;border-top:2px solid #d8d8d8;}
.bundle__head span{font-size:13px;font-weight:800;letter-spacing:.04em;text-transform:uppercase;color:#222;white-space:nowrap;}
.bundle__opts{display:flex;flex-direction:column;gap:14px;}
.bundle__opt{position:relative;display:flex;align-items:center;gap:14px;width:100%;text-align:left;background:#f1f1f1;border:2px solid transparent;border-radius:14px;padding:16px 18px;transition:border-color .15s ease, background .15s ease;}
.bundle__opt:hover{border-color:#cfcfcf;}
.bundle__opt.is-selected{background:#d4ecfb;border-color:var(--brand);}
.bundle__opt.has-pop{margin-bottom:8px;}
.bundle__radio{flex-shrink:0;width:22px;height:22px;border-radius:50%;border:2px solid #b7b7b7;background:#fff;position:relative;}
.bundle__opt.is-selected .bundle__radio{border-color:#111;}
.bundle__opt.is-selected .bundle__radio::after{content:"";position:absolute;inset:4px;background:#111;border-radius:50%;}
.bundle__main{flex:1;min-width:0;display:flex;flex-direction:column;gap:4px;}
.bundle__qty{font-weight:800;font-size:18px;color:#111;}
.bundle__save{font-size:13px;color:#333;}
.bundle__right{flex-shrink:0;text-align:right;display:flex;flex-direction:column;gap:2px;}
.bundle__price{font-weight:800;font-size:20px;color:#111;}
.bundle__was{font-size:14px;color:var(--red);text-decoration:line-through;}
.bundle__pop{position:absolute;left:50%;bottom:0;transform:translate(-50%,55%);background:var(--brand);color:#fff;font-size:12px;font-weight:600;padding:5px 12px;border-radius:6px;white-space:nowrap;box-shadow:0 2px 6px rgba(0,0,0,.18);z-index:2;}
@media(max-width:380px){.bundle__opt{padding:14px;gap:10px}.bundle__price{font-size:18px}.bundle__qty{font-size:16px}.bundle__pop{font-size:11px;padding:4px 9px}}

/* Warning text */
.warning{font-size:14px;color:var(--ink-2);line-height:1.55;background:#fbe0e0;border:1px solid #e08a8a;border-radius:var(--radius);padding:14px 16px;text-align:center;}
.warning b{color:var(--red);}

/* Delivery estimate (repris tel quel du thème) */
.delivery-estimate{display:flex;align-items:center;gap:14px;background:var(--brand-soft);border:1px solid var(--brand-border);border-radius:12px;padding:14px 18px;margin:4px 0;color:var(--ink-2);max-width:100%;}
.delivery-estimate__content{display:flex;flex-direction:column;gap:2px;line-height:1.4;}
.delivery-estimate__line1{display:flex;align-items:center;gap:8px;font-size:14px;font-weight:600;}
.delivery-estimate__line2{font-size:14px;color:var(--ink-3);}
.delivery-estimate__line2 strong{color:var(--ink-2);font-weight:700;}
.delivery-estimate__pulse{width:8px;height:8px;background:var(--green);border-radius:50%;flex-shrink:0;box-shadow:0 0 0 0 rgba(22,163,74,.5);animation:deliveryPulse 1.8s infinite;}
@keyframes deliveryPulse{0%{box-shadow:0 0 0 0 rgba(22,163,74,.6)}70%{box-shadow:0 0 0 10px rgba(22,163,74,0)}100%{box-shadow:0 0 0 0 rgba(22,163,74,0)}}
@media(max-width:480px){.delivery-estimate{padding:12px 14px;gap:10px}.delivery-estimate__line1,.delivery-estimate__line2{font-size:13px}}

/* Feature grid (4 blue checks) */
.features{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:6px;}
.feature{display:flex;flex-direction:column;align-items:center;text-align:center;gap:8px;background:rgba(24,147,214,.4);border-radius:var(--radius);padding:14px;}
.feature img{width:22px;height:22px;flex-shrink:0;}
.feature span{font-size:14px;font-weight:600;line-height:1.3;color:var(--ink);}
@media(max-width:480px){.features{gap:8px}.feature span{font-size:13px}}

/* =========================================================================
   ACCORDION / FAQ
   ========================================================================= */
.accordion{border-top:1px solid var(--line);margin-top:8px;}
.acc-row{border-bottom:1px solid var(--line);}
.acc-head{display:flex;justify-content:space-between;align-items:center;gap:16px;width:100%;background:none;border:0;padding:16px 2px;text-align:left;font-size:14px;font-weight:700;color:var(--ink);}
.acc-head .acc-ico{flex-shrink:0;width:22px;height:22px;position:relative;transition:transform .25s ease;}
.acc-head .acc-ico::before,.acc-head .acc-ico::after{content:"";position:absolute;background:var(--ink);border-radius:2px;}
.acc-head .acc-ico::before{top:50%;left:2px;right:2px;height:2px;transform:translateY(-50%);}
.acc-head .acc-ico::after{left:50%;top:2px;bottom:2px;width:2px;transform:translateX(-50%);transition:opacity .25s ease;}
.acc-row.is-open .acc-ico::after{opacity:0;}
.acc-body{max-height:0;overflow:hidden;transition:max-height .3s ease;}
.acc-body__inner{padding:0 2px 18px;color:var(--ink-3);font-size:15px;line-height:1.6;}

/* =========================================================================
   GENERIC SECTION SHELL
   ========================================================================= */
.section{padding:48px 0;}
.section--tight{padding:32px 0;}
.section--faq-end{padding-bottom:180px;}
.section__title{font-size:clamp(22px,3vw,32px);font-weight:800;text-align:center;line-height:1.2;}
.loox-summary .section__title{font-size:clamp(18px,2.2vw,22px);}
.section__sub{text-align:center;color:var(--ink-3);margin-top:8px;font-size:16px;}

/* "79 000 foyers" band */
.band{background:var(--brand);color:#fff;text-align:center;padding:42px 0;}
.band h2{font-size:clamp(22px,3.4vw,34px);font-weight:800;line-height:1.25;}
.band h2 b{font-weight:900;}
.band .band__kicker{display:inline-block;margin-top:12px;font-size:13px;font-weight:800;letter-spacing:.12em;background:rgba(255,255,255,.18);padding:7px 14px;border-radius:var(--radius-pill);}

/* =========================================================================
   MARQUEE
   ========================================================================= */
.marquee{overflow:hidden;padding:26px 0;-webkit-mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent);mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent);}
.marquee__track{display:flex;gap:18px;width:max-content;animation:marqueeMove 28s linear infinite;}
.marquee:hover .marquee__track{animation-play-state:paused;}
.marquee__item{flex:0 0 auto;width:230px;height:230px;border-radius:var(--radius);overflow:hidden;border:1px solid var(--line);}
.marquee__item img{width:100%;height:100%;object-fit:cover;}
@keyframes marqueeMove{from{transform:translateX(0)}to{transform:translateX(-50%)}}
@media(max-width:600px){.marquee__item{width:160px;height:160px;}}

/* =========================================================================
   HERO MEDIA (image / video full width)
   ========================================================================= */
.hero-media{width:100%;}
.hero-media img,.hero-media video{width:100%;max-height:78vh;object-fit:cover;border-radius:0;}
.hero-media--rounded img,.hero-media--rounded video{border-radius:var(--radius);}
.hero-video{position:relative;background:#000;}
.hero-video video{display:block;}
.video-fallback{position:relative;}
.video-fallback__note{position:absolute;inset:0;display:grid;place-items:center;background:rgba(0,0,0,.45);color:#fff;text-align:center;padding:20px;font-size:14px;}

/* =========================================================================
   REVIEWS (façon Loox)
   ========================================================================= */
/* Summary header */
.loox-summary{text-align:center;}
.loox-summary .rating{justify-content:center;}

/* Testimonial carousel (quotes) */
.loox-quotes{position:relative;}
.loox-quotes__track{display:flex;gap:20px;overflow-x:auto;scroll-snap-type:x mandatory;padding:8px 4px 18px;scrollbar-width:none;}
.loox-quotes__track::-webkit-scrollbar{display:none;}
.quote-card{scroll-snap-align:center;flex:0 0 min(440px,86%);background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:26px 26px 22px;box-shadow:var(--shadow-sm);}
.quote-card__mark{font-size:46px;line-height:.6;color:#eaeaea;font-family:Georgia,serif;}
.quote-card__author{display:flex;align-items:center;gap:12px;}
.quote-card__avatar{width:42px;height:42px;border-radius:50%;object-fit:cover;background:var(--bg-soft);}
.quote-card__avatar--initial{display:grid;place-items:center;background:var(--brand);color:#fff;font-weight:800;font-size:18px;}
.quote-card__text{font-size:16px;line-height:1.5;margin:6px 0 16px;color:#111;display:-webkit-box;-webkit-line-clamp:6;-webkit-box-orient:vertical;overflow:hidden;}
.quote-card__name{font-weight:700;font-size:14px;}
.quote-card__meta{font-size:12px;color:var(--muted);}

/* Photo review cards */
.loox-cards__track{display:flex;gap:16px;overflow-x:auto;scroll-snap-type:x mandatory;padding:8px 4px 18px;scrollbar-width:none;}
.loox-cards__track::-webkit-scrollbar{display:none;}
.review-card{scroll-snap-align:start;flex:0 0 min(280px,72%);background:#fff;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow-sm);cursor:pointer;}
.review-card__img{aspect-ratio:1/1;object-fit:cover;width:100%;}
.review-card__body{padding:12px 14px 16px;}
.review-card__stars{display:inline-flex;gap:1px;margin-bottom:6px;}
.review-card__stars img{width:15px;height:15px;}
.review-card__text{font-size:14px;line-height:1.45;color:#111;}
.review-card__foot{display:flex;align-items:center;gap:6px;margin-top:10px;font-size:12px;color:var(--muted);}
.review-card__verified{display:inline-flex;align-items:center;gap:4px;color:var(--green);font-weight:700;}

/* carousel arrows shared */
.car-arrows{display:flex;justify-content:center;gap:10px;margin-top:6px;}
.car-arrows button{width:42px;height:42px;border-radius:50%;border:1px solid var(--line);background:#fff;font-size:18px;display:grid;place-items:center;}
.car-arrows button:hover{background:var(--bg-soft);}

/* Lightbox */
.lightbox{position:fixed;inset:0;background:rgba(0,0,0,.82);display:none;place-items:center;z-index:200;padding:20px;}
.lightbox.is-open{display:grid;}
.lightbox__inner{max-width:520px;width:100%;background:#fff;border-radius:var(--radius);overflow:hidden;}
.lightbox__inner img{width:100%;aspect-ratio:1/1;object-fit:cover;}
.lightbox__body{padding:16px 18px 20px;}
.lightbox__close{position:absolute;top:18px;right:22px;color:#fff;font-size:34px;background:none;border:0;line-height:1;}

/* placeholder banner for sample reviews */
.sample-note{max-width:var(--container);margin:0 auto 4px;padding:8px 14px;font-size:12.5px;color:#92590a;background:#fff7e6;border:1px dashed #e3b251;border-radius:8px;text-align:center;}

/* =========================================================================
   CHECKOUT (style Shopify, orienté conversion)
   ========================================================================= */
.page-wrap{padding:24px 0 60px;}
.woocommerce-checkout .container,.page-wrap .container{max-width:720px;}

/* Bandeau urgence : timer + note + stock */
.co-urgency{position:sticky;top:37px;z-index:55;width:100vw;margin-left:calc(50% - 50vw);margin-right:calc(50% - 50vw);max-width:none;margin-bottom:18px;}
.co-timer{background:#fbe4e4;color:var(--red);border:0;border-bottom:1px solid rgba(225,29,29,.25);border-radius:0;padding:12px 16px;text-align:center;font-size:15px;font-weight:700;}
.co-timer__time{font-variant-numeric:tabular-nums;background:rgba(225,29,29,.18);color:var(--red);padding:1px 8px;border-radius:6px;}
.co-timer.is-expired{background:var(--red);color:#fff;}
.co-trust{text-align:center;font-size:13px;color:var(--ink-3);}
.co-trust__stars{color:#00b67a;letter-spacing:1px;}

/* =========================================================================
   PANIER (produit → paiement) + MERCI (retour paiement)
   ========================================================================= */
.cart{padding:10px 0 8px;}
.cart .container,.thanks .container{max-width:720px;}
/* Réduit l'espace entre la carte panier et la section avis qui la suit */
.cart + .section{padding-top:18px;}

/* Timer 10 min : bandeau pleine largeur, sticky sous la barre d'annonce au scroll (comme le checkout) */
.cart-urgency{position:sticky;top:37px;z-index:55;width:100vw;margin-left:calc(50% - 50vw);margin-right:calc(50% - 50vw);margin-bottom:8px;}

.cart__back{display:inline-block;font-size:14px;color:var(--ink-3);margin-bottom:12px;}
.cart__back:hover{color:var(--ink);}
.cart__title{font-size:24px;font-weight:800;margin:0 0 16px;text-align:center;}
.cart__rating{display:flex;justify-content:center;margin:0 0 18px;}
.cart .price{justify-content:center;}
.cart .price__badge{font-size:10px;text-align:center;}
.cart__card{border:1px solid #e6e6e6;border-radius:var(--radius);padding:18px;display:flex;flex-direction:column;gap:16px;}
.cart__item{display:flex;align-items:center;gap:14px;}
.cart__img{width:84px;height:84px;object-fit:cover;border-radius:8px;flex-shrink:0;background:#f4f4f4;}
.cart__desc{flex:1;min-width:0;}
.cart__name{font-weight:700;font-size:15px;line-height:1.3;}
.cart__meta{font-size:13px;color:var(--ink-3);margin-top:3px;}
.cart__save{display:inline-block;margin-top:6px;font-size:12px;font-weight:700;color:var(--green);background:rgba(22,163,74,.1);padding:2px 8px;border-radius:6px;}
.cart__price{text-align:right;flex-shrink:0;}
.cart__now{display:block;font-size:18px;font-weight:800;}
.cart__was{display:block;font-size:13px;color:var(--red);text-decoration:line-through;}
.cart__totals{display:flex;justify-content:space-between;align-items:center;border-top:1px solid #e6e6e6;padding-top:14px;font-size:16px;font-weight:700;}
.cart__total-group{display:flex;align-items:baseline;gap:10px;}
.cart__total-was{font-size:14px;color:var(--red);text-decoration:line-through;font-weight:600;}
.cart__total{font-size:20px;font-weight:800;}
.cart__pay{width:100%;text-align:center;}
.cart__reassure{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px;font-size:13px;color:var(--ink-3);}
.cart__reassure li{display:flex;gap:6px;align-items:center;}

/* Merci */
.thanks{padding:48px 0 64px;text-align:center;}
.thanks__icon{width:64px;height:64px;border-radius:50%;background:var(--green);color:#fff;font-size:34px;line-height:64px;margin:0 auto 18px;font-weight:700;}
.thanks__title{font-size:26px;font-weight:800;margin:0 0 12px;}
.thanks__lead{font-size:15px;color:var(--ink-2);max-width:520px;margin:0 auto 22px;line-height:1.5;}
.thanks__order{display:flex;justify-content:space-between;align-items:center;gap:14px;max-width:520px;margin:0 auto 22px;padding:14px 18px;border:1px solid #e6e6e6;border-radius:var(--radius);text-align:left;}
.thanks__order-label{font-weight:700;font-size:14px;}
.thanks__order-price{font-weight:800;font-size:18px;white-space:nowrap;}
.thanks__box{max-width:520px;margin:0 auto 22px;display:flex;flex-direction:column;gap:12px;text-align:left;}
.thanks__help{font-size:13px;color:var(--ink-3);margin-bottom:20px;}
.thanks__home{display:inline-block;}

/* Titres de sections */
.woocommerce-checkout h3,.woocommerce-checkout #order_review_heading{font-size:20px;font-weight:800;margin:22px 0 12px;}
.woocommerce-checkout .woocommerce-billing-fields h3{margin-top:0;}

/* Champs façon Shopify */
.woocommerce-checkout .form-row{margin:0 0 12px;padding:0;}
.woocommerce-checkout .form-row label{font-size:13px;color:var(--ink-3);margin-bottom:4px;display:block;}
.woocommerce-checkout .form-row .required{color:var(--red);}
.woocommerce-checkout .input-text,
.woocommerce-checkout select,
.woocommerce-checkout .select2-selection{
  width:100%;border:1px solid #cfcfcf;border-radius:8px;padding:13px 14px;font-size:15px;font-family:inherit;background:#fff;line-height:1.3;min-height:48px;
}
.woocommerce-checkout .input-text:focus,
.woocommerce-checkout select:focus{outline:none;border-color:var(--ink);box-shadow:0 0 0 1px var(--ink);}
.woocommerce-checkout .form-row-first{float:left;width:48.5%;}
.woocommerce-checkout .form-row-last{float:right;width:48.5%;}
.woocommerce-checkout .form-row-wide{clear:both;width:100%;}
.woocommerce-checkout .col2-set .col-1,
.woocommerce-checkout .col2-set .col-2{width:100%;float:none;max-width:100%;}

/* Masque "expédier à une autre adresse" (livraison = facturation) */
.woocommerce-checkout .woocommerce-shipping-fields{display:none;}

/* Encart DHL Express */
.co-ship{margin:6px 0 18px;}
.co-ship__head{font-size:20px;font-weight:800;margin-bottom:10px;}
.co-pay-title{font-size:20px;font-weight:800;margin:18px 0 10px;}
.co-ship__row{display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid #cfcfcf;border-radius:10px;padding:14px 16px;background:#fafafa;}
.co-ship__name{font-weight:800;font-size:14px;}
.co-ship__desc{font-size:13px;color:#b46a00;}
.co-ship__free{font-weight:800;font-size:13px;letter-spacing:.02em;}

/* Récap commande */
.woocommerce-checkout .shop_table{width:100%;border:1px solid var(--line);border-radius:10px;border-collapse:separate;overflow:hidden;margin-bottom:16px;}
.woocommerce-checkout .shop_table th,.woocommerce-checkout .shop_table td{padding:12px 14px;font-size:14px;}
.woocommerce-checkout .order-total .amount{font-size:20px;font-weight:800;}

/* Header masqué sur le checkout (tunnel sans distraction) */
body.woocommerce-checkout .site-header,
body.midea-panier .site-header{display:none;}

/* Timer collé à la barre d'annonce dès le repos (pas de padding au-dessus) */
body.woocommerce-checkout .page-wrap{padding-top:0;}

/* "Résumé de la commande" repliable (en haut) */
.woocommerce-checkout #order_review_heading{display:none;}
.woocommerce-checkout .woocommerce-checkout-review-order-table{display:none;} /* tableau WC par défaut masqué (récap custom en haut) */
.co-summary-wrap{max-width:720px;margin:0 auto 18px;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;}
.co-summary{display:flex;align-items:center;justify-content:space-between;width:100%;background:#f4f4f4;border:0;padding:16px 18px;cursor:pointer;}
.co-summary__label{font-size:15px;color:#1f6fb2;font-weight:600;display:flex;align-items:center;gap:6px;}
.co-summary__caret{display:inline-block;transition:transform .2s ease;}
.co-summary[aria-expanded="true"] .co-summary__caret{transform:rotate(180deg);}
.co-summary__total{font-size:18px;font-weight:800;color:var(--ink);}
.co-summary-body{padding:14px 18px;border-top:1px solid var(--line);background:#fafafa;}
.co-summary-body.co-collapsed{display:none;}
.co-sum-line{display:flex;align-items:center;gap:12px;margin-bottom:12px;}
.co-sum-line__img img{width:48px;height:48px;border-radius:8px;object-fit:cover;border:1px solid var(--line);}
.co-sum-line__name{flex:1;font-size:14px;}
.co-sum-line__qty{color:var(--muted);}
.co-sum-line__price{font-weight:700;font-size:14px;white-space:nowrap;}
.co-sum-row{display:flex;justify-content:space-between;font-size:14px;color:var(--ink-3);padding:4px 0;}
.co-sum-row--total{border-top:1px solid var(--line);margin-top:8px;padding-top:10px;font-size:17px;font-weight:800;color:var(--ink);}

/* Logo DHL carré dans l'encart d'expédition */
.co-ship__logo{flex-shrink:0;width:60px;height:60px;border-radius:8px;background:#ffcc00;display:grid;place-items:center;overflow:hidden;}
.co-ship__logo img{width:100%;height:auto;display:block;}
.co-ship__info{flex:1;min-width:0;}

/* Paiement */
.woocommerce-checkout #payment{background:#fafafa;border:1px solid #cfcfcf;border-radius:10px;padding:16px;}
.woocommerce-checkout #payment ul.payment_methods{list-style:none;margin:0 0 12px;padding:0;}
.woocommerce-checkout #payment .payment_box{background:#fff;border-radius:8px;font-size:13px;}

/* Bouton Payer maintenant */
.woocommerce-checkout #place_order,
.woocommerce-checkout #payment #place_order{
  width:100%;background:#1893d6;color:#fff;border:0;border-radius:var(--radius-pill);
  font-size:17px;font-weight:800;letter-spacing:.03em;text-transform:uppercase;padding:18px 22px;margin-top:6px;
}
.woocommerce-checkout #place_order:hover{background:#157fbb;}

/* Réassurance sous le bouton */
.woocommerce-checkout #payment .place-order{display:block;width:100%;}
.co-reassure{display:flex;flex-direction:column;align-items:center;gap:6px;margin-top:14px;font-size:13px;color:var(--ink-2);text-align:center;width:100%;}
.co-reassure span{white-space:nowrap;}

/* Coupon repliable (pill) */
.woocommerce-checkout .woocommerce-form-coupon-toggle{margin-bottom:14px;}
.woocommerce-checkout .checkout_coupon{border:1px solid var(--line);border-radius:10px;padding:14px;}

/* =========================================================================
   STICKY BUY BAR
   ========================================================================= */
.sticky-buy{position:fixed;left:0;right:0;bottom:0;z-index:90;padding:12px 16px calc(12px + env(safe-area-inset-bottom));background:rgba(255,255,255,.92);backdrop-filter:blur(6px);border-top:1px solid var(--line);box-shadow:0 -4px 20px rgba(0,0,0,.1);transform:translateY(120%);transition:transform .3s ease;}
.sticky-buy.is-visible{transform:translateY(0);}
.sticky-buy__inner{max-width:var(--container);margin-inline:auto;}
.sticky-buy__inner .bundle__head{margin-bottom:10px;}
.sticky-buy__btn{display:block;width:100%;border:0;border-radius:var(--radius-pill);background:#1893d6;color:#fff;font-size:16px;font-weight:800;letter-spacing:.04em;text-transform:uppercase;padding:16px 22px;line-height:1.1;}
.sticky-buy__btn:hover{background:#157fbb;}

/* =========================================================================
   FOOTER
   ========================================================================= */
.site-footer{background:var(--bg-soft);border-top:1px solid var(--line);margin-top:40px;}
.footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr;gap:36px;padding:46px 0;}
.footer-brand img{height:40px;margin-bottom:12px;}
.footer-brand p{color:var(--ink-3);font-size:14px;max-width:36ch;}
.footer-col h4{font-size:15px;font-weight:800;margin-bottom:12px;}
.footer-col ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px;}
.footer-col a{font-size:14px;color:var(--ink-3);}
.footer-col a:hover{color:var(--brand);}
.footer-bottom{border-top:1px solid var(--line);padding:18px 0;font-size:13px;color:var(--muted);display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px;}
@media(max-width:768px){.footer-grid{grid-template-columns:1fr;gap:26px;}}

/* =========================================================================
   A11Y / MOTION
   ========================================================================= */
:focus-visible{outline:3px solid var(--brand);outline-offset:2px;}
@media (prefers-reduced-motion:reduce){
  *{animation:none!important;transition:none!important;scroll-behavior:auto!important;}
}
