/* ═══════════════════════════════════════════
   SALIVACLEAN B2B - STYLES
   Charte : Navy #0B1B3A, Bleu #00B7FF, Blanc
   ═══════════════════════════════════════════ */

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: Arial, sans-serif;
    color: #0B1B3A;
    background: #FFFFFF;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    width: 100%;
    min-width: 0;
}

a {
    color: #00B7FF;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

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

/* --- CONTAINER --- */
.container {
    max-width: 640px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* --- HEADER --- */
.header {
    background: #0B1B3A;
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 12px 0;
    width: 100%;
}

.header-inner {
    max-width: 640px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-logo {
    height: 36px;
    width: auto;
    flex-shrink: 0;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.badge-pro {
    background: #00B7FF;
    color: #FFFFFF;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-login {
    background: rgba(255,255,255,0.1);
    color: #FFFFFF;
    font-size: 13px;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.2);
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-login:hover {
    background: #00B7FF;
    border-color: #00B7FF;
    text-decoration: none;
}

.header-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-user-name {
    color: #FFFFFF;
    font-size: 13px;
    font-weight: 600;
}

.header-sub {
    color: rgba(255,255,255,0.5);
    font-size: 11px;
}

/* --- BURGER MENU --- */
.burger-btn {
    display: flex;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    flex-direction: column;
    gap: 5px;
    z-index: 201;
}

.burger-line {
    display: block;
    width: 24px;
    height: 2px;
    background: #FFFFFF;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.burger-btn.open .burger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.burger-btn.open .burger-line:nth-child(2) {
    opacity: 0;
}

.burger-btn.open .burger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 60px;
    right: 0;
    width: 280px;
    background: #0B1B3A;
    z-index: 200;
    padding: 24px;
    flex-direction: column;
    overflow-y: auto;
    max-height: calc(100vh - 60px);
    border-radius: 0 0 0 12px;
    box-shadow: -4px 4px 24px rgba(0,0,0,0.3);
}

.mobile-menu.open {
    display: flex;
}

.mobile-menu-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.mobile-menu-logo {
    height: 22px;
    width: auto;
}

.mobile-menu-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    opacity: 0.6;
    transition: opacity 0.2s ease;
    display: flex;
    align-items: center;
}

.mobile-menu-close:hover {
    opacity: 1;
}

/* --- HEADER USER ICON --- */
.header-user-icon {
    display: none;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.2s ease;
    text-decoration: none;
}

.header-user-icon:hover {
    background: rgba(255,255,255,0.2);
    text-decoration: none;
}

.header-user-icon svg {
    display: block;
}

/* --- TRUST BAR --- */
.trust-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 12px 0;
    margin-top: 16px;
}

.trust-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #6B778C;
}

.trust-item svg {
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .mobile-menu {
        top: 0;
        left: 0;
        width: 100%;
        max-height: 100vh;
        border-radius: 0;
        padding: 40px 28px 40px;
        box-shadow: none;
    }
    .mobile-menu-top {
        margin-bottom: 40px;
    }
    .mobile-menu-logo {
        height: 26px;
    }
    .mobile-menu-item {
        padding: 18px 0;
        font-size: 17px;
    }
    .header-user-icon {
        display: flex;
    }
}

@media (max-width: 480px) {
    .trust-bar {
        flex-direction: column;
        gap: 6px;
    }
}

.mobile-menu-items {
    display: flex;
    flex-direction: column;
    gap: 0;
    flex: 1;
}

.mobile-menu-item {
    display: flex;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    color: #FFFFFF;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.2px;
    transition: color 0.2s ease;
}

.mobile-menu-item:hover {
    color: #00B7FF;
    text-decoration: none;
}

.mobile-menu-footer {
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
}

.mobile-menu-footer p {
    color: rgba(255,255,255,0.3);
    font-size: 12px;
}

@media (max-width: 768px) {
    .header-right .btn-login,
    .header-right .header-user-name {
        display: none;
    }
}

/* --- BARRE DE PROGRESSION --- */
.progress-bar {
    background: #FFFFFF;
    border-bottom: 1px solid #E2E8F0;
    position: sticky;
    top: 60px;
    z-index: 99;
    padding: 16px 0 12px;
}

.progress-bar.hidden {
    display: none;
}

.progress-inner {
    max-width: 640px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

.progress-line {
    position: absolute;
    top: 16px;
    left: 60px;
    right: 60px;
    height: 3px;
    background: #E2E8F0;
    border-radius: 2px;
    z-index: 0;
}

.progress-line-fill {
    height: 100%;
    background: #00B7FF;
    border-radius: 2px;
    width: 0%;
    transition: width 0.5s ease;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.step-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #FFFFFF;
    border: 2px solid #E2E8F0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: #6B778C;
    transition: all 0.3s ease;
}

.progress-step.active .step-circle {
    border-color: #00B7FF;
    background: #00B7FF;
    color: #FFFFFF;
}

.progress-step.completed .step-circle {
    border-color: #16A34A;
    background: #16A34A;
    color: #FFFFFF;
}

.step-label {
    font-size: 10px;
    color: #6B778C;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.progress-step.active .step-label {
    color: #00B7FF;
}

.progress-step.completed .step-label {
    color: #16A34A;
}

/* --- MAIN --- */
.main {
    padding: 32px 0 40px;
    min-height: calc(100vh - 200px);
    overflow-x: hidden;
    width: 100%;
}

/* --- STEPS --- */
.step {
    display: none;
    animation: fadeIn 0.4s ease;
}

.step-active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- TYPOGRAPHY --- */
.tag {
    display: inline-block;
    background: #F5FAFF;
    color: #00B7FF;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.title-xl {
    font-size: 28px;
    font-weight: 800;
    color: #0B1B3A;
    line-height: 1.2;
    margin-bottom: 8px;
}

.title-lg {
    font-size: 24px;
    font-weight: 700;
    color: #0B1B3A;
    margin-bottom: 8px;
}

.subtitle {
    font-size: 15px;
    color: #6B778C;
    margin-bottom: 24px;
}

.badge-margin {
    display: inline-block;
    background: #F0FDF4;
    color: #16A34A;
    font-size: 14px;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid #BBF7D0;
    margin-bottom: 28px;
}

/* --- PRODUCTS GRID --- */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 28px;
}

.product-card {
    background: #FFFFFF;
    border-radius: 12px;
    padding: 12px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(11,27,58,0.08);
    border: 1px solid #E2E8F0;
    transition: transform 0.2s ease;
}

.product-card:hover {
    transform: translateY(-2px);
}

.product-img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 8px;
}

.product-name {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- REASSURANCE --- */
.reassurance-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 28px;
}

.reassurance-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: #F5FAFF;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #0B1B3A;
}

.reassurance-icon {
    font-size: 18px;
    flex-shrink: 0;
}

/* --- BUTTONS --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-primary {
    background: #00B7FF;
    color: #FFFFFF;
}

.btn-primary:hover {
    background: #009DE0;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0,183,255,0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: transparent;
    color: #6B778C;
    border: 1px solid #E2E8F0;
}

.btn-secondary:hover {
    background: #F5FAFF;
    color: #0B1B3A;
}

.btn-full {
    width: 100%;
}

.btn-disabled {
    background: #E2E8F0;
    color: #6B778C;
    cursor: not-allowed;
}

.btn-disabled:hover {
    background: #E2E8F0;
    transform: none;
    box-shadow: none;
}

.btn-group {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.btn-group .btn-primary {
    flex: 1;
}

/* --- FORM --- */
.form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 8px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 13px;
    font-weight: 700;
    color: #0B1B3A;
}

.required {
    color: #DC2626;
}

.optional {
    color: #6B778C;
    font-weight: 400;
    font-size: 12px;
}

.form-group input,
.form-group select {
    padding: 12px 14px;
    border: 1.5px solid #E2E8F0;
    border-radius: 8px;
    font-size: 15px;
    font-family: Arial, sans-serif;
    color: #0B1B3A;
    background: #FFFFFF;
    transition: border-color 0.2s ease;
    -webkit-appearance: none;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #00B7FF;
    box-shadow: 0 0 0 3px rgba(0,183,255,0.1);
}

.form-group input.error,
.form-group select.error {
    border-color: #DC2626;
}

.error-msg {
    font-size: 12px;
    color: #DC2626;
    display: none;
}

.error-msg.visible {
    display: block;
}

.field-hint {
    font-size: 12px;
    color: #6B778C;
}

.form-separator {
    text-align: center;
    position: relative;
    margin: 8px 0;
}

.form-separator span {
    background: #FFFFFF;
    padding: 0 12px;
    font-size: 12px;
    font-weight: 700;
    color: #6B778C;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 1;
}

.form-separator::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #E2E8F0;
}

.password-wrapper {
    position: relative;
}

.password-wrapper input {
    width: 100%;
    padding-right: 60px;
}

.toggle-pwd {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #00B7FF;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    padding: 4px 8px;
}

/* --- PACK TABS --- */
.pack-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.pack-tab {
    flex: 1;
    padding: 12px 16px;
    background: #F5FAFF;
    border: 2px solid #E2E8F0;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    color: #6B778C;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    text-align: center;
}

.pack-tab.active {
    border-color: #00B7FF;
    background: #FFFFFF;
    color: #0B1B3A;
}

.tab-badge {
    display: block;
    font-size: 10px;
    color: #16A34A;
    font-weight: 700;
    text-transform: uppercase;
    margin-top: 2px;
}

/* --- PACK CARD --- */
.pack-card {
    background: #F5FAFF;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.pack-card h3 {
    font-size: 18px;
    margin-bottom: 4px;
}

.pack-desc {
    font-size: 13px;
    color: #6B778C;
    margin-bottom: 16px;
}

.pack-panel.hidden {
    display: none;
}

/* --- FLAVOR CHIPS --- */
.flavor-chips {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.chip {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    color: #FFFFFF;
}

.chip-menthe { background: #00B7FF; }
.chip-fraise { background: #E63946; }
.chip-citron { background: #F5B800; color: #0B1B3A; }

/* --- PACK DETAILS --- */
.pack-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pack-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    padding: 6px 0;
    border-bottom: 1px solid #E2E8F0;
}

.pack-detail-row:last-child {
    border-bottom: none;
}

.text-green {
    color: #16A34A;
    font-weight: 700;
}

/* --- QUANTITY SELECTOR --- */
.quantity-selector {
    margin-bottom: 16px;
}

.quantity-selector label {
    font-size: 13px;
    font-weight: 700;
    display: block;
    margin-bottom: 8px;
}

.qty-controls {
    display: flex;
    align-items: center;
    gap: 0;
    width: fit-content;
}

.qty-btn {
    width: 44px;
    height: 44px;
    background: #FFFFFF;
    border: 1.5px solid #E2E8F0;
    font-size: 20px;
    font-weight: 700;
    color: #0B1B3A;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:first-child {
    border-radius: 8px 0 0 8px;
}

.qty-btn:last-child {
    border-radius: 0 8px 8px 0;
}

.qty-btn:hover {
    background: #F5FAFF;
    border-color: #00B7FF;
}

.qty-value {
    width: 64px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    border-top: 1.5px solid #E2E8F0;
    border-bottom: 1.5px solid #E2E8F0;
    background: #FFFFFF;
}

/* --- TIER INFO --- */
.tier-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.tier-badge {
    background: #00B7FF;
    color: #FFFFFF;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
}

.tier-price {
    font-size: 13px;
    font-weight: 600;
    color: #0B1B3A;
}

.contact-msg {
    padding: 12px 14px;
    background: #FEF3C7;
    border-left: 3px solid #F5B800;
    border-radius: 6px;
    font-size: 13px;
    color: #0B1B3A;
    margin-bottom: 16px;
}

.contact-msg.hidden {
    display: none;
}

/* --- FLAVOR SPLIT --- */
.flavor-split {
    margin-bottom: 16px;
}

.flavor-split h4 {
    font-size: 14px;
    margin-bottom: 12px;
}

.flavor-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #E2E8F0;
}

.flavor-label {
    font-size: 14px;
    font-weight: 700;
}

.flavor-controls {
    display: flex;
    align-items: center;
    gap: 0;
}

.qty-btn-sm {
    width: 36px;
    height: 36px;
    background: #FFFFFF;
    border: 1.5px solid #E2E8F0;
    font-size: 18px;
    font-weight: 700;
    color: #0B1B3A;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn-sm:first-child { border-radius: 6px 0 0 6px; }
.qty-btn-sm:last-child { border-radius: 0 6px 6px 0; }
.qty-btn-sm:hover { background: #F5FAFF; border-color: #00B7FF; }

.flavor-input {
    width: 52px;
    height: 36px;
    text-align: center;
    font-size: 15px;
    font-weight: 700;
    border: 1.5px solid #E2E8F0;
    border-left: none;
    border-right: none;
    background: #FFFFFF;
    font-family: Arial, sans-serif;
    color: #0B1B3A;
}

.flavor-total {
    margin-top: 12px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
}

.flavor-total.valid {
    background: #F0FDF4;
    color: #16A34A;
    border: 1px solid #BBF7D0;
}

.flavor-total.invalid {
    background: #FEF2F2;
    color: #DC2626;
    border: 1px solid #FECACA;
}

/* --- CHECKBOX CARD (PLV) --- */
.checkbox-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: #FFFFFF;
    border: 1.5px solid #E2E8F0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.checkbox-card:hover {
    border-color: #00B7FF;
}

.checkbox-card input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #00B7FF;
    flex-shrink: 0;
}

.checkbox-label {
    font-size: 14px;
    font-weight: 600;
}

/* --- RECAP BLOCK --- */
.recap-block {
    background: #0B1B3A;
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
    color: #FFFFFF;
}

.recap-block h4 {
    font-size: 16px;
    margin-bottom: 16px;
    color: #FFFFFF;
}

.recap-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: 14px;
}

.recap-row span:first-child {
    color: rgba(255,255,255,0.6);
}

.recap-separator {
    height: 1px;
    background: rgba(255,255,255,0.1);
    margin: 8px 0;
}

.recap-total {
    font-size: 18px;
    font-weight: 700;
    padding-top: 10px;
}

.recap-total span:last-child {
    color: #00B7FF;
}

/* --- PACK PREMIUM (redesign) --- */
.pack-premium {
    background: linear-gradient(135deg, #F5FAFF 0%, #FFFFFF 100%);
    border: 2px solid #E2E8F0;
    position: relative;
    overflow: hidden;
}

.pack-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
    flex-wrap: wrap;
    gap: 8px;
}

.pack-label-recommended {
    background: #F0FDF4;
    color: #16A34A;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid #BBF7D0;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.pack-products-preview {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 16px 0;
    padding: 16px 0;
    background: #FFFFFF;
    border-radius: 10px;
    border: 1px solid #E2E8F0;
}

.pack-preview-img {
    width: 80px;
    height: auto;
    border-radius: 8px;
    transition: transform 0.2s ease;
}

.pack-preview-img:hover {
    transform: scale(1.05);
}

.pack-flavors-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.pack-flavor-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: #FFFFFF;
    border-radius: 8px;
    border: 1px solid #E2E8F0;
}

.flavor-thumb {
    width: 36px;
    height: 36px;
    object-fit: contain;
    border-radius: 6px;
    flex-shrink: 0;
}

.pack-flavor-name {
    font-size: 14px;
    font-weight: 700;
}

.pack-margin-info {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #F0FDF4;
    border: 1px solid #BBF7D0;
    border-radius: 10px;
    padding: 14px 16px;
    margin-top: 16px;
}

.margin-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.margin-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.margin-text strong {
    font-size: 14px;
    color: #16A34A;
}

.margin-text span {
    font-size: 12px;
    color: #6B778C;
}

/* --- FLAVOR LABEL WITH THUMBNAIL --- */
.flavor-label-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.flavor-thumb-sm {
    width: 24px;
    height: 24px;
    object-fit: contain;
    border-radius: 4px;
    flex-shrink: 0;
}

/* --- PRICE TIER BADGE (animated) --- */
.price-tier-badge {
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    color: #FFFFFF;
    transition: all 0.4s ease;
}

.price-tier-badge.standard {
    background: #00B7FF;
}

.price-tier-badge.volume {
    background: #16A34A;
    animation: tierPulse 0.6s ease;
}

@keyframes tierPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.08); }
    100% { transform: scale(1); }
}

/* --- ORDER SUMMARY (redesigned recap) --- */
.order-summary {
    background: linear-gradient(135deg, #0B1B3A, #0F2347);
    border-radius: 14px;
    padding: 24px;
    margin-top: 20px;
    color: #FFFFFF;
}

.summary-title {
    font-size: 17px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 20px;
}

.summary-section-title {
    font-size: 11px;
    font-weight: 700;
    color: rgba(255,255,255,0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    margin-top: 4px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
    font-size: 14px;
}

.summary-row span:first-child {
    color: rgba(255,255,255,0.6);
}

.summary-row span:last-child {
    font-weight: 600;
}

.summary-flavor-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0 4px 8px;
    font-size: 13px;
}

.summary-flavor-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.5);
}

.summary-flavor-row span:last-child {
    color: rgba(255,255,255,0.7);
    font-weight: 600;
}

.summary-divider {
    height: 1px;
    background: rgba(255,255,255,0.1);
    margin: 12px 0;
}

.summary-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 8px;
}

.summary-total-row span:first-child {
    font-size: 16px;
    font-weight: 700;
    color: #FFFFFF;
}

.summary-total-row span:last-child {
    font-size: 28px;
    font-weight: 800;
    color: #00B7FF;
}

/* --- RESPONSIVE NEW ELEMENTS --- */
@media (max-width: 380px) {
    .pack-preview-img {
        width: 60px;
    }
    .flavor-thumb {
        width: 28px;
        height: 28px;
    }
    .summary-total-row span:last-child {
        font-size: 22px;
    }
    .order-summary {
        padding: 18px 16px;
    }
    .pack-margin-info {
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .pack-products-preview {
        gap: 8px;
        padding: 12px 0;
    }
    .pack-preview-img {
        width: 70px;
    }
    .summary-row {
        font-size: 13px;
    }
}

/* --- LEGAL CARDS (etape 4) --- */
.legal-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: #FFFFFF;
    border: 2px solid #E2E8F0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 12px;
}

.legal-card:hover {
    border-color: #00B7FF;
}

.legal-card.checked {
    border-color: #16A34A;
    background: #F0FDF4;
}

.legal-card input[type="checkbox"] {
    width: 22px;
    height: 22px;
    accent-color: #16A34A;
    flex-shrink: 0;
    margin-top: 2px;
}

.legal-card-content {
    flex: 1;
}

.legal-text {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}

.legal-text a {
    color: #00B7FF;
    text-decoration: underline;
}

/* --- DISCLAIMER & SIGNATURE --- */
.disclaimer-block {
    background: #F8FAFC;
    border-left: 3px solid #E2E8F0;
    padding: 14px 16px;
    border-radius: 0 8px 8px 0;
    margin: 20px 0 12px;
}

.disclaimer-block p {
    font-size: 12px;
    color: #6B778C;
    line-height: 1.6;
}

.signature-block {
    background: #EFF6FF;
    border-left: 3px solid #00B7FF;
    padding: 14px 16px;
    border-radius: 0 8px 8px 0;
    margin-bottom: 20px;
}

.signature-block p {
    font-size: 13px;
    color: #0B1B3A;
    line-height: 1.6;
}

/* --- PAYMENT --- */
.payment-card {
    background: #F5FAFF;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 28px;
    text-align: center;
    margin-bottom: 24px;
}

.payment-amount {
    font-size: 36px;
    font-weight: 800;
    color: #0B1B3A;
    margin-bottom: 4px;
}

.payment-entity {
    font-size: 14px;
    color: #6B778C;
    margin-bottom: 16px;
}

.payment-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    font-size: 13px;
    color: #16A34A;
}

/* --- LOADER --- */
.payment-loader {
    text-align: center;
    padding: 40px 20px;
}

.payment-loader.hidden {
    display: none;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #E2E8F0;
    border-top-color: #00B7FF;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.payment-loader p {
    font-size: 14px;
    color: #6B778C;
}

/* --- CONFIRMATION --- */
.confirmation-page {
    text-align: center;
}

.confirm-icon {
    width: 72px;
    height: 72px;
    background: #16A34A;
    color: #FFFFFF;
    font-size: 36px;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    animation: scaleIn 0.4s ease;
}

@keyframes scaleIn {
    from { transform: scale(0.5); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.order-ref {
    display: inline-block;
    background: #0B1B3A;
    color: #FFFFFF;
    font-size: 16px;
    font-weight: 700;
    padding: 10px 24px;
    border-radius: 8px;
    margin-bottom: 24px;
    letter-spacing: 1px;
}

.confirm-recap {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    text-align: left;
}

.confirm-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #F5FAFF;
    font-size: 14px;
}

.confirm-row:last-child {
    border-bottom: none;
}

.confirm-row span {
    color: #6B778C;
}

.confirm-info {
    background: #EFF6FF;
    border-radius: 10px;
    padding: 20px;
    text-align: left;
    margin-bottom: 20px;
}

.confirm-info p {
    font-size: 14px;
    margin-bottom: 8px;
}

.confirm-info ul {
    list-style: none;
    padding: 0;
    margin-bottom: 12px;
}

.confirm-info li {
    font-size: 14px;
    padding: 2px 0;
}

.confirm-info li::before {
    content: "\2022 ";
    color: #00B7FF;
    font-weight: 700;
}

.confirm-contact {
    margin-top: 20px;
}

.confirm-contact p {
    font-size: 14px;
    color: #6B778C;
}

.confirm-contact a {
    color: #00B7FF;
    font-weight: 600;
}

/* --- FOOTER --- */
.footer {
    background: #0B1B3A;
    padding: 32px 0;
    text-align: center;
    width: 100%;
}

.footer p {
    color: rgba(255,255,255,0.4);
    font-size: 12px;
    line-height: 1.8;
}

.footer-links {
    margin-top: 12px;
}

.footer-links a {
    color: rgba(255,255,255,0.6);
    font-size: 12px;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #FFFFFF;
    text-decoration: underline;
}

/* --- LEGAL PAGE --- */
.legal-page {
    padding: 20px 0;
}

.legal-page h1 {
    margin-bottom: 32px;
}

.legal-page h2 {
    font-size: 18px;
    color: #0B1B3A;
    margin: 28px 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #E2E8F0;
}

.legal-page p {
    font-size: 14px;
    color: #6B778C;
    line-height: 1.7;
    margin-bottom: 8px;
}

.legal-page ul {
    padding-left: 20px;
    margin-bottom: 12px;
}

.legal-page li {
    font-size: 14px;
    color: #6B778C;
    line-height: 1.7;
    margin-bottom: 4px;
}

/* --- RESPONSIVE MOBILE --- */
@media (max-width: 380px) {
    .products-grid {
        gap: 8px;
    }

    .product-card {
        padding: 8px;
    }

    .product-name {
        font-size: 11px;
    }

    .title-xl {
        font-size: 24px;
    }

    .title-lg {
        font-size: 20px;
    }

    .reassurance-item {
        font-size: 12px;
        padding: 8px 10px;
    }

    .step-label {
        font-size: 8px;
    }

    .step-circle {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .progress-line {
        left: 40px;
        right: 40px;
    }

    .pack-tab {
        font-size: 12px;
        padding: 10px 8px;
    }

    .recap-row {
        font-size: 13px;
    }

    .recap-total {
        font-size: 16px;
    }

    .payment-amount {
        font-size: 28px;
    }

    .btn {
        padding: 12px 20px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .pack-detail-row {
        font-size: 13px;
    }

    .flavor-row {
        gap: 8px;
    }

    .confirm-row {
        font-size: 13px;
        flex-wrap: wrap;
        gap: 2px;
    }

    .legal-text {
        font-size: 13px;
    }

    .disclaimer-block p,
    .signature-block p {
        font-size: 11px;
    }
}

/* --- RESPONSIVE DESKTOP --- */
@media (min-width: 768px) {
    .reassurance-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .title-xl {
        font-size: 34px;
    }

    .main {
        padding: 48px 0 60px;
    }
}

/* --- CORPORATE REFINEMENTS --- */
.btn-primary {
    box-shadow: 0 2px 8px rgba(0,183,255,0.15);
}

.pack-premium {
    box-shadow: 0 4px 20px rgba(11,27,58,0.06);
}

.order-summary {
    box-shadow: 0 8px 32px rgba(11,27,58,0.12);
}

.payment-card {
    box-shadow: 0 2px 16px rgba(11,27,58,0.06);
}

.payment-badge {
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.confirm-icon {
    box-shadow: 0 4px 16px rgba(22,163,74,0.25);
}

.legal-card.checked {
    box-shadow: 0 0 0 1px #BBF7D0;
}

.header {
    box-shadow: 0 2px 12px rgba(11,27,58,0.15);
}

.progress-bar {
    box-shadow: 0 1px 4px rgba(11,27,58,0.04);
}

/* --- HIDDEN UTILITY --- */
.hidden {
    display: none !important;
}
