/* Variables CSS pour une meilleure maintenance */
:root {
    --primary-color: #1a5f7a;
    --secondary-color: #2980b9;
    --accent-color: #ea384c;
    --success-color: #27ae60;
    --warning-color: #856404;
    --text-dark: #333;
    --text-light: #666;
    --bg-light: #f8f9fa;
    --bg-lighter: #e9ecef;
    --shadow-light: rgba(0,0,0,0.1);
    --shadow-medium: rgba(0,0,0,0.15);
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --gradient-accent: linear-gradient(135deg, var(--accent-color), #d63384);
    --gradient-bg: linear-gradient(135deg, #e8f4f8 0%, #d6eaf8 100%);
    --border-radius: 16px;
    --border-radius-small: 12px;
    --transition: all 0.3s ease;
    --font-family: 'Montserrat', sans-serif;
}

/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background: var(--gradient-bg);
    min-height: 100vh;
}

/* Header */
.header {
    background: white;
    padding: 20px 40px;
    box-shadow: 0 2px 10px var(--shadow-light);
    position: relative;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo-section {
    flex: 1;
}

.logo-with-button {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
}

.tagline {
    font-size: 14px;
    color: var(--text-light);
    margin-top: 5px;
}

.header-buttons {
    display: flex;
    align-items: center;
    gap: 15px;
}

.expert-btn {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 15px 25px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-family);
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(26, 95, 122, 0.3);
}

.expert-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(26, 95, 122, 0.4);
    background: linear-gradient(135deg, var(--secondary-color), #3498db);
}

.expert-btn:active {
    transform: translateY(0);
}

.new-simulation-btn {
    background: var(--gradient-accent);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-family);
    display: none;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 10px rgba(234, 56, 76, 0.2);
    white-space: nowrap;
}

.new-simulation-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(234, 56, 76, 0.3);
    background: linear-gradient(135deg, #d63384, var(--accent-color));
}

/* Barre de progression */
.progress-container {
    background: var(--bg-light);
    height: 6px;
    position: relative;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    width: 12.5%;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Layout principal */
.main-container {
    display: flex;
    min-height: calc(100vh - 86px);
    max-width: 100%;
    margin: 0 auto;
}

.form-section {
    flex: 1;
    background: white;
    padding: 40px 60px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
    max-width: 50%;
    overflow-y: auto;
    min-height: 100vh;
}

.visual-section {
    flex: 1;
    background: var(--gradient-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 100%;
    overflow: hidden;
}

/* Badges et éléments visuels */
.trustpilot-badge {
    position: absolute;
    top: 30px;
    right: 30px;
    background: white;
    padding: 12px 20px;
    border-radius: 25px;
    box-shadow: 0 5px 15px var(--shadow-light);
    font-size: 14px;
    font-weight: 600;
    color: #00b67a;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 10;
}

.certified-badge {
    position: absolute !important;
    top: 10%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--success-color), #2ecc71);
    color: white;
    padding: 15px 25px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 16px;
    box-shadow: 0 8px 25px rgba(39, 174, 96, 0.3);
    display: flex;
    align-items: center;
    gap: 10px;
    animation: certifiedPulse 2s infinite;
    z-index: 20;
}

.certified-badge::before {
    content: '✓';
    background: white;
    color: var(--success-color);
    border-radius: 50%;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
}

@keyframes certifiedPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Contenu visuel */
.visual-content {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    animation: float 6s ease-in-out infinite;
}

.visual-image {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.2));
    border-radius: 20px;
}

.custom-house-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.house-base {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.house-roof {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.house-roof.flat {
    width: 83%;
    height: 47%;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

/* Maps visuelles */
.visual-map-container {
    width: 90%;
    height: 90%;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    position: relative;
}

.visual-map {
    width: 100%;
    height: 100%;
}

.map-controls {
    position: absolute;
    top: 30px;
    right: 10px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 5px;
    pointer-events: none;
}

.map-control-btn {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    color: var(--text-light);
    box-shadow: 0 2px 5px var(--shadow-light);
    transition: all 0.2s;
    pointer-events: auto;
    z-index: 2001;
}

.map-control-btn:hover {
    background: #f5f5f5;
    color: var(--accent-color);
    transform: scale(1.05);
}

.map-control-btn:active {
    transform: scale(0.95);
}

.map-directions {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1500;
    pointer-events: none;
    display: none;
}

.facebook {
    background: linear-gradient(135deg, #1877F2, #4267B2);
}

.linkedin {
    background: linear-gradient(135deg, #0077B5, #005885);
}

.direction-btn {
    position: absolute;
    background: rgba(26, 95, 122, 0.9);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    font-family: var(--font-family);
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    cursor: pointer;
    pointer-events: auto;
    border: none;
    transition: var(--transition);
    z-index: 2000;
}

.direction-btn:hover,
.direction-btn.selected {
    background: var(--accent-color);
}

.direction-north {
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
}

.direction-east {
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}

.direction-south {
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
}

.direction-west {
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
}

/* Étapes */
.step {
    opacity: 0;
    transform: translateX(60px);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
}

.step.active {
    opacity: 1;
    transform: translateX(0);
    display: block;
    position: relative;
    animation: slideInRight 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.step.exit-left {
    opacity: 0;
    transform: translateX(-60px);
    display: none;
    animation: slideOutLeft 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.step.exit-right {
    opacity: 0;
    transform: translateX(60px);
    display: none;
    animation: slideOutRight 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes slideInRight {
    0% {
        opacity: 0;
        transform: translateX(60px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes slideInLeft {
    0% {
        opacity: 0;
        transform: translateX(-60px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes slideOutLeft {
    0% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateX(-60px) scale(0.95);
    }
}

@keyframes slideOutRight {
    0% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateX(60px) scale(0.95);
    }
}

.step.active .step-title {
    animation: fadeInUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s both;
}

.step.active .step-subtitle {
    animation: fadeInUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s both;
}

.step.active .radio-group,
.step.active .form-group {
    animation: fadeInUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.4s both;
}

.step.active .btn {
    animation: fadeInUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.5s both;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Titres et sous-titres */
.step-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
    line-height: 1.2;
}

#step8 .step-title {
    font-size: 28px;
    margin-bottom: 15px;
}

.step-subtitle {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 40px;
    line-height: 1.5;
}

#step8 .step-subtitle {
    font-size: 16px;
    margin-bottom: 25px;
}

.clock-subtitle {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: flex-start;
    background: linear-gradient(135deg, #fff9c4, #fff3cd);
    padding: 15px 25px;
    border-radius: 25px;
    box-shadow: 0 8px 25px var(--shadow-light);
    animation: clockFloat 3s ease-in-out infinite;
    width: fit-content;
    font-weight: 600;
    color: var(--warning-color);
}

.animated-clock {
    font-size: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

@keyframes clockFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

/* Boîtes d'information */
.info-box {
    background: linear-gradient(135deg, #fff9c4, #fff3cd);
    padding: 20px 25px;
    border-radius: var(--border-radius-small);
    margin-bottom: 35px;
    border-left: 4px solid var(--accent-color);
    font-size: 15px;
    color: var(--warning-color);
    font-weight: 500;
}

.map-instructions {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    padding: 15px 20px;
    border-radius: var(--border-radius-small);
    margin-bottom: 20px;
    border-left: 4px solid var(--primary-color);
    font-size: 14px;
    color: #1565c0;
    font-weight: 500;
}

/* Formulaires */
.form-group {
    margin-bottom: 35px;
    position: relative;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin:1rem 0;
}

.radio-option {
    position: relative;
    background: var(--bg-light);
    border: 2px solid var(--bg-lighter);
    border-radius: var(--border-radius);
    padding: 25px 30px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 20px;
    font-weight: 500;
    font-size: 16px;
}

.radio-option:hover {
    border-color: var(--accent-color);
    background: linear-gradient(135deg, #fff, #fef7f7);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(234, 56, 76, 0.15);
}

.radio-option.selected {
    border-color: var(--accent-color);
    background: linear-gradient(135deg, #fff, #fef7f7);
    box-shadow: 0 8px 25px rgba(234, 56, 76, 0.2);
}

.radio-option input[type="radio"] {
    display: none;
}

.radio-checkmark {
    width: 28px;
    height: 28px;
    border: 3px solid #ddd;
    border-radius: 50%;
    position: relative;
    transition: var(--transition);
    margin-left: auto;
    flex-shrink: 0;
}

.radio-option.selected .radio-checkmark {
    border-color: var(--accent-color);
    background: var(--accent-color);
}

.radio-option.selected .radio-checkmark::after {
    content: '';
    width: 10px;
    height: 10px;
    background: white;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.choice-icon {
    width: 45px;
    height: 45px;
    object-fit: contain;
}

.icon {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    background: var(--gradient-primary);
    color: white;
    border-radius: var(--border-radius-small);
    flex-shrink: 0;
}

/* Champs de saisie */
.input-field {
    width: 100%;
    padding: 22px 28px;
    border: 2px solid var(--bg-lighter);
    border-radius: var(--border-radius);
    font-size: 18px;
    font-family: var(--font-family);
    transition: var(--transition);
    background: var(--bg-light);
    font-weight: 500;
}

.input-field:focus {
    outline: none;
    background: white;
    box-shadow: 0 0 0 4px rgba(234, 56, 76, 0.1);
}

.address-input-container {
    position: relative;
}

.address-input-container::before {
    content: '📍';
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    z-index: 10;
}

.address-input-container .input-field {
    padding-left: 60px;
}

.input-with-euro {
    position: relative;
    display: inline-block;
    width: 100%;
}

.input-with-euro .input-field {
    padding-right: 60px;
}

.euro-symbol {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
    pointer-events: none;
}

.dropdown {
    width: 100%;
    padding: 22px 28px;
    border: 2px solid var(--bg-lighter);
    border-radius: var(--border-radius);
    font-size: 18px;
    font-family: var(--font-family);
    background: var(--bg-light);
    font-weight: 500;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 20px center;
    background-repeat: no-repeat;
    background-size: 16px;
    margin-top: 15px;
}

.dropdown:focus {
    outline: none;
    background-color: white;
    box-shadow: 0 0 0 4px rgba(234, 56, 76, 0.1);
}

/* Suggestions d'adresses */
.address-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid var(--bg-lighter);
    border-top: none;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.address-suggestion {
    padding: 15px 20px;
    cursor: pointer;
    border-bottom: 1px solid var(--bg-light);
    transition: background-color 0.2s ease;
    font-size: 16px;
    color: var(--text-dark);
}

.address-suggestion:hover {
    background-color: var(--bg-light);
}

.address-suggestion:last-child {
    border-bottom: none;
}

/* Boutons */
.btn {
    background: var(--gradient-accent);
    color: white;
    border: none;
    padding: 22px 50px;
    border-radius: var(--border-radius);
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    font-family: var(--font-family);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 2rem;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(234, 56, 76, 0.4);
}

.btn:active {
    transform: translateY(-1px);
}

.back-btn {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    margin-bottom: 30px;
    padding: 18px 35px;
}

.back-btn:hover {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 15px 35px rgba(26, 95, 122, 0.4);
}

/* Ripple effect */
.btn {
    position: relative;
    overflow: hidden;
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    transform: scale(0);
    animation: ripple-animation 0.6s linear;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Résultats */
.results-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 25px;
    align-items: stretch;
}

.result-card {
    background: linear-gradient(135deg, var(--bg-light), var(--bg-lighter));
    padding: 25px;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 120px;
}

.result-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(26, 95, 122, 0.15);
}

.result-card h3 {
    color: var(--primary-color);
    font-size: 18px;
    margin-bottom: 12px;
    font-weight: 700;
}

.result-card p {
    color: #555;
    font-size: 15px;
    line-height: 1.5;
    font-weight: 500;
    margin: 0;
    flex-grow: 1;
}

/* Modales */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: white;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
    animation: modalSlideIn 0.3s ease;
    overflow: hidden;
}

@keyframes modalSlideIn {
    from { transform: translateY(-50px) scale(0.9); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}

.modal-header {
    background: var(--gradient-primary);
    color: white;
    padding: 25px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
}

.close {
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close:hover {
    background: rgba(255,255,255,0.2);
    transform: scale(1.1);
}

.modal-body {
    padding: 30px;
}

/* Section téléphone dans modal expert */
.phone-section {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.phone-icon {
    font-size: 48px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite;
}

.phone-info h3 {
    margin: 0 0 10px 0;
    color: var(--primary-color);
    font-size: 20px;
    font-weight: 600;
}

.phone-number {
    font-size: 28px;
    font-weight: 700;
    color: var(--success-color);
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-block;
}

.phone-number:hover {
    transform: scale(1.05);
    color: #2ecc71;
}

.phone-info p {
    margin: 10px 0 0 0;
    color: var(--text-light);
    font-size: 14px;
}

.divider {
    text-align: center;
    margin: 30px 0;
    position: relative;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--bg-lighter);
}

.divider span {
    background: white;
    padding: 0 20px;
    color: var(--text-light);
    font-weight: 500;
}

.social-section h3 {
    text-align: center;
    margin: 0 0 20px 0;
    color: var(--primary-color);
    font-size: 18px;
    font-weight: 600;
}

.social-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 20px;
    border: none;
    border-radius: var(--border-radius-small);
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    color: white;
}

.social-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.whatsapp {
    background: linear-gradient(135deg, #25D366, #128C7E);
}

    background: linear-gradient(135deg, #1877F2, #4267B2);
}

.linkedin {
    background: linear-gradient(135deg, #0077B5, #005885);
}

.instagram {
    background: linear-gradient(135deg, #E4405F, #C13584, #833AB4);
}

/* Formulaire de contact */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.form-field {
    margin-bottom: 20px;
}

.form-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary-color);
    font-size: 14px;
}

.form-field input,
.form-field textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--bg-lighter);
    border-radius: var(--border-radius-small);
    font-size: 16px;
    font-family: var(--font-family);
    transition: var(--transition);
    background: var(--bg-light);
}

.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 4px rgba(26, 95, 122, 0.1);
}

.form-field textarea {
    resize: vertical;
    min-height: 80px;
}

.submit-btn {
    width: 100%;
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 16px 24px;
    border-radius: var(--border-radius-small);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-family);
    margin-top: 10px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(26, 95, 122, 0.3);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Message de succès */
.success-message {
    text-align: center;
    padding: 40px 20px;
}

.success-check {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--success-color), #2ecc71);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    font-weight: bold;
    margin: 0 auto 20px;
    animation: successBounce 0.8s ease;
}

@keyframes successBounce {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.success-message h3 {
    color: var(--success-color);
    font-size: 24px;
    margin-bottom: 10px;
}

.success-message p {
    color: var(--text-light);
    font-size: 16px;
    line-height: 1.5;
}

/* Animation des éléments visuels */
.visual-content.fade-in,
.custom-house-container.fade-in,
.visual-map-container.fade-in {
    animation: fadeInScale 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Animation pulse pour certains éléments */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(234, 56, 76, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(234, 56, 76, 0); }
    100% { box-shadow: 0 0 0 0 rgba(234, 56, 76, 0); }
}

/* Styles pour les autocomplétions Google Maps */
.pac-container {
    border-radius: var(--border-radius) !important;
    box-shadow: 0 8px 25px rgba(234, 56, 76, 0.15) !important;
    border: 2px solid var(--bg-lighter) !important;
    font-family: var(--font-family) !important;
    margin-top: 5px !important;
}

.pac-item {
    padding: 15px 20px !important;
    border-bottom: 1px solid var(--bg-light) !important;
    font-size: 16px !important;
    font-family: var(--font-family) !important;
}

.pac-item:hover {
    background-color: var(--bg-light) !important;
}

.pac-item-selected {
    background-color: #fef7f7 !important;
}

.pac-item:last-child {
    border-bottom: none !important;
    border-radius: 0 0 var(--border-radius) var(--border-radius) !important;
}

.pac-item:first-child {
    border-radius: var(--border-radius) var(--border-radius) 0 0 !important;
}

.pac-icon {
    margin-right: 15px !important;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .main-container {
        flex-direction: column;
    }
    
    .form-section {
        max-width: none;
        padding: 40px 30px;
    }
    
    .visual-section {
        min-height: 400px;
    }
    
    .step-title {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 15px 20px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .header-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .expert-btn,
    .new-simulation-btn {
        font-size: 14px;
        padding: 12px 20px;
    }
    
    .logo {
        font-size: 28px;
    }
    
    .form-section {
        padding: 30px 20px;
    }
    
    .radio-option {
        padding: 20px 25px;
    }

    .btn {
        padding: 20px 40px;
        font-size: 16px;
    }
    
    .step-title {
        font-size: 28px;
    }
    
    .results-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .result-card {
        padding: 20px;
    }
    
    .result-card h3 {
        font-size: 16px;
    }
    
    .result-card p {
        font-size: 14px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .form-field input,
    .form-field textarea {
        font-size: 14px;
    }
    
    .success-check {
        width: 60px;
        height: 60px;
        font-size: 30px;
    }
    
    .modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .modal-header {
        padding: 20px;
    }
    
    .modal-header h2 {
        font-size: 20px;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .phone-section {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .phone-icon {
        width: 60px;
        height: 60px;
        font-size: 32px;
    }
    
    .phone-number {
        font-size: 24px;
    }
    
    .social-links {
        grid-template-columns: 1fr;
    }
}

/* Suppression d'éléments inutilisés */
.house-illustration {
    display: none;
}

/* Optimisations de performance */
.visual-content,
.custom-house-container,
.visual-map-container {
    will-change: transform;
}

.btn,
.radio-option,
.result-card {
    will-change: transform;
}

/* Amélioration de l'accessibilité */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus visible pour l'accessibilité */
.btn:focus-visible,
.radio-option:focus-visible,
.input-field:focus-visible,
.dropdown:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* Optimisation pour les impressions */
@media print {
    .header,
    .progress-container,
    .visual-section,
    .modal {
        display: none !important;
    }
    
    .main-container {
        flex-direction: column;
    }
    
    .form-section {
        max-width: 100%;
        padding: 20px;
    }
}

/* animation etape resultats */

/* ==========================================
   ANIMATIONS ÉTAPE 8 - À AJOUTER AU CSS
   ========================================== */

/* Animation des euros flottants en arrière-plan */
.euro-floating-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

.floating-euro {
    position: absolute;
    color: #27ae60;
    font-size: 36px;
    font-weight: bold;
    opacity: 0.3;
    animation: euroFloat ease-in-out infinite;
}

@keyframes euroFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.2;
    }
    50% {
        transform: translateY(-25px) rotate(15deg);
        opacity: 0.4;
    }
}

/* Rayons style soleil qui tournent - CENTRE FIXE */
.sun-rays {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    z-index: 1;
    pointer-events: none;
}

.sun-ray {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 6px;
    height: 50%;
    background: linear-gradient(to bottom, 
        rgba(255, 193, 7, 0.9) 0%, 
        rgba(255, 193, 7, 0.7) 20%, 
        rgba(255, 193, 7, 0.5) 40%, 
        rgba(255, 193, 7, 0.3) 60%, 
        rgba(255, 193, 7, 0.1) 80%, 
        transparent 100%);
    transform-origin: 50% 0%;
    border-radius: 3px;
    box-shadow: 0 0 10px rgba(255, 193, 7, 0.4);
    animation: rotateSunRay 10s linear infinite;
}

.sun-ray:nth-child(1) { 
    transform: translate(-50%, 0%) rotate(0deg); 
    animation-delay: 0s;
}
.sun-ray:nth-child(2) { 
    transform: translate(-50%, 0%) rotate(20deg); 
    animation-delay: -0.5s;
}
.sun-ray:nth-child(3) { 
    transform: translate(-50%, 0%) rotate(40deg); 
    animation-delay: -1s;
}
.sun-ray:nth-child(4) { 
    transform: translate(-50%, 0%) rotate(60deg); 
    animation-delay: -1.5s;
}
.sun-ray:nth-child(5) { 
    transform: translate(-50%, 0%) rotate(80deg); 
    animation-delay: -2s;
}
.sun-ray:nth-child(6) { 
    transform: translate(-50%, 0%) rotate(100deg); 
    animation-delay: -2.5s;
}
.sun-ray:nth-child(7) { 
    transform: translate(-50%, 0%) rotate(120deg); 
    animation-delay: -3s;
}
.sun-ray:nth-child(8) { 
    transform: translate(-50%, 0%) rotate(140deg); 
    animation-delay: -3.5s;
}
.sun-ray:nth-child(9) { 
    transform: translate(-50%, 0%) rotate(160deg); 
    animation-delay: -4s;
}
.sun-ray:nth-child(10) { 
    transform: translate(-50%, 0%) rotate(180deg); 
    animation-delay: -4.5s;
}
.sun-ray:nth-child(11) { 
    transform: translate(-50%, 0%) rotate(200deg); 
    animation-delay: -5s;
}
.sun-ray:nth-child(12) { 
    transform: translate(-50%, 0%) rotate(220deg); 
    animation-delay: -5.5s;
}
.sun-ray:nth-child(13) { 
    transform: translate(-50%, 0%) rotate(240deg); 
    animation-delay: -6s;
}
.sun-ray:nth-child(14) { 
    transform: translate(-50%, 0%) rotate(260deg); 
    animation-delay: -6.5s;
}
.sun-ray:nth-child(15) { 
    transform: translate(-50%, 0%) rotate(280deg); 
    animation-delay: -7s;
}
.sun-ray:nth-child(16) { 
    transform: translate(-50%, 0%) rotate(300deg); 
    animation-delay: -7.5s;
}
.sun-ray:nth-child(17) { 
    transform: translate(-50%, 0%) rotate(320deg); 
    animation-delay: -8s;
}
.sun-ray:nth-child(18) { 
    transform: translate(-50%, 0%) rotate(340deg); 
    animation-delay: -8.5s;
}

@keyframes rotateSunRay {
    0% {
        transform: translate(-50%, 0%) rotate(var(--start-rotation, 0deg));
        opacity: 1;
    }
    100% {
        transform: translate(-50%, 0%) rotate(calc(var(--start-rotation, 0deg) + 360deg));
        opacity: 1;
    }
}

/* Animation brillance sur "Gain certifié" */
.certified-badge {
    position: relative;
    overflow: hidden;
}

.certified-badge::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.6), 
        transparent);
    animation: shimmerCertified 3s ease-in-out infinite;
}

@keyframes shimmerCertified {
    0% {
        left: -100%;
        opacity: 0;
    }
    50% {
        left: 100%;
        opacity: 1;
    }
    100% {
        left: 100%;
        opacity: 0;
    }
}

/* Effet de pulsation douce pour la maison */
.custom-house-container.celebration-mode {
    z-index: 10;
    animation: gentlePulse 4s ease-in-out infinite;
}

@keyframes gentlePulse {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 20px 40px rgba(0,0,0,0.2));
    }
    50% {
        transform: scale(1.01);
        filter: drop-shadow(0 25px 50px rgba(255, 193, 7, 0.1));
    }
}




/* ==========================================
   CSS SUPPLÉMENTAIRE À AJOUTER DANS STYLE.CSS
   ========================================== */

/* Correction couleurs boutons Facebook et LinkedIn */
.facebook {
    background: linear-gradient(135deg, #1877F2, #4267B2);
}

.linkedin {
    background: linear-gradient(135deg, #0077B5, #005885);
}

/* Styles pour le formulaire en ligne */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.form-field {
    margin-bottom: 20px;
}

/* Animation du check pour les étapes finales */
.success-check {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--success-color), #2ecc71);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    font-weight: bold;
    margin: 0 auto 20px;
    animation: successBounce 0.8s ease;
}

@keyframes successBounce {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Styles pour les messages d'erreur de rénovation */
.renovation-error {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    border-left: 4px solid #dc3545;
    color: #721c24;
    padding: 20px 25px;
    border-radius: 12px;
    margin-bottom: 35px;
    font-size: 15px;
    font-weight: 500;
}

/* Adaptation des champs de saisie pour les dates */
input[type="month"] {
    width: 100%;
    padding: 22px 28px;
    border: 2px solid var(--bg-lighter);
    border-radius: var(--border-radius);
    font-size: 18px;
    font-family: var(--font-family);
    transition: var(--transition);
    background: var(--bg-light);
    font-weight: 500;
}

input[type="month"]:focus {
    outline: none;
    border-color: var(--accent-color);
    background: white;
    box-shadow: 0 0 0 4px rgba(234, 56, 76, 0.1);
}

/* Styles pour les résultats de rénovation */
.renovation-results {
    margin-top: 30px;
}

.renovation-results .result-card {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    border-left: 4px solid var(--success-color);
    color: #155724;
}

.renovation-results .result-card h3 {
    color: var(--success-color);
}

/* Animations pour les transitions entre services */
.service-transition {
    animation: serviceSlideIn 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes serviceSlideIn {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Amélioration des radio buttons pour les services */
.service-choice .radio-option {
    padding: 30px;
    margin-bottom: 15px;
    border: 3px solid var(--bg-lighter);
    border-radius: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, #fff, #fafbfc);
}

.service-choice .radio-option:hover {
    border-color: var(--accent-color);
    background: linear-gradient(135deg, #fff, #fef7f7);
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(234, 56, 76, 0.15);
}

.service-choice .radio-option.selected {
    border-color: var(--accent-color);
    background: linear-gradient(135deg, #fff, #fef7f7);
    box-shadow: 0 10px 30px rgba(234, 56, 76, 0.2);
}

/* Styles spécifiques pour les choix de revenus */
.income-blue {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb) !important;
    border-color: #2196f3 !important;
}

.income-yellow {
    background: linear-gradient(135deg, #fff9c4, #fff3cd) !important;
    border-color: #ffc107 !important;
}

.income-violet {
    background: linear-gradient(135deg, #f3e5f5, #e1bee7) !important;
    border-color: #9c27b0 !important;
}

.income-pink {
    background: linear-gradient(135deg, #fce4ec, #f8bbd9) !important;
    border-color: #e91e63 !important;
}

/* Styles pour les choix DPE */
.dpe-good {
    background: linear-gradient(135deg, #e8f5e8, #c8e6c9) !important;
    border-color: #4caf50 !important;
}

.dpe-average {
    background: linear-gradient(135deg, #fff9c4, #fff3cd) !important;
    border-color: #ff9800 !important;
}

.dpe-bad {
    background: linear-gradient(135deg, #ffebee, #ffcdd2) !important;
    border-color: #f44336 !important;
}

/* Animation de pulsation pour les éléments importants */
.pulse-animation {
    animation: gentlePulse 3s ease-in-out infinite;
}

@keyframes gentlePulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}

/* Styles pour les listes dans les info-box */
.info-box ul {
    margin: 10px 0;
    padding-left: 20px;
}

.info-box ul li {
    margin: 5px 0;
    line-height: 1.4;
}

/* Amélioration des boutons de retour */
.back-btn {
    background: transparent !important;
    color: var(--primary-color) !important;
    border: 2px solid var(--primary-color) !important;
    margin-bottom: 30px;
    padding: 18px 35px;
    font-size: 16px;
}

.back-btn:hover {
    background: var(--primary-color) !important;
    color: white !important;
    box-shadow: 0 15px 35px rgba(26, 95, 122, 0.4);
}

/* Styles pour les étapes cachées */
.step[style*="display: none"] {
    display: none !important;
}

/* Animation des erreurs */
.error-shake {
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Styles pour les montants en euros */
.amount-display {
    font-size: 24px;
    font-weight: 700;
    color: var(--success-color);
    text-align: center;
    margin: 20px 0;
}

/* Amélioration responsive pour mobile */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .service-choice .radio-option {
        padding: 20px;
        margin-bottom: 10px;
    }
    
    .success-check {
        width: 60px;
        height: 60px;
        font-size: 30px;
    }
    
    input[type="month"] {
        padding: 18px 24px;
        font-size: 16px;
    }
    
    .amount-display {
        font-size: 20px;
    }
}

/* Styles pour les indicateurs de progression par service */
.progress-bar.solar {
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.progress-bar.renovation {
    background: linear-gradient(90deg, var(--success-color), #2ecc71);
}

.progress-bar.insurance {
    background: linear-gradient(90deg, #9c27b0, #e91e63);
}

/* Animation d'entrée pour les nouveaux services */
.step-enter {
    animation: stepEnter 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes stepEnter {
    0% {
        opacity: 0;
        transform: translateX(50px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

/* Styles pour les notifications de succès */
.success-notification {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    border: 2px solid var(--success-color);
    border-radius: var(--border-radius);
    padding: 20px;
    margin: 20px 0;
    color: #155724;
    font-weight: 500;
    animation: slideInDown 0.5s ease;
}

@keyframes slideInDown {
    0% {
        opacity: 0;
        transform: translateY(-30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Finalisation des styles */
.final-step {
    text-align: center;
    padding: 40px 20px;
}

.final-step h2 {
    color: var(--success-color);
    margin-bottom: 30px;
}


/* Émojis pour le choix de services */
.choice-emoji {
    font-size: 32px;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 12px;
    flex-shrink: 0;
}

.service-choice .radio-option {
    align-items: center;
    gap: 15px;
}

/* Calendrier stylé */
.date-input-container {
    position: relative;
    display: inline-block;
    width: 100%;
}

.date-field {
    width: 100%;
    padding: 22px 28px 22px 60px;
    border: 2px solid var(--bg-lighter);
    border-radius: var(--border-radius);
    font-size: 18px;
    font-family: var(--font-family);
    transition: var(--transition);
    background: var(--bg-light);
    font-weight: 500;
}

.date-field:focus {
    outline: none;
    border-color: var(--accent-color);
    background: white;
    box-shadow: 0 0 0 4px rgba(234, 56, 76, 0.1);
}

.date-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    pointer-events: none;
    z-index: 10;
}

/* Check animé amélioré */
.success-check-animated {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--success-color), #2ecc71);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 50px;
    font-weight: bold;
    margin: 0 auto -40px;
    animation: successBounceEnhanced 1.2s ease;
    box-shadow: 0 10px 30px rgba(39, 174, 96, 0.3);
    position: relative;
    overflow: hidden;
}

.success-check-animated::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shine 2s infinite;
}

@keyframes successBounceEnhanced {
    0% { 
        transform: scale(0) rotate(-180deg);
        opacity: 0;
    }
    50% { 
        transform: scale(1.3) rotate(0deg);
        opacity: 1;
    }
    70% { 
        transform: scale(0.9) rotate(0deg);
    }
    100% { 
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

@keyframes shine {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Résultats améliorés */
.final-step-enhanced {
    text-align: center;
    padding: 40px 20px;
    position: relative;
}

.results-enhanced {
    background: linear-gradient(135deg, #fff, #f8f9fa);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    margin: 20px 0;
    border: 2px solid #e9ecef;
}

.results-title {
    color: var(--success-color);
    font-size: 28px;
    margin-bottom: 15px;
    font-weight: 700;
}

.results-subtitle {
    color: var(--text-light);
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 30px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 25px;
}

.benefit-card {
    display: flex;
    align-items: center;
    gap: 15px;
    background: linear-gradient(135deg, #f1f8ff, #e3f2fd);
    padding: 20px;
    border-radius: 15px;
    border-left: 4px solid var(--primary-color);
    transition: var(--transition);
}

.benefit-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(26, 95, 122, 0.15);
}

.benefit-icon {
    font-size: 32px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    flex-shrink: 0;
}

.benefit-text {
    flex-direction: column;
    gap: 5px;
    text-align: left;


}

.benefit-text strong {
    color: var(--primary-color);
    font-size: 16px;
    font-weight: 600;
}

.benefit-text span {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.4;
}

/* Effets de célébration */
.celebration-effects {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--accent-color);
    animation: confettiFall 3s infinite;
}

.sparkles {
    position: absolute;
    width: 6px;
    height: 6px;
    background: gold;
    border-radius: 50%;
    animation: sparkle 2s infinite;
}

@keyframes confettiFall {
    0% {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

@keyframes sparkle {
    0%, 100% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .choice-emoji {
        font-size: 24px;
        width: 40px;
        height: 40px;
    }
    
    .success-check-animated {
        width: 80px;
        height: 80px;
        font-size: 40px;
    }
    
    .results-title {
        font-size: 24px;
    }
    
    .benefit-icon {
        font-size: 24px;
        width: 50px;
        height: 50px;
    }
}



/* Conteneur principal de l'erreur */
.error-container-animated {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    opacity: 0;
    transform: translateY(50px) scale(0.9);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.error-container-animated.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.error-container-animated.shake {
    animation: errorShake 0.6s ease-in-out;
}

@keyframes errorShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Wrapper pour l'animation */
.error-animation-wrapper {
    position: relative;
    background: linear-gradient(135deg, #fff5f5, #fed7d7);
    border: 3px solid #fc8181;
    border-radius: 25px;
    padding: 40px;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(248, 113, 113, 0.3);
    text-align: center;
    overflow: hidden;
}

.error-animation-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: errorShine 3s infinite;
}

@keyframes errorShine {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Icône d'erreur animée */
.error-icon-animated {
    font-size: 80px;
    margin-bottom: 20px;
    animation: errorBounce 1s ease infinite;
    filter: drop-shadow(0 5px 15px rgba(220, 53, 69, 0.3));
}

@keyframes errorBounce {
    0%, 100% { 
        transform: translateY(0) rotate(0deg); 
    }
    25% { 
        transform: translateY(-10px) rotate(-5deg); 
    }
    75% { 
        transform: translateY(-5px) rotate(5deg); 
    }
}

/* Contenu de l'erreur */
.error-content {
    z-index: 10;
    position: relative;
}

.error-title {
    font-size: 32px;
    font-weight: 700;
    color: #c53030;
    margin-bottom: 15px;
    animation: fadeInUp 0.8s ease 0.3s both;
}

.error-message {
    font-size: 18px;
    color: #742a2a;
    line-height: 1.6;
    margin-bottom: 30px;
    animation: fadeInUp 0.8s ease 0.5s both;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Carte de détails */
.error-details {
    margin: 25px 0;
    animation: fadeInUp 0.8s ease 0.7s both;
}

.error-detail-card {
    display: flex;
    align-items: center;
    gap: 15px;
    background: linear-gradient(135deg, #fff, #f7fafc);
    padding: 20px;
    border-radius: 15px;
    border-left: 4px solid #ed8936;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: left;
}

.detail-icon {
    font-size: 32px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #fed7af, #fbb6ce);
    border-radius: 12px;
    flex-shrink: 0;
}

.detail-text {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.detail-text strong {
    color: #c05621;
    font-size: 16px;
    font-weight: 600;
}

.detail-text span {
    color: #744210;
    font-size: 14px;
    line-height: 1.4;
}

/* Actions d'erreur */
.error-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
    animation: fadeInUp 0.8s ease 0.9s both;
}

.btn-retry {
    background: linear-gradient(135deg, #4299e1, #3182ce) !important;
    color: white !important;
    border: none !important;
    padding: 15px 25px !important;
    border-radius: 25px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    box-shadow: 0 4px 15px rgba(66, 153, 225, 0.3) !important;
}

.btn-retry:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(66, 153, 225, 0.4) !important;
}

.btn-contact {
    background: linear-gradient(135deg, #48bb78, #38a169) !important;
    color: white !important;
    border: none !important;
    padding: 15px 25px !important;
    border-radius: 25px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    box-shadow: 0 4px 15px rgba(72, 187, 120, 0.3) !important;
}

.btn-contact:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(72, 187, 120, 0.4) !important;
}

.btn-icon {
    font-size: 18px;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Particules d'arrière-plan */
.error-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: #fc8181;
    border-radius: 50%;
    opacity: 0.6;
    animation: particleFloat 4s infinite;
}

.particle:nth-child(1) {
    top: 20%;
    left: 20%;
    animation-delay: 0s;
}

.particle:nth-child(2) {
    top: 80%;
    left: 80%;
    animation-delay: 0.8s;
}

.particle:nth-child(3) {
    top: 40%;
    left: 90%;
    animation-delay: 1.6s;
}

.particle:nth-child(4) {
    top: 70%;
    left: 10%;
    animation-delay: 2.4s;
}

.particle:nth-child(5) {
    top: 10%;
    left: 70%;
    animation-delay: 3.2s;
}

@keyframes particleFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .error-animation-wrapper {
        margin: 20px;
        padding: 30px 25px;
    }
    
    .error-icon-animated {
        font-size: 60px;
    }
    
    .error-title {
        font-size: 26px;
    }
    
    .error-message {
        font-size: 16px;
    }
    
    .error-actions {
        flex-direction: column;
        gap: 12px;
    }
    
    .btn-retry, .btn-contact {
        width: 100% !important;
        justify-content: center !important;
    }
    
    .error-detail-card {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .detail-icon {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
}

/* Animation d'entrée pour l'ensemble */
.error-container-animated * {
    animation-fill-mode: both;
}


/* DPE House Selector */
.dpe-house-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 30px 0;
}

.dpe-house {
    width: 300px;
    height: 250px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 20px 20px 0 0;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
    border: 3px solid #ddd;
    margin-bottom: 20px;
}

.dpe-house::before {
    content: '';
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 150px solid transparent;
    border-right: 150px solid transparent;
    border-bottom: 40px solid #6c757d;
}

.dpe-option {
    width: 60px;
    height: 25px;
    color: white;
    font-weight: bold;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 0 25px 25px 0;
    margin: 2px 0;
    position: relative;
}

.dpe-option:nth-child(1) { background: #00a651; } /* A - Vert foncé */
.dpe-option:nth-child(2) { background: #8cc43c; } /* B - Vert clair */
.dpe-option:nth-child(3) { background: #f7e500; color: #333; } /* C - Jaune */
.dpe-option:nth-child(4) { background: #f5a623; } /* D - Orange clair */
.dpe-option:nth-child(5) { background: #f57c00; } /* E - Orange */
.dpe-option:nth-child(6) { background: #e53935; } /* F - Rouge clair */
.dpe-option:nth-child(7) { background: #b71c1c; } /* G - Rouge foncé */

.dpe-option:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    z-index: 10;
}

.dpe-option.selected {
    transform: scale(1.15);
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
    z-index: 10;
    border: 3px solid white;
}

.dpe-info {
    margin-top: 20px;
}

.dpe-info p {
    text-align: center;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* Responsive */
@media (max-width: 768px) {
    .dpe-house {
        width: 250px;
        height: 200px;
        padding: 15px;
    }
    
    .dpe-house::before {
        border-left-width: 125px;
        border-right-width: 125px;
    }
    
    .dpe-option {
        width: 50px;
        height: 20px;
        font-size: 14px;
    }
}


.renovation-suspended {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7) !important;
    border-left: 4px solid #f39c12 !important;
    color: #856404 !important;
}

.suspension-content p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.next-steps {
    background: rgba(243, 156, 18, 0.1);
    padding: 15px;
    border-radius: 10px;
    margin-top: 15px;
}

.next-steps p {
    margin-bottom: 10px;
}


.validation-error {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    border: 2px solid #dc3545;
    border-radius: 12px;
    margin: 20px 0;
    padding: 0;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    animation: shake 0.5s ease-in-out;
}

.validation-error.show {
    opacity: 1;
    transform: translateY(0);
}

.validation-error.fade-out {
    opacity: 0;
    transform: translateY(-10px);
}

.error-content {
    display: block !important
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
}

.error-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.error-text {
    color: #721c24;
    font-weight: 600;
    font-size: 15px;
    line-height: 1.4;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}



/* DPE House Selector */
.dpe-house-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 30px 0;
}

.dpe-house {
    width: 320px; /* Légèrement plus large pour accommoder la barre G */
    height: 250px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 20px 20px 0 0;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px 20px 20px 30px; /* Plus d'espace à gauche pour les barres */
    border: 3px solid #ddd;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.dpe-house::before {
    content: '';
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 150px solid transparent;
    border-right: 150px solid transparent;
    border-bottom: 40px solid #6c757d;
}


.dpe-option {
    height: 25px;
    color: white;
    font-weight: bold;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 0 25px 25px 0;
    margin: 2px 0;
    position: relative;
    transform-origin: left center;
}

/* Longueurs progressives des barres DPE */
.dpe-option:nth-child(1) { 
    background: #00a651; 
    width: 20%; /* A - Plus courte */
}

.dpe-option:nth-child(2) { 
    background: #8cc43c; 
    width: 30%; /* B */
}

.dpe-option:nth-child(3) { 
    background: #f7e500; 
    color: #333; 
    width: 40%; /* C */
}

.dpe-option:nth-child(4) { 
    background: #f5a623; 
    width: 50%; /* D */
}

.dpe-option:nth-child(5) { 
    background: #f57c00; 
    width: 60%; /* E */
}

.dpe-option:nth-child(6) { 
    background: #e53935; 
    width: 70%; /* F */
}

.dpe-option:nth-child(7) { 
    background: #b71c1c; 
    width: 80%; /* G - Plus longue */
}

.dpe-option:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    z-index: 10;
}

.dpe-option.selected {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
    z-index: 10;
    border: 3px solid white;
}

/* Responsive - Ajuster les tailles pour mobile */
@media (max-width: 768px) {
    .dpe-house {
        width: 250px;
        height: 200px;
        padding: 15px;
    }
    
    .dpe-house::before {
        border-left-width: 125px;
        border-right-width: 125px;
        border-bottom-width: 30px;
        top: -30px;
    }
    
    /* Tailles réduites pour mobile */
    .dpe-option:nth-child(1) { width: 32px; height: 20px; font-size: 14px; }
    .dpe-option:nth-child(2) { width: 40px; height: 20px; font-size: 14px; }
    .dpe-option:nth-child(3) { width: 48px; height: 20px; font-size: 14px; }
    .dpe-option:nth-child(4) { width: 56px; height: 20px; font-size: 14px; }
    .dpe-option:nth-child(5) { width: 64px; height: 20px; font-size: 14px; }
    .dpe-option:nth-child(6) { width: 72px; height: 20px; font-size: 14px; }
    .dpe-option:nth-child(7) { width: 80px; height: 20px; font-size: 14px; }
}