/* Styles principaux du thème Fais et ris */

/* Titres ludiques */
h1, h2, h3, h4, h5, h6 {
    color: #B52107; /* rouge des titres */
}

.site-header {
  position: relative;
  width: 100%;
  overflow: hidden;
}

/* === BARRE SUPÉRIEURE (LOGO + MENU) === */
.header-top {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 5%;
  box-sizing: border-box;
  z-index: 10;
}

/* === BANNIÈRE === */
.header-banner {
  position: relative; /* important */
  width: 100%;
  height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-sizing: border-box;
}

.header-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.banner-title {
  position: relative;
  z-index: 2;
  text-align: center;
}

.banner-title h1 {
  font-family: 'Fredoka One', cursive;
  font-size: 2.8em;
  color: #B52107;
  margin: 0;
}

.banner-title p {
  font-family: 'Fredoka One', cursive;
  font-size: 1.3em;
  color: #B52107;
}


/* Logo à gauche */
.logo-site {
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo-site img {
  height: 350px;        /* hauteur raisonnable par défaut */
  max-height: 30vh;     /* responsive relatif à la fenêtre */
  width: auto;
  object-fit: contain;
  display: block;
}


/* ✅ Sur tablette (moins de 992px) */
@media (max-width: 992px) {
    .logo-site img {
        height: 200px;
        padding-left: 30px;
    }
}

/* ✅ Sur mobile (moins de 600px) */
@media (max-width: 600px) {
    .logo-site img {
        height: 120px;
        padding-left: 10px;
    }
}

@media (max-width: 600px) {
    .logo-site {
        text-align: center;
        width: 100%;
        padding-left: 0;
    }
}


/* === MENU PRINCIPAL === */
.main-nav {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 140px; /* espace entre logo et menu */
  width: 100%;
  padding: 0 5%;
  z-index: 30;
  box-sizing: border-box;
}

.main-nav .nav-links {
  display: flex;
  gap: 90px; /* plus d’espace entre chaque lien */
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
  justify-content: center;
}

.main-nav .nav-links li a {
  position: relative; /* ✅ nécessaire pour le ::after */
  color: #000;
  text-decoration: none;
  font-size: 1.55rem;
  font-weight: 1000;
  white-space: nowrap;
  text-shadow: none;
  transition: color 0.3s ease, transform 0.2s ease;
}

/* Barre animée sous le lien */
.main-nav .nav-links li a::after {
  content: "";
  position: absolute;
  bottom: -5px; /* un petit espace sous le texte */
  left: 0;
  width: 0%;
  height: 3px;
  background-color: #B52107;
  transition: width 0.3s ease;
}

/* Effet au survol */
.main-nav .nav-links li a:hover {
  color: #B52107;
  transform: scale(1.05);
}

.main-nav .nav-links li a:hover::after {
  width: 100%;
}

/* ====== LIEN ACTIF ====== */
.main-nav .nav-links li.current-menu-item a,
.main-nav .nav-links li.current-page-ancestor a,
.main-nav .nav-links li.current-menu-parent a {
  color: #B52107;
}

.main-nav .nav-links li.current-menu-item a::after,
.main-nav .nav-links li.current-page-ancestor a::after,
.main-nav .nav-links li.current-menu-parent a::after {
  width: 100%; /* la barre reste visible sur l’élément actif */
}

/* ✅ Responsive */
@media (max-width: 768px) {
  .main-nav {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
  }

  .main-nav .nav-links {
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
  }

  .main-nav .nav-links li a {
    font-size: 1.3rem;
  }
}



/* === Texte de la bannière === */
.banner-title {
    position: relative;
    z-index: 2;
    text-align: center;
}

.banner-title h1 {
    font-family: 'Fredoka One', cursive;
    font-size: 2.8em;
    color: #B52107;
    margin: 0;
}

.banner-title p {
    font-family: 'Fredoka One', cursive;
    font-size: 1.3em;
    color: #B52107;
}

/* === MENU BURGER === */
.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.burger-menu span {
    display: block;
    height: 3px;
    width: 100%;
    background: #fff;
    border-radius: 2px;
}

/* === Responsive === */
@media (max-width: 900px) {
    .main-nav .nav-links {
        position: absolute;
        top: 60px;
        right: 0;
        background: rgba(0,0,0,0.85);
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        padding: 20px;
        border-radius: 8px 0 0 8px;
        display: none;
        width: 200px;
        z-index: 25;
    }

    .main-nav .nav-links.show {
        display: flex;
    }

    .burger-menu {
        display: flex;
    }
}

/* Mobile / Tablette : réduire logo et empiler si nécessaire */
@media (max-width: 992px) {
  .logo-site img { height: 90px; max-height: 14vh; }
  .main-nav { gap: 20px; width: 94%; }
  .main-nav .nav-links { gap: 18px; }
}

@media (max-width: 700px) {
  /* Sur petit écran on empile logo au-dessus du menu (centrés) */
  .main-nav {
    flex-direction: column;
    transform: translate(-50%, -50%); /* reste centré */
    gap: 12px;
    width: 95%;
    padding: 0 10px;
  }
  .logo-site img { height: 80px; max-height: 18vw; }
  .main-nav .nav-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* Animation du menu burger (croix quand ouvert) */
.burger-menu.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.burger-menu.active span:nth-child(2) {
  opacity: 0;
}
.burger-menu.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Animation du menu coulissant */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}


/* Contenu principal de page */
.content-area {
    position: relative; /* pour prendre en compte le padding */
    padding-left: calc(7vw + 30px); /* espace à gauche pour la photo + 40px de marge */
	padding-right: calc(7vw + 30px);
}


.site-content {
    position: relative;
    z-index: 1;
    margin-left: 80px; /* espace pour la photo */
}



.site-footer {
    background-color: #ffffff;
    text-align: center;
    padding: 15px;
    font-size: 0.9em;
    color: #555;
}

/* Responsive */
@media(max-width: 768px) {
    .photo-rond-float {
        width: 25vw;
        top: 30px;
        left: 15px;
    }

    .content-area {
        padding-left: calc(25vw + 20px);
    }

    .main-nav,
    .site-content {
        margin-left: 0;
    }
}


@media (max-width: 480px) {
    .photo-rond-float {
        width: 35vw;
        top: 20px;
        left: 10px;
    }

    .content-area {
        padding-left: calc(35vw + 15px);
    }
}



/* ======== PAGE DE CONTACT (STYLE ÉPURÉ) ======== */

.contact-page {
  max-width: 900px;
  margin: 0px auto;
  background: #ffffff;
  border-radius: 20px;
  padding: 5px 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Titre principal */
.contact-page h2 {
  font-size: 2rem;
  color: #B52107;
  margin-bottom: 15px;
}

/* Texte d’introduction */
.contact-page p {
  font-size: 1.1rem;
  color: #333;
  max-width: 600px;
  margin-bottom: 30px;
  line-height: 1.6;
}

/* Formulaire */
.contact-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-form label {
  font-weight: bold;
  color: #B52107;
  font-size: 1.1rem;
  text-align: left;
}

/* Champs sans bordure visible */
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: none; /* ✅ plus de bordure */
  border-radius: 12px;
  font-size: 1rem;
  font-family: 'Poppins', sans-serif;
  background-color: #f5f5f5; /* fond doux */
  box-shadow: inset 0 2px 5px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  background-color: #fff;
  box-shadow: 0 0 8px rgba(0,102,204,0.3);
  outline: none;
}

/* Bouton d’envoi */
.contact-form button {
  align-self: center;
  background: linear-gradient(90deg, #B52107, #ff5050);
  color: #fff;
  padding: 14px 40px;
  border: none;
  border-radius: 30px;
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 10px rgba(230,0,0,0.3);
}

.contact-form button:hover {
  background: linear-gradient(90deg, #ff5050, #e60000);
  transform: translateY(-3px);
  box-shadow: 0 6px 14px rgba(230,0,0,0.4);
}

/* Messages de validation */
.success {
  color: #2e7d32;
  background: #e0ffe0;
  padding: 12px;
  border-radius: 8px;
  font-weight: bold;
  margin-top: 10px;
}

.error {
  color: #c62828;
  background: #ffe0e0;
  padding: 12px;
  border-radius: 8px;
  font-weight: bold;
  margin-top: 10px;
}

/* Responsive */
@media (max-width: 768px) {
  .contact-page {
    padding: 25px 20px;
  }

  .contact-page h2 {
    font-size: 2rem;
  }

  .contact-form button {
    width: 100%;
  }
}




/* ======== PAGE ACCUEIL ======== */
/* Disposition texte à droite / image à gauche */
.texte-image-section-quisommesnous {
  display: flex;
  align-items: center;
  justify-content: flex-start; /*  rapproche les éléments */
  gap: 5px; /*  réduit l’espace entre image et texte */
  flex-wrap: wrap; /* pour le responsive */
}

.texte-image-section-quisommesnous .texte-droite {
  flex: 1;
  min-width: 300px;
  padding-left: 10px; /* petit espace entre texte et image */
  text-align : justify;
}

.texte-image-section-quisommesnous .image-gauche {
  flex: 0 0 40%; /* image prend 40% de la largeur */
  text-align: left;
}

.texte-image-section-quisommesnous .image-gauche img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
}

/* ✅ Responsive : empile l’image sous le texte sur mobile */
@media (max-width: 768px) {
  .texte-image-section-quisommesnous {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .texte-image-section-quisommesnous .image-gauche {
    flex: 1 1 100%;
    text-align: center;
    margin-top: 10px;
  }

  .texte-image-section-quisommesnous .texte-droite {
    padding-left: 0;
  }
}




/* Disposition texte à gauche / image à droite */
/* Conteneur texte + image */
.texte-image-section-mesactivites {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 15px;
  margin: 40px 0;
  flex-wrap: wrap; /* pour le responsive */
}

.texte-image-section-mesactivites .texte-gauche {
  flex: 1;
  min-width: 250px;
  padding-right: 20px;
  text-align: justify;
}

/* Conteneur image */
.texte-image-section-mesactivites .image-droite {
  flex: 0 0 40%;
  display: flex;
  justify-content: flex-end;
}

/* Wrapper image + overlay */
.image-wrapper {
  position: relative; /* nécessaire pour overlay */
  display: inline-block;
  overflow: hidden;
  border-radius: 10px;
}

.image-wrapper img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.3s ease;
	border-radius: inherit; /* hérite du border-radius du wrapper */
}

.image-wrapper .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  color: #fff;
  font-size: 1.5rem;
  font-weight: bold;
  text-align: center;
}

.image-wrapper:hover img {
  transform: scale(1.05);
}

.image-wrapper:hover .overlay {
  opacity: 1;
  transform: translateY(0);
}

/* === Responsive pour mobile === */
@media (max-width: 768px) {
  .texte-image-section-mesactivites {
    flex-direction: column; /* empile texte et image */
    gap: 20px;
    text-align: center;
  }

  .texte-image-section-mesactivites .texte-gauche,
  .texte-image-section-mesactivites .image-droite {
    flex: 1 1 100%;
  }

  .image-wrapper img {
    width: 100%; /* l’image s’adapte à l’écran */
    height: auto;
  }

  .image-wrapper .overlay {
    font-size: 1.2rem; /* texte légèrement plus petit */
  }
}





/* Disposition texte à droite / image à gauche */
/* Wrapper image + overlay */
.texte-image-section-mesprestations {
  display: flex;
  align-items: center;
  justify-content: flex-start; /* texte à droite, image à gauche */
  gap: 10px; /* réduit l’espace entre image et texte */
  margin: 40px 0;
  flex-wrap: wrap; /* pour le responsive */
}

.texte-image-section-mesprestations .texte-droite {
  flex: 1;
  min-width: 300px;
  padding-left: 10px; /* petit espace entre texte et image */
  text-align: justify;
}

/* Wrapper image + overlay */
.texte-image-section-mesprestations .image-gauche {
  flex: 0 0 40%; /* image prend 40% de la largeur */
  text-align: left;
}


/* Responsive */
@media (max-width: 768px) {
  .texte-image-section-mesprestations {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }
	
.texte-image-section-mesprestations .texte-droite,
.texte-image-section-mesprestations .image-gauche {
    flex: 1 1 100%;
  }


}