/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */

/* Import des polices Google */
@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;500;600&family=Montserrat:wght@300;400;500&display=swap");

b,
strong {
  font-weight: 500;
}

.comments-area a,
.page-content a {
  text-decoration: none;
}

/***** header *****/

/* Si l'utilisateur n'est PAS connecté */
.scrolling-header {
  top: 40px;
}
body {
	color: #000;
}
/* Si l'utilisateur EST connecté*/
body.admin-bar .scrolling-header {
  top: 72px; /* 40px (topbanner) + 32px (barre admin) */
}

/* Décale aussi le .top-banner en cas de barre admin */
body.admin-bar .top-banner {
  top: 32px;
}

/***** top-banner *****/
.top-banner {
  position: fixed;
  width: 100%;
  z-index: 1001;
  top: 0;
}

/* Si l'utilisateur n'est PAS connecté */
.scrolling-header {
  top: 40px;
}

body:not(.home) #content.site-main {
  margin-top: 190px;
}

.elementor-widget-text-editor ul,
.elementor-widget-text-editor ol {
  margin-bottom: 1.5rem;
}

/* Centrer le sous-menu sous le menu parent */
.header-menu .sub-menu {
  padding: 10px 15px 20px 15px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  min-width: 230px !important;
  grid-template-columns: 1fr;
  width: auto !important;
}

@media (min-width: 768px) {
  .header-menu .sub-menu {
    /* Ajustement automatique des colonnes */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 0;
  }

  /* Deux colonnes quand plus de 6 items */
  .header-menu .sub-menu:has(> li:nth-child(7)) {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Centrage du contenu */
  .header-menu .sub-menu li {
    display: flex;
    align-items: start;
    width: 230px;
  }
}

@media screen and (max-width: 782px) {
  /* Si l'utilisateur EST connecté*/
  body.admin-bar .scrolling-header {
    top: 52px; /* 52px (topbanner) + 46px (barre admin) */
  }

  /* Décale aussi le .top-banner en cas de barre admin */
  body.admin-bar .top-banner {
    top: 0px;
  }

  body.admin-bar .sticky-header-visible {
    top: 46px;
  }
}

.scrolling-header {
  position: fixed;

  width: 100%;
  z-index: 1000;
  transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease;
  will-change: transform, opacity, background-color;
  background-color: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(201, 165, 92, 0.1);
}

/* État masqué */
.sticky-header-hidden {
  transform: translateY(-100%);
  opacity: 0;
}

/* État visible */
.sticky-header-visible {
  transform: translateY(0);
  opacity: 1;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header-menu .hfe-menu-item:after {
  content: "";
  position: absolute;
  bottom: 0px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: #c9a55c;
  transition: width 0.3s ease;
}

.header-menu .hfe-menu-item:hover:after {
  width: 100%;
}

/***** Underline titre *****/
.section-title::after {
  content: "";
  display: block;
  width: 50px;
  height: 1.5px;
  background-color: #c9a55c;
  margin: 20px auto 0;
}

/***** Overlay pour les cartes de massage *****/
.massage-card {
  position: relative;
  overflow: hidden;
}

.massage-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  color: #fff;
  padding: 30px;
}

/***** Testimonial *****/
.testimonial-card {
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
}

/***** Offres *****/

.concept-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1) !important;
}

.concept-card .elementor-widget-image {
  overflow: hidden;
}

.concept-card .elementor-widget-image img {
  max-width: 100%;
  height: auto;
  transition: all 0.5s ease;
}

.concept-card:hover .elementor-widget-image img {
  transform: scale(1.05);
}

/***** Newsletter *****/

.ff-default .ff_btn_style:focus,
.ff-default .ff_btn_style:hover {
  opacity: 1;
  outline: 0;
  text-decoration: none;
}

.newsletter-form .frm-fluent-form .ff-t-container {
  gap: 0;
}

/***** 404 *****/
body.error404 #content.site-main {
  text-align: center;
  margin-bottom: 120px;
  margin-top: 120px;
}

body.error404 #content .entry-title {
  font-size: 74px;
  font-weight: 700;
  margin-bottom: 40px;
}

/***** bouton reserver-fixe *****/

#btn-reserver-scroll-fixed {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 70px;
  padding: 12px 20px;
  border-radius: 30px;
  z-index: 9999;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: opacity 0.3s ease;
}

#btn-reserver-scroll-fixed.show {
  display: block;
}

.m-h h3 {
	min-height: 67.19px;
	align-content: center;
}
