body {
            font-family: Arial, sans-serif;
            background: #fafaf0;
            margin: 0; 
            padding: 0;
            display: flex; 
            flex-direction: column; 
            align-items: center; 
        } 
    
       #calculateur-container h1 { 
            margin: 35px 0 15px 0;
            color: #222;
            text-align: center;
            font-size: 2.4rem;
            font-weight: 700;
            line-height: 1.2;
        }

        #calculateur-container h2,
        .container h2 {
            font-size: 1.7rem;
            margin-top: 0;
            margin-bottom: 40px;
            text-align: center;
            color: #555;
            font-weight: 500;
            line-height: 1.4;
        }

        .container {
            background: #fff; 
            border-radius: 12px; 
             padding: 40px; /* Augmenter le padding */
             max-width: 900px; /* Légèrement plus large */
            display: flex; 
            flex-direction: column;
            align-items: center;
            gap: 25px; 
            box-shadow: 0 5px 20px rgba(0,0,0,0.15);
            width: 92%;
            margin: 30px auto 60px;
            border-top: 5px solid #EF7A6C;
        }
        .step { 
            display: none;
            text-align: center;
            width: 100%;
            opacity: 0;
            transform: translateY(20px);
             transition: opacity 0.6s ease, transform 0.6s ease;
        }

        .step.active { 
            display: block;
            opacity: 1;
            transform: translateY(0);
        }
        .options {
            display: flex; 
            gap: 20px; 
            flex-wrap: wrap;
            justify-content: center;
            margin: 0 auto;
        }
        .option {
            cursor: pointer; 
            border: 2px solid #e0e0e0; 
            border-radius: 10px;
            padding: 22px 28px; 
            background: #fafaf8; 
            text-align: center; 
            transition: all 0.3s ease;
            min-width: 160px;
            box-shadow: 0 3px 7px rgba(0,0,0,0.07);
            font-weight: 600;
            font-size: 17px;
        }

        .option:hover {
            border-color: #EF7A6C;
            background: #fff;
            transform: translateY(-3px);
            box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        }

        .option.selected {
            border-color: #EF7A6C;
            border-width: 3px;
            background: #f9fff9;
            color: #333;
            font-weight: 600;
            box-shadow: 0 4px 12px rgba(239, 122, 108, 0.2);
        }
        .nav-buttons {
            display: flex; 
            justify-content: space-between;
            margin-top: 20px;
            width: 100%;
        }
        button {
            padding: 36px 48px; 
            border: none; 
            background: #EF7A6C; 
            border-radius: 6px; 
            cursor: pointer; 
            font-size: 24px;
            color: white;
            font-weight: 600;
            letter-spacing: 0.8px;
            text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
            transition: all 0.3s ease;
            box-shadow: 0 4px 10px rgba(239, 122, 108, 0.4);
        }

        button:hover {
            background: #E35A49;
            transform: translateY(-2px);
            box-shadow: 0 5px 12px rgba(239, 122, 108, 0.4);
        }

        button:active {
            transform: translateY(1px);
        }
        .btn-disabled {
            background: #ccc;
            cursor: not-allowed;
        }
        input[type="number"], 
        input[type="text"], 
        select {
            width: 100%;
            max-width: 380px;
            padding: 18px 20px;
            margin: 10px auto; /* Centrage horizontal */
            border: 2px solid #e0e0e0;
            border-radius: 12px;
            font-size: 18px;
            transition: all 0.3s ease;
            box-shadow: inset 0 2px 4px rgba(0,0,0,0.08);
            appearance: none; /* Supprime l'apparence par défaut du navigateur */
            -webkit-appearance: none;
            -moz-appearance: none;
            background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-position: right 15px center;
            background-size: 16px;
            padding-right: 45px; /* Espace supplémentaire à droite pour l'icône */
            white-space: nowrap; /* Empêche le texte de se couper */
            overflow: hidden; /* Cache le texte qui dépasse */
            text-overflow: ellipsis; /* Ajoute des points de suspension si le texte est trop long */
        }

        input[type="number"]:focus, 
        input[type="text"]:focus, 
        select:focus {
                border-color: #EF7A6C;
                outline: none;
                box-shadow: 0 0 0 3px rgba(239, 122, 108, 0.15);
            }
        #results {
            display: none;
            margin-top: 30px;
            padding: 0;
            background: transparent;
            border-radius: 12px;
            width: 100%;
        }

        /* Style spécifique pour le menu état matrimonial (question 12) */
            select[name="etat_matrimonial"] {
                height: auto;
                min-height: 60px;
                text-indent: 5px; /* Ajout d'un peu d'indentation */
                overflow: visible; /* Permet au texte de déborder si nécessaire */
                white-space: normal; /* Permet au texte de passer à la ligne */
                line-height: 1.2; /* Ajuster l'interligne pour plus de lisibilité */
            }

        /* Amélioration pour les options dans le menu déroulant */
        select option {
            padding: 12px;
            font-size: 16px;
            background-color: white;
            color: #333;
        }

        .results-section {
            margin-bottom: 25px;
            padding: 22px;
            background: white;
            border-radius: 10px;
            box-shadow: 0 3px 10px rgba(0,0,0,0.07);
            transition: transform 0.3s ease;
        }

        .results-section:hover {
            transform: translateY(-3px);
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        }
        .recommendations {
            background: #fafaf0;
            padding: 15px;
            border-radius: 5px;
            margin-top: 20px;
        }
        #calculateur-container h3,
        .container h3 { 
            color: #2c5282;
            border-bottom: 2px solid #e2e8f0;
            padding-bottom: 12px;
            margin-top: 25px;
            font-size: 1.3rem;
            position: relative;
        }

        /* h3:after supprimé pour éviter les barres oranges
        h3:after {
            content: '';
            position: absolute;
            bottom: -2px;
            left: 0;
            width: 60px;
            height: 2px;
            background-color: #EF7A6C;
        } */
        ul {
            list-style-type: none;
            padding-left: 0;
        }
        li {
            margin-bottom: 10px;
            padding-left: 20px;
            position: relative;
        }
        li:before {
            content: "•";
            color: #0a1258; /* Changé de orange à bleu pour éviter la propagation */
            font-weight: bold;
            position: absolute;
            left: 0;
        }
        .form-group {
            margin-bottom: 1.5rem;
        }
        .form-group label {
            display: block;
            margin-bottom: 0.5rem;
            font-weight: bold;
        }
        .contact-input {
            width: 100%;
            max-width: 400px;
            padding: 10px;
            margin: 5px auto; /* Modifié pour ajouter auto sur les côtés */
            border: 2px solid #ddd;
            border-radius: 8px;
            font-size: 16px;
            display: block; /* Assure que l'élément est en bloc */
        }

        /* Ajout d'une règle spécifique pour les labels du formulaire */
            .form-group label {
                display: block;
                margin-bottom: 0.5rem;
                font-weight: bold;
                text-align: center; /* Centre le texte des labels */
                width: 100%;
            }

        .error-message {
            color: #EF4444;
            font-size: 0.875rem;
            margin-top: 0.25rem;
            display: block;
        }
        textarea.contact-input {
            resize: vertical;
            min-height: 80px;
        }
        .btn-finish {
            background-color: #EF7A6C !important;
        }
        .btn-finish.btn-disabled {
            background-color: #ccc !important;
            cursor: not-allowed;
        }
        .nav-center {
            justify-content: center !important;
        }
        .btn-large {
    padding: 22px 48px !important;
    font-size: 22px !important;
    font-weight: bold !important;
    min-width: 380px !important;
    background: linear-gradient(to right, #EF7A6C, #E35A49) !important;
    border-radius: 50px !important;
    box-shadow: 0 8px 20px rgba(239, 122, 108, 0.5) !important;
    transition: all 0.4s ease !important;
    position: relative;
    overflow: hidden;
    letter-spacing: 1px !important;
}

        .btn-large:hover {
            transform: translateY(-3px) !important;
            box-shadow: 0 8px 20px rgba(239, 122, 108, 0.5) !important;
        }

        .btn-large:active {
            transform: translateY(1px) !important;
        }

        .btn-large: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: 0.5s;
        }

        .btn-large:hover:before {
            left: 100%;
        }
        /* Style du titre avec l'icône d'info */
        .question-title {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            margin-bottom: 20px;
        }

        .info-icon {
            width: 24px;
            height: 24px;
            border-radius: 50%;
            background-color: #fff;
            border: 2px solid #3498db;
            color: #3498db;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
            font-style: italic;
            font-size: 14px;
            cursor: pointer;
            position: relative;
        }

        /* Animation pour l'icône au survol */
        .info-icon:hover {
            background-color: #3498db;
            color: white;
        }

        /* Style pour les info-box (initialement cachées) */
        .info-box {
            max-height: 0;
            overflow: hidden;
            background-color: #fafbfe;
            border-radius: 10px;
            margin: 0 auto 15px;
            width: 92%;
            transition: all 0.4s ease;
            box-sizing: border-box;
            text-align: left;
            font-size: 0.97rem;
            line-height: 1.6;
            color: #444;
            opacity: 0;
            transform: translateY(-10px);
        }

        .info-box.show {
            max-height: 500px;
            padding: 18px 22px;
            margin-bottom: 25px;
            border: 1px solid #e2e8f0;
            box-shadow: 0 3px 12px rgba(0,0,0,0.07);
            opacity: 1;
            transform: translateY(0);
            border-left: 4px solid #3498db;
        }
        /* Style pour la note spéciale */
        .note {
            background-color: #fff8e6;
            border-left: 4px solid #ffc107;
            padding: 10px 15px;
            margin: 15px 0;
            font-size: 0.9rem;
            color: #555;
            border-radius: 3px;
        }

        /* Styles pour le calculateur interactif */
        .calculateur-interactif {
            background-color: #f5f8ff;
            border-radius: 10px;
            padding: 1.5rem;
            margin: 1.5rem 0;
            box-shadow: 0 3px 10px rgba(0,0,0,0.1);
        }

        .calculateur-interactif h3 {
            color: #2c5282;
            margin-bottom: 1.5rem;
            text-align: center;
            font-size: 1.4rem;
        }

        .slider-container {
            margin-bottom: 2rem;
            background: #f8f9fa;
            padding: 1.5rem;
            border-radius: 12px;
            border: 1px solid #e9ecef;
        }

        .slider-container label {
            display: block;
            margin-bottom: 1rem;
            font-weight: 600;
            font-size: 1.1rem;
            color: #333;
            text-align: center;
        }

        .slider-controls {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1rem;
        }

        .slider-arrows {
            display: flex;
            gap: 8px;
        }

        .slider-arrow {
            font-size: 18px;
            color: #EF7A6C;
            cursor: pointer;
            user-select: none;
            transition: all 0.3s ease;
            padding: 8px 12px;
            border-radius: 8px;
            background: #fff;
            border: 2px solid #EF7A6C;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
            position: relative;
            overflow: hidden;
        }

        .slider-arrow:hover {
            background: #EF7A6C;
            color: white;
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(239, 122, 108, 0.3);
        }

        .slider-arrow:active {
            transform: translateY(0);
            box-shadow: 0 2px 4px rgba(0,0,0,0.2);
        }

        .slider-arrow::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 0;
            height: 0;
            background: rgba(255,255,255,0.3);
            border-radius: 50%;
            transform: translate(-50%, -50%);
            transition: all 0.3s ease;
        }

        .slider-arrow:hover::before {
            width: 100%;
            height: 100%;
        }

        .slider-value {
            background: linear-gradient(135deg, #EF7A6C, #E35A49);
            color: white;
            padding: 0.7rem 1.2rem;
            border-radius: 20px;
            font-weight: bold;
            font-size: 1.1rem;
            box-shadow: 0 3px 6px rgba(239, 122, 108, 0.3);
            border: 3px solid #fff;
            min-width: 80px;
            text-align: center;
        }

        .slider-wrapper {
            position: relative;
            margin: 1rem 0;
        }

        .slider-wrapper input[type="range"] {
            width: 100%;
            height: 8px;
            border-radius: 5px;
            background: #ddd;
            outline: none;
            -webkit-appearance: none;
            appearance: none;
            cursor: pointer;
            position: relative;
            z-index: 2;
        }

        .slider-wrapper input[type="range"]::-webkit-slider-thumb {
            -webkit-appearance: none;
            appearance: none;
            width: 24px;
            height: 24px;
            border-radius: 50%;
            background: linear-gradient(135deg, #EF7A6C, #E35A49);
            cursor: pointer;
            border: 3px solid #fff;
            box-shadow: 0 2px 6px rgba(0,0,0,0.2);
            transition: all 0.3s ease;
        }

        .slider-wrapper input[type="range"]::-webkit-slider-thumb:hover {
            transform: scale(1.2);
            box-shadow: 0 4px 12px rgba(239, 122, 108, 0.4);
        }

        .slider-wrapper input[type="range"]::-moz-range-thumb {
            width: 24px;
            height: 24px;
            border-radius: 50%;
            background: linear-gradient(135deg, #EF7A6C, #E35A49);
            cursor: pointer;
            border: 3px solid #fff;
            box-shadow: 0 2px 6px rgba(0,0,0,0.2);
            transition: all 0.3s ease;
        }

        .slider-track-fill {
            position: absolute;
            top: 50%;
            left: 0;
            height: 8px;
            background: linear-gradient(90deg, #EF7A6C, #E35A49);
            border-radius: 5px;
            transform: translateY(-50%);
            transition: width 0.3s ease;
            z-index: 1;
            pointer-events: none;
        }

        /* Ajout d'instructions visuelles */
        .slider-container::after {
            content: "Déplacez le curseur ou utilisez les flèches pour ajuster";
            display: block;
            text-align: center;
            font-size: 0.85rem;
            color: #666;
            margin-top: 0.5rem;
            font-style: italic;
        }

        .resultat-dynamique {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 1.5rem;
            margin-top: 2rem;
        }

        .resultat-box {
            background-color: white;
            padding: 1rem;
            border-radius: 8px;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
            text-align: center;
        }

        .resultat-box-title {
            font-size: 0.9rem;
            color: #666;
            margin-bottom: 0.5rem;
        }

        .resultat-box-value {
            font-size: 1.8rem;
            font-weight: bold;
            color: #0a1258;
        }
        
        .resultat-description {
            grid-column: span 2;
            margin-top: 1.5rem;
            padding: 1.5rem;
            background-color: #f0f8ff;
            border-radius: 8px;
            border-left: 4px solid #EF7A6C;
        }
        
        .resultat-description p {
            font-size: 1.1rem;
            line-height: 1.6;
            color: #333;
            margin: 0;
        }
        
        .resultat-description strong {
            color: #0a1258;
            font-weight: 600;
        }

        .resultat-principal {
            grid-column: span 2;
            background-color: #f5f7fa;
            padding: 1.5rem;
            border-radius: 8px;
            text-align: center;
            margin-bottom: 1.5rem;
        }

        .resultat-principal-value {
            font-size: 2.2rem;
            font-weight: bold;
            color: #0a1258;
            margin: 0.5rem 0;
        }

        .resultat-principal-label {
            font-size: 1.1rem;
            color: #555;
        }

        .pourcentage-badge {
            display: inline-block;
            padding: 0.2rem 0.5rem;
            background-color: rgba(52, 152, 219, 0.1);
            color: #3498db;
            border-radius: 4px;
            font-size: 0.9rem;
            margin-left: 0.5rem;
        }

        @keyframes spin {
    to {
      transform: rotate(360deg);
    }
  }
  
  .loading-step.active {
    opacity: 1;
  }
  
  .loading-step.completed .loading-step-icon:after {
    content: "✓";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
  }

  .progress-bar-container {
            width: 100%;
            max-width: 500px;
            margin: 0 auto 30px;
            padding: 0 20px;
        }

        .progress-bar {
            height: 8px;
            background: #e0e0e0;
            border-radius: 4px;
            overflow: hidden;
            position: relative;
        }

        .progress-fill {
            height: 100%;
            background: linear-gradient(to right, #EF7A6C, #E35A49);
            border-radius: 4px;
            transition: width 0.5s ease;
        }

        .progress-steps {
            display: flex;
            justify-content: space-between;
            margin-top: 10px;
        }

        .progress-step {
            font-size: 12px;
            color: #777;
            position: relative;
            text-align: center;
            min-width: 60px;
        }

        .progress-step.active {
            color: #EF7A6C;
            font-weight: bold;
        }

        .progress-step.completed {
            color: #5cb85c;
        }
        
        /* Style amélioré pour les boutons Précédent et Suivant */
        .nav-buttons button {
            padding: 22px 36px;
            font-size: 22px;
            border-radius: 50px;
            min-width: 180px;
            box-shadow: 0 6px 15px rgba(239, 122, 108, 0.4);
            transition: all 0.3s ease;
            margin: 0 10px;
        }

        .nav-buttons button:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 20px rgba(239, 122, 108, 0.5);
        }

        /* Style spécifique pour le bouton Suivant */
        button#btn-next, .btn-next {
            background: linear-gradient(to right, #EF7A6C, #E35A49);
            font-weight: bold;
            letter-spacing: 1px;
            min-width: 200px;
        }

        /* Style spécifique pour le bouton Précédent - GRIS */
        button#btn-prev, .btn-prev {
            background: linear-gradient(to right, #6c757d, #5a6268);
            font-weight: bold;
            letter-spacing: 1px;
            min-width: 200px;
            box-shadow: 0 6px 15px rgba(108, 117, 125, 0.4);
        }

        /* Animation au survol - Suivant */
        button#btn-next:hover, .btn-next:hover {
            background: linear-gradient(to right, #E35A49, #D84738);
        }

        /* Animation au survol - Précédent */
        button#btn-prev:hover, .btn-prev:hover {
            background: linear-gradient(to right, #5a6268, #495057);
            box-shadow: 0 8px 20px rgba(108, 117, 125, 0.5);
        }

        /* Amélioration de l'accessibilité pour les boutons Précédent et Suivant */
button#btn-prev:before, button#btn-next:after {
    display: inline-block;
    margin: 0 10px;
    transition: transform 0.3s ease;
}

button#btn-prev:before {
    content: "←";
    margin-right: 10px;
}

button#btn-next:after {
    content: "→";
    margin-left: 10px;
}

button#btn-prev:hover:before {
    transform: translateX(-5px);
}

button#btn-next:hover:after {
    transform: translateX(5px);
}

/* Renforcement des contrastes pour meilleure lisibilité */
button#btn-prev, button#btn-next {
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* ========== DÉBUT DES NOUVELLES AMÉLIORATIONS ========== */

/* Styles généraux pour la page de résultats */
.resultat-page {
    max-width: 1000px;
    margin: 20px auto;
    padding: 0;
    background: #fafaf0;
    border-radius: 15px;
    overflow: hidden;
}

.resultat-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.resultat-logo {
    max-width: 120px;
    margin-bottom: 20px;
}

.resultat-title {
    font-size: 2.4rem;
    color: #0a1258;
    margin-bottom: 10px;
    font-weight: 700;
}

.resultat-subtitle {
    font-size: 1.5rem;
    color: #666;
    font-weight: normal;
    position: relative;
    display: inline-block;
    margin-bottom: 30px;
}

/* .resultat-subtitle:after supprimé pour éviter les barres oranges
.resultat-subtitle:after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, #EF7A6C, #E35A49);
    border-radius: 3px;
} */

/* Section principale des résultats avec mise en valeur */
.resultat-summary {
    background: white;
    border-radius: 0;
    padding: 40px;
    margin: 0;
    box-shadow: none;
    border-top: 6px solid #EF7A6C;
    position: relative;
}

/* Valeurs importantes mises en évidence */
.valeur-importante {
    font-size: 2.2rem;
    font-weight: bold;
    color: #0a1258;
    margin: 10px 0;
    text-align: center;
    background: rgba(239, 122, 108, 0.1);
    padding: 15px;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.valeur-importante:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(239, 122, 108, 0.2);
}

/* Styles pour la carte de résultat */
.result-card {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border-left: 5px solid #3498db;
    position: relative;
    overflow: hidden;
}

.result-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
    border-left: 5px solid #EF7A6C;
}

.result-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3498db, #EF7A6C);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.result-card:hover::before {
    opacity: 1;
}

.result-card-title {
    font-size: 1.5rem;
    color: #0a1258;
    margin-bottom: 20px;
    position: relative;
    padding-left: 45px;
    font-weight: 700;
    display: flex;
    align-items: center;
}

.result-card-title:before {
    font-family: "Font Awesome 5 Free";
    content: "\f0b1";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    color: #3498db;
}

/* Icônes pour les différentes sections */
.section-icon {
    font-size: 2rem;
    color: #3498db;
    margin-right: 20px;
    vertical-align: middle;
    background: rgba(52, 152, 219, 0.1);
    padding: 15px;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.result-card:hover .section-icon {
    color: #EF7A6C;
    background: rgba(239, 122, 108, 0.1);
    transform: scale(1.1);
}

/* Conteneur pour les graphiques */
.graphique-container {
    margin: 30px auto;
    max-width: 350px;
}

.legende-graphique {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}

.legende-item {
    display: flex;
    align-items: center;
}

.color-block {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    margin-right: 10px;
}

.color-block.nue-propriete {
    background: #3498db;
}

.color-block.droit-usage {
    background: #EF7A6C;
}

/* Section d'analyse globale et avantages */
.analyse-section {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    margin-top: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.section-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 10px;
}

.section-header i {
    font-size: 1.5rem;
    color: #EF7A6C;
    margin-right: 15px;
}

.avantages-viager {
    margin-top: 20px;
}

.intro-avantages {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 20px;
}

.avantage-item {
    display: flex;
    margin-bottom: 15px;
    padding: 12px;
    background: #f9f9f9;
    border-radius: 8px;
    transition: transform 0.2s ease;
}

.avantage-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.avantage-item.highlight {
    background: rgba(239, 122, 108, 0.1);
    border-left: 4px solid #EF7A6C;
}

.avantage-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #EF7A6C;
    border-radius: 50%;
    margin-right: 15px;
    flex-shrink: 0;
}

.avantage-icon i {
    color: white;
    font-size: 1.2rem;
}

.avantage-content {
    flex-grow: 1;
}

.avantage-content p {
    margin: 0;
    font-size: 1.05rem;
}

/* Amélioration du pouvoir d'achat */
.amelioration-pouvoir-achat {
    text-align: center;
    background: #f0f9ff;
    padding: 20px;
    border-radius: 12px;
    margin: 25px 0;
    border-left: 5px solid #3498db;
}

.pourcentage-amelioration {
    display: inline-block;
    padding: 5px 10px;
    background: #EF7A6C;
    color: white;
    border-radius: 20px;
    margin-left: 10px;
    font-weight: bold;
}

/* Bouton d'impression PDF amélioré */
.btn-pdf {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: white;
    border: 2px solid #EF7A6C;
    color: #EF7A6C;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 50px;
    margin: 30px auto;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 16px;
    max-width: 300px;
}

.btn-pdf:hover {
    background: #EF7A6C;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(239, 122, 108, 0.3);
}

.btn-pdf i {
    font-size: 1.2rem;
}

/* Tableau des résultats chiffrés */
.resultat-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 1rem;
}

.resultat-table th {
    background: #f8f9fa;
    color: #0a1258;
    font-weight: 600;
    text-align: left;
    padding: 12px 15px;
}

.resultat-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #e2e8f0;
}

.resultat-table tr:hover {
    background-color: #f5f8ff;
}

.resultat-table .value-cell {
    font-weight: 600;
    text-align: right;
    color: #0a1258;
}

/* Recommandations personnalisées */
.recommandations-box {
    background: linear-gradient(135deg, #f0f9ff 0%, #e6f3ff 100%);
    border-radius: 20px;
    padding: 35px;
    margin-top: 40px;
    border: none;
    box-shadow: 0 10px 30px rgba(52, 152, 219, 0.1);
    position: relative;
    overflow: hidden;
}

.recommandations-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #3498db, #EF7A6C, #3498db);
}

.recommandations-title {
    color: #0a1258;
    font-size: 1.6rem;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    font-weight: 700;
}

.recommandations-title i {
    margin-right: 15px;
    color: #3498db;
    font-size: 1.8rem;
    background: rgba(52, 152, 219, 0.1);
    padding: 12px;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.recommandations-list {
    list-style-type: none;
    padding-left: 0;
    display: grid;
    gap: 20px;
}

.recommandations-list li {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 0;
    padding-left: 60px;
    position: relative;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    font-size: 1.05rem;
    line-height: 1.6;
}

.recommandations-list li:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    background: rgba(255, 255, 255, 0.9);
}

.recommandations-list li:before {
    content: "✓";
    color: white;
    font-weight: bold;
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: #3498db;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

/* Curseur de simulation amélioré */
.simulation-slider-container {
    width: 100%;
    padding: 20px 0;
    margin: 20px 0;
}

.simulation-slider:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(239, 122, 108, 0.25);
}

.simulation-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 10px;
    border-radius: 5px;
    background: #e0e0e0;
    outline: none;
}

.simulation-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: #EF7A6C;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: all 0.2s ease;
}

.simulation-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    background: #E35A49;
}

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

.slider-progress {
    height: 10px;
    background: linear-gradient(to right, #EF7A6C, #E35A49);
    border-radius: 5px;
    position: relative;
    margin-top: -10px;
    width: 56%; /* Valeur initiale correspondant au pourcentage du bouquet */
    transition: width 0.3s ease-out;
}

/* Animation d'attention sur les éléments importants */
.attention-animation {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(239, 122, 108, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(239, 122, 108, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(239, 122, 108, 0);
    }
}

/* Grille de valeurs mises en évidence */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.value-card {
    background: white;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.value-card-label {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 10px;
}

.value-card-amount {
    font-size: 1.8rem;
    font-weight: bold;
    color: #0a1258;
}

.value-card.highlight {
    border-top: 3px solid #EF7A6C;
}

/* Bandeau contextuel pour les données importantes */
.highlight-banner {
    background: linear-gradient(to right, #EF7A6C, #E35A49);
    color: white;
    text-align: center;
    padding: 15px;
    border-radius: 8px;
    margin: 25px 0;
    box-shadow: 0 5px 15px rgba(239, 122, 108, 0.3);
}

.highlight-banner-text {
    font-size: 1.2rem;
    font-weight: 600;
}

/* Accordéon pour les détails */
.accordion {
    margin: 20px 0;
    border-radius: 8px;
    overflow: hidden;
}

.accordion-item {
    margin-bottom: 10px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.accordion-header {
    background: #f5f8ff;
    padding: 15px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
}

.accordion-header:hover {
    background: #e9f0ff;
}

.accordion-title {
    font-weight: 600;
    color: #0a1258;
    margin: 0;
}

.accordion-icon {
    transition: transform 0.3s ease;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: white;
}

.accordion-content-inner {
    padding: 15px;
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion-item.active .accordion-content {
    max-height: 1000px; /* Augmenté pour accommoder plus de contenu */
}

/* Indicateurs de comparaison */
.comparison-indicator {
    display: inline-flex;
    align-items: center;
    margin-left: 10px;
    font-size: 0.9rem;
}

.comparison-indicator.positive {
    color: #5cb85c;
}

.comparison-indicator.negative {
    color: #d9534f;
}

.comparison-indicator i {
    margin-right: 5px;
}

/* Design adaptatif pour mobile */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .container {
        padding: 20px;
        margin: 15px auto;
        width: 95%;
        max-width: none;
    }
    
    /* Masquer les slogans spécifiques sur mobile */
    .resultat-title {
        display: none;
    }
    
    .resultat-subtitle {
        display: none;
    }
    
    /* Ajustements pour le logo */
    .resultat-logo {
        max-width: 100px;
        margin-bottom: 15px;
    }
    
    /* Améliorations générales pour mobile */
    .values-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .valeur-importante {
        font-size: 1.6rem;
        padding: 12px;
    }
    
    .avantage-item {
        flex-direction: column;
        padding: 15px;
    }
    
    .avantage-icon {
        margin-bottom: 10px;
        margin-right: 0;
        width: 35px;
        height: 35px;
    }
    
    .btn-pdf {
        width: 100%;
        padding: 15px 20px;
        font-size: 14px;
    }
    
    /* Amélioration des boutons */
    button {
        padding: 18px 24px;
        font-size: 16px;
        min-width: 120px;
    }
    
    .btn-large {
        padding: 18px 32px !important;
        font-size: 18px !important;
        min-width: 280px !important;
    }
    
    /* Amélioration des options et inputs */
    .option {
        padding: 18px 22px;
        min-width: 140px;
        font-size: 16px;
    }
    
    .options {
        gap: 15px;
        flex-direction: column;
        align-items: center;
    }
    
    input[type="number"], 
    input[type="text"], 
    select {
        max-width: 100%;
        padding: 15px 18px;
        font-size: 16px;
    }
    
    /* Amélioration des cartes de résultats */
    .result-card {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .result-card-title {
        font-size: 1.2rem;
        padding-left: 25px;
    }
    
    .section-icon {
        font-size: 1.5rem;
        margin-right: 10px;
    }
    
    /* Amélioration du formulaire de contact */
    .form-group {
        margin-bottom: 1.2rem;
    }
    
    .contact-input {
        max-width: 100%;
        padding: 12px 15px;
        font-size: 16px;
    }
    
    /* Ajustements pour les boutons de navigation */
    .nav-buttons {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    
    /* Ordre des boutons sur mobile : Suivant en haut, Précédent en bas */
    .nav-buttons .btn-next {
        order: 1;
    }
    
    .nav-buttons .btn-prev {
        order: 2;
    }
    
    .nav-buttons button {
        width: 100%;
        max-width: 280px;
    }
    
    /* Style spécifique pour le bouton Précédent en mobile - GRIS */
    .nav-buttons .btn-prev {
        background: linear-gradient(to right, #6c757d, #5a6268) !important;
        box-shadow: 0 4px 10px rgba(108, 117, 125, 0.4) !important;
    }
    
    .nav-buttons .btn-prev:hover {
        background: linear-gradient(to right, #5a6268, #495057) !important;
        box-shadow: 0 6px 15px rgba(108, 117, 125, 0.5) !important;
    }
    
    /* Optimisation du slider pour mobile */
    .slider-container {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .slider-controls {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .slider-arrows {
        order: 2;
        gap: 12px;
    }
    
    .slider-arrow {
        padding: 10px 14px;
        font-size: 16px;
        min-width: 44px;
        min-height: 44px;
    }
    
    .slider-value {
        order: 1;
        font-size: 1.2rem;
        padding: 0.8rem 1.4rem;
    }
    
    .slider-wrapper input[type="range"] {
        height: 10px;
    }
    
    .slider-wrapper input[type="range"]::-webkit-slider-thumb {
        width: 28px;
        height: 28px;
    }
    
    .slider-wrapper input[type="range"]::-moz-range-thumb {
        width: 28px;
        height: 28px;
    }
    
    .slider-track-fill {
        height: 10px;
    }
    
    .slider-container::after {
        font-size: 0.8rem;
        margin-top: 0.8rem;
    }
    
    /* Amélioration des info-boxes */
    .info-box.show {
        padding: 15px 18px;
        width: 95%;
        font-size: 0.9rem;
    }
    
    /* Ajustements pour les étapes de loading */
    .loading-content {
        width: 90%;
        padding: 0 15px;
    }
    
    .loading-title {
        font-size: 20px;
    }
    
    .loading-text {
        font-size: 14px;
    }
    
    .loading-steps {
        max-width: 100%;
    }
    
    .loading-step {
        margin-bottom: 12px;
        font-size: 14px;
    }
    
    /* Amélioration de la zone recommandations */
    .recommandations-box {
        padding: 15px;
        margin-top: 20px;
    }
    
    .recommandations-title {
        font-size: 1.2rem;
    }
    
    /* Amélioration de l'accordéon */
    .accordion-header {
        padding: 12px;
    }
    
    .accordion-content-inner {
        padding: 12px;
    }
    
    /* Amélioration des tableaux */
    .resultat-table {
        font-size: 0.9rem;
    }
    
    .resultat-table th,
    .resultat-table td {
        padding: 8px 10px;
    }
    
    /* ========== AMÉLIORATIONS SPÉCIFIQUES PAGE RÉSULTATS MOBILE ========== */
    
    /* Container principal des résultats */
    .resultat-page {
        margin: 10px auto;
        border-radius: 10px;
        background: #fafaf0;
    }
    
    .resultat-summary {
        padding: 20px;
        border-top: 4px solid #EF7A6C;
    }
    
    /* Cartes de résultats optimisées mobile */
    .result-card {
        padding: 20px;
        margin-bottom: 20px;
        border-radius: 12px;
        border-left: 4px solid #3498db;
    }
    
    .result-card-title {
        font-size: 1.2rem;
        padding-left: 0;
        flex-direction: column;
        text-align: center;
        margin-bottom: 15px;
    }
    
    .section-icon {
        font-size: 1.8rem;
        margin-right: 0;
        margin-bottom: 10px;
        width: 45px;
        height: 45px;
        padding: 12px;
    }
    
    /* Recommandations optimisées mobile */
    .recommandations-box {
        padding: 20px;
        margin-top: 25px;
        border-radius: 15px;
    }
    
    .recommandations-title {
        font-size: 1.3rem;
        flex-direction: column;
        text-align: center;
        margin-bottom: 20px;
    }
    
    .recommandations-title i {
        margin-right: 0;
        margin-bottom: 10px;
        width: 40px;
        height: 40px;
        font-size: 1.6rem;
    }
    
    .recommandations-list li {
        padding: 15px;
        padding-left: 50px;
        font-size: 0.95rem;
        line-height: 1.5;
    }
    
    .recommandations-list li:before {
        left: 15px;
        width: 25px;
        height: 25px;
        font-size: 14px;
    }
    
    /* Valeurs importantes */
    .valeur-importante {
        font-size: 1.6rem;
        padding: 15px;
        margin: 15px 0;
    }
    
    /* Grilles de valeurs */
    .values-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        margin: 20px 0;
    }
    
    .value-card {
        padding: 15px;
        border-radius: 10px;
    }
    
    .value-card-amount {
        font-size: 1.6rem;
    }
    
    /* Bouton PDF */
    .btn-pdf {
        width: 100%;
        max-width: 300px;
        padding: 15px 20px;
        font-size: 14px;
        margin: 20px auto;
    }
    
    .pdf-report-button-container {
        margin-top: 1.5rem !important;
        padding: 0 10px;
    }
    
    .info-text {
        font-size: 0.8rem !important;
        margin-top: 0.3rem !important;
        padding: 0 10px;
        text-align: center !important;
    }
    
    /* Accordéons */
    .accordion-header {
        padding: 15px;
    }
    
    .accordion-title {
        font-size: 1.1rem;
    }
    
    .accordion-content-inner {
        padding: 15px;
        font-size: 0.9rem;
    }
    
    /* Animations désactivées sur mobile pour performance */
    .result-card:hover {
        transform: none;
        box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    }
    
    .recommandations-list li:hover {
        transform: none;
        box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    }
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: center; /* Ajout de cette propriété pour centrer le contenu */
    display: flex;
    flex-direction: column;
    align-items: center; /* Centre les éléments horizontalement */
}

.total-row {
    font-weight: bold;
}

.montant::after {
    content: " €";
}

.montant {
    position: relative;
}

.montant .decimales {
    display: none;
}

/* Styles pour la section de consentement */
.consent-box {
    background-color: #f9f9f9;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    border: 1px solid #e0e0e0;
    text-align: left;
    max-width: 700px;
    margin: 0 auto;
}

.consent-text {
    margin-bottom: 20px;
}

.consent-text p {
    margin-bottom: 10px;
    color: #333;
    font-size: 16px;
}

.consent-text ul {
    margin-left: 0;
    padding-left: 0;
}

.consent-text ul li {
    margin-bottom: 8px;
    padding-left: 25px;
    position: relative;
    color: #444;
}

.consent-text ul li:before {
    content: "✓";
    color: #3498db;
    position: absolute;
    left: 0;
    font-weight: bold;
}

.consent-checkbox {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.consent-checkbox input[type="checkbox"] {
    margin-top: 3px;
    margin-right: 10px;
    min-width: 20px;
    min-height: 20px;
    cursor: pointer;
}

.consent-checkbox label {
    font-size: 16px;
    line-height: 1.5;
    color: #333;
    text-align: left;
}

/* Style pour la checkbox */
input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    outline: none;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
    background-color: white;
}

input[type="checkbox"]:checked {
    background-color: #EF7A6C;
    border-color: #EF7A6C;
}

input[type="checkbox"]:checked:after {
    content: "✓";
    color: white;
    font-size: 16px;
    font-weight: bold;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

input[type="checkbox"]:hover {
    border-color: #EF7A6C;
}