/* RESET */
* { margin: 0; padding: 0; box-sizing: border-box; max-height: 100000px; }
html, body { height: 100%; overflow-x: hidden; }

body {
  font-family: 'Orbitron', sans-serif;
  background: linear-gradient(135deg, #0f0c29 0%, #1a1042 50%, #24243e 100%);
  color: #0ff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background-attachment: fixed;
  position: relative;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

.bg-anim {
  position: fixed;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, 
    rgba(0,255,255,0.05) 0%,
    rgba(255,0,255,0.05) 25%,
    rgba(255,165,0,0.05) 50%,
    rgba(255,0,255,0.05) 75%,
    rgba(0,255,255,0.05) 100%
  );
  animation: moveBg 60s linear infinite;
  z-index: -3;
  top: 0; left: 0;
  opacity: 0.3;
}
@keyframes moveBg {
  from { transform: translate(0, 0); }
  to { transform: translate(-25%, -25%); }
}

#particles, canvas#particles {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: -1;
  pointer-events: none;
  opacity: 0.4;
}

header {
  width: 100%;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(
    to bottom,
    rgba(20, 0, 40, 0.95),
    rgba(20, 0, 40, 0.85)
  );
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0, 255, 255, 0.3);
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.header-inner { 
  display: flex; 
  align-items: center; 
  gap: 20px;
}

.logo {
  font-size: 1.8rem;
  color: #0ff;
  text-decoration: none;
  text-shadow: 0 0 5px rgba(0, 255, 255, 0.5);
}

nav ul { 
  display: flex; 
  list-style: none; 
  gap: 1.5rem;
}

nav ul li a {
  color: rgba(0, 255, 255, 0.8);
  text-decoration: none;
  font-weight: 500;
  position: relative;
  overflow: hidden;
}

nav ul li a::before {
  content: '';
  position: absolute;
  left: -5px;
  top: -5px;
  right: -5px;
  bottom: -5px;
  border: 2px solid transparent;
  background: linear-gradient(90deg, #0ff, #f0f) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s;
}

nav ul li a:hover::before {
  opacity: 1;
  animation: navBorderGlow 2s infinite;
}

@keyframes navBorderGlow {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.5); }
}

nav ul li a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 0%; height: 2px;
  background: #0ff;
  transition: width 0.3s;
}
nav ul li a:hover::after { width: 100%; }
nav ul li a:hover { color: #fff; }
.instagram {
  font-size: 1.5rem;
  color: #0ff;
  transition: transform 0.3s, color 0.3s;
  text-decoration: none;
  position: relative;
  z-index: 1;
}
.instagram::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(45deg, #0ff, #f0f);
  z-index: -1;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.3s;
}
.instagram:hover { color: white; transform: scale(1.2); }
.instagram:hover::before {
  opacity: 1;
  animation: instagramGlow 2s infinite;
}
@keyframes instagramGlow {
  0%, 100% { filter: hue-rotate(0deg); }
  50% { filter: hue-rotate(90deg); }
}

main { 
  padding: 20px; 
  flex: 1 0 auto;
  min-height: 50vh;
  display: flex;
  flex-direction: column;
}

.intro { text-align: center; padding: 100px 20px; }
.intro h1 { font-size: 3rem; animation: neonPulse 2s ease-in-out infinite alternate; margin-bottom: 20px; }
@keyframes neonPulse {
  from { text-shadow: 0 0 10px #0ff; }
  to { text-shadow: 0 0 25px #0ff, 0 0 35px #0ff; }
}

.neon-glitch {
  color: #ff00ff;
  position: relative;
  text-shadow: 
    0 0 10px rgba(255,0,255,0.5),
    0 0 20px rgba(255,0,255,0.3),
    0 0 30px rgba(255,0,255,0.1);
  animation: glitch 1.5s infinite alternate;
}
@keyframes glitch {
  0% { 
    transform: skew(0deg);
    text-shadow: 0 0 10px rgba(255,0,255,0.5);
  }
  20% { 
    transform: skew(-2deg);
    text-shadow: 2px 0 #f0f, -2px 0 #0ff;
  }
  40% { 
    transform: skew(2deg);
    text-shadow: -2px 0 #0ff, 2px 0 #f0f;
  }
  60% { 
    transform: skew(0deg);
    text-shadow: 2px 2px #fff, -2px -2px #f0f;
  }
  100% { 
    transform: skew(0deg);
    text-shadow: 0 0 20px rgba(255,0,255,0.5);
  }
}

.menu-carousel-3d { 
  padding: 80px 20px; 
  text-align: center; 
  perspective: 1000px; 
}

.carousel-3d-container { 
  position: relative; 
  width: 100%; 
  height: 400px; 
  margin: 40px auto; 
  perspective: 1000px; 
}

.carousel-3d { 
  width: 100%; 
  height: 100%; 
  position: relative; 
  transform-style: preserve-3d; 
  transition: transform 1s; 
}

.menu-item {
  position: absolute;
  width: 250px;
  height: 120px;
  left: 50%;
  top: 50%;
  margin-left: -125px;
  margin-top: -60px;
  line-height: 120px;
  font-size: 1.2rem;
  color: white;
  text-align: center;
  background: rgba(27, 42, 65, 0.9);
  border: 1px solid #0ff;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
  backface-visibility: hidden;
  text-decoration: none;
  transition: all 0.3s ease;
  z-index: 1;
}

.menu-item:hover {
  background: rgba(0, 255, 255, 0.9);
  color: #000;
  box-shadow: 
    0 0 25px #0ff,
    0 0 35px rgba(0, 255, 255, 0.5);
  transform: scale(1.05);
}

.menu-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, 
    transparent 0%,
    rgba(0,255,255,0.2) 50%,
    transparent 100%
  );
  opacity: 0;
  transition: opacity 0.3s;
}

.menu-item:hover::before {
  opacity: 1;
  animation: glowSweep 1.5s infinite;
}

@keyframes glowSweep {
  0% {
    transform: translateX(-100%) translateY(-100%);
  }
  100% {
    transform: translateX(100%) translateY(100%);
  }
}

.carousel-nav { margin-top: 30px; display: flex; justify-content: center; gap: 20px; }
.carousel-nav button {
  background: rgba(0, 255, 255, 0.2);
  border: 2px solid #0ff;
  color: #0ff;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-family: 'Orbitron', sans-serif;
  transition: all 0.3s;
}
.carousel-nav button:hover { background: #0ff; color: #000; }

.section h2, .menu-section h2 {
  text-align: center;
  font-size: 2em;
  color: #0ff;
  text-shadow: 
    0 0 10px rgba(0,255,255,0.5),
    0 0 20px rgba(0,255,255,0.3),
    0 0 30px rgba(0,255,255,0.1);
  border-bottom: 2px solid rgba(0,255,255,0.3);
  padding: 15px 0;
  margin-bottom: 1em;
  position: relative;
  overflow: hidden;
  letter-spacing: 2px;
  text-transform: uppercase;
  background: linear-gradient(135deg, rgba(0,255,255,0.1), rgba(255,0,255,0.1));
  border-radius: 8px;
  backdrop-filter: blur(5px);
}

.section h2::before, .menu-section h2::before {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  color: #f0f;
  opacity: 0.5;
  filter: blur(1px);
  animation: glitchText 2s infinite;
}

@keyframes glitchText {
  0%, 100% { transform: translate(0); }
  35% { transform: translate(-2px, 2px); }
  65% { transform: translate(2px, -2px); }
  85% { transform: translate(-1px, -1px); }
}

.section h2::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 50%;
  height: 2px;
  background: linear-gradient(
    90deg, 
    transparent, 
    rgba(0,255,255,0.8), 
    transparent
  );
  animation: borderGlow 3s infinite, neonFlicker 5s infinite;
}

@keyframes neonFlicker {
  0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
    opacity: 1;
    box-shadow: 
      0 0 20px rgba(0,255,255,0.5),
      0 0 40px rgba(255,0,255,0.3);
  }
  20%, 22%, 24%, 55% {
    opacity: 0.5;
    box-shadow: none;
  }
}

.item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  background: rgba(0,0,0,0.85);
  border: 1px solid rgba(0, 255, 255, 0.15);
  border-radius: 10px;
  margin: 20px auto;
  padding: 20px;
  gap: 20px;
  max-width: 900px;
  box-shadow: 
    0 8px 32px 0 rgba(0, 255, 255, 0.1),
    inset 0 0 32px rgba(0, 255, 255, 0.05);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(5px);
}

.item::before {
  content: '';
  position: absolute;
  top: -100%;
  left: -100%;
  width: 300%;
  height: 300%;
  background: linear-gradient(
    45deg,
    transparent 0%,
    rgba(0,255,255,0.1) 50%,
    transparent 100%
  );
  transition: all 0.5s ease;
}

.item:hover::before {
  top: -50%;
  left: -50%;
}

.item:hover { 
  transform: translateY(-5px);
  border-color: rgba(0, 255, 255, 0.3);
  box-shadow: 
    0 12px 40px 0 rgba(0, 255, 255, 0.15),
    inset 0 0 40px rgba(0, 255, 255, 0.1);
}

.item img {
  width: 200px;
  height: 150px;
  object-fit: cover;
  border-radius: 15px;
  border: 1px solid rgba(0, 255, 255, 0.5);
  box-shadow: 
    0 8px 24px rgba(0, 0, 0, 0.3),
    0 0 8px rgba(0, 255, 255, 0.2);
  filter: saturate(1.2) contrast(1.1);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.item:hover img {
  animation: imageGlitch 0.5s cubic-bezier(.25,.46,.45,.94) both;
  filter: saturate(1.3) contrast(1.2);
}

@keyframes imageGlitch {
  0% {
    transform: scale(1) skew(0deg);
    filter: saturate(1.3) contrast(1.2);
  }
  20% {
    transform: scale(1.02) skew(2deg);
    filter: saturate(1.5) contrast(1.4) hue-rotate(90deg);
  }
  40% {
    transform: scale(1.02) skew(-2deg);
    filter: saturate(1.3) contrast(1.2) hue-rotate(-90deg);
  }
  60% {
    transform: scale(1) skew(0deg);
    filter: saturate(1.3) contrast(1.2);
  }
  100% {
    transform: scale(1.02) skew(0deg);
    filter: saturate(1.3) contrast(1.2);
  }
}

.item .details h3 {
  font-size: 1.5em;
  font-weight: 600;
  position: relative;
  margin-bottom: 8px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.item .details h3 .title {
  background: linear-gradient(135deg, rgba(255,0,255,0.9), rgba(0,255,255,0.9));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 20px rgba(255,0,255,0.5);
}

.item .details h3 .price {
  color: #fff;
  text-shadow: 0 0 10px rgba(255,255,255,0.8);
}

@media screen and (max-width: 768px) {
  /* Désactivation des effets de performance uniquement */
  #particles, 
  .bg-anim {
    display: none;
  }

  /* Garder le header mobile */
  header {
    background: rgba(20, 0, 40, 0.95);
  }

  .burger-menu {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    cursor: pointer;
    z-index: 1000;
  }

  .burger-line {
    width: 100%;
    height: 3px;
    background-color: #0ff;
    transition: all 0.3s ease;
  }

  nav {
    display: none;
    position: absolute;
    top: 60px;
    right: 10px;
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid #0ff;
    border-radius: 5px;
    padding: 10px;
    z-index: 999;
  }

  nav.active {
    display: block;
  }

  nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    flex-direction: column;
  }

  nav ul li {
    margin: 10px 0;
  }

  nav ul li a {
    font-size: 1.2em;
  }

  /* Optimisations de performance pour les items */
  .item {
    background: rgba(0, 0, 0, 0.9);
  }

  .item:hover {
    transform: none;
  }
}

/* Restaurer les styles de texte pour mobile */
@media (max-width: 768px) {
  body {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    color: inherit;
  }

  h1, h2, h3, h4, h5, h6 {
    font-size: inherit;
    line-height: inherit;
    color: inherit;
    text-shadow: inherit;
  }

  p, a, li {
    font-size: inherit;
    line-height: inherit;
    color: inherit;
  }
}

footer {
  flex-shrink: 0;
  width: 100%;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.95),
    rgba(20, 0, 40, 0.9)
  );
  border-top: 1px solid rgba(0, 255, 255, 0.3);
  padding: 30px 15px;
  position: relative;
  overflow: visible;
  z-index: 1;
  box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.2);
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent,
    #0ff,
    transparent
  );
  animation: footerGlow 3s infinite;
}

@keyframes footerGlow {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

.footer-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
}

.footer-column {
  flex: 1 1 200px;
  min-width: 200px;
  text-align: center;
}

.footer-column h4 {
  color: #0ff;
  font-size: 1.2rem;
  margin-bottom: 15px;
  text-shadow: 0 0 5px rgba(0,255,255,0.5);
}

.footer-column p {
  color: #ccc;
  margin: 5px 0;
  text-shadow: 0 0 2px rgba(0,255,255,0.3);
}

.footer-insta {
  display: inline-block;
  margin-top: 10px;
  color: #f0f;
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-insta:hover {
  color: #fff;
  transform: scale(1.05);
}

.deliveroo-badge { 
  position: fixed; 
  bottom: 20px; 
  right: 20px; 
  width: 60px;
  height: 60px;
  background: #00ccbc;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 
    0 8px 32px rgba(0, 204, 188, 0.3),
    0 0 16px rgba(0, 255, 255, 0.2);
  z-index: 1000;
  transition: transform 0.3s;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(0, 204, 188, 0.3);
}

.deliveroo-badge:hover {
  transform: scale(1.1);
}

.deliveroo-badge img {
  width: 60%;
  height: 60%;
  object-fit: contain;
}

@keyframes floatDeliveroo {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0px);
  }
}

/* Styles pour la page de contact */
.contact-container {
  display: flex;
  gap: 40px;
  max-width: 1200px;
  margin: 40px auto;
  padding: 20px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  border: 1px solid rgba(0, 255, 255, 0.1);
  box-shadow: 
    0 8px 32px rgba(0, 255, 255, 0.1),
    inset 0 0 32px rgba(0, 255, 255, 0.05);
}

.contact-image {
  flex: 1;
  min-width: 300px;
  position: relative;
  overflow: hidden;
  border-radius: 10px;
}

.contact-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  filter: contrast(1.1) saturate(1.2);
  transition: transform 0.5s ease;
}

.contact-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 255, 255, 0.2),
    transparent 50%,
    rgba(255, 0, 255, 0.2)
  );
  opacity: 0.5;
  z-index: 1;
}

.contact-form-wrapper {
  flex: 1;
  min-width: 300px;
  padding: 20px;
}

.contact-form-wrapper h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #0ff, #f0f);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}

.contact-form-wrapper .intro-text {
  color: #ccc;
  margin-bottom: 30px;
  font-size: 1.1rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-form label {
  color: #0ff;
  font-size: 1.1rem;
  margin-bottom: 5px;
  text-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(0, 255, 255, 0.3);
  border-radius: 8px;
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #0ff;
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
  background: rgba(0, 0, 0, 0.8);
}

.contact-form button {
  padding: 15px 30px;
  background: linear-gradient(135deg, rgba(0, 255, 255, 0.2), rgba(255, 0, 255, 0.2));
  border: 1px solid rgba(0, 255, 255, 0.5);
  border-radius: 8px;
  color: #0ff;
  font-family: inherit;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

.contact-form button:hover {
  background: linear-gradient(135deg, rgba(0, 255, 255, 0.3), rgba(255, 0, 255, 0.3));
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 255, 255, 0.2);
}

/* Styles responsives pour la page contact */
@media (max-width: 768px) {
  .contact-container {
    flex-direction: column;
    margin: 20px;
  }

  .contact-image {
    height: 300px;
  }

  .contact-form-wrapper h1 {
    font-size: 2rem;
  }
}