/* ============================================================
   DECOUVERTE.CSS — Wizard conversationnel "Mon Profil Cuisine"
   Style chat-like + neumorphism + transitions fluides
   ============================================================ */

/* ---- FOND ET LAYOUT GLOBAL ---- */
.decouverte-body {
    background: #e8edf5;
    min-height: 100vh;
}

.chat-wrapper {
    max-width: 650px;
    margin: 0 auto;
    padding: 1.5rem 1rem 4rem;
}

/* ---- BARRE DE PROGRESSION ---- */
.progress-bar-wrapper {
    position: sticky;
    top: 52px;
    z-index: 50;
    background: #e8edf5;
    padding: 0.75rem 0 0.5rem;
    margin-bottom: 0.25rem;
}

.progress-track {
    display: flex;
    gap: 5px;
    margin-bottom: 0.4rem;
}

.progress-segment {
    flex: 1;
    height: 5px;
    background: rgba(30, 58, 95, 0.15);
    border-radius: 3px;
    transition: background 0.4s ease;
    overflow: hidden;
}

.progress-segment.done {
    background: var(--success);
}

.progress-segment.active {
    background: var(--primary);
    position: relative;
}

.progress-segment.active::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0%   { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-label {
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-light);
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* ---- MESSAGES "SITE" (bulle gauche) ---- */
.bubble-site {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 1rem;
    animation: slideInLeft 0.35s ease;
}

.bubble-avatar {
    width: 36px;
    height: 36px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.bubble-content {
    background: #ffffff;
    border-radius: 0 16px 16px 16px;
    padding: 0.9rem 1.2rem;
    box-shadow:
        4px 4px 10px rgba(163, 177, 198, 0.5),
        -2px -2px 6px rgba(255, 255, 255, 0.8);
    max-width: calc(100% - 50px);
    line-height: 1.55;
    color: var(--text);
    font-size: 0.95rem;
}

.bubble-content strong {
    color: var(--primary);
}

/* ---- RÉPONSE UTILISATEUR (bulle droite) ---- */
.bubble-user {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1.25rem;
    animation: slideInRight 0.3s ease;
}

.bubble-user-content {
    background: var(--primary);
    color: white;
    border-radius: 16px 0 16px 16px;
    padding: 0.75rem 1.1rem;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow:
        4px 4px 10px rgba(163, 177, 198, 0.4),
        -2px -2px 6px rgba(255, 255, 255, 0.6);
    max-width: 85%;
    line-height: 1.4;
}

/* ---- ZONE DE CHOIX / RÉPONSE ---- */
.choices-area {
    margin: 0.5rem 0 1.25rem 46px;
    animation: fadeInUp 0.4s ease;
}

/* ---- CARDS DE CHOIX (brise-glace, style) ---- */
.choice-cards {
    display: grid;
    gap: 0.75rem;
}

.choice-cards.grid-3 {
    grid-template-columns: 1fr;
}

.choice-cards.grid-2x3 {
    grid-template-columns: 1fr 1fr;
}

@media (min-width: 500px) {
    .choice-cards.grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

.choice-card {
    padding: 1rem 0.9rem;
    background: #e8edf5;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    border: 2px solid transparent;
    box-shadow:
        4px 4px 10px rgba(163, 177, 198, 0.55),
        -4px -4px 10px rgba(255, 255, 255, 0.85);
    user-select: none;
    position: relative;
}

.choice-card:hover {
    transform: translateY(-2px);
    box-shadow:
        6px 6px 14px rgba(163, 177, 198, 0.6),
        -4px -4px 10px rgba(255, 255, 255, 0.9);
}

.choice-card:active,
.choice-card.selected {
    box-shadow:
        inset 3px 3px 7px rgba(163, 177, 198, 0.5),
        inset -2px -2px 5px rgba(255, 255, 255, 0.7);
    transform: translateY(0);
    border-color: var(--primary);
}

.choice-card .card-emoji {
    font-size: 1.8rem;
    display: block;
    margin-bottom: 0.4rem;
}

.choice-card .card-title {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text);
    display: block;
    margin-bottom: 0.2rem;
}

.choice-card .card-sub {
    font-size: 0.78rem;
    color: var(--text-light);
    line-height: 1.35;
}

/* Cards style avec couleur de fond distincte */
.choice-card[data-style="moderne"]  { background: #f8f9fa; }
.choice-card[data-style="bois"]     { background: #fef3c7; }
.choice-card[data-style="industriel"] { background: #e5e7eb; }
.choice-card[data-style="classique"]  { background: #fdf2f8; }
.choice-card[data-style="colore"]    { background: #dcfce7; }
.choice-card[data-style="indecis"]   { background: #f5f7fa; }

/* ---- BOUTONS DE TYPE PROJET ---- */
.btn-choices {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.btn-choice {
    flex: 1;
    min-width: 130px;
    padding: 0.75rem 1rem;
    background: #e8edf5;
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    transition: all 0.2s;
    box-shadow:
        3px 3px 8px rgba(163, 177, 198, 0.5),
        -3px -3px 8px rgba(255, 255, 255, 0.85);
    text-align: center;
}

.btn-choice:hover {
    color: var(--primary);
    border-color: rgba(30, 58, 95, 0.2);
}

.btn-choice.selected {
    box-shadow:
        inset 2px 2px 6px rgba(163, 177, 198, 0.5),
        inset -2px -2px 5px rgba(255, 255, 255, 0.7);
    border-color: var(--primary);
    color: var(--primary);
}

/* ---- SLIDER SURFACE ---- */
.slider-wrapper {
    padding: 0.5rem 0;
}

.slider-value-display {
    text-align: center;
    margin-bottom: 1rem;
}

.slider-value-big {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    display: block;
}

.slider-value-unit {
    font-size: 1rem;
    color: var(--text-light);
    margin-top: 0.15rem;
    display: block;
}

input[type="range"].neu-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    background: #d1d9e6;
    border-radius: 4px;
    outline: none;
    box-shadow:
        inset 2px 2px 5px rgba(163, 177, 198, 0.6),
        inset -2px -2px 5px rgba(255, 255, 255, 0.8);
    cursor: pointer;
}

input[type="range"].neu-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    box-shadow:
        3px 3px 8px rgba(163, 177, 198, 0.6),
        -2px -2px 5px rgba(255, 255, 255, 0.8);
    transition: transform 0.15s;
}

input[type="range"].neu-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

input[type="range"].neu-slider::-moz-range-thumb {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary);
    border: none;
    cursor: pointer;
}

.slider-hint {
    text-align: center;
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: var(--text-light);
    font-style: italic;
    min-height: 1.4em;
    transition: all 0.3s;
}

/* ---- RADIO BUDGET (cards verticales) ---- */
.budget-cards {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.budget-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1.1rem;
    background: #e8edf5;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid transparent;
    box-shadow:
        3px 3px 8px rgba(163, 177, 198, 0.5),
        -3px -3px 8px rgba(255, 255, 255, 0.85);
    user-select: none;
}

.budget-card:hover {
    border-color: rgba(30, 58, 95, 0.2);
}

.budget-card.selected {
    box-shadow:
        inset 2px 2px 6px rgba(163, 177, 198, 0.5),
        inset -2px -2px 5px rgba(255, 255, 255, 0.7);
    border-color: var(--primary);
    background: rgba(30, 58, 95, 0.03);
}

.budget-card input[type="radio"] {
    display: none;
}

.budget-card-label {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text);
}

.budget-card.selected .budget-card-label {
    color: var(--primary);
}

.budget-card-sub {
    font-size: 0.8rem;
    color: var(--text-light);
}

.budget-card-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--border);
    flex-shrink: 0;
    transition: all 0.2s;
    position: relative;
}

.budget-card.selected .budget-card-dot {
    border-color: var(--primary);
    background: var(--primary);
}

.budget-card.selected .budget-card-dot::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 8px; height: 8px;
    border-radius: 50%;
    background: white;
}

/* ---- CHECKBOXES PRIORITÉS ET ENSEIGNES ---- */
.check-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.check-option {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.7rem 0.9rem;
    background: #e8edf5;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid transparent;
    box-shadow:
        3px 3px 7px rgba(163, 177, 198, 0.5),
        -3px -3px 7px rgba(255, 255, 255, 0.85);
    user-select: none;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text);
}

.check-option:hover:not(.disabled) {
    border-color: rgba(30, 58, 95, 0.2);
}

.check-option.selected {
    box-shadow:
        inset 2px 2px 5px rgba(163, 177, 198, 0.5),
        inset -2px -2px 4px rgba(255, 255, 255, 0.7);
    border-color: var(--primary);
    background: rgba(30, 58, 95, 0.03);
    color: var(--primary);
}

.check-option.disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.check-box {
    width: 20px;
    height: 20px;
    border-radius: 5px;
    border: 2px solid var(--border);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    transition: all 0.2s;
    background: white;
}

.check-option.selected .check-box {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.check-option.selected .check-box::after {
    content: '✓';
    font-weight: 700;
}

/* Compteur sélections */
.selection-counter {
    font-size: 0.78rem;
    color: var(--text-light);
    text-align: right;
    margin-bottom: 0.5rem;
}

.selection-counter.max-reached {
    color: var(--accent);
    font-weight: 600;
}

/* ---- BOUTON SUIVANT / RETOUR ---- */
.step-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1.25rem;
    margin-left: 46px;
}

.btn-back {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 0.85rem;
    cursor: pointer;
    padding: 0.5rem 0.8rem;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-family: inherit;
}

.btn-back:hover {
    color: var(--primary);
    background: rgba(30, 58, 95, 0.06);
}

.btn-next {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    box-shadow: 3px 3px 8px rgba(30, 58, 95, 0.3);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-next:hover {
    background: var(--primary-light);
    transform: translateY(-1px);
    box-shadow: 4px 6px 14px rgba(30, 58, 95, 0.35);
}

.btn-next:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

/* ---- ÉTAPES (display/masquage) ---- */
.wizard-step {
    display: none;
}

.wizard-step.active {
    display: block;
}

/* ---- ANIMATIONS ---- */
@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-20px); }
    to   { opacity: 1; transform: translateX(0); }
}

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

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

@keyframes revealBlur {
    from { filter: blur(8px); }
    to   { filter: blur(0); }
}

/* Animation au passage d'étape */
.step-entering {
    animation: fadeInUp 0.4s ease forwards;
}

/* ---- ÉTAPE 8 — PROFIL + RÉSULTAT ---- */

/* Card archétype */
.archetype-reveal {
    background: white;
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    box-shadow:
        6px 6px 16px rgba(163, 177, 198, 0.55),
        -4px -4px 12px rgba(255, 255, 255, 0.9);
    margin-bottom: 1.25rem;
    position: relative;
    overflow: hidden;
}

.archetype-reveal::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 5px;
    background: var(--archetype-color, var(--primary));
}

.archetype-emoji {
    font-size: 4rem;
    display: block;
    margin-bottom: 0.75rem;
    animation: bounceIn 0.6s ease;
}

@keyframes bounceIn {
    0%   { transform: scale(0.3); opacity: 0; }
    60%  { transform: scale(1.15); }
    80%  { transform: scale(0.95); }
    100% { transform: scale(1); opacity: 1; }
}

.archetype-vous-etes {
    font-size: 0.85rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.archetype-nom {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.archetype-desc {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.archetype-conseil {
    background: rgba(30, 58, 95, 0.05);
    border-left: 3px solid var(--primary);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding: 0.75rem 1rem;
    font-size: 0.88rem;
    color: var(--text);
    text-align: left;
    line-height: 1.5;
}

/* Zone floutée */
.teaser-blurred {
    background: white;
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1.25rem;
    box-shadow:
        4px 4px 10px rgba(163, 177, 198, 0.5),
        -3px -3px 8px rgba(255, 255, 255, 0.85);
    position: relative;
    overflow: hidden;
}

.teaser-blurred .blurred-content {
    filter: blur(7px);
    pointer-events: none;
    user-select: none;
    transition: filter 0.8s ease;
}

.teaser-blurred.revealed .blurred-content {
    filter: blur(0);
    animation: revealBlur 0.8s ease;
}

.teaser-title {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.75rem;
}

.teaser-enseignes {
    display: flex;
    gap: 0.6rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.teaser-enseigne-pill {
    background: var(--primary);
    color: white;
    border-radius: 50px;
    padding: 0.3rem 1rem;
    font-size: 0.85rem;
    font-weight: 700;
}

.teaser-budget-line {
    font-size: 0.9rem;
    color: var(--text);
}

/* Overlay "déverrouillez" */
.teaser-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(232, 237, 245, 0.5);
    border-radius: var(--radius);
    transition: opacity 0.4s;
}

.teaser-blurred.revealed .teaser-overlay {
    opacity: 0;
    pointer-events: none;
}

.teaser-lock-icon {
    font-size: 1.5rem;
    opacity: 0.4;
}

/* Formulaire de collecte */
.lead-form-card {
    background: white;
    border-radius: var(--radius);
    padding: 1.75rem;
    box-shadow:
        4px 4px 10px rgba(163, 177, 198, 0.5),
        -3px -3px 8px rgba(255, 255, 255, 0.85);
    margin-bottom: 1.25rem;
}

.lead-form-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.3rem;
}

.lead-form-sub {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 1.25rem;
}

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

.lead-form .form-row.single {
    grid-template-columns: 1fr;
}

.lead-form .field label {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.3rem;
}

.lead-form .field label .opt {
    font-weight: 400;
    color: var(--text-light);
    font-size: 0.78rem;
}

.lead-form .field input {
    width: 100%;
    padding: 0.65rem 0.9rem;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-family: inherit;
    background: #f8fafc;
    transition: border-color 0.2s;
}

.lead-form .field input:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
}

.rgpd-label {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.8rem;
    color: var(--text-light);
    line-height: 1.5;
    margin: 1rem 0 1.25rem;
    cursor: pointer;
}

.rgpd-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-top: 2px;
    accent-color: var(--primary);
    cursor: pointer;
}

.btn-submit-lead {
    width: 100%;
    padding: 1rem;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    box-shadow: 3px 3px 10px rgba(232, 145, 58, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-submit-lead:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 4px 6px 14px rgba(232, 145, 58, 0.45);
}

.btn-submit-lead:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* ---- RÉSULTATS (après soumission) ---- */
.results-section {
    display: none;
    animation: fadeInUp 0.5s ease;
}

.results-section.visible {
    display: block;
}

.results-header-bubble {
    background: var(--primary);
    color: white;
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
    margin-bottom: 1.25rem;
    box-shadow: 4px 6px 14px rgba(30, 58, 95, 0.3);
}

.results-header-bubble h2 {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 0.3rem;
}

.results-header-bubble p {
    opacity: 0.85;
    font-size: 0.9rem;
}

/* Top 3 enseignes */
.top3-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.enseigne-result-card {
    background: white;
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow:
        4px 4px 10px rgba(163, 177, 198, 0.5),
        -3px -3px 8px rgba(255, 255, 255, 0.85);
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
    border: 2px solid transparent;
}

.enseigne-result-card:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
    box-shadow:
        6px 8px 16px rgba(163, 177, 198, 0.6),
        -3px -3px 8px rgba(255, 255, 255, 0.9);
}

.enseigne-rank {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    font-weight: 800;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.enseigne-rank.rank-1 { background: #f59e0b; }
.enseigne-rank.rank-2 { background: #94a3b8; }
.enseigne-rank.rank-3 { background: #b45309; }

.enseigne-result-info {
    flex: 1;
    min-width: 0;
}

.enseigne-result-nom {
    font-weight: 800;
    font-size: 1rem;
    color: var(--primary);
    margin-bottom: 0.15rem;
}

.enseigne-result-force {
    font-size: 0.82rem;
    color: var(--text-light);
}

.enseigne-result-score {
    text-align: right;
    flex-shrink: 0;
}

.score-big {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.score-max {
    font-size: 0.7rem;
    color: var(--text-light);
}

/* Budget estimé */
.budget-result-card {
    background: white;
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.25rem;
    box-shadow:
        4px 4px 10px rgba(163, 177, 198, 0.5),
        -3px -3px 8px rgba(255, 255, 255, 0.85);
}

.budget-result-label {
    font-size: 0.8rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.budget-result-range {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.3rem;
}

.budget-result-info {
    font-size: 0.82rem;
    color: var(--text-light);
}

/* Liens contextuels */
.context-links {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
}

.context-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 1.1rem;
    background: white;
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow:
        3px 3px 8px rgba(163, 177, 198, 0.5),
        -2px -2px 6px rgba(255, 255, 255, 0.85);
    transition: all 0.2s;
    border: 2px solid transparent;
}

.context-link:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateX(3px);
}

.context-link-icon {
    font-size: 1.1rem;
    width: 32px;
    height: 32px;
    background: rgba(30, 58, 95, 0.07);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.context-link-arrow {
    margin-left: auto;
    color: var(--text-light);
    font-size: 0.85rem;
}

/* Message conseiller */
.conseiller-bubble {
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.25);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.88rem;
    color: var(--text);
    line-height: 1.5;
}

.conseiller-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
}

/* ---- RESPONSIVE MOBILE ---- */
@media (max-width: 480px) {
    .chat-wrapper {
        padding: 1rem 0.75rem 3rem;
    }

    .choice-cards.grid-2x3 {
        grid-template-columns: 1fr 1fr;
    }

    .check-grid {
        grid-template-columns: 1fr;
    }

    .btn-choices {
        flex-direction: column;
    }

    .btn-choice {
        min-width: unset;
    }

    .lead-form .form-row {
        grid-template-columns: 1fr;
    }

    .archetype-nom {
        font-size: 1.3rem;
    }

    .slider-value-big {
        font-size: 2.8rem;
    }

    .step-nav {
        margin-left: 0;
    }

    .choices-area {
        margin-left: 0;
    }
}

@media (max-width: 380px) {
    .choice-cards.grid-3 {
        grid-template-columns: 1fr;
    }
}

/* ---- ÉTATS D'ERREUR FORMULAIRE ---- */
.field input.error {
    border-color: var(--danger);
}

.field-error {
    font-size: 0.78rem;
    color: var(--danger);
    margin-top: 0.25rem;
}

/* ---- INDICATEUR "TYPING" (effet bulle en cours d'écriture) ---- */
.typing-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
    animation: slideInLeft 0.3s ease;
}

.typing-dots {
    background: white;
    border-radius: 0 16px 16px 16px;
    padding: 0.75rem 1rem;
    box-shadow:
        4px 4px 10px rgba(163, 177, 198, 0.5),
        -2px -2px 6px rgba(255, 255, 255, 0.8);
    display: flex;
    gap: 5px;
    align-items: center;
}

.typing-dots span {
    width: 7px;
    height: 7px;
    background: var(--text-light);
    border-radius: 50%;
    display: block;
    animation: typingBounce 1.2s infinite ease;
}

.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
    0%, 60%, 100% { transform: translateY(0); }
    30%            { transform: translateY(-6px); }
}
