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

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

h2 {
  font-size: 1.5rem;
}

h2 span {
  color: #333;
  font-size: 1.2rem;
}

h2.titreInter {
  color:black;
  font-size: 2rem;
  margin:0;
  padding: 0;
}

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

h4 {
  font-size : 1.2rem;
  font-weight: 700;
}

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 img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0px auto;
}


#header img.logoCampagnou {
  max-width: 50%;
    margin: 30px auto;
}


#header h1 {
  display: none;
}


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

#section1 {
  margin: 0;
}

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

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

#section1 img.drapeau {
  max-width: 300px;
}

#section1 img.logos {
  max-width: 40%;
}



/* ========= 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.logoCampagnou {
  padding-bottom: 0;
  margin-bottom: 0;
  width: 40%;
}


#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);
}

/* ========= IMG PARALX ========= */
#section1-2 {
  background-image: url('./images/Slide/Le-bon-gout-du-beurre-02.webp');
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  position: relative;
}

#section1-2 .cta-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0);
}

#section1-2 .h300px {
  display: block;
  height: 250px;
}

/* ========= SECTION 3 ========= */

#section3 {
  background-image: url('./images/Slide/image02.webp');
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  position: relative;
}

#section3 .cta-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
}

.cta-btn {
  background-color: #4383c9;
  color: #ffffff;
  border: none;
}

.cta-btn:hover {
  background-color: #356aa3;
  color: #ffffff;
}

#section3 p {
  color:white;
}

#section3  p.lastP {
  padding-bottom: 2rem;
}


/* ========= SECTION 4 ========= */

#section4 a {
  color: #4383c9;
  text-decoration: none;
}

#section4 a:hover {
  color: #4383c9;
  text-decoration: underline;
}

#section4 h4 {
    padding-top: 0.5rem;
  }

#section4 img {
  max-width: 95%;
}

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

footer img {
  width: 30%;
  height: auto;
}

footer a {
  color: #fff;
  /*text-decoration: none;*/
}

footer a:hover {
  color: #4383c9;
  text-decoration: none;
}

footer p {
  color: #fff;
  margin-top:0;
  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;
}*/

/* Overlay */
.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  display: none;
  /*justify-content: center;
  align-items: center;*/
  z-index: 1000;
}

/* Contenu */
.popup-content {
  background: #ffffff;
  margin: 10% auto;
  /*width: 80%;*/
  max-width: 600px;

  max-height: 80vh;        /* Limite la hauteur à 85% de l'écran */
  overflow-y: auto;        /* Active la scroll verticale */

  padding: 20px;
  border-radius: 10px;
  position: relative;
}

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

.popup .close {
  position: absolute;
  right: 15px;
  top: 15px;
  font-size: 50px;
  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 .logoCampagnou {
    width: 500px;
    height: auto;
    top:30%;
  }*/

 #header img.logoCampagnou {
  max-width: 70%;
  margin: 30px auto;
}

#section1 img.drapeau {
  max-width: 150px;
}

#section1 img.logos {
  max-width: 90%;
}

#header h1 {
  display: none;
}


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

/*#section2 img.logoCampagnou {
    width: 80%;
    height: auto;
}*/

footer img {
  width: 80%;
  height: auto;
}


.tel {
  font-size: 1.5rem;
}


}


@media screen and (min-width: 760px) and (max-width: 926px)  and (orientation: landscape) { 
/*#header .logoCampagnou {
    width: 500px;
    height: auto;
    top:10%;
  }*/
 
 #header img.logoCampagnou {
  max-width: 70%;
  margin: 30px auto;
}

#section1 img.drapeau {
  max-width: 150px;
}

#section1 img.logos {
  max-width: 80%;
}

#header h1 {
  display: none;
}

}



 /* ==============================
   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); }
}
