/* *****************************************************************
								TOOLS
***************************************************************** */

*, *::before, *::after {
	box-sizing: inherit; /* On spécifie que la largeur (width) de chaque boîte comprend le padding et la bordure (par défaut, c'est seulement la largeur du contenu) */
}

html {
	font-size: 62.5%; /* 1rem = 10px (la formule est 10/16*100) la taille par défaut étant 16px */
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-size: 1.6rem; /* on remets la taille du texte par défaut pour le body à 16px en utilisant les rem comme unité) */
    letter-spacing: 1px;
}

a {
    text-decoration:none;
    transition: all .5s;
}

a:focus-visible {
    outline: none;
}

figure {
    margin:0;
}

h1, h2, h3, h4, h5, h6 {
    margin:0;
}

ul {
    padding: 0;
}
li {
    list-style: none;
}
/* *****************************************************************
						    VARIABLES
***************************************************************** */

:root {
    
    /* Color */
    --red: #e73e3b;
    --orange: #D77C3D;
    --green: #3d7b4f;
    --beige: #E2D7CE;
    --grey: #f2f2f2;
    --black : #343a40;
    --gradient : linear-gradient(81deg, rgba(255,119,0,1) 0%, rgba(255,218,0,1) 100%);
    /* Fonts */
    --title: 'Nunito', sans-serif;
    --subtitle: 'Merriweather', serif;
    --main: 'Source Sans Pro', sans-serif;
}

/* *****************************************************************
						GLOBAUX TECHNIQUE
***************************************************************** */

img {
	max-width: 100%;
	height: auto;
}

.container {
    max-width:100%;
    width:95%;
    margin:0 auto;
    padding:0 1.5rem;
    position:relative;
}

.p-0 {
    padding:0;
}

.m-0 {
    margin:0;
}
/******** FLEX ********/
.flex {
    display:flex;
}

.column {
    flex-direction:column;
}

.wrap {
    flex-wrap: wrap
}

.justify-end {
    justify-content: flex-end;
}

.justify-center {
     justify-content: center;
}

.justify-around {
     justify-content: space-around;
}

.align-center {
    align-items:center;
}

/******** DISPLAY ********/
.d-block {
    display: block;
}
.m-auto {
    margin:0 auto;
}
/******** FLOAT ********/
.right {
    float:right;
}

.left {
    float:left;
}

/******** WIDTH ********/
.w-100 {
    width:100%;
}

.w-60 {
    width:60%;
}

.w-50 {
    width:47%;
}

.w-40 {
    width:40%;
}

.w-33 {
    width:30%;
}

.w-25 {
    width:23%;
}

/******** FONTS ********/
.capital {
    text-transform:uppercase;
}

.underline {
    text-decoration:underline;
}

.bold {
    font-weight:bold;
}

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

.text-red {
    color: var(--red);
}

.text-orange {
    color: var(--orange);
}

.text-green {
    color: var(--green);
}

.text-white {
    color:#fff;
}

.text-muted {
    color: #6c757d;
}

.text-black {
    color:var(--black);
}
/******** ACTIVE ********/
.active {
    background-color: var(--orange);
}
/* *****************************************************************
					    GLOBAUX GRAPHIQUE
***************************************************************** */
/********** BUTTON **********/
.btn {
    display:block;
    padding:1.5rem 2.5rem;
    font-family: var(--subtitle);
    font-size:1.4rem;
    border-radius:3px;
    border: none;
    cursor: pointer;
}

.btn-orange {
    background-color: var(--orange);
    color: white;
    transition: all 0.5s ease-in-out;
}

.btn-green {
    background-color: var(--green);
    color:white;
    transition: all 0.5s ease-in-out;
}

.btn-gradient {
    background: linear-gradient(81deg, rgba(255,119,0,1) 0%, rgba(255,218,0,1) 100%);
    color: white;
    transition: all 0.5s ease-in-out;
}

/********* POSITION *********/
.relative{
    position: relative;
}
.absolute {
    position: absolute;
}
/********** HOVER ***********/
.btn-orange:hover {
    background-color:#fd6a00;
    box-shadow: 0 8px 48px 0 rgba(0,0,0,.1);
}
.btn-gradient:hover {
    box-shadow: 0 8px 48px 0 rgba(0,0,0,.1);
}

a:hover {
    color: var(--green);
}
/******** VISIBILITY ********/
.hidden {
    display: none;
}
/* *****************************************************************
					           MAIN
***************************************************************** */
body {
    color : var(--black);
    font-family: var(--main);
    line-height: 1.4;
}
h1 {
    font-size:5rem;
}

h2 {
    font-size:4rem;
}

h3 {
    font-size:2.5rem;
}

h4 {
    font-size:2rem;
    color:var(--orange)
}

h5 {
    font-size:1.6rem;
}

h6 {
    font-size:1.8rem;
}

h1, h3 {
    font-family: var(--title);
    font-weight:lighter;
}

h2, h4 {
    font-family: var(--subtitle);
    font-weight:lighter;
}

section {
    padding:3rem 0;
}

i {
    font-size: 4rem;
}

a {
    color: var(--orange);
}
/* *****************************************************************
					          HEADER
***************************************************************** */
/**** NAVBAR ****/
#navbar-desktop {
    display:none;
}

.nav-menu {
    width: 100%;
    padding:1rem 1.8rem;
}

.nav-menu a {
	display: flex;
	align-items: center;
	color: #45505b;
	padding: 10px 18px;
	margin-bottom: 8px;
	transition: 0.3s;
	font-size: 1.6rem;
	border-radius: 50px;
	background: #f2f3f5;
	height: 56px;
	overflow: hidden;
}

.navbar-mobile:not(.mobile-nav-active) {
    position: fixed;
    width: 300px;
    background-color: white;
    border-right:1px solid var(--grey);
    left:-350px;
    z-index: 9997;
    transition: all 0.5s;
    padding: 15px;
    display:flex;
    height:100vh;
    -webkit-box-shadow: 15px 0px 44px -9px rgba(0,0,0,0.52);
    -moz-box-shadow: 15px 0px 44px -9px rgba(0,0,0,0.52);
    box-shadow: 15px 0px 44px -9px rgba(0,0,0,0.52);
}

.navbar-mobile.mobile-nav-active{
    position: fixed;
    width: 300px;
    background-color: white;
    border-right:1px solid var(--grey);
    left:0px;
    z-index: 9997;
    transition: all 0.5s;
    padding: 15px;
    display:flex;
    height:100vh;
    -webkit-box-shadow: 15px 0px 44px -9px rgba(0,0,0,0.52);
    -moz-box-shadow: 15px 0px 44px -9px rgba(0,0,0,0.52);
    box-shadow: 15px 0px 44px -9px rgba(0,0,0,0.52);
}

#burger, #cross {
	color: white;
	position: fixed;
	right: 0;
	cursor: pointer;
    top: .5%;
    z-index:500;
    -webkit-appearance: none;
    background-color: transparent;
    border: none;
    transition: all 0.5s;
}

.nav-menu span {
    padding-left:1rem;
    font-weight:bold;
}

.nav-menu a:hover, .nav-menu a.active , .nav-menu i:hover > a {
	color: #fff;
	background: var(--orange);
}

/* *****************************************************************
					        BUTTON
***************************************************************** */
.button {
    background-color: var(--orange);
    color: white;
    padding: 5px 26px;
    border-radius: 30px;
    font-weight: lighter;
    font-family: var(--title);
    margin: 15px 10px;
    display: block;
}
.button:hover {
    background-color: var(--green);
    color: white;
}
/* *****************************************************************
					        FOOTER
***************************************************************** */
footer {
    background-color: var(--orange);
    color: white;
    text-align: center;
    padding: 3rem;
    margin-top:3rem;
}

footer p {
    margin-bottom: 0;
}

footer a:first-of-type, footer p {
    font-size:2rem;
}

footer a:first-of-type {
    color:white;
    margin-bottom:2.5rem;
    display:block
}

footer div a i {
    font-size:4rem;
    color:white;
    transition: all .5s;
    padding:.5rem;
}

footer div a:hover, footer div a i:hover {
    color: var(--black);
}
/* *****************************************************************
********************************************************************
					      MEDIA QUERIES
********************************************************************
***************************************************************** */
@media (min-width: 768px)
{
    /**** NAVBAR ****/
    #navbar-mobile {
        display:none;
    }

    .container {
        max-width: 70%;
    }

    #burger, #cross {
        display:none;
    }

    #navbar-desktop {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        z-index: 9997;
        transition: all 0.5s;
        padding: 10px;
        overflow-y: auto;
        display:flex
    }

    #navbar-desktop .nav-menu a {
        width: 5.5rem;
        height: 5.5rem;
        border-radius: 50%;
        padding: 0.8rem;
        margin-top:1rem;
    }

    .button {
        display: initial;
    }

}

@media (min-width: 992px)
{
    .container {
        max-width: 80%;
    }
}

@media (min-width:1350px)
{
    .container {
        max-width:100%;
        width:1140px;
        margin:0 auto;
        padding:0 1.5rem;
        position:relative;
    }

    #navbar-desktop .nav-menu a {
        width:7rem;
        height:7rem;
        border-radius: 50%;
        padding:1.5rem;
    }
}
