/* ================================================================
   PHYNARIA THEME v2 — Pages internes
   (boutique, vote, wiki, articles, auth, profil, launcher, skins)
   ================================================================ */

/* ── Conteneur générique (vues sans équivalent dans le thème) ── */
.ph-content { padding-top: 2.5rem; padding-bottom: 2rem; }
.ph-content > h1:first-child,
.ph-content > .alert + h1,
.ph-content > h1 {
    font-weight: 900;
    font-size: clamp(2rem, 5vw, 3.2rem);
    letter-spacing: -.035em;
    line-height: 1;
    margin: 1rem 0 2rem;
}
.ph-content > h1::after {
    content: '';
    display: block;
    width: 64px; height: 4px;
    margin-top: 1rem;
    border-radius: 4px;
    background: var(--grad);
}
.ph-content .card-body { padding: 1.5rem; }

/* ── En-tête de page ────────────────────────────────────────── */
.ph-page-hero {
    --accent: var(--orange);
    position: relative;
    padding: 3.5rem 0 2.75rem;
    margin-bottom: 2.5rem;
    isolation: isolate;
    overflow: hidden;
}
.ph-page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(148, 170, 255, .07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 170, 255, .07) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: radial-gradient(ellipse 70% 90% at 20% 0%, #000 20%, transparent 75%);
    mask-image: radial-gradient(ellipse 70% 90% at 20% 0%, #000 20%, transparent 75%);
    animation: grid-drift 30s linear infinite;
}
.ph-page-hero::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--accent) 60%, transparent), transparent);
}
@keyframes grid-drift { to { background-position: 44px 44px; } }

.ph-page-hero-cube {
    position: absolute;
    z-index: -1;
    border-radius: 4px;
    background: var(--accent);
    box-shadow: 0 0 30px var(--accent), inset -5px -5px 0 rgba(0, 0, 0, .25), inset 4px 4px 0 rgba(255, 255, 255, .3);
    opacity: .7;
    animation: cube-float 10s ease-in-out infinite;
}
.ph-page-hero-cube.c1 { width: 22px; height: 22px; right: 12%; top: 26%; --r: 18deg; }
.ph-page-hero-cube.c2 { width: 12px; height: 12px; right: 24%; bottom: 22%; --r: -24deg; animation-delay: -4s; background: var(--pink); box-shadow: 0 0 24px var(--pink); }

.ph-page-hero-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
}
.ph-page-hero-text { min-width: 0; flex: 1 1 420px; }
.ph-page-hero-actions { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }

.ph-page-icon {
    flex-shrink: 0;
    width: 62px; height: 62px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    font-size: 1.7rem;
    color: var(--accent);
    background: color-mix(in srgb, var(--accent) 14%, transparent);
    border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
    box-shadow: 0 0 40px -6px color-mix(in srgb, var(--accent) 50%, transparent);
    animation: float 6s ease-in-out infinite;
}
.ph-page-title {
    font-weight: 900;
    font-size: clamp(2rem, 5.5vw, 3.6rem);
    line-height: 1;
    letter-spacing: -.04em;
    margin: 0;
    text-wrap: balance;
}
.ph-page-sub {
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.6;
    max-width: 620px;
    margin: 1rem 0 0;
}
.ph-page-sub :last-child { margin-bottom: 0; }

.ph-crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .4rem;
    margin-bottom: 1rem;
    font-family: var(--font-mono);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.ph-crumbs a, .ph-crumbs span { color: var(--faint); }
.ph-crumbs a:hover { color: var(--orange); }
.ph-crumbs > * + *::before { content: '/'; margin-right: .4rem; color: var(--faint); }
.ph-crumbs [aria-current] { color: var(--accent, var(--orange)); }

/* ── Panneaux ───────────────────────────────────────────────── */
.ph-panel {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.6rem;
    backdrop-filter: blur(14px) saturate(1.2);
    -webkit-backdrop-filter: blur(14px) saturate(1.2);
    box-shadow: 0 1px 0 rgba(255, 255, 255, .04) inset;
}
.ph-panel.p-0 { padding: 0; }
.ph-panel-head { display: flex; align-items: center; gap: .9rem; margin-bottom: 1.4rem; }
.ph-panel-icon {
    --accent: var(--orange);
    flex-shrink: 0;
    width: 44px; height: 44px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    font-size: 1.15rem;
    color: var(--accent);
    background: color-mix(in srgb, var(--accent) 13%, transparent);
    border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
}
.ph-panel-title { font-size: 1.05rem; font-weight: 700; margin: 0; letter-spacing: -.01em; }
.ph-panel-desc { margin: .15rem 0 0; font-size: .85rem; color: var(--muted); }
.ph-sticky { position: sticky; top: 96px; }

.ph-divider { height: 1px; background: var(--border); margin: 1.25rem 0; border: 0; }

/* Puces */
.ph-chip {
    --accent: var(--muted);
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .28rem .7rem;
    border-radius: 999px;
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .02em;
    color: var(--accent);
    background: color-mix(in srgb, var(--accent) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
    white-space: nowrap;
}
.ph-chip.orange { --accent: var(--orange); }
.ph-chip.green  { --accent: var(--green); }
.ph-chip.pink   { --accent: var(--pink); }
.ph-chip.blue   { --accent: var(--blue); }
.ph-chip.danger { --accent: var(--danger); }

.ph-mono { font-family: var(--font-mono); }

/* Grille auto */
.ph-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(var(--min, 260px), 1fr)); }

/* Tuile colorée cyclique (orange → vert → rose → bleu) */
.ph-cycle > :nth-child(4n+2) { --accent: var(--green);  --accent-glow: var(--green-glow); }
.ph-cycle > :nth-child(4n+3) { --accent: var(--pink);   --accent-glow: var(--pink-glow); }
.ph-cycle > :nth-child(4n+4) { --accent: var(--blue);   --accent-glow: rgba(91, 140, 255, .32); }

/* ── Champs de formulaire enrichis ──────────────────────────── */
.ph-field { margin-bottom: 1.15rem; }
.ph-field-row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; justify-content: space-between; margin-bottom: 1.25rem; font-size: .9rem; }
.ph-input-icon { position: relative; }
.ph-input-icon > i:first-child {
    position: absolute;
    left: 1rem; top: 50%;
    transform: translateY(-50%);
    color: var(--faint);
    pointer-events: none;
    transition: color .2s;
}
.ph-input-icon > .form-control { padding-left: 2.7rem; }
.ph-input-icon:focus-within > i:first-child { color: var(--orange); }
.ph-input-icon .ph-eye {
    position: absolute;
    right: .45rem; top: 50%;
    transform: translateY(-50%);
    width: 36px; height: 36px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--faint);
    transition: color .2s, background .2s;
}
.ph-input-icon .ph-eye:hover { color: var(--white); background: rgba(255, 255, 255, .06); }
.ph-input-icon:has(.ph-eye) > .form-control { padding-right: 3rem; }

.ph-strength { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .06); overflow: hidden; margin-top: .5rem; }
.ph-strength > span { display: block; height: 100%; width: 0; border-radius: 4px; transition: width .4s var(--ease-out), background .3s; }
.ph-strength-label { font-size: .75rem; font-weight: 600; margin-top: .3rem; color: var(--faint); min-height: 1em; }

/* Zone de dépôt de fichier */
.ph-drop {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: 1.5rem;
    text-align: center;
    border: 1.5px dashed var(--border-strong);
    border-radius: var(--radius-sm);
    background: rgba(5, 7, 14, .35);
    color: var(--muted);
    cursor: pointer;
    transition: border-color .25s, background .25s;
}
.ph-drop:hover, .ph-drop.is-over { border-color: var(--orange); background: rgba(255, 154, 31, .05); }
.ph-drop input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.ph-drop i { font-size: 1.6rem; color: var(--orange); }
.ph-drop strong { color: var(--white); font-weight: 700; }
.ph-drop small { font-size: .78rem; }

.ph-checker {
    display: grid;
    place-items: center;
    padding: 1.25rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background-color: #0c101c;
    background-image:
        linear-gradient(45deg, rgba(255, 255, 255, .035) 25%, transparent 25%, transparent 75%, rgba(255, 255, 255, .035) 75%),
        linear-gradient(45deg, rgba(255, 255, 255, .035) 25%, transparent 25%, transparent 75%, rgba(255, 255, 255, .035) 75%);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
}
.ph-pixel { image-rendering: pixelated; image-rendering: crisp-edges; }

/* ── Prose (contenus riches : articles, wiki, descriptions) ─── */
.ph-prose { color: rgba(238, 241, 255, .86); font-size: 1.02rem; line-height: 1.8; overflow-wrap: anywhere; }
.ph-prose > :first-child { margin-top: 0; }
.ph-prose > :last-child { margin-bottom: 0; }
.ph-prose h1, .ph-prose h2, .ph-prose h3, .ph-prose h4 { margin: 2rem 0 .8rem; line-height: 1.25; letter-spacing: -.02em; }
.ph-prose h1 { font-size: 1.9rem; }
.ph-prose h2 { font-size: 1.5rem; }
.ph-prose h3 { font-size: 1.2rem; }
.ph-prose h4 { font-size: 1.05rem; }
.ph-prose p { margin: 0 0 1.1rem; }
.ph-prose a { color: var(--orange); text-decoration: underline; text-decoration-color: rgba(255, 154, 31, .35); text-underline-offset: 3px; }
.ph-prose a:hover { text-decoration-color: currentColor; }
.ph-prose img { border-radius: var(--radius-sm); margin: .5rem 0; box-shadow: var(--shadow); }
.ph-prose ul, .ph-prose ol { padding-left: 1.4rem; margin-bottom: 1.1rem; }
.ph-prose li { margin-bottom: .35rem; }
.ph-prose li::marker { color: var(--orange); }
.ph-prose blockquote {
    margin: 1.5rem 0;
    padding: 1rem 1.25rem;
    border-left: 3px solid var(--orange);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    background: rgba(255, 154, 31, .06);
    color: var(--white);
}
.ph-prose code { font-family: var(--font-mono); font-size: .88em; padding: .15em .45em; border-radius: 6px; background: rgba(255, 255, 255, .07); color: var(--orange-light); }
.ph-prose pre { padding: 1.1rem 1.25rem; border-radius: var(--radius-sm); background: #05070c; border: 1px solid var(--border); overflow-x: auto; }
.ph-prose pre code { background: none; padding: 0; color: var(--white); }
.ph-prose table { width: 100%; margin: 1.25rem 0; border-collapse: collapse; font-size: .93rem; }
.ph-prose th, .ph-prose td { padding: .65rem .8rem; border-bottom: 1px solid var(--border); text-align: left; }
.ph-prose th { color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; }
.ph-prose hr { border: 0; height: 1px; background: var(--border-strong); margin: 2rem 0; opacity: 1; }
.ph-prose iframe, .ph-prose video { max-width: 100%; border-radius: var(--radius-sm); }

/* ══════════════════════════════════════════════════════════════
   BOUTIQUE
══════════════════════════════════════════════════════════════ */

/* Barre de navigation boutique */
.ph-subnav {
    display: flex;
    align-items: center;
    gap: .35rem;
    padding: .4rem;
    margin-bottom: 2rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(10, 13, 24, .6);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    overflow-x: auto;
    scrollbar-width: none;
}
.ph-subnav::-webkit-scrollbar { display: none; }
.ph-subnav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .5rem 1rem;
    border-radius: 999px;
    color: var(--muted);
    font-weight: 600;
    font-size: .88rem;
    white-space: nowrap;
    transition: color .25s, background .25s;
}
.ph-subnav-link:hover { color: var(--white); background: rgba(255, 255, 255, .05); }
.ph-subnav-link.active { color: #1a0d00; background: linear-gradient(135deg, var(--orange), var(--orange-light)); box-shadow: 0 6px 18px -6px var(--orange-glow); }
.ph-subnav-sep { width: 1px; height: 22px; background: var(--border-strong); flex-shrink: 0; margin: 0 .25rem; }
.ph-subnav-end { margin-left: auto; display: flex; align-items: center; gap: .35rem; }
.ph-balance {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .45rem .95rem;
    border-radius: 999px;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: .85rem;
    color: var(--green);
    background: rgba(61, 245, 138, .08);
    border: 1px solid rgba(61, 245, 138, .22);
    white-space: nowrap;
}
.ph-cart-count {
    min-width: 20px; height: 20px;
    display: inline-grid;
    place-items: center;
    padding: 0 .35rem;
    border-radius: 999px;
    background: var(--orange);
    color: #1a0d00;
    font-size: .7rem;
    font-weight: 800;
}

/* Objectif / jauge */
.ph-goal { max-width: 460px; }
.ph-goal-top { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: .55rem; font-size: .85rem; font-weight: 600; color: var(--muted); }
.ph-goal-top strong { font-family: var(--font-mono); color: var(--orange); }
.ph-goal-bar { position: relative; height: 12px; border-radius: 999px; background: rgba(255, 255, 255, .06); overflow: hidden; border: 1px solid var(--border); }
.ph-goal-bar > span, .ph-goal-bar > .progress-bar {
    position: absolute;
    inset: 0 auto 0 0;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--orange), var(--orange-light), var(--pink));
    background-size: 200% 100%;
    box-shadow: 0 0 16px var(--orange-glow);
    animation: bar-grow 1.6s var(--ease-out) both, grad-pan 4s linear infinite;
    transition: width .8s var(--ease-out);
}
.ph-goal-bar > span::after, .ph-goal-bar > .progress-bar::after {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(-45deg, rgba(255, 255, 255, .18) 0 8px, transparent 8px 16px);
    animation: stripes 1s linear infinite;
}
@keyframes stripes { to { background-position: 22.6px 0; } }

/* Top donateur */
.ph-donor {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: .7rem 1.2rem .7rem .7rem;
    border-radius: 999px;
    background: linear-gradient(120deg, rgba(255, 215, 0, .12), rgba(255, 154, 31, .06));
    border: 1px solid rgba(255, 215, 0, .25);
}
.ph-donor img { width: 46px; height: 46px; border-radius: 14px; }
.ph-donor-label { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: #ffd700; font-weight: 700; }
.ph-donor-name { font-family: var(--font-title); font-weight: 700; font-size: 1rem; }

/* Catégories (accueil boutique) */
.ph-cat-tile { min-height: 210px; }
.ph-cat-subs { display: flex; flex-wrap: wrap; gap: .4rem; position: relative; z-index: 2; }
.ph-cat-subs a {
    padding: .3rem .75rem;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 600;
    color: var(--muted);
    background: rgba(255, 255, 255, .05);
    border: 1px solid var(--border);
    transition: color .2s, border-color .2s, background .2s;
}
.ph-cat-subs a:hover { color: var(--white); border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.ph-tile-link::before { content: ''; position: absolute; inset: 0; z-index: 1; } /* toute la tuile cliquable */

/* Cartes produit */
.ph-products { --min: 240px; }
.ph-product {
    --accent: var(--orange);
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--border);
    overflow: hidden;
    cursor: pointer;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: transform .5s var(--ease-out), border-color .3s, box-shadow .4s;
}
.ph-product:hover, .ph-product:focus-visible { transform: translateY(-8px); border-color: color-mix(in srgb, var(--accent) 45%, transparent); box-shadow: 0 30px 60px -25px color-mix(in srgb, var(--accent) 50%, #000); outline: none; }
.ph-product-media {
    position: relative;
    aspect-ratio: 4 / 3;
    display: grid;
    place-items: center;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 65%, color-mix(in srgb, var(--accent) 28%, transparent), transparent 62%),
        linear-gradient(rgba(148, 170, 255, .06) 1px, transparent 1px) 0 0 / 22px 22px,
        linear-gradient(90deg, rgba(148, 170, 255, .06) 1px, transparent 1px) 0 0 / 22px 22px,
        #0b0f1c;
}
.ph-product-media img {
    max-width: 78%;
    max-height: 78%;
    object-fit: contain;
    filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .55));
    transition: transform .7s var(--ease-spring);
}
.ph-product-media.is-cover img { max-width: none; max-height: none; width: 100%; height: 100%; object-fit: cover; filter: none; }
.ph-product:hover .ph-product-media img { transform: translateY(-8px) scale(1.07) rotate(-2deg); }
.ph-product:hover .ph-product-media.is-cover img { transform: scale(1.06); }
.ph-product-media > i { font-size: 3.6rem; color: color-mix(in srgb, var(--accent) 70%, transparent); transition: transform .7s var(--ease-spring); }
.ph-product:hover .ph-product-media > i { transform: translateY(-6px) rotate(-8deg) scale(1.1); }
.ph-product-badges { position: absolute; top: .8rem; left: .8rem; display: flex; flex-wrap: wrap; gap: .35rem; z-index: 1; }
.ph-product-badges .ph-chip { background: rgba(7, 9, 16, .75); backdrop-filter: blur(8px); }
.ph-product-body { display: flex; flex-direction: column; flex: 1; padding: 1.15rem 1.25rem 1.25rem; }
.ph-product-title { font-size: 1.05rem; font-weight: 700; letter-spacing: -.015em; margin: 0 0 .4rem; }
.ph-product-desc { font-size: .85rem; color: var(--muted); line-height: 1.5; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ph-product-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: .75rem; margin-top: auto; padding-top: 1rem; }
.ph-price { font-family: var(--font-title); font-weight: 800; font-size: 1.3rem; letter-spacing: -.02em; line-height: 1; color: var(--white); }
.ph-price-old { font-size: .8rem; color: var(--faint); text-decoration: line-through; margin-bottom: .25rem; }
.ph-product-cta {
    width: 42px; height: 42px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #1a0d00;
    background: linear-gradient(135deg, var(--orange), var(--orange-light));
    box-shadow: 0 8px 20px -6px var(--orange-glow);
    transition: transform .45s var(--ease-spring);
}
.ph-product:hover .ph-product-cta { transform: rotate(-45deg) scale(1.08); }

/* Modale produit */
.ph-pkg-modal .modal-content { overflow: hidden; }
.ph-pkg-visual {
    position: relative;
    height: 100%;
    min-height: 260px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    isolation: isolate;
    background:
        radial-gradient(circle at 50% 40%, rgba(255, 154, 31, .3), transparent 60%),
        linear-gradient(rgba(148, 170, 255, .07) 1px, transparent 1px) 0 0 / 24px 24px,
        linear-gradient(90deg, rgba(148, 170, 255, .07) 1px, transparent 1px) 0 0 / 24px 24px,
        #0a0d18;
}
.ph-pkg-visual-media { flex: 1; display: grid; place-items: center; padding: 1rem 0; }
.ph-pkg-visual-media img { max-height: 260px; max-width: 100%; object-fit: contain; filter: drop-shadow(0 20px 30px rgba(0, 0, 0, .6)); animation: float 5s ease-in-out infinite; }
.ph-pkg-visual-media > i { font-size: 5rem; color: rgba(255, 154, 31, .5); animation: float 5s ease-in-out infinite; }
.ph-pkg-price { font-family: var(--font-title); font-weight: 900; font-size: 2rem; letter-spacing: -.03em; line-height: 1; }
.ph-pkg-body { display: flex; flex-direction: column; height: 100%; padding: 1.75rem; }
.ph-pkg-desc { max-height: 42vh; overflow-y: auto; padding-right: .5rem; margin: 1rem 0 1.5rem; font-size: .95rem; }
.ph-pkg-actions { margin-top: auto; padding-top: 1.25rem; border-top: 1px solid var(--border); }
.ph-pkg-status { display: flex; align-items: center; justify-content: center; gap: .5rem; padding: .9rem; border-radius: var(--radius-sm); font-weight: 600; background: rgba(255, 255, 255, .04); color: var(--muted); }
.ph-pkg-status.danger { background: rgba(255, 90, 110, .08); color: #ff8796; }
.ph-icon-btn {
    width: 40px; height: 40px;
    flex-shrink: 0;
    display: inline-grid;
    place-items: center;
    border-radius: 12px;
    border: 1px solid var(--border-strong);
    background: rgba(255, 255, 255, .04);
    color: var(--muted);
    transition: color .2s, border-color .2s, transform .35s var(--ease-spring);
}
.ph-icon-btn:hover { color: var(--white); border-color: var(--orange); transform: rotate(90deg); }
.ph-icon-btn.danger:hover { color: #ff8796; border-color: var(--danger); transform: none; }

/* Panier */
.ph-cart-item {
    display: grid;
    grid-template-columns: 1fr auto auto auto;
    align-items: center;
    gap: 1.25rem;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, .025);
    border: 1px solid var(--border);
    transition: border-color .25s, background .25s;
}
.ph-cart-item + .ph-cart-item { margin-top: .6rem; }
.ph-cart-item:hover { border-color: var(--border-strong); background: rgba(255, 255, 255, .04); }
.ph-cart-name { font-weight: 700; }
.ph-cart-unit { font-size: .8rem; color: var(--faint); font-family: var(--font-mono); }
.ph-cart-total { font-family: var(--font-title); font-weight: 800; min-width: 90px; text-align: right; }
.ph-qty { display: inline-flex; align-items: center; border: 1px solid var(--border-strong); border-radius: 999px; background: rgba(5, 7, 14, .5); padding: 3px; }
.ph-qty button { width: 30px; height: 30px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); transition: background .2s, color .2s; }
.ph-qty button:hover { background: rgba(255, 154, 31, .15); color: var(--orange); }
.ph-qty input { width: 42px; border: 0; background: transparent; color: var(--white); text-align: center; font-family: var(--font-mono); font-weight: 700; -moz-appearance: textfield; }
.ph-qty input::-webkit-inner-spin-button, .ph-qty input::-webkit-outer-spin-button { -webkit-appearance: none; }
.ph-qty input:focus { outline: none; }

.ph-summary-row { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .4rem 0; color: var(--muted); font-size: .92rem; }
.ph-summary-total { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding-top: 1rem; margin-top: .6rem; border-top: 1px dashed var(--border-strong); }
.ph-summary-total span:first-child { font-weight: 700; }
.ph-summary-total .ph-price { font-size: 2rem; }
.ph-code-form { display: flex; gap: .5rem; }
.ph-code-form .form-control { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .06em; }
.ph-code-form .form-control::placeholder { text-transform: none; letter-spacing: 0; font-family: var(--font); }
.ph-terms { font-size: .82rem; color: var(--muted); }
.ph-terms .form-check-input { margin-top: .2rem; }

/* Moyens de paiement & offres */
.ph-gateway {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    min-height: 190px;
    padding: 1.5rem;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--white);
    text-align: center;
    cursor: pointer;
    transition: transform .5s var(--ease-out), border-color .3s;
    width: 100%;
}
.ph-gateway:hover { transform: translateY(-6px); border-color: rgba(255, 154, 31, .4); color: var(--white); }
.ph-gateway-logo { height: 70px; display: grid; place-items: center; padding: .75rem 1.25rem; border-radius: 14px; background: rgba(255, 255, 255, .94); transition: transform .5s var(--ease-spring); }
.ph-gateway:hover .ph-gateway-logo { transform: scale(1.06) rotate(-2deg); }
.ph-gateway-logo img { max-height: 46px; max-width: 150px; object-fit: contain; }
.ph-gateway-name { font-family: var(--font-title); font-weight: 700; }
.ph-gateway-go { font-size: .8rem; font-weight: 700; color: var(--orange); display: inline-flex; gap: .35rem; align-items: center; }

.ph-offer-amount { font-family: var(--font-title); font-weight: 900; font-size: 1.9rem; letter-spacing: -.03em; color: var(--green); line-height: 1; }

/* Tableaux en panneau */
.ph-table { margin: 0; }
.ph-table > :not(caption) > * > * { padding: .9rem 1rem; border-bottom-color: var(--border); vertical-align: middle; }
.ph-table tbody tr { transition: background .2s; }
.ph-table tbody tr:hover { background: rgba(255, 255, 255, .025); }

/* ══════════════════════════════════════════════════════════════
   VOTE
══════════════════════════════════════════════════════════════ */
#vote-card { overflow: hidden; }
#vote-card .spinner-parent { display: none; }
#vote-card.voting .spinner-parent {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 13, 24, .75);
    backdrop-filter: blur(6px);
    border-radius: inherit;
}
#vote-card .spinner-border { color: var(--orange); width: 3rem; height: 3rem; }
#server-select { display: flex; flex-wrap: wrap; gap: .5rem; }

.ph-vote-sites { display: grid; gap: .7rem; }
.ph-vote-site {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: .9rem 1rem .9rem .9rem;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, .03);
    border: 1px solid var(--border);
    color: var(--white);
    overflow: hidden;
    transition: transform .4s var(--ease-out), border-color .3s, background .3s;
}
.ph-vote-site::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, transparent 20%, rgba(255, 154, 31, .1), transparent 80%);
    transform: translateX(-100%);
    transition: transform .8s var(--ease-out);
}
.ph-vote-site:hover { color: var(--white); border-color: rgba(255, 154, 31, .45); transform: translateX(4px); }
.ph-vote-site:hover::before { transform: translateX(100%); }
.ph-vote-site.disabled { opacity: .55; pointer-events: none; }
.ph-vote-site-num {
    width: 40px; height: 40px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 12px;
    font-family: var(--font-title);
    font-weight: 800;
    color: var(--orange);
    background: rgba(255, 154, 31, .12);
    border: 1px solid rgba(255, 154, 31, .3);
}
.ph-vote-site-name { flex: 1; font-weight: 700; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ph-vote-site .vote-timer:empty::before { content: 'Voter'; }
.ph-vote-site .vote-timer {
    flex-shrink: 0;
    padding: .35rem .8rem;
    border-radius: 999px;
    font-family: var(--font-mono);
    font-size: .78rem;
    font-weight: 700;
    color: var(--green);
    background: rgba(61, 245, 138, .1);
    border: 1px solid rgba(61, 245, 138, .25);
}
.ph-vote-site.disabled .vote-timer { color: var(--muted); background: rgba(255, 255, 255, .05); border-color: var(--border); }

.ph-vote-success { font-size: 4rem; color: var(--green); animation: pop-success .7s var(--ease-spring); display: inline-block; filter: drop-shadow(0 0 24px var(--green-glow)); }
@keyframes pop-success { from { transform: scale(0) rotate(-30deg); } }

/* Podium */
.ph-podium {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: end;
    gap: .75rem;
    margin-bottom: 1.25rem;
}
.ph-podium-place { display: flex; flex-direction: column; align-items: center; text-align: center; min-width: 0; }
.ph-podium-place img { width: 52px; height: 52px; border-radius: 14px; margin-bottom: .5rem; transition: transform .5s var(--ease-spring); }
.ph-podium-place:hover img { transform: translateY(-6px) rotate(-6deg); }
.ph-podium-place.first img { width: 66px; height: 66px; }
.ph-podium-name { font-weight: 700; font-size: .85rem; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ph-podium-votes { font-family: var(--font-mono); font-size: .75rem; color: var(--muted); margin-bottom: .5rem; }
.ph-podium-block {
    --c: #c0c7d6;
    width: 100%;
    display: grid;
    place-items: center;
    border-radius: 12px 12px 4px 4px;
    font-family: var(--font-title);
    font-weight: 900;
    font-size: 1.5rem;
    color: var(--c);
    background: linear-gradient(180deg, color-mix(in srgb, var(--c) 22%, transparent), color-mix(in srgb, var(--c) 4%, transparent));
    border: 1px solid color-mix(in srgb, var(--c) 35%, transparent);
    border-bottom: 0;
    transform-origin: bottom;
    animation: podium-rise 1s var(--ease-out) both;
}
.ph-podium-place.first  .ph-podium-block { --c: #ffd700; height: 110px; animation-delay: .2s; }
.ph-podium-place.second .ph-podium-block { --c: #c9d2e3; height: 80px; animation-delay: .35s; }
.ph-podium-place.third  .ph-podium-block { --c: #e09656; height: 60px; animation-delay: .5s; }
@keyframes podium-rise { from { transform: scaleY(0); } }

/* Récompenses */
.ph-rewards { --min: 170px; }
.ph-reward {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .6rem;
    padding: 1.25rem 1rem;
    text-align: center;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, .03);
    border: 1px solid var(--border);
    transition: transform .45s var(--ease-out), border-color .3s;
}
.ph-reward:hover { transform: translateY(-5px); border-color: rgba(61, 245, 138, .35); }
.ph-reward-img { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 16px; background: rgba(61, 245, 138, .08); }
.ph-reward-img img { max-width: 48px; max-height: 48px; image-rendering: pixelated; }
.ph-reward-img i { font-size: 1.6rem; color: var(--green); }
.ph-reward-name { font-weight: 700; font-size: .9rem; }
.ph-reward-chance { width: 100%; }
.ph-reward-chance .bar { height: 5px; border-radius: 5px; background: rgba(255, 255, 255, .06); overflow: hidden; margin-top: .35rem; }
.ph-reward-chance .bar span { display: block; height: 100%; border-radius: 5px; background: linear-gradient(90deg, #1fcf6a, var(--green)); animation: bar-grow 1.2s var(--ease-out) both; transform-origin: left; }
.ph-reward-chance small { font-family: var(--font-mono); font-size: .72rem; color: var(--muted); }

/* ══════════════════════════════════════════════════════════════
   WIKI
══════════════════════════════════════════════════════════════ */
.ph-search {
    display: flex;
    align-items: center;
    gap: .4rem;
    width: min(100%, 380px);
    padding: .35rem .35rem .35rem 1.1rem;
    border-radius: 999px;
    border: 1px solid var(--border-strong);
    background: rgba(5, 7, 14, .6);
    backdrop-filter: blur(10px);
    transition: border-color .25s, box-shadow .25s;
}
.ph-search:focus-within { border-color: var(--orange); box-shadow: 0 0 0 4px rgba(255, 154, 31, .14); }
.ph-search > i { color: var(--faint); }
.ph-search input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--white); padding: .45rem .25rem; }
.ph-search input:focus { outline: none; }
.ph-search input::placeholder { color: var(--faint); }
.ph-search button { flex-shrink: 0; padding: .5rem 1.1rem; }

.ph-sidenav { display: flex; flex-direction: column; gap: .2rem; }
.ph-sidenav-title { font-family: var(--font-mono); font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); margin: .5rem 0 .6rem .8rem; }
.ph-sidenav a {
    position: relative;
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .6rem .8rem;
    border-radius: 10px;
    color: var(--muted);
    font-weight: 600;
    font-size: .9rem;
    transition: color .2s, background .2s, padding .3s var(--ease-out);
}
.ph-sidenav a:hover { color: var(--white); background: rgba(255, 255, 255, .04); padding-left: 1rem; }
.ph-sidenav a.active { color: var(--orange-light); background: rgba(255, 154, 31, .1); }
.ph-sidenav a.active::before { content: ''; position: absolute; left: 0; top: 22%; bottom: 22%; width: 3px; border-radius: 3px; background: var(--orange); box-shadow: 0 0 10px var(--orange); }

.ph-result {
    display: block;
    padding: 1.4rem 1.5rem;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--white);
    transition: transform .45s var(--ease-out), border-color .3s;
}
.ph-result + .ph-result { margin-top: .9rem; }
.ph-result:hover { color: var(--white); transform: translateX(6px); border-color: rgba(255, 154, 31, .35); }
.ph-result h2 { font-size: 1.1rem; margin: .6rem 0 .45rem; }
.ph-result p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.6; }

/* ══════════════════════════════════════════════════════════════
   ARTICLES
══════════════════════════════════════════════════════════════ */
.ph-article-hero { position: relative; padding: 3.5rem 0 3rem; margin-bottom: 0; overflow: hidden; isolation: isolate; }
.ph-article-hero-bg { position: absolute; inset: -30px; z-index: -2; background-size: cover; background-position: center; filter: blur(28px) brightness(.4) saturate(1.3); transform: scale(1.1); -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent 95%); mask-image: linear-gradient(180deg, #000 30%, transparent 95%); }
.ph-article-hero::after { content: none; }
.ph-article-title { font-weight: 900; font-size: clamp(2rem, 5vw, 3.4rem); letter-spacing: -.04em; line-height: 1.05; max-width: 22ch; margin: 0 0 1.25rem; text-wrap: balance; }
.ph-article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.25rem; color: var(--muted); font-size: .9rem; font-weight: 600; }
.ph-article-meta img { width: 30px; height: 30px; border-radius: 9px; }
.ph-article-meta i { color: var(--orange); }
.ph-article-cover { width: 100%; max-height: 520px; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow); margin-bottom: 2rem; }
.ph-article { max-width: 860px; margin: 0 auto; }
.ph-article-body { padding: clamp(1.4rem, 4vw, 2.75rem); }
.ph-article-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }

.ph-like {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .65rem 1.3rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 92, 138, .35);
    background: rgba(255, 92, 138, .08);
    color: #ff8fb0;
    font-weight: 700;
    transition: transform .35s var(--ease-spring), background .25s, color .25s;
}
.ph-like:hover:not(:disabled) { transform: scale(1.05); background: rgba(255, 92, 138, .16); }
.ph-like.active { background: #ff5c8a; border-color: #ff5c8a; color: #fff; }
.ph-like.active .bi-heart-fill { animation: heart-beat .6s var(--ease-spring); }
.ph-like:disabled { opacity: .6; }
@keyframes heart-beat { 30% { transform: scale(1.4); } }

.ph-comment { display: flex; gap: 1rem; padding: 1.2rem 1.25rem; border-radius: var(--radius-sm); background: rgba(255, 255, 255, .025); border: 1px solid var(--border); }
.ph-comment + .ph-comment { margin-top: .75rem; }
.ph-comment-avatar { width: 46px; height: 46px; border-radius: 13px; flex-shrink: 0; }
.ph-comment-author { font-weight: 700; font-size: .92rem; }
.ph-comment-date { font-size: .78rem; color: var(--faint); }
.ph-comment-body { margin-top: .4rem; color: rgba(238, 241, 255, .85); font-size: .95rem; line-height: 1.6; overflow-wrap: anywhere; }
.ph-comment-body p:last-child { margin: 0; }

/* ══════════════════════════════════════════════════════════════
   AUTHENTIFICATION
══════════════════════════════════════════════════════════════ */
.ph-auth { padding: 2.5rem 0 1rem; }
.ph-auth-shell {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    min-height: 600px;
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--surface);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .8);
}
.ph-auth-shell.is-narrow { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; min-height: 0; }
.ph-auth-visual {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 2rem;
    padding: 2.5rem;
    overflow: hidden;
    isolation: isolate;
    background:
        radial-gradient(circle at 30% 20%, rgba(255, 154, 31, .32), transparent 55%),
        radial-gradient(circle at 80% 70%, rgba(255, 79, 216, .22), transparent 55%),
        #0a0d1a;
}
.ph-auth-visual .ph-voxel-floor { height: 55%; left: -60%; right: -60%; }
.ph-auth-visual .ph-cube { opacity: .9; }
.ph-auth-brand { display: flex; align-items: center; gap: .75rem; font-family: var(--font-title); font-weight: 800; font-size: 1.05rem; color: var(--white); }
.ph-auth-brand img { height: 42px; width: auto; }
.ph-auth-visual-logo { align-self: center; height: 150px; width: auto; filter: drop-shadow(0 0 40px rgba(255, 154, 31, .5)); animation: float 5s ease-in-out infinite; }
.ph-auth-visual h2 { font-weight: 900; font-size: clamp(1.6rem, 3vw, 2.3rem); letter-spacing: -.035em; line-height: 1.05; margin: 0 0 .75rem; }
.ph-auth-visual p { color: var(--muted); margin: 0; max-width: 360px; }
.ph-auth-perks { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1.25rem; }
.ph-auth-perks .ph-chip { background: rgba(7, 9, 16, .6); backdrop-filter: blur(8px); }

.ph-auth-form { display: flex; flex-direction: column; justify-content: center; padding: clamp(1.75rem, 5vw, 3.25rem); }
.ph-auth-form-icon {
    width: 56px; height: 56px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
    color: var(--accent, var(--orange));
    background: color-mix(in srgb, var(--accent, var(--orange)) 13%, transparent);
    border: 1px solid color-mix(in srgb, var(--accent, var(--orange)) 30%, transparent);
}
.ph-auth-title { font-weight: 900; font-size: clamp(1.7rem, 3.5vw, 2.2rem); letter-spacing: -.035em; margin: 0 0 .4rem; }
.ph-auth-sub { color: var(--muted); margin: 0 0 1.75rem; }
.ph-auth-switch { text-align: center; margin: 1.5rem 0 0; color: var(--muted); font-size: .92rem; }
.ph-auth-switch a { font-weight: 700; }
.ph-codes { display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem; padding: 1rem; border-radius: var(--radius-sm); background: #05070c; border: 1px solid var(--border); font-family: var(--font-mono); font-weight: 700; color: var(--green); text-align: center; }
.ph-codes > div { padding: .35rem; border-radius: 6px; background: rgba(61, 245, 138, .06); }
.ph-qr { display: inline-block; padding: 14px; border-radius: 16px; background: #fff; box-shadow: 0 0 40px -6px rgba(255, 154, 31, .4); }
.ph-secret { display: block; padding: .7rem 1rem; border-radius: var(--radius-sm); background: #05070c; border: 1px solid rgba(61, 245, 138, .25); font-family: var(--font-mono); font-weight: 700; color: var(--green); text-align: center; letter-spacing: .08em; word-break: break-all; }
.ph-otp { text-align: center; font-family: var(--font-mono); font-size: 1.4rem !important; font-weight: 700; letter-spacing: .5em; }
.ph-step-list { display: grid; gap: 1rem; }
.ph-step-item { display: flex; gap: 1rem; }
.ph-step-item > span {
    width: 32px; height: 32px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 10px;
    font-family: var(--font-title);
    font-weight: 800;
    font-size: .85rem;
    color: var(--orange);
    background: rgba(255, 154, 31, .12);
}

/* ══════════════════════════════════════════════════════════════
   PROFIL
══════════════════════════════════════════════════════════════ */
.ph-profile-card { position: relative; overflow: hidden; padding: 0; margin-bottom: 1.5rem; }
.ph-profile-banner {
    height: 150px;
    position: relative;
    background:
        linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px) 0 0 / 30px 30px,
        linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px) 0 0 / 30px 30px,
        linear-gradient(120deg, #ff9a1f 0%, #ff4fd8 55%, #5b8cff 100%);
    background-size: 30px 30px, 30px 30px, 200% 200%;
    animation: banner-shift 14s ease-in-out infinite alternate;
}
@keyframes banner-shift { to { background-position: 0 0, 0 0, 100% 50%; } }
.ph-profile-main { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 1.5rem; padding: 0 1.75rem 1.75rem; margin-top: -60px; position: relative; }
.ph-profile-avatar {
    width: 128px; height: 128px;
    border-radius: 28px;
    border: 4px solid var(--surface-solid);
    background: var(--surface-solid);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, .7);
    transition: transform .6s var(--ease-spring);
}
.ph-profile-avatar:hover { transform: rotate(-6deg) scale(1.05); }
.ph-profile-name { font-weight: 900; font-size: clamp(1.6rem, 4vw, 2.3rem); letter-spacing: -.035em; margin: 0 0 .5rem; }
.ph-profile-info { flex: 1; min-width: 240px; }
.ph-profile-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.ph-profile-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .75rem; padding: 0 1.75rem 1.75rem; }
.ph-stat {
    padding: 1rem 1.1rem;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, .03);
    border: 1px solid var(--border);
}
.ph-stat-label { font-family: var(--font-mono); font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); margin-bottom: .35rem; display: flex; align-items: center; gap: .4rem; }
.ph-stat-value { font-family: var(--font-title); font-weight: 700; font-size: 1.05rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ══════════════════════════════════════════════════════════════
   LAUNCHER
══════════════════════════════════════════════════════════════ */
.ph-steps { position: relative; max-width: 860px; margin: 0 auto; display: grid; gap: 1.25rem; }
.ph-steps::before {
    content: '';
    position: absolute;
    left: 31px; top: 40px; bottom: 40px;
    width: 2px;
    background: linear-gradient(180deg, var(--green), var(--orange), var(--pink));
    opacity: .4;
}
.ph-step { position: relative; display: flex; gap: 1.5rem; align-items: flex-start; }
.ph-step-num {
    --accent: var(--orange);
    position: relative;
    z-index: 1;
    width: 64px; height: 64px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 18px;
    font-family: var(--font-title);
    font-weight: 900;
    font-size: 1.5rem;
    color: var(--accent);
    background: color-mix(in srgb, var(--accent) 12%, var(--bg));
    border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
    box-shadow: 0 0 30px -8px var(--accent);
}
.ph-step .ph-panel { flex: 1; min-width: 0; }
.ph-step-title { font-size: 1.25rem; font-weight: 800; letter-spacing: -.02em; margin: 0 0 .5rem; }
.ph-step-desc { color: var(--muted); margin: 0 0 1.25rem; line-height: 1.6; }
.ph-step-desc:last-child { margin-bottom: 0; }

.ph-os-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: .75rem; }
.ph-os {
    --accent: var(--orange);
    display: flex;
    align-items: center;
    gap: .9rem;
    padding: 1rem;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, .03);
    border: 1px solid var(--border);
    color: var(--white);
    transition: transform .4s var(--ease-out), border-color .3s, background .3s;
}
.ph-os:hover { color: var(--white); transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 50%, transparent); background: color-mix(in srgb, var(--accent) 8%, transparent); }
.ph-os > i:first-child { font-size: 1.8rem; color: var(--accent); }
.ph-os small { display: block; font-size: .72rem; color: var(--faint); font-weight: 600; white-space: nowrap; }
.ph-os strong { font-family: var(--font-title); font-weight: 700; }
.ph-os .bi-download { margin-left: auto; color: var(--faint); transition: transform .35s var(--ease-spring), color .2s; }
.ph-os:hover .bi-download { color: var(--accent); transform: translateY(3px); }

/* ══════════════════════════════════════════════════════════════
   SKINS
══════════════════════════════════════════════════════════════ */
.ph-skin-preview { width: 100%; max-width: 256px; height: auto; }
.ph-skin3d-stage {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 520px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    background:
        radial-gradient(circle at 50% 70%, rgba(255, 154, 31, .25), transparent 55%),
        #0a0d18;
}
.ph-skin3d-stage .ph-voxel-floor { height: 40%; }
.ph-skin3d-stage canvas { position: relative; z-index: 1; max-width: 100%; }

/* ══════════════════════════════════════════════════════════════
   ERREURS
══════════════════════════════════════════════════════════════ */
.ph-error-page { min-height: 62vh; display: grid; place-items: center; text-align: center; padding: 3rem 0; }
.ph-error-code {
    font-family: var(--font-title);
    font-weight: 900;
    font-size: clamp(6rem, 22vw, 13rem);
    line-height: .9;
    letter-spacing: -.06em;
    background: var(--grad);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: grad-pan 6s linear infinite, glitch 3s steps(1) infinite;
}
@keyframes glitch {
    0%, 92%, 100% { transform: none; }
    93% { transform: translate(-4px, 2px) skewX(-6deg); }
    95% { transform: translate(4px, -2px) skewX(6deg); }
    97% { transform: translate(-2px, 0); }
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 991.98px) {
    .ph-auth-shell { grid-template-columns: 1fr; }
    .ph-auth-visual { min-height: 0; padding: 2rem; }
    .ph-auth-visual-logo, .ph-auth-visual .ph-auth-perks { display: none; }
    .ph-sticky { position: static; }
}
@media (max-width: 767.98px) {
    .ph-page-hero { padding: 2.5rem 0 2rem; margin-bottom: 1.75rem; }
    .ph-page-hero-cube { display: none; }
    .ph-cart-item { grid-template-columns: 1fr auto; }
    .ph-cart-item .ph-cart-total { grid-column: 1; text-align: left; }
    .ph-profile-main { justify-content: center; text-align: center; }
    .ph-profile-actions, .ph-profile-info .d-flex { justify-content: center; }
    .ph-steps::before { left: 23px; }
    .ph-step { gap: 1rem; }
    .ph-step-num { width: 48px; height: 48px; font-size: 1.1rem; border-radius: 14px; }
    .ph-subnav { border-radius: 18px; }
}

/* Le visualiseur 3D du plugin est prévu pour une demi-colonne : on lui rend toute la scène */
.ph-skin3d-stage .canvas-container { flex: 0 0 100%; max-width: 100%; }
.ph-skin3d-stage canvas.border-skin { border: 0 !important; }
