:root {
    --theme: rgba(255, 255, 255, 1);
    --theme-op90: rgba(255, 255, 255, 0.9);
    --theme-op70: rgba(255, 255, 255, 0.7);
    --theme-op50: rgba(255, 255, 255, 0.5);
    --theme-op30: rgba(255, 255, 255, 0.3);
    --theme-op20: rgba(255, 255, 255, 0.2);
    --theme-op10: rgba(255, 255, 255, 0.1);
    --black: rgba(0, 0, 0);
    --black-op70: rgba(0, 0, 0, 0.7);
    --black-op50: rgba(0, 0, 0, 0.5);
    --black-op30: rgba(0, 0, 0, 0.3);
    --theme2: rgb(88, 0, 147);
    --theme2-op90: rgba(88, 0, 147, 0.9);
    --theme2-op70: rgba(88, 0, 147, 0.7);
    --theme2-op50: rgba(88, 0, 147, 0.5);
    --theme2-op30: rgba(88, 0, 147, 0.3);
    --theme2-op20: rgba(88, 0, 147, 0.2);
    --theme2-op10: rgba(88, 0, 147, 0.1);
}

body {
    margin: 0;
    padding: 0;
    font-family: "Montserrat", sans-serif;
    background-color: #000000;
    color: #ffffff;
    overflow-x: hidden;
}

#menu_h {
    padding: 0px 30px;
    position: fixed;
    top: 30px;
    border-radius: 50px;
    width: calc(100% - 100px);
    max-width: 1000px;
    z-index: 1000;
    left: 50%;
    transform: translateX(-50%);
    transition: top 0.3s;
    transition-delay: 0.1s;
}

#menu_h.hidden {
    top: -80px;
}

.plus-menu {
    position: fixed;
    width: 70vw;
    height: 70vh;
    justify-content: center;
    top: 15vh;
    right: 15vw;
    text-align: center;
    z-index: 3000;
    transform: scale(0);
    transition: all 0.3s;
}

.plus-menu.show {
    display: flex;
    flex-direction: column;
    transform: scale(1);
}

footer a,
.link_contact a {
    position: relative;

    color: inherit;

    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}

footer a::after,
.link_contact a::after {
    content: "";

    position: absolute;

    left: 0;

    bottom: -2px; /* ajuste selon ton texte */

    width: 100%;

    height: 1px;

    background: rgba(255, 255, 255, 0.8);

    transform: scaleX(0);

    transform-origin: left;

    transition: transform 0.3s ease;
}

footer a:hover::after,
.link_contact a:hover::after {
    transform: scaleX(1);
}

.link_contact {
    padding-left: 50px;
    padding-right: 50px;
    margin: 0;
    margin-top: 20px;
}

.logo_footer {
    width: min(150px, 20vw);
    height: min(150px, 20vw);
    margin: 0;
    margin-right: 3vw;
}

.form {
    line-height: 2;
}

img {
    vertical-align: middle;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    color: #fff;
    font-size: 22px;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    padding-left: 1.4vw;
    padding-right: 1.4vw;
    height: 50px;
    transition: all 0.3s;
}

.blur {
    background: rgba(0, 0, 0, 0.01);
    border: 0.5px solid var(--theme-op50);
    box-shadow: 0 0.1px 20px rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(30px);
    border-radius: 30px;
    -webkit-backdrop-filter: blur(30px);
    z-index: 0;
    overflow: hidden;
}

.box {
    border-radius: 30px;
    box-shadow: 0 0.1px 20px var(--theme-op20);
    border: 1px solid #0000;
    background:
        linear-gradient(0deg, var(--black), var(--black)) padding-box,
        linear-gradient(
                var(--angle),
                var(--black),
                var(--black),
                var(--black),
                var(--black),
                var(--theme)
            )
            border-box;
    animation: 8s rotate ease infinite;
    transition: border 0.5s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.box-sp:hover {
    border: 1px solid #0000;
    background:
        linear-gradient(60deg, var(--black-op30), var(--black-op30)) padding-box,
        linear-gradient(
                var(--angle),
                var(--theme),
                var(--theme2),
                var(--black),
                var(--theme2),
                var(--theme)
            )
            border-box;
    animation: 2s rotate ease infinite;
}

@keyframes rotate {
    to {
        --angle: 360deg;
    }
}

@property --angle {
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false;
}

.button_round {
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    text-align: center;
}

.button_round:hover {
    transform: scale(1.1);
}

.fade-in {
    transform: translateY(20vh);
    opacity: 0;
}

.fade-in--visible {
    transform: translateY(0px);
    opacity: 1;
    transition: 1s ease;
}

#fade-in-first {
    animation:
        fade 2s ease-out 0s 1 normal forwards,
        back 4s ease 0s infinite alternate forwards;
    opacity: 0;
    margin-bottom: 5vw;
    display: flex;
    justify-content: center;
}

@keyframes fade {
    from {
        transform: translateY(500px) scale(0);
        opacity: 0;
    }
    to {
        transform: translateY(0px) scale(1);
        opacity: 1;
    }
}

.burger-menu {
    display: none;
    position: fixed;
    top: 42px;
    right: max(20px, 6vw);
    z-index: 1001;
    transition:
        background 0.3s ease,
        transform 0.3s ease;
    text-align: center;
    font-size: 35px;
}

.burger-menu.active {
    transform: rotate(90deg) scale(1.1);
}

.link {
    text-decoration: none;
    color: #fff;
    padding: 10px;
    position: relative;
    border-radius: 20px;
}

.button {
    box-shadow: 0 0px 0px rgba(0, 0, 0, 0);
    transition:
        box-shadow 0.2s ease-in-out,
        background-color 0.2s ease-in-out;
    background-color: rgb(0, 0, 0, 0);
    border-radius: 20px;
}

.button:hover {
    box-shadow: 0 0.1px 20px var(--theme2-op90);
    border: 1px solid #0000;
    background:
        linear-gradient(0deg, var(--black), var(--black)) padding-box,
        linear-gradient(var(--angle), var(--theme2), var(--black), var(--theme))
            border-box;
    animation: 1s rotate ease infinite;
}

#menu_h_ul {
    display: flex;
    padding-left: 8px;
    padding-right: 8px;
    list-style: none;
    text-align: center;
}
#menu_v_ul {
    display: none;
}

#menu_v {
    z-index: 1;
}

/* --- FOOTER --- */
footer {
    display: flex;
    flex-direction: column;
    background-color: #000;
    color: #fff;
    text-align: center;
    align-items: center;
    margin-top: 10vw;
    position: relative;
    width: 100%;
    background-color: var(--black);
}

.team-section {
    position: relative;
    overflow: hidden;
}

/* image floue derrière */
.team-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(10px);
    transform: scale(1.3);
    z-index: 0;
}

/* image nette */
.team-main {
    position: relative;
    width: 100%;
    height: auto;
    z-index: 1;
}

footer p {
    font-size: max(1.5vw, 15px);
    padding-right: 10%;
    padding-left: 10%;
}

.subsection p {
    margin: 20px;
}

hr {
    color: #ffffff00;
    height: 2px;
    background-color: #fff;
}

.fond {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.title-text {
    position: absolute;
}

.section-pres {
    display: flex; /* Active Flexbox */
    justify-content: center; /* Centre horizontalement le contenu */
    align-items: top; /* Centre verticalement le contenu */
    text-align: center; /* Centre le texte dans chaque élément */
    position: relative;
    padding-right: 7vw;
    padding-left: 7vw;
    z-index: -1;
}

.section-image {
    width: 40vw;
    height: fit-content;
    z-index: 100;
}

.subsection {
    display: flex; /* Active Flexbox */
    justify-content: center; /* Centre horizontalement le contenu */
    align-items: center; /* Centre verticalement le contenu */
    flex-direction: row;
    text-align: center; /* Centre le texte dans chaque élément */
    position: relative;
}

.subsection h3 {
    font-size: 3vw;
    width: 30vw;
    padding: 10%;
}

.magic-text {
    font-size: 100px;
    font-weight: 900;
    transform-origin: center;
    transition: transform 0.05s linear; /* super fluide */
    display: block;
}

.font-color-effect {
    font-family: "Montserrat", sans-serif;
    font-size: 150px;
    font-weight: 900;
    color: transparent;
    /* display: inline-block; */

    background: linear-gradient(
        130deg,
        rgba(255, 255, 255, 0.6) 0%,
        rgba(255, 255, 255, 0.6) 40%,
        rgb(255, 255, 255) 50%,
        rgba(255, 255, 255, 0.6) 60%,
        rgba(255, 255, 255, 0.6) 100%
    );

    background-size: 500% 100%;

    -webkit-background-clip: text;
    background-clip: text;

    animation: shine 3s ease-in-out infinite;
}

@keyframes shine {
    0% {
        background-position: -100% 0;
    }
    100% {
        background-position: 0% 0%;
    }
}

.section-pres h1 {
    margin-top: 37vh;
    margin-bottom: 20vh;
    font-size: 15vw;
}

.section h1 {
    display: flex;
    justify-content: center;
    margin-top: 37vh;
    margin-bottom: 20vh;
    font-size: 15vw;
}

@keyframes back {
    from {
        background-position: 0% 0%;
    }
    to {
        background-position: 0% 100%;
    }
}

.section-pres h2 {
    font-size: max(7vw, 30px); /* Taille du texte pour le rendre bien visible */
    text-align: center;
    padding-left: 10%;
    padding-right: 10%;
}

.section-pres p {
    font-size: max(2vw, 15px);
    text-align: center;
    line-height: 2;
}

.section-event {
    position: absolute;
    display: flex;
    flex-direction: column;
    left: 0;
    bottom: 0;
    margin-bottom: 5vh;
    margin-left: 5vw;
    margin-right: 5vw;
    z-index: 10;
    padding: 3vh;
    max-width: 50vw;
    color: var(--theme-op90);
}

.section-fusee {
    position: absolute;
    display: flex;
    flex-direction: column;
    z-index: 10;
    padding: 3vh;
    max-width: 40vw;
    color: var(--theme-op90);
}

.arrange_fus1 {
    left: 0;
    bottom: 0;
    margin-bottom: 5vh;
    margin-left: 5vw;
}

.arrange_fus2 {
    right: 0;
    bottom: 0;
    margin-bottom: 5vh;
    margin-right: 5vw;
}

.arrange_fus3 {
    left: 0;
    top: 0;
    margin-top: 10vh;
    margin-left: 5vw;
}

.arrange_fus4 {
    right: 0;
    top: 0;
    margin-top: 10vh;
    margin-right: 5vw;
}

.section-article {
    position: absolute;
    display: flex;
    flex-direction: column;
    z-index: 10;
    padding: 3vh;
    margin-right: 10vw;
    margin-left: 10vw;
    align-items: center;
    color: var(--theme-op90);
}

.section {
    display: flex; /* Active Flexbox */
    justify-content: center; /* Centre horizontalement le contenu */
    align-items: center; /* Centre verticalement le contenu */
    flex-direction: column; /* Affiche les éléments en colonne (titre et texte) */
    text-align: right; /* Centre le texte dans chaque élément */
    position: relative;
    padding: 0;
    height: 100vh;
    z-index: -1;
}

.section h2 {
    text-align: center;
    font-size: max(20px, 3vw); /* Taille du texte pour le rendre bien visible */
    margin: 0;
}

.section p {
    font-size: max(11px, 1vw); /* Taille du texte pour le rendre bien visible */
    text-align: center;
    line-height: 1.6;
}

.compte-button {
    display: none;
}

.plus-button {
    display: block;
    position: fixed;
    bottom: 20px;
    right: 40px;
    z-index: 1001;
    transition:
        background 0.3s ease,
        transform 0.3s ease;
    transform: rotate(45deg);
    font-size: 40px;
}

.plus-button:hover {
    transform: rotate(45deg) scale(1.1);
}

.plus-button.active {
    transform: rotate(0deg);
}
.plus-button.active:hover {
    transform: rotate(0deg) scale(1.1);
}

li {
    text-align: center;
}

.compte-button-bigscreen {
    display: block;
    z-index: 2001;
    transition:
        background 0.3s ease,
        transform 0.3s ease;
}

.compte-button-bigscreen:hover {
    transform: scale(1.1);
}

.input-group {
    position: relative;
    padding-right: 20%;
    padding-left: 20%;
}

.input-group__input_text {
    font-family: inherit;
    width: 100%;
    border: 0;
    border-bottom: 2px solid var(--theme);
    outline: 0;
    font-size: 1.3rem;
    color: var(--theme);
    padding: 7px 0;
    background: transparent;
    padding-bottom: 6px;
    font-weight: 700;
    border-width: 3px;
    border-image: linear-gradient(
        to right,
        rgba(255, 255, 255, 0),
        var(--theme),
        var(--theme),
        var(--theme),
        rgba(255, 255, 255, 0)
    );
    border-image-slice: 1;
}

.input-group__label {
    top: 0;
    display: block;
    transition: all 0.2s;
    font-size: 1rem;
    color: var(--theme);
}

a {
    text-decoration: none;
}

.input-group__input_text:focus {
    border-width: 3px;
    border-image: linear-gradient(
        to right,
        rgba(255, 255, 255, 0),
        var(--theme2),
        var(--theme),
        var(--theme2),
        rgba(255, 255, 255, 0)
    );
    border-image-slice: 1;
}

input[type="file"] {
    display: none;
}

/* On créé un bouton en ciblant un élément dans la balise label */
label span {
    position: relative;
    padding: max(1vw, 8px);
    background: var(--theme);
    color: var(--black);
    cursor: pointer;
    border-radius: 5vw;
    transition: all 0.3s;
}

label span:hover {
    background: var(--theme2-op50);
}

input[type="date"] {
    position: relative;
    background-color: var(--theme);
    padding: 0.6vw;
    color: var(--black);
    font-size: 18px;
    border: none;
    outline: none;
    border-radius: 5vw;
    padding-left: 10px;
    transition: all 0.3s;
}
::-webkit-calendar-picker-indicator {
    background-color: var(--theme2-op50);
    padding: 5px;
    cursor: pointer;
    border-radius: 50%;
}

input[type="date"]:hover {
    background-color: var(--theme2-op50);
}

#image_date_container {
    display: flex;
    flex-direction: row;
    align-items: center;
    text-align: center;
    padding-right: 20%;
    padding-left: 20%;
    justify-content: space-between;
}

.image_date {
    margin-top: 3vh;
    align-items: center;
}

.form-control {
    display: flex;
    text-align: center;
    align-items: center;
    font-size: 2rem;
    font-weight: bold;
    line-height: 1;
    justify-content: space-around;
}

.form-control:focus-within {
    color: var(--form-control-color);
}

input[type="radio"] {
    /* Add if not using autoprefixer */
    -webkit-appearance: none;
    /* Remove most all native input styles */
    -moz-appearance: none;
    appearance: none;
    /* For iOS < 15 */
    background-color: var(--form-background);
    /* Not removed via appearance */
    font: inherit;
    color: currentColor;
    width: max(1vw, 8px);
    height: max(1vw, 8px);
    border: max(1vw, 8px) solid currentColor;
    border-radius: 50%;
    display: grid;
    place-content: center;
    transition: 0.3s;
    margin-left: 1vw;
}

input[type="radio"]::before {
    content: "";
    width: max(1vw, 8px);
    height: max(1vw, 8px);
    border-radius: 50%;
    transform: scale(0);
    transition: 120ms transform ease-in-out;
    box-shadow: inset 1em 1em var(--form-control-color);
    /* Windows High Contrast Mode */
    background-color: CanvasText;
}

input[type="radio"]:checked::before {
    transform: scale(1);
}

input[type="radio"]:focus {
    outline: max(0.2vw, 2px) solid currentColor;
    outline-offset: max(0.2vw, 2px);
}

.radio-container {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.radio-container p {
    font-size: max(2vw, 15px);
    margin: 0;
    text-align: center;
    display: flex;
}

.input-group_radio {
    margin-top: 2vh;
    margin-bottom: 2vh;
}

.submit-button {
    margin-top: 5vh;
    font-family: inherit;
    color: var(--theme);
    padding: max(1vw, 8px);
    font-size: max(2vw, 15px);
}

.more-button {
    margin-top: 5vh;
    font-family: inherit;
    color: var(--theme);
    padding: max(1vw, 8px);
    font-size: max(2vw, 15px);
}

#canvas {
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    width: 100vw;
    height: 100vh;
}

#canvas2 {
    position: absolute;
    left: 0;
    z-index: -100;
    pointer-events: none;
}

.canvas-container::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0) 60%,
        rgba(0, 0, 0, 1)
    );
    pointer-events: none;
}

.contact {
    position: relative;
    margin-top: 5%;
    width: 70%;
    padding: 2vw 5vw;
    margin-bottom: 2vw;
    height: max(25%, 30vw);
}

.contact p {
    text-align: center;
    line-height: 2;
    font-size: max(2vw, 10px);
}

.contact h1 {
    margin-top: min(10%, 20px);
    margin-bottom: 0%;
    text-align: center;
    line-height: 2;
    font-size: max(4vw, 30px);
}

@media (max-width: 800px) and (min-width: 400px) {
    #logo_navbar {
        display: flex;
        position: fixed;
        top: max(10px, 1.5vh);
        left: max(20px, 5vw);
    }

    .section-event {
        max-width: 100vw;
    }

    #image_date_container {
        flex-direction: column;
    }

    nav {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }

    #menu_v {
        top: max(10px, 4vh - 19px);
        right: max(20px, 6vw - 3px);
        position: fixed;
        margin-top: 0;
    }

    .link {
        text-decoration: none;
        color: #fff;
        padding: 10px;
        position: relative;
        border-radius: 20px;
        line-height: 2;
    }

    #menu_v_ul {
        display: none;
    }

    #menu_v_ul.show {
        margin-top: 20px;
        position: fixed;
        padding-top: 60px;
        padding-left: 20px;
        padding-right: 20px;
        padding-bottom: 10px;
        width: max-content;
        height: fit-content;
        display: block;
        list-style: none;
        flex-direction: column;
        border-radius: 30px;
        z-index: 1010;
        top: max(10px, 1.5vh + 6px);
        right: max(20px, 6vw - 4px);
    }

    #menu_h_ul {
        display: none;
    }
    .logo {
        position: fixed;
        top: max(10px, 1.5vh);
        left: max(50px, 20vw);
    }

    .burger-menu {
        display: block;
    }

    .compte-button.show {
        display: block;
        position: fixed;
        top: 42px;
        right: max(20px, 6vw + 115px);
        z-index: 2001;
        transition:
            background 0.3s ease,
            transform 0.3s ease;
        transform: scale(1.1);
    }

    .compte-button-bigscreen {
        display: none;
    }
}

@media (max-width: 600px) {
    .section-event {
        max-width: 100vw;
    }

    .subsection {
        flex-direction: column;
        margin-bottom: 50px;
    }

    #image_date_container {
        flex-direction: column;
    }

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

    nav {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }

    #menu_v {
        top: max(10px, 4vh);
        right: max(20px, 6vw);
        position: fixed;
    }

    .link {
        text-decoration: none;
        color: #fff;
        padding: 10px;
        position: relative;
        border-radius: 20px;
        line-height: 2;
    }

    #menu_v_ul {
        display: none;
    }

    #menu_v_ul.show {
        margin-top: 20px;
        position: fixed;
        padding-top: 60px;
        padding-left: 20px;
        padding-right: 20px;
        padding-bottom: 10px;
        width: max-content;
        height: fit-content;
        display: block;
        list-style: none;
        flex-direction: column;
        border-radius: 30px;
        z-index: 1010;
        top: max(10px, 1.5vh + 6px);
        right: max(20px, 6vw - 4px);
    }

    #menu_h_ul {
        display: none;
    }
    .logo {
        display: none;
        position: fixed;
        top: max(10px, 1.5vh);
        left: max(50px, 20vw);
    }

    #logo_navbar {
        display: flex;
        position: fixed;
        top: max(10px, 1.5vh);
        left: max(0px, 0vw);
    }

    .burger-menu {
        display: block;
    }

    .compte-button.show {
        display: block;
        position: fixed;
        top: 42px;
        right: max(20px, 6vw + 115px);
        z-index: 2001;
        transition:
            background 0.3s ease,
            transform 0.3s ease;
        transform: scale(1.1);
    }

    .compte-button:hover {
        transform: scale(1.1);
    }

    .compte-button.active {
        transform: scale(1.1);
    }

    .compte-button-bigscreen {
        display: none;
    }

    .subsection h3 {
        font-size: 3vw;
        width: 70vw;
        padding: 5%;
    }

    .section-image {
        width: 60vw;
        height: fit-content;
        z-index: 100;
    }

    #image_date_container {
        padding-right: 5%;
        padding-left: 5%;
    }
}

#imagetext {
    overflow: hidden;
    white-space: nowrap;
}
