/*
 * Theme Name: Theme Almasi
 * Description: Theme pour le site Almasi
 * Author: Matthéo Termine
*/

/* Reset et styles de base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    height: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Barlow', sans-serif;
    font-size: 13px;
    line-height: 1.5;
    color: #333;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
}

p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

h1, h2, h3, h4, h5, h6 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

h1 {
    font-size: 2.5rem;
}

ul, ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

li {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

img {
    margin-bottom: 1.5rem;
}

.content-wrapper {
    display: flex;
    flex-direction: column;
    width:1200px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
    box-sizing: border-box;
    padding-bottom: 5%;
}

/* Alignement du texte sur la page d'accueil */
.content-wrapper {
    text-align: left;
}

.consortium-paragraphe {
    text-align: left;
}

.consortium-paragraphe p,
.consortium-paragraphe ul {
    text-align: left;
}

/* Styles pour les articles */
.post-date {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 20px;
    font-style: italic;
}

.article-content {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-bottom: 20px;
}

.article-body {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.article-text {
    margin-bottom: 20px;
}

.article-image img {
    max-width: 100%;
    height: auto;
}

/* Navigation entre articles */
.post-navigation {
    margin: 40px 0;
    padding: 20px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
}

.nav-previous,
.nav-next {
    flex: 0 0 48%;
    padding: 15px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.nav-previous {
    text-align: left;
}

.nav-next {
    text-align: right;
    margin-left: auto;
}

.nav-subtitle {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 5px;
}

.nav-title {
    font-weight: bold;
    color: #385CA9;
}

.nav-previous:hover,
.nav-next:hover {
    background: #f8f8f8;
    border-color: #385CA9;
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.nav-dropdown-item {
    width: auto;
    position: relative;
    background-color: #fff;
    white-space: nowrap;
}

.nav-dropdown-item a {
    display: block;
    padding: 10px 20px;
    color: #385CA9;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
    white-space: nowrap;
}

.nav-dropdown-item a:hover {
    background-color: #F5F5F5;
    color: #F9A01B;
}

.nav-dropdown {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 5px 0;
    min-width: 200px;
    width: auto;
    white-space: nowrap;
}

/* Responsive */
@media (max-width: 768px) {
    .post-navigation {
        flex-direction: column;
        gap: 20px;
    }

    .nav-previous,
    .nav-next {
        flex: 1;
        width: 100%;
        text-align: center;
    }
}

/* Barre de navigation */
.header {
    position: sticky;
    top: 0;
    background: #385CA9;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
}

.wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-main {
    flex: 1 1 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    flex-wrap: nowrap;
}

.hdr-logo-link {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hdr-logo-img {
    max-width: 450px;
    width: 100%;
    height: auto;
    margin: 10px;
    object-fit: contain;
}

.nav-main ul {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.nav-main a {
    color: #385CA9;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 800;
    transition: color 0.3s ease, transform 0.3s ease;
    padding: 5px;
    white-space: nowrap;
}

.nav-main a:hover,
.nav-item.current-menu-item > .nav-link,
.nav-item.current-menu-parent > .nav-link,
.nav-item.current-menu-ancestor > .nav-link {
    color: #F9A01B;
}

/* Sous-menus */
.nav-main ul ul {
    display: none;
    position: absolute;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
    transform: translateY(10px);
    z-index: 1000;
    width: auto;
    white-space: nowrap;
}

/* Ensure consistent styling for submenus regardless of parent active state */
.nav-main .current-menu-item ul,
.nav-main .current-menu-parent ul,
.nav-main .current-menu-ancestor ul {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: auto;
}

.nav-main ul ul ul {
    top: 0;
    left: 100%;
    transform: translateX(10px);
    width: auto;
    white-space: nowrap;
}

/* Affichage des sous-menus au survol */
.nav-main li:hover > ul {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Correction pour les sous-sous-menus */
.nav-main ul ul li:hover > ul {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* Masquer les sous-sous-menus en mode responsive */
@media (max-width: 768px) {
    .nav-main ul ul ul {
        display: none !important;
    }
}

.nav-main ul ul a,
.language-switcher ul a {
    padding: 10px 20px;
    display: block;
    white-space: nowrap;
    color: #385CA9;
}

/* Ensure consistent styling for submenu links regardless of parent active state */
.nav-main .current-menu-item ul a,
.nav-main .current-menu-parent ul a,
.nav-main .current-menu-ancestor ul a {
    color: #385CA9;
}

/* Ensure consistent styling for submenus with active parent */
.active-parent-submenu {
    background: #fff !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
    width: auto !important;
}

.active-parent-submenu a {
    color: #385CA9 !important;
}

/* Styles for sub-dropdown items */
.nav-sub-dropdown {
    width: auto !important;
    white-space: nowrap !important;
}

.nav-sub-dropdown-item {
    width: auto !important;
    white-space: nowrap !important;
    position: relative;
    background-color: #fff;
}

.nav-sub-dropdown-link {
    white-space: nowrap !important;
    display: block;
    padding: 10px 20px;
    color: #385CA9;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.nav-main ul ul a:hover,
.nav-main .current-menu-item ul a:hover,
.nav-main .current-menu-parent ul a:hover,
.nav-main .current-menu-ancestor ul a:hover,
.active-parent-submenu a:hover {
    background: #F5F5F5 !important;
    color: #F9A01B !important;
}

/* Burger menu */
.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
    margin-right: 15px;
    position: relative;
}

.burger-bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 3px 0;
    background-color: #F9A01B;
    border-radius: 3px;
    transition: all 0.3s ease;
    transform-origin: center;
}

/* Animation du burger menu */
.burger-menu.active .burger-bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.burger-menu.active .burger-bar:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.burger-menu.active .burger-bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Responsive */
@media (max-width: 1100px) {
    .burger-menu {
        display: flex;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #fff;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        padding: 15px;
        max-height: 80vh;
        overflow-y: auto;
        border-radius: 0;
    }

    .nav-links.active {
        display: flex;
        animation: slideDown 0.3s ease-in-out;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .nav-main ul {
        flex-direction: column;
        gap: 10px;
    }

    .nav-main ul ul {
        position: static;
        display: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        width: 100%;
        padding: 0;
        margin-top: 5px;
        margin-bottom: 5px;
        background-color: #f8f8f8;
        border-radius: 5px;
        overflow: hidden;
        transition: max-height 0.3s ease-in-out;
    }

    .nav-main ul ul.show {
        display: block;
        max-height: 1000px;
    }

    .nav-main ul ul a {
        padding: 10px 20px 10px 30px;
        font-size: 0.95rem;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .nav-main ul ul a:last-child {
        border-bottom: none;
    }

    /* Masquer le sous-menu d'Objectives dans le menu burger (responsive) */
    .nav-item > a[href*="objectives"] + ul,
    .nav-dropdown-item > a[href*="objectives"] + ul {
        display: none !important;
    }
}

/* Burger menu */
.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
    margin-right: 15px;
    position: relative;
    order: -1;
}

.burger-bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 3px 0;
    background-color: #F9A01B;
    border-radius: 3px;
    transition: all 0.3s ease;
    transform-origin: center;
}

/* Animation du burger menu */
.burger-menu.active .burger-bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.burger-menu.active .burger-bar:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.burger-menu.active .burger-bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Conteneur des liens de navigation */
.nav-links {
    display: flex;
    align-items: center;
    position: relative;
    flex: 1;
}

/* Affichage des sous-menus au survol */
.nav-main li:hover > ul {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Sélecteur de langue */
.language-switcher {
    position: relative;
    margin-left: 40px;
    z-index: 100;
}

/* Styles pour le sélecteur de langue */
.language-switcher {
    position: relative;
}

.language-switcher-toggle {
    background-color: #fdfdfd;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 1rem;
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.language-switcher-toggle:hover {
    background-color: #f5f5f5;
    border-color: #0073e6;
}

.language-switcher-toggle .arrow {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

/* Dropdown langue caché par défaut */
.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    list-style: none;
    margin: 0;
    padding: 8px 0;
    z-index: 100;
    display: none;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.language-switcher.open .language-dropdown {
    display: block !important;
    margin-top: 5px;
    visibility: visible;
    opacity: 1;
}

.language-item {
    padding: 8px 16px;
    transition: background-color 0.3s ease;
}

.language-item:hover {
    background-color: #f5f5f5;
}

.language-item.current {
    font-weight: bold;
    color: #0073e6;
}

.language-switcher-toggle:disabled {
    color: gray;
    pointer-events: none;
    cursor: default;
}

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

@keyframes slideUp {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

.nav-main li:hover > ul {
    animation: slideDown 0.3s ease forwards;
}

.nav-main ul ul {
    animation: slideUp 0.3s ease forwards;
}

/* Hero Section styles */
.hero-section {
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
}

.hero-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-size: cover;
    background-position: center;
    height: 28vh;
    min-height: 15vh;
    width: 100%;
    padding: 1rem;
}

.hero-content {
    text-align: center;
    padding: 0.8rem;
    position: relative;
    z-index: 2;
    max-width: 90%;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(4px);
    width: 1200px;
    word-wrap: break-word;
}

.hero-titles {
    color: white;
    text-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    margin-bottom: 2rem;
    padding: 0 1rem;
}

.hero-main-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
    letter-spacing: -0.5px;
    color: #FFF;
    word-break: break-word;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.5rem);
    font-weight: 400;
    max-width: 80%;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 auto;
    word-break: break-word;
}


/* Fil d'ariane */
.breadcrumb {
    margin: 0 20px;
    margin-bottom: 20px;
    padding: 10px 15px;
    font-size: 16px;
    color: #666;
    background-color: #f9f9f9;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
    line-height: 1.5;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
}

.breadcrumb a {
    color: #0073aa;
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.breadcrumb a:hover {
    color: #005f8d;
    text-decoration: underline;
}

.breadcrumb > span {
    color: #555;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.breadcrumb-separator {
    margin: 0 5px;
    color: #999;
}

/* Description de la catégorie */
.category-description {
    padding: 20px;
}

/* Grille des articles */
.articles-section {
    padding: 2rem 0;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.posts-grid article {
    flex: 1 1 calc(33.333% - 1.2rem);
    box-sizing: border-box;
    padding: 1.5rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.posts-grid article img {
    align-self: center;
    max-width: 35%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.posts-grid article h2, .posts-grid article p {
    text-align: start;
}

.posts-grid article a {
    text-decoration: none;
    color: #000;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.posts-grid article:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.article-h2 {
    color: #1D2027;
    font-size: 1.3rem;
    transition: color 0.3s ease;
    width: 100%;
    max-width: 100%;
    text-overflow: ellipsis;
}

.article-h2 a {
    color: #385CA9;
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-h2 a:hover {
    color: #F9A01B;
}

.tease {
    font-size: 1rem;
    margin-bottom: 1rem;
}

/* Styles pour les articles sans image */
.posts-grid article.no-image {
    padding-top: 2rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.posts-grid article.no-image p {
    margin-top: 0;
}

/* Page de l'article */
.article-body {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    flex-direction: row-reverse;
}

.article-image {
    flex-shrink: 0;
}

.article-image img {
    margin: 20px;
    max-width: 250px;
    height: auto;
}

.article-text {
    flex-grow: 1;
}

/* Page Consortium */
.consortium-titre,
.consortium-paragraphe {
    text-align: center;
    margin-bottom: 2rem;
}

.organisations-grid {
    padding: 2rem;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    width: 100%;
    max-width: 1200px;
}

.organisation-card {
    background: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s ease;
    height: 100%;
}

.organisation-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-color: #385CA9;
}

.organisation-card a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: 100%;
}

.organisation-logo {
    width: 100%;
    max-width: 200px;
    height: 130px;
    object-fit: contain;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.organisation-card:hover .organisation-logo {
    transform: scale(1.05);
}

.organisation-title {
    font-size: 1.1rem;
    text-align: center;
    color: #333;
    margin: 0;
    line-height: 1.4;
    font-weight: 600;
}

@media (max-width: 992px) {
    .organisations-grid {
        padding: 1.5rem;
    }

    .grid-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

    .organisation-logo {
        height: 110px;
    }
}

@media (max-width: 768px) {
    .organisations-grid {
        padding: 1rem;
    }

    .grid-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .organisation-logo {
        height: 100px;
    }
}

@media (max-width: 480px) {
    .grid-container {
        grid-template-columns: 1fr;
    }

    .organisation-card {
        padding: 1rem;
    }

    .organisation-title {
        font-size: 1rem;
    }
}

/* Page organisation */
.organisation-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 5px;
    width: 100%;
    box-sizing: border-box;
}

.organisation {
    background: white;
    border-radius: 12px;
    padding: 20px;
    max-width: 1200px;
    width: 100%;
    text-align: left;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    height: auto;
    box-sizing: border-box;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.organisation img {
    width: 300px;
    max-width: 100%;
    height: 150px;
    object-fit: contain;
    display: block;
    border-radius: 8px;
    margin: 0 auto 15px;
    padding-bottom: 8px;
}

.organisation h1 {
    font-size: 24px;
    color: #333;
    margin: 10px 0;
}

.organisation-description {
    font-size: 16px;
    color: #666;
    line-height: 1.7;
    margin-bottom: 15px;
    padding: 10px 0;
    white-space: pre-line;
}

.organisation-link {
    display: block;
    padding: 10px 20px;
    background-color: #0073aa;
    color: white;
    text-decoration: none;
    font-size: 16px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    text-align: center;
    margin-left: 25%;
    margin-right: 25%;
}

.organisation-link:hover {
    background-color: #005f87;
}

/* Page actualités et objectifs */
.actualites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 20px;
    justify-content: center;
    box-sizing: border-box;
}

.actualites-grid .actualite-item {
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    height: 100%;
    width: 100%;
    box-sizing: border-box;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.actualites-grid .actualite-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.actualites-grid .actualite-item .actualite-image {
    width: 100%;
    height: 200px;
    object-fit: contain;
    background-color: #f8f8f8;
    border-bottom: 1px solid rgba(56, 92, 169, 0.1);
    padding: 10px;
}

.actualites-grid .actualite-item .actualite-title {
    font-size: 1.2em;
    color: #1D2027;
    font-weight: 600;
    line-height: 1.4;
    margin: 20px;
    flex-grow: 1;
    word-wrap: break-word;
    overflow-wrap: break-word;
    width: auto;
    max-width: 100%;
    box-sizing: border-box;
}

.read-more-button {
    margin: 0 20px 20px;
    padding: 10px 20px;
    background-color: #385CA9;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    text-align: center;
    font-weight: 500;
    transition: background-color 0.3s ease;
    align-self: flex-start;
}

.read-more-button:hover {
    background-color: #2c4a8a;
    color: white;
}

@media (max-width: 1200px) {
    .actualites-grid {
        max-width: 100%;
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .actualites-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
        justify-content: start;
        padding: 15px;
    }

    .actualites-grid .actualite-item .actualite-image {
        height: 180px;
    }

    .actualites-grid .actualite-item .actualite-title {
        font-size: 1.1em;
        margin: 15px;
        hyphens: auto;
    }

    .read-more-button {
        margin: 0 15px 15px;
        padding: 8px 16px;
        font-size: 0.9em;
        width: auto;
        display: inline-block;
    }
}

@media (max-width: 480px) {
    .actualites-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 10px;
    }

    .actualites-grid .actualite-item .actualite-image {
        height: 160px;
    }

    .actualites-grid .actualite-item .actualite-title {
        font-size: 1em;
        margin: 12px;
        hyphens: auto;
    }

    .read-more-button {
        margin: 0 12px 12px;
        padding: 8px 14px;
        font-size: 0.85em;
        width: auto;
        display: inline-block;
        text-align: center;
    }

    .wrapper {
        padding: 0 10px;
    }
}

/* Page Media Kit */
.wp-block-file {
    background: #f8f8f8;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.wp-block-file__embed {
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.wp-block-file a:not(.wp-block-file__button) {
    color: #385CA9;
    text-decoration: none;
    margin-right: 20px;
    font-weight: 600;
    font-size: 1.1em;
}

.wp-block-file__button {
    background-color: #385CA9;
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
    font-size: 1.3em;
    transition: background-color 0.3s ease;
}

.wp-block-file__button:hover {
    background-color: #2c4a8a;
}

/* Image block styles */
.wp-block-image {
    margin: 30px 0;
    text-align: center;
}

.wp-block-image img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.wp-block-image figcaption {
    color: #666;
    font-size: 0.9rem;
    margin-top: 10px;
    text-align: center;
}

.wp-block-image figcaption a {
    color: white;
    text-decoration: none !important;
}

.wp-element-caption {
    display: inline-block;
    padding: 10px 20px;
    background-color: #385CA9;
    color: white;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.wp-element-caption a {
    color: white;
    text-decoration: none;
}

.wp-element-caption:hover {
    background-color: #2c4a8a;
}

/* Responsive */
@media (max-width: 768px) {
    .wp-block-file {
        padding: 15px;
    }

    .wp-block-file a:not(.wp-block-file__button) {
        font-size: 1em;
    }

    .wp-block-file__button {
        display: block;
        text-align: center;
        margin-top: 10px;
        font-size: 1em;
    }

    .wp-block-image {
        margin: 20px 0;
    }

    .wp-element-caption {
        font-size: 0.8em;
        padding: 6px 12px;
    }
}

@media (max-width: 480px) {
    .wp-block-file {
        padding: 10px;
    }

    .wp-block-file a:not(.wp-block-file__button) {
        font-size: 0.9em;
    }

    .wp-block-file__button {
        font-size: 0.9em;
        padding: 6px 12px;
    }

    .wp-element-caption {
        font-size: 0.7em;
        padding: 4px 8px;
    }
}

/* Page Contact */
.wp-block-contact-form-7-contact-form-selector {
    width: 1200px;
}

.article-text .wpcf7-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.article-text .wpcf7-form p {
    margin-bottom: 20px;
}

.article-text .wpcf7-form label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
}

.article-text .wpcf7-form .wpcf7-form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    color: #333;
    box-sizing: border-box;
}

.article-text .wpcf7-form .wpcf7-form-control:focus {
    border-color: #385CA9;
    outline: none;
}

.article-text .wpcf7-form .wpcf7-submit {
    background-color: #385CA9;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.article-text .wpcf7-form .wpcf7-submit:hover {
    background-color: #2c4a8a;
}

.article-text .wpcf7-form .wpcf7-spinner {
    display: none;
}

.article-text .wpcf7-form .wpcf7-response-output {
    margin-top: 20px;
    padding: 10px;
    border-radius: 4px;
    display: none;
}

.article-text .wpcf7-form .wpcf7-response-output.wpcf7-mail-sent-ok {
    background-color: #dff0d8;
    color: #3c763d;
}

.article-text .wpcf7-form .wpcf7-response-output.wpcf7-mail-sent-ng {
    background-color: #f2dede;
    color: #a94442;
}

/* Message de succès */
.form-success-message {
    display: block !important;
    border: none !important;
    background-color: #4CAF50 !important;
    color: white !important;
    padding: 15px 20px !important;
    border-radius: 8px !important;
    font-size: 16px !important;
    text-align: center !important;
    margin: 20px 0 !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
    animation: slideInUp 0.5s ease-in-out;
    position: relative;
    width: 100% !important;
    box-sizing: border-box !important;
    font-weight: 500 !important;
    line-height: 1.5 !important;
}

/* Animation pour le message */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animation de disparition */
.form-success-message.fade-out {
    animation: fadeOut 0.5s ease-in-out forwards;
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

/* Footer */
.site-footer {
    background-color: #385CA9;
    color: white;
    padding: 40px 20px;
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    gap: 20px;
}

.footer-menu,
.footer-social,
.footer-language {
    margin: 10px;
    flex: 1;
    min-width: 200px;
    text-align: left;
}

.footer-menu ul,
.footer-social ul,
.footer-language ul {
    list-style: none;
    padding: 0;
}

.footer-menu li,
.footer-social li,
.footer-language li {
    margin: 5px 0;
}

.footer-menu a,
.footer-social a,
.footer-language a {
    text-decoration: none;
    color: #ecf0f1;
    transition: color 0.3s;
    font-weight: 400;
}

.footer-menu a:hover,
.footer-social a:hover,
.footer-language a:hover {
    color: #f1c40f;
}

.footer-language .active-language {
    font-weight: bold;
    text-decoration: underline;
}

.footer-eu-funding {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    margin: 30px auto 20px;
    max-width: 1200px;
    gap: 20px;
}

.footer-eu-funding img {
    max-width: 300px;
    height: auto;
    order: 1;
    margin-bottom: 0;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.footer-eu-funding p {
    margin: 0;
    order: 2;
    flex: 1;
    min-width: 280px;
    text-align: left;
}

.footer-copyright {
    margin-top: 20px;
    font-size: 16px;
}

/* Page 404 */
.error-404-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 50px 20px;
}

.error-404-content {
    max-width: 600px;
    text-align: center;
}

.error-404-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #385CA9;
}

.error-404-image {
    margin: 30px 0;
}

.error-404-image img {
    max-width: 100%;
    height: auto;
}

.error-404-message {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.error-404-button {
    display: inline-block;
    padding: 12px 25px;
    background-color: #385CA9;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.error-404-button:hover {
    background-color: #F9A01B;
}

@media (max-width: 576px) {
    .error-404-title {
        font-size: 1.8rem;
    }

    .error-404-message {
        font-size: 1rem;
    }

    .error-404-button {
        padding: 10px 20px;
    }
}

/* Responsive */
@media (max-width: 1100px) {
    .wrapper {
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        gap: 0;
        position: relative;
        min-height: 70px;
    }

    .hdr-logo-link {
        margin-right: 0;
        flex: 1;
        text-align: center;
    }

    .hdr-logo-img {
        max-width: 300px;
    }

    .burger-menu {
        display: flex;
        left: 15px;
        top: 50%;
        transform: translateY(-50%);
    }

    /* Repositionnement du sélecteur de langue */
    .language-switcher {
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
        margin-left: 0;
    }

    .nav-main {
        order: 3;
        width: 100%;
        margin-top: 10px;
        padding: 0;
        background-color: transparent;
        box-shadow: none;
        border-radius: 0;
    }

    .nav-links {
        order: 2;
        width: 100%;
        top: 100%;
        left: 0;
        margin-top: 0;
        border-radius: 0;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }

    /* Styles pour le menu principal en responsive */
    .nav-menu {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        width: 100%;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #fff;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        padding: 15px;
        max-height: 80vh;
        overflow-y: auto;
        border-radius: 0;
        margin-top: 0;
    }

    .nav-links.active {
        display: flex;
        animation: slideDown 0.3s ease-in-out;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* Styles pour les sous-menus en responsive */
    .nav-main ul ul {
        position: static;
        display: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        width: 100%;
        padding: 0;
        margin-top: 5px;
        margin-bottom: 5px;
        background-color: #f8f8f8;
        border-radius: 5px;
        overflow: hidden;
        transition: max-height 0.3s ease-in-out;
    }

    /* Ensure consistent styling for all submenus in responsive mode */
    .nav-main .current-menu-item ul,
    .nav-main .current-menu-parent ul,
    .nav-main .current-menu-ancestor ul {
        background-color: #f8f8f8;
        border-radius: 5px;
        box-shadow: none;
    }

    .nav-main ul ul.show {
        display: block;
        max-height: 1000px;
    }

    .nav-main ul ul a {
        padding: 10px 20px 10px 30px;
        font-size: 0.95rem;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .nav-main ul ul a:last-child {
        border-bottom: none;
    }

    /* Masquer les sous-sous-menus en mode responsive */
    @media (max-width: 768px) {
        .nav-main ul ul ul {
            display: none !important;
        }
    }

    @media (max-width: 768px) {
        .nav-main ul ul ul {
            display: none !important;
        }
    }

    .nav-dropdown-item.menu-item-has-children > a::after {
        content: "...";
        font-size: 0.9rem;
        margin-left: 8px;
        color: #F9A01B;
    }

    .nav-dropdown-item.menu-item-has-children > a {
        position: relative;
    }

    /* Styles pour les items de menu avec sous-menus */
    .nav-item {
        width: 100%;
        position: relative;
    }

    .nav-item > a {
        padding: 12px 15px !important;
        border-radius: 6px;
        transition: background-color 0.3s ease, color 0.3s ease;
        display: block;
        width: 100%;
        font-weight: 600;
        font-size: 1.1rem;
    }

    .nav-item > a:hover {
        background-color: rgba(56, 92, 169, 0.1);
    }

    .nav-item.menu-item-has-children > a {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .nav-item.menu-item-has-children > a::after {
        content: "▼";
        font-size: 0.7rem;
        margin-left: 8px;
        transition: transform 0.3s ease;
        color: #385CA9;
    }

    .nav-item.menu-item-has-children.open > a {
        background-color: rgba(56, 92, 169, 0.1);
        border-radius: 6px 6px 0 0;
    }

    .nav-item.menu-item-has-children.open > a::after {
        transform: rotate(180deg);
        color: #F9A01B;
    }

    .nav-dropdown-item {
        width: 100%;
        position: relative;
    }

    .nav-dropdown-item > a {
        display: block;
        padding: 10px 15px;
        transition: background-color 0.3s ease, color 0.3s ease;
    }

    .nav-dropdown-item.menu-item-has-children > a {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .nav-dropdown-item.menu-item-has-children > a::after {
        content: "▼";
        font-size: 0.7rem;
        margin-left: 8px;
        transition: transform 0.3s ease;
        color: #385CA9;
    }

    .nav-dropdown-item.menu-item-has-children.open > a {
        background-color: rgba(56, 92, 169, 0.05);
        font-weight: 600;
    }

    .nav-dropdown-item.menu-item-has-children.open > a::after {
        transform: rotate(180deg);
        color: #F9A01B;
    }

    /* Styles pour les sous-sous-menus */
    .nav-sub-dropdown-item > a {
        padding-left: 45px !important;
        font-size: 0.9rem;
    }

    .nav-sub-dropdown-item.menu-item-has-children > a::after {
        content: "▼";
        font-size: 0.7rem;
        margin-left: 8px;
        transition: transform 0.3s ease;
        color: #385CA9;
    }

    .nav-sub-dropdown-item.menu-item-has-children.open > a {
        background-color: rgba(249, 160, 27, 0.05);
        font-weight: 600;
    }

    .nav-sub-dropdown-item.menu-item-has-children.open > a::after {
        transform: rotate(180deg);
        color: #F9A01B;
    }

    /* Désactiver l'animation de survol pour les sous-menus */
    .nav-main li:hover > ul {
        animation: none;
        display: none;
    }

    .nav-main ul ul {
        animation: none;
    }

    .language-switcher {
        margin-left: 10px;
        order: 0;
    }

    .hero-banner {
        background: none !important;
    }
}

@media (max-width: 992px) {
    .hero-banner {
        height: 35vh;
        min-height: 200px;
        background-attachment: scroll;
    }

    .hero-content {
        margin-left: 5%;
        width: 90%;
        padding: 1.5rem;
        transform: none;
    }

    .hero-main-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .form-success-message {
        font-size: 14px !important;
        padding: 12px 15px !important;
        margin: 15px 0 !important;
    }
}

@media (max-width: 576px) {
    .hero-banner {
        height: 40vh;
        min-height: auto;
    }

    .hero-content {
        margin: 0 auto;
        width: 95%;
        text-align: center;
    }

    .hero-main-title {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 0.875rem;
    }

    .header {
        padding: 3px 0;
    }

    #content {
        padding: 0 15px;
    }

    .posts-grid article {
        flex: 1 1 100%;
    }

    #footer {
        padding: 10px;
    }

    .hdr-logo-img {
        max-width: 180px;
        margin: 3px;
    }

    .wrapper {
        min-height: 50px; /* Hauteur minimale réduite pour les très petits écrans */
    }

    .burger-menu {
        width: 35px;
        height: 35px;
        left: 5px;
    }

    .burger-bar {
        width: 22px;
        height: 2px;
    }

    .language-switcher {
        right: 5px;
    }

    .language-switcher-toggle {
        padding: 5px 8px;
        font-size: 0.85rem;
    }

    .language-dropdown {
        right: -5px;
    }

    .nav-main {
        margin-top: 5px;
    }

    .nav-links {
        padding: 10px;
    }

    .nav-item > a {
        font-size: 1rem;
        padding: 10px !important;
    }
}

@media (max-width: 1200px) {
    .content-wrapper {
        width: 100%;
        max-width: 95%;
        padding: 20px 15px;
    }

    .hero-content {
        max-width: 95%;
    }

    .wp-block-contact-form-7-contact-form-selector {
        width: 100%;
    }
}

@media (max-width: 992px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .article-body {
        flex-direction: column-reverse;
    }

    .article-image {
        margin: 0 auto 20px;
        text-align: center;
    }

    .article-image img {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.7rem;
    }

    p {
        font-size: 1rem;
    }

    .posts-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .organisation-link {
        margin-left: 10%;
        margin-right: 10%;
    }

    .hdr-logo-img {
        max-width: 220px;
        margin: 5px;
    }

    .burger-menu {
        left: 10px;
    }

    .language-switcher {
        right: 10px;
    }

    .language-switcher-toggle {
        padding: 6px 10px;
        font-size: 0.9rem;
    }

    .header {
        padding: 5px 0;
    }

    .wrapper {
        padding: 0 10px;
        min-height: 60px; /* Hauteur minimale ajustée pour les écrans moyens */
    }

    /* Breadcrumb responsive styles */
    .breadcrumb {
        margin: 0 15px 15px;
        padding: 8px 12px;
        font-size: 15px;
        gap: 3px;
    }

    .breadcrumb a,
    .breadcrumb > span {
        max-width: 200px;
    }

    /* Footer responsive styles */
    .footer-content {
        justify-content: center;
        text-align: center;
    }

    .footer-menu,
    .footer-social,
    .footer-language {
        min-width: 250px;
        margin: 15px 10px;
        text-align: center;
    }

    .footer-eu-funding {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-eu-funding img {
        margin-bottom: 15px;
        order: 1;
    }

    .footer-eu-funding p {
        order: 2;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .breadcrumb {
        font-size: 13px;
        padding: 8px 10px;
        margin: 0 10px 15px;
        line-height: 1.4;
        gap: 2px;
    }

    .breadcrumb a,
    .breadcrumb > span {
        max-width: 150px;
    }

    .breadcrumb-separator {
        margin: 0 3px;
    }

    .organisation-link {
        margin-left: 0;
        margin-right: 0;
    }

    .organisation {
        padding: 15px;
    }

    .organisation h1 {
        font-size: 20px;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }

    .organisation img {
        width: 200px;
        height: auto;
    }

    .organisation-description {
        font-size: 14px;
    }

    /* Footer responsive styles for small screens */
    .site-footer {
        padding: 30px 15px;
    }

    .footer-content {
        gap: 15px;
    }

    .footer-menu,
    .footer-social,
    .footer-language {
        min-width: 100%;
        margin: 10px 0;
    }

    .footer-eu-funding {
        margin: 20px auto 15px;
    }

    .footer-eu-funding img {
        max-width: 250px;
    }

    .footer-copyright {
        font-size: 14px;
    }

    /* Styles pour le menu responsive sur très petits écrans */
    .nav-links {
        padding: 10px;
        max-height: 70vh; /* Limiter la hauteur sur petits écrans */
    }

    .nav-item > a {
        padding: 10px 12px !important;
        font-size: 0.95rem;
    }

    .nav-main ul ul a {
        padding: 8px 15px 8px 25px;
        font-size: 0.9rem;
    }

    .nav-main ul ul ul {
        margin-left: 5px;
        margin-right: 5px;
    }

    .nav-main ul ul ul a {
        padding-left: 35px;
        font-size: 0.85rem;
    }

    /* Amélioration de la visibilité des sous-menus */
    .nav-item.menu-item-has-children.open > a,
    .nav-dropdown-item.menu-item-has-children.open > a,
    .nav-sub-dropdown-item.menu-item-has-children.open > a {
        background-color: #385CA9;
        color: white;
    }

    /* Ensure consistent styling for all open submenu items regardless of parent active state */
    .nav-item.menu-item-has-children.open.current-menu-item > a,
    .nav-item.menu-item-has-children.open.current-menu-parent > a,
    .nav-item.menu-item-has-children.open.current-menu-ancestor > a,
    .nav-dropdown-item.menu-item-has-children.open.current-menu-item > a,
    .nav-dropdown-item.menu-item-has-children.open.current-menu-parent > a,
    .nav-dropdown-item.menu-item-has-children.open.current-menu-ancestor > a,
    .nav-sub-dropdown-item.menu-item-has-children.open.current-menu-item > a,
    .nav-sub-dropdown-item.menu-item-has-children.open.current-menu-parent > a,
    .nav-sub-dropdown-item.menu-item-has-children.open.current-menu-ancestor > a {
        background-color: #385CA9;
        color: white;
    }

    .nav-item.menu-item-has-children.open > a::after,
    .nav-dropdown-item.menu-item-has-children.open > a::after,
    .nav-sub-dropdown-item.menu-item-has-children.open > a::after {
        color: white;
    }
}

/* Tableaux responsifs */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    overflow-x: auto;
    display: block;
    max-width: 100%;
}

table, th, td {
    border: 1px solid #ddd;
}

th, td {
    padding: 12px;
    text-align: left;
}

th {
    background-color: #385CA9;
    color: white;
}

tr:nth-child(even) {
    background-color: #f2f2f2;
}

@media (max-width: 768px) {
    table {
        font-size: 14px;
    }

    th, td {
        padding: 8px;
    }
}

@media (max-width: 576px) {
    table {
        font-size: 12px;
    }

    th, td {
        padding: 6px;
        word-break: break-word;
    }
}

@media (max-width: 1100px) {
    .current-menu-parent > ul.show,
    .current-menu-ancestor > ul.show,
    .current_page_parent > ul.show,
    .current_page_ancestor > ul.show {
        max-height: 1000px !important;
        transition: max-height 0.5s ease-in-out;
    }
}

@media (max-width: 1100px) {
    .nav-dropdown-item a {
        padding: 12px 20px 12px 30px;
        white-space: normal;
    }

    .nav-dropdown {
        box-shadow: none;
        background-color: #f8f8f8;
        border-radius: 5px;
        width: 100%;
        white-space: normal;
    }

    .nav-sub-dropdown {
        width: 100% !important;
        white-space: normal !important;
    }

    .nav-sub-dropdown-item {
        width: 100% !important;
        white-space: normal !important;
    }

    .nav-sub-dropdown-link {
        white-space: normal !important;
        padding: 12px 20px 12px 40px;
    }

    /* Ensure all menu items wrap text properly on mobile */
    .nav-main ul ul a,
    .nav-main .current-menu-item ul a,
    .nav-main .current-menu-parent ul a,
    .nav-main .current-menu-ancestor ul a,
    .active-parent-submenu a {
        white-space: normal !important;
    }
}
