/* ==================== TARIFS PAGE ==================== */
:root {
    --primary: #111f3b;
    --secondary: #725251;
    --text: #ffffff;
    --text-muted: #a0aec0;
    --bg: #000000;
    --card-bg: #0a0a0a;
    --border: rgba(114, 82, 81, 0.2);
}

.tarifs-page {
    padding-top: 100px;
    min-height: 100vh;
}

.particles-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 2rem;
}

.intro {
    text-align: center;
    padding: 1.5rem 0 2.5rem;
}

.intro h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 0.8rem;
    background: linear-gradient(135deg, #e0e0e0, var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.intro p {
    color: #888;
    font-size: clamp(1rem, 2vw, 1.3rem);
}

/* ==================== PACKS SECTION ==================== */
.packs-section {
    margin-bottom: 4rem;
}

.packs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.pack-card {
    background: rgba(15, 15, 15, 0.95);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid var(--border);
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.pack-card:hover {
    transform: translateY(-8px);
    border-color: var(--secondary);
    box-shadow: 0 20px 40px rgba(114, 82, 81, 0.2);
}

.pack-card.featured {
    border: 2px solid var(--secondary);
    transform: scale(1.05);
    z-index: 2;
}

.pack-card.featured:hover {
    transform: scale(1.05) translateY(-8px);
}

.pack-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(30, 30, 30, 0.95);
    color: #999;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid var(--border);
    white-space: nowrap;
}

.pack-badge.popular {
    background: linear-gradient(135deg, #725251, #a67c7c);
    color: white;
    border: none;
}

.pack-header {
    text-align: center;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 1.5rem;
}

.pack-header h3 {
    color: #e0e0e0;
    font-size: 1.8rem;
    margin-bottom: 0.3rem;
}

.pack-subtitle {
    color: var(--secondary);
    font-size: 0.95rem;
    margin-bottom: 1.2rem;
}

.pack-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.3rem;
    margin-bottom: 0.3rem;
}

.price-value {
    font-size: 3rem;
    font-weight: 800;
    color: #e0e0e0;
}

.price-currency {
    font-size: 1.5rem;
    color: var(--secondary);
}

.pack-header .price-note {
    color: #666;
    font-size: 0.85rem;
}

.pack-features {
    flex: 1;
    margin-bottom: 1.5rem;
}

.pack-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pack-features li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.7rem 0;
    color: #ccc;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(114, 82, 81, 0.1);
}

.pack-features li:last-child {
    border-bottom: none;
}

.pack-features li i {
    width: 18px;
    text-align: center;
}

.pack-features li i.fa-check {
    color: #2ecc71;
}

.pack-features li i.fa-times {
    color: #555;
}

.pack-features li.disabled {
    color: #555;
}

.pack-features li strong {
    color: #e0e0e0;
}

.pack-actions {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(114, 82, 81, 0.15);
}

.pack-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 1rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
}

.pack-btn.primary {
    background: linear-gradient(135deg, #725251, #a67c7c);
    color: white;
}

.pack-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(114, 82, 81, 0.4);
}

.pack-btn.secondary {
    background: rgba(114, 82, 81, 0.15);
    color: var(--secondary);
    border: 1px solid var(--border);
}

.pack-btn.secondary:hover {
    background: rgba(114, 82, 81, 0.25);
    border-color: var(--secondary);
}

/* Custom Devis CTA */
.custom-devis-cta {
    text-align: center;
    padding: 2rem;
    background: rgba(15, 15, 15, 0.6);
    border-radius: 16px;
    border: 1px dashed var(--border);
}

.custom-devis-cta p {
    color: #888;
    margin-bottom: 1rem;
}

.devis-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 2rem;
    background: transparent;
    color: var(--secondary);
    border: 2px solid var(--secondary);
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.devis-toggle-btn:hover {
    background: var(--secondary);
    color: white;
}

/* ==================== CALENDLY SECTION ==================== */
.calendly-section {
    margin-bottom: 4rem;
    scroll-margin-top: 100px;
}

.section-header {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

.section-header h2 {
    color: #e0e0e0;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
}

.section-header h2 i {
    color: var(--secondary);
}

.section-header p {
    color: #888;
    font-size: 1.1rem;
}

.calendly-container {
    background: rgba(15, 15, 15, 0.95);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid var(--border);
    overflow: hidden;
}

.calendly-inline-widget {
    border-radius: 12px;
    overflow: hidden;
}

/* ==================== DEVIS SECTION ==================== */
.devis-section {
    margin-bottom: 4rem;
    scroll-margin-top: 100px;
}

.close-devis-btn {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.close-devis-btn:hover {
    background: #e74c3c;
    color: white;
}

.calculation-form {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 2rem;
    margin-top: 1rem;
}

.service-options {
    background: rgba(15, 15, 15, 0.95);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid var(--border);
}

.service-options h2 {
    color: #e0e0e0;
    font-size: 1.4rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.service-options h2 i {
    color: var(--secondary);
}

.option-group {
    margin-bottom: 2rem;
}

.option-group h3 {
    margin-bottom: 1rem;
    color: #e0e0e0;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.option-group h3 i {
    color: var(--secondary);
    font-size: 0.9rem;
}

.radio-group,
.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 0.6rem;
}

.radio-option,
.checkbox-option {
    display: flex;
    align-items: center;
    padding: 0.9rem 1rem;
    background: rgba(20, 20, 20, 0.8);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.radio-option:hover,
.checkbox-option:hover {
    background: rgba(114, 82, 81, 0.15);
    border-color: rgba(114, 82, 81, 0.3);
}

.radio-option input,
.checkbox-option input {
    margin-right: 0.8rem;
    accent-color: var(--secondary);
}

.radio-option:has(input:checked),
.checkbox-option:has(input:checked) {
    background: rgba(114, 82, 81, 0.2);
    border-color: var(--secondary);
}

.radio-label,
.checkbox-label {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: #ccc;
    font-size: 0.9rem;
}

.radio-label i,
.checkbox-label i {
    color: var(--secondary);
    width: 18px;
    font-size: 0.85rem;
}

.price {
    color: #a67c7c;
    font-weight: 600;
    font-size: 0.85rem;
    white-space: nowrap;
}

.price.included {
    color: #2ecc71;
}

.price.monthly {
    color: #f39c12;
}

/* Range Slider */
.range-group {
    padding: 0 0.5rem;
}

input[type="range"] {
    width: 100%;
    height: 6px;
    background: rgba(114, 82, 81, 0.3);
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
    margin: 1rem 0;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #725251, #a67c7c);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(114, 82, 81, 0.4);
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

.range-labels {
    display: flex;
    justify-content: space-between;
    color: #666;
    font-size: 0.8rem;
}

.range-value {
    display: flex;
    justify-content: space-between;
    margin-top: 0.8rem;
    font-weight: 600;
    color: #e0e0e0;
    font-size: 0.95rem;
}

/* Custom inputs */
.custom-input-group {
    margin-bottom: 1rem;
}

.custom-input-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid rgba(114, 82, 81, 0.3);
    border-radius: 10px;
    color: #e0e0e0;
    font-size: 0.95rem;
    font-family: inherit;
    resize: vertical;
    min-height: 80px;
}

.custom-input-group textarea:focus {
    outline: none;
    border-color: var(--secondary);
}

.custom-input-group textarea::placeholder {
    color: #666;
}

/* Summary Card */
.price-summary {
    position: sticky;
    top: 90px;
    align-self: start;
}

.summary-card {
    background: rgba(15, 15, 15, 0.95);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid var(--border);
}

.summary-card h2 {
    color: #e0e0e0;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.summary-card h2 i {
    color: var(--secondary);
}

.summary-items {
    margin: 1rem 0;
    max-height: 300px;
    overflow-y: auto;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.6rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid rgba(114, 82, 81, 0.1);
    font-size: 0.9rem;
}

.summary-item span:first-child {
    color: #999;
}

.summary-item span:last-child {
    color: #e0e0e0;
    font-weight: 500;
}

.total-price {
    display: flex;
    justify-content: space-between;
    font-size: 1.3rem;
    font-weight: 700;
    margin: 1.5rem 0;
    padding-top: 1.5rem;
    border-top: 2px solid var(--border);
    color: #e0e0e0;
}

.total-price span:last-child {
    color: var(--secondary);
    font-size: 1.5rem;
}

.summary-actions {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.cta-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    padding: 1.1rem;
    background: linear-gradient(135deg, #725251, #a67c7c);
    color: white;
    text-decoration: none;
    text-align: center;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(114, 82, 81, 0.4);
}

.cta-button.secondary {
    background: transparent;
    border: 1px solid var(--secondary);
    color: var(--secondary);
}

.cta-button.secondary:hover {
    background: rgba(114, 82, 81, 0.15);
}

.price-note {
    text-align: center;
    color: #666;
    font-size: 0.8rem;
    margin-top: 1rem;
    line-height: 1.5;
}

/* Responsive */
@media (max-width: 1024px) {
    .packs-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .pack-card.featured {
        transform: none;
        order: -1;
    }
    
    .pack-card.featured:hover {
        transform: translateY(-8px);
    }
    
    .calculation-form {
        grid-template-columns: 1fr;
    }

    .price-summary {
        position: static;
    }
    
    .radio-group,
    .checkbox-group {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 1rem;
    }
    
    .pack-card {
        padding: 1.5rem;
    }
    
    .service-options,
    .summary-card {
        padding: 1.5rem;
    }
    
    .radio-option,
    .checkbox-option {
        padding: 0.8rem;
    }
    
    .section-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .close-devis-btn {
        position: static;
        transform: none;
        margin-top: 1rem;
    }
}

/* ==================== PACK STACK TECH ==================== */
.pack-stack {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(114, 82, 81, 0.15);
}
.stack-label {
    display: block;
    font-size: 0.7rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 0.7rem;
}
.stack-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}
.stack-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.7rem;
    background: rgba(114, 82, 81, 0.08);
    border: 1px solid rgba(114, 82, 81, 0.2);
    border-radius: 6px;
    font-size: 0.75rem;
    color: #ccc;
    font-weight: 500;
}
.stack-pill i {
    color: #a67c7c;
    font-size: 0.85rem;
}
.pack-card.featured .stack-pill {
    background: rgba(114, 82, 81, 0.15);
    border-color: rgba(114, 82, 81, 0.35);
    color: #ddd;
}
