/* RESET TITRE SEO */
h1 {
    display: none;
}

/* HERO  */

.rules-hero {
    margin-top: 60px;
    text-align: center;
    padding: 40px 20px;
}

.rules-hero h2 {
    font-family: 'Anton', serif;
    font-size: 3rem;
    color: #F5F5F5;
    margin-bottom: 20px;
}

.rules-hero p {
    font-family: 'Arimo', serif;
    color: #F5F5F5;
    font-size: 1.2rem;
    max-width: 750px;
    margin: 0 auto;
    line-height: 1.6;
}
p.small {
    color: #AAAAAA;
    font-size: 0.8rem;
    font-style: italic;
    margin-top: 10px;
}

/* CONTENT */

.rules-content {
    padding: 80px 20px;
}

/* GRID */
.rules-content .container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    align-items: stretch; /* IMPORTANT */
}

/* BLOCS */
.preparation,
.deroulement,
.vote {
    background-color: #1C1C1C;
    padding: 35px;
    border-radius: 18px;

    display: flex;
    flex-direction: column;
    justify-content: flex-start;

    height: 100%; /* IMPORTANT */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.preparation:hover,
.deroulement:hover,
.vote:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.5);
}

/* TITRES BLOCS */
.preparation h2,
.deroulement h2,
.vote h2 {
    font-family: 'Anton', serif;
    font-size: 1.6rem;
    color: #9D2137;
    margin-bottom: 20px;
    margin-top: 0; 
}

/* LISTES */
.rules-content ol {
    padding-left: 20px;
    margin: 0;
}

.rules-content li {
    font-family: 'Arimo', serif;
    font-size: 1.05rem;
    color: #F5F5F5;
    margin-bottom: 15px;
    line-height: 1.5;
    text-align: left;
}

.avertissement {
    grid-column: 1 / -1; /* prend toute la largeur sous la grid */
    justify-self: center;
    color: #F5F5F5;
    margin-top: 20px;
    font-family: 'Arimo', serif;
    font-size: 1.05rem;
}

.avertissement a {
    color: #9D2137;
    text-decoration: none;
    transition: all 0.3s ease;
}

.avertissement a:hover {
    color: #541826;
}

/* BOUTON */
.rules-content .btn-primary {
    grid-column: 1 / -1; /* prend toute la largeur sous la grid */
    justify-self: center;
    margin-top: 20px;
    padding: 14px 35px;
    font-family: 'Arimo', serif;
    font-size: 1.1rem;
    text-decoration: none;
    color: #F5F5F5;
    background-color: #541826;
    border-radius: 10px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.rules-content .btn-primary:hover {
    background-color: #9D2137;
    transform: scale(1.05);
}

/* CONTAINER */
.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* ANIMATIONS JS */
.animate-block {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.animate-block.active {
    opacity: 1;
    transform: translateY(0);
}

/* RESPONSIVE  */

/* Tablette */
@media (max-width: 1024px) {
    .rules-content .container {
        grid-template-columns: repeat(2, 1fr);
    }

    .rules-hero h2 {
        font-size: 2.5rem;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .rules-content .container {
        grid-template-columns: 1fr;
    }

    .rules-hero h2 {
        font-size: 2.1rem;
    }

    .rules-hero p {
        font-size: 1rem;
    }
}

/* Petit mobile */
@media (max-width: 480px) {
    .preparation,
    .deroulement,
    .vote {
        padding: 25px;
    }

    .preparation h2,
    .deroulement h2,
    .vote h2 {
        font-size: 1.3rem;
    }

    .rules-content li {
        font-size: 0.95rem;
    }
}