/* ===== PREMIER ÉCRAN =====
   Titre de la page + bandeau Sport-Up + cartes occupent toute la hauteur de
   l'écran : les partenaires et le footer sont juste en dessous, hors écran. */
.page-content {
    min-height: 100vh;
    min-height: 100svh;
}

/* ===== SECTION ===== */
.inscriptions-choice {
    display: grid;
    /* deux cartes côte à côte, une seule colonne sur mobile (voir plus bas) */
    grid-template-columns: repeat(2, minmax(0, 1fr));
    /* ligne 1 : bandeau Sport-Up ; lignes suivantes : les cartes se partagent
       toute la hauteur restante (1 ligne sur ordinateur, 2 sur mobile) */
    grid-template-rows: auto;
    grid-auto-rows: minmax(12.5rem, 1fr);
    gap: clamp(1rem, 2.5vw, 2.5rem);
    padding: clamp(1rem, 2.4vw, 2.25rem) clamp(1rem, 2.5vw, 2.25rem);
    flex: 1;
    width: 100%;
    max-width: 93.75rem;
    margin: 0 auto;
}

/* ===== BANDEAU SPORT-UP ===== */
.sportup-banner {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 1.375rem;
    margin-bottom: clamp(0rem, 1.5vw, 1.875rem);
}

/* Lignes dégradées de part et d'autre du texte
   (sur mobile, le texte prend toute la largeur et elles disparaissent) */
.sportup-banner::before,
.sportup-banner::after {
    content: "";
    flex: 1;
    height: 0.1875rem;
    border-radius: 0.1875rem;
}

.sportup-banner::before {
    background: linear-gradient(90deg, transparent, #ff7800);
}

.sportup-banner::after {
    background: linear-gradient(90deg, #1a4aa0, transparent);
}

.sportup-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem 1.25rem;
    text-align: center;
}

.sportup-inner span {
    font-family: var(--police-titre);
    font-size: clamp(1.9rem, calc(5.5vw * var(--taille-texte)), 3.6rem);
    color: #004489;
}

.sportup-inner img {
    height: clamp(3.625rem, 8vw, 5.625rem);
    width: auto;
    /* Le logo inclut la virgule jaune dessous : on le descend un peu pour que
       "sport-up.fr" soit sur la même ligne visuelle que "Rendez-vous sur" */
    transform: translateY(20%);
}

/* ===== CARD ===== */
.choice-card {
    position: relative;
    text-decoration: none;
    color: white;
    border-radius: 1.25rem;
    overflow: hidden;
    min-height: 16.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

/* ===== GLOW EFFECT ===== */
.choice-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(255,255,255,0.25), transparent 40%);
    opacity: 0;
    transition: opacity 0.35s ease;
    z-index: 1;
}

/* ===== CONTENT ===== */
.card-content {
    position: relative;
    padding: 1.875rem;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    justify-content: center
}

.choice-card {
    position: relative;
    text-decoration: none;
    color: white;
    border-radius: 1.25rem;
    overflow: hidden;
    min-height: 12.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

/* Cacher les images img dans le contenu */
.card-content img {
    display: none;
}

.choice-card h2 {
    font-family: var(--police-titre);
    font-size: 2.5rem;
    margin-bottom: 2.1875rem;
    letter-spacing: 0.0625rem;
    text-shadow: 0.125rem 0.125rem 0.25rem rgba(0,0,0,0.3);
    margin-top: auto
}

/* Âges de l'épreuve, sous le titre de la carte */
.card-ages {
    margin: -1.375rem 0 1.625rem;
    font-family: var(--police-texte);
    font-size: 1.15rem;
    text-shadow: 0.0625rem 0.0625rem 0.1875rem rgba(0,0,0,0.35);
}

/* ===== BUTTON STYLE ===== */
.card-button {
    display: inline-block;
    background: white;
    color: #1a4aa0;
    padding: 0.625rem 1.375rem;
    border-radius: 62.4375rem;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.25s ease;
    margin-top: auto
}

.choice-card:hover h2 {
    color: #1a4aa0;
}

/* ===== HOVER EFFECTS ===== */
.choice-card:hover {
    transform: translateY(-0.625rem) scale(1.02);
    box-shadow: 0 1.25rem 2.5rem rgba(0,0,0,0.25);
}

.choice-card:hover::before {
    opacity: 1;
}

.choice-card:hover .card-button {
    background: linear-gradient(135deg, #1a4aa0, #06276b);
    color: white;
    transform: scale(1.08);
}

/* ===== ACTIVE CLICK ===== */
.choice-card:active {
    transform: translateY(-0.25rem) scale(0.99);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 780px) {
    .inscriptions-choice {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 600px) {
    .choice-card {
        min-height: 12.5rem;
    }
    .choice-card h2 {
        font-size: 1.5rem;
    }
}

