@import url('https://fonts.googleapis.com/css2?family=Karla:ital,wght@0,200..800;1,200..800&display=swap');

/* ----------------------------------- */
/* V A R I A B L E S */
/* ----------------------------------- */

:root {
    /* -------------COLORS------------- */
    --white: #F9EFE6;
    --white: #F8F1E8;
    --black: #3A855E;
    --black: #2C6F4D;
    --black: #155547;
    --black: #16413d;
    --black: #143230;
    --black: #2B2826;
    --primary: #ff9e54;

    /* -----------SELECTED----------- */
    --black: #1a513d;
    --white: #F0F1EF;
    --primary: #02c48a;
    --blue: #143230;

    /* -------------FONTS------------- */
    /* mettre la font-famly aussi pour les buttons*/
    font-family: 'Karla', Arial, sans-serif;
    font-size: 17px;

    --iconSocial: 24px;
    --paddingHeadFoot: 30px;
    --marginIMG: 5px;
    --inspiHeight: 250px;
    --skillsHeight: 160px;
    --caseDesktop: 60px;
    --gridDesktop: calc(100% - 1 * var(--marginIMG));

    /* -------------MEDIA QUERIES------------- */
    /* et pour les fonctions js window.innerWidth */
    /* Tablette : 768px */
    /* Mobile : 450px */
}

button {
    font-family: 'Karla', Arial, sans-serif;
    color: var(--black);
}

/* ----------------------------------- */
/* M A I N */
/* ----------------------------------- */

body {
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
    background-color: var(--white);
    color: var(--black);
}

main {
    margin: 0;
    /* haut droite bas gauche */
    padding: 70px 35px 90px 30px;
    /* pour le padding-bottom
    espace entre le bas du main et la border top du footer = espace entre onglets du header et h1 en haut
    => soit 50px margin-top h1 + 20px padding-top main + 20px padding-bottom header = 90px */
    min-height: calc(100vh - 75px);
    /* height header : 70px */
    /* on ne soustrait plus le header car il est en position fixed avec le show on scroll up */
    /* height footer : 75px (24px de haut + 25 et 25 de padding + 1px de border) */
    box-sizing: border-box;
}

h1 {
    font-size: 3.2rem;
    padding: 0;
    margin: 0;
    margin-bottom: 30px;
    margin-top: 70px;
    margin-left: -4px;
}

/* Exception sinon ça coupe la pointe du V en français */
#h1Projet2 {
    margin-left: 0;
}

/* Pour certains titres ou il y a une image / bloc au-dessus, marge plus grande */
#h1About3,
#h1Projet2,
#h1About4 {
    margin-top: 100px;
}

h2 {
    font-size: 1.7rem;
    font-weight: 700;
    margin: 0;
    padding: 0;
    margin-bottom: 30px;
    margin-top: 30px;
}

h3 {
    font-size: 1.5rem;
    text-transform: uppercase;
    margin: 0;
    padding: 0;
    font-weight: 700;
    margin-bottom: 12px;
}

/* Overlay title */
h4 {
    margin: 0;
    padding: 0;
    /* en vw pour que ça s'adapte à la lageur de l'écran */
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 20px;
}

main p {
    margin: 0;
    padding: 0;
    margin-bottom: 10px;
}

.boldtxt {
    font-weight: 700;
    color: var(--primary);
}

/* ----------------------------------- */
/* M E D I A   Q U E R I E S */
/* ----------------------------------- */

@media (max-width: 1210px) {

    h4 {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {

    main {
        /* height header : 70px */
        /* on ne soustrait plus le header car il est en position fixed avec le show on scroll up */
        /* height footer : 212 px (padding included with box-sizing) */
        min-height: calc(100vh - 212px);
        padding: 70px 20px 90px 20px;
    }

    h1 {
        font-size: 2.8rem;
        margin-left: -3px;
    }

    h2 {
        font-size: 1.6rem;
    }

    h4 {
        font-size: 1.4rem;
    }

    :root {
        --paddingHeadFoot: 20px;
    }
}

@media (max-width: 450px) {

    h1 {
        font-size: 2.1rem;
        margin-left: -2px;
    }

    h2 {
        font-size: 1.4rem;
    }

    h4 {
        font-size: 1.3rem;
    }
    /* reduction marge top titre asso, car parait trop grand en mobile */
    #h1About5 {
        margin-top: 30px;
    }

    /* car en mobile, ce titre a une image au-dessus (lapp) */
    #h1About3 {
        margin-top: 70px;
    }
}

@media (min-width: 1920px) {

    :root {
        font-size: 18px;
    }
}

/* -------------------------------------- */
/* B L U E   U N D E R L I N E */
/* -------------------------------------- */

.blueUnderline {
    color: var(--blue);
    display: inline;
    padding-bottom: 1px;
    border-bottom: 0.8px solid var(--blue);
}

/* -------------------------------------- */
/* H O V E R   U N D E R L I N E   A N I M */
/* -------------------------------------- */

/* ----------------DO------------------- */

.hover-underline-anim {
    display: inline-block;
    position: relative;
}

.hover-underline-anim::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 0.8px;
    bottom: 0;
    left: 0;
    background-color: var(--black);
    transform-origin: bottom left;
    transition: transform 0.25s ease-out;
}

.hover-underline-anim:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* ----------------UNDO------------------- */

.hover-underline-anim2 {
    display: inline-block;
    position: relative;
}

.hover-underline-anim2::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(1);
    height: 0.8px;
    bottom: 0;
    left: 0;
    background-color: var(--black);
    transform-origin: bottom left;
    transition: transform 0.25s ease-out;
}

.hover-underline-anim2:hover::after {
    transform: scaleX(0);
    transform-origin: bottom left;
}

/* ----------------UNDO BLUE------------------- */
/* finalement blue devient primary */

.hover-underline-anim2blue {
    display: inline-block;
    position: relative;
}

.hover-underline-anim2blue::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(1);
    height: 0.8px;
    bottom: 0;
    left: 0;
    background-color: var(--primary);
    transform-origin: bottom left;
    transition: transform 0.25s ease-out;
}

.hover-underline-anim2blue:hover::after {
    transform: scaleX(0);
    transform-origin: bottom left;
}

/* ----------------DO FILTERS------------------- */
/* instant return for hover */

.hover-filters {
    display: inline-block;
    position: relative;
}

.hover-filters:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
    transition: transform 0.25s ease-out;
}

.hover-filters::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 0.8px;
    bottom: 0;
    left: 0;
    background-color: var(--black);
    transform-origin: bottom left;
    transition: transform 0s ease-out;
}

/* -------------------------------------- */
/* T A P   U N D E R L I N E   A N I M */
/* -------------------------------------- */

/* ----------------DO------------------- */

.tap-underline-anim {
    display: inline-block;
    position: relative;
}

.tap-underline-anim::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 0.8px;
    bottom: 0;
    left: 0;
    background-color: var(--black);
    transform-origin: bottom left;
    transition: transform 0.1s ease-out;
}

.tap-underline-anim.active:after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* ----------------UNDO------------------- */

.tap-underline-anim2 {
    display: inline-block;
    position: relative;
}

.tap-underline-anim2::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(1);
    height: 0.8px;
    bottom: 0;
    left: 0;
    background-color: var(--black);
    transform-origin: bottom left;
    transition: transform 0.1s ease-out;
}

.tap-underline-anim2.active:after {
    transform: scaleX(0);
    transform-origin: bottom left;
}

/* ----------------UNDO BLUE------------------- */
/* finalement blue devient primary */

.tap-underline-anim2blue {
    display: inline-block;
    position: relative;
}

.tap-underline-anim2blue::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(1);
    height: 0.8px;
    bottom: 0;
    left: 0;
    background-color: var(--primary);
    transform-origin: bottom left;
    transition: transform 0.1s ease-out;
}

.tap-underline-anim2blue.active:after {
    transform: scaleX(0);
    transform-origin: bottom left;
}

/* ----------------DO FILTERS------------------- */

.tap-filters {
    display: inline-block;
    position: relative;
}

.tap-filters::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 0.8px;
    bottom: 0;
    left: 0;
    background-color: var(--black);
    transform-origin: bottom left;
    transition: transform 0s ease-out;
}

.tap-filters.active:after {
    transform: scaleX(1);
    transform-origin: bottom left;
    transition: transform 0.1s ease-out;
}

/* -------------------------------------- */
/* A C T I V E   P A G E */
/* -------------------------------------- */

.activePage {
    /* important pour écraser les propriétés dans les autres feuilles de style qui sont chargées
    après main.css */
    padding-bottom: 1.8px !important;
    border-bottom: 0.8px solid var(--black) !important;
    /* color: var(--primary) !important; */
    pointer-events: none;
}

.activePageMobile {
    border-bottom: 0.8px solid var(--black) !important;
    /* color: var(--white) !important; */
    pointer-events: none;
}

.activeFilter {
    border-bottom: 0.8px solid var(--black) !important;
    pointer-events: none;
}