/* ─── Tokens TaskHelper ───────────────────────────── */
:root {
  --th-text: #2d1a0e;
  --th-text-2: #7a5c44;
  --th-accent: #c96a3a;
  --color-primary: #fc7753;
  --th-card-bg: rgba(255, 255, 255, 0.7);
  --th-card-border: rgba(201, 106, 58, 0.2);
}

html,
body {
  height: 100%;
  overflow: hidden;
}
body {
  background: #f5e2d0;
}

/* ─── Background ──────────────────────────────────── */
.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image: url('../../assets/bg-taskhelper.png');
  background-size: cover;
  background-position: center;
}

/* Strip néon droit (symétrique au strip gauche du fond) */
.bg::after {
  content: '';
  position: absolute;
  top: 12%;
  bottom: 12%;
  right: clamp(16px, 4vw, 48px);
  width: 1.5px;
  border-radius: 2px;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(201, 106, 58, 0.5) 18%,
    rgba(217, 168, 90, 0.85) 50%,
    rgba(201, 106, 58, 0.5) 82%,
    transparent 100%
  );
  box-shadow:
    0 0 8px 3px rgba(201, 106, 58, 0.3),
    0 0 28px 8px rgba(201, 106, 58, 0.12);
}

/* ─── Navbar — warm light theme ──────────────────── */
header {
  background: rgba(245, 226, 208, 0.82);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgba(201, 106, 58, 0.18);
}
.brand {
  color: var(--th-text);
}
.brand-text .lab {
  color: var(--color-primary);
}
.brand-mark {
  background: radial-gradient(
    circle at 35% 35%,
    #ffb49a,
    var(--color-primary) 45%,
    #c94a28 85%
  );
  box-shadow:
    0 0 18px rgba(252, 119, 83, 0.6),
    0 0 40px rgba(252, 119, 83, 0.25);
}
.brand-mark::after {
  border-color: rgba(252, 119, 83, 0.35);
}
.nav-links a {
  color: var(--th-text-2);
}
.nav-links a:hover {
  color: var(--th-text);
}

/* ─── Main ────────────────────────────────────────── */
main {
  position: relative;
  z-index: 5;
  min-height: calc(100dvh - 64px);
  margin-top: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 32px) clamp(16px, 5vw, 48px);
}

/* ─── Scène ───────────────────────────────────────── */
.scene {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: 100%;
  max-width: 400px;
}

/* ─── Carte principale ────────────────────────────── */
.card {
  background: var(--th-card-bg);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--th-card-border);
  border-radius: 24px;
  padding: clamp(28px, 5vw, 52px) clamp(24px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  box-shadow:
    0 8px 40px rgba(100, 40, 10, 0.12),
    0 2px 12px rgba(100, 40, 10, 0.06),
    0 0 28px 4px rgba(201, 106, 58, 0.08);
  opacity: 0;
  animation: fadeUp 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.3s forwards;
}

.card-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  background: rgba(255, 255, 255, 0.85);
  border: 1.5px solid var(--th-card-border);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(201, 106, 58, 0.12);
  color: var(--th-accent);
}

.card-title {
  font-family: var(--serif);
  font-size: clamp(34px, 6vw, 46px);
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--th-text);
  margin-bottom: 8px;
}
.card-title .helper {
  color: var(--th-accent);
}

.card-tag {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--th-text-2);
  margin-bottom: 22px;
  width: 100%;
  justify-content: center;
}
.card-tag::before,
.card-tag::after {
  content: '';
  flex: 0 0 36px;
  height: 1px;
  background: var(--th-accent);
  opacity: 0.65;
}

.card-desc {
  font-family: var(--sans);
  font-size: clamp(14px, 2.5vw, 16px);
  font-weight: 400;
  line-height: 1.75;
  color: var(--th-text-2);
  margin-bottom: 28px;
}
.card-desc em {
  color: var(--th-accent);
  font-style: normal;
  font-weight: 500;
}

/* ─── Bouton retour ───────────────────────────────── */
.cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 14px 22px;
  width: 100%;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.22em;
  font-weight: 600;
  text-transform: uppercase;
  background: transparent;
  position: relative;
  overflow: hidden;
  transition: color 0.4s;
  cursor: pointer;
}
.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: translateX(-101%);
  transition: transform 0.4s cubic-bezier(0.7, 0, 0.3, 1);
}
.cta:hover {
  color: var(--base, #050810);
}
.cta:hover::before {
  transform: translateX(0);
}
.cta span,
.cta svg {
  position: relative;
  z-index: 1;
}
.cta svg {
  transition: transform 0.3s;
  flex-shrink: 0;
}
.cta:hover svg {
  transform: translateX(5px);
}
.cta:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

/* ─── Badge accessibilité ─────────────────────────── */
.badge {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--th-card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--th-card-border);
  border-radius: 14px;
  padding: 12px 18px;
  width: 100%;
  box-shadow: 0 4px 20px rgba(100, 40, 10, 0.08);
  opacity: 0;
  animation: fadeUp 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.55s forwards;
}

.badge-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: var(--th-accent);
}

.badge-text {
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--th-text-2);
  line-height: 1.5;
  text-align: left;
}

/* ─── Animations ──────────────────────────────────── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ─── Reduced motion ──────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .card,
  .badge {
    opacity: 1 !important;
    animation: none !important;
  }
  .cta,
  .cta::before {
    transition: none !important;
  }
}

@media (max-height: 580px) {
  html,
  body {
    overflow: auto;
  }
}
