/* 
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 */

body {
  overflow-x: hidden;
}
a,
.page-content a {
  text-decoration: none;
}

.breadcrumb-urgence a {
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-left: 8px;
}

.hfe-breadcrumbs {
  white-space: normal !important;
  flex-wrap: nowrap !important;
  display: flex !important;
  align-items: flex-start !important;
}

.hfe-breadcrumbs-item {
  white-space: normal !important;
  word-wrap: break-word !important;
  overflow-wrap: break-word !important;
  flex-shrink: 1 !important;
}

.hfe-breadcrumbs-text {
  white-space: normal !important;
  word-wrap: break-word !important;
  overflow-wrap: break-word !important;
  display: inline-block !important;
}

.ff-message-success {
  box-shadow: none !important;
}
.grand-gallery .elementor-image-gallery .gallery-item img {
  margin: 0 auto;
  height: 260px;
  object-fit: cover;
}

.navmenu .sub-menu {
  border-top: 2px solid #1c1c1e;
}

.navmenu .hfe-nav-menu .sub-menu .hfe-sub-menu-item::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 2px;
  transition: all 0.3s ease;
}

/* 1er menu */
.navmenu
  ul.hfe-nav-menu
  > li#menu-item-1237
  .sub-menu
  a.hfe-sub-menu-item::before {
  background: #882020;
}

/* 2e menu */
.navmenu
  ul.hfe-nav-menu
  > li#menu-item-1238
  .sub-menu
  a.hfe-sub-menu-item::before {
  background: #6b6b70;
}

/* 3e menu */
.navmenu
  ul.hfe-nav-menu
  > li#menu-item-1236
  .sub-menu
  a.hfe-sub-menu-item::before {
  background: #2a5b7f;
}

/* === 3. Le trait, collé exactement au bas du header === */
.navmenu #menu-item-1237.current-menu-item::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -26px;
  height: 2px;
  background-color: #882020;
}

.navmenu #menu-item-1238.current-menu-item::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -26px;
  height: 2px;
  background-color: #6b6b70;
}

.navmenu #menu-item-1236.current-menu-item::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -26px;
  height: 2px;
  background-color: #2a5b7f;
}
/* header */
.scrolling-header {
  position: fixed !important;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  transition:
    transform 0.3s ease-in-out,
    background-color 0.3s ease-in-out,
    box-shadow 0.3s ease-in-out;
  background-color: #ffffff;
}

/* Etat : scroll vers le bas -> on cache le header */
.scrolling-header.header-hidden {
  transform: translateY(-100%);
}

/* Etat : scroll vers le haut -> header visible avec fond blanc */
.scrolling-header.header-visible-scrolled {
  transform: translateY(0);
  background-color: #ffffff !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

/* la hauteur réelle de header */
body {
  padding-top: 72px;
}

/* Décale le header fixe sous la barre d'admin WordPress quand on est connecté */
body.admin-bar .scrolling-header {
  top: 32px;
}

/* la barre admin passe à 46px sur mobile/tablette */
@media screen and (max-width: 782px) {
  body.admin-bar .scrolling-header {
    top: 46px;
  }
}
