:root {
  --purple: #4B2E83;
  --purple-dark: #37215F;
  --purple-light: #6B3FA0;
  --navy: #16214A;
  --green: #1E8E3E;
  --red: #C62828;
  --bg: #FFFFFF;
  --bg-soft: #F5F3FA;
  --bg-navy: #101a38;
  --text: #1F2430;
  --muted: #5B6472;
  --border: #E4E0F0;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(27, 16, 63, 0.10);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--navy);
  text-decoration: none;
}
.brand .rocket { font-size: 1.2rem; }
.brand .logo-img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--purple-light);
}
.nav-links {
  display: flex;
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  text-decoration: none;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.95rem;
}
.nav-links a:hover { color: var(--purple); }
.nav-cta { display: flex; gap: 10px; align-items: center; }
.nav-toggle { display: none; }

@media (max-width: 760px) {
  .nav-links { display: none; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--purple-light), var(--purple));
  color: #fff;
  box-shadow: 0 8px 20px rgba(75,46,131,0.35);
}
.btn-primary:hover { box-shadow: 0 12px 26px rgba(75,46,131,0.45); }
.btn-secondary {
  background: #fff;
  color: var(--navy);
  border-color: var(--border);
}
.btn-secondary:hover { border-color: var(--purple); color: var(--purple); }
.btn-outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.55);
}
.btn-outline-light:hover { background: rgba(255,255,255,0.12); }
.btn-block { width: 100%; }
.btn-sm { padding: 9px 16px; font-size: 0.85rem; }

/* Hero */
.hero {
  background: radial-gradient(1100px 500px at 50% -10%, rgba(107,63,160,0.18), transparent),
              linear-gradient(180deg, #ffffff, var(--bg-soft));
  padding: 68px 0 60px;
  text-align: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--purple);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
  box-shadow: var(--shadow);
}
.hero h1 {
  font-size: clamp(1.9rem, 4.2vw, 3rem);
  line-height: 1.15;
  margin: 0 0 16px;
  color: var(--navy);
  font-weight: 800;
}
.hero h1 .accent { color: var(--purple); }
.hero p.lead {
  max-width: 640px;
  margin: 0 auto 30px;
  font-size: 1.1rem;
  color: var(--muted);
}
.hero-ctas {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.hero-note {
  font-size: 0.85rem;
  color: var(--muted);
}

/* Sections */
section { padding: 70px 0; }
.section-soft { background: var(--bg-soft); }
.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 44px;
}
.section-head .tag {
  color: var(--purple);
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.section-head h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  color: var(--navy);
  margin: 8px 0 10px;
  font-weight: 800;
}
.section-head p { color: var(--muted); margin: 0; }

/* Grids / cards */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.card h3 {
  color: var(--navy);
  margin: 0 0 12px;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.card ul { margin: 0; padding-left: 1.1em; color: var(--muted); }
.card ul li { margin-bottom: 6px; }
.icon-badge {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  background: var(--bg-soft);
  flex-shrink: 0;
}

/* Public checklist */
.check-list { list-style: none; margin: 0; padding: 0; }
.check-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 10px;
  color: var(--text);
}
.check-list li::before {
  content: "✓";
  color: var(--green);
  font-weight: 800;
  flex-shrink: 0;
}

/* Pricing */
.price-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  text-align: center;
}
.price-card.featured {
  border: 2px solid var(--purple);
  transform: translateY(-6px);
}
.price-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--red);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 5px 14px;
  border-radius: 999px;
  white-space: nowrap;
}
.price-card h3 { color: var(--navy); margin: 6px 0 4px; font-size: 1.1rem; }
.price-card .price {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--purple);
  margin: 10px 0 2px;
}
.price-card .price small { font-size: 1rem; color: var(--muted); font-weight: 600; }
.price-card .old-price {
  color: var(--muted);
  text-decoration: line-through;
  font-size: 0.95rem;
}
.price-card ul {
  list-style: none;
  padding: 0;
  margin: 18px 0 22px;
  text-align: left;
  color: var(--muted);
  flex-grow: 1;
}
.price-card ul li {
  padding: 6px 0;
  border-bottom: 1px dashed var(--border);
}
.price-card ul li:last-child { border-bottom: none; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  text-align: center;
}
.step .num {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--purple);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  margin-bottom: 12px;
}
.step h4 { margin: 0 0 6px; color: var(--navy); font-size: 1rem; }
.step p { margin: 0; color: var(--muted); font-size: 0.9rem; }

/* CTA banner */
.cta-banner {
  background: linear-gradient(135deg, var(--navy), var(--purple-dark));
  color: #fff;
  border-radius: 20px;
  padding: 50px 34px;
  text-align: center;
}
.cta-banner h2 { margin: 0 0 12px; font-size: clamp(1.4rem, 3vw, 2rem); }
.cta-banner p { color: rgba(255,255,255,0.82); max-width: 560px; margin: 0 auto 26px; }

/* FAQ */
.faq-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
  background: #fff;
}
.faq-item summary {
  padding: 16px 20px;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--purple); font-size: 1.3rem; }
.faq-item[open] summary::after { content: "−"; }
.faq-item .faq-body { padding: 0 20px 18px; color: var(--muted); }

/* Footer */
.site-footer {
  background: var(--bg-navy);
  color: rgba(255,255,255,0.75);
  padding: 46px 0 30px;
  font-size: 0.9rem;
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.footer-grid .brand { color: #fff; }
.footer-note {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 18px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
}
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; }

.badge-pill {
  display: inline-block;
  background: var(--bg-soft);
  color: var(--purple);
  font-weight: 700;
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}

/* ---- Espace privé : passcode gate ---- */
.gate-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, var(--navy), var(--purple-dark));
  padding: 20px;
}
.gate-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 40px 32px;
  max-width: 400px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
}
.gate-card .lock { font-size: 2rem; margin-bottom: 10px; }
.gate-card h1 { font-size: 1.3rem; color: var(--navy); margin: 0 0 8px; }
.gate-card p { color: var(--muted); font-size: 0.9rem; margin: 0 0 20px; }
.gate-card input[type="text"], .gate-card input[type="password"] {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 1rem;
  margin-bottom: 12px;
  text-align: center;
  letter-spacing: 0.04em;
}
.gate-card input:focus { outline: 2px solid var(--purple-light); }
.gate-error {
  color: var(--red);
  font-size: 0.85rem;
  min-height: 18px;
  margin-bottom: 8px;
}
.gate-help {
  margin-top: 18px;
  font-size: 0.8rem;
  color: var(--muted);
}
.gate-help a { color: var(--purple); font-weight: 600; }

/* ---- Espace privé : layout ---- */
.private-hidden { display: none !important; }
.private-header {
  background: var(--navy);
  color: #fff;
  padding: 16px 0;
}
.private-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.private-header .brand { color: #fff; }
.tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 26px 0 34px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 14px;
}
.tab-btn {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  color: var(--navy);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 10px 18px;
  border-radius: 999px;
  cursor: pointer;
}
.tab-btn.active {
  background: var(--purple);
  color: #fff;
  border-color: var(--purple);
}
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.quiz-panel { display: none; }
.quiz-panel.active { display: block; }

.module {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
}
.module summary {
  padding: 16px 20px;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
}
.module summary::-webkit-details-marker { display: none; }
.module summary .m-num {
  background: var(--bg-soft);
  color: var(--purple);
  font-size: 0.8rem;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 999px;
}
.module .m-body { padding: 0 20px 20px 20px; color: var(--text); }
.module .m-body ul { padding-left: 1.1em; color: var(--muted); }
.module .m-body p { color: var(--muted); }
.module pre {
  background: #14172b;
  color: #d7e0ff;
  padding: 14px 16px;
  border-radius: 10px;
  overflow-x: auto;
  font-size: 0.85rem;
  line-height: 1.5;
}
.module code { font-family: "SFMono-Regular", Consolas, Menlo, monospace; }
.inline-code {
  background: var(--bg-soft);
  padding: 2px 6px;
  border-radius: 6px;
  font-family: Consolas, Menlo, monospace;
  font-size: 0.85em;
}
.module table {
  width: 100%;
  border-collapse: collapse;
  margin: 10px 0;
  font-size: 0.9rem;
}
.module table th, .module table td {
  border: 1px solid var(--border);
  padding: 8px 10px;
  text-align: left;
}
.module table th { background: var(--bg-soft); color: var(--navy); }

.fiche-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  margin-bottom: 22px;
  box-shadow: var(--shadow);
}
.fiche-card h3 { color: var(--navy); margin: 0 0 6px; }
.fiche-card .fiche-desc { color: var(--muted); font-size: 0.88rem; margin: 0 0 16px; }
.fiche-field { margin-bottom: 14px; }
.fiche-field label {
  display: block;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--navy);
  margin-bottom: 6px;
}
.fiche-field input[type="text"], .fiche-field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.92rem;
  font-family: inherit;
  resize: vertical;
}
.fiche-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.save-hint { font-size: 0.8rem; color: var(--green); min-height: 16px; }

/* ---- Quiz ---- */
.quiz-question {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}
.quiz-question.correct { border-color: var(--green); background: #F2FBF4; }
.quiz-question.incorrect { border-color: var(--red); background: #FDF2F2; }
.quiz-question .q-title {
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 14px;
  display: flex;
  gap: 8px;
}
.quiz-question .q-num {
  background: var(--bg-soft);
  color: var(--purple);
  font-size: 0.8rem;
  font-weight: 800;
  padding: 2px 9px;
  border-radius: 999px;
  flex-shrink: 0;
  height: fit-content;
}
.quiz-options { display: flex; flex-direction: column; gap: 8px; }
.quiz-options label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.92rem;
  color: var(--text);
}
.quiz-options label:hover { border-color: var(--purple-light); }
.quiz-options input { accent-color: var(--purple); }
.quiz-question .q-feedback {
  margin-top: 12px;
  font-size: 0.85rem;
  font-weight: 700;
  display: none;
}
.quiz-question.correct .q-feedback { display: block; color: var(--green); }
.quiz-question.incorrect .q-feedback { display: block; color: var(--red); }
.quiz-result {
  text-align: center;
  padding: 34px 26px;
  border-radius: var(--radius);
  margin-bottom: 24px;
  display: none;
}
.quiz-result.show { display: block; }
.quiz-result .score { font-size: 2.6rem; font-weight: 800; margin: 6px 0; }
.quiz-result.tier-good { background: #F2FBF4; border: 2px solid var(--green); }
.quiz-result.tier-good .score { color: var(--green); }
.quiz-result.tier-mid { background: #FFF8ED; border: 2px solid #C67C1E; }
.quiz-result.tier-mid .score { color: #C67C1E; }
.quiz-result.tier-low { background: #FDF2F2; border: 2px solid var(--red); }
.quiz-result.tier-low .score { color: var(--red); }

/* ---- Scroll reveal ---- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ---- Confetti ---- */
.confetti-piece {
  position: absolute;
  font-size: 1.4rem;
  pointer-events: none;
  animation: confetti-fall 1.1s ease-out forwards;
  z-index: 5;
}
@keyframes confetti-fall {
  0% { opacity: 0; transform: translateY(0) rotate(0deg); }
  15% { opacity: 1; }
  100% { opacity: 0; transform: translateY(90px) rotate(200deg); }
}

/* ---- Activite pedagogique callout ---- */
.activity-box {
  background: linear-gradient(135deg, #FBF6FF, var(--bg-soft));
  border: 1px dashed var(--purple-light);
  border-radius: 12px;
  padding: 16px 18px;
  margin: 14px 0;
  font-size: 0.92rem;
}
.activity-box .activity-title {
  font-weight: 800;
  color: var(--purple);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.activity-box p { margin: 0; color: var(--text); }

/* ---- Animation : terminal progressif ---- */
.anim-terminal {
  background: #14172b;
  border-radius: 12px;
  overflow: hidden;
  margin: 16px 0;
  box-shadow: var(--shadow);
}
.anim-terminal-header {
  background: #1f2340;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: #9aa4c9;
}
.anim-terminal-header .dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.anim-terminal-header .dot:nth-child(1) { background: #ff5f57; }
.anim-terminal-header .dot:nth-child(2) { background: #febc2e; }
.anim-terminal-header .dot:nth-child(3) { background: #28c840; }
.anim-terminal-header span.label { margin-left: 6px; }
.anim-terminal-body {
  padding: 16px 18px;
  min-height: 120px;
  font-family: Consolas, Menlo, monospace;
  font-size: 0.88rem;
  color: #d7e0ff;
  line-height: 1.7;
}
.anim-terminal-body .line-out { color: #8fd7a4; }
.anim-terminal-body .cursor {
  display: inline-block;
  width: 7px;
  height: 1em;
  background: #d7e0ff;
  animation: blink-cursor 1s steps(1) infinite;
  vertical-align: middle;
}
@keyframes blink-cursor { 50% { opacity: 0; } }
.anim-terminal-controls { padding: 10px 14px 14px; text-align: right; }

/* ---- Animation : flux neuronal (connectome) ---- */
.anim-connectome { margin: 16px 0; }
.anim-connectome svg { width: 100%; height: auto; background: #fff; border-radius: 12px; border: 1px solid var(--border); }
.anim-connectome .node-label { font-size: 9px; fill: var(--muted); font-family: inherit; }
.anim-connectome .edge { stroke: var(--border); stroke-width: 1.5; fill: none; }
.anim-connectome .signal-dot { fill: var(--purple); filter: drop-shadow(0 0 4px var(--purple-light)); }
.anim-connectome .node-circle { stroke-width: 2; fill: #fff; }
.anim-connectome .node-sens { stroke: var(--green); }
.anim-connectome .node-mid { stroke: var(--purple); }
.anim-connectome .node-motor { stroke: var(--red); }
.anim-legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 0.78rem; color: var(--muted); margin-top: 8px; }
.anim-legend span { display: inline-flex; align-items: center; gap: 5px; }
.anim-legend .dot-legend { width: 10px; height: 10px; border-radius: 50%; display: inline-block; border: 2px solid; background: #fff; }
.anim-controls { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }

/* ---- Animation : jauge de recompense ---- */
.anim-gauge-wrap { margin: 16px 0; text-align: center; }
.anim-gauge-face { font-size: 2.4rem; transition: transform 0.25s ease; margin-bottom: 6px; }
.anim-gauge-face.bump { transform: scale(1.25); }
.anim-gauge-track {
  height: 22px;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  overflow: hidden;
  max-width: 320px;
  margin: 0 auto 12px;
}
.anim-gauge-fill {
  height: 100%;
  width: 50%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--red), #E8A33D, var(--green));
  transition: width 0.5s ease;
}
.anim-gauge-buttons { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ---- Fichiers qui se creent ---- */
.anim-filetree { font-family: Consolas, Menlo, monospace; font-size: 0.88rem; background: var(--bg-soft); border-radius: 10px; padding: 14px 18px; margin: 16px 0; }
.anim-filetree .file-line {
  opacity: 0;
  transform: translateX(-8px);
  animation: file-appear 0.4s ease forwards;
}
@keyframes file-appear { to { opacity: 1; transform: translateX(0); } }

/* ---- Prompt avant/apres ---- */
.anim-prompt-grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; align-items: center; margin: 16px 0; }
@media (max-width: 700px) { .anim-prompt-grid { grid-template-columns: 1fr; } }
.anim-prompt-card { padding: 14px 16px; border-radius: 10px; font-size: 0.88rem; }
.anim-prompt-weak { background: #FDF2F2; border: 1px solid #f3c9c9; color: #7a2323; }
.anim-prompt-good { background: #F2FBF4; border: 1px solid #bfe6c8; color: #1e5c30; transition: opacity 0.4s ease; }
.anim-prompt-good.hidden-reveal { opacity: 0.15; filter: blur(3px); }
.anim-prompt-arrow { font-size: 1.6rem; text-align: center; }

/* ---- Kanban de suivi ---- */
.kanban-board { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 16px 0; }
@media (max-width: 800px) { .kanban-board { grid-template-columns: 1fr 1fr; } }
.kanban-col { background: var(--bg-soft); border-radius: 10px; padding: 10px; min-height: 120px; }
.kanban-col h4 { font-size: 0.82rem; color: var(--navy); margin: 0 0 8px; text-transform: uppercase; letter-spacing: 0.03em; }
.kanban-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  margin-bottom: 8px;
  font-size: 0.82rem;
  cursor: grab;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
.kanban-card.dragging { opacity: 0.4; }
.kanban-col.drag-over { background: #ECE6F8; }

/* ---- Bulle de chat ---- */
.mb-chat-bubble {
  position: fixed;
  bottom: 22px;
  right: 22px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple-light), var(--purple));
  color: #fff;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(75,46,131,0.4);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mb-chat-bubble .mb-chat-dot {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--red);
  border: 2px solid #fff;
  display: none;
}
.mb-chat-bubble.has-unread .mb-chat-dot { display: block; }

.mb-chat-panel {
  position: fixed;
  bottom: 90px;
  right: 22px;
  width: min(340px, calc(100vw - 32px));
  height: min(460px, calc(100vh - 140px));
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(16,26,56,0.28);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 300;
  border: 1px solid var(--border);
}
.mb-chat-panel.open { display: flex; }
.mb-chat-header {
  background: var(--navy);
  color: #fff;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
  font-size: 0.92rem;
}
.mb-chat-header button { background: none; border: none; color: #fff; font-size: 1.1rem; cursor: pointer; }
.mb-chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--bg-soft);
}
.mb-chat-msg {
  max-width: 82%;
  padding: 9px 12px;
  border-radius: 12px;
  font-size: 0.86rem;
  line-height: 1.4;
  word-wrap: break-word;
}
.mb-chat-msg.visitor { align-self: flex-end; background: var(--purple); color: #fff; border-bottom-right-radius: 3px; }
.mb-chat-msg.agent, .mb-chat-msg.admin { align-self: flex-start; background: #fff; border: 1px solid var(--border); color: var(--text); border-bottom-left-radius: 3px; }
.mb-chat-msg.admin { border-color: var(--green); }
.mb-chat-msg .mb-chat-sender { display: block; font-size: 0.7rem; opacity: 0.7; margin-bottom: 2px; }
.mb-chat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--border); background: #fff; }
.mb-chat-form input { flex: 1; padding: 9px 12px; border: 1px solid var(--border); border-radius: 999px; font-size: 0.86rem; }
.mb-chat-form button { background: var(--purple); color: #fff; border: none; width: 38px; height: 38px; border-radius: 50%; cursor: pointer; font-size: 1rem; flex-shrink: 0; }

/* ---- Bandeau cookies RGPD ---- */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--navy);
  color: rgba(255,255,255,0.92);
  z-index: 400;
  box-shadow: 0 -6px 24px rgba(0,0,0,0.25);
}
.cookie-banner-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.cookie-banner-inner p {
  margin: 0;
  font-size: 0.86rem;
  flex: 1 1 320px;
  line-height: 1.5;
}
.cookie-banner-inner a { color: #fff; text-decoration: underline; }
.cookie-banner-actions { display: flex; gap: 10px; flex-shrink: 0; flex-wrap: wrap; }
.cookie-banner .btn-secondary { background: transparent; border-color: rgba(255,255,255,0.4); color: #fff; }
.cookie-banner .btn-secondary:hover { border-color: #fff; }
