/* Espace enfants (« /apprendre ») : style du site (demande de l'exploitant, 04/11/2026). Cartes sobres comme sur l'accueil :
   fond blanc, fin contour, ombre légère ; l'orange de l'espace enfants ne marque que le liseré et la flèche. */
:root {
    --child-orange: #ef7d12;
    --child-navy: #0a2463;
}

.child-page {
    padding: 2rem 0 1rem;
}

.child-head__hello {
    margin: 0 0 .4rem;
    color: #b45708;
    font-size: .95rem;
    font-weight: 650;
}

.child-head__title {
    margin: 0;
    color: var(--child-navy);
    font-size: clamp(1.7rem, 2.6vw, 2.3rem);
    font-weight: 820;
    letter-spacing: -.03em;
}

/* Chemin des thèmes, en pastilles discrètes. */
.child-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 1rem 0 0;
    padding: 0;
    list-style: none;
}

.child-steps a,
.child-steps span {
    display: inline-block;
    padding: 5px 12px;
    border: 1px solid #e4e9f0;
    border-radius: 999px;
    background: #fff;
    color: var(--child-navy);
    font-size: .82rem;
    text-decoration: none;
}

.child-steps a:hover,
.child-steps a:focus-visible {
    border-color: var(--child-orange);
}

.child-steps .is-current a {
    border-color: var(--child-orange);
    background: #fff4e8;
    color: #b45708;
    font-weight: 700;
}

.child-steps .is-soon span {
    color: var(--bbb-muted);
}

/* Cartes : matières, thèmes, exercices. */
.child-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px;
    margin: 1.6rem 0 0;
    padding: 0;
    list-style: none;
}

.child-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 4px;
    height: 100%;
    padding: 16px 44px 16px 18px;
    border: 1px solid #e4e9f0;
    border-top: 3px solid var(--child-orange);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 6px 18px rgba(9, 31, 82, .06);
    color: var(--child-navy);
    text-decoration: none;
    transition: box-shadow var(--bbb-transition), transform var(--bbb-transition);
}

.child-card:hover,
.child-card:focus-visible {
    box-shadow: 0 10px 26px rgba(9, 31, 82, .1);
    transform: translateY(-2px);
}

.child-card strong {
    font-size: 1.05rem;
    font-weight: 750;
    line-height: 1.25;
}

.child-card span {
    color: #4e5a70;
    font-size: .85rem;
}

.child-card .child-card__focus {
    color: #b45708;
    font-weight: 700;
}

.child-card .child-card__kind {
    color: #b45708;
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.child-card em {
    position: absolute;
    top: 50%;
    right: 18px;
    color: var(--child-orange);
    font-size: 1.2rem;
    font-style: normal;
    transform: translateY(-50%);
}

.child-back {
    margin: 1.6rem 0 0;
}

.child-back a {
    color: var(--child-navy);
    font-weight: 650;
    text-decoration: none;
}

.child-back a:hover,
.child-back a:focus-visible {
    color: #b45708;
}

.child-empty {
    margin: 1.6rem 0 0;
    color: var(--bbb-muted);
}

@media (max-width: 580px) {
    .child-page {
        padding-top: 1.4rem;
    }

    .child-cards {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }
}
