* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

b {
    font-weight: 600;
}

html,
body {
    overflow-x: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    width: 100%;
    z-index: -100;
}

li {
    line-height: 1.5;
}

ul {
    padding-left: 0;
    /* Supprime le padding par défaut de la liste */
    list-style-position: inside;
    /* Positionne les puces à l'intérieur de la boîte de la liste */
}

ol {
    padding-left: 0;
    /* Supprime le padding par défaut de la liste */
    list-style-position: inside;
    /* Positionne les numéros à l'intérieur de la boîte de la liste */
}

ul,
li,
p {
    font-weight: 300;
}

li strong,
p strong {
    font-weight: 500;
}

/* Section principale */
.page1 {
    color: white;
    text-align: center;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url(../images/background.webp);
    background-position: center center;
    background-size: cover;
    overflow: hidden;
}

hr {
    border: none;
    /* Supprime la bordure par défaut */
    height: 3px;
    /* Épaisseur de la ligne */
    background: linear-gradient(to right, #7e622c, #a0844e);
    /* Dégradé subtil autour de #7e622c */
    margin: 20px 0;
    /* Espacement vertical */
    border-radius: 5px;
    /* Coins arrondis */
    box-shadow: 0 0 10px rgba(126, 98, 44, 0.8);
    /* Lueur pour le contraste sur fond noir */
}

.presentation h1 {
    font-size: 2.2rem;
    font-weight: 1000;
    text-transform: uppercase;
    max-width: 90%;
    margin-inline: auto;
}

.presentation p {
    font-size: 0.9rem;
    font-weight: 100;
}

.page1 main {
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    justify-content: center;
    padding: 130px 0 100px;
}


.info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.5rem;
}

.tuto {
    text-align: center;
}

.cta {
    gap: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.localisation p {
    font-size: 1.2rem;
    font-weight: 500;
}

.date p {
    font-size: 1.2rem;
    font-weight: 500;
}

.localisation,
.date {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

#countdown p {
    font-size: 1.4rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.timer {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: center;
}

#jours,
#heures,
#minutes,
#secondes {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 2.5rem;
    font-weight: 700;
}

#jours span,
#heures span,
#minutes span,
#secondes span {
    font-weight: 100;
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.cta button {
    background: linear-gradient(60deg, #c98853, #d5b763 80%, #c98853);
    color: #fff;
    font-weight: 600;
    padding: 1rem 2rem;
    font-size: 1rem;
    border: none;
    margin-top: 20px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 4px 15px rgba(201, 136, 83, 0.3);
}

.cta button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.cta button:hover {
    background: linear-gradient(60deg, #d5a05a, #e0c16a 80%, #d5a05a);
    box-shadow: 0 8px 25px rgba(201, 136, 83, 0.5);
    filter: brightness(1.1);
}

.cta button:hover::before {
    left: 100%;
}

.cta button:active {
    transform: scale(0.98);
    box-shadow: 0 2px 10px rgba(201, 136, 83, 0.4);
}



.page2 {
    background-color: #F4F4FB;
    padding: 2rem;
    color: #333;
    min-height: 100vh;
}

.page2 h3 {
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.page2 p {
    font-size: 1rem;
    line-height: 1.5;
    text-wrap: balance;
}

.page2 h2 {
    font-size: 1.8rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}



.phases {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.phase-card {
    display: flex;
    flex-direction: column;
    background-color: #FFFFFF;
    padding: 2rem;
    cursor: pointer;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.svg {
    border: 1px solid rgba(0, 0, 0, .1);
    border-radius: 1rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.svg img {
    width: 30px;
}

.phase-card h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 1rem 0;
    text-align: left;
    color: #9f8046;
}

.phase-card p {
    font-size: 1rem;
    color: #555;
    margin: 0;
    line-height: 1.4;
}

/* Section des catégories modernisée */
.cat {
    background: white;
    padding: 80px 0px;
    color: #333;
    position: relative;
    overflow: hidden;
    max-width: 1200px;
    margin: 0 auto;
}

.categories-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #9f8046;
    margin: 0;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.categories-grid {
    display: flex;
    gap: 2rem;
}

.category-card {
    background-color: #9f804624;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
}

.category-card h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #9f8046;
    position: relative;
}

.category-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-card li {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(159, 128, 70, 0.1);
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
    transition: all 0.3s ease;
    position: relative;
}

.category-card li:last-child {
    border-bottom: none;
}

.category-card li strong {
    color: #333;
    font-weight: 600;
}


/* Conteneur principal du formulaire */

.page3 {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url(../images/background_form.jpg);
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: auto;
}

.page3 main {
    overflow: hidden;
}

/* Conteneur de formulaire */
.form-container {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 3rem;
    position: relative;
    z-index: 2;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.haut {
    margin-bottom: 1.5rem;
}

/* Titre du formulaire */
.haut h2 {
    margin-bottom: 0.5rem;
    font-size: 1.6rem;
    font-weight: 600;
}

.haut p {
    font-size: 1rem;
}

/* Lien de connexion */
.haut p a {
    color: #000;
    font-weight: 500;
    text-decoration: underline;
    transition: color 0.3s ease;
    cursor: pointer;
}


/* Champs de saisie */
label {
    font-weight: bold;
    font-size: 0.85rem;
    margin-top: 1rem;
}

input,
select {
    margin-bottom: 1rem;
    padding-bottom: 10px;
    border: none;
    border-bottom: #f4f4f4 2px solid;
    width: 100%;
    font-size: 1rem;
    background: #fff;
}

input:focus,
select:focus {
    border-color: #000;
    outline: none;
}

/* Messages d'erreur */
.message {
    color: #FF6B6B;
    font-weight: bold;
    font-size: 0.9rem;
    text-align: center;
    margin-top: 1rem;
    padding: 0.5rem;
    border: 1px solid #FF6B6B;
    border-radius: 8px;
    background-color: rgba(255, 107, 107, 0.1);
}

.form-container label {
    display: flex;
    flex-direction: column;
}

/* Bouton d'inscription */
button[type="submit"] {
    background: linear-gradient(60deg, #c98853, #d5b763 80%, #c98853);
    color: #FFF;
    border: none;
    padding-block: 16px;
    font-size: 1rem;
    font-weight: 500;
    margin-top: 1.5rem;
    cursor: pointer;
    width: 100%;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 4px 15px rgba(201, 136, 83, 0.3);
}

button[type="submit"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

button[type="submit"]:hover {
    background: linear-gradient(60deg, #d5a05a, #e0c16a 80%, #d5a05a);
    box-shadow: 0 8px 25px rgba(201, 136, 83, 0.5);
    filter: brightness(1.1);
}

button[type="submit"]:hover::before {
    left: 100%;
}

button[type="submit"]:active {
    transform: scale(0.98);
    box-shadow: 0 2px 10px rgba(201, 136, 83, 0.4);
}

.unused {
    opacity: .2;
    pointer-events: none;
}



/* Styles spécifiques à partir de 768px (tablette) */
@media screen and (min-width: 768px) {
    
    .categories-grid {
        flex-direction: row;
        gap: 2rem;
    }
    
    .category-card {
        flex: 1;
    }

    /* Section principale */
    .page1 {
        min-height: 60vh;
        background-position: center center;
    }

    .presentation p {
        font-size: 1rem;
    }

    .presentation h2 {
        font-size: 3rem;
        margin-bottom: 1.5rem;
    }

    .info {
        display: flex;
        gap: 2rem;
        flex-direction: row;
        justify-content: center;
    }

    .localisation p,
    .date p {
        font-size: 1.5rem;
    }


    .timer {
        gap: 2rem;
    }

    .page2 {
        padding: 0;
        margin: 0 auto;
    }

    .page2 h2 {
        font-size: 2.2rem;
        margin-bottom: 2rem;
    }

    .page2 p {
        font-size: 1rem;
    }

    .phases {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }

    .phase-card {
        padding: 2rem;
    }

    .phase-card h3 {
        font-size: 2rem;
        margin-bottom: 0.8rem;
        line-height: 1.25;
        margin-top: 0;
    }

    .phase-card p {
        font-size: 1rem;
    }



    .page3 main {
        max-width: 600px;
        margin: 0 auto;
    }

    .form-container {
        padding: 2rem;
    }

    .haut h2 {
        font-weight: 600;
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }

    .haut p {
        font-size: 1rem;
    }

    input,
    select {
        font-size: 1rem;
    }

    button[type="submit"] {
        font-size: 1.1rem;
        padding: 15px;
        margin-top: 2rem;
    }
}

/* Styles spécifiques à partir de 1024px (desktop) */
@media screen and (min-width: 1024px) {

    /* Section principale */
    .page1 {
        min-height: 60vh;
        color: white;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding-top: 2rem;
        background-position: center;
        background-size: cover;
        overflow: hidden;
    }

    .page1 h1 {
        max-width: 1100px;
        font-size: 4.5rem;
        text-transform: uppercase;
        font-weight: 800;
    }

    .info {
        display: flex;
        gap: 3rem;
        align-items: center;
        justify-content: center;
    }

    .localisation p,
    .date p {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        font-size: 1.3rem;
        font-weight: 500;
    }

    .timer {
        display: flex;
        gap: 2rem;
    }

    .timer div {
        display: flex;
        flex-direction: column;
        align-items: center;
        font-size: 3.125rem !important;
        font-weight: bold;
    }

    .timer span {
        font-size: 0.8rem;
        font-weight: 500;
    }

    .cta button {
        padding: 1.25rem 3rem;
    }



    /* Section principale pour la page2 */
    .page2 {
        background-color: #FFFFFF;
        color: #333;
        min-height: 80vh;
    }

    .container {
        max-width: 1200px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 1rem;
        margin: 0 auto;
        margin-top: 50px;
        margin-bottom: 50px;
    }
}

/* Titre et paragraphe d'introduction */

.tuto h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    padding-bottom: 1.5rem;
}

.tuto p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin: 0;
}

/* Nouvelle structure des phases */
.phase-section {
    margin-block: 4rem 0;
    position: relative;
    width: 100%;
}

.phase-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.phase-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #9f8046;
    margin: 0;
    position: relative;
    display: inline-block;
}

.phase-header h2::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -60px;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #9f8046, #7e622c);
    border-radius: 2px;
    transform: translateY(-50%);
}

.phase-header h2::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -60px;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #9f8046, #7e622c);
    border-radius: 2px;
    transform: translateY(-50%);
}

/* Grille des règles pour la Phase 1 */
.rules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Cartes de règles */
.rule-card {
    background: #9f804624;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.rule-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
}

.rule-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #9f8046;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.rule-card ul {
    margin: 0;
    padding-left: 1.2rem;
    list-style: none;
}

.rule-card li {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.5;
    margin-bottom: 0.5rem;
    position: relative;
}

.rule-card li::before {
    content: '•';
    color: #9f8046;
    font-weight: bold;
    position: absolute;
    left: -1.2rem;
}

.rule-icon{
    background: white;
    width: fit-content;
    padding: 4px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Contenu des phases 2 et 3 */
.phase-content {
    max-width: 800px;
    margin: 0 auto;
}

.phase-intro {
    font-size: 1.1rem;
    color: #333;
    text-align: center;
    margin-bottom: 1rem;
    font-weight: 500;
}

.phase-note {
    text-align: center;
    font-size: 1rem;
    color: #9f8046;
    font-weight: 500;
    margin-top: 0.5rem;
}

.phase-cta {
    text-align: center;
    margin-top: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #9f8046, #7e622c);
    color: white;
}

.phase-cta p {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Div gauche contenant le texte */
.gauche {
    color: white;
    position: relative;
    z-index: 2;
    flex: 1;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    overflow: hidden;
}

.text-overlay {
    text-align: center;
    max-width: 600px;
    padding: 2rem;
}

.text-overlay h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.text-overlay p {
    font-size: 1.2rem;
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
    color: #f0f0f0;
}

/* Div droite contenant le formulaire */
.droite {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    padding: 2rem;
}


.form-container {
    width: 100%;
    max-width: 500px;
    padding: 3rem;
    background: #fff;
}

#registerFormContainer {
    width: 100%;
}

#info_perso {
    display: flex;
    gap: 10px;
}




/* Animation keyframes */
@keyframes fade-frames {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.8;
    }
}

@keyframes scale-frames {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.5);
    }
}

@media(max-width:810px) {
    .phase-header h2 {
        font-size: 2rem;
    }

    .phase-header h2::before,
    .phase-header h2::after {
        display: none;
    }

    .rules-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .rule-card {
        padding: 1.5rem;
    }

    .rule-card h3 {
        font-size: 1.2rem;
    }

    .rule-card li {
        font-size: 0.9rem;
    }

    .phase-intro {
        font-size: 1rem;
    }

    .phase-cta {
        padding: 1.2rem;
    }

    .phase-cta p {
        font-size: 1rem;
    }

    .presentation h1 {
        font-size: 1.75rem;
    }

    .presentation h1 span {
        font-size: 1.55rem !important;
    }

    .page2 {
        padding: 0;
    }

    .cat {
        padding: 40px 15px;
    }

    .categories-header h2 {
        font-size: 2rem;
    }

    .categories-header h2::before,
    .categories-header h2::after {
        display: none;
    }

    .categories-grid {
        flex-direction: column;
        gap: 1.5rem;
    }

    .category-card {
        padding: 1.5rem;
    }

    .category-card h3 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .category-card li {
        font-size: 0.9rem;
        padding: 0.8rem 0;
    }

    .page3 {
        flex-direction: column !important;
        padding: 40px 20px;
        margin-top: 40px;
    }

    .droite {
        width: 100%;
    }

    .form-container {
        padding: 1.5rem;
    }

    #info_perso {
        flex-direction: column;
    }
}


/* Section des gagnants - Respect de l'ADN du site */
.winners-container {
    background-color: #9f804624;
    padding: 80px 20px;
    color: #333;
}

.winners {
    max-width: 1200px;
    margin: 0 auto;
}

.winners-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #9f8046;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.winners-subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    color: #555;
    margin: 0;
}

.winners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.winner-card {
    background-color: #FFFFFF;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.winner-card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #9f8046;
    height: 72px;
}

.winner-card-header h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #9f8046;
    margin: 0;
    flex: 1;
    line-height: 1.3;
}

.winner-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}


.winner-details {
    width: 100%;
}

.winner-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
}

.winner-title {
    font-size: 1rem;
    color: #555;
    font-style: italic;
    margin-bottom: 10px;
    line-height: 1.4;
    min-height: 2.8rem;
    display: flex;
    align-items: center;
}

.winner-location {
    font-size: 0.95rem;
    color: #9f8046;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
}

.winner-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #9f804624;
    margin-top: 10px;
    width: 100%;
}

.points-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(135deg, #9f8046, #7e622c);
    color: white;
    padding: 15px 20px;
    min-width: 80px;
}

.points-number {
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1;
}

.points-label {
    font-size: 0.8rem;
    font-weight: 500;
    opacity: 0.9;
}

.votes-count {
    color: #555;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
}

.no-winner {
    padding: 40px 25px;
    color: #555;
}

.no-winner-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.5;
}

.no-winner p {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 8px;
    color: #333;
}

.no-winner small {
    font-size: 0.9rem;
    color: #9f8046;
    font-weight: 500;
}

/* Responsive design */
@media (max-width: 768px) {
    .winners-container {
        padding: 60px 15px;
    }
    
    .winners-header h2 {
        font-size: 2rem;
    }
    
    .winners-subtitle {
        font-size: 1rem;
    }
    
    .winners-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .winner-card {
        padding: 1.5rem;
    }
    
    .winner-card-header {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .winner-card-header h3 {
        font-size: 1.1rem;
    }
    
    .avatar-circle {
        width: 60px;
        height: 60px;
    }
    
    .avatar-circle span {
        font-size: 1.2rem;
    }
    
    .winner-name {
        font-size: 1.2rem;
    }
    
    .winner-stats {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .winners-header h2 {
        font-size: 1.8rem;
    }
    
    .winner-card {
        padding: 1rem;
    }
    
    .winner-stats {
        padding: 15px;
    }
}