/* ============================================
   DISC Styles - Complete Stylesheet
   ============================================ */

:root {
    --disc-d: #E74C3C;
    --disc-i: #F1C40F;
    --disc-s: #2ECC71;
    --disc-c: #3498DB;
    --disc-d-light: #FADBD8;
    --disc-i-light: #FEF9E7;
    --disc-s-light: #D5F5E3;
    --disc-c-light: #D6EAF8;
    --fm-esthetique: #E67E22;
    --fm-economique: #F39C12;
    --fm-individualiste: #E74C3C;
    --fm-politique: #9B59B6;
    --fm-altruiste: #1ABC9C;
    --fm-traditionaliste: #34495E;
    --fm-theorique: #2980B9;
    --bg: #F8F9FA;
    --card-bg: #FFFFFF;
    --text: #2C3E50;
    --text-light: #7F8C8D;
    --border: #E0E0E0;
    --shadow: 0 2px 12px rgba(0,0,0,0.08);
    --radius: 12px;
}

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

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

.page { display: none; min-height: 100vh; }
.page.active { display: block; }

/* ============ BUTTONS ============ */
.btn-primary {
    background: linear-gradient(135deg, var(--disc-d), #C0392B);
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 4px 15px rgba(231,76,60,0.4); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }

.btn-secondary {
    background: white;
    color: var(--text);
    border: 2px solid var(--border);
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}
.btn-secondary:hover { border-color: var(--disc-c); color: var(--disc-c); }
.btn-secondary:disabled { opacity: 0.4; cursor: not-allowed; }

.btn-large { padding: 16px 40px; font-size: 18px; }

/* ============ LANDING PAGE ============ */
.landing-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

.landing-header {
    text-align: center;
    margin-bottom: 50px;
}

.disc-wheel-landing {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

.landing-header h1 {
    font-size: 42px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--disc-d), var(--disc-i), var(--disc-s), var(--disc-c));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.landing-header h2 {
    font-size: 22px;
    font-weight: 400;
    color: var(--text-light);
    margin-bottom: 8px;
}

.subtitle {
    color: var(--text-light);
    font-size: 15px;
}

.landing-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 50px;
}

.info-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 28px 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}
.info-card:hover { transform: translateY(-4px); }

.info-icon { font-size: 36px; margin-bottom: 12px; }
.info-card h3 { font-size: 16px; margin-bottom: 8px; }
.info-card p { font-size: 13px; color: var(--text-light); }

.landing-form {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow);
    text-align: center;
}

.landing-form h3 {
    font-size: 20px;
    margin-bottom: 24px;
}

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

.form-group {
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-light);
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.3s;
    outline: none;
}
.form-group input:focus { border-color: var(--disc-c); }

.duration-note {
    margin-top: 16px;
    font-size: 13px;
    color: var(--text-light);
}

.form-consent {
    margin: 20px 0 16px;
    text-align: left;
}

.consent-label {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.5;
    cursor: pointer;
}

.consent-label input[type="checkbox"] {
    margin-top: 3px;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.consent-info {
    margin: 8px 0 0;
    padding: 8px 12px;
    background: #f2f4f7;
    border-left: 3px solid #98a2b3;
    border-radius: 4px;
    font-size: 12px;
    color: var(--text-light);
    line-height: 1.5;
}

.disclaimer-banner {
    margin: 24px 0;
    padding: 14px 18px;
    background: #fef6e7;
    border-left: 4px solid #f0a020;
    border-radius: 6px;
    font-size: 13px;
    color: #6b4f10;
    line-height: 1.5;
}

.rise-logo {
    display: block;
    max-height: 48px;
    margin: 0 auto 20px;
    object-fit: contain;
}

/* ============ QUIZ ============ */
.quiz-container {
    max-width: 750px;
    margin: 0 auto;
    padding: 30px 20px;
}

.quiz-header { margin-bottom: 24px; }

.progress-section { margin-bottom: 8px; }

.progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--border);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--disc-c), var(--disc-s), var(--disc-i), var(--disc-d));
    border-radius: 4px;
    transition: width 0.4s ease;
    width: 0%;
}

.quiz-instructions {
    background: var(--disc-c-light);
    border-left: 4px solid var(--disc-c);
    padding: 14px 20px;
    border-radius: 0 8px 8px 0;
    margin-bottom: 28px;
    font-size: 14px;
}

/* DISC Question Card */
.disc-question-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow);
    margin-bottom: 24px;
}

.disc-question-card h3 {
    font-size: 18px;
    margin-bottom: 24px;
    text-align: center;
    color: var(--text);
}

.disc-options-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px;
}

.disc-options-table th {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light);
    padding: 8px 12px;
    text-align: center;
    font-weight: 600;
}

.disc-options-table th:first-child { text-align: left; }

.disc-options-table td {
    padding: 14px 12px;
    text-align: center;
    vertical-align: middle;
}

.disc-options-table tr.option-row {
    background: var(--bg);
    border-radius: 8px;
    transition: background 0.2s;
}

.disc-options-table tr.option-row:hover { background: #EDF2F7; }

.disc-options-table tr.option-row td:first-child {
    text-align: left;
    font-size: 16px;
    font-weight: 500;
    border-radius: 8px 0 0 8px;
}

.disc-options-table tr.option-row td:last-child {
    border-radius: 0 8px 8px 0;
}

.radio-btn {
    width: 22px;
    height: 22px;
    cursor: pointer;
    accent-color: var(--disc-d);
}

.radio-btn.most { accent-color: var(--disc-s); }
.radio-btn.least { accent-color: var(--disc-d); }

/* Legacy selected backgrounds — overridden by dark-mode rules at end of file */

/* FM Question */
.fm-question-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.fm-question-card .fm-statement {
    font-size: 16px;
    margin-bottom: 20px;
    font-weight: 500;
}

.likert-scale {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.likert-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.likert-option input { display: none; }

.likert-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 3px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-light);
    transition: all 0.2s;
}

.likert-option:hover .likert-circle {
    border-color: var(--disc-c);
    color: var(--disc-c);
}

.likert-option input:checked + .likert-circle {
    background: var(--disc-c);
    border-color: var(--disc-c);
    color: white;
}

.likert-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 11px;
    color: var(--text-light);
}

.quiz-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 16px;
}

/* ============ LOADING ============ */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 5px solid var(--border);
    border-top-color: var(--disc-d);
    border-right-color: var(--disc-i);
    border-bottom-color: var(--disc-s);
    border-left-color: var(--disc-c);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 24px;
}

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

/* ============ RESULTS ============ */
.results-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
}

.results-header {
    text-align: center;
    margin-bottom: 40px;
}
.results-header h1 {
    font-size: 32px;
    margin-bottom: 8px;
}
.results-header p {
    color: var(--text-light);
    font-size: 15px;
}

/* Dominant Banner */
.dominant-banner {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 32px;
    border-radius: var(--radius);
    margin-bottom: 40px;
    color: white;
}

.dominant-color-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 4px solid rgba(255,255,255,0.5);
    flex-shrink: 0;
}

.dominant-info h2 { font-size: 26px; }
.dominant-info p { opacity: 0.9; font-size: 15px; }

.results-section {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow);
    margin-bottom: 28px;
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border);
}

.graphs-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 24px;
}

.graph-card {
    text-align: center;
}
.graph-card h3 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-light);
}

/* Color Bars */
.color-bars-container { display: flex; flex-direction: column; gap: 20px; }

.color-bar-row h4 {
    font-size: 14px;
    margin-bottom: 12px;
    color: var(--text-light);
}

.color-bar-items { display: flex; gap: 16px; flex-wrap: wrap; }

.color-bar-item {
    flex: 1;
    min-width: 120px;
}

.color-bar-label {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
}

.color-bar-track {
    height: 24px;
    background: var(--bg);
    border-radius: 12px;
    overflow: hidden;
}

.color-bar-fill {
    height: 100%;
    border-radius: 12px;
    transition: width 1s ease;
}

/* Description Card */
.description-card {
    font-size: 15px;
    line-height: 1.8;
}
.description-card h3 {
    font-size: 18px;
    margin-bottom: 12px;
    color: var(--disc-d);
}
.description-card ul {
    margin: 12px 0;
    padding-left: 24px;
}
.description-card li { margin-bottom: 6px; }
.description-card p { margin-bottom: 12px; }

/* Word Map Table */
.word-map-table {
    overflow-x: auto;
}

.word-map-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.word-map-table th {
    padding: 10px 8px;
    text-align: center;
    font-weight: 700;
    color: white;
    font-size: 12px;
}

.word-map-table th.col-d { background: var(--disc-d); }
.word-map-table th.col-i { background: var(--disc-i); color: var(--text); }
.word-map-table th.col-s { background: var(--disc-s); }
.word-map-table th.col-c { background: var(--disc-c); }
.word-map-table th.col-level { background: #95A5A6; }

.word-map-table td {
    padding: 8px;
    text-align: center;
    border-bottom: 1px solid var(--border);
    font-size: 12px;
}

.word-map-table tr.highlighted-row { background: #FFF3CD; font-weight: 600; }

/* Tendencies Table */
.tendencies-table table {
    width: 100%;
    border-collapse: collapse;
}

.tendencies-table th {
    background: var(--text);
    color: white;
    padding: 12px;
    font-size: 13px;
    text-align: left;
}

.tendencies-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
}

.tendencies-table tr:nth-child(even) { background: var(--bg); }

.tendency-tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

/* Communication Tips */
.comm-tips-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.comm-card {
    padding: 24px;
    border-radius: 8px;
}

.comm-do {
    background: var(--disc-s-light);
    border-left: 4px solid var(--disc-s);
}

.comm-dont {
    background: var(--disc-d-light);
    border-left: 4px solid var(--disc-d);
}

.comm-card h3 {
    font-size: 15px;
    margin-bottom: 12px;
}

.comm-card ul {
    padding-left: 20px;
    font-size: 14px;
}
.comm-card li { margin-bottom: 6px; }

/* Forces Motrices Details */
.fm-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 24px;
}

.fm-detail-card {
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid;
}

.fm-detail-card h4 {
    font-size: 15px;
    margin-bottom: 8px;
}

.fm-detail-card .fm-score {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 4px;
}

.fm-detail-card .fm-rank {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 8px;
}

.fm-detail-card p {
    font-size: 13px;
    line-height: 1.5;
}

/* Download Section */
.download-section {
    text-align: center;
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   LANDING — Rise.fo design language
   tokens directement repris du site rise.fo
   ============================================ */

:root {
    --rise-void: 270 100% 2%;
    --rise-deep: 268 60% 4%;
    --rise-purple: 263 70% 23%;
    --rise-mid: 261 18% 65%;
    --rise-smoke: 261 18% 77%;
    --rise-electric: 270 100% 50%;
    --rise-cyan: 192 100% 50%;
    --rise-grid: 263 30% 12%;
}
#landing {
    background: hsl(var(--rise-void));
    color: hsl(var(--rise-smoke));
    font-family: 'Space Grotesk', system-ui, -apple-system, sans-serif;
    letter-spacing: -0.005em;
    overflow-x: hidden;
}
#landing .mono {
    font-family: 'Space Mono', ui-monospace, monospace;
    letter-spacing: 0;
}

/* ==================== HERO ==================== */
.hero {
    position: relative;
    min-height: 100vh;
    padding: 28px 32px 96px;
    color: hsl(var(--rise-smoke));
    overflow: hidden;
    display: flex;
    flex-direction: column;
    isolation: isolate;
}
/* Glow violet décentré */
.hero::before {
    content: "";
    position: absolute;
    top: -28%; left: 58%;
    width: 80vh; height: 80vh;
    background: radial-gradient(circle, hsl(var(--rise-electric) / 0.32) 0%, hsl(var(--rise-electric) / 0.08) 35%, transparent 65%);
    filter: blur(40px);
    pointer-events: none;
    z-index: -1;
}
/* Halo cyan diagonale */
.hero::after {
    content: "";
    position: absolute;
    bottom: -20%; right: -10%;
    width: 50vh; height: 50vh;
    background: radial-gradient(circle, hsl(var(--rise-cyan) / 0.15) 0%, transparent 60%);
    filter: blur(60px);
    pointer-events: none;
    z-index: -1;
}
/* Grid pattern */
.hero .hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(hsl(var(--rise-grid)) 1px, transparent 1px),
        linear-gradient(90deg, hsl(var(--rise-grid)) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 30%, transparent 75%);
    opacity: 0.5;
    pointer-events: none;
    z-index: -1;
}

/* Orbites elliptiques rotatives */
.hero-orbits {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.orbit {
    position: absolute;
    border-radius: 50%;
    will-change: transform;
    animation: orbit-spin linear infinite;
    border: 1px solid hsl(var(--rise-electric) / 0.18);
}
.orbit-1 {
    width: 1400px; height: 740px;
    animation-duration: 90s;
    border-color: hsl(var(--rise-electric) / 0.16);
}
.orbit-2 {
    width: 1050px; height: 560px;
    animation-duration: 70s;
    animation-direction: reverse;
    border-color: hsl(var(--rise-cyan) / 0.12);
}
.orbit-3 {
    width: 700px; height: 380px;
    animation-duration: 50s;
    border-color: hsl(var(--rise-electric) / 0.28);
}
@keyframes orbit-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* Particules cosmiques */
.hero-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}
.particle {
    position: absolute;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 4px rgba(255, 255, 255, 0.55);
    opacity: var(--p-op, 0.5);
    will-change: transform;
    animation: particle-drift ease-in-out infinite;
}
.particle-violet {
    background: hsl(var(--rise-electric));
    box-shadow: 0 0 6px hsl(var(--rise-electric) / 0.7);
}
.particle-cyan {
    background: hsl(var(--rise-cyan));
    box-shadow: 0 0 6px hsl(var(--rise-cyan) / 0.65);
}
@keyframes particle-drift {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    25%      { transform: translate3d(14px, -22px, 0) scale(1.15); }
    50%      { transform: translate3d(-8px, -34px, 0) scale(0.9); }
    75%      { transform: translate3d(-16px, -12px, 0) scale(1.05); }
}

/* Scroll indicator en bas du hero */
.hero-scroll {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    pointer-events: none;
    z-index: 1;
}
.hero-scroll-label {
    font-family: 'Space Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: hsl(var(--rise-mid));
    opacity: 0.7;
}
.hero-scroll-line {
    width: 1px;
    height: 44px;
    background: hsl(var(--rise-purple));
    position: relative;
    overflow: hidden;
}
.hero-scroll-line::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent, hsl(var(--rise-electric)), transparent);
    animation: scroll-trace 2.2s ease-in-out infinite;
}
@keyframes scroll-trace {
    0%   { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}
.hero-inner {
    position: relative;
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: left;
}
.rise-logo-hero {
    height: 22px;
    margin: 0;
    align-self: flex-start;
    filter: invert(1);
    opacity: 0.95;
}
.hero-body {
    max-width: 920px;
    margin-top: 80px;
}
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: hsl(var(--rise-electric));
    margin-bottom: 28px;
}
.hero-eyebrow::before {
    content: "";
    width: 28px;
    height: 1px;
    background: hsl(var(--rise-electric));
}
.hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: clamp(56px, 9vw, 132px);
    line-height: 0.95;
    letter-spacing: -0.04em;
    margin: 0 0 28px;
    color: hsl(0 0% 100%);
}
.hero-title em {
    font-style: normal;
    background: linear-gradient(135deg, hsl(var(--rise-electric)) 0%, hsl(var(--rise-cyan)) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-subtitle {
    font-size: clamp(16px, 1.5vw, 19px);
    line-height: 1.55;
    color: hsl(var(--rise-mid));
    max-width: 580px;
    margin: 0 0 48px;
    font-weight: 300;
}
.hero-chips {
    display: grid;
    grid-template-columns: repeat(3, max-content);
    gap: 0;
    margin: 0 0 56px;
    border-top: 1px solid hsl(var(--rise-purple));
    border-bottom: 1px solid hsl(var(--rise-purple));
    align-self: flex-start;
}
.chip {
    font-family: 'Space Mono', monospace;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: hsl(var(--rise-smoke));
    padding: 18px 28px 18px 0;
    background: transparent;
    border: none;
    border-radius: 0;
    position: relative;
}
.chip + .chip {
    padding-left: 28px;
    border-left: 1px solid hsl(var(--rise-purple));
}
.chip::before {
    content: attr(data-num);
    display: block;
    color: hsl(var(--rise-electric));
    font-size: 10px;
    margin-bottom: 6px;
    letter-spacing: 0.12em;
}
.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    background: hsl(var(--rise-electric));
    color: white;
    padding: 18px 32px;
    border-radius: 999px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: -0.005em;
    align-self: flex-start;
    transition: transform 0.3s cubic-bezier(.2,.8,.2,1), background 0.25s, box-shadow 0.3s;
    box-shadow: 0 0 0 0 hsl(var(--rise-electric) / 0);
}
.hero-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 40px -8px hsl(var(--rise-electric) / 0.7);
}
.hero-cta .btn-arrow {
    display: inline-flex;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255,255,255,0.18);
    align-items: center;
    justify-content: center;
    transition: transform 0.35s cubic-bezier(.2,.8,.2,1), background 0.25s;
    font-size: 14px;
}
.hero-cta:hover .btn-arrow {
    background: rgba(255,255,255,0.28);
    transform: translateX(4px);
}

/* Entrance cascade sur le hero */
.rise-logo-hero,
.hero-eyebrow,
.hero-title,
.hero-subtitle,
.hero-chips,
.hero-cta,
.hero-scroll {
    opacity: 0;
    animation: hero-fade-up 0.9s cubic-bezier(.2,.8,.2,1) forwards;
}
.rise-logo-hero { animation-delay: 0.05s; }
.hero-eyebrow   { animation-delay: 0.22s; }
.hero-title     { animation-delay: 0.34s; }
.hero-subtitle  { animation-delay: 0.46s; }
.hero-chips     { animation-delay: 0.58s; }
.hero-cta       { animation-delay: 0.70s; }
.hero-scroll    { animation-delay: 1.0s; }
@keyframes hero-fade-up {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}
.hero-scroll {
    /* Preserve translateX during entrance */
    animation-name: hero-scroll-in;
}
@keyframes hero-scroll-in {
    from { opacity: 0; transform: translate(-50%, 16px); }
    to   { opacity: 1; transform: translate(-50%, 0); }
}

/* ==================== Sections shared ==================== */
.how-section, .dim-section, .form-section {
    padding: 120px 32px;
    max-width: 1280px;
    margin: 0 auto;
    position: relative;
}
.section-heading {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: clamp(40px, 5vw, 72px);
    line-height: 1.02;
    letter-spacing: -0.03em;
    text-align: left;
    margin: 0 0 64px;
    color: hsl(0 0% 100%);
    max-width: 700px;
}
.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: hsl(var(--rise-electric));
    margin-bottom: 18px;
}
.section-eyebrow::before {
    content: "";
    width: 28px;
    height: 1px;
    background: hsl(var(--rise-electric));
}

/* ==================== HOW (Comment ça marche) ==================== */
.how-section {
    border-top: 1px solid hsl(var(--rise-grid));
}
.how-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: hsl(var(--rise-grid));
    border: 1px solid hsl(var(--rise-grid));
}
.how-card {
    background: hsl(var(--rise-deep));
    padding: 36px 28px 32px;
    transition: background 0.3s;
    position: relative;
    overflow: hidden;
}
.how-card:hover {
    background: hsl(var(--rise-void));
}
.how-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, hsl(var(--rise-electric)), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}
.how-card:hover::before {
    opacity: 1;
}
.how-icon {
    width: 44px;
    height: 44px;
    margin: 0 0 28px;
    background: hsl(var(--rise-purple) / 0.3);
    border: 1px solid hsl(var(--rise-purple));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}
.how-step {
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: hsl(var(--rise-electric));
    margin: 0 0 8px;
}
.how-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 22px;
    font-weight: 500;
    letter-spacing: -0.02em;
    color: white;
    margin: 0 0 10px;
}
.how-desc {
    font-size: 13.5px;
    line-height: 1.55;
    color: hsl(var(--rise-mid));
    margin: 0 0 20px;
    font-weight: 300;
}
.how-tag {
    display: inline-block;
    font-family: 'Space Mono', monospace;
    font-size: 10.5px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: hsl(var(--rise-smoke));
    border: 1px solid hsl(var(--rise-purple));
    padding: 5px 11px;
    border-radius: 999px;
}

/* ==================== DIM (4 dimensions DISC) ==================== */
.dim-section {
    border-top: 1px solid hsl(var(--rise-grid));
}
.dim-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: hsl(var(--rise-grid));
    border: 1px solid hsl(var(--rise-grid));
}
.dim-card {
    background: hsl(var(--rise-deep));
    padding: 40px 28px 36px;
    transition: background 0.3s;
}
.dim-card:hover {
    background: hsl(var(--rise-void));
}
.dim-circle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 24px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 24px;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.12), 0 14px 36px -10px var(--dim-glow, currentColor);
}
.dim-d-bg { background: var(--disc-d); color: white; --dim-glow: var(--disc-d); }
.dim-i-bg { background: var(--disc-i); color: white; --dim-glow: var(--disc-i); }
.dim-s-bg { background: var(--disc-s); color: white; --dim-glow: var(--disc-s); }
.dim-c-bg { background: var(--disc-c); color: white; --dim-glow: var(--disc-c); }
.dim-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 22px;
    font-weight: 500;
    letter-spacing: -0.02em;
    color: white;
    margin: 0 0 10px;
}
.dim-card p {
    font-size: 13.5px;
    line-height: 1.55;
    color: hsl(var(--rise-mid));
    margin: 0;
    font-weight: 300;
}

/* ==================== FORM ==================== */
.form-section {
    border-top: 1px solid hsl(var(--rise-grid));
    padding-bottom: 160px;
}
.form-inner {
    max-width: 640px;
}
.form-inner .landing-form {
    background: transparent;
    padding: 0;
    border: none;
    box-shadow: none;
}
.form-inner .landing-form h3 { display: none; }
.form-inner .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    margin-bottom: 28px;
}
.form-inner .form-row:has(.form-group-full) {
    grid-template-columns: 1fr;
}
.form-inner .form-group { text-align: left; }
.form-inner .form-group label {
    display: block;
    font-family: 'Space Mono', monospace;
    font-size: 10.5px;
    font-weight: 400;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: hsl(var(--rise-mid));
    margin-bottom: 10px;
}
.form-inner .form-group input {
    width: 100%;
    padding: 12px 0 14px;
    background: transparent;
    border: none;
    border-bottom: 1px solid hsl(var(--rise-purple));
    border-radius: 0;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 17px;
    color: white;
    transition: border-color 0.25s;
    outline: none;
}
.form-inner .form-group input::placeholder { color: hsl(var(--rise-mid) / 0.5); }
.form-inner .form-group input:focus { border-bottom-color: hsl(var(--rise-electric)); }

.form-inner .form-consent { margin: 32px 0 24px; }
.form-inner .consent-label {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-size: 13.5px;
    line-height: 1.55;
    color: hsl(var(--rise-smoke));
    cursor: pointer;
}
.form-inner .consent-label input[type="checkbox"] {
    margin-top: 4px;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    accent-color: hsl(var(--rise-electric));
    cursor: pointer;
}
.form-inner .consent-info {
    margin-top: 14px;
    padding: 12px 16px;
    background: hsl(var(--rise-deep));
    border: 1px solid hsl(var(--rise-grid));
    border-left: 2px solid hsl(var(--rise-cyan));
    border-radius: 4px;
    font-size: 12.5px;
    line-height: 1.6;
    color: hsl(var(--rise-mid));
}
.form-inner .btn-primary {
    background: hsl(var(--rise-electric));
    color: white;
    padding: 16px 32px;
    border: none;
    border-radius: 999px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: -0.005em;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(.2,.8,.2,1), box-shadow 0.3s;
    box-shadow: none;
    margin-top: 10px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}
.form-inner .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 40px -8px hsl(var(--rise-electric) / 0.7);
}
.form-inner .btn-primary .btn-arrow {
    display: inline-flex;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255,255,255,0.18);
    align-items: center;
    justify-content: center;
    transition: transform 0.3s, background 0.25s;
}
.form-inner .btn-primary:hover .btn-arrow {
    background: rgba(255,255,255,0.28);
    transform: translateX(4px);
}
.form-inner .duration-note {
    margin-top: 18px;
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: hsl(var(--rise-mid));
}

.form-inner .disclaimer-banner {
    margin-top: 56px;
    padding: 18px 22px;
    background: hsl(var(--rise-deep));
    border: 1px solid hsl(var(--rise-grid));
    border-left: 2px solid hsl(45 100% 60%);
    border-radius: 6px;
    font-size: 12.5px;
    line-height: 1.6;
    color: hsl(var(--rise-mid));
}

/* ==================== Responsive ==================== */
@media (max-width: 900px) {
    .how-cards, .dim-cards { grid-template-columns: repeat(2, 1fr); }
    .hero-chips { grid-template-columns: repeat(3, 1fr); }
    .how-section, .dim-section, .form-section { padding: 80px 24px; }
    .section-heading { margin-bottom: 48px; }
}
@media (max-width: 540px) {
    .hero { padding: 20px 22px 64px; }
    .hero-body { margin-top: 56px; }
    .hero-chips { grid-template-columns: 1fr; border-bottom: none; }
    .chip + .chip { border-left: none; border-top: 1px solid hsl(var(--rise-purple)); padding: 18px 0 18px 0; }
    .chip { padding: 18px 0; }
    .how-cards, .dim-cards { grid-template-columns: 1fr; }
    .form-inner .form-row { grid-template-columns: 1fr; gap: 22px; }
}

/* ============ RESPONSIVE (legacy) ============ */
@media (max-width: 768px) {
    .form-row { grid-template-columns: 1fr; }
    .graphs-row { grid-template-columns: 1fr; }
    .comm-tips-grid { grid-template-columns: 1fr; }
    .fm-details-grid { grid-template-columns: 1fr; }
    .disc-question-card { padding: 20px; }
}

/* ============================================================
   DARK THEME — extension rise.fo aux pages internes
   (quiz DISC, quiz FM, loading, results)
   ============================================================ */

body {
    background: hsl(var(--rise-void));
    color: hsl(var(--rise-smoke));
    font-family: 'Space Grotesk', system-ui, -apple-system, sans-serif;
}

/* ---------- Boutons globaux (dark mode) ---------- */
.btn-primary {
    background: hsl(var(--rise-electric));
    color: white;
    border: none;
    border-radius: 999px;
    padding: 14px 28px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    letter-spacing: -0.005em;
    box-shadow: none;
    transition: transform 0.3s cubic-bezier(.2,.8,.2,1), box-shadow 0.3s;
}
.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 40px -8px hsl(var(--rise-electric) / 0.7);
}
.btn-primary:disabled {
    opacity: 0.35;
    transform: none;
    box-shadow: none;
}
.btn-secondary {
    background: transparent;
    color: hsl(var(--rise-smoke));
    border: 1px solid hsl(var(--rise-purple));
    border-radius: 999px;
    padding: 13px 26px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    transition: color 0.25s, border-color 0.25s, background 0.25s;
}
.btn-secondary:hover {
    color: white;
    border-color: hsl(var(--rise-electric));
    background: hsl(var(--rise-electric) / 0.08);
}
.btn-secondary:disabled {
    opacity: 0.3;
    color: hsl(var(--rise-mid));
}
.btn-large { padding: 16px 36px; font-size: 15px; }

/* ---------- Quiz containers (DISC + FM) ---------- */
.quiz-container {
    padding: 60px 32px 96px;
    max-width: 920px;
    margin: 0 auto;
}
.progress-label {
    color: hsl(var(--rise-smoke));
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 400;
}
.progress-bar {
    background: hsl(var(--rise-grid));
    height: 2px;
    border-radius: 0;
}
.progress-fill {
    background: linear-gradient(90deg, hsl(var(--rise-electric)), hsl(var(--rise-cyan)));
    box-shadow: 0 0 12px hsl(var(--rise-electric) / 0.5);
    border-radius: 0;
}
.quiz-instructions {
    background: hsl(var(--rise-deep));
    border-left: 2px solid hsl(var(--rise-electric));
    color: hsl(var(--rise-smoke));
    border-radius: 0 6px 6px 0;
    padding: 16px 22px;
    font-size: 14px;
    margin-bottom: 32px;
}
.quiz-instructions strong {
    color: white;
    font-weight: 500;
}

/* ---------- DISC question card ---------- */
.disc-question-card {
    background: hsl(var(--rise-deep));
    border: 1px solid hsl(var(--rise-grid));
    border-radius: 14px;
    padding: 36px 32px;
    box-shadow: none;
}
.disc-question-card h3 {
    color: white;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: 20px;
    letter-spacing: -0.01em;
    margin-bottom: 28px;
}
.disc-options-table th {
    color: hsl(var(--rise-mid));
    font-family: 'Space Mono', monospace;
    font-size: 10.5px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-weight: 400;
}
.disc-options-table tr.option-row {
    background: hsl(var(--rise-grid) / 0.4);
    color: hsl(var(--rise-smoke));
    border-radius: 8px;
    transition: background 0.2s, border-color 0.2s;
}
.disc-options-table tr.option-row td {
    color: white;
    font-weight: 500;
    border-radius: 0;
}
.disc-options-table tr.option-row td:first-child {
    padding-left: 22px;
}
.disc-options-table tr.option-row.selected-most td,
.disc-options-table tr.option-row.selected-least td {
    background: transparent;
}
.disc-options-table tr.option-row.selected-most {
    background: rgba(46, 204, 113, 0.18) !important;
    box-shadow: inset 3px 0 0 var(--disc-s);
}
.disc-options-table tr.option-row.selected-most td:first-child {
    color: white;
}
.disc-options-table tr.option-row.selected-least {
    background: rgba(231, 76, 60, 0.18) !important;
    box-shadow: inset 3px 0 0 var(--disc-d);
}
.disc-options-table tr.option-row.selected-least td:first-child {
    color: white;
}
/* Custom radio button accent per state */
.radio-btn.most:checked {
    border-color: var(--disc-s);
    background: var(--disc-s);
    box-shadow: 0 0 10px rgba(46, 204, 113, 0.5);
}
.radio-btn.least:checked {
    border-color: var(--disc-d);
    background: var(--disc-d);
    box-shadow: 0 0 10px rgba(231, 76, 60, 0.5);
}
.disc-options-table tr.option-row:hover {
    background: hsl(var(--rise-purple) / 0.3);
}

/* Custom radio buttons (DISC + FM) */
.radio-btn,
.likert-option input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1.5px solid hsl(var(--rise-purple));
    background: transparent;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    position: relative;
}
.radio-btn:hover,
.likert-option input[type="radio"]:hover {
    border-color: hsl(var(--rise-electric));
}
.radio-btn:checked,
.likert-option input[type="radio"]:checked {
    border-color: hsl(var(--rise-electric));
    background: hsl(var(--rise-electric));
    box-shadow: 0 0 10px hsl(var(--rise-electric) / 0.5);
}
.radio-btn:checked::after,
.likert-option input[type="radio"]:checked::after {
    content: "";
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    background: white;
}
.radio-btn:disabled,
.likert-option input[type="radio"]:disabled {
    opacity: 0.25;
    cursor: not-allowed;
}

/* ---------- FM (Forces Motrices) question card ---------- */
.fm-question-card {
    background: hsl(var(--rise-deep));
    border: 1px solid hsl(var(--rise-grid));
    border-radius: 14px;
    padding: 28px 28px 24px;
    margin-bottom: 18px;
}
.fm-statement {
    color: white;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: 17px;
    letter-spacing: -0.01em;
    line-height: 1.4;
    margin-bottom: 22px;
}
.likert-scale {
    display: flex;
    justify-content: space-between;
    gap: 8px;
}
.likert-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}
.likert-option input[type="radio"] {
    width: 22px;
    height: 22px;
}
.likert-circle {
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    color: hsl(var(--rise-mid));
    letter-spacing: 0.05em;
}
.likert-labels {
    display: flex;
    justify-content: space-between;
    font-family: 'Space Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: hsl(var(--rise-mid));
    margin-top: 14px;
}

/* ---------- Quiz nav ---------- */
.quiz-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 32px;
    gap: 16px;
}

/* ---------- Loading page ---------- */
.loading-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: hsl(var(--rise-smoke));
    text-align: center;
}
.loading-container h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: 28px;
    color: white;
    margin: 32px 0 12px;
    letter-spacing: -0.02em;
}
.loading-container p {
    font-family: 'Space Mono', monospace;
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: hsl(var(--rise-mid));
}
.spinner {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 2px solid hsl(var(--rise-grid));
    border-top-color: hsl(var(--rise-electric));
    border-right-color: hsl(var(--rise-cyan));
    animation: spinner-rotate 1.1s linear infinite;
    box-shadow: 0 0 30px hsl(var(--rise-electric) / 0.3);
}
@keyframes spinner-rotate {
    to { transform: rotate(360deg); }
}

/* ---------- Results page ---------- */
.results-container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 64px 32px 120px;
    color: hsl(var(--rise-smoke));
}
.results-header {
    text-align: left;
    margin-bottom: 56px;
    padding-bottom: 32px;
    border-bottom: 1px solid hsl(var(--rise-grid));
}
.results-header h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: clamp(40px, 6vw, 72px);
    line-height: 1;
    letter-spacing: -0.03em;
    color: white;
    margin-bottom: 14px;
    background: none;
    -webkit-text-fill-color: white;
}
.results-header p {
    color: hsl(var(--rise-mid));
    font-family: 'Space Mono', monospace;
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin: 6px 0 0;
}
.results-header .rise-logo {
    filter: invert(1);
    max-height: 28px;
    margin: 0 0 28px;
}
.email-status {
    text-transform: none !important;
    letter-spacing: 0 !important;
    font-family: 'Space Grotesk', sans-serif !important;
    color: hsl(var(--rise-cyan)) !important;
    font-size: 13px !important;
}

.dominant-banner {
    background: linear-gradient(135deg, hsl(var(--rise-deep)) 0%, hsl(var(--rise-grid)) 100%);
    border: 1px solid hsl(var(--rise-purple));
    border-radius: 16px;
    padding: 32px;
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 56px;
    box-shadow: 0 0 40px -10px hsl(var(--rise-electric) / 0.25);
}
.dominant-color-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.1);
}
.dominant-info h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: 28px;
    color: white;
    letter-spacing: -0.02em;
    margin-bottom: 6px;
}
.dominant-info p {
    color: hsl(var(--rise-mid));
    font-size: 14px;
}

.results-section {
    margin-bottom: 48px;
    padding: 32px;
    background: hsl(var(--rise-deep));
    border: 1px solid hsl(var(--rise-grid));
    border-radius: 14px;
}
body .results-section .section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: 22px;
    letter-spacing: -0.015em;
    color: white;
    border-bottom: 1px solid hsl(var(--rise-grid));
    padding-bottom: 14px;
    margin-bottom: 24px;
}

/* Graphs row + cards */
.graph-card {
    background: hsl(var(--rise-void));
    border: 1px solid hsl(var(--rise-grid));
    border-radius: 10px;
    padding: 20px;
}
.graph-card h3 {
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: hsl(var(--rise-mid));
    margin-bottom: 12px;
    font-weight: 400;
}

/* Description / comm / fm cards */
.description-card {
    color: hsl(var(--rise-smoke));
    line-height: 1.65;
    font-size: 14.5px;
}
.description-card p { margin-bottom: 12px; }
.description-card h3, .description-card h4 {
    color: white;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    letter-spacing: -0.01em;
    margin: 18px 0 10px;
}
.description-card ul { padding-left: 22px; }
.description-card li { margin-bottom: 6px; color: hsl(var(--rise-smoke)); }
.description-card strong { color: white; font-weight: 600; }

.comm-card {
    border-radius: 10px;
    padding: 22px;
    border: 1px solid hsl(var(--rise-grid));
}
.comm-do {
    background: hsl(var(--rise-deep));
    border-left: 3px solid var(--disc-s);
}
.comm-dont {
    background: hsl(var(--rise-deep));
    border-left: 3px solid var(--disc-d);
}
.comm-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.02em;
    color: white;
    margin-bottom: 14px;
}
.comm-card ul { list-style: none; padding: 0; }
.comm-card li {
    padding: 6px 0;
    color: hsl(var(--rise-smoke));
    font-size: 14px;
    line-height: 1.5;
    border-bottom: 1px solid hsl(var(--rise-grid));
}
.comm-card li:last-child { border-bottom: none; }

/* Word map tables */
.word-map-table table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    border: 1px solid hsl(var(--rise-grid));
    border-radius: 8px;
    overflow: hidden;
}
.word-map-table th {
    background: hsl(var(--rise-grid));
    color: white;
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.12em;
    padding: 10px 8px;
    text-transform: uppercase;
}
.word-map-table .col-level { background: hsl(var(--rise-void)); }
.word-map-table .col-d { background: var(--disc-d); }
.word-map-table .col-i { background: var(--disc-i); color: hsl(var(--rise-void)); }
.word-map-table .col-s { background: var(--disc-s); }
.word-map-table .col-c { background: var(--disc-c); }
.word-map-table td {
    padding: 8px 10px;
    color: hsl(var(--rise-smoke));
    font-size: 12.5px;
    border-bottom: 1px solid hsl(var(--rise-grid));
    background: hsl(var(--rise-void));
}
.word-map-table tr.highlighted-row td { background: hsl(var(--rise-electric) / 0.1); }

/* Tendencies table */
.tendencies-table table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid hsl(var(--rise-grid));
    border-radius: 8px;
    overflow: hidden;
}
.tendencies-table th {
    background: hsl(var(--rise-grid));
    color: white;
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 12px;
    text-align: left;
}
.tendencies-table td {
    padding: 14px 12px;
    color: hsl(var(--rise-smoke));
    background: hsl(var(--rise-void));
    border-bottom: 1px solid hsl(var(--rise-grid));
    vertical-align: top;
}
.tendencies-table td strong { color: white; font-weight: 500; }
.tendencies-table td small { color: hsl(var(--rise-mid)) !important; }
.tendency-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.06em;
}

/* Color bars */
.color-bar-row h4 {
    color: hsl(var(--rise-mid));
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin: 16px 0 12px;
    font-weight: 400;
}
.color-bar-item {
    margin-bottom: 12px;
}
.color-bar-label {
    color: hsl(var(--rise-smoke));
    font-size: 13px;
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
}
.color-bar-fill {
    height: 8px;
    border-radius: 4px;
    background: hsl(var(--rise-grid));
}

/* FM details grid */
.fm-detail-card {
    background: hsl(var(--rise-void)) !important;
    border-left-width: 3px !important;
    border-left-style: solid;
    border: 1px solid hsl(var(--rise-grid));
    border-radius: 10px;
    padding: 22px 22px 18px;
}
.fm-detail-card h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: 16px;
    margin-bottom: 6px;
    letter-spacing: -0.01em;
}
.fm-detail-card .fm-score {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: 40px;
    letter-spacing: -0.04em;
    margin-bottom: 4px;
}
.fm-detail-card .fm-rank {
    font-family: 'Space Mono', monospace;
    font-size: 10.5px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: hsl(var(--rise-mid));
    margin-bottom: 10px;
}
.fm-detail-card p {
    color: hsl(var(--rise-smoke));
    font-size: 13px;
    line-height: 1.55;
}

/* Download section */
.download-section {
    background: transparent !important;
    border: none !important;
    padding: 32px 0 0 !important;
    margin-top: 32px;
    border-top: 1px solid hsl(var(--rise-grid)) !important;
    border-radius: 0;
}

/* Color bar track: override legacy white --bg with dark grid */
.color-bar-track {
    background: hsl(var(--rise-grid)) !important;
    height: 10px;
    border-radius: 6px;
}
.color-bar-fill {
    border-radius: 6px;
    height: 100%;
}
.color-bar-label {
    color: white;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 13.5px;
}
.color-bar-label strong { color: white; }
.color-bar-row h4 {
    color: hsl(var(--rise-mid));
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 400;
    margin: 16px 0 12px;
}

/* Word map: keep the table backgrounds uniform on dark, but keep the
   per-cell highlight (the JS sets inline font-weight:700 + background:
   on cells matching the user's level per dimension) in bold white so
   they're scannable. */
.word-map-table tr.highlighted-row td {
    background: hsl(var(--rise-void)) !important;
}
.word-map-table tr td[style*="background"] {
    background: hsl(var(--rise-void)) !important;
}
.word-map-table tr td[style*="font-weight"] {
    background: hsl(var(--rise-void)) !important;
    color: white !important;
    font-weight: 700 !important;
}

/* Charts canvases must scale down inside their card (avoid right overflow) */
.graph-card canvas,
#fmChart,
#ecartsChart {
    max-width: 100%;
    height: auto !important;
    display: block;
}
.graph-card {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Dominant banner: better contrast — softer translucent backdrop instead of
   the JS-set bright yellow filling the whole card. The colored circle alone
   carries the dimension hue. */
.dominant-banner {
    background: hsl(var(--rise-deep)) !important;
    background-image: linear-gradient(135deg, hsl(var(--rise-deep)) 0%, hsl(var(--rise-grid)) 100%) !important;
}
