/* ============================================================================
   Personnalisations Aquanomade (pages FAQ, articles, catégories, panier).
   Ce fichier est chargé automatiquement par PrestaShop (assets/css/custom.css)
   et n'est PAS régénéré par /srv/aquanomade-migration/build_theme.py.
   ============================================================================ */


/* Page FAQ (cms 7) : pas de cadre blanc autour du bloc vert */
body.cms-id-7 #wrapper,body.cms-id-7 #content-wrapper,body.cms-id-7 #main,body.cms-id-7 #content,body.cms-id-7 .page-cms{background:transparent;box-shadow:none;border:0;padding-left:0;padding-right:0}

/* Articles de blog (pages CMS) : les images s'adaptent à la largeur de la colonne, coins arrondis comme sur Shopify */
body#cms .page-cms img{max-width:100%;height:auto;border-radius:20px;display:block;box-sizing:border-box}
body#cms .page-cms p>img:only-child{width:100%;margin:0 0 20px}
body#cms .page-cms table{max-width:100%}
body#cms.cms-id-7 .page-cms img{border-radius:0}

/* ===== Pages catégories : reprise de la collection Shopify ===== */
body#category #wrapper{background:transparent;padding:0}
.aqc-page{width:100vw;max-width:1520px;position:relative;left:50%;transform:translateX(-50%);padding:40px 40px 88px;box-sizing:border-box;color:#000}
.aqc-desc{text-align:center}
.aqc-desc h1{font-size:clamp(34px,4.72vw,68px);font-weight:700;line-height:1.3;margin:0;color:#000;text-transform:none;letter-spacing:0}
.aqc-desc h2{font-size:clamp(22px,2.92vw,42px);font-weight:700;line-height:1.3;margin:0;color:#000}
.aqc-desc p{margin:16px 0 0;font-size:16px;line-height:1.4;color:#000}
.aqc-grid{display:flex;flex-wrap:wrap;gap:20px;margin:16px 0 0}
.aqc-grid>.aqc-item{width:calc(25% - 15px);max-width:calc(25% - 15px);flex:0 0 auto;padding:0;margin:0}
.aqc-card{position:relative;display:flex;flex-direction:column;height:100%;box-sizing:border-box;border:1px solid rgb(0,128,0);border-radius:20px;background:#fff;color:rgb(18,18,18);overflow:hidden;text-align:left;box-shadow:none}
.aqc-media{position:relative;margin:20px 20px 0}
.aqc-media-link{position:relative;display:block;aspect-ratio:1/1;overflow:hidden;background:#fff}
.aqc-img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block;max-width:100%;transition:opacity .3s ease}
.aqc-img-second{opacity:0}
.aqc-card:hover .aqc-img-second{opacity:1}
.aqc-quick{position:absolute;left:0;right:0;bottom:0;display:flex;justify-content:center;opacity:0;transform:translateY(8px);transition:opacity .3s ease,transform .3s ease;pointer-events:none}
.aqc-card:hover .aqc-quick,.aqc-card:focus-within .aqc-quick{opacity:1;transform:none;pointer-events:auto}
.aqc-quick-add{display:flex;align-items:center;justify-content:center;height:44px;padding:0 30px;border:0;border-radius:32px;background:rgb(3,111,73);color:#fff;font-family:inherit;font-size:16px;font-weight:700;line-height:1;text-decoration:none;cursor:pointer;white-space:nowrap}
.aqc-quick-add:hover{background:rgb(0,128,0);color:#fff;text-decoration:none}
.aqc-quick-add.is-loading{opacity:.7;pointer-events:none}
.aqc-info{padding:30px;border-top:1px solid rgb(0,128,0)}
.aqc-title{margin:15px 0 0;font-size:16px;font-weight:600;line-height:1.3;letter-spacing:0;text-transform:none;color:rgb(18,18,18)}
.aqc-title a{color:inherit;text-decoration:none}
.aqc-title a:hover{text-decoration:underline;text-underline-offset:.3rem}
.aqc-price{margin:0 0 8px;font-size:16px;font-weight:500;line-height:1.3;color:rgb(18,18,18)}
.aqc-price-now{margin-right:10px}
.aqc-price-old{font-size:14px;color:rgba(18,18,18,.5);margin-right:10px}
.aqc-review{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:0 0 8px;min-height:23px}
.aqc-review .product-list-reviews{display:flex;align-items:center;gap:8px;margin:0}
.aqc-review .grade-stars{margin:0}
.aqc-review .comments-nb{font-size:12px;color:rgba(18,18,18,.6)}
.aqc-review .star-on,.aqc-review .star .material-icons,.aqc-review .star-content .star{color:#f5b100}
.aqc-badge{display:inline-block;padding:3px 8px;border-radius:12px;background:#28a745;color:#fff;font-size:12px;font-weight:600;line-height:16.8px}
.aqc-seo{margin-top:40px;color:#000}
.aqc-seo-content{overflow:hidden;transition:max-height .4s ease}
.aqc-seo-content.collapsed{max-height:100px;-webkit-mask-image:linear-gradient(#000 55%,transparent);mask-image:linear-gradient(#000 55%,transparent)}
.aqc-seo-content h2{font-size:clamp(23px,2.92vw,42px);font-weight:700;line-height:1.3;margin:0;color:#000}
.aqc-seo-content h3{font-size:clamp(24.7px,2.64vw,38px);font-weight:700;line-height:1.3;margin:0;color:#000}
.aqc-seo-content p{margin:16px 0;font-size:16px;line-height:1.4;color:#000}
.aqc-seo-content a{color:rgb(0,128,0)}
.aqc-seo-btn{display:inline-block;margin-top:10px;padding:10px 20px;border:0;border-radius:5px;background:rgb(0,128,0);color:#fff;font-family:inherit;font-size:13.3333px;cursor:pointer}
.aqc-seo-btn:hover{background:rgb(3,111,73)}
.aqc-crumbs{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:12px;margin:90px 0 0;padding:14px 20px;border:1px solid rgb(0,128,0);border-radius:30px;background:transparent;font-size:14px;color:#000}
.aqc-crumbs a{color:#000;text-decoration:none}
.aqc-crumbs a:hover{text-decoration:underline}
.aqc-crumb-sep{opacity:.6}
@media (max-width:1199px){
  .aqc-grid>.aqc-item{width:calc(33.3333% - 13.3333px);max-width:calc(33.3333% - 13.3333px)}
  .aqc-desc h1{font-size:57.8px}.aqc-desc h2{font-size:35.7px}
}
@media (max-width:989px){
  .aqc-grid>.aqc-item{width:calc(50% - 10px);max-width:calc(50% - 10px)}
}
@media (max-width:749px){
  .aqc-page{padding:30px 15px 66px}
  .aqc-grid{gap:10px}
  .aqc-grid>.aqc-item{width:calc(50% - 5px);max-width:calc(50% - 5px)}
  .aqc-desc h1{font-size:37.4px}.aqc-desc h2{font-size:23.1px}
  .aqc-info{padding:16px}
  .aqc-media{margin:12px 12px 0}
  .aqc-title{font-size:14px}
  .aqc-quick{opacity:1;transform:none;pointer-events:auto}
  .aqc-quick-add{height:38px;padding:0 18px;font-size:14px}
  .aqc-crumbs{margin-top:50px;font-size:13px}
}
@media (hover:none){.aqc-quick{opacity:1;transform:none;pointer-events:auto}}

/* ===== Page panier : reprise du panier Shopify ===== */
body#cart #wrapper{background:transparent}
.aqk-page{width:100vw;max-width:1440px;position:relative;left:50%;transform:translateX(-50%);padding:16px 40px 88px;box-sizing:border-box;color:#000}
.aqk-banner{border:1px solid rgb(0,128,0);border-radius:40px;text-align:center;padding:12px 20px 14px}
.aqk-banner h1{margin:0;font-size:42px;font-weight:700;line-height:1.2;color:#000;text-transform:none;letter-spacing:0}
.aqk-crumbs{display:flex;justify-content:center;align-items:center;gap:14px;margin-top:4px;font-size:16px}
.aqk-crumbs a{color:#000;text-decoration:none}
.aqk-crumbs a:hover{text-decoration:underline}
.aqk-cart{max-width:1120px;margin:0 auto}
.aqk-head,.aqk-line{display:grid;grid-template-columns:1fr 340px 108px;align-items:center}
.aqk-head{padding:0 0 14px;border-bottom:1px solid #e4e4e4;font-size:16px;font-weight:600;text-transform:uppercase;letter-spacing:0}
.aqk-head span:last-child{text-align:right}
.aqk-items{list-style:none;margin:0;padding:0}
.aqk-item{padding:0;margin:0;border-bottom:1px solid rgb(0,128,0)}
.aqk-line{padding:40px 0}
.aqk-line-product{display:flex;align-items:center;gap:20px;min-width:0}
.aqk-line-image{flex:0 0 112px;width:112px;height:112px;border-radius:20px;overflow:hidden;background:#f6f6f6;display:block}
.aqk-line-image img{width:100%;height:100%;object-fit:cover;mix-blend-mode:multiply;display:block}
.aqk-line-name{display:block;font-size:16px;font-weight:600;line-height:1.3;color:#000;text-decoration:none}
.aqk-line-name:hover{text-decoration:underline}
.aqk-line-price{font-size:16px;margin-top:2px;color:#000}
.aqk-line-price .regular-price{margin-left:8px;font-size:14px;color:rgba(0,0,0,.5)}
.aqk-line-attr{font-size:14px;color:rgba(0,0,0,.7)}
.aqk-line-qty{display:flex;align-items:center;gap:28px}
.aqk-line-qty .bootstrap-touchspin{display:flex;flex-direction:row;align-items:center;width:140px;height:54px;margin:0;border:1px solid rgb(0,128,0);border-radius:30px;overflow:hidden;background:#fff;box-shadow:none;position:relative}
.aqk-line-qty .bootstrap-touchspin input.js-cart-line-product-quantity,.aqk-line-qty .bootstrap-touchspin .form-control{order:2;flex:1 1 auto;min-width:0;width:auto;height:100%;padding:0;border:0;background:transparent;text-align:center;font-size:16px;font-weight:600;box-shadow:none;color:#000}
.aqk-line-qty input.js-cart-line-product-quantity:not(.form-control){width:100px;height:54px;border:1px solid rgb(0,128,0);border-radius:30px;text-align:center}
.aqk-line-qty .input-group-btn-vertical{display:contents;position:static}
.aqk-line-qty .bootstrap-touchspin .btn-touchspin{position:static;float:none;flex:0 0 40px;width:40px;height:100%;margin:0;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;font-size:0;line-height:1;cursor:pointer;color:#000}
.aqk-line-qty .bootstrap-touchspin .btn-touchspin i{display:none}
.aqk-line-qty .bootstrap-touchspin .bootstrap-touchspin-down{order:1}
.aqk-line-qty .bootstrap-touchspin .bootstrap-touchspin-up{order:3}
.aqk-line-qty .bootstrap-touchspin .bootstrap-touchspin-down:before{content:"\2212";font-size:20px}
.aqk-line-qty .bootstrap-touchspin .bootstrap-touchspin-up:before{content:"+";font-size:20px}
.aqk-line-qty .bootstrap-touchspin .btn-touchspin:hover{color:rgb(79,126,255)}
.aqk-line-remove a{display:inline-flex;color:#000;text-decoration:none}
.aqk-line-remove a:hover{color:rgb(79,126,255)}
.aqk-line-total{text-align:right;font-size:16px}
.aqk-line-total strong{font-weight:400}
.aqk-empty{padding:60px 0 10px;text-align:center;font-size:28px;font-weight:700;margin:0}
.aqk-continue{text-align:center;margin-top:36px}
.aqk-btn{display:inline-flex;align-items:center;justify-content:center;height:44px;padding:0 30px;border:0;border-radius:30px;background:rgb(79,126,255);color:#fff;font-family:inherit;font-size:16px;font-weight:700;line-height:1;text-decoration:none;cursor:pointer}
.aqk-btn:hover{background:rgb(60,104,230);color:#fff;text-decoration:none}
.aqk-btn--full{width:100%}
.aqk-btn.disabled,.aqk-btn[disabled]{opacity:.45;cursor:not-allowed;pointer-events:none}
.aqk-foot{display:flex;justify-content:flex-end;margin-top:60px}
.aqk-summary{width:350px;margin-right:30px;background:transparent;border:0;box-shadow:none;padding:0}
.aqk-subtotal{display:flex;justify-content:flex-end;align-items:baseline;gap:15px;text-align:right;font-weight:700}
.aqk-subtotal .label{font-size:16px;font-weight:700;color:#000}
.aqk-subtotal .value{font-size:18px;font-weight:700;color:#000}
.aqk-subtotal--discount{font-weight:600;margin-top:6px}
.aqk-taxnote{margin:14px 0 20px;text-align:right;font-size:16px;line-height:1.5;color:#000}
.aqk-actions{padding:0;border:0;background:transparent}
.aqk-summary .cart-voucher{margin-top:18px;text-align:right;font-size:14px}
.aqk-summary .cart-voucher a{color:rgb(79,126,255)}
.aqk-page .price,.aqk-page .product-price,.aqk-page .product-price strong,.aqk-page .aqk-line-total,.aqk-page .aqk-line-total *{color:#000}
.aqk-page .aqk-line-price .regular-price{color:rgba(0,0,0,.5)}
@media (max-width:989px){
  .aqk-line{grid-template-columns:1fr 1fr;row-gap:20px}
  .aqk-head{display:none}
  .aqk-line-product{grid-column:1 / -1}
  .aqk-line-total{align-self:center}
  .aqk-foot{justify-content:stretch}
  .aqk-summary{width:100%;margin-right:0}
}
@media (max-width:749px){
  .aqk-page{padding:30px 15px 66px}
  .aqk-banner h1{font-size:30px}
  .aqk-line{padding:24px 0}
  .aqk-line-image{flex-basis:90px;width:90px;height:90px}
}
/* le panier ne s'ouvre plus en fenêtre : on va directement à la page panier (comme sur Shopify) */
#blockcart-modal{display:none!important}
.modal-backdrop.in{display:none!important}
.aqc-card{justify-content:flex-start}
.aqc-media,.aqc-info{flex:none}
.aqc-info{flex:1 1 auto}
