/* ---------- 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:#fff;border-bottom:1px solid var(--line)}
  .drawer__logo{width:138px;height:auto}
  .drawer__close{display:flex;align-items:center;justify-content:center;width:44px;height:44px;padding:0;border:0;border-radius:50%;background:#f1eee9;color:var(--ink);cursor:pointer;transition:background .18s}
  .drawer__close:hover{background:#e7e2da}
  .drawer__close .ico{width:22px;height:22px}

  .drawer__search{display:block;position:relative;flex:none;margin:14px 16px 4px}
  .drawer__search .ico{position:absolute;left:14px;top:50%;translate:0 -50%;width:18px;height:18px;color:var(--muted);pointer-events:none}
  .drawer__search input{width:100%;height:48px;padding:0 16px 0 44px;border:1px solid var(--line);border-radius:14px;background:#fff;font-size:16px}
  .drawer__search input:focus{outline:0;border-color:var(--wine);box-shadow:0 0 0 3px rgba(138,31,63,.12)}

  .nav>ul{flex:1;min-height:0;max-width:none;display:flex;flex-direction:column;justify-content:flex-start;gap:8px;margin:0;padding:12px 16px 20px;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:18px;box-shadow:0 1px 2px rgba(20,20,20,.05),0 6px 16px -12px rgba(20,20,20,.25);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;font-size:16px;font-weight:600;line-height:1.2;white-space:normal}
  .nav>ul>li>a::after{display:none}
  .nav__thumb{display:block;flex:none;width:56px;height:56px;border-radius:14px;overflow:hidden;background:#ece7df}
  .nav__thumb img{width:100%;height:100%;object-fit:cover}
  .nav__txt{display:flex;flex-direction:column;gap:3px;min-width:0}
  .nav__txt small{display:block;overflow:hidden;font-size:12.5px;font-weight:400;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}
  .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:12px 16px calc(12px + env(safe-area-inset-bottom));background:#fff;border-top:1px solid var(--line)}
  .drawer__foot a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;height:58px;border-radius:14px;background:#f6f3ee;font-size:12.5px;font-weight:600;transition:background .18s,color .18s}
  .drawer__foot a:hover{background:#efe9e1;color:var(--wine)}
  .drawer__foot .ico{width:20px;height:20px}

  /* 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:10px;width:100%;height:56px;padding:0 16px;border:0;border-bottom:1px solid var(--line);background:rgba(246,243,238,.92);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);color:var(--ink);font:400 21px/1 var(--serif);text-align:left;cursor:pointer}
  .mega__back svg{flex:none;width:34px;height:34px;padding:8px;border-radius:50%;background:#fff;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;box-shadow:0 1px 3px rgba(0,0,0,.1)}
  .mega__in{display:flex;flex-direction:column;gap:20px;padding:16px 16px 32px}
  .feat{min-height:170px;padding:18px;border-radius:20px}
  .feat strong{font-size:26px}
  .mega__body{gap:16px}
  .mega__head{flex-wrap:wrap;gap:6px 12px}
  .mega__head h3{font-size:20px}
  .tiles{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px 10px}
  .tile{font-size:12.5px}
  .tile__img{border-radius:16px;box-shadow:0 6px 14px -10px rgba(20,20,20,.4)}
  .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}}
