/* Design Minimaliste Clean */
:root {
    --bg-primary: #ffffff;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --border-primary: #e5e7eb;
    --border-secondary: #d1d5db;
    --border-accent: #000000;
    --text-primary: #2a2a2a;
    --text-secondary: #6b7280;
    --text-muted: #9ca3af;
    --accent-green: #000000;
    --accent-blue: #3b82f6;
    --accent-orange: #f59e0b;
    --shadow-primary: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-secondary: 0 1px 2px rgba(0, 0, 0, 0.05);
    --transition-primary: all 0.2s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--bg-primary);
    min-height: 100vh;
    color: var(--text-primary);
    overflow-x: hidden;
    position: relative;
    padding-top: 56px;
}

/* ============================================================
   LOGO CLIMB — flottant en haut à gauche, sans barre
   ============================================================ */
.top-logo {
    position: fixed;
    top: 16px;
    left: 24px;
    z-index: 1000;
}

.top-logo-img {
    height: 28px;
    width: auto;
    object-fit: contain;
}

/* ============================================================
   CONTAINER PRINCIPAL
   ============================================================ */
.glassmorphism-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* ============================================================
   LANDING PAGE
   ============================================================ */
.landing-page {
    max-width: 100%;
    margin: 0 auto;
    padding: 60px 0 60px;
}

.landing-hero {
    text-align: center;
    margin-bottom: 72px;
}

.landing-h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    line-height: 1.3;
}

.landing-h2 {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.6;
}

.btn-landing-cta {
    background: var(--text-primary);
    color: #fff;
    border: none;
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-primary);
    font-family: inherit;
}

.btn-landing-cta:hover {
    background: var(--text-secondary);
    transform: translateY(-1px);
}

/* Logos fonds — carousel infini */
.landing-logos {
    overflow: hidden;
    width: 100%;
    margin-bottom: 80px;
    /* fade sur les bords */
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}

.logos-track {
    display: flex;
    align-items: center;
    gap: 72px;
    width: max-content;
    animation: scroll-logos 18s linear infinite;
}

.logos-track:hover {
    animation-play-state: paused;
}

@keyframes scroll-logos {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.fund-logo {
    height: 64px;
    width: auto;
    object-fit: contain;
    opacity: 1;
    transition: var(--transition-primary);
}

.fund-logo:hover {
    opacity: 0.8;
}

.fund-logo--apax {
    height: 40px;
}

.fund-logo-text {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-secondary);
    letter-spacing: 0.02em;
    opacity: 0.55;
    transition: var(--transition-primary);
    cursor: default;
}

.fund-logo-text:hover {
    opacity: 1;
    color: var(--text-primary);
}

/* Tableau */
.landing-table-section {
    margin-bottom: 64px;
    width: 100%;
}

.landing-table-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 32px;
}

.table-wrapper {
    width: 100%;
    border-radius: 12px;
    border: 1px solid var(--border-primary);
    overflow: hidden;
}

.strategy-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
    table-layout: fixed;
}

.strategy-table thead tr {
    background: var(--bg-secondary);
    border-bottom: 2px solid var(--border-primary);
}

.strategy-table th {
    padding: 10px 10px;
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
    word-wrap: break-word;
}

.strategy-table tbody tr {
    border-bottom: 1px solid #f3f4f6;
    transition: background 0.15s;
}

.strategy-table tbody tr:last-child {
    border-bottom: none;
}

.strategy-table tbody tr:hover {
    background: var(--bg-secondary);
}

.strategy-table td {
    padding: 10px 10px;
    color: var(--text-secondary);
    vertical-align: middle;
    word-wrap: break-word;
}

.strategy-name {
    font-weight: 600;
    color: var(--text-primary) !important;
}

.stars { color: var(--accent-orange); }
.perf  { color: var(--text-secondary); font-size: 0.78rem; }

.tag {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

.tag-none    { background: #fee2e2; color: #dc2626; }
.tag-low     { background: #fef3c7; color: #d97706; }
.tag-partial { background: #e0f2fe; color: #0284c7; }

/* ============================================================
   FAQ
   ============================================================ */
.serenity-section {
    margin-top: 64px;
    margin-bottom: 0;
    width: 100%;
}

.serenity-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 2rem;
}

.serenity-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.serenity-card {
    border: 1px solid var(--border-primary);
    border-radius: 12px;
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.serenity-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.serenity-card-text {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.serenity-logos {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.serenity-logo-img {
    height: 44px;
    width: auto;
    object-fit: contain;
    filter: grayscale(20%);
    opacity: 0.9;
}

.serenity-logo-img[alt="Generali"],
.serenity-logo-img[alt="Orias"] {
    height: 72px;
}

.serenity-logo-img[alt="AMF"] {
    height: 40px;
}

.serenity-logos-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    justify-items: center;
    align-items: center;
    gap: 12px;
}

.serenity-logo-centered {
    grid-column: 1 / -1;
}

.serenity-partner {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: #f3f4f6;
    padding: 4px 10px;
    border-radius: 4px;
}

.serenity-orias {
    font-size: 0.82rem;
    font-weight: 700;
    color: #e8621a;
    line-height: 1.4;
}

.serenity-orias small {
    font-size: 0.7rem;
    font-weight: 400;
    color: var(--text-muted);
}

.landing-faq {
    margin-top: 64px;
    margin-bottom: 48px;
    width: 100%;
}

.faq-item {
    border-bottom: 1px solid var(--border-primary);
}

.faq-item:first-of-type {
    border-top: 1px solid var(--border-primary);
}

.faq-question {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    padding: 1.1rem 0;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.faq-question::-webkit-details-marker { display: none; }

.faq-question::after {
    content: '+';
    font-size: 1.3rem;
    font-weight: 300;
    color: var(--text-secondary);
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

details[open] .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-secondary);
    padding-bottom: 1.25rem;
}

/* ============================================================
   TRUSTPILOT SECTION
   ============================================================ */
.tp-section {
    margin-top: 64px;
    margin-bottom: 48px;
    width: 100%;
}

.tp-headline {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 24px;
}

.tp-inner {
    display: flex;
    align-items: flex-start;
    gap: 32px;
}

.tp-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    min-width: 150px;
    border: 1px solid var(--border-primary);
    border-radius: 8px;
    padding: 16px 20px;
}

.tp-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.tp-stars-row {
    display: flex;
    gap: 2px;
}

.tp-star {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: #00b67a;
    color: #fff;
    font-size: 1rem;
    clip-path: none;
}

.tp-count {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.tp-count u {
    color: var(--text-primary);
}

.tp-logo {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #191919;
    margin-top: 2px;
}

.tp-divider {
    width: 1px;
    background: var(--border-primary);
    align-self: stretch;
    flex-shrink: 0;
}

.tp-reviews {
    display: flex;
    gap: 24px;
    flex: 1;
    overflow: hidden;
}

.tp-review {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: opacity 0.15s ease;
}

.tp-review:hover {
    opacity: 0.75;
}

a.tp-score {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: opacity 0.15s ease;
}

a.tp-score:hover {
    opacity: 0.85;
}

.tp-review-stars {
    color: #00b67a;
    font-size: 1rem;
    letter-spacing: 1px;
}

.tp-review-title {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tp-review-body {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tp-review-author {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* ============================================================
   QUESTIONNAIRE
   ============================================================ */
.questionnaire-section {
    flex: 1;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 1rem;
    width: 100%;
}

.question-card {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 2rem 0;
    box-shadow: none;
    width: 780px;
    max-width: 780px;
    min-width: 0;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    transition: var(--transition-primary);
}

.btn-back {
    display: inline-flex;
    align-items: center;
    margin-top: 1.25rem;
    background: transparent;
    border: 1px solid var(--border-primary);
    border-radius: 8px;
    padding: 0.4rem 0.875rem;
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-primary);
    font-family: inherit;
    white-space: nowrap;
}

.btn-back:hover:not(:disabled) {
    border-color: var(--border-secondary);
    background: var(--bg-secondary);
}

.btn-back:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.question-counter {
    display: none;
}

.question-content {
    margin-bottom: 2rem;
}

.question-title {
    font-size: 1.8rem;
    font-weight: 500;
    margin-bottom: 2rem;
    color: var(--text-primary);
    line-height: 1.4;
    text-align: center;
}

.question-subtitle {
    font-size: 0.88rem;
    color: var(--text-secondary);
    background: #f0fdf4;
    border-left: 3px solid #10b981;
    padding: 10px 14px;
    border-radius: 4px;
    margin: -12px 0 20px;
    line-height: 1.5;
    text-align: left;
}

/* ============================================================
   OPTIONS
   ============================================================ */
.options-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.option-item {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: 8px;
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: var(--transition-primary);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    user-select: none;
}

.option-item:hover {
    border-color: var(--border-accent);
    background: #f9fafb;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.option-item.selected {
    border-color: var(--border-accent);
    background: rgba(16, 185, 129, 0.05);
}

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

.option-item .checkmark {
    display: none;
    color: var(--accent-green);
    font-size: 1.2rem;
    font-weight: bold;
}

.option-item.selected .checkmark {
    display: block;
}

.input-field {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: 8px;
    padding: 1rem;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition-primary);
}

.input-field:focus {
    outline: none;
    border-color: var(--border-accent);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.input-field[type="number"]::-webkit-inner-spin-button,
.input-field[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.input-field[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

.btn-validate {
    background: var(--accent-green);
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-primary);
    margin-left: 1rem;
    font-family: inherit;
}

.btn-validate:hover:not(:disabled) {
    background: #059669;
    transform: translateY(-1px);
}

.btn-validate:disabled {
    background: var(--text-muted);
    cursor: not-allowed;
}

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

.btn-glassmorphism {
    flex: 1;
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: 8px;
    padding: 1rem 2rem;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-primary);
    font-family: inherit;
}

.btn-glassmorphism:hover:not(:disabled) {
    border-color: var(--border-secondary);
    background: var(--bg-secondary);
}

.btn-glassmorphism:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-next {
    background: var(--accent-green);
    border: 1px solid var(--accent-green);
    color: white;
}

.btn-next:hover:not(:disabled) {
    background: #059669;
    border-color: #059669;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--border-primary);
    border-radius: 9999px;
    overflow: hidden;
    margin-bottom: 3.5rem;
}

.progress-fill {
    height: 100%;
    background: var(--accent-green);
    border-radius: 9999px;
    transition: width 0.35s ease;
}

/* ============================================================
   RÉSULTATS
   ============================================================ */
.results-section {
    animation: fadeInUp 0.8s ease-out;
}

.results-header {
    display: none;
}

.strategies-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
    align-items: start;
}

.strategy-card {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow-primary);
    position: relative;
    animation: slideInUp 0.6s ease-out;
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.strategy-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.strategy-description {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    flex: 1;
}

.investment-methods-section {
    margin-bottom: 3rem;
}

.methods-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    text-align: center;
}

.investment-section {
    margin-bottom: 3rem;
}

.investment-section.main-section {
    border: none;
    border-radius: 0;
    padding: 0;
    background: transparent;
    position: relative;
    margin-bottom: 2rem;
    box-shadow: none;
}

.recommended-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--accent-green);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.method-card {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: var(--transition-primary);
}

.method-card.main-method {
    background: rgba(16, 185, 129, 0.05);
    border: none;
    margin-bottom: 2rem;
}

.method-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--accent-green);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.vehicle-via {
    font-weight: 400;
    opacity: 0.45;
    margin: 0 8px;
    font-size: 0.85em;
}

.card-divider {
    border: none;
    border-top: 1px solid var(--border-primary);
    margin: 16px 0;
}

.method-description {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.specific-conditions {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow-primary);
    margin-top: 2rem;
}

.specific-conditions .conditions-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.condition-item {
    padding: 0.5rem 0;
    margin-bottom: 0.5rem;
}

.condition-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.condition-description {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-secondary);
}

.restart-section {
    text-align: center;
    margin-top: 2rem;
}

#disclaimer-section {
    margin-top: 2rem;
}

.btn-restart {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: 8px;
    padding: 1rem 2rem;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-primary);
    font-family: inherit;
}

.btn-restart:hover {
    border-color: var(--border-secondary);
    background: var(--bg-secondary);
}

/* ============================================================
   CTA
   ============================================================ */
.cta-section {
    margin-top: 2rem;
    margin-bottom: 0;
    text-align: center;
}

.cta-container {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow-primary);
}

.cta-human {
    text-align: center;
    padding: 2rem;
}

.cta-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.cta-advisors {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 1rem;
}

.cta-advisor-photo {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
    border: 2px solid var(--border-primary);
}

.cta-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
}

.cta-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.btn-cta {
    background: var(--text-primary);
    border: 1px solid var(--border-primary);
    border-radius: 8px;
    padding: 0.875rem 2rem;
    color: var(--bg-primary);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-primary);
    font-family: inherit;
}

.btn-cta:hover {
    background: var(--text-secondary);
    transform: translateY(-1px);
}

/* ============================================================
   PAGE PROFIL INSUFFISANT
   ============================================================ */
.ineligible-section {
    border-color: #f59e0b !important;
    background: rgba(245, 158, 11, 0.02) !important;
}

.ineligible-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #f59e0b;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.ineligible-content {
    background: var(--bg-card);
    border: 1px solid #fde68a;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.ineligible-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.ineligible-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.ineligible-blockers {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.blockers-list {
    margin-top: 0.5rem;
    padding-left: 1.5rem;
}

.blockers-list li {
    margin-bottom: 0.25rem;
    color: #b45309;
    font-weight: 500;
}

.ineligible-advice {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-secondary);
    font-style: italic;
}

/* ============================================================
   DISCLAIMER — dans la main-section, même largeur que la box
   ============================================================ */
.disclaimer-inline {
    margin-top: 1.5rem;
    background: #f9fafb;
    border: none;
    border-radius: 8px;
    padding: 1.5rem;
}

.disclaimer-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
}

.disclaimer-text {
    font-size: 0.75rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    text-align: justify;
}

.disclaimer-text:last-child { margin-bottom: 0; }

/* ============================================================
   CHARTS
   ============================================================ */
.chart-toggle {
    margin-top: 4rem;
}

.chart-section-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2rem;
    text-align: center;
    font-family: 'DM Sans', sans-serif;
}

.btn-chart-toggle {
    background: rgba(16, 185, 129, 0.08);
    border: 2px solid var(--accent-green);
    border-radius: 10px;
    padding: 1rem 1.25rem;
    color: var(--accent-green);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-primary);
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    font-family: inherit;
}

.btn-chart-toggle:hover {
    background: rgba(16, 185, 129, 0.15);
    transform: translateY(-1px);
}

.toggle-icon {
    font-size: 0.8rem;
}

.chart-section {
    margin-top: 1rem;
}

.chart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.performance-metrics {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: 16px;
    box-shadow: var(--shadow-primary);
}

.metric-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.metric-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.metric-info {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--text-muted);
    color: #fff;
    font-size: 9px;
    font-style: normal;
    font-weight: 700;
    cursor: default;
    position: relative;
    flex-shrink: 0;
}

.metric-info::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: #1f2937;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 400;
    line-height: 1.4;
    padding: 8px 12px;
    border-radius: 6px;
    white-space: normal;
    width: 240px;
    text-transform: none;
    letter-spacing: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s ease;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.metric-info::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 3px);
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #1f2937;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.metric-info:hover::after,
.metric-info:hover::before {
    opacity: 1;
}

.metric-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: #10b981;
}

.amount-control {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: 16px;
    box-shadow: var(--shadow-primary);
    transition: var(--transition-primary);
}

.amount-control:hover {
    border-color: var(--border-secondary);
    transform: translateY(-1px);
}

.amount-control label {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.amount-control .input-wrapper {
    position: relative;
    display: inline-block;
}

/* Read-only display box — same look as an input */
.value-display {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 180px;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-primary);
    border-radius: 12px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    font-family: inherit;
    text-align: center;
}

/* 1st fund chart header: 3-column layout */
.fund-chart-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
}

.amount-control input[type="number"],
.amount-control input[type="text"] {
    width: 180px;
    padding: 0.75rem 1rem;
    padding-right: 2.5rem;
    border: 1px solid var(--border-primary);
    border-radius: 12px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    text-align: right;
    transition: var(--transition-primary);
    font-family: inherit;
}

.amount-control input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

.amount-control input[type="number"]::-webkit-inner-spin-button,
.amount-control input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.amount-control .currency-symbol {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    pointer-events: none;
    font-weight: 500;
}

.amount-control input:focus {
    outline: none;
    border-color: var(--border-accent);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.amount-controls {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.amount-controls .amount-control {
    flex: 1;
    min-width: 200px;
}

.chart-container {
    background: var(--bg-card);
    border: none;
    border-radius: 0;
    padding: 1rem 0 2.5rem;
    position: relative;
    height: 480px;
    border-bottom: 1px solid var(--border-primary);
    margin-bottom: 0;
}

.chart-tutorial {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(0.4px);
    border-radius: 12px;
    z-index: 10;
    padding: 1.5rem;
    pointer-events: none;
}

.chart-tutorial .tutorial-step {
    pointer-events: auto;
}

.tutorial-step {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 400px;
    width: 100%;
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(16, 185, 129, 0.5);
}

.tutorial-progress {
    display: flex;
    justify-content: flex-end;
}

.tutorial-step-indicator {
    font-size: 0.875rem;
    font-weight: 600;
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.tutorial-explanation {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-primary);
    font-weight: 500;
    margin: 0;
    padding: 1rem;
    background: rgba(16, 185, 129, 0.05);
    border-radius: 8px;
    border-left: 4px solid #10b981;
}

.btn-tutorial-next {
    background: #10b981;
    border: none;
    border-radius: 10px;
    padding: 0.875rem 1.5rem;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-primary);
    align-self: flex-end;
    font-family: inherit;
}

.btn-tutorial-next:hover {
    background: #059669;
    transform: translateY(-2px);
}

/* ============================================================
   CONTACT MODAL
   ============================================================ */
.contact-modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contact-modal-overlay.active { opacity: 1; }

.contact-modal {
    background: var(--bg-card);
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.contact-modal-overlay.active .contact-modal { transform: scale(1); }

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

.modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: var(--transition-primary);
}

.modal-close:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.modal-body { padding: 2rem; }

.modal-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
    text-align: center;
}

.contact-benefits {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid var(--border-primary);
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
    color: var(--text-primary);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

.form-group label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-primary);
    border-radius: 8px;
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition-primary);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--border-accent);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08);
}

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

.btn-submit {
    background: var(--text-primary);
    border: none;
    border-radius: 8px;
    padding: 1rem 2rem;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    font-family: inherit;
    width: 100%;
}

.btn-submit:hover:not(:disabled) {
    background: var(--text-secondary);
    transform: translateY(-1px);
}

.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

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

/* ============================================================
   CAMEMBERT — ALLOCATION PAR PROFIL
   ============================================================ */
.profile-pie-section {
    margin-top: 2rem;
}

.profile-name {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.vehicle-label {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.rendement-badge {
    display: inline-block;
    margin-top: 0.5rem;
    margin-bottom: 0.75rem;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #16a34a;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
}

.institutional-quote {
    font-size: 0.82rem;
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.institutional-quote-centered {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    text-align: center;
    margin-bottom: 2rem;
}

.allocation-label {
    grid-column: 1;
    grid-row: 2;
    text-align: center;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 0.06em;
    margin-top: 0.75rem;
    margin-bottom: 0.15rem;
    white-space: nowrap;
}

.rendement-plain {
    grid-column: 1;
    grid-row: 3;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.01em;
    margin-bottom: 0;
}

.profil-investisseur-card {
    background: rgba(16, 185, 129, 0.05);
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.profil-card-header {
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.vehicle-card {
    background: #f9fafb;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.pie-chart-wrapper {
    display: grid;
    grid-template-columns: 260px auto;
    grid-template-rows: 260px auto auto;
    column-gap: 2rem;
    row-gap: 0;
    justify-content: center;
    margin-top: 1.25rem;
}

.pie-canvas-container {
    grid-column: 1;
    grid-row: 1;
    height: 260px;
    position: relative;
}

.pie-legend {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    min-width: 180px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.legend-label {
    flex: 1;
    color: var(--text-primary);
    font-weight: 500;
}

.legend-value {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 1rem;
}

/* ============================================================
   TABLEAU RÉSULTATS
   ============================================================ */
.results-strategy-table-section {
    margin-top: 2.5rem;
}

.results-table-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
    body { padding-top: 56px; }

    .glassmorphism-container { padding: 1rem; }

    .landing-h1 { font-size: 1.5rem; }
    .landing-h2 { font-size: 0.95rem; }

    .strategy-table { font-size: 0.75rem; }
    .strategy-table th,
    .strategy-table td { padding: 8px 6px; }

    .question-card { padding: 1.5rem; }
    .question-title { font-size: 1.4rem; }

    .strategies-container { grid-template-columns: 1fr; gap: 1.5rem; }
    .navigation-buttons { flex-direction: column; }

    .contact-modal { width: 95%; }
    .modal-header, .modal-body { padding: 1.5rem; }

    .disclaimer-text { font-size: 0.7rem; }

    .amount-controls { flex-direction: column; }
    .fund-logo { height: 48px; }

    .pie-chart-wrapper { grid-template-columns: 1fr; grid-template-rows: 260px auto auto auto; justify-items: center; }
    .pie-canvas-container { grid-column: 1; grid-row: 1; }
    .pie-legend { grid-column: 1; grid-row: 4; align-self: auto; }
    .allocation-label { grid-column: 1; grid-row: 2; }
    .rendement-plain { grid-column: 1; grid-row: 3; }
}

@media (max-width: 480px) {
    .landing-h1 { font-size: 1.3rem; }
    .question-title { font-size: 1.2rem; }
    .strategy-table { font-size: 0.7rem; }
}

/* ============================================================
   LEAD CAPTURE FORM
   ============================================================ */
.lead-capture-section {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 16px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 50;
}

.lead-capture-card {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: 16px;
    padding: 48px 40px;
    max-width: 520px;
    width: 100%;
    box-shadow: var(--shadow-primary);
    text-align: center;
}

.lead-capture-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #000;
    color: #fff;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.lead-capture-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.lead-capture-subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.5;
}

#lead-form {
    text-align: left;
}

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

.lead-form-row .lead-form-group {
    margin-bottom: 0;
}

.lead-form-group {
    margin-bottom: 12px;
}

.lead-form-group input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border-secondary);
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: 'DM Sans', sans-serif;
    color: var(--text-primary);
    background: #fff;
    transition: border-color 0.2s ease;
    outline: none;
}

.lead-form-group input:focus {
    border-color: var(--border-accent);
}

.lead-form-group input::placeholder {
    color: var(--text-muted);
}

.lead-legal {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin-bottom: 20px;
}

.btn-lead-submit {
    width: 100%;
    padding: 14px;
    font-size: 1.1rem;
    font-weight: 600;
    justify-content: center;
    margin-top: 4px;
    background: #000;
    color: #fff;
    border-color: #000;
}

.btn-lead-submit:hover {
    background: #333;
    border-color: #333;
}

.lead-error {
    margin-top: 12px;
    padding: 10px 14px;
    border-radius: 8px;
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: #dc2626;
    font-size: 0.875rem;
    text-align: left;
}

@media (max-width: 540px) {
    .lead-capture-card { padding: 32px 20px; }
    .lead-form-row { grid-template-columns: 1fr; }
}

/* ============================================================
   LOADER DE TRANSITION
   ============================================================ */
#transition-loader {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: #fff;
    z-index: 200;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.loader-spinner {
    width: 44px;
    height: 44px;
    border: 3px solid #e5e7eb;
    border-top-color: #000;
    border-radius: 50%;
    animation: spin 0.75s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loader-text {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ============================================================
   NAVBAR RÉSULTATS (sticky)
   ============================================================ */
#results-navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 80px;
    background: #fff;
    border-bottom: 1px solid var(--border-primary);
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.results-navbar-logo {
    height: 36px;
    width: auto;
    object-fit: contain;
}

.results-navbar-cta {
    padding: 12px 28px;
    font-size: 1rem;
}

/* Compenser la hauteur du bandeau sur la page résultats */
body.results-active {
    padding-top: 80px;
}

/* ============================================================
   RE-UP HEADER & METRICS
   ============================================================ */
.reup-chart-header {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.75rem;
    align-items: stretch;
    margin-bottom: 0.75rem;
}

.reup-chart-header .amount-control {
    flex: 1;
    padding: 0.75rem 1rem;
    gap: 0.5rem;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
}

.reup-chart-header .amount-control .input-wrapper {
    width: 100%;
    display: block;
}

.reup-chart-header .amount-control .value-display {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 2.5rem;
    padding: 0 0.75rem;
    font-size: 1rem;
    box-sizing: border-box;
}

.reup-chart-header .amount-control label {
    font-size: 0.8rem;
    white-space: nowrap;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.reup-chart-header .amount-control input[type="number"] {
    width: 100%;
    height: 2.5rem;
    padding: 0 1.8rem 0 0.75rem;
    font-size: 1rem;
    border: 1px solid var(--border-primary);
    border-radius: 12px;
    font-weight: 600;
    text-align: right;
    font-family: inherit;
    background: var(--bg-secondary);
    color: var(--text-primary);
    box-sizing: border-box;
}

.reup-count-input {
    -moz-appearance: textfield;
    appearance: textfield;
}

.reup-metric-value {
    font-size: inherit;
    font-weight: 700;
    color: var(--text-primary);
}

/* ============================================================
   RE-UP SUBTITLE
   ============================================================ */
.chart-reup-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-top: -1.25rem;
    margin-bottom: 2rem;
    line-height: 1.5;
}

/* ============================================================
   CONDITIONS INLINE (avant CTA)
   ============================================================ */
.specific-conditions-inline {
    margin-top: 1rem;
    margin-bottom: 0;
}

/* ============================================================
   RESPONSIVE ÉTENDU
   ============================================================ */
@media (max-width: 768px) {
    /* Question card */
    .question-card { width: 100%; max-width: 100%; padding: 1rem 0; }

    /* Trustpilot */
    .tp-inner { flex-direction: column; gap: 16px; }
    .tp-divider { display: none; }
    .tp-reviews { display: none; }
    .tp-score { min-width: 100%; }

    /* Sérenité cards */
    .serenity-cards { grid-template-columns: 1fr; }

    /* Tableau landing */
    .table-wrapper { overflow-x: auto; }
    .strategy-table { min-width: 480px; }

    /* CTA section */
    .cta-container { padding: 1.5rem; }

    /* Chart */
    .chart-container { height: 320px; }
    .amount-control { flex-wrap: wrap; gap: 0.5rem; }
    .amount-control label { font-size: 0.85rem; }
    .amount-control input[type="number"],
    .amount-control input[type="text"] { width: 140px; font-size: 0.95rem; }
    .performance-metrics { gap: 1rem; }

    /* Navbar résultats */
    .results-navbar-cta { padding: 6px 14px; font-size: 0.82rem; }
}

@media (max-width: 480px) {
    /* Landing */
    .landing-page { padding: 32px 0; }
    .landing-hero { margin-bottom: 40px; }
    .btn-landing-cta { width: 100%; }

    /* FAQ */
    .faq-question { font-size: 0.9rem; }
    .faq-answer { font-size: 0.85rem; }

    /* Options questionnaire */
    .option-item { padding: 0.75rem 1rem; font-size: 0.9rem; }

    /* Lead form */
    .lead-capture-card { padding: 24px 16px; }

    /* Tableaux résultats */
    .results-strategy-table-section { overflow-x: auto; }
    .strategy-table { min-width: 520px; }

    /* Graphique */
    .chart-container { height: 260px; }

    /* CTA advisors */
    .cta-advisors { gap: 8px; }
}