/* RESET */

html,
body,
p,
ol,
ul,
li,
dl,
dt,
dd,
blockquote,
figure,
fieldset,
legend,
textarea,
pre,
iframe,
hr,
h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0;
    padding: 0
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-size: 100%;
    font-weight: normal
}

ul {
    list-style: none
}

button,
input,
select {
    margin: 0
}

html {
    box-sizing: border-box
}

*,
*::before,
*::after {
    box-sizing: inherit
}

img,
video {
    height: auto;
    max-width: 100%
}

iframe {
    border: 0
}

table {
    border-collapse: collapse;
    border-spacing: 0
}

td,
th {
    padding: 0
}


/* RESET END */


/* UTILS */

.underline {
    text-decoration: underline !important;
}

.bold {
    font-weight: 700;
}


/* UTILS END */

:root {
    --black-color: #333;
    --white-color: #FAFAFA;
}

html {
    height: 100%;
    scroll-behavior: smooth;
}

body {
    height: 100%;
    background-color: var(--white-color);
    font-size: 18px;
    line-height: 1.4;
    color: var(--black-color);
    font-family: 'Roboto', sans-serif;
}


/* ---- HEADER ---- */

.header {
    position: relative;
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 10px 20px;
    align-items: center;
    text-align: center;
    background-image: url("img/cover.jpg");
    background-size: cover;
    background-position: center;
}

.header::before {
    content: "";
    position: absolute;
    display: block;
    top: 0;
    left: 0;
    z-index: 0;
    background-color: rgba(255, 255, 255, .65);
    height: 100%;
    width: 100%;
}

.header>* {
    width: 100%;
}

.header-logo {
    max-width: 700px;
    position: relative;
}

.header-title {
    position: relative;
    /* background-color: var(--black-color);
    border-radius: 25px; */
}

.header .header-title h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--black-color);
    text-transform: uppercase;
    text-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
}

.header .header-subtitle {
    position: relative;
}

.header .header-subtitle h2 {
    background: linear-gradient(91.25deg, #AB2057 5.05%, #E44A23 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
    padding: 5px 10px;
}

.header-arrow {
    position: relative;
    color: var(--black-color);
    z-index: 1;
}

/* ----COUNTDOWN---- */

.countdown-container {
    position: relative;
    z-index: 1;
    text-align: center;
    margin: 20px 0;
}

.countdown-digital {
    font-family: 'Roboto', sans-serif;
    font-size: 4rem;
    font-weight: 700;
    color: var(--black-color);
    letter-spacing: 2px;
    display: inline-block;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    backdrop-filter: blur(5px);
}

@media (max-width: 600px) {
    .countdown-digital {
        font-size: 2.5rem;
    }
}

.header .countdown-container h2#countdown-title {
    margin: 0 0 5px 0;
    padding: 0;
    
    font-family: 'Roboto', sans-serif;
    font-size: 22px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 10px;
    
    background: linear-gradient(91.25deg, #AB2057 5.05%, #E44A23 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    
    /* Ombre légère pour décoller du fond si besoin */
    text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.25);
    
    display: block;
}

@media (max-width: 600px) {
    .header .countdown-container h2#countdown-title {
        font-size: 18px;
        letter-spacing: 1px;
    }
}

/* ----MAIN---- */

.nav-container {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--white-color);
}

.nav {
    top: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;
    padding: 0 5px;
    background-color: var(--white-color);
    margin: 110px auto 0 auto;
    transition: box-shadow .3s;
    max-width: 440px;
}

.nav-container.sticked {
    box-shadow: 0px 3px 5px -1px #333;
}

.nav a {
    text-decoration: none;
    width: 110px;
    height: 45px;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    color: #909090;
    border: 1px solid #AAAAAA;
    border-radius: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 5px 0;
    transition: background .3s, color .3s, border .3s;
}

.nav a:hover {
    border: 1px solid #EA4B52;
    color: #EA4B52;
}

.nav .active,
.nav .active:hover {
    color: var(--white-color);
    background: #EA4B52;
    border: 1px solid #EA4B52;
}


/* ----SECTIONS---- */

.sections>section {
    padding: 120px 15px;
}

.sections section>header {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sections section>header .icon {
    width: 30%;
}

.sections section>header h2 {
    font-size: 36px;
    font-weight: 700;
    letter-spacing: 0.3em;
    margin: 10px 0 50px 0;
}


/* --CHIFFRES-- */

section.chiffres {
    position: relative;
}

.event-desc .desc {
    margin: 20px;
    text-align: justify;
}

.event-desc .participants {
    padding-top: 50px;
    text-align: center;
    display: flex;
    flex-wrap: wrap;
}

.event-desc h3 {
    text-align: center;
    background: linear-gradient(91.25deg, #AB2057 5.05%, #E44A23 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
    padding: 5px 10px;
    font-size: 24px;
}

.participants .participant {
    margin: 15px auto;
    width: 390px;
    border-radius: 25px;
    display: flex;
    flex-direction: column;
    border: var(--black-color) solid 1px;

    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.participants .participant:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 
                0 10px 10px -5px rgba(0, 0, 0, 0.1);
}

.participant .nom {
    background-color: var(--black-color);
    color: var(--white-color);
    border-top-left-radius: 25px;
    border-top-right-radius: 25px;
    padding: 5px 0;
}

.participant .theme {
    color: var(--white-color);
    font-weight: 700;
    padding: 20px 15px;
}

.participant .etablissement {
    padding: 5px 15px;
}

.participant .asso {
    padding: 5px 15px;
}

.participants .pack {
    padding: 15px;         /* Espace autour de l'image */
    margin-top: auto;      /* Pousse l'image vers le bas si la carte s'étire */
    text-align: center;
}

.participants .pack img {
    max-width: 100%;       /* L'image s'adapte à la largeur de la carte */
    height: auto;          /* Garde les proportions */
    border-radius: 15px;   /* Un petit arrondi sur l'image pour le style */
    box-shadow: 0 6px 8px rgba(0,0,0,0.1); /* Légère ombre pour faire ressortir */
    display: block;        /* Évite les décalages */
    margin: 0 auto;        /* Centre l'image */
}

.event-desc .end {
    text-align: center;
    margin: 30px 0;
    background: linear-gradient(91.25deg, #AB2057 5.05%, #E44A23 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
    padding: 5px 10px;
    font-size: 24px;
}

.values {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 10px 0;
}

.values .value {
    text-align: center;
    font-weight: 700;
    margin: 20px;
}

.value .chiffre {
    font-size: 36px;
}

.teaser a {
    background-color: var(--black-color);
    color: var(--white-color);
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 25px;
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 100px 0;
}

.teaser a svg {
    margin-right: 10px;
}


/* center the blockquote in the page */

.blockquote-wrapper {
    display: flex;
    height: 500px;
    padding: 0 20px;
}


/* Blockquote main style */

.blockquote {
    position: relative;
    font-weight: 700;
    color: var(--black-color);
    padding: 30px 0;
    width: 100%;
    max-width: 500px;
    z-index: 1;
    margin: 80px auto;
    align-self: center;
    border-top: solid 1px;
    border-bottom: solid 1px;
}


/* Blockquote header */

.blockquote h1 {
    position: relative;
    color: var(--black-color);
    font-size: 40px;
    font-weight: 700;
    line-height: 1;
    margin: 0;
}


/* Blockquote right double quotes */

.blockquote:after {
    position: absolute;
    content: "”";
    color: var(--black-color);
    font-size: 10rem;
    line-height: 0;
    bottom: -43px;
    right: 30px;
}


/* increase header size after 600px */

@media all and (min-width: 600px) {
    .blockquote h1 {
        font-size: 60px;
    }
}


/* --PROGRAMME-- */

.carte {
    text-align: center;
    margin: 0 0 100px 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.carte .fleche {
    margin: 0 20px;
    font-weight: bold;
}

.carte a {
    background-color: var(--black-color);
    color: var(--white-color);
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 25px;
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
}

.carte .carte-dl {
    width: 20px;
    height: 20px;
}

section.programme {
    background: linear-gradient(180deg, #D05B64 0%, #FAB61F 41.15%, #FAFAFA 100%);
}

.timetable-title {
    margin-top: 20px;
    position: relative;
    text-align: center;
}

.timetable-title h3 {
    font-size: 36px;
    font-weight: 700;
}

.timetable-title::before {
    content: "";
    display: inline-block;
    border: 1px solid var(--black-color);
    height: 1px;
    width: 20%;
    position: absolute;
    top: -20px;
    transform: translate(-50%, 0%);
}

.timetable {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.timetable>.schedule {
    margin-bottom: 20px;
    text-align: center;
    width: 100%;
}

.timetable>.schedule::before {
    content: "";
    display: inline-block;
    border: 1px solid var(--black-color);
    height: 1px;
    width: 20%;
}

.schedule>header {
    display: flex;
    flex-direction: column;
    margin: 20px 0;
}

.schedule>header .time {
    font-size: 36px;
    font-weight: 700;
}

.schedule>header .desc {
    font-size: 24px;
}

.schedule .thumbnails {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
}

.thumbnails>* {
    background-color: var(--black-color);
    max-width: 350px;
    width: 100%;
    height: 145px;
    margin: 15px 0;
    border-radius: 10px;
    color: var(--white-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
}

.thumbnails>*:nth-child(2n) {
    flex-direction: row-reverse;
}

.thumbnail>.icon {
    color: #F9B233;
    flex: 1;
}

.thumbnail>p {
    flex: 3;
}

/* --EPREUVES-- */
.epreuve-content {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding-bottom: 64px;
    position: relative;
}

.carousel-arrow {
    position: absolute;
    display: flex;
    justify-content: center;
    top: 0;
    bottom: 64px;
    margin-block: auto;
    height: fit-content;
    width: 48px;
    background-color: var(--white-color);
    border: none;
    font-size: 3rem;
    padding: 0;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 100ms;
}

.carousel-arrow:hover,
.carousel-arrow:focus {
    opacity: 1;
}

.carousel-arrow--prev {
    left: 0;
}

.carousel-arrow--next {
    right: 0;
}

.carousel-container {
    width: 100%;
    padding-block: 16px 32px;
    margin: 16px 48px;
    overflow-x: auto;
    display: flex;
    width: 100%;
    gap: 8px;
    align-items: center;
    scroll-snap-type: x mandatory;
    flex-flow: row nowrap;
    scroll-behavior: smooth;
}

.carousel-container::-webkit-scrollbar {
    height: 14px;
    width: calc(100% - 48px);
}

.carousel-container::-webkit-scrollbar-track {
    background: #b1b3b399;
}

.carousel-container::-webkit-scrollbar-thumb {
    background: #29AB87;
}

.carousel-container::-webkit-scrollbar-track-piece:start {
    background: #29AB87;
}

.carousel-slide {
    flex: 1 0 30%;
    aspect-ratio: 1;
    flex-flow: column nowrap;
    display: flex;
    justify-content: center;
    align-items: center;
    scroll-snap-align: center;
}

.epreuve-img {
    width: 100%;
    border-radius: 30px;
}

@media (max-width: 600px) {
    .carousel-slide {
        flex: 1 0 90%;
    }
}


/* --PARTENAIRES-- */

.parts {
    text-align: center;
}


/* --PASS-- */

section.pass {
    background-color: var(--black-color);
    color: var(--white-color);
    padding: 120px 0;
    text-align: center;
}

.pass .content .warning {
    background-color: #E20001;
    text-transform: uppercase;
    font-size: 22px;
    font-weight: 700;
    padding: 20px 10px;
}

.pass .content .link-gouv-website {
    display: inline-block;
    margin-top: 50px;
    color: inherit;
}


/* --INSCRIPTION-- */

.inscription-steps {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.inscription-steps>.step {
    border-radius: 25px;
    border: 1px solid var(--black-color);
    position: relative;
    text-align: center;
    padding: 10px 20px;
    margin-top: 80px;
    max-width: 500px;
}

.step .number {
    color: var(--white-color);
    position: absolute;
    top: -30px;
    left: calc(50% - 30px);
    width: 60px;
    height: 60px;
    background-color: var(--black-color);
    border-radius: 50%;
    font-size: 24px;
    font-weight: 700;
    line-height: 60px;
}

.step .text {
    margin-top: 35px;
}

.step .button {
    display: inline-block;
    background-color: #48C6E2;
    border-radius: 25px;
    text-decoration: none;
    color: #000;
    width: 90%;
    padding: 5px 0;
    margin: 10px 0 5px 0;
    transition: box-shadow .3s;
    position: relative;
    overflow: hidden;
    transition: color .4s;
}

.step .button span {
    z-index: 1;
    position: relative;
}

.step .button::before {
    content: '';
    display: block;
    position: absolute;
    background-color: var(--black-color);
    top: 50%;
    left: 50%;
    width: 200%;
    height: 0;
    transform: translate3d(-50%, -50%, 0) rotate(45deg);
    transition: height .45s;
}

.step .button:hover {
    color: var(--white-color);
}

.step .button:hover::before {
    height: 870%;
}


/* --CONTACT-- */

section.contact {
    background-color: #EE7457;
    text-align: center;
}

.contact .content {
    color: var(--white-color);
}

.web-link {
    color: var(--white-color);
    text-decoration: none;
}


/* ----FOOTER---- */

.footer {
    background-color: var(--black-color);
    color: var(--white-color);
    text-align: center;
    font-size: 16px;
    padding: 20px 5px;
}


/* ----MEDIA---- */

@media (min-width: 700px) {
    .header .header-logo::after {
        font-size: 18px;
        bottom: 50px;
    }

    .header .header-title h1 {
        font-size: 32px;
    }

    .header .header-subtitle h2 {
        font-size: 24px;
    }

    .nav {
        max-width: 1400px;
    }

    .sections section>* {
        max-width: 1200px;
        margin-left: auto;
        margin-right: auto;
    }

    .sections section>header {
        flex-direction: row;
        align-items: center;
        max-width: 1300px;
        margin-bottom: 100px;
    }

    .sections section>header .icon {
        flex: 1;
    }

    .sections section>header h2 {
        margin: 0;
        flex: 2;
    }

    .chiffres .values {
        flex-direction: row;
        justify-content: space-around;
    }

    .step {
        width: 500px;
    }
}

@media (min-width: 1200px) {
    .header .header-logo::after {
        font-size: 24px;
        bottom: 50px;
    }

    .header .header-title h1 {
        font-size: 42px;
    }

    .header .header-subtitle h2 {
        font-size: 30px;
    }

    .timetable {
        flex-direction: row;
        align-items: flex-start;
        flex-wrap: wrap;
        justify-content: center;
    }

    .timetable>* {
        max-width: 400px;
    }

    .schedule>header .desc {
        min-height: 67.2px;
    }
}