@import url('https://fonts.googleapis.com/css?family=Abel&display=swap');

:root {
    --main-orange: rgb(252, 200, 77);
    --light-orange: #fde5ac;
    --beige: #fff8ee;
    --dark-orange: #d36716;
    --brun-text: #754C24;
    scroll-behavior: smooth;
}

html {
    box-sizing: border-box;
  }
  *,
  *::before,
  *::after {
    box-sizing: inherit;
    margin: 0px;
}

@media all and (min-width: 1518px) {
    .page-cours { 
        font-size: 18px;
    }
}

@media all and (min-width: 1024px) and (max-width: 1518px) {
    .page-cours { 
        font-size: 16px;
    }
}

@media all and (min-width: 860px) and (max-width: 1024px) {
    .page-cours { 
        font-size: 14px;
    }
}

@media all and (min-width: 300px) and (max-width: 860px) {
    .page-cours { 
        font-size: 14px;
    }
}


body:not(.welcome) {
    background-color:#fff8ee;
    font-family: "abel", sans-serif;
    color: #754C24;
  }

.page-cours {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    background-color: rgb(252, 200, 77);
    padding: 0;
}

dl {
    list-style: none;
    margin: 0;
    padding: 0;
}

.cours h1, .cours dt {
    font-family: "Bebas neue", cursive;
}

/* HEADER */

@media all and (min-width: 600px) { 
    header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        height: 5em;
        padding: 0 2rem;
        background-color: var(--main-orange);
    }

    nav {
        display: flex;
        justify-content: space-evenly;
        gap: 3em;
        padding: 1em;
        flex-shrink: 0;
        background-color: var(--main-orange);
    }

    nav a {
        color: var(--beige);
        text-decoration: none;
        background-color: var(--main-orange);
        /* font-size: 1.15em; ---> pour le menu complet ? */
        font-size: 1.4em;
    } 

    nav a:hover {
        color: var(--dark-orange);
    }

    .logo {
        width: 3rem;
        animation-name: turning;
        animation-duration: 3s;
        animation-timing-function: linear;
        animation-iteration-count: infinite;
    }

    @keyframes turning {
        0% {rotate: 0deg;}
        25% {rotate: 90deg;}
        50% {rotate: 180deg;}
        75% {rotate: 270deg;}
        100% {rotate: 360deg;}
    }

    #hamburger {
        display: none;
    }
}

/* HEADER MOBILE */

@media all and (min-width: 300px) and (max-width: 600px) {

    header {
        overflow: hidden;
        background-color: var(--main-orange);
        height: 4rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0rem 0.5rem;
    }

    #hamburger {
        height: 4rem;
        width: 4rem;
        display: flex;
        align-items: center;
        justify-content: center;
        border: none;
        background-color: var(--main-orange);
        cursor: pointer;
    }

    .logo {
        width: 2.5rem;
        animation-name: turning;
        animation-duration: 3s;
        animation-timing-function: linear;
        animation-iteration-count: infinite;
    }

    @keyframes turning {
        0% {rotate: 0deg;}
        25% {rotate: 90deg;}
        50% {rotate: 180deg;}
        75% {rotate: 270deg;}
        100% {rotate: 360deg;}
    }

    nav {
        display: block;
        border-bottom-left-radius: 25px;
        position: absolute;
        top: 3rem;
        right: 0rem;
        background-color: var(--main-orange);
        height: 1rem;
        width: 10rem;
        transition: height 0.4s ease-in-out;
    }

    nav a {
        color: var(--beige);
        text-decoration: none;
        font-size: 1.4em;
        display: block;
        text-align: center;
        padding: 1rem 0.5rem;
        opacity: 0;
        transition: opacity 0.2s;
        transition-delay: 0.15s;
    }

    .aTwo {
        transition-delay: 0.1s;
    }

    .aThree {
        transition-delay: 0.05s;
    }

    .aFour {
        transition-delay: 0s;
    }

    nav a:hover {
        color: var(--dark-orange)
    }

    nav a:active {
        color: var(--dark-orange)
    }

    .navOpen {
        display: block;
        border-bottom-left-radius: 25px;
        position: absolute;
        top: 3.9rem;
        right: 0rem;
        background-color: var(--main-orange);
        padding: 1rem;
        height: 17rem;
    }

    .navOpen a {
        color: var(--beige);
        text-decoration: none;
        font-size: 1.4em;
        display: block;
        text-align: center;
        padding: 1rem 0.5rem;
        opacity: 1;
        transition: opacity 0.4s;
        transition-delay: 0.2s;
    }

    .navOpen .aTwo {
        transition-delay: 0.3s;
    }

    .navOpen .aThree {
        transition-delay: 0.4s;
    }

    .navOpen .aFour {
        transition-delay: 0.5s;
    }

    /* HAMBURGER */

    #hamburgerIcon {
        position: relative;
        display: block;
    }

    #hamburgerIcon,
    #hamburgerIcon::before,
    #hamburgerIcon::after {
        width: 3rem;
        height: 3px;
        border-radius: 25px;
        background-color: var(--dark-orange);
        transition: all 0.4s ease-in-out;
    }

    #hamburgerIcon::before,
    #hamburgerIcon::after {
        content: "";
        position: absolute;
        left: 0;
    }

    #hamburgerIcon::before {bottom: 8px;}
    #hamburgerIcon::after {top: 8px;}

    .close {
        transform: rotate(45deg);
    }

    .close::before {
        opacity: 0;
    }

    .close::after {
        transform: rotate(90deg) translate(-8px)
    }

}

/* WELCOME */ 

.welcome {
    background-image: url(../img/fond-accueil2.jpg);
    height: 280px;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-color: #fff8ee;
}

/* PRESENTATION */

.presentation {
    margin: auto;
}

.presentation .text {
    text-align: left;
    display: flex;
    margin: 2em;
    justify-content: space-around;
    align-items: center;
    gap: 2em;
    font-size: 1.2em;

}

.text .left {
    max-width: 40em;
}

.left span {
    color: #fff8ee;
    text-decoration: underline;
}

ul {
    list-style: none;
    gap: 1em;
    padding: 1em;
}

li {
    padding: 10px 30px;
    content: "";
    display: inline-block;
    background-image: url(../img/li.svg);
    background-size: 1em;
    background-repeat: no-repeat;
    background-position: left center;
}

@media all and (max-width: 700px) {
    .presentation .text {
        flex-direction: column;
        align-items: flex-start;
    }
    .text .left {
        width: auto;
    } 
}

/* COURS */

.cours {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    padding: 2em;
    font-size: 1.2em;
    gap: 2em;   
}

.cours h1 {
    text-align: center;
    font-size: 3em;
    color: #fff8ee;
    font-weight: bold;
    text-transform: uppercase;
}

.lieu {
    text-align: center;
}

.cours img { 
    width: 2.5em;
    align-self: center;
    opacity: 70%;
}


.théoriques, .pratiques {
    display: flex;
    flex-direction: column;
    gap: 0.7em;
}

dl {
    margin-top: 1em;
}

dt {
    color: #754C24;
    text-transform: uppercase;
    font-weight: bold;
}

dd {
    margin-bottom: 0.8em;
}

@media all and (max-width:800px) {
    .cours {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 1em;
        gap: 2em;
    }

    .cours img {
        width: 2em;
        transform: rotate(90deg);
        display: none;
       
    }

    .déco {
        height: 3em;
    }
}

/* Précision */

.précision {
    font-size: 1.2em;
    text-align: center;
    padding: 1em;
}

.précision a {
    color:#fff8ee;
}

.précision a:hover {
    color: #d36716;
}

/* FOOTER */

.footer {
    
    display:flex;
    flex-grow: 1;
    background-color: #fff8ee;
    justify-content: center;
    padding: 2em;
}

.footer img {
    opacity: 60%;
}

@media all and (min-width: 200px) and (max-width: 600px) {
    footer img { 
        width: 20vw;
    }
}
