/* Planificateur Renard — timeline dédiée. Tokens repris de styles.css
   (gradient circadien, accent orange #FF5C35, identité "Renard"). */

/* Hero flottant du header n'a rien à faire sur cette page — la page a son
   propre header (kicker + logo). Sans ce hide, la barre Live/Today/Tonight/Top
   flotte par-dessus le contenu (position:fixed, toujours visible sinon). */
body.page-planner #hp-hero-root { display: none !important; pointer-events: none; }

#page-planner { padding: 0; }

.ev-planner {
  max-width: 480px; margin: 0 auto;
  padding: max(20px, env(safe-area-inset-top, 0px)) 16px calc(96px + env(safe-area-inset-bottom, 0px));
  font-family: 'Outfit', sans-serif; color: #f4f0ea;
  background:
    radial-gradient(90% 60% at 15% 0%, rgba(255,92,53,0.14) 0%, rgba(255,92,53,0) 55%),
    radial-gradient(120% 140% at 20% -10%, #0f3460 0%, #16213e 45%, #1a0a2e 100%);
  background-attachment: fixed;
  min-height: 100vh;
  animation: ev-planner-fade .35s ease both;
}

@keyframes ev-planner-fade {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Renard (logo de marque, remplace l'emoji 🦊) ─────────────────── */
.ev-planner-fox {
  height: 1.15em; width: auto; vertical-align: -0.2em; display: inline-block;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.35));
}
.ev-planner-fox--sm { height: 1.3em; vertical-align: -0.25em; }
.ev-planner-fox--md { height: 44px; vertical-align: middle; margin-bottom: 4px; }
.ev-planner-fox--lg { height: 30px; vertical-align: -0.35em; }
.ev-planner-fox--onbtn { vertical-align: -0.2em; filter: none; }

/* ── Étape 1 : intention ──────────────────────────────────────────── */
.ev-planner-kicker {
  font-family: 'Bebas Neue', sans-serif; font-size: 28px; letter-spacing: 1.2px;
  color: #FF8C66; margin-bottom: 6px; display: flex; align-items: center; gap: 8px;
}
.ev-planner-sub { font-size: 13.5px; color: #b8b3c4; margin-bottom: 18px; line-height: 1.4; }

.ev-planner-textarea {
  width: 100%; min-height: 92px; border-radius: 16px; box-sizing: border-box;
  border: 1px solid rgba(255,255,255,0.12); background: rgba(255,255,255,0.055); color: #f4f0ea;
  font-family: 'Outfit', sans-serif; font-size: 15px; padding: 14px; resize: none;
  transition: border-color .15s ease, background .15s ease;
}
.ev-planner-textarea:focus {
  outline: none; border-color: rgba(255,140,102,0.55); background: rgba(255,255,255,0.08);
}
.ev-planner-textarea::placeholder { color: rgba(184,179,196,0.7); }

.ev-planner-suggests { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }

.ev-planner-suggest, .ev-planner-chip {
  padding: 9px 14px; border-radius: 999px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  color: #d8d4e0; font-size: 13px; cursor: pointer;
  transition: background .15s ease, border-color .15s ease, transform .1s ease;
}
.ev-planner-suggest:hover, .ev-planner-chip:hover {
  background: rgba(255,255,255,0.1); border-color: rgba(255,140,102,0.35);
}
.ev-planner-suggest:active, .ev-planner-chip:active { transform: scale(0.97); }

.ev-planner-cta {
  width: 100%; padding: 15px; border-radius: 999px; border: none; margin-top: 14px;
  background: linear-gradient(135deg, #FF5C35, #ff8a4c); color: #1a0a10; font-weight: 700;
  font-size: 15px; cursor: pointer; box-shadow: 0 10px 24px rgba(255,92,53,0.35);
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: box-shadow .15s ease, transform .1s ease;
}
.ev-planner-cta:hover { box-shadow: 0 12px 28px rgba(255,92,53,0.45); }
.ev-planner-cta:active { transform: scale(0.98); }
.ev-planner-cta:disabled { opacity: 0.65; cursor: default; box-shadow: none; transform: none; }

/* ── "Mes sorties" ────────────────────────────────────────────────── */
.ev-planner-mine { margin-bottom: 22px; }
.ev-planner-mine-item {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08); margin-bottom: 8px;
  font-size: 14px; transition: background .15s ease, border-color .15s ease;
}
.ev-planner-mine-item:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,140,102,0.3); }
.ev-planner-mine-label { flex: 1; min-width: 0; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev-planner-mine-del {
  flex: none; background: none; border: none; color: rgba(255,255,255,0.5); cursor: pointer;
  font-size: 18px; line-height: 1; padding: 4px 6px; border-radius: 8px;
}
.ev-planner-mine-del:hover { color: #ff5c35; background: rgba(255,92,53,0.12); }

/* ── Étape 2 : chips éditables ────────────────────────────────────── */
.ev-planner-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.ev-planner-chip {
  flex: 1 1 46%; display: flex; flex-direction: column; align-items: flex-start; gap: 3px;
  padding: 11px 14px;
}
.ev-planner-chip--unset { border-style: dashed; border-color: rgba(255,255,255,0.18); }
.ev-planner-chip-label {
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.6px; color: #918caa;
  display: flex; align-items: center; gap: 4px;
}
.ev-planner-chip-val { font-weight: 600; font-size: 14px; color: #f4f0ea; }
.ev-planner-chip--unset .ev-planner-chip-val { color: #918caa; font-weight: 500; font-style: italic; }

/* ── Étape 3 : timeline ───────────────────────────────────────────── */
.ev-planner-back {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; margin-bottom: 14px; border-radius: 999px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  color: #b8b3c4; font-size: 13px; font-family: 'Outfit', sans-serif; cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.ev-planner-back:hover { background: rgba(255,255,255,0.1); color: #f4f0ea; }

.ev-planner-tabs { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 18px; scrollbar-width: none; }
.ev-planner-tabs::-webkit-scrollbar { display: none; }
.ev-planner-tab {
  flex: 0 0 auto; padding: 9px 18px; border-radius: 999px; cursor: pointer;
  font-family: 'Bebas Neue', sans-serif; font-size: 15px; letter-spacing: 1.2px;
  background: rgba(255,255,255,0.06); color: #b8b3c4; border: 1px solid rgba(255,255,255,0.08);
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.ev-planner-tab--active {
  background: linear-gradient(135deg, #FF5C35, #ff8a4c); color: #1a0a10; border-color: transparent;
  box-shadow: 0 6px 16px rgba(255,92,53,0.3);
}
.ev-planner-daylabel {
  font-family: 'Space Mono', monospace; font-size: 11px; letter-spacing: 2.5px;
  color: #918caa; text-align: center; margin-bottom: 18px;
}

.ev-planner-bubble {
  background: rgba(255,255,255,0.055); border: 1px solid rgba(255,140,102,0.25);
  border-radius: 16px 16px 16px 4px; padding: 13px 16px; font-size: 14px; line-height: 1.5;
  margin-bottom: 18px; display: flex; align-items: flex-start; gap: 9px;
}
.ev-planner-bubble span { flex: 1; }
.ev-planner-bubble .ev-planner-fox { height: 1.9em; vertical-align: -0.45em; flex-shrink: 0; }

.ev-planner-block { display: flex; gap: 12px; }
.ev-planner-dotcol { display: flex; flex-direction: column; align-items: center; width: 18px; flex: 0 0 18px; }
.ev-planner-dot {
  width: 13px; height: 13px; border-radius: 50%; background: #FF5C35;
  box-shadow: 0 0 0 4px rgba(255,92,53,0.16); margin-top: 8px; flex: none;
}
.ev-planner-dot--soft { background: transparent; border: 2px solid #918caa; box-shadow: none; }
.ev-planner-line {
  width: 2px; flex: 1; background: linear-gradient(rgba(255,92,53,0.55), rgba(255,92,53,0.1));
  margin: 4px 0; min-height: 24px;
}

.ev-planner-card {
  flex: 1; background: rgba(255,255,255,0.045); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px; padding: 14px; margin-bottom: 16px; display: flex; gap: 10px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.18);
  transition: border-color .15s ease, background .15s ease, transform .1s ease;
}
.ev-planner-card--soft { border-style: dashed; opacity: 0.92; box-shadow: none; }
.ev-planner-card [data-action="view-event"]:hover { cursor: pointer; }
.ev-planner-card:has([data-action="view-event"]:hover) {
  border-color: rgba(255,140,102,0.4); background: rgba(255,255,255,0.07);
}
.ev-planner-time { font-family: 'Space Mono', monospace; font-size: 11.5px; color: #FF8C66; letter-spacing: 0.5px; }
.ev-planner-title { font-weight: 600; font-size: 15.5px; margin: 3px 0; line-height: 1.3; }
.ev-planner-venue { font-size: 12.5px; color: #b8b3c4; }

.ev-planner-actions { display: flex; flex-direction: column; gap: 6px; }
.ev-planner-iconbtn {
  width: 30px; height: 30px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.05); color: #d8d4e0; cursor: pointer; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.ev-planner-iconbtn:hover { background: rgba(255,92,53,0.18); border-color: rgba(255,140,102,0.4); color: #FF8C66; }
.ev-planner-iconbtn:disabled { opacity: 0.4; cursor: default; }

.ev-planner-walk {
  font-size: 11.5px; color: #918caa; margin: -6px 0 12px 30px; font-family: 'Space Mono', monospace;
  display: flex; align-items: center; gap: 5px;
}

.ev-planner-share {
  margin-top: 20px; width: 100%; padding: 15px; border-radius: 999px; border: none;
  background: linear-gradient(135deg, #FF5C35, #ff8a4c); color: #1a0a10; font-weight: 700;
  font-size: 15px; cursor: pointer; box-shadow: 0 10px 24px rgba(255,92,53,0.35);
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: box-shadow .15s ease, transform .1s ease;
}
.ev-planner-share:hover { box-shadow: 0 12px 28px rgba(255,92,53,0.45); }
.ev-planner-share:active { transform: scale(0.98); }

.ev-planner-empty {
  text-align: center; color: #b8b3c4; padding: 48px 20px; font-size: 14.5px; line-height: 1.5;
}

@media (max-width: 380px) {
  .ev-planner-chip { flex: 1 1 100%; }
}

/* ── Bottom-sheet in-app (#252 — remplace window.prompt/confirm) ────── */
.ev-planner-sheet-overlay {
  position: fixed; inset: 0; z-index: 900;
  background: rgba(10,6,20,0.55); backdrop-filter: blur(2px);
  display: flex; align-items: flex-end; justify-content: center;
  animation: ev-planner-sheet-fade .18s ease both;
}
@keyframes ev-planner-sheet-fade { from { opacity: 0; } to { opacity: 1; } }

.ev-planner-sheet {
  width: 100%; max-width: 480px; box-sizing: border-box;
  background: #1a0a2e; border: 1px solid rgba(255,255,255,0.1); border-bottom: none;
  border-radius: 20px 20px 0 0; padding: 20px 18px calc(24px + env(safe-area-inset-bottom, 0px));
  font-family: 'Outfit', sans-serif; color: #f4f0ea;
  box-shadow: 0 -10px 30px rgba(0,0,0,0.4);
  animation: ev-planner-sheet-up .22s cubic-bezier(.2,.8,.3,1) both;
}
@keyframes ev-planner-sheet-up { from { transform: translateY(24px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.ev-planner-sheet-title {
  font-family: 'Bebas Neue', sans-serif; font-size: 19px; letter-spacing: 0.8px;
  color: #FF8C66; margin-bottom: 14px;
}
.ev-planner-sheet-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.ev-planner-sheet-pill {
  padding: 10px 16px; border-radius: 999px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
  color: #d8d4e0; font-size: 13.5px; cursor: pointer; font-family: 'Outfit', sans-serif;
  transition: background .15s ease, border-color .15s ease, transform .1s ease;
}
.ev-planner-sheet-pill:active { transform: scale(0.97); }
.ev-planner-sheet-pill--active {
  background: linear-gradient(135deg, #FF5C35, #ff8a4c); color: #1a0a10; border-color: transparent; font-weight: 600;
}
.ev-planner-sheet-input {
  width: 100%; box-sizing: border-box; padding: 13px 14px; border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.14); background: rgba(255,255,255,0.06); color: #f4f0ea;
  font-family: 'Outfit', sans-serif; font-size: 15px; margin-bottom: 14px;
}
.ev-planner-sheet-input:focus { outline: none; border-color: rgba(255,140,102,0.55); }
.ev-planner-sheet-row { display: flex; gap: 10px; }
.ev-planner-sheet-btn {
  flex: 1; padding: 13px; border-radius: 999px; border: none; font-weight: 700; font-size: 14.5px;
  cursor: pointer; font-family: 'Outfit', sans-serif; transition: opacity .15s ease, transform .1s ease;
}
.ev-planner-sheet-btn:active { transform: scale(0.98); }
.ev-planner-sheet-btn--primary { background: linear-gradient(135deg, #FF5C35, #ff8a4c); color: #1a0a10; }
.ev-planner-sheet-btn--ghost { background: rgba(255,255,255,0.08); color: #d8d4e0; }
.ev-planner-sheet-btn--danger { background: #d9304a; color: #fff; }

.ev-planner-sheet-stepper {
  display: flex; align-items: center; justify-content: center; gap: 18px; margin: 4px 0 18px;
}
.ev-planner-sheet-step {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.06); color: #f4f0ea; font-size: 20px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s ease, border-color .15s ease;
}
.ev-planner-sheet-step:hover { background: rgba(255,92,53,0.18); border-color: rgba(255,140,102,0.4); }
.ev-planner-sheet-days { font-family: 'Space Mono', monospace; font-size: 14px; color: #d8d4e0; min-width: 90px; text-align: center; }
