
.parchment::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: #fffef0 url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAMAAAAp4XiDAAAAUVBMVEWFhYWDg4N3d3dtbW17e3t1dXWBgYGHh4d5eXlzc3OLi4ubm5uVlZWPj4+NjY19fX2JiYl/f39ra2uRkZGZmZlpaWmXl5dvb29xcXGTk5NnZ2c8TV1mAAAAG3RSTlNAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAvEOwtAAAFVklEQVR4XpWWB67c2BUFb3g557T/hRo9/WUMZHlgr4Bg8Z4qQgQJlHI4A8SzFVrapvmTF9O7dmYRFZ60YiBhJRCgh1FYhiLAmdvX0CzTOpNE77ME0Zty/nWWzchDtiqrmQDeuv3powQ5ta2eN0FY0InkqDD73lT9c9lEzwUNqgFHs9VQce3TVClFCQrSTfOiYkVJQBmpbq2L6iZavPnAPcoU0dSw0SUTqz/GtrGuXfbyyBniKykOWQWGqwwMA7QiYAxi+IlPdqo+hYHnUt5ZPfnsHJyNiDtnpJyayNBkF6cWoYGAMY92U2hXHF/C1M8uP/ZtYdiuj26UdAdQQSXQErwSOMzt/XWRWAz5GuSBIkwG1H3FabJ2OsUOUhGC6tK4EMtJO0ttC6IBD3kM0ve0tJwMdSfjZo+EEISaeTr9P3wYrGjXqyC1krcKdhMpxEnt5JetoulscpyzhXN5FRpuPHvbeQaKxFAEB6EN+cYN6xD7RYGpXpNndMmZgM5Dcs3YSNFDHUo2LGfZuukSWyUYirJAdYbF3MfqEKmjM+I2EfhA94iG3L7uKrR+GdWD73ydlIB+6hgref1QTlmgmbM3/LeX5GI1Ux1RWpgxpLuZ2+I+IjzZ8wqE4nilvQdkUdfhzI5QDWy+kw5Wgg2pGpeEVeCCA7b85BO3F9DzxB3cdqvBzWcmzbyMiqhzuYqtHRVG2y4x+KOlnyqla8AoWWpuBoYRxzXrfKuILl6SfiWCbjxoZJUaCBj1CjH7GIaDbc9kqBY3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adow: 2px 3px 20px black, 0 0 125px #8f5922 inset;
    filter: url(#parchment-filter);
    transform: translateZ(0);
    will-change: filter;
}

.stone-box::before {
    content: "";
    position: absolute;
    inset: 0; /* Stretches to fill parent */
    z-index: -1; /* Puts it behind text */

    /* Stone Appearance */
    background: #888;
    border: 4px solid #444; /* Cartoon outline */
    border-radius: 10px;    /* Rounded corners aid the organic look */

    /* APPLY THE FILTER HERE */
    filter: url(#stone-filter);
}

.main-background {
    background: no-repeat url("/integfev/assets/background.jpg") center center fixed;
    background-size: cover;
}

.home {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    margin: 0;
    overflow: hidden;
    transition: height 300ms ease;
}

.home > h1 {
    display: none;
}

.home > .home--decoration {
    position: absolute;
    z-index: -1;
    width: min(calc(var(--width) * 1dvh), calc(var(--width) * 1dvw));
    height: min(calc(var(--height) * 1dvh), calc(var(--height) * 1dvw));;

    border-radius: 50%;
    background: radial-gradient(var(--color) 0%, transparent 50%);
    mix-blend-mode: lighten;
    opacity: 25%;
}

.home > .home--decorations__blue {
    /* Variables */
    --width: 170;
    --height: 200;
    --color: var(--color-green-blue);

    /* Position */
    top: 70%;
    left: 0;
    transform: translateX(-48%) translateY(-50%);
}

.home > .home--decorations__red {
    /* Variables */
    --width: 300;
    --height: 200;
    --color: var(--color-bordeaux);

    /* Position */
    top: 30%;
    right: 0;
    transform: translateX(40%) translateY(-50%) rotate(20deg);

    /* Autres */
    border-radius: 25%;
    opacity: 60%;
}

.home > .home--decorations__yellow {
    /* Variables */
    --width: 100;
    --height: 300;
    --color: var(--color-yellow);

    /* Position */
    bottom: 0;
    right: 0;
    transform: translateX(40%) translateY(50%);

    /* Autres */
    opacity: 15%;
}

.home > img {
    width: 70%;
}

#chevron-down {
    font-size: 6rem;
    animation: 1.5s ease-in-out 2s infinite alternate bounce;
    position: absolute;
    bottom: 0;
    color: var(--color-black);
}

@keyframes bounce {
    from {
        transform: translateY(-5px);
    }

    to {
        transform: translateY(5px);
    }
}

.section {
    padding: 4rem 7.5rem;
    position: relative;
}

.section__description {
    position: relative; /* Establish positioning context for the absolute child */
    isolation: isolate;
}

.section__description::before {
    content: "";
    position: absolute;
    inset: 0;
    backdrop-filter: blur(10px) brightness(0.5);
    z-index: -1;
}

.section__description strong {
    color: var(--color-light-brown);
}

.description--content {
    padding: 20px;
    margin-top: 30px;
    line-height: 150%;
}

.description--more {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
    font-size: 2rem;
}

.description--more strong {
    margin-top: 4px;
}

.section__planning {
    display: flex;
    flex-direction: column;
    height: 50%;
}

.planning--content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex : 1;
}

.planning--content > button {
    position: relative;
    background: none;
    border: none;
    padding: 1.5rem 3rem;
    font-size: 1.5rem;
    color: white;
    max-width: 50%;
    min-width: 15rem;
}

/* Liste des programmes */
/* Dégradé vert en fond */
.section__programme::before {
    content: "";
    display: block;
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -2;
    background: linear-gradient(180deg, #5ab0bb33 0%, #16181500 100.01%);
}


.programme {
    display: flex;
    gap: 40px;
    justify-content: left;
    align-items: flex-start;
    margin-top: 2.5rem;
    color: black;
}

.programme--evenement {
    width: 600px;
    flex-grow: 0;
    flex-shrink: 0;
}

/* Affichage des pages */
.feuille-evenement {
    position: relative;
    padding: 2.5rem;
}

.feuille-evenement::after,
.feuille-evenement::before {
    content: "";
    display: block;
    height: 100%;
    width: 100%;
    background-color: var(--color);

    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;

    transform: rotate(var(--angle));
}

.feuille-evenement::after {
    --angle: 1.65deg;
    --color: #F3EADE;
}

.feuille-evenement::before {
    --angle: -0.95deg;
    --color: #DFD3BF;
}

.feuille-evenement--en-tete {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.feuille-evenement--en-tete img {
    flex-grow: 0;
    flex-shrink: 0;
    mix-blend-mode: darken;
}

.feuille-evenement--en-tete h3 {
    font-size: 2rem;
    color: var(--color-bordeaux);
    padding: 0 7% 1rem 0;
    border-bottom: 2px solid #C29E97;
    font-weight: 400;
}

.feuille-evenement--section {
    display: flex;
    flex-direction: column;
    font-family: "Special Elite", sans-serif;
    font-size: 1.1rem;
}

.feuille-evenement--section:not(:last-child) {
    margin-bottom: 2rem;
}

.feuille-evenement--section img {
    border: 10px solid #D7BC90;
    margin-top: 1.75rem;
}

.feuille-evenement--section h4 {
    margin: 0;
    font-size: 2.5rem;
    font-weight: 400;
    color: var(--color-bordeaux);
}

.feuille-evenement--section p:first-of-type {
    font-size: 1.25rem;
    line-height: 1.75rem;
    color: var(--color-red);
    margin: 0.5rem 0 1.75rem 0;
}

.feuille-evenement--section p:not(:first-of-type) {
    margin: 0 0 1rem 0;
    display: flex;
    flex-direction: row;
    gap: 1.2rem;
}

.feuille-evenement--section p:not(:first-of-type) :first-child {
    flex-grow: 0;
    flex-shrink: 0;
}

.feuille-evenement--section p:not(:first-of-type) :last-child {
    flex-grow: 1;
    flex-shrink: 1;
    border-bottom: 1px solid hsl(9, 32%, 87%);
}

.feuille-evenement__multiple .feuille-evenement--en-tete {
    margin-bottom: 1rem;
}

.feuille-evenement__multiple .feuille-evenement--section {
    gap: 1.75rem;
    align-items: stretch;
}

.feuille-evenement__multiple .feuille-evenement--section:nth-child(2n) {
    flex-direction: row;
}

.feuille-evenement__multiple .feuille-evenement--section:nth-child(2n + 1) {
    flex-direction: row-reverse;
}

.feuille-evenement__multiple .feuille-evenement--section img {
    /* height: 200px; */
    width: 220px;
    object-fit: cover;
    border-width: 6px;
    margin: 0;
    transform: rotate(var(--angle));
}

.feuille-evenement__multiple .feuille-evenement--section:nth-child(2n) img {
    --angle: 2.5deg;
}

.feuille-evenement__multiple .feuille-evenement--section:nth-child(2n + 1) img {
    --angle: -2.5deg;
}

.programme--grille {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: left;
    column-gap: 40px;
    row-gap: 50px;
}

.programme--grille > input {
    display: none;
}

.programme--dossier {
    display: grid;
    place-content: center;
    justify-items: center;
    cursor: pointer;

    transform: scale(1);
    transition: transform 100ms ease;
}

.programme--dossier > * {
    grid-area: 1 / 1;
}

.programme--dossier > p:first-of-type {
    height: 75px;
    width: 150px;
    background-color: #FFFCF7;
    padding-top: 24px;
    margin-top: 18px;

    transition: transform 100ms ease;
    transform: translateY(0);

    font-family: "Special Elite";
    font-size: 20px;
    color: var(--color-bordeaux);
    text-align: center;
}

.programme--dossier > p:last-of-type {
    position: relative;
    z-index: 2;
    margin-top: 65px;
    width: 100%;

    font-weight: bold;
    font-size: 1.25rem;
    text-align: center;
    color: white;
}

.programme--dossier > p:last-of-type::first-line {
    font-weight: normal;
}

.programme--dossier > img:last-of-type {
    position: relative;
    z-index: 1;
    margin-top: 27px;
}

input:checked + .programme--dossier > p:first-of-type {
    transform: translateY(-40px);
}

.programme--dossier:hover > p:first-of-type,
.programme--dossier:active > p:first-of-type {
    transform: translateY(-8px);
}

.programme--dossier:active {
    transform: scale(0.95);
}

.section__parrainage {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.section__parrainage > span {
    display: none;
    color: var(--color-light-beige);
    font-size: 3rem;
    margin-top: 5rem;
    width: 100%;
    text-align: center;
    text-transform: uppercase;
    overflow-wrap: break-word;
}

.section__clans {
    background: no-repeat url("/integfev/assets/affiche_clans_vs.jpeg") center center fixed;
    background-size: cover;
    z-index: -2;
}

.section__clans > .section--contenu {
    display: grid;
    grid-template-columns: 1fr 8% 1fr;
    grid-template-rows: 150px auto 150px;
    margin: 2.5rem 0;
}

.clan {
    position: relative;

    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 2.5rem;
    border-radius: 1rem;
    padding: 2.5rem;
    color: #222;

    --scale: 1;
    transition: transform 300ms ease;
    transform: scale(var(--scale)) rotate(var(--rotation));
}

.clan:hover {
    --scale: 1.05;
}

.clan:first-of-type {
    grid-column: 1 / span 2;
    grid-row: 1 / span 2;
    --rotation: -5deg;
}

.clan:last-of-type {
    grid-column: 2 / span 2;
    grid-row: 2 / span 2;
    --rotation: 5deg;
}

.clan p {
    font-size: 1.25rem;
    line-height: 160%;
}

.clan h3 {
    font-size: 2.5rem;
    font-weight: 400;
    color: var(--color-brown);
    margin: 0;
    text-transform: uppercase;
    overflow-wrap: break-word;
    hyphens: auto;
    -ms-hyphens: auto;
    -webkit-hyphens: auto;
    -moz-hyphens: auto;
}

.clan h3::before {
    content: "Clan";
    display: block;
    margin-bottom: .5rem;

    font-size: 2rem;
    opacity: 40%;
    text-transform: none;
}

.clan img {
    width: 15dvw;
    height: 15dvw;
}

.clan div {
    min-width: 0;
    width: 100%;
}

.section__etapes > .section--contenu {
    /* Initialiser un compteur qui va s'incrémenter à chaque étape */
    position: relative;
    counter-reset: num-etape 0;
    display: flex;
    gap: 120px;
}

.section__etapes h2 {
    margin-bottom: 20px;
}

.section__etapes > img {
    position: absolute;
    left: 50%;
    top: 45%;
    transform: translateX(-50%) translateY(-50%);
}



.etape {
    counter-increment: num-etape;
    position: relative;
    /* Largeur égale */
    flex-basis: 0;
    flex-grow: 1;
}

.etape__red {
    --color: var(--color-red);
    --shadow-opacity: 35%;
}

.etape__yellow {
    --color: var(--color-yellow);
}

.etape__blue {
    --color: var(--color-green-blue);
}

.etape:nth-child(2n) {
    margin-top: 6rem;
}

.etape::before {
    content: counter(num-etape);
    height: 3.25rem;
    width: 3.25rem;

    display: flex;
    justify-content: center;
    align-items: center;

    margin: 0 auto;
    font-size: 1.75rem;
    font-weight: 600;
    border-radius: 50%;
    background-color: var(--color);
}

.etape--content {
    position: relative;
    border: 2px solid var(--color);
    border-radius: 10px;
    padding: 2.5rem 1.5rem;
    margin-top: 30px;
    /*background-color: #081420;*/
}

.etape--content::after {
    content: "";
    display: block;
    position: absolute;
    inset: 0;
    border-radius: 10px;
    opacity: var(--shadow-opacity, 20%);
    box-shadow:
        0px 4px 60px 20px var(--color),
        0px 0px 15px 0px var(--color) inset;
    z-index: -1;
}

.etape--content h3 {
    text-align: center;
    font-size: 2rem;
    margin: 0 0 1.5rem 0;
    font-weight: 400;
}

.etape--content .btn {
    display: flex;
    margin: 0 auto;
}

.etape--content p {
    line-height: 1.75rem;
}

.etape--content strong {
    color: var(--color);
    font-size: 1.2rem;
}

.etape--links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.section.section--pack {
    margin-top: 0;
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
}

.section.section--pack img {
    max-width: 400px;
}

.section--pack form {
    height: 100dvh;
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
    justify-content: center;
}

.section--pack form > * {
    max-width: 800px;
    line-height: 200%;
    text-align: center;
}

.section--pack form input {
    padding: 5px 10px;
    border: 2px solid var(--color);
    border-radius: 10px;
    width: 100%;
    max-width: 400px;
    font-size: 1.25rem;
}

.alert {
    margin: 0 2rem 1rem 2rem;
}



.alert--message {
    border: 2px solid var(--color-blue);
    color: var(--color-blue);
    border-radius: 10px;
    padding: 20px;
    background-color: #081420;
    animation: show 5s 200ms ease-out alternate;
    opacity: 0;
}

@keyframes show {
    0% {
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    75% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.alert.alert--message--error {
    border-color: var(--color-red);
    color: var(--color-red);
}

#logo-integ-large {
    min-width: 16rem;
    width: 60%;
    max-width: 23rem;
}

#integ-title {
    min-width: 18rem;
    width: 65%;
    max-width: 25rem;
}

#logo_dagul {
    position: relative;
    top: 1rem;
    height: 5rem;
}

#logo_duri {
    position: relative;
    top: 3rem;
    height: 5rem;

}

#map {
    height: 30rem;
}

@media screen and (max-width: 1400px) {
    .programme {
        flex-direction: column;
    }

    .programme--grille {
        gap: 0;
        justify-content: space-between;
    }
}

@media screen and (max-width: 1240px) {

    .section {
        padding: 1.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .section__clans > .section--contenu {
        grid-template-columns: 1fr 80% 1fr;
        grid-template-rows: auto 70px auto;
    }

    .section__etapes > .section--contenu {
        flex-direction: column;
        gap: 40px;
    }

    .clan {
        /* Inverser le sens et réduire l'angle */
        transform: scale(var(--scale)) rotate(calc(var(--rotation) * -0.7))
    }

    .clan p {
        font-size: 1rem;
    }

    .clan:first-of-type p {
        margin-bottom: 1.75rem;
    }

    .clan h3, .clan h3::before {
        font-size: 1.75rem;
    }

    .clan img {
        height: 20dvw;
        width: 20dvw;
    }

    .etape:nth-child(2n) {
        margin-top: 0;
    }

    .section__etapes > img {
        display: none;
    }

    .etape--content {
        padding: 2.5rem 1rem 1.5rem 1rem;
    }

    .etape--content h3 {
        font-size: 1.75rem;
    }

    .etape::before {
        position: absolute;
        top: 0;
        left: 0;
        transform: translateY(70%);
        z-index: 3;
    }
}

@media screen and (max-width: 620px) {
    .clan {
        flex-direction: column-reverse;
        align-items: center;
    }

    .clan:hover {
        --scale: 1;
    }

    .clan img {
        height: 40dvw;
        width: 40dvw;
    }
}
