/* ══ PHASE 2 — Header ══ */
#phase-table { display: none; padding: 40px 24px; }
header { max-width: 1440px; margin: 0 auto 16px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.hdr-line1 { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
header h1 { font-family: 'Fraunces', serif; font-weight: 300; font-size: 22px; color: var(--green); }
.hdr-line2 { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.hdr-route { font-size: 16px; color: var(--text); font-weight: 500; }
.hdr-dots { background: transparent; border: none; color: var(--muted); font-size: 20px; cursor: pointer; padding: 2px 8px; border-radius: 4px; line-height: 1; transition: color .15s, background .15s; font-family: monospace; }
.hdr-dots:hover { color: var(--text); background: #1f1f28; }
.share-menu { display: none; position: absolute; right: 0; top: calc(100% + 4px); background: #1a1a24; border: 1px solid #3a3a4a; border-radius: 8px; padding: 4px; z-index: 500; min-width: 170px; box-shadow: 0 8px 24px rgba(0,0,0,.6); }
.share-menu.open { display: flex; flex-direction: column; }
.share-menu button { background: transparent; border: none; color: var(--text); font-family: 'DM Mono', monospace; font-size: 11px; padding: 8px 12px; cursor: pointer; border-radius: 4px; text-align: left; transition: background .1s; }
.share-menu button:hover { background: #22222e; }
.hdr-line3 { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.hdr-info-zone { max-width: calc(50% - 8px); background: #141418; border: 1px solid #2a2a35; border-radius: 6px; padding: 8px 14px; }
@media (max-width: 768px) { .hdr-info-zone { max-width: 100%; } }
#hdr-recap { font-size: 11px; color: var(--muted); }
/* Bouton carte — mobile seulement, style secondaire vert */
.hdr-map-btn { display: none; }
@media (max-width: 768px) {
  .hdr-map-btn { display: inline-flex; align-items: center; gap: 6px; background: transparent; border: 1px solid var(--green); color: var(--green); padding: 5px 12px; border-radius: 4px; cursor: pointer; font-family: 'DM Mono', monospace; font-size: 11px; transition: background .15s, color .15s; }
  .hdr-map-btn:hover { background: var(--green); color: var(--bg); }
}
.hdr-line4 { min-height: 16px; }
#co2-badge { font-size: 10px; color: var(--orange); font-weight: 600; }
.co2-pill { font-size: 10px; color: var(--orange); font-weight: 600; }
#arrival-bar { max-width: 1200px; margin: 0 auto 16px; padding: 8px 14px; background: #1a1a0f; border: 1px solid #3a3a1a; border-radius: 4px; font-size: 11px; color: var(--orange); display: none; }

/* ══ Steps list ══ */
#wrap { max-width: 100%; }
#cards-mobile { display: none; }
.steps-list { display: flex; flex-direction: column; gap: 6px; }

/* ══ Step card ══ */
.step-card { background: #1f1f25; border: 1px solid #32323a; border-radius: 8px; padding: 12px 14px; cursor: pointer; transition: border-color .15s, background .15s, transform .1s; box-shadow: 0 1px 6px rgba(0,0,0,.2); }
.step-card:hover { border-color: #4a4a55; background: #22222a; transform: translateY(-1px); }
.step-card:active { transform: translateY(0); }
.step-card.flash { animation: flash 1.2s ease both; }
.row-updated { animation: flash 1.2s ease both; }

/* ══ Mode pill ══ */
.sc-mode { display: inline-flex; align-items: center; justify-content: center; padding: 2px 7px; border-radius: 4px; flex-shrink: 0; font-size: 9px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; }
.sc-mode-train    { background: #071320; color: #5bb8e8; border: 1px solid #1a3a50; }
.sc-mode-night    { background: #080820; color: #9090e0; border: 1px solid #20204a; }
.sc-mode-bus      { background: #120820; color: #a060e0; border: 1px solid #301848; }
.sc-mode-ferry    { background: #071a18; color: #40d4b0; border: 1px solid #104038; }
.sc-mode-hotel    { background: #1a1800; color: #d4b800; border: 1px solid #3a3400; }
.sc-mode-activite { background: #1a0814; color: #e0509a; border: 1px solid #3a1030; }

/* ══ Statut select ══ */
.sc-status { display: inline-flex; align-items: center; justify-content: center; padding: 2px 7px; border-radius: 3px; cursor: pointer; font-size: 8px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; appearance: none; -webkit-appearance: none; }
.sc-stat-afaire  { background: #141418; color: #5a5a68; border: 1px solid #2a2a38; }
.sc-stat-reserve { background: #071320; color: #5bb8e8; border: 1px solid #1a3a50; }
.sc-stat-apayer  { background: #1a0a04; color: #e87040; border: 1px solid #3a1808; }
.sc-stat-paye    { background: #091a0e; color: #4a9e60; border: 1px solid #1e5631; }

/* ══ Nuits ctrl ══ */
.nuits-ctrl { display: inline-flex; align-items: center; gap: 4px; }
.nuits-ctrl button { width: 18px; height: 18px; background: transparent; border: 1px solid var(--border); color: var(--muted); border-radius: 3px; cursor: pointer; font-size: 12px; line-height: 1; display: flex; align-items: center; justify-content: center; padding: 0; }
.nuits-ctrl button:hover { border-color: var(--orange); color: var(--orange); }

/* ══ Trip endpoints ══ */
.trip-endpoint { display: flex; align-items: center; gap: 10px; padding: 9px 14px; border-radius: 8px; background: #161620; border: 1px solid #2a2a35; }
.trip-endpoint-dep { border-left: 3px solid var(--green); }
.trip-endpoint-arr { border-left: 3px solid var(--orange); }
.ep-label { font-size: 9px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.ep-city  { font-size: 13px; color: var(--text); font-weight: 500; }
.ep-date  { font-size: 11px; color: var(--muted); text-align: right; }

/* ══ Add step ══ */
.add-step-btn { width: 100%; padding: 10px; background: var(--green); border: none; border-radius: 8px; color: var(--bg); font-family: 'DM Mono', monospace; font-size: 11px; font-weight: 600; cursor: pointer; transition: opacity .15s; text-align: center; }
.add-step-btn:hover { opacity: .85; }

/* ══ Modal ajouter étape ══ */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 2000; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(3px); }
.modal-box { background: #1a1a24; border: 1px solid #3a3a4a; border-radius: 12px; padding: 24px; width: min(420px, 90vw); box-shadow: 0 16px 48px rgba(0,0,0,.7); }
.modal-title { font-family: 'Fraunces', serif; font-weight: 300; font-size: 18px; color: var(--text); margin-bottom: 20px; }
.modal-field { margin-bottom: 16px; }
.modal-label { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 6px; display: block; }
.modal-select, .modal-input { width: 100%; background: #111116; border: 1px solid var(--border); color: var(--text); font-family: 'DM Mono', monospace; font-size: 12px; padding: 8px 10px; border-radius: 6px; box-sizing: border-box; }
.modal-select:focus, .modal-input:focus { outline: none; border-color: var(--green); }
.modal-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 20px; }

/* ══ Hotel cards ══ */
.hotels-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px,1fr)); gap: 9px; margin-bottom: 10px; }
.card-h { background: var(--surface); border: 1px solid var(--border); border-radius: 6px; overflow: hidden; display: flex; flex-direction: column; transition: border-color .2s; }
.card-h:hover { border-color: var(--orange); }
.card-h img.photo { width:100%;height:120px;object-fit:cover;display:block;background:#222; }
.card-h .nophoto { width:100%;height:120px;background:#1a1a20;display:flex;align-items:center;justify-content:center;color:var(--muted);font-size:24px; }
.card-h .info { padding:10px 12px;flex:1;display:flex;flex-direction:column;gap:4px; }
.h-name  { font-size:12px;color:var(--text);font-weight:500;line-height:1.3; }
.h-stars { color:#f0c040;font-size:11px; }
.h-score { display:flex;align-items:center;gap:6px; }
.sbadge  { background:#1a3a2a;color:var(--green);padding:2px 7px;border-radius:3px;font-size:12px;font-weight:500; }
.sword   { color:var(--muted);font-size:10px; }
.h-price { margin-top:auto;padding-top:6px;border-top:1px solid var(--border);display:flex;align-items:baseline;gap:4px; }
.pbig    { color:var(--orange);font-size:13px; }
.psmall  { color:var(--muted);font-size:10px; }
.h-link  { display:block;text-align:center;padding:7px;background:#1a1e0a;color:var(--orange);text-decoration:none;font-size:11px;border-top:1px solid var(--border);transition:background .15s; }
.h-link:hover { background:var(--orange);color:var(--bg); }
.airbnb-btn { display:inline-flex;align-items:center;gap:7px;background:transparent;border:1px solid #ff5a5f;color:#ff5a5f;padding:7px 14px;border-radius:4px;text-decoration:none;font-family:'DM Mono',monospace;font-size:11px;transition:all .15s; }
.airbnb-btn:hover { background:#ff5a5f;color:#fff; }

/* ══ Modal inspiration activité ══ */
.inspi-chip {
  background: transparent;
  border: 1px solid #3a3a48;
  color: var(--muted);
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  padding: 4px 10px;
  border-radius: 20px;
  cursor: pointer;
  transition: border-color .15s, color .15s, background .15s;
  white-space: nowrap;
}
.inspi-chip:hover { border-color: var(--green); color: var(--green); }

.inspi-bubble-user {
  display: flex;
  justify-content: flex-end;
}
.inspi-bubble-user span {
  background: #1e1e28;
  border: 1px solid #3a3a48;
  border-radius: 10px 4px 10px 10px;
  padding: 6px 11px;
  font-size: 11px;
  color: var(--text);
  max-width: 85%;
}

.inspi-bubble-ai {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.inspi-bubble-ai .inspi-avatar {
  width: 22px; height: 22px; border-radius: 50%;
  background: #1a1a2a; border: 1px solid #3a3a4a;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 10px; color: var(--muted);
}
.inspi-bubble-ai .inspi-content {
  background: #1a1a26;
  border: 1px solid #2a2a38;
  border-radius: 4px 10px 10px 10px;
  padding: 8px 12px;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.6;
  flex: 1;
}

.inspi-suggestion {
  display: inline-block;
  margin: 3px 4px 0 0;
  padding: 3px 10px;
  background: #12121e;
  border: 1px solid #3a3a4a;
  border-radius: 4px;
  font-size: 11px;
  color: var(--text);
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.inspi-suggestion:hover { border-color: var(--green); background: #1a2a10; color: var(--green); }

.inspi-typing {
  display: flex; gap: 4px; align-items: center; padding: 4px 0;
}
.inspi-typing .dot {
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--muted); animation: blink 1.1s infinite;
}
.inspi-typing .dot:nth-child(2){animation-delay:.18s}
.inspi-typing .dot:nth-child(3){animation-delay:.36s}

/* ══ Météo dans les cards ══ */
.meteo-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  color: var(--muted);
  margin-left: 6px;
  white-space: nowrap;
}
.meteo-badge .meteo-icon { font-size: 13px; line-height: 1; }
.meteo-badge .meteo-temp { color: var(--orange); font-weight: 600; }
