/* ── RESET & VARIABLES ── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #0d0d0d;
    --surface: #161616;
    --surface2: #1f1f1f;
    --border: #2a2a2a;
    --accent: #7fff00;
    --text: #f0f0f0;
    --text-muted: #888;
    --radius: 14px;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* ── LOGO BACKGROUND ── */
.page-bg-logo {
    position: fixed;
    inset: 0;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    opacity: 0.08;
    pointer-events: none;
    z-index: -1;
}

/* ── TOPBAR (ticker) — le colle en haut de l'écran au scroll ── */
.site-topbar {
    position: sticky;
    top: 0;
    z-index: 100;
}

/* ── HEADER (utilisé par info.php / reviews.php — plus par index.php,
   dont le logo/l'heure vivent désormais dans le hero) ── */
header {
    background: color-mix(in srgb, var(--surface) 92%, transparent);
    border-bottom: 1px solid var(--border);
    padding: 0 24px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    gap: 16px;
}

.site-logo-img {
    height: 36px;
    width: 36px;
    object-fit: cover;
    border-radius: 50%;
}

.site-logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    color: var(--accent);
}

.site-logo-text span {
    color: var(--text);
}

/* ── SITE TIME ── */
.site-time {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: color-mix(in srgb, var(--accent) 15%, transparent);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
    border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
}

.site-time .time-icon {
    font-size: 1.1rem;
}

.site-time .time-value {
    font-family: 'Courier New', monospace;
    letter-spacing: 0.5px;
}

/* ── HEADER RIGHT ── */
.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* ── HERO ── */
.hero {
    text-align: center;
    padding: 32px 20px 40px;
}

.hero-topline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 18px;
}

.hero-logo {
    height: 34px;
    width: 34px;
    object-fit: cover;
    border-radius: 50%;
    flex-shrink: 0;
}

.hero-sitename {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--accent);
}

.hero h1 {
    font-size: clamp(1.8rem, 5vw, 3rem);
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.15;
    color: var(--heading, var(--text));
}

.hero h1 em {
    color: var(--accent2, var(--accent));
    font-style: normal;
}

.hero p {
    color: var(--text-muted);
    margin-top: 12px;
    font-size: clamp(0.9rem, 2.5vw, 1.05rem);
}

/* ── FILTERS ── */
.filters-bar {
    max-width: 1300px;
    margin: 0 auto 24px;
    padding: 0 16px;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.filter-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
    white-space: nowrap;
    min-width: 70px;
}

.filter-pills {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
}

.filter-pill {
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-muted);
    transition: all 0.2s;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.filter-pill:hover {
    border-color: color-mix(in srgb, var(--accent) 40%, transparent);
    color: var(--text);
}

.filter-pill.active {
    background: color-mix(in srgb, var(--accent) 12%, transparent);
    border-color: var(--accent);
    color: var(--accent);
}

/* ── GRID ── */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
    gap: 20px;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 16px 60px;
}

/* ── LAYOUT: GRID COLUMNS ── */
body[data-grid="2"] .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding-left: 10px;
    padding-right: 10px;
}

body[data-grid="2"] .product-card {
    height: 18.5rem;
}

body[data-grid="2"] .product-thumbnail,
body[data-grid="2"] .product-thumbnail-placeholder {
    height: 8.5rem;
}

body[data-grid="2"] .product-info {
    padding: 8px 10px;
}

body[data-grid="2"] .product-name {
    font-size: 0.74rem;
    line-height: 1.25;
}

body[data-grid="2"] .product-price-tag {
    font-size: 0.72rem;
}

body[data-grid="2"] .product-farm,
body[data-grid="2"] .product-category {
    font-size: 0.62rem;
}

body[data-grid="2"] .badge {
    font-size: 0.58rem;
    padding: 2px 6px;
}

body[data-grid="3"] .products-grid {
    grid-template-columns: repeat(3, 1fr);
}

body[data-grid="3"] .product-card {
    height: 18rem;
}

body[data-grid="3"] .product-info {
    padding: 2px;
    margin-top: 1rem;
}

body[data-grid="3"] .product-thumbnail,
body[data-grid="3"] .product-thumbnail-placeholder {
    height: 9rem;
}

body[data-grid="4"] .products-grid {
    grid-template-columns: repeat(4, 1fr);
}

body[data-grid="5"] .products-grid {
    grid-template-columns: repeat(5, 1fr);
}

/* ── LAYOUT: BORDER RADIUS ── */
body[data-radius="sharp"] {
    --radius: 0px;
}

body[data-radius="soft"] {
    --radius: 6px;
}

body[data-radius="rounded"] {
    --radius: 14px;
}

body[data-radius="pill"] {
    --radius: 24px;
}

/* ── LAYOUT: CARD COMPACT ── */
body[data-card="compact"] .product-thumbnail,
body[data-card="compact"] .product-thumbnail-placeholder {
    aspect-ratio: 16/9;
}

body[data-card="compact"] .product-info {
    padding: 8px 10px;
}

body[data-card="compact"] .product-name {
    font-size: 0.85rem;
}

body[data-card="compact"] .product-farm {
    font-size: 0.72rem;
}

/* ── LAYOUT: CARD LIST ── */
body[data-card="list"] .products-grid {
    grid-template-columns: 1fr;
    max-width: 780px;
}

body[data-card="list"] .product-card {
    display: flex;
    flex-direction: row;
    min-height: 100px;
}

body[data-card="list"] .product-thumbnail {
    width: 130px;
    height: 100%;
    flex-shrink: 0;
    aspect-ratio: unset;
    object-fit: cover;
}

body[data-card="list"] .product-thumbnail-placeholder {
    width: 130px;
    height: 100px;
    flex-shrink: 0;
    aspect-ratio: unset;
}

body[data-card="list"] .product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 12px 16px;
}

body[data-card="list"] .product-name {
    display: block;
    -webkit-line-clamp: unset;
    white-space: normal;
}

/* ── CARD ── */
.product-card {
    background: var(--card-bg, var(--surface));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
    -webkit-tap-highlight-color: transparent;
    height: 22.5rem;
    position: relative;
}

.product-card:hover {
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--accent) 50%, transparent);
    box-shadow: 0 8px 32px color-mix(in srgb, var(--accent) 7%, transparent);
}

.product-card:active {
    transform: scale(0.96);
    animation: clickPulse 0.4s ease-out;
}

@keyframes clickPulse {
    0% {
        box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 60%, transparent);
    }

    70% {
        box-shadow: 0 0 0 10px color-mix(in srgb, var(--accent) 0%, transparent);
    }

    100% {
        box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 0%, transparent);
    }
}

/* ── PACK CARD ── */
.product-card-pack {
    background: linear-gradient(135deg,
            color-mix(in srgb, var(--accent) 8%, var(--surface)),
            var(--surface));
    border: 2px dashed color-mix(in srgb, var(--accent) 40%, transparent);
}

.product-card-pack:hover {
    border-color: color-mix(in srgb, var(--accent) 70%, transparent);
    box-shadow: 0 8px 32px color-mix(in srgb, var(--accent) 12%, transparent);
}

.badge-pack-label {
    position: absolute;
    top: 8px;
    right: 8px;
    background: color-mix(in srgb, var(--accent) 90%, #000);
    color: #000;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
}

.pack-items-preview {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid color-mix(in srgb, var(--border) 50%, transparent);
    font-size: 0.7rem;
}

.pack-item-tag {
    color: var(--text-muted);
    padding: 2px 6px;
    background: color-mix(in srgb, var(--accent) 15%, transparent);
    border-radius: 6px;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.product-thumbnail {
    width: 100%;
    object-fit: cover;
    display: block;
    background: var(--surface2);
    height: 13rem;
}

.product-thumbnail-placeholder {
    width: 100%;
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, var(--surface2), var(--surface));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.product-info {
    padding: 14px;
}

.product-badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.badge {
    font-size: 0.64rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 20px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    min-width: 0;
}

.badge-price {
    background: color-mix(in srgb, var(--price-color, var(--accent)) 12%, transparent);
    color: var(--price-color, var(--accent));
    border: 1px solid color-mix(in srgb, var(--price-color, var(--accent)) 25%, transparent);
}

.product-thumbnail-wrap {
    position: relative;
    width: 100%;
    flex-shrink: 0;
}

.badge-promo-overlay {
    position: absolute;
    top: 8px;
    left: 8px;
    background: linear-gradient(135deg, #ff4e00 0%, #ff9500 100%);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 20px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    white-space: nowrap;
    pointer-events: none;
    animation: promoPulse 2s ease-in-out infinite;
    z-index: 2;
}

@keyframes promoPulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: .88;
        transform: scale(1.05);
    }
}

.badge-category {
    background: var(--surface2);
    color: var(--text-muted);
    border: 1px solid var(--border);
}

.product-name {
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-width: 100%;
    word-break: break-word;
    overflow-wrap: break-word;
}

.product-farm {
    font-size: 0.74rem;
    color: var(--accent2, var(--text-muted));
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 2px 0 1px;
}

.product-rating-stars {
    color: #f59e0b;
    font-size: 0.7rem;
    letter-spacing: 0.5px;
}

.product-rating-score {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text);
}

.product-rating-count {
    font-size: 0.68rem;
    color: var(--text-muted);
}

body[data-grid="2"] .product-rating-stars {
    font-size: 0.6rem;
}

body[data-grid="2"] .product-rating-score,
body[data-grid="2"] .product-rating-count {
    font-size: 0.6rem;
}

/* ── MODAL OVERLAY ── */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    z-index: 1000;
    align-items: flex-end;
    justify-content: center;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    overscroll-behavior: contain;
}

.modal-overlay.active {
    display: flex;
}

/* ── MODAL BOX ── */
.modal {
    background: var(--surface);
    border: 1px solid var(--border);
    width: 100%;
    max-width: 700px;
    max-height: 95dvh;
    max-height: 95vh;
    overflow-y: auto;
    overscroll-behavior: contain;
    border-radius: 20px 20px 0 0;
    animation: slideUp 0.32s cubic-bezier(0.32, 0.72, 0, 1);
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@media (min-width: 640px) {
    .modal-overlay {
        align-items: center;
        padding: 20px;
    }

    .modal {
        border-radius: 20px;
        animation: modalIn 0.28s cubic-bezier(0.32, 0.72, 0, 1);
    }

    @keyframes modalIn {
        from {
            transform: scale(0.94) translateY(16px);
            opacity: 0;
        }

        to {
            transform: scale(1) translateY(0);
            opacity: 1;
        }
    }
}

.modal-media {
    width: 100%;
    overflow: hidden;
    background: #000;
    border-radius: 20px 20px 0 0;
}

.modal-media img,
.modal-media video {
    width: 100%;
    max-height: 340px;
    object-fit: cover;
    display: block;
}

.modal-body {
    padding: 20px;
}

@media (min-width: 640px) {
    .modal-body {
        padding: 28px;
    }
}

.modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.modal-title {
    font-size: clamp(1.3rem, 4vw, 1.7rem);
    font-weight: 800;
    line-height: 1.2;
    color: var(--heading, var(--text));
}

.modal-close {
    background: var(--surface2);
    border: 1px solid var(--border);
    color: var(--text);
    min-width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    flex-shrink: 0;
}

.modal-close:hover {
    background: var(--border);
}

.modal-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.badge-cat-modal {
    background: var(--surface2);
    color: var(--text-muted);
    border: 1px solid var(--border);
}

.badge-farm-modal {
    background: color-mix(in srgb, var(--accent) 8%, transparent);
    color: var(--accent);
    border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent);
}

.modal-description {
    color: var(--text-muted);
    font-size: 0.93rem;
    line-height: 1.65;
    margin-bottom: 22px;
    white-space: pre-line;
}

.prices-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--price-color, var(--accent));
    margin-bottom: 10px;
}

.prices-grid {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    justify-content: flex-start;
    flex-wrap: wrap;
    flex-direction: row;
}

.price-item {
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 11px 6px;
    text-align: center;
    transition: border-color 0.2s, background 0.2s;
    width: min-content;
}

.price-item:hover {
    border-color: var(--price-color, var(--accent));
    background: color-mix(in srgb, var(--price-color, var(--accent)) 4%, transparent);
}

.price-qty {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--price-color, var(--accent));
}

.price-val {
    font-size: 0.88rem;
    color: var(--text);
    font-weight: 600;
    margin-top: 3px;
}

.price-promo-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-top: 3px;
}

.price-original {
    text-decoration: line-through;
    opacity: 0.4;
    font-size: 0.72rem;
    font-weight: 500;
}

.promo-badge {
    display: inline-block;
    background: color-mix(in srgb, var(--price-color, var(--accent)) 15%, transparent);
    color: var(--price-color, var(--accent));
    border: 1px solid color-mix(in srgb, var(--price-color, var(--accent)) 30%, transparent);
    padding: 0 5px;
    border-radius: 20px;
    font-size: 0.62rem;
    font-weight: 700;
}

/* ── TELEGRAM BUTTON ── */
.btn-telegram {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 15px;
    background: var(--accent);
    color: var(--on-accent, #000);
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: opacity 0.2s, transform 0.15s;
    -webkit-tap-highlight-color: transparent;
}

.btn-telegram:hover {
    opacity: 0.85;
}

.btn-telegram:active {
    transform: scale(0.98);
}

.tg-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

/* ── HEADER RIGHT ── */
.header-right {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

/* ── THEME TOGGLE ── */
.theme-toggle {
    background: var(--surface2);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.theme-toggle:hover {
    background: var(--border);
    border-color: var(--accent);
    color: var(--accent);
}

/* ── SITE NAV ── */
.site-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.site-nav-link {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    padding: 7px 16px;
    border-radius: 20px;
    border: 1px solid transparent;
    transition: all 0.2s;
    white-space: nowrap;
}

.site-nav-link:hover {
    color: var(--text);
    border-color: var(--border);
}

.site-nav-link.active {
    color: var(--text);
    background: var(--surface2);
    border-color: var(--border);
}

.info-header {
    position: relative;
    z-index: 10;
    background: color-mix(in srgb, var(--bg) 80%, transparent);
    border-bottom-color: var(--border);
}

/* ── FILTER SELECT ── */
.filter-select {
    appearance: none;
    -webkit-appearance: none;
    background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 12px center;
    border: 1px solid var(--border);
    color: var(--text);
    padding: 6px 32px 6px 14px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: border-color 0.2s;
}

.filter-select:focus {
    outline: none;
    border-color: var(--accent);
}

.filter-select option {
    background: var(--surface);
    color: var(--text);
}

/* ── INFO PAGE ── */
.info-body {
    overflow-x: hidden;
}

.info-bg {
    position: fixed;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: blur(10px) brightness(0.25);
    transform: scale(1.06);
    z-index: 0;
}

.info-container {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    margin: 20vh auto;
    padding: 32px 20px 60px;
}

.info-topbar {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 40px;
}

.info-back {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: color 0.2s;
    white-space: nowrap;
}

.info-back:hover {
    color: var(--text);
}

.info-logo-img {
    height: 32px;
    width: auto;
    object-fit: contain;
    margin-left: auto;
}

.info-logo-text {
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -1px;
    color: var(--accent);
    margin-left: auto;
}

.info-logo-text span {
    color: var(--text);
}

.info-title {
    text-align: center;
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    font-weight: 800;
    color: var(--text);
    margin-bottom: 40px;
    letter-spacing: -0.5px;
}

.info-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.info-cards-1 {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.info-cards-2 {
    grid-template-columns: repeat(2, 1fr);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.info-card {
    --card-color: #7fff00;
    background: color-mix(in srgb, var(--surface) 85%, transparent);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-top: 3px solid var(--card-color);
    border-radius: 20px;
    padding: 26px 24px;
    color: var(--text);
}

/* On dark modes, use glass effect */
body[data-mode="dark"] .info-card {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.1);
}

.info-card-icon {
    font-size: 2rem;
    width: 52px;
    height: 52px;
    background: color-mix(in srgb, var(--card-color) 15%, transparent);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.info-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-card-content {
    font-size: 0.88rem;
    line-height: 1.75;
    color: var(--text-muted);
}

.info-card-content p {
    margin-bottom: 8px;
}

.info-card-content ul,
.info-card-content ol {
    padding-left: 18px;
    margin-bottom: 8px;
}

.info-card-content li {
    margin-bottom: 4px;
}

.info-card-content strong {
    color: var(--text);
    font-weight: 700;
}

.info-tg-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: var(--accent);
    color: var(--on-accent, #000);
    text-decoration: none;
    border-radius: 14px;
    padding: 16px 32px;
    font-size: 1rem;
    font-weight: 700;
    max-width: 400px;
    margin: 0 auto;
    transition: opacity 0.2s, transform 0.15s;
    -webkit-tap-highlight-color: transparent;
}

.info-tg-btn:hover {
    opacity: 0.85;
}

.info-tg-btn:active {
    transform: scale(0.98);
}

.info-card-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 16px;
    padding: 9px 20px;
    border-radius: 10px;
    background: var(--card-color);
    color: var(--on-accent, #000);
    font-weight: 700;
    font-size: 0.85rem;
    text-decoration: none;
    transition: opacity 0.2s, transform 0.15s;
    -webkit-tap-highlight-color: transparent;
}

.info-card-btn:hover {
    opacity: 0.82;
}

.info-card-btn:active {
    transform: scale(0.97);
}

/* ── MODAL BUTTONS ── */
.modal-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 14px;
}

.btn-modal-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 15px;
    background: var(--accent);
    color: var(--on-accent, #000);
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: opacity 0.2s, transform 0.15s;
    -webkit-tap-highlight-color: transparent;
}

.btn-modal-link:hover {
    opacity: 0.85;
}

.btn-modal-link:active {
    transform: scale(0.98);
}

@media (max-width: 800px) {

    .info-cards,
    .info-cards-2 {
        grid-template-columns: 1fr;
    }

    .info-container {
        padding: 24px 16px 48px;
        margin: 0 auto;
    }

    header {
        padding: 0 16px;
        gap: 8px;
    }

    .site-nav {
        gap: 2px;
    }

    .site-nav-link {
        padding: 6px 11px;
        font-size: 0.78rem;
    }
}

@media (max-width: 500px) {
    header {
        height: 52px;
        min-height: unset;
        padding: 0 10px;
        flex-wrap: nowrap;
        justify-content: space-between;
        row-gap: 0;
        gap: 6px;
        overflow: hidden;
    }

    .site-logo-img {
        height: 26px;
        flex-shrink: 0;
    }

    .site-logo-text {
        font-size: 1rem;
        flex-shrink: 0;
    }

    .header-right {
        margin-left: auto;
        order: unset;
        width: auto;
        justify-content: flex-end;
        padding-bottom: 0;
        flex-shrink: 0;
        gap: 4px;
    }

    .site-nav {
        gap: 2px;
        flex-shrink: 1;
        min-width: 0;
    }

    .site-nav-link {
        padding: 4px 7px;
        font-size: 0.68rem;
        white-space: nowrap;
    }

    .info-tg-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ── ADMIN CSS EXTRAS ── */
.radio-group {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--surface2, #1e1e1e);
    border: 1px solid var(--border, #2a2a2a);
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.88rem;
    transition: border-color 0.2s;
}

.radio-option:has(input:checked) {
    border-color: var(--accent, #7fff00);
}

.radio-option input[type="radio"] {
    accent-color: var(--accent, #7fff00);
}

.info-card-editor {
    background: var(--surface2, #1e1e1e);
    border: 1px solid var(--border, #2a2a2a);
    border-radius: 12px;
    padding: 18px;
    margin-top: 16px;
}

.info-card-editor-title {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted, #777);
    margin-bottom: 14px;
}

.info-content-area {
    min-height: 120px;
    font-family: monospace;
    font-size: 0.82rem;
}

/* ── BAN / KICK SCREEN ── */
#ban-screen,
#kick-screen {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: var(--bg, #0a0a0a);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 24px;
}

#ban-screen.visible,
#kick-screen.visible {
    display: flex;
}

.ban-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
    filter: grayscale(1);
}

.ban-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text, #f0f0f0);
    margin-bottom: 10px;
}

.ban-sub {
    font-size: 0.9rem;
    color: var(--text-muted, #777);
    max-width: 280px;
    line-height: 1.5;
}

/* ── MISC ── */
.no-products,
.no-results {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
    grid-column: 1 / -1;
    font-size: 1rem;
}

::-webkit-scrollbar {
    width: 5px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

/* ══════════════════════════════════════════
   THÈME : CLINIQUE / HÔPITAL
══════════════════════════════════════════ */
body[data-theme="clinic"] {
    --bg: #f0f5fa;
    --surface: #ffffff;
    --surface2: #e4eff8;
    --border: #c8dded;
    --accent: #0077b6;
    --text: #0d1b2a;
    --text-muted: #5a7290;
    --radius: 14px;
}

/* Header */
body[data-theme="clinic"] header {
    background: color-mix(in srgb, var(--surface) 95%, transparent);
    border-bottom: 1px solid var(--border);
}

body[data-theme="clinic"] .info-header {
    background: color-mix(in srgb, var(--surface) 88%, transparent);
    border-bottom-color: var(--border);
}

body[data-theme="clinic"] .site-logo-text {
    color: var(--accent);
}

/* Filtres */
body[data-theme="clinic"] .filter-select {
    background-color: var(--surface);
    color: var(--text);
}

/* Cards produit */
body[data-theme="clinic"] .product-thumbnail-placeholder {
    background: linear-gradient(135deg, var(--surface2), color-mix(in srgb, var(--accent) 10%, var(--surface)));
}

body[data-theme="clinic"] .badge-category {
    background: var(--surface2);
    color: var(--text-muted);
    border-color: var(--border);
}

/* Nav */
body[data-theme="clinic"] .site-nav-link {
    color: var(--text-muted);
}

body[data-theme="clinic"] .site-nav-link:hover {
    color: var(--text);
    border-color: var(--border);
}

body[data-theme="clinic"] .site-nav-link.active {
    color: var(--text);
    background: var(--surface2);
    border-color: var(--border);
}

/* Modal */
body[data-theme="clinic"] .modal-overlay {
    background: color-mix(in srgb, var(--bg) 65%, transparent);
}

body[data-theme="clinic"] .modal {
    box-shadow: 0 20px 60px color-mix(in srgb, var(--accent) 20%, transparent);
}

body[data-theme="clinic"] .modal-close {
    background: var(--surface2);
    color: var(--text);
}

body[data-theme="clinic"] .modal-close:hover {
    background: var(--surface2);
}

body[data-theme="clinic"] .badge-cat-modal {
    background: var(--surface2);
    color: var(--text-muted);
    border-color: var(--border);
}

body[data-theme="clinic"] .modal-description {
    color: var(--text-muted);
}

body[data-theme="clinic"] .price-val {
    color: var(--text);
}

/* Page infos */
body[data-theme="clinic"] .info-bg {
    filter: blur(12px) brightness(0.45);
}

body[data-theme="clinic"] .info-card {
    background: color-mix(in srgb, var(--surface) 92%, transparent);
    border-color: color-mix(in srgb, var(--accent) 15%, transparent);
    color: var(--text);
}

body[data-mode="dark"][data-theme="clinic"] .info-card {
    background: color-mix(in srgb, var(--surface) 80%, transparent);
}

body[data-theme="clinic"] .info-card-content {
    color: var(--text-muted);
}

body[data-theme="clinic"] .info-card-content strong {
    color: var(--text);
}

body[data-theme="clinic"] .info-back {
    color: var(--text-muted);
}

body[data-theme="clinic"] .info-back:hover {
    color: var(--text);
}

/* Scrollbar */
body[data-theme="clinic"] ::-webkit-scrollbar-thumb {
    background: var(--border);
}

/* ══════════════════════════════════════════
   THÈME : NEON
══════════════════════════════════════════ */
body[data-theme="neon"] header {
    background: color-mix(in srgb, var(--surface) 92%, transparent);
    border-bottom-color: var(--border);
}

body[data-theme="neon"] .site-logo-text {
    color: var(--accent);
    text-shadow: 0 0 12px var(--accent);
}

/* Neon: glow effects (additive on top of base accent color-mix rules) */
body[data-theme="neon"] .filter-pill.active {
    box-shadow: 0 0 8px color-mix(in srgb, var(--accent) 30%, transparent);
}

body[data-theme="neon"] .product-card:hover {
    box-shadow: 0 0 20px color-mix(in srgb, var(--accent) 20%, transparent);
}

body[data-theme="neon"] .hero h1 em {
    text-shadow: 0 0 20px color-mix(in srgb, var(--accent) 50%, transparent);
}

body[data-theme="neon"] .price-item:hover {
    box-shadow: 0 0 10px color-mix(in srgb, var(--accent) 20%, transparent);
}

body[data-theme="neon"] .modal-overlay {
    background: rgba(10, 0, 20, 0.85);
}

body[data-theme="neon"] .site-nav-link:hover {
    color: var(--text);
}

body[data-theme="neon"] .site-nav-link.active {
    background: var(--surface2);
}

body[data-theme="neon"] .info-card {
    background: color-mix(in srgb, var(--surface) 85%, transparent);
    border-top-color: var(--card-color);
}

body[data-mode="dark"][data-theme="neon"] .info-card {
    background: rgba(26, 10, 48, 0.85);
}

body[data-theme="neon"] .info-card-content {
    color: var(--text-muted);
}

/* ══════════════════════════════════════════
   THÈME : NATURE
══════════════════════════════════════════ */
body[data-theme="nature"] header {
    background: color-mix(in srgb, var(--surface) 92%, transparent);
    border-bottom-color: var(--border);
}

body[data-theme="nature"] .site-logo-text {
    color: var(--accent);
}

/* Nature: base color-mix rules handle hover/active states */
body[data-theme="nature"] .modal-overlay {
    background: rgba(5, 12, 4, 0.85);
}

body[data-theme="nature"] .site-nav-link.active {
    background: var(--surface2);
}

body[data-theme="nature"] .info-card {
    background: color-mix(in srgb, var(--surface) 85%, transparent);
}

body[data-mode="dark"][data-theme="nature"] .info-card {
    background: rgba(18, 30, 15, 0.85);
}

/* ══════════════════════════════════════════
   THÈME : SUNSET
══════════════════════════════════════════ */
body[data-theme="sunset"] header {
    background: color-mix(in srgb, var(--surface) 92%, transparent);
    border-bottom-color: var(--border);
}

body[data-theme="sunset"] .site-logo-text {
    color: var(--accent);
}

/* Sunset: base color-mix rules handle hover/active states */
body[data-theme="sunset"] .modal-overlay {
    background: rgba(20, 4, 0, 0.88);
}

body[data-theme="sunset"] .site-nav-link.active {
    background: var(--surface2);
}

body[data-theme="sunset"] .info-card {
    background: color-mix(in srgb, var(--surface) 85%, transparent);
}

body[data-mode="dark"][data-theme="sunset"] .info-card {
    background: rgba(36, 16, 0, 0.85);
}

/* ── Formes pilules & touches médicales ── */

/* Fond grille médicale */
body[data-theme="clinic"] {
    background-image:
        linear-gradient(color-mix(in srgb, var(--accent) 4%, transparent) 1px, transparent 1px),
        linear-gradient(90deg, color-mix(in srgb, var(--accent) 4%, transparent) 1px, transparent 1px);
    background-size: 28px 28px;
}

/* Hero — ligne EKG décorative sous le titre */
body[data-theme="clinic"] .hero {
    position: relative;
    padding-bottom: 56px;
}

body[data-theme="clinic"] .hero::after {
    content: '';
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: min(480px, 90%);
    height: 28px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 480 28' fill='none'%3E%3Cpolyline points='0,14 60,14 75,4 82,24 90,4 98,22 106,14 160,14 172,2 178,26 186,2 194,26 200,14 260,14 275,4 282,24 290,14 360,14 370,4 376,24 382,4 388,22 396,14 480,14' stroke='%230077b6' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' opacity='0.35'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    pointer-events: none;
}

/* Boutons — pilules */
body[data-theme="clinic"] .btn-telegram {
    border-radius: 50px;
}

body[data-theme="clinic"] .btn-modal-link {
    border-radius: 50px;
}

/* Filtres pills — plus pilule */
body[data-theme="clinic"] .filter-pill {
    border-radius: 50px;
    font-weight: 700;
}

/* Cards produit — plus arrondies, shadow médicale */
body[data-theme="clinic"] .product-card {
    border-radius: 20px;
    box-shadow: 0 2px 12px color-mix(in srgb, var(--accent) 8%, transparent);
}

body[data-theme="clinic"] .product-card:hover {
    box-shadow: 0 10px 32px color-mix(in srgb, var(--accent) 15%, transparent);
    transform: translateY(-5px);
}

/* Placeholder — croix médicale */
body[data-theme="clinic"] .product-thumbnail-placeholder {
    background: linear-gradient(135deg, var(--surface2), var(--surface));
    position: relative;
    font-size: 0;
    /* cache l'emoji */
}

body[data-theme="clinic"] .product-thumbnail-placeholder::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 36px;
    height: 36px;
    background: color-mix(in srgb, var(--accent) 30%, transparent);
    /* Croix médicale via clip-path */
    clip-path: polygon(33% 0%, 67% 0%, 67% 33%, 100% 33%, 100% 67%, 67% 67%, 67% 100%, 33% 100%, 33% 67%, 0% 67%, 0% 33%, 33% 33%);
}

/* Badge prix — style étiquette prescription */
body[data-theme="clinic"] .badge-price {
    border-radius: 50px;
    font-weight: 800;
    letter-spacing: 0.3px;
    padding: 4px 12px;
}

body[data-theme="clinic"] .badge-category {
    border-radius: 50px;
}

/* Icône farm — croix au lieu de 🌱 */
body[data-theme="clinic"] .product-farm {
    font-size: 0.78rem;
    color: var(--accent2, var(--text-muted));
}

/* Prix dans modal — style capsule médicale */
body[data-theme="clinic"] .price-item {
    border-radius: 50px;
    flex-direction: column;
    border: 2px solid var(--border);
    box-shadow: 0 2px 6px color-mix(in srgb, var(--accent) 7%, transparent);
}

body[data-theme="clinic"] .price-item:hover {
    border-color: var(--price-color, var(--accent));
    box-shadow: 0 4px 14px color-mix(in srgb, var(--price-color, var(--accent)) 15%, transparent);
}

body[data-theme="clinic"] .prices-title {
    color: var(--price-color, var(--accent));
    letter-spacing: 1.5px;
}

/* Modal — look fiche patient */
body[data-theme="clinic"] .modal {
    border-radius: 24px 24px 0 0;
    border-top: 4px solid var(--accent);
    box-shadow: 0 -8px 40px color-mix(in srgb, var(--accent) 15%, transparent);
}

@media (min-width: 640px) {
    body[data-theme="clinic"] .modal {
        border-radius: 24px;
        border-top: 4px solid var(--accent);
    }
}

body[data-theme="clinic"] .modal-title {
    color: var(--text);
}

body[data-theme="clinic"] .modal-close {
    border-radius: 50px;
}

/* badge-farm-modal uses base color-mix rules now */

/* Page logo bg — moins visible sur fond clair */
body[data-theme="clinic"] .page-bg-logo {
    opacity: 0.04;
}

/* Nav links — pilules */
body[data-theme="clinic"] .site-nav-link {
    border-radius: 50px;
}

/* Info page — cartes cliniques */
body[data-theme="clinic"] .info-card {
    border-radius: 20px;
    border-left: 4px solid var(--card-color);
    border-top: none;
}

body[data-theme="clinic"] .info-title {
    color: var(--text);
    text-shadow: none;
}

body[data-theme="clinic"] .info-tg-btn {
    border-radius: 50px;
}

body[data-theme="clinic"] .info-card-btn {
    border-radius: 50px;
}
/* ── TICKER / BANDE DÉFILANTE ── */
.ticker-wrap {
    width: 100%;
    overflow: hidden;
    background: var(--accent);
    color: var(--accent-text, #000);
    padding: 7px 0;
    position: relative;
    z-index: 10;
}

.ticker-track {
    display: flex;
    white-space: nowrap;
    width: max-content;
    animation: ticker-scroll 22s linear infinite;
    will-change: transform;
}

.ticker-track:hover {
    animation-play-state: paused;
}

.ticker-content {
    display: inline-block;
    min-width: 100vw;
    padding-right: 60px;
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .03em;
    text-transform: uppercase;
    opacity: .92;
}

@keyframes ticker-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}


/* ══════════════════════════════════════════════════════════════════════════
   ONE PIECE PIXEL — Grand Line Arcade Theme
   Reprend le visuel d'onepiece-shop.html : pixel-art, ciel nocturne, bateau
   pirate, boutons chunky rouge/or, police Press Start 2P.
   ══════════════════════════════════════════════════════════════════════════ */

body[data-theme="onepiece"] {
    font-family: 'Rajdhani', 'Segoe UI', sans-serif;
    position: relative;
    overflow-x: hidden;
}

@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=Rajdhani:wght@400;600;700&display=swap');

/* ── Étoiles + vignette légère (laisse bien voir la vidéo de fond jour/nuit) ── */
body[data-theme="onepiece"]::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(2px 2px at 10% 12%, #fff, transparent),
        radial-gradient(2px 2px at 26% 22%, #fff, transparent),
        radial-gradient(1.5px 1.5px at 42% 8%, #fff, transparent),
        radial-gradient(2px 2px at 61% 18%, #fff, transparent),
        radial-gradient(1.5px 1.5px at 77% 10%, #fff, transparent),
        radial-gradient(2px 2px at 90% 24%, #fff, transparent),
        radial-gradient(1.5px 1.5px at 18% 34%, #fff, transparent),
        radial-gradient(2px 2px at 70% 32%, #fff, transparent),
        linear-gradient(180deg, rgba(6,15,37,0.25) 0%, rgba(6,15,37,0.04) 22%, rgba(6,15,37,0.02) 62%, rgba(6,15,37,0.3) 100%);
    opacity: 0.7;
    pointer-events: none;
}

body[data-theme="onepiece"]::after {
    content: '';
    position: fixed;
    left: 0; right: 0; bottom: 0;
    height: 40vh;
    z-index: -1;
    background:
        repeating-linear-gradient(90deg, transparent 0, rgba(255,255,255,0.03) 18px, transparent 36px),
        linear-gradient(180deg, transparent 0%, rgba(13,37,64,0.12) 25%, rgba(6,18,36,0.3) 100%);
    pointer-events: none;
}

/* ── Vidéo de fond jour/nuit (One Piece) ── */
.op-bg-video {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -3;
    filter: brightness(.9) saturate(1.05);
    pointer-events: none;
    background: #060f25;
}

/* ── Header / topbar ── */
body[data-theme="onepiece"] header,
body[data-theme="onepiece"] .site-topbar .ticker-wrap {
    background: color-mix(in srgb, var(--surface) 88%, transparent);
    border-bottom: 3px solid var(--accent2);
    box-shadow: 0 4px 0 rgba(0,0,0,0.4);
}

body[data-theme="onepiece"] .site-logo-img {
    border-radius: 0;
    border: 3px solid var(--accent2);
    box-shadow: 0 0 0 3px #1a0a0a;
}

body[data-theme="onepiece"] .site-logo-text {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.85rem;
    color: var(--accent);
    text-shadow: 2px 2px 0 var(--accent2);
    letter-spacing: 0;
}

/* ── Hero ── */
body[data-theme="onepiece"] .hero-sitename {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.7rem;
    color: var(--accent);
    text-shadow: 2px 2px 0 var(--accent2);
}

body[data-theme="onepiece"] .hero h1 {
    font-family: 'Press Start 2P', monospace;
    font-size: clamp(1.1rem, 4.5vw, 1.9rem);
    line-height: 1.6;
    color: var(--accent);
    text-shadow: 3px 3px 0 var(--accent2), 6px 6px 0 rgba(0,0,0,0.5);
}

body[data-theme="onepiece"] .hero h1 em {
    color: #fff;
    font-style: normal;
}

body[data-theme="onepiece"] .hero p,
body[data-theme="onepiece"] .hero-greeting {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    color: var(--text-muted);
}

body[data-theme="onepiece"] .site-time {
    border-radius: 0;
    background: var(--surface2);
    border: 2px solid var(--accent2);
    box-shadow: 0 3px 0 #1a0a0a;
}

/* ── Barre de recherche ── */
body[data-theme="onepiece"] .search-bar {
    border-radius: 0;
    border: 2px solid var(--accent2);
    box-shadow: 0 3px 0 #1a0a0a;
    background: var(--surface2);
}

/* ── Filtres / pills ── */
body[data-theme="onepiece"] .filter-label {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.55rem;
    color: var(--text-muted);
}

body[data-theme="onepiece"] .filter-pill {
    border-radius: 0;
    background: var(--surface2);
    border: 2px solid #1a0a0a;
    box-shadow: 0 3px 0 #1a0a0a;
    font-weight: 700;
    transition: transform .08s;
}

body[data-theme="onepiece"] .filter-pill:hover {
    border-color: var(--accent);
    color: var(--accent);
}

body[data-theme="onepiece"] .filter-pill.active {
    background: var(--accent2);
    border-color: #1a0a0a;
    color: #fff;
    box-shadow: 0 3px 0 #6a1010;
    transform: translateY(1px);
}

body[data-theme="onepiece"] .filter-pill:active {
    transform: translateY(3px);
    box-shadow: none;
}

/* ── Cartes produits : coffre de pont pixel ── */
body[data-theme="onepiece"] .product-card {
    border-radius: 0;
    border: 3px solid #1a0a0a;
    box-shadow: 0 0 0 2px var(--accent2), 0 5px 0 2px #1a0a0a;
    background: var(--card-bg, var(--surface));
    transition: transform 0.15s;
}

body[data-theme="onepiece"] .product-card:hover {
    border-color: #1a0a0a;
    box-shadow: 0 0 0 2px var(--accent), 0 5px 0 2px #1a0a0a;
    transform: translateY(-3px);
}

body[data-theme="onepiece"] .product-card:active {
    transform: translateY(2px);
}

body[data-theme="onepiece"] .product-thumbnail,
body[data-theme="onepiece"] .product-thumbnail-placeholder {
    filter: saturate(1.05);
    border-bottom: 3px solid #1a0a0a;
}

body[data-theme="onepiece"] .product-thumbnail-placeholder::after {
    content: '🏴‍☠️';
    font-size: 2.4rem;
    opacity: 0.55;
}

body[data-theme="onepiece"] .product-name {
    font-weight: 700;
    color: var(--text);
}

body[data-theme="onepiece"] .product-farm {
    color: var(--text-muted);
}

body[data-theme="onepiece"] .badge,
body[data-theme="onepiece"] .badge-category,
body[data-theme="onepiece"] .badge-price,
body[data-theme="onepiece"] .badge-pack-label {
    border-radius: 0;
    border-width: 2px;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
}

body[data-theme="onepiece"] .badge-promo-overlay {
    border-radius: 0;
    background: var(--accent2);
    box-shadow: 0 0 0 2px #1a0a0a;
    animation: none;
}

body[data-theme="onepiece"] .product-rating-stars {
    color: var(--accent);
}

/* ── Boutons génériques (achat, commander, telegram, etc.) ── */
body[data-theme="onepiece"] .btn-telegram,
body[data-theme="onepiece"] .info-tg-btn,
body[data-theme="onepiece"] .info-card-btn,
body[data-theme="onepiece"] .cart-commander-btn,
body[data-theme="onepiece"] .btn-review-add,
body[data-theme="onepiece"] .btn-review-submit,
body[data-theme="onepiece"] .parr-btn-primary,
body[data-theme="onepiece"] .btn-promo-apply {
    border-radius: 0 !important;
    background: var(--accent2) !important;
    color: #fff !important;
    border: none !important;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-shadow: 1px 1px 0 #6a1010;
    box-shadow: 0 0 0 3px #1a0a0a, 0 5px 0 3px #0a0505 !important;
    transition: transform .08s;
}

body[data-theme="onepiece"] .btn-telegram:hover,
body[data-theme="onepiece"] .info-tg-btn:hover,
body[data-theme="onepiece"] .info-card-btn:hover,
body[data-theme="onepiece"] .cart-commander-btn:hover,
body[data-theme="onepiece"] .btn-review-add:hover,
body[data-theme="onepiece"] .btn-review-submit:hover,
body[data-theme="onepiece"] .parr-btn-primary:hover,
body[data-theme="onepiece"] .btn-promo-apply:hover {
    filter: brightness(1.12);
    transform: translateY(-2px);
}

body[data-theme="onepiece"] .btn-telegram:active,
body[data-theme="onepiece"] .info-tg-btn:active,
body[data-theme="onepiece"] .info-card-btn:active,
body[data-theme="onepiece"] .cart-commander-btn:active,
body[data-theme="onepiece"] .btn-review-add:active,
body[data-theme="onepiece"] .btn-review-submit:active,
body[data-theme="onepiece"] .parr-btn-primary:active,
body[data-theme="onepiece"] .btn-promo-apply:active {
    transform: translateY(3px);
    box-shadow: 0 0 0 3px #1a0a0a, 0 2px 0 3px #0a0505 !important;
}

body[data-theme="onepiece"] .parr-btn-ghost,
body[data-theme="onepiece"] .btn-review-cancel,
body[data-theme="onepiece"] .cart-back-btn {
    border-radius: 0 !important;
    border: 2px solid var(--accent2) !important;
    font-weight: 700;
}

/* ── Modal produit ── */
body[data-theme="onepiece"] .modal-overlay {
    background: rgba(6, 15, 37, 0.92);
}

body[data-theme="onepiece"] .modal {
    border-radius: 0;
    border: 3px solid #1a0a0a;
    box-shadow: 0 0 0 3px var(--accent2), 0 0 40px rgba(0,0,0,0.6);
    background: var(--surface);
}

body[data-theme="onepiece"] .modal-title {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.85rem;
    color: var(--accent);
    text-shadow: 2px 2px 0 var(--accent2);
}

body[data-theme="onepiece"] .modal-close {
    border-radius: 0;
    background: var(--accent2);
    color: #fff;
    box-shadow: 0 0 0 2px #1a0a0a;
}

body[data-theme="onepiece"] .prices-title {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.6rem;
    color: var(--text-muted);
}

body[data-theme="onepiece"] .price-item {
    border-radius: 0;
    border: 2px solid var(--border);
    background: var(--surface2);
}

body[data-theme="onepiece"] .price-val {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.75rem;
    color: var(--accent);
}

/* ── Nav / bottom nav ── */
body[data-theme="onepiece"] .site-nav-link.active {
    color: var(--accent);
    border-bottom: 2px solid var(--accent2);
}

body[data-theme="onepiece"] .bottom-nav {
    background: linear-gradient(180deg, #0a1a35 0%, #060f25 100%);
    border-top: 3px solid var(--accent2);
}

body[data-theme="onepiece"] .bottom-nav-item.active .bottom-nav-icon,
body[data-theme="onepiece"] .bottom-nav-item.active .bottom-nav-label {
    color: var(--accent);
}

body[data-theme="onepiece"] .cart-badge {
    border-radius: 0;
    background: var(--accent2);
    box-shadow: 0 0 0 2px #1a0a0a;
}

body[data-theme="onepiece"] .theme-toggle {
    border-radius: 0;
    border: 2px solid var(--accent2);
    box-shadow: 0 3px 0 #1a0a0a;
}

/* ── Panier (drawer) ── */
body[data-theme="onepiece"] .cart-drawer {
    background: var(--surface);
    border-left: 3px solid var(--accent2);
}

body[data-theme="onepiece"] .cart-drawer-title {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.7rem;
    color: var(--accent);
    text-shadow: 2px 2px 0 var(--accent2);
}

body[data-theme="onepiece"] .cart-item {
    border-radius: 0;
    border: 2px solid var(--border);
    background: var(--surface2);
}

body[data-theme="onepiece"] .cart-qty-btn {
    border-radius: 0;
    background: var(--surface2);
    border: 2px solid var(--accent2);
}

body[data-theme="onepiece"] .cart-total-amount {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.85rem;
    color: var(--accent);
}

body[data-theme="onepiece"] .cart-field input,
body[data-theme="onepiece"] .cart-field select,
body[data-theme="onepiece"] .cart-field textarea {
    border-radius: 0 !important;
    border: 2px solid var(--border) !important;
    background: var(--surface2) !important;
}

body[data-theme="onepiece"] .cart-toast,
body[data-theme="onepiece"] .cart-success-icon {
    border-radius: 0;
}

/* ── Avis (reviews) ── */
body[data-theme="onepiece"] .reviews-title,
body[data-theme="onepiece"] .reviews-page-title,
body[data-theme="onepiece"] .info-title {
    font-family: 'Press Start 2P', monospace;
    font-size: 1rem;
    color: var(--accent);
    text-shadow: 3px 3px 0 var(--accent2);
    letter-spacing: 0;
    text-transform: none;
}

body[data-theme="onepiece"] .review-card,
body[data-theme="onepiece"] .reviews-page-card,
body[data-theme="onepiece"] .info-card {
    border-radius: 0;
    border: 2px solid #1a0a0a;
    box-shadow: 0 0 0 2px var(--accent2), 0 4px 0 2px #1a0a0a;
    background: var(--card-bg, var(--surface));
}

body[data-theme="onepiece"] .review-stars,
body[data-theme="onepiece"] .reviews-page-stars,
body[data-theme="onepiece"] .reviews-avg-stars {
    color: var(--accent);
}

body[data-theme="onepiece"] .sort-btn {
    border-radius: 0;
    border: 2px solid var(--border);
}

body[data-theme="onepiece"] .sort-btn:hover,
body[data-theme="onepiece"] .sort-btn.active {
    border-color: var(--accent2);
    color: var(--accent);
    background: color-mix(in srgb, var(--accent2) 15%, transparent);
}

/* ── Parrainage ── */
body[data-theme="onepiece"] .parr-sheet {
    background: var(--surface);
    border-top: 3px solid var(--accent2);
}

body[data-theme="onepiece"] .parr-sheet-title,
body[data-theme="onepiece"] .parr-stats-title,
body[data-theme="onepiece"] .parr-rewards-title,
body[data-theme="onepiece"] .parr-how-title,
body[data-theme="onepiece"] .parr-intro-title {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.7rem;
    color: var(--accent);
    text-shadow: 2px 2px 0 var(--accent2);
    letter-spacing: 0;
}

body[data-theme="onepiece"] .parr-code-card,
body[data-theme="onepiece"] .parr-stats-card,
body[data-theme="onepiece"] .parr-rewards-card,
body[data-theme="onepiece"] .parr-how,
body[data-theme="onepiece"] .parr-intro-card {
    border-radius: 0;
    border: 2px solid #1a0a0a;
    box-shadow: 0 0 0 2px var(--accent2), 0 4px 0 2px #1a0a0a;
    background: var(--card-bg, var(--surface));
}

body[data-theme="onepiece"] .parr-code-value {
    font-family: 'Press Start 2P', monospace;
    color: var(--accent);
    font-size: 0.9rem;
}

body[data-theme="onepiece"] .parr-progress-fill {
    background: var(--accent2);
    border-radius: 0;
}

/* ── Page fond logo ── */
body[data-theme="onepiece"] .page-bg-logo {
    opacity: 0.06;
}

/* ── Scrollbar pixel ── */
body[data-theme="onepiece"] ::-webkit-scrollbar-thumb {
    background: var(--accent2);
    border-radius: 0;
    box-shadow: 0 0 0 2px #1a0a0a;
}

body[data-theme="onepiece"] ::-webkit-scrollbar-track {
    background: var(--surface2);
}

/* ── HERO PRODUIT (affichage héros, façon onepiece-shop.html) ── */
.op-hero {
    max-width: 1300px;
    margin: 0 auto 18px;
    padding: 0 16px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 22px;
    position: relative;
}

.op-hero-media {
    flex: 0 0 240px;
    width: 240px;
    height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin: 0 auto;
}

.op-hero-media img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    position: relative;
    z-index: 2;
    border-radius: 0;
    box-shadow: 0 0 0 4px #c0392b, 0 0 0 8px #1a0a0a;
    animation: opHeroIdle 3.5s ease-in-out infinite;
    background: #0a1a35;
}

@keyframes opHeroIdle {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.op-hero-glow {
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    height: 26px;
    background: radial-gradient(ellipse, rgba(255,208,96,0.45), transparent 70%);
    border-radius: 50%;
    animation: opGlowPulse 3.5s ease-in-out infinite;
    z-index: 1;
}

@keyframes opGlowPulse {
    0%, 100% { opacity: .7; }
    50% { opacity: .3; }
}

.op-hero-panel {
    flex: 1 1 280px;
    min-width: 240px;
    background: rgba(6,15,37,0.4);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 3px solid #1a0a1a;
    box-shadow: 0 0 0 3px #c0392b, 0 5px 0 3px #1a0a0a;
    padding: 16px 18px;
}

.op-hero-cat {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.5rem;
    color: #7abaf0;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

.op-hero-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: #eaf2ff;
    margin-bottom: 4px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.85);
}

.op-hero-farm {
    font-size: 0.85rem;
    color: #7abaf0;
    margin-bottom: 8px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

.op-hero-desc {
    font-size: 0.9rem;
    color: rgba(234,242,255,0.9);
    line-height: 1.45;
    margin-bottom: 10px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

.op-hero-rating {
    color: #ffd060;
    font-size: 0.85rem;
    margin-bottom: 8px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

.op-hero-price {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.85rem;
    color: #ffd060;
    text-shadow: 2px 2px 0 #8b1a1a;
    margin-bottom: 14px;
}

.op-hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.op-hero-actions .op-btn {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.7rem;
    color: #fff;
    border: none;
    padding: 12px 20px;
    cursor: pointer;
    letter-spacing: 0.5px;
    text-shadow: 1px 1px 0 #6a1010;
    transition: transform .08s;
}

.op-hero-actions .op-btn-buy {
    background: #1a7a1a;
    box-shadow: 0 0 0 3px #2a1a1a, 0 5px 0 3px #1a0a0a;
}

.op-hero-actions .op-btn:hover { transform: translateY(-2px); filter: brightness(1.1); }
.op-hero-actions .op-btn:active { transform: translateY(3px); }

/* ── CARROUSEL DE SÉLECTION (remplace la grille) ── */
body[data-theme="onepiece"] .products-section-heading {
    display: none;
}

body[data-theme="onepiece"] .products-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 4px;
    max-width: 100%;
    margin: 0;
    padding: 10px 10px 26px;
    scrollbar-width: none;
    background: linear-gradient(180deg, rgba(0,0,0,0.02) 0%, rgba(0,0,0,0.2) 100%);
}

body[data-theme="onepiece"] .products-grid::-webkit-scrollbar {
    display: none;
}

body[data-theme="onepiece"] .product-card {
    flex: 0 0 82px;
    width: 82px;
    height: 112px;
    filter: brightness(.55) saturate(.6);
    transition: filter .2s, transform .2s;
}

body[data-theme="onepiece"] .product-card:hover {
    filter: brightness(.8) saturate(.85);
    transform: none;
}

body[data-theme="onepiece"] .product-card.op-active {
    filter: brightness(1) saturate(1);
    box-shadow: 0 0 0 3px #ffd060, 0 0 0 6px #1a0a0a;
}

body[data-theme="onepiece"] .product-thumbnail-wrap {
    height: 100%;
}

body[data-theme="onepiece"] .product-thumbnail,
body[data-theme="onepiece"] .product-thumbnail-placeholder {
    height: 100%;
    border-bottom: none;
}

body[data-theme="onepiece"] .product-quickadd {
    display: none;
}

body[data-theme="onepiece"] .product-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 3px 2px;
    background: linear-gradient(180deg, transparent 0%, rgba(6,15,37,0.55) 60%, rgba(6,15,37,0.55) 100%);
}

body[data-theme="onepiece"] .product-badges,
body[data-theme="onepiece"] .product-rating,
body[data-theme="onepiece"] .product-farm {
    display: none;
}

body[data-theme="onepiece"] .product-name {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.42rem;
    line-height: 1.4;
    text-align: center;
    color: rgba(255,255,255,0.85);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.9);
    -webkit-line-clamp: 2;
}

body[data-theme="onepiece"] .product-card.op-active .product-name {
    color: #ffd060;
}

@media (max-width: 480px) {
    .op-hero-media { flex-basis: 180px; width: 180px; height: 180px; }
}

/* ── BOUTON MUSIQUE (pixel) ── */
.op-music-btn {
    position: fixed;
    right: 12px;
    bottom: calc(64px + env(safe-area-inset-bottom, 0px) + 14px);
    z-index: 1500;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    background: #c0392b;
    color: #fff;
    border: none;
    box-shadow: 0 0 0 3px #1a0a0a, 0 4px 0 3px #0a0505;
    cursor: pointer;
    transition: transform .08s;
}

.op-music-btn:active {
    transform: translateY(3px);
    box-shadow: 0 0 0 3px #1a0a0a, 0 1px 0 3px #0a0505;
}

.op-music-btn.op-muted {
    background: #4a1a1a;
    opacity: 0.75;
}

/* Variante inline (header page Infos) : pas de position fixe */
.op-music-btn-inline {
    position: static;
    width: 38px;
    height: 38px;
    font-size: 1rem;
}

/* ── MODALE MUSIQUE & SONS ── */
.op-music-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2400;
    background: rgba(6,15,37,0.88);
    align-items: flex-end;
    justify-content: center;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.op-music-overlay.active {
    display: flex;
}

.op-music-sheet {
    width: 100%;
    max-width: 480px;
    max-height: 88vh;
    overflow-y: auto;
    background: #0a1a35;
    border: 3px solid #1a0a1a;
    box-shadow: 0 0 0 3px #c0392b;
    animation: slideUp 0.3s cubic-bezier(0.32, 0.72, 0, 1);
}

@media (min-width: 640px) {
    .op-music-overlay { align-items: center; padding: 20px; }
    .op-music-sheet { border-radius: 0; }
}

.op-music-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: calc(18px + env(safe-area-inset-top, 0px) + 46px) 18px 16px;
    border-bottom: 3px solid #1a0a1a;
    position: sticky;
    top: 0;
    background: #0a1a35;
    z-index: 2;
}

.op-music-title {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.7rem;
    color: #ffd060;
    text-shadow: 2px 2px 0 #8b1a1a;
}

.op-music-close {
    background: #c0392b;
    color: #fff;
    border: none;
    width: 34px;
    height: 34px;
    font-size: 0.9rem;
    cursor: pointer;
    box-shadow: 0 0 0 2px #1a0a0a;
    flex-shrink: 0;
}

.op-music-close:active { transform: translateY(2px); }

.op-music-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.op-music-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    font-size: 0.9rem;
    color: #eaf2ff;
    font-weight: 600;
}

.op-music-volume-row input[type="range"] {
    flex: 1;
    max-width: 220px;
    accent-color: #ffd060;
    height: 20px;
}

.op-music-section-label {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.5rem;
    color: #7abaf0;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

.op-music-tracklist {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.op-track-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: #122a4d;
    border: 2px solid #1a0a1a;
    padding: 10px 12px;
}

.op-track-item.op-track-active {
    border-color: #ffd060;
    box-shadow: 0 0 0 2px #ffd060;
}

.op-track-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: #eaf2ff;
}

.op-track-time {
    font-size: 0.72rem;
    color: #7abaf0;
    margin-top: 2px;
}

.op-track-play {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background: #c0392b;
    color: #fff;
    border: none;
    font-size: 0.9rem;
    cursor: pointer;
    box-shadow: 0 0 0 2px #1a0a0a;
}

.op-track-item.op-track-active .op-track-play {
    background: #1a7a1a;
}

.op-track-play:active { transform: translateY(2px); }

.op-music-sfx-row {
    border-top: 2px solid #1a0a1a;
    padding-top: 14px;
    margin-top: 4px;
}

/* ── Switch pixel (on/off) ── */
.op-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
    flex-shrink: 0;
    cursor: pointer;
}

.op-switch input {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    cursor: pointer;
    z-index: 1;
}

.op-switch-track {
    position: absolute;
    inset: 0;
    background: #4a1a1a;
    border: 2px solid #1a0a1a;
    transition: background .15s;
}

.op-switch-track::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    background: #eaf2ff;
    transition: transform .15s;
}

.op-switch input:checked + .op-switch-track {
    background: #1a7a1a;
}

.op-switch input:checked + .op-switch-track::after {
    transform: translateX(22px);
    background: #ffd060;
}

/* ── Écran de démarrage pixel (index.php uniquement) ── */
#op-start-screen {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    background:
        radial-gradient(2px 2px at 12% 15%, #fff, transparent),
        radial-gradient(2px 2px at 30% 25%, #fff, transparent),
        radial-gradient(1.5px 1.5px at 55% 10%, #fff, transparent),
        radial-gradient(2px 2px at 75% 20%, #fff, transparent),
        radial-gradient(1.5px 1.5px at 88% 30%, #fff, transparent),
        linear-gradient(180deg, #060f25 0%, #0a1a35 35%, #10304f 60%, #061224 100%);
    image-rendering: pixelated;
    transition: opacity .5s ease, visibility .5s;
}

#op-start-screen.op-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

#op-start-screen .op-title {
    font-family: 'Press Start 2P', monospace;
    font-size: clamp(16px, 5.5vw, 28px);
    color: #ffd060;
    text-align: center;
    line-height: 1.6;
    text-shadow: 3px 3px 0 #8b1a1a, 6px 6px 0 rgba(0,0,0,0.5);
    animation: opTitleFloat 2s ease-in-out infinite;
    padding: 0 16px;
}

#op-start-screen .op-title .op-sub {
    display: block;
    font-size: clamp(8px, 2.2vw, 12px);
    color: #7abaf0;
    margin-top: 14px;
}

@keyframes opTitleFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

#op-start-screen .op-menu {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
}

#op-start-screen .op-btn {
    font-family: 'Press Start 2P', monospace;
    font-size: clamp(11px, 3vw, 15px);
    color: #fff;
    background: #c0392b;
    border: none;
    padding: 14px 30px;
    min-width: 220px;
    text-align: center;
    cursor: pointer;
    letter-spacing: 1px;
    text-shadow: 2px 2px 0 #6a1010;
    box-shadow: 0 0 0 4px #2a1a1a, 0 6px 0 4px #1a0a0a;
    transition: transform .08s;
}

#op-start-screen .op-btn:hover {
    background: #d04a3a;
    transform: translateY(-2px);
}

#op-start-screen .op-btn:active {
    transform: translateY(4px);
    box-shadow: 0 0 0 4px #2a1a1a, 0 2px 0 4px #1a0a0a;
}

#op-start-screen .op-hint {
    position: absolute;
    bottom: 24px;
    font-family: 'Press Start 2P', monospace;
    font-size: 9px;
    color: #7abaf0;
    animation: opBlink 1.2s steps(2) infinite;
}

@keyframes opBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}


/* ══════════════════════════════════════════════════════════════════════════
   GTA THEME — Los Santos Night
   Mobile-first · Glassmorphism · Gyrophares · Wanted stars · Full immersion
   ══════════════════════════════════════════════════════════════════════════ */

/* ── Background: nuit profonde + halos néon fixes ── */
body[data-theme="gta"] {
    font-family: 'Rajdhani', 'Segoe UI', sans-serif;
    background-color: var(--bg);
    background-image:
        radial-gradient(ellipse 90% 60% at 18% 15%,  color-mix(in srgb, var(--accent)  18%, transparent) 0%, transparent 65%),
        radial-gradient(ellipse 75% 55% at 82% 80%,  color-mix(in srgb, var(--accent2) 15%, transparent) 0%, transparent 65%),
        radial-gradient(ellipse 55% 45% at 50% 110%, color-mix(in srgb, #6600ff        10%, transparent) 0%, transparent 60%);
    background-attachment: fixed;
}

/* ════════════════════════════════════════════
   GYROPHARES — bandes latérales clignotantes
   ════════════════════════════════════════════ */
body[data-theme="gta"]::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 3px;
    height: 100dvh;
    background: #1a44ff;
    border-radius: 0 2px 2px 0;
    /* z-index: 9998; */
    pointer-events: none;
    animation: gta-siren-blue 2s cubic-bezier(.4, 0, .6, 1) infinite;
}

body[data-theme="gta"]::after {
    content: '';
    position: fixed;
    top: 0;
    right: 0;
    width: 3px;
    height: 100dvh;
    background: #9d0017;
    border-radius: 2px 0 0 2px;
    /* z-index: 9998; */
    pointer-events: none;
    animation: gta-siren-red 2s cubic-bezier(.4, 0, .6, 1) infinite;
    animation-delay: 1s;
}

@keyframes gta-siren-blue {
    0%, 45%, 100% { opacity: 0; box-shadow: none; }
    8%, 37%       {
        opacity: 1;
        box-shadow: 0 0 22px 8px rgba(26,68,255,.55), 0 0 70px 20px rgba(26,68,255,.18);
    }
}
@keyframes gta-siren-red {
    0%, 45%, 100% { opacity: 0; box-shadow: none; }
    8%, 37%       {
        opacity: 1;
        box-shadow: 0 0 22px 8px rgba(255,17,51,.55), 0 0 70px 20px rgba(255,17,51,.18);
    }
}

@media (min-width: 640px) {
    body[data-theme="gta"]::before { width: 4px; }
    body[data-theme="gta"]::after  { width: 4px; }
}

/* ════════════════════════════════════════════
   HEADER — verre dépoli blindé
   ════════════════════════════════════════════ */
body[data-theme="gta"] header {
    background: color-mix(in srgb, var(--surface) 52%, transparent);
    border-bottom: 1px solid color-mix(in srgb, var(--accent) 20%, transparent);
    backdrop-filter: blur(32px) saturate(200%);
    -webkit-backdrop-filter: blur(32px) saturate(200%);
    box-shadow:
        0 1px 0 color-mix(in srgb, #fff 7%, transparent),
        0 10px 50px rgba(0,0,0,.5);
}

/* ── Logo image: anneau pulsé ── */
body[data-theme="gta"] .site-logo-img {
    display: none;
    border-radius: 50%;
    border: 1.5px solid color-mix(in srgb, var(--accent) 55%, transparent);
    animation: gta-logo-pulse 3s ease-in-out infinite;
}

@keyframes gta-logo-pulse {
    0%,100% { box-shadow: 0 0 10px color-mix(in srgb,var(--accent) 35%,transparent), 0 0 26px color-mix(in srgb,var(--accent) 12%,transparent); }
    50%      { box-shadow: 0 0 20px color-mix(in srgb,var(--accent) 65%,transparent), 0 0 50px color-mix(in srgb,var(--accent) 20%,transparent), 0 0 80px color-mix(in srgb,var(--accent2) 10%,transparent); }
}

/* ── Logo text: dégradé flash ── */
body[data-theme="gta"] .site-logo-text {
    background: linear-gradient(110deg, var(--accent) 0%, var(--accent2) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
    letter-spacing: -0.5px;
    filter: drop-shadow(0 0 12px color-mix(in srgb, var(--accent) 45%, transparent));
}
body[data-theme="gta"] .site-logo-text span {
    background: none;
    -webkit-text-fill-color: var(--text);
    filter: none;
}

/* ── Site time ── */
body[data-theme="gta"] .site-time {
    background: color-mix(in srgb, var(--accent) 10%, transparent);
    border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
    backdrop-filter: blur(14px);
    color: var(--accent);
    font-weight: 700;
}

/* ── Nav links ── */
body[data-theme="gta"] .site-nav-link { font-weight: 600; transition: all .2s; }
body[data-theme="gta"] .site-nav-link:hover {
    color: var(--accent);
    border-color: color-mix(in srgb, var(--accent) 35%, transparent);
    background: color-mix(in srgb, var(--accent) 8%, transparent);
}
body[data-theme="gta"] .site-nav-link.active {
    color: var(--accent);
    background: color-mix(in srgb, var(--accent) 12%, transparent);
    border-color: color-mix(in srgb, var(--accent) 40%, transparent);
}

/* ── Theme toggle ── */
body[data-theme="gta"] .theme-toggle {
    background: color-mix(in srgb, var(--surface2) 50%, transparent);
    backdrop-filter: blur(14px);
    border-color: color-mix(in srgb, #fff 10%, transparent);
}
body[data-theme="gta"] .theme-toggle:hover {
    border-color: color-mix(in srgb, var(--accent) 50%, transparent);
    color: var(--accent);
}

/* ════════════════════════════════════════════
   HERO — loading screen + wanted stars
   ════════════════════════════════════════════ */
body[data-theme="gta"] .hero {
    position: relative;
    padding: 70px 20px 80px;
    overflow: hidden;
}

/* Halo de lumière derrière le titre */
body[data-theme="gta"] .hero::before {
    /* content: ''; */
    position: absolute;
    top: -60px; left: 50%;
    transform: translateX(-50%);
    width: min(700px, 130%);
    height: 420px;
    background: radial-gradient(ellipse at center,
        color-mix(in srgb, var(--accent)  18%, transparent) 0%,
        color-mix(in srgb, var(--accent2) 10%, transparent) 38%,
        transparent 68%);
    pointer-events: none;
    animation: gta-hero-halo 4s ease-in-out infinite;
}
@keyframes gta-hero-halo {
    0%,100% { opacity:.75; transform: translateX(-50%) scale(1);    }
    50%      { opacity:1;   transform: translateX(-50%) scale(1.09); }
}

/* ★ Étoiles GTA V — wanted level ★ */
body[data-theme="gta"] .hero::after {
    content: '★  ★  ★  ★  ★';
    position: absolute;
    bottom: 24px; left: 50%;
    transform: translateX(-50%);
    font-size: clamp(.9rem, 2.5vw, 1.15rem);
    letter-spacing: 6px;
    white-space: nowrap;
    color: var(--price-color);
    pointer-events: none;
    animation: gta-stars 2.8s ease-in-out infinite;
}
@keyframes gta-stars {
    0%,100% {
        opacity: .55;
        text-shadow: 0 0 8px  color-mix(in srgb, var(--price-color) 40%, transparent);
    }
    50% {
        opacity: 1;
        text-shadow:
            0 0 16px color-mix(in srgb, var(--price-color) 90%, transparent),
            0 0 46px color-mix(in srgb, var(--price-color) 40%, transparent),
            0 0 80px color-mix(in srgb, var(--price-color) 15%, transparent);
    }
}

body[data-theme="gta"] .hero h1 {
    font-weight: 900;
    letter-spacing: -1.5px;
    line-height: 1.1;
}
body[data-theme="gta"] .hero h1 em {
    font-style: normal;
    background: linear-gradient(110deg, var(--accent) 0%, var(--accent2) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 22px color-mix(in srgb, var(--accent) 55%, transparent));
}
body[data-theme="gta"] .hero p {
    opacity: .62;
    letter-spacing: .3px;
}

/* ════════════════════════════════════════════
   FILTRES & SÉLECTS
   ════════════════════════════════════════════ */
body[data-theme="gta"] .filter-pill {
    background: color-mix(in srgb, var(--surface) 42%, transparent);
    backdrop-filter: blur(12px);
    border-color: color-mix(in srgb, #fff 8%, transparent);
    transition: all .22s ease;
}
body[data-theme="gta"] .filter-pill:hover {
    background: color-mix(in srgb, var(--accent) 10%, transparent);
    border-color: color-mix(in srgb, var(--accent) 38%, transparent);
    color: var(--accent);
}
body[data-theme="gta"] .filter-pill.active {
    background: linear-gradient(110deg, var(--accent), color-mix(in srgb, var(--accent2) 55%, var(--accent)));
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 22px color-mix(in srgb, var(--accent) 50%, transparent);
    font-weight: 700;
}

body[data-theme="gta"] .filter-select {
    background-color: color-mix(in srgb, var(--surface) 48%, transparent);
    backdrop-filter: blur(12px);
    border-color: color-mix(in srgb, #fff 10%, transparent);
}
body[data-theme="gta"] .filter-select:focus {
    border-color: color-mix(in srgb, var(--accent) 55%, transparent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 14%, transparent);
}

/* ════════════════════════════════════════════
   CARTES PRODUITS — glassmorphisme + shimmer
   ════════════════════════════════════════════ */
body[data-theme="gta"] .product-card {
    background: color-mix(in srgb, var(--card-bg) 52%, transparent) !important;
    border: 1px solid color-mix(in srgb, #fff 7%, transparent);
    border-radius: 22px;
    backdrop-filter: blur(24px) saturate(170%);
    -webkit-backdrop-filter: blur(24px) saturate(170%);
    box-shadow:
        0 4px 30px rgba(0,0,0,.34),
        inset 0 1px 0 color-mix(in srgb, #fff 9%, transparent),
        inset 0 -1px 0 rgba(0,0,0,.12);
    transition: transform .28s cubic-bezier(.34,1.56,.64,1), box-shadow .25s, border-color .25s;
    overflow: hidden;
    position: relative;
}

/* Shimmer au survol */
body[data-theme="gta"] .product-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg,
        transparent 30%,
        color-mix(in srgb, #fff 5%, transparent) 50%,
        transparent 70%);
    transform: translateX(-100%);
    transition: transform .55s ease;
    pointer-events: none;
    z-index: 2;
}
body[data-theme="gta"] .product-card:hover::before { transform: translateX(100%); }

body[data-theme="gta"] .product-card:hover {
    transform: translateY(-8px);
    border-color: color-mix(in srgb, var(--accent) 42%, transparent);
    box-shadow:
        0 20px 56px rgba(0,0,0,.48),
        0 0 40px color-mix(in srgb, var(--accent) 17%, transparent),
        inset 0 1px 0 color-mix(in srgb, var(--accent) 14%, transparent),
        inset 0 -1px 0 rgba(0,0,0,.12);
}

/* Pack card */
body[data-theme="gta"] .product-card-pack {
    background: color-mix(in srgb, var(--card-bg) 42%, transparent) !important;
    border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
    border-radius: 22px;
}
body[data-theme="gta"] .product-card-pack:hover {
    border-color: color-mix(in srgb, var(--accent) 55%, transparent);
}

/* Pack badge pulsé */
body[data-theme="gta"] .badge-pack-label {
    background: linear-gradient(110deg, var(--accent), var(--accent2));
    color: #fff;
    border-radius: 20px;
    font-weight: 700;
    animation: gta-badge-pulse 2.5s ease-in-out infinite;
}
@keyframes gta-badge-pulse {
    0%,100% { box-shadow: 0 0 6px  color-mix(in srgb, var(--accent) 40%, transparent); }
    50%      { box-shadow: 0 0 18px color-mix(in srgb, var(--accent) 70%, transparent), 0 0 32px color-mix(in srgb, var(--accent2) 28%, transparent); }
}

/* Placeholder avec étoile tournante */
body[data-theme="gta"] .product-thumbnail-placeholder {
    background: linear-gradient(135deg,
        color-mix(in srgb, var(--accent)  16%, var(--surface2)),
        color-mix(in srgb, var(--accent2) 10%, var(--surface)));
    font-size: 0;
    position: relative;
}
body[data-theme="gta"] .product-thumbnail-placeholder::after {
    content: '★';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) rotate(0deg);
    font-size: 2.8rem;
    color: color-mix(in srgb, var(--price-color) 35%, transparent);
    pointer-events: none;
    animation: gta-star-spin 9s linear infinite;
}
@keyframes gta-star-spin {
    0%   { transform: translate(-50%,-50%) rotate(0deg)   scale(1);    opacity:.5; }
    50%  { transform: translate(-50%,-50%) rotate(180deg) scale(1.18); opacity:.8; }
    100% { transform: translate(-50%,-50%) rotate(360deg) scale(1);    opacity:.5; }
}

/* Badges */
body[data-theme="gta"] .badge-price {
    background: color-mix(in srgb, var(--price-color) 12%, transparent);
    color: var(--price-color);
    border: 1px solid color-mix(in srgb, var(--price-color) 30%, transparent);
    font-weight: 800;
    text-shadow: 0 0 8px color-mix(in srgb, var(--price-color) 40%, transparent);
}
body[data-theme="gta"] .badge-category {
    background: color-mix(in srgb, var(--surface2) 48%, transparent);
    backdrop-filter: blur(8px);
    border-color: color-mix(in srgb, #fff 8%, transparent);
}
body[data-theme="gta"] .badge-promo-overlay {
    background: linear-gradient(110deg, var(--accent), color-mix(in srgb, var(--accent2) 50%, var(--accent)));
    color: #fff;
    border-radius: 20px;
    font-weight: 700;
    animation: gta-promo-pulse 2s ease-in-out infinite;
}
@keyframes gta-promo-pulse {
    0%,100% { box-shadow: 0 2px 10px color-mix(in srgb, var(--accent) 40%, transparent); }
    50%      { box-shadow: 0 2px 22px color-mix(in srgb, var(--accent) 72%, transparent), 0 0 34px color-mix(in srgb, var(--accent2) 28%, transparent); }
}

body[data-theme="gta"] .product-name { font-weight: 700; letter-spacing: -.2px; }
body[data-theme="gta"] .product-farm { color: color-mix(in srgb, var(--accent2) 80%, var(--text-muted)); }

/* ════════════════════════════════════════════
   MODAL — panneau de verre cinématique
   ════════════════════════════════════════════ */
body[data-theme="gta"] .modal-overlay {
    background: color-mix(in srgb, var(--bg) 62%, transparent);
    backdrop-filter: blur(26px);
    -webkit-backdrop-filter: blur(26px);
}
body[data-theme="gta"] .modal {
    background: color-mix(in srgb, var(--surface) 72%, transparent) !important;
    backdrop-filter: blur(40px) saturate(190%);
    -webkit-backdrop-filter: blur(40px) saturate(190%);
    border: 1px solid color-mix(in srgb, #fff 10%, transparent);
    border-top: 1px solid color-mix(in srgb, var(--accent) 38%, transparent);
    border-radius: 28px 28px 0 0;
    box-shadow:
        0 -1px 0 color-mix(in srgb, var(--accent) 22%, transparent),
        0 36px 90px rgba(0,0,0,.78),
        inset 0 1px 0 color-mix(in srgb, #fff 9%, transparent);
}
@media (min-width: 640px) {
    body[data-theme="gta"] .modal {
        border-radius: 28px;
        border-top: 1px solid color-mix(in srgb, var(--accent) 32%, transparent);
        box-shadow:
            0 0 0 1px color-mix(in srgb, var(--accent) 12%, transparent),
            0 44px 110px rgba(0,0,0,.85),
            0 0 80px color-mix(in srgb, var(--accent) 8%, transparent),
            inset 0 1px 0 color-mix(in srgb, #fff 9%, transparent);
    }
}
body[data-theme="gta"] .modal-close {
    background: color-mix(in srgb, var(--surface2) 52%, transparent);
    backdrop-filter: blur(14px);
    border-color: color-mix(in srgb, #fff 10%, transparent);
}
body[data-theme="gta"] .modal-close:hover {
    border-color: color-mix(in srgb, var(--accent) 55%, transparent);
    color: var(--accent);
    background: color-mix(in srgb, var(--accent) 10%, transparent);
}

/* ── Prix ── */
body[data-theme="gta"] .price-item {
    background: color-mix(in srgb, var(--surface2) 42%, transparent);
    border: 1px solid color-mix(in srgb, #fff 8%, transparent);
    border-radius: 16px;
    backdrop-filter: blur(14px);
    transition: all .2s ease;
}
body[data-theme="gta"] .price-item:hover {
    border-color: color-mix(in srgb, var(--price-color) 50%, transparent);
    background: color-mix(in srgb, var(--price-color) 8%, transparent);
    box-shadow: 0 6px 22px color-mix(in srgb, var(--price-color) 22%, transparent);
    transform: scale(1.04);
}
body[data-theme="gta"] .price-qty {
    font-weight: 800;
    color: var(--price-color);
    text-shadow: 0 0 8px color-mix(in srgb, var(--price-color) 38%, transparent);
}

/* ════════════════════════════════════════════
   BOUTONS — gradient + shimmer animé
   ════════════════════════════════════════════ */
body[data-theme="gta"] .btn-telegram,
body[data-theme="gta"] .btn-modal-link {
    background: linear-gradient(110deg, var(--accent) 0%, color-mix(in srgb, var(--accent2) 48%, var(--accent)) 100%);
    border-radius: 16px;
    font-weight: 700;
    color: #fff;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 6px 30px color-mix(in srgb, var(--accent) 44%, transparent),
        inset 0 1px 0 rgba(255,255,255,.2);
    transition: all .22s ease;
}
body[data-theme="gta"] .btn-telegram::before,
body[data-theme="gta"] .btn-modal-link::before {
    content: '';
    position: absolute;
    top: 0; left: -110%;
    width: 65%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.18), transparent);
    animation: gta-btn-shimmer 2.8s ease-in-out infinite;
    pointer-events: none;
}
@keyframes gta-btn-shimmer {
    0%       { left: -110%; }
    55%,100% { left: 150%;  }
}
body[data-theme="gta"] .btn-telegram:hover,
body[data-theme="gta"] .btn-modal-link:hover {
    opacity: 1;
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow:
        0 12px 40px color-mix(in srgb, var(--accent) 62%, transparent),
        inset 0 1px 0 rgba(255,255,255,.25);
}

/* ════════════════════════════════════════════
   TICKER — gradient sirène animé
   ════════════════════════════════════════════ */
body[data-theme="gta"] .ticker-wrap {
    background: linear-gradient(90deg,
        var(--accent) 0%,
        color-mix(in srgb, var(--accent2) 58%, var(--accent)) 50%,
        var(--accent) 100%);
    background-size: 200% 100%;
    animation: gta-ticker-shift 5s ease infinite;
    color: #fff;
    position: relative;
}
/* Mini gyrophares sur le ticker */
body[data-theme="gta"] .ticker-wrap::before,
body[data-theme="gta"] .ticker-wrap::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    width: 3px;
    pointer-events: none;
}
body[data-theme="gta"] .ticker-wrap::before {
    left: 0;
    background: #1a44ff;
    animation: gta-siren-blue 2s ease-in-out infinite;
}
body[data-theme="gta"] .ticker-wrap::after {
    right: 0;
    background: #ff1133;
    animation: gta-siren-red 2s ease-in-out infinite;
    animation-delay: 1s;
}
@keyframes gta-ticker-shift {
    0%,100% { background-position: 0% 50%;   }
    50%      { background-position: 100% 50%; }
}
body[data-theme="gta"] .ticker-content { font-weight: 700; letter-spacing: 1px; }

/* ════════════════════════════════════════════
   PAGE BG + INFO PAGE
   ════════════════════════════════════════════ */
body[data-theme="gta"] .page-bg-logo {
    opacity: .04;
    mix-blend-mode: luminosity;
}
body[data-theme="gta"] .info-bg {
    filter: blur(18px) brightness(.16);
}
body[data-theme="gta"] .info-card {
    border-radius: 22px;
    border: 1px solid color-mix(in srgb, #fff 8%, transparent);
    border-top: 2px solid var(--card-color);
    backdrop-filter: blur(24px) saturate(170%);
    -webkit-backdrop-filter: blur(24px) saturate(170%);
    box-shadow: 0 8px 38px rgba(0,0,0,.32), inset 0 1px 0 color-mix(in srgb, #fff 8%, transparent);
}
body[data-mode="dark"][data-theme="gta"] .info-card {
    background: color-mix(in srgb, var(--surface) 52%, transparent);
}
body[data-theme="gta"] .info-title {
    font-weight: 900;
    letter-spacing: -1px;
    background: linear-gradient(110deg, var(--heading) 0%, color-mix(in srgb, var(--accent) 60%, var(--heading)) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
body[data-theme="gta"] .info-tg-btn {
    background: linear-gradient(110deg, var(--accent), color-mix(in srgb, var(--accent2) 48%, var(--accent)));
    border-radius: 16px;
    font-weight: 700;
    color: #fff;
    box-shadow: 0 6px 30px color-mix(in srgb, var(--accent) 44%, transparent);
}
body[data-theme="gta"] .info-card-btn {
    border-radius: 12px;
    font-weight: 700;
}

/* ════════════════════════════════════════════
   SCROLLBAR — néon dégradé
   ════════════════════════════════════════════ */
body[data-theme="gta"] ::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--accent), var(--accent2));
    border-radius: 4px;
}
body[data-theme="gta"] ::-webkit-scrollbar-track {
    background: color-mix(in srgb, var(--surface2) 58%, transparent);
}

/* ════════════════════════════════════════════════════════════════════════
   GTA — TYPOGRAPHIE & HUD (Bebas Neue + Rajdhani)
   S'applique PAR-DESSUS les règles précédentes du thème.
   ════════════════════════════════════════════════════════════════════════ */

/* ── Flash ambiant synchronisé avec les sirènes ── */
body[data-theme="gta"] {
    animation: gta-ambient 2s ease-in-out infinite;
}
@keyframes gta-ambient {
    0%,100% { box-shadow: none; }
    18%     { box-shadow: inset 0 0 140px rgba(26, 68,255,.05); }
    68%     { box-shadow: inset 0 0 140px rgba(255,17, 51,.05); }
}

/* ── HUD : étoiles wanted dans le header ── */
body[data-theme="gta"] header { position: relative; }
body[data-theme="gta"] header::after {
    content: '★  ★  ★  ★  ★';
    position: absolute;
    bottom: -16px; right: 22px;
    font-size: .48rem;
    letter-spacing: 5px;
    color: color-mix(in srgb, var(--price-color) 20%, transparent);
    pointer-events: none;
    white-space: nowrap;
    animation: gta-hud-stars 3.5s ease-in-out infinite;
}
@keyframes gta-hud-stars {
    0%,100% { color: color-mix(in srgb,var(--price-color) 15%,transparent); }
    50%     { color: color-mix(in srgb,var(--price-color) 38%,transparent);
               text-shadow: 0 0 8px color-mix(in srgb,var(--price-color) 28%,transparent); }
}

/* ── Logo text : Bebas Neue ── */
body[data-theme="gta"] .site-logo-text {
    font-family: 'Bebas Neue', Impact, 'Arial Narrow', sans-serif;
    font-size: 1.9rem;
    font-weight: 400;
    letter-spacing: 3px;
}

/* ── Site time : Rajdhani ── */
body[data-theme="gta"] .site-time {
    font-family: 'Rajdhani', 'Segoe UI', sans-serif;
    font-weight: 700;
    letter-spacing: 1.5px;
}
body[data-theme="gta"] .site-time .time-value {
    font-family: 'Rajdhani', monospace;
    font-weight: 700;
    letter-spacing: 2px;
}

/* ── Nav : Rajdhani uppercase ── */
body[data-theme="gta"] .site-nav-link {
    font-family: 'Rajdhani', 'Segoe UI', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: .78rem;
}

/* ── Hero h1 : Pricedown — taille raisonnable ── */
body[data-theme="gta"] .hero h1 {
    font-family: 'Pricedown', Impact, 'Arial Narrow', sans-serif;
    font-size: clamp(1.6rem, 4.5vw, 2.8rem);
    font-weight: 400;
    letter-spacing: 2px;
    line-height: 1.1;
}
body[data-theme="gta"] .hero h1 em {
    font-style: normal;
    display: inline;
}
body[data-theme="gta"] .hero p {
    font-family: 'Rajdhani', 'Segoe UI', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: clamp(.72rem, 2vw, .88rem);
    opacity: .6;
    margin-top: 14px;
}

/* ── Filtres : Rajdhani ── */
body[data-theme="gta"] .filter-label {
    font-family: 'Rajdhani', 'Segoe UI', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}
body[data-theme="gta"] .filter-pill {
    font-family: 'Rajdhani', 'Segoe UI', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: .72rem;
}
body[data-theme="gta"] .filter-select {
    font-family: 'Rajdhani', 'Segoe UI', sans-serif;
    font-weight: 600;
    letter-spacing: .5px;
}

/* ── Nom produit : Bebas Neue ── */
body[data-theme="gta"] .product-name {
    font-family: 'Bebas Neue', Impact, 'Arial Narrow', sans-serif;
    font-size: 1.08rem;
    font-weight: 400;
    letter-spacing: 1.5px;
    line-height: 1.15;
}

/* ── Farm / sous-titre ── */
body[data-theme="gta"] .product-farm {
    font-family: 'Rajdhani', 'Segoe UI', sans-serif;
    font-weight: 600;
    letter-spacing: .8px;
}

/* ── Badges ── */
body[data-theme="gta"] .badge {
    font-family: 'Rajdhani', 'Segoe UI', sans-serif;
    font-weight: 700;
    letter-spacing: .8px;
}
body[data-theme="gta"] .badge-pack-label {
    font-family: 'Bebas Neue', Impact, sans-serif;
    font-weight: 400;
    letter-spacing: 2px;
    font-size: .7rem;
}
body[data-theme="gta"] .badge-promo-overlay {
    font-family: 'Bebas Neue', Impact, sans-serif;
    font-weight: 400;
    letter-spacing: 1.5px;
    font-size: .7rem;
}

/* ── Modal titre : Bebas Neue — briefing de mission ── */
body[data-theme="gta"] .modal-title {
    font-family: 'Bebas Neue', Impact, 'Arial Narrow', sans-serif;
    font-size: clamp(2rem, 5vw, 2.8rem);
    font-weight: 400;
    letter-spacing: 2px;
    line-height: 1;
}
body[data-theme="gta"] .modal-description {
    font-family: 'Rajdhani', 'Segoe UI', sans-serif;
    font-size: .98rem;
    font-weight: 500;
    letter-spacing: .2px;
    line-height: 1.65;
}
body[data-theme="gta"] .prices-title {
    font-family: 'Rajdhani', 'Segoe UI', sans-serif;
    font-weight: 700;
    letter-spacing: 3px;
}
body[data-theme="gta"] .price-qty {
    font-family: 'Bebas Neue', Impact, sans-serif;
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 1px;
}
body[data-theme="gta"] .price-val {
    font-family: 'Rajdhani', 'Segoe UI', sans-serif;
    font-weight: 700;
    letter-spacing: .5px;
}

/* ── Boutons : Bebas Neue ── */
body[data-theme="gta"] .btn-telegram,
body[data-theme="gta"] .btn-modal-link {
    font-family: 'Bebas Neue', Impact, 'Arial Narrow', sans-serif;
    font-size: 1.05rem;
    font-weight: 400;
    letter-spacing: 3px;
}

/* ── Ticker : Rajdhani uppercase ── */
body[data-theme="gta"] .ticker-content {
    font-family: 'Rajdhani', 'Segoe UI', sans-serif;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    font-size: .82rem;
}

/* ── Info page ── */
body[data-theme="gta"] .info-title {
    font-family: 'Bebas Neue', Impact, 'Arial Narrow', sans-serif;
    font-size: clamp(2.4rem, 8vw, 4.5rem);
    font-weight: 400;
    letter-spacing: 5px;
    -webkit-text-fill-color: unset;
    background: linear-gradient(110deg, var(--heading) 0%, color-mix(in srgb, var(--accent) 60%, var(--heading)) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
body[data-theme="gta"] .info-card-title {
    font-family: 'Bebas Neue', Impact, sans-serif;
    font-weight: 400;
    letter-spacing: 2px;
    font-size: 1.2rem;
}
body[data-theme="gta"] .info-tg-btn {
    font-family: 'Bebas Neue', Impact, sans-serif;
    font-weight: 400;
    letter-spacing: 3px;
    font-size: 1.05rem;
}
body[data-theme="gta"] .info-card-btn {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}
body[data-theme="gta"] .info-back {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: .75rem;
}

/* ══════════════════════════════════════════════════════════════════════════════
   GTA V — NIVEAU MAXIMUM : PRICEDOWN + WEAPON WHEEL + HUD + GLITCH + SCANLINES
   ══════════════════════════════════════════════════════════════════════════════ */

/* ── @font-face : Pricedown Bl (fichier local assets/fonts/) ── */
@font-face {
    font-family: 'Pricedown';
    src: url('../fonts/pricedown.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* ── Pricedown remplace Bebas Neue sur tous les éléments GTA ── */
body[data-theme="gta"] .site-logo-text,
body[data-theme="gta"] .hero h1,
body[data-theme="gta"] .product-name,
body[data-theme="gta"] .modal-title,
body[data-theme="gta"] .badge-pack-label,
body[data-theme="gta"] .badge-promo-overlay,
body[data-theme="gta"] .price-qty,
body[data-theme="gta"] .btn-telegram,
body[data-theme="gta"] .btn-modal-link,
body[data-theme="gta"] .info-title,
body[data-theme="gta"] .info-card-title,
body[data-theme="gta"] .info-tg-btn,
body[data-theme="gta"] .gta-wanted {
    font-family: 'Pricedown', Impact, 'Arial Narrow', sans-serif;
}

/* ══════════════════════════════════════════════════════════
   HEADER — barre gradient + glitch logo
   ══════════════════════════════════════════════════════════ */

body[data-theme="gta"] header {
    position: relative;
    overflow: visible;
}
body[data-theme="gta"] header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg,
        var(--accent2), var(--accent), var(--price-color),
        var(--accent),  var(--accent2));
    background-size: 300% 100%;
    animation: gta-topbar 4s linear infinite;
    z-index: 10;
    pointer-events: none;
}
@keyframes gta-topbar {
    from { background-position:   0% 50%; }
    to   { background-position: 300% 50%; }
}

/* Glitch logo texte */
@keyframes gta-glitch {
    0%,87%,100% { clip-path: none; transform: none; }
    88%  { clip-path: inset(18% 0 58% 0); transform: translate(-4px, 0); }
    89%  { clip-path: inset(55% 0 12% 0); transform: translate( 4px, 0); }
    90%  { clip-path: none;               transform: none; }
    93%  { clip-path: inset(35% 0 28% 0); transform: translate(-2px, 0); }
    94%  { clip-path: none;               transform: none; }
}
body[data-theme="gta"] .site-logo-text {
    display: inline-block;
    animation: gta-glitch 8s ease-in-out infinite;
}

/* ══════════════════════════════════════════════════════════
   CARDS — scan-lines
   ══════════════════════════════════════════════════════════ */

body[data-theme="gta"] .product-card {
    background-image: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 3px,
        rgba(0,0,0,.036) 3px,
        rgba(0,0,0,.036) 4px
    );
}
/* ══════════════════════════════════════════════════════════
   HUD — MINIMAP + HEALTH/ARMOR + WANTED STARS
   ══════════════════════════════════════════════════════════ */

.gta-hud {
    position: fixed;
    top: 100px;
    right: 10px;
    bottom: auto;
    left: auto;
    display: flex;
    flex-direction: column-reverse;
    align-items: flex-end;
    gap: 8px;
    z-index: 9998;
    pointer-events: none;
    user-select: none;
}

/* Minimap circulaire */
.gta-minimap {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    border: 2px solid rgba(0,200,240,.42);
    box-shadow:
        0 0 0 1px rgba(0,0,0,.88),
        0 0 22px rgba(0,200,240,.25),
        inset 0 0 38px rgba(0,0,0,.80);
    background:
        radial-gradient(circle at 52% 50%, #ffd60a 0 4px, transparent 4px),
        linear-gradient(  0deg, rgba(255,255,255,.065) 1px, transparent 1px) 0 0 / 14px 14px,
        linear-gradient( 90deg, rgba(255,255,255,.065) 1px, transparent 1px) 0 0 / 14px 14px,
        linear-gradient(130deg, transparent 44%, rgba(255,255,255,.06) 44% 56%, transparent 56%),
        rgba(10,16,34,.85);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    animation: gta-minimap-glow 2s ease-in-out infinite;
}
.gta-minimap-blip {
    position: absolute;
    left: 50%; top: 48%;
    width: 7px; height: 7px;
    border-radius: 50%;
    background: #ffd60a;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px 4px rgba(255,214,10,.70);
    animation: gta-blip 1.2s ease-in-out infinite;
}
.gta-minimap-n {
    position: absolute;
    top: 5px; left: 50%;
    transform: translateX(-50%);
    font-family: 'Rajdhani', sans-serif;
    font-size: .5rem;
    font-weight: 700;
    color: rgba(255,255,255,.42);
    letter-spacing: 1px;
}
@keyframes gta-minimap-glow {
    0%,100% { box-shadow: 0 0 0 1px rgba(0,0,0,.88), 0 0 18px rgba(0,200,240,.20), inset 0 0 38px rgba(0,0,0,.80); }
    50%     { box-shadow: 0 0 0 1px rgba(0,0,0,.88), 0 0 32px rgba(0,200,240,.42), inset 0 0 38px rgba(0,0,0,.80); }
}
@keyframes gta-blip {
    0%,100% { box-shadow: 0 0  8px 3px rgba(255,214,10,.55); }
    50%     { box-shadow: 0 0 15px 6px rgba(255,214,10,.88); }
}

/* Barres santé + armure */
.gta-healthbars {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 130px;
    padding-bottom: 3px;
}
.gta-bar {
    height: 10px;
    border-radius: 2px;
    background: rgba(0,0,0,.55);
    border: 1px solid rgba(255,255,255,.12);
    overflow: hidden;
}
.gta-bar span {
    display: block;
    height: 100%;
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}
.gta-bar span::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
        transparent 0%, rgba(255,255,255,.30) 50%, transparent 100%);
    background-size: 200% 100%;
    animation: gta-bar-shine 2.5s ease-in-out infinite;
}
@keyframes gta-bar-shine {
    from { background-position: -200% 0; }
    to   { background-position:  200% 0; }
}
.gta-health span { width: 76%; background: linear-gradient(90deg, #922b21, #e74c3c, #ff6b6b); }
.gta-armor  span { width: 52%; background: linear-gradient(90deg, #154882, #2980b9, #74b9ff); }

/* Étoiles wanted — juste sous la navbar, haut-droite */
.gta-wanted {
    position: fixed;
    top: 64px;
    right: 10px;
    bottom: auto;
    left: auto;
    font-size: 1.4rem;
    letter-spacing: 9px;
    color: rgba(185,185,185,.72);
    text-shadow: 0 1px 3px rgba(0,0,0,.8);
    animation: gta-wanted-pulse 3s ease-in-out infinite;
    white-space: nowrap;
    z-index: 9999;
}
@keyframes gta-wanted-pulse {
    0%,100% { color: rgba(185,185,185,.65); }
    50%     { color: rgba(210,210,210,.90); }
}

/* ── Logo header — taille réduite ── */
body[data-theme="gta"] .site-logo-text {
    font-size: 1.4rem;
    letter-spacing: 2px;
}

/* ── Header::after mini-étoiles — masquées ── */
body[data-theme="gta"] header::after { display: none; }

/* ── Cacher le site-time navbar (remplacé par le HUD) ── */
body[data-theme="gta"] .site-time { display: none; }

/* ══════════════════════════════════════════════════════════
   MINIMAP — bas-gauche standalone (GTA SA style)
   ══════════════════════════════════════════════════════════ */
.gta-minimap {
    position: fixed;
    bottom: 18px;
    left: 8px;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    z-index: 9998;
    pointer-events: none;
    user-select: none;
    overflow: hidden;
    border: 2px solid rgba(0,200,240,.42);
    box-shadow:
        0 0 0 1px rgba(0,0,0,.88),
        0 0 22px rgba(0,200,240,.25),
        inset 0 0 38px rgba(0,0,0,.80);
    background:
        radial-gradient(circle at 52% 50%, #ffd60a 0 4px, transparent 4px),
        linear-gradient(  0deg, rgba(255,255,255,.065) 1px, transparent 1px) 0 0 / 14px 14px,
        linear-gradient( 90deg, rgba(255,255,255,.065) 1px, transparent 1px) 0 0 / 14px 14px,
        linear-gradient(130deg, transparent 44%, rgba(255,255,255,.06) 44% 56%, transparent 56%),
        rgba(10,16,34,.85);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    animation: gta-minimap-glow 2s ease-in-out infinite;
}
.gta-minimap-blip {
    position: absolute;
    left: 50%; top: 48%;
    width: 7px; height: 7px;
    border-radius: 50%;
    background: #ffd60a;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px 4px rgba(255,214,10,.70);
    animation: gta-blip 1.2s ease-in-out infinite;
}
.gta-minimap-n {
    position: absolute;
    top: 5px; left: 50%;
    transform: translateX(-50%);
    font-family: 'Rajdhani', sans-serif;
    font-size: .5rem;
    font-weight: 700;
    color: rgba(255,255,255,.42);
    letter-spacing: 1px;
}

/* ══════════════════════════════════════════════════════════
   HUD PANEL — haut-droite (GTA SA style : heure + $ + vie)
   ══════════════════════════════════════════════════════════ */
.gta-hud-tr {
    position: fixed;
    top: 64px;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
    z-index: 9999;
    pointer-events: none;
    user-select: none;
    padding: 8px 10px 8px 14px;
}

/* Heure */
.gta-hud-time {
    font-family: 'Pricedown', Impact, sans-serif;
    font-size: 1.6rem;
    color: #ffffff;
    letter-spacing: 3px;
    text-shadow:
        -1px -1px 0 #000, 1px -1px 0 #000,
        -1px  1px 0 #000, 1px  1px 0 #000,
        0 0 10px rgba(255,255,255,.3);
    line-height: 1;
}

/* Montant panier */
.gta-hud-money {
    font-family: 'Pricedown', Impact, sans-serif;
    font-size: 1.7rem;
    color: #00e000;
    letter-spacing: 1px;
    text-shadow:
        -1px -1px 0 #000, 1px -1px 0 #000,
        -1px  1px 0 #000, 1px  1px 0 #000,
        0 0 12px rgba(0,220,0,.5);
    line-height: 1;
}

/* Barre de vie */
.gta-hud-health {
    width: 130px;
    height: 9px;
    background: rgba(0,0,0,.5);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 1px;
    overflow: hidden;
    margin-top: 2px;
}
.gta-hud-health-fill {
    display: block;
    width: 76%;
    height: 100%;
    background: linear-gradient(90deg, #8b0000 0%, #e74c3c 55%, #ff6b6b 100%);
    position: relative;
    overflow: hidden;
}
.gta-hud-health-fill::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,.28) 50%, transparent 100%);
    background-size: 200% 100%;
    animation: gta-bar-shine 2.5s ease-in-out infinite;
}

/* Étoiles wanted — sous le panel HUD */
.gta-wanted {
    top: 148px;
    z-index: 9999;
}

/* ── Mobile compact (header fixe 52px, 1 ligne) ── */
@media (max-width: 640px) {
    .gta-hud-tr      { top: 68px; padding: 6px 8px 6px 12px; gap: 4px; }
    .gta-hud-time    { font-size: 1.25rem; letter-spacing: 2px; }
    .gta-hud-money   { font-size: 1.3rem; }
    .gta-hud-health  { width: 100px; height: 8px; }
    .gta-wanted      { top: 136px; right: 0; font-size: .95rem; letter-spacing: 5px; }
    .gta-minimap     { width: 76px; height: 76px; bottom: 12px; left: 6px; }
}

/* Hero::after — neutralise les 5 étoiles CSS du thème GTA */
body[data-theme="gta"] .hero::after {
    content: none;
}

/* ══════════════════════════════════════════
   REFONTE BOUTIQUE MOBILE — header/recherche/
   sections/cartes/bottom nav
══════════════════════════════════════════ */

/* ── Greeting au-dessus du hero ── */
.hero-greeting {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 6px;
}

/* ── Barre de recherche ── */
.search-bar-wrap {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 16px 14px;
}

.search-bar {
    position: relative;
    display: flex;
    align-items: center;
}

.search-bar-icon {
    position: absolute;
    left: 14px;
    color: var(--text-muted);
    pointer-events: none;
}

.search-bar-input {
    width: 100%;
    height: 44px;
    padding: 0 14px 0 40px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    font-size: 0.9rem;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.search-bar-input::placeholder {
    color: var(--text-muted);
}

.search-bar-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 15%, transparent);
}

/* ── Pilules catégories : défilement horizontal mobile-first ── */
.filter-pills {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 2px;
}

.filter-pills::-webkit-scrollbar {
    display: none;
}

.filter-pill {
    flex-shrink: 0;
    white-space: nowrap;
    transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s;
}

.filter-pill:active {
    transform: scale(0.94);
}

/* ── En-têtes de section (Packs / Produits) ── */
.products-section-heading {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    margin: 4px 0 -4px;
}

.products-section-heading:first-child {
    margin-top: 0;
}

.products-section-heading h2 {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 1.02rem;
    font-weight: 800;
    letter-spacing: -0.2px;
    color: var(--heading, var(--text));
}

/* ── Entrée en fondu échelonnée des cartes ── */
.product-card.card-in {
    animation: card-in-anim 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: calc(var(--stagger, 0) * 45ms);
}

@keyframes card-in-anim {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .product-card.card-in {
        animation: none;
    }
}

/* ── Bouton "+" rapide sur la vignette produit ── */
.product-quickadd {
    position: absolute;
    right: 8px;
    bottom: 8px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    background: var(--accent);
    color: var(--on-accent, #000);
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 14px color-mix(in srgb, var(--accent) 45%, transparent);
    transition: transform 0.15s, box-shadow 0.15s;
    z-index: 2;
    -webkit-tap-highlight-color: transparent;
}

.product-quickadd:hover {
    transform: scale(1.08);
}

.product-quickadd:active {
    transform: scale(0.9);
}

/* ── Bottom nav fixe ── */
.bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 200;
    display: flex;
    align-items: stretch;
    justify-content: space-around;
    background: color-mix(in srgb, var(--surface) 94%, transparent);
    border-top: 1px solid var(--border);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding-bottom: env(safe-area-inset-bottom);
}

nav.bottom-nav .bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 9px 4px 8px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-family: inherit;
    text-decoration: none;
    cursor: pointer;
    position: relative;
    transition: color 0.2s, transform 0.15s;
    -webkit-tap-highlight-color: transparent;
    height: auto;
    width: auto;
}

nav.bottom-nav .bottom-nav-item:active {
    transform: scale(0.92);
}

.bottom-nav-icon {
    font-size: 1.28rem;
    line-height: 1;
}

.bottom-nav-label {
    font-size: 0.66rem;
    font-weight: 700;
}

nav.bottom-nav .bottom-nav-item.active {
    color: var(--accent);
}

nav.bottom-nav .bottom-nav-item.active .bottom-nav-icon {
    transform: translateY(-1px);
}

nav.bottom-nav .cart-badge {
    top: 4px;
    left: 50%;
    right: auto;
    transform: translateX(4px);
}

@media (min-width: 480px) {
    .bottom-nav {
        max-width: 480px;
        left: 50%;
        transform: translateX(-50%);
        border-radius: 20px 20px 0 0;
        border-left: 1px solid var(--border);
        border-right: 1px solid var(--border);
    }
}

/* ── Toggle thème : bouton flottant (plus discret qu'en header) ── */
.theme-toggle-float {
    position: fixed;
    right: 14px;
    bottom: calc(76px + env(safe-area-inset-bottom));
    z-index: 190;
    width: 46px;
    height: 46px;
    box-shadow: 0 6px 20px color-mix(in srgb, var(--bg) 45%, transparent);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s;
}

.theme-toggle-float:active {
    transform: scale(0.92);
}

/* ── Panneau Parrainage : bottom-sheet injecté sur index/info/reviews ── */
.parr-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    z-index: 1000;
    align-items: flex-end;
    justify-content: center;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    overscroll-behavior: contain;
}

.parr-overlay.active {
    display: flex;
}

.parr-sheet {
    background: var(--surface);
    border: 1px solid var(--border);
    width: 100%;
    max-width: 600px;
    max-height: 92dvh;
    max-height: 92vh;
    overflow-y: auto;
    overscroll-behavior: contain;
    border-radius: 20px 20px 0 0;
    animation: slideUp 0.32s cubic-bezier(0.32, 0.72, 0, 1);
}

@media (min-width: 640px) {
    .parr-overlay {
        align-items: center;
        padding: 20px;
    }
    .parr-sheet {
        border-radius: 20px;
        animation: modalIn 0.28s cubic-bezier(0.32, 0.72, 0, 1);
    }
}

.parr-sheet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: calc(18px + env(safe-area-inset-top, 0px) + 46px) 20px 18px;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    background: var(--surface);
    z-index: 2;
}

.parr-sheet-title {
    font-size: 1.05rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--heading, var(--text));
}

.parr-sheet-close {
    background: var(--surface2);
    border: 1px solid var(--border);
    color: var(--text);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s;
}

.parr-sheet-close:hover {
    background: var(--border);
}

.parr-sheet-body {
    padding: 18px 20px 28px;
}