/* ========= GLOBAL ========= */
body {
  font-family: 'Raleway', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  color: #333;
  scroll-behavior: smooth;
}

h1, h2, h3 {
  color: #9F7739;
  font-weight: 900; /* Black */
}

h3 {
  text-transform: uppercase;
  font-size: 1.2rem;
}

b, strong {
  font-weight: 600; /* SemiBold */
}

p {
  margin-bottom: 1rem;
  color:#505050;
}

.tel {
  font-weight: 600;
  font-size: 2rem; 
}

/* ========= HEADER / SLIDER ========= */
#header {
  position: relative;
  overflow: hidden;
}

#header .logo {
  position: absolute;
  top: 25%;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: auto;
  z-index: 10;
}


.carousel-item img {
  width: 100%;
  height: 100vh;
  object-fit: cover;
}


/* ========= SECTION 1 ========= */

#section1 {
  margin: 0;
}

#section1 h1 {
  margin: 20px 0;
  text-align: center;
}

.section1-text {
  max-width: 860px;
  margin-left: 20%;
  margin-right: 20%;
  padding: 20px;
  text-align: justify;
}

#section1 img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

#section1 img.Les_Patigoustiers {
  padding-top: 60px;
}

/* ========= SECTION 2 ========= */
#section2 {
  padding-top: 30px;
}

#section2 h2 {
  margin-bottom: 30px;
}

#section2 .col-md-4 {
  transition: transform 0.3s ease;
}

#section2 .col-md-4:hover {
  transform: translateY(-5px);
}

#section2 img {
  height: auto;
  object-fit: cover;
  transition: transform 0.4s ease;
  padding-bottom: 30px;
}

#section2 img.Le_Patissier {
  padding-bottom: 0;
}


#section2 .col-md-4:hover img {
  transform: scale(1.05);
}

.social-icons {
  margin-top: 10px;
}

.social-icons a {
  margin: 0 7.5px;
  display: inline-block;
}

.social-icons img {
  width: 25px;
  height: 25px;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.social-icons a:hover img {
  transform: scale(1.2);
  filter: brightness(0.7) sepia(1) hue-rotate(15deg) saturate(3);
}

/* ========= FOOTER ========= */
footer {
  background-color: #000;
}

footer img {
  width: 286px;
  height: auto;
}

footer a#mentionsLink {
  color: #505050;
  text-decoration: none;
}

footer a#mentionsLink:hover {
  text-decoration: underline;
}

footer p {
  margin-top:3em;
  margin-bottom: 0;
}

/* ========= POPUP ========= */
.popup {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
}

.popup-content {
  background-color: #fff;
  margin: 10% auto;
  padding: 20px;
  border-radius: 10px;
  max-width: 600px;
  position: relative;
}

.popup-content h2 {
  margin-top: 0;
}

.popup .close {
  position: absolute;
  right: 15px;
  top: 15px;
  font-size: 24px;
  cursor: pointer;
}

/* ========= BOUTON RETOUR HAUT ========= */
#backToTop {
  display: none;
  position: fixed;
  bottom: 40px;
  right: 40px;
  z-index: 999;
  font-size: 20px;
  background-color: #000;
  color: #fff;
  border: none;
  outline: none;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.4s ease;
}

#backToTop.show {
  display: block;
  opacity: 1;
}

#backToTop:hover {
  background-color: #333;
}

/* ========= ANIMATIONS ========= */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}


/* ========= MOBILES ========= */

@media (max-width: 760px) {
#header .logo {
    width: 250px;
    height: auto;
    top:30%;
  }


#section1 h1, .section1-text p {
  margin: 0 5%;
  margin-bottom: 2em;
}

#section2 img.Le_Patissier {
    width: 100px;
    height: auto;
}

footer img {
  width: 150px;
  height: auto;
}

#section1 img.Les_Patigoustiers {
  padding-top: 0px;
}

.tel {
  font-size: 1.5rem;
}

}


@media screen and (min-width: 760px) and (max-width: 926px)  and (orientation: landscape) { 
#header .logo {
    width: 300px;
    height: auto;
    top:10%;
  }
 }



 /* ==============================
   POPUP OUVERTURE DE PAGE
============================== */
#welcome-popup-overlay {
  display: none; /* masqué par défaut */
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

#welcome-popup {
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  max-width: 500px;
  width: 90%;
  text-align: center;
  position: relative;
  animation: popupFadeIn 0.5s ease;
}

#welcome-popup .welcome-image {
  max-width: 100%;
  height: auto;
  margin-bottom: 1rem;
  border-radius: 8px;
}

#welcome-close {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 1.5rem;
  cursor: pointer;
  color: #333;
  transition: color 0.2s;
}

#welcome-close:hover {
  color: #b30000;
}

/* Animation d'apparition */
@keyframes popupFadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1); }
}
