/* =====================================================
   HD&YOU - TUNNEL DE VENTE MINIMALISTE
   Design épuré et professionnel
   ===================================================== */

:root {
    /* Couleurs principales */
    --hd-black: #000000;
    --hd-gray-900: #1a1a1a;
    --hd-gray-800: #333333;
    --hd-gray-700: #4a4a4a;
    --hd-gray-600: #666666;
    --hd-gray-500: #7d7d7d;
    --hd-gray-400: #999999;
    --hd-gray-300: #cccccc;
    --hd-gray-200: #e5e5e5;
    --hd-gray-100: #f5f5f5;
    --hd-gray-50: #fafafa;
    --hd-white: #ffffff;
    
    /* Couleur accent */
    --hd-yellow: #fdbf0a;
    --hd-yellow-hover: #e5ad09;
    --hd-yellow-light: #fef3d9;
    
    /* Couleurs d'état */
    --hd-success: #10b981;
    --hd-success-light: #d1fae5;
    --hd-error: #ef4444;
    --hd-error-light: #fee2e2;
    --hd-info: #3b82f6;
    --hd-info-light: #dbeafe;
    
    /* Espacements */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;
    
    /* Bordures */
    --border-width: 1px;
    --border-radius: 8px;
    --border-radius-sm: 4px;
    --border-radius-lg: 12px;
    
    /* Ombres subtiles */
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08);
    
    /* Transitions */
    --transition-fast: 150ms ease-in-out;
    --transition-base: 250ms ease-in-out;
    --transition-slow: 350ms ease-in-out;
    
    /* Typographie */
    --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
}

/* =====================================================
   RESET & BASE
   ===================================================== */

.tunnel-wrapper {
    min-height: 100vh;
    background: var(--hd-white);
    font-family: var(--font-body);
    color: var(--hd-black);
}

/* =====================================================
   BARRE DE PROGRESSION MINIMALISTE
   ===================================================== */

.tunnel-progress {
    background: var(--hd-white);
    border-bottom: var(--border-width) solid var(--hd-gray-200);
    padding: var(--space-xl) 0;
    position: sticky;
    top: 0;
    backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, 0.98);
}

.progress-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.progress-track {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    max-width: 720px;
    margin: 0 auto;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    flex: 1;
    position: relative;
}

.progress-step::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: var(--hd-gray-200);
    z-index: 0;
}

.progress-step:last-child::after {
    display: none;
}

.progress-step.is-complete::after {
    background: var(--hd-black);
}

.step-badge {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--hd-white);
    border: 2px solid var(--hd-gray-300);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: var(--font-weight-semibold);
    color: var(--hd-gray-500);
    position: relative;
    z-index: 1;
    transition: all var(--transition-base);
}

.progress-step.is-active .step-badge {
    background: var(--hd-yellow);
    border-color: var(--hd-yellow);
    color: var(--hd-black);
    transform: scale(1.1);
}

.progress-step.is-complete .step-badge {
    background: var(--hd-black);
    border-color: var(--hd-black);
    color: var(--hd-white);
}

.step-label {
    font-size: 12px;
    font-weight: var(--font-weight-medium);
    color: var(--hd-gray-600);
    text-align: center;
    letter-spacing: 0.3px;
}

.progress-step.is-active .step-label {
    color: var(--hd-black);
    font-weight: var(--font-weight-semibold);
}

.progress-step.is-complete .step-label {
    color: var(--hd-black);
}

/* =====================================================
   LAYOUT PRINCIPAL
   ===================================================== */

.tunnel-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--space-3xl) var(--space-lg);
}

.tunnel-split {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: var(--space-3xl);
}

/* Colonne principale */
.tunnel-main {
    max-width: 800px;
}

.main-header {
    margin-bottom: var(--space-2xl);
}

.main-title {
    font-size: 32px;
    font-weight: var(--font-weight-bold);
    color: var(--hd-black);
    margin: 0 0 var(--space-sm) 0;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.main-subtitle {
    font-size: 16px;
    color: var(--hd-gray-600);
    margin: 0;
    line-height: 1.5;
    font-weight: var(--font-weight-normal);
}

.main-body {
    /* Contenu */
}

/* Colonne récapitulatif */
.tunnel-aside {
    position: relative;
}

.summary-card {
    position: sticky;
    top: 120px;
    background: var(--hd-white);
    border: var(--border-width) solid var(--hd-gray-200);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
}

.summary-header {
    padding: var(--space-lg);
    border-bottom: var(--border-width) solid var(--hd-gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.summary-title {
    font-size: 18px;
    font-weight: var(--font-weight-semibold);
    color: var(--hd-black);
    margin: 0;
}

.summary-count {
    font-size: 14px;
    color: var(--hd-gray-600);
    font-weight: var(--font-weight-medium);
}

.summary-body {
    padding: var(--space-lg);
}

/* =====================================================
   RÉCAPITULATIF DE COMMANDE
   ===================================================== */

.order-summary {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

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

.summary-label {
    color: var(--hd-gray-700);
    font-weight: var(--font-weight-normal);
}

.summary-value {
    color: var(--hd-black);
    font-weight: var(--font-weight-semibold);
}

.summary-value.is-success {
    color: var(--hd-success);
}

.summary-total {
    margin-top: var(--space-lg);
    padding-top: var(--space-lg);
    border-top: 2px solid var(--hd-black);
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.total-label {
    font-size: 16px;
    font-weight: var(--font-weight-semibold);
    color: var(--hd-black);
}

.total-amount {
    font-size: 36px;
    font-weight: var(--font-weight-bold);
    color: var(--hd-black);
    letter-spacing: -1px;
}

.total-tax {
    font-size: 13px;
    color: var(--hd-gray-500);
    text-align: right;
    margin-top: var(--space-xs);
}

/* =====================================================
   BOUTONS
   ===================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--border-radius);
    font-size: 15px;
    font-weight: var(--font-weight-semibold);
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-base);
    border: var(--border-width) solid transparent;
    white-space: nowrap;
}

.btn-primary {
    background: var(--hd-yellow);
    color: var(--hd-black);
    border-color: var(--hd-yellow);
}

.btn-primary:hover {
    background: var(--hd-yellow-hover);
    border-color: var(--hd-yellow-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--hd-white);
    color: var(--hd-black);
    border-color: var(--hd-gray-300);
}

.btn-secondary:hover {
    background: var(--hd-gray-50);
    border-color: var(--hd-gray-400);
}

.btn-ghost {
    background: transparent;
    color: var(--hd-gray-700);
    border-color: transparent;
}

.btn-ghost:hover {
    background: var(--hd-gray-100);
    color: var(--hd-black);
}

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

.btn-danger:hover {
    background: var(--hd-error-light);
    color: var(--hd-error);
}

.btn-lg {
    padding: var(--space-lg) var(--space-xl);
    font-size: 16px;
}

.btn-block {
    width: 100%;
}

/* =====================================================
   LISTE ARTICLES PANIER
   ===================================================== */

.cart-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.cart-item {
    display: grid;
    grid-template-columns: 100px 1fr auto;
    gap: var(--space-lg);
    padding: var(--space-lg);
    background: var(--hd-white);
    border: var(--border-width) solid var(--hd-gray-200);
    border-radius: var(--border-radius);
    transition: all var(--transition-base);
}

.cart-item:hover {
    border-color: var(--hd-gray-300);
    box-shadow: var(--shadow-sm);
}

.item-visual {
    width: 100px;
    height: 100px;
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    background: var(--hd-gray-100);
    position: relative;
}

.item-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-visual-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--hd-gray-400);
    font-size: 32px;
}

.item-badge {
    position: absolute;
    top: var(--space-xs);
    left: var(--space-xs);
    background: var(--hd-yellow);
    color: var(--hd-black);
    font-size: 10px;
    font-weight: var(--font-weight-semibold);
    padding: 4px 8px;
    border-radius: var(--border-radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.item-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    justify-content: center;
}

.item-name {
    font-size: 16px;
    font-weight: var(--font-weight-semibold);
    color: var(--hd-black);
    line-height: 1.3;
}

.item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.meta-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: var(--hd-gray-600);
    font-weight: var(--font-weight-normal);
}

.meta-tag i {
    font-size: 11px;
    color: var(--hd-gray-500);
}

.item-actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    align-items: flex-end;
    justify-content: center;
}

.item-price {
    text-align: right;
}

.item-price {
    font-size: 20px;
    font-weight: var(--font-weight-bold);
    color: var(--hd-black);
    display: block;
}

.price-unit {
    font-size: 12px;
    color: var(--hd-gray-500);
    font-weight: var(--font-weight-normal);
    display: block;
    margin-top: var(--space-xs);
}

.qty-control {
    display: inline-flex;
    align-items: center;
    border: var(--border-width) solid var(--hd-gray-300);
    border-radius: var(--border-radius);
    overflow: hidden;
    background: var(--hd-white);
}

.qty-btn {
    width: 32px;
    height: 32px;
    background: var(--hd-white);
    border: none;
    color: var(--hd-gray-700);
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.qty-btn:hover {
    background: var(--hd-gray-100);
    color: var(--hd-black);
}

.qty-input {
    width: 44px;
    height: 32px;
    border: none;
    border-left: var(--border-width) solid var(--hd-gray-300);
    border-right: var(--border-width) solid var(--hd-gray-300);
    text-align: center;
    font-size: 14px;
    font-weight: var(--font-weight-semibold);
    color: var(--hd-black);
    background: var(--hd-white);
}

.qty-input:focus {
    outline: none;
    background: var(--hd-gray-50);
}

.item-remove {
    width: 32px;
    height: 32px;
    background: var(--hd-white);
    border: var(--border-width) solid var(--hd-gray-300);
    border-radius: var(--border-radius);
    color: var(--hd-gray-600);
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
}

.item-remove:hover {
    background: var(--hd-error);
    border-color: var(--hd-error);
    color: var(--hd-white);
}

/* =====================================================
   CODE PROMO
   ===================================================== */

.promo-section {
    padding: var(--space-lg);
    background: var(--hd-gray-50);
    border-radius: var(--border-radius);
    margin-bottom: var(--space-lg);
}

.promo-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.promo-icon {
    color: var(--hd-gray-600);
    font-size: 16px;
}

.promo-title {
    font-size: 14px;
    font-weight: var(--font-weight-semibold);
    color: var(--hd-black);
}

.promo-form {
    display: flex;
    gap: var(--space-sm);
}

.promo-input {
    flex: 1;
    padding: var(--space-md);
    border: var(--border-width) solid var(--hd-gray-300);
    border-radius: var(--border-radius);
    font-size: 14px;
    font-weight: var(--font-weight-medium);
    text-transform: uppercase;
    background: var(--hd-white);
    color: var(--hd-black);
    transition: all var(--transition-fast);
}

.promo-input:focus {
    outline: none;
    border-color: var(--hd-black);
}

.promo-input::placeholder {
    color: var(--hd-gray-400);
    text-transform: none;
}

.promo-apply {
    width: 44px;
    height: 44px;
    background: var(--hd-black);
    border: none;
    border-radius: var(--border-radius);
    color: var(--hd-white);
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.promo-apply:hover {
    background: var(--hd-gray-900);
    transform: scale(1.05);
}

/* =====================================================
   BADGES DE CONFIANCE
   ===================================================== */

.trust-section {
    margin-top: var(--space-lg);
    padding-top: var(--space-lg);
    border-top: var(--border-width) solid var(--hd-gray-200);
}

.trust-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    font-size: 13px;
    font-weight: var(--font-weight-medium);
    color: var(--hd-gray-700);
    margin-bottom: var(--space-md);
}

.trust-title i {
    color: var(--hd-success);
    font-size: 16px;
}

.trust-badges {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-md);
}

.trust-badge {
    font-size: 28px;
    color: var(--hd-gray-400);
    transition: color var(--transition-fast);
}

.trust-badge:hover {
    color: var(--hd-gray-700);
}

/* =====================================================
   ÉTAT VIDE
   ===================================================== */

.empty-state {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--space-3xl);
}

.empty-icon {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--hd-gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-xl);
}

.empty-icon i {
    font-size: 48px;
    color: var(--hd-gray-400);
}

.empty-title {
    font-size: 28px;
    font-weight: var(--font-weight-bold);
    color: var(--hd-black);
    margin: 0 0 var(--space-md) 0;
}

.empty-text {
    font-size: 16px;
    color: var(--hd-gray-600);
    line-height: 1.6;
    margin: 0 0 var(--space-xl) 0;
    max-width: 500px;
}

.empty-actions {
    display: flex;
    gap: var(--space-md);
}

/* =====================================================
   FORMULAIRES
   ===================================================== */

.form-section {
    margin-bottom: var(--space-xl);
}

.section-title {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    font-size: 18px;
    font-weight: var(--font-weight-semibold);
    color: var(--hd-black);
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-md);
    border-bottom: var(--border-width) solid var(--hd-gray-200);
}

.section-title i {
    color: var(--hd-gray-600);
    font-size: 18px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.form-row.full {
    grid-template-columns: 1fr;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.form-label {
    font-size: 14px;
    font-weight: var(--font-weight-medium);
    color: var(--hd-black);
}

.form-input,
.form-select {
    padding: 11px var(--space-md);
    border: var(--border-width) solid var(--hd-gray-300);
    border-radius: var(--border-radius);
    font-size: 15px;
    color: var(--hd-black);
    background: var(--hd-white);
    transition: all var(--transition-fast);
    font-family: var(--font-body);
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: var(--hd-black);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

.form-input::placeholder {
    color: var(--hd-gray-400);
}

/* =====================================================
   ALERTES
   ===================================================== */

.alert-box {
    padding: var(--space-lg);
    border-radius: var(--border-radius);
    margin: var(--space-lg) 0;
    display: flex;
    gap: var(--space-md);
    align-items: flex-start;
}

.alert-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.alert-content {
    flex: 1;
}

.alert-title {
    font-size: 14px;
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--space-xs);
}

.alert-text {
    font-size: 14px;
    line-height: 1.5;
}

.alert-success {
    background: var(--hd-success-light);
    border: var(--border-width) solid var(--hd-success);
    color: #065f46;
}

.alert-success .alert-icon {
    color: var(--hd-success);
}

.alert-warning {
    background: var(--hd-yellow-light);
    border: var(--border-width) solid var(--hd-yellow);
    color: #78350f;
}

.alert-warning .alert-icon {
    color: #92400e;
}

.alert-info {
    background: var(--hd-info-light);
    border: var(--border-width) solid var(--hd-info);
    color: #1e3a8a;
}

.alert-info .alert-icon {
    color: var(--hd-info);
}

.alert-error {
    background: var(--hd-error-light);
    border: var(--border-width) solid var(--hd-error);
    color: #7f1d1d;
}

.alert-error .alert-icon {
    color: var(--hd-error);
}

/* =====================================================
   PAGE SUCCÈS
   ===================================================== */

.success-hero {
    text-align: center;
    padding: var(--space-3xl) 0;
    margin-bottom: var(--space-2xl);
}

.success-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--hd-success);
    color: var(--hd-white);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-xl);
    font-size: 36px;
}

.success-title {
    font-size: 36px;
    font-weight: var(--font-weight-bold);
    color: var(--hd-black);
    margin: 0 0 var(--space-md) 0;
}

.success-text {
    font-size: 16px;
    color: var(--hd-gray-600);
    line-height: 1.6;
    margin: 0;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
    margin-bottom: var(--space-2xl);
}

.info-card {
    padding: var(--space-lg);
    background: var(--hd-white);
    border: var(--border-width) solid var(--hd-gray-200);
    border-radius: var(--border-radius);
    transition: all var(--transition-base);
}

.info-card:hover {
    border-color: var(--hd-gray-300);
    box-shadow: var(--shadow-md);
}

.info-label {
    font-size: 12px;
    font-weight: var(--font-weight-medium);
    color: var(--hd-gray-600);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--space-sm);
}

.info-value {
    font-size: 18px;
    font-weight: var(--font-weight-semibold);
    color: var(--hd-black);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: var(--border-radius-sm);
    font-size: 13px;
    font-weight: var(--font-weight-semibold);
}

.badge-paid {
    background: var(--hd-success-light);
    color: var(--hd-success);
    border: var(--border-width) solid var(--hd-success);
}

/* =====================================================
   RESPONSIVE
   ===================================================== */

@media (max-width: 1024px) {
    .tunnel-split {
        grid-template-columns: 1fr 380px;
        gap: var(--space-2xl);
    }
}

@media (max-width: 768px) {
    .tunnel-content {
        padding: var(--space-xl) var(--space-md);
    }
    
    .tunnel-split {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
    
    .tunnel-aside {
        order: 2;
    }
    
    .summary-card {
        position: static;
    }
    
    .main-title {
        font-size: 24px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .cart-item {
        grid-template-columns: 80px 1fr;
        gap: var(--space-md);
    }
    
    .item-visual {
        width: 80px;
        height: 80px;
    }
    
    .item-actions {
        grid-column: 1 / -1;
        flex-direction: row;
        justify-content: space-between;
        margin-top: var(--space-md);
        padding-top: var(--space-md);
        border-top: var(--border-width) solid var(--hd-gray-200);
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .progress-step {
        flex: 1;
    }
    
    .step-badge {
        width: 36px;
        height: 36px;
        font-size: 13px;
    }
    
    .step-label {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .tunnel-progress {
        padding: var(--space-lg) 0;
    }
    
    .step-label {
        display: none;
    }
    
    .progress-step::after {
        top: 18px;
    }
    
    .main-title {
        font-size: 20px;
    }
    
    .empty-title {
        font-size: 22px;
    }
    
    .empty-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .total-amount {
        font-size: 28px;
    }
}

