/* Tempo v2 — Design System (charte Seed/Folio) */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&family=Inter:wght@400;500;600&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  --red:       #e02b20;
  --navy:      #232351;
  --green:     #04d89c;
  --yellow:    #f1be52;
  --bg:        #f5f6fa;
  --surface:   #ffffff;
  --text:      #1a1a2e;
  --muted:     #6b7280;
  --border:    #e5e7eb;
  --shadow:    0 2px 12px rgba(0,0,0,.07);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.11);
  --radius:    10px;
  --font:      'Inter', -apple-system, sans-serif;
  --font-title:'Nunito', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  /* Zone Fluency */
  --zone-focusing:     #e02b20;
  --zone-delivering:   #f1be52;
  --zone-optimizing:   #04d89c;
  --zone-strengthening:#232351;

  /* ADKAR */
  --zone-awareness:    #e02b20;
  --zone-desire:       #f1be52;
  --zone-knowledge:    #04d89c;
  --zone-ability:      #232351;
  --zone-reinforcement:#7c3aed;

  /* Shu-Ha-Ri */
  --zone-shu: #e02b20;
  --zone-ha:  #04d89c;
  --zone-ri:  #f1be52;
}

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

body {
  font-family: var(--font);
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,h2,h3,h4,h5 { font-family: var(--font-title); }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: var(--font); }
input, textarea, select { font-family: var(--font); }
img { max-width: 100%; }

/* ── Layout ─────────────────────────────────────────────────────────────── */
.container       { max-width: 1000px; margin: 0 auto; padding: 0 24px; }
.container--wide { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ── Header ─────────────────────────────────────────────────────────────── */
.header {
  background: var(--navy);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 0 rgba(255,255,255,.08);
}
.header__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-title);
  font-weight: 900;
  font-size: 1.2rem;
  letter-spacing: -.2px;
}
.header__logo img { height: 32px; }
.header__logo-placeholder {
  width: 32px; height: 32px;
  background: var(--red);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 900; color: #fff;
}
.header__nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.header__nav a, .header__nav button {
  color: rgba(255,255,255,.7);
  font-size: .82rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 6px;
  transition: all .15s;
  border: none;
  background: none;
}
.header__nav a:hover,
.header__nav button:hover { color: #fff; background: rgba(255,255,255,.08); }
.header__nav .active { color: var(--green); }
.header__badge {
  background: rgba(4,216,156,.15);
  color: var(--green);
  font-size: .72rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 20px;
  border: 1px solid rgba(4,216,156,.3);
  letter-spacing: .3px;
}

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, #1a1a4e 100%);
  color: #fff;
  padding: 56px 24px 48px;
  text-align: center;
}
.hero__logo { margin-bottom: 16px; }
.hero__logo img { height: 72px; }
.hero__logo-placeholder {
  width: 72px; height: 72px;
  background: rgba(255,255,255,.1);
  border-radius: 16px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 32px; font-weight: 900; color: rgba(255,255,255,.5);
  border: 2px dashed rgba(255,255,255,.2);
}
.hero h1 {
  font-size: 2.2rem;
  font-weight: 900;
  margin-bottom: 10px;
}
.hero h1 span { color: var(--green); }
.hero p {
  font-size: 1rem;
  color: rgba(255,255,255,.72);
  max-width: 560px;
  margin: 0 auto 24px;
  line-height: 1.7;
}
.hero__tags {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero__tag {
  background: rgba(255,255,255,.1);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: .8rem;
  color: rgba(255,255,255,.8);
}

/* ── Section ─────────────────────────────────────────────────────────────── */
.section { padding: 48px 0; }
.section + .section { padding-top: 0; }
.section__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
}
.section__title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
}
.section__sub {
  font-size: .82rem;
  color: var(--muted);
  margin-top: 3px;
}
.section-divider {
  border: none;
  border-top: 2px solid var(--border);
  margin: 0 0 48px;
}

/* ── Cards ───────────────────────────────────────────────────────────────── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.mission-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
  display: block;
  border-left: 4px solid var(--zone-color, var(--border));
  position: relative;
  overflow: hidden;
}
.mission-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.mission-card__status {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
}
.mission-card__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--muted);
}
.mission-card__dot.active   { background: var(--green); box-shadow: 0 0 0 3px rgba(4,216,156,.2); }
.mission-card__dot.terminee { background: var(--muted); }
.mission-card__dot.suspendue{ background: var(--yellow); }
.mission-card__status-label {
  font-size: .72rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .5px;
}
.mission-card__client {
  font-size: .78rem;
  font-weight: 700;
  color: var(--zone-color, var(--muted));
  text-transform: uppercase;
  letter-spacing: .8px;
  margin-bottom: 4px;
}
.mission-card__title {
  font-family: var(--font-title);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 4px;
  line-height: 1.3;
}
.mission-card__coach {
  font-size: .8rem;
  color: var(--muted);
  margin-bottom: 16px;
}
.mission-card__saisons {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.mission-card__s-dot {
  width: 10px; height: 10px;
  border-radius: 3px;
  background: var(--border);
}
.mission-card__s-dot.terminee  { background: var(--zone-color, var(--green)); }
.mission-card__s-dot.en_cours  { background: var(--zone-color, var(--green)); opacity: .5; }
.mission-card__s-dot.planifiee { background: var(--border); }
.mission-card__progress-label {
  display: flex;
  justify-content: space-between;
  font-size: .75rem;
  color: var(--muted);
  margin-bottom: 5px;
}
.mission-card__progress-track {
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 12px;
}
.mission-card__progress-fill {
  height: 100%;
  background: var(--zone-color, var(--green));
  border-radius: 2px;
  transition: width .4s ease;
}
.mission-card__meta {
  font-size: .75rem;
  color: var(--muted);
}

.mission-card--new {
  border: 2px dashed var(--border);
  border-left: 2px dashed var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--muted);
  background: var(--surface);
  min-height: 200px;
  transition: all .2s;
}
.mission-card--new:hover {
  border-color: var(--green);
  color: var(--green);
  transform: translateY(-2px);
}
.mission-card--new .plus {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 2px solid currentColor;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 300;
}
.mission-card--new span { font-size: .85rem; font-weight: 600; }

/* Tool cards */
.tool-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tool-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.tool-card__icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  margin-bottom: 4px;
}
.tool-card__title {
  font-family: var(--font-title);
  font-size: 1rem;
  font-weight: 800;
}
.tool-card__desc {
  font-size: .82rem;
  color: var(--muted);
  line-height: 1.6;
  flex: 1;
}
.tool-card__badge {
  font-size: .7rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 20px;
  display: inline-block;
  width: fit-content;
}
.tool-card__badge--free {
  background: rgba(4,216,156,.12);
  color: #059669;
  border: 1px solid rgba(4,216,156,.25);
}
.tool-card__badge--soon {
  background: rgba(107,114,128,.1);
  color: var(--muted);
  border: 1px solid var(--border);
}
.tool-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--navy);
  margin-top: 4px;
  transition: gap .15s;
}
.tool-card:hover .tool-card__cta { gap: 10px; }

/* ── Badges / pills ─────────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: .72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid currentColor;
  letter-spacing: .2px;
}
.badge--zone {
  color: var(--zone-color, var(--navy));
  background: color-mix(in srgb, var(--zone-color, var(--navy)) 10%, transparent);
  border-color: color-mix(in srgb, var(--zone-color, var(--navy)) 30%, transparent);
}
.badge--statut-en_cours  { background:rgba(4,216,156,.1);  color:#059669; border-color:rgba(4,216,156,.3); }
.badge--statut-terminee  { background:rgba(107,114,128,.1); color:var(--muted); border-color:var(--border); }
.badge--statut-planifiee { background:rgba(241,190,82,.1);  color:#b45309; border-color:rgba(241,190,82,.35); }

/* ── Axe badges ─────────────────────────────────────────────────────────── */
.axe-badge {
  font-size: .7rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  white-space: nowrap;
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: .85rem;
  padding: 9px 20px;
  border-radius: 8px;
  border: none;
  transition: all .15s;
  cursor: pointer;
  white-space: nowrap;
}
.btn--primary   { background: var(--navy);   color: #fff; }
.btn--primary:hover { background: #1a1a3e; }
.btn--accent    { background: var(--green);  color: var(--text); }
.btn--accent:hover  { opacity: .88; }
.btn--outline   { background: transparent; color: var(--navy); border: 1.5px solid var(--border); }
.btn--outline:hover { border-color: var(--navy); }
.btn--ghost     { background: transparent; color: var(--muted); border: none; }
.btn--ghost:hover   { color: var(--text); background: var(--bg); }
.btn--danger    { background: transparent; color: var(--red); border: 1.5px solid rgba(224,43,32,.25); }
.btn--danger:hover  { background: rgba(224,43,32,.06); }
.btn--sm        { padding: 6px 14px; font-size: .78rem; }
.btn--lg        { padding: 12px 28px; font-size: .95rem; }

/* ── Form ────────────────────────────────────────────────────────────────── */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 5px; }
.form-group.full { grid-column: 1 / -1; }
.form-label {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.form-input, .form-select, .form-textarea {
  background: var(--bg);
  border: 1.5px solid var(--border);
  color: var(--text);
  padding: 9px 13px;
  border-radius: 7px;
  font-size: .9rem;
  width: 100%;
  transition: border-color .15s, box-shadow .15s;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(35,35,81,.08);
}
.form-textarea { min-height: 100px; resize: vertical; line-height: 1.6; }
.form-actions { display: flex; gap: 10px; margin-top: 20px; }

/* ── Card containers ─────────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}
.card__title {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

/* ── Empty state ─────────────────────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 60px 24px;
  color: var(--muted);
}
.empty-state__icon { font-size: 3rem; margin-bottom: 12px; opacity: .4; }
.empty-state__title { font-family: var(--font-title); font-size: 1.1rem; font-weight: 700; margin-bottom: 6px; color: var(--text); }
.empty-state p { font-size: .85rem; }

/* ── Toast / alerts ──────────────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--text);
  color: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: .85rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  z-index: 999;
  animation: toastIn .2s ease;
}
.toast.success { background: #059669; }
.toast.error   { background: var(--red); }
@keyframes toastIn { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:none; } }

/* ── Loading ─────────────────────────────────────────────────────────────── */
.loading { text-align: center; padding: 48px; color: var(--muted); font-size: .9rem; }
.spinner {
  width: 28px; height: 28px;
  border: 3px solid var(--border);
  border-top-color: var(--navy);
  border-radius: 50%;
  animation: spin .7s linear infinite;
  margin: 0 auto 12px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .cards-grid { grid-template-columns: 1fr; }
  .form-grid  { grid-template-columns: 1fr; }
  .form-group.full { grid-column: 1; }
  .hero h1 { font-size: 1.7rem; }
  .header__nav .hide-mobile { display: none; }
}
