/* Import Google Fonts - Montserrat */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&display=swap');

/* Reset et variables */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Couleurs OXXO Baies */
    --primary-color: #ab0932;          /* Rouge OXXO */
    --primary-dark: #8a0728;           /* Rouge foncé (hover) */
    --primary-light: #d60f42;          /* Rouge clair */
    --secondary-color: #77c1c3;        /* Vert/Turquoise OXXO */
    --secondary-dark: #5fa5a7;         /* Vert foncé (hover) */
    --secondary-light: #a0d8da;        /* Vert clair */
    
    /* Couleurs système */
    --text-dark: #1f2937;
    --text-medium: #6b7280;
    --text-light: #9ca3af;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
    --error-color: #ef4444;
    --success-color: #77c1c3;          /* Vert OXXO pour succès */
    
    /* Ombres et autres */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-dark);
    background: var(--bg-light);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header */
.header {
    background: #000000;
    box-shadow: var(--shadow-sm);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-logo {
    height: 38px;
    display: block;
}

.header-phone {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: #FFFFFF;
    transition: all 0.3s ease;
}

.header-phone:hover {
    opacity: 0.8;
}

.phone-icon {
    background: #77c1c3;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.phone-icon svg {
    width: 22px;
    height: 22px;
    color: #000000;
}

.phone-text {
    display: flex;
    flex-direction: column;
}

.phone-label {
    font-size: 0.75rem;
    color: #9CA3AF;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.phone-number {
    font-size: 1.125rem;
    font-weight: 700;
    color: #FFFFFF;
    letter-spacing: 0.5px;
}

/* Mobile : masquer le texte */
@media (max-width: 768px) {
    .header-logo {
        height: 28px;
    }

    .phone-text {
        display: none;
    }
    
    .phone-icon {
        width: 44px;
        height: 44px;
    }
    
    .phone-icon svg {
        width: 20px;
        height: 20px;
    }
}

/* Progress Bar */
.progress-container {
    background: var(--bg-white);
    padding: 1rem 0;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 82px;
    z-index: 99;
}

/* Progress Steps */
.progress-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 700px;
    margin: 0 auto;
    padding: 0 1rem;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.step-circle {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 3px solid #e5e7eb;
    background: white;
    color: #9ca3af;
}

.step-label {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #9ca3af;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.progress-line {
    flex: 1;
    height: 3px;
    background: #e5e7eb;
    margin: 0 0.5rem;
    transition: all 0.3s ease;
    align-self: center;
}

/* État INACTIVE (par défaut) */
.progress-step {
    /* Déjà défini ci-dessus */
}

/* État ACTIVE (étape en cours) */
.progress-step.active .step-circle {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    box-shadow: 0 0 0 4px rgba(171, 9, 50, 0.2);
}

.progress-step.active .step-label {
    color: var(--primary-color);
}

/* État COMPLETED (étape validée) */
.progress-step.completed .step-circle {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    color: white;
}

.progress-step.completed .step-label {
    color: var(--secondary-color);
}

.progress-line.completed {
    background: var(--secondary-color);
}

@media (max-width: 768px) {
    .progress-steps {
        padding: 0 0.5rem;
    }
    
    .step-circle {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .step-label {
        font-size: 0.7rem;
    }
    
    .progress-line {
        margin: 0 0.25rem;
    }
}

/* Main Container */
.main-container {
    flex: 1;
    padding: 2rem 0;
}

.simulator-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 2rem;
    max-width: 800px;
    margin: 0 auto;
    min-height: 600px;
}

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

.step.active {
    display: block;
}

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

.step-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.step-subtitle {
    color: var(--text-medium);
    font-size: 1rem;
    margin-bottom: 2rem;
}

/* Form Groups */
.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.label-required::after {
    content: ' *';
    color: var(--error-color);
}

/* Card Options */
.card-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.card-options.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.option-card {
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background: var(--bg-white);
}

.option-card:hover {
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.option-card.selected {
    border-color: var(--secondary-color);
    background: rgba(119, 193, 195, 0.08);
}

.option-card.small {
    padding: 1rem;
}

.option-card .icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 45px;
}

.option-card .icon.small {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
    height: 40px;
}

.svg-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Jaune OXXO #FDB913 */
    filter: invert(75%) sepia(77%) saturate(592%) hue-rotate(358deg) brightness(103%) contrast(98%);
    transition: all 0.3s ease;
}

.option-card.selected .svg-icon {
    /* Jaune OXXO plus vif quand sélectionné */
    filter: invert(80%) sepia(80%) saturate(650%) hue-rotate(358deg) brightness(105%) contrast(100%);
}

.option-text {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.9rem;
}

/* Grille à 2 colonnes */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

/* Grille à 4 colonnes (desktop) */
.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

/* Garde 2 colonnes même sur mobile */
@media (max-width: 768px) {
    .grid-2 {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .option-card.small {
        padding: 0.75rem;
    }
    
    .option-text {
        font-size: 0.8rem;
    }
}

/* Inputs */
.text-input,
.select-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: var(--transition);
    background: var(--bg-white);
}

.text-input:focus,
.select-input:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(119, 193, 195, 0.2);
}

.text-input::placeholder {
    color: var(--text-light);
}

.input-help {
    display: block;
    margin-top: 0.25rem;
    color: var(--text-medium);
    font-size: 0.8rem;
}

/* Radio Options */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.radio-option {
    display: flex;
    align-items: center;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
}

.radio-option:hover {
    border-color: var(--secondary-color);
    background: rgba(37, 99, 235, 0.02);
}

.radio-option input[type="radio"] {
    display: none;
}

.radio-option input[type="radio"]:checked + .radio-custom {
    border-color: var(--primary-color);
    background: var(--primary-color);
}

.radio-option input[type="radio"]:checked + .radio-custom::after {
    opacity: 1;
}

.radio-option input[type="radio"]:checked ~ .radio-text {
    color: var(--primary-color);
    font-weight: 600;
}

.radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    margin-right: 0.75rem;
    position: relative;
    transition: var(--transition);
}

.radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    opacity: 0;
    transition: var(--transition);
}

.radio-text {
    flex: 1;
    color: var(--text-dark);
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

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

.btn-secondary {
    background: var(--text-medium);
    color: white;
}

.btn-secondary:hover {
    background: var(--text-dark);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--border-color);
    color: var(--text-dark);
}

.btn-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-success {
    background: var(--success-color);
    color: white;
}

.btn-success:hover {
    background: #059669;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-add {
    width: 100%;
    margin-bottom: 2rem;
}

.btn-icon {
    font-size: 1.5rem;
    line-height: 1;
}

.button-group {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

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

/* Menuiserie Block */
.menuiserie-block {
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: var(--transition);
}

.menuiserie-block.collapsed .menuiserie-content {
    display: none;
}

.menuiserie-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    margin-bottom: 1rem;
}

.menuiserie-title {
    font-weight: 600;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.menuiserie-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-icon-only {
    width: 32px;
    height: 32px;
    padding: 0;
    border: none;
    background: transparent;
    color: var(--text-medium);
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon-only:hover {
    background: var(--bg-light);
    color: var(--text-dark);
}

.btn-icon-only.delete:hover {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error-color);
}

.menuiserie-content {
    animation: fadeIn 0.3s ease-in-out;
}

/* Color Picker */
.color-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 0.75rem;
}

.color-option {
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.75rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.color-option:hover {
    border-color: var(--secondary-color);
}

.color-option.selected {
    border-color: var(--secondary-color);
    background: rgba(119, 193, 195, 0.08);
}

.color-swatch {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin: 0 auto 0.5rem;
    border: 2px solid var(--border-color);
}

.color-name {
    font-size: 0.8rem;
    color: var(--text-dark);
    font-weight: 500;
}

/* Result Section */
.result-header {
    text-align: center;
    margin-bottom: 2rem;
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.price-card {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    margin-bottom: 2rem;
}

.price-label {
    font-size: 1rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.price-range {
    font-size: 2.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.price-separator {
    font-size: 1.5rem;
    font-weight: 400;
}

.price-note {
    background: rgba(255, 255, 255, 0.2);
    padding: 1rem;
    border-radius: var(--radius-md);
    margin-top: 1rem;
}

.price-note small {
    font-size: 0.875rem;
    line-height: 1.5;
}

/* Summary Card */
.summary-card {
    background: var(--bg-light);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.summary-card h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

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

.summary-label {
    color: var(--text-medium);
    font-weight: 500;
}

.summary-value {
    color: var(--text-dark);
    font-weight: 600;
}

/* CTA Section */
.cta-section {
    text-align: center;
    padding: 2rem;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    margin-bottom: 2rem;
}

.cta-section h3 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.cta-section p {
    color: var(--text-medium);
    margin-bottom: 1.5rem;
}

/* Appointment Form */
.appointment-form {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    margin-bottom: 2rem;
    animation: fadeIn 0.3s ease-in-out;
}

/* Footer */
.footer {
    background: #000000;
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: auto;
}

.footer p {
    font-size: 0.875rem;
    opacity: 0.8;
}

/* Responsive */
@media (max-width: 768px) {
    .simulator-card {
        padding: 1.5rem;
    }

    .step-title {
        font-size: 1.5rem;
    }

    .card-options {
        grid-template-columns: 1fr;
    }
    
    /* Exception : grid-2 reste en 2 colonnes sur mobile */
    .card-options.grid-2 {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem;
    }
    
    /* Exception : grid-4 passe à 2 colonnes sur mobile */
    .card-options.grid-4 {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem;
    }

    .card-options.grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .button-group {
        flex-direction: column;
    }

    .price-range {
        font-size: 1.75rem;
        flex-direction: column;
        gap: 0.5rem;
    }

    .progress-container {
        top: 70px;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 1.5rem;
    }

    .step-title {
        font-size: 1.25rem;
    }

    .option-card {
        padding: 1rem;
    }

    .card-options.grid-3 {
        grid-template-columns: 1fr;
    }

    .price-range {
        font-size: 1.5rem;
    }
}

/* Loading & Error States */
.loading {
    text-align: center;
    padding: 2rem;
    color: var(--text-medium);
}

.error-message {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error-color);
    padding: 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    border-left: 4px solid var(--error-color);
}

.success-message {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
    padding: 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    border-left: 4px solid var(--success-color);
}

/* Input avec icône */
.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 1rem;
    width: 20px;
    height: 20px;
    pointer-events: none;
    z-index: 1;
    /* Vert OXXO #77c1c3 */
    filter: brightness(0) saturate(100%) invert(73%) sepia(12%) saturate(1189%) hue-rotate(134deg) brightness(92%) contrast(87%);
}

.text-input.with-icon {
    padding-left: 3rem;
}

/* Contact row - 2 colonnes sur desktop */
.contact-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

/* Mobile : 1 colonne */
@media (max-width: 768px) {
    .contact-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Forcer pleine largeur du téléphone sur TOUS les écrans */
.iti {
    width: 100% !important;
    display: block !important;
}

.iti__tel-input {
    width: 100% !important;
}

/* Étape 4 - Titre estimation */
.price-label-main {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
    margin-bottom: 2rem;
    margin-top: 0;
    text-align: center;
}

@media (max-width: 768px) {
    .price-label-main {
        font-size: 1.25rem;
        margin-bottom: 1.5rem;
    }
}

/* Carte sélectionnée */
.card-option.selected {
    border-color: var(--secondary-color);
    background-color: rgba(119, 193, 195, 0.08);
}


/* Bouton pleine largeur */
.btn-full-width {
    width: 100%;
    display: block;
}

/* Fix calendrier - empêcher débordement */
input[type="date"] {
    max-width: 100%;
    box-sizing: border-box;
}

.form-group input[type="date"],
.form-group .select-input {
    width: 100%;
    max-width: 100%;
}

/* ==========================================
   STYLES RDV (ÉTAPE 3)
   ========================================== */

.rdv-options {
    margin-top: 2rem;
    animation: fadeIn 0.3s ease-in-out;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

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

.form-group label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

input[type="date"] {
    max-width: 100%;
    box-sizing: border-box;
}

/* Style pour les inputs date/time */
input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    filter: brightness(0) saturate(100%) invert(73%) sepia(12%) saturate(1189%) hue-rotate(134deg) brightness(92%) contrast(87%);
}

/* ==========================================
   WINDOW CONFIG (ÉTAPE 2)
   ========================================== */

.window-config {
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.window-config:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.window-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.window-header h4 {
    color: var(--text-dark);
    font-size: 1.125rem;
    margin: 0;
}

.btn-delete {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    transition: var(--transition);
}

.btn-delete:hover {
    transform: scale(1.1);
}

.action-icon {
    width: 24px;
    height: 24px;
}

.window-body {
    margin-top: 1rem;
}

#addWindowBtn {
    width: 100%;
    margin-top: 1rem;
    margin-bottom: 2rem;
}


/* ==========================================
   TITRE PRINCIPAL DES ÉTAPES
   ========================================== */

.step-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--text-dark);
    text-align: left;
    margin-bottom: 0.5rem;
    margin-top: 0;
}

@media (max-width: 768px) {
    .step-title {
        font-size: 1.5rem;
    }
}

/* Fix margins entre sections */
.section-title {
    margin-top: 2rem !important;
    margin-bottom: 1rem !important;
    font-size: 1.125rem !important;
    font-weight: 600;
    color: var(--text-dark);
}

.section-title:first-of-type {
    margin-top: 1.5rem !important;
}

/* Astérisque rouge pour champs requis */
.required {
    color: #ef4444;
    font-weight: 700;
}

.card-options {
    margin-bottom: 2rem !important;
}


/* ==========================================
   ICÔNES VERTES OXXO (#77c1c3)
   ========================================== */

.svg-icon {
    filter: brightness(0) saturate(100%) invert(73%) sepia(12%) saturate(1189%) hue-rotate(134deg) brightness(92%) contrast(87%);
}

.option-card.selected .svg-icon {
    filter: brightness(0) saturate(100%) invert(0%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(100%) contrast(100%);
}

.btn-add {
    width: 100%;
    margin-bottom: 2rem;
}

.btn-icon {
    font-size: 1.5rem;
    line-height: 1;
}

.button-group {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

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

/* Menuiserie Block */
.menuiserie-block {
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: var(--transition);
}

.menuiserie-block.collapsed .menuiserie-content {
    display: none;
}

.menuiserie-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    margin-bottom: 1rem;
}

.menuiserie-title {
    font-weight: 600;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.menuiserie-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-icon-only {
    width: 32px;
    height: 32px;
    padding: 0;
    border: none;
    background: transparent;
    color: var(--text-medium);
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon-only:hover {
    background: var(--bg-light);
    color: var(--text-dark);
}

.btn-icon-only.delete:hover {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error-color);
}

.menuiserie-content {
    animation: fadeIn 0.3s ease-in-out;
}

/* Color Picker */
.color-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 0.75rem;
}

.color-option {
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.75rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.color-option:hover {
    border-color: var(--secondary-color);
}

.color-option.selected {
    border-color: var(--secondary-color);
    background: rgba(119, 193, 195, 0.08);
}

.color-swatch {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin: 0 auto 0.5rem;
    border: 2px solid var(--border-color);
}

.color-name {
    font-size: 0.8rem;
    color: var(--text-dark);
    font-weight: 500;
}

/* Result Section */
.result-header {
    text-align: center;
    margin-bottom: 2rem;
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.price-card {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    margin-bottom: 2rem;
}

.price-label {
    font-size: 1rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.price-range {
    font-size: 2.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.price-separator {
    font-size: 1.5rem;
    font-weight: 400;
}

.price-note {
    background: rgba(255, 255, 255, 0.2);
    padding: 1rem;
    border-radius: var(--radius-md);
    margin-top: 1rem;
}

.price-note small {
    font-size: 0.875rem;
    line-height: 1.5;
}

/* Summary Card */
.summary-card {
    background: var(--bg-light);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.summary-card h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

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


/* ==========================================
   LABELS ET HELPERS
   ========================================== */

.label-required::after {
    content: " *";
    color: var(--error-color);
}

.input-help {
    display: block;
    margin-top: 0.25rem;
    color: var(--text-medium);
    font-size: 0.75rem;
}

/* ==========================================
   BOUTON SUCCESS (Valider menuiserie)
   ========================================== */

.btn-success {
    background: #77c1c3;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-success:hover {
    background: #5fa5a7;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}


/* ==========================================
   ESPACEMENT BOUTON CONTINUER
   ========================================== */

.btn-next {
    margin-top: 2rem !important;
}


/* ==========================================
   RÉCAPITULATIF MENUISERIE VALIDÉE
   ========================================== */

.menuiserie-recap {
    background: #f9fafb;
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.recap-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.recap-row:last-child {
    margin-bottom: 0;
}

.recap-item {
    font-size: 0.95rem;
    color: var(--text-dark);
}

.recap-item strong {
    font-weight: 600;
    color: #000;
}

@media (max-width: 768px) {
    .recap-row {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
}

.btn-modifier {
    width: 100%;
    background: white;
    border: 2px solid var(--border-color);
    color: var(--text-dark);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1rem;
}

.btn-modifier:hover {
    border-color: var(--primary-color);
    background: rgba(119, 193, 195, 0.08);
}


/* ==========================================
   BOUTONS CÔTE À CÔTE
   ========================================== */

.btn-half {
    flex: 1;
}

.navigation-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .navigation-buttons {
        flex-direction: column;
    }
    
    .btn-half {
        width: 100%;
    }
}


/* ==========================================
   RÉCAPITULATIF MENUISERIE VALIDÉE - STYLE VERT
   ========================================== */

.menuiserie-block[data-validated="true"] {
    border: 3px solid #77c1c3;
    background: white;
}

.menuiserie-recap-validated {
    padding: 1.5rem;
    background: white;
}

.recap-row-validated {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.recap-row-validated:last-child {
    margin-bottom: 0;
}

.recap-item-validated {
    font-size: 1rem;
    color: #1f2937;
}

.recap-item-validated strong {
    font-weight: 600;
    color: #000;
    display: block;
    margin-bottom: 0.25rem;
}

@media (max-width: 768px) {
    .recap-row-validated {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

.btn-modifier-white {
    width: 100%;
    background: white;
    border: 2px solid #e5e7eb;
    color: #1f2937;
    padding: 0.875rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1rem;
}

.btn-modifier-white:hover {
    border-color: #77c1c3;
    background: #f0f9f9;
}


/* ==========================================
   MESSAGES D'ERREUR SOUS LES CHAMPS
   ========================================== */

.error-message {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    animation: slideDown 0.3s ease;
}

.error-message::before {
    content: "⚠";
    font-size: 1rem;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.input-error {
    border-color: #ef4444 !important;
}

.card-error {
    border-color: #ef4444 !important;
    background: rgba(239, 68, 68, 0.05);
}


/* ==========================================
   Liste déroulante de couleurs (pastilles)
   ========================================== */
.color-select {
    position: relative;
    width: 100%;
}

.color-select-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    background: var(--bg-white);
    color: var(--text-dark);
    cursor: pointer;
    text-align: left;
    transition: var(--transition);
}

.color-select-trigger:hover {
    border-color: var(--secondary-color);
}

.color-select-trigger[aria-expanded="true"] {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(119, 193, 195, 0.2);
}

.color-select-current {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    min-width: 0;
}

.color-dot {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
    display: inline-block;
}

.color-select-arrow {
    color: var(--text-medium);
    font-size: 0.9rem;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.color-select-trigger[aria-expanded="true"] .color-select-arrow {
    transform: rotate(180deg);
}

.color-select-menu {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    z-index: 50;
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    max-height: 320px;
    overflow-y: auto;
    padding: 0.35rem;
}

.color-select-menu.open {
    display: block;
}

.color-select-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 0.6rem;
    border-radius: var(--radius-sm, 8px);
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--text-dark);
    transition: background 0.15s ease;
}

.color-select-item:hover {
    background: var(--bg-light);
}

.color-select-item.selected {
    background: rgba(119, 193, 195, 0.12);
    font-weight: 600;
}

/* ==========================================
   BARRE DE PROMOTION D'ÉTÉ
   ========================================== */
.promo-banner {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: linear-gradient(90deg, #ab0932 0%, #c41040 50%, #8a0728 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 2.5rem 0.6rem 1rem;
    gap: 0.75rem;
    box-shadow: 0 2px 12px rgba(171, 9, 50, 0.35);
    min-height: 48px;
}

.promo-banner-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.88rem;
    text-align: center;
}

.promo-tag {
    background: rgba(255,255,255,0.18);
    border: 1px solid rgba(255,255,255,0.35);
    border-radius: 20px;
    padding: 0.15rem 0.65rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.promo-text {
    opacity: 0.96;
    white-space: nowrap;
}

.promo-text strong {
    font-size: 1.05rem;
    font-weight: 800;
}

.promo-close {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255,255,255,0.7);
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
    padding: 0.25rem 0.4rem;
    border-radius: 4px;
    transition: color 0.2s, background 0.2s;
}

.promo-close:hover {
    color: #fff;
    background: rgba(255,255,255,0.15);
}

@media (max-width: 520px) {
    .promo-banner-inner {
        gap: 0.5rem;
    }
}

