:root {
  --primary: #6BCB77;
  --secondary: #FF6B6B;
  --bg-light: #FFF8F0;
  --text-dark: #333;
}

body {
  background-color: var(--bg-light);
  color: var(--text-dark);
  font-family: 'Poppins', sans-serif;
  
}

h1, h2, h3 {
  color: var(--primary);
  font-weight: 600;
}

.btn-success {
  background-color: var(--primary);
  border: none;
}

.btn-success:hover {
  background-color: var(--secondary);
}

.navbar {
  background-color: #ffffff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.navbar-nav .nav-link {
  font-size: 1.4rem;
  font-weight: 500;
  margin: 0 12px;
}

.hero-recipes {
  background-color: #FFF1E0;
  padding: 3rem 0;
  border-radius: 12px;
}

.alert {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1050;
  min-width: 250px;
}

/* --- Carrousel --- */
#popularSmoothiesCarousel .carousel-inner {
  overflow: hidden;
}

#popularSmoothiesCarousel .carousel-item {
  padding: 0 1rem;
  justify-content: center;
  gap: 0.4rem !important;
}

#popularSmoothiesCarousel .row {
  --bs-gutter-x: 0.5rem !important; /* ✅ réduit l’espace horizontal entre les colonnes */
}

#popularSmoothiesCarousel .col-12.col-md-6.col-lg-4 {
  padding-left: 0.25rem !important;
  padding-right: 0.25rem !important;
}

/* --- Flèches du carrousel --- */
#popularSmoothiesCarousel .carousel-control-prev,
#popularSmoothiesCarousel .carousel-control-next {
  width: 5%;
  top: 50%;
  transform: translateY(-50%);
}

#popularSmoothiesCarousel .carousel-control-prev {
  left: -30px;
}

#popularSmoothiesCarousel .carousel-control-next {
  right: -30px;
}

#popularSmoothiesCarousel .carousel-control-prev-icon,
#popularSmoothiesCarousel .carousel-control-next-icon {
  background-color: #f75300; /* orange logo */
  border-radius: 50%;
  width: 40px;
  height: 40px;
  background-size: 60%;
  filter: drop-shadow(0 0 3px rgba(0,0,0,0.4));
}

/* ========================================================= */
/* 🌿✨ STYLE FINAL DES CARDS SMOOTHIE - CLEAN ET HARMONISÉ */
/* ========================================================= */
.smoothie-card {
  position: relative;
  background: #fff;
  border-radius: 1rem;
  overflow: hidden;
  margin-top: 10px;
  transform: scale(0.90);
  box-shadow: 0 8px 16px rgba(0,0,0,0.15);
  transform-origin: center center;
  transition: transform 0.3s ease, box-shadow 0.4s ease;
}

/* --- Image carrée --- */
.smoothie-img-wrapper {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 100%; /* ✅ carré parfait */
  overflow: hidden;
  border-top-left-radius: 1rem;
  border-top-right-radius: 1rem;
  margin-bottom: 0;
}

.smoothie-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* --- Encadré du nom du smoothie --- */
.smoothie-name-badge {
  position: absolute;
  top: -2px;
  left: 0;
  background: white;
  color: #1b1b1b;
  font-weight: 700;
  font-size: 1.5rem; /* 🔹 nom légèrement plus grand */
  padding: 8px 14px;
  border-bottom-right-radius: 20px;
  border-top-left-radius: 20px;
  box-shadow: 0 3px 6px rgba(0,0,0,0.1);
  z-index: 2;
}

/* --- Corps de la card --- */
.smoothie-card .card-body {
  text-align: left;
  padding: 0.8rem 1.2rem 1rem; /* 🔹 un peu plus d’air */
}

/* --- Description --- */
.smoothie-card .card-description {
  font-size: 0.97rem;
  color: #555;
  margin-top: 1rem; /* 🔹 plus d’espace au-dessus */
  margin-bottom: 1.5rem; /* 🔹 plus d’espace en dessous */
  line-height: 1.4rem;
  min-height: 35px;
}

/* --- Actions (bouton + prix) --- */
.smoothie-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

/* --- Bouton panier : vert --- */
.smoothie-card .btn-success {
  background-color: var(--primary);
  border: none;
  font-weight: 600;
  padding: 6px 16px; /* Ajustement du padding */
  width: auto; /* ✅ Supprime la largeur fixe */
  white-space: nowrap; /* Empêche le retour à la ligne */
  transition: all 0.3s ease;
}

.smoothie-card .btn-success:hover {
  background-color: #58b864;
  transform: translateY(-2px);
}

/* --- Encadré prix : orange, sans bordure verte --- */
.smoothie-card .price-tag {
  display: inline-block;
  background: white;
  border: none;
  outline: none;
  color: #f75300; /* orange logo */
  font-weight: 700;
  border-radius: 12px;
  padding: 8px 18px; /* ✅ plus grand */
  font-size: 1.1rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  white-space: nowrap;
}

.smoothie-card:hover .price-tag {
  background: #f75300;
  color: white;
  transform: scale(1.05);
}

/* --- Hover global --- */
.smoothie-card:hover {
  transform: translateY(-10px) scale(0.90);
  box-shadow: 0 10px 20px rgba(0,0,0,0.18);
  z-index: 2;
}

/* --- Reflet lumineux subtil --- */
.smoothie-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    120deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.3) 50%,
    rgba(255,255,255,0) 100%
  );
  transform: skewX(-25deg);
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.smoothie-card:hover::after {
  opacity: 1;
  animation: shine 1.2s ease;
}

@keyframes shine {
  100% {
    left: 125%;
  }
}
.smoothie-card {
  box-shadow: 0 .5rem 1rem rgba(0,0,0,.15) !important;
}

.smoothie-card:hover {
  box-shadow: 0 .5rem 1.2rem rgba(0,0,0,.2) !important;
}

.navbar-nav {
  align-items: center; /* ✅ centre verticalement les éléments (liens + boutons) */
}

.navbar .btn-sm {
  font-size: 0.9rem;
  line-height: 1.2;
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
}

.navbar .nav-item {
  margin-left: 10px;
}

.card {
  border-radius: 1rem;
}

.card h3 {
  font-weight: 600;
}

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

.table th, .table td {
  vertical-align: middle;
}

@media (min-width: 768px) {
  .card.h-100 {
    min-height: 100%;
  }
}
.card.rounded-4 {
  border-radius: 1rem !important;
}

.btn-success {
  background-color: var(--primary);
  border: none;
}

.btn-success:hover {
  background-color: #58b864;
}

.form-control {
  border-radius: 0.6rem;
  padding: 0.6rem 0.9rem;
}

.filter-btn.active {
    background-color: #28a745;
    color: white;
    transform: scale(1.05);
    transition: all 0.2s ease-in-out;
}

.smoothie-card {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.smoothie-card.fade-in {
    opacity: 1;
    transform: scale(1);
}

/* ---- PANIER / TABLEAU ---- */
.smoothie-table {
    border: none;
    border-radius: 15px;
    overflow: hidden;
}

.smoothie-table thead th {
    border: none;
    font-weight: 600;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.smoothie-table tbody tr {
    border-bottom: 1px solid #e9ecef;
}

.smoothie-thumb {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.smoothie-input {
    width: 70px;
    border-radius: 10px;
    border: 1px solid #cce5cc;
}

/* Bouton de suppression plus doux */
.btn-outline-danger.btn-sm {
    border-radius: 8px;
    transition: all 0.2s ease;
}

.btn-outline-danger.btn-sm:hover {
    background-color: #dc3545;
    color: #fff;
}

.smoothie-table td:nth-child(4) {
    width: 140px; /* largeur fixe raisonnable */
}

.smoothie-input {
    width: 60px !important; /* champ de saisie compact */
    text-align: center;
    border-radius: 8px;
    border: 1px solid #cce5cc;
}

/* 🌿 Désactivation du hover uniquement sur la page "Nos smoothies" */
.page-nos-smoothies .smoothie-card {
  transform: none !important;
  transition: none !important;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.12) !important;
  width: 20rem !important;
}

.page-nos-smoothies .smoothie-card img {
  height: auto !important;
  object-fit: cover;
  border-radius: 0.75rem 0.75rem 0 0;
}

.page-nos-smoothies .smoothie-card:hover {
  transform: none !important;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.12) !important;
}

.page-nos-smoothies .smoothie-card::after {
  display: none !important; /* enlève le reflet lumineux */
}

.page-nos-smoothies .smoothie-card {
  border-radius: 1.5rem !important;
  overflow: hidden !important;
}

.page-nos-smoothies .smoothie-card img {
  border-top-left-radius: 1rem !important;
  border-top-right-radius: 1rem !important;
}

/* ✅ S'applique à toutes les pages sauf "Nos Smoothies" */
body:not(.page-nos-smoothies) .smoothie-card img {
  display: block;
  width: calc(100% - 30px); /* crée un espace intérieur */
  margin: 15px 15px;        /* centre l’image dans la card */
  border-radius: 1rem;
  object-fit: cover;
  transition: all 0.3s ease;
}

#popularSmoothiesCarousel .smoothie-card {
  background: #fff;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.12);
  width: 20rem;
  margin: auto;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* ✅ Images carrées bien cadrées */
#popularSmoothiesCarousel .smoothie-card img {
  width: 90%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-top-left-radius: 1rem;
  border-top-right-radius: 1rem;
  display: block;
}



/* ✅ Reflet lumineux subtil */
#popularSmoothiesCarousel .smoothie-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-25deg);
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

#popularSmoothiesCarousel .smoothie-card:hover::after {
  opacity: 1;
  animation: shine 1.2s ease;
}

@keyframes shine {
  100% {
    left: 125%;
  }
}

/* ✅ Réduction réelle de l'espacement entre les cards du carrousel */
#popularSmoothiesCarousel .carousel-item > .row {
  display: flex;
  justify-content: center;
  gap: 0.6rem !important; /* 🔹 diminue l’écart horizontal entre les cards */
}

#popularSmoothiesCarousel .carousel-item .col-12.col-md-6.col-lg-4 {
  flex: 0 0 auto;
  width: auto;
  padding: 0 !important; /* 🔹 supprime le padding par défaut de Bootstrap */
}

#popularSmoothiesCarousel .smoothie-card {
  margin: 0 !important; /* 🔹 empêche toute marge parasite sur les cards */
}

/* ✅ Réduction de la largeur globale du carrousel */
#popularSmoothiesCarousel {
  max-width: 1100px; /* ← ajuste ici : 900px, 1000px, 1100px, etc. */
  margin: 0 auto; /* centre le carrousel */
}

/* ========================================================= */
/* 🍹 HOMEPAGE SMOOTHIETIME - STYLE HARMONISÉ */
/* ========================================================= */

/* === HERO SECTION === */
.hero-section {
  background: linear-gradient(180deg, #fdfdfb 0%, #fff8f0 100%);
  padding: 6rem 1rem 5rem;
  border-bottom: 3px solid rgba(107, 203, 119, 0.2);
  text-align: center;
}

.smoothie-hero-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 3.2rem;
  color: var(--primary);
  text-shadow: 0 0 10px rgba(107, 203, 119, 0.25);
}

.hero-section p.lead {
  color: #555;
  font-size: 1.2rem;
  line-height: 1.6;
}

.hero-section .btn-success {
  font-weight: 600;
  font-size: 1.2rem;
  border-radius: 50px;
  box-shadow: 0 6px 14px rgba(107, 203, 119, 0.3);
  transition: all 0.3s ease;
}

.hero-section .btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(107, 203, 119, 0.45);
}

/* === NOS VALEURS === */
section.bg-white.text-center {
  background-color: #ffffff !important;
}

.value-icon {
  display: inline-block;
  background: rgba(107, 203, 119, 0.08);
  border-radius: 50%;
  width: 80px;
  height: 80px;
  line-height: 80px;
  font-size: 2.2rem;
  color: var(--primary);
  transition: all 0.3s ease;
  box-shadow: 0 0 10px rgba(107, 203, 119, 0.1);
}

.value-icon:hover {
  background: var(--primary);
  color: white;
  transform: scale(1.1);
  box-shadow: 0 0 15px rgba(107, 203, 119, 0.4);
}

section.bg-white.text-center h5 {
  color: var(--primary);
  margin-bottom: 0.3rem;
}

section.bg-white.text-center p {
  color: #555;
  font-size: 0.9rem;
}

/* === SECTION INCONTOURNABLES === */
section.bg-light h2 {
  font-size: 2.2rem;
  text-shadow: 0 0 5px rgba(107, 203, 119, 0.15);
}

/* === SMOOTHIE LAB SECTION === */
section.bg-white.text-center:last-of-type {
  background: linear-gradient(180deg, #ffffff 0%, #fefaf4 100%);
  padding: 4rem 1rem 5rem;
}

section.bg-white.text-center:last-of-type h2 {
  font-size: 2.2rem;
  text-shadow: 0 0 5px rgba(107, 203, 119, 0.2);
}

section.bg-white.text-center:last-of-type p {
  color: #666;
  font-size: 1rem;
  margin-bottom: 2rem;
}

section.bg-white.text-center:last-of-type .btn-outline-success {
  font-weight: 600;
  border-width: 2px;
  border-color: var(--primary);
  color: var(--primary);
  border-radius: 50px;
  padding: 0.75rem 2rem;
  transition: all 0.3s ease;
  box-shadow: 0 0 0 rgba(107, 203, 119, 0);
}

section.bg-white.text-center:last-of-type .btn-outline-success:hover {
  background-color: var(--primary);
  color: white;
  box-shadow: 0 6px 16px rgba(107, 203, 119, 0.4);
  transform: translateY(-2px);
}

/* === LIGNES DE TITRE === */
section h2 + hr {
  width: 160px;
  height: 3px;
  background-color: var(--primary);
  border: none;
  border-radius: 3px;
  margin: 0 auto 2.5rem;
}

/* === RÉPONSIVE === */
@media (max-width: 992px) {
  .smoothie-hero-title {
    font-size: 2.6rem;
  }

  .value-icon {
    width: 70px;
    height: 70px;
    line-height: 70px;
    font-size: 1.8rem;
  }

  section.bg-white.text-center h5 {
    font-size: 1.05rem;
  }
}

/* === SECTIONS GLOBALES === */
.page-home section,
.page-nos-smoothies section {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

.page-home section .container,
.page-nos-smoothies section .container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* === HERO SECTION === */
/*.hero-section {
  background: white;
  padding: 6rem 1rem;
  border-bottom: 2px solid rgba(107, 203, 119, 0.15);
  text-align: center;
}*/

.smoothie-hero-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 3.2rem;
  color: var(--primary);
  text-shadow: 0 0 6px rgba(107, 203, 119, 0.15);
}

.hero-section p.lead {
  color: #444;
  font-size: 1.15rem;
  line-height: 1.6;
}

.hero-section .btn-success {
  font-weight: 600;
  font-size: 1.1rem;
  border-radius: 50px;
  box-shadow: 0 6px 14px rgba(107, 203, 119, 0.25);
  transition: all 0.3s ease;
}

.hero-section .btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(107, 203, 119, 0.35);
}

/* === NOS VALEURS === */
section.bg-white.text-center {
  background: #f9faf9; /* ✅ gris très clair neutre */
}

.value-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(107, 203, 119, 0.08);
  border-radius: 50%;
  width: 80px;
  height: 80px;
  font-size: 2rem;
  color: var(--primary);
  transition: all 0.3s ease;
}

.value-icon:hover {
  background: var(--primary);
  color: white;
  transform: scale(1.1);
  box-shadow: 0 0 15px rgba(107, 203, 119, 0.4);
}

section.bg-white.text-center h5 {
  color: var(--primary);
  font-weight: 700;
  margin-top: 0.8rem;
  margin-bottom: 0.3rem;
}

section.bg-white.text-center p {
  color: #555;
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* === SECTION INCONTOURNABLES === */
section.bg-light {
  background: white;
  border-top: 2px solid rgba(0,0,0,0.03);
  border-bottom: 2px solid rgba(0,0,0,0.03);
  padding: 5rem 0;
}

section.bg-light h2 {
  font-size: 2.2rem;
  text-shadow: 0 0 5px rgba(107, 203, 119, 0.1);
}

/* === SMOOTHIE LAB SECTION === */
section.bg-white.text-center:last-of-type {
  background: #f9faf9;
  padding: 4rem 1rem 5rem;
}

section.bg-white.text-center:last-of-type h2 {
  font-size: 2.2rem;
}

section.bg-white.text-center:last-of-type p {
  color: #666;
  font-size: 1rem;
  margin-bottom: 2rem;
}

section.bg-white.text-center:last-of-type .btn-outline-success {
  font-weight: 600;
  border-width: 2px;
  border-color: var(--primary);
  color: var(--primary);
  border-radius: 50px;
  padding: 0.75rem 2rem;
  transition: all 0.3s ease;
}

section.bg-white.text-center:last-of-type .btn-outline-success:hover {
  background-color: var(--primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(107, 203, 119, 0.4);
}

/* === TITRES DE SECTION === */
section h2 + hr {
  width: 160px;
  height: 3px;
  background-color: var(--primary);
  border: none;
  border-radius: 3px;
  margin: 0 auto 2.5rem;
}

/* === RESPONSIVE === */
@media (max-width: 992px) {
  .smoothie-hero-title {
    font-size: 2.6rem;
  }

  .value-icon {
    width: 70px;
    height: 70px;
    font-size: 1.6rem;
  }

  section.bg-white.text-center h5 {
    font-size: 1.05rem;
  }
}

/* ✅ Supprime tout espace entre la navbar fixe et le premier bloc sur la homepage */
body.page-home {
  margin-top: 60px !important;
  padding-top: 0 !important;
  
}


/* Corrige si Bootstrap applique un décalage automatique */
main, .container:first-child, .text-center.py-5:first-child {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

body {
  padding-top: 120px; /* hauteur moyenne de ta navbar */
}

/* === FOOTER PREMIUM SMOOTHIETIME === */
.footer {
  background: linear-gradient(180deg, #f6fff6 0%, #ffffff 100%); /* 🌿 dégradé doux vert → blanc */
  color: #333;
  font-size: 0.95rem;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 4px 12px rgba(0, 0, 0, 0.04); /* douce séparation */
}

/* --- halo lumineux subtil en haut du footer --- */
.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
  pointer-events: none;
}

.footer h6 {
  letter-spacing: 0.3px;
  position: relative;
  z-index: 1;
}

.footer a {
  transition: color 0.3s ease, transform 0.2s ease;
  position: relative;
  z-index: 1;
}

.footer a:hover {
  color: var(--primary);
  transform: scale(1.05);
}

.footer hr {
  border-color: rgba(0, 0, 0, 0.05);
  margin-top: 2rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.footer i {
  vertical-align: middle;
  transition: all 0.3s ease;
}

/* --- Icônes réseaux sociaux stylisées --- */
.footer .fs-4 a {
  background: white;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.footer .fs-4 a:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* --- Couleur personnalisée selon le réseau --- */
.footer .bi-facebook:hover {
  color: #1877F2;
}
.footer .bi-instagram:hover {
  color: #E1306C;
}
.footer .bi-tiktok:hover {
  color: #000000;
}

/* --- Centrage parfait des 4 colonnes --- */
.footer .row {
  justify-content: center;
  text-align: center;
}

.footer .col-md-3 {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer ul {
  padding: 0;
}

.footer small {
  position: relative;
  z-index: 1;
}

.payment-options .form-check-label img {
  vertical-align: middle;
  margin-top: -2px;
}

.payment-details {
  background-color: #f9fff9;
  transition: all 0.3s ease;
}

.payment-details.border {
  border-color: rgba(107, 203, 119, 0.2) !important;
}

/* ✅ Aligne toujours les boutons "Ajouter au panier" et les prix en bas des cards */
.smoothie-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.smoothie-card .card-body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.smoothie-card .card-description {
  flex-grow: 1; /* pousse le contenu pour que les actions soient toujours en bas */
}

.smoothie-actions {
  margin-top: auto; /* colle les boutons en bas */
}

.form-select {
  min-width: 180px;
  border-radius: 8px;
  border-color: #c8e6c9;
}

.form-select:focus {
  border-color: #6BCB77;
  box-shadow: 0 0 4px rgba(107, 203, 119, 0.3);
}

#imagePreviewContainer {
  background: #f9faf9;
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: 10px;
  transition: all 0.2s ease;
}

#imagePreviewContainer img {
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.ts-control {
  border-radius: 0.6rem !important;
  border: 1px solid #cdeccd !important;
  background-color: #f9fff9 !important;
  box-shadow: none !important;
}

.ts-control.focus {
  border-color: #6BCB77 !important;
  box-shadow: 0 0 0 3px rgba(107, 203, 119, 0.25) !important;
}

.ts-dropdown {
  border-radius: 0.6rem !important;
  border-color: #6BCB77 !important;
}

.ts-control .item {
  background-color: #6BCB77 !important;
  color: #fff !important;
  border-radius: 1rem !important;
  padding: 4px 10px !important;
  font-weight: 500;
}


/* 🌿 Style général des labels et inputs dans le back-office */
form label {
  font-weight: 600;
  color: #2d6a4f; /* vert doux SmoothieTime */
  margin-bottom: 6px;
}

form input[type="text"],
form input[type="number"],
form input[type="email"],
form input[type="password"],
form input[type="file"],
form select,
form textarea {
  border: 1px solid #cdeccd;
  background-color: #ffffff;
  border-radius: 0.6rem;
  padding: 0.6rem 0.8rem;
  transition: all 0.2s ease-in-out;
  width: 100%;
  color: #333;
}

/* Focus = halo vert doux */
form input:focus,
form select:focus,
form textarea:focus {
  border-color: #6BCB77;
  box-shadow: 0 0 0 3px rgba(107, 203, 119, 0.25);
  outline: none;
}

/* File input */
input[type="file"] {
  background-color: #fff;
  border: 1px dashed #a9e1a3;
  cursor: pointer;
}
input[type="file"]:hover {
  background-color: #f3fff4;
}

/* Textarea */
form textarea {
  resize: vertical;
  min-height: 100px;
}

/* Sélecteurs multiples (par ex. ingrédients avec Tom Select) */
.ts-control {
  border-radius: 0.6rem !important;
  background-color: #f9fff9 !important;
  border: 1px solid #cdeccd !important;
}
.ts-control.focus {
  border-color: #6BCB77 !important;
  box-shadow: 0 0 0 3px rgba(107, 203, 119, 0.25) !important;
}
.ts-control .item {
  background-color: #6BCB77 !important;
  color: white !important;
  border-radius: 1rem !important;
  padding: 4px 10px !important;
  font-weight: 500;
}
.ts-dropdown {
  border-color: #6BCB77 !important;
  border-radius: 0.6rem !important;
}

/* Boutons */
.btn-success {
  background-color: #6BCB77;
  border: none;
  font-weight: 600;
  transition: all 0.2s ease;
}
.btn-success:hover {
  background-color: #58b864;
  transform: translateY(-1px);
}

.btn-outline-secondary {
  border: 1px solid #aaa;
  color: #555;
  font-weight: 500;
}
.btn-outline-secondary:hover {
  background-color: #f4f4f4;
}

/* 🖼️ Aperçu image */
#imagePreviewContainer {
  border-radius: 0.8rem;
  border: 1px solid #e3f5e3;
  background-color: #fdfdfd;
  transition: all 0.2s ease;
}
#imagePreviewContainer:hover {
  border-color: #6BCB77;
  box-shadow: 0 0 5px rgba(107, 203, 119, 0.3);
}

/* --- HERO SECTION --- */
.nv-section {
    position: relative;
    min-height: 500px;
    background-image: url('../img/hero-bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Parallax effect */
    color: white;
    padding: 60px 0;
    overflow: hidden;
}

.nv-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5); /* léger filtre sombre */
}

/* --- NEWSLETTER SECTION --- */
.newsletter-section {
    position: relative;
    background-image: url('../img/newsletter-bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Parallax */
    color: white;
    min-height: 350px;
    display: flex;
    align-items: center;   /* Centre verticalement */
    justify-content: center; /* Centre horizontalement */
    text-align: center;    /* Pour recentrer le texte si nécessaire */
    padding: 40px 20px;    /* Pour éviter que ça colle aux bords */
}

.nv-section .container {
    position: relative;
    z-index: 2; /* Le texte reste devant */
}

.newsletter-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
}

.newsletter-section .container {
    position: relative;
    z-index: 2;
}

@media (max-width: 768px) {
    .nv-section,
    .newsletter-section {
        background-attachment: scroll;
    }
}

/* --- Ajustements lisibilité sur la section Nos valeurs --- */
section.nv-section.text-white {
    color: #fff !important;
}

section.nv-section.text-white h2,
section.nv-section.text-white h5 {
    color: #fff !important;
    text-shadow: 0 0 8px rgba(0,0,0,0.3);
}

section.nv-section.text-white p {
    color: rgba(255, 255, 255, 0.9) !important;
    text-shadow: 0 0 6px rgba(0,0,0,0.4);
}

/* Améliore visibilité des vignettes */
section.nv-section .value-icon {
    background: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
    color: #fff;
    border: 2px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
}

section.nv-section .value-icon:hover {
    background: rgba(255,255,255,0.9);
    color: #28a745;
    transform: scale(1.15);
    box-shadow: 0 0 20px rgba(255,255,255,0.5);
}

section h2 {
  font-size: 2.2rem;
  font-weight: 700;
  text-shadow: 0 0 5px rgba(107, 203, 119, 0.15);
  letter-spacing: 0.5px;
}

.hidden-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease-out;
}

.show {
    opacity: 1;
    transform: translateY(0);
}

.btn-success {
    background-color: var(--primary);
    border: none;
    color: #fff;
    font-weight: 600;
    border-radius: 50px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 6px 14px rgba(107, 203, 119, 0.25);
    transition: background-color 0.35s ease, 
                box-shadow 0.35s ease,
                transform 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
    will-change: transform, box-shadow;
}

.btn-success::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.25);
    transition: left 0.6s ease;
    pointer-events: none;
}

.btn-success:hover {
    background-color: #58b864;
    transform: translateY(-3px);
    box-shadow: 0 10px 22px rgba(107, 203, 119, 0.45);
}

.btn-success:hover::after {
    left: 100%;
}

.btn-success:active {
    transform: translateY(-1px);
    box-shadow: 0 5px 12px rgba(107, 203, 119, 0.35);
}

html {
    scroll-behavior: smooth;
}

#logoLoader {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 250px;
  position: relative;
  background: #fff;
}

.logo-fill-wrapper {
  position: relative;
  width: 260px; /* ✅ logo plus grand */
  height: auto;
  display: inline-block;
  overflow: hidden;
  transform: scale(1.05);
}

.logo-reveal {
  width: 100%;
  height: auto;
  display: block;
  position: relative;
  z-index: 1;
}

/* Le masque blanc qui découvre le logo */
.logo-mask {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: white;
  animation: revealLogo 3.5s cubic-bezier(0.42, 0, 0.25, 1) forwards;
  z-index: 2;
}

/* Animation : le masque monte doucement */
@keyframes revealLogo {
  0% { transform: translateY(0); }
  20% { transform: translateY(-25%); }
  35% { transform: translateY(-22%); }  /* petit retour */
  55% { transform: translateY(-55%); }
  75% { transform: translateY(-50%); }  /* petit ralentissement */
  90% { transform: translateY(-85%); }
  100% { transform: translateY(-100%); }
}

.logo-mask::after {
  content: "";
  position: absolute;
  top: 0;
  left: -50%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    120deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.4) 50%,
    rgba(255,255,255,0) 100%
  );
  animation: lightSweep 3.5s ease-in-out forwards;
}

@keyframes lightSweep {
  from { left: -50%; }
  to { left: 150%; }
}

/* ========================================================= */
/* 🔝 Bouton "Back to Top" SmoothieTime */
/* ========================================================= */

.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 50%;
  background-color: var(--primary);
  color: #fff;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, transform 0.3s ease, visibility 0.4s;
  z-index: 999;
}

.back-to-top:hover {
  background-color: #58b864;
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}

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

.btn-outline-success {
    transition: all 0.3s ease;
}

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

#favoriteBtn {
  transition: transform 0.3s ease, color 0.3s ease;
}

#favoriteBtn.animated {
  transform: scale(1.1);
  filter: drop-shadow(0 0 6px rgba(107,203,119,0.6));
}

.table-search {
  margin-bottom: 1rem;
  display: flex;
  justify-content: flex-end;
}

.table-search input {
  width: 250px;
  border: 1px solid #cdeccd;
  border-radius: 8px;
  padding: 0.4rem 0.8rem;
  transition: box-shadow 0.2s ease;
}

.table-search input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(107, 203, 119, 0.25);
}

th.sortable {
  cursor: pointer;
  position: relative;
}

th.sortable::after {
  content: "⇅";
  font-size: 0.8rem;
  color: #999;
  margin-left: 6px;
}

th.sorted-asc::after {
  content: "▲";
  color: var(--primary);
}

th.sorted-desc::after {
  content: "▼";
  color: var(--primary);
}

/* Soulignement animé */
.navbar .navbar-nav .nav-link {
  position: relative;
  display: inline-block;
  padding-bottom: 0.5rem;

  background-image: linear-gradient(var(--bs-success), var(--bs-success));
  background-repeat: no-repeat;

  /* Point de départ : ligne invisible, ancrée à GAUCHE */
  background-size: 0% 2px;
  background-position: left 100%;

  transition: background-size .5s ease;
}

/* Survol : la ligne s’étend vers la droite */
.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link:focus {
  background-size: 100% 2px;
}

.navbar .navbar-nav .nav-link:not(:hover):not(.active) {
  background-position: right 100%;  /* ancrage gauche */
  background-size: 0% 2px;         /* se rétracte à gauche */
}

.navbar .navbar-nav .nav-link.active {
  background-size: 100% 2px !important;
}

@media (max-width: 991px) {
    #popularSmoothiesCarousel {
        display: none;
    }

    .mobile-slider {
        display: flex;
        overflow-x: auto;
        gap: 20px;
        scroll-snap-type: x mandatory;
        padding: 10px;
    }

    .mobile-slider::-webkit-scrollbar {
        display: none;
    }

    .mobile-slider .card {
        min-width: 80%;
        scroll-snap-align: center;
    }
}

/* Version desktop : on masque le slider mobile */
@media (min-width: 992px) {
    .mobile-slider {
        display: none;
    }
}

/* 1) S'assurer que le hero ne "mord" pas sur la section suivante */
.hero-section {
  margin-bottom: 0;         /* pas d'espace négatif */
  position: relative;       /* si tu utilises un pseudo-élément, il reste contenu */
  z-index: 1;
}

/* 2) Forcer la section "Nos valeurs" à se placer correctement devant l'overlay */
.nv-section {
  position: relative;
  padding-top: 80px;        /* espace au-dessus pour éviter chevauchement (ajuste si besoin) */
  padding-bottom: 60px;
  margin-top: 0 !important;            /* s'il y a un margin-top négatif ailleurs, on l'annule */
  z-index: 2;               /* texte et contenu au-dessus de l'overlay */
}

/* overlay doit rester derrière le contenu */
.nv-section .nv-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

/* container devant l'overlay */
.nv-section .container {
  position: relative;
  z-index: 2;
}

/* 3) Empêcher la coupe des paragraphes (texte complet visible) */
.nv-section .value-icon + h5,
.nv-section h5 + p,
.nv-section p {
  white-space: normal;
  line-height: 1.4;
  overflow: visible;
}

/* 4) S'assurer que les colonnes prennent la hauteur nécessaire (mobile) */
@media (max-width: 767.98px) {
  .nv-section .row > [class*="col-"] {
    min-height: auto;       /* annule min-heights fixes éventuels */
    padding-bottom: 12px;   /* espace entre icône et texte */
  }

  .nv-section .value-icon {
    margin-bottom: 8px;
    font-size: 1.5rem;
  }
}

/* optionnel : ajouter une ombre de texte pour lisibilité sur image */
.nv-section h2, .nv-section h5 {
  text-shadow: 0 2px 6px rgba(0,0,0,0.45);
  color: #fff !important; /* force blanc si overlay sombre */
}


.nv-section {
    position: relative;
    padding: 60px 0; /* Augmente l’espace vertical */
    min-height: auto; /* IMPORTANT : enlève toute hauteur forcée */
}

.nv-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55); /* assombrit l'image pour un meilleur contraste */
    z-index: 1;
}

.nv-section .container {
    position: relative;
    z-index: 2; /* passe au-dessus de l’overlay */
}

/* Sur mobile : remettre 1 carte par ligne pour éviter l’écrasement */
@media (max-width: 576px) {
    .nv-section .col-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .nv-section h2 {
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    .valeurs-section {
        padding: 20px 15px;
    }

    .valeurs-wrapper {
        display: flex;
        flex-direction: column;
        gap: 30px;
    }

    .valeur-item {
        background: rgba(255,255,255,0.15);
        border-radius: 12px;
        padding: 20px;
        text-align: center;
    }

    .valeur-item img {
        width: 60px;
        height: 60px;
        margin-bottom: 10px;
    }

    .valeurs-bg {
        background-image: none !important;
    }
}

@media (max-width: 768px) {
    .nv-section .col-6 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }

    .nv-section .value-icon {
        font-size: 2.5rem !important;
    }

    .nv-section h5 {
        font-size: 1.1rem !important;
    }

    .nv-section p {
        font-size: 0.9rem !important;
    }
}

.categories-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.categories-wrapper .btn {
    white-space: normal; /* permet au texte de se couper */
    max-width: 100%;     /* empêche l'élargissement */
}

html, body {
    overflow-x: hidden;
}