@import url('/fonts/Chillax/chillax.css');
@import url('/fonts/RedHatDisplay/red-hat-display.css');

/*Colours*/
:root {
    --main-bg-colour: #ebddd4;
    --light-red: #c34b3f;
    --red: #b11f25;
    --dark-red: #811417;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'RedHatDisplay-Variable';
    text-decoration: none;
    background-color: var(--main-bg-colour);
}

body {
    background-color: var(--main-bg-colour);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 40px 100px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    z-index: 1;
    background: var(--main-bg-colour);
    background: linear-gradient(180deg, rgb(235, 221, 212) 85%, rgba(255,255,255,0) 100%);
    overflow-y: hidden;
}

/*NAVBAR*/
header .logo img {
    width: 90px;
    position: relative;
    display: flex;
}

header ul {
    display: flex;
    justify-content: center;
    align-items: center;
}

header ul li {
    list-style: none;
    margin-left: 20px;
}

header ul li a {
    padding: 6px 15px;
    color: #000;
    border-radius: 30px;
    font-size: 18px;
    font-weight: 600;
    font-family: 'Chillax-Medium';
}

header ul li a:not(:hover) {
    background: var(--main-bg-colour);
    color: #000;
    box-shadow: 0px 0px 0px var(--main-bg-colour);
    transition: 0.3s;
}

header ul li a.active {
    background: var(--main-bg-colour);
    color: #000;
    box-shadow: 1px 2px 8px #000000a8;
}

header ul li a:hover {
    background: var(--main-bg-colour);
    color: #000;
    box-shadow: 1px 5px 12px #000000a8;
    transition: 0.3s;
}

.menu-burger {
    display: none;
}

/*SELECTION*/
::selection {
    color: #000;
    background-color: var(--light-red);
}

/*SCROLLBAR*/
::-webkit-scrollbar {
    width: 12px
}

::-webkit-scrollbar-track {
    background: var(--main-bg-colour);
}

::-webkit-scrollbar-thumb {
    background-color: var(--red);
    border: 3px solid var(--main-bg-colour);
    border-radius: 1.5rem;
}

::-webkit-scrollbar-thumb:hover {
    background-color: var(--dark-red);
    border: 2px solid var(--main-bg-colour);
}

/*DEFAULTS*/
h1 {
    font-family: 'Chillax-Semibold';
    font-size: 3em;
    align-self: center;
    color: var(--dark-red);
}

p {
    font-size: 20px;
    text-align: justify;
}

a {
    transition: 0.7s;
}

a:visited {
    color: var(--light-red);
}

a:hover {
    color: var(--red);
    transition: 0.5s;
}

/*PROJECTS*/
section.projects {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
    margin-bottom: 3%;
}

section.projects > section {
    display: flex;
    justify-content: space-evenly;
}

article.projets {
    display: flex;
    width: 800px;
    justify-content: flex-start;
    flex-direction: column;
    align-items: center;
    margin-top: 10px;
}

img.photosprojets {
    filter: grayscale();
    width: 480px;
    height: 270px;
    object-fit: cover;
    object-position: 50% 50%;
    /*border: 3px solid black;
    border-radius: 20px;*/
    transition: 0.5s;
}

div.gif {
    width: 181px;
    height: 321px;
    position: relative;
    margin-bottom: 3px;
}

img.portraitsprojets {
    width: 181px;
    height: 270px;
    /*border-radius: 10px;*/
}

img.neufseizieme {
    width: 181px;
    height: 321px;
    /*border-radius: 10px;*/
}

img.photosprojets:hover {
    filter: grayscale(0%);
    transition: 0.3s;
}

section.projects > section > article > a {
    cursor: pointer;
}

img#pirate {
    margin: 2% 0;
}

h2.eventtitle {
    display: flex;
    align-self: center;
    text-align: center;
}

article.explications {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin: 50px 0px;
    justify-content: center;
}

img.photosevenements {
    width: 25vw;
    max-width: 480px;
    /*height: 270px;*/
    object-fit: cover;
    object-position: 50% 50%;
    /*order: 5px solid black;
    border-radius: 30px;*/
}

article.explications > p {
    display: flex;
    text-align: justify;
}

article.explications > img {
    width: 25%;
}

main {
    padding: 154px 5% 0 5%;
}

main > h1 {
    display: flex;
    justify-content: center;
}

div.couverture {
    display: flex;
    margin: 50px 0 0 0;
    justify-content: space-evenly;
}

div.couverture > section {
    display: flex;
    /* justify-content: center; */
    flex-direction: column;
    width: 75%;
}

div.couverture > section li {
    margin-left: 25px;
    font-size: 20px;
}

div.couverture > section + img {
    max-width: 20%;
    height: 20%
}

div.couverture:first-of-type > section + img, div.couverture:last-of-type > section + img {
    order: 1;
}

div.couverture:first-of-type > section, div.couverture:last-of-type > section {
    order: 2;
}

div.couverture + section > h2 {
    margin: 70px 0;
}

div.couverture + section {
    display: flex;
    justify-content: space-evenly;
}

.charte {
    margin: 50px 0;
}

#chartedeux {
    display: none;
}

#chartetrois {
    display: none;
}

section > h2 > a {
    color: var(--light-red);
}


div.photosevenements {
    display: flex;
    justify-content: space-between;
}

div#billeterie {
    display: flex;
    justify-content: space-between;
}

div#billeterie > img {
    align-self: center;
    height: 400px;
}

div#billeterie > section {
    display: flex;
    justify-content: flex-start;
    flex-direction: column;
    width: 40%;
}

section#billeterie p {
    text-align: justify;
    font-size: 20px;
}

iframe {
    margin: 30px auto;
}

iframe#mobile, iframe#tab {
    display: none;
}

iframe + h2 + p {
    margin: auto;
}

div.newreal > article.explications.newreal {
    justify-content: center;
}

#carte {
    margin: 0 0 0 5%;
    width: 25%;
    max-width: 500px;
    aspect-ratio: 4 / 3;
}

#affiche {
    margin: 0 0 0 5%;
    width: 25%;
    max-height: 315px;
}

div.newreal {
    display: flex;
    justify-content: space-between;
}

section#contacts > h1 {
    font-size: 4em;
    display: flex;
    width: 90vw;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    position: relative;
}

div.cadeaux {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin: 50px 0;
    align-items: center;
    flex-wrap: wrap;
}

div.cadeaux > p {
    margin-top: 50px;
}

div.cadeaux > section {
    width: 30%;
    margin: 0 17px;
}

div.cadeaux img {
    max-height: 360px;
}

div.cadeaux img:first-of-type {
    margin-right: 17px;
}

.sketchfab-embed-wrapper {
    display: flex;
    align-content: center;
}

section#newreal > div {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-top: 50px;
}

section#newreal > div > img {
    width: 40%;
    height: 40%;
}

section#newreal > div > p {
    margin: 50px 0;
}

section#newreal + section {
    width: 90%;
    display: flex;
    justify-content: center;
    margin: 50px 0;
}

section.video > h1 {
    text-align: justify;
}

section.projects > div.newreal {
    display: flex;
}

div.newreal {
    display: flex;
    align-items: center;
}

div#logos img {
    height: 30%;
    width: 30%;
    margin: 0 0 0 50px;
}

div#flyer {
    justify-content: space-between;
    flex-direction: column;
}

div#flyer > div {
    display: flex;
    justify-content: space-between;
}

div#flyer img {
    width: 30%;
}

article.newreal {
    margin: 50px 0 0 0 !important
}

div#compositing {
    justify-content: center;
    flex-direction: column;
}

div#compositing img{
    width: 25%;
}

div.newreal:last-of-type {
    justify-content: center;
    flex-direction: column;
}

div.newreal:last-of-type > div {
    display: flex;
    justify-content: space-around;
}

div.newreal:last-of-type > div > img {
    width: 30%;
    margin: 0 0 50px 0;
}

section#contacts {
    height: 75vh;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
}

section#contacts h1{
    top: 0px;
}

section#contacts > div:first-of-type {
    display: flex;
    align-items: center;
    flex-direction: row;
    justify-content: space-evenly;
    width: 60vw;
}

section#contacts > h2 {
    font-size: 30px;
    color: var(--red);
}

section#contacts > div > a {
    width: 106.38px;
    height: 106.38px;
    margin: 0 2%;
}

section#contacts > div > a > img {
    width: 100%;
}

main#index > div {
    display: flex;
    flex-direction: column;
    width: 100%;
}

img#logotypo {
    width: 100%;
    background: transparent;
    animation: gauchedroite 0.7s ease-in-out 0s forwards;
}

div#photo {
    width: 30%;
}

img#photo {
    animation: hautbas 0.7s ease-in-out 0s forwards;
    width: 25%;
    position: fixed;
    bottom: 5%;
    right: 5%;
    background-color: transparent;
}

#index > div > div:first-of-type > p {
    animation: bashaut 0.7s ease-in-out 0s forwards;
    font-size: 1.7rem;
    margin: 2% 0;
}

@keyframes gauchedroite {
    from {
        transform: translateX(-150px);
        opacity: 0;

    }
    to {
        transform: translateX(0px);
        opacity: 1;
    }
}

@keyframes droitegauche {
    from {
        transform: translateX(150px);
        opacity: 0;

    }
    to {
        transform: translateX(0px);
        opacity: 1;
    }
}

@keyframes hautbas {
    from {
        transform: translateY(-200px);
        opacity: 0;

    }
    to {
        transform: translateY(0px);
        opacity: 1;
    }
}

@keyframes bashaut {
    from {
        transform: translateY(200px);
        opacity: 0;

    }
    to {
        transform: translateY(0px);
        opacity: 1;
    }
}

#index > div > div:first-of-type {
    display: flex;
    flex-direction: column;
    margin-right: 5%;
    width: 65%
}

section.projects section > section {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
}

section.projects section > section > img {
    height: 350px;
    margin: 2% 0;
}

#index > div > div:first-of-type > p > q {
    color: #a58401;
}

#apropos section {
    display: flex;
    justify-content: center;
    margin: 6% 0;
}

.img-animate.is-gif {
    opacity: 0;
}

.img-animate.is-gif:hover{
    opacity: 1;
}

.img-animate {
    position:absolute;
}

iframe.shorts {
    margin: 0;
}

img#about {
    width: 350px;
    object-fit: cover;
    /* aspect-ratio: 4 / 5; */
    display: flex;
}

#apropos div {
    display: flex;
    justify-content: center;
    flex-direction: row;
}

#apropos article {
    display: flex;
    justify-content: flex-start;
    margin: 0 3% 0 0;
    flex-direction: column;
    transition: 0.3s;
}

@media screen and (max-width: 1920px) {
    img#photo {
        animation: hautbas 0.7s ease-in-out 0s forwards;
    }
}

@media screen and (max-width: 1720px) {
    img.photosprojets {
        width: 400px;
        height: 225px;
    }

    article.projets {
        width: 420px;
    }

    img.portraitsprojets {
        width: 150px;
        height: 224px;
    }

    div#billeterie > section {
        width: 45%;
    }

    div.cadeaux img:first-of-type {
        margin-right: 0;
    }

    div.cadeaux > section {
        width: 45%;
        margin: 0;
    }

    div.cadeaux img:nth-of-type(3) {
        margin-top: 50px;
    }

    div.cadeaux > p {
        width: 70%;
    }

    section.projects section > section > img {
        height: 300px;
    }

    img.neufseizieme {
        width: 181px;
        height: 321px;
    }

    div.gif {
        width: 181px;
        height: 321px;
        position: relative;
        margin-bottom: 3px;
    }

    img#about {
        width: 350px;
        object-fit: cover;
    }
}

@media screen and (max-width: 1560px) {
    div#billeterie {
        flex-wrap: wrap;
        justify-content: space-around;
    }

    div#billeterie > img {
        max-width: none;
        height: 400px;
    }

    div#billeterie > section {
        order: 2;
        margin-top: 50px;
        width: 100%;
    }

    iframe.shorts {
        margin-right: 15px;
    }

    img.neufseizieme {
        width: 181px;
        height: 321px;
    }

    div.gif {
        width: 181px;
        height: 321px;
        position: relative;
        margin-bottom: 3px;
    }
}

@media screen and (max-width: 1400px) {
    #index > div > div:first-of-type > p {
        font-size: 1.3rem;
    }

    img.photosprojets {
        width: 400px;
        height: 225px;
    }

    img.portraitsprojets {
        width: 150px;
        height: 224px;
    }

    section.projects > section {
        flex-wrap: wrap;
    }

    article.projets {
        width: 420px;
    }

    section.projects > section {
        flex-wrap: wrap;
    }

    div.photosevenements {
        flex-wrap: wrap;
    }

    img.photosevenements {
        width: 350px;
    }

    img.photosevenements:nth-of-type(2) {
        margin: 0 15px;
    }

    div#billeterie > img:last-of-type {
        max-width: none;
    }

    div.cadeaux > img:nth-of-type(2) {
        margin: 0 17px;
    }

    div.cadeaux > section {
        width: 100%;
        margin-top: 50px;
    }

    div.cadeaux > img {
        height: 300px;
        order: -1;
    }

    div.cadeaux img:nth-of-type(3) {
        margin: 0;
    }

    div.cadeaux > p {
        margin-top: 20px;
        width: 100%;
    }

    div.couverture {
        flex-direction: column;
        margin: 0;
        align-items: center
    }

    div.couverture > section {
        width: 100%;
    }

    div.couverture > section + img {
        order: 1;
        margin: 2%;
    }

    div.couverture > section {
        order: 2;
    }

    section.projects section > section > img {
        height: 250px;
    }

    iframe.shorts {
        margin: 30px 0;
    }

    img.neufseizieme {
        width: 147px;
        height: 261px;
    }

    div.gif {
        width: 147px;
        height: 261px;
        position: relative;
        margin-bottom: 3px;
    }

    article.projets:has(a > div.gif) {
        width: 200px;
    }

    #apropos article {
        margin: 0 5% 0 0;
    }
}

@media screen and (max-width: 1200px) {
    img.photosevenements:first-of-type, img.photosevenements:nth-of-type(2) {
        margin-bottom: 5%;
    }

    div.photosevenements {
        justify-content: space-around;
    }

    #charteun {
        display: none;
    }

    #chartedeux {
        display: block;
    }

    #chartetrois {
        display: none;
    }

    div.couverture > section + img {
        max-width: 25%;
    }

    section.projects section > section {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        align-items: center
    }
    
    section.projects section > section > img:first-of-type {
        width: 350px;
        height: auto;
    }

    section.projects section > section > img:last-of-type {
        width: 90%;
        height: auto;
    }

    section.projects > h1 {
        font-size: 2.2em;
        text-align: center;
    }

    
    img.neufseizieme {
        width: 147px;
        height: 261px;
    }

    div.gif {
        width: 147px;
        height: 261px;
        position: relative;
        margin-bottom: 3px;
    }

    article.projets:has(a > div.gif) {
        width: 300px;
    }

    img#about {
        width: 350px;
        object-fit: cover;
        margin: 6% 0 0 0;
    }

    #apropos div {
        display: flex;
        justify-content: center;
        flex-direction: column;
        align-items: center;
    }
    
}

@media screen and (max-width: 992px) {
    #index > div > div:first-of-type > p {
        font-size: 1.3rem;
    }

    img.photosprojets {
        width: 336px;
        height: 189px;
    }

    img.portraitsprojets {
        width: 128px;
        height: 192px;
    }

    article.projets {
        width: 360px;
    }

    div.cadeaux img {
        height: 250px;
    }

    div#billeterie > img:last-of-type {
        margin-left: 31px;
    }

    img.neufseizieme {
        width: 147px;
        height: 261px;
    }

    div.gif {
        width: 147px;
        height: 261px;
        position: relative;
        margin-bottom: 3px;
    }

    article.projets:has(a > div.gif) {
        width: 250px;
    }
}

@media screen and (max-width: 811px) {
    div.cadeaux {
        justify-content: space-around;
    }

    div#billeterie > img:last-of-type {
        margin: 50px 0 0 0;
        height: 445px;
    }
    
    div.cadeaux > img:first-of-type {
        margin: 0 17px 0 0;
    }

    div.cadeaux > img:nth-of-type(2) {
        margin: 0 0 0 17px;
    }

    div.cadeaux img:nth-of-type(3) {
        margin-top: 50px;
    }

    div.couverture > section + img {
        max-width: 35%;
    }

    div.couverture + section {
        flex-direction: column;
        align-items: center;
    }

    div.couverture + section > h2 {
        margin: 5% 0 0 0;
    }

    div.couverture + section > h2:last-of-type {
        margin: 5% 0;
    }
}

@media screen and (max-width: 768px) {
    main {
        padding: 120px 5% 0 5%;
    }

    header {
        padding-top: 40px;
        padding-right: 13%;
        padding-bottom: 20px;
        padding-left: 13%;
    }

    .menu-burger {
        display: flex;
        width: 40px;
        z-index: 11;
        transition: 0.5s;
    }

    .menu-burger:hover {
        cursor: pointer;
    }

    #nav-links {
        position: fixed;
        width: 100vw;
        height: 100vh;
        top: 0;
        left: 0;
        display: flex;
        justify-content: center;
        align-items: center;
        background-color: transparent;
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        z-index: 10;
        margin-left: 100%;
        transition: all 0.5s ease-in-out;
        background-color: var(--main-bg-colour)5d;
    }

    #nav-links ul {
        display: flex;
        flex-direction: column;
        align-items: center;
        background-color: transparent;
    }

    #nav-links ul li {
        margin: 25px;
        background-color: transparent;
    }
    
    #nav-links ul li a {
        background-color: transparent;
        font-size: 1.5rem;
    }

    .mobile-menu {
        margin-left: 0 !important;
    }

    img#photo {
        animation: bashaut 0.7s ease-in-out 0s forwards;
        bottom: 25px;
        right: 25px;
    }

    #index > div > div:first-of-type > p{
        animation: droitegauche 0.7s ease-in-out 0s forwards;
        font-size: 1.2rem;
    }

    #index > div > div:first-of-type {
        width: 100%;
        margin: 0;
    }

    #index div#photo {
        width: 90vw;
        height: 25vh;
        position: relative;
    }

    img#photo {
        width: 50%;
    }

    img.photosprojets {
        width: 304px;
        height: 171px;
    }

    img.portraitsprojets {
        width: 131px;
        height: 196px;
    }

    img.neufseizieme {
        width: 99px;
        height: 176px;
    }

    h2.eventtitle {
        margin-bottom: 2%;
    }

    div#billeterie > img:last-of-type {
        margin-top: 50px;
    }

    iframe#mobile, iframe#cmp {
        display: none;
    }

    iframe#tab {
        display: flex;
    }

    #charteun {
        display: none;
    }

    #chartedeux {
        display: none;
    }

    #chartetrois {
        display: block;
    }

    img.neufseizieme {
        width: 147px;
        height: 261px;
    }

    div.gif {
        width: 147px;
        height: 261px;
        position: relative;
        margin-bottom: 3px;
    }

    article.projets:has(a > div.gif) {
        width: 200px;
    }
}

@media screen and (max-width: 537px) {
    #index > div > div:first-of-type > p{
        font-size: 1.3rem;
    }

    div.cadeaux > img {
        width: 60%;
        height: auto;
    }

    div.cadeaux > img:first-of-type {
        margin: 0;
    }

    div.cadeaux > img:nth-of-type(2) {
    margin: 50px 0;
    }   

    div.cadeaux img:last-of-type {
        margin: 0;
    }

    section#contacts > h1 {
        font-size: 3.5em;
    }

    iframe#mobile {
        display: flex;
    }

    iframe#tab, iframe#cmp {
        display: none;
    }

    div.couverture > section + img {
        max-width: 70%;
        margin: 5%;
    }

    section.projects section > section > img:first-of-type {
        width: 90%;
        height: auto;
        margin-bottom: 5%;
    }

    section.projects section{
        padding: 6% 0;
    }
}

@media screen and (max-height: 718px) {
    img#photo {
        width: 30%;
    }
}

@media screen and (max-height: 586px) {
    img#photo {
        width: 20%;
    }
}