/* ================= NAVIGATION BAR ================= */

.navbar {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: opacity 0.5s ease;
  opacity: 0.7;
  background-color: whitesmoke;
}

.navbar .nav-link {
  position: relative;
  font-size: 1.15rem !important;
}

.navbar .nav-link:hover {
  color: #881c1c !important;
}

/* Soulignement animé */
.navbar .navbar-nav li a::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 50%;
  transform: translateX(-50%);
  width: 0%;
  height: 3px;
  background: #881c1c;
  transition: width 0.3s ease;
}

.navbar .navbar-nav li a:hover::after,
.navbar .navbar-nav li a.active::after {
  width: 100%;
}

.navbar .navbar-nav li a:hover,
.navbar .navbar-nav li a.active {
  color: #881c1c;
}

.navbar.show-opacity {
  opacity: 1;
  transition: opacity 0.5s ease;
}

/* LOGO HEADER */
.logo-header {
  height: 70px;
  width: auto;
  max-height: 100%;
  image-rendering: auto;
}

/* ICONES NAVBAR */
.icon-navbar .bi-facebook:hover {
  transform: scale(1.2);
  color: #0d6efd;
}

.icon-navbar .bi-moon,
.icon-navbar .bi-sun {
  color: #121212;
  transform: scale(1.2);
}

/* BOUTON THÈME */
.navbar .btn-color {
  border-color: #121212;
}

.navbar .btn-color:hover {
  background-color: rgba(18, 18, 18, 0.2);
}

/* BOUTON RETOUR EN HAUT */
#backToTopBtn {
  position: fixed;
  right: 30px;
  font-size: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 999;
  background-color: transparent;
  color: #881c1c;
  border: none;
}

#backToTopBtn:hover {
  color: rgba(136, 28, 28, 0.2);
}

/* SCROLL CONTAINER */
.scroll-container {
  height: 100vh;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.scroll-container::-webkit-scrollbar {
  display: none;
}

/* SECTIONS */
.section {
  scroll-snap-align: start;
  min-height: 100svh;
  min-height: 100vh;
  height: auto;
  background-color: whitesmoke;
  padding: 2rem 0;
}

/* HEADER ET FOOTER FIXES */
.header, .footer {
  position: fixed;
  left: 0;
  right: 0;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.header { 
  top: 0; 
}

.footer {
  bottom: 0;
  background-color: whitesmoke;
}

.row {
  margin: 0 !important;
  max-width: 100% !important;
}

/* BREADCRUMB VERTICAL */
.breadcrumb-vertical {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  left: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding: 20px;
  background-color: whitesmoke;
  border-radius: 10px;
  opacity: 0.7;
}

.breadcrumb-item {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
}

.breadcrumb-item .icon {
  position: absolute;
  width: 40px;
  height: 40px;
  transition: opacity 0.3s ease;
}

.breadcrumb-item .hover { opacity: 0; }

.breadcrumb-item:hover .default,
.breadcrumb-item.active .default {
  opacity: 0;
}

.breadcrumb-item:hover .hover,
.breadcrumb-item.active .hover {
  opacity: 1;
}

.breadcrumb-item::before { display: none; }

/* ACCUEIL */
#accueil {
  background: url('../Assets/Photos/photo-piano-accuei.avif') no-repeat center center;
  background-size: cover;
  height: 100vh;
  position: relative;
}

#accueil .btn-accueil {
  border-color: #fff;
  background-color: #881c1c;
}

#accueil .btn-accueil:hover {
  background-color: rgba(136, 28, 28, 0.8);
  border-color: transparent;
}

.overlay-accueil {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.9) 100%);
}

.content-accueil {
  position: relative;
  z-index: 2;
}

.content-accueil h1 {
  font-size: 3.5rem;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

/* A PROPOS */
#apropos {
  padding-left: 4.5rem;
}

/* TARIFS */
#tarifs {
  padding-left: 4.5rem;
}

#tarifs .collapse,
#tarifs .collapse:not(.show) {
  display: block;
  height: 0;
  transition: height 0.5s ease, opacity 0.5s ease;
  opacity: 0;
}

#tarifs .collapse.show {
  height: auto;
  opacity: 1;
  transition: height 0.5s ease, opacity 0.5s ease;
}

#tarifs .card {
  border: 2px solid #881c1c;
  border-radius: 10px;
  transition: box-shadow 0.4s ease, transform 0.3s ease, border-color 0.4s ease;
}

#tarifs .card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

#tarifs .card-link {
  background-color: #881c1c;
}

#tarifs .card-link:hover {
  background-color: rgba(136, 28, 28, 0.8);
}

#tarifs .card-btn {
  border-color: #121212;
}

#tarifs .card-btn:hover {
  background-color: rgba(245, 245, 245, 1);
}

/* PUBLICATIONS */
#publication {
  padding-left: 5rem;
  padding-bottom: 2rem;
}

#publication #carouselExampleIndicators {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding-right: 30px;
  padding-left: 30px;
}

#publication .carousel-indicators {
  bottom: 30px !important;
}

#publication .carousel-inner {
  width: 100%;
  height: auto;
}

#publication .carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#publication .carousel-img-wrapper {
  position: relative;
  aspect-ratio: 1200 / 650;
  min-height: 300px;
  width: 100%;
}

#publication .carousel-control-prev {
  left: 50px !important;
}

#publication .carousel-control-next {
  right: 50px !important;
}

/* AVIS */
#avis {
  padding-left: 5rem;
}

#avis .testimonial-card {
  border: 2px solid #881c1c;
  border-radius: 10px;
  padding: 20px;
  min-height: 350px;
  background-color: white;
}

#avis .testimonial-avatar {
  width: 50px;
  height: 50px;
  background-color: #881c1c;
  box-shadow: 0 0 0 2px #881c1c;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

#avis .bi-person {
  color: white !important;
}

.carousel-controls-below button {
  background-color: #881c1c;
  color: #fff;
  border-radius: 5px;
  border: none;
  padding: 0;
  margin: 0;
  outline: none;
  box-shadow: none;
  transition: background-color 0.2s ease;
}

.carousel-controls-below button:hover {
  background-color: rgba(136, 28, 28, 0.8); 
  color: #fff;
}

/* Empêche tout décalage ou "reflow" au hover */
.carousel-controls-below button:hover,
.carousel-controls-below button:focus,
.carousel-controls-below button:active {
  border: none;
  outline: none;
  box-shadow: none;
  transform: none;
  transition: none;
}

.carousel-controls-below button:active {
  background-color: #881c1c !important; /* force le fond blanc */
  color: #fff !important;
}

.bi-arrow-left-short::before,
.bi-arrow-right-short::before {
  font-size: 2rem;
}

/* Évite un effet rebond sur les icônes */
.carousel-controls-below i {
  display: inline-block;
  line-height: 1;
  vertical-align: middle;
}

/* CONTACT */
#contact {
  padding-left: 5rem;
}

.contact-inner {
  border: 1px solid #881c1c;
  border-radius: 10px;
  background-color: white;
  width: 100%;
  max-width: 100%;
}

#contact .btn {
  background-color: #881c1c;
  color: #fff;
}

#contact .btn:hover {
  background-color: rgba(136, 28, 28, 0.8);
}

#name, #phone, #email, #message {
  border-color: #881c1c;
}

.form-control:focus {
  box-shadow: 0 0 0 .10rem rgba(136, 28, 28, 0.4) !important;
}

.icon-contact {
  background-color: #881c1c;
}

.bi-telephone-fill,
.bi-envelope-fill,
.bi-geo-alt-fill {
  color: white;
}

.hidden-message {
  opacity: 0;
  visibility: hidden;
  max-height: 0;
  transition: opacity 0.6s ease, max-height 0.6s ease;
  overflow: hidden;
}

.success-email.show, .phone-invalid.show {
  opacity: 1;
  visibility: visible;
  max-height: 200px;
}

.success-email p {
  background-color: white;
  color: #155724;
  border-radius: 10px !important;
  padding: 10px !important;
  border: 1px solid #c3e6cb;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.phone-invalid p {
  background-color: white;
  color: #3d348b;
  border-radius: 10px;
  padding: 10px;
  border: 1px solid #c7c8ff;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* IMAGES */
img, .img-fluid, .img-apropos {
  max-width: 100%;
  height: auto;
}

/* DARK/LIGHT THEME TOGGLE VISIBILITY (desktop/mobile) */
#theme-toggle-desktop { 
  display: flex; 
}

#theme-toggle-mobile,
.navbar-mobile-actions  { 
  display: none; 
}
