/*
Theme Name: Sustainable Lalibela
Theme URI: https://sustainablelalibela.com
Author: Steeldev
Version: 1.0
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
*/

:root{
    --color-nav: #702532;
    --color-background-primary: #8d3042
}
body {
    font-family: 'Poppins', sans-serif;
}
html {
    scroll-behavior: smooth;
}
/* Enlever l'espace au-dessus de la bannière */
.entry-content {
    margin-top: 0 !important;
}

.top-nav-ancre a{
    color: white!important;
    display: block!important;
    font-weight: normal;
    height: 38px;
    margin: 11px 28px !important;
    text-transform: uppercase;
    max-width: 210px;
    text-align: center;
    padding-bottom: 17px;
}
.top-nav-ancre {
    position: relative;
    margin-left: 20px!important;
    margin-right: 20px!important;
    border-bottom: 2px solid white;
}

.top-nav-ancre a {
    transition: color 0.35s ease;
    color: white!important;
    text-decoration: none;
    margin-top: 20px;
}

.rl-gallery-item-caption {
    font-family: "Sarcaland Brusher", serif !important;
    text-align: center;
    font-size: 15px;
}

.scrim {
    opacity: 0.8!important;
    background-color: black!important;
}

.wp-lightbox-overlay .close-button {
    fill: white!important;
}

.top-nav-ancre::after {
    content: "";
    position: absolute;
    inset: 0;
    background: white;
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.35s ease;
    z-index: 0;
}
/* hover */
.top-nav-ancre:hover::after {
    transform: scaleY(1);
}

.top-nav-ancre:hover a {
    transition: color 0.35s ease;
    color: var(--color-background-primary)!important;
    position: relative;
    z-index: 300;
}

/* --- Structure du Header --- */

.wp-block-site-logo img {
    max-width: 140px;
    height: auto;
}
.header {
    padding: 30px 45px;
    min-height: 360px;
    background-color: #fef9f5;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

@media (max-width: 599px) {
    .wp-block-site-logo img {
        max-width: 65px;
    }
    .header {
        min-height: 50px;
        display: flex;
        flex-direction: row-reverse;
        justify-content: space-between;
    }
}

.mail-link a {
    color: white;
}
.footer {
    width: 100%;
    height: 302px;
    background-color: #8d3042;
    position: relative;
    bottom: 0;
    padding: 25px 40px;
}

.wp-block-cover.parallax {
    overflow: hidden;
    position: relative;
}

.column-nav {
    min-height: 150px;
}

/* l’image est volontairement plus grande */
.wp-block-cover.parallax .wp-block-cover__image-background {
    transform: scale(1.5);
    transition: transform 0.1s linear;
    will-change: transform;
}

.footer-navs li {
    font-weight: 300;
    border-bottom: 1px solid white;
    text-decoration: none;
}

.footer-navs li:hover {
    border-bottom: 2px solid white;
}
.footer-navs a:hover {
    text-decoration: none!important;
}

/* --- Base --- */

.d-flex {
    display: flex;
}

.justify-content-center {
    justify-content: center;
}

.justify-content-between {
    justify-content: space-between;
}

.flex-column {
    flex-direction: column;
}

.w-100 {
    width: 100%;
}
.w-80 {
    width: 80%;
}
/* Reset et conteneur principal du menu */
.navbar-nav {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 1rem 0;
}

.header-nav .wp-block-navigation {
    width: 100%;
}

.header-nav .wp-block-navigation__container {
    display: flex !important;
    justify-content: center !important;
    gap: 2.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Liens du menu */
.header-nav .wp-block-navigation-item a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    padding-bottom: 5px;
    transition: color 0.3s ease;
    display: inline-block;
}

/* Animation de la ligne au survol */
.header-nav .wp-block-navigation-item a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    left: auto;
    width: 0;
    height: 1px;
    background-color: var(--color-nav);
    transition: width 0.3s ease;
}

.header-nav .wp-block-navigation-item a:hover::after {
    width: 100%;
    left: 0;
    right: auto;
}

.header-nav .wp-block-navigation-item a:hover {
    color: var(--color-nav);
}
.header-nav {
    color: var(--color-nav);
}

.header-nav .wp-block-navigation {
    font-weight: 300!important;
}

.header-nav .wp-block-pages-list__item__link,
.header-nav .wp-block-navigation-item__label {
    font-weight: 300!important;
}

/* Lien actif (page courante) */
.header-nav .wp-block-navigation-item.current-menu-item a,
.header-nav .wp-block-navigation-item.current_page_item a {
    font-weight: 300;
    color: var(--color-nav);
}

.header-nav .wp-block-navigation-item.current-menu-item a::after,
.header-nav .wp-block-navigation-item.current_page_item a::after {
    width: 100%;
}

/* Sous-menus */
.header-nav .wp-block-navigation__submenu-container {
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    border-radius: 4px;
    min-width: 200px;
}

.header-nav .wp-block-navigation__submenu-container .wp-block-navigation-item a {
    padding: 0.75rem 1.5rem;
    font-size: 14px;
    text-transform: none;
    display: block;
}

.header-nav .wp-block-navigation__submenu-container .wp-block-navigation-item a::after {
    display: none;
}

.header-nav .wp-block-navigation__submenu-container .wp-block-navigation-item a:hover {
    background-color: #f8f8f8;
}

/* Adaptation Mobile */
@media (max-width: 768px) {
    .main-header {
        padding: 20px;
    }
}

