:root {
    --bg: #f3f4f6;
    --panel: #ffffff;
    --text: #111827;
    --muted: #6b7280;
    --line: #e5e7eb;
    --primary: #010101;
    --accent: #d01120;
    --success: #15803d;
    --danger: #b91c1c;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background: var(--bg);
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

.public-body {
    background: #fff;
}

.site-header {
    min-height: 76px;
    padding: 16px 42px;
    background: rgba(17,24,39,.94);
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(12px);
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 900;
}

.site-logo span {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: var(--accent);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 14px;
    font-weight: 700;
}

.nav-cta {
    background: var(--accent);
    padding: 10px 14px;
    border-radius: 999px;
}

.public-hero {
    min-height: 650px;
    background: radial-gradient(circle at top left, rgba(208,17,32,.22), transparent 34%), #111827;
    color: white;
    padding: 90px 42px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 42px;
    align-items: center;
}

.public-hero-content {
    max-width: 880px;
}

.eyebrow,
.page-hero span,
.section-heading span {
    text-transform: uppercase;
    letter-spacing: .12em;
    color: #d01120;
    font-weight: 900;
    font-size: 13px;
}

.public-hero h1 {
    font-size: clamp(42px, 7vw, 92px);
    line-height: .92;
    margin: 12px 0 22px;
}

.public-hero p {
    font-size: 21px;
    color: #d1d5db;
    max-width: 700px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 28px;
}

.match-card {
    background: white;
    color: var(--text);
    border-radius: 24px;
    padding: 28px;
    box-shadow: 0 30px 90px rgba(0,0,0,.28);
}

.match-card span {
    color: var(--muted);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: 12px;
}

.match-card strong {
    display: block;
    font-size: 34px;
    margin: 14px 0;
}

.match-card p {
    color: var(--muted);
    font-size: 16px;
}

.btn,
button.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border: 0;
    border-radius: 10px;
    padding: 12px 16px;
    font-weight: 800;
    cursor: pointer;
    font-size: 14px;
}

.btn-primary { background: var(--accent); color: white; }
.btn-secondary { background: #e5e7eb; color: var(--text); }
.btn-light { background: white; color: var(--text); }
.btn.full { width: 100%; }
.btn.muted, a.muted { opacity: .55; cursor: not-allowed; }

.public-section {
    padding: 70px 42px;
    max-width: 1240px;
    margin: 0 auto;
}

.public-section.alt {
    max-width: none;
    background: #f9fafb;
}

.public-section.alt > * {
    max-width: 1240px;
    margin-left: auto;
    margin-right: auto;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 20px;
    margin-bottom: 28px;
}

.section-heading h2 {
    font-size: 42px;
    margin: 6px 0 0;
}

.section-heading a {
    color: var(--accent);
    font-weight: 900;
}

.public-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.news-card,
.partner-card {
    border: 1px solid var(--line);
    border-radius: 20px;
    background: white;
    overflow: hidden;
}

.news-card img {
    width: 100%;
    height: 210px;
    object-fit: cover;
    background: #e5e7eb;
}

.news-card div,
.partner-card div:last-child {
    padding: 22px;
}

.news-card span,
.partner-card span {
    color: var(--muted);
    font-weight: 800;
    font-size: 13px;
}

.news-card h3,
.partner-card h2 {
    margin: 8px 0 10px;
    font-size: 24px;
}

.news-card p,
.partner-card p {
    color: var(--muted);
    line-height: 1.55;
}

.news-card a,
.partner-card a,
.back-link {
    color: var(--accent);
    font-weight: 900;
}

.partner-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.partner-mini {
    background: white;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.partner-mini img,
.partner-logo img {
    max-height: 58px;
    object-fit: contain;
}

.partner-mini strong,
.partner-logo strong {
    width: 52px;
    height: 52px;
    background: #111827;
    color: white;
    display: grid;
    place-items: center;
    border-radius: 14px;
}

.page-hero {
    background: #111827;
    color: white;
    padding: 90px 42px;
    text-align: center;
}

.page-hero h1 {
    font-size: clamp(38px, 5vw, 70px);
    margin: 14px auto;
    max-width: 900px;
}

.page-hero p {
    color: #d1d5db;
    max-width: 720px;
    margin: 0 auto;
    font-size: 19px;
}

.article-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 70px 32px;
}

.article-page.small {
    padding-top: 50px;
}

.article-page header h1 {
    font-size: clamp(36px, 5vw, 64px);
    margin: 12px 0;
}

.article-page header p {
    font-size: 20px;
    color: var(--muted);
    line-height: 1.55;
}

.article-cover {
    width: 100%;
    max-height: 460px;
    object-fit: cover;
    border-radius: 24px;
    margin: 28px 0;
}

.article-content {
    font-size: 18px;
    line-height: 1.75;
    color: #374151;
}

.html-content p {
    margin-bottom: 18px;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.partner-card {
    display: grid;
    grid-template-columns: 170px 1fr;
    align-items: center;
}

.partner-logo {
    min-height: 190px;
    display: grid;
    place-items: center;
    background: #f9fafb;
    border-right: 1px solid var(--line);
    padding: 22px;
}

.empty-public {
    color: var(--muted);
    background: #f9fafb;
    border: 1px dashed var(--line);
    border-radius: 18px;
    padding: 24px;
}

.site-footer {
    background: #111827;
    color: white;
    padding: 34px 42px;
    display: flex;
    justify-content: space-between;
    gap: 22px;
}

.site-footer p,
.footer-links {
    color: #9ca3af;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

/* AUTH */
.auth-body {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background: #111827;
}

.auth-wrapper { width: min(520px, 100%); }

.auth-card {
    background: white;
    border-radius: 18px;
    padding: 28px;
    box-shadow: 0 20px 80px rgba(0,0,0,.25);
}

.auth-title h1 { margin: 0 0 8px; font-size: 28px; }
.auth-title p { margin: 0 0 24px; color: var(--muted); }

/* FORMS */
.form-stack { display: grid; gap: 16px; }

label {
    display: grid;
    gap: 7px;
    font-weight: 700;
    font-size: 14px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    align-self: end;
    min-height: 48px;
}

.checkbox-label input {
    width: auto;
}

input, select, textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 12px 13px;
    font-size: 15px;
    background: white;
}

textarea {
    resize: vertical;
    font-family: Arial, Helvetica, sans-serif;
}

input:focus, select:focus, textarea:focus {
    outline: 3px solid rgba(249,115,22,.22);
    border-color: var(--accent);
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.alert {
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 16px;
    font-weight: 700;
}

.alert-error { background: #fee2e2; color: var(--danger); }
.alert-success { background: #dcfce7; color: var(--success); }

/* ADMIN */
.admin-body { display: flex; min-height: 100vh; }

.admin-sidebar {
    width: 280px;
    background: #111827;
    color: white;
    padding: 22px;
    position: fixed;
    inset: 0 auto 0 0;
    overflow-y: auto;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
}

.brand-mark {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: var(--accent);
    display: grid;
    place-items: center;
    font-weight: 900;
}

.brand span {
    display: block;
    color: #9ca3af;
    font-size: 13px;
    margin-top: 2px;
}

.admin-nav { display: grid; gap: 7px; }

.admin-nav a, .nav-section {
    padding: 11px 12px;
    border-radius: 10px;
}

.admin-nav a:hover { background: rgba(255,255,255,.08); }

.nav-section {
    color: #9ca3af;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: .08em;
    margin-top: 14px;
}

.admin-main {
    margin-left: 280px;
    width: calc(100% - 280px);
}

.admin-topbar {
    background: white;
    border-bottom: 1px solid var(--line);
    min-height: 82px;
    padding: 18px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.admin-topbar h1 { margin: 0; font-size: 26px; }

.topbar-user {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--muted);
    font-size: 14px;
}

.admin-content { padding: 28px; }

.cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 22px;
}

.card, .panel {
    background: white;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 20px;
}

.card-label {
    color: var(--muted);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 800;
}

.card strong {
    display: block;
    font-size: 28px;
    margin: 10px 0 6px;
}

.card p, .panel-header p, .empty, .table-sub { color: var(--muted); }

.panel { margin-bottom: 22px; }

.panel-header { margin-bottom: 18px; }
.panel-header h2 { margin: 0 0 6px; }
.panel-header p { margin: 0; }

.between {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.quick-actions, .form-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.module-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.module-grid div {
    border: 1px dashed var(--line);
    padding: 16px;
    border-radius: 14px;
    background: #f9fafb;
}

.module-grid strong {
    display: block;
    margin-bottom: 8px;
}

.module-grid span {
    color: var(--muted);
    font-size: 14px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    text-align: left;
    border-bottom: 1px solid var(--line);
    padding: 13px 10px;
    vertical-align: middle;
}

th {
    font-size: 13px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .06em;
}

.badge {
    display: inline-flex;
    border-radius: 999px;
    padding: 5px 9px;
    font-size: 12px;
    font-weight: 800;
}

.badge-success { background: #dcfce7; color: var(--success); }
.badge-muted { background: #e5e7eb; color: #4b5563; }

.btn-small {
    border: 1px solid var(--line);
    background: white;
    border-radius: 8px;
    padding: 8px 10px;
    cursor: pointer;
    display: inline-flex;
    font-weight: 800;
    font-size: 13px;
}

.btn-small.danger {
    color: var(--danger);
}

.actions-cell {
    display: flex;
    gap: 8px;
    align-items: center;
}

.actions-cell form {
    margin: 0;
}

@media (max-width: 1120px) {
    .cards, .module-grid, .public-grid, .partner-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .public-hero {
        grid-template-columns: 1fr;
    }

    .match-card {
        max-width: 460px;
    }
}

@media (max-width: 900px) {
    .site-header, .site-nav, .site-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .admin-body { display: block; }

    .admin-sidebar {
        position: static;
        width: 100%;
    }

    .admin-main {
        margin-left: 0;
        width: 100%;
    }

    .admin-topbar,
    .topbar-user,
    .between {
        align-items: flex-start;
        flex-direction: column;
    }

    .cards, .grid-2, .module-grid, .public-grid, .partner-strip, .partners-grid {
        grid-template-columns: 1fr;
    }

    .partner-card {
        grid-template-columns: 1fr;
    }

    .partner-logo {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }
}


/* MÉDIATHÈQUE ADMIN */
.media-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.media-card {
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
}

.media-thumb {
    height: 150px;
    background:
        linear-gradient(45deg, #f3f4f6 25%, transparent 25%),
        linear-gradient(-45deg, #f3f4f6 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #f3f4f6 75%),
        linear-gradient(-45deg, transparent 75%, #f3f4f6 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0;
    display: grid;
    place-items: center;
}

.media-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.media-info {
    padding: 12px;
    display: grid;
    gap: 10px;
}

.media-info strong {
    display: block;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.media-info input {
    font-size: 12px;
    padding: 8px;
}

.media-info small {
    color: var(--muted);
}

.media-picker {
    display: grid;
    gap: 12px;
    border: 1px dashed var(--line);
    border-radius: 14px;
    padding: 16px;
    background: #fafafa;
}

.current-image {
    max-width: 320px;
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

.current-image img {
    width: 100%;
    max-height: 180px;
    object-fit: contain;
}

.current-logo {
    max-width: 220px;
}

.media-details {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    padding: 12px;
}

.media-details summary {
    cursor: pointer;
    font-weight: 900;
}

.mini-media-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.mini-media-grid button {
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 10px;
    padding: 8px;
    cursor: pointer;
    display: grid;
    gap: 6px;
}

.mini-media-grid button:hover {
    border-color: var(--primary);
}

.mini-media-grid img {
    width: 100%;
    height: 72px;
    object-fit: contain;
    background: #f9fafb;
}

.mini-media-grid span {
    font-size: 12px;
    font-weight: 800;
}

@media (max-width: 1120px) {
    .media-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mini-media-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .media-grid,
    .mini-media-grid {
        grid-template-columns: 1fr;
    }
}


/* LOT 5 - ESPACE COLLABORATEUR / DROITS / DRIVE */
.panel-subblock {
    border: 1px solid var(--line);
    background: #fafafa;
    border-radius: 16px;
    padding: 18px;
    display: grid;
    gap: 14px;
}

.panel-subblock h3 {
    margin: 0;
    font-size: 18px;
}

.panel-subblock p {
    margin: 0;
    color: var(--muted);
}

.permissions-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.permissions-grid fieldset {
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    padding: 14px;
    display: grid;
    gap: 10px;
}

.permissions-grid legend {
    font-weight: 900;
    padding: 0 8px;
}

.check-row {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: start;
    gap: 10px;
    padding: 10px;
    border-radius: 10px;
    background: #f9fafb;
}

.check-row input {
    margin-top: 3px;
}

.check-row span {
    display: grid;
    gap: 3px;
}

.check-row small {
    color: var(--muted);
    font-size: 12px;
}

.drive-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.drive-header h2 {
    margin: 0 0 8px;
}

.drive-header p {
    margin: 0;
    color: var(--muted);
}

.drive-switch,
.drive-actions,
.inline-form {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.drive-actions {
    margin-top: 18px;
    justify-content: space-between;
}

.inline-form input[type="text"] {
    min-width: 220px;
}

.drive-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.drive-folder {
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    padding: 18px;
    display: grid;
    gap: 12px;
    min-height: 120px;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.drive-folder:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
    box-shadow: 0 12px 30px rgba(0,0,0,.08);
}

.drive-folder span {
    font-size: 30px;
}

.module-grid a {
    color: inherit;
}

@media (max-width: 900px) {
    .permissions-grid,
    .drive-grid {
        grid-template-columns: 1fr;
    }

    .drive-header,
    .drive-actions,
    .inline-form {
        align-items: stretch;
        flex-direction: column;
    }

    .inline-form input[type="text"],
    .inline-form input[type="file"],
    .inline-form button {
        width: 100%;
    }
}


/* LOT 6 - CRM PARTENAIRES */
.crm-cards .card strong {
    font-size: 25px;
}

.crm-filters {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr auto auto;
    gap: 10px;
    align-items: end;
}

.crm-filters input,
.crm-filters select {
    min-height: 44px;
}

.table-wrap {
    overflow-x: auto;
}

.badge-danger-soft {
    background: #fee2e2;
    color: #b91c1c;
}

.crm-status-new { background: #e0f2fe; color: #0369a1; }
.crm-status-to_contact { background: #fef3c7; color: #92400e; }
.crm-status-contacted { background: #ede9fe; color: #6d28d9; }
.crm-status-meeting { background: #dbeafe; color: #1d4ed8; }
.crm-status-offer_sent { background: #fae8ff; color: #a21caf; }
.crm-status-negotiation { background: #ffedd5; color: #c2410c; }
.crm-status-won { background: #dcfce7; color: #15803d; }
.crm-status-lost { background: #fee2e2; color: #b91c1c; }
.crm-status-later { background: #e5e7eb; color: #4b5563; }

.crm-interest-cold { background: #e5e7eb; color: #4b5563; }
.crm-interest-warm { background: #fef3c7; color: #92400e; }
.crm-interest-hot { background: #fee2e2; color: #b91c1c; }
.crm-interest-partner { background: #dcfce7; color: #15803d; }

.crm-follow-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.crm-follow-card {
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 15px;
    background: #fff;
    display: grid;
    gap: 7px;
}

.crm-follow-card span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.crm-follow-card strong {
    font-size: 17px;
}

.crm-follow-card small {
    color: var(--muted);
    line-height: 1.35;
}

.crm-follow-card.is-late {
    border-color: #fecaca;
    background: #fff1f2;
}

.crm-follow-card.is-today {
    border-color: #fed7aa;
    background: #fff7ed;
}

.crm-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(320px, .9fr);
    gap: 22px;
    align-items: start;
}

.crm-detail-head h2 {
    margin: 8px 0 10px;
    font-size: 34px;
}

.crm-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.crm-info-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.crm-info-list div {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fafafa;
    padding: 14px;
}

.crm-info-list span {
    display: block;
    color: var(--muted);
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 900;
    margin-bottom: 6px;
}

.crm-info-list strong {
    font-size: 16px;
}

.crm-notes {
    margin-top: 18px;
    border-top: 1px solid var(--line);
    padding-top: 18px;
}

.crm-notes h3 {
    margin: 0 0 8px;
}

.crm-notes p {
    color: #374151;
    line-height: 1.55;
}

.crm-transform-box {
    margin-top: 18px;
    border: 1px solid #fed7aa;
    background: #fff7ed;
    border-radius: 14px;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
}

.crm-transform-box div {
    display: grid;
    gap: 4px;
}

.crm-transform-box span {
    color: var(--muted);
}

.crm-contact-card {
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 16px;
    background: #fafafa;
    display: grid;
    gap: 8px;
    margin-bottom: 16px;
}

.crm-contact-card strong {
    font-size: 20px;
}

.crm-contact-card span,
.crm-company-lines p {
    color: var(--muted);
}

.crm-contact-card a {
    font-weight: 800;
}

.crm-company-lines p {
    margin: 8px 0;
}

.crm-file-list {
    display: grid;
    gap: 12px;
    margin-top: 16px;
}

.crm-file-list > div {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px;
    display: grid;
    gap: 8px;
}

.crm-file-list span {
    color: var(--muted);
    font-size: 13px;
}

.crm-timeline {
    display: grid;
    gap: 0;
}

.crm-timeline article {
    display: grid;
    grid-template-columns: 24px 1fr;
    gap: 12px;
    padding: 0 0 22px;
    position: relative;
}

.crm-timeline article:not(:last-child)::before {
    content: "";
    position: absolute;
    left: 7px;
    top: 18px;
    bottom: 0;
    width: 2px;
    background: var(--line);
}

.crm-timeline-dot {
    width: 16px;
    height: 16px;
    border-radius: 999px;
    background: var(--accent);
    margin-top: 4px;
    position: relative;
    z-index: 2;
}

.crm-timeline span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.crm-timeline h3 {
    margin: 5px 0 7px;
}

.crm-timeline p {
    margin: 0;
    color: #374151;
    line-height: 1.5;
}

.crm-timeline small {
    display: inline-flex;
    margin-top: 8px;
    color: #92400e;
    background: #fef3c7;
    border-radius: 999px;
    padding: 5px 9px;
    font-weight: 800;
}

.compact-grid {
    gap: 10px;
}

@media (max-width: 1120px) {
    .crm-filters,
    .crm-layout,
    .crm-follow-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 900px) {
    .crm-filters,
    .crm-layout,
    .crm-follow-grid,
    .crm-info-list {
        grid-template-columns: 1fr;
    }

    .crm-transform-box {
        align-items: stretch;
        flex-direction: column;
    }
}


/* LOT 7 - TÂCHES INTERNES + PALETTE GH */
.brand-mark,
.site-logo span,
.nav-cta,
.btn-primary {
    background: #d01120;
}

.section-heading a,
.eyebrow,
.page-hero span,
.section-heading span {
    color: #d01120;
}

.btn-primary:hover,
.nav-cta:hover {
    background: #a90d1a;
}

.task-list {
    display: grid;
    gap: 10px;
}

.task-list.compact {
    margin-top: 14px;
}

.task-row {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
}

.task-row:hover {
    border-color: #d01120;
}

.task-row strong {
    display: block;
    margin-bottom: 4px;
}

.task-row span {
    color: var(--muted);
    font-size: 13px;
}

.task-row.is-late {
    border-color: #fecaca;
    background: #fff1f2;
}

.task-status,
.task-priority {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 6px 9px;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
    font-style: normal;
}

.task-status-todo {
    background: #f3f4f6;
    color: #374151;
}

.task-status-in_progress {
    background: #dbeafe;
    color: #1d4ed8;
}

.task-status-done {
    background: #dcfce7;
    color: #15803d;
}

.task-status-blocked {
    background: #fee2e2;
    color: #b91c1c;
}

.task-priority-low {
    background: #f3f4f6;
    color: #4b5563;
}

.task-priority-normal {
    background: #e5e7eb;
    color: #111827;
}

.task-priority-high {
    background: #fef2f2;
    color: #d01120;
}

.task-priority-urgent {
    background: #d01120;
    color: #fff;
}

.row-danger td {
    background: #fff1f2;
}

.danger-text {
    color: #b91c1c !important;
}

.inline-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: end;
    margin-top: 18px;
}

.inline-form select {
    max-width: 260px;
}

.file-list {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
}

.file-item strong {
    display: block;
    font-size: 14px;
}

.file-item span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    margin-top: 4px;
}

@media (max-width: 900px) {
    .task-row,
    .file-item,
    .inline-form {
        display: grid;
    }
}


/* LOT 8 - BILLETTERIE */
.ticket-admin-cover {
    margin-top: 18px;
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
}

.ticket-admin-cover img {
    width: 100%;
    max-height: 360px;
    object-fit: cover;
    display: block;
}

.ticket-rate-admin-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.ticket-rate-admin-card,
.rate-delete-form {
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 16px;
    background: #fff;
    display: grid;
    gap: 12px;
}

.rate-delete-form {
    margin-top: -10px;
    padding-top: 0;
    border-top: 0;
    border-radius: 0 0 16px 16px;
}

.muted-small {
    color: var(--muted);
    font-size: 13px;
    margin: 0;
}

.ticket-admin-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.ticket-admin-card {
    display: grid;
    grid-template-columns: 1fr 120px;
    gap: 16px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    padding: 18px;
}

.ticket-admin-card span {
    color: var(--accent);
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
}

.ticket-admin-card h3 {
    margin: 8px 0 8px;
    font-size: 18px;
}

.ticket-admin-card p {
    color: var(--muted);
    line-height: 1.4;
}

.ticket-admin-card img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
}

.ticket-order-pending,
.ticket-status-pending {
    background: #fef3c7;
    color: #92400e;
}

.ticket-order-paid_manual,
.ticket-status-valid {
    background: #dcfce7;
    color: #15803d;
}

.ticket-order-cancelled,
.ticket-status-cancelled {
    background: #fee2e2;
    color: #b91c1c;
}

.ticket-status-used {
    background: #dbeafe;
    color: #1d4ed8;
}

.ticket-scan-result {
    border-width: 2px;
}

.ticket-scan-success,
.ticket-scan-ready {
    border-color: #22c55e;
    background: #f0fdf4;
}

.ticket-scan-pending {
    border-color: #f59e0b;
    background: #fffbeb;
}

.ticket-scan-cancelled,
.ticket-scan-not_found,
.ticket-scan-already_used {
    border-color: #ef4444;
    background: #fff1f2;
}

/* BILLETTERIE PUBLIQUE */
.ticket-public-hero .gh-structured-bg {
    background-size: cover;
    background-position: center;
}

.ticket-public-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.ticket-public-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 18px 55px rgba(0,0,0,.08);
}

.ticket-public-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.ticket-public-card > div {
    padding: 24px;
    display: grid;
    gap: 10px;
}

.ticket-public-card span,
.ticket-public-card small {
    color: #d01120;
    font-size: 13px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.ticket-public-card h3 {
    margin: 0;
    font-size: 26px;
    font-style: italic;
    text-transform: uppercase;
}

.ticket-public-card p {
    color: #4b5563;
    margin: 0;
}

.ticket-public-card a {
    display: inline-flex;
    justify-content: center;
    margin-top: 10px;
    background: #010101;
    color: #fff;
    padding: 14px 18px;
    font-weight: 950;
    text-transform: uppercase;
}

.ticket-public-card a:hover {
    background: #d01120;
}

.ticket-order-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 28px;
    align-items: start;
}

.ticket-rate-list {
    display: grid;
    gap: 14px;
    margin: 20px 0 28px;
}

.ticket-rate-choice {
    display: grid;
    grid-template-columns: 1fr 170px;
    gap: 16px;
    align-items: center;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    background: #fff;
    padding: 20px;
}

.ticket-rate-choice strong {
    display: block;
    font-size: 22px;
    margin-bottom: 5px;
}

.ticket-rate-choice span,
.ticket-rate-choice em {
    display: block;
    color: #6b7280;
    font-style: normal;
}

.ticket-rate-choice b {
    display: block;
    font-size: 22px;
    margin-bottom: 8px;
}

.ticket-rate-choice input {
    width: 100%;
    padding: 11px;
    border: 1px solid #d1d5db;
    border-radius: 12px;
}

.ticket-buyer {
    display: grid;
    gap: 14px;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    padding: 22px;
    background: #fafafa;
    margin-bottom: 20px;
}

.ticket-buyer h3 {
    margin: 0;
    text-transform: uppercase;
    font-style: italic;
}

.ticket-buyer label {
    display: grid;
    gap: 6px;
    font-weight: 800;
}

.ticket-buyer input,
.ticket-buyer textarea {
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 12px;
    font: inherit;
}

.ticket-help-card {
    border: 1px solid #e5e7eb;
    border-radius: 22px;
    padding: 24px;
    background: #010101;
    color: #fff;
    position: sticky;
    top: 110px;
}

.ticket-help-card h3 {
    margin-top: 0;
    text-transform: uppercase;
    font-style: italic;
}

.ticket-help-card p {
    color: rgba(255,255,255,.78);
    line-height: 1.55;
}

.ticket-remaining {
    display: inline-flex;
    background: #fff1f2;
    color: #d01120;
    padding: 10px 14px;
    border-radius: 999px;
    font-weight: 900;
}

.ticket-confirmation-status {
    border-radius: 20px;
    padding: 22px;
    margin-bottom: 28px;
    border: 1px solid #e5e7eb;
}

.ticket-confirmation-status strong {
    display: block;
    text-transform: uppercase;
    font-weight: 950;
    margin-bottom: 8px;
}

.ticket-status-pending {
    background: #fffbeb;
    border-color: #fde68a;
}

.ticket-status-paid_manual {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.ticket-status-cancelled {
    background: #fff1f2;
    border-color: #fecaca;
}

.ticket-print-grid {
    display: grid;
    gap: 18px;
}

.ticket-print-card,
.ticket-single-public {
    display: grid;
    grid-template-columns: 1fr 180px;
    gap: 22px;
    border: 2px solid #010101;
    border-radius: 20px;
    background: #fff;
    padding: 22px;
    break-inside: avoid;
}

.ticket-print-card span,
.ticket-single-public span {
    color: #d01120;
    text-transform: uppercase;
    font-weight: 950;
    font-size: 12px;
    letter-spacing: .08em;
}

.ticket-print-card h3,
.ticket-single-public h2 {
    margin: 8px 0;
    font-size: 26px;
    text-transform: uppercase;
    font-style: italic;
}

.ticket-print-card strong,
.ticket-single-public small {
    display: block;
    margin-top: 12px;
    font-weight: 950;
}

.ticket-print-card em,
.ticket-single-public strong {
    display: inline-flex;
    margin-top: 10px;
    background: #010101;
    color: #fff;
    padding: 8px 12px;
    font-style: normal;
    font-weight: 900;
    border-radius: 999px;
}

.ticket-print-card img,
.ticket-single-public img {
    width: 180px;
    height: 180px;
    object-fit: contain;
}

.ticket-single-public {
    max-width: 820px;
    margin: 0 auto;
}

@media (max-width: 1100px) {
    .ticket-public-grid,
    .ticket-admin-grid,
    .ticket-rate-admin-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ticket-order-layout {
        grid-template-columns: 1fr;
    }

    .ticket-help-card {
        position: static;
    }
}

@media (max-width: 760px) {
    .ticket-public-grid,
    .ticket-admin-grid,
    .ticket-rate-admin-grid {
        grid-template-columns: 1fr;
    }

    .ticket-rate-choice,
    .ticket-print-card,
    .ticket-single-public,
    .ticket-admin-card {
        grid-template-columns: 1fr;
    }

    .ticket-print-card img,
    .ticket-single-public img,
    .ticket-admin-card img {
        width: 160px;
        height: 160px;
    }
}

@media print {
    .gh-header,
    .gh-menu-overlay,
    .gh-footer,
    .ticket-help-card,
    .site-footer,
    .public-section .section-heading,
    .alert {
        display: none !important;
    }

    .gh-structured-hero {
        min-height: auto !important;
        padding: 0 !important;
        background: #fff !important;
        color: #000 !important;
    }

    .gh-structured-bg {
        display: none !important;
    }

    .gh-structured-content {
        color: #000 !important;
    }

    .ticket-order-layout {
        display: block;
    }

    .ticket-print-card {
        page-break-inside: avoid;
        margin-bottom: 16px;
    }
}


/* LOT 9 - STRIPE + EMAILS */
.ticket-webhook-box {
    display: grid;
    gap: 8px;
    background: #f9fafb;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 16px;
}

.ticket-webhook-box code {
    display: block;
    overflow-x: auto;
    background: #010101;
    color: #fff;
    padding: 12px;
    border-radius: 10px;
}

.ticket-email-sent {
    background: #dcfce7;
    color: #15803d;
}

.ticket-email-failed {
    background: #fee2e2;
    color: #b91c1c;
}

.ticket-order-paid_online {
    background: #dcfce7;
    color: #15803d;
}

.ticket-order-failed,
.ticket-order-expired {
    background: #fee2e2;
    color: #b91c1c;
}

.ticket-status-paid_online,
.ticket-status-paid_manual {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.ticket-status-failed,
.ticket-status-expired {
    background: #fff1f2;
    border-color: #fecaca;
}

@media (max-width: 760px) {
    .ticket-webhook-box code {
        white-space: nowrap;
    }
}


/* LOT 10 - BOUTIQUE */
.shop-category-tabs{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:24px}.shop-category-tabs a{border:1px solid #e5e7eb;border-radius:999px;padding:10px 14px;font-weight:900;color:#111;background:#fff}.shop-category-tabs a.is-active,.shop-category-tabs a:hover{background:#d01120;color:#fff;border-color:#d01120}.shop-public-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}.shop-product-card{background:#fff;border:1px solid #e5e7eb;border-radius:22px;overflow:hidden;box-shadow:0 18px 55px rgba(0,0,0,.08)}.shop-product-card img{width:100%;height:230px;object-fit:cover;display:block}.shop-product-card>div{padding:24px;display:grid;gap:10px}.shop-product-card span{color:#d01120;text-transform:uppercase;font-size:12px;font-weight:950;letter-spacing:.08em}.shop-product-card h3{margin:0;font-size:25px;text-transform:uppercase;font-style:italic}.shop-product-card p{color:#4b5563;margin:0}.shop-product-card strong{font-size:22px}.shop-product-card a{display:inline-flex;justify-content:center;background:#010101;color:#fff;padding:14px 18px;font-weight:950;text-transform:uppercase}.shop-product-card a:hover{background:#d01120}.shop-product-layout{display:grid;grid-template-columns:minmax(0,1fr)340px;gap:28px;align-items:start}.shop-quantity-label{display:grid;gap:8px;max-width:180px;font-weight:900;margin:10px 0 20px}.shop-quantity-label input{padding:12px;border:1px solid #d1d5db;border-radius:12px}.shop-cart-list{display:grid;gap:14px}.shop-cart-item{display:grid;grid-template-columns:90px 1fr 110px 130px;gap:16px;align-items:center;background:#fff;border:1px solid #e5e7eb;border-radius:18px;padding:16px}.shop-cart-item img{width:90px;height:90px;object-fit:cover;border-radius:12px}.shop-cart-item strong{display:block}.shop-cart-item span,.shop-cart-item em{display:block;color:#6b7280;font-style:normal;margin-top:4px}.shop-cart-item input{padding:12px;border:1px solid #d1d5db;border-radius:12px;width:100%}.shop-cart-total{display:flex;justify-content:flex-end;gap:18px;align-items:center;margin:22px 0;font-size:24px}.shop-cart-total span{text-transform:uppercase;font-weight:950;color:#6b7280}.shop-cart-total strong{font-size:34px}.shop-category-edit{display:grid!important;grid-template-columns:1fr 110px auto auto!important}.shop-order-pending{background:#fef3c7;color:#92400e}.shop-order-paid_manual,.shop-order-prepared,.shop-order-fulfilled{background:#dcfce7;color:#15803d}.shop-order-cancelled{background:#fee2e2;color:#b91c1c}@media(max-width:1100px){.shop-public-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.shop-product-layout{grid-template-columns:1fr}.shop-cart-item{grid-template-columns:80px 1fr 90px}}@media(max-width:760px){.shop-public-grid{grid-template-columns:1fr}.shop-cart-item,.shop-category-edit{grid-template-columns:1fr!important}.shop-cart-total{justify-content:space-between}.shop-cart-total strong{font-size:26px}}


/* PATCH BOUTIQUE - PROMOTIONS */
.shop-promo-box,
.shop-promo-public-box {
    border: 1px solid #fecaca;
    background: #fff1f2;
    border-radius: 16px;
    padding: 18px;
    display: grid;
    gap: 14px;
}

.panel-header.compact h2 {
    font-size: 20px;
    margin: 0 0 4px;
}

.panel-header.compact p {
    margin: 0;
}

.shop-promo-ribbon,
.shop-promo-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #d01120;
    color: #fff;
    border-radius: 999px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.shop-promo-ribbon {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 4;
    padding: 9px 13px;
    font-size: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,.18);
}

.shop-promo-pill {
    padding: 6px 10px;
    font-size: 11px;
    margin-top: 8px;
    width: fit-content;
}

.shop-product-card {
    position: relative;
}

.shop-product-card.has-promo {
    border-color: #fecaca;
}

.shop-price {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: baseline;
}

.shop-price del,
.shop-hero-price del,
.ticket-rate-choice del,
.shop-cart-item del,
.crm-detail-grid del,
.muted-small del {
    color: #9ca3af;
    font-weight: 700;
    text-decoration-thickness: 2px;
}

.shop-price del {
    font-size: 14px;
}

.shop-hero-price {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.shop-hero-price strong {
    color: #fff;
}

.shop-hero-price span {
    background: #d01120;
    color: #fff;
    border-radius: 999px;
    padding: 8px 12px;
    font-weight: 950;
    text-transform: uppercase;
    font-size: 13px;
}

.ticket-rate-choice.has-promo {
    border-color: #fecaca;
    background: #fff7f8;
}

.ticket-rate-choice b {
    display: grid;
    gap: 3px;
}

.shop-promo-public-box {
    margin-bottom: 22px;
}

.shop-promo-public-box strong {
    color: #d01120;
    text-transform: uppercase;
    font-weight: 950;
}

.shop-promo-public-box p {
    margin: 0;
    color: #7f1d1d;
}

@media (max-width: 760px) {
    .shop-price,
    .shop-hero-price {
        display: grid;
        gap: 4px;
    }

    .shop-promo-ribbon {
        top: 10px;
        left: 10px;
    }
}


/* LOT 11 - BOUTIQUE PREMIUM */
.premium-shop-admin {
    display: grid;
    gap: 22px;
}

.shop-admin-hero {
    background:
        radial-gradient(circle at 90% 30%, rgba(208,17,32,.28), transparent 26%),
        linear-gradient(135deg, #010101, #18181b);
    color: #fff;
    border-radius: 24px;
    padding: 28px;
    display: flex;
    justify-content: space-between;
    gap: 22px;
    align-items: end;
    overflow: hidden;
}

.shop-admin-hero span,
.shop-premium-hero span,
.shop-product-buy-box > span,
.shop-admin-product-tile > div > span,
.shop-product-admin-info > span {
    display: block;
    color: #ffb4bd;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: 12px;
    font-weight: 950;
}

.shop-admin-hero h1 {
    margin: 8px 0 8px;
    font-size: clamp(34px, 4vw, 62px);
    line-height: .92;
    text-transform: uppercase;
    font-style: italic;
}

.shop-admin-hero p {
    margin: 0;
    color: rgba(255,255,255,.76);
    max-width: 720px;
}

.shop-product-builder {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 22px;
    align-items: start;
}

.shop-builder-main,
.shop-builder-side {
    display: grid;
    gap: 18px;
}

.shop-builder-side {
    position: sticky;
    top: 92px;
}

.shop-builder-card label {
    display: grid;
    gap: 7px;
    font-weight: 850;
}

.shop-preview-card {
    display: grid;
    gap: 10px;
    text-align: center;
}

.shop-preview-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 16px;
}

.shop-preview-card strong {
    font-size: 18px;
}

.shop-preview-card span {
    color: #d01120;
    font-weight: 950;
}

.shop-admin-product-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 22px;
    align-items: start;
}

.shop-product-admin-card {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 24px;
}

.shop-product-admin-media {
    background: #f4f4f5;
    border-radius: 20px;
    overflow: hidden;
    min-height: 320px;
    display: grid;
    place-items: center;
}

.shop-product-admin-media img {
    width: 100%;
    height: 100%;
    min-height: 320px;
    object-fit: cover;
}

.shop-no-image {
    font-size: 72px;
    font-weight: 950;
    color: #d01120;
}

.shop-product-admin-info h2 {
    margin: 8px 0 12px;
    font-size: clamp(28px, 3vw, 46px);
    text-transform: uppercase;
    font-style: italic;
}

.shop-product-admin-info p {
    color: var(--muted);
    line-height: 1.6;
}

.shop-price-line {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 10px;
    margin: 10px 0;
}

.shop-price-line strong {
    font-size: 24px;
    color: #010101;
}

.shop-price-line.big strong {
    font-size: 38px;
}

.shop-price-line del {
    color: #8a8f98;
    font-size: 16px;
}

.shop-price-line em {
    display: inline-flex;
    background: #d01120;
    color: #fff;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 950;
    font-style: normal;
    text-transform: uppercase;
}

.shop-preset-form,
.shop-custom-matrix {
    display: grid;
    gap: 14px;
}

.shop-stock-table {
    display: grid;
    gap: 10px;
}

.shop-stock-row {
    display: grid;
    grid-template-columns: minmax(170px, 1.4fr) 1fr 1fr 110px 90px 90px 60px;
    gap: 8px;
    align-items: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 10px;
}

.shop-delete-variant {
    margin: -5px 0 8px;
    display: flex;
    justify-content: flex-end;
}

.shop-switch {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 900;
}

.shop-admin-products-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.shop-admin-product-tile {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 22px;
    overflow: hidden;
    display: grid;
}

.shop-admin-product-image {
    position: relative;
    aspect-ratio: 1.2;
    background: #f4f4f5;
    display: grid;
    place-items: center;
}

.shop-admin-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.shop-admin-product-image span {
    color: #d01120;
    font-size: 52px;
    font-weight: 950;
}

.shop-admin-product-image em,
.shop-premium-image em,
.shop-product-main-image em {
    position: absolute;
    left: 14px;
    top: 14px;
    background: #d01120;
    color: #fff;
    font-style: normal;
    font-weight: 950;
    border-radius: 999px;
    padding: 7px 11px;
    text-transform: uppercase;
    font-size: 12px;
}

.shop-admin-product-tile > div:last-child {
    padding: 18px;
}

.shop-admin-product-tile h3 {
    margin: 8px 0;
    font-size: 22px;
    text-transform: uppercase;
    font-style: italic;
}

.shop-admin-product-tile p,
.shop-admin-product-tile small {
    color: var(--muted);
}

/* public premium */
.shop-premium-hero {
    min-height: 520px;
    padding: 150px 70px 80px;
    background:
        radial-gradient(circle at 82% 30%, rgba(208,17,32,.55), transparent 30%),
        linear-gradient(135deg, rgba(0,0,0,.96), rgba(0,0,0,.80)),
        linear-gradient(135deg, #171717, #30030a);
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 22px;
}

.shop-premium-hero h1 {
    margin: 10px 0;
    font-size: clamp(54px, 8vw, 120px);
    line-height: .82;
    letter-spacing: -.07em;
    text-transform: uppercase;
    font-style: italic;
}

.shop-premium-hero p {
    max-width: 680px;
    color: rgba(255,255,255,.78);
    font-size: 20px;
}

.shop-cart-link {
    display: inline-flex;
    background: #fff;
    color: #010101;
    padding: 16px 22px;
    font-weight: 950;
    text-transform: uppercase;
}

.shop-premium-section {
    padding-top: 55px;
}

.shop-category-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}

.shop-category-pills a {
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    padding: 11px 16px;
    color: #010101;
    font-weight: 900;
}

.shop-category-pills a.is-active,
.shop-category-pills a:hover {
    background: #010101;
    color: #fff;
}

.shop-premium-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.shop-premium-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 26px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,.08);
}

.shop-premium-image {
    position: relative;
    aspect-ratio: 1;
    background: #f4f4f5;
    display: grid;
    place-items: center;
    overflow: hidden;
}

.shop-premium-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.shop-premium-card:hover .shop-premium-image img {
    transform: scale(1.045);
}

.shop-premium-image > span {
    color: #d01120;
    font-size: 66px;
    font-weight: 950;
}

.shop-premium-image b {
    position: absolute;
    right: 14px;
    bottom: 14px;
    background: #010101;
    color: #fff;
    border-radius: 999px;
    padding: 7px 11px;
    font-size: 12px;
    text-transform: uppercase;
}

.shop-premium-card > div {
    padding: 22px;
}

.shop-premium-card > div > span {
    color: #d01120;
    text-transform: uppercase;
    letter-spacing: .09em;
    font-size: 12px;
    font-weight: 950;
}

.shop-premium-card h3 {
    margin: 8px 0 10px;
    font-size: 26px;
    line-height: 1;
    text-transform: uppercase;
    font-style: italic;
}

.shop-premium-card h3 a {
    color: #010101;
}

.shop-premium-card p {
    color: #555b65;
    line-height: 1.45;
    min-height: 42px;
}

.shop-view-product {
    display: inline-flex;
    margin-top: 12px;
    background: #010101;
    color: #fff;
    padding: 13px 16px;
    font-weight: 950;
    text-transform: uppercase;
}

.shop-view-product:hover {
    background: #d01120;
}

.shop-product-premium-page {
    padding-top: 130px;
}

.shop-back-link {
    display: inline-flex;
    margin-bottom: 18px;
    color: #010101;
    font-weight: 950;
}

.shop-product-premium {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(420px, .75fr);
    gap: 38px;
    align-items: start;
}

.shop-product-gallery {
    display: grid;
    gap: 14px;
}

.shop-product-main-image {
    position: relative;
    background: #f4f4f5;
    border-radius: 30px;
    overflow: hidden;
    min-height: 580px;
    display: grid;
    place-items: center;
}

.shop-product-main-image img {
    width: 100%;
    height: 100%;
    min-height: 580px;
    object-fit: cover;
}

.shop-product-main-image > span {
    font-size: 120px;
    font-weight: 950;
    color: #d01120;
}

.shop-product-thumbs {
    display: flex;
    gap: 12px;
    overflow-x: auto;
}

.shop-product-thumbs button {
    width: 92px;
    height: 92px;
    border: 2px solid transparent;
    border-radius: 16px;
    padding: 0;
    overflow: hidden;
    background: #fff;
    cursor: pointer;
}

.shop-product-thumbs button:hover {
    border-color: #d01120;
}

.shop-product-thumbs img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.shop-product-buy-box {
    position: sticky;
    top: 112px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 30px;
    padding: 30px;
    box-shadow: 0 24px 70px rgba(0,0,0,.08);
}

.shop-product-buy-box > span {
    color: #d01120;
}

.shop-product-buy-box h1 {
    margin: 10px 0 14px;
    font-size: clamp(36px, 4vw, 58px);
    line-height: .88;
    text-transform: uppercase;
    font-style: italic;
    letter-spacing: -.04em;
}

.shop-product-buy-box p {
    color: #555b65;
    line-height: 1.5;
}

.shop-add-cart-form {
    display: grid;
    gap: 16px;
    margin-top: 22px;
}

.shop-add-cart-form > label {
    display: grid;
    gap: 7px;
    font-weight: 900;
}

.shop-variant-choice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.shop-variant-pill {
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 12px;
    cursor: pointer;
    display: grid;
    gap: 5px;
}

.shop-variant-pill:has(input:checked) {
    border-color: #d01120;
    box-shadow: inset 0 0 0 1px #d01120;
}

.shop-variant-pill input {
    display: none;
}

.shop-variant-pill strong {
    font-size: 15px;
}

.shop-variant-pill span {
    font-weight: 950;
}

.shop-variant-pill small {
    color: #6b7280;
}

.shop-variant-pill.is-disabled {
    opacity: .48;
    cursor: not-allowed;
}

.shop-unavailable {
    background: #fff1f2;
    color: #b91c1c;
    border-radius: 16px;
    padding: 16px;
    font-weight: 900;
}

.shop-product-service {
    margin-top: 22px;
    background: #010101;
    color: #fff;
    border-radius: 18px;
    padding: 18px;
}

.shop-product-service p {
    color: rgba(255,255,255,.78);
    margin-bottom: 0;
}

.shop-product-description {
    margin-top: 34px;
    font-size: 18px;
    line-height: 1.65;
}

.shop-cart-premium {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 24px;
    align-items: start;
}

.shop-cart-lines {
    display: grid;
    gap: 14px;
}

.shop-cart-line {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr) 130px 90px 120px;
    gap: 14px;
    align-items: center;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    padding: 14px;
    background: #fff;
}

.shop-cart-image {
    width: 92px;
    height: 92px;
    border-radius: 14px;
    overflow: hidden;
    background: #f4f4f5;
    display: grid;
    place-items: center;
    color: #d01120;
    font-weight: 950;
}

.shop-cart-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.shop-cart-line span,
.shop-cart-line em {
    display: block;
    color: #6b7280;
    font-style: normal;
    margin-top: 4px;
}

.shop-cart-summary {
    position: sticky;
    top: 112px;
    display: grid;
    gap: 12px;
    border-radius: 24px;
    background: #010101;
    color: #fff;
    padding: 24px;
}

.shop-cart-summary span {
    color: #ffb4bd;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 950;
}

.shop-cart-summary strong {
    font-size: 34px;
}

@media (max-width: 1180px) {
    .shop-product-builder,
    .shop-admin-product-grid,
    .shop-product-premium,
    .shop-cart-premium {
        grid-template-columns: 1fr;
    }

    .shop-builder-side,
    .shop-product-buy-box,
    .shop-cart-summary {
        position: static;
    }

    .shop-premium-grid,
    .shop-admin-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .shop-product-admin-card {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .shop-admin-hero,
    .shop-premium-hero {
        display: grid;
        padding: 24px;
    }

    .shop-premium-hero {
        padding-top: 120px;
        min-height: 430px;
    }

    .shop-premium-grid,
    .shop-admin-products-grid,
    .shop-variant-choice-grid {
        grid-template-columns: 1fr;
    }

    .shop-stock-row,
    .shop-cart-line {
        grid-template-columns: 1fr;
    }

    .shop-product-main-image,
    .shop-product-main-image img {
        min-height: 360px;
    }
}
