/*
 Theme Name:   Astra Child
 Theme URI:    https://cleebordeauxavenir.org/
 Description:  Thème enfant Astra – CSS personnalisé CLEE Bordeaux Avenir
 Author:       CLEE Bordeaux Avenir
 Template:     astra
 Version:      1.0.0
*/
/* =============================================================
   IMPORTATION DU THÈME PARENT
   ============================================================= */
@import url("../astra/style.css");
@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(30px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}
/* =============================================================
   1. HEADER & NAVIGATION GLOBALE
   ============================================================= */
/* ── NAV MENU ── */
.elementor-element-11afe05f .elementor-nav-menu {
  gap: 4px;
  align-items: center;
  padding: 0;
  margin: 0;
  flex-wrap: nowrap !important;
}
/* ── LI : conteneur avec position relative pour le dropdown ── */
.elementor-element-11afe05f .elementor-nav-menu > li {
  background: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  position: relative;
  flex-shrink: 0;
}
/* ── LIEN : padding, hover et gras ── */
.elementor-element-11afe05f .elementor-nav-menu > li > a,
.elementor-element-11afe05f .elementor-nav-menu > li > .elementor-item {
  position: relative;
  overflow: hidden;
  display: inline-block;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  color: #1e3a5f;
  text-decoration: none;
  white-space: nowrap;
  background: transparent;
  transition: background 0.3s ease;
}
/* ── EFFET BARRE ORANGE ── */
.elementor-element-11afe05f .elementor-nav-menu > li > a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background-color: #FF9966 !important;
  border-radius: 0;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s ease;
}
/* Hover : barre apparaît */
.elementor-element-11afe05f .elementor-nav-menu > li > a:hover::after {
  transform: scaleX(1);
}
/* Page active : barre reste visible en permanence */
.elementor-element-11afe05f .elementor-nav-menu > li.current-menu-item > a::after,
.elementor-element-11afe05f .elementor-nav-menu > li.current-menu-ancestor > a::after,
.elementor-element-11afe05f .elementor-nav-menu > li.current_page_parent > a::after {
  transform: scaleX(1);
}
/* ── HOVER ── */
.elementor-element-11afe05f .elementor-nav-menu > li:nth-child(1) > a:hover { background-color: #dce6ff; }
.elementor-element-11afe05f .elementor-nav-menu > li:nth-child(2) > a:hover { background-color: #dce6ff; }
.elementor-element-11afe05f .elementor-nav-menu > li:nth-child(3) > a:hover { background-color: #fde8cc; }
.elementor-element-11afe05f .elementor-nav-menu > li:nth-child(4) > a:hover { background-color: #fdd8d5; }
.elementor-element-11afe05f .elementor-nav-menu > li:nth-child(5) > a:hover { background-color: #d0edda; }
.elementor-element-11afe05f .elementor-nav-menu > li:nth-child(6) > a:hover { background-color: #cce9f9; }
/* ── PAGE ACTIVE : fond coloré + barre orange ── */
.elementor-element-11afe05f .elementor-nav-menu > li.current-menu-item:nth-child(1) > a,
.elementor-element-11afe05f .elementor-nav-menu > li.current-menu-ancestor:nth-child(1) > a { background-color: #dce6ff; }
.elementor-element-11afe05f .elementor-nav-menu > li.current-menu-item:nth-child(2) > a,
.elementor-element-11afe05f .elementor-nav-menu > li.current-menu-ancestor:nth-child(2) > a { background-color: #dce6ff; }
.elementor-element-11afe05f .elementor-nav-menu > li.current-menu-item:nth-child(3) > a,
.elementor-element-11afe05f .elementor-nav-menu > li.current-menu-ancestor:nth-child(3) > a { background-color: #fde8cc; }
.elementor-element-11afe05f .elementor-nav-menu > li.current-menu-item:nth-child(4) > a,
.elementor-element-11afe05f .elementor-nav-menu > li.current-menu-ancestor:nth-child(4) > a { background-color: #fdd8d5; }
.elementor-element-11afe05f .elementor-nav-menu > li.current-menu-item:nth-child(5) > a,
.elementor-element-11afe05f .elementor-nav-menu > li.current-menu-ancestor:nth-child(5) > a { background-color: #d0edda; }
.elementor-element-11afe05f .elementor-nav-menu > li.current-menu-item:nth-child(6) > a,
.elementor-element-11afe05f .elementor-nav-menu > li.current-menu-ancestor:nth-child(6) > a { background-color: #cce9f9; }
/* ── SOUS-MENU CONTENEUR ── */
.elementor-element-11afe05f .elementor-nav-menu .sub-menu {
  position: absolute;
  left: 0;
  top: 100%;
  min-width: 220px;
  background: rgba(255, 255, 255, 0.98);
  color: #1e3a5f;
  font-size: 1rem;
  border-radius: 0 8px 8px 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  padding: 0.4rem 0;
  margin: 0;
  list-style: none;
  box-sizing: border-box;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
  transition: opacity 0.3s cubic-bezier(.4, 0, .2, 1) 0.15s,
            transform 0.3s cubic-bezier(.4, 0, .2, 1) 0.15s;
}

.elementor-element-11afe05f .elementor-nav-menu > li > a::before {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 0;
  width: 100%;
  height: 12px;
  background: transparent;
}
/* Affichage au hover / focus */
.elementor-element-11afe05f .elementor-nav-menu > li:hover > .sub-menu,
.elementor-element-11afe05f .elementor-nav-menu > li:focus-within > .sub-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
/* ── SOUS-MENU ITEMS ── */
.elementor-element-11afe05f .elementor-nav-menu .sub-menu li {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
}
/* ── SOUS-MENU LIENS ── */
.elementor-element-11afe05f .elementor-nav-menu .sub-menu li a {
  display: block;
  padding: 0.45rem 1.25rem;
  color: #1e3a5f;
  font-size: 0.95rem;
  white-space: nowrap;
  background: transparent;
  transition: background 0.15s ease;
  box-sizing: border-box;
}
/* ── HOVER SOUS-MENU ── */
.elementor-element-11afe05f .elementor-nav-menu > li:nth-child(1) .sub-menu li a:hover { background: #dce6ff; }
.elementor-element-11afe05f .elementor-nav-menu > li:nth-child(2) .sub-menu li a:hover { background: #dce6ff; }
.elementor-element-11afe05f .elementor-nav-menu > li:nth-child(3) .sub-menu li a:hover { background: #fde8cc; }
.elementor-element-11afe05f .elementor-nav-menu > li:nth-child(4) .sub-menu li a:hover { background: #fdd8d5; }
.elementor-element-11afe05f .elementor-nav-menu > li:nth-child(5) .sub-menu li a:hover { background: #d0edda; }
.elementor-element-11afe05f .elementor-nav-menu > li:nth-child(6) .sub-menu li a:hover { background: #cce9f9; }
/* ── CORRECTION : aucun item actif sur la page d'accueil ── */
body.home .elementor-element-11afe05f .elementor-nav-menu > li.current-menu-ancestor > a,
body.home .elementor-element-11afe05f .elementor-nav-menu > li.current-menu-item > a,
body.home .elementor-element-11afe05f .elementor-nav-menu > li.current_page_parent > a,
body.home .elementor-element-11afe05f .elementor-nav-menu > li.current_page_ancestor > a {
  background-color: transparent;
}
body.home .elementor-element-11afe05f .elementor-nav-menu > li.current-menu-ancestor > a::after,
body.home .elementor-element-11afe05f .elementor-nav-menu > li.current-menu-item > a::after {
  transform: scaleX(0);
}

/* =============================================================
   RESPONSIVE NAVBAR — HAMBURGER
   ============================================================= */

/* ── Entre 922px et 1200px : desktop compact ── */
@media (min-width: 922px) and (max-width: 1200px) {
  .elementor-element-11afe05f .elementor-nav-menu {
    gap: 2px;
  }
  .elementor-element-11afe05f .elementor-nav-menu > li > a,
  .elementor-element-11afe05f .elementor-nav-menu > li > .elementor-item {
    font-size: clamp(12px, 1.1vw, 16px);
    padding: 8px clamp(6px, 0.7vw, 14px);
  }
}

/* ── En dessous de 922px : HAMBURGER ── */
@media (max-width: 921px) {

  /* -- Conteneur header : logo à gauche, hamburger à droite -- */
  .elementor-location-header .elementor-container,
  .elementor-location-header .e-con-inner {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
    padding: 0 16px !important;
  }

  /* -- Logo : reste à gauche, taille maîtrisée -- */
  .logo-container img {
    width: 180px !important;
    max-height: 60px !important;
  }

  /* -- Menu nav : panneau latéral droit, caché par défaut -- */
  .elementor-element-11afe05f .elementor-nav-menu--main.elementor-nav-menu__container {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: min(300px, 85vw);
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);

    padding: 80px 24px 32px;
    flex-direction: column !important;
    z-index: 10000;
    overflow-y: auto;
    opacity: 0;
    transform: translateX(100%);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  /* -- Menu ouvert (classe togglée via JS) -- */
  .elementor-element-11afe05f .elementor-nav-menu--main.elementor-nav-menu__container.menu-open {
    display: flex !important;
    opacity: 1;
    transform: translateX(0);
  }

  /* -- Items de menu en colonne -- */
  .elementor-element-11afe05f .elementor-nav-menu {
    flex-direction: column !important;
    gap: 4px !important;
    width: 100%;
  }

  .elementor-element-11afe05f .elementor-nav-menu > li {
    width: 100%;
  }

  .elementor-element-11afe05f .elementor-nav-menu > li > a,
  .elementor-element-11afe05f .elementor-nav-menu > li > .elementor-item {
    width: 100%;
    text-align: left;
    padding: 14px 16px;
    display: block;
    font-size: 16px;
    border-radius: 8px;
  }

  /* -- Sous-menus : empilés, visibles au hover/focus -- */
  .elementor-element-11afe05f .elementor-nav-menu .sub-menu {
    position: static !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: none !important;
    box-shadow: none !important;
    background: rgba(0, 0, 0, 0.03) !important;
    border-radius: 8px !important;
    padding: 4px 0 4px 8px !important;
    margin: 4px 0 0 0 !important;
     display: block !important;
  }

  .elementor-element-11afe05f .elementor-nav-menu > li:hover > .sub-menu,
  .elementor-element-11afe05f .elementor-nav-menu > li:focus-within > .sub-menu {
    max-height: 300px; 
    padding: 4px 0 4px 8px !important;
  }

  /* -- BOUTON HAMBURGER -- */
  .clee-hamburger {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    z-index: 10001;
    position: relative;
    margin-left: auto;
    flex-shrink: 0;
  }

  .clee-hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: #1e3a5f;
    border-radius: 2px;
    transform-origin: center;
    transition: transform 0.3s ease, opacity 0.3s ease, width 0.3s ease;
  }

  /* -- Croix quand ouvert -- */
  .clee-hamburger.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .clee-hamburger.is-open span:nth-child(2) {
    opacity: 0;
    width: 0;
  }
  .clee-hamburger.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  /* -- Overlay sombre derrière le menu -- */
  .clee-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  .clee-overlay.is-visible {
    display: block;
    opacity: 1;
  }

  /* -- Bouton fermeture (×) dans le panneau -- */
  .clee-menu-close {
    display: flex !important;
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: none;
    border: none;
    font-size: 22px;
    color: #1e3a5f;
    z-index: 10002;
  }
}

/* -- Masquer le hamburger et l'overlay sur desktop -- */
@media (min-width: 922px) {
  .clee-hamburger,
  .clee-overlay,
  .clee-menu-close {
    display: none !important;
  }
}

@media (max-width: 480px) {
  .logo-container img {
    width: 140px !important;
  }
}

/* ── STICKY HEADER ── */
body:not(.elementor-editor-active) header.elementor-location-header {
  position: sticky;
  top: 0;
  z-index: 9999;
  width: 100%;
}

/* =============================================================
   2. ANIMATIONS
   ============================================================= */
body:not(.elementor-editor-active) .animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease box-shadow 0.3s ease;
}
body:not(.elementor-editor-active) .animate.visible {
    opacity: 1;
    transform: translateY(0);
}
.animate.animate-slow {
    transition: opacity 1.2s ease, transform 1.2s ease;
}
body:not(.elementor-editor-active) .animate.card {
    transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.3s ease;
}
body:not(.elementor-editor-active) .animate.card:nth-child(1)  { transition-delay: 0.1s; }
body:not(.elementor-editor-active) .animate.card:nth-child(2)  { transition-delay: 0.2s; }
body:not(.elementor-editor-active) .animate.card:nth-child(3)  { transition-delay: 0.3s; }
body:not(.elementor-editor-active) .animate.card:nth-child(4)  { transition-delay: 0.4s; }
body:not(.elementor-editor-active) .animate.card:nth-child(5)  { transition-delay: 0.5s; }
body:not(.elementor-editor-active) .animate.card:nth-child(6)  { transition-delay: 0.6s; }
body:not(.elementor-editor-active) .animate.card:nth-child(7)  { transition-delay: 0.7s; }
body:not(.elementor-editor-active) .animate.card:nth-child(8)  { transition-delay: 0.8s; }
body:not(.elementor-editor-active) .animate.card:nth-child(9)  { transition-delay: 0.9s; }
body:not(.elementor-editor-active) .animate.card:nth-child(10) { transition-delay: 1s; }
body:not(.elementor-editor-active) .animate.card:nth-child(11) { transition-delay: 1.1s; }
body:not(.elementor-editor-active) .animate.card:nth-child(12) { transition-delay: 1.2s; }
body:not(.elementor-editor-active) .animate.card:hover {
    transition-delay: 0s;
}

/* =============================================================
   3. CONTENEURS
   ============================================================= */
.container-sm  { max-width: 600px; }
.container-md  { max-width: 700px; }
.container-hero-sm {
	max-width: 600px;
	animation: fadeInUp 0.8s ease 0.2s both;
}
.hero{
	background-color: rgba(31, 52, 72, 1);
}
.container-hero {
	max-width: 800px;
	animation: fadeInUp 0.8s ease 0.2s both;
}
.container-hero-xl {
	max-width: 910px;
	animation: fadeInUp 0.8s ease 0.2s both;
}
.container-section { max-width: 800px; }
.container-xl       { max-width: 1200px; }
.container          { max-width: 1280px; }
.container-conseils   { max-width: 900px; min-height: 505px}
.container-partenaires { max-width: 850px; }

/* =============================================================
   4. COMPOSANTS — CARTES & INTERACTIONS
   ============================================================= */
.container-icon:hover .icon {
  transform: translateY(-4px) !important;
  transition: transform 0.3s ease !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}
.article-link {
    text-decoration: none !important;
}
.chiffre-card:hover {
	transform: translateY(-8px) !important;
    transition: transform 0.3s ease !important;
}
.btn-brillance .elementor-button {
    position: relative;
    overflow: hidden;
}
.btn-brillance .elementor-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}
.btn-brillance .elementor-button:hover::before {
    left: 100%;
}
.guide-description { flex: 1; }

.gallery-item:hover {
  transform: scale(1.05) !important;
  transition: transform 0.3s ease !important;
}
.temoignage-card:hover {
  transform: translateY(-4px) !important;
  transition: transform 0.3s ease !important;
}
.guide-card:hover {
  transform: translateY(-8px) !important;
  transition: transform 0.3s ease !important;
}
.guide-download:hover {
  transform: translateY(-2px);
  transition: transform 0.2s ease !important;
}
.document-card:hover {
  transform: translateX(4px);
  transition: transform 0.3s ease !important;
}



/* =============================================================
   5. COMPOSANTS — LIENS & NAVIGATION INTERNE
   ============================================================= */
  .article-link{
        color: #50708e !important;
        text-decoration: none;
        font-weight: 500 !important;
   }
.article-content{
    height: 100%;
}

@media (max-width: 767px) {
    .artcle-content {
        height: auto !important; 
    }
}

.info-card:hover {
	transform: translateY(-4px) !important;
	transition: transform 0.3s ease !important;
}
.link-card {
    text-decoration: none !important;
}
.link-card:hover {
    transform: translateY(-8px) !important;
	transition: transform 0.3s ease !important;
}
.link {
  color: rgba(49, 73, 96, 1) !important;
  text-decoration: none !important;
  font-weight: 600 !important;
  font-size: 14px;
  transition: transform 0.3s ease, color 0.3s ease;
}
.link-card:hover .link {
  color: #50708e !important;
  transform: translateX(4px) !important;
  transition: transform 0.3s ease !important;
}

/* =============================================================
   6. DIVERS
   ============================================================= */

.grille-responsive {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
}
.title {
    background: linear-gradient(135deg, #ff9966 0%, #ffb84d 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.logo-container img {
    width: 280px !important;
    height: auto;
    max-height: 100px;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.08));
    transition: transform 0.3s ease;
}

/* =============================================================
   7. FORMULAIRE CONTACT — BOUTON
      (ID généré automatiquement par WPForms)
   ============================================================= */
#btn {
  background: linear-gradient(135deg, #ff9966 0%, #FFB84D 100%) !important;
  margin-top: 15px !important;
  box-shadow: 0px 8px 8px -4px rgba(19, 25, 39, 0.08) !important;
  position: relative;
  overflow: hidden;
}
#btn:hover {
  box-shadow: 0 8px 24px rgba(255, 153, 102, 0.35) !important;
}
#btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}
#btn:hover::before { left: 100%; }

/*==============================================================================
    8. Fil d'Ariane
==============================================================================*/

.fil-ariane {
    color: #fff;
    left: 10px !important;
}

.fil-ariane a {
    color: #fff;
    text-decoration: none !important;
}