/* 
    <img src="{{ url('theme://images/logo/' ~ logo_file) }}" alt="{{ logo_file }}"/> 
*/


/* FONTS */
@import url("iconic/css/iconmonstr-iconic-font.min.css");
@import url("fonts.css");

/* ----------------------------------------------------- NAVIGATION SCROLL SNAP EFFECT */
*{
    margin: 0;
    padding: 0;
    -webkit-transition: all 1s ease-in-out;
    transition: all 1s ease-in-out;
}
/* activation de “scroll snap” */
html, body {
    font-size: 12px;
    height: 100%;
    margin: 0;
}
section:not(section.s-category, section.s-error) {
  /* important */
  scroll-snap-align: start;

  /* fix height width */
  height: 100vh;
  width: 100%;

  /* layout */
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 10rem 2rem 0rem 2rem;

  /* scroll inside sections */
  max-height: 100vh;
  max-width: 100%;
  overflow-y: scroll;
}
html {
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth; 
    overflow-y: scroll;
    font-size: 10px;
}
/* Body responsive */
@media only screen and (max-width: 800px) {
    *{
        -webkit-transition: all 0s ease-in-out;
        transition: all 0s ease-in-out;
    }
    html {
        font-size: 9.375px;
        scroll-snap-type: none;
    }
    section{
        padding: 6rem 2rem 0rem 2rem;
    }
}
/* ---------------------------------------------------------------------- */
/* GLOBAL SETTINGS */
:root{
    --blue : #1E39CD;
    --white : white;
    --light-color : #cacaca;
    --tonic-one : rgb(246, 212, 29);
    /* VERT : #a6f1ad */
    --width: 25%;
    --height:calc(var(--width) / 4);
    --img-width: 40rem;
}
/* GLASS EFFECT */
.s-header,
.item-folio, 
.section-intro, 
.section-resume, 
.resume-header,
.s-works::after,  
.s-error h1, 
.category-gallery-wrapper, 
.category-item-folio__thumb a,
.form-field button,
textarea,
input,
.s-contact>div,
.toggle-sound{
    background: rgba(255, 255, 255, 0.6);
    border-radius: 10px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}
body {
    font-family: "Roboto-regular", sans-serif;
    font-size: 1.6rem;
    line-height: 1.875;
    color: var(--blue);
    margin: 0;
    padding: 0;
    background-color: var(--light-color);
    /* BACKGROUND Doodles */
    background-image: url(../images/doodles.jpg);
    background-size:contain;
    background-blend-mode:overlay;
}

/* LINKS */
a, button, input, textarea {
    font-family: "Roboto-regular", sans-serif;
    color: var(--blue);
    background-color: var(--tonic-one);
    border-radius: 50px;
    padding: .2em .5em;
    border: none;
    transition: all .3s ease-in-out;
}
a:hover:not(.item-folio__thumb a), a:focus:not(.item-folio__thumb a), a:active:not(.item-folio__thumb a), button:hover {
    cursor: pointer;
    color: var(--blue);
    background-color: var(--white) !important;
}
a:focus, button:focus {
    outline: none;
}
.btn--stroke, .scroll-link, .header-menu-toggle{
}

/* TYPOGRAHPY */
/* titles */
h1, h2 {
    font-style: normal;
    font-weight: normal;
    text-rendering: optimizeLegibility;
    padding: 1rem 0rem;
}
h1, .h01 {
    font-family: "Climate_Crisis-regular", serif;
    font-size: 3.6rem;
    line-height: 1.25;
}
h2, .h02{
    font-family: "Roboto-regular", sans-serif;
    font-size: 3rem;
    line-height: 1.3;
}
h3, .h03{
    font-family: "Roboto-regular", sans-serif;
    font-size: 2rem;
    line-height: 1.2;
}

/* paragraphs */
p img {
    margin: 0;
}
p:not(.home-content__main p, p.item-folio__cat){
    font-family: "Roboto-regular", sans-serif;
    font-size: 2rem;
    line-height: 1.4;
    font-weight: normal;
    padding: 1rem 0rem;
    color: var(--blue);
}

/* Typo Responsive */
@media only screen and (max-width: 600px) {
    h1, .h01 {
        font-size: 3.3rem;
        letter-spacing: -.07rem;
    }
}
@media only screen and (max-width: 800px) {
    p.lead {
        font-size: 1.8rem;
    }
}

/* ---------------------------------------------------------------------- */
/* HEADER NAVIGATION BAR */
/* ---------------------------------------------------------------------- */
.s-header {
    display: flex;
    justify-content: space-between;
    width: 100%;
    position: fixed;
    top: 0;
    z-index: 500;
}

/* NAVIGATION MENU */
.footer-site-logo{
    display: flex;
    height: min-content;
    padding: 0 !important;
}
.header-nav-wrap, .footer-site-logo{
    font-family: "Roboto-regular", sans-serif;
    font-weight: bold;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .25rem;
}

.header-nav {
    display: inline-block;
    list-style: none;
    margin: 0;
    max-height: fit-content;
    height: fit-content;
}

.header-nav li {
    display: inline-block;
    padding-left: 0;
}

.header-nav li a, .footer-site-logo span{
    display: block;
    padding: 1rem 2rem;
}
.header-nav li.current a {
    font-family: "Roboto-regular", sans-serif;
    color: var(--white);
    background-color: var(--tonic-one);
}
.footer-site-logo img{
    margin: .5rem 0rem 0rem 2rem;
    height: 3rem;
}

/* ANIMATION NAVIGATION BAR */
/* Height resize */
.s-header.sticky .footer-site-logo img{
    height: 0rem;
    opacity: 0;
}

/* mobile menu toggle */
.header-menu-toggle {
    display: none;
    position: absolute;
    right: 2rem;
    top: 1rem;
    height: 42px;
    width: 42px;
    line-height: 42px;
    font-family: "montserrat-regular", "Montserrat", sans-serif;
    font-size: 1.4rem;
    text-transform: uppercase;
    letter-spacing: .2rem;
    color: var(--tonic-one);
}

.header-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    position: absolute;
    left: .8rem;
    top: 50%;
    background-color: var(--blue);
    font: 0/0 a;
    text-shadow: none;
    color: transparent;
}

.header-menu-toggle span::before,
.header-menu-toggle span::after {
    content: '';
    width: 100%;
    height: 100%;
    background-color: inherit;
    position: absolute;
    left: 0;
}

.header-menu-toggle span::before {
    top: .8rem;
}

.header-menu-toggle span::after {
    bottom: .8rem;
}

.s-header.sticky .header-menu-toggle {
    top: 12px;
}

.header-menu-toggle.is-clicked span {
    background-color: rgba(255, 255, 255, 0);
}

.header-menu-toggle.is-clicked span::before,
.header-menu-toggle.is-clicked span::after {
    background-color: var(--blue);
}

.header-menu-toggle.is-clicked span::before {
    top: 0;
    -webkit-transform: rotate(135deg);
    -ms-transform: rotate(135deg);
    transform: rotate(135deg);
}

.header-menu-toggle.is-clicked span::after {
    bottom: 0;
    -webkit-transform: rotate(225deg);
    -ms-transform: rotate(225deg);
    transform: rotate(225deg);
}


/* -------------------------------------------------------------------
 * responsive:
 * header
 * ------------------------------------------------------------------- */

@media only screen and (max-width: 800px) {
    .header-nav li a, .s-header.sticky .header-nav li a {
        padding: 2rem 2rem;
    }
    .header-nav-wrap {
        display: none;
        height: auto;
        width: 100%;
        right: auto;
        top: 0;
        left: 0;
    }
    .header-nav-wrap .header-nav {
        display: block;
        height: auto;
    }
    .header-nav-wrap .header-nav li {
        display: block;
        margin: 0;
        padding: 0;
        border-bottom: 2px solid var(--tonic-one);
    }
    .header-menu-toggle {
        display: block;
    }
}
/* make sure the menu is visible on larger screens */
@media only screen and (min-width: 801px) {
    .header-nav-wrap {
        display: block !important;
    }
}


/* ---------------------------------------------------------------------- */
/* HOME */
/* ---------------------------------------------------------------------- */
/* FOND GRIS */
.overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: var(--blue);
}
/* IMAGE FOND */
.parallax-slider{
    width: 100%;
    height: auto !important;
}
/* TEXTE */
.home-content{
    z-index: 100;
}
.home-content__main p{
    color: var(--white);
    font-family: "Climate_Crisis-regular", serif;
    line-height: 1.1;
    font-size: 4vw;
    margin-bottom: 2rem;
}
/* BOUTONS */
.home-content__buttons, .home-social {
    font-family: "Roboto-regular", sans-serif;
    display: flex;
    width: fit-content;
    gap: 2rem;
}
/* RÉSEAUX SOCIAUX */
.home-social {
    list-style: none;
    margin: 0;
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    width: fit-content;
}
.home-social a {
    display: block;
    white-space: nowrap;
    padding: 0rem 2rem;
    width: 100%;
    text-align: center;
}
/* animations */
html.ss-preload .home-content__main {
    opacity: 0;
}

html.ss-loaded .home-content__main {
    animation-duration: 2s;
    -webkit-animation-name: fadeIn;
    animation-name: fadeIn;
}

html.no-csstransitions .home-content__main {
    opacity: 1;
}

/* bounce */
@-webkit-keyframes bounce {
    0%, 100% {
        -webkit-transform: translate3d(0, -30px, 0);
        -ms-transform: translate3d(0, -30px, 0);
        transform: translate3d(0, -30px, 0);
    }
    50% {
        -webkit-transform: translate3d(0, -4px, 0);
        -ms-transform: translate3d(0, -4px, 0);
        transform: translate3d(0, -4px, 0);
    }
}

@keyframes bounce {
    0%, 100% {
        -webkit-transform: translate3d(0, -30px, 0);
        -ms-transform: translate3d(0, -30px, 0);
        transform: translate3d(0, -30px, 0);
    }
    50% {
        -webkit-transform: translate3d(0, -4px, 0);
        -ms-transform: translate3d(0, -4px, 0);
        transform: translate3d(0, -4px, 0);
    }
}
/* fade in */

@-webkit-keyframes fadeIn {
    from {
        opacity: 0;
        -webkit-transform: translate3d(0, -150%, 0);
        -ms-transform: translate3d(0, -150%, 0);
        transform: translate3d(0, -150%, 0);
    }
    to {
        opacity: 1;
        -webkit-transform: translate3d(0, 0, 0);
        -ms-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        -webkit-transform: translate3d(0, -150%, 0);
        -ms-transform: translate3d(0, -150%, 0);
        transform: translate3d(0, -150%, 0);
    }
    to {
        opacity: 1;
        -webkit-transform: translate3d(0, 0, 0);
        -ms-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
    }
}
/* fade out */

@-webkit-keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
        -webkit-transform: translate3d(0, -150%, 0);
        -ms-transform: translate3d(0, -150%, 0);
        transform: translate3d(0, -150%, 0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
        -webkit-transform: translate3d(0, -150%, 0);
        -ms-transform: translate3d(0, -150%, 0);
        transform: translate3d(0, -150%, 0);
    }
}
/* Responsive : HOME */

@media only screen and (max-width: 900px) {
    .home-content__main p{
        font-size: 6vw;
    }
}



/* ---------------------------------------------------------------------- */
/* WORKS */
/* ---------------------------------------------------------------------- */
/* Responsive video */
.s-works{
    position: relative;
    max-width: 100vw;
    overflow-y: hidden;
    overflow-x: scroll;
    display: flex;
    flex-direction: row !important;
    gap: 1em;
}
.item-folio, .item-folio__thumb {
    transform-origin: right bottom;
    position: relative;
    overflow: hidden;
    height: 80vh;
    width: 20rem;
    cursor: pointer;
}
/* IMAGES */
.item-folio__thumb img {
    height: 80vh;
    width: auto;
    -webkit-transition: all 0.5s ease-in-out;
    transition: all 0.5s ease-in-out;
    object-fit: cover;
}
.item-folio__thumb a {
    display: block;
    padding: 0;
}

.item-folio__thumb a::before {
    display: block;
    background-color: var(--tonic-one);
    content: "";
    opacity: 0;
    visibility: hidden;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.item-folio__text {
    position: absolute;
    left: 0;
    bottom: 0;
    z-index: 10;
    width: fit-content;
    transform: rotate(-90deg);
    transform-origin: left top;
}

.item-folio__cat {
    padding: 0rem 1.5rem;
    background-color: var(--white);
    font-family: "Climate_Crisis-regular", serif;
    font-size: 2rem;
    width: max-content;
    white-space: nowrap;
}

.item-folio__caption {
    display: none;
}

.item-folio__project-link:hover, .item-folio__project-link:focus, .item-folio__project-link:active {
    background-color: var(--blue);
    color: #000000;
}

/* on hover */
.item-folio:hover .item-folio__thumb a::before {
    opacity: .8;
    visibility: visible;
}
.item-folio:hover {
    z-index: 100;
    transform: rotate(10deg);
    box-shadow: 15px 15px 2px rgba(0, 0, 0, 0.148);
}

/* RESPONSIVE */

@media only screen and (max-width: 800px){
    .item-folio:hover {
        transform: none;
    }
    .item-folio__cat {
        font-size: 2.5rem;
    }
    .item-folio, .item-folio__thumb {
        height: 80vh;
    }
}


/* ---------------------------------------------------------------------- */
/* WORKS CATEGORIES */
/* ---------------------------------------------------------------------- */

.s-category{
    padding: 10rem 2rem 2rem 2rem;
    width: 100vw;
    min-height: 100vh;
    background-color: var(--light-color);
}
.category-grid-img{
    position: relative;
    max-width: 95vw;
    margin: 0 auto;
    flex-wrap: wrap;
}
.category-gallery-wrapper, .category-grid-img{
    display: flex;
    gap: 2rem;
}
.category-gallery-wrapper{
    display: flexbox;
    margin: 0 auto;
    padding: 2rem;
    width: fit-content;
    height: fit-content;
    max-width: 95vw;
}
.category-gallery-wrapper>*, .category-grid-img>*{
    align-self: center;
}
.category-item-folio__thumb{
    align-self:flex-end;
    max-width: 45ch;
    overflow-y: scroll;
}
.category-item-folio__thumb a, .close-gallery{
    font-family: "Roboto-regular", sans-serif;
}
.close-gallery{
    position: absolute;
    top: 1rem;
    right: 1rem;
}

/* CAROUSEL */

.carousel{
    max-width: var(--img-width);
    display:flex;
    flex-wrap:nowrap;         /* empêche la grille */
    scroll-snap-type:x mandatory;
    scroll-behavior:smooth;       
    overflow-x:hidden;
    overflow-y:hidden; 
    gap:0;
    -webkit-transition: -webkit-transform .3s ease-in-out;
    transition: -webkit-transform .3s ease-in-out;
    transition: transform .3s ease-in-out;
    transition: transform .3s ease-in-out, -webkit-transform .3s ease-in-out;
}

/* chaque image */
.carousel > *{
    flex:0 0 100%;
    max-width: 100%;
    max-height: none;
    scroll-snap-align: center;
    display:flex;
    justify-content:center;
    height: var(--img-width);
    width:auto;
    object-fit:contain;
    padding: 1rem;
}

/* cacher scrollbar */
.category-gallery-wrapper::-webkit-scrollbar{
    display:none;
}

.category-gallery-wrapper{
    -ms-overflow-style: var(--tonic-one);
    scrollbar-width: 2rem;
}
/* Toggle button mute-unmute */
.video-wrapper {
  position: relative;
}

.toggle-sound {
    display: none;
    position: absolute !important;
    bottom: 10px;
    left: 10px;
    z-index: 2;
}

/* INTERACTIVITY Of PROJECTS */
/* Display none */
.img-works:not(.img-works:first-of-type), .category-item-folio__thumb{
    display: none;
}
/* Hover / clic */
.carousel:hover {
    transform: scale(1.05);
    cursor: zoom-in;
}

/* Visible */
.category-item-folio__thumb.visible, .toggle-sound.visible{
    display: block;
}
.img-works.visible{
    cursor: default !important;
    filter: none !important;
}
.img-works.visible, .carousel.visible{
    display: flex !important;
}
.carousel.visible{
    overflow-x: auto;
}
.carousel .img-works.visible:first-of-type::after{
    content: ">";
    font-size: 4rem;
    line-height: 1;
    height: fit-content;
    background-color: red;
    position: fixed;
    top: 0;
}



/* RESPONSIVE */
@media only screen and (max-width: 800px) {
    .category-grid-img, .category-gallery-wrapper{
        flex-direction: column;
        flex-wrap: nowrap;
    }
}

/* ---------------------------------------------------------------------- */
/* EXPERIENCE */
/* ---------------------------------------------------------------------- */
#experience {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    margin: 0 auto;
}
#experience span{
    font-family: "Roboto-regular", sans-serif;
    font-size: 1.5rem;
    font-style: italic;
    color: var(--white);
    background-color: var(--light-color);
    padding: 0rem .5rem;
}
.section-resume, .section-intro{
    width: fit-content;
    max-width: 40%;
}
.section-intro{
    max-width: 50ch;
    height: fit-content;
}
/* Scroll Experiences Resume */
.section-resume{
    overflow-y: scroll;
    overflow-x: hidden;
    position: relative;
    max-height: fit-content;
}
/* TITLES */
.resume-header{
    display: block;
    position: sticky;
    top: 0;
    z-index: 100;
    white-space: nowrap;
}
.timeline-block{
    border-top: 2px solid var(--tonic-one);
	position: relative;
    display: flex;
    padding: 1rem 0rem;
    gap: 1rem;
}
.timeline-content {
    padding: 0;
}
.resume-timeline {
	max-width: 50ch;
    position: relative;
}

.timeline-ico {
	background: var(--tonic-one);
	border-radius: 50%;
	text-align: center;
	color: var(--white);
}
.timeline-ico .fa, .timeline-ico{
    line-height: 4.8rem;
    height: 4.8rem;
    width: 4.8rem;
}
/* Experinces Responsive */
@media only screen and (max-width: 800px) {
    #experience {
        flex-direction: column;
    }
    .section-resume, .section-intro{
        right: 0;
        max-width: 100%;
    }
}
/* --------------------- */

/* ---------------------------------------------------------------------- */
/* CONTACT */
/* ---------------------------------------------------------------------- */

.s-contact {
    position: relative;
    display: flex;
}
.s-contact>div{
    gap: 2rem;
    margin: 0 auto;
    width: 50vw;
}
.contact-title{
    max-width: 80ch;
    width: fit-content;
}
.contact__infos{
    display: flex;
}



/* MESSAGES SEND */
.message-warning, .message-success {
    display: none;
    font-size: 1.5rem;
    line-height: 2;
    padding: 3rem;
    margin-bottom: 3.6rem;
    width: 100%;
}









/* ---------------------------------------------------------------------- */
/* FOOTER */
/* ---------------------------------------------------------------------- */
footer {
    position: absolute;
    left: 50%;
    bottom: 2rem;
    transform: translate(-50%,0);
    font-size: 1.2rem;
    text-align: center;
    width: fit-content;
    font-family: "Roboto-regular", sans-serif;
    color: var(--blue);
    background-color: var(--tonic-one);
    white-space: nowrap;
}
.footer-logo{
    padding-top: 1rem;
    height: 4rem !important;
    width: auto;
}

/* ---------------------------------------------------------------------- */
/* ERROR */
/* ---------------------------------------------------------------------- */

.s-error{
    margin: 0;
    padding: 0;
    max-width: 100vw;
    height: 100vh;
    position: relative;
    overflow: hidden !important;
}

.s-error h1{
    position: absolute;
    font-size: 5vw;
    width: var(--width);
    text-wrap: nowrap;
    box-shadow: 15px 15px 2px rgba(0, 0, 0, 0.148);
    animation: toRight linear 6.8s infinite alternate, bounce linear 7s infinite alternate;
}

@keyframes bounce {
  0% {
    top:0;
  }
  48% {
  }
  50% {
    top: calc(100% - var(--height));
  }
  52% {
  }
  100% {
    top: 0;
  }
}

@keyframes toRight {

  0% {
    left: 0;
  }

  100% {
    left: calc(100% - var(--width));
  }
}
