/*
Theme Name: GIT_le transfo
Theme URI: 
Author: jojo
Author URI: https://joanajost.fr
Description: hostinger git. thème personnalisé pour le transfo. identité visuelle et illustrations par martha salimbeni. typographie par laura csocsán
Version: 0.0
License: 
License URI: 
Text Domain: xxx
Tags: 
*/

:root {
    /* couleurs */
    --white: #e5e5e5;
    --black: #252626;

    --highlight-bg: #252626e0;
    --highlight-text: #e5e5e5e0;
    /* typos */
    --sans-serif: 'Ambiant';
    /* tailles */
    --body-txt: 12pt;
    --large-txt: 24pt;

    /* marges */
    --margin-big: 35px;

    /* mesures */
    --medium-height: 7rem;
    --big-height: 12rem;

    /* ombre */
    --shadow: 0px 0px 3px rgba(0, 0, 0, 0.25);

    /* colonnes */
    --scrollbar-width: 0px;
    --col-1: calc((100vw - var(--scrollbar-width) - (var(--margin-big) * 2)) / 12);
    --col-2: calc(var(--col-1) * 2);
    --col-3: calc(var(--col-1) * 3);
    --col-4: calc(var(--col-1) * 4);
    --col-5: calc(var(--col-1) * 5);
    --col-6: calc(var(--col-1) * 6);
    --col-7: calc(var(--col-1) * 7);
    --col-8: calc(var(--col-1) * 8);
    --col-9: calc(var(--col-1) * 9);
    --col-10: calc(var(--col-1) * 10);
    --col-11: calc(var(--col-1) * 11);
    --col-12: calc(var(--col-1) * 12);

    --col-05: calc(var(--col-1) * 0.5);
}

@media (min-width: 1500px) {
    :root {
        --body-txt: clamp(12pt, 0.9vw, 18pt);
        --large-txt: clamp(24pt, 1.8vw, 36pt);

        --big-height: clamp(10rem, 8vw, 15rem);
    }
}

/* Réinitialisation de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-optical-sizing: auto;
}

html {
    /* espace de la scrollbar toujours réservé, même sans contenu scrollable,
       pour que --col-1 reste cohérent d'une page à l'autre */
    scrollbar-gutter: stable;
}

/* GENERAL */

body {
    background-color: var(--white);
    font-family: var(--sans-serif), sans-serif;
    font-size: var(--body-txt);
    font-weight: normal;

    margin: var(--margin-big);
    line-height: 1.05;
}

*::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

*::-webkit-scrollbar-thumb {
    background: var(--highlight-bg);
    border-radius: 4px;
}

*::-webkit-scrollbar-track {
    background: transparent;
}

/* bouton reset */
button {
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    border: none;
    background-color: unset;
    cursor: pointer;
    color: inherit;
}

::-moz-selection {
    background-color: var(--highlight-bg);
    color: var(--highlight-text);
}

::selection {
    background-color: var(--highlight-bg);
    color: var(--highlight-text);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-size: var(--large-txt);
    font-weight: inherit;
    text-transform: lowercase;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    /* border-bottom: 0.75px solid currentColor; */
    text-decoration: underline;
    text-underline-offset: 0.2em;
    text-decoration-thickness: 0.75px;
}


input {
    background-color: unset;
    border: unset;
    font-family: inherit;
    font-size: inherit;
    border-bottom: solid 0.75px;
    line-height: inherit;
}

input:focus,
input:focus-visible {
    outline: none;
}

/* header */
.site-header {
    position: fixed;
    width: calc(var(--col-1) + var(--margin-big));
    min-width: 150px;
    max-width: 10em;
    text-align: center;
    /* top: 15px; */
    left: 25px;
    display: flex;
    justify-content: center;
    z-index: 600;
}

/* le logo reste visible au-dessus de l'image plein écran de la home, mais ne doit pas intercepter le clic qui la ferme */
body.splash-active .site-header {
    pointer-events: none;
}

body.splash-active .site-header-nav {
    display: none;
}

body.splash-active {
    overflow: hidden;
}

/* évite la bande réservée par scrollbar-gutter: stable une fois la scrollbar masquée (Chrome) */
html.splash-active {
    overflow: hidden;
    scrollbar-gutter: auto;
}

#header-logo {
    width: 100%;
    transform: translateY(-29px);

    margin: 0;
}

.site-header-nav {
    position: absolute;
    width: 100%;
    top: var(--big-height);
}

.header-menu .current-menu-item>a,
.header-menu .current_page_item>a,
.header-menu .current-menu-ancestor>a,
.header-menu .current-page-ancestor>a,
.header-menu .current-menu-parent>a,
.header-menu .current-page-parent>a {
    text-decoration: underline;
    text-underline-offset: 0.2em;
    text-decoration-thickness: 0.75px;
}

/* image fixe dans le header de l'accueil, réglable via le Customizer */
.site-header-image img {
    display: block;
    width: 100%;
    height: auto;
}

.site-header-image {
    position: fixed;
    bottom: var(--margin-big);
    width: var(--col-2);
}

/* main */
main {
    margin-left: var(--col-3);
}

.site-title-wrap {
    display: block;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}


/* ______________________
MEDIA QUERIES
_________________________ */

@media (max-width: 750px) {
    :root {
        --body-txt: 12pt;
        --large-txt: 20pt;

        --margin-big: 20px;

        --medium-height: 4rem;

        --col-1: calc((100vw - (var(--margin-big) * 2)) / 4);

    }

    .site-header {
        position: fixed;
        width: 100%;
        min-width: unset;
        max-width: unset;
        text-align: unset;
        top: 0;
        left: 0;
        flex-direction: row;

        background-color: var(--white);
        padding: var(--margin-big) var(--margin-big) 0 var(--margin-big);
        justify-content: space-between;
    }

    #header-logo {
        width: calc(var(--col-1) + var(--col-05));
        transform: translate(-5px, -13px);
        margin: 0;
    }

    .header-menu {
        display: flex;
        justify-content: space-between;
    }

    .site-header-nav {
        position: relative;
        width: var(--col-2);
        top: 0;
    }


    main {
        margin-left: 0;
        margin-top: var(--big-height);
        margin-bottom: var(--medium-height);
    }

    .site-header-image {
        position: relative;
        bottom: 0;
        width: 100%;
    }

}