/* ============================================================
   Page média — disposition d'origine (2 colonnes, fond clair).
   Scopée sous .media-page. Réutilise la palette du site
   (--bs-primary #376e6f, accent "hot" #ff2e6f).
   ============================================================ */

.media-page {
    --mp-teal: #376e6f;
    --mp-teal-dark: #2c5859;
    --mp-hot-1: #ff5e9a;
    --mp-hot-2: #ff2e6f;
    --mp-line: rgba(20, 20, 30, 0.08);
    --mp-radius: 14px;
    --mp-shadow: 0 8px 22px rgba(20, 20, 35, 0.10);
}

/* ---- Média contenu : ne doit pas manger tout l'écran ---- */
.media-page .media-frame {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f4f4f6;
    border-radius: calc(0.25rem - 1px);
}
.media-page .media-contain {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: contain;
    margin: 0 auto;
}

/* Vidéo sans .mp4 capturé : poster + CTA lecture renvoyée sur MYM */
.media-page .media-play-cta {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px;
    text-align: center;
    text-decoration: none;
    color: #fff;
    font-weight: 700;
    font-size: 0.98rem;
    background: linear-gradient(180deg, rgba(0,0,0,0.18) 0%, rgba(0,0,0,0.55) 100%);
    text-shadow: 0 1px 6px rgba(0,0,0,0.6);
}
.media-page .media-play-cta__icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--mp-hot-1), var(--mp-hot-2));
    box-shadow: 0 8px 24px rgba(255, 46, 111, 0.5);
    transition: transform 0.2s ease;
}
.media-page .media-play-cta:hover { color: #fff; }
.media-page .media-play-cta:hover .media-play-cta__icon { transform: scale(1.07); }

/* ---- Section "Sa galerie — Plus de {créatrice} nue" ---- */
.media-page .media-gallery {
    margin: 34px 0 8px;
}
.media-page .mg-eyebrow {
    text-align: center;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #9a9aa6;
    margin: 0 0 4px;
}
.media-page .mg-title {
    text-align: center;
    font-size: 1.3rem;
    font-weight: 800;
    margin: 0 0 18px;
}
.media-page .mg-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}
.media-page .mg-tile {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    border-radius: 12px;
    overflow: hidden;
    background: #ececf1;
    text-decoration: none;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.media-page .mg-tile:hover {
    transform: translateY(-3px);
    box-shadow: var(--mp-shadow);
}
.media-page .mg-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.media-page .mg-tile:hover img { transform: scale(1.06); }
.media-page .mg-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}
.media-page .mg-dur {
    position: absolute;
    bottom: 7px;
    right: 7px;
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 3px;
    font-variant-numeric: tabular-nums;
}
.media-page .mg-tile--all {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 14px;
    text-align: center;
    background: linear-gradient(150deg, var(--mp-teal) 0%, var(--mp-teal-dark) 100%);
    color: #fff;
}
.media-page .mg-tile--all:hover { color: #fff; }
.media-page .mg-tile--all b { font-size: 1.5rem; line-height: 1; }
.media-page .mg-tile--all span { font-size: 0.8rem; opacity: 0.92; }
.media-page .mg-all-arrow { margin-top: 4px; font-weight: 800; }

.media-page .mg-cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 32px;
    margin-bottom: 32px;
}
.media-page .mg-cta a {
    flex: 1 1 240px;
    max-width: 360px;
    text-align: center;
    padding: 13px 18px;
    border-radius: 11px;
    font-weight: 800;
    font-size: 0.95rem;
    text-decoration: none;
    transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.media-page .mg-cta a:hover { transform: translateY(-2px); box-shadow: var(--mp-shadow); }
.media-page .mg-cta .is-hot { background: linear-gradient(135deg, var(--mp-hot-1), var(--mp-hot-2)); color: #fff; }
.media-page .mg-cta .is-soft { background: #fff; color: var(--mp-teal-dark); border: 1px solid var(--mp-line); }

/* ---- Légende créatrice (en-tête de la carte "À propos") ---- */
.media-page .mp-about__quote {
    position: relative;
    margin: 0 0 16px;
    padding: 16px 16px 14px 38px;
    background: linear-gradient(180deg, #fff5f8 0%, #fdfafb 100%);
    border: 1px solid rgba(255, 46, 111, 0.18);
    border-radius: 12px;
}
.media-page .mp-about__qmark {
    position: absolute;
    top: 0;
    left: 12px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 3rem;
    line-height: 1;
    color: rgba(255, 46, 111, 0.22);
    pointer-events: none;
}
.media-page .mp-about__quote blockquote {
    margin: 0;
    font-size: 0.94rem;
    font-style: italic;
    line-height: 1.55;
    color: #2c2c34;
    white-space: pre-line;
    overflow-wrap: anywhere;
}
.media-page .mp-about__quote figcaption {
    margin-top: 10px;
    font-size: 0.76rem;
    color: #9a9aa6;
}

.media-page .mp-disclaimer {
    text-align: center;
    font-size: 0.82rem;
    color: #9a9aa6;
    margin: 14px 0 18px;
}
.media-page .mp-disclaimer b { color: #6a6a76; }

/* ---- Carte "À propos du créateur" modernisée ---- */
.media-page .mp-about {
    background: #fff;
    border: 1px solid var(--mp-line);
    border-radius: var(--mp-radius);
    padding: 20px;
    box-shadow: var(--mp-shadow);
}
.media-page .mp-about__head {
    display: flex;
    align-items: center;
    gap: 14px;
}
.media-page .mp-about__avatar img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px var(--mp-line);
}
.media-page .mp-about__name {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 1.12rem;
    font-weight: 800;
    margin: 0;
    line-height: 1.2;
}
.media-page .mp-about__check { color: #4ab3ff; flex: 0 0 auto; }
.media-page .mp-about__role {
    font-size: 0.8rem;
    color: #9a9aa6;
}
.media-page .mp-about__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin: 16px 0 0;
    padding: 12px 0;
    border-top: 1px solid var(--mp-line);
    border-bottom: 1px solid var(--mp-line);
    font-size: 0.82rem;
    color: #8a8a96;
}
.media-page .mp-about__stats b { color: #2c2c34; font-size: 0.95rem; }
.media-page .mp-about__bio {
    margin: 14px 0 16px;
    font-size: 0.88rem;
    line-height: 1.5;
    color: #5a5a64;
}
.media-page .mp-about__actions {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

/* ---- Boutons modernes ---- */
.media-page .mp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 13px 16px;
    border-radius: 11px;
    font-size: 0.92rem;
    font-weight: 800;
    text-decoration: none;
    line-height: 1.25;
    transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}
.media-page .mp-btn--hot {
    background: linear-gradient(135deg, var(--mp-hot-1) 0%, var(--mp-hot-2) 100%);
    color: #fff;
    box-shadow: 0 8px 20px rgba(255, 46, 111, 0.38);
}
.media-page .mp-btn--hot:hover {
    color: #fff;
    transform: translateY(-2px);
    filter: brightness(1.04);
    box-shadow: 0 12px 26px rgba(255, 46, 111, 0.48);
}
.media-page .mp-btn--ghost {
    background: #fff;
    color: var(--mp-teal-dark);
    border: 1px solid rgba(55, 110, 111, 0.35);
}
.media-page .mp-btn--ghost:hover {
    background: rgba(55, 110, 111, 0.07);
    color: var(--mp-teal-dark);
    transform: translateY(-2px);
}

@media (max-width: 767px) {
    .media-page .media-contain { max-height: 60vh; }
    .media-page .mg-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 480px) {
    .media-page .mg-grid { grid-template-columns: repeat(2, 1fr); gap: 9px; }
    .media-page .mg-title { font-size: 1.15rem; }
}
