/*
 Theme Name:     Galigeo
 Description:    Thème dédié au site web Galigeo
 Author:         Frédéric Ferri
 Author URI:     https://webmaster-montpellier.com
 Version:        1.0.0
 License:        GNU General Public License v2 or later
 License URI:    https://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:    galigeo
*/

@font-face {
    font-family: 'Montserrat';
    src: url('./assets/fonts/Montserrat-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Montserrat';
    src: url('./assets/fonts/Montserrat-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Literata';
    src: url('./assets/fonts/Literata-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Literata';
    src: url('./assets/fonts/Literata-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

p {
    font-size: 16px;
    line-height: 1.6 !important;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: bold !important;
    margin: 20px 0;
}

strong {
    font-weight: bold !important;
}

em {
    font-style: italic !important;
}


/* Header */

/* Polylang */



.language-switch {
    position: relative;
}

.current-language {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.current-language .arrow-down {
    margin-left: 5px;
    font-size: 0.6em;
}

.language-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    list-style: none;
    padding: 0;
    margin: 0;
    border: 1px solid #ccc;
    z-index: 1000;
}

.language-dropdown li {
    margin: 0;
}

.language-dropdown li a {
    display: block;
    padding: 5px 7px;
    text-decoration: none;
}

.language-dropdown li a:hover {
    background-color: #f0f0f0;
}

.language-switch:hover .language-dropdown {
    display: block;
}

@media (max-width: 1024px) {
    .menu-icon {
        font-size: 1.5rem;
    }

    .language-switch {
        position: relative;
    }

    .current-language {
        cursor: pointer;
    }

    .language-dropdown {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        background: #ffffff;
        border: 1px solid #ddd;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        list-style: none;
        padding: 0;
        margin: 0;
        z-index: 1000;
    }

    .language-dropdown li a {
        display: flex;
        align-items: center;
        padding: 8px 12px;
        text-decoration: none;
        color: #333;
    }

    .language-dropdown li a img {
        width: 24px;
        height: auto;
        margin-right: 8px;
    }

    .language-dropdown li a:hover {
        background: #f0f0f0;
    }

    /* Montrer le menu déroulant au clic */
    .language-switch:hover .language-dropdown {
        display: block;
    }

}



.glg-site-header {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: #fff;
    max-width: 800px;
    margin: 1rem auto;
    box-shadow: 0px 4px 16px -4px rgba(0, 0, 0, 0.16);
    border-radius: 1rem;
    font-size: 14px;
    padding: 0.75rem 1.5rem;
    position: relative; /* Important for the positioning of submenus */
    font-family: 'Montserrat';
    z-index: 10;
}

.glg-menu-first-level {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 105px;
}

/* Left and Right Menu */
.glg-left-menu, .glg-right-menu {
    display: flex;
    align-self: stretch;
}

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

.glg-main-navigation ul li {
    position: relative; /* Position relative to allow for absolute positioning of sub-menus */
    align-self: stretch;
    align-content: center;
    display: flex;
}

.glg-main-navigation ul li a {
    background: #fff;
    border-radius: 0.375rem;
    color: #909090;
    font-family: 'Montserrat';
    font-size: 0.938rem;
    text-align: center;
    padding: 10px 0;
    display: block;
    white-space: nowrap;
    align-self: stretch;
    align-content: center;
}

.glg-main-navigation ul li a:hover {
    color: #535353;
}

/* Submenu - hidden by default */
.glg-main-navigation .glg-sub-menu {
    display: none; /* Hide submenus by default */
    position: absolute;
    top: 100%; /* Position directly below the parent menu item */
    left: 0;
    width: 100%; /* Full width as the header */
    background-color: #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    padding: 20px;
    z-index: 9;
    justify-content: space-around;
    flex-wrap: wrap;
    border-radius: 0 0 10px 10px; /* Rounded corners at the bottom */
}

/* Show submenu on hover */
.glg-main-navigation ul li:hover > .glg-sub-menu {
    display: flex; /* Display the submenu block on hover */
}

/* Styling for submenu items */
.glg-main-navigation .glg-sub-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.glg-main-navigation .glg-sub-menu ul li {
    padding: 10px;
}

/* Styling for submenu links */
.glg-main-navigation .glg-sub-menu ul li a {
    color: #002855;
    font-size: 14px;
    text-align: left;
    padding: 8px 12px;
    display: block;
}

/* Submenu links hover effect */
.glg-main-navigation .glg-sub-menu ul li a:hover {
    color: #00c243;
}

/* Sub-submenu (hidden by default) */
.glg-main-navigation .glg-sub-menu .glg-sub-menu {
    display: none;
    position: absolute;
    top: 0;
    left: 100%; /* Position sub-submenu to the right of its parent */
    background-color: #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    padding: 10px;
    z-index: 10;
}

/* Show sub-submenu on hover */
.glg-main-navigation .glg-sub-menu li:hover > .glg-sub-menu {
    display: block;
}

/* CTA Button */
.glg-cta-button {
    background-color: #2ECC71;
    padding: 10px 15px;
    color: white;
    border-radius: 5px;
    text-decoration: none;
}

.glg-cta-button:hover {
    text-shadow: 1px 1px 4px #cacaca;
}

/* Close button for mobile menu */
.glg-close-button {
    position: absolute;
    top: 0px;
    right: 19px;
    font-size: 45px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    z-index: 100;
}

/* Responsive Burger Menu Button */
.glg-burger-menu {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 100; /* Ensure it stays on top of other elements */
}

.glg-burger-button {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 100;
}

.glg-burger-line {
    width: 30px;
    height: 3px;
    background-color: #333;
    border-radius: 5px;
}

/* Hide on larger screens */
@media (min-width: 1024px) {
    .glg-burger-menu {
        display: none;
    }
}


.glg-sub-navigation {
    width: 63%;
    font-family: 'Montserrat';
}


.glg-submenu {
    display: none;
    position: absolute; /* Permet de ne pas affecter le contenu en dessous */
    top: 100%; /* Place le sous-menu juste en dessous de l'élément parent */
    left: 0;
    background: #fff;
    border-radius: 0 0 1rem 1rem;
    border-top: 1px solid;
    border-image: linear-gradient(90deg, #FFF 0%, #D9D9D9 50%, #FFF 100%) 1;
    border-image-slice: 1;
    padding: 1.5rem 1.5rem 1rem;
    justify-content: space-between;
    align-items: baseline;
    gap: 25px;
    margin-top: 0; /* Pas besoin de marge supplémentaire */
    box-shadow: 0px 4px 16px rgba(0, 0, 0, 0.1);
    z-index: 99; /* S'assurer que le sous-menu reste au-dessus */
    width: 100%; /* Ajustez si nécessaire */
    transform: perspective(1000px) translate3d(0, 0, 0);
    transition: all .3s cubic-bezier(0.340, 0.370, 0.055, 1.560);
}

.glg-submenu .glg-sub-menu-items {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

/* Menus de premier niveau */
.glg-sub-menu-items > li > a {
    font-family: 'Montserrat';
    font-size: 0.938rem;
    cursor: default;
}

.glg-sub-menu-items ul.sub-menu {
    margin-top: 1rem;
}

/* Sous menus */
.glg-sub-menu-items ul.sub-menu li > a {
    color: #5C5C5C;
    font-family: 'Montserrat';
    font-size: 0.938rem;
    /*margin-bottom: 0.75rem;*/
    line-height: 1.8;
}

.glg-sub-menu-items ul.sub-menu li > a:hover {
    color: #ABABAB;
}

.glg-sub-navigation-video-block {
    padding: 2rem;
    border-left: 1px solid;
    border-image: linear-gradient(180deg, #FFF 0%, #D9D9D9 50%, #FFF 100%) 1;
    border-image-slice: 1;
    font-family : 'Literata';
    margin-bottom: 1rem;
    width: 37%;
}

.glg-sub-navigation-video-title {
    font-size :  1rem;
    line-height: 3;
    color: #002855;
}

.glg-sub-navigation-video-block iframe {
    width: 100%;
}

.glg-sub-navigation-video {
    border-radius: 0.5rem;
}


/* Mobile Menu Fullscreen */
.glg-mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 99;
    display: flex;
    justify-content: center;
    align-items: center;
}

.glg-mobile-menu-content {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 40px;
    font-size: 24px;
    color: #fff;
    line-height: 2;
    text-align: center;
    font-family: 'Montserrat';
}

.glg-mobile-menu-items ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.glg-mobile-menu-items ul li {
    margin-bottom: 20px;
}

.glg-mobile-menu-items ul li a {
    color: white;
    font-size: 24px;
    text-decoration: none;
    font-weight: bold;
    color: #fff;
}

/* Footer */

.glg-site-footer {
    /* Suppression de la couleur de fond */
    background-color: transparent;
    padding: 2.5rem 1rem;
    font-family: 'Montserrat';
    max-width: 1160px;
    margin: auto;
}

.glg-footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: nowrap;
    align-items: baseline;
}

.glg-footer-menus {
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

.glg-footer-menu h3 {
    color: #002855; /* Changement de la couleur des titres */
    font-size: 1rem;
    margin-bottom: 2rem !important;
}

.glg-footer-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.glg-footer-menu ul li {
    margin-bottom: 1rem !important;
}

.glg-footer-menu ul li a {
    color: #AAAAAA; /* Changement de la couleur des liens */
    text-decoration: none;
    font-size: 0.938rem;
}

.glg-footer-menu ul li a:hover {
    text-decoration: underline;
}

.glg-footer-contact {
    display: flex;
    flex-direction: column;
}

.glg-footer-info {
    display: flex;
    flex-direction: column;
}

.glg-footer-info p {
    margin: 0 0 1rem !important;
    font-size: 0.938rem;
    color: #002855; /* Changement de la couleur du texte */
}

.glg-footer-info .fas {
    color: #AAA; /* Changement de la couleur des pictogrammes */
    margin-right: 15px;
    opacity: 0.5;
}

.glg-footer-social ul {
    display: flex;
    gap: 15px;
}

.glg-footer-mail p {
    color: #2ecc71;
    font-size: 1.4rem;
    margin-bottom: 2rem;
}

.glg-footer-bottom {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    width: 100%;
    border-top: 1px solid #fff;
    padding-top: 10px;    
    margin: 20px auto;
}

.glg-footer-links-right {
    margin-bottom: 10px;
    display: flex;
    justify-content: inherit;
}

.glg-footer-links-right > a {
    margin-left: 10px;
}

.glg-footer-links a {
    color: #AAAAAA;
    text-decoration: none;
    font-size: 12px;
}

.glg-footer-links a:hover {
    text-decoration: underline;
}

.glg-footer-copyright {
    font-size: 12px;
    color: #AAAAAA;
}

/* Styles généraux */
.glg-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.glg-intro-section .glg-container {    
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 95%;
    margin-bottom: 90px;
}

/* Section supérieure */
.glg-intro-section {
    background-color: #f0f0f0;
    padding: 40px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}


.glg-intro-section .text-block {
    flex: 2;
    padding-right: 20px;
}

.glg-intro-section .text-block p {
    width: 75%;
}

.glg-intro-section h2 {
    font-size: 2em;
    margin-bottom: 15px;
}

.glg-intro-section p {
    margin-bottom: 20px;
}

.glg-intro-section .cta-button {
    background-color: #002855;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
}

.glg-intro-section .image-block {
    flex: 1;
    text-align: right;
}

.glg-intro-section h2 {
    color: #002855;
}

.glg-intro-section .image-block img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

/* Section des articles */
.glg-articles-section {
    background-color: #ffffff;
    padding: 40px 0;
    font-family: 'Montserrat';
}



.glg-articles-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}


.glg-article-item {
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin: 30px auto;
}

.glg-article-item .thumbnail img {
    width: 100%;
    height: 180px;
    border-radius: 15px;
    margin-bottom: 15px;
}

.glg-article-item .category {
    color: #2ECC71;
    font-size: 0.9em;
    font-weight: bold;
    margin-bottom: 10px;
}

.glg-article-item .article-title {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 10px;
}

.glg-article-item .article-title a {
    text-decoration: none;
    color: #002855;
}

.glg-article-item .excerpt {
    font-size: 0.95em;
    color: #666666;
    margin-bottom: 15px;
}

.glg-article-item .read-more {
    color: #fff;
    font-weight: bold;
    text-decoration: none;
    align-self: flex-start;
    background-color: #002855;
    padding: 7px 15px;
    border-radius: 6px;    
}

.glg-article-item .read-more:hover, .glg-article-item .article-title a:hover {
    text-decoration: underline;
}

/* Section de filtrage */
.glg-filter-section {
    background-color: #ffffff;
    padding: 20px 0;
    text-align: center;
    position: relative;
    top: -45px;
    width: 1080px;
    margin: auto;
    border-radius: 10px;
    box-shadow: 5px 5px 7px #E3E3E3;    
}

.glg-container .filter-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.glg-container .filter-button {
    padding: 10px 20px;
    border: 1px solid #2ECC71;
    background-color: white;
    color: #2ECC71;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

.glg-container .filter-button.active, .glg-container .filter-button:hover {
    background-color: #2ECC71;
    color: white;
}

.glg-container .filter-controls {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 15px;
}

.glg-container .search-input {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    width: 200px;
}

@media screen and (max-width: 1024px) {
    .glg-filter-section {
        width: auto !important;
    }
    .glg-container .filter-controls {
        flex-direction: column !important;
    }
}

/* Grille responsive */
@media (min-width: 768px) {
    .glg-articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Grille responsive */
@media (max-width: 768px) {
    .glg-intro-section .text-block p {
        width: 100%;
        margin: 30px auto;
    }
    .glg-intro-section .image-block {
        flex: 2 !important;
    }
    .glg-intro-section .glg-container, .glg-container .filter-buttons {
        flex-direction: column !important;
    }
    .glg-intro-section .image-block {
        margin: 40px auto !important;
    }
    .glg-intro-section {
        text-align: center !important;
    }
    .glg-article-item {
        align-items: center !important;
    }
    .glg-article-item .read-more {
        align-self: center !important;
    }
    .glg-article-item .thumbnail img {
        height: auto;
    }    
}

@media screen and (max-width: 512px) {
}

@media (min-width: 1024px) {
    .glg-articles-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}



/* Tablette */
@media screen and (max-width: 1024px) {
    
    .glg-footer-links {
        width: inherit !important;
        display: inherit !important;
        width: auto !important;
    }

    .glg-footer-links-right a {
        margin-left: 10px;
    }

}

/* Tablette */
@media screen and (max-width: 768px) {
    .glg-footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .glg-footer-links, .glg-footer-copyright {
        flex-basis: auto;
        margin: 0 10px;
    }
    
    .glg-footer-copyright {
        order: 0;
    }
}

/* Mobile */
@media screen and (max-width: 512px) {
    .glg-footer-bottom {
        flex-direction: column;
        align-items: center;
    }
    
    .glg-footer-links, .glg-footer-copyright {
        width: 100%;
        justify-content: center;
        margin-bottom: 10px;
    }
    
    .glg-footer-copyright {
        order: 3;
        width: auto !important;
    }
}



