/* -------------
    SOMMAIRE
------------- */

/*
    @AUTHOR : Nicolas BOUDOT

    STRUCTURE
    Structure globale du site
*/

/*
  00 - ZONE EXTÉRIEURE
        Loader
        Page
  01 - HEADER (EN-TETE)
        nav-up / nav-down
  02 - ZONE INTERIEURE (CONTENU)
        Main
        HeaderPage
        ScrollTop
  03 - ASIDE
        Leftbar
        Rightbar
  04 - FOOTER (PIED DE PAGE)
  05 - PAGE ERREUR
*/



/* -----------------------
  00 - ZONE EXTÉRIEURE
        Loader
------------------------ */

.loader-container {
    position: fixed;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--white);
    z-index: 11;
}

.loader {
    position: relative;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    animation: rotate 1s linear infinite
}

    .loader::before {
        content: "";
        box-sizing: border-box;
        position: absolute;
        inset: 0px;
        border: 5px solid var(--color-primary);
        border-radius: 50%;
        animation: prixClipFix 2s linear infinite ;
    }

    @keyframes rotate {
      100%   {transform: rotate(360deg)}
    }

    @keyframes prixClipFix {
        0%   {clip-path:polygon(50% 50%,0 0,0 0,0 0,0 0,0 0)}
        25%  {clip-path:polygon(50% 50%,0 0,100% 0,100% 0,100% 0,100% 0)}
        50%  {clip-path:polygon(50% 50%,0 0,100% 0,100% 100%,100% 100%,100% 100%)}
        75%  {clip-path:polygon(50% 50%,0 0,100% 0,100% 100%,0 100%,0 100%)}
        100% {clip-path:polygon(50% 50%,0 0,100% 0,100% 100%,0 100%,0 0)}
    }



/* -----------------------
  00 - ZONE EXTÉRIEURE
        PAGE
------------------------ */

body > .page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

    /* Connecté au BO */
    body.admin-bar > .page {
        min-height: calc(100vh - 32px);
    }



/* -----------------------
  01 - HEADER (EN-TETE)
        Widget - Header
------------------------ */

/* Recherche */
.btn-searchMobile {
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid var(--gray-500);
    margin-right: 12px;
    padding: 3px 6px;
    padding-right: 12px;
    font-size: 1.6rem;
    transform: none;
}

    @media (min-width: 992px) {
        .btn-searchMobile {
            display: none;
        }
    }

@media (max-width: 991px) {
    /* Formulaire */
    .widget-search {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        background-color: var(--black);
        padding: 20px;
        transition: top .4s, opacity .4s;
        z-index: 1;
    }

        /* Not Active */
        .js_toggleSearchMobile:not(.active) + .widget-search {
            pointer-events: none;
            top: 60%;
            opacity: 0;
            z-index: 1;
        }

    .widget-search .search-field {
        width: 100%;
    }
}

/* Mon compte + Mon panier */
.box-header {
    display: flex;
    align-items: center;
}

    @media (min-width: 992px) {
        .box-header {
            margin-left: 50px;
        }
    }

.box-header .widget_block + .widget_block {
    border-left: 1px solid var(--gray-500);
    margin-left: 12px;
    padding-left: 12px;
}

    @media (min-width: 992px) {
        .box-header .widget_block + .widget_block {
            margin-left: 20px;
            padding-left: 20px;
        }
    }

/* Mon compte */
.wp-block-woocommerce-customer-account {
    padding: 0;
}

.wp-block-woocommerce-customer-account a {
    display: flex;
    align-items: center;
    text-decoration: none !important;
}

    .wp-block-woocommerce-customer-account a::before {
        content: "\e90c";
        font-family: 'icomoon';
        font-size: 2.2rem;
        line-height: 1;
        margin-right: 6px;
    }

        @media (max-width: 991px) {
            .wp-block-woocommerce-customer-account a::before {
                font-size: 1.6rem;
            }
        }

    /* Hover */
    .wp-block-woocommerce-customer-account a:hover {
        text-decoration: none !important;
    }

.wp-block-woocommerce-customer-account a svg {
    display: none;
}

@media (max-width: 991px) {
    .wp-block-woocommerce-customer-account a .label {
        display: none;
    }
}

.wp-block-woocommerce-customer-account a .label {
    font-size: 1.4rem;
    line-height: 1;
}

    /* Hover */
    .wp-block-woocommerce-customer-account a:hover .label {
        color: var(--color-tertiary);
        text-decoration: underline;
    }

/* Mon panier */
.wc-block-mini-cart__button {
    cursor: pointer;
    padding: 0;
}

    /* Hover */
    .wc-block-mini-cart__button:hover:not([disabled]) {
        opacity: 1;
    }

.wc-block-mini-cart__quantity-badge {
    display: flex;
    align-items: center;
    text-align: center;
}

    @media (max-width: 991px) {
        .wc-block-mini-cart__quantity-badge {
            margin-right: 20px;
        }
    }

    /* Before */
    .wc-block-mini-cart__quantity-badge::before {
        content: "\e90b";
        font-family: 'icomoon';
        font-size: 2.2rem;
        margin-right: 6px;
    }

        @media (max-width: 991px) {
            .wc-block-mini-cart__quantity-badge::before {
                font-size: 1.6rem;
            }
        }

.wc-block-mini-cart__quantity-badge svg {
    display: none;
}

.wc-block-mini-cart__badge {
    position: initial;
    display: block;
    color: var(--black);
    font-size: 1.4rem;
    font-weight: 500;
    margin: 0;
    height: auto;
    transform: none;
}

    @media (max-width: 991px) {
        .wc-block-mini-cart__badge {
            position: absolute;
            top: 50%;
            left: 100%;
            font-size: 1.1rem;
            transform: translateY(-50%);
        }
    }

    /* Vide */
    .wc-block-mini-cart__badge:empty {
        opacity: 1;
    }

    /* Hover */
    .wc-block-mini-cart__button:hover .wc-block-mini-cart__badge {
        color: var(--color-tertiary);
        text-decoration: underline;
    }

    /* Pseudo */
    .wc-block-mini-cart__badge::before {
        content: "Mon panier (";
    }

        @media (max-width: 991px) {
            .wc-block-mini-cart__badge::before,
            .wc-block-mini-cart__badge::after {
                color: var(--black);
            }
        }

        /* Vide */
        .wc-block-mini-cart__badge:empty::before {
            content: "Mon panier (0";
        }

            @media (max-width: 991px) {
                .wc-block-mini-cart__badge:empty::before {
                    content: "(0";
                }
            }

    .wc-block-mini-cart__badge::after {
        content: ")";
    }



/* -----------------------
  01 - HEADER (EN-TETE)
------------------------ */

.header {
    /* @changelog 2024-01-12 [EVOL] (Nicolas) Utile pour le menu mobile */
    position: relative;
    background-color: transparent;
    z-index: 2;
}

.header a {
    color: var(--color-secondary);
}

/* TopBar */
.headerTopBar {
    position: relative;
    background-color: var(--gray-300);
    padding: 8px 40px;
}

.headerTopBar a {
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--white);
}

.rs {
    display: flex;
    align-items: center;
}

    .rs li:not(:first-child) {
        margin: 0 0 0 10px;
    }

.rs a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 34px;
    height: 34px;
}
    .rs a span{
        font-size: 34px;
        color: var(--color-secondary);
    }

/* Logo + Navigation */
.headerInner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
}
@media (max-width: 1199px) {
    .headerInner-container {
        display: flex;
        align-items: center;
    }
}

/* Logo */
.header__logo {
    padding: 22px 0;
}
@media (min-width: 768px) {
    .header__logo {
        padding: 28px 0 7px;
    }
}

.header__logo img {
    max-width: 50px;
}
@media (min-width: 768px) {
    .header__logo img {
        min-width: 128px;
        max-width: initial;
    }
}



/* -----------------------
  01 - HEADER (EN-TETE)
        nav-up / nav-down
------------------------ */

.header.scrollUp {
	position: fixed;
	top: 0;
	width: 100%;
	transition: top 0.2s ease-in-out;
	z-index : 2;
}

    .header.scrollUp.nav-up {
        transition: top 0.2s ease-in-out;
    }

    .header.scrollUp.nav-down {
        -webkit-box-shadow: 0px 3px 5px 0px rgba(0,0,0,0.32);
        -moz-box-shadow: 0px 3px 5px 0px rgba(0,0,0,0.32);
            box-shadow: 0px 3px 5px 0px rgba(0,0,0,0.32);
    }



/* -----------------------------
  01 - HEADER (EN-TETE)
        Widgets Mobile Bottom
----------------------------- */

.widgets-mobile-bottom {
    z-index: 3;
    flex: 1;
    display: flex;
    align-items: center;
}

    @media (min-width: 1200px) {
        .widgets-mobile-bottom {
            display: none;
        }
    }



/* ---------------------------------
  02 - ZONE INTERIEURE (CONTENU)
        Main
--------------------------------- */

main {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.contentPage {
    flex-grow: 1;
}



/* ---------------------------------
  02 - ZONE INTERIEURE (CONTENU)
        HeaderPage
--------------------------------- */

.headerPage {
    position: relative;
    margin: 40px 0;
}
@media (min-width: 1200px) {
    .headerPage-custom {
        margin: 0 0 -40px;
    }
}
.home .headerPage {
    aspect-ratio: 393 / 768;
    margin-top: -170px;
    z-index: 1;
    background-color: #0F0915;
    display: flex;
    margin-bottom: 0;
}
@media (min-width: 768px) {
    .home .headerPage {
        height: 65vh;
        aspect-ratio: initial;
    }
}
@media (min-width: 1200px) {
    .home .headerPage {
        aspect-ratio: 13 / 7;
        height: initial;
    }
}

.headerPage__description {
    color: var(--gray-800);
}

.headerPage__img {
    aspect-ratio: 443 / 439;
    border-radius: 50%;
}

    @media (max-width: 991px) {
        .headerPage__img {
            margin-top: 15px;
        }
    }
    @media (min-width: 768px) and (max-width: 991px) {
        .headerPage__img {
            max-width: 322px;
            margin: 15px auto 0;
        }

    }

.headerPage-picture {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: .5;
}

.headerPage-container {
    margin-top: auto;
    z-index: 3;
    position: relative;
    text-align: center;
    padding-bottom: 86px;
}
@media (min-width: 1600px) {
    .headerPage-container {
        margin-bottom: auto;
        padding-bottom: 0;
    }
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 4rem;
    font-weight: bold;
    color: var(--color-secondary);
    line-height: 56%;
}
@media (min-width: 768px) {
    .countdown-item {
        font-size: 8rem;
    }
}
.countdown-item:not(:first-child) {
    margin-left: 24px;
}
@media (min-width: 768px) {
    .countdown-item:not(:first-child) {
        margin-left: 50px;
    }

}
.time-unit {
    font-size: 1.4rem;
    color: var(--white);
}
@media (min-width: 768px) {
    .time-unit {
        font-size: 1.6rem;
    }

}

#countdown-timer {
    display: flex;
    justify-content: center;
    margin-bottom: 78px;
}
@media (min-width: 768px) {
    #countdown-timer {
        margin-bottom: 56px;
    }
}

.headerPage-container h1 {
    font-size: 6rem;
    color: var(--white);
    margin-bottom: 0;
}
@media (min-width: 768px) {
    .headerPage-container h1 {
        font-size: 8rem;
    }
}

.headerPage-text {
    color: var(--white);
    font-size: 3rem;
    line-height: 120%;
    margin-bottom: 20px;
}
@media (min-width: 768px) {
    .headerPage-text {
        font-size: 4rem;
    }

}


/* ---------------------------------
  02 - ZONE INTERIEURE (CONTENU)
        ScrollTop
--------------------------------- */

/*
  Infos :
    On gère l'espace avec reCaptcha v3 mais aussi
    avec l'effet sticky avant le footer
*/

.scrollTop {
    position: sticky;
    bottom: 60px;
}



/* ---------------------------------
  03 - ASIDE
        Leftbar
--------------------------------- */




/* ---------------------------------
  03 - ASIDE
        Rightbar
--------------------------------- */




/* -----------------------------
  04 - FOOTER (PIED DE PAGE)
----------------------------- */

.footer {
    margin-top: auto;
}

.footer a {
    color: var(--color-quinary);
}

.footer__menu {
    margin: 15px 0;
    line-height: 1.5;
}

.footer__menu ul {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
}

    @media (max-width: 991px) {
        .footer__menu ul {
            flex-wrap: wrap;
        }
    }

.footer__menu ul li {
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer__menu .widget_nav_menu ul li a {
    font-size: 1.4rem;
    font-weight: 300;
    color: #96918B;
}

    .footer__menu .widget_nav_menu ul li:not(:last-child) a::after {
        content: "-";
        color: #96918B;
        margin: 0 5px;
    }

.footer .rs {
    justify-content: center;
}
@media (max-width: 767px) {
    .footer .rs {
        margin-top: 18px;
    }
}

.footer__item {
    background-color: var(--gray-800);
    color: var(--white);
    margin-top: auto;
    padding: 70px 40px;
}
    .footer__item p {
        font-size: 1.2rem;
    }

.footer__menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
@media (max-width: 767px) {
    .footer__menu-item {
        flex-direction: column;
    }
}

.footer__logo > a {
    padding: 0 8px;
}

.event-organised {
    position: fixed;
    bottom: 0;
    right: 15px;
    z-index: 4;
    display: flex;
}

.event-organised-item {
    background-color: var(--white);
    display: inline-flex;
    align-items: center;
    max-width: 212px;
    padding: 5px;
}
@media (min-width: 768px) {
    .event-organised-item {
        flex-direction: column;
        max-width: 119px;
        padding: 12px;
    }
}
    .event-organised-item span{
        font-size: 1.2rem;
        color: var(--gray-800);
        text-align: center;
        line-height: 1;
        margin-bottom: 3px;
    }
    .event-organised-item img{
        max-width: 94px;
    }

.event-organised-block::before,
.event-organised-block::after {
    content: '';
}
.event-organised-block::before,
.event-organised-block::after,
.event-organised-block span {
    width: 11px;
    height: 6px;
    background-color: var(--black);
    display: block;
}
@media (min-width: 768px) {
    .event-organised-block::before,
    .event-organised-block::after,
    .event-organised-block span {
        width: 25px;
        height: 14px;
    }
}
.event-organised-block {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
