/*
Theme Name: Oustal de Parent
Template: generatepress
Version: 1.0
Author:	Florian Nahon
Author URI: https://github.com/fnahonn
*/


.page .entry-content {
    margin-top: 0;
}

.page .entry-title {
    font-size: 60px;
    padding: 40px;
    letter-spacing: 2px;
    font-weight: 700;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
    color: var(--title-grey);
}


.gb-container.linked-container {
    position: relative;
    transition: all .2s ease-in;
}

.gb-container.linked-container:hover {
    background-color: var(--primary-grey);
}

.gb-container.linked-container a {
    color: inherit;
    text-decoration: none;
}

.gb-container.linked-container a:before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 10;
}



/**
* Bouton de réservation
*
*/

.inside-header {
    padding: 0;
}

.header-reservation {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100%;
    transition: all .3s ease-in-out;
    text-decoration: none;
    color: #ffffff;
    padding: 20px;
    margin-left: 1em;
    background-color: var(--vert-fonce);
    order: 1;
}

.header-reservation:hover {
    color: #ffffff;
    background-color: var(--mustard-green);
}

.header-reservation-icon {
    width: 2em;
}

.header-reservation-label {
    text-transform: uppercase;
    margin-bottom: 0;
    text-decoration: none;
}

/**
* Header
*
*/

#masthead {
    transition: transform .2s ease-in;
}

.is-hidden {
    transform: translateY(-100%);
}

.sticky {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    line-height: 50%;
}

.site-header .header-image {
    margin-left: 10px;
}

/* Si l'utilisateur est connecté et que l'admin bar est affichée */
body.admin-bar .sticky {
    top: 32px;
    /* Hauteur de l'admin bar en desktop */
}

.sticky .header-reservation-label {
    display: none;
}


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

.nav-float-right #site-navigation {
    margin-left: 0 !important;
}


/* Navigation */
.main-navigation .main-nav ul li a,
.main-navigation .menu-toggle,
.main-navigation .menu-bar-items {
    text-transform: uppercase;
    font-weight: 700;
    font-size: 17px;
}

/* Utils */
.fna-shadow {
    box-shadow: 0 -4px 6px -4px var(--primary-grey, #575758), 0 4px 6px -4px var(--primary-grey, #575758);
}



/* Media Queries */

@media (max-width: 768px) {
    .header-reservation {
        width: 80px;
        order: 0;
    }

    .header-reservation-label {
        display: none;
    }
    
    .page .entry-title {
        font-size: 30px;
    }
}


/* Pour les écrans plus petits où l'admin bar est plus haute */
@media screen and (max-width: 782px) {
    body.admin-bar .sticky {
        top: 46px;
        /* Hauteur de l'admin bar en tablette */
    }
}

/* Pour les écrans mobile ou admin bar n'est pas fixed */
@media screen and (max-width: 600px) {
    body.admin-bar .sticky {
        top: 0;
        /* Hauteur de l'admin bar en mobile */
    }
}