@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;
    overflow-x: hidden;
  }

*,
*::before,
*::after {
    box-sizing: inherit;
    margin: 0px;
    /* border: 1px solid red;*/
}

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

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

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

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

.accueil  {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: "abel", sans-serif;
    margin: 0;
    background-color: rgb(252, 200, 77);
    padding: 0;
}


/* 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;
        z-index: 10;
    }

    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: 13rem;
    }

    .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;
    justify-content: flex-end;
    align-items: flex-end;
    background-image: url(../img/fond-accueil3.jpg);
    height: 280px;
    background-size: cover;
    background-repeat: no-repeat;
    background-color: #fff8ee;
    background-position: center;
}

.welcome .container {
    color: #fff8ee;
    background-color: rgba(252, 200, 77, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-left: 60%;
    padding: 1em 2em;
    margin-right: 2em;
    
}

.welcome h1 {
    font-size: 1,5em;
    font-weight: 400;
    text-transform: uppercase;
}

@media all and (min-width: 860px) {
    .welcome .container { 
        min-width: 30em;
    }
}   

@media all and (min-width: 320px) and (max-width: 860px) {
    .welcome .container { 
        justify-content: center;
        align-items: center;
        margin: 0;
        text-align: center;
    }
}

/* PRESENTATION */

.presentation {
    display: flex;
    justify-content: space-between;
    font-size: initial;
    gap: 1em;
    background-color: rgb(252, 200, 77);
    margin-bottom: 2em;
    color: #754C24;
}

.fond {
    background-color: rgb(252, 200, 77);
    flex-shrink: 1;
    margin: auto 1em;
    opacity: 80%;
}

.white-box {
    display: flex;
    background-color: #fff8ee;
    gap: 1em;
    padding: 1em;
    box-shadow: 0.5px 0.5px 50px 0.5px rgb(169, 137, 63);
    margin-bottom: 3em;
    margin-right: 1em;
    
}

.white-box .text {
    font-size: 1.1em;
}

.illustration {
    width: 3em;
    align-self: center;
}

@media all and (min-width: 1518px) {
    .fond { 
        max-width: 30em;
        margin: auto 4em;
    }

    .white-box .text {
        font-size: 1.4em;
    }
}

@media all and (min-width: 1024px) and (max-width: 1518px) {
    .fond { 
        max-width: 25em;
        margin: auto 3em;
    }

    .white-box .text {
        font-size: 1.1em;
    }
}


@media all and (min-width: 860px) and (max-width: 1024px) {
    .fond { 
        max-width: 15em;
    }
}

@media all and (min-width: 320px) and (max-width: 860px) {
    .presentation { 
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    .fond {
        max-width: 15em;
        margin: 1em
    }

    .white-box {
        margin: 1em 0 3em;
        box-shadow: none;
    }
}

/* ACTUALITÉS */

.container-actu {
    padding: 0;
    background-color: rgb(252, 200, 77);
    margin-top: 1em;
}

.orange {
    background-color: rgb(252, 200, 77);
    height: 6em;
    position: relative;
}

.beige {
    background-color: #fde5ac;
    height: 6em;
}

.actualités {
    width: 18em;
    height: 12em;
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    margin-left: auto;
    margin-right: auto;
    font-size: 1,6em;
    
}

.actualités .h1-container {
    background-color: #d36716;
    color: #fff8ee;
    width: 16em;
    text-align: center;
    padding: 1em;
    height: 10em;
    position: absolute;
    right: 0;
    left: 0;
    top: 0;
    bottom: 0;
    margin: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 15px;
}

.h1-container h1 {
    font-family: "bebas neue";
    font-size: 3.6em;
}

.bee {
    width: 3em;
    height: auto;
    position : relative;
    animation-name: flying;
    animation-duration: 6s;
    animation-iteration-count: infinite;
    top: -3em;
    }

@keyframes flying {
    0%   {left: -3em; top:-3em; transform: rotate(90deg);}
    25%  {left: 18em; top:-3em; transform: rotate(180deg);}
    50%  {left: 18em; top:12em; transform: rotate(270deg);}
    75%  {left: -3em; top:12em; transform: rotate(360deg);}
    100% {left: -3em; top:-3em; transform: rotate(450deg);}
} 

/* TITRES SECTIONS */


.press-container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    background-color: #fff8ee;
}

.press-title, .informations {
    margin-top: 1.5rem;
}

.press-title h2 {
    font-size: 3.5rem;
    color:#d36716;
    text-align: center;
    font-family: "bebas neue";
    background-color: #fff8ee;
    padding: 2rem 5rem 2rem 1.4rem;
    position: relative;
}

.press-title h2::after {
    content: url(../img/combes.png);
    opacity: 60%;
    position: absolute;
    top: 0.2rem;
    bottom: 0.2rem;
    right: 0;
}

.informations-container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.informations h2 {
    font-size: 3.5rem;
    color:#d36716;
    margin: 0;
    font-family: "bebas neue";
    position: relative;
    padding: 2rem 1.4rem 2rem 6rem;
}

.informations h2::after {
    content: url(../img/fleur.png);
    opacity: 60%;
    position: absolute;
    top: 0;
    bottom: 0;
    left: -20px; 
}

@media all and (min-width: 200px) and (max-width: 660px) {
    
    .press-title h2 {
        font-size: 2.5rem;
        padding: 3rem 5rem 3rem 1.4rem;
    }

    .informations h2 {
        font-size: 2.5rem;
        padding: 3rem 1.4rem 3rem 6rem;
    }
}

@media all and (min-width: 200px) and (max-width: 365px) {


    .press-title h2 {
        font-size: 2rem;
        padding: 3rem 5rem 3rem 1.4rem;
    }

    .informations h2 {
        font-size: 2rem;
        padding: 3rem 1.4rem 3rem 6rem;
    }

    .actualités {
        font-size: 0.9em;
    }

}


/* COMMUNS AUX TROIS SECTIONS */

h4 {
    text-align: center;
    font-weight: lighter;
}

/* SORTIES */

.sorties-container {
    background-color: #fde5ac;
}

.events-container {
    background-color: #fde5ac;
    padding-top: 2em;
}

.sortie {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #fff8ee;
    margin: 3em;
    padding: 1em 1em 1em 0;
    border-radius: 25px;
}

.sortie section {
   display: flex;
   align-items: center;
   color: #754C24;
   gap: 1em;
}

.sortie img {
    width: 500px;
    margin-left: 1em;
}

.sortie h3 {
    font-size: 2em;
    color: #d36716;
    margin-bottom: 0.8em;
}

.sortie .date {
    font-size: 1.5em;
    background-color: rgb(252, 200, 77);
    color: #fff8ee;
    padding: 0.6em 0.6em 0.6em 0.4em;
    margin-right: 1em;
    border-top-right-radius: 30px;
    border-bottom-right-radius: 30px;
}

.sortie .date .day {
    font-size: 2em;
}

.sortie p {
    font-size: 1.2em;
    max-width: 800px;
}

iframe {
    aspect-ratio: 16 / 9;
    max-width: 600px;
}

@media all and (min-width: 850px) and (max-width: 960px) {
    .sortie img {
        width: 400px;
    }
}

@media all and (min-width: 1px) and (max-width: 850px) {
    .sortie {
        flex-direction: column;
        gap: 1.5em;
        padding: 0em 1em 1em 1em;
        text-align: center;
    }

    .sortie img {
        width: 500px;
        margin: auto;
    }

    .sortie section {
        flex-direction: column;
        margin: 0 1em 1em 1em;
    }

    .sortie .date {
        border-top-right-radius: 0;
        border-bottom-left-radius: 30px;
        border-bottom-right-radius: 30px;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 0.6em;
        padding: 0.6em 1em;
        margin: auto;
    }

    .sortie .date .day {
        font-size: 1.7em;
    }
}

@media all and (min-width: 550px) and (max-width: 660px) {
    .sortie img {
        width: 400px;
    }
}

@media all and (min-width: 455px) and (max-width: 550px) {
    .sortie img {
        width: 320px;
    }
   
}

@media all and (min-width: 370px) and (max-width: 455px) {
    .sortie img {
        width: 250px;
    }
}

@media all and (min-width: 1px) and (max-width: 370px) {
    .sortie img {
        width: 200px;
    }
}




/* ARTICLES */

.articles-container {
    background-color: #fff8ee;
    padding-bottom: 2rem;
}

.articles {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 2em;
    margin: 2em;
}

.press {
    display: flex;
    flex-direction: column;
    border: 0.2em solid #d36716;
    margin: 2em 0;
    background-color: #fff8ee;
    justify-content: center;
    align-items: center;
    transition: all 1s;
    padding: 1em;
}

.press:hover {
    background-color: rgba(242, 196, 91, 0.6);
    border-radius: 25px;
}

.press .name {
    display: flex;
    align-self: center;
    flex-direction: column;
    color: #fbb03c;
    padding: 1em;
}

.press .name .date, .press .name h4 {
    font-size: 1.3em;
    transition: all 1s;
}

.press:hover .name .date, .press:hover .name h4 {
    color: #fff8ee;
}

.press .name h3 {
    color: #d36716;
}

.press a {
    color:#fff8ee;
    text-decoration: none;
    background-color: #d36716;
    text-align: center;
    border-radius: 1em;
    padding: 0.3em 1em;
    margin-top: 1em;
    font-size: 1.5em;
    transition: all 1s;
}

.press a:hover {
    color:rgb(252, 200, 77);
}


.press h3 {
    font-size: 2em;
    text-align: center;
    margin-bottom: 1em;
}

.press .date {
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3em;
    font-size: 1.5em;
    margin-top: 0.8em;
}

.press .date .number {
    font-weight: bolder;
    font-size: larger;
}

@media all and (min-width: 700px) and (max-width: 980px) {
    .articles {
        grid-template-columns: 1fr 1fr;
        margin: 6em;
    }
    
}

@media all and (min-width: 455px) and (max-width: 700px) {
    .articles {
        grid-template-columns: 1fr;
        margin: 6em;
    }
    
}

@media all and (min-width: 1px) and (max-width: 455px) {
    .articles {
        grid-template-columns: 1fr;
    margin: 2em 4em;
    }
}



/* INFOS */

.informations-container {
    background-color: rgb(252, 200, 77);
}

.infos {
    display: flex;
    flex-direction: column; 
    justify-content: space-evenly;
    align-items: space-evenly;
    margin: 2em;
}

.info {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2em;
}

.name-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1em;
    text-decoration: none;
    width: 400px;
    height: 300px;
    background-color: #fff8ee;
    color: #fbb03c;
}

.name-content .name {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.3em;
    width: 515px;
}

.name-content .name h3 {
    font-size: 2em;
    text-align: center;
    color: #d36716;
}

.name-content .date {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.3em;
    font-size: 1.5em;
}

.name-content .date .number {
    font-weight: bolder;
    font-size: larger;
}

.info img {
    border: 1px solid #d36716;
    width: 400px;
    height: 300px;
}

/* ANIM HOVER */

.info .name-content {
    border: 1px solid #d36716;
    padding: 2em;
    -moz-transition: all 1s linear;
    -ms-transition: all 1s linear;
    -o-transition: all 1s linear;
    -webkit-transition: all 1s linear;
    transition: all 1s linear;
}

.info .name,.info .date {
    -moz-transition: all 1s linear;
    -ms-transition: all 1s linear;
    -o-transition: all 1s linear;
    -webkit-transition: all 1s linear;
    transition: all 1s linear;
} 

.info .name-content:hover {
    background-color: rgba(252, 200, 77, 0.6);
    color: #fff8ee;
    -moz-transition: all 1s linear;
    -ms-transition: all 1s linear;
    -o-transition: all 1s linear;
    -webkit-transition: all 1s linear;
    transition: all 1s linear;
}

.info .name-content:hover,
.info .name:hover .name, .info .date:hover .date {
    background-color: #d36716;
    color: #fff8ee;
    -moz-transition: all 1s linear;
    -ms-transition: all 1s linear;
    -o-transition: all 1s linear;
    -webkit-transition: all 1s linear;
    transition: all 1s linear;
} 

.left:hover {
    border-bottom-left-radius: 25px;
    border-top-left-radius: 25px;
}

.right:hover {
    border-bottom-right-radius: 25px;
    border-top-right-radius: 25px;
}

.info .name-content:hover h3, .info .name:hover h3 {
    color: #fbb03c !important;
}

.cursor {
    cursor: pointer;
}

    @media all and (min-width: 1518px) {
        .name-content, .info img { 
            width: 600px;
            height: 450px;
        }
    }
    
    @media all and (min-width: 1024px) and (max-width: 1518px) {
        .name-content, .info img { 
            width: 420px;
            height: 315px;
        }
    }
    
    @media all and (min-width: 320px) and (max-width: 1024px) {
        .name-content, .info img { 
            width: 300px;
            height: 225px;
        }
    }
    
    @media all and (min-width: 660px) and (max-width: 800px) {
        .name-content, .info img { 
            width: 300px;
            height: 225px;
        }
    }

    @media all and (min-width: 320px) and (max-width: 660px) {
        .info {
            flex-direction: column; 
            
        }

        .gauche {
            flex-direction: column-reverse;
        }

        .name-content:hover {
            border-bottom-left-radius: 25px;
            border-bottom-right-radius: 25px;
            border-top-left-radius: 0;
            border-top-right-radius: 0px;
        }
    }

    @media all and (min-width: 300px) and (max-width: 450px) {
        .name-content, .info img { 
            width: 262px;
            height: auto;
        }

        .name-content {
            height: 250px;
            border-bottom-left-radius: 25px;
            border-bottom-right-radius: 25px;
        }
    }
    
    

/* POP UP */

.droite {
    position: relative;
}
.popup-container {
    position: absolute;
    display: inline-block;
    right: 0;
    left: 0;
    top: 0;
    bottom: 0;
    margin: auto;
  }
  
/* The actual popup  */

.popup {
visibility: hidden;
background-color: #fff8ee;
color: #754C24;
text-align: left;
display: flex;
justify-content: center;
align-items: center;
border-radius: 25px;
position: absolute;
z-index: 1;
flex: 1;
width: 650px;
height: 280px;
right: 0;
left: 0;
top: 0;
bottom: 0;
margin: auto;
box-shadow: 5px 5px 40px rgba(39, 29, 4, 0.2);
  }

.popuptext {
display: flex;
flex-direction: column;
padding: 2em;  
position: absolute;
gap: 1em;
  }

.popup h5 {
font-size: 2em;
color:#d36716;
text-transform: uppercase;
  }

.popup h6 {
font-size: 1.5em;
color:#fbb03c;
}

.popuptext a {
    color: #d36716;
    text-decoration: none;
}

.popup-container .back {
    width: 1.6em;
    height: 1.6em;
    position: absolute;
    top: 0.9em;
    right: 0.9em;
    border: none;
  }


@media all and (min-width: 1518px) {
    .popup {
        width: 750px;
        height: 340px;
    }
}

@media all and (min-width: 660px) and (max-width: 800px) {
    .popup {
        width: 500px;
        height: 200px;
    }
}

@media all and (min-width: 490px) and (max-width: 660px) {
    .popup {
        width: 400px;
        height: 300px;
    }  
}

@media all and (min-width: 200px) and (max-width: 490px) {
    .popup {
        width: 250px;
        height: 350px;
    }  
}

  .popup-container .back:hover {
    background-color: #fbb03c;
  }
  
  /* Toggle this class when clicking on the popup container (hide and show the popup) */
  .popup-container .show {
    visibility: visible;
    -webkit-animation: fadeIn 1s;
    animation: fadeIn 1s
  }
  
  /* Add animation (fade in the popup) */
  @-webkit-keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
  }
  
  @keyframes fadeIn {
    from {opacity: 0;}
    to {opacity:1 ;}
  }

/* 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(42%) sepia(82%) saturate(589%) hue-rotate(348deg) brightness(97%) contrast(95%);
}

.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;
}

.footer img {
    opacity: 60%;
}


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




