/* ===================================
   QUESTIONNAIRE EDELIX - STYLES
   =================================== */

/* Reset & Variables */
:root {
    --primary-blue: #1e40af;
    --primary-gold: #fbbf24;
    --dark-bg: #0a0a0a;
    --dark-card: #1a1a1a;
    --dark-border: #2a2a2a;
    --text-light: #ffffff;
    --text-gray: #9ca3af;
    --success: #10b981;
    --error: #ef4444;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 100%);
    color: var(--text-light);
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===================================
   HEADER
   =================================== */
.header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #1e3a8a 100%);
    padding: 1.5rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
    transition: opacity 0.3s;
    flex-shrink: 0;
}

.logo i {
    color: #ffffff;
    /* White rocket icon */
    font-size: 1.5rem;
}

.logo span {
    color: var(--primary-gold);
    /* Gold text */
}

.logo:hover {
    opacity: 0.8;
}

.header-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-light);
    margin: 0 auto;
    /* Center the title */
    padding-right: 40px;
    /* Offset for better centering relative to logo depth */
}

@media (max-width: 768px) {
    .header-title {
        display: none;
        /* Hide title on small mobile to save space */
    }

    .header-content {
        justify-content: space-between;
        flex-wrap: nowrap; /* Empêche le retour à la ligne */
        gap: 0.5rem;
    }

    .logo {
        font-size: 1.25rem; /* Réduction de la taille pour plus de place */
    }
}

/* ===================================
   PROGRESS BAR
   =================================== */
.progress-container {
    background: var(--dark-card);
    padding: 2rem 0;
    border-bottom: 2px solid var(--dark-border);
}

.progress-bar {
    height: 8px;
    background: var(--dark-border);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-gold));
    width: 20%;
    transition: width 0.4s ease;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.step {
    flex: 1;
    text-align: center;
    opacity: 0.5;
    transition: opacity 0.3s;
}

.step.active {
    opacity: 1;
}

.step.completed {
    opacity: 1;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--dark-border);
    color: var(--text-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.5rem;
    font-weight: bold;
    transition: all 0.3s;
}

.step.active .step-number {
    background: var(--primary-blue);
    color: var(--text-light);
    box-shadow: 0 0 20px rgba(30, 64, 175, 0.5);
}

.step.completed .step-number {
    background: var(--success);
    color: var(--text-light);
}

.step-label {
    font-size: 0.875rem;
    color: var(--text-gray);
}

.step.active .step-label {
    color: var(--text-light);
    font-weight: 600;
}

/* ===================================
   MAIN CONTENT
   =================================== */
.main-content {
    padding: 3rem 0;
}

.questionnaire-wrapper {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 2rem;
    align-items: start;
}

/* ===================================
   FORM STEPS
   =================================== */
.form-step {
    display: none;
    background: var(--dark-card);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.4s ease;
}

.form-step.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--primary-gold);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.step-subtitle {
    color: var(--text-gray);
    margin-bottom: 2rem;
    font-size: 1.125rem;
}

.form-section {
    margin-bottom: 2.5rem;
}

.section-title {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ===================================
   OPTIONS GRID
   =================================== */
.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.option-card {
    position: relative;
    cursor: pointer;
}

.option-card input[type="radio"],
.option-card input[type="checkbox"] {
    position: absolute;
    opacity: 0;
}

.card-content {
    background: var(--dark-bg);
    border: 2px solid var(--dark-border);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    height: 100%;
    min-height: 150px;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    visibility: visible;
    opacity: 1;
}

.option-card input:checked+.card-content {
    border-color: var(--primary-gold);
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.2), rgba(251, 191, 36, 0.1));
    box-shadow: 0 0 30px rgba(251, 191, 36, 0.3);
}

.option-card:hover .card-content {
    border-color: var(--primary-gold);
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.card-content i {
    font-size: 2rem;
    color: var(--primary-gold);
}

.card-content h3,
.card-content h4 {
    color: #ffffff;
    font-size: 1.125rem;
    margin: 0;
}

.card-content p {
    color: #9ca3af;
    font-size: 0.875rem;
    margin: 0;
}

.card-content small {
    color: #9ca3af;
    font-size: 0.75rem;
}

.card-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: var(--primary-blue);
    color: var(--text-light);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 5;
}

.card-badge.popular {
    background: linear-gradient(135deg, var(--primary-gold), #d97706);
    color: var(--dark-bg);
}

.card-price-tag {
    color: var(--primary-gold);
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.card-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.card-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-gray);
    margin-bottom: 0.5rem;
}

.card-features i {
    font-size: 1rem;
    color: var(--success);
}

/* ===================================
   CHECKBOX LIST
   =================================== */
.checkbox-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--dark-bg);
    border: 2px solid var(--dark-border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.checkbox-item:hover {
    border-color: var(--primary-gold);
}

.checkbox-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary-blue);
}

.checkbox-label {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.checkbox-label strong {
    color: var(--text-light);
}

.price {
    color: var(--primary-gold);
    font-weight: 600;
}

/* ===================================
   FORM INPUTS
   =================================== */
.form-group {
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-light);
    font-weight: 500;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--dark-bg);
    border: 2px solid var(--dark-border);
    border-radius: 8px;
    color: var(--text-light);
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-blue);
}

.form-input::placeholder {
    color: var(--text-gray);
}

textarea.form-input {
    resize: vertical;
    min-height: 100px;
}

.hidden {
    display: none !important;
}

/* ===================================
   NAVIGATION BUTTONS
   =================================== */
.form-navigation {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2rem;
}

.btn {
    padding: 0.875rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-blue), #1e3a8a);
    color: var(--text-light);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(30, 64, 175, 0.4);
}

.btn-secondary {
    background: var(--dark-border);
    color: var(--text-light);
}

.btn-secondary:hover {
    background: var(--dark-bg);
}

.btn-success {
    background: linear-gradient(135deg, var(--success), #059669);
    color: var(--text-light);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
}

/* ===================================
   DEVIS SUMMARY (SIDEBAR)
   =================================== */
.devis-summary {
    background: var(--dark-card);
    border-radius: 16px;
    padding: 2rem;
    position: sticky;
    top: 120px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.summary-title {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--primary-gold);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.summary-content {
    min-height: 200px;
    margin-bottom: 1.5rem;
}

.summary-empty {
    color: var(--text-gray);
    text-align: center;
    padding: 2rem 0;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--dark-border);
    font-size: 0.875rem;
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-item-label {
    color: var(--text-gray);
}

.summary-item-price {
    color: var(--text-light);
    font-weight: 600;
}

.summ.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
}

.language-select {
    background: rgba(30, 64, 175, 0.2);
    border: 1px solid var(--primary-blue);
    color: var(--text-light);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    outline: none;
    transition: all 0.3s ease;
}

.language-select:hover {
    border-color: var(--primary-gold);
    background: rgba(30, 64, 175, 0.3);
}

.language-select option {
    background: var(--dark-card);
    color: var(--text-light);
}

.summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    border-top: 2px solid var(--primary-gold);
    font-size: 1.25rem;
    font-weight: bold;
}

.total-price {
    color: var(--primary-gold);
    font-size: 1.75rem;
    transition: all 0.3s ease;
}

.total-price.updating {
    transform: scale(1.1);
    color: var(--text-light);
    text-shadow: 0 0 15px var(--primary-gold);
}

.summary-note {
    display: flex;
    align-items: start;
    gap: 0.5rem;
    padding: 1rem;
    background: rgba(251, 191, 36, 0.1);
    border-radius: 8px;
    margin-top: 1rem;
}

.summary-note i {
    color: var(--primary-gold);
    margin-top: 0.25rem;
}

.summary-note small {
    color: var(--text-gray);
    font-size: 0.75rem;
    line-height: 1.4;
}

/* Trust Box in Sidebar */
.trust-box {
    margin-top: 2rem;
    background: rgba(30, 64, 175, 0.15);
    border: 1px solid rgba(30, 64, 175, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
}

.trust-title {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
}

.trust-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.trust-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: var(--text-gray);
    margin-bottom: 0.75rem;
}

.trust-list li i {
    color: var(--primary-gold);
    width: 20px;
    text-align: center;
}

.trust-list li:last-child {
    margin-bottom: 0;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--dark-card);
    border-radius: 16px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    padding: 2rem;
    border-bottom: 2px solid var(--dark-border);
}

.modal-header h2 {
    color: var(--success);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-gray);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    transition: color 0.3s;
    padding: 0.5rem;
}

.modal-close:hover {
    color: var(--text-light);
}

.modal-body {
    padding: 2rem;
}

.modal-body p {
    color: var(--text-gray);
    margin-bottom: 2rem;
}

.modal-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}


/* ===================================
   DESIGN & AMBIANCE SPECIFIC
   =================================== */
.color-picker-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.5rem;
}

.color-input {
    width: 60px;
    height: 50px;
    padding: 0;
    border: 2px solid var(--dark-border);
    border-radius: 8px;
    cursor: pointer;
    background: none;
}

.color-input::-webkit-color-swatch-wrapper {
    padding: 0;
}

.color-input::-webkit-color-swatch {
    border: none;
    border-radius: 6px;
}

.color-text {
    width: 120px !important;
    text-align: center;
    font-family: monospace;
    font-size: 1.1rem;
}

.options-grid.small {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 0.75rem;
}

.option-card.small .card-content.small {
    min-height: 50px;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 0.85rem;
}

.option-card.small:hover .card-content.small {
    transform: translateY(-4px);
}

/* ===================================
   RESPONSIVE
   =================================== */
@media (max-width: 1024px) {
    .questionnaire-wrapper {
        grid-template-columns: 1fr;
    }

    .devis-summary {
        position: relative;
        top: 0;
        order: -1;
    }
}

@media (max-width: 768px) {
    .header-title {
        font-size: 1rem;
    }

    .progress-steps {
        flex-wrap: wrap;
    }

    .step-label {
        font-size: 0.75rem;
    }

    .form-step {
        padding: 1.5rem;
    }

    .step-title {
        font-size: 1.5rem;
    }

    .options-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .form-navigation {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .header-content {
        flex-direction: row; /* Force l'alignement horizontal même sur très petit écran */
        justify-content: space-between;
        text-align: left;
    }

    .step-number {
        width: 35px;
        height: 35px;
        font-size: 0.875rem;
    }
}

/* ===================================
   FOOTER (Légal & Réassurance)
   =================================== */
.questionnaire-footer {
    padding: 3rem 0;
    margin-top: 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(10, 10, 10, 0.9);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.footer-copyright {
    color: var(--text-gray);
    font-size: 0.85rem;
    opacity: 0.8;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.footer-link {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.footer-link:hover {
    color: var(--primary-gold);
    border-bottom-color: var(--primary-gold);
}

.footer-separator {
    color: rgba(255, 255, 255, 0.1);
    font-size: 0.8rem;
}

@media (max-width: 992px) {
    .footer-container {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .footer-links {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
    }
}