/* -------------------- VARIABLES & FONDATIONS -------------------- */
:root {
  --rose-poudre: #FFC6D5;
  --rose-pale: #FFEAF0;
  --gris-clair: #f8f9fa;
  --noir-doux: #444;
  --blanc: #fff;
  --font-titre: 'Dancing Script', cursive;
  --font-texte: 'Poppins', sans-serif;
}

body {
  font-family: var(--font-texte);
  color: var(--noir-doux);
  background-color: var(--blanc);
  scroll-behavior: smooth;
}

h1, h2, h3, .navbar-brand {
  font-family: var(--font-titre);
  color: var(--rose-poudre);
}

a {
  text-decoration: none;
  color: var(--rose-poudre);
}

a:hover {
  color: #e69aad;
}

section {
  padding: 80px 0;
  opacity: 0;
  transform: translateY(50px);
  transition: all 1s ease;
}

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

/* -------------------- NAVIGATION -------------------- */
.navbar {
  background-color: var(--blanc);
  transition: all 0.3s ease-in-out;
}

.nav-link {
  font-weight: 500;
  color: #555;
}

.nav-link:hover,
.nav-link.active {
  color: var(--rose-poudre) !important;
}

/* -------------------- BOUTONS -------------------- */
.btn-pink {
  background-color: var(--rose-poudre);
  color: var(--blanc);
  border: none;
  border-radius: 50px;
  padding: 12px 28px;
  transition: background-color 0.3s ease;
}

.btn-pink:hover {
  background-color: #f8aabf;
  color: var(--blanc);
}

.btn-messenger {
  background-color: #0084FF;
  color: white;
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 500;
  display: inline-block;
  transition: background-color 0.3s ease;
}

.btn-messenger:hover {
  background-color: #006edc;
  color: white;
}

/* -------------------- ACCUEIL -------------------- */
#accueil {
  background: linear-gradient(to bottom, var(--rose-pale), var(--blanc));
  text-align: center;
}

#accueil h1 span {
  color: var(--rose-poudre);
}

#accueil .lead {
  font-size: 1.3rem;
  color: #666;
}

/* -------------------- FOOTER -------------------- */
footer {
  font-size: 0.9rem;
  color: #888;
  background-color: var(--gris-clair);
  text-align: center;
}

footer small {
  font-size: 0.85rem;
}

/* -------------------- GALERIE -------------------- */
.gallery-item {
  height: 300px;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 4px 8px rgba(255, 198, 213, 0.2);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
  opacity: 0.9;
}

/* -------------------- TITRES DE CATÉGORIE GALERIE -------------------- */
.galerie-categorie {
  font-family: var(--font-titre);
  font-size: 2rem;
  color: var(--rose-poudre);
  text-align: center;
  margin: 60px 0 30px;
  position: relative;
}

.galerie-categorie::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background-color: var(--rose-poudre);
  margin: 10px auto 0;
  border-radius: 2px;
}

/* Séparateur entre catégories galerie */
.galerie-separateur {
  border: none;
  height: 2px;
  max-width: 160px;
  margin: 60px auto;
  background: linear-gradient(to right, transparent, var(--rose-poudre), transparent);
  opacity: 0.4;
}

/* -------------------- CARTES -------------------- */
.card {
  border-radius: 20px;
  background-color: #fff;
}

.card-title {
  font-family: var(--font-titre);
  color: var(--rose-poudre);
  font-size: 1.6rem;
}

.card-body p {
  font-size: 1rem;
  line-height: 1.6;
}

.option.promo {
  background-color: var(--rose-pale);
  font-weight: bold;
}

/* ---- Prestations ---- */
.prestation-card {
  padding: 20px;
  border-radius: 20px;
  border: 2px solid transparent;
  background-color: #fff;
  transition: all 0.3s ease;
}

.prestation-card:hover {
  transform: translateY(-8px);
  border-color: var(--rose-poudre);
  box-shadow: 0 10px 20px rgba(255, 198, 213, 0.3);
}

.prestation-card .icon {
  font-size: 2rem;
  color: var(--rose-poudre);
}

.prestation-card .card-title {
  font-size: 1.6rem;
}

/* ---- Avis ---- */
.avis-card {
  border-radius: 20px;
  background-color: #fff;
  border: 2px solid transparent;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.avis-card:hover {
  transform: translateY(-6px);
  border-color: var(--rose-poudre);
  box-shadow: 0 10px 20px rgba(255, 198, 213, 0.25);
}

.avis-card .card-title {
  font-family: var(--font-titre);
  color: var(--rose-poudre);
  font-size: 1.4rem;
}

.avis-card .card-text {
  font-size: 1rem;
}

.avis-card .text-warning {
  font-size: 1.2rem;
}

/* -------------------- CALENDRIER -------------------- */
.calendar-container {
  max-width: 600px;
  margin: 0 auto;
}

.calendar-header h3 {
  font-family: var(--font-titre);
  color: var(--rose-poudre);
}

#calendarDays {
  display: flex;
  flex-wrap: wrap;
}

#calendarDays .day {
  width: calc(100% / 7);
  padding: 10px 0;
  margin-bottom: 5px;
  border-radius: 10px;
  cursor: pointer;
  position: relative;
  transition: background-color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: bold;
}

#calendarDays .empty {
  pointer-events: none;
  background: transparent;
}

.available-day {
  background-color: var(--rose-pale);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.available-day:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(255, 198, 213, 0.4);
}

.disabled-day {
  background-color: #f5f5f5;
  color: #ccc;
  cursor: not-allowed;
}

.day.selected {
  background-color: #f48fb1 !important;
  color: white !important;
}

.day-number {
  z-index: 1;
}

.dispo-badge {
  position: absolute;
  top: 5px;
  right: 8px;
  background-color: var(--rose-poudre);
  color: white;
  font-size: 0.7rem;
  font-weight: bold;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(255,198,213,0.5);
  z-index: 2;
}

/* ----------- POPUPS ----------- */
.popup-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.6);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.3s ease forwards;
}

.popup-box {
  background: white;
  padding: 30px;
  border-radius: 15px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 5px 20px rgba(0,0,0,0.2);
  transform: scale(0.8);
  opacity: 0;
  animation: zoomIn 0.3s ease forwards;
}

.popup-box h4 {
  color: var(--rose-poudre);
  font-family: var(--font-titre);
  margin-bottom: 15px;
}

@keyframes fadeIn {
  from { background-color: rgba(0, 0, 0, 0); }
  to   { background-color: rgba(0, 0, 0, 0.6); }
}

@keyframes zoomIn {
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* ----------- FORMULAIRES & NOTIFS ----------- */
#notification {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1050;
  width: 100%;
  max-width: 600px;
  padding: 10px 20px;
  text-align: center;
}

#notification .alert {
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.1rem;
  padding: 15px 20px;
}

#timeSlotContainer .form-check {
  padding-left: 0;
  display: flex;
  justify-content: center;
}

/* -------------------- SCROLL TO TOP -------------------- */
#scrollToTopBtn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  display: none;
  width: 48px;
  height: 48px;
  font-size: 20px;
  font-weight: bold;
  text-align: center;
  line-height: 48px;
  border: none;
  border-radius: 50%;
  background-color: var(--rose-poudre);
  color: white;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(255, 198, 213, 0.4);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

#scrollToTopBtn:hover {
  background-color: #f8aabf;
  transform: scale(1.1);
}

/* -------------------- SCROLLBAR -------------------- */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--gris-clair);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background-color: var(--rose-poudre);
  border-radius: 10px;
  border: 2px solid var(--gris-clair);
}

::-webkit-scrollbar-thumb:hover {
  background-color: #f8aabf;
}

html {
  scrollbar-width: thin;
  scrollbar-color: var(--rose-poudre) var(--gris-clair);
}

/* -------------------- RESPONSIVE -------------------- */
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  .btn-pink, .btn-messenger { padding: 10px 20px; font-size: 0.9rem; }
  .navbar-brand { font-size: 1.3rem; }
  .card-title { font-size: 1.4rem; }
  .card-body p, .avis-card .card-text { font-size: 0.95rem; }
  .gallery-item { height: 250px; }
  .prestation-card .icon { font-size: 1.8rem; }
}

@media (max-width: 576px) {
  .dispo-badge {
    width: 16px;
    height: 16px;
    font-size: 0.55rem;
    top: 3px;
    right: 5px;
  }
  .day { font-size: 0.9rem; }
  #scrollToTopBtn {
    bottom: 15px;
    right: 15px;
    width: 44px;
    height: 44px;
    font-size: 18px;
    line-height: 44px;
  }
}

/* Styles pour le bandeau de cookies */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 1rem;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0 1rem;
}

.cookie-content p {
    margin: 0;
    flex: 1;
    font-size: 0.95rem;
    line-height: 1.4;
}

.cookie-buttons {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
        padding: 0.5rem;
    }
    
    .cookie-buttons {
        width: 100%;
        justify-content: center;
        margin-top: 0.5rem;
    }

    .cookie-content p {
        font-size: 0.9rem;
    }
}

.day.past-day {
  opacity: 1;
  pointer-events: none;
  background-color: #e0e0e0;
  color: #b0b0b0;
}

.day.no-slots-day {
  opacity: 1;
  pointer-events: none;
  background-color: #f8f9fa;
  color: #cccccc;
  border: 1px solid #e9ecef;
}
