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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

/* Hero Banner */
.hero-banner {
    width: 100%;
    background: linear-gradient(135deg, #1a365d 0%, #2d4a6b 50%, #1a365d 100%);
    padding: 30px 20px;
    position: relative;
    overflow: hidden;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 54, 93, 0.9) 0%, rgba(45, 74, 107, 0.9) 50%, rgba(26, 54, 93, 0.9) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero-text h1 {
    color: white;
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.hero-text p {
    color: #e2e8f0;
    font-size: 1.3rem;
    font-weight: 400;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    line-height: 1.5;
    max-width: 800px;
    margin: 0 auto;
}

/* Responsive Hero */
@media (max-width: 768px) {
    .hero-banner {
        padding: 25px 15px;
    }
    
    .hero-text h1 {
        font-size: 2.2rem;
    }
    
    .hero-text p {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 1.8rem;
    }
    
    .hero-text p {
        font-size: 1rem;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 0;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.logo {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #0066CC;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto 20px auto;
}

.description-text {
    max-width: 800px;
    margin: 0 auto 20px auto;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 4px solid #0066CC;
}

.description-text p {
    color: #555;
    line-height: 1.6;
    margin: 0;
    font-size: 1rem;
}

/* Main Content */
.main-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.section {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.section.hidden {
    display: none;
}

.section h2 {
    font-size: 2rem;
    font-weight: 600;
    color: #0066CC;
    margin-bottom: 30px;
    text-align: center;
}

/* Form Styles */
.form-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 40px;
}

/* Première ligne : Country + Building Type côte à côte */
.top-row {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 25px;
    align-items: start;
    margin-bottom: 30px;
}

/* Section Building Type avec plus d'espace */
.building-type-section {
    width: 100%;
}

/* Deuxième ligne : Electricity Price + CO₂ Factor côte à côte */
.energy-params-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    align-items: start;
    margin-bottom: 30px;
}

/* Responsive pour la première ligne */
@media (max-width: 1200px) {
    .top-row {
        grid-template-columns: 1fr 1.5fr;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .top-row {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .energy-params-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Conteneur horizontal pour prix électricité et CO2 sur la même ligne */
.form-group-horizontal {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

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

.form-group label {
    display: flex;
    align-items: center;
    font-weight: 500;
    margin-bottom: 8px;
    color: #333;
}

.form-group label .icon {
    margin-right: 8px;
    font-size: 1.2rem;
}


.form-group input,
.form-group select {
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #0066CC;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.form-group input[readonly] {
    background: #f8f9fa;
    color: #666;
}

.form-group small {
    color: #666;
    font-size: 0.85rem;
    margin-top: 4px;
}

/* Slider Styles */
.slider-container {
    margin-top: 10px;
}

.slider-container input[type="range"] {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #e1e5e9;
    outline: none;
    -webkit-appearance: none;
}

.slider-container input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #0066CC;
    cursor: pointer;
}

.slider-container input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #0066CC;
    cursor: pointer;
    border: none;
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 5px;
    font-size: 0.8rem;
    color: #666;
}

/* Button Styles */
.btn-primary {
    background: linear-gradient(135deg, #0066CC 0%, #004d99 100%);
    color: white;
    padding: 16px 32px;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    margin: 0 auto;
    min-width: 200px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 102, 204, 0.3);
}

.btn-secondary {
    background: white;
    color: #0066CC;
    padding: 12px 24px;
    border: 2px solid #0066CC;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #0066CC;
    color: white;
}

/* Results Styles */
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
    max-width: 100%;
}

.result-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    border: 2px solid #e1e5e9;
    transition: all 0.3s ease;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.result-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.result-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.result-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0066CC;
    margin-bottom: 6px;
    word-break: break-word;
    line-height: 1.2;
}

.result-label {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

/* Contact Form */
.contact-form {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.contact-form h3 {
    color: #0066CC;
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.contact-form p {
    color: #666;
    margin-bottom: 25px;
}

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

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 25px;
}

.checkbox-group input[type="checkbox"] {
    margin-top: 3px;
    width: 18px;
    height: 18px;
}

.checkbox-group label {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
    text-align: left;
}

.privacy-link {
    color: #0066CC;
    text-decoration: none;
}

.privacy-link:hover {
    text-decoration: underline;
}

/* Success Message */
.success-message {
    text-align: center;
    padding: 40px;
}

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

.success-message h2 {
    color: #28a745;
    margin-bottom: 15px;
}

.success-message p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 30px;
}

/* Note */
.note {
    background: #e3f2fd;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #0066CC;
}

.note p {
    margin-bottom: 10px;
    color: #333;
}

.note p:last-child {
    margin-bottom: 0;
}

/* Disclaimer */
.disclaimer {
    text-align: center;
    font-size: 0.9rem;
    color: #666;
    margin-top: 20px;
    font-style: italic;
}

/* Footer */
.footer {
    text-align: center;
    padding: 30px 0;
    color: #666;
    font-size: 0.9rem;
}

/* Loading Animation */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.loading .btn-primary {
    background: #ccc;
    cursor: not-allowed;
}

/* Building Type Cards Styles */
.building-types-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 8px;
    margin-top: 15px;
    width: 100%;
    max-width: none;
}

.building-type-option {
    position: relative;
}

.building-type-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.building-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 4px;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    height: 60px;
    position: relative;
    overflow: hidden;
}

.building-card:hover {
    border-color: #0066CC;
    background: #f8f9ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.15);
}

.building-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #0066CC, #004499);
    border-radius: 6px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.building-type-option input[type="radio"]:checked + .building-card {
    border-color: #0066CC;
    background: linear-gradient(135deg, #0066CC 0%, #004499 100%);
    color: white;
    box-shadow: 0 3px 10px rgba(0, 102, 204, 0.3);
    transform: translateY(-1px);
}

.building-type-option input[type="radio"]:checked + .building-card::before {
    opacity: 1;
}

.building-icon {
    font-size: 1.4rem;
    margin-bottom: 2px;
    transition: transform 0.3s ease;
}

.building-type-option input[type="radio"]:checked + .building-card .building-icon {
    transform: scale(1.02);
    filter: brightness(1.2);
}

.building-name {
    font-weight: 500;
    font-size: 0.65rem;
    line-height: 1;
    transition: color 0.3s ease;
}

.building-type-option input[type="radio"]:checked + .building-card .building-name {
    color: white;
    font-weight: 600;
}

/* Responsive for building cards */
@media (max-width: 768px) {
    /* Style responsive pour form-group-horizontal */
    .form-group-horizontal {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .building-types-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(5, 1fr);
        gap: 6px;
        max-width: none;
    }
    
    .building-card {
        padding: 10px 6px;
        height: 65px;
    }
    
    .building-icon {
        font-size: 1.3rem;
        margin-bottom: 3px;
    }
    
    .building-name {
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .building-types-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(5, 1fr);
        gap: 8px;
        max-width: none;
    }
    
    .building-card {
        flex-direction: column;
        text-align: center;
        padding: 12px;
        height: 70px;
    }
    
    .building-icon {
        font-size: 1.4rem;
        margin-bottom: 4px;
        margin-right: 0;
    }
    
    .building-name {
        font-size: 0.7rem;
    }
}

/* Animation pour les transitions */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section {
    animation: slideInUp 0.6s ease-out;
}

/* États des champs obligatoires */
.form-group input:invalid,
.form-group select:invalid {
    border-color: #dc3545;
}

.form-group input:valid,
.form-group select:valid {
    border-color: #28a745;
}

/* Messages d'erreur */
.error-message {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 5px;
    display: none;
}

.form-group.error .error-message {
    display: block;
}

.form-group.error input,
.form-group.error select {
    border-color: #dc3545;
    background-color: #fff5f5;
}

/* Styles pour les paramètres de bâtiment */
#building-parameters {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    border: 2px solid #e1e5e9;
}

#building-parameters .form-label {
    color: #0066CC;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.parameter-inputs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.parameter-inputs .form-group {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e1e5e9;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.parameter-inputs .form-group:hover {
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.1);
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

.parameter-inputs label {
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.parameter-inputs .icon {
    color: #0066CC;
    font-size: 1.3rem;
}

.parameter-inputs input[type="number"] {
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 16px;
    font-weight: 500;
}

.parameter-inputs input[type="number"]:focus {
    border-color: #0066CC;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.parameter-inputs small {
    background: #f8f9fa;
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    margin-top: 8px;
    font-size: 0.8rem;
    color: #666;
    display: block;
}

/* Animation pour l'apparition des paramètres */
#building-parameters.hidden {
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease;
}

#building-parameters:not(.hidden) {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.3s ease;
}

/* Responsive pour les paramètres */
@media (max-width: 768px) {
    .parameter-inputs {
        grid-template-columns: 1fr;
    }
    
    #building-parameters {
        padding: 20px 15px;
    }
    
    .parameter-inputs .form-group {
        padding: 15px;
    }
}

/* Nouveaux styles pour la version paramètres */
.country-info {
    margin-top: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #0066CC;
}

.country-info .info-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
}

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

.country-info .info-row span:first-child {
    font-weight: 500;
    color: #666;
}

.country-info .info-row span:last-child {
    font-weight: 600;
    color: #0066CC;
}

.parameter-selector {
    margin-bottom: 25px;
}

.parameter-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.parameter-option {
    position: relative;
}

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

.parameter-card {
    display: block;
    padding: 15px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.parameter-card:hover {
    border-color: #0066CC;
    background: #f0f8ff;
}

.parameter-option input[type="radio"]:checked + .parameter-card {
    border-color: #0066CC;
    background: #e8f4f8;
    box-shadow: 0 2px 8px rgba(0, 102, 204, 0.2);
}

.parameter-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.parameter-range {
    font-size: 12px;
    color: #666;
    line-height: 1.4;
}

.parameter-value-container {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.parameter-inputs {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.parameter-input-group {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.parameter-input-group .form-group {
    margin-bottom: 0;
}

.parameter-info {
    margin-top: 8px;
}

.parameter-info small {
    color: #666;
    font-size: 13px;
    display: block;
    background: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.calculation-details {
    margin-top: 30px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.calculation-details h3 {
    margin-bottom: 20px;
    color: #0066CC;
    font-size: 1.2rem;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #e9ecef;
}

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

.detail-item .label {
    font-weight: 500;
    color: #666;
}

.detail-item span:last-child {
    font-weight: 600;
    color: #333;
}

.contact-form-section {
    margin-top: 40px;
    padding: 30px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.contact-form-section h3 {
    color: #0066CC;
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.contact-form-section p {
    color: #666;
    margin-bottom: 25px;
    line-height: 1.6;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.checkbox-group input[type="checkbox"] {
    margin-top: 4px;
    width: 18px;
    height: 18px;
    accent-color: #0066CC;
}

.checkbox-group label {
    font-size: 14px;
    line-height: 1.5;
    color: #666;
}

.success-message {
    text-align: center;
    padding: 60px 40px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

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

.success-message h2 {
    color: #0066CC;
    margin-bottom: 15px;
    font-size: 2rem;
}

.success-message p {
    color: #666;
    margin-bottom: 30px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.btn-secondary {
    background: #6c757d;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

/* Responsive design pour les nouveaux éléments */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .details-grid {
        grid-template-columns: 1fr;
    }
    
    .parameter-input-group,
    .parameter-value-container {
        padding: 15px;
    }
    
    .parameter-options {
        grid-template-columns: 1fr;
    }
    
    .contact-form-section {
        padding: 20px;
    }
    
    .success-message {
        padding: 40px 20px;
    }
    
    .success-message h2 {
        font-size: 1.5rem;
    }
}

/* Styles pour les sliders des paramètres */
.input-with-slider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
    max-width: 280px; /* Limiter la largeur pour éviter le débordement */
}

.parameter-input {
    flex: 0 0 100px; /* Réduire la largeur du champ numérique */
    padding: 10px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 0.9rem;
    text-align: center;
    font-weight: 600;
}

.parameter-slider {
    flex: 1;
    max-width: 160px; /* Largeur maximale pour le slider */
    height: 6px;
    border-radius: 10px;
    background: #e0e0e0;
    outline: none;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.parameter-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #0066CC;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 102, 204, 0.3);
    transition: all 0.2s ease;
}

.parameter-slider::-webkit-slider-thumb:hover {
    background: #0052a3;
    transform: scale(1.05);
    box-shadow: 0 3px 10px rgba(0, 102, 204, 0.4);
}

.parameter-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #0066CC;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(0, 102, 204, 0.3);
    transition: all 0.2s ease;
}

.parameter-slider::-moz-range-thumb:hover {
    background: #0052a3;
    transform: scale(1.05);
    box-shadow: 0 3px 10px rgba(0, 102, 204, 0.4);
}

/* Styles pour l'effet de flou des résultats - inspiré du code fonctionnel */
.blurred-result {
    filter: blur(8px);
    pointer-events: none;
    position: relative;
    transition: filter 0.6s ease-out;
}

.blurred-result::after {
    content: "🔒 Complete form below to view results";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.95);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #0066CC;
    border: 2px solid #0066CC;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 102, 204, 0.25);
    white-space: nowrap;
    z-index: 10;
}

/* Classe ajoutée après calcul pour révéler les résultats */
.results-revealed .blurred-result {
    filter: none !important;
    pointer-events: auto;
    animation: revealResults 0.8s ease-out forwards;
}

.results-revealed .blurred-result::after {
    display: none;
}

@keyframes revealResults {
    0% {
        filter: blur(8px);
        opacity: 0.6;
        transform: scale(0.95);
    }
    50% {
        filter: blur(2px);
        opacity: 0.8;
        transform: scale(0.98);
    }
    100% {
        filter: none;
        opacity: 1;
        transform: scale(1);
    }
}

/* Amélioration de l'affichage des paramètres */
.parameter-inputs {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 15px;
}

@media (min-width: 768px) {
    .parameter-inputs {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

/* Demo Button Styles */
.btn-demo {
    background: linear-gradient(135deg, #0066CC 0%, #004499 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-demo:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 102, 204, 0.4);
    background: linear-gradient(135deg, #004499 0%, #0066CC 100%);
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    padding: 30px 30px 20px 30px;
    border-bottom: 1px solid #eee;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 2rem;
    cursor: pointer;
    color: #999;
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: #333;
}

.modal-header h2 {
    color: #0066CC;
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.modal-header p {
    color: #666;
    font-size: 1rem;
    line-height: 1.5;
}

/* Demo Form Styles */
.demo-form {
    padding: 30px;
}

.demo-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.demo-form .form-row:last-of-type {
    grid-template-columns: 1fr;
}

.demo-form .form-group {
    margin-bottom: 0;
}

.demo-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.demo-form input,
.demo-form select,
.demo-form textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.demo-form input:focus,
.demo-form select:focus,
.demo-form textarea:focus {
    outline: none;
    border-color: #0066CC;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.demo-form textarea {
    resize: vertical;
    min-height: 100px;
}

.demo-form .checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
}

.demo-form .checkbox-group input[type="checkbox"] {
    width: auto;
    margin-top: 4px;
    flex-shrink: 0;
}

.demo-form .checkbox-group label {
    margin-bottom: 0;
    font-weight: 400;
    font-size: 0.9rem;
    line-height: 1.4;
}

.demo-privacy-notice {
    margin-bottom: 25px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.privacy-link {
    color: #0066CC;
    text-decoration: none;
}

.privacy-link:hover {
    text-decoration: underline;
}

/* Responsive Modal */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .modal-header,
    .demo-form {
        padding: 20px;
    }
    
    .demo-form .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}
