/*
Theme Name: shlaglab
Theme URI: 
Author: jojo
Author URI: https://joanajost.fr
Description: Le thème du SHLAGLAB 2025
Version: 2.0
License: 
License URI: 
Text Domain: mon-theme
Tags: 
*/

@font-face {
    font-family: 'Inter';
    src: url('assets/fonts/InterVariable.woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('assets/fonts/InterVariable-Italic.woff2') format('woff2');
    font-weight: 100 900;
    font-style: italic;
    font-display: swap;
}

:root {
    /* couleurs */
    --white: #fbfbfb;
    --dark-white: #efefef;
    --black: #000000;
    --red: #e00b0b;
    --beige: #d3cdc1;

    /* fonte */
    --inter: 'Inter', Arial, Helvetica, sans-serif;

    /* ombre */
    --shadow: 0px 0px 3px rgba(0, 0, 0, 0.15);
    --shadow2: 0px 0px 2px rgba(0, 0, 0, 0.3);

    /* boutons mobile */
    --coin-hg: 0px 999px 999px 999px;
    --coin-hd: 999px 0px 999px 999px;
    --coin-bg: 999px 999px 999px 0px;
    --coin-bd: 999px 999px 0px 999px;
}



/* Réinitialisation de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


body {

    background-color: var(--beige);
    background-image: url(assets/img/fond.png);

    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    font-family: var(--inter);

    width: 100vw;
    height: 100vh;
    overflow: hidden;
    position: relative;


}

.content-error {
    background-color: white;
    display: block;
    max-width: 600px;
    margin: 120px auto;
    padding: 20px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    width: 90%;
    text-align: center;
}

.error-image {
    position: relative;
    translate: 0 24px;
    max-width: 50%;
}

::-moz-selection {
    background-color: #353535;
    color: rgb(220, 220, 220);
}

::selection {
    background-color: #353535;
    color: rgb(220, 220, 220);
}

a {
    color: var(--red);
    text-decoration: none;
}




#cartons-page {
    display: block;
    position: absolute;
    width: 100vw;
    height: 100vh;
    left: 0;
    bottom: 0;
    pointer-events: none;
}

#cartons-page img {
    position: inherit;
    width: 100%;
    height: auto;
    bottom: 0;
    pointer-events: none;
}

/* --------------------
HEADER
-------------------- */

.site-header {
    display: block;
    position: fixed;
    z-index: 995;
}

.custom-logo {
    background-color: #fff;
    max-height: 50px;
    width: auto;
    position: fixed;
    top: 0;
    left: 0;
    margin: 10px;
    border-radius: 50px;
    padding: 0 10px 10px 10px;
    box-sizing: border-box;
    box-shadow: var(--shadow);
}

/* bouton Menu */
.menu-toggle {
    background-color: var(--white);
    color: var(--red);
    padding: 10px 15px;
    font-size: 14pt;
    border: none;
    cursor: pointer;
    font-family: var(--inter);
    font-weight: 600;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 0.05em;
    border-radius: 50px;
    position: fixed;
    top: 0;
    right: 0;
    margin: 10px;
    box-shadow: var(--shadow);
}

#menu-toggle-mobile {
    display: none;
}

/* The Close (×) Button */
.close-menu-toggle {
    font-family: var(--inter);
    font-weight: 600;
    background-color: var(--white);
    margin: 10px;
    padding: 0 0.4em;
    color: var(--red);
    font-size: 30px;
    border: none;
    cursor: pointer;
    position: absolute;
    top: 0;
    right: 0;
    z-index: 1000;
    border-radius: 50px;
}

.close-menu-toggle p {
    vertical-align: 5px;
    display: inline;
}

.menu-toggle:hover,
.close-menu-toggle:hover {
    background-color: var(--dark-white);
}

#main-nav {
    background-color: var(--white);
    padding: 20px 0 0 0;
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    box-sizing: border-box;

    transform: translateX(100%);

    transition: transform 0.7s ease-in-out;
    box-shadow: var(--shadow);

}

#main-nav.open {
    transform: translateX(0);
}

.menu {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 2em 0;

    list-style: none;

    font-family: var(--inter);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 16pt;
}

.menu li {
    border-bottom: 1px solid var(--red);
}

.menu li:last-child {
    border-bottom: none;
}

.menu li:hover {
    background-color: var(--dark-white);
}

.menu a {
    color: var(--red);
    text-decoration: none;
    padding: 10px 1em 10px 0.7em;
    display: block;
}

#credits-menu {
    position: absolute;
    display: block;
    width: 100%;
    bottom: 0;
    padding: 10px;
    box-sizing: border-box;
    text-align: center;
    color: var(--red);
    font-size: 10pt;
}


/* ------------
FOOTER
---------------- */

#footer-banner {
    position: fixed;
    width: 100%;
    background-color: #0b0b0b;
    color: #fff;
    padding: 10px;
    bottom: 0;
    left: 0;
    box-sizing: border-box;
    text-transform: uppercase;
    font-size: 16pt;
    font-weight: 600;
    letter-spacing: 0.03em;

    transition: transform 0.5s ease;
    transform: translateY(0);
    z-index: 1005;
}

#footer-banner.hidden {
    transform: translateY(100%);
}

#footer-banner a {
    color: #fff;
}

#footer-banner a:hover {
    text-decoration: none;
}

.banner-content {
    text-align: center;
}

.banner-text {
    display: inline-block;
    margin-right: 25px;
}

#close-banner {
    position: absolute;
    right: 0;
    top: 0;
    /* top: -3%; */
    top: 48%;
    transform: translate(-50%);
    background: none;
    border: none;
    color: white;
    font-size: 24pt;
    cursor: pointer;
    line-height: 0%;
}


/* Style du bouton retour en haut */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--white);
    color: var(--black);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: none;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    cursor: pointer;
    box-shadow: var(--shadow);
    z-index: 1000;
}

.scroll-to-top:hover {
    background-color: var(--dark-white);
}


/* -----------------------
TABLEAUX
--------------------------*/

.wp-block-table thead {
    border-bottom: var(--white) 3px solid;
}

.wp-block-table th {
    border: none;
    padding: 10px 5px;

}

.wp-block-table tbody td {
    border: none;
    padding: 5px;
}

.wp-block-table tfoot {
    border-top: var(--white) 3px solid;
}

.wp-block-table tfoot td {
    padding: 10px 5px;
    border: none;
}

.wp-block-table.is-style-stripes {
    border-bottom: none;
}

.is-style-stripes tbody tr {
    border-bottom: 2px solid var(--white);
}

.wp-block-table.is-style-stripes tbody tr:nth-child(2n+1) {
    background-color: var(--dark-white);
}


/*  */

table {
    width: 100%;
    border-collapse: collapse;
    margin: 0.5em 0 1em 0;
}

table thead {
    background-color: var(--dark-white);
    text-transform: uppercase;
    font-size: 11pt;
}

thead tr th {
    padding: 10px 5px;
}

tbody tr {
    border-bottom: 2px solid var(--dark-white);
}

tbody tr:last-child {
    border-bottom: none;
}

tbody tr:hover {
    background-color: var(--dark-white);
}

tbody td {
    padding: 5px
}

table tfoot {
    background-color: var(--dark-white);
    border-top: var(--white) 3px solid;
    text-transform: uppercase;
    font-size: 11pt;
    color: var(--red);
    font-weight: bold;
}

tfoot tr td {
    padding: 10px 5px;
}


.is-hidden {
    display: none !important;
}

/* -------------------
 * BOUTONS 
 * ----------------------*/

button.formsapp-button {
    background-color: var(--red) !important;
    color: white;
    font-family: var(--inter) !important;
    letter-spacing: 0.03em !important;
    border-radius: 50px !important;
    font-size: inherit !important;
}

/* TESTS */

.page h2 {
    color: var(--red);
}

/* --------------
carousel 
-----------------*/
/* Personnalisation de la galerie Slick */
.wp-block-gallery {
    margin: 1em auto;
    max-width: 100%;
}

.slick-prev,
.slick-next {
    background-color: rgba(0, 0, 0, 0.5);
    color: black !important;
    border-radius: 50%;
    padding: 10px;
}

.slick-prev::before,
.slick-next::before {
    color: black !important;
}

.slick-dots li button:before {
    color: rgba(0, 0, 0, 0.5);
}

.slick-slide img {
    display: block;
    width: 100%;
    height: auto;
}

/* bloc détail */

summary {
    font-weight: bold;
    margin-bottom: 1em;
}

wp-block-details {
    margin-bottom: 1em;
}

/* -------------
LIGHTBOX
---------------- */

.lightbox-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.lightbox-overlay img {
    max-width: 90%;
    max-height: 90%;
}

/* Boutons de navigation */
.nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    padding: 10px;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10000;
}

.nav-button.left {
    left: 10px;
}

.nav-button.right {
    right: 10px;
}

/* Bouton de fermeture */
.close-button {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
}

.lightbox img {
    transition: opacity 0.1s ease-in-out;
}

.lightbox img:hover {
    opacity: 0.8;
}


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

    body {
        background-image: url(assets/img/fond_mobile.png);
    }


    #menu-toggle {
        display: none;
    }

    #menu-toggle-mobile {
        display: block;
        font-weight: 500;
        font-size: 18pt;
        box-shadow: 0px 0px 3px rgba(0, 0, 0, 0.15);
    }

    p#signe-menu-mobile {
        transform: rotate(90deg);
    }

    #main-nav {
        width: 100vw;
        transition: transform 0.4s ease-in-out;
    }

    .menu {
        font-size: 19pt;
    }

    .close-menu-toggle {
        font-weight: 425;
        font-size: 45px;
    }

    .slick-prev,
    .slick-next {
        display: none !important;
    }

    button.formsapp-button {
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .scroll-to-top {
        position: fixed;
        bottom: 10px;
        right: 10px;
    }

    /* lightbox */

    .nav-button {
        display: none;
    }

    .lightbox-image {
        max-width: 95%;
        max-height: 95%;
    }

    .lightbox-overlay img {
        max-width: 95%;
        max-height: 95%;
    }

    .lightbox-overlay {
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
    }

    .responsive-tooltip-img {
        max-width: 300px;
    }

}

.save-as-draft-wrapper {
    margin-right: 25px !important;
}

span.classtoolTipsCustomShortCode {
    color: var(--red) !important;
    border-bottom: none !important;
    cursor: pointer;
}