/* ==========================================================================
   Simulateur Page Styles
   ========================================================================== */

/* Hero Section */
.simulateur-hero {
    background: url('https://www.safesante.fr/wp-content/uploads/2025/09/999af1e7c96858c9ea9142af5d219ec5f535fa67-1-scaled.webp') center center / cover no-repeat;
    min-height: 100vh;
    padding: 80px 20px 60px;
    position: relative;
    overflow: hidden;
}

.simulateur-container {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* Page Header */
.simulateur-header {
    text-align: center;
    margin-bottom: 50px;
}

.simulateur-title {
    font-family: 'Playfair Display', serif;
    font-size: 56px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 15px;
    line-height: 1.2;
    text-align: center;
}

.simulateur-subtitle {
    font-family: 'DM Sans', sans-serif;
    font-size: 20px;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 auto;
    font-weight: 400;
    display: block;
    text-align: center;
}

/* Simulator Card */
.simulateur-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 50px;
    max-width: 650px;
    margin: 0 auto;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
    position: relative;
}

.card-title {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 700;
    color: #1a237e;
    text-align: center;
    margin: 0 0 10px;
    line-height: 1.3;
}

.card-subtitle {
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    color: #666;
    text-align: center;
    margin: 0 0 35px;
}

/* Form Inputs */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #1a237e;
    margin-bottom: 10px;
}

.form-group label .required {
    color: #ff6b5b;
}

.form-input {
    width: 100%;
    height: 55px;
    background: rgba(26, 35, 126, 0.06);
    border: 1px solid rgba(26, 35, 126, 0.15);
    border-radius: 10px;
    padding: 0 20px;
    font-family: 'DM Sans', sans-serif;
    font-size: 18px;
    font-weight: 500;
    color: #1a237e;
    outline: none;
    transition: all 0.3s ease;
}

.form-input:focus {
    border-color: #1a237e;
    background: rgba(26, 35, 126, 0.1);
}

.form-input::placeholder {
    color: #999;
}

.helper-text {
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    color: #333333;
    margin-top: 8px;
    font-style: italic;
}

/* Two Column Layout */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Submit Button */
.btn-submit {
    width: 100%;
    height: 55px;
    background: linear-gradient(135deg, #ff6b5b 0%, #ff8a7a 100%);
    border: none;
    border-radius: 50px;
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 15px;
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(255, 107, 91, 0.4);
}

/* Form Panel Toggle */
.form-panel {
    display: none;
}

.form-panel.active {
    display: block;
}

/* Checkbox */
.checkbox-group {
    margin: 25px 0;
}

.checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.checkbox-wrapper input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #ff6b5b;
    flex-shrink: 0;
    margin-top: 2px;
}

.checkbox-wrapper label {
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    cursor: pointer;
}

/* Error Messages */
.field-error {
    display: none;
    font-family: 'DM Sans', sans-serif;
    font-size: 12px;
    color: #ff6b5b;
    margin-top: 6px;
}

.field-error.visible {
    display: block !important;
}

.form-input.input-error {
    border-color: #ff6b5b;
    background: rgba(255, 107, 91, 0.05);
}

/* Inline Results Box */
.results-box-inline {
    background: linear-gradient(135deg, #ff6b5b 0%, #ff8a7a 100%);
    border-radius: 16px;
    padding: 30px;
    margin-top: 25px;
    text-align: center;
    display: none;
}

.results-box-inline.visible {
    display: block;
}

.results-box-inline h3 {
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 20px;
}

.results-box-inline p {
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    color: #ffffff;
    margin: 0 0 12px;
    line-height: 1.6;
}

.results-box-inline .highlight-value {
    color: #ffeb3b;
    font-weight: 700;
}

.results-box-inline .btn-rdv {
    display: inline-block;
    background: #1a237e;
    color: #ffffff;
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    font-weight: 600;
    padding: 14px 30px;
    border-radius: 50px;
    text-decoration: none;
    margin-top: 15px;
    transition: all 0.3s ease;
}

.results-box-inline .btn-rdv:hover {
    background: #0d1442;
    transform: translateY(-2px);
}

/* Back Button */
.btn-back {
    width: 100%;
    height: 50px;
    background: transparent;
    border: 2px solid rgba(26, 35, 126, 0.2);
    border-radius: 50px;
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: #1a237e;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-back:hover {
    background: rgba(26, 35, 126, 0.05);
    border-color: #1a237e;
}

/* ==========================================================================
   Benefits Section - Split Layout
   ========================================================================== */

.benefits-section {
    background: #e8f4f8;
    padding: 100px 20px;
}

.benefits-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

/* Left Column - Text */
.benefits-content {
    padding-right: 20px;
}

.benefits-title {
    font-family: 'Playfair Display', serif;
    font-size: 42px;
    font-weight: 700;
    color: #1a237e;
    margin: 0 0 20px;
    line-height: 1.2;
}

.benefits-description {
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    color: #666;
    line-height: 1.7;
    margin: 0 0 20px;
}

.benefits-description:last-child {
    margin-bottom: 0;
}

.benefits-description strong {
    color: #1a237e;
}

/* Right Column - Benefits Cards Grid */
.benefits-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.benefit-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.benefit-card-icon {
    width: 60px;
    height: 60px;
    background: rgba(26, 35, 126, 0.08);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.benefit-card-icon img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.benefit-card h4 {
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #1a237e;
    margin: 0;
    line-height: 1.4;
}

/* ==========================================================================
   Scroll Reveal Animations
   ========================================================================== */

/* Base state - hidden */
.reveal {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Fade up animation */
.reveal-up {
    transform: translateY(40px);
}

/* Fade down animation */
.reveal-down {
    transform: translateY(-40px);
}

/* Fade left animation */
.reveal-left {
    transform: translateX(-40px);
}

/* Fade right animation */
.reveal-right {
    transform: translateX(40px);
}

/* Scale up animation */
.reveal-scale {
    transform: scale(0.9);
}

/* Revealed state */
.reveal.revealed {
    opacity: 1;
    transform: translateY(0) translateX(0) scale(1);
}

/* Stagger delays for cards */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* Hero elements animation on load */
.simulateur-header {
    animation: fadeInDown 0.8s ease-out forwards;
}

.simulateur-card {
    animation: fadeInUp 0.8s ease-out 0.3s forwards;
    opacity: 0;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   Responsive Styles
   ========================================================================== */

@media (max-width: 992px) {
    .benefits-container {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .benefits-content {
        padding-right: 0;
        text-align: center;
    }

    .benefits-cards {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .simulateur-title {
        font-size: 38px;
    }

    .simulateur-card {
        padding: 35px 25px;
    }

    .card-title {
        font-size: 24px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .benefits-title {
        font-size: 32px;
    }

    .benefits-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .benefit-card {
        padding: 25px 15px;
    }
}

@media (max-width: 480px) {
    .simulateur-hero {
        padding: 60px 15px 40px;
    }

    .simulateur-title {
        font-size: 32px;
    }

    .simulateur-subtitle {
        font-size: 16px;
    }

    .simulateur-card {
        padding: 30px 20px;
    }

    .card-title {
        font-size: 20px;
    }

    .benefits-section {
        padding: 60px 15px;
    }

    .benefits-title {
        font-size: 28px;
    }

    .benefits-cards {
        grid-template-columns: 1fr 1fr;
    }

    .benefit-card {
        padding: 20px 12px;
    }

    .benefit-card-icon {
        width: 50px;
        height: 50px;
    }

    .benefit-card-icon img {
        width: 26px;
        height: 26px;
    }

    .benefit-card h4 {
        font-size: 13px;
    }
}
