/* Académie Propulse — UI premium */
:root {
  --ink: #0a1614;
  --ink-soft: #1a2e2a;
  --muted: #5a6f69;
  --line: #d5e0dc;
  --paper: #f3f7f5;
  --card: #ffffff;
  --teal: #0e7c72;
  --teal-deep: #0a5c55;
  --teal-soft: #e6f5f2;
  --amber: #c27803;
  --amber-soft: #fff6e6;
  --ok: #0f766e;
  --danger: #b91c1c;
  --shadow: 0 18px 40px rgba(10, 22, 20, 0.07);
  --radius: 18px;
  --font: "Plus Jakarta Sans", system-ui, sans-serif;
  --display: "Fraunces", Georgia, serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(980px 420px at -8% -10%, rgba(14, 124, 114, 0.14), transparent 55%),
    radial-gradient(720px 360px at 108% 0%, rgba(194, 120, 3, 0.08), transparent 48%),
    linear-gradient(180deg, #f8fbfa 0%, var(--paper) 42%, #e8efec 100%);
}

a { color: var(--teal-deep); }
a:hover:not(.btn) { color: var(--teal); }

.shell { max-width: 1040px; margin: 0 auto; padding: 22px 18px 56px; }
.shell-narrow { max-width: 460px; padding-top: 56px; }
.shell-course { max-width: 1140px; }

/* —— Nav —— */
.app-nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 26px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.brand-logo {
  height: 44px; width: auto; max-width: 150px; object-fit: contain; display: block;
}
.brand-mark {
  width: 42px; height: 42px; border-radius: 14px;
  background: linear-gradient(145deg, #0a5c55, #14a896);
  color: #fff; display: grid; place-items: center;
  font-weight: 800; font-size: 13px; letter-spacing: 0.04em;
  box-shadow: 0 10px 24px rgba(10, 92, 85, 0.28);
}
.brand strong { display: block; font-size: 15px; font-weight: 700; }
.brand span { font-size: 12px; color: var(--muted); font-weight: 500; }
.nav-links { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.nav-links a {
  text-decoration: none; color: var(--muted); font-size: 13px; font-weight: 600;
  padding: 9px 14px; border-radius: 999px; transition: background .15s, color .15s;
}
.nav-links a.is-active,
.nav-links a:hover {
  background: var(--card); color: var(--ink);
  box-shadow: 0 2px 10px rgba(10, 22, 20, 0.06);
}
.nav-links .logout { color: var(--muted); }

/* —— Hero —— */
.hero {
  display: grid; grid-template-columns: 1.35fr 0.85fr; gap: 20px;
  margin-bottom: 20px;
}
@media (max-width: 780px) { .hero { grid-template-columns: 1fr; } }

.hero-main {
  background: linear-gradient(145deg, #062825 0%, #0a5c55 52%, #128f82 100%);
  color: #fff; border-radius: 26px; padding: 30px 28px;
  box-shadow: 0 28px 56px rgba(10, 92, 85, 0.28);
  position: relative; overflow: hidden;
  min-height: 220px;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.hero-main::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(120deg, transparent 40%, rgba(255,255,255,0.06) 100%),
    radial-gradient(circle at 90% 10%, rgba(255,255,255,0.12), transparent 40%);
  pointer-events: none;
}
.hero-main > * { position: relative; z-index: 1; }

.eyebrow {
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  font-weight: 700; opacity: 0.78; margin: 0 0 10px;
}
h1, .display {
  font-family: var(--display);
  font-weight: 650;
  font-size: clamp(1.65rem, 3.2vw, 2.15rem);
  margin: 0 0 10px; line-height: 1.12;
  letter-spacing: -0.02em;
}
.hero-main p {
  margin: 0; opacity: 0.9; line-height: 1.55; font-size: 15px; max-width: 44ch;
}

.ring-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 26px;
  padding: 22px; box-shadow: var(--shadow);
  display: grid; place-items: center; gap: 14px;
}
.ring {
  --p: 0;
  width: 132px; height: 132px; border-radius: 50%;
  background: conic-gradient(var(--teal) calc(var(--p) * 1%), #e2ebe8 0);
  display: grid; place-items: center;
  position: relative;
}
.ring::before {
  content: ""; position: absolute; inset: 10px; border-radius: 50%;
  background: var(--card);
}
.ring-inner {
  position: relative; z-index: 1; text-align: center;
}
.ring-inner strong {
  display: block; font-size: 1.75rem; font-weight: 800; line-height: 1;
  color: var(--ink);
}
.ring-inner span { font-size: 12px; color: var(--muted); font-weight: 600; }
.ring-meta {
  width: 100%; display: grid; gap: 6px; font-size: 13px; color: var(--muted);
}
.ring-meta b { color: var(--ink); font-weight: 700; }

/* —— Stats / panels —— */
.stats-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 18px;
}
@media (max-width: 720px) { .stats-row { grid-template-columns: 1fr 1fr; } }

.stat {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 14px 16px; box-shadow: 0 6px 18px rgba(10, 22, 20, 0.03);
}
.stat small { color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.stat strong { display: block; font-size: 1.4rem; margin-top: 6px; font-weight: 800; }

.panel {
  background: var(--card); border: 1px solid var(--line); border-radius: 22px;
  padding: 22px; margin-bottom: 16px; box-shadow: var(--shadow);
}
.panel-head {
  display: flex; justify-content: space-between; align-items: end;
  gap: 12px; margin-bottom: 16px; flex-wrap: wrap;
}
.panel-head h2 {
  margin: 0; font-family: var(--display); font-size: 1.25rem; font-weight: 650;
}
.panel-head span { font-size: 13px; color: var(--muted); font-weight: 500; }

.cat-bar {
  height: 6px; background: #e8efec; border-radius: 999px; overflow: hidden; margin-bottom: 14px;
}
.cat-bar > i {
  display: block; height: 100%; background: linear-gradient(90deg, var(--teal-deep), #14a896);
  border-radius: 999px;
}

/* —— Modules —— */
.module-list { display: grid; gap: 10px; }
.module-item {
  display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; align-items: center;
  padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px;
  text-decoration: none; color: inherit;
  transition: transform .18s ease, border-color .18s, box-shadow .18s;
  background: #fff;
}
.module-item:hover:not(.is-locked) {
  border-color: #9fd5cc; box-shadow: 0 12px 28px rgba(14, 124, 114, 0.1);
  transform: translateY(-2px);
}
.module-item.is-done { background: #f3faf8; border-color: #b7e2da; }
.module-item.is-locked { opacity: 0.52; cursor: not-allowed; pointer-events: none; }
.module-icon {
  width: 56px; height: 56px; border-radius: 16px;
  background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 24px;
}
.module-item.is-done .module-icon { background: var(--teal-deep); }
.module-body { display: grid; gap: 4px; min-width: 0; }
.module-body strong { font-size: 15px; font-weight: 700; }
.module-body small { color: var(--muted); line-height: 1.45; font-size: 13px; }
.module-side {
  text-align: right; font-size: 12px; color: var(--muted);
  display: grid; gap: 5px; justify-items: end;
}
.chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 9px; border-radius: 999px; font-size: 11px; font-weight: 700;
  background: #eef3f1; color: #334843;
}
.chip.ok { background: #d1fae5; color: #065f46; }
.chip.lock { background: #eef2f1; color: #64748b; }
.chip.xp { background: var(--amber-soft); color: #9a3412; }
.chip.vid { background: var(--teal-soft); color: var(--teal-deep); }

/* —— Badges —— */
.badges { display: flex; flex-wrap: wrap; gap: 8px; }
.badge {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px; border-radius: 14px; border: 1px solid var(--line);
  background: #f7faf9; min-width: 148px;
}
.badge-dot {
  width: 28px; height: 28px; border-radius: 8px;
  background: linear-gradient(135deg, #eab308, #c27803);
  color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 800;
}
.badge strong { display: block; font-size: 13px; }
.badge small { color: var(--muted); font-size: 11px; }

/* —— Course page —— */
.course-grid {
  display: grid; grid-template-columns: 240px 1fr; gap: 20px; align-items: start;
}
@media (max-width: 900px) {
  .course-grid { grid-template-columns: 1fr; }
  .course-toc { position: static !important; }
}
.course-toc {
  position: sticky; top: 16px;
  background: var(--card); border: 1px solid var(--line); border-radius: 20px;
  padding: 16px; box-shadow: var(--shadow);
}
.course-toc h4 {
  margin: 0 0 10px; font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted); font-weight: 700;
}
.course-toc a {
  display: block; text-decoration: none; color: var(--ink-soft); font-size: 13px;
  padding: 8px 10px; border-radius: 10px; margin-bottom: 2px; font-weight: 500;
  transition: background .12s, color .12s;
}
.course-toc a:hover { background: var(--teal-soft); color: var(--teal-deep); }
.course-toc .toc-sec {
  margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--line);
  font-size: 11px; font-weight: 700; color: var(--muted); letter-spacing: 0.08em;
  text-transform: uppercase; padding-left: 10px;
}
.course-meta-line { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }

.video-card {
  background: var(--ink); border-radius: 22px; overflow: hidden; margin-bottom: 16px;
  box-shadow: 0 24px 48px rgba(10, 22, 20, 0.28);
}
.video-frame {
  position: relative; width: 100%; padding-top: 56.25%; background: #000;
}
.video-frame iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
}
.video-caption {
  padding: 14px 18px; color: #c5d4cf; font-size: 13px;
  display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap;
}
.video-caption strong { color: #fff; display: block; font-size: 14px; margin-bottom: 2px; }

.obj-list, .mastery-list {
  margin: 0; padding: 0; list-style: none; display: grid; gap: 8px;
}
.obj-list li, .mastery-list li {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 11px 13px; border-radius: 12px;
  background: var(--teal-soft); border: 1px solid #b7e2da;
  font-size: 14px; line-height: 1.45;
}
.obj-list li::before, .mastery-list li::before {
  content: "✓"; flex-shrink: 0; width: 22px; height: 22px; border-radius: 7px;
  background: var(--teal-deep); color: #fff; display: grid; place-items: center;
  font-size: 12px; font-weight: 800; margin-top: 1px;
}
.mastery-list li {
  background: #f7faf9; border-color: var(--line);
}
.mastery-list li::before {
  content: "◇"; background: var(--ink); font-size: 11px;
}

.section-block { margin-bottom: 8px; }
.section-label {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 8px 0 14px; padding: 6px 12px; border-radius: 999px;
  background: var(--ink); color: #fff; font-size: 12px; font-weight: 700;
  letter-spacing: 0.04em;
}

.lesson { border-top: 1px solid var(--line); padding: 22px 0; }
.lesson:first-of-type { border-top: 0; padding-top: 0; }
.lesson h3 {
  margin: 0 0 12px; font-size: 1.08rem; font-family: var(--display); font-weight: 650;
  display: flex; align-items: flex-start; gap: 10px;
}
.lesson-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 8px; background: var(--ink); color: #fff;
  font-size: 12px; font-weight: 800; flex-shrink: 0; margin-top: 2px;
  font-family: var(--font);
}
.lesson-body {
  color: #2a3d38; line-height: 1.75; white-space: pre-wrap; font-size: 15px;
}
.tip {
  margin-top: 14px; padding: 13px 15px; border-radius: 12px;
  background: var(--amber-soft); border: 1px solid #f5d48a; color: #7c4a03; font-size: 14px;
}

.exercise {
  background: linear-gradient(145deg, #fff8ef, #ffefd6);
  border: 1px solid #f0c987; border-radius: 16px; padding: 18px;
}
.exercise h3 { margin: 0 0 8px; color: #8a4b08; font-size: 1.05rem; font-family: var(--display); }
.exercise .lesson-body { color: #6b3a08; }
.deliverables {
  margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 6px;
}
.deliverables li {
  padding: 9px 12px; border-radius: 10px; background: rgba(255,255,255,0.7);
  border: 1px solid #f0c987; font-size: 13px; font-weight: 600; color: #7c4a03;
}
.deliverables li::before { content: "→ "; }

.resources { display: grid; gap: 8px; }
.resource-link {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line);
  text-decoration: none; color: inherit; background: #fff;
  transition: border-color .15s, background .15s;
}
.resource-link:hover { border-color: #9fd5cc; background: var(--teal-soft); }
.resource-link span { font-size: 12px; color: var(--teal-deep); font-weight: 700; }

/* —— Quiz —— */
.quiz-box {
  margin-top: 8px; padding: 18px; border-radius: 16px;
  background: #f7faf9; border: 1px solid var(--line);
}
.quiz-box h3 { margin: 0 0 12px; }
.q { margin-bottom: 16px; padding: 12px 14px; border-radius: 14px; border: 1px solid transparent; }
.q p { font-weight: 700; margin: 0 0 8px; }
.q.is-wrong {
  border-color: #fecaca;
  background: #fff7f7;
}
.q.is-wrong > p { color: #b91c1c; }
.q.is-unanswered {
  border-color: #f87171;
  background: #fef2f2;
  box-shadow: 0 0 0 1px rgba(185, 28, 28, 0.12);
}
.q.is-unanswered > p { color: #991b1b; }
.q.is-unanswered > p::before {
  content: "Non répondue — ";
  font-weight: 800;
  color: #b91c1c;
}
.q.is-correct {
  border-color: #a7f3d0;
  background: #f0fdf8;
}
.choices { display: grid; gap: 8px; }
.choice {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 11px 13px; border-radius: 12px; border: 1px solid var(--line);
  background: #fff; cursor: pointer; font-size: 14px;
  transition: border-color .12s, background .12s;
}
.choice:has(input:checked) { border-color: var(--teal); background: var(--teal-soft); }
.choice input { margin-top: 3px; }
.quiz-result {
  margin: 12px 0; padding: 14px; border-radius: 12px; font-size: 14px;
}
.quiz-result.pass { background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; }
.quiz-result.fail { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
.q.is-correct > p::after { content: " ✓"; color: #047857; font-weight: 800; }
.q.is-wrong > p::after { content: " ✗"; color: #b91c1c; font-weight: 800; }
.choice.choice-ok { border-color: #6ee7b7; background: #ecfdf5; }
.choice.choice-ko { border-color: #fca5a5; background: #fef2f2; }
.choice.choice-right { border-color: #0f766e; box-shadow: 0 0 0 2px rgba(15, 118, 110, 0.2); }

.quiz-debrief {
  margin: 16px 0 8px;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #f8faf9;
}
.quiz-debrief-head h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
  font-weight: 800;
}
.quiz-debrief-head p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}
.quiz-debrief-list {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: grid;
  gap: 10px;
}
.quiz-debrief-item {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
}
.quiz-debrief-item.is-ok { border-color: #a7f3d0; background: #f0fdf8; }
.quiz-debrief-item.is-ko { border-color: #fecaca; background: #fff7f7; }
.quiz-debrief-item.is-miss { border-color: #f87171; background: #fef2f2; }
.quiz-debrief-item.is-miss .quiz-debrief-q { color: #991b1b; }
.quiz-debrief-q { font-size: 0.92rem; line-height: 1.4; margin-bottom: 8px; }
.quiz-debrief-a {
  font-size: 0.86rem;
  color: var(--ink);
  margin-top: 4px;
  line-height: 1.35;
}
.quiz-debrief-a span { color: var(--muted); font-weight: 600; }
.quiz-debrief-a.is-right { color: #065f46; font-weight: 600; }
.quiz-debrief-a.is-miss-ans { color: #b91c1c; font-weight: 700; }
.quiz-debrief-tip {
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #ecfeff;
  color: #155e75;
  font-size: 0.84rem;
}
button.is-locked,
button:disabled.is-locked {
  opacity: 0.55;
  cursor: not-allowed;
  background: #64748b;
}

/* —— Buttons —— */
button, .btn {
  display: inline-block; margin-top: 12px; width: 100%; border: 0; border-radius: 999px;
  padding: 14px 18px; background: var(--ink); color: #fff; font-weight: 700;
  font-size: 15px; cursor: pointer; text-align: center; text-decoration: none;
  font-family: inherit; transition: background .15s, transform .12s;
}
button:hover, .btn:hover { background: var(--ink-soft); color: #fff; }
.btn-secondary { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn-secondary:hover { background: #f7faf9; color: var(--ink); }
.btn-teal,
a.btn-teal,
a.btn.btn-teal {
  background: var(--teal-deep) !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  display: inline-block; margin-top: 12px; width: 100%; border: 0; border-radius: 999px;
  padding: 14px 18px; font-weight: 700; font-size: 15px; cursor: pointer;
  text-align: center; text-decoration: none; font-family: inherit;
  transition: background .15s, transform .12s;
}
.btn-teal:hover,
.btn-teal:focus,
.btn-teal:active,
a.btn-teal:hover,
a.btn-teal:focus,
a.btn-teal:active,
a.btn.btn-teal:hover,
a.btn.btn-teal:focus,
a.btn.btn-teal:active,
a.btn.btn-teal:visited:hover {
  background: #0e7c72 !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  text-decoration: none !important;
}
.btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 520px) { .btn-row { grid-template-columns: 1fr; } }

/* —— Login —— */
.card-login {
  background: var(--card); border-radius: 24px; padding: 34px 30px;
  box-shadow: var(--shadow); border: 1px solid var(--line);
}
label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 8px; }
input[type="text"], input[type="email"] {
  width: 100%; padding: 14px 16px; border: 1px solid #c5d4cf; border-radius: 12px;
  font-size: 16px; font-family: inherit; background: #fff;
}
input.mono { letter-spacing: 0.08em; font-family: ui-monospace, Menlo, Consolas, monospace; }
input:focus { outline: 2px solid rgba(14, 124, 114, 0.3); border-color: var(--teal); }
.tabs { display: flex; gap: 8px; margin-bottom: 18px; }
.tab {
  flex: 1; margin: 0; width: auto; border-radius: 12px; background: #e4ebe8;
  color: var(--ink); font-size: 13px; padding: 10px 12px;
}
.tab.is-active { background: var(--teal-deep); color: #fff; }
.alert {
  background: #fef2f2; color: #991b1b; border: 1px solid #fecaca;
  border-radius: 12px; padding: 12px 14px; margin-bottom: 16px; font-size: 14px;
}
.ok-box {
  background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46;
  border-radius: 12px; padding: 14px; margin: 12px 0; font-size: 14px;
}
.sub { color: var(--muted); margin: 0 0 18px; line-height: 1.55; }
.meta { font-size: 13px; color: var(--muted); margin-top: 16px; }

/* —— Leaderboard —— */
.board { display: grid; gap: 8px; }
.board-row {
  display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center;
  padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: #fff;
}
.board-row.you { border-color: #9fd5cc; background: var(--teal-soft); box-shadow: 0 0 0 2px rgba(14, 124, 114, 0.1); }
.rank {
  width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center;
  font-weight: 800; background: var(--ink); color: #fff; font-size: 13px;
}
.board-row:nth-child(1) .rank { background: linear-gradient(135deg, #eab308, #c27803); }
.board-row:nth-child(2) .rank { background: #64748b; }
.board-row:nth-child(3) .rank { background: #b45309; }
.board-name strong { display: block; font-size: 14px; }
.board-name small { color: var(--muted); font-size: 12px; }
.board-pts { font-weight: 800; color: var(--teal-deep); }

/* —— Toast —— */
.toast-xp {
  position: fixed; bottom: 24px; right: 24px; z-index: 50;
  background: var(--ink); color: #fff; padding: 14px 18px; border-radius: 16px;
  box-shadow: 0 16px 40px rgba(0,0,0,.25); font-weight: 700;
  animation: pop .45s ease-out, fadeout .4s ease-in 2.4s forwards;
}
.toast-xp span { color: #fbbf24; }
@keyframes pop {
  from { transform: translateY(16px) scale(.96); opacity: 0; }
  to { transform: none; opacity: 1; }
}
@keyframes fadeout { to { opacity: 0; transform: translateY(8px); } }

.progress-wrap { margin-bottom: 4px; }
.progress-label { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 8px; color: var(--muted); }
.progress-bar { height: 10px; background: #e2ebe8; border-radius: 999px; overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--teal-deep), #14a896); }

/* —— Ressources CV / modèles —— */
.cv-nav {
  display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 20px;
}
.cv-nav a {
  text-decoration: none; font-size: 13px; font-weight: 700;
  padding: 8px 12px; border-radius: 999px; background: var(--teal-soft);
  color: var(--teal-deep); border: 1px solid #9fd5cc;
}
.cv-nav a:hover { background: #d8f0eb; }
.cv-sheet {
  margin: 0 0 18px; padding: 18px 18px 14px; border-radius: 18px;
  border: 1px solid var(--line); background: #fff;
  box-shadow: 0 10px 28px rgba(10, 22, 20, 0.04);
}
.cv-sheet-head { margin-bottom: 12px; }
.cv-sheet-tag {
  margin: 0 0 6px; font-size: 11px; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; color: var(--teal-deep);
}
.cv-sheet h3 {
  margin: 0; font-family: var(--display); font-size: 1.15rem; font-weight: 650;
}
.cv-model {
  margin: 0; padding: 16px 18px; border-radius: 14px;
  background: #f7faf9; border: 1px solid #d5e0dc;
  font-family: "Consolas", "Courier New", monospace; font-size: 13px;
  line-height: 1.55; white-space: pre-wrap; overflow-x: auto; color: var(--ink);
}
.cv-hint {
  margin: 10px 0 0; font-size: 13px; color: var(--muted);
}

/* —— Services premium —— */
.svc-hero {
  background: linear-gradient(145deg, #062825 0%, #0a5c55 55%, #128f82 100%);
  color: #fff; border-radius: 26px; padding: 28px 26px; margin-bottom: 18px;
  box-shadow: 0 24px 48px rgba(10, 92, 85, 0.26);
  position: relative; overflow: hidden;
}
.svc-hero::after {
  content: ""; position: absolute; right: -40px; top: -40px; width: 180px; height: 180px;
  border-radius: 50%; background: rgba(255,255,255,0.08); pointer-events: none;
}
.svc-hero > * { position: relative; z-index: 1; }
.svc-hero h1 { color: #fff; margin-bottom: 8px; }
.svc-hero p { margin: 0; max-width: 48ch; opacity: .92; line-height: 1.55; font-size: 15px; }

.svc-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 18px;
}
@media (max-width: 820px) { .svc-grid { grid-template-columns: 1fr; } }

.svc-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 20px;
  padding: 18px 18px 16px; box-shadow: 0 10px 28px rgba(10, 22, 20, 0.04);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.svc-card:hover {
  transform: translateY(-2px);
  border-color: #9fd5cc;
  box-shadow: 0 14px 32px rgba(10, 92, 85, 0.1);
}
.svc-card-tag {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--teal-deep); background: var(--teal-soft);
  padding: 5px 9px; border-radius: 999px; margin-bottom: 12px;
}
.svc-card h2 {
  margin: 0 0 8px; font-family: var(--display); font-size: 1.15rem; font-weight: 650;
}
.svc-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }

.svc-form-panel { border-color: #c5ddd7; }
.svc-form { display: grid; gap: 14px; max-width: 560px; }
.svc-field label {
  display: block; font-size: 13px; font-weight: 700; margin-bottom: 7px; color: var(--ink-soft);
}
.svc-field select,
.svc-field input[type="text"],
.svc-field input:not([type]),
.svc-field textarea {
  width: 100%; padding: 13px 14px; border-radius: 14px; border: 1px solid var(--line);
  font: inherit; background: #fff; color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
.svc-field select:focus,
.svc-field input:focus,
.svc-field textarea:focus {
  outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(14, 124, 114, 0.15);
}
.svc-req {
  font-weight: 600; color: var(--amber); font-size: 11px; letter-spacing: 0;
  text-transform: none; margin-left: 6px;
}
.svc-file { display: block; cursor: pointer; }
.svc-file input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.svc-file-ui {
  display: flex; flex-direction: column; gap: 4px;
  padding: 16px 18px; border-radius: 14px; border: 1.5px dashed #9fd5cc;
  background: linear-gradient(180deg, #f7fcfb, #eef8f5); transition: border-color .15s, background .15s;
}
.svc-file:hover .svc-file-ui,
.svc-file:focus-within .svc-file-ui {
  border-color: var(--teal); background: var(--teal-soft);
}
.svc-file-ui strong { font-size: 14px; color: var(--teal-deep); }
.svc-file-ui em { font-style: normal; font-size: 12px; color: var(--muted); }
.svc-submit { width: auto; max-width: 280px; margin-top: 4px; padding: 13px 22px; }

.svc-requests { display: grid; gap: 0; }
.svc-request {
  padding: 14px 0; border-top: 1px solid var(--line);
}
.svc-request:first-child { border-top: 0; padding-top: 0; }
.svc-request-meta {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px;
}

/* Quiz lock modal (5 fails → 24h) */
.quiz-lock-modal {
  position: fixed; inset: 0; z-index: 80;
  display: flex; align-items: center; justify-content: center;
  padding: 20px; background: rgba(8, 28, 26, 0.55);
}
.quiz-lock-modal[hidden] { display: none !important; }
.quiz-lock-card {
  width: min(420px, 100%);
  background: #fff; border-radius: 16px; padding: 24px 22px;
  box-shadow: 0 20px 50px rgba(0,0,0,.25);
  text-align: center;
}
.quiz-lock-card h3 { margin: 0 0 10px; font-size: 1.25rem; color: #0a1614; }
.quiz-lock-card p { margin: 0 0 18px; color: #3d524e; line-height: 1.45; }
.quiz-lock-card .btn-teal { width: auto; min-width: 140px; margin: 0 auto; }

/* Liens-boutons : jamais de texte vert au survol */
a.btn,
a.btn:link,
a.btn:visited,
a.btn:hover,
a.btn:focus,
a.btn:active {
  text-decoration: none !important;
}
a.btn.btn-teal,
a.btn.btn-teal:link,
a.btn.btn-teal:visited,
a.btn.btn-teal:hover,
a.btn.btn-teal:focus,
a.btn.btn-teal:active {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}
a.btn.btn-secondary,
a.btn.btn-secondary:link,
a.btn.btn-secondary:visited,
a.btn.btn-secondary:hover,
a.btn.btn-secondary:focus,
a.btn.btn-secondary:active {
  color: var(--ink) !important;
  -webkit-text-fill-color: var(--ink) !important;
}
