/* =============== RESET & BASE =============== */
* {
  box-sizing: border-box
}

html,
body {
  margin: 0;
  padding: 0;
  height: auto;
  overflow: auto;
  background: #fffaf0;
  color: #222;
  line-height: 1.6;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  overflow-x: hidden;
  width: 100%;
}

img {
  max-width: 100%;
  display: block
}

a {
  color: #1f2937;
  text-decoration: none
}

.container {
  max-width: 1180px;
  margin: auto;
  padding: 24px
}

.btn {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 999px;
  background: #fbbf24;
  color: #1a1a1a;
  font-weight: 800;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .08)
}

.btn.outline {
  background: transparent;
  border: 2px solid #fbbf24;
  color: #5a4635
}

/* =============== NAV AMINCIE =============== */
.nav {
  position: sticky;
  top: 0;
  background: #fff;
  border-bottom: 1px solid #efe5d3;
  z-index: 1000;
  width: 100%;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 20px; /* RÉDUIT de 12px à 8px */
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo img {
  height: 45px; /* RÉDUIT de 60px */
  width: auto;
  object-fit: contain;
  display: block;
}

.logo strong {
  font-size: 15px;
  font-weight: 800;
  color: #2b221a;
  line-height: 1.1;
}

.menu-links {
  display: flex;
  gap: 14px;
  align-items: center;
}

.menu-links a {
  color: #3a312a;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
}

.menu-links .btn {
  padding: 8px 14px;
  font-size: 13px;
}

/* Bouton "Appeler" dans le menu en jaune */
.menu-links a[href^="tel:"] {
  background-color: #fbbf24;
  color: #000;
  padding: 6px 12px;
  border-radius: 20px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  transition: 0.3s;
}

.menu-links a[href^="tel:"]:hover {
  background-color: #f7c948;
}

/* =============== HERO VIDÉO =============== */
.hero-video-section {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  margin-top: 0;
  background: transparent;
}

.hero-video-section .hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  transform: translate(-50%, -50%) scale(1.1);
  display: block;
  z-index: 0;
  animation: hpZoomOut 15s ease-in-out forwards;
}

@keyframes hpZoomOut {
  from {
    transform: translate(-50%, -50%) scale(1.1);
  }
  to {
    transform: translate(-50%, -50%) scale(1);
  }
}

.hero-video-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, .42);
  pointer-events: none;
  z-index: 1;
}

header.hero {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  min-height: 78vh;
  text-align: center;
  padding: 0 20px;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .6);
}

.hero h1 {
  font-size: clamp(28px, 6vw, 56px);
  margin: 0 0 8px;
  font-weight: 900;
  letter-spacing: .2px
}

.hero p {
  font-size: clamp(16px, 2.4vw, 19px);
  margin: .35rem auto 1.1rem;
  max-width: 760px
}

.cta-row {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap
}

.pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 10px
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #e7dcc9;
  color: #5a4635;
  font-size: 14px
}

/* =============== SECTIONS GÉNÉRALES =============== */
.section {
  padding: 26px 0
}

.section-title {
  font-size: clamp(22px, 4vw, 32px);
  margin: 10px 0 14px;
  font-weight: 900;
  color: #2b221a;
  text-align: center;
}

h2.section-title {
  margin-top: 60px;
  margin-bottom: 35px;
  display: block;
}

.sub {
  color: #6b6259;
  margin-top: -6px
}

.beige {
  background: linear-gradient(180deg, #fff, #fffaf0)
}

.center {
  text-align: center;
}

/* =============== GRILLE & CARTES MENU =============== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.card {
  background: #fff;
  border: 1px solid #efe5d3;
  border-radius: 14px;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .08);
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, .15);
}

.card .thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 10px;
  background: #f2f2f2;
}

.card .thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform .25s ease, filter .25s ease;
  border: none !important;
}

.card .thumb:hover img {
  transform: scale(1.05);
  filter: saturate(1.05);
}

.body {
  padding: 14px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
}

.body h3 {
  margin: 6px 0 2px;
  font-size: 18px;
  color: #2b221a
}

.small {
  font-size: 13px;
  color: #6b6259
}

.price {
  color: #b45309;
  font-weight: 900;
  margin-top: 6px
}

/* =============== OFFRES / AVIS / FAVORIS / MAP =============== */
.offers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 4px
}

.offer {
  display: flex;
  gap: 12px;
  align-items: center;
  background: #fff7e8;
  border: 1px dashed #e0caa6;
  border-radius: 18px;
  padding: 14px
}

.offer img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid #e6d2ae
}

.reviews {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px
}

.review {
  background: #fff;
  border: 1px solid #efe4d0;
  border-radius: 14px;
  padding: 14px;
  color: #3a312a
}

.favorites {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px
}

.favorite {
  background: #fff;
  border: 1px solid #efe4d0;
  border-radius: 14px;
  overflow: hidden
}

.favorite img {
  height: 160px;
  object-fit: cover;
  width: 100%
}

.favorite .body {
  padding: 12px
}

.map {
  position: relative;
  padding-top: 56.25%;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #e6d2ae;
  background: #f9f3e7
}

.map iframe {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  border: 0
}

/* =============== BOUTONS FLOTTANTS - CORRIGÉ =============== */
.sticky {
  position: fixed;
  right: 16px;
  bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 9998;
}

/* IMPORTANT: Supprimer toutes les positions fixes individuelles */
.btn-floating {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-size: 20px;
  /* RESET CRITIQUE - évite le chevauchement */
  position: relative !important;
  bottom: auto !important;
  right: auto !important;
  top: auto !important;
  left: auto !important;
}

.btn-floating:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 20px rgba(0,0,0,0.35);
}

/* Panier - noir avec icône jaune */
.btn-floating-cart {
  background: linear-gradient(135deg, #1a1a1a, #333);
  color: #fbbf24;
  font-size: 20px;
  order: 1;
}

.btn-floating-cart .floating-cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #dc2626;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  min-width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

/* Appeler - jaune */
.btn-floating.phone {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #1a1a1a;
  order: 2;
}

/* WhatsApp - vert */
.btn-floating.whatsapp {
  background: linear-gradient(135deg, #25d366, #128C7E);
  color: #fff;
  order: 3;
}

/* =============== FOOTER =============== */
footer {
  border-top: 1px solid #efe5d3;
  background: #fffaf0;
  padding: 28px 0;
  color: #6b6259
}

/* =============== AJUSTEMENTS D'IMAGES =============== */
.pos-up-5 {
  object-position: center 45% !important;
}

.pos-up-10 {
  object-position: center 40% !important;
}

.pos-up-15 {
  object-position: center 55% !important;
}

.pos-up-20 {
  object-position: center 40% !important;
}

.pos-down-10 {
  object-position: center 60% !important;
}

.pos-down-15 {
  object-position: center 65% !important;
}

.product-img {
  width: 100%;
  border-radius: 12px;
  display: block;
}

.product-img-dinde {
  transform: scale(0.8);
  transform-origin: center;
  margin: 15px 0;
}

/* =============== PRODUITS PHARES =============== */
#produits-phares .card {
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
  padding: 0 !important;
}

#produits-phares .card .body {
  padding: 12px 16px 16px;
}

#produits-phares .card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
}

/* =============== PANIER =============== */
.cart-icon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #fbbf24;
  color: #1a1a1a;
  font-weight: 700;
  border: 1px solid #e6d2ae;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(0,0,0,0.12);
}

.cart-icon-emoji {
  font-size: 16px;
}

.cart-icon-label {
  font-size: 14px;
}

.cart-count {
  min-width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #1a1a1a;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cart-panel {
  position: fixed;
  top: 0;
  right: -380px;
  width: 340px;
  max-width: 100%;
  height: 100vh;
  background: #fffaf0;
  border-left: 1px solid #e6d2ae;
  box-shadow: -8px 0 26px rgba(0,0,0,0.20);
  z-index: 2000;
  transition: right 0.25s ease;
}

.cart-panel.open {
  right: 0;
}

.cart-panel-inner {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 14px 16px;
  box-sizing: border-box;
}

.cart-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.cart-panel-header h3 {
  margin: 0;
  font-size: 18px;
}

.cart-close {
  border: none;
  background: transparent;
  font-size: 18px;
  cursor: pointer;
}

.cart-panel-body {
  flex: 1;
  overflow-y: auto;
  padding-right: 4px;
  margin: 6px 0 10px;
}

.cart-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid #efe5d3;
  font-size: 14px;
}

.cart-item-name {
  font-weight: 700;
  color: #2b221a;
}

.cart-item-qty {
  font-size: 13px;
  color: #6b6259;
}

.cart-empty {
  font-size: 14px;
  color: #6b6259;
}

.cart-panel-footer {
  border-top: 1px solid #efe5d3;
  padding-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cart-total-line {
  display: flex;
  justify-content: space-between;
  font-weight: 800;
  color: #2b221a;
}

.cart-total {
  color: #b45309;
}

.btn-full {
  width: 100%;
  text-align: center;
}

.btn-primary {
  background: #fbbf24;
  color: #1a1a1a;
}

.cart-clear-btn {
  font-size: 13px;
}

/* =============== RESPONSIVE MOBILE =============== */
@media (max-width: 768px) {
  body {
    overflow-x: hidden;
  }

  /* NAV MOBILE AMINCIE */
  .nav-inner {
    padding: 6px 12px;
    flex-wrap: nowrap;
  }

  .logo {
    flex-shrink: 0;
  }

  .logo img {
    height: 32px;
    width: 32px;
  }

  .logo strong {
    font-size: 13px;
    max-width: 100px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* CACHER AVIS ET CONTACT SUR MOBILE */
  .menu-links a[href="#avis"],
  .menu-links a[href="#contact"] {
    display: none !important;
  }

  .menu-links {
    gap: 8px;
    flex: 1;
    justify-content: flex-end;
  }

  .menu-links a:not(.btn):not(.cart-icon) {
    font-size: 12px;
    padding: 4px 6px;
  }

  .menu-links .btn {
    padding: 6px 10px;
    font-size: 12px;
  }

  .cart-icon {
    padding: 5px 10px;
    font-size: 12px;
  }

  .cart-icon-label {
    display: none;
  }

  .cart-icon-emoji {
    font-size: 16px;
  }

  .cart-count {
    min-width: 18px;
    height: 18px;
    font-size: 11px;
  }

  /* BOUTONS FLOTTANTS MOBILE - CORRIGÉ */
  .sticky {
    right: 14px;
    bottom: 16px;
    gap: 10px;
  }

  .btn-floating {
    width: 48px;
    height: 48px;
    font-size: 18px;
    /* Reset critique */
    position: relative !important;
    bottom: auto !important;
    right: auto !important;
  }

  .btn-floating-cart {
    font-size: 18px;
  }

  .btn-floating-cart .floating-cart-count {
    top: -5px;
    right: -5px;
    min-width: 18px;
    height: 18px;
    font-size: 9px;
  }

  /* GRILLE 2 COLONNES MOBILE */
  .grid,
  .grid-3 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    justify-items: center;
  }

  .card {
    padding: 8px;
    border-radius: 10px;
  }

  .card img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 8px;
  }

  .card h3 {
    font-size: 13px;
    text-align: center;
  }

  .card .small {
    font-size: 11px;
    text-align: center;
  }

  .card .price {
    font-size: 12px;
    font-weight: bold;
    text-align: center;
    margin-top: 5px;
  }

  /* Panier plein écran mobile */
  .cart-panel {
    width: 100%;
    right: -100%;
  }
}

/* Force 3 colonnes en desktop */
@media (min-width: 900px) {
  .grid.grid-3 {
    grid-template-columns: repeat(3, 1fr);
    justify-items: center;
  }

  .grid.grid-3 .card {
    max-width: 320px;
  }
}
