/* Palette reprise du cahier des charges : crème, vert sauge, terracotta. */
:root {
  --bg: #f7f4ee;
  --bg-alt: #efeae0;
  --surface: #fffdf9;
  --ink: #23221f;
  --ink-soft: #5c5a54;
  --line: #e2dccf;
  --sage: #4f7362;
  --sage-dark: #3b5a4c;
  --terra: #b5573f;
  --terra-dark: #964532;
  --radius: 14px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.65 var(--sans);
}
img { max-width: 100%; display: block; }
a { color: var(--sage-dark); }
a:focus-visible, summary:focus-visible, .btn:focus-visible {
  outline: 3px solid var(--terra);
  outline-offset: 3px;
  border-radius: 6px;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 6vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.3rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 700px) { .wrap { padding: 0 32px; } }
.narrow { max-width: 760px; }
.center { text-align: center; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

/* En-tête */
.site-header { position: sticky; top: 0; z-index: 5; background: rgba(247, 244, 238, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.logo { font-family: var(--serif); font-size: 1.45rem; color: var(--ink); text-decoration: none; letter-spacing: .02em; margin: 0; }
.lang { font-size: .85rem; font-weight: 600; letter-spacing: .08em; text-decoration: none; color: var(--ink-soft); border: 1px solid var(--line); border-radius: 999px; padding: 4px 11px; }
.lang:hover { color: var(--ink); border-color: var(--ink-soft); }

/* Menu : liste dépliable sur mobile, barre horizontale sur grand écran */
.nav-desktop { display: none; margin-left: auto; align-items: center; gap: 28px; }
.nav-desktop ul { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; }
.nav-desktop li a { text-decoration: none; color: var(--ink); font-size: .95rem; }
.nav-desktop li a:hover { color: var(--terra); }
.nav-mobile { margin-left: auto; }
.nav-mobile summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; font-size: .95rem; padding: 8px 4px; }
.nav-mobile summary::-webkit-details-marker { display: none; }
.burger, .burger::before, .burger::after { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; }
.burger::before, .burger::after { content: ""; position: absolute; left: 0; }
.burger::before { top: -6px; }
.burger::after { top: 6px; }
.nav-mobile nav { position: absolute; left: 0; right: 0; top: 64px; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 16px 20px; box-shadow: 0 12px 24px rgba(0,0,0,.06); }
.nav-mobile ul { list-style: none; margin: 0 0 16px; padding: 0; }
.nav-mobile li a { display: block; padding: 12px 0; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--line); }
@media (min-width: 960px) {
  .nav-desktop { display: flex; }
  .nav-mobile { display: none; }
}

/* Boutons */
.btn { display: inline-block; background: var(--terra); color: #fff; text-decoration: none; padding: 13px 24px; border-radius: 999px; font-weight: 600; font-size: .98rem; border: 2px solid var(--terra); transition: background .2s, border-color .2s; text-align: center; }
.btn:hover { background: var(--terra-dark); border-color: var(--terra-dark); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-light { background: #fff; color: var(--sage-dark); border-color: #fff; }
.btn-light:hover { background: var(--bg); border-color: var(--bg); }
.btn-small { padding: 8px 18px; font-size: .9rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
@media (max-width: 480px) { .actions .btn { flex: 1 1 100%; } }
.link { font-weight: 600; text-decoration: none; color: var(--terra); }
.link:hover { text-decoration: underline; }

/* Sections */
.hero { padding: 72px 0 64px; }
@media (min-width: 700px) { .hero { padding: 120px 0 104px; } }
.hero h1 { max-width: 16ch; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 600; color: var(--sage); }
.lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 40ch; }

.section { padding: 64px 0; }
@media (min-width: 700px) { .section { padding: 88px 0; } }
.section.alt { background: var(--bg-alt); }
.section-lead { color: var(--ink-soft); max-width: 56ch; margin-bottom: 36px; }

.cards { display: grid; gap: 18px; margin-top: 28px; }
@media (min-width: 800px) { .cards { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; }
.card p { color: var(--ink-soft); flex: 1; }
.card.plain { background: transparent; border-color: #d6cebd; }
.num { font-family: var(--serif); color: var(--terra); font-size: 1.05rem; margin-bottom: 14px; }
.note { font-size: .88rem; color: var(--ink-soft); margin-top: 28px; }

/* Formation à la une */
.featured-section { background: var(--sage-dark); color: #f3efe6; }
.featured-section a.btn-ghost { color: #fff; border-color: #fff; }
.featured-section a.btn-ghost:hover { background: #fff; color: var(--sage-dark); }
.featured { display: grid; gap: 48px; align-items: center; }
@media (min-width: 900px) { .featured { grid-template-columns: 1.2fr 1fr; } }
.badge { display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: .06em; background: rgba(255,255,255,.12); padding: 6px 14px; border-radius: 999px; }
.checks { list-style: none; padding: 0; margin: 20px 0 0; }
.checks li { padding-left: 30px; position: relative; margin-bottom: 10px; }
.checks li::before { content: ""; position: absolute; left: 4px; top: .45em; width: 12px; height: 7px; border-left: 2px solid #e9b7a6; border-bottom: 2px solid #e9b7a6; transform: rotate(-45deg); }

.mock { background: var(--surface); border-radius: 18px; padding: 18px; max-width: 360px; margin: 0 auto; box-shadow: 0 24px 60px rgba(0,0,0,.25); }
.mock-bar { display: flex; gap: 6px; margin-bottom: 18px; }
.mock-bar span { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.mock-row { height: 10px; border-radius: 6px; background: var(--line); margin-bottom: 10px; width: 55%; }
.mock-row.strong { background: var(--ink); width: 70%; height: 14px; }
.mock-slot { display: flex; align-items: center; gap: 14px; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin-top: 10px; color: var(--ink); }
.mock-slot b { font-weight: 600; font-size: .95rem; }
.mock-slot i { flex: 1; height: 8px; border-radius: 6px; background: var(--bg-alt); }
.mock-slot.on { border-color: var(--terra); background: #fbefe9; }
.mock-slot.on i { background: #efc3b5; }

/* Méthode */
.steps { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 28px; counter-reset: step; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 40px; } }
.steps li { counter-increment: step; border-top: 2px solid var(--sage); padding-top: 20px; }
.steps li::before { content: "0" counter(step); font-family: var(--serif); color: var(--sage); font-size: 1rem; display: block; margin-bottom: 8px; }
.steps p { color: var(--ink-soft); }

/* FAQ */
.faq { margin-top: 28px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 36px 20px 0; position: relative; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font-size: 1.5rem; font-weight: 300; color: var(--terra); }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--ink-soft); padding-right: 36px; }

/* Bandeau contact */
.cta-band { background: var(--terra); color: #fff; }
.cta-band p { opacity: .92; margin-bottom: 28px; }

/* Pied de page */
.site-footer { padding: 56px 0 28px; border-top: 1px solid var(--line); font-size: .95rem; color: var(--ink-soft); }
.footer-inner { display: grid; gap: 28px; }
@media (min-width: 700px) { .footer-inner { grid-template-columns: 1fr auto; } }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 24px; }
.site-footer a { color: var(--ink-soft); text-decoration: none; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; }
.copyright { margin-top: 36px; font-size: .85rem; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* Page formation */
.crumb { font-size: .9rem; margin-bottom: 14px; }
.crumb a { color: var(--ink-soft); text-decoration: none; }
.crumb a::before { content: "← "; }
.badge-terra { background: #f3ddd5; color: var(--terra-dark); }
.course-title { max-width: 22ch; font-size: clamp(2rem, 5.2vw, 3.2rem); }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 24px; margin: 44px 0 0; padding-top: 28px; border-top: 1px solid var(--line); }
@media (min-width: 800px) { .facts { grid-template-columns: repeat(4, 1fr); } }
.facts dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--sage); font-weight: 600; }
.facts dd { margin: 4px 0 0; }
.two-cols { display: grid; gap: 48px; align-items: start; }
@media (min-width: 860px) { .two-cols { grid-template-columns: 1fr 1fr; gap: 64px; } }
.video-placeholder { aspect-ratio: 16 / 9; border-radius: var(--radius); background: linear-gradient(135deg, var(--sage-dark), var(--sage)); color: #f3efe6; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 16px; }
.video-placeholder p { margin: 14px 0 0; font-size: .95rem; opacity: .9; }
.play { width: 64px; height: 64px; border-radius: 50%; background: rgba(255,255,255,.16); position: relative; }
.play::after { content: ""; position: absolute; left: 26px; top: 20px; border-left: 18px solid #fff; border-top: 12px solid transparent; border-bottom: 12px solid transparent; }
.checks.dark li::before { border-color: var(--sage); }
.crosses { list-style: none; padding: 0; margin: 12px 0 0; }
.crosses li { padding-left: 30px; position: relative; margin-bottom: 10px; color: var(--ink-soft); }
.crosses li::before { content: "×"; position: absolute; left: 4px; top: -.1em; color: var(--terra); font-size: 1.3rem; }
.mt { margin-top: 36px; }
.modules { list-style: none; padding: 0; margin: 28px 0 0; counter-reset: mod; }
.modules li { counter-increment: mod; position: relative; padding: 0 0 26px 64px; border-left: 1px solid var(--line); margin-left: 20px; }
.modules li:last-child { border-left-color: transparent; padding-bottom: 0; }
.modules li::before { content: counter(mod); position: absolute; left: -20px; top: -4px; width: 40px; height: 40px; border-radius: 50%; background: var(--surface); border: 1px solid var(--sage); color: var(--sage-dark); font-family: var(--serif); display: grid; place-items: center; }
.modules h3 { font-size: 1.15rem; margin-bottom: .3em; }
.modules p { color: var(--ink-soft); margin: 0; }
.limits { border-left: 3px solid var(--terra); padding: 4px 0 4px 24px; }
.limits p { color: var(--ink-soft); margin: 0; }

/* Formulaires */
.form { display: grid; gap: 8px; margin-top: 28px; }
.form label { font-weight: 600; font-size: .95rem; margin-top: 12px; }
.form input[type=email], .form input[type=text], .form select, .form textarea {
  width: 100%; font: inherit; padding: 13px 14px; border-radius: 10px; border: 1px solid #c9c1b0; background: #fff; color: var(--ink);
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 3px solid #e9b7a6; outline-offset: 1px; border-color: var(--terra); }
.form [aria-invalid=true] { border-color: #e0806a; outline: 2px solid #e0806a; }
.form .consent { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; margin: 18px 0 8px; }
.form .consent input { width: 20px; height: 20px; margin: 3px 0 0; flex: none; accent-color: var(--terra); }
.form button { margin-top: 8px; justify-self: start; cursor: pointer; font: inherit; font-weight: 600; }
@media (max-width: 480px) { .form button { justify-self: stretch; } }
.small { font-size: .85rem; opacity: .85; margin-top: 8px; }
.featured-section .small a { color: #fff; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { border-radius: 12px; padding: 18px 20px; margin-top: 24px; }
.notice p { margin: 0; }
.notice ul { margin: 8px 0 0; padding-left: 20px; }
.notice-title { font-weight: 700; margin-bottom: 4px !important; }
.notice-ok { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.4); }
.notice-err { background: #fbefe9; color: var(--terra-dark); border: 1px solid #efc3b5; }

/* Pages de texte (légal) */
.doc h1 { font-size: clamp(2rem, 5vw, 2.8rem); }
.doc h2 { font-size: 1.35rem; margin-top: 40px; }
.doc p, .doc li { color: var(--ink-soft); }
.doc ul { padding-left: 22px; margin: 0 0 1em; }
.doc li { margin-bottom: 6px; }

/* Page contact */
.contact-grid { display: grid; gap: 40px; align-items: start; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 1fr 1.25fr; gap: 64px; } }
.contact-page h1 { font-size: clamp(2rem, 5vw, 3rem); }
.mini-steps { padding-left: 22px; margin: 28px 0; color: var(--ink-soft); }
.mini-steps li { margin-bottom: 10px; padding-left: 4px; }
.mini-steps li::marker { color: var(--terra); font-family: var(--serif); }
.direct { font-size: .95rem; color: var(--ink-soft); }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 24px 18px; }
@media (min-width: 600px) { .form-card { padding: 36px; } }
.form-card .form { margin-top: 0; }
.form textarea { resize: vertical; }
.row-2 { display: grid; gap: 8px; }
.row-2 > div { display: grid; gap: 8px; }
@media (min-width: 600px) { .row-2 { grid-template-columns: 1fr 1fr; gap: 16px; } }
.notice-ok-light { background: #e8efe9; color: var(--sage-dark); border: 1px solid #c4d6ca; }

/* Pages composées */
.page-hero { padding-bottom: 40px; }
@media (min-width: 700px) { .page-hero { padding: 104px 0 56px; } }
.page-hero h1 { max-width: 20ch; }
@media (min-width: 800px) { .cards-2 { grid-template-columns: repeat(2, 1fr); } }
.card .badge { align-self: flex-start; flex: none; margin-bottom: 14px; }
.card-meta { list-style: none; padding: 0; margin: 0 0 18px; font-size: .92rem; color: var(--ink-soft); }
.card-meta li { padding: 6px 0; border-top: 1px solid var(--line); }
@media (min-width: 800px) { .steps-4 { grid-template-columns: repeat(4, 1fr); gap: 32px; } }
.limits h2 { margin-bottom: .6em; }
.limits p + p { margin-top: 1em; }
[id] { scroll-margin-top: 80px; }

/* Espace élève */
.account-link { font-size: .9rem; color: var(--ink-soft); text-decoration: none; white-space: nowrap; }
.account-link:hover { color: var(--terra); }
.auth-card { margin: 0 auto; max-width: 520px; }
.auth-card h1 { font-size: 1.8rem; }
.code-input { font-size: 1.4rem; letter-spacing: .3em; text-align: center; }
.space-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.space-courses { display: grid; gap: 20px; }
@media (min-width: 900px) { .space-courses { grid-template-columns: repeat(2, 1fr); } }
.space-course h2 { font-size: 1.35rem; }
.progress { height: 8px; border-radius: 999px; background: var(--bg-alt); overflow: hidden; margin: 4px 0 16px; }
.progress span { display: block; height: 100%; background: var(--sage); border-radius: 999px; }
.progress-0 { width: 0%; }
.progress-5 { width: 5%; }
.progress-10 { width: 10%; }
.progress-15 { width: 15%; }
.progress-20 { width: 20%; }
.progress-25 { width: 25%; }
.progress-30 { width: 30%; }
.progress-35 { width: 35%; }
.progress-40 { width: 40%; }
.progress-45 { width: 45%; }
.progress-50 { width: 50%; }
.progress-55 { width: 55%; }
.progress-60 { width: 60%; }
.progress-65 { width: 65%; }
.progress-70 { width: 70%; }
.progress-75 { width: 75%; }
.progress-80 { width: 80%; }
.progress-85 { width: 85%; }
.progress-90 { width: 90%; }
.progress-95 { width: 95%; }
.progress-100 { width: 100%; }
.lesson-grid { display: grid; gap: 32px; }
@media (min-width: 960px) { .lesson-grid { grid-template-columns: 300px 1fr; align-items: start; } }
.lesson-nav { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; font-size: .92rem; }
@media (min-width: 960px) { .lesson-nav { position: sticky; top: 88px; max-height: calc(100vh - 110px); overflow: auto; } }
.lesson-course { font-family: var(--serif); font-size: 1.05rem; margin: 0 0 12px; }
.lesson-module { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--sage); font-weight: 600; margin: 18px 0 6px; }
.lesson-nav ul { list-style: none; margin: 0; padding: 0; }
.lesson-nav li a { display: block; padding: 6px 0 6px 24px; position: relative; color: var(--ink); text-decoration: none; }
.lesson-nav li a::before { content: ""; position: absolute; left: 2px; top: 11px; width: 12px; height: 12px; border: 1.5px solid var(--line); border-radius: 50%; }
.lesson-nav li.is-done a::before { background: var(--sage); border-color: var(--sage); }
.lesson-nav li.is-current a { font-weight: 600; color: var(--terra-dark); }
.lesson-nav li a:hover { color: var(--terra); }
.lesson-main h1 { font-size: clamp(1.6rem, 4vw, 2.3rem); }
.lesson-done { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin: 24px 0; }
.done-mark { margin: 0; color: var(--sage-dark); font-weight: 600; }
.lesson-pager { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 20px; font-size: .95rem; }
/* Mobile : lien de compte dans le menu, leçon avant le programme */
.lesson-grid { grid-template-columns: minmax(0, 1fr); }
.lesson-main { order: -1; }
.nav-mobile .account-link { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); margin-bottom: 16px; color: var(--ink); }
.header-inner > .account-link { display: none; }
@media (min-width: 960px) {
  .lesson-grid { grid-template-columns: 300px minmax(0, 1fr); }
  .lesson-main { order: 0; }
  .header-inner > .account-link { display: inline; }
}
/* Tirer pour recharger (webapp écran d'accueil, voir ptr.js) */
.ptr { position: fixed; top: calc(env(safe-area-inset-top) + 8px); left: 50%; z-index: 20; width: 40px; height: 40px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 4px 14px rgba(0,0,0,.12); display: grid; place-items: center; color: var(--sage-dark); opacity: 0; transform: translate(-50%, -50px); pointer-events: none; }
.ptr-arrow { font-size: 1.1rem; transition: transform .15s; }
.ptr-ready .ptr-arrow { transform: rotate(180deg); }
.ptr-back { transition: transform .2s, opacity .2s; }
.ptr-loading .ptr-arrow { animation: ptr-spin .8s linear infinite; }
.ptr-loading .ptr-arrow::before { content: ""; }
@keyframes ptr-spin { to { transform: rotate(360deg); } }

/* Administration */
.admin-header { background: var(--sage-dark); color: #f3efe6; }
.admin-header a { color: #f3efe6; text-decoration: none; }
.admin-header-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding-top: 12px; padding-bottom: 12px; }
.admin-header .logo { color: #fff; }
.admin-tag { font-family: var(--sans); font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; background: var(--terra); border-radius: 999px; padding: 2px 8px; vertical-align: middle; }
.admin-nav { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .95rem; }
.admin-nav a { opacity: .8; padding: 4px 0; border-bottom: 2px solid transparent; }
.admin-nav a:hover, .admin-nav a[aria-current] { opacity: 1; border-bottom-color: #f3efe6; }
.admin-me { margin-left: auto; font-size: .85rem; opacity: .85; }
.admin-main { padding-top: 32px; padding-bottom: 64px; }
.admin-main h1 { font-size: 2rem; margin-bottom: 20px; }
.admin-main h2 { font-size: 1.2rem; margin-top: 28px; }
.admin-tiles { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-bottom: 12px; }
.admin-tile { display: flex; flex-direction: column; gap: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; text-decoration: none; color: var(--ink); }
.admin-tile:hover { border-color: var(--sage); }
.admin-tile-label { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--sage); font-weight: 600; }
.admin-tile-value { font-family: var(--serif); font-size: 2.4rem; line-height: 1.1; }
.admin-tile-sub { font-size: .85rem; color: var(--ink-soft); }
.admin-cols { display: grid; gap: 8px 40px; }
@media (min-width: 900px) { .admin-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.admin-list { list-style: none; margin: 0; padding: 0; }
.admin-list li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.admin-list .small { color: var(--ink-soft); }
.admin-list .status { margin-left: auto; }
.status { display: inline-block; font-size: .75rem; font-weight: 600; border-radius: 999px; padding: 2px 10px; background: var(--bg-alt); color: var(--ink-soft); white-space: nowrap; }
.status-nouveau { background: #f6dfd6; color: var(--terra-dark); }
.status-a_qualifier { background: #f3ead2; color: #7a5b16; }
.status-devis_envoye { background: #dfe8f1; color: #2f4d6b; }
.status-gagne { background: #dbe8df; color: var(--sage-dark); }
.admin-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.admin-filters a { font-size: .85rem; text-decoration: none; border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; color: var(--ink); }
.admin-filters a[aria-current] { background: var(--sage-dark); border-color: var(--sage-dark); color: #fff; }
.admin-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); margin-top: 16px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.admin-table th { text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); background: var(--bg-alt); padding: 10px 12px; white-space: nowrap; }
.admin-table td { padding: 10px 12px; border-top: 1px solid var(--line); vertical-align: top; }
.admin-table tr.is-muted td { color: var(--ink-soft); opacity: .7; }
.admin-actions { white-space: nowrap; }
.inline-form { display: inline; margin: 0 12px 0 0; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; font-size: .85rem; color: var(--terra-dark); text-decoration: underline; cursor: pointer; }
.link-btn:hover { color: var(--terra); }
.admin-title-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.admin-title-row h1 { margin: 0; }
.admin-dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; margin: 0; }
.admin-dl dt { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--sage); font-weight: 600; padding-top: 3px; }
.admin-dl dd { margin: 0; }
.admin-text { white-space: normal; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; }
.admin-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; margin: 8px 0 8px; }
.admin-box summary { cursor: pointer; font-weight: 600; color: var(--sage-dark); }
.admin-box .form { margin-top: 16px; }
