/* SporeLife.ch — Tarifs Distributeur */

/* Password Gate */
.tp-gate {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #0b1120;
    display: flex;
    align-items: center;
    justify-content: center;
}
.tp-gate-box {
    text-align: center;
    color: #fff;
    max-width: 400px;
    padding: 40px;
}
.tp-gate-logo {
    margin-bottom: 32px;
}
.tp-gate-logo img {
    height: 48px;
    opacity: 0.8;
}
.tp-gate-box h2 {
    font-size: 28px;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 8px;
}
.tp-gate-box > p {
    font-size: 12px;
    color: #9ca3af;
    margin-bottom: 32px;
}
#tp-gate-form {
    display: flex;
    gap: 8px;
}
#tp-gate-input {
    flex: 1;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 50px;
    padding: 14px 24px;
    color: #fff;
    font-size: 14px;
    font-family: 'Montserrat', sans-serif;
    outline: none;
    transition: border-color 0.3s;
}
#tp-gate-input::placeholder { color: #6b7280; }
#tp-gate-input:focus { border-color: #d4af37; }
#tp-gate-form button {
    background: #d4af37;
    color: #0b1120;
    border: none;
    border-radius: 50px;
    padding: 14px 28px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    transition: background 0.3s;
}
#tp-gate-form button:hover { background: #e5c249; }
.tp-gate-error {
    color: #ef4444;
    font-size: 12px;
    margin-top: 16px;
}
.tp-gate-back {
    display: inline-block;
    margin-top: 32px;
    color: #6b7280;
    font-size: 12px;
    text-decoration: none;
    transition: color 0.3s;
}
.tp-gate-back:hover { color: #d4af37; }

.tp-main {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding: 0 40px 60px;
}

/* Hero */
.tp-hero {
    text-align: center;
    padding: 80px 24px;
    background: #0b1120;
    color: #fff;
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}
.tp-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.08;
    background-image: url('https://www.transparenttextures.com/patterns/stardust.png');
}
.tp-hero-label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: #d4af37;
    margin-bottom: 16px;
    position: relative;
}
.tp-hero h1 {
    font-size: clamp(28px, 5vw, 56px);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -1px;
    margin: 0 0 12px;
    position: relative;
}
.tp-hero p {
    font-size: 12px;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 500;
    position: relative;
}

/* Distributeur box */
.tp-distrib {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
    background: #f2f2ef;
    padding: 40px 48px;
    border-radius: 2px;
    border: 1px solid #e5e7eb;
}
.tp-distrib-left {
    display: flex;
    align-items: center;
    gap: 20px;
}
.tp-distrib-icon {
    width: 56px;
    height: 56px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    flex-shrink: 0;
}
.tp-distrib h2 {
    font-size: 18px;
    font-weight: 800;
    text-transform: uppercase;
    margin: 0;
}
.tp-distrib-sub {
    font-size: 12px;
    color: #6b7280;
    margin-top: 2px;
}
.tp-distrib-right { text-align: right; }
.tp-distrib-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    color: #9ca3af;
    margin-bottom: 4px;
}
.tp-distrib-name {
    font-size: 18px;
    font-weight: 800;
}
.tp-distrib-place {
    font-size: 12px;
    color: #6b7280;
    margin-top: 2px;
}

/* Distribution Chain */
.tp-chain {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 40px 24px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 2px;
}
.tp-chain-step {
    text-align: center;
    padding: 24px 32px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    min-width: 180px;
}
.tp-chain-highlight {
    background: #0b1120;
    color: #fff;
    border-color: #0b1120;
}
.tp-chain-highlight .tp-chain-who { color: #fff; }
.tp-chain-highlight .tp-chain-price { color: #d4af37; }
.tp-chain-num {
    display: inline-block;
    width: 28px;
    height: 28px;
    line-height: 28px;
    border-radius: 50%;
    background: #f2f2ef;
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 8px;
}
.tp-chain-highlight .tp-chain-num {
    background: rgba(255,255,255,0.1);
    color: #d4af37;
}
.tp-chain-who {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: #6b7280;
    margin-bottom: 4px;
}
.tp-chain-price {
    font-size: 22px;
    font-weight: 900;
    color: #0b1120;
}
.tp-chain-price span {
    font-size: 11px;
    font-weight: 500;
    color: #9ca3af;
}
.tp-chain-highlight .tp-chain-price span { color: rgba(255,255,255,0.5); }
.tp-chain-margin {
    font-size: 11px;
    font-weight: 700;
    color: #16a34a;
    margin-top: 4px;
}
.tp-chain-highlight .tp-chain-margin { color: #4ade80; }
.tp-chain-arrow {
    font-size: 24px;
    color: #d4af37;
    font-weight: 700;
}

/* Table */
.tp-table-section { padding: 10px 0; }
.tp-table-wrap { overflow-x: auto; }
.tp-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}
.tp-table thead tr {
    border-bottom: 2px solid #0b1120;
}
.tp-table th {
    padding: 16px 16px 16px 0;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #9ca3af;
}
.tp-table tbody tr {
    border-bottom: 1px solid #f3f4f6;
    transition: background 0.3s;
}
.tp-table tbody tr:hover {
    background: #f9fafb;
}
.tp-table td {
    padding: 24px 16px 24px 0;
    font-size: 14px;
    font-weight: 500;
}
.tp-product-cell {
    display: flex;
    align-items: center;
    gap: 16px;
}
.tp-product-thumb {
    width: 48px;
    height: 48px;
    background: #f2f2ef;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}
.tp-product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.tp-product-name {
    font-weight: 800;
    text-transform: uppercase;
    font-size: 14px;
}
.tp-format { color: #6b7280; }
.tp-prix-gros {
    font-weight: 800 !important;
    color: #0b1120;
}
.tp-marge {
    font-weight: 800 !important;
    color: #16a34a;
}
.tp-prix-pharma {
    font-weight: 700 !important;
}
.tp-table-note {
    margin-top: 16px;
    font-size: 12px;
    color: #9ca3af;
    font-style: italic;
}

/* Conditions */
.tp-conditions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.tp-cond-left {
    background: #f9fafb;
    padding: 40px;
    border: 1px solid #e5e7eb;
    border-radius: 2px;
}
.tp-cond-left h3 {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e7eb;
}
.tp-cond-left ul { list-style: none; }
.tp-cond-left li {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    padding: 12px 0;
}
.tp-cond-left li strong {
    color: #0b1120;
    font-weight: 700;
}

.tp-cond-right {
    background: #0b1120;
    color: #fff;
    padding: 40px;
    border-radius: 2px;
}
.tp-cond-right h3 {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #d4af37;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.tp-cond-right ul { list-style: none; }
.tp-cond-right li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    padding: 10px 0;
}
.tp-cond-right svg { flex-shrink: 0; }

/* CTA */
.tp-cta {
    text-align: center;
    padding: 60px 24px;
    border-top: 1px solid #f3f4f6;
}
.tp-cta h2 {
    font-size: 22px;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 32px;
}
.tp-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}
.tp-btn-primary {
    display: inline-block;
    background: #0b1120;
    color: #fff;
    padding: 16px 40px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    text-decoration: none;
    transition: all 0.3s;
}
.tp-btn-primary:hover {
    background: #d4af37;
    color: #fff;
}
.tp-btn-secondary {
    display: inline-block;
    background: #fff;
    color: #0b1120;
    border: 1px solid #0b1120;
    padding: 16px 40px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    text-decoration: none;
    transition: all 0.3s;
}
.tp-btn-secondary:hover {
    background: #0b1120;
    color: #fff;
}
.tp-cta-note {
    font-size: 10px;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-top: 24px;
}

/* Mobile */
@media (max-width: 768px) {
    .tp-main { padding: 0 16px 40px; gap: 32px; }
    .tp-distrib {
        flex-direction: column;
        text-align: center;
        padding: 32px 24px;
    }
    .tp-distrib-left { flex-direction: column; text-align: center; }
    .tp-distrib-right { text-align: center; }
    .tp-chain { flex-direction: column; gap: 12px; padding: 32px 16px; }
    .tp-chain-step { min-width: auto; width: 100%; }
    .tp-chain-arrow { transform: rotate(90deg); }
    .tp-conditions { grid-template-columns: 1fr; }
    .tp-cond-left, .tp-cond-right { padding: 32px 24px; }
    .tp-hero { padding: 48px 16px; }

    /* Mobile table → card layout */
    .tp-table thead { display: none; }
    .tp-table tbody tr {
        display: flex;
        flex-direction: column;
        padding: 24px 0;
        gap: 8px;
        border-bottom: 1px solid #e5e7eb;
    }
    .tp-table td {
        padding: 4px 0;
        font-size: 13px;
    }
    .tp-table td::before {
        content: attr(data-label);
        display: block;
        font-size: 10px;
        font-weight: 700;
        text-transform: uppercase;
        color: #9ca3af;
        margin-bottom: 2px;
    }
    .tp-product-cell { margin-bottom: 4px; }
}
