/* ===========================
        PAGE D'ACCUEIL
   (sections sous la photo d'ouverture ;
   cartes .choice-card dans css/inscriptions.css)
=========================== */

.home-section {
    width: 100%;
    padding: clamp(2.5rem, 6vw, 4.375rem) 1.25rem;
}

.home-section--cream {
    background: rgb(251, 245, 234);
}

.home-inner {
    max-width: 68.75rem;
    margin: 0 auto;
}

.home-title {
    font-family: var(--police-titre);
    font-size: clamp(1.5rem, calc(3.5vw * var(--taille-texte)), 2.2rem);
    color: #1a4aa0;
    text-align: center;
    margin-bottom: 0.625rem;
}

.home-lead {
    font-family: var(--police-texte);
    font-size: clamp(1rem, calc(1.6vw * var(--taille-texte)), 1.15rem);
    line-height: 1.6;
    color: #2b2b2b;
    text-align: center;
    max-width: 43.75rem;
    margin: 0 auto 1.875rem;
}

/* ===== Boutons ===== */
.home-btn {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    border-radius: 62.4375rem;
    font-family: var(--police-titre);
    font-size: 1.05rem;
    color: white;
    text-decoration: none;
    background: linear-gradient(135deg, #ff7800, #ffb700);
    box-shadow: 0 0.375rem 1rem rgba(0, 0, 0, 0.2);
    transition: transform 0.25s ease, background 0.25s ease;
}

.home-btn:hover {
    transform: translateY(-0.1875rem) scale(1.04);
    background: linear-gradient(135deg, #1a4aa0, #06276b);
}

.home-btn--outline {
    background: none;
    color: #1a4aa0;
    border: 0.125rem solid #1a4aa0;
    box-shadow: none;
}

.home-btn--outline:hover {
    background: linear-gradient(135deg, #1a4aa0, #06276b);
    color: white;
}

.home-cta {
    text-align: center;
    margin-top: 1.875rem;
}

/* ===== Présentation de l'édition + chiffres clés ===== */
.home-intro {
    text-align: center;
}

.home-date {
    font-family: var(--police-titre);
    font-size: 0.95rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #ff7800;
    margin-bottom: 0.5rem;
}

.home-stats {
    background: linear-gradient(135deg, #1a4aa0, #06276b);
    padding: 2.125rem 1.25rem;
}

.home-stats-grid {
    max-width: 68.75rem;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.25rem;
    text-align: center;
}

.home-stat strong {
    display: block;
    font-family: var(--police-titre);
    font-size: clamp(1.8rem, calc(4vw * var(--taille-texte)), 2.8rem);
    color: #ffb700;
    line-height: 1.1;
}

.home-stat span {
    font-family: var(--police-texte);
    font-size: clamp(0.9rem, calc(1.4vw * var(--taille-texte)), 1.05rem);
    color: white;
}

/* ===== Les 4 épreuves ===== */
.race-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.race-card {
    background: white;
    border-radius: 1.25rem;
    padding: 1.625rem 1.125rem;
    text-align: center;
    box-shadow: 0 0.5rem 1.25rem rgba(0, 0, 0, 0.1);
    border-top: 0.375rem solid #1a4aa0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.race-card:hover {
    transform: translateY(-0.375rem);
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.16);
}

.race-card--main {
    border-top-color: #ff7800;
    background: linear-gradient(135deg, #ff7800, #ffb700);
    color: white;
}

.race-card h3 {
    font-family: var(--police-titre);
    font-size: 1.3rem;
    color: #1a4aa0;
}

.race-card--main h3 {
    color: white;
}

.race-km {
    display: block;
    font-family: var(--police-titre);
    font-size: 2.2rem;
    color: #ff7800;
    margin: 0.375rem 0;
}

.race-card--main .race-km {
    color: white;
}

.race-card p {
    font-family: var(--police-texte);
    font-size: 0.98rem;
    line-height: 1.5;
}

.race-note {
    text-align: center;
    margin-top: 1.25rem;
    font-family: var(--police-texte);
    font-size: 1rem;
    color: #2b2b2b;
}

/* ===== Parcours : photo + texte ===== */
.home-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(1.5rem, 4vw, 3.125rem);
    align-items: center;
}

.home-split img {
    width: 100%;
    height: 100%;
    max-height: 23.75rem;
    object-fit: cover;
    border-radius: 1.25rem;
    box-shadow: 0 0.625rem 1.5625rem rgba(0, 0, 0, 0.2);
}

.home-split h2 {
    font-family: var(--police-titre);
    font-size: clamp(1.5rem, calc(3.5vw * var(--taille-texte)), 2.2rem);
    color: #1a4aa0;
    margin-bottom: 0.875rem;
}

.home-split p {
    font-family: var(--police-texte);
    font-size: clamp(1rem, calc(1.5vw * var(--taille-texte)), 1.1rem);
    line-height: 1.7;
    color: #2b2b2b;
    margin-bottom: 1rem;
}

.home-quote {
    font-family: var(--police-titre);
    font-style: italic;
    color: #ff7800;
}

/* ===== Points forts ===== */
.home-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.home-feature {
    background: white;
    border-radius: 1.25rem;
    padding: 1.75rem 1.5rem;
    box-shadow: 0 0.5rem 1.25rem rgba(0, 0, 0, 0.1);
}

.home-feature h3 {
    font-family: var(--police-titre);
    font-size: 1.25rem;
    color: #1a4aa0;
    margin-bottom: 0.625rem;
}

.home-feature h3::before {
    content: '';
    display: inline-block;
    width: 0.75rem;
    height: 0.75rem;
    margin-right: 0.625rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff7800, #ffb700);
}

.home-feature p {
    font-family: var(--police-texte);
    font-size: 1rem;
    line-height: 1.6;
    color: #2b2b2b;
}

/* ===== Frise de la journée ===== */
.home-steps {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    position: relative;
}

.home-steps::before {
    content: '';
    position: absolute;
    top: 1.375rem;
    left: 12%;
    right: 12%;
    height: 0.1875rem;
    background: linear-gradient(90deg, #ff7800, #1a4aa0);
}

.home-step {
    position: relative;
    text-align: center;
    font-family: var(--police-texte);
    font-size: 1rem;
    line-height: 1.5;
    color: #2b2b2b;
}

.home-step strong {
    display: inline-block;
    position: relative;
    margin-bottom: 0.625rem;
    padding: 0.5rem 1.125rem;
    border-radius: 62.4375rem;
    background: #1a4aa0;
    color: white;
    font-family: var(--police-titre);
    font-size: 1.1rem;
}

.home-step--main strong {
    background: #ff7800;
}

.home-step span {
    display: block;
}

/* ===========================
          RESPONSIVE
=========================== */
@media (max-width: 900px) {
    .race-grid,
    .home-steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .home-features {
        grid-template-columns: 1fr;
    }

    .home-steps::before {
        display: none;
    }
}

@media (max-width: 700px) {
    .home-split {
        grid-template-columns: 1fr;
    }

    .home-split img {
        max-height: 16.25rem;
    }
}

@media (max-width: 600px) {
    .home-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.625rem 0.625rem;
    }

    /* le 5e chiffre est centré sur sa propre ligne */
    .home-stat:last-child {
        grid-column: 1 / -1;
    }

    .race-grid,
    .home-steps {
        grid-template-columns: 1fr;
    }
}
