/* Header Page */
/* ==========================================================================
   Page layout
   ========================================================================== */

/* Section principale à gauche, aside indépendant à droite */

.page-layout--aside-right {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(280px, 3fr);
    align-items: stretch;
    gap: 24px;
}

/* Les deux composants restent indépendants */

.page-section,
.page-aside {
    min-width: 0;
}

/* ==========================================================================
   Page layout — pleine largeur
   ========================================================================== */

.page-layout--full {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
}

.page-section {
    width: 100%;
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    box-shadow:
        0 14px 32px rgba(0, 0, 0, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

/* ==========================================================================
   Section de page
   ========================================================================== */

.page-section {
    width: 100%;
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    box-shadow:
        0 14px 32px rgba(0, 0, 0, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

/* Petit intitulé au-dessus du titre */

.page-panel__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--primary-color, #8fb6ff);
}

.page-panel__eyebrow i {
    font-size: 0.9rem;
}


/* ==========================================================================
   Ligne titre et retour
   ========================================================================== */

.page-section__heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}

.page-section__heading .page-section__title {
    flex: 1 1 auto;
    min-width: 0;
}

.page-section__back {
    flex: 0 0 auto;
    white-space: nowrap;
}

/* Titre principal */

.page-section__title {
    margin: 0;
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    line-height: 1.2;
    color: var(--text-color, #ffffff);
}

/* Texte d’introduction */

.page-section__text {
    margin: 16px 0 0;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-muted);
}

/* Zone des actions */

.page-section__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
}

/* ==========================================================================
   En-tête de page avec média
   ========================================================================== */

.page-heading-media {
    display: flex;
    align-items: center;
    gap: 18px;
    flex: 1 1 auto;
    min-width: 0;
}

/* Zone réservée à l’image */

.page-heading-media__visual {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 76px;
    width: 76px;
    height: 76px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
}

/* Image */

.page-heading-media__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Titre et information */

.page-heading-media__content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

/* Information placée sous le titre */

.page-heading-media__meta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    line-height: 1.4;
    color: var(--text-muted, rgba(255, 255, 255, 0.68));
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 700px) {

    .page-section {
        padding: 22px 18px;
        border-radius: 14px;
    }

    .page-section__heading {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .page-section__back {
        white-space: normal;
    }

    .page-section__title {
        font-size: 1.65rem;
    }

}

/* ==========================================================================
   Responsive — section et aside
   ========================================================================== */

@media (max-width: 900px) {

    .page-layout--aside-right {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
    }

    .page-section,
    .page-aside {
        width: 100%;
    }

}
