/* ============================================
   Les Sorbiers "Chez la Jack" - Custom Styles
   ============================================ */

/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Inter:wght@300;400;500;600&display=swap');

/* Root Variables */
:root {
  --bg-main: #FAF2EA;
  --brown-dark: #4A2E1F;
  --beige-rose: #F5DCC7;
  --orange-organic: #F2A464;
  --white: #FFFFFF;
  --brown-light: #6B4A3A;
  --brown-hover: #5E3A29;
  --text-body: #6B5B4F;
}

/* Base */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-main);
  color: var(--text-body);
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Cormorant Garamond', serif;
  color: var(--brown-dark);
}

/* Organic Shapes (Blobs) */
.blob {
  position: absolute;
  border-radius: 50% 40% 60% 50% / 50% 60% 40% 50%;
  opacity: 0.08;
  pointer-events: none;
  z-index: 0;
}

.blob-1 {
  width: 400px;
  height: 400px;
  background: var(--orange-organic);
  top: -100px;
  right: -100px;
  animation: blobFloat 20s ease-in-out infinite;
}

.blob-2 {
  width: 300px;
  height: 300px;
  background: var(--beige-rose);
  bottom: -80px;
  left: -80px;
  animation: blobFloat 25s ease-in-out infinite reverse;
}

.blob-3 {
  width: 500px;
  height: 500px;
  background: var(--orange-organic);
  top: 50%;
  left: -200px;
  animation: blobFloat 30s ease-in-out infinite;
}

.blob-4 {
  width: 350px;
  height: 350px;
  background: var(--beige-rose);
  bottom: -100px;
  right: -150px;
  animation: blobFloat 22s ease-in-out infinite reverse;
}

@keyframes blobFloat {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg) scale(1);
  }
  25% {
    transform: translate(30px, -20px) rotate(5deg) scale(1.05);
  }
  50% {
    transform: translate(-20px, 20px) rotate(-3deg) scale(0.95);
  }
  75% {
    transform: translate(15px, 10px) rotate(4deg) scale(1.02);
  }
}

/* Organic Image Shape */
.organic-img {
  border-radius: 50px;
  object-fit: cover;
}

.organic-img-alt {
  border-radius: 40px 60px 50px 55px;
  object-fit: cover;
}

/* Buttons */
.btn-primary {
  display: inline-block;
  background-color: var(--brown-dark);
  color: var(--white);
  padding: 14px 36px;
  border-radius: 50px;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  transition: all 0.3s ease;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background-color: var(--brown-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(74, 46, 31, 0.2);
}

.btn-outline {
  display: inline-block;
  background-color: transparent;
  color: var(--brown-dark);
  padding: 14px 36px;
  border-radius: 50px;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  border: 2px solid var(--brown-dark);
  transition: all 0.3s ease;
  text-decoration: none;
  cursor: pointer;
}

.btn-outline:hover {
  background-color: var(--brown-dark);
  color: var(--white);
  transform: translateY(-2px);
}

/* Fade-in Animation */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }

/* Mobile Menu */
.mobile-menu {
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.open {
  transform: translateX(0);
}

/* Burger Animation */
.burger-line {
  transition: all 0.3s ease;
}

.burger-active .burger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.burger-active .burger-line:nth-child(2) {
  opacity: 0;
}

.burger-active .burger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Section Divider */
.section-divider {
  width: 60px;
  height: 3px;
  background: var(--orange-organic);
  border-radius: 2px;
  margin: 0 auto;
}

/* Hero Gradient Overlay */
.hero-overlay {
  background: linear-gradient(
    135deg,
    rgba(250, 242, 234, 0.92) 0%,
    rgba(245, 220, 199, 0.85) 50%,
    rgba(250, 242, 234, 0.9) 100%
  );
}

/* Card Styles */
.card-organic {
  background: var(--white);
  border-radius: 40px;
  padding: 2rem;
  box-shadow: 0 4px 30px rgba(74, 46, 31, 0.06);
  transition: all 0.4s ease;
}

.card-organic:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(74, 46, 31, 0.1);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-main);
}

::-webkit-scrollbar-thumb {
  background: var(--beige-rose);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--orange-organic);
}

/* Selection */
::selection {
  background-color: var(--beige-rose);
  color: var(--brown-dark);
}

/* Menu Category */
.menu-category {
  border-left: 3px solid var(--orange-organic);
  padding-left: 1.5rem;
}

/* Map Container */
.map-container {
  border-radius: 40px;
  overflow: hidden;
  box-shadow: 0 4px 30px rgba(74, 46, 31, 0.08);
}

/* Footer Links */
footer a {
  transition: color 0.3s ease;
}

footer a:hover {
  color: var(--orange-organic) !important;
}

/* ═══════════════ POPUP "PAS ENCORE OUVERT" ═══════════════ */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(74, 46, 31, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.popup-overlay.popup-visible {
  opacity: 1;
}

.popup-overlay.popup-hiding {
  opacity: 0;
}

.popup-card {
  background: var(--bg-main);
  border-radius: 40px;
  padding: 2.5rem 2rem;
  max-width: 480px;
  width: 100%;
  text-align: center;
  box-shadow: 0 30px 80px rgba(74, 46, 31, 0.25);
  transform: translateY(30px) scale(0.95);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  overflow: hidden;
}

.popup-visible .popup-card {
  transform: translateY(0) scale(1);
}

.popup-hiding .popup-card {
  transform: translateY(20px) scale(0.95);
}

.popup-card::before {
  content: '';
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 200px;
  background: var(--beige-rose);
  border-radius: 50%;
  opacity: 0.3;
  pointer-events: none;
}

.popup-icon-wrap {
  width: 70px;
  height: 70px;
  margin: 0 auto 1.25rem;
  background: var(--beige-rose);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  animation: popupPulse 2s ease-in-out infinite;
}

@keyframes popupPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(242, 164, 100, 0.3); }
  50% { box-shadow: 0 0 0 15px rgba(242, 164, 100, 0); }
}

.popup-icon {
  width: 32px;
  height: 32px;
  color: var(--brown-dark);
}

.popup-badge {
  display: inline-block;
  background: var(--orange-organic);
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 6px 18px;
  border-radius: 50px;
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 1;
}

.popup-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--brown-dark);
  line-height: 1.2;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.popup-text {
  color: var(--text-body);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 0.75rem;
  position: relative;
  z-index: 1;
}

.popup-text strong {
  color: var(--brown-dark);
}

.popup-subtext {
  color: var(--text-body);
  font-size: 0.8rem;
  opacity: 0.6;
  margin-bottom: 1.75rem;
  position: relative;
  z-index: 1;
}

.popup-btn {
  display: inline-block;
  background: var(--brown-dark);
  color: white;
  border: none;
  padding: 14px 36px;
  border-radius: 50px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

.popup-btn:hover {
  background: var(--brown-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(74, 46, 31, 0.2);
}

@media (min-width: 640px) {
  .popup-card {
    padding: 3rem 2.5rem;
  }
  .popup-title {
    font-size: 2rem;
  }
}

/* ═══════════════ BANDEAU "PAS ENCORE OUVERT" ═══════════════ */
.not-open-banner {
  animation: bannerGlow 3s ease-in-out infinite;
}

@keyframes bannerGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(242, 164, 100, 0.2); }
  50% { box-shadow: 0 0 20px 5px rgba(242, 164, 100, 0.15); }
}
