/* ---------- Méga-menus ---------- */
.nav{position:relative}
.nav ul{align-items:stretch}
.nav li{display:flex;align-items:center}
.nav .has-mega>a{padding-right:2px}
.chev{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;margin-left:2px;padding:0;border:0;border-radius:50%;background:none;color:var(--muted);cursor:pointer;transition:color .18s,background .18s}
.chev svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;transition:rotate .22s}
.chev:hover{color:var(--wine);background:rgba(138,31,63,.08)}
.has-mega.open>.chev{color:var(--wine)}
.has-mega.open>.chev svg{rotate:180deg}
.has-mega.open>a::after{scale:1 1}

.scrim{position:fixed;inset:0;z-index:40;background:rgba(18,28,22,.38);opacity:0;visibility:hidden;transition:opacity .25s,visibility .25s}
.scrim.on{opacity:1;visibility:visible}

.mega{position:absolute;left:0;right:0;top:100%;z-index:60;background:#fff;border-top:1px solid var(--line);border-radius:0 0 18px 18px;box-shadow:0 28px 48px -20px rgba(20,24,20,.32);opacity:0;visibility:hidden;translate:0 8px;transition:opacity .2s,translate .2s,visibility .2s}
.has-mega.open>.mega{opacity:1;visibility:visible;translate:0 0}
.mega__in{display:grid;grid-template-columns:300px minmax(0,1fr);gap:28px;max-width:var(--wrapw);margin-inline:auto;padding:26px var(--gut) 28px}

/* carte vedette */
.feat{position:relative;isolation:isolate;display:flex;flex-direction:column;justify-content:flex-end;gap:6px;min-height:100%;min-height:340px;padding:22px;border-radius:16px;overflow:hidden;color:#fff;background:var(--green)}
.feat>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2;transition:transform .6s}
.feat::before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(180deg,rgba(12,20,16,0) 30%,rgba(12,20,16,.82) 100%)}
.feat:hover>img{transform:scale(1.05)}
.feat small{font-size:12px;letter-spacing:.08em;text-transform:uppercase;opacity:.85}
.feat strong{font:400 28px/1.1 var(--serif)}
.feat span{display:inline-flex;align-items:center;gap:8px;margin-top:8px;font-size:13.5px;font-weight:500}
.feat span svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;transition:translate .2s}
.feat:hover span svg{translate:4px 0}

/* grille de rayons */
.mega__body{display:flex;flex-direction:column;gap:18px;min-width:0}
.mega__head{display:flex;align-items:baseline;justify-content:space-between;gap:16px}
.mega__head h3{font:400 22px/1.2 var(--serif)}
.mega__head a{display:inline-flex;align-items:center;gap:6px;color:var(--wine);font-weight:500;font-size:13.5px;white-space:nowrap}
.mega__head a svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(128px,1fr));gap:14px 12px}
.tile{display:flex;flex-direction:column;gap:8px;min-width:0;text-align:center;font-size:13px;font-weight:500;line-height:1.25}
.tile__img{display:block;aspect-ratio:1/1;border-radius:14px;overflow:hidden;background:#eee;box-shadow:0 1px 2px rgba(0,0,0,.06)}
.tile__img img{width:100%;height:100%;object-fit:cover;transition:transform .45s}
.tile:hover .tile__img img{transform:scale(1.08)}
.tile:hover{color:var(--wine)}
.tile:focus-visible .tile__img{outline:2px solid var(--wine);outline-offset:2px}
.tile--link .tile__img{display:flex;align-items:center;justify-content:center;background:var(--bg);color:var(--wine)}
.tile--link svg{width:28px;height:28px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}

/* bandeau gammes / liens */
.strip{display:flex;align-items:center;flex-wrap:wrap;gap:8px 8px;padding-top:16px;border-top:1px solid var(--line)}
.strip__label{margin-right:6px;font-weight:600;font-size:13px}
.chip{display:inline-flex;align-items:center;gap:6px;height:32px;padding:0 14px;border:1px solid var(--line);border-radius:16px;background:#faf9f7;font-size:13px;font-weight:500;white-space:nowrap;transition:background .18s,border-color .18s,color .18s}
.chip:hover{background:var(--wine);border-color:var(--wine);color:#fff}
.chip--solid{background:var(--wine);border-color:var(--wine);color:#fff}
.chip--solid:hover{background:var(--wine-d);border-color:var(--wine-d)}
.chip svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}

/* marques */
.brands{display:flex;flex-direction:column;gap:14px}
.brands h4{margin-bottom:8px;font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);font-weight:600}
.brands__pills{display:flex;flex-wrap:wrap;gap:8px}

/* boutiques */
.shops{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px 20px}
.shop{display:flex;align-items:center;gap:12px;padding:7px 8px;border-radius:10px;font-size:13.5px;font-weight:500;min-width:0;transition:background .18s,color .18s}
.shop:hover{background:#f4f1ec;color:var(--wine)}
.shop b{flex:none;min-width:38px;padding:3px 0;border-radius:8px;background:rgba(138,31,63,.09);color:var(--wine);font-size:12px;font-weight:700;text-align:center}
.shop span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.shop--all{grid-column:1/-1;color:var(--wine);font-weight:600}
.courier{display:flex;align-items:center;gap:12px;padding:12px 16px;border-radius:12px;background:linear-gradient(90deg,#f7ebee,#fbf5f2);color:var(--wine);font-weight:600;font-size:14px}
.courier svg{width:30px;height:22px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}

@media (max-width:1100px){
  .mega__in{grid-template-columns:240px minmax(0,1fr);gap:20px}
  .shops{grid-template-columns:repeat(2,minmax(0,1fr))}
}
/* éléments propres au tiroir mobile */
.drawer__head,.drawer__search,.drawer__foot,.nav .only-m,.nav__thumb,.nav__txt small,.go,.mega__back,.drawer-scrim{display:none}

@media (max-width:860px){
  html.drawer-open{overflow:hidden}
  .scrim{display:none}
  .drawer-scrim{display:block;position:fixed;inset:0;z-index:2;background:rgba(12,22,17,.55);backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px);opacity:0;visibility:hidden;transition:opacity .3s,visibility .3s}
  .drawer-scrim.on{opacity:1;visibility:visible}

  .nav{position:fixed;inset:0 auto 0 0;z-index:3;display:flex;flex-direction:column;width:min(100vw,420px);height:100vh;height:100dvh;overflow:hidden;background:#f6f3ee;border:0;box-shadow:24px 0 60px -24px rgba(0,0,0,.45);transform:translateX(-102%);visibility:hidden;transition:transform .38s cubic-bezier(.22,.8,.24,1),visibility .38s}
  .nav.open{transform:none;visibility:visible}

  .drawer__head{display:flex;flex:none;align-items:center;justify-content:space-between;gap:12px;height:64px;padding:0 12px 0 20px;background:var(--green)}
  .drawer__logo{width:142px;height:auto}
  .drawer__close{display:flex;align-items:center;justify-content:center;width:44px;height:44px;padding:0;border:0;border-radius:50%;background:rgba(255,255,255,.14);color:#fff;cursor:pointer;transition:background .18s,rotate .3s}
  .drawer__close:hover{background:rgba(255,255,255,.24);rotate:90deg}
  .drawer__close .ico{width:22px;height:22px}

  .drawer__search{display:block;position:relative;flex:none;padding:2px 16px 18px;background:linear-gradient(180deg,var(--green),#1a3428);border-radius:0 0 24px 24px;box-shadow:0 12px 24px -18px rgba(0,0,0,.6)}
  .drawer__search .ico{position:absolute;left:31px;top:calc(50% - 8px);translate:0 -50%;width:18px;height:18px;color:var(--muted);pointer-events:none}
  .drawer__search input{width:100%;height:50px;padding:0 16px 0 46px;border:0;border-radius:16px;background:#fff;font-size:16px}
  .drawer__search input:focus{outline:0;box-shadow:0 0 0 3px rgba(255,255,255,.35)}

  .nav>ul{flex:1;min-height:0;max-width:none;display:flex;flex-direction:column;justify-content:flex-start;gap:10px;margin:0;padding:16px 16px 24px;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
  .nav li{position:static;display:flex;align-items:center;flex:none;background:#fff;border-radius:20px;box-shadow:0 1px 2px rgba(20,20,20,.04),0 10px 22px -16px rgba(20,20,20,.35);transition:background .15s}
  .nav li:active{background:#fbf8f4}
  .nav>ul>li>a{flex:1;display:flex;align-items:center;gap:14px;min-width:0;padding:10px 4px 10px 10px;border:0;line-height:1.2;white-space:normal}
  .nav>ul>li>a::after{display:none}
  .nav__thumb{display:block;flex:none;width:62px;height:62px;border-radius:16px;overflow:hidden;background:#ece7df;box-shadow:inset 0 0 0 1px rgba(0,0,0,.04)}
  .nav__thumb img{width:100%;height:100%;object-fit:cover;transition:transform .4s}
  .nav li:hover .nav__thumb img{transform:scale(1.08)}
  .nav__txt{display:flex;flex-direction:column;gap:4px;min-width:0;font:400 19px/1.1 var(--serif);color:var(--ink)}
  .nav__txt small{display:block;overflow:hidden;font:400 12.5px/1.3 var(--sans);color:var(--muted);text-overflow:ellipsis;white-space:nowrap}
  .chev,.go{display:flex;flex:none;align-items:center;justify-content:center;width:36px;height:36px;margin:0 10px 0 0;border-radius:50%;background:#f4f1ec;color:var(--ink)}
  .go{margin:0 6px 0 auto}
  .chev svg,.go svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
  .chev svg,.has-mega.open>.chev svg{rotate:-90deg}

  .nav .only-m{display:flex;margin-top:6px;background:none;box-shadow:none}
  .nav .m-label{box-shadow:none;background:none}
  .drawer__promo{display:flex;align-items:center;gap:14px;width:100%;padding:14px 16px;border-radius:18px;background:linear-gradient(120deg,var(--wine),#b23a5c);color:#fff;box-shadow:0 12px 24px -14px rgba(138,31,63,.8)}
  .drawer__promo .ico{flex:none;width:34px;height:26px;stroke-width:1.5}
  .drawer__promo span{display:flex;flex-direction:column;gap:2px}
  .drawer__promo b{font-size:15px}
  .drawer__promo small{font-size:12.5px;opacity:.9}

  .drawer__foot{display:grid;flex:none;grid-template-columns:repeat(3,1fr);gap:8px;padding:10px 16px calc(10px + env(safe-area-inset-bottom));background:#fff;border-top:1px solid var(--line);box-shadow:0 -10px 24px -18px rgba(0,0,0,.25)}
  .drawer__foot a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;height:60px;border-radius:16px;font-size:12.5px;font-weight:600;transition:background .18s,color .18s}
  .drawer__foot a:hover,.drawer__foot a:active{background:#f6f1ec;color:var(--wine)}
  .drawer__foot .ico{width:22px;height:22px;color:var(--wine)}

  /* bandeau offre en tête de liste */
  .nav .m-offer{margin:2px 0 8px}
  .nav .drawer__offer{position:relative;isolation:isolate;display:flex;align-items:flex-end;width:100%;height:150px;padding:16px 18px;border-radius:22px;overflow:hidden;background:#f7d9c8;box-shadow:0 16px 28px -20px rgba(138,31,63,.7)}
  .drawer__offer img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 70%;z-index:-2;transform:scale(1.25);transform-origin:60% 75%}
  .drawer__offer::before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,rgba(255,246,240,.96) 0,rgba(255,246,240,.75) 42%,rgba(255,246,240,0) 72%)}
  .drawer__offer span{display:flex;flex-direction:column;gap:2px}
  .drawer__offer small{margin-bottom:4px;font-size:11.5px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--wine)}
  .drawer__offer b{font:400 22px/1.1 var(--serif);color:var(--ink)}
  .drawer__offer b em{font-style:normal;color:var(--wine)}
  .drawer__offer i{position:absolute;right:14px;top:14px;display:flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:50%;background:var(--wine);color:#fff;box-shadow:0 6px 14px -6px rgba(138,31,63,.8)}
  .drawer__offer i svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
  .nav .m-label{display:block;margin:6px 4px 0;font-size:11.5px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--muted)}

  /* apparition en cascade */
  .nav.anim>ul>li{animation:rowFade .5s ease both;animation-delay:calc(80ms + var(--i,0) * 40ms)}
  .nav.anim>ul>li>a,.nav.anim>ul>li>.chev{animation:rowSlide .5s cubic-bezier(.22,.8,.24,1) both;animation-delay:calc(80ms + var(--i,0) * 40ms)}
  @keyframes rowFade{from{opacity:0}to{opacity:1}}
  @keyframes rowSlide{from{transform:translateX(-18px)}to{transform:none}}

  /* sous-menu : panneau qui glisse par-dessus la liste */
  .mega{position:absolute;inset:64px 0 0 0;z-index:4;display:block;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;background:#f6f3ee;border:0;border-radius:0;box-shadow:none;opacity:1;translate:none;transform:translateX(100%);visibility:hidden;transition:transform .34s cubic-bezier(.22,.8,.24,1),visibility .34s}
  .has-mega.open>.mega{transform:none;visibility:visible;translate:none}
  .mega__back{position:sticky;top:0;z-index:2;display:flex;align-items:center;gap:12px;width:100%;height:60px;padding:0 16px;border:0;background:linear-gradient(180deg,#183327,#1d3a2c);color:#fff;font:400 22px/1 var(--serif);text-align:left;cursor:pointer;box-shadow:0 10px 20px -16px rgba(0,0,0,.6)}
  .mega__back svg{flex:none;width:36px;height:36px;padding:9px;border-radius:50%;background:rgba(255,255,255,.14);fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
  .mega__in{display:flex;flex-direction:column;gap:22px;padding:18px 16px 36px}
  .feat{min-height:190px;padding:20px;border-radius:22px;box-shadow:0 18px 30px -20px rgba(20,30,25,.7)}
  .feat strong{font-size:28px}
  .mega__body{gap:16px}
  .mega__head{flex-wrap:wrap;gap:6px 12px}
  .mega__head h3{font-size:21px}
  .tiles{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px 10px}
  .tile{gap:9px;font-size:12.5px;font-weight:600}
  .tile__img{border-radius:18px;box-shadow:0 10px 18px -12px rgba(20,20,20,.5);outline:3px solid #fff;outline-offset:-3px}
  .has-mega.open .tile{animation:tileIn .45s cubic-bezier(.22,.8,.24,1) both;animation-delay:calc(120ms + var(--i,0) * 30ms)}
  @keyframes tileIn{from{opacity:0;transform:translateY(12px) scale(.96)}to{opacity:1;transform:none}}
  .strip{gap:8px;padding-top:16px}
  .strip__label{flex-basis:100%;margin:0 0 2px}
  .chip{height:36px;padding:0 14px}
  .chip:not(.chip--solid){background:#fff}
  .brands__pills .chip{background:#fff}
  .shops{grid-template-columns:1fr 1fr;gap:6px}
  .shop{padding:10px;background:#fff;border-radius:12px}
  .shop b{min-width:34px}
}
@media (max-width:380px){.tiles{grid-template-columns:repeat(2,minmax(0,1fr))}.shops{grid-template-columns:1fr}}
@media (prefers-reduced-motion:reduce){.mega,.scrim,.drawer-scrim,.nav,.feat>img,.tile__img img{transition:none!important}.nav.anim>ul>li,.nav.anim>ul>li>a,.nav.anim>ul>li>.chev,.has-mega.open .tile{animation:none!important}}
