/*
 Theme Name:   Hello Elementor Child
 Theme URI:    https://elementor.com/hello-theme/?utm_source=wp-themes&utm_campaign=theme-uri&utm_medium=wp-dash
 Description:  Hello Elementor Child Theme
 Author:       Elementor Team
 Author URI:   https://elementor.com/?utm_source=wp-themes&utm_campaign=author-uri&utm_medium=wp-dash
 Template:     hello-elementor
 Version:      1.0.0
 License:      GNU General Public License v3 or later.
 License URI:  http://www.gnu.org/licenses/gpl-3.0.html
 Text Domain:  hello-elementor-child
*/

/* ==========================================================================
   Overrides locaux (export Elementor)
   Fichier destiné aux tests en local avant report dans WordPress/Elementor.
   ========================================================================== */

:root {
      --vert:       #1a6b3a;
      --vert-clair: #2a8f4f;
      --jaune:      #f5c518;
      --rouge:      #c8102e;
      --blanc:      #fdfaf4;
      --gris:       #f0ece3;
      --gris2:      #e5e0d5;
      --texte:      #1c1c1c;
      --texte-doux: #4a4a4a;
}


/* ── FLAG BAR ── */
.flag-bar {
      display:flex; height:6px;
      transform-origin:left;
      animation: barGrow .8s cubic-bezier(.4,0,.2,1) both;
    }
    .flag-bar span { flex:1; }
    .flag-bar .v { background:var(--vert); }
    .flag-bar .j { background:var(--jaune); }
    .flag-bar .r { background:var(--rouge); }

.header-sub {
      font-size:14px; font-weight:300; letter-spacing:1px;
      color:rgba(255,255,255,.80);
      border-left:3px solid var(--jaune);
      padding-left:12px; margin-top:10px;
      animation: fadeDown .6s .5s ease both;
    }

/* ------------------------------
   1) Entête – navigation principale sticky (sans top-nav)
   Cible: bloc Elementor avec classe "navigation-principale"
   ------------------------------ */

/* Assure que le sticky n'est pas bloqué par un parent qui clippe. */
.elementor-location-header,
.elementor-location-header .e-con,
.elementor-location-header .e-con-inner {
  overflow: visible !important;
}

.elementor-location-header .navigation-principale {
  /* NOTE: on force avec !important car certains exports Elementor posent
     des positions/overflows qui peuvent neutraliser sticky. */
  position: sticky !important;
  top: 0 !important;
  z-index: 100;

  /* Fond opaque quand ça "colle" (utilise les variables Elementor si présentes). */
  background-color: var(--e-global-color-ec8515b, #025928);

  /* Ombre discrète pour détacher du contenu au scroll. */
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);

  /* Assure un comportement cohérent en layout flex/grid. */
  align-self: flex-start;
  width: 100%;
}

/* Fallback JS: la nav passe en fixed au scroll */
.elementor-location-header .navigation-principale.is-fixed {
  position: fixed !important;
  top: 0 !important;
  left: 0;
  right: 0;
  z-index: 100;
}

.navigation-principale-placeholder {
  width: 100%;
}

/* ------------------------------
   2) Menu – typographie plus compacte (“smaller/clean”)
   Cible: liens du menu principal Elementor
   ------------------------------ */

.elementor-location-header .navigation-principale
  .elementor-nav-menu--main
  .elementor-item {
  font-size: 14px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;

  /* Plus compact sur desktop/tablette. */
  padding-block: 10px;
  padding-inline: 12px;
}

/* Sous-menus (si besoin d'un rendu cohérent). */
.elementor-location-header .navigation-principale
  .elementor-nav-menu--main
  .elementor-sub-item {
  font-size: 13px;
  line-height: 1.25;
  letter-spacing: 0.01em;
}

/* Mobile: garder des zones de clic confortables, même si la typo est compacte. */
@media (max-width: 767px) {
  .elementor-location-header .navigation-principale
    .elementor-nav-menu--dropdown
    .elementor-item,
  .elementor-location-header .navigation-principale
    .elementor-nav-menu--dropdown
    .elementor-sub-item {
    padding-block: 16px;
    padding-inline: 18px;
  }
}

