.youth-project {
    --project-blue: #07338e;
    --project-gold: #ffca00;
    --project-pale: #edf1fa;
    color: var(--project-blue);
}

.youth-hero {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background: white;
}

.youth-hero::after {
    content: "";
    position: absolute;
    z-index: -1;
    top: -110px;
    right: -105px;
    width: clamp(200px, 28vw, 390px);
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--project-gold);
    pointer-events: none;
}

.youth-hero .badge {
    border-radius: 999px;
}

.youth-hero .youth-wordmark {
    margin-bottom: 16px;
    font-size: .64em;
    font-weight: 800;
}

.youth-wordmark b {
    color: #8b6000;
}

.youth-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
}

.youth-stats div {
    display: flex;
    flex-direction: column-reverse;
    justify-content: flex-end;
    gap: 7px;
    padding: clamp(13px, 2.2vw, 25px);
    border-radius: 16px;
    background: var(--project-blue);
    color: white;
}

.youth-stats dt { font-size: .9rem; font-weight: 750; line-height: 1.3; }
.youth-stats dd { margin: 0; color: var(--project-gold); font-size: clamp(1.6rem, 4vw, 3.2rem); font-weight: 800; line-height: 1; }
.youth-stats small { font-size: .48em; white-space: nowrap; }
.youth-project-dates { margin-top: 12px; font-size: .86rem; }

.youth-objectives {
    counter-reset: project-objective;
    list-style: none;
}

.youth-objectives li {
    counter-increment: project-objective;
    position: relative;
    padding: 17px 17px 17px 65px;
    border-radius: 14px;
}

.youth-objectives li::before {
    content: counter(project-objective, decimal-leading-zero);
    position: absolute;
    top: 17px;
    left: 14px;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--project-gold);
    color: var(--project-blue);
    font-weight: 800;
}

.youth-objectives strong { display: block; color: var(--project-blue); }
.youth-section#participants { background: white; }
.youth-audience li { border-color: transparent; border-radius: 16px; background: var(--project-pale); }

.youth-partners li {
    display: grid;
    position: relative;
    align-content: start;
    gap: 8px;
    border: 0;
    border-radius: 16px;
    text-align: center;
    padding-top: 34px;
}

.youth-partner-identity {
    display: grid;
    min-height: 125px;
    align-content: end;
    justify-items: center;
    gap: 8px;
}

.youth-partner-logo { width: 174px; max-width: 100%; height: 92px; margin: 0; object-position: center; }
.youth-country { justify-content: center; margin: 0; }
.youth-coordinator {
    position: absolute;
    top: 9px;
    left: 50%;
    translate: -50%;
    margin: 0;
    padding: 2px 10px;
    border-radius: 999px;
    background: var(--project-gold);
    color: var(--project-blue);
    font-size: .72rem;
    font-weight: 800;
}

.youth-follow { background: var(--project-blue); color: white; }
.youth-follow h2, .youth-follow .lede { color: white; }
.youth-follow .button:first-child { border-color: var(--project-gold); background: var(--project-gold); color: var(--project-blue); }
.youth-follow .button.outline { border-color: #fff; color: white; }
.youth-follow .button.outline:hover { background: white; color: var(--project-blue); }
.youth-funding { border: 0; border-radius: 16px; background: white; }

@media (max-width: 700px) {
    .youth-hero::after { top: -140px; right: -125px; }
}

@media (max-width: 390px) {
    .youth-partners { grid-template-columns: 1fr; }
}

.youth-wordmark-image {
    width: min(100%, 360px);
    height: auto;
    margin-bottom: 16px;
}

.youth-nav {
    position: sticky;
    top: 90px;
    z-index: 2;
    background: var(--project-pale);
    border-bottom: 1px solid #d8e0f0;
    box-shadow: 0 5px 12px rgb(7 51 142 / 8%);
}

.youth-nav .wrap {
    flex-wrap: nowrap;
    gap: 7px;
    padding: 10px 4px;
    overflow-x: auto;
    scrollbar-width: thin;
}

.youth-nav a {
    flex: 0 0 auto;
    padding: 7px 12px;
    border: 1px solid #d8e0f0;
    border-radius: 999px;
    background: white;
    color: var(--project-blue);
    font-size: .88rem;
    text-decoration: none;
    white-space: nowrap;
}

.youth-nav a:hover,
.youth-project:has(#objectifs:target) .youth-nav a[href="#objectifs"],
.youth-project:has(#activites:target) .youth-nav a[href="#activites"],
.youth-project:has(#calendrier:target) .youth-nav a[href="#calendrier"],
.youth-project:has(#participants:target) .youth-nav a[href="#participants"],
.youth-project:has(#partenaires:target) .youth-nav a[href="#partenaires"],
.youth-project:has(#resultats:target) .youth-nav a[href="#resultats"],
.youth-project:has(#suivre-le-projet:target) .youth-nav a[href="#suivre-le-projet"] {
    background: var(--project-gold);
    border-color: var(--project-gold);
}

.youth-nav a:focus-visible { outline-offset: 1px; }
.youth-section[id] { scroll-margin-top: 62px; }

@media (max-width: 850px) {
    .youth-nav .wrap { scrollbar-width: none; }
    .youth-nav .wrap::-webkit-scrollbar { display: none; }
}

.youth-nav-next {
    display: none;
}

@media (max-width: 850px) {
    .youth-nav:has(.youth-nav-next:not([hidden])) .wrap {
        padding-inline-end: 51px;
    }

    .youth-nav-next:not([hidden]) {
        position: absolute;
        inset-block-start: 50%;
        inset-inline-end: max(9px, calc((100% - 1280px) / 2));
        translate: 0 -50%;
        display: grid;
        place-items: center;
        width: 44px;
        height: 44px;
        padding: 0;
        border: 0;
        border-radius: 50%;
        box-shadow: 0 0 0 4px var(--project-pale);
        background: var(--project-gold);
        color: var(--project-blue);
        cursor: pointer;
    }

    .youth-nav-next::after {
        content: "";
        width: 10px;
        height: 10px;
        margin-inline-end: 3px;
        border: solid currentColor;
        border-width: 2px 2px 0 0;
        transform: rotate(45deg);
    }
}
