:root {
  --red: #D20909;
  --red-dark: #B90A0A;
  --beige: #FFE5B5;
  --yellow: #FCA91F;
  --yellow-hover: #e5961a;
  --panel: #fff;
  --text: #1a1a1a;
  --muted: #666;
  --border: rgba(0,0,0,.10);
  --shadow: 0 15px 50px rgba(0,0,0,.18);
  --card-media: #F7F2E9;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Montserrat", sans-serif;
  background: var(--red);
  color: #fff;
  overflow-x: hidden;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: url("../img/fond.png") repeat;
  background-size: 700px auto;
  opacity: 0.60;
  z-index: -1;
}

a {
  color: inherit;
  text-decoration: none;
  transition: 0.25s ease;
}

button {
  font-family: inherit;
  cursor: pointer;
}

/* ============================================
   HEADER
============================================ */
.header-site {
  padding: 15px 0;
  display: flex;
  justify-content: center;
}

.barre-navigation {
  width: 90%;
  max-width: 1400px;
  height: 85px;
  background: var(--red-dark);
  border: 4px solid var(--beige);
  border-radius: 100px;
  display: flex;
  align-items: center;
  padding: 0 40px;
  gap: 50px;
}

.lien-logo {
  display: flex;
  align-items: center;
}

.logo {
  width: 85px;
  height: auto;
}

/* --- LE CONTENEUR (pour l'espacement) --- */
.liens-navigation {
  display: flex;
  gap: 35px;
  align-items: center;
}

/* --- LES LIENS INDIVIDUELS --- */
.liens-navigation a {
  text-decoration: none;
  color: inherit;
  font-size: 18px;
  font-weight: 500;
  transition: text-underline-offset 0.2s ease, opacity 0.2s ease;
  position: relative;
  white-space: nowrap;
}

/* L'effet de vague au survol */
.liens-navigation a:hover {
  text-decoration: underline wavy var(--yellow);
  text-underline-offset: 7px;
}


.liens-navigation a.actif {
  font-weight: 700;
  text-decoration: underline wavy var(--yellow);
  text-underline-offset: 5px;
}

.mobile-only {
  display: none;
}

.nav-droite {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.bouton-connexion {
  background: var(--yellow);
  color: #000 !important;
  padding: 12px 25px;
  border-radius: 12px;
  font-weight: 800;
  border: none;
  transition: 0.3s;
}

.bouton-connexion:hover {
  background: var(--yellow-hover);
  transform: scale(1.05);
}

/* ====== CONNECTÉ  ====== */
.user-logged-info {
  display: flex;
  align-items: center;
  gap: 18px;
}


.profile-btn {
  background: rgba(255,255,255,0.10);
  color: #fff;
  padding: 10px 18px;
  border-radius: 50px;
  font-weight: 900;
  font-size: 12px;
  text-transform: uppercase;
  text-decoration: none;
  transition: all .3s ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  border: 2px solid var(--beige);
}

.profile-btn strong {
  font-weight: 900;
  color: #fff;
}

.profile-btn:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,0.16);
  box-shadow: 0 10px 20px rgba(0,0,0,.15);
}

.profile-btn:active {
  transform: translateY(0);
}


.bouton-logout {
  background: var(--panel);
  color: var(--red);
  padding: 10px 20px;
  border-radius: 50px;
  font-weight: 900;
  font-size: 12px;
  text-transform: uppercase;
  text-decoration: none;
  transition: all .3s ease;
  white-space: nowrap;
}

.bouton-logout:hover {
  transform: translateY(-2px);
  background: #f5f5f5;
}

.panier-sticker {
  position: relative;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  border: 3px solid var(--beige);
  background: var(--red-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
  transition: 0.3s;
}

.panier-sticker:hover {
  transform: translateY(-2px);
}

.panier-sticker-icon {
  width: 26px;
  filter: brightness(0) invert(1);
}

.panier-sticker-badge {
  position: absolute;
  top: -10px;
  right: -10px;
  min-width: 28px;
  height: 28px;
  background: var(--yellow);
  color: #111;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--red-dark);
  border-radius: 50%;
  font-size: 14px;
}


.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 25px;
  background: transparent;
  border: none;
  padding: 0;
  z-index: 101;
}

.nav-burger span {
  width: 30px;
  height: 3px;
  background: var(--beige);
  border-radius: 10px;
  transition: all .3s linear;
}


@media (max-width: 992px) {
  .nav-burger {
    display: flex;
  }

  .barre-navigation {
    justify-content: space-between;
    padding: 0 20px;
    gap: 10px;
    height: 70px;
    position: relative;
  }

  .logo {
    width: 65px;
  }

  .liens-navigation {
    position: fixed;
    top: 0;
    right: -100%;
    background: var(--red-dark);
    height: 100vh;
    width: 280px;
    flex-direction: column;
    padding: 100px 30px 30px;
    transition: right .4s ease;
    z-index: 100;
    border-left: 3px solid var(--beige);
    gap: 25px;
    align-items: flex-start;
  }

  .liens-navigation.mobile-open {
    right: 0;
  }


  .liens-navigation .mobile-only {
    display: block;
  }

  .liens-navigation a {
    font-size: 20px;
    padding: 10px 0;
  }

  .nav-droite {
    margin-left: 0;
    gap: 12px;
  }


  .nav-droite > a:not(.panier-sticker),
  .nav-droite .user-logged-info .profile-btn,
  .nav-droite .user-logged-info .bouton-logout {
    display: none;
  }

  .bouton-connexion {
    padding: 10px 18px;
    font-size: 14px;
  }

  .panier-sticker {
    width: 48px;
    height: 48px;
  }

  .panier-sticker-icon {
    width: 22px;
  }

  /* Animation X */
  .nav-burger.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px,5px);
  }

  .nav-burger.open span:nth-child(2) {
    opacity: 0;
  }

  .nav-burger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(7px,-7px);
  }
}

/* ============================================
   MAIN CONTENT
============================================ */
.description-wrap {
  max-width: 1400px;
  margin: 20px auto;
  padding: 0 40px 40px;
  position: relative;
  z-index: 1;
}

.description-panel {
  background: var(--panel);
  color: var(--text);
  border-radius: 40px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

/* ============================================
   HERO SECTION
============================================ */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 40px;
  align-items: center;
}

.hero-image {
  background: linear-gradient(135deg, #F7F2E9 0%, #FFE5B5 100%);
  border-radius: 30px;
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}

.burger-img {
  max-width: 100%;
  max-height: 380px;
  filter: drop-shadow(0 15px 25px rgba(0,0,0,0.15));
  object-fit: contain;
}

.hero-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.back-link {
  color: var(--red-dark);
  font-weight: 700;
  font-size: 16px;
  display: inline-block;
  transition: 0.3s;
}

.back-link:hover {
  transform: translateX(-5px);
  text-decoration: underline;
}

.burger-name {
  font-size: 52px;
  font-weight: 900;
  color: var(--red);
  line-height: 1.1;
  margin: 0;
}

.burger-description {
  font-size: 18px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

.price-section {
  display: flex;
  align-items: center;
  gap: 20px;
}

.burger-price {
  font-size: 42px;
  font-weight: 900;
  color: var(--red);
}

.badge-tag-red {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 50px;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  background-color: #ffebee; 
  color: #c62828;           
  border: none;
  width: fit-content;      
}

/* ============================================
   ALLERGÈNES
============================================ */
.allergenes-box {
  background: #FFF6E6;
  border: 2px solid rgba(210,9,9,0.15);
  border-radius: 18px;
  padding: 16px 20px;
}

.allergenes-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--red);
}

.allergenes-header strong {
  font-size: 15px;
}

.allergenes-header svg {
  color: var(--red);
}

.allergenes-content {
  font-size: 14px;
  color: #666;
  font-weight: 600;
}

.allergenes-traces {
  font-size: 13px;
  color: #999;
  margin-top: 6px;
  font-style: italic;
}

/* ============================================
   AJOUT AU PANIER & LIKES
============================================ */
.add-to-cart-section {
  display: flex;
  gap: 15px;
  align-items: center;
  margin-top: 10px;
}

.qty-selector {
  display: flex;
  align-items: center;
  border: 2px solid rgba(0,0,0,0.12);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}

.qty-btn {
  width: 48px;
  height: 52px;
  border: none;
  background: transparent;
  color: var(--red-dark);
  font-size: 24px;
  font-weight: 900;
  cursor: pointer;
  transition: 0.2s;
}

.qty-btn:hover {
  background: rgba(210,9,9,0.05);
}

.qty-input {
  width: 60px;
  border: none;
  text-align: center;
  font-size: 20px;
  font-weight: 900;
  color: var(--text);
  background: transparent;
}

.btn-add-cart {
  flex: 1;
  height: 52px;
  background: var(--red-dark);
  color: #fff;
  border: none;
  border-radius: 14px;
  font-size: 18px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: 0.3s;
}

.btn-add-cart:hover {
  background: var(--red);
  transform: translateY(-2px);
}

.btn-add-cart svg {
  stroke: currentColor;
}

/* Conteneur likes */
.like-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.form-like {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-like {
  width: 52px;
  height: 52px;
  background: #fff;
  border: 2px solid rgba(161,0,0,0.2);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.btn-like:hover {
  background: #fff5f5;
  transform: scale(1.05);
  border-color: var(--red);
}

.btn-like .heart-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.votes-txt {
  font-size: 18px;
  font-weight: 900;
  color: var(--red);
}

/* ============================================
   SECTION INGRÉDIENTS
============================================ */
.ingredients-section {
  background: linear-gradient(180deg, #FFE5B5 0%, #FFF9E6 100%);
  padding: 50px 40px;
  border-top: 4px solid var(--red);
}

.ingredients-title {
  font-size: 38px;
  font-weight: 900;
  color: var(--red);
  text-align: center;
  margin-bottom: 30px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.ingredients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.ingredient-card {
  background: #fff;
  border: 3px solid rgba(210,9,9,0.15);
  border-radius: 20px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
  transition: transform 0.2s;
}

.ingredient-card:hover {
  transform: translateY(-3px);
}

.ingredient-icon {
  font-size: 48px;
  line-height: 1;
}

.ingredient-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  flex: 1;
}

.ingredient-check {
  flex-shrink: 0;
}

.ingredients-note {
  margin-top: 30px;
  text-align: center;
  font-size: 14px;
  color: #666;
  font-style: italic;
}

/* ============================================
   POPUP PANIER
============================================ */
.cart-popup {
  position: fixed;
  right: 30px;
  bottom: 30px;
  background: #28a745;
  color: #fff;
  padding: 20px 25px;
  border-radius: 18px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.25);
  display: flex;
  align-items: center;
  gap: 15px;
  z-index: 9999;
  min-width: 300px;
  animation: slideIn 0.3s ease;
}

.cart-popup[hidden] {
  display: none;
}

.cart-popup svg {
  flex-shrink: 0;
}

.cart-popup-content {
  flex: 1;
}

.cart-popup-title {
  font-size: 16px;
  font-weight: 700;
}

.cart-popup-detail {
  font-size: 13px;
  opacity: 0.9;
  margin-top: 4px;
}

.cart-popup-close {
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s;
}

.cart-popup-close:hover {
  opacity: 0.8;
}

@keyframes slideIn {
  from {
    transform: translateX(100px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* ============================================
   DIVIDER SECTION
============================================ */
.divider-section {
  width: 100%;
  margin-top: 20px;
  position: relative;
  z-index: 1;
}

.picnic-top {
  height: 25px;
  background: url("../img/picnic2.png") repeat-x;
  background-size: auto 100%;
  margin-bottom: -1px;
}

.scrolling-tape {
  background: var(--beige);
  padding: 4px 0;
  overflow: hidden;
}

.scrolling-track {
  display: flex;
  width: max-content;
  animation: scroll 15s linear infinite;
}

.scrolling-track span {
  font-weight: 900;
  font-size: 42px;
  color: var(--red);
  white-space: nowrap;
  padding-right: 25px;
  line-height: 0.95;
}

@keyframes scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.picnic-bottom {
  height: 45px;
  background: url("../img/picnic1.png") repeat-x;
  background-size: auto 100%;
  margin-top: -1px;
}

/* ============================================
   FOOTER
============================================ */
.pied-de-page {
  padding: 40px 0 20px;
  background: var(--red);
}

.contenu-pied-de-page {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  gap: 120px;
  padding: 0 40px;
}

.logo-pied-de-page {
  width: 140px;
  height: auto;
}

.liens-pied-de-page {
  display: flex;
  gap: 100px;
}

.colonne-pied-de-page {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.colonne-pied-de-page a {
  font-size: 16px;
  color: #fff;
  opacity: 0.9;
}

.colonne-pied-de-page a:hover {
  opacity: 1;
  text-decoration: underline;
}

.ligne-footer {
  height: 1px;
  background: rgba(255,255,255,0.3);
  margin: 30px auto 20px;
  max-width: 1400px;
}

.bas-pied-de-page {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  padding: 0 40px;
  font-size: 14px;
}

.reseaux-sociaux {
  display: flex;
  gap: 20px;
  align-items: center;
}

.reseaux-sociaux img {
  width: 22px;
  filter: brightness(0) invert(1);
  transition: 0.3s;
}

.reseaux-sociaux img:hover {
  transform: scale(1.1);
}

/* ============================================
   RESPONSIVE 
============================================ */

@media (max-width: 992px) {
  .nav-burger {
    display: flex;
  }

  .barre-navigation {
    justify-content: space-between;
    padding: 0 20px;
    gap: 10px;
    height: 70px;
  }

  .logo {
    width: 65px;
  }

  .liens-navigation {
    position: fixed;
    top: 0;
    right: -100%;
    background: var(--red-dark);
    height: 100vh;
    width: 280px;
    flex-direction: column;
    padding: 100px 30px 30px;
    transition: right 0.4s ease;
    z-index: 100;
    border-left: 3px solid var(--beige);
    gap: 25px;
  }

  .liens-navigation.mobile-open {
    right: 0;
  }

  
  .liens-navigation .mobile-only {
    display: block;
  }

  .liens-navigation a {
    font-size: 20px;
    padding: 10px 0;
  }

  .nav-droite {
    margin-left: 0;
    gap: 12px;
  }


  .nav-droite > a:not(.panier-sticker),
  .nav-droite .user-logged-info .profile-btn,
  .nav-droite .user-logged-info .bouton-logout {
    display: none;
  }

  
  .header-site:not(.is-logged) .nav-droite > a:not(.panier-sticker) {
    display: inline-flex !important; /* Force l'affichage */
  }

  .bouton-connexion {
    padding: 10px 18px;
    font-size: 14px;
  }

  .panier-sticker {
    width: 48px;
    height: 48px;
  }

  .panier-sticker-icon {
    width: 22px;
  }

  /* Animation burger  */
  .nav-burger.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .nav-burger.open span:nth-child(2) {
    opacity: 0;
  }
  
  .nav-burger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
  }
}


@media (max-width: 1100px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .burger-name {
    font-size: 40px;
  }

  .ingredients-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

@media (max-width: 780px) {
  .description-wrap {
    padding: 16px 16px 8px;
  }

  .description-panel {
    border-radius: 30px;
  }

  .hero-grid {
    padding: 25px;
    gap: 25px;
  }

  .hero-image {
    min-height: 300px;
    padding: 30px;
  }

  .burger-name {
    font-size: 32px;
  }

  .burger-price {
    font-size: 36px;
  }

  .add-to-cart-section {
    flex-direction: column;
  }

  .qty-selector,
  .btn-add-cart {
    width: 100%;
  }

  .ingredients-section {
    padding: 35px 20px;
  }

  .ingredients-title {
    font-size: 28px;
  }

  .ingredients-grid {
    grid-template-columns: 1fr;
  }

  .cart-popup {
    right: 15px;
    bottom: 15px;
    min-width: auto;
    max-width: calc(100vw - 30px);
  }
}