* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  overflow: hidden;
  background: #000;
}

.hidden {
  opacity: 0 !important;
  visibility: hidden !important;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

#app {
  width: 100vw;
  height: 100vh;
  position: relative;
  overflow: hidden;
}

/* ========== ANIMATIONS GÉNÉRALES ========== */

@keyframes float {
  0%, 100% {
    transform: translateY(0) translateX(0);
  }
  25% {
    transform: translateY(-30px) translateX(20px);
  }
  50% {
    transform: translateY(-10px) translateX(-15px);
  }
  75% {
    transform: translateY(-40px) translateX(10px);
  }
}

@keyframes gradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes zoomIn {
  from {
    transform: scale(0.8);
  }
  to {
    transform: scale(1.3);
  }
}

@keyframes zoomInSlow {
  from {
    transform: scale(1.0);
  }
  to {
    transform: scale(1.3);
  }
}

@keyframes slideInLeft {
  from {
    transform: translateX(-100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideInTop {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes slideInBottom {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ========== ÉCRAN D'INTRODUCTION ========== */

.intro-screen {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 1s ease-out;
}

.intro-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.particle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.intro-content {
  position: relative;
  z-index: 10;
  text-align: center;
  animation: fadeIn 1s ease-out, zoomIn 1s ease-out;
}

.intro-emojis {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 60px;
  font-size: 150px;
  line-height: 1.3;
  margin-bottom: 50px;
  min-height: 180px;
  padding: 20px 0;
}

.intro-emojis span {
  animation: bounce 2s ease-in-out infinite;
}

.intro-emojis span:nth-child(2) {
  animation-delay: 0.2s;
}

.intro-emojis span:nth-child(3) {
  animation-delay: 0.4s;
}

.intro-title {
  font-size: 120px;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 30px;
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient 3s linear infinite;
}

.intro-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 30px 0;
}

.intro-line {
  height: 4px;
  width: 150px;
  border-radius: 999px;
  animation: pulse 2s ease-in-out infinite;
}

.intro-divider span {
  font-size: 70px;
}

.intro-subtitle {
  font-size: 60px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
  margin-bottom: 40px;
}

.intro-hashtags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
  margin-top: 40px;
}

.hashtag {
  font-size: 40px;
  font-weight: 700;
  padding: 15px 30px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  animation: bounce 2s ease-in-out infinite;
}

.hashtag:nth-child(2) {
  animation-delay: 0.2s;
}

.hashtag:nth-child(3) {
  animation-delay: 0.4s;
}

.hashtag:nth-child(4) {
  animation-delay: 0.6s;
}

@keyframes pulse {
  0%, 100% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
}

/* ========== SOLO PLEIN ÉCRAN ========== */

.solo-screen {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  background: #000;
}

.solo-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  animation: zoomIn 12s ease-out forwards;
}

.solo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.4) 0%, transparent 40%, rgba(0, 0, 0, 0.2) 100%);
}

.solo-logo {
  position: absolute;
  bottom: 20px;
  right: 20px;
  opacity: 0.2;
  animation: pulse 3s ease-in-out infinite;
}

.solo-logo img {
  height: 80px;
  width: auto;
}

.solo-text {
  position: absolute;
  top: 40px;
  left: 40px;
  max-width: 1200px;
  animation: slideInLeft 0.7s ease-out;
}

.solo-text.hidden {
  opacity: 0;
  transition: opacity 0.5s ease-out;
}

.text-box {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.3) 100%);
  backdrop-filter: blur(15px);
  border-radius: 30px;
  padding: 40px 50px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  padding: 10px 25px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  margin-bottom: 20px;
}

.badge-emoji {
  font-size: 45px;
}

.badge-text {
  font-size: 35px;
  font-weight: 700;
}

.item-title {
  font-size: 80px;
  font-weight: 900;
  line-height: 1.1;
  color: #fff;
  text-shadow: 0 0 20px rgba(0, 0, 0, 0.5), 0 8px 16px rgba(0, 0, 0, 0.9);
  margin-bottom: 20px;
}

.item-subtitle-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.subtitle-emoji {
  font-size: 50px;
  margin-top: 5px;
}

.item-subtitle {
  font-size: 42px;
  font-weight: 500;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 6px 12px rgba(0, 0, 0, 0.9);
}

/* ========== SPLIT 2 VERTICAL ========== */

.split-2-vertical {
  width: 100%;
  height: 100%;
  display: flex;
  gap: 10px;
  padding: 10px;
  background: #000;
}

.split-item {
  flex: 1;
  position: relative;
  overflow: hidden;
  border-radius: 30px;
}

.split-item:nth-child(1) {
  animation: slideInLeft 0.8s ease-out;
}

.split-item:nth-child(2) {
  animation: slideInRight 0.8s ease-out;
}

.split-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  animation: zoomInSlow 12s ease-out forwards;
}

.split-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.7) 0%, transparent 50%, rgba(0, 0, 0, 0.3) 100%);
}

.split-text {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 40px;
  right: 40px;
  animation: fadeIn 0.7s ease-out 0.3s both;
}

.split-text.hidden {
  opacity: 0;
  transition: opacity 0.5s ease-out;
}

.split-text-box {
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(15px);
  border-radius: 25px;
  padding: 35px 40px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.split-title {
  font-size: 55px;
  font-weight: 900;
  line-height: 1.1;
  color: #fff;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.9);
  margin-bottom: 15px;
}

.split-subtitle {
  font-size: 32px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
}

/* ========== SPLIT 2 HORIZONTAL ========== */

.split-2-horizontal {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px;
  background: #000;
}

.split-2-horizontal .split-item:nth-child(1) {
  animation: slideInTop 0.8s ease-out;
}

.split-2-horizontal .split-item:nth-child(2) {
  animation: slideInBottom 0.8s ease-out;
}

/* ========== SPLIT 3 MOSAÏQUE ========== */

.split-3-mosaic {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 10px;
  padding: 10px;
  background: #000;
}

.split-3-mosaic .split-item:nth-child(1) {
  grid-row: 1 / 3;
  animation: slideInLeft 0.8s ease-out;
}

.split-3-mosaic .split-item:nth-child(2) {
  animation: slideInTop 0.8s ease-out 0.2s both;
}

.split-3-mosaic .split-item:nth-child(3) {
  animation: slideInBottom 0.8s ease-out 0.4s both;
}

/* ========== GRILLE 3 TOASTS ========== */

.grid-3 {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 20px;
}

.grid-3-item {
  flex: 1;
  height: 90%;
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.8s ease-out, zoomIn 0.8s ease-out;
}

.grid-3-item:nth-child(2) {
  animation-delay: 0.15s;
}

.grid-3-item:nth-child(3) {
  animation-delay: 0.3s;
}

.grid-3-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  animation: zoomInSlow 12s ease-out forwards;
}

.grid-3-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 50%, rgba(0, 0, 0, 0.3) 100%);
}

.grid-3-text {
  position: absolute;
  bottom: 40px;
  left: 40px;
  right: 40px;
  animation: slideInBottom 0.7s ease-out 0.5s both;
}

.grid-3-text.hidden {
  opacity: 0;
  transition: opacity 0.5s ease-out;
}

.grid-3-text-box {
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(15px);
  border-radius: 25px;
  padding: 25px 30px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.grid-3-title {
  font-size: 50px;
  font-weight: 900;
  line-height: 1.1;
  color: #fff;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.9);
  margin-bottom: 10px;
}

.grid-3-subtitle {
  font-size: 28px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
}

/* ========== GRILLE 4 SALADES ========== */

.grid-4 {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 15px;
  padding: 15px;
}

.grid-4-item {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.8s ease-out, zoomIn 0.8s ease-out;
}

.grid-4-item:nth-child(2) {
  animation-delay: 0.15s;
}

.grid-4-item:nth-child(3) {
  animation-delay: 0.3s;
}

.grid-4-item:nth-child(4) {
  animation-delay: 0.45s;
}

.grid-4-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  animation: zoomInSlow 12s ease-out forwards;
}

.grid-4-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 50%, rgba(0, 0, 0, 0.3) 100%);
}

.grid-4-text {
  position: absolute;
  bottom: 30px;
  left: 30px;
  right: 30px;
  animation: slideInBottom 0.7s ease-out 0.5s both;
}

.grid-4-text.hidden {
  opacity: 0;
  transition: opacity 0.5s ease-out;
}

.grid-4-text-box {
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(15px);
  border-radius: 20px;
  padding: 20px 25px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.grid-4-title {
  font-size: 45px;
  font-weight: 900;
  line-height: 1.1;
  color: #fff;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.9);
  margin-bottom: 8px;
}

.grid-4-subtitle {
  font-size: 24px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
}

/* ========== NOUVELLES ANIMATIONS VARIÉES ========== */

@keyframes panLeft {
  from {
    transform: scale(1.3) translateX(10%);
  }
  to {
    transform: scale(1.3) translateX(-10%);
  }
}

@keyframes panRight {
  from {
    transform: scale(1.3) translateX(-10%);
  }
  to {
    transform: scale(1.3) translateX(10%);
  }
}

@keyframes zoomRotate {
  from {
    transform: scale(0.8) rotate(-2deg);
  }
  to {
    transform: scale(1.3) rotate(2deg);
  }
}

@keyframes scaleUp {
  from {
    transform: scale(0.8);
    opacity: 0.8;
  }
  to {
    transform: scale(1.0);
    opacity: 1;
  }
}

@keyframes slideLeft {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

@keyframes slideRight {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(0);
  }
}

@keyframes slideTop {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

@keyframes slideBottom {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(0);
  }
}

/* Animation pour les images */
.dish-image.anim-zoomSlow {
  animation: zoomIn 12s ease-out forwards;
}

.dish-image.anim-slideLeft {
  animation: slideLeft 1s ease-out, zoomIn 12s ease-out forwards;
}

.dish-image.anim-slideRight {
  animation: slideRight 1s ease-out, zoomIn 12s ease-out forwards;
}

.dish-image.anim-slideTop {
  animation: slideTop 1s ease-out, zoomIn 12s ease-out forwards;
}

.dish-image.anim-slideBottom {
  animation: slideBottom 1s ease-out, zoomIn 12s ease-out forwards;
}

.dish-image.anim-panLeft {
  animation: panLeft 12s ease-in-out forwards;
}

.dish-image.anim-panRight {
  animation: panRight 12s ease-in-out forwards;
}

.dish-image.anim-zoomRotate {
  animation: zoomRotate 12s ease-out forwards;
}

.dish-image.anim-scaleUp {
  animation: scaleUp 1s ease-out, zoomIn 12s ease-out forwards;
}

.dish-image.anim-fadeIn {
  animation: fadeIn 1s ease-out, zoomIn 12s ease-out forwards;
}
