/* Accessibilité — focus visible */
:focus-visible {
    outline: 2px solid #4A6FA5 !important;
    outline-offset: 2px;
}

/* ===== Pricing Cards (Landing) ===== */
.pricing-highlights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.pricing-card {
    background: white;
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.pricing-card-popular {
    border: 2px solid #5b6abf;
    transform: scale(1.05);
}

.pricing-card-popular:hover {
    transform: scale(1.05) translateY(-4px);
}

.pricing-card-free {
    border: 2px solid #27ae60;
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #5b6abf;
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

.pricing-card-free .pricing-badge {
    background: #27ae60;
}

.pricing-card h3 {
    font-size: 1.3rem;
    color: #2c3e50;
    margin: 1rem 0 0.5rem;
}

.pricing-price {
    margin: 1rem 0;
}

.pricing-amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
}

.pricing-period {
    font-size: 1rem;
    color: #666;
}

.pricing-volume {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.pricing-features {
    list-style: none;
    text-align: left;
    margin-bottom: 1.5rem;
}

.pricing-features li {
    padding: 0.4rem 0;
    color: #555;
    font-size: 0.9rem;
}

.pricing-features li::before {
    content: "\2713";
    color: #27ae60;
    font-weight: bold;
    margin-right: 0.5rem;
}

.btn-outline-primary {
    background: transparent;
    border: 1.5px solid #5b6abf;
    color: #5b6abf;
    display: block;
    text-align: center;
}

.btn-outline-primary:hover {
    background: #5b6abf;
    color: white;
}

.pricing-cta {
    text-align: center;
    padding: 1.5rem 0;
}

.pricing-cta p {
    color: #666;
    margin-bottom: 1rem;
}

/* ===== Pricing Groups (Home page) ===== */
.pricing-group {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.pricing-group-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.pricing-group-icon {
    font-size: 2rem;
}

.pricing-group-title {
    font-size: 1.3rem;
    color: #2c3e50;
    margin: 0;
}

.pricing-group-subtitle {
    color: #666;
    font-size: 0.9rem;
    margin: 0.25rem 0 0;
}

.pricing-group-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

@media (max-width: 768px) {
    .pricing-group-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* ===== Pricing Calculator ===== */
.pricing-calculator {
    background: white;
    max-width: 800px;
    margin: 0 auto;
}

.calculator-slider-container {
    margin: 1.5rem 0;
}

.calculator-slider {
    width: 100%;
    height: 8px;
    -webkit-appearance: none;
    appearance: none;
    background: #e5e7eb;
    border-radius: 4px;
    outline: 2px solid transparent;
}

.calculator-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #5b6abf;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(91, 106, 191, 0.4);
}

.calculator-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #5b6abf;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(91, 106, 191, 0.4);
}

.calculator-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    color: #767676;
    font-size: 0.8rem;
}

.calculator-result {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
    padding: 1.5rem;
    background: #f8f9ff;
    border-radius: 12px;
}

.calculator-big-number {
    font-size: 3rem;
    font-weight: 700;
    color: #2c3e50;
}

.calculator-unit {
    font-size: 1rem;
    color: #666;
    margin-left: 0.25rem;
}

.calculator-arrow {
    font-size: 2rem;
    color: #5b6abf;
}

.calculator-price .calculator-big-number {
    color: #5b6abf;
}

/* ===== Breakdown ===== */
.calculator-breakdown {
    margin-top: 1rem;
}

.breakdown-title {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 0.5rem;
}

.breakdown-lines {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.breakdown-line {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 1rem;
    padding: 0.4rem 0.75rem;
    font-size: 0.85rem;
    background: #fafafa;
    border-radius: 6px;
    color: #555;
}

.breakdown-free {
    background: #f0fdf4;
    color: #166534;
}

.breakdown-price {
    font-weight: 600;
    text-align: right;
    min-width: 5rem;
}

.breakdown-total {
    text-align: right;
    padding: 0.75rem;
    margin-top: 0.5rem;
    border-top: 2px solid #5b6abf;
    font-size: 1.1rem;
    color: #2c3e50;
}

/* ===== Pricing Table ===== */
.pricing-table {
    width: 100%;
    border-collapse: collapse;
}

.pricing-table th,
.pricing-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.pricing-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pricing-table th small {
    display: block;
    text-transform: none;
    font-weight: 400;
    font-size: 0.7rem;
    letter-spacing: normal;
    margin-top: 0.2rem;
}

.pricing-table td {
    color: #555;
}

.tier-free td {
    background: #f0fdf4;
}

.comparison-table .highlight {
    color: #166534;
    font-weight: 600;
    background: #f0fdf4;
}

.comparison-table .no-offer {
    color: #767676;
    font-style: italic;
    background: #fafafa;
}

/* ===== FAQ ===== */
.faq-item {
    padding: 1rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item h4 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.faq-item p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ===== Subscription Card (Dashboard) ===== */
.subscription-card {
    background: linear-gradient(135deg, #f8f9ff 0%, #eef0ff 100%);
    border: 1px solid #d4d8f0;
    text-align: left;
}

.subscription-card .stat-value {
    color: #5b6abf;
}

.subscription-tier-badge {
    display: inline-block;
    background: #5b6abf;
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 0.25rem;
}

/* ===== Storage Bar (Dashboard) ===== */
.storage-bar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.storage-bar-header h3 {
    margin: 0;
}

.storage-bar-percent {
    font-size: 0.9rem;
    font-weight: 700;
    color: #5b6abf;
}

.storage-bar-percent-warning {
    color: #f59e0b;
}

.storage-bar-percent-danger {
    color: #ef4444;
}

.storage-bar-track {
    width: 100%;
    height: 12px;
    background: #e8e8e8;
    border-radius: 6px;
    overflow: hidden;
}

.storage-bar-fill {
    height: 100%;
    background: #5b6abf;
    border-radius: 6px;
    transition: width 0.6s ease;
    min-width: 0;
}

.storage-bar-fill-warning {
    background: #f59e0b;
}

.storage-bar-fill-danger {
    background: #ef4444;
}

.storage-bar-detail {
    margin-top: 0.4rem;
    font-size: 0.85rem;
    color: #666;
}

/* ===== Pricing Table responsive wrapper ===== */
.pricing-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.pricing-table-wrapper .pricing-table {
    min-width: 500px;
}

/* ===== Responsive ===== */
@media (min-width: 481px) and (max-width: 768px) {
    .pricing-highlights {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }

    .pricing-card-popular {
        transform: none;
    }

    .pricing-card-popular:hover {
        transform: translateY(-4px);
    }
}

@media (max-width: 768px) {
    .calculator-result {
        flex-direction: column;
        gap: 0.5rem;
    }

    .calculator-arrow {
        transform: rotate(90deg);
    }

    .calculator-big-number {
        font-size: 2rem;
    }

    .pricing-card-popular {
        transform: none;
    }

    .pricing-card-popular:hover {
        transform: translateY(-4px);
    }

    .pricing-table {
        font-size: 0.85rem;
    }

    .pricing-table th,
    .pricing-table td {
        padding: 0.5rem 0.4rem;
    }

    .breakdown-line {
        grid-template-columns: 1fr;
        gap: 0.15rem;
    }
}

@media (max-width: 480px) {
    .pricing-highlights {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .pricing-card-popular {
        transform: none;
        order: -1;
    }

    .pricing-card-popular:hover {
        transform: translateY(-4px);
    }

    .pricing-table-wrapper .pricing-table {
        min-width: 420px;
    }

    .pricing-table th,
    .pricing-table td {
        padding: 0.4rem 0.3rem;
        font-size: 0.8rem;
    }
}

/* ===== Navbar Dark (pricing, public pages) ===== */
.navbar-dark {
    background: #2c3e50;
}

.navbar-dark .navbar-brand a {
    color: white;
    font-size: 1.35rem;
    font-weight: 700;
}

/* ===== Navbar Public Links ===== */
.navbar-nav-public {
    margin-left: 1rem;
}

.navbar-nav-public a {
    color: rgba(255, 255, 255, 0.8) !important;
    font-weight: 500;
}

.navbar-nav-public a:hover {
    color: white !important;
    background: rgba(255, 255, 255, 0.1) !important;
}

/* ===== Reassurance Section ===== */
.reassurance-section h3 {
    text-align: center;
    margin-bottom: 1.5rem;
}

.reassurance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.reassurance-item {
    text-align: center;
    padding: 1rem;
}

.reassurance-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.reassurance-item h4 {
    color: #2c3e50;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.reassurance-item p {
    color: #666;
    font-size: 0.85rem;
    line-height: 1.5;
}

/* ===== Payment Options ===== */
.payment-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.payment-option-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 2px solid transparent;
}

.payment-option-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.payment-option-highlight {
    border-color: #5b6abf;
}

.payment-option-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.payment-option-card h3 {
    font-size: 1.3rem;
    color: #2c3e50;
    margin-bottom: 0.75rem;
}

.payment-option-tag {
    display: inline-block;
    background: #e8e8e8;
    color: #555;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.payment-option-tag-eco {
    background: #d4edda;
    color: #155724;
}

.payment-option-features {
    list-style: none;
    text-align: left;
    margin-bottom: 1rem;
}

.payment-option-features li {
    padding: 0.4rem 0;
    color: #555;
    font-size: 0.9rem;
}

.payment-option-features li::before {
    content: "\2713";
    color: #27ae60;
    font-weight: bold;
    margin-right: 0.5rem;
}

.payment-option-note {
    color: #888;
    font-size: 0.85rem;
    font-style: italic;
    margin-top: 0.5rem;
}

/* ===== Steps Payment ===== */
.steps-payment {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.step-payment {
    flex: 1;
    text-align: center;
    padding: 1rem;
}

.step-payment-number {
    width: 48px;
    height: 48px;
    background: #5b6abf;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 auto 1rem;
}

.step-payment h4 {
    color: #2c3e50;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.step-payment p {
    color: #666;
    font-size: 0.85rem;
    line-height: 1.5;
}

.step-payment-arrow {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    color: #5b6abf;
    padding-top: 1.5rem;
    flex-shrink: 0;
}

/* ===== Trust Badges ===== */
.trust-badges {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.trust-badge {
    text-align: center;
    padding: 1.5rem 1rem;
    background: #f8f9ff;
    border-radius: 12px;
}

.trust-badge-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.trust-badge p {
    color: #555;
    font-size: 0.85rem;
    line-height: 1.5;
}

/* ===== Paiement CTA ===== */
.paiement-cta-inner {
    text-align: center;
    background: linear-gradient(135deg, #5b6abf 0%, #4a58a0 100%);
    color: white;
    padding: 3rem 2rem;
    border-radius: 16px;
}

.paiement-cta-inner h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.paiement-cta-inner p {
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.paiement-cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.paiement-cta-buttons .btn-outline {
    border-color: white !important;
    color: white !important;
}

.paiement-cta-buttons .btn-outline:hover {
    background: rgba(255, 255, 255, 0.15);
}

.paiement-cta-buttons .btn-primary {
    background: white;
    color: #5b6abf;
}

.paiement-cta-buttons .btn-primary:hover {
    background: #f0f0f0;
}

/* ===== Responsive paiement ===== */
@media (max-width: 768px) {
    .payment-options {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .reassurance-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .trust-badges {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .steps-payment {
        flex-direction: column;
        align-items: center;
    }

    .step-payment-arrow {
        transform: rotate(90deg);
        padding-top: 0;
    }
}

@media (max-width: 480px) {
    .reassurance-grid {
        grid-template-columns: 1fr;
    }

    .trust-badges {
        grid-template-columns: 1fr;
    }
}
