@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;
    /* border: 1px solid red; */
}

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

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

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

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

.syndicat  {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: "abel", sans-serif;
    margin: 0;
    background-color: #fff8ee;
    padding: 0;
    color: #754C24;
}

h1, h2, h3 {
    font-family: "bebas neue", sans-serif;
}


/* 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 {
    display: flex;
}

.welcome .fond {
    width: 50vw;
    background-image: url(../img/fond-syndicat.jpg);
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: flex-end;
}

.welcome .text {
    width: 50vw;
    background-color: #fff8ee;
    text-align: left;
    margin: auto;
    padding: 1.65em;
    line-height: 25px;
    padding-right: 2.5em;
}

.welcome .text p {
    max-width: 653px;
}

.fond img {
    width: 4em;
    background-color: #fff8ee;
    margin: 2em -2px 2em 0;
    padding: 2em 1em;
    border-top-left-radius: 15px;
    border-bottom-left-radius: 15px;
}

.welcome .text span {
    color: #d36716;
}

@media all and (min-width: 600px) and (max-width: 1024px) {
    .fond img { 
        margin: auto 0em;
    }
    .welcome .fond {
        width: 40vw;
    }

    .welcome .text {
        width: 60vw;
    }
}

@media all and (min-width: 500px) and (max-width: 600px) {
    .fond img {
        display: none;
    }

    .welcome .fond {
        width: 35vw;
    }

    .welcome .text {
        width: 65vw;
    }

}

@media all and (min-width: 300px) and (max-width: 500px) {
    .fond img {
        display: none;
    }

    .welcome {
        flex-direction: column;
    }

    .welcome .fond {
        width: 100vw;
        height: 280px;
    }

    .welcome .text {
        margin: 0;
        width: 100vw;
    }

}

/* MEMBRES */

.membres {
    background-color: rgb(252, 200, 77);
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2em;
    padding: 3em;
    position: relative;
}

@media all and (min-width: 500px) and (max-width: 700px) {
    .membres {
        grid-template-columns: 1fr 1fr;
    }
} 

@media all and (min-width: 300px) and (max-width: 500px) {
    .membres {
        grid-template-columns: 1fr;
    }
} 

.membre {
    text-align: center;
    z-index: 2;
}

.membre h3 {
    color: #fff8ee;
    font-size: 2em;
    text-decoration: underline;
}

.membre a {
    color: #fff8ee;
}

.membre a:hover {
    color: #d36716;
}

/* ABSOLUTE */

.absolute-box-container {
    display: inline-block;
    position: relative;
    background-color: rgb(252, 200, 77);
}

.absolute-box-container, .beige {
    height: 5em;
    width: 100%;
}

.absolute-box {
    position: absolute;
    top: 0.25em;
    bottom:0;
    left: 1em;
    right: 0;
    background-color: #fff8ee;
    width: fit-content;
    padding: 0.7em 2em;
    font-size: 2em;
    color: rgb(252, 200, 77);
    font-weight: 200;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}

.absolute-img-one, .absolute-img-two {
    position: absolute;
    width: 20em;
    z-index: 1;
    opacity: 70%;
}

.absolute-img-one {
    left: -9em;
    bottom: 6em;
    transform: rotate(270deg);
}

.absolute-img-two {
    left: 0px;
    bottom: 3em;
}

/* ADHÉSION */

.adhésion-container {
    display: flex;
    flex-direction: column;
    gap: 1.5em;
    justify-content: center;
    padding: 0 6em;
}

.adhésion-container h2 {
    color:rgb(252, 200, 77);
}

.adhésion-container a {
    color:#d36716;
}



.adhésion-container a:hover {
    color:#754C24;
}

@media all and (max-width:499px) {
    .adhésion-container {
        padding: 0 2em;
    }

    .absolute-box {
        position: absolute;
        top: 0;
        bottom:0;
        left: 0;
        right: 0;
        margin: auto;
        background-color: #fff8ee;
        width: fit-content;
        padding: 0.7em 1em;
        font-size: 1.6em;
        color: rgb(252, 200, 77);
        font-weight: 200;
        border-top-left-radius: 15px;
        border-top-right-radius: 15px;
    }

}

/* SMOOTH */

.smooth {
    display: flex;
    justify-content: flex-end;
    height: 8rem;
    padding-right: 2rem;
}

.smooth img {
    width: 4em;
    padding-top: 3rem;
    -moz-transition: all 0.2s linear;
    -ms-transition: all 0.2s linear;
    -o-transition: all 0.2s linear;
    -webkit-transition: all 0.2s linear;
    transition: all 0.2s linear;
    filter: invert(81%) sepia(86%) saturate(580%) hue-rotate(318deg) brightness(103%) contrast(98%);
}

.smooth img:hover {
    padding-top: 2.5rem;
    -moz-transition: all 0.2s linear;
    -ms-transition: all 0.2s linear;
    -o-transition: all 0.2s linear;
    -webkit-transition: all 0.2s linear;
    transition: all 0.2s linear;
}

/* FOOTER */

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

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




