/* ===== Page publique ===== */
*, *::before, *::after { box-sizing: border-box; }

/* .theme-custom : variables générées par app/Models/Theme.php (balise <style> de la page) */
/* Chaque thème définit : fond, texte, bouton, texte du bouton, survol */
.theme-sunset   { --bg: linear-gradient(160deg, #ff9a8b 0%, #ff6a88 55%, #ff99ac 100%); --text: #fff; --btn: rgba(255,255,255,.92); --btn-text: #3b1d2a; --btn-hover: #fff; --radius: 999px; }
.theme-ocean    { --bg: linear-gradient(160deg, #0f2027 0%, #203a43 50%, #2c5364 100%); --text: #e6f4f1; --btn: rgba(255,255,255,.08); --btn-text: #e6f4f1; --btn-hover: rgba(255,255,255,.16); --radius: 14px; --border: 1px solid rgba(255,255,255,.25); }
.theme-forest   { --bg: linear-gradient(170deg, #d4e7c5 0%, #a8c69f 100%); --text: #1f3320; --btn: #1f3320; --btn-text: #eef5e8; --btn-hover: #2e4a2f; --radius: 10px; }
.theme-midnight { --bg: radial-gradient(circle at 50% 0%, #2a2a55 0%, #0d0d1a 70%); --text: #f1f1ff; --btn: #1c1c3a; --btn-text: #f1f1ff; --btn-hover: #2a2a55; --radius: 16px; --border: 1px solid #3c3c78; }
.theme-paper    { --bg: #f6f3ee; --text: #1d1d1b; --btn: #fff; --btn-text: #1d1d1b; --btn-hover: #fff; --radius: 6px; --border: 2px solid #1d1d1b; --shadow: 4px 4px 0 #1d1d1b; }
.theme-neon     { --bg: #0a0a0a; --text: #e8ffe8; --btn: transparent; --btn-text: #39ff88; --btn-hover: rgba(57,255,136,.12); --radius: 4px; --border: 2px solid #39ff88; --glow: 0 0 12px rgba(57,255,136,.5); }

html, body { margin: 0; min-height: 100%; }
body {
    min-height: 100vh;
    background: var(--bg);
    background-attachment: fixed;
    color: var(--text);
    font-family: var(--font, Inter), system-ui, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans CJK SC', -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.wrap {
    max-width: 640px;
    margin: 0 auto;
    padding: 56px 16px 32px;
}

.profile { text-align: center; }
.avatar {
    width: 96px; height: 96px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    margin: 0 auto 16px;
    border: 3px solid rgba(255,255,255,.6);
}
.avatar--initial {
    display: grid; place-items: center;
    background: var(--btn); color: var(--btn-text);
    font-size: 40px; font-weight: 700;
}
.name { font-size: 22px; font-weight: 700; margin: 0 0 6px; }
.bio  { margin: 0 auto; max-width: 420px; opacity: .85; line-height: 1.5; font-size: 15px; }

.socials {
    display: flex; justify-content: center; flex-wrap: wrap; gap: 16px;
    margin: 20px 0 8px;
}
.socials a { color: var(--text); opacity: .9; transition: transform .15s, opacity .15s; }
.socials a:hover { opacity: 1; transform: translateY(-2px); }

.links { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.links li { animation: rise .45s both; animation-delay: calc(var(--i, 0) * 60ms); }

.link {
    position: relative;
    display: flex; align-items: center; justify-content: center;
    min-height: 58px;
    padding: 14px 56px;
    background: var(--btn);
    color: var(--btn-text);
    border: var(--border, none);
    border-radius: var(--radius);
    box-shadow: var(--shadow, 0 2px 10px rgba(0,0,0,.08)), var(--glow, 0 0 0 transparent);
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    overflow-wrap: anywhere;
    backdrop-filter: blur(6px);
    transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.link:hover { transform: translateY(-2px) scale(1.01); background: var(--btn-hover); }
.link:active { transform: scale(.99); }
.link:focus-visible { outline: 3px solid var(--text); outline-offset: 3px; }
.link__icon { position: absolute; left: 20px; font-size: 22px; line-height: 1; }

.foot { text-align: center; margin-top: 48px; }
.foot a { color: var(--text); opacity: .65; text-decoration: none; font-size: 18px; }
.foot a:hover { opacity: .8; }

/* Photo de couverture : plein cadre en haut, fondue dans le fond du thème */
.cover {
    height: min(46vh, 420px); max-width: 760px; margin: 0 auto;
    background: center / cover no-repeat;
    -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent);
}
.wrap--cover { margin-top: -120px; position: relative; padding-top: 0; }
.wrap--cover .avatar { width: 84px; height: 84px; }
.wrap--cover .name { font-size: clamp(30px, 8vw, 46px); line-height: 1; text-transform: uppercase; letter-spacing: -.01em; }

.foot { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 10px; font-size: 14px; }
.foot a, .foot__report { font-size: 14px; }
.foot__report { background: none; border: 0; padding: 0; color: var(--text); opacity: .65; font: inherit; cursor: pointer; text-decoration: underline; }
.foot__report:hover { opacity: .8; }
.foot__note { opacity: .6; }
.foot--legal { margin-top: 12px; font-size: 12px; }
.foot--legal a { font-size: 13px; opacity: .6; }
.foot > span[aria-hidden] { opacity: .3; }

.report { text-align: left; }
.report .qr-dialog__name { text-align: center; }
.report__opt { display: flex; align-items: center; gap: 10px; padding: 10px 4px; border-bottom: 1px solid #eee; cursor: pointer; }
.report .qr-dialog__actions { margin-top: 16px; }

/* ===== Blocs riches : vidéo, Spotify, produits (couleurs du thème) ===== */
.block { margin: 0; overflow: hidden; background: var(--btn); color: var(--btn-text); border: var(--border, 0);
    border-radius: min(var(--radius), 22px); box-shadow: var(--shadow, 0 2px 10px rgba(0,0,0,.08)), var(--glow, 0 0 0 transparent); }
.block button { font: inherit; color: inherit; cursor: pointer; }
.block iframe { display: block; width: 100%; border: 0; }
.block__title { display: block; font-weight: 700; line-height: 1.3; }
.block__sub { display: block; font-size: 13px; opacity: .75; }
.block__consent { display: block; font-size: 11px; opacity: .55; margin-top: 4px; }
.block.is-loaded .block__consent { display: none; }
.block-play { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff;
    font-size: 24px; padding-left: 5px; box-shadow: 0 6px 20px rgba(0,0,0,.3); transition: transform .15s; }
.block-play--small { width: 44px; height: 44px; font-size: 16px; padding-left: 3px; flex-shrink: 0; background: var(--btn-text); color: var(--btn); box-shadow: none; }

.block-video__facade { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 16 / 9; border: 0; padding: 0;
    background: linear-gradient(135deg, rgba(0,0,0,.35), rgba(0,0,0,.1)) center / cover no-repeat, #222; }
.block-video__facade:hover .block-play, .block-spotify__facade:hover .block-play { transform: scale(1.08); }
.block-video__facade:focus-visible, .block-spotify__facade:focus-visible { outline: 3px solid var(--text); outline-offset: -3px; }
.block-video iframe { aspect-ratio: 16 / 9; height: auto; }
.block-video figcaption { padding: 12px 16px 14px; text-align: left; }

.block-spotify { padding: 10px; }
.block-spotify__facade { display: flex; align-items: center; gap: 14px; width: 100%; padding: 0; border: 0; background: none; text-align: left; }
.block-spotify__art { width: 64px; height: 64px; flex-shrink: 0; border-radius: 10px; background: #1db954 center / cover no-repeat; }
.block-spotify__text { flex: 1; min-width: 0; }
.block-spotify__text .block__title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.block-spotify .block__consent { padding: 0 4px; }
.block-spotify.is-loaded { padding: 0; background: transparent; box-shadow: none; border: 0; }
.block-spotify iframe { border-radius: 12px; }

.products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.products--single { grid-template-columns: minmax(0, 1fr); }
.product { display: flex; flex-direction: column; overflow: hidden; text-decoration: none; background: var(--btn); color: var(--btn-text);
    border: var(--border, 0); border-radius: min(var(--radius), 22px); box-shadow: var(--shadow, 0 2px 10px rgba(0,0,0,.08)), var(--glow, 0 0 0 transparent);
    transition: transform .15s; text-align: left; }
.product:hover { transform: translateY(-2px); }
.product:focus-visible { outline: 3px solid var(--text); outline-offset: 3px; }
.product__img { display: grid; place-items: center; aspect-ratio: 1; background: color-mix(in srgb, var(--btn-text) 10%, transparent) center / cover no-repeat; font-size: 40px; }
.products--single .product { flex-direction: row; }
.products--single .product__img { width: 38%; flex-shrink: 0; aspect-ratio: auto; min-height: 140px; }
.product__body { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 14px; flex: 1; }
.product__title { font-weight: 700; line-height: 1.3; }
.product__desc { font-size: 13px; opacity: .75; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.product__foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: auto; padding-top: 8px; }
.product__price { font-weight: 800; }
.product__cta { font-size: 13px; font-weight: 700; opacity: .85; white-space: nowrap; }

/* Badge Premium, bouton annuaire, événements à venir */
.premium-star { display: inline-block; font-size: .6em; vertical-align: middle; color: #ffb703; text-shadow: 0 1px 6px rgba(0,0,0,.15); }
.save-form { margin: 16px 0 0; }
.save-btn {
    padding: 8px 16px; border-radius: 999px; cursor: pointer; font: inherit; font-size: 14px; font-weight: 600;
    background: transparent; color: var(--text); border: 1.5px solid color-mix(in srgb, var(--text) 45%, transparent);
}
.save-btn:hover { background: color-mix(in srgb, var(--text) 12%, transparent); }
.save-btn.is-saved { background: color-mix(in srgb, var(--text) 18%, transparent); color: var(--text); border-color: var(--text); }
.upcoming { margin-top: 32px; }
.upcoming__title { margin: 0 0 12px; font-size: 14px; text-transform: uppercase; letter-spacing: .12em; opacity: .75; text-align: center; font-weight: 700; }
.upcoming__item {
    display: flex; gap: 14px; align-items: center; margin-top: 10px; padding: 12px 14px; text-decoration: none; line-height: 1.35;
    color: var(--btn-text); background: var(--btn); border: var(--border, 0); border-radius: min(var(--radius), 18px); box-shadow: var(--shadow, none);
}
.upcoming__item:hover { background: var(--btn-hover); }
.upcoming__date { flex-shrink: 0; width: 50px; height: 54px; border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 700; text-transform: uppercase; background: color-mix(in srgb, var(--btn-text) 12%, transparent); }
.upcoming__date b { font-size: 20px; line-height: 1; }

/* Bouton QR / partage */
.share-btn {
    position: fixed; top: 16px; right: 16px; z-index: 5;
    width: 44px; height: 44px; display: grid; place-items: center;
    border: var(--border, 0); border-radius: 50%; cursor: pointer;
    background: var(--btn); color: var(--btn-text);
    box-shadow: 0 2px 10px rgba(0,0,0,.12); backdrop-filter: blur(6px);
}
.share-btn:hover { background: var(--btn-hover); }
.share-btn:focus-visible { outline: 3px solid var(--text); outline-offset: 3px; }

.qr-dialog { border: 0; padding: 0; background: transparent; max-width: calc(100vw - 32px); }
.qr-dialog::backdrop { background: rgba(0,0,0,.55); backdrop-filter: blur(4px); }
.qr-dialog__card { width: 320px; max-width: 100%; padding: 26px 24px 20px; border-radius: 24px; background: #fff; color: #111; text-align: center; font-family: 'Plus Jakarta Sans', Inter, system-ui, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans CJK SC', sans-serif; }
.qr-dialog__name { margin: 0 0 12px; font-size: 20px; font-weight: 800; overflow-wrap: anywhere; }
.qr-dialog__code svg { display: block; width: 100%; height: auto; }
.qr-dialog__hint { margin: 10px 0 16px; color: #555; font-size: 14px; }
.qr-dialog__actions { display: flex; gap: 8px; }
.qr-dialog__actions button { flex: 1; padding: 11px; border-radius: 999px; border: 1px solid #ddd; background: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.qr-dialog__actions button:first-child { background: #e0004e; border-color: #e0004e; color: #fff; }

@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (max-width: 380px) { .link { padding: 14px 44px; } .link__icon { left: 14px; } }
@media (prefers-reduced-motion: reduce) { .links li { animation: none; } .link, .socials a { transition: none; } }

.page-top { display: contents; }

/* ===== Réseaux sociaux : bascule Ouest / Est (東) ===== */
.socials[hidden] { display: none; }
.region-switch { display: flex; width: fit-content; gap: 4px; margin: 18px auto 0; padding: 4px; border-radius: 999px; background: color-mix(in srgb, var(--text) 10%, transparent); }
.region-switch button { padding: 6px 16px; border: 0; border-radius: 999px; background: transparent; color: var(--text); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; opacity: .75; }
.region-switch button[aria-pressed="true"] { background: var(--btn); color: var(--btn-text); opacity: 1; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.region-switch button:focus-visible { outline: 3px solid var(--text); outline-offset: 2px; }
.region-switch + .socials, .region-switch ~ .socials { margin-top: 14px; }
.socials .social-id { padding: 0; border: 0; background: none; color: var(--text); opacity: .9; cursor: pointer; transition: transform .15s, opacity .15s; }
.socials .social-id:hover { opacity: 1; transform: translateY(-2px); }
.socials .social-id:focus-visible, .socials a:focus-visible { outline: 3px solid var(--text); outline-offset: 3px; border-radius: 6px; }
.qr-dialog__net svg { width: 22px; height: 22px; vertical-align: -4px; }
.qr-dialog__img { display: block; width: 100%; max-width: 240px; margin: 0 auto; border-radius: 12px; }
.qr-dialog__id { margin: 12px 0 16px; font-size: 15px; overflow-wrap: anywhere; }
.qr-dialog__id span { color: #666; margin-right: 4px; }
.qr-dialog__actions { flex-wrap: wrap; }
.qr-dialog__open { flex: 1; padding: 11px; border-radius: 999px; border: 1px solid #ddd; color: #111; text-decoration: none; font-weight: 600; text-align: center; }
@media (prefers-reduced-motion: reduce) { .socials .social-id { transition: none; } }
