/* CODE SEBASTIEN MICOL */


/* Fonts
--------------------------------------------- */

/**
* This is a variable font
* You can control variable axes as shown below:
* font-variation-settings: wght 900.0;
*
* available axes:
'wght' (range from 100.0 to 900.0
*/
@font-face {
    font-family: 'CabinetGrotesk-Variable';
    src: url('./fonts/cabinet-grotesk/CabinetGrotesk-Variable.woff2') format('woff2'),
        url('./fonts/cabinet-grotesk/CabinetGrotesk-Variable.woff') format('woff'),
        url('./fonts/cabinet-grotesk/CabinetGrotesk-Variable.ttf') format('truetype');
    font-weight: 100 900;
    font-display: swap;
    font-style: normal;
}

/**
* This is a variable font
* You can control variable axes as shown below:
* font-variation-settings: wght 900.0;
*
* available axes:
'wght' (range from 300.0 to 900.0
*/
@font-face {
    font-family: 'Satoshi-Variable';
    src: url('./fonts/satoshi/Satoshi-Variable.woff2') format('woff2'),
        url('./fonts/satoshi/Satoshi-Variable.woff') format('woff'),
        url('./fonts/satoshi/Satoshi-Variable.ttf') format('truetype');
    font-weight: 300 900;
    font-display: swap;
    font-style: normal;
}

/**
  * This is a variable font
  * You can control variable axes as shown below:
  * font-variation-settings: wght 900.0;
  *
  * available axes:
  'wght' (range from 300.0 to 900.0
  */
@font-face {
    font-family: 'Satoshi-VariableItalic';
    src: url('../fonts/Satoshi-VariableItalic.woff2') format('woff2'),
        url('../fonts/Satoshi-VariableItalic.woff') format('woff'),
        url('../fonts/Satoshi-VariableItalic.ttf') format('truetype');
    font-weight: 300 900;
    font-display: swap;
    font-style: italic;
}

/* Structure
--------------------------------------------- */

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'CabinetGrotesk-Variable';
    color: #1E1E1E;
    background-color: #EEEDE6;
}

#page {
    max-width: 1512px;
    margin: 0 auto;
}

.site-main {
    padding: 0 2rem;
}

.entry-content {
    padding-top: 1rem;
}

.wp-block-columns.intro {
    gap: 6rem;
}

.wp-block-columns {
    gap: 0;
    margin-bottom: 6rem;
}

.wp-block-column.description-anim {
    padding-top: 5rem;
}

.wp-block-buttons {
    padding-top: 7rem;
}

.wp-element-button:hover {
    background-color: #1E1E1E;
    border: 2px solid #1E1E1E;
    color: #EBEAE0;
    transition: .15s ease-in-out;
}

.wp-block-button__link {
    font-size: 1.2rem;
    font-weight: 600;
    padding: 1.5rem 1.8rem;
    transition: .15s ease-in-out;

}



/* Typo
--------------------------------------------- */

h1 {
    font-size: 6rem;
    font-style: normal;
    font-weight: 800;
    line-height: 5.4rem;
    /* 90% */
}

h2 {
    font-size: 3.125rem;
    font-style: normal;
    font-weight: 700;
    line-height: 3rem;
    margin-bottom: 0;
}

h2.intro {
    padding-top: 2rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.25rem;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    margin-top: 0.5rem;
}

p {
    margin-bottom: 0;
    font-size: 1.25rem;
    font-style: normal;
    font-weight: 400;
    line-height: 1.5rem;
}

.entry-title {
    display: none;
}

/* Surlignage du texte pour tous les navigateurs */
::selection {
    background-color: #1E1E1E;
    color: #EBEAE0;
}

/* Pour Firefox */
::-moz-selection {
    background-color: #1E1E1E;
    color: #EBEAE0;
}



/* Header
--------------------------------------------- */

.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    position: sticky;
    top: 1em;
    z-index: 99;
}


.main-navigation {
    width: auto;
}

.site-description {
    display: none;
}

a {
    color: inherit;
    text-decoration: none;
}

a:visited {
    color: transparent;
}

a:focus {
    outline: none;
}

a:hover {
    color: inherit;
    outline: none;
}


.site-header .nav-menu li a {
    border-bottom: 2.5px solid transparent;
    padding-bottom: 5px;
    transition: border-color 0.2s ease;
}

.site-header .nav-menu li.current_page_item a,
.site-header .nav-menu li a:hover {
    border-bottom-color: #1E1E1E;
}


.main-navigation li a.active {
    border-bottom-color: #1E1E1E;
}


.site-title {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 430;
}

.site-branding {
    width: 6rem;
}

/* hover safari et firefox */

.site-header .nav-menu li a {
    color: #1E1E1E;
    text-decoration: none;
}

.site-header .nav-menu li a:hover,
.site-header .nav-menu li a:focus {
    color: #1E1E1E;
    outline: none;
}

/* Enlève la mise en surbrillance bleue sur Firefox */
.site-header .nav-menu li a:focus-visible {
    outline: none;
}

/* Nav
--------------------------------------------- */

.nav-menu {
    font-size: 1.25rem;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
}

.site-header .nav-menu li a {
    display: inline-block;
    margin-left: 4rem;
}

#primary-menu ul li a {
    display: inline-block;
}



/* Pour que le Footer reste en bas de la page
--------------------------------------------- */

html,
body {
    width: 100%;
    height: 100%;
}

.site {
    min-height: 100%;
    display: grid;
    grid-template-rows: auto 1fr auto;
    grid-template-columns: 100%;
}

/* Footer
--------------------------------------------- */

#secondary::before {
    /* border-top full width */
    content: "";
    display: block;
    height: 2px;
    background-color: #1E1E1E;
    width: 100%;
    position: absolute;
    left: 0;
}

.widget-area {
    margin: 0 auto;
    padding: 2rem;
    width: 100%;
}


#block-9 {
    padding-top: 4rem;
    padding-bottom: 5rem;
}

.center-widget {
    width: 50%;
    margin: auto;
}


.widget-area p {
    font-size: 1.05rem;
    line-height: 1.2rem;
}

.widget {
    margin-bottom: 0;
}

.widget .wp-block-columns {
    margin-bottom: 0;
    width: 33%;
    gap: 8rem;
}

.wp-block-social-link:hover {
    transform: scale(1);
}

.wp-block-social-link a:hover {
    transform: scale(1) !important;
    color: black !important;
    background-color: #FFFFFF;

}

.wp-block-social-link>a {
    transition: all .25s ease-in-out
}

.nav-title>span {
    transition: all .25s ease-in-out
}

.wp-block-social-links .wp-social-link span:not(.screen-reader-text) {
    font-size: 1rem;
    margin-left: .2em;
    margin-right: .2em;
}


.entry-footer {
    display: none;
}

.site-footer {
    display: none;
}

.wp-block-social-links {
    gap: .4rem;
}


.nav-links {
    padding-top: 4rem;
    font-size: 1.2rem;
}


.nav-links a {
    display: block;
}

.nav-links a:hover .nav-title {
    background-color: #FFFFFF;
    color: #0F0F0F;
    transition: all .25s ease-in-out;
}


.nav-subtitle {
    font-size: 3em;
    line-height: 0.9;
    display: block;
}


.entry-meta {
    display: none;
}

.comments-area {
    display: none;
}

.wp-block-buttons.bouton-desk {
    display: block;
}

.wp-block-buttons.bouton-mob {
    display: none;
}

/* Responsive
--------------------------------------------- */

@media (max-width: 768px) {

    /* Header
--------------------------------------------- */


    /* Footer
--------------------------------------------- */


    .widget-area {
        padding-top: 1.25rem;
    }

    .widget .wp-block-columns {
        width: 50%;
        gap: 3rem;
    }

    .center-widget {
        margin: 0;
    }

    #block-9 {
        padding-top: 3rem;
        padding-bottom: 4rem;
    }

    /* Burger Menu
--------------------------------------------- */

    /* Quand le menu est ouvert, désactive le scroll vertical */
    body.toggled {
        overflow: hidden;
        /* Désactive le scroll vertical */
        position: fixed;
        /* Pour éviter le scroll sur iOS */
        width: 100%;
        /* S'assure que la page occupe toute la largeur */
        height: 100%;
        /* S'assure que la page occupe toute la hauteur */
    }


    .menu-toggle {
        display: block;
        width: 40px;
        height: 40px;
        background: url('images/burger-off.svg') no-repeat center center;
        background-size: contain;
        border: 0;
        text-indent: -50000px;
        position: fixed;
        top: 45px;
        right: 30px;
        z-index: 20;

    }

    .toggled .menu-toggle {
        background-image: url('images/cross.svg');
    }


    body .main-navigation.toggled ul {
        display: flex;
        /* padding-top: 4rem; */
        padding-bottom: 26rem;
    }

    .toggled .nav-menu {
        position: fixed;
        top: 0;
        right: 0;
        left: 0;
        bottom: 0;
        z-index: 15;
        flex-direction: column;
        justify-content: center;
        background-color: transparent;
    }

    .toggled li {
        font-size: 3.5rem;
        padding: 1rem;
        background-color: #1E1E1E;
    }

    .toggled .nav-menu li a {
        padding: 0;
        margin-left: 1rem;
        color: #EBEAE0;

        display: block;
        width: 100%;
        height: 100%;
    }

    .site-header .nav-menu li a:hover,
    .site-header .nav-menu li a:focus {
        /* changer a:hover pour mobile */
        color: #EBEAE0;
        outline: none;
    }

    .site-header .nav-menu li a {
        border-bottom: 2.5px solid transparent;
    }

    .site-branding {
        z-index: 99;
    }


    /* Typo
--------------------------------------------- */

    h1 {
        font-size: 3.12rem;
        line-height: 3rem;
    }

    h2 {
        font-size: 1.87rem;
        line-height: 1.8rem;
    }

    h2.intro {
        padding-top: 1rem;
    }

    /* Ajustements
--------------------------------------------- */

    .entry-content {
        padding-top: .1rem;
        margin-top: .6rem;
    }

    .wp-block-columns.intro {
        gap: 2rem;
        margin-bottom: 3rem;
    }

    .wp-block-columns {
        margin-bottom: 5rem;
    }

    .wp-block-columns.reverse {
        flex-direction: column-reverse;
    }

    .wp-block-column.description-anim {
        padding: 0;
    }

    .wp-block-buttons.bouton-desk {
        display: none;
    }

    .wp-block-buttons.bouton-mob {
        display: block;
        padding-top: 3rem;
    }



}