:root {
  --green:#0f6b45;
  --green-2:#16845a;
  --red:#d92e39;
  --ink:#171717;
  --muted:#676767;
  --paper:#fbfaf7;
  --card:#ffffff;
  --line:#e7e3dc;
  --shadow:0 18px 55px rgba(25,24,20,.10);
  --radius:24px;
  --safe-bottom:env(safe-area-inset-bottom,0px);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;color:var(--ink);background:var(--paper);font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;line-height:1.5}
body.locked{overflow:hidden}
a{color:inherit;text-decoration:none}
button,input{font:inherit}
button{cursor:pointer}
.container{width:min(1180px,calc(100% - 32px));margin-inline:auto}
.site-header{position:sticky;top:0;z-index:30;background:rgba(251,250,247,.90);backdrop-filter:blur(16px);border-bottom:1px solid rgba(231,227,220,.8)}
.topbar{height:76px;display:flex;align-items:center;justify-content:space-between}
.brand{display:flex;flex-direction:column;line-height:1}
.brand-main{font-family:Georgia,"Times New Roman",serif;font-size:29px;letter-spacing:-1.2px}
.brand-sub{font-size:10px;text-transform:uppercase;letter-spacing:4px;margin-top:7px;color:var(--green);font-weight:800}
.top-actions{display:flex;gap:9px}
.icon-btn{width:43px;height:43px;border-radius:50%;border:1px solid var(--line);background:#fff;display:grid;place-items:center;font-size:13px;font-weight:800;transition:.2s}
.icon-btn:hover{transform:translateY(-2px);border-color:#bbb}
.hero{overflow:hidden;background:radial-gradient(circle at 85% 40%,rgba(15,107,69,.10),transparent 34%),linear-gradient(145deg,#fff 0%,#f6f1e9 100%);border-bottom:1px solid var(--line)}
.hero-grid{min-height:520px;display:grid;grid-template-columns:1.08fr .92fr;align-items:center;gap:50px;padding-block:64px}
.eyebrow{display:block;color:var(--green);font-size:12px;text-transform:uppercase;letter-spacing:3px;font-weight:900;margin-bottom:12px}
.hero h1{font-family:Georgia,"Times New Roman",serif;font-weight:500;font-size:clamp(46px,6vw,78px);line-height:.98;letter-spacing:-3px;margin:0;max-width:800px}
.hero-copy>p{font-size:18px;color:var(--muted);max-width:560px;margin:24px 0}
.hero-actions{display:flex;gap:12px;flex-wrap:wrap}
.btn{min-height:50px;border:0;border-radius:999px;padding:13px 23px;display:inline-flex;align-items:center;justify-content:center;font-weight:850;transition:.2s}
.btn:hover{transform:translateY(-2px)}
.btn-primary{background:var(--green);color:#fff;box-shadow:0 12px 26px rgba(15,107,69,.23)}
.btn-secondary{background:#fff;border:1px solid var(--line)}
.btn-dark{background:#171717;color:#fff}
.btn-block{width:100%;border-radius:16px;margin-top:10px}
.trust-row{display:flex;flex-wrap:wrap;gap:18px;margin-top:30px;color:#5c5b57;font-size:12px;font-weight:750}
.trust-row span:before{content:"✓";color:var(--green);margin-right:6px}
.hero-visual{position:relative;min-height:420px;display:grid;place-items:center}
.hero-plate{position:absolute;width:min(420px,85%);aspect-ratio:1;border-radius:50%;background:#fff;box-shadow:0 35px 75px rgba(28,26,22,.17),inset 0 0 0 14px #f6f2eb}
.hero-pizza{position:relative;width:min(470px,96%);max-height:410px;object-fit:contain;filter:drop-shadow(0 25px 24px rgba(42,34,20,.25));transform:rotate(-7deg)}
.hero-badge{position:absolute;right:1%;bottom:11%;width:112px;aspect-ratio:1;border-radius:50%;background:var(--red);color:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;box-shadow:0 14px 32px rgba(217,46,57,.30);transform:rotate(7deg)}
.hero-badge strong{font-size:22px}.hero-badge span{font-size:10px;text-transform:uppercase;letter-spacing:1px}
.menu-shell{padding:46px 0 110px;background-image:linear-gradient(rgba(251,250,247,.94),rgba(251,250,247,.94)),url('../assets/marble.webp');background-size:420px}
.menu-toolbar{display:flex;gap:12px;align-items:center;margin-bottom:18px}
.search-box{flex:1;background:#fff;border:1px solid var(--line);border-radius:18px;display:flex;align-items:center;gap:10px;padding:0 17px;box-shadow:0 8px 25px rgba(0,0,0,.04)}
.search-box span{font-size:26px;color:#777;transform:rotate(-18deg)}
.search-box input{width:100%;height:56px;border:0;outline:0;background:transparent;font-size:15px}
.filter-btn{height:56px;border-radius:18px;border:1px solid var(--line);background:#fff;padding:0 18px;font-weight:800;white-space:nowrap}
.filter-btn[aria-pressed="true"]{background:#e8f5ee;border-color:#b9dbc8;color:var(--green)}
.category-tabs{display:flex;gap:9px;overflow:auto;scrollbar-width:none;padding:5px 1px 17px;position:sticky;top:76px;z-index:20;background:linear-gradient(var(--paper) 78%,transparent)}
.category-tabs::-webkit-scrollbar{display:none}
.tab{white-space:nowrap;border:1px solid var(--line);background:#fff;border-radius:999px;padding:11px 16px;font-weight:850;font-size:13px;transition:.2s}
.tab.active{background:var(--ink);border-color:var(--ink);color:#fff;box-shadow:0 8px 22px rgba(0,0,0,.15)}
.category-section{scroll-margin-top:150px;padding-top:34px}
.section-head{display:flex;justify-content:space-between;align-items:end;gap:20px;margin-bottom:19px}
.section-title{margin:0;font-family:Georgia,"Times New Roman",serif;font-size:clamp(32px,4vw,46px);font-weight:500;letter-spacing:-1.5px}
.section-count{color:var(--muted);font-size:13px}
.product-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.product-card{background:rgba(255,255,255,.95);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;min-height:100%;display:flex;flex-direction:column;box-shadow:0 10px 32px rgba(27,25,21,.05);transition:.22s}
.product-card:hover{transform:translateY(-4px);box-shadow:var(--shadow);border-color:#d8d2c8}
.product-media{height:190px;position:relative;display:grid;place-items:center;background:radial-gradient(circle,#fff 0%,#f3eee6 76%);overflow:hidden}
.product-media img{width:88%;height:88%;object-fit:contain;filter:drop-shadow(0 15px 13px rgba(0,0,0,.14));transition:.25s}
.product-card:hover .product-media img{transform:scale(1.04) rotate(-1deg)}
.badges{position:absolute;top:12px;left:12px;display:flex;gap:6px;flex-wrap:wrap}
.badge{font-size:10px;font-weight:900;text-transform:uppercase;letter-spacing:.5px;background:#fff;border:1px solid var(--line);padding:6px 9px;border-radius:999px}
.badge.spicy{background:#fff0ef;color:#b91f2e;border-color:#ffd3d6}.badge.veg{background:#edf8f2;color:var(--green);border-color:#cbe8d8}
.product-body{padding:18px;display:flex;flex-direction:column;flex:1}
.product-name{font-family:Georgia,"Times New Roman",serif;font-size:22px;line-height:1.1;margin:0 0 9px;font-weight:600}
.product-description{font-size:13px;color:var(--muted);margin:0 0 18px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.product-bottom{display:flex;justify-content:space-between;align-items:end;gap:12px;margin-top:auto}
.price{display:flex;flex-direction:column}.price small{font-size:10px;text-transform:uppercase;letter-spacing:1px;color:#888}.price strong{font-size:19px;color:var(--red)}
.add-btn{border:0;background:var(--green);color:#fff;border-radius:14px;padding:11px 14px;font-weight:900;min-width:94px}
.empty-state{text-align:center;padding:80px 20px;color:var(--muted)}.empty-state strong{display:block;color:var(--ink);font-size:22px}
.cart-fab{position:fixed;z-index:32;right:max(18px,calc((100vw - 1180px)/2));bottom:calc(18px + var(--safe-bottom));border:0;border-radius:19px;background:var(--ink);color:#fff;box-shadow:0 18px 45px rgba(0,0,0,.28);padding:10px 17px 10px 12px;display:flex;align-items:center;gap:10px;min-width:156px}
.cart-icon{width:38px;height:38px;border-radius:12px;background:var(--red);display:grid;place-items:center}.cart-copy{display:flex;flex-direction:column;text-align:left}.cart-copy b{font-size:13px}.cart-copy small{color:#ddd}
.overlay{position:fixed;inset:0;background:rgba(14,14,14,.52);backdrop-filter:blur(4px);z-index:40}
.drawer{position:fixed;z-index:42;right:0;top:0;height:100dvh;width:min(440px,100%);background:#fff;box-shadow:-30px 0 70px rgba(0,0,0,.18);transform:translateX(105%);transition:transform .28s ease;display:flex;flex-direction:column;padding-bottom:var(--safe-bottom)}
.drawer.open{transform:translateX(0)}
.drawer-head{padding:24px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:flex-start}.drawer-head h2{font-family:Georgia,serif;font-size:36px;margin:0;font-weight:500}
.close-btn{width:42px;height:42px;border:1px solid var(--line);background:#fff;border-radius:50%;font-size:27px;line-height:1}
.cart-items{padding:8px 20px;overflow:auto;flex:1}
.cart-empty{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;color:var(--muted);text-align:center;padding:30px}.cart-empty span{font-size:45px}.cart-empty strong{color:var(--ink);margin-top:12px}
.cart-row{display:grid;grid-template-columns:1fr auto;gap:12px;padding:16px 0;border-bottom:1px solid var(--line)}
.cart-row h3{font-size:15px;margin:0 0 4px}.cart-meta{font-size:12px;color:var(--muted)}
.cart-price{text-align:right;font-weight:900;color:var(--red)}
.qty-controls{display:flex;align-items:center;gap:8px;margin-top:10px}.qty-controls button{width:30px;height:30px;border-radius:9px;border:1px solid var(--line);background:#fff;font-weight:900}.remove-item{border:0;background:transparent;color:#9b3434;font-size:11px;margin-left:6px}
.cart-footer{padding:20px 24px;border-top:1px solid var(--line);background:#fff}.total-line{display:flex;justify-content:space-between;font-size:18px}.total-line strong{font-size:23px}.cart-note{font-size:11px;color:var(--muted);margin:8px 0}.link-btn{display:block;border:0;background:transparent;margin:13px auto 0;color:#8a3030;text-decoration:underline;font-size:12px}
.modal{position:fixed;z-index:43;left:50%;top:50%;width:min(620px,calc(100% - 24px));max-height:calc(100dvh - 24px);overflow:auto;background:#fff;border-radius:28px;box-shadow:0 30px 90px rgba(0,0,0,.30);transform:translate(-50%,-46%) scale(.97);opacity:0;pointer-events:none;transition:.22s}
.modal.open{transform:translate(-50%,-50%) scale(1);opacity:1;pointer-events:auto}
.modal-close{position:absolute;right:14px;top:14px;z-index:2}
.modal-hero{height:220px;background:radial-gradient(circle,#fff,#f2ece3);display:grid;place-items:center}.modal-hero img{width:80%;height:90%;object-fit:contain;filter:drop-shadow(0 14px 14px rgba(0,0,0,.15))}
.modal-content{padding:24px}.modal-content h2{font-family:Georgia,serif;font-size:36px;line-height:1.05;margin:0 46px 8px 0}.modal-content>p{color:var(--muted);font-size:14px}
.option-block{margin-top:22px}.option-title{font-size:12px;text-transform:uppercase;letter-spacing:1.5px;font-weight:900;margin-bottom:10px}.choice-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.choice{position:relative}.choice input{position:absolute;opacity:0}.choice label{border:1px solid var(--line);border-radius:14px;padding:11px 8px;text-align:center;display:block;font-weight:850;background:#fff}.choice input:checked+label{border-color:var(--green);background:#edf8f2;color:var(--green);box-shadow:inset 0 0 0 1px var(--green)}
.checkbox-list{display:grid;grid-template-columns:1fr 1fr;gap:8px}.check{display:flex;align-items:center;gap:9px;border:1px solid var(--line);border-radius:13px;padding:10px;font-size:13px}.check input{accent-color:var(--green)}
.modal-add{display:flex;gap:10px;margin-top:24px}.modal-add .qty-box{display:flex;border:1px solid var(--line);border-radius:16px;overflow:hidden}.modal-add .qty-box button,.modal-add .qty-box span{width:43px;display:grid;place-items:center;border:0;background:#fff;font-weight:900}.modal-add .btn{flex:1;border-radius:16px}
.toast{position:fixed;left:50%;bottom:calc(92px + var(--safe-bottom));z-index:60;transform:translate(-50%,18px);background:#171717;color:#fff;border-radius:999px;padding:11px 17px;font-size:13px;opacity:0;pointer-events:none;transition:.22s}.toast.show{opacity:1;transform:translate(-50%,0)}
.site-footer{border-top:1px solid var(--line);background:#fff;padding:38px 0 100px}.footer-inner{display:flex;justify-content:space-between;gap:30px}.footer-inner p{color:var(--muted);font-size:13px}.footer-links{display:flex;gap:20px;align-items:center;font-weight:800;font-size:13px}
@media(max-width:900px){.hero-grid{grid-template-columns:1fr;min-height:auto;padding-block:48px}.hero-copy{text-align:center}.hero-copy>p{margin-inline:auto}.hero-actions,.trust-row{justify-content:center}.hero-visual{min-height:330px}.hero-plate{width:320px}.hero-pizza{max-height:320px}.product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.container{width:min(100% - 22px,1180px)}.topbar{height:66px}.brand-main{font-size:25px}.brand-sub{font-size:8px}.site-header .icon-btn{width:39px;height:39px}.hero-grid{padding:34px 0 24px;gap:16px}.hero h1{font-size:45px;letter-spacing:-2px}.hero-copy>p{font-size:15px;margin:18px auto}.trust-row{gap:8px 14px;margin-top:20px}.hero-visual{min-height:270px}.hero-plate{width:255px}.hero-pizza{max-height:270px}.hero-badge{width:88px;right:3%;bottom:5%}.menu-shell{padding-top:24px}.menu-toolbar{align-items:stretch}.search-box input{height:51px;font-size:13px}.filter-btn{height:51px;width:52px;padding:0;font-size:0}.filter-btn:first-letter{font-size:20px}.category-tabs{top:66px}.product-grid{grid-template-columns:1fr}.product-card{display:grid;grid-template-columns:122px 1fr;border-radius:20px}.product-media{height:auto;min-height:160px}.product-body{padding:15px}.product-name{font-size:20px}.product-description{-webkit-line-clamp:2;margin-bottom:13px;font-size:12px}.add-btn{min-width:80px;padding:10px}.cart-fab{left:11px;right:11px;bottom:calc(10px + var(--safe-bottom));justify-content:center}.cart-copy{flex-direction:row;gap:8px}.cart-copy small:before{content:"• ";}.site-footer{padding-bottom:110px}.footer-inner{flex-direction:column}.footer-links{flex-direction:column;align-items:flex-start}.modal-hero{height:185px}.modal-content{padding:20px}.modal-content h2{font-size:31px}.checkbox-list{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

/* Affichage immédiat des tailles et prix */
.product-bottom.has-variants{display:flex;flex-direction:column;align-items:stretch;gap:9px;margin-top:auto}
.pricing-label{font-size:10px;text-transform:uppercase;letter-spacing:1.2px;color:#7d7a74;font-weight:900}
.variant-prices{display:grid;grid-template-columns:repeat(var(--variant-count),minmax(0,1fr));gap:7px}
.variant-price{min-width:0;border:1px solid var(--line);background:#fbfaf7;border-radius:12px;padding:8px 5px;text-align:center;display:flex;flex-direction:column;gap:1px}
.variant-price span{font-size:11px;line-height:1.1;font-weight:950;color:var(--ink);text-transform:uppercase;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.variant-price strong{font-size:14px;line-height:1.2;color:var(--red);white-space:nowrap}
.product-bottom.has-variants .add-btn{width:100%}
@media(max-width:620px){
  .product-card:has(.has-variants){grid-template-columns:108px 1fr}
  .product-card:has(.has-variants) .product-media{min-height:205px}
  .variant-price{padding:7px 3px;border-radius:10px}
  .variant-price span{font-size:10px}
  .variant-price strong{font-size:12px}
  .product-bottom.has-variants .add-btn{padding:9px 7px;font-size:12px}
}

/* Identité visuelle Pizza Italia */
.brand{display:flex;align-items:center;line-height:1}
.brand-logo{display:block;width:150px;height:auto;max-height:58px;object-fit:contain;border-radius:10px;box-shadow:0 8px 18px rgba(0,0,0,.13)}
.footer-brand{display:flex;flex-direction:column;align-items:flex-start}
.footer-logo{display:block;width:190px;height:auto;border-radius:14px;box-shadow:0 12px 28px rgba(0,0,0,.15)}
.footer-brand p{margin:11px 0 0}
@media(max-width:620px){
  .brand-logo{width:126px;max-height:52px;border-radius:8px}
  .footer-logo{width:170px}
}

/* Version consultation uniquement — sans panier ni commande */
body{padding-bottom:0}
.hero-visual{isolation:isolate;min-height:430px}
.hero-logo-card{position:absolute;z-index:2;top:2%;right:4%;width:min(310px,76%);aspect-ratio:1;border-radius:34px;overflow:hidden;background:#111;box-shadow:0 30px 70px rgba(0,0,0,.24);transform:rotate(3deg)}
.hero-brand-logo{width:100%;height:100%;display:block;object-fit:cover}
.hero-pizza{position:absolute;z-index:3;left:-2%;bottom:-2%;width:min(330px,74%);max-height:300px;transform:rotate(-11deg);filter:drop-shadow(0 25px 24px rgba(42,34,20,.28))}
.hero-badge{z-index:4;right:0;bottom:8%;width:110px}
.hero-badge strong{font-size:15px;letter-spacing:.4px}
.menu-notice{display:flex;align-items:center;gap:12px;padding:14px 17px;margin-bottom:16px;border:1px solid #d8e6de;background:#edf7f1;border-radius:17px;color:#315d49;font-size:13px}
.menu-notice strong{color:var(--green);white-space:nowrap}
.product-bottom.single-price{display:flex;justify-content:flex-start;border-top:1px solid var(--line);padding-top:12px}
.product-bottom.has-variants{border-top:1px solid var(--line);padding-top:12px}
.product-bottom.has-variants .add-btn,.add-btn{display:none!important}
.product-card{cursor:default}
.product-card:hover{transform:translateY(-2px)}
.site-footer{padding-bottom:38px}
.footer-logo{width:180px;aspect-ratio:1;object-fit:cover}
.toast{bottom:24px}
@media(max-width:900px){
  .hero-visual{min-height:390px}
  .hero-logo-card{position:relative;top:auto;right:auto;width:min(330px,82%)}
  .hero-pizza{left:4%;bottom:-4%;width:min(300px,68%)}
}
@media(max-width:620px){
  .hero-grid{padding-bottom:38px}
  .hero-visual{min-height:340px}
  .hero-logo-card{width:min(280px,82%);border-radius:28px}
  .hero-pizza{width:min(230px,66%);bottom:-1%}
  .hero-badge{width:86px;right:2%;bottom:9%}
  .hero-badge strong{font-size:12px}
  .menu-notice{align-items:flex-start;flex-direction:column;gap:3px}
  .product-card:has(.has-variants){grid-template-columns:108px 1fr}
  .site-footer{padding-bottom:34px}
}


/* Correctif v5 — logo PNG + tailles toujours visibles sur mobile */
.brand-logo{
  width:174px;
  height:auto;
  max-height:54px;
  object-fit:contain;
  border-radius:9px;
  background:#111;
  box-shadow:0 7px 18px rgba(0,0,0,.15);
}

@media(max-width:620px){
  .brand-logo{
    width:150px;
    max-height:48px;
    border-radius:8px;
  }

  /* Les pizzas/produits à formats passent en carte verticale compacte.
     Aucun sélecteur :has(), pour compatibilité avec tous les navigateurs mobiles. */
  .product-card.has-price-variants{
    display:flex;
    flex-direction:column;
    grid-template-columns:none;
    overflow:visible;
  }
  .product-card.has-price-variants .product-media{
    width:100%;
    height:132px;
    min-height:132px;
  }
  .product-card.has-price-variants .product-media img{
    width:72%;
    height:88%;
  }
  .product-card.has-price-variants .product-body{
    width:100%;
    padding:14px 15px 15px;
  }
  .product-card.has-price-variants .product-description{
    display:block;
    overflow:visible;
    -webkit-line-clamp:unset;
    margin-bottom:12px;
  }
  .product-card.has-price-variants .product-bottom.has-variants{
    display:flex !important;
    width:100%;
    visibility:visible !important;
    opacity:1 !important;
    border-top:1px solid var(--line);
    padding-top:11px;
    margin-top:0;
  }
  .product-card.has-price-variants .pricing-label{
    display:block;
    font-size:10px;
  }
  .product-card.has-price-variants .variant-prices{
    display:grid !important;
    grid-template-columns:repeat(var(--variant-count),minmax(0,1fr));
    width:100%;
    gap:7px;
  }
  .product-card.has-price-variants .variant-price{
    display:flex !important;
    min-height:51px;
    align-items:center;
    justify-content:center;
    padding:7px 4px;
    background:#fff;
    border:1px solid #ded9d0;
  }
  .product-card.has-price-variants .variant-price span{
    display:block;
    font-size:11px;
    overflow:visible;
    text-overflow:clip;
  }
  .product-card.has-price-variants .variant-price strong{
    display:block;
    font-size:14px;
    line-height:1.2;
  }
}
