/**
 * Styles personnalisés pour le thème enfant
 * 
 * @package UiCore Child
 */

/* ========================================
   NAVIGATION HIÉRARCHIQUE
   ======================================== */


#Processus.accordeon a {color: rgb(66,66,66);}
#Processus.accordeon a:hover {color: #3B9E35;}

.hierarchical-nav-menu {
    max-width: 300px;
    border: 1px solid #F1F1F1;
    font-size: 15px;
}

.hierarchical-nav-menu .hnav-item {
    border-bottom: 1px solid #e5e5e5;
}

.hierarchical-nav-menu .hnav-item:last-child {
    border-bottom: none;
}

.bdt-timeline .bdt-timeline-desc{
height: 145px !important;
}

.hierarchical-nav-menu .hnav-link {
    display: block !important;
    padding: 15px 20px !important;
    text-decoration: none !important;
    color: #333 !important;
    background: #ffffff !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    border-left: none !important;
    margin: 0 !important;
    font-size: inherit !important;
    line-height: inherit !important;
    font-weight: 500 !important;
}

.hierarchical-nav-menu .hnav-link:hover {
    background: #f5f5f5 !important;
    text-decoration: none !important;
    color: #333 !important;
}

.hierarchical-nav-menu .hnav-parent {
    background: #ffffff !important;
    color: #333 !important;
    font-weight: 500 !important;
    position: relative !important;
}

.hierarchical-nav-menu .hnav-parent.current-parent {
    background: white !important;
    color: var(--uicore-primary-color) !important;
    font-weight: bold !important;
    /* font-size: 17px !important; */
}

.hierarchical-nav-menu .hnav-parent:hover {
    background: #f5f5f5 !important;
    color: #333 !important;
}

.uicore-blog #main.uicore {
    padding-top: 0px !important;
}

.uicore-wrapper.uicore-search.uicore-section {
    height: 200px !important;
    border-bottom: 1px solid #eeeeee;
}

/* .hierarchical-nav-menu .hnav-parent.current-parent:hover {
    background: #218838 !important;
    color: white !important;
} */

.processusHome h3 a::after {
    content: "" !important;
    display: inline-block;
    width: 1.2em;
    height: 1.2em;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m12 5 7 7-7 7'/%3E%3C/svg%3E");
    background-size: contain;
    background-position: center;
    transform: translateY(5px);
    transition: 0.15s all;
}



.processusHome h3 a:hover::after {
    transform: translate(10px, 5px);
}

.hierarchical-nav-menu .hnav-parent::after {
 content: "" !important;
    position: absolute !important;
    right: 20px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    transition: transform 0.3s ease !important;
    width: 16px !important;
    height: 16px !important;
    background-image: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m6 9 6 6 6-6"/></svg>') !important;
    background-repeat: no-repeat !important;
    background-size: contain !important;
    background-position: center !important;
}

.hierarchical-nav-menu .hnav-parent.active::after {
    transform: translateY(-50%) rotate(180deg) !important;
}

.hierarchical-nav-menu .hnav-current {
    background: #F1F1F1 !important;
    color: var(--uicore-primary-color) !important;
    border-left: 4px solid var(--uicore-primary-color) !important;
    font-weight: 500 !important;
    padding-left: 16px !important;
}

.hierarchical-nav-menu .hnav-children {
    display: none !important;
    background: #ffffff !important;
}

.hierarchical-nav-menu .hnav-children.active {
    display: block !important;
}

.hierarchical-nav-menu .hnav-child {
	font-size: 15px;
    padding: 10px 40px !important;
    border-bottom: 1px solid #e5e5e5 !important;
    background: #F9F9F9 !important;
    display: block !important;
    text-decoration: none !important;
    color: #333 !important;
    transition: all 0.3s ease !important;
	line-height: 1.5;
}

.hierarchical-nav-menu .hnav-child:hover {
    background: #f0f0f0 !important;
    text-decoration: none !important;
    color: #333 !important;
}

.hierarchical-nav-menu .hnav-child:last-child {
    border-bottom: none !important;
}

.hierarchical-nav-menu .hnav-child.current {
    background: #F1F1F1 !important;
    color: var(--uicore-primary-color) !important;
    border-left: 4px solid var(--uicore-primary-color) !important;
    font-weight: 500 !important;
    padding-left: 36px !important;
}

/* ========================================
   FAB ET MENU MOBILE
   ======================================== */

/* FAB Button - Complètement masqué sur desktop */
.hnav-fab-button {
    display: none !important;
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
    background: var(--uicore-primary-color, #00b894);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9997;
    color: white;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: scale(1);
    opacity: 1;
}

/* Header mobile - Masqué sur desktop */
.hnav-mobile-header {
    display: none;
}

/* Overlay - Masqué par défaut */
.hnav-mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                visibility 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backdrop-filter: blur(2px);
}

.hnav-mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ========================================
   CARROUSEL D'ACTUALITÉS
   ======================================== */

.actualites-carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin: 0;
}

.actualites-carousel {
    position: relative;
    width: 100%;
    height: 170px;
}

.actualite-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    box-sizing: border-box;
}

.actualite-slide.active {
    opacity: 1;
}

.actualite-content {
    flex: 1;
/*     max-width: 80%; */
}

.actualite-header {
    margin-bottom: 10px;
}

.actualite-label {
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.actualite-title {
    font-size: 28px;
    font-weight: 500;
    margin: 0 0 15px 0;
    line-height: 1.2;
    color: white;
}

.actualite-excerpt {
    font-size: 16px;
    line-height: 1.4;
    margin-bottom: 20px;
    opacity: 0.9;
}

.actualite-expand {
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: space-between;
}

.expand-icon {
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.expand-icon:hover {
    transform: scale(1.2);
}

.actualite-date {
    font-size: 14px;
    opacity: 0.8;
}

.actualite-indicator {
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.indicator-text {
    font-size: 12px;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    opacity: 0.8;
}

.indicator-lines {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.indicator-line {
    width: 2px;
    height: 20px;
    background-color: rgba(255, 255, 255, 0.6);
    transition: background-color 0.3s ease;
}

.carousel-navigation {
    position: absolute;
    bottom: 20px;
    right: 60px;
    display: flex;
    gap: 8px;
}

.nav-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid white;
    background: transparent;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.nav-dot.active {
    background-color: white;
}

.nav-dot:hover {
    background-color: rgba(255, 255, 255, 0.7);
}


/* SOLUTION 1 : Bordure uniquement en bas (recommandée) */
.ui-e-accordion-item {
    border-style: solid;
    border-width: 0px 0px 1px 0px !important;
    border-color: #E9E9E9;
}

/* Ajouter une bordure en haut pour le premier élément */
.ui-e-accordion-item:first-child {
    border-width: 1px 0px 1px 0px  !important;
}


/* ========================================
   RECOMMANDATIONS D'UTILISATION
   ======================================== */

.recommandations-container {
    max-width: 1200px;
    margin: 0 auto;
}

.recommandations-header {
    margin-bottom: 30px;
}

.recommandations-title {
    font-size: 2.5rem;
    font-weight: 600;
    color: #00b894;
    margin: 0 0 20px 0;
    line-height: 1.2;
}

.recommandations-search {
    margin-bottom: 20px;
}

.recommandations-search .search-form {
    position: relative;
    max-width: 400px;
}

.recommandations-search .search-input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.recommandations-search .search-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 0px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s ease;
}

.recommandations-container .search-button, .tableaux-container .search-button {
    background: none !important;
    color: #ababab !important;
    padding-right: 10px !important;
}

.recommandations-search .search-input:focus {
    border-color: var(--uicore-primary-color);
}

.recommandations-search .search-input::placeholder {
    color: #999;
}

.recommandations-search .search-button {
    position: absolute;
    right: 8px;
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: color 0.3s ease;
}

.recommandations-search .search-button:hover {
    color: var(--uicore-primary-color);
}

.classe-section {
    margin-bottom: 30px;
}

.classe-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin: 0 0 15px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #e5e5e5;
}

.recommandation-item, .tableau-item {
    display: flex;
    flex-direction: column;
    align-items: left;
    justify-content: space-between;
    border-bottom: 1px solid #e5e5e5;
    padding: 24px;
    transition: background-color 0.2s ease;
    background: #f9f9f9 !important;
}



.recommandation-content {
    flex: 1;
}

.recommandation-title, .tableau-title {
    font-size: 1.15rem;
    color: #333;
    margin: 0;
    line-height: 1.4;
}

.tableau-title {
    font-weight: 500;
}

.recommandation-title {
    font-weight: 400;
}

.recommandation-actions {
    margin-left: 20px;
}

.tableaux-header {
    margin-bottom: 30px;
}

.pdf-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--uicore-primary-color) !important;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid transparent;
}

.pdf-link:hover {
    color: var(--uicore-primary-color) !important;
    background-color: transparent; /*#f0fdf9;*/
    border-color: var(--uicore-primary-color) !important;
}

.pdf-text {
    white-space: nowrap;
}

.tableau-title {
    margin-bottom: 5px;
    margin-top: 5px;
}

.uicore-animate.ui-breadcrumb {
    font-size: 14px;
}

.uicore-page-title .uicore.uicore-container {
    padding-top: 15px !important;
    padding-bottom: 15px !important;
}

.singleAvantage {
    background: #f9f9f9;
}

.singleAvantage .elementor-image-box-content {
    padding: 10px 30px 30px 30px;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* MOBILE NAVIGATION - 768px et moins */
@media (max-width: 768px) {

    .recommandation-title, .tableau-title {
        font-size: 1.05rem !important;
    }

    /* Masquer le menu normal sur mobile */
    .hierarchical-nav-menu {
        display: block;
        position: fixed;
        top: 0;
        right: -100%;
        width: 320px;
        max-width: 85vw;
        height: 100vh;
        background: white;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.15);
        z-index: 9999;
        overflow-y: auto;
        transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        border: none;
        transform: translateX(0);
    }

    /* Menu mobile actif */
    .hierarchical-nav-menu.mobile-active {
        right: 0;
    }

    /* Header du menu mobile */
    .hnav-mobile-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 20px;
        /* background: var(--uicore-primary-color, #00b894); */
        background-image: linear-gradient(135deg, var(--e-global-color-uicore_primary) 0%, #4CAF50 100%);
        color: white;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        opacity: 0;
        transform: translateY(-20px);
        animation: slideInFromTop 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.1s forwards;
    }

    @keyframes slideInFromTop {
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .hnav-mobile-header h3 {
        margin: 0;
        font-size: 18px;
        font-weight: 600;
        color: white !important;
    }

    .hierarchical-nav-menu .hnav-parent.current-parent {
        font-size: 15px !important;
    }

    .hnav-close-btn {
        background: none;
        border: none;
        color: white;
        cursor: pointer;
        padding: 8px;
        border-radius: 6px;
        transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        transform: scale(1);
    }

    .hnav-close-btn:hover {
        background-color: rgba(255, 255, 255, 0.15);
        transform: scale(1.05);
    }

    .hnav-close-btn:active {
        transform: scale(0.95);
    }

    /* Contenu du menu mobile */
    .hnav-menu-content {
        padding: 0;
        opacity: 0;
        transform: translateY(20px);
        animation: slideInFromBottom 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s forwards;
    }

    @keyframes slideInFromBottom {
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* FAB Button - Affiché SEULEMENT sur mobile */
    .hnav-fab-button {
        display: flex !important;
    }

    .hnav-fab-button:hover {
        transform: scale(1.1);
        box-shadow: 0 8px 25px rgba(0, 184, 148, 0.4);
        background: var(--uicore-primary-color, #00b894);
    }

    .hnav-fab-button:active {
        transform: scale(0.95);
    }

    /* Animation de rotation pour l'icône */
    .hnav-fab-button svg {
        transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
		fill: white;
		width: 24px;
		height: 24px;
    }

    .hnav-fab-button:hover svg {
        transform: rotate(90deg);
    }

     /* Ajustements des éléments du menu mobile */
    .hierarchical-nav-menu .hnav-item {
        border-bottom: 1px solid #e5e5e5;
        opacity: 0;
        transform: translateX(30px);
        animation: slideInItems 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    }

    .hierarchical-nav-menu .hnav-item:nth-child(1) { animation-delay: 0.1s; }
    .hierarchical-nav-menu .hnav-item:nth-child(2) { animation-delay: 0.2s; }
    .hierarchical-nav-menu .hnav-item:nth-child(3) { animation-delay: 0.3s; }
    .hierarchical-nav-menu .hnav-item:nth-child(4) { animation-delay: 0.4s; }
    .hierarchical-nav-menu .hnav-item:nth-child(5) { animation-delay: 0.5s; }
    .hierarchical-nav-menu .hnav-item:nth-child(n+6) { animation-delay: 0.6s; }

    @keyframes slideInItems {
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }

    .hierarchical-nav-menu .hnav-link {
        padding: 15px 20px !important;
        font-size: 15px !important;
        transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    }

    .hierarchical-nav-menu .hnav-child {
        padding: 15px 40px !important;
        font-size: 15px !important;
        transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    }

     /* Animation améliorée pour les accordéons mobile */
    .hierarchical-nav-menu .hnav-children {
        overflow: hidden;
        max-height: 0;
        transition: max-height 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }

    .hierarchical-nav-menu .hnav-children.active {
        max-height: 500px;
    }
}

/* Carrousel d'actualités responsive */
@media (max-width: 768px) {
    .actualites-carousel {
        height: 270px;
    }
    
    .actualite-slide {
        padding: 0 30px;
        flex-direction: column;
        text-align: center;
    }
    
    .actualite-content {
        max-width: 100%;
    }
    
    
    .actualite-excerpt {
        font-size: 14px;
    }
    
    .actualite-indicator {
        position: static;
        transform: none;
        margin-top: 20px;
    }
    
    .indicator-text {
        writing-mode: horizontal-tb;
        text-orientation: initial;
    }
    
    .indicator-lines {
        flex-direction: row;
    }
    
    .indicator-line {
        width: 20px;
        height: 2px;
    }
    
    .carousel-navigation {
        bottom: 10px;
        right: 30px;
    }

    .ui-breadcrumb {
        font-size: 12px;
    }

    .homePageGallery img {
        height: 200px !important;
    }

    .actualites-carousel {
        height: 270px !important;
    }
}

/* Recommandations responsive */
@media (max-width: 768px) {
    .recommandations-title {
        font-size: 2rem;
    }
    
    .recommandations-container .recommandation-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .recommandation-actions {
        margin-left: 0;
        align-self: flex-start;
    }
    
    .pdf-text {
        /* display: none; */
    }

    .pdf-link {
        padding-left: 0px;
    }
}

@media screen and (max-width: 1375px) and (min-width: 1030px) {
    .uicore-custom-area {
        display: none !important;
    }
}

/* ========================================
   UTILITAIRES
   ======================================== */

/* Animation pour les accordéons */
.hnav-children {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease;
}

.hnav-children.active {
    max-height: 1000px;
}

/* Animation pour les indicateurs de carrousel */
.indicator-line.active {
    background-color: rgba(255, 255, 255, 1);
    transform: scaleY(1.2);
}

.listItemsMedicList ul > li:last-child .ui-e-wrap {
    border-bottom: none !important;
}

.btnCustomArrow svg {
    width: 0.8em !important;
}