:root {
  /* Colors */
  --primary-color: #ff6600;
  /* Vibrant Orange */
  --primary-hover: #e65c00;
  --secondary-color: #ff9933;
  --bg-color: #ffffff;
  --bg-light: #f9f9f9;
  --text-dark: #1a1a1a;
  --text-light: #4d4d4d;
  --white: #ffffff;
  --black: #000000;

  /* Typography */
  --font-main: 'Inter', system-ui, -apple-system, sans-serif;

  /* Shadows & Glass */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.18);

  /* Border Radius */
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  /* Transitions */
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
  font-weight: 700;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* Utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Preloader */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--white);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader-logo {
  width: 250px;
  /* Taille augmentée */
  animation: pulseLogo 1.5s infinite ease-in-out;
}

@keyframes pulseLogo {
  0% {
    transform: scale(0.9);
    opacity: 0.8;
  }

  50% {
    transform: scale(1.1);
    opacity: 1;
  }

  100% {
    transform: scale(0.9);
    opacity: 0.8;
  }
}

.preloader-hidden {
  opacity: 0;
  visibility: hidden;
}

.text-center {
  text-align: center;
}

.text-primary {
  color: var(--primary-color);
}

.section-padding {
  padding: 80px 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(255, 102, 0, 0.3);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 102, 0, 0.4);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: var(--white);
}

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: var(--transition);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-img {
  height: 75px;
  width: auto;
  animation: logoBounce 1.8s infinite ease-in-out;
  transform-origin: bottom center;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}

@keyframes logoBounce {

  0%,
  100% {
    transform: translateY(0);
  }

  30% {
    transform: translateY(-8px);
  }

  50% {
    transform: translateY(0);
  }

  65% {
    transform: translateY(-4px);
  }

  80% {
    transform: translateY(0);
  }
}

.logo-img:hover {
  animation-play-state: paused;
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  font-weight: 500;
  position: relative;
  transition: var(--transition);
}

.nav-links a i {
  display: none;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-icons {
  display: flex;
  align-items: center;
  gap: 20px;
}

.cart-icon {
  position: relative;
  font-size: 1.5rem;
  cursor: pointer;
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -10px;
  background-color: var(--primary-color);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  height: 20px;
  width: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  position: relative;
  background: linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.65)), url('../Images/WhatsApp Image 2026-07-02 at 17.11.27.jpeg') center/cover no-repeat;
  color: var(--white);
  padding-top: 80px;
}

.hero-content {
  max-width: 600px;
  animation: fadeInUp 1s ease;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  opacity: 0.9;
}

/* Page Hero (e.g. Menu) */
.page-hero {
  height: 40vh;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.65)), url('../Images/WhatsApp Image 2026-07-02 at 23.13.10.jpeg') center/cover no-repeat;
  color: var(--white);
  padding-top: 80px;
  text-align: center;
}

.page-hero-content {
  animation: fadeInUp 1s ease;
  padding: 0 20px;
}


/* Categories (Menu) */
.categories-filter {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 40px;
}

.filter-btn {
  padding: 8px 20px;
  border-radius: var(--radius-full);
  background: var(--white);
  border: 1px solid #ddd;
  cursor: pointer;
  font-weight: 500;
  transition: var(--transition);
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--primary-color);
  color: var(--white);
  border-color: var(--primary-color);
}

/* Product Cards */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.product-img-wrapper {
  height: 200px;
  overflow: hidden;
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-img,
.product-card:hover .product-img-wrapper img {
  transform: scale(1.1);
}

.product-img-wrapper img {
  transition: transform 0.5s ease;
}

.product-info {
  padding: 20px;
}

.product-title {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.product-desc {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 15px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.product-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-color);
}

.add-to-cart-btn {
  background: var(--bg-light);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  font-size: 1.2rem;
  color: var(--text-dark);
}

.add-to-cart-btn:hover {
  background: var(--primary-color);
  color: var(--white);
}

/* Cart & Checkout */
.cart-section {
  padding-top: 120px;
  min-height: calc(100vh - 80px);
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 40px;
}

.cart-items {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-sm);
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid #eee;
}

.cart-item-img {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-md);
  object-fit: cover;
}

.cart-item-info {
  flex-grow: 1;
}

.cart-item-title {
  font-weight: 600;
  margin-bottom: 5px;
}

.cart-item-price {
  color: var(--primary-color);
  font-weight: 700;
}

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 10px;
}

.qty-btn {
  background: #eee;
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
}

.remove-btn {
  color: #ff3333;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
}

.checkout-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  align-self: start;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.1);
}

.cart-summary {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 2px dashed #eee;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  font-size: 1.1rem;
}

.summary-total {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

/* Floating Elements */
.fab-whatsapp {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 60px;
  height: 60px;
  background-color: var(--primary-color);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: var(--shadow-lg);
  z-index: 100;
  transition: var(--transition);
  animation: pulse 2s infinite;
}

.fab-whatsapp:hover {
  transform: scale(1.1);
}

.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: var(--primary-color);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: var(--shadow-md);
  z-index: 100;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

/* Footer */
footer {
  background: var(--text-dark);
  color: var(--white);
  padding: 60px 0 30px;
  margin-top: 80px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-title {
  color: var(--primary-color);
  margin-bottom: 20px;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 102, 0, 0.5);
  }

  70% {
    box-shadow: 0 0 0 15px rgba(255, 102, 0, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(255, 102, 0, 0);
  }
}

/* Toast Notification */
.toast {
  position: fixed;
  bottom: -100px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--text-dark);
  color: var(--white);
  padding: 15px 30px;
  border-radius: var(--radius-full);
  z-index: 2000;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
}

.toast.show {
  bottom: 40px;
  opacity: 1;
  visibility: visible;
}

/* Product Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 2000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--white);
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  border-radius: 20px 20px 0 0;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  position: relative;
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(0, 0, 0, 0.1);
  border: none;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.modal-close:hover {
  background: rgba(0, 0, 0, 0.2);
}

.modal-body {
  padding: 0;
  overflow-y: auto;
  flex-grow: 1;
}

.modal-footer {
  padding: 20px;
  border-top: 1px solid #eee;
  background: var(--white);
}

/* Modal Content Details */
.modal-img-container {
  width: 100%;
  height: 250px;
  background: #eee;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
}

.modal-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-details {
  padding: 20px;
}

.modal-title {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.modal-desc {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.options-section {
  margin-bottom: 25px;
}

.options-title {
  font-weight: 600;
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.option-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: var(--radius-md);
  margin-bottom: 10px;
  cursor: pointer;
  transition: var(--transition);
}

.option-label.selected {
  border-color: var(--primary-color);
  background: rgba(255, 102, 0, 0.05);
}

.option-radio {
  margin-right: 10px;
  accent-color: var(--primary-color);
}

.option-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f5f5f5;
  border-radius: var(--radius-full);
  padding: 5px;
}

.opt-btn {
  background: white;
  border: none;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-color);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

.opt-btn:hover {
  background: var(--primary-color);
  color: white;
}

.opt-qty {
  font-weight: 600;
  font-size: 0.9rem;
  min-width: 15px;
  text-align: center;
}


/* Accompaniments inside Modal */
.acc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 15px;
}

.acc-card {
  border: 1px solid #ddd;
  border-radius: var(--radius-md);
  padding: 15px 10px;
  text-align: center;
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.acc-card.selected {
  border-color: var(--primary-color);
  background: rgba(255, 102, 0, 0.05);
}

.acc-card i.main-icon {
  font-size: 1.5rem;
  color: var(--text-light);
  margin-bottom: 10px;
}

.acc-card.selected i.main-icon {
  color: var(--primary-color);
}

.acc-img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 10px;
  border: 2px solid #eee;
  transition: var(--transition);
}

.acc-card.selected .acc-img {
  border-color: var(--primary-color);
}

.acc-name {
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 5px;
}

.acc-price {
  font-size: 0.85rem;
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 10px;
}

.acc-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #f5f5f5;
  border-radius: var(--radius-full);
  padding: 5px;
  margin-top: auto;
}

.acc-btn {
  background: white;
  border: none;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-color);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

.acc-btn:hover {
  background: var(--primary-color);
  color: white;
}

.acc-qty {
  font-weight: 600;
  font-size: 0.9rem;
  min-width: 15px;
}

/* Sold Out Badge */
.badge-soldout {
  position: absolute;
  top: 15px;
  left: 15px;
  background: #ff3333;
  color: white;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  z-index: 5;
}

.product-card.soldout {
  opacity: 0.6;
  pointer-events: none;
}

/* Responsive */
@media (max-width: 992px) {
  .checkout-grid {
    grid-template-columns: 1fr;
  }

  .checkout-form {
    order: -1;
  }
}

@media (max-width: 768px) {
  header {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: var(--white);
  }

  .menu-toggle {
    display: none;
  }

  .nav-links {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: var(--white);
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -2px 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 0 10px;
  }

  .nav-links a {
    font-size: 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    color: var(--text-light);
  }

  .nav-links a i {
    display: block;
    font-size: 1.2rem;
  }

  .nav-links a::after {
    display: none;
  }

  .nav-links a.active,
  .nav-links a:hover {
    color: var(--primary-color);
  }

  body {
    padding-bottom: 70px;
  }

  .fab-whatsapp {
    bottom: 90px;
  }

  .back-to-top {
    bottom: 90px;
  }

  .hero {
    height: 75vh;
    min-height: 450px;
    background-position: 55% center; /* Légèrement décalé pour centrer les visages des soeurs/membres */
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .page-hero {
    height: 30vh;
    min-height: 200px;
    background-position: center center;
  }

  .page-hero-content h1 {
    font-size: 2.2rem;
  }
}