/**
 * Tunnel de Vente ESHOPE - Styles CSS
 *
 * @package EshopeTunnel
 * @version 1.0.0
 */

/* ===========================================
   Variables
   =========================================== */
:root {
    --tunnel-primary: #1aabb3;
    --tunnel-primary-dark: #158a91;
    --tunnel-secondary: #0f3460;
    --tunnel-dark: #1a1a2e;
    --tunnel-light: #f8f9fa;
    --tunnel-success: #28a745;
    --tunnel-warning: #ffc107;
    --tunnel-danger: #dc3545;
    --tunnel-info: #17a2b8;
    --tunnel-border: #e0e0e0;
    --tunnel-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    --tunnel-radius: 12px;
    --tunnel-radius-sm: 8px;
}

/* ===========================================
   Base
   =========================================== */
.tunnel-page {
    background: var(--tunnel-light);
}

/* ===========================================
   Hero Section
   =========================================== */
.tunnel-hero {
    background: linear-gradient(135deg, var(--tunnel-dark) 0%, var(--tunnel-secondary) 100%);
    padding: 120px 0 80px;
    color: white;
    position: relative;
    overflow: hidden;
}

.tunnel-hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="rgba(255,255,255,0.03)"/></svg>');
    background-size: 200px;
}

.tunnel-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 20px;
}

.tunnel-badge i {
    color: var(--tunnel-warning);
}

.tunnel-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

.tunnel-title .highlight {
    color: var(--tunnel-primary);
    position: relative;
}

.tunnel-subtitle {
    font-size: 1.15rem;
    opacity: 0.9;
    margin-bottom: 30px;
    max-width: 500px;
}

.tunnel-features {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
}

.tunnel-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: var(--tunnel-radius-sm);
}

.tunnel-feature i {
    color: var(--tunnel-success);
}

.tunnel-hero-visual {
    position: relative;
}

.tunnel-hero-visual img {
    border-radius: var(--tunnel-radius);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* ===========================================
   Buttons
   =========================================== */
.btn-tunnel-primary {
    background: linear-gradient(135deg, var(--tunnel-primary) 0%, var(--tunnel-primary-dark) 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--tunnel-radius-sm);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(26, 171, 179, 0.3);
}

.btn-tunnel-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(26, 171, 179, 0.4);
    color: white;
}

.btn-tunnel-cta {
    background: linear-gradient(135deg, #FFC107 0%, #ff9500 100%);
    color: #000;
    border: none;
    padding: 18px 30px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: var(--tunnel-radius-sm);
    width: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
}

.btn-tunnel-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 193, 7, 0.4);
    color: #000;
}

/* ===========================================
   Includes Section
   =========================================== */
.tunnel-includes {
    padding: 80px 0;
}

.tunnel-include-card {
    background: white;
    padding: 30px;
    border-radius: var(--tunnel-radius);
    text-align: center;
    box-shadow: var(--tunnel-shadow);
    height: 100%;
    transition: transform 0.3s ease;
}

.tunnel-include-card:hover {
    transform: translateY(-5px);
}

.tunnel-include-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--tunnel-primary) 0%, var(--tunnel-secondary) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.tunnel-include-icon i {
    font-size: 28px;
    color: white;
}

.tunnel-include-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--tunnel-dark);
}

.tunnel-include-card p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

/* ===========================================
   Configurator Section
   =========================================== */
.tunnel-configurator {
    padding: 80px 0;
}

.tunnel-config-panel {
    background: white;
    border-radius: var(--tunnel-radius);
    padding: 30px;
    box-shadow: var(--tunnel-shadow);
}

.tunnel-base-offer {
    background: linear-gradient(135deg, rgba(26, 171, 179, 0.05) 0%, rgba(15, 52, 96, 0.05) 100%);
    border: 2px solid var(--tunnel-primary);
    border-radius: var(--tunnel-radius-sm);
    padding: 20px;
}

.tunnel-base-offer h4 {
    color: var(--tunnel-dark);
    font-size: 1.1rem;
}

.tunnel-base-price {
    font-size: 1.3rem;
    color: var(--tunnel-primary);
}

/* Options List */
.tunnel-options-list {
    margin-top: 20px;
}

.tunnel-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border: 1px solid var(--tunnel-border);
    border-radius: var(--tunnel-radius-sm);
    margin-bottom: 10px;
    transition: all 0.2s ease;
}

.tunnel-option:hover {
    border-color: var(--tunnel-primary);
    background: rgba(26, 171, 179, 0.02);
}

.tunnel-option.selected {
    border-color: var(--tunnel-primary);
    background: rgba(26, 171, 179, 0.05);
}

.tunnel-option-checkbox {
    display: flex;
    align-items: flex-start;
    flex: 1;
}

.tunnel-option-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    margin-top: 2px;
    accent-color: var(--tunnel-primary);
    cursor: pointer;
}

.tunnel-option-checkbox label {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    margin: 0;
}

.tunnel-option-name {
    font-weight: 600;
    color: var(--tunnel-dark);
    font-size: 15px;
}

.tunnel-option-desc {
    font-size: 13px;
    color: #666;
    margin-top: 2px;
}

.tunnel-option-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.tunnel-option-price {
    font-weight: 600;
    color: var(--tunnel-secondary);
    white-space: nowrap;
}

/* Quantity Control */
.tunnel-qty-control {
    display: flex;
    align-items: center;
    border: 1px solid var(--tunnel-border);
    border-radius: var(--tunnel-radius-sm);
    overflow: hidden;
}

.qty-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--tunnel-light);
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.qty-btn:hover {
    background: var(--tunnel-primary);
    color: white;
}

.qty-input {
    width: 40px;
    height: 32px;
    border: none;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    -moz-appearance: textfield;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* ===========================================
   Summary Panel
   =========================================== */
.tunnel-summary-panel {
    background: white;
    border-radius: var(--tunnel-radius);
    padding: 30px;
    box-shadow: var(--tunnel-shadow);
    border: 2px solid transparent;
}

.tunnel-summary-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--tunnel-dark);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--tunnel-border);
}

.tunnel-summary-items {
    margin-bottom: 20px;
}

.tunnel-summary-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 14px;
    border-bottom: 1px dashed var(--tunnel-border);
}

.tunnel-summary-item:last-child {
    border-bottom: none;
}

.tunnel-summary-base {
    font-weight: 600;
}

.tunnel-summary-option {
    color: #666;
}

.tunnel-summary-totals {
    background: var(--tunnel-light);
    margin: 0 -30px;
    padding: 20px 30px;
    border-top: 1px solid var(--tunnel-border);
}

.tunnel-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    font-size: 14px;
}

.tunnel-summary-total {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--tunnel-primary);
    margin-top: 10px;
    padding-top: 10px;
    border-top: 2px solid var(--tunnel-primary);
}

/* Recurring Section */
.tunnel-summary-totals-recurring {
    background: #f0f7ff;
    border-top: 1px dashed var(--tunnel-primary);
}

.tunnel-summary-total-recurring {
    color: var(--tunnel-primary);
    border-top-color: var(--tunnel-primary);
}

.tunnel-recurring-note {
    font-size: 12px;
    color: #888;
    text-align: center;
    padding: 10px 30px;
    margin: 0;
    font-style: italic;
}

/* Payment Options */
.tunnel-payment-options {
    margin: 25px 0;
}

.tunnel-payment-options h5 {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #666;
    margin-bottom: 15px;
}

.tunnel-payment-choice {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tunnel-payment-option {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 2px solid var(--tunnel-border);
    border-radius: var(--tunnel-radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
}

.tunnel-payment-option:hover {
    border-color: var(--tunnel-primary);
}

.tunnel-payment-option.active {
    border-color: var(--tunnel-primary);
    background: rgba(26, 171, 179, 0.05);
}

.tunnel-payment-option input {
    margin-right: 12px;
    accent-color: var(--tunnel-primary);
}

.tunnel-payment-label {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.tunnel-payment-label strong {
    color: var(--tunnel-dark);
}

.tunnel-payment-amount {
    color: var(--tunnel-primary);
    font-weight: 600;
}

/* Reassurance */
.tunnel-reassurance {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--tunnel-border);
}

.tunnel-reassurance-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #666;
}

.tunnel-reassurance-item i {
    color: var(--tunnel-success);
}

/* ===========================================
   FAQ Section (Bootstrap 4)
   =========================================== */
.tunnel-faq {
    padding: 80px 0;
}

.tunnel-faq .card {
    border: none;
    margin-bottom: 10px;
    padding: 0;
    border-radius: var(--tunnel-radius-sm) !important;
    overflow: hidden;
    box-shadow: var(--tunnel-shadow);
}

.tunnel-faq .card-header {
    background: white;
    border: none;
    padding: 0;
}

.tunnel-faq .btn-link {
    font-weight: 600;
    color: var(--tunnel-dark);
    text-decoration: none;
    padding: 20px 25px;
    width: 100%;
    text-align: left;
    display: block;
}

.tunnel-faq .btn-link:hover,
.tunnel-faq .btn-link:focus {
    text-decoration: none;
    color: var(--tunnel-primary);
}

.tunnel-faq .btn-link:not(.collapsed) {
    color: var(--tunnel-primary);
}

.tunnel-faq .btn-link:focus {
    box-shadow: none;
}

.tunnel-faq .card-body {
    padding: 0 25px 20px;
    color: #666;
    line-height: 1.7;
}

/* ===========================================
   Checkout Page
   =========================================== */
.tunnel-checkout {
    padding: 50px 0;
    min-height: calc(100vh - 200px);
}

.tunnel-checkout-panel {
    background: white;
    border-radius: var(--tunnel-radius);
    padding: 40px;
    box-shadow: var(--tunnel-shadow);
}

.tunnel-checkout-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--tunnel-dark);
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--tunnel-border);
}

.tunnel-form-group {
    margin-bottom: 20px;
}

.tunnel-form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--tunnel-dark);
    font-size: 14px;
}

.tunnel-form-group label .required {
    color: var(--tunnel-primary);
}

.tunnel-form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--tunnel-border);
    border-radius: var(--tunnel-radius-sm);
    font-size: 15px;
    transition: border-color 0.2s ease;
}

.tunnel-form-control:focus {
    outline: none;
    border-color: var(--tunnel-primary);
}

.tunnel-form-control.error {
    border-color: var(--tunnel-danger);
}

.tunnel-form-error {
    color: var(--tunnel-danger);
    font-size: 13px;
    margin-top: 5px;
}

.tunnel-form-row {
    display: flex;
    gap: 20px;
}

.tunnel-form-row .tunnel-form-group {
    flex: 1;
}

.tunnel-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.tunnel-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    accent-color: var(--tunnel-primary);
}

.tunnel-checkbox label {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

.tunnel-checkout-recap {
    background: var(--tunnel-light);
    border-radius: var(--tunnel-radius-sm);
    padding: 20px;
    margin-bottom: 30px;
}

.tunnel-checkout-recap h5 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
    color: #666;
}

/* ===========================================
   Project Space (Espace Projet)
   =========================================== */
.tunnel-project {
    padding: 50px 0;
    min-height: calc(100vh - 200px);
}

.tunnel-project-header {
    text-align: center;
    margin-bottom: 40px;
}

.tunnel-project-status {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: white;
    padding: 15px 25px;
    border-radius: 50px;
    box-shadow: var(--tunnel-shadow);
    margin-bottom: 20px;
}

.tunnel-project-status-icon {
    font-size: 24px;
}

.tunnel-project-status-text {
    font-weight: 600;
    color: var(--tunnel-dark);
}

.tunnel-project-panel {
    background: white;
    border-radius: var(--tunnel-radius);
    padding: 40px;
    box-shadow: var(--tunnel-shadow);
}

/* Timeline */
.tunnel-timeline {
    position: relative;
    padding: 20px 0;
}

.tunnel-timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--tunnel-border);
}

.tunnel-timeline-item {
    position: relative;
    padding-left: 50px;
    padding-bottom: 30px;
}

.tunnel-timeline-item:last-child {
    padding-bottom: 0;
}

.tunnel-timeline-dot {
    position: absolute;
    left: 6px;
    top: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--tunnel-border);
    border: 3px solid white;
    box-shadow: 0 0 0 2px var(--tunnel-border);
}

.tunnel-timeline-item.completed .tunnel-timeline-dot {
    background: var(--tunnel-success);
    box-shadow: 0 0 0 2px var(--tunnel-success);
}

.tunnel-timeline-item.current .tunnel-timeline-dot {
    background: var(--tunnel-primary);
    box-shadow: 0 0 0 2px var(--tunnel-primary);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 2px var(--tunnel-primary);
    }
    50% {
        box-shadow: 0 0 0 6px rgba(26, 171, 179, 0.3);
    }
    100% {
        box-shadow: 0 0 0 2px var(--tunnel-primary);
    }
}

.tunnel-timeline-content h5 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 5px;
}

.tunnel-timeline-content p {
    font-size: 13px;
    color: #666;
    margin: 0;
}

.tunnel-timeline-content .date {
    font-size: 12px;
    color: #999;
}

/* Wizard Steps */
.tunnel-wizard-steps {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.tunnel-wizard-step {
    display: flex;
    align-items: center;
}

.tunnel-wizard-step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--tunnel-border);
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-right: 10px;
}

.tunnel-wizard-step.active .tunnel-wizard-step-number {
    background: var(--tunnel-primary);
    color: white;
}

.tunnel-wizard-step.completed .tunnel-wizard-step-number {
    background: var(--tunnel-success);
    color: white;
}

.tunnel-wizard-step-label {
    font-size: 14px;
    font-weight: 500;
    color: #666;
}

.tunnel-wizard-step.active .tunnel-wizard-step-label {
    color: var(--tunnel-dark);
}

.tunnel-wizard-separator {
    width: 50px;
    height: 2px;
    background: var(--tunnel-border);
    margin: 0 15px;
}

/* Messages */
.tunnel-messages {
    max-height: 400px;
    overflow-y: auto;
    padding: 20px;
    background: var(--tunnel-light);
    border-radius: var(--tunnel-radius-sm);
}

.tunnel-message {
    margin-bottom: 15px;
    max-width: 80%;
}

.tunnel-message.client {
    margin-left: auto;
}

.tunnel-message-content {
    padding: 15px;
    border-radius: var(--tunnel-radius-sm);
    background: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.tunnel-message.client .tunnel-message-content {
    background: var(--tunnel-primary);
    color: white;
}

.tunnel-message-meta {
    font-size: 12px;
    color: #999;
    margin-top: 5px;
}

/* ===========================================
   Responsive
   =========================================== */
@media (max-width: 991px) {
    .tunnel-hero {
        padding: 100px 0 60px;
        text-align: center;
    }

    .tunnel-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .tunnel-features {
        justify-content: center;
    }

    .tunnel-summary-panel {
        margin-top: 30px;
    }

    .tunnel-form-row {
        flex-direction: column;
        gap: 0;
    }

    .tunnel-wizard-step-label {
        display: none;
    }

    .tunnel-wizard-separator {
        width: 30px;
    }
}

@media (max-width: 767px) {
    .tunnel-option {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .tunnel-option-right {
        width: 100%;
        justify-content: space-between;
    }

    .tunnel-reassurance {
        flex-direction: column;
        align-items: center;
    }

    .tunnel-checkout-panel {
        padding: 25px;
    }
}

/* ===========================================
   Animations
   =========================================== */
.tunnel-option,
.tunnel-payment-option,
.tunnel-include-card {
    animation: fadeInUp 0.5s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading State */
.tunnel-loading {
    position: relative;
    pointer-events: none;
}

.tunnel-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: inherit;
}

.tunnel-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--tunnel-border);
    border-top-color: var(--tunnel-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
