html {
    scroll-behavior: smooth;
}

body {
    margin: 1%;
    background: linear-gradient(to right, rgb(65, 95, 54), #828149);
    font-family: Poppins, Arial, Helvetica, sans-serif;
    color: white;
    background-attachment: fixed;
}

.centerh1 {
    text-align: center;
}

.grandtitre {
    font-size: 1.5em;
    font-weight: bold;
}

/* Nav barre */

nav {
    display: flex;
    align-content: center;
    flex-direction: column;
    position: sticky;
    width: 100%;
    margin: -1%;
    padding: 1%;
    top: 0px;
    z-index: 3;
    background-color: rgba(0, 0, 0, 0.15);
}

nav #logo #Halloween {
    display: flex;
    color: white;
    gap: 5px;
    text-decoration: none;
    align-items: center;
}

nav #menu_responsive_button:checked ~ #logo #Halloween{
    display: none;
}

nav #menu {
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: 10px;
    transition: width 0.5s ease, opacity 0.5s ease;
}

.elMenu .cercle {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: white;
    opacity: 0;
    transform: translateY(450%);
    position: absolute;
    transition: opacity 0.5s ease;
}

.active .cercle {
    opacity: 1;
}

nav #menu_responsive_button {
    display: none;
}

nav label[for="menu_responsive_button"] {
    position: absolute;
    right: 5%;
    cursor: pointer;
    width: 10px;
    height: 10px;
}

nav #fermer-nav-barre {
    display: none;
}

nav #menu_responsive_button:checked ~ label #fermer-nav-barre {
    display: inline;
}
nav #menu_responsive_button:checked ~ label #ouvrir-nav-barre {
    display: none;
}

nav #menu .elMenu {
    padding: 10px 0;
    color: white;
    text-transform: uppercase;
    font-weight: bold;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
}

nav #Halloween img {
    width: 20px;
    height: 20px;
}

nav #spider_nav {
    position: absolute;
    top: 0px;
    left: 0px;
    height: 100px;
    transition: width 0.5s ease, height 0.5s ease, opacity 0.5s ease;
}

nav #menu #support {
    background-color: rgba(0, 0, 0, 0);
    color: white;
    padding: 15px 20px;
    border-radius: 50px;
    border: solid 3px;
    margin-top: 10px;
    font-size: 100%;
    min-width: 100px;
    cursor: pointer;
    transition: all 0.5s ease;
}

nav #menu #support:hover {
    background-color: rgba(0, 0, 0, 0.15);
}

nav #menu_responsive_button:not(:checked) ~ #menu{
    visibility: hidden;
    opacity: 0;
    width: 0;
    height: 0;
    display: flex;
    flex-direction: column;
    text-align: center;
}

nav #menu_responsive_button:not(:checked) ~ #menu #spider_nav {
    opacity: 0;
    height: 0;
}
nav #menu_responsive_button:checked ~ #menu #spider_nav {
    opacity: 1;
    width: 100px;
    transition: width 0.5s ease, height 0.5s ease, opacity 0.5s ease;
}

nav #menu_responsive_button:checked ~ #menu {
    margin: 20px auto;
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: 10px;
    padding: 10px;
    visibility: visible;
    opacity: 1;
    width: 30%;
    height: 100%;
}

.carousel {
    display: flex;
    align-items: center;
    width: 100%;
    height: 450px;
    margin: 100px 0;
    position: relative;
}

#slide1:checked ~ .elslide1, #slide2:checked ~ .elslide2, #slide3:checked ~ .elslide3 {
    opacity: 1;
    z-index: 1;
}

#slide1, #slide2, #slide3 {
    display: none;
}

.navigation-carousel {
    z-index: 2;
    display: flex;
    flex-direction: column;
    top: 10%;
    position: absolute;
    gap: 10px;
}

.nav-label {
    background-color: orangered;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    color: white;
    transition: background-color 0.3s;
}

.nav-label:hover {
    background-color: rgb(255, 100, 0);
}

.flex-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 99%;
    position: absolute;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.presentation {
    position: relative;
    width: 100%;
    color: white;
    font-size: 75%;
    box-sizing: border-box;
}

.h1pres {
    font-size: xx-large;
    width: 50%;
    font-weight: 1000;
}

.h2pres {
    font-weight: 600;
    font-size: larger;
}

.presentation .align {
    display: flex;
    flex-wrap: wrap;
    margin: 1%;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.presentation a{
    text-decoration: none;
}

.presentation .btn {
    text-align: center;
    width: 100px;
    font-size: 100%;
    color: white;
    background-color: orangered;
    border-radius: 10px;
    border: none;
    padding: 10px;
    cursor: pointer;
    transition: all 0.5s;
}

.btn:hover {
    background-color: rgb(255, 100, 0);
}

.acheter {
    background-color: rgba(0, 0, 0, 0);
    border: none;
    color: white;
    cursor: pointer;
}

.infos {
    position: absolute;
    padding: 0;
    text-align: right;
    top: 0;
    right: 20%;
}

.image img {
    width: 300px;
    display: block;
    margin: auto;
}


.titre_img {
    font-size: small;
    font-weight: bold;
    margin-bottom: 2px;
    display: block;
}

.descr_img {
    font-size: small;
    color: rgb(197, 197, 197);
    display: block;
}

.descriptioncercle, .descriptionligne {
    background-color: white;
    position: absolute;
    right: 10%;
    transform: translateX(50%);
}

.descriptioncercle {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    top: calc(100% + 85px);
}

.descriptionligne {
    width: 2px;
    height: 75px;
    top: calc(100% + 10px);
}


.citrouilleanime {
    animation: citrouillequifaitpeur 10s;
}

@keyframes citrouillequifaitpeur {
    0% {
        scale: 1;
    }
    1% {
        rotate: -10deg;
    }
    2% {
        rotate: 10deg;
    }
    3% {
        rotate: -10deg;
    }
    4% {
        rotate: 10deg;
    }
    5% {
        rotate: -10deg;
    }
    6% {
        rotate: -10deg;
    }
    7% {
        rotate: 10deg;
    }
    8% {
        rotate: -10deg;
    }
    9% {
        rotate: 10deg;
    }
    10% {
        rotate: -10deg;
        scale: 2;
    }
    25% {
        rotate: 0deg;
    }
    100% {
        scale: 1;
    }
}

#fantomeducarousel {
    animation: fantomecarousel 5s infinite alternate;
}

@keyframes fantomecarousel {
    0% {
        transform: translateY(10px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(10px);
    }
}

/* presentation bonbon */
.flex-container-a-propos {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.presentation-a-propos {
    position: relative;
    width: 100%;
    color: white;
    font-size: 75%;
    box-sizing: border-box;
}

.presentation-a-propos .align {
    display: flex;
    flex-wrap: wrap;
    margin: 1%;
    flex-direction: row;
    justify-content: space-between;
}

.presentation-a-propos .btn {
    width: 100px;
    font-size: 100%;
    color: white;
    background-color: orangered;
    border-radius: 10px;
    border: none;
    padding: 10px;
    cursor: pointer;
    transition: all 0.5s;
}

.btn:hover {
    background-color: rgb(255, 100, 0);
}

.acheter {
    background-color: rgba(0, 0, 0, 0);
    border: none;
    color: white;
    cursor: pointer;
}

.presentation-a-propos img {
    width: 300px;
    display: block;
    margin: auto;
}

.presentation-a-propos #chaudron {
    width: 300px;
    bottom: 0;
    animation: rotate 5s infinite alternate;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-2deg);
    }
    50% {
        transform: rotate(2deg);
    }
    75% {
        transform: rotate(-2deg);
    }
    100% {
        transform: rotate(0deg);
    }
}


/* Les peurs */
#peurs {
    margin: 0;
}

#peurs-container {
    color: white;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    text-align: center;
    width: 100%;
}

.peur {
    padding: 1%;
    width: 48%;
    cursor: pointer;
    color: white;
    text-decoration: none;
}

.peur:hover {
    background-color: rgba(0, 0, 0, 0.15);
    border-radius: 50px;
}

.peur:hover img{
    transform: scale(1.2);
}

.peur img {
    transition: transform 0.5s;
    width: 100px;
}

.peur p, h3 {
    padding: 0 10%;
}

.peur p {
    color: lightgray;
}

/* Boutique */

#boutique {
    color: white;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
    align-items: flex-end;
}

.boxboutique {
    position: relative;
    margin: 10px;
    width: calc(40% - 20px);
    height: 200px;
    align-content: center;
    background: linear-gradient(135deg, rgb(79, 115, 65), rgb(113,113,65));
    border-radius: 30px;
    padding: 20px 0;
}

.boxboutique p,h3 {
    margin: 2px;
}

.boxboutique .tarif {
    font-weight: bold;
}

.boxboutique .type {
    color: rgb(197, 197, 197);
}

.boxboutique .imgboutique{
    width: 100px;
}

.boxboutique .boutiquebutton {
    width: 0;
    height: 50px;
    background-color: orangered;
    transition: background-color 0.5s;
}

.boxboutique:hover .boutiquebutton {
    position: absolute;
    padding: 2px;
    width: 50px;
    right: 0px;
    border-radius: 10px 10px 30px 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    bottom: 0px;
    background-color: orangered;
    transition: width 0.3s linear, background-color 0.5s;
}

.boxboutique .boutiquebutton:hover {
    background-color: rgb(255, 100, 0);
}

.boxboutique .boutiquebutton img {
    width: 0;
    height: 30px;
}

.boxboutique:hover .boutiquebutton img {
    width: 30px;
    transition: width 0.3s ease;
}

.boxboutique:hover .imgboutique{
    transform: translateY(-10px);
    transition: transform 0.3s ease;
}

/* Publicité */

.publicite {
    background: linear-gradient(135deg, rgb(79, 115, 65), rgb(113,113,65));
    margin: 10% auto 0 auto;
    padding: 20px;
    border-radius: 50px;
    display: flex;
    flex-direction: column-reverse;
    text-align: center;
    width: 90%;
    align-items: center;
}

.publicite img{
    margin-top: 10px;
    width: 200px;
}


.publicite .textpub {
    width: 50%;
}

.publicite .btn {
    background-color: orangered;
    border: none;
    color: white;
    padding: 15px 25px;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.publicite .btn:hover {
    background-color: rgb(255, 100, 0);
}

/* News */
#news-box {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    text-align: center;
    color: white;
    text-decoration: none;
}

#news-box .reduc {
    font-size: 75%;
    vertical-align: top;
    color: orangered;
    text-decoration : line-through;
    display: inline-block;
    white-space: nowrap;
}

#news-box a {
    color: white;
    text-decoration: none;
}

#news-box .tarif {
    font-weight: bold;
    display: inline-block;
    white-space: nowrap;
} 

#news-box .type {
    color: rgb(197, 197, 197);
}

#news-box .component-news-box{
    position: relative;
    margin: 1%;
    border-radius: 10px;
    width: calc(40%);
    height: 350px;
    align-content: center;
    background: linear-gradient(135deg, rgb(79, 115, 65), rgb(113,113,65));
}

#news-box .component-news-box:hover {
    width: 43%;
    font-size: 110%;
}

#news-box .component-news-box:hover img {
    width: 200px;
}

#news-box img {
    width: 150px;
}

#news-box .news-items{
    background-color: orangered;
    position: absolute;
    padding: 3px  10px;
    border-radius: 5px;
    text-align: center;
    left: 20px;
    top: 20px;
    font-size: small;
    animation: news-anime 5s infinite;

}

@keyframes news-anime{
    0% {
        scale: 1.2;
        background-color: orangered;
    }
    50% {
        scale: 1;
        background-color: rgb(255, 115, 0);
    }
    100% {
        scale: 1.2;
        background-color: orangered;
    }
}

/* Footer */
footer {
    color: white;
    position: relative;
}

footer h3 {
    display: flex;
    align-items: center;
    padding: 0;
}

footer img {
    margin-right: 8px;
    width: 20px;
    align-items: center;
}

.elementfooter {
    color: rgb(197, 197, 197);
    text-decoration: none;
}

.footerBox {
    margin: 2% 0;
    display: flex;
    width: 50%;
}

#footContainer {
    display: flex;
    flex-direction: column;
}

#socialnetwork {
    cursor: pointer;
    margin: 2% 0;
    width: 20%;
    display: flex;
    justify-content: space-around;
    flex-direction: row;
    align-items: center;
}

.elsocialnetwork {
    margin-left: 10px;
    display: flex;
    width: 30px;
    height: 30px;
    border-radius: 5px;
    background: linear-gradient(135deg, rgb(81, 115, 65), rgb(111,112,64));
}

.elsocialnetwork img {
    margin: auto;
}

.footerBox {
    flex-direction: column;
    padding: 10px;
    margin-right: 40%;
    z-index: 1;
}

#footerimg1 {
    bottom: 15%;
    width: 80px;
    position: absolute;
    right: -10px;
    animation: fantomefooter1 5s infinite alternate;
}

@keyframes fantomefooter1 {
    0% {
        bottom: 11%;
    }
    50% {
        bottom: 18%;
    }
    100% {
        bottom: 11%;
    }
}

#footerimg2 {
    width: 100px;    
    position: absolute;
    bottom: -10px;
    animation: fantomefooter2 15s infinite;
}

@keyframes fantomefooter2 {
    0% {
        left: 10%;
        transform: scaleX(1);
    }
    50% {
        transform: scaleX(1);
        left: calc(90% - 140px);
    }
    50.1% {
        transform: scaleX(-1);
    }
    100% {
        transform: scaleX(-1);
        left: 10%;
    }
}

#fleche {
    position: fixed;
    display: flex;
    justify-content: space-around;
    flex-direction: row;
    align-items: center;
    bottom: 15px;
    margin: 1%;
    border-radius: 5px;
    right: 5px;
    width: 25px;
    height: 25px;
    background-color: rgba(0, 0, 0, 0.15);
    cursor: pointer;
}

/* Pour écrans non téléphone */
@media (min-width: 768px) {

    nav {
        flex-direction: row;
        align-items: center;
    }

    #logo {
        width: 25%;
    }

    nav #menu #support {
        margin-top: 0;
    }

    nav #menu .elMenu {
        text-transform: initial;
    }
    
    nav #menu {
        flex-direction: row;
        align-items: center;
        gap: 5%;
        width: 75%;
        margin: 0;
        padding: 0;
        justify-content: flex-end;
        visibility: visible;
        opacity: 1;
    }
    
    nav #spider_nav {
        display: none;
    }

    nav label[for="menu_responsive_button"] {
        display: none;
    }

    nav #menu_responsive_button:not(:checked) ~ #menu {
        margin: 20px auto;
        display: flex;
        text-align: center;
        gap: 5%;
        width: 75%;
        padding: 10px;
        justify-content: flex-end;
        visibility: visible;
        opacity: 1;
        flex-direction: row;
    }

    nav #menu_responsive_button:checked ~ #menu {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 5%;
        width: 75%;
        margin: 0;
        padding: 0;
        justify-content: flex-end;
    }

    nav #menu_responsive_button:checked ~ #logo #Halloween{
        display: flex;
    }

    nav #menu_responsive_button:not(:checked) ~ #menu {
        display: flex;
    }

    nav #menu_responsive_button {
        display: none;
    }

    .flex-container {
        flex-direction: row;
    }

    .presentation {
        padding: 30px;
        width: 50%;
        font-size: 100%;
        margin-top: 0;
    }


    .infos {
        right: 30px;
    }

    .presentation .btn {
        width: 150px;
    }

    #peurs-container {
        flex-wrap: nowrap;
    }

    .flex-container-a-propos {
        flex-direction: row;
    }

    .presentation-a-propos {
        padding: 30px;
        width: 50%;
        font-size: 100%;
    }
    
    .presentation-a-propos .btn {
        width: 200px;
    }

    .h1pres {
        width: 75%;
    }

    .navigation-carousel {
        top: auto;
    }

    #boutique {
        margin: 0 10%;
    }

    .boxboutique {
        width: calc(33.33% - 20px);
    }
    
    .publicite {
        flex-direction: row;
    }

    .publicite .imgpub {
        width: 40%;
    }

    .publicite .textpub {
        padding: 0 100px;
        width: 60%;
    }
    
    .publicite img {
        width: 300px;
    }

    #news-box .component-news-box{
        width: 30%;
    }

    #news-box .component-news-box:hover {
        width: 34%;
    }
    
    #footContainer {
        flex-direction: row;
    }

    .footerBox {
        padding: 20px;
        margin-right: 0;
    }

    #socialnetwork {
        position: absolute;
        bottom: 10px;
    }

}
