/* VIFPROTECT - Styles communs */

.vif-body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #f5f5f7;
    color: #1c1c1e;
    min-height: 100vh;
}

.vif-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.vif-lang-toggle {
    background: #f0f0f0;
    border: 1px solid #d0d0d0;
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    color: #1c1c1e;
}

.vif-logo {
    font-size: 16px;
    font-weight: 700;
    color: #1c1c1e;
    text-decoration: none;
    letter-spacing: 0.5px;
}

.vif-quick-exit-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #e0e0e0;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1c1c1e;
}

.vif-main {
    max-width: 720px;
    margin: 0 auto;
    padding: 24px 16px 60px;
}

.vif-title {
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 8px;
}

.vif-subtitle {
    font-size: 16px;
    color: #666;
    margin: 0 0 24px;
    font-style: italic;
}

.vif-parcours {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
}

.vif-parcours-card {
    display: flex;
    flex-direction: column;
    padding: 16px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    text-decoration: none;
    color: #1c1c1e;
    transition: background 0.15s;
}

.vif-parcours-card:active {
    background: #f0f0f0;
}

.vif-parcours-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.vif-parcours-label {
    font-size: 16px;
    font-weight: 500;
}

.vif-parcours-label-kr {
    font-size: 14px;
    color: #666;
    font-style: italic;
    margin-top: 4px;
}

.vif-acces-title {
    font-size: 14px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 12px;
}

.vif-acces-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 32px;
}

.vif-acces-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 8px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    text-decoration: none;
    color: #1c1c1e;
    font-size: 14px;
    text-align: center;
}

.vif-urgences {
    background: #fff;
    border: 2px solid #ff3b30;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 24px;
}

.vif-urgences-title {
    font-size: 16px;
    font-weight: 700;
    color: #ff3b30;
    margin: 0 0 12px;
    text-align: center;
}

.vif-urgences-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.vif-urgence-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    text-decoration: none;
    color: #1c1c1e;
    border-radius: 8px;
}

.vif-urgence-num {
    font-size: 20px;
    font-weight: 700;
    color: #ff3b30;
    min-width: 60px;
}

.vif-urgence-label {
    font-size: 14px;
    line-height: 1.3;
}

.vif-urgence-label em {
    font-size: 12px;
    color: #666;
}

.vif-urgences-note {
    font-size: 12px;
    color: #666;
    text-align: center;
    margin: 12px 0 0;
}

.vif-footer {
    background: #fff;
    border-top: 1px solid #e0e0e0;
    padding: 16px;
    font-size: 11px;
    color: #666;
    line-height: 1.5;
}

.vif-footer-legal {
    margin: 0 0 8px;
    text-align: center;
}

.vif-footer-kr {
    font-style: italic;
}

/* Questionnaire */
.vif-questionnaire {
    max-width: 720px;
    margin: 0 auto;
}

.vif-progress {
    background: #e0e0e0;
    border-radius: 4px;
    height: 8px;
    margin-bottom: 8px;
    overflow: hidden;
}

.vif-progress-bar {
    background: #007aff;
    height: 100%;
    width: 0;
    transition: width 0.3s;
}

.vif-progress-text {
    font-size: 12px;
    color: #666;
    text-align: center;
    margin-bottom: 24px;
}

.vif-question {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    border: 1px solid #e0e0e0;
}

.vif-question.vif-answered {
    border-color: #007aff;
}

.vif-question-intitule {
    font-size: 16px;
    font-weight: 500;
    margin: 0 0 16px;
    line-height: 1.4;
}

.vif-question-reponses {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.vif-question-reponses label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
}

.vif-result {
    display: none;
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-top: 24px;
    border: 2px solid #007aff;
}

.vif-result.vif-visible {
    display: block;
}

.vif-result[data-level="3"] { border-color: #ff9500; }
.vif-result[data-level="4"] { border-color: #ff3b30; }

/* Carte */
.vif-map {
    width: 100%;
    height: 60vh;
    min-height: 400px;
    border-radius: 12px;
    margin-bottom: 16px;
}