/**
 * Styles pour le menu ALSES responsive
 * Fichier : assets/css/alses-menu.css
 */

@import url('https://fonts.googleapis.com/css2?family=Figtree:wght@400;500;600;700&display=swap');

/* ========================================
   CONTENEUR PRINCIPAL
======================================== */
.alses-menu-wrapper {
    position: relative;
    z-index: 1000;
}

/* ========================================
   BOUTON MENU (DESKTOP & MOBILE)
======================================== */
.alses-menu-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Figtree', sans-serif;
    font-weight: 500;
    color: #413D91;
    font-size: 16px;
    padding: 8px 12px;
    transition: all 0.3s ease;
}

.alses-menu-toggle:hover {
    opacity: 0.8;
}

/* Texte "MENU" (visible uniquement sur desktop) */
.menu-text {
    font-family: 'Figtree', sans-serif;
    font-weight: 700;
    color: #413D91;
    font-size: 20px;
}

/* Icône hamburger */
.hamburger-icon {
    display: flex;
    flex-direction: column;
    width: 27px;
    height: 19px;
    justify-content: space-between;
}

.hamburger-icon span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: #413D91;
    transition: all 0.3s ease;
}

/* Animation hamburger vers croix */
.alses-menu-toggle.active .hamburger-icon span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.alses-menu-toggle.active .hamburger-icon span:nth-child(2) {
    opacity: 0;
}

.alses-menu-toggle.active .hamburger-icon span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* ========================================
   MENU DROPDOWN (DESKTOP & MOBILE)
======================================== */
.alses-menu-dropdown {
    position: fixed;
    top: var(--header-height, 81px);
    left: 0;
    right: 0;
    width: 100vw;
    background: linear-gradient(to right, 
        #54509c 0%, 
        #54509c 50%, 
        #38366d 50%, 
        #38366d 100%
    );
    opacity: 0;
    visibility: hidden;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    z-index: 999;
    font-family: 'Figtree', sans-serif;
}

.alses-menu-dropdown.active {
    opacity: 1;
    visibility: visible;
    max-height: 1000px;
}

/* ========================================
   VERSION DESKTOP
======================================== */
.desktop-menu .menu-container {
    display: flex;
    max-width: 1280px;
    margin: 0 auto;
    width: 100%;
    padding: 0 20px;
}

/* Colonnes du menu desktop */
.menu-column {
    flex: 1;
    padding: 40px 30px;
    min-height: 300px;
}

/* Supprimer les paddings externes */
.menu-column:first-child {
    padding-left: 0;
}

.menu-column:last-child {
    padding-right: 0;
}

/* Titres des sections (éléments de 1er niveau) */
.menu-parent-title {
    margin: 0 0 25px 0;
    font-size: 18px;
    font-weight: 600;
}

.menu-parent-title a {
    color: #5bce8e;
    text-decoration: none;
    transition: opacity 0.3s ease;
    text-transform: uppercase;
}

.menu-parent-title a:hover {
    opacity: 0.8;
}

/* Listes des sous-éléments */
.menu-children {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-children li {
    margin-bottom: 12px;
}

.menu-children a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    line-height: 1.5;
    transition: opacity 0.3s ease;
    display: block;
}

.menu-children a:hover {
    opacity: 0.8;
}

/* Élément "Adhérer" en orange */
.menu-children a.adherer-link {
    color: #f28e29;
}

/* Reset des listes */
ul.menu-children {
    list-style-type: none;
    padding: 0;
}

/* ========================================
   VERSION MOBILE
======================================== */
.mobile-menu {
    display: none;
}

.mobile-menu-container {
    background: #413d91;
    padding: 45px;
}

/* Sections du menu mobile */
.mobile-menu-section {
    margin-bottom: 15px;
    padding-bottom: 15px;
}

.mobile-menu-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
}

/* Ligne principale avec titre et flèche */
.mobile-parent-item {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
}

/* Lien parent (quand pas de sous-éléments) */
.mobile-parent-item .parent-link {
    color: #5bce8e;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    flex: 1;
}

/* Bouton toggle parent (quand il y a des sous-éléments) */
.parent-toggle {
    background: none;
    border: none;
    color: #5bce8e;
    font-size: 18px;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
    padding: 0;
    text-transform: uppercase;
}

/* Bouton flèche */
.mobile-toggle-arrow {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    min-height: 20px;
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    box-shadow: none;
}

/* Flèche CSS */
.mobile-toggle-arrow::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid white;
    transition: transform 0.3s ease;
}

.mobile-toggle-arrow:focus {
    outline: none;
    box-shadow: none;
}

/* Animation de rotation de la flèche */
.mobile-toggle-arrow.active::after {
    transform: rotate(180deg);
}

.mobile-toggle-arrow.active {
    transform: rotate(180deg);
}

/* Sous-menus mobile */
.mobile-children {
    list-style: none;
    padding: 0;
    margin: 0;
    display: none;
}

.mobile-children.active {
    display: block;
    margin: 15px 0 0 0;
    animation: slideDown 0.3s ease;
}

/* Animation d'apparition */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-children li {
    margin-bottom: 10px;
    padding: 0;
}

.mobile-children a {
    color: #FFF !important;
    text-decoration: none;
    font-size: 16px;
    display: block;
}

/* Reset des listes mobile */
ul.mobile-children {
    list-style-type: none;
    padding: 0;
}

/* Liens supplémentaires mobile (Adhérer, Newsletter) */
.mobile-extra-links {
    margin-top: 30px;
    padding-top: 20px;
}

.mobile-extra-links a {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 0;
    padding: 10px 0;
}

.adherer-mobile {
    color: #f28e29;
}

.newsletter-mobile {
    color: #5bce8e;
}

/* ========================================
   RESPONSIVE
======================================== */
@media (max-width: 768px) {
    /* Adaptations mobile pour le dropdown */
    .alses-menu-dropdown {
        position: fixed; /* Fixed sur mobile - ne pas toucher */
        top: var(--header-height, 125px);
        right: -20px;
        width: calc(100vw + 40px);
        left: auto;
    }
    
    /* Cacher le texte "MENU" */
    .menu-text {
        display: none;
    }
    
    /* Afficher uniquement le menu mobile */
    .desktop-menu {
        display: none;
    }
    
    .mobile-menu {
        display: block;
    }
}

@media (min-width: 769px) {
    /* Desktop - JS s'occupera du positionnement */
    .alses-menu-dropdown {
        /* Garde position absolute, JS ajustera left et width */
        position: absolute;
    }
    
    /* Afficher uniquement le menu desktop */
    .mobile-menu {
        display: none !important;
    }
    
    .desktop-menu {
        display: block;
    }
}

@media (max-width: 981px) {
.menu-mobile-icon {
    width: 32px;
  height: 32px;
    
}


.adherer-mobile, .newsletter-mobile {
    color: white;
  font-size: 18px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.2;
  font-family: 'Asap Condensed',Helvetica,Arial,Lucida,sans-serif !important;
    
}
    
.adherer-mobile {
    color: #f28e29;
}

.newsletter-mobile {
    color: #5bce8e;
}
    
}

/* Container principal - affiché seulement sur mobile */
.nous-suivre-mobile {
    display: none;
}

@media (max-width: 980px) {
    .nous-suivre-mobile {
        display: block;
        margin-top: 30px;
    }
}

/* Lignes */
.nous-suivre-ligne {
    display: flex;
    align-items: center;
}

.nous-suivre-ligne:last-child {
    margin-bottom: 0;
}

/* Texte */
.nous-suivre-texte {
    font-family: 'Figtree', sans-serif;
    font-weight: 700; /* Bold */
    font-size: 16px;
    color: white;
    margin-right: 15px;
}

/* Liens */
.nous-suivre-lien {
    display: inline-block;
    margin-right: 15px;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.nous-suivre-lien:hover {
    transform: scale(1.1);
}

.nous-ecrire-lien {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.nous-ecrire-lien:hover {
    transform: scale(1.05);
}

.nous-ecrire-lien .nous-suivre-texte {
    margin-right: 15px;
    margin-left: 0;
}

/* Icônes */
.nous-suivre-icone {
    width: 32px;
    height: 32px;
    display: block;
}

.nous-suivre-icone-contact {
    width: 28px;
    height: 22px;
    display: block;
}

/* Animation au hover pour les icônes */
.nous-suivre-lien:hover .nous-suivre-icone,
.nous-ecrire-lien:hover .nous-suivre-icone {
    filter: brightness(1.2);
}