/* RESET & BASE */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: #050608;
  color: #f3f3f3;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* texture légère */
body {
  background-image:
    radial-gradient(circle at 0 0, rgba(255,255,255,0.04) 0, transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(255,255,255,0.03) 0, transparent 55%);
  background-color: #050608;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

:root {
  --color-bg: #050608;
  --color-bg-alt: #0c0e13;
  --color-card: #11131a;
  --color-text: #f5f5f5;
  --color-muted: #b3b3b3;
  --color-accent: #ff8a1e;
  --color-accent-soft: rgba(255,138,30,0.12);
  --color-border: rgba(255,255,255,0.08);
  --shadow-soft: 0 18px 45px rgba(0,0,0,0.65);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --nav-height: 72px;
}

/* LAYOUT */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section { padding: 3.5rem 0; }

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-title {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: .5rem;
}

.section-subtitle {
  font-size: .98rem;
  color: var(--color-muted);
  max-width: 520px;
  margin: 0 auto;
}

/* NAV */
.header { width: 100%; z-index: 220; }
.sticky { position: sticky; top: 0; }

.nav {
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  backdrop-filter: blur(14px);
  background: rgba(5,6,8,0.96);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  position: relative;
  z-index: 221;
}

.nav-left .brand {
  display: flex;
  align-items: center;
  gap: .65rem;
}

.logo { width: 40px; height: 40px; object-fit: contain; }

.brand-text {
  font-weight: 600;
  font-size: 1.02rem;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: .8rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: .9rem;
  font-size: .92rem;
}

.nav-links a {
  padding: .3rem .4rem;
  border-radius: 999px;
  color: var(--color-muted);
  transition: color .2s ease, background-color .2s ease;
}

.nav-links a:hover {
  color: #fff;
  background-color: rgba(255,255,255,0.06);
}

/* Sous-menus desktop */
.nav-links li { position: relative; }

.has-dropdown { position: relative; }

.has-dropdown > a {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
}

.has-dropdown > a::after {
  content: "▾";
  font-size: .7rem;
  opacity: .6;
}

.dropdown {
  position: absolute;
  top: calc(100% + .4rem);
  left: 0;
  min-width: 190px;
  padding: .45rem .35rem;
  background: #0c0e13;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 18px 45px rgba(0,0,0,0.85);
  opacity: 0;
  visibility: visible;
  transform: translateY(8px);
  transition: opacity .15s ease, transform .15s ease, visibility .15s;
  z-index: 230;
}

.has-dropdown > .dropdown li a {
  display: block;
  padding: .35rem .55rem;
  border-radius: 8px;
  font-size: .85rem;
  color: var(--color-muted);
  white-space: nowrap;
}

.has-dropdown > .dropdown li a:hover {
  background: rgba(255,255,255,0.08);
  color: #ffb400 ;
 
}

.has-dropdown:hover > .dropdown,
.has-dropdown:focus-within > .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* zone tampon */
.has-dropdown::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 12px;
  background: transparent;
}

/* Burger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: .25rem;
  background: transparent;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: #fff;
}

/* Panier nav */
.cart-icon {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .4rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.16);
  background: radial-gradient(circle at top left, rgba(255,138,30,0.32), rgba(0,0,0,0.8));
  cursor: pointer;
  font-size: .9rem;
  color: #fff;
  box-shadow: 0 10px 25px rgba(0,0,0,0.7);
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}

.cart-icon:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(0,0,0,0.9);
}

.cart-icon-label { font-size: .88rem; }

.cart-count {
  font-size: .78rem;
  padding: .05rem .55rem;
  border-radius: 999px;
  background: var(--color-accent);
  color: #171717;
  font-weight: 600;
}

/* bounce panier */
@keyframes cart-bounce {
  0% { transform: translateY(0) scale(1); }
  30% { transform: translateY(-4px) scale(1.05); }
  60% { transform: translateY(1px) scale(0.98); }
  100% { transform: translateY(0) scale(1); }
}
.cart-bounce { animation: cart-bounce .45s ease-out; }

/* BOUTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  padding: .55rem 1.2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: .92rem;
  font-weight: 500;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, border-color .15s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-accent);
  color: #1b1b1b;
  box-shadow: 0 10px 25px rgba(255,138,30,0.55);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(255,138,30,0.7);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.18);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.06);
  transform: translateY(-1px);
}

.btn-outline.secondary { border-style: dashed; }

.btn-nav {
  font-size: .9rem;
  padding: .4rem .9rem;
  background: var(--color-accent-soft);
  color: var(--color-accent);
  border-color: rgba(255,138,30,0.4);
}
.btn-nav:hover {
  background: var(--color-accent);
  color: #181818;
}

.btn-add { font-size: .82rem; padding-inline: .8rem; }

.btn-add:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.55);
}
.btn:active {
  transform: translateY(0) scale(.97);
  box-shadow: 0 4px 12px rgba(0,0,0,0.7);
}
.btn-add:active {
  transform: translateY(1px) scale(.95);
  box-shadow: 0 3px 10px rgba(0,0,0,0.75);
}
.btn-full { width: 100%; }

/* HERO */
.hero {
  position: relative;
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  align-items: center;
  padding: 3.5rem 0 4rem;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('./assets/img/hero_sushi_bg.jpg');
  background-size: cover;
  background-position: center;
  filter: brightness(.45) saturate(1.2);
  z-index: -3;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(255,138,30,.35), transparent 55%),
    linear-gradient(to bottom, rgba(0,0,0,.75), rgba(5,6,8,.95));
  z-index: -2;
}

.hero-content { text-align: left; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .78rem;
  padding: .25rem .65rem;
  border-radius: 999px;
  background: rgba(0,0,0,.6);
  border: 1px solid rgba(255,255,255,.1);
  margin-bottom: .75rem;
}

.hero-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: .7rem;
}

.hero-subtitle {
  font-size: 1rem;
  color: var(--color-muted);
  max-width: 460px;
  margin-bottom: 1rem;
}

.hero-offer {
  font-size: .98rem;
  color: #f7f7f7;
  margin-bottom: 1.6rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  margin-bottom: 1.5rem;
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
}
.pill {
  font-size: .78rem;
  padding: .25rem .7rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.55);
  color: #f0f0f0;
}

/* CARTES & GRILLES */
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 1rem;
}

.card {
  background: var(--color-card);
  border-radius: var(--radius-md);
  padding: .55rem;
  border: 1px solid var(--color-border);
  box-shadow: 0 14px 40px rgba(0,0,0,.6);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 50px rgba(0,0,0,.75);
}

.thumb {
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: .55rem;
}
.thumb img {
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: cover;
  transition: transform .3s ease;
}
.card:hover .thumb img {
  transform: scale(1.05) translateY(-2px);
}

.body { display: flex; flex-direction: column; gap: .3rem; }
.card-title { font-size: .98rem; font-weight: 500; }

.card-footer {
  margin-top: .25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
}
.small { font-size: .82rem; color: var(--color-muted); }
.center { text-align: center; }

.subsection { margin-bottom: 2.75rem; }
.subsection:last-of-type { margin-bottom: 0; }
.subsection-title {
  font-size: 1.1rem;
  margin-bottom: 1.1rem;
  font-weight: 500;
}

.note { margin-top: 1.5rem; color: var(--color-muted); }

/* AVIS */
.section-reviews {
  background:
    radial-gradient(circle at top, rgba(255,138,30,.14), transparent 65%),
    linear-gradient(to bottom, #06070a, #050608);
}

.reviews {
  display: grid;
  grid-template-columns: minmax(0,1fr);
  gap: 1.1rem;
}

.review-card {
  background: #fff;
  color: #171717;
  border-radius: var(--radius-md);
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow-soft);
}

.review-text { font-size: .9rem; margin-bottom: .65rem; }
.review-author { font-size: .82rem; font-weight: 500; margin-bottom: .3rem; }
.review-stars { font-size: .9rem; color: #ffb400; }

/* CONTACT & MAP */
.section-contact { padding-bottom: 4rem; }

.contact-grid { display: grid; gap: 1.5rem; }

.contact-info p { margin-bottom: .6rem; font-size: .9rem; }
.contact-info a { color: var(--color-accent); }
.contact-info a:hover { text-decoration: underline; }

.map-wrapper { width: 100%; }

.map {
  position: relative;
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.map::before {
  content: '';
  display: block;
  padding-top: 56.25%;
}
.map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* PANIER */
.cart-panel {
  position: fixed;
  inset: 0 0 0 auto;
  width: 360px;
  max-width: 100%;
  transform: translateX(100%);
  transition: transform .25s ease-out;
  z-index: 240;
  pointer-events: none;
}
.cart-panel.open {
  transform: translateX(0);
  pointer-events: auto;
}

.cart-panel-inner {
  height: 100%;
  background: #050608;
  border-left: 1px solid rgba(255,255,255,.08);
  box-shadow: -18px 0 40px rgba(0,0,0,.85);
  display: flex;
  flex-direction: column;
}

.cart-panel-header {
  padding: 1rem 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.cart-panel-header h3 { font-size: 1.02rem; font-weight: 500; }

.cart-close {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
}

.cart-panel-body {
  flex: 1;
  padding: .9rem 1.1rem;
  overflow-y: auto;
}

.cart-empty { font-size: .86rem; color: var(--color-muted); }

.cart-item {
  padding: .65rem 0;
  border-bottom: 1px dashed rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .4rem;
}

.cart-item-info { display: flex; flex-direction: column; gap: .2rem; }
.cart-item-name { font-size: .9rem; }
.cart-item-price { font-size: .8rem; color: var(--color-muted); }

.cart-item-actions {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
}
.qty-btn {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.25);
  background: transparent;
  color: #fff;
  font-size: .86rem;
  cursor: pointer;
}
.cart-item-qty { font-size: .85rem; }

.cart-panel-footer {
  padding: .9rem 1.1rem 1.1rem;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex;
  flex-direction: column;
  gap: .55rem;
}

.cart-total-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .95rem;
  margin-bottom: .3rem;
}
.cart-total {
  font-weight: 600;
  color: var(--color-accent);
}

.cart-clear-btn {
  font-size: .8rem;
  margin-top: .2rem;
  opacity: .9;
}
.cart-clear-btn:hover { opacity: 1; }

/* fly-to-cart animation */
.fly-to-cart {
  position: fixed;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 8px 20px rgba(0,0,0,.7);
  pointer-events: none;
  z-index: 300;
  transform: translate(0,0) scale(1);
  opacity: 1;
  transition: transform .5s cubic-bezier(0.22,0.61,0.36,1), opacity .5s ease-out;
}

/* BOUTONS FLOTTANTS */
.btn-floating {
  position: fixed;
  right: 1.4rem;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 18px 40px rgba(0,0,0,.7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #171717;
  z-index: 230;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.btn-floating:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 22px 48px rgba(0,0,0,.85);
}
.btn-floating-phone { bottom: 1.4rem; }
.btn-floating-whatsapp {
  bottom: 4.8rem;
  background: #25d366;
  color: #0c0c0c;
}
.btn-floating-cart {
  bottom: 8.2rem;
  background: #111827;
  color: var(--color-accent);
}

/* FOOTER */
.footer {
  border-top: 1px solid rgba(255,255,255,.04);
  background: #050608;
  padding: 1.2rem 0 1.6rem;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  justify-content: center;
  align-items: center;
  font-size: .85rem;
  color: var(--color-muted);
}
.footer-links a {
  color: var(--color-accent);
  font-size: .85rem;
}
.footer-links a:hover { text-decoration: underline; }

/* RESPONSIVE */

/* MOBILE */
@media (max-width: 767px) {
  .nav { padding-inline: 1rem; }

  .nav-toggle { display: flex; }

  .brand-text { font-size: .95rem; }

  /* MENU MOBILE : panneau sous la barre, le header reste visible */
  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    padding: 1rem 1.25rem 2rem;
    background: transparent;
    gap: .45rem;
    z-index: 222;
    border-top: 1px solid rgba(255,255,255,.08);
  }
  body.nav-open .nav-links { display: flex; }

  .nav-links li { width: 100%; }
  .nav-links a {
    width: 100%;
    display: block;
    padding: .48rem .1rem;
 
  }
    @media (max-width: 767px) {
    .has-dropdown > .dropdown li a {
        display: block;
        padding: .45rem .75rem;
        border-radius: 999px;
        color: #fff;
        background: rgba(255, 138, 30, .22);
}  
  .hero-subtitle { max-width: 100%; }}

  .grid { grid-template-columns: repeat(2, minmax(0,1fr)); }

  /* panier bottom sheet */
  .cart-panel {
    inset: auto 0 0 0;
    width: 100%;
    height: 55vh;
    transform: translateY(100%);
  }
  .cart-panel.open { transform: translateY(0); }
  .cart-panel-inner {
    border-radius: 18px 18px 0 0;
    border-left: none;
  }
}

/* extra petit mobile */
@media (max-width: 480px) {
  .btn-nav { padding: .3rem .7rem; font-size: .78rem; }
  .nav-right { gap: .4rem; }
  .brand-text { font-size: .9rem; }
}

/* TABLETTE */
@media (min-width: 768px) {
  .nav-links {
    display: flex;
    position: static;
    background: transparent;
    padding: 0;
  }
  .nav-toggle { display: none; }

  .hero { padding-top: 4.5rem; }
  .hero-content { max-width: 570px; }

  .grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .reviews { grid-template-columns: repeat(2, minmax(0,1fr)); }

  .contact-grid {
    grid-template-columns: 1.1fr 1.4fr;
    align-items: flex-start;
  }

}

/* DESKTOP */
@media (min-width: 1024px) {
  .grid { grid-template-columns: repeat(4, minmax(0,1fr)); }

  .hero { padding-top: 5rem; }
  .hero-title { font-size: 3rem; }
}
/* === BURGER MENU MOBILE === */
.burger {
  display: none;
}

@media (max-width: 768px) {
  .burger {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: #07080a;
    border: none;
    cursor: pointer;
    margin-left: auto;
  }

  .burger span {
    width: 24px;
    height: 3px;
    background: white;
    border-radius: 4px;
  }

  /* On cache le menu par défaut sur mobile */
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #151515;
    flex-direction: column;
    padding: 16px;
    gap: 12px;
  }

  /* Quand le menu est ouvert */
  .nav-menu.open {
    display: flex;
  }
}
/* === CARTES PRODUITS : 2 COLONNES SUR MOBILE === */
@media (max-width: 768px) {
  .cards-grid,
  .cards,
  .menu-items,
  .container-cards {   /* On couvre tous tes cas */
      display: grid !important;
      grid-template-columns: repeat(2, 1fr);
      gap: 16px;
  }

  .card {
      width: 100% !important;
  }
}
/* SECTION ASSORTIMENTS */
.section-assortiments {
  padding: 4rem 0;
  background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.03), transparent),
              #050608;
}

.section-assortiments .section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-assortiments .section-kicker {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  opacity: 0.7;
  margin-bottom: 0.5rem;
}

.section-assortiments .section-title {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 0.25rem;
}

.section-assortiments .section-subtitle {
  max-width: 600px;
  margin: 0.5rem auto 0;
  font-size: 0.95rem;
  opacity: 0.8;
}

/* grille des assortiments */
.assortiments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
}

/* carte d'un assortiment */
.assortiment-card {
  background: rgba(15, 15, 18, 0.95);
  border-radius: 1rem;
  padding: 1.5rem 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.55);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  position: relative;
  overflow: hidden;
}

.assortiment-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(255, 165, 0, 0.09), transparent 60%);
  opacity: 0.9;
  pointer-events: none;
}

.assortiment-card > * {
  position: relative;
  z-index: 1;
}

.assortiment-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}

.assortiment-title {
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.assortiment-price {
  background: linear-gradient(135deg, #ffb347, #ff7b00);
  color: #000;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
  white-space: nowrap;
}

/* liste de pièces */
.assortiment-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.25rem;
  font-size: 0.9rem;
  opacity: 0.9;
}

.assortiment-list li::before {
  content: "•";
  margin-right: 0.5rem;
  color: #ffb347;
}

/* note pour les gros plateaux */
.assortiment-note {
  font-size: 0.9rem;
  opacity: 0.85;
}

/* responsive léger */
@media (max-width: 640px) {
  .section-assortiments {
    padding: 3rem 0;
  }

  .assortiment-card {
    padding: 1.25rem 1.1rem;
  }

  .assortiment-title {
    font-size: 1rem;
  }
}

/* ===========================
   FIX FINAL IMAGES CARDS
   (ancien + nouveaux items)
   =========================== */

.thumb,
.card-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  display: block;
}

/* image toujours contenue proprement */
.thumb img,
.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;      /* empêche l’étirement */
  object-position: center;
  display: block;
}
@media (max-width: 767px) {
    .has-dropdown > .dropdown li a {
        display: block;
        padding: .45rem .75rem;
        border-radius: 999px;
        color: #fff;
        background: rgba(255, 138, 30, .22);
}
}
