/* ---------------------------------------------------------------
   Daily Élévation — MVP diagnostic
   Direction artistique : fond noir, vert lumineux, typo premium.
   --------------------------------------------------------------- */

:root {
  --bg: #060706;
  --bg-elevated: #0f110f;
  --card: #141613;
  --card-border: rgba(255, 255, 255, 0.08);
  --green: #9EFF3B;
  --green-dim: rgba(158, 255, 59, 0.14);
  --white: #f5f6f3;
  --gray: #9a9d97;
  --gray-dim: #6b6e67;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-pill: 999px;
  --max-width: 480px;
  font-size: 16px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--white);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button {
  font-family: inherit;
}

.app-shell {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  background: radial-gradient(circle at 50% -10%, rgba(158, 255, 59, 0.08), transparent 55%);
}

.screen {
  display: none;
  width: 100%;
  max-width: var(--max-width);
  min-height: 100vh;
  padding: 28px 20px 40px;
  flex-direction: column;
}

.screen.active {
  display: flex;
}

/* ---------------- Shared components ---------------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray);
}

.top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}

h1 {
  font-size: 30px;
  line-height: 1.15;
  font-weight: 800;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}

h1 .accent {
  color: var(--green);
}

.subtitle {
  color: var(--gray);
  font-size: 15px;
  line-height: 1.5;
  margin: 0 0 20px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 17px 20px;
  background: var(--green);
  color: #0a0d08;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.02em;
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  box-shadow: 0 0 28px rgba(158, 255, 59, 0.25);
  text-decoration: none;
  text-align: center;
}

.btn-primary:hover {
  filter: brightness(1.05);
}

.btn-primary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  box-shadow: none;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  font-weight: 700;
  font-size: 14px;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-pill);
  cursor: pointer;
}

.btn-secondary.completed {
  background: var(--green-dim);
  color: var(--green);
  border-color: transparent;
}

.helper-text {
  text-align: center;
  color: var(--gray-dim);
  font-size: 12px;
  margin-top: 12px;
}

.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.hidden {
  display: none !important;
}

.btn-restart {
  background: none;
  border: none;
  color: var(--gray-dim);
  font-size: 13px;
  text-decoration: underline;
  cursor: pointer;
  margin-top: 18px;
  align-self: center;
}

/* ---------------- HOME ---------------- */

#screen-home {
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 8px;
}

.home-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--gray);
  margin-bottom: 40px;
}

.home-logo .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
}

.beta-tag {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green);
  background: var(--green-dim);
  padding: 2px 6px;
  border-radius: var(--radius-pill);
}

.home-visual {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 1px solid rgba(158, 255, 59, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 32px;
  position: relative;
  background: radial-gradient(circle, rgba(158,255,59,0.12), transparent 70%);
}

.home-visual::before {
  content: "";
  position: absolute;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 1px dashed rgba(158, 255, 59, 0.25);
}

.home-visual .core {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 24px 6px rgba(158, 255, 59, 0.6);
}

#screen-home h1 {
  text-align: center;
  font-size: 32px;
}

#screen-home .subtitle {
  text-align: center;
}

.home-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  color: var(--gray);
  font-size: 13px;
  margin-bottom: 24px;
}

.home-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.home-meta span:not(:last-child)::after {
  content: "·";
  margin-left: 14px;
  color: var(--gray-dim);
}

.home-cta-wrap {
  width: 100%;
  margin-top: auto;
}

/* ---------------- GOAL / OPTION CARDS ---------------- */

.step-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--gray-dim);
  text-transform: uppercase;
}

#goal-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.option-card {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  text-align: left;
  padding: 16px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  color: var(--white);
}

.option-card:hover {
  border-color: rgba(158, 255, 59, 0.35);
}

.option-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.option-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.option-title {
  font-weight: 700;
  font-size: 15px;
}

.option-subtitle {
  font-size: 12.5px;
  color: var(--gray);
  line-height: 1.4;
}

.option-arrow {
  color: var(--gray-dim);
}

.footnote {
  text-align: center;
  color: var(--gray-dim);
  font-size: 12px;
  margin-top: 18px;
}

/* ---------------- PERSONAL GOAL ---------------- */

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--green-dim);
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 16px;
  width: fit-content;
}

#personal-goal-input {
  width: 100%;
  min-height: 100px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  color: var(--white);
  font-size: 15px;
  padding: 16px;
  font-family: inherit;
  resize: vertical;
  margin-bottom: 18px;
}

#personal-goal-input:focus {
  outline: none;
  border-color: var(--green);
}

.examples-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-dim);
  margin-bottom: 10px;
}

#personal-goal-examples {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 28px;
}

.example-chip {
  text-align: left;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-border);
  color: var(--gray);
  padding: 10px 14px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  cursor: pointer;
}

.example-chip:hover {
  color: var(--white);
  border-color: rgba(158, 255, 59, 0.35);
}

.personal-goal-cta {
  margin-top: auto;
}

/* ---------------- QUESTIONS ---------------- */

.progress-bar {
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  margin-bottom: 28px;
}

.progress-bar-fill {
  height: 100%;
  background: var(--green);
  border-radius: 2px;
  transition: width 0.3s ease;
}

#question-text {
  font-size: 21px;
  font-weight: 800;
  line-height: 1.3;
  margin: 0 0 22px;
}

#question-answers {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.answer-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 15px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  color: var(--white);
  cursor: pointer;
  font-size: 14.5px;
  line-height: 1.4;
}

.answer-option:hover {
  border-color: rgba(158, 255, 59, 0.35);
}

.answer-option.selected {
  border-color: var(--green);
  background: var(--green-dim);
}

.answer-letter {
  width: 24px;
  height: 24px;
  min-width: 24px;
  border-radius: 50%;
  background: rgba(158, 255, 59, 0.16);
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

/* ---------------- ANALYSIS ---------------- */

#screen-analysis {
  justify-content: center;
  align-items: center;
  text-align: center;
}

.analysis-ring {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 1px solid rgba(158, 255, 59, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 28px;
  background: radial-gradient(circle, rgba(158,255,59,0.14), transparent 70%);
  animation: pulse 1.8s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 rgba(158,255,59,0); }
  50% { box-shadow: 0 0 40px rgba(158,255,59,0.25); }
}

.analysis-ring .dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 20px 6px rgba(158, 255, 59, 0.55);
}

#screen-analysis h2 {
  font-size: 20px;
  font-weight: 800;
  margin: 0 0 24px;
}

#analysis-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
  text-align: left;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

#analysis-steps li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  color: var(--gray-dim);
  font-size: 13.5px;
  border-bottom: 1px solid var(--card-border);
}

#analysis-steps li:last-child {
  border-bottom: none;
}

#analysis-steps li::before {
  content: "○";
  color: var(--gray-dim);
}

#analysis-steps li.done {
  color: var(--white);
}

#analysis-steps li.done::before {
  content: "✓";
  color: var(--green);
}

/* ---------------- PROFILE ---------------- */

.profile-header {
  text-align: center;
  margin-bottom: 24px;
}

#profile-emoji {
  font-size: 38px;
  display: block;
  margin-bottom: 8px;
  opacity: 0.9;
}

#profile-name {
  font-size: 29px;
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

#profile-tagline {
  color: var(--gray);
  font-size: 14.5px;
  line-height: 1.55;
  margin: 0;
}

.profile-card {
  margin-bottom: 14px;
}

.profile-card .label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-dim);
  margin-bottom: 8px;
  display: block;
}

.profile-card .value-text {
  color: var(--gray);
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}

.profile-signature {
  text-align: center;
  font-size: 13px;
  font-style: italic;
  color: var(--gray-dim);
  margin: 4px 0 0;
}

.trap-card {
  border-color: rgba(158, 255, 59, 0.35);
  background: linear-gradient(180deg, rgba(158, 255, 59, 0.06), rgba(20, 22, 19, 1));
}

.trap-text {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.45;
  margin: 0;
}

.plan-transition {
  text-align: center;
  margin: 26px 0 18px;
  padding: 0 4px;
}

.transition-line {
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.4;
  margin: 0 0 10px;
}

.transition-line strong {
  color: var(--green);
}

.transition-sub {
  font-size: 13.5px;
  color: var(--gray);
  line-height: 1.5;
  margin: 0;
}

.profile-cta {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ---------------- PLAN PREVIEW ---------------- */

.plan-hero {
  text-align: center;
  margin-bottom: 22px;
}

.plan-hero h1 {
  font-size: 25px;
  text-align: center;
}

.plan-summary {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.plan-summary .card {
  flex: 1;
  text-align: center;
  padding: 14px 10px;
}

.plan-summary .label {
  font-size: 10.5px;
  color: var(--gray-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: block;
  margin-bottom: 6px;
}

.priority-card {
  margin-top: 4px;
  border-color: rgba(158, 255, 59, 0.3);
  background: linear-gradient(180deg, rgba(158, 255, 59, 0.06), rgba(20, 22, 19, 1));
}

.priority-text {
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.4;
  margin: 0;
}

.plan-days-section {
  margin-top: 28px;
}

.plan-days-section h2 {
  font-size: 19px;
  font-weight: 800;
  margin: 0 0 4px;
}

.plan-days-section .subtitle {
  margin: 0 0 14px;
  font-size: 13px;
}

#plan-days {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.day-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 16px;
}

.day-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.day-number {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--green);
}

.day-action {
  font-size: 13.5px;
  color: var(--white);
  line-height: 1.55;
  margin: 0;
}

.day-duration-value {
  font-size: 12px;
  font-weight: 700;
  color: var(--green);
  background: var(--green-dim);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}

/* Divulgation progressive : "Détails" / "Pourquoi" — repliés par défaut,
   ouvrables indépendamment (voir initPlanDaysAccordion dans js/app.js). */
.day-accordion {
  margin-top: 10px;
}

.day-accordion-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  font-family: inherit;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-dim);
  background: none;
  border: none;
  border-top: 1px solid var(--card-border);
  padding: 10px 0;
  cursor: pointer;
  text-align: left;
}

.day-accordion-toggle:hover {
  color: var(--gray);
}

.day-accordion-chevron {
  display: inline-block;
  font-size: 12px;
  line-height: 1;
  transition: transform 0.2s ease;
}

.day-accordion-toggle[aria-expanded="true"] .day-accordion-chevron {
  transform: rotate(180deg);
}

.day-accordion-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.2s ease;
}

.day-accordion-panel.open {
  grid-template-rows: 1fr;
}

.day-accordion-panel-inner {
  overflow: hidden;
  min-height: 0;
}

.day-accordion-panel-inner p {
  font-size: 12.5px;
  color: var(--gray);
  line-height: 1.5;
  margin: 0;
  padding-bottom: 2px;
}

.day-details-list {
  margin: 0;
  padding: 0 0 2px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.day-details-list li {
  font-size: 12.5px;
  color: var(--gray);
  line-height: 1.5;
}

.plan-principles-section {
  margin-top: 28px;
}

.plan-principles-section > .label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-dim);
  margin-bottom: 10px;
  display: block;
}

#plan-principles {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.principle-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  line-height: 1.4;
}

.plan-conversion {
  margin-top: 30px;
  background: var(--bg-elevated);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  text-align: center;
}

.plan-conversion h2 {
  font-size: 19px;
  font-weight: 800;
  margin: 0 0 12px;
}

.plan-conversion .eyebrow {
  display: block;
  margin-bottom: 10px;
}

.plan-conversion p {
  font-size: 13.5px;
  color: var(--gray);
  line-height: 1.55;
  margin: 0 0 16px;
}

.conversion-highlight {
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.6;
  margin: 0 0 20px !important;
}

.plan-conversion .btn-primary {
  width: 100%;
}

/* ---------------- Responsive ---------------- */

@media (min-width: 560px) {
  .screen {
    min-height: auto;
    margin: 32px 0;
    border-radius: 28px;
    border: 1px solid var(--card-border);
    background: var(--bg-elevated);
  }
}

/* ================================================================
   MODE TEST DÉVELOPPEUR (?test=profiles) — bloc isolé, à supprimer
   avec la section #dev-test-panel (index.html) et initDevTestPanel
   (js/app.js) quand ce mode ne sera plus nécessaire.
   ================================================================ */

.dev-test-panel {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.dev-test-panel.hidden {
  display: none;
}

.dev-test-toggle {
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #0a0d08;
  background: #ffb020;
  border: none;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.dev-test-list {
  width: 280px;
  max-height: 60vh;
  overflow-y: auto;
  background: #17140c;
  border: 1px solid rgba(255, 176, 32, 0.35);
  border-radius: var(--radius-md);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.dev-test-list.hidden {
  display: none;
}

.dev-test-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 13px;
  color: var(--white);
}

.dev-test-btn {
  font-family: inherit;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #0a0d08;
  background: #ffb020;
  border: none;
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  white-space: nowrap;
}

/* ================================================================
   JOURS VERROUILLÉS (bêta) — bloc "Jours 6 à 30 verrouillés".
   ================================================================ */

.locked-days-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed var(--card-border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin: 20px 0;
}

.lock-icon {
  font-size: 18px;
  line-height: 1;
}

.locked-days-title {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--gray);
  margin-bottom: 4px;
}

.locked-days-text {
  font-size: 12px;
  color: var(--gray-dim);
  line-height: 1.5;
  margin: 0;
}
