/**
 * Page Accueil Jeunes.
 *
 * Blocs dans includes/jeunes-*.php. Réutilise des règles de association.css
 * (.asso-texte, .asso-section-alt) : les deux feuilles sont chargées par
 * index.php. On n'ajoute ici que ce qui est propre à la page.
 */

/* ---- Présentation ---- */
.jeunes-hero-media {
    position: relative;
}

.jeunes-hero-media img {
    width: 100%;
    border-radius: 15px;
}

.jeunes-badge {
    position: absolute;
    left: -15px;
    top: -20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background-color: var(--color-jaune, #F79E31);
    color: #ffffff;
    text-align: center;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
    transform: rotate(-8deg);
}

.jeunes-badge-age {
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
}

.jeunes-badge-texte {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.jeunes-hero-texte {
    padding-left: 15px;
}

.jeunes-hero-texte .btn {
    margin: 5px 8px 5px 0;
}

/* ---- Objectifs ---- */
.jeunes-objectif {
    height: calc(100% - 30px);
    margin-bottom: 30px;
    padding: 35px 25px 25px;
    background-color: #ffffff;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.jeunes-objectif:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.jeunes-objectif-icone {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    margin-bottom: 18px;
    border-radius: 50%;
    background-color: var(--color-creme, #FFF8E7);
    color: var(--color-rouge, #BD3223);
    font-size: 30px;
}

.jeunes-objectif h4 {
    margin-bottom: 10px;
    font-size: 19px;
    color: var(--color-rouge);
    font-weight: 500;
}

.jeunes-objectif p {
    margin: 0;
    color: var(--color-grey, #555555);
    font-size: 15px;
    line-height: 1.6;
}

/* ---- Temps forts ---- */
.jeunes-carte {
    display: flex;
    flex-direction: column;
    height: calc(100% - 30px);
    margin-bottom: 30px;
    overflow: hidden;
    background-color: #ffffff;
    border-radius: 15px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.25s ease;
}

.jeunes-carte:hover {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.16);
}

.jeunes-carte-media {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.jeunes-carte-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.jeunes-carte:hover .jeunes-carte-media img {
    transform: scale(1.05);
}

.jeunes-carte-periode {
    position: absolute;
    left: 15px;
    bottom: 15px;
    padding: 5px 14px;
    border-radius: 30px;
    background-color: var(--color-rouge, #BD3223);
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
}

.jeunes-carte-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 25px;
}

.jeunes-carte-body h3 {
    margin-bottom: 12px;
    font-size: 22px;
    color: var(--color-rouge, #BD3223);
}

.jeunes-carte-texte {
    flex: 1;
    font-size: 15.5px;
    line-height: 1.7;
}

.jeunes-carte-bouton {
    align-self: flex-start;
    margin-top: 15px;
    padding: 11px 24px;
}

/* ---- Inscription ---- */
.jeunes-inscription {
    background-color: var(--color-creme, #FFF8E7);
}

.jeunes-etapes {
    margin: 0;
    padding: 0;
    list-style: none;
}

.jeunes-etape {
    position: relative;
    display: flex;
    gap: 20px;
    margin: 0;
    padding-bottom: 30px;
}

/* Trait vertical qui relie les pastilles numérotées */
.jeunes-etape:not(:last-child)::before {
    content: "";
    position: absolute;
    top: 50px;
    bottom: 0;
    left: 24px;
    width: 2px;
    background-color: var(--color-jaune, #F79E31);
    opacity: 0.5;
}

.jeunes-etape-numero {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--color-jaune, #F79E31);
    color: #ffffff;
    font-size: 22px;
    font-weight: 700;
}

.jeunes-etape h4 {
    margin: 10px 0 6px;
    font-size: 19px;
}

.jeunes-etape p {
    margin: 0;
    font-size: 15.5px;
    line-height: 1.7;
}

.jeunes-memo {
    padding: 30px;
    background-color: #ffffff;
    border-top: 5px solid var(--color-rouge, #BD3223);
    border-radius: 15px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
}

.jeunes-memo h4 {
    margin-bottom: 15px;
    font-size: 19px;
}

.jeunes-memo h4 .fa {
    margin-right: 6px;
    color: var(--color-rouge, #BD3223);
}

.jeunes-horaires ul {
    margin: 0 0 20px;
    padding: 0;
    list-style: none;
}

.jeunes-horaires li {
    display: flex;
    justify-content: space-between;
    margin: 0;
    padding: 8px 0;
    border-bottom: 1px dashed #dddddd;
}

.jeunes-tarif {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 10px;
    background-color: var(--color-creme, #FFF8E7);
}

.jeunes-tarif-prix {
    font-size: 30px;
    font-weight: 700;
    line-height: 1;
    color: var(--color-rouge, #BD3223);
    white-space: nowrap;
}

.jeunes-tarif-texte {
    font-size: 14.5px;
    line-height: 1.4;
}

.jeunes-memo-bouton {
    width: 100%;
}

/* ---- Fonctionnement ---- */
.jeunes-temps {
    height: calc(100% - 30px);
    margin-bottom: 30px;
    padding: 30px;
    border-radius: 15px;
    background-color: #f8f8f8;
}

.jeunes-temps-alt {
    background-color: var(--color-creme, #FFF8E7);
}

.jeunes-temps h3 {
    margin-bottom: 4px;
    font-size: 22px;
    color: var(--color-rouge, #BD3223);
}

.jeunes-temps h3 .fa {
    margin-right: 6px;
    color: var(--color-jaune, #F79E31);
}

.jeunes-temps-sous-titre {
    margin-bottom: 20px;
    color: var(--color-grey, #555555);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* Frise horaire : une pastille par créneau, reliées par un trait */
.jeunes-frise ul {
    position: relative;
    margin: 0;
    padding: 0;
    list-style: none;
}

.jeunes-frise ul::before {
    content: "";
    position: absolute;
    top: 12px;
    bottom: 12px;
    left: 6px;
    width: 2px;
    background-color: var(--color-jaune, #F79E31);
    opacity: 0.5;
}

.jeunes-frise li {
    position: relative;
    display: flex;
    gap: 15px;
    margin: 0;
    padding: 7px 0 7px 30px;
    font-size: 15.5px;
}

.jeunes-frise li::before {
    content: "";
    position: absolute;
    top: 13px;
    left: 0;
    width: 14px;
    height: 14px;
    border: 3px solid var(--color-jaune, #F79E31);
    border-radius: 50%;
    background-color: #ffffff;
}

.jeunes-frise strong {
    flex-shrink: 0;
    width: 120px;
    color: var(--color-rouge, #BD3223);
}

.jeunes-temps-note {
    margin: 15px 0 0;
    color: var(--color-grey, #555555);
    font-size: 14px;
    font-style: italic;
}

/* ---- Équipe ---- */
.jeunes-membre {
    height: calc(100% - 30px);
    margin-bottom: 30px;
    padding: 30px 25px;
    border-radius: 15px;
    background-color: #ffffff;
    text-align: center;
}

.jeunes-membre .asso-avatar {
    margin-bottom: 18px;
}

.jeunes-membre h4 {
    margin-bottom: 4px;
    font-size: 19px;
}

.jeunes-membre-role {
    margin-bottom: 12px;
    color: var(--color-rouge, #BD3223);
    font-size: 14px;
    font-weight: 600;
}

.jeunes-membre p:last-child {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
}

.jeunes-tarif-note {
    margin: -8px 0 20px;
    color: var(--color-grey, #555555);
    font-size: 13.5px;
    line-height: 1.5;
}

/* ---- Tarifs & aides ---- */
.jeunes-aide {
    display: flex;
    gap: 20px;
    height: calc(100% - 30px);
    margin-bottom: 30px;
    padding: 25px;
    border: 1px solid #eeeeee;
    border-radius: 15px;
    background-color: #ffffff;
}

.jeunes-aide-chiffre {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: var(--color-creme, #FFF8E7);
    color: var(--color-rouge, #BD3223);
    font-size: 24px;
    font-weight: 700;
    white-space: nowrap;
}

.jeunes-aide-chiffre .fa {
    font-size: 36px;
}

.jeunes-aide-body h4 {
    margin-bottom: 8px;
    font-size: 19px;
}

.jeunes-aide-texte p {
    margin-bottom: 8px;
    font-size: 15px;
    line-height: 1.6;
}

.jeunes-aide-texte .jeunes-aide-condition {
    margin: 0;
    color: var(--color-rouge, #BD3223);
    font-size: 14px;
    font-weight: 600;
}

.jeunes-faq-titre {
    margin-bottom: 15px;
    font-size: 22px;
    color: var(--color-rouge, #BD3223);
}

@media (max-width: 991px) {
    .jeunes-hero-texte {
        padding: 30px 0 0;
    }

    .jeunes-badge {
        left: 10px;
        width: 95px;
        height: 95px;
    }

    .jeunes-badge-age {
        font-size: 24px;
    }

    .jeunes-memo {
        margin-top: 10px;
    }
}

@media (max-width: 575px) {
    .jeunes-aide {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .jeunes-frise li {
        flex-direction: column;
        gap: 0;
    }
}

/* =========================================================
   Page de détail d'un temps fort (temps-fort.php)
   ========================================================= */
.tf-retour {
    margin-bottom: 25px;
}

.tf-image {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
}

.tf-image img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.tf-entete {
    padding-left: 15px;
}

.tf-resume {
    margin-bottom: 22px;
    font-size: 18px;
    line-height: 1.6;
}

.tf-infos {
    margin: 0 0 24px;
    padding: 6px 22px;
    border-radius: 15px;
    background-color: var(--color-creme, #FFF8E7);
}

.tf-infos > div {
    display: flex;
    gap: 16px;
    padding: 13px 0;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.12);
}

.tf-infos > div:last-child {
    border-bottom: none;
}

.tf-infos dt {
    flex-shrink: 0;
    width: 135px;
    margin: 0;
    color: var(--color-rouge, #BD3223);
    font-weight: 700;
}

.tf-infos dt .fa {
    width: 18px;
}

.tf-infos dd {
    margin: 0;
    line-height: 1.5;
}

.tf-boutons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tf-boutons small {
    margin-left: 6px;
    opacity: 0.8;
    font-size: 12px;
}

.tf-description {
    margin-top: 50px;
    font-size: 16.5px;
    line-height: 1.8;
}

.tf-description h3 {
    margin: 30px 0 12px;
    color: var(--color-rouge, #BD3223);
    font-size: 24px;
}

.tf-description ul {
    margin-bottom: 18px;
}

.tf-autres {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.tf-autres h2 {
    margin-bottom: 20px;
    font-size: 26px;
}

.tf-autre {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 15px;
    padding: 18px 22px;
    border-radius: 12px;
    background-color: #f8f8f8;
    color: inherit;
    text-decoration: none;
}

.tf-autre:hover {
    background-color: var(--color-creme, #FFF8E7);
    color: inherit;
    text-decoration: none;
}

.tf-autre small {
    width: 100%;
    color: var(--color-grey, #555555);
}

.tf-autre strong {
    flex: 1;
    font-size: 17px;
}

.tf-autre .fa {
    color: var(--color-rouge, #BD3223);
}

@media (max-width: 991px) {
    .tf-entete {
        padding: 25px 0 0;
    }
}

@media (max-width: 575px) {
    .tf-infos > div {
        flex-direction: column;
        gap: 2px;
    }
}

/* Cartes des temps forts : titre cliquable et lien vers la brochure */
.jeunes-carte-media {
    display: block;
}

.jeunes-carte-body h3 a {
    color: inherit;
    text-decoration: none;
}

.jeunes-carte-body h3 a:hover {
    text-decoration: underline;
}

.jeunes-carte-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 16px;
    margin-top: 15px;
}

.jeunes-carte-actions .jeunes-carte-bouton {
    margin-top: 0;
}

.jeunes-carte-brochure {
    color: var(--color-rouge, #BD3223);
    font-size: 14.5px;
    font-weight: 600;
}

/* Photo d'un membre de l'équipe (même médaillon que les initiales) */
.jeunes-membre .jeunes-membre-photo {
    display: block;
    margin-bottom: 18px;
}
