/* ================================
   RESET GLOBAL
==================================*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: #fdf1de;
  color: #2C3E50;
  overflow-x: hidden;
  transition: background-color 0.4s ease, color 0.4s ease;
}

/* ================================
   DARK MODE
==================================*/
body.dark-mode {
  background-color: #1E1E1E;
  color: #EAEAEA;
}

body.dark-mode .logo span { color: #EAEAEA; }
body.dark-mode .navbar { background: rgba(40, 40, 40, 0.85); }
body.dark-mode .btn-login,
body.dark-mode .btn-primary { background: #3498DB; }
body.dark-mode footer { background: #1E1E1D; }

/* ================================
   NAVBAR
==================================*/
.navbar {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 4rem;
  background: rgba(253, 241, 222, 0.85);
  backdrop-filter: blur(10px);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: background 0.4s ease;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-weight: 700;
  font-size: 1.2rem;
  color: #2C3E50;
}

.logo img {
  width: 45px;
  height: 45px;
  border-radius: 8px;
  border: 2px solid #5DADE2;
  object-fit: cover;
  background: white;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

/* Navigation */
.navbar nav a {
  text-decoration: none;
  color: inherit;
  margin: 0 1rem;
  font-weight: 500;
  position: relative;
  transition: color 0.3s;
}

.navbar nav a::after {
  content: '';
  display: block;
  height: 2px;
  background: #5DADE2;
  transition: width 0.3s;
  width: 0;
  position: absolute;
  bottom: -4px;
  left: 0;
}

.navbar nav a:hover::after,
.navbar nav a.active::after {
  width: 100%;
}

/* ================================
   BOUTONS
==================================*/
.nav-buttons { display: flex; gap: 1rem; }

.btn-login {
  background: #5DADE2;
  border: none;
  color: white;
  padding: 0.6rem 1.2rem;
  border-radius: 25px;
  cursor: pointer;
  transition: .3s ease;
  font-weight: 500;
}

.btn-login:hover {
  background: #3498DB;
  transform: scale(1.05);
}

.btn-darkmode {
  background: transparent;
  border: 2px solid #5DADE2;
  color: #5DADE2;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  transition: .3s;
}
.btn-darkmode:hover {
  background: #5DADE2;
  color: white;
}

/* ================================
   SECTION SERVICES
==================================*/
.services {
  padding: 140px 20px 80px;
  display: flex;
  justify-content: center;
}

.services-container {
  max-width: 1100px;
  width: 100%;
  text-align: center;
}

/* Header */
.services-header .subtitle {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  color: #6c7bff;
  text-transform: uppercase;
}

.services-header h2 {
  font-size: 42px;
  font-weight: 700;
  margin-top: 10px;
}

.services-header p {
  margin-top: 15px;
  font-size: 17px;
  color: #444;
  line-height: 1.6;
}

/* Grid */
.services-grid {
  margin-top: 60px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
}

/* Service Card */
.service-box {
  background: rgba(255, 249, 239, 0.9);
  padding: 45px 30px;
  border-radius: 22px;
  box-shadow: 0 15px 40px rgba(65,84,241,0.10);
  transition: .4s;
  position: relative;
  overflow: hidden;
}

.service-box:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 55px rgba(65,84,241,0.15);
}

.service-icon {
  width: 70px;
  height: 70px;
  background: #eef1ff;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  margin: 0 auto 20px;
}

.service-icon img { width: 50px; }

.service-box h3 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 12px;
}

.service-price {
  font-size: 20px;
  font-weight: 700;
  color: #5DADE2;
  margin-bottom: 15px;
}

.service-box p {
  font-size: 16px;
  color: #444;
  margin-bottom: 25px;
}

/* Snipcart Button */
.service-btn {
  padding: 13px 28px;
  background: linear-gradient(135deg, #6b7bff, #4353ff);
  border: none;
  border-radius: 12px;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: .25s;
}

.service-btn:hover {
  transform: translateY(-3px);
  background: linear-gradient(135deg, #5565ff, #2c3dff);
}

/* ================================
   📌 SNIPCART FIX + THEME
==================================*/

.snipcart { font-family: 'Poppins', sans-serif !important; }

/* Colors light + dark mode support */
.snipcart-modal__container,
.snipcart-cart-header,
.snipcart-cart__footer {
  background-color: #fffaf2 !important;
  color: #2C3E50 !important;
}

body.dark-mode .snipcart-modal__container,
body.dark-mode .snipcart-cart-header,
body.dark-mode .snipcart-cart__footer {
  background-color: #1E1E1E !important;
  color: #EAEAEA !important;
}

/* FIX: Drawer bug when clicking "Modifier" */
body.snipcart-open {
  overflow: visible !important;
}

.snipcart-sidepanel,
.snipcart-sidecart {
  position: fixed !important;
  right: 0 !important;
  top: 0 !important;
  width: 420px !important;
  max-width: 90vw !important;
  height: 100vh !important;
  overflow-y: auto !important;
  z-index: 999999 !important;
}

/* Always show CLOSE button */
.snipcart-sidecart__close,
.snipcart-modal__close {
  display: block !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

/* Summary values styling */
.snipcart-summary-total__amount,
.snipcart-summary-total__title {
  font-weight: 700 !important;
  font-size: 1.2rem !important;
  color: #6C7BFF !important;
}

@media(max-width:768px){
  .snipcart-sidepanel, .snipcart-sidecart {
    width: 100vw !important;
  }
}
/* Bouton fermer Snipcart */
.snipcart-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 24px;
    cursor: pointer;
    z-index: 1001; /* au-dessus de tout */
    color: #333; /* couleur visible selon ton fond */
}

.snipcart-close:hover {
    color: #000;
}
/* Exemple : navbar normale */
.navbar {
    height: 80px;
    transition: all 0.3s ease;
}

/* Navbar réduite */
.navbar.shrink {
    height: 50px; /* ou la taille que tu veux */
}


/* Force la sidebar Snipcart au-dessus de tout */
#snipcart {
  position: fixed; /* ou absolute si tu préfères */
  z-index: 9999;
}

/* Si nécessaire pour le contenu du panier */
.snipcart__container {
    z-index: 9999 !important;
}
