/* ============================================================
   pages.css — Styles spécifiques aux pages (Bloc 2)
   Réutilise tokens et composants de styles.css
   ============================================================ */

/* ============================================================
   HUB DESTINATIONS (japon.html)
   ============================================================ */

.regions-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}

.regions-map-wrap {
  position: relative;
  aspect-ratio: 4/5;
  background: var(--bg-beige-soft);
  border-radius: var(--radius-xl);
  padding: 32px;
  overflow: hidden;
}

.regions-map {
  width: 100%;
  height: 100%;
  display: block;
}

.region-shape {
  fill: var(--bg-beige);
  stroke: var(--border-strong);
  stroke-width: 1.2;
  cursor: pointer;
  transition: fill var(--dur-fast) var(--ease-out-expo);
}
.region-shape:hover,
.region-shape.is-active {
  fill: var(--primary);
}

.region-label {
  font-size: 11px;
  font-weight: 700;
  fill: var(--text-primary);
  pointer-events: none;
  text-anchor: middle;
}

.regions-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.region-row {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 18px 22px;
  background: white;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border);
  transition:
    transform var(--dur-base) var(--ease-spring-soft),
    border-color var(--dur-fast) var(--ease-out-expo),
    box-shadow var(--dur-base) var(--ease-out-expo);
}
.region-row:hover {
  transform: translateX(6px);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}
.region-row__num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-cream);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.875rem;
}
.region-row__name {
  font-weight: 700;
  color: var(--text-primary);
  font-size: 1rem;
}
.region-row__sub {
  color: var(--text-muted);
  font-size: 0.8125rem;
  margin-top: 2px;
}

/* Cartes villes */
.city-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}

.city-card {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-beige);
  cursor: pointer;
  isolation: isolate;
}
.city-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 900ms var(--ease-out-expo);
}
.city-card:hover img { transform: scale(1.08); }
.city-card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(0,0,0,0.75) 100%);
}
.city-card__body {
  position: absolute; left: 18px; right: 18px; bottom: 18px; z-index: 2; color: white;
}
.city-card__kanji {
  font-family: var(--font-display);
  font-size: 1.25rem;
  opacity: 0.85;
  line-height: 1;
}
.city-card__name {
  color: white;
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-top: 4px;
}

/* Cartes ambiance */
.vibe-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.vibe-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: 28px;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  transition: transform var(--dur-base) var(--ease-spring-soft), box-shadow var(--dur-base) var(--ease-out-expo);
  border: 1.5px solid var(--border);
  cursor: pointer;
}
.vibe-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.vibe-card__emoji {
  font-size: 2.5rem;
  line-height: 1;
  margin-bottom: 20px;
}
.vibe-card h3 { font-size: 1.25rem; margin-bottom: 10px; }
.vibe-card p { color: var(--text-muted); font-size: 0.9375rem; line-height: 1.5; }
.vibe-card__footer { margin-top: auto; padding-top: 16px; color: var(--primary); font-weight: 600; font-size: 0.875rem; }

/* ============================================================
   VILLE (tokyo.html, kyoto.html)
   ============================================================ */

.city-hero {
  position: relative;
  height: 620px;
  overflow: hidden;
  color: white;
  display: flex;
  align-items: flex-end;
  padding-bottom: 80px;
}
.city-hero__media {
  position: absolute; inset: 0; z-index: 0;
}
.city-hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.28) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,0.75) 100%);
}
.city-hero__media img { width: 100%; height: 100%; object-fit: cover; }

.city-hero__content {
  position: relative;
  z-index: 2;
  max-width: 900px;
}
.city-hero__kanji {
  position: absolute;
  right: -40px;
  top: -200px;
  font-family: var(--font-display);
  font-size: 24rem;
  color: white;
  opacity: 0.08;
  pointer-events: none;
  z-index: 1;
  line-height: 1;
}
.city-hero h1 {
  color: white;
  font-size: clamp(3.5rem, 7vw, 6rem);
  font-weight: 900;
  letter-spacing: -0.04em;
}
.city-hero__meta {
  display: flex; gap: 14px; margin-bottom: 24px; flex-wrap: wrap;
}
.city-hero__meta .badge { background: rgba(255,255,255,0.18); color: white; backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,0.2); }

.city-hero__lead {
  font-size: 1.125rem;
  color: rgba(255,255,255,0.88);
  line-height: 1.55;
  max-width: 640px;
  margin-top: 24px;
}

/* Mini-carte quartiers (visuel) */
.neighborhoods-map {
  position: relative;
  height: 520px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, #E8E4DB 0%, #F0EBE0 100%);
  overflow: hidden;
  border: 1px solid var(--border);
}
.neighborhoods-map::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(0deg, rgba(0,0,0,0.04) 0 1px, transparent 1px 40px),
    repeating-linear-gradient(90deg, rgba(0,0,0,0.04) 0 1px, transparent 1px 40px);
}
.neigh-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  background: white;
  padding: 8px 16px 8px 10px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-md);
  font-weight: 700;
  font-size: 0.875rem;
  cursor: pointer;
  transition: transform var(--dur-base) var(--ease-spring-soft), box-shadow var(--dur-base) var(--ease-out-expo);
}
.neigh-pin::before {
  content: "";
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 4px rgba(244,106,76,0.25);
}
.neigh-pin:hover { transform: translate(-50%, -50%) scale(1.08); box-shadow: var(--shadow-lg); color: var(--primary); }

/* Neighborhood cards (grille) */
.neighborhood-card {
  position: relative;
  aspect-ratio: 3/4;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-beige);
  cursor: pointer;
}
.neighborhood-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 900ms var(--ease-out-expo);
}
.neighborhood-card:hover img { transform: scale(1.08); }
.neighborhood-card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.82) 100%);
}
.neighborhood-card__body {
  position: absolute; left: 20px; right: 20px; bottom: 20px; color: white; z-index: 2;
}
.neighborhood-card__body h3 {
  color: white; font-size: 1.25rem; margin-bottom: 4px;
}
.neighborhood-card__body p {
  color: rgba(255,255,255,0.85); font-size: 0.875rem; line-height: 1.4;
}
.neighborhood-card__kanji {
  color: rgba(255,255,255,0.7);
  font-family: var(--font-display);
  font-size: 1rem;
  margin-bottom: 4px;
}

/* Top list horizontale */
.top-list {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 280px;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 20px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) transparent;
}
.top-list::-webkit-scrollbar { height: 8px; }
.top-list::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 4px; }

.top-item {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  transition: transform var(--dur-base) var(--ease-spring-soft);
  border: 1px solid var(--border);
}
.top-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.top-item__media { aspect-ratio: 4/3; overflow: hidden; position: relative; }
.top-item__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 800ms var(--ease-out-expo); }
.top-item:hover .top-item__media img { transform: scale(1.05); }
.top-item__rank {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  width: 36px; height: 36px; border-radius: 50%;
  background: white; color: var(--text-primary);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1rem;
  box-shadow: var(--shadow-sm);
}
.top-item__body { padding: 18px 20px 22px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.top-item__name { font-weight: 700; font-size: 1rem; color: var(--text-primary); line-height: 1.3; }
.top-item__meta { margin-top: auto; padding-top: 10px; color: var(--text-muted); font-size: 0.8125rem; display: flex; gap: 10px; align-items: center; }

/* Food / experiences */
.food-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.food-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 20px;
  text-align: center;
  border: 1px solid var(--border);
  transition: transform var(--dur-base) var(--ease-spring-soft), box-shadow var(--dur-base) var(--ease-out-expo);
}
.food-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.food-card__emoji { font-size: 2.5rem; line-height: 1; margin-bottom: 12px; }
.food-card h4 { font-size: 1rem; margin-bottom: 4px; }
.food-card p { font-size: 0.8125rem; color: var(--text-muted); line-height: 1.4; }

/* Lodging */
.lodging-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.lodging-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform var(--dur-base) var(--ease-spring-soft), box-shadow var(--dur-base) var(--ease-out-expo);
}
.lodging-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.lodging-card__media { aspect-ratio: 16/10; overflow: hidden; }
.lodging-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease-out-expo); }
.lodging-card:hover .lodging-card__media img { transform: scale(1.06); }
.lodging-card__body { padding: 22px 24px 26px; }
.lodging-card__tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--bg-cream);
  color: var(--primary);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.lodging-card h3 { font-size: 1.125rem; margin-bottom: 6px; }
.lodging-card p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.5; margin-bottom: 12px; }
.lodging-card__price { font-weight: 700; color: var(--text-primary); }

/* Season bar — 12 mois */
.season-bar {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 6px;
  background: white;
  border-radius: var(--radius-lg);
  padding: 20px;
  border: 1px solid var(--border);
}
.season-bar__cell {
  text-align: center;
  padding: 14px 4px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  color: var(--text-primary);
  font-weight: 600;
  background: var(--bg-beige-soft);
}
.season-bar__cell[data-level="best"] { background: var(--success-soft); color: #2F7A42; }
.season-bar__cell[data-level="good"] { background: var(--primary-soft); color: var(--primary); }
.season-bar__cell[data-level="avoid"] { background: #EDE3D6; color: var(--text-muted); }
.season-bar__month { display: block; font-weight: 800; font-size: 0.875rem; margin-bottom: 4px; }

/* Encadré astuce guide */
.guide-tip {
  background: var(--bg-cream-soft);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-lg);
  padding: 32px 36px;
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  align-items: center;
}
.guide-tip__avatar {
  width: 72px; height: 72px; border-radius: 50%;
  object-fit: cover;
  border: 3px solid white; box-shadow: var(--shadow-sm);
}
.guide-tip__label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 6px;
}
.guide-tip p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.375rem;
  line-height: 1.4;
  color: var(--text-primary);
}
.guide-tip__author {
  font-family: var(--font-sans);
  font-style: normal;
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 10px;
}

/* Itinéraires ville (3 durées) */
.city-itineraries {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.city-itin-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1.5px solid var(--border);
  transition: transform var(--dur-base) var(--ease-spring-soft), box-shadow var(--dur-base) var(--ease-out-expo);
}
.city-itin-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.city-itin-card__dur {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.city-itin-card h3 { font-size: 1.125rem; margin-bottom: 8px; }
.city-itin-card__steps {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.6;
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.faq-item {
  background: white;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: border-color var(--dur-fast) var(--ease-out-expo);
}
.faq-item[open] { border-color: var(--primary); }
.faq-item summary {
  padding: 22px 28px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-primary);
  font-size: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--primary);
  transition: transform var(--dur-base) var(--ease-out-expo);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item__body {
  padding: 0 28px 24px;
  color: var(--text-muted);
  line-height: 1.6;
  font-size: 0.9375rem;
}

/* Sticky CTA */
.sticky-cta {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 60;
  background: var(--text-primary);
  color: white;
  padding: 10px 12px 10px 28px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 420px;
  animation: sticky-in 500ms var(--ease-spring-soft) 800ms backwards;
}
.sticky-cta__info {
  display: flex; flex-direction: column; line-height: 1.2;
}
.sticky-cta__info small { font-size: 0.6875rem; color: rgba(255,255,255,0.55); letter-spacing: 0.08em; text-transform: uppercase; }
.sticky-cta__info span { font-weight: 700; font-size: 0.9375rem; color: white; }
.sticky-cta .btn { height: 44px; padding: 0 22px; font-size: 0.875rem; }
@keyframes sticky-in {
  from { transform: translate(-50%, 30px); opacity: 0; }
  to   { transform: translate(-50%, 0); opacity: 1; }
}

/* ============================================================
   PAGE LIEU (lieu-*.html)
   ============================================================ */

.place-hero {
  position: relative;
  height: 80vh;
  min-height: 600px;
  overflow: hidden;
  background: var(--bg-beige);
}
.place-hero img { width: 100%; height: 100%; object-fit: cover; }
.place-hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.32) 0%, rgba(0,0,0,0) 25%, rgba(0,0,0,0) 60%, rgba(0,0,0,0.6) 100%);
}
.place-hero__actions {
  position: absolute;
  top: 100px;
  left: 32px;
  right: 32px;
  z-index: 3;
  display: flex;
  justify-content: space-between;
}
.place-hero__actions-left, .place-hero__actions-right { display: flex; gap: 10px; }

.place-distance {
  position: absolute;
  left: 32px;
  bottom: 40px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-pill);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.875rem;
  box-shadow: var(--shadow-md);
}

.place-body {
  max-width: 880px;
  margin: -60px auto 0;
  padding: 56px 56px 80px;
  background: var(--bg-cream);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  position: relative;
  z-index: 4;
}

.place-kanji {
  font-family: var(--font-display);
  color: var(--accent-red);
  font-size: 1.5rem;
  margin-bottom: 4px;
}
.place-title {
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
}

/* Encadré avis Yuki/Kenji */
.guide-review {
  background: white;
  border-radius: var(--radius-lg);
  padding: 28px 30px;
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  margin-bottom: 32px;
}
.guide-review__avatar {
  width: 64px; height: 64px; border-radius: 50%;
  object-fit: cover; border: 3px solid white; box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
.guide-review__label {
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 6px;
}
.guide-review__name { font-weight: 800; font-size: 1rem; margin-bottom: 10px; }
.guide-review p { color: var(--text-body); font-size: 0.9375rem; line-height: 1.6; }

/* Add to planning row */
.plan-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 24px 0 32px;
}
.plan-row .btn { flex: 1; max-width: 320px; }
.plan-row .btn.is-added { background: var(--success); }

/* Stats lieu */
.place-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 40px;
}
.place-stat {
  background: white;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.place-stat__label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.place-stat__value {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--text-primary);
}

/* Description section */
.section-caps {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-subtle);
  margin-bottom: 16px;
}

.place-description {
  font-size: 1rem;
  color: var(--text-body);
  line-height: 1.75;
  margin-bottom: 32px;
}
.place-description p + p { margin-top: 16px; }

.read-more-btn {
  color: var(--primary);
  font-weight: 700;
  font-size: 0.9375rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

/* Tip boxes */
.tips-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 32px 0 40px;
}
.tip-box {
  background: white;
  border-radius: var(--radius-lg);
  padding: 24px 26px;
  border: 1px solid var(--border);
  border-top: 4px solid var(--primary);
}
.tip-box__label {
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.tip-box h4 {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 8px;
}
.tip-box p { font-size: 0.9375rem; line-height: 1.55; color: var(--text-body); }

/* Infos pratiques */
.practical-info {
  background: white;
  border-radius: var(--radius-lg);
  padding: 28px 30px;
  border: 1px solid var(--border);
  margin: 32px 0 40px;
}
.practical-info h3 { font-size: 1rem; margin-bottom: 16px; }
.practical-info dl {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px 20px;
}
.practical-info dt {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.practical-info dd { color: var(--text-body); font-size: 0.9375rem; line-height: 1.5; }

/* "À combiner avec" */
.nearby-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 40px;
}
.nearby-card {
  background: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform var(--dur-base) var(--ease-spring-soft);
}
.nearby-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.nearby-card__media { aspect-ratio: 1/1; overflow: hidden; }
.nearby-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease-out-expo); }
.nearby-card:hover .nearby-card__media img { transform: scale(1.05); }
.nearby-card__body { padding: 12px 14px 16px; }
.nearby-card__name { font-weight: 700; font-size: 0.875rem; color: var(--text-primary); line-height: 1.25; margin-bottom: 4px; }
.nearby-card__meta { color: var(--text-muted); font-size: 0.75rem; }

/* Avis Google */
.google-reviews {
  background: white;
  border-radius: var(--radius-lg);
  padding: 28px 30px;
  border: 1px solid var(--border);
  margin-bottom: 40px;
}
.google-reviews__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.google-reviews__score {
  display: flex; align-items: center; gap: 14px;
}
.google-reviews__rating {
  font-family: var(--font-display);
  font-size: 3rem;
  line-height: 1;
  color: var(--text-primary);
}
.review-item { padding: 14px 0; border-bottom: 1px solid var(--border); }
.review-item:last-child { border: none; }
.review-item__head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.review-item__name { font-weight: 700; font-size: 0.875rem; }
.review-item__stars { color: #F4B93E; font-size: 0.875rem; letter-spacing: 1px; }
.review-item__text { color: var(--text-body); font-size: 0.9375rem; line-height: 1.55; }

/* Approved footer */
.approved-footer {
  background: var(--bg-beige-soft);
  border-radius: var(--radius-lg);
  padding: 26px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.approved-footer__text {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.125rem;
  color: var(--text-primary);
}
.approved-footer__socials {
  display: flex;
  gap: 10px;
}
.approved-footer__socials a {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: white;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--dur-fast) var(--ease-out-expo), transform var(--dur-base) var(--ease-spring-soft);
}
.approved-footer__socials a:hover { background: var(--primary); color: white; transform: translateY(-2px); }

/* Sticky CTA lieu (full width) */
.place-sticky-cta {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 60;
  width: min(760px, calc(100% - 48px));
  background: var(--primary);
  color: white;
  padding: 14px 18px 14px 28px;
  border-radius: var(--radius-pill);
  box-shadow: 0 16px 40px rgba(244,106,76,0.4);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  animation: sticky-in 500ms var(--ease-spring-soft) 800ms backwards;
}
.place-sticky-cta__label { font-weight: 700; font-size: 1rem; color: white; }
.place-sticky-cta .btn {
  background: white; color: var(--primary); height: 44px; padding: 0 22px; font-size: 0.875rem;
}
.place-sticky-cta .btn:hover { background: white; color: var(--primary-hover); }

/* Round icon buttons over hero */
.icon-btn {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(8px);
  color: var(--text-primary);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  transition: transform var(--dur-base) var(--ease-spring-soft), background var(--dur-fast) var(--ease-out-expo), color var(--dur-fast) var(--ease-out-expo);
  cursor: pointer; border: none;
}
.icon-btn:hover { transform: scale(1.08); background: white; }
.icon-btn.is-active { background: var(--primary); color: white; }

/* Breadcrumb */
.breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 24px;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span[aria-hidden] { color: var(--text-subtle); }

/* ============ EXPLORER (carte Leaflet) ============ */
.explorer-layout {
  display: grid;
  grid-template-columns: 360px 1fr;
  height: calc(100vh - 72px);
  min-height: 720px;
}
.explorer-sidebar {
  background: var(--bg-cream);
  border-right: 1px solid var(--border-soft);
  padding: 28px 24px;
  overflow-y: auto;
  display: flex; flex-direction: column; gap: 24px;
}
.explorer-sidebar h1 {
  font-size: 1.5rem; line-height: 1.15; font-weight: 800;
}
.explorer-filters { display: flex; flex-direction: column; gap: 18px; }
.explorer-filters__group { display: flex; flex-direction: column; gap: 10px; }
.explorer-filters__label {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-muted);
}
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 999px;
  background: white; border: 1px solid var(--border-soft);
  font-size: 0.8125rem; font-weight: 600; color: var(--text-body);
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out-expo);
  user-select: none;
}
.chip:hover { border-color: var(--primary); color: var(--primary); }
.chip.is-active {
  background: var(--primary); color: white; border-color: var(--primary);
}
.explorer-results { display: flex; flex-direction: column; gap: 10px; }
.explorer-results__count { font-size: 0.8125rem; color: var(--text-muted); }
.explorer-result {
  display: grid; grid-template-columns: 72px 1fr auto; gap: 12px; align-items: center;
  padding: 10px; border-radius: 12px; background: white; border: 1px solid var(--border-soft);
  cursor: pointer; transition: all var(--dur-fast) var(--ease-out-expo);
}
.explorer-result:hover { border-color: var(--primary); transform: translateX(2px); }
.explorer-result img { width: 72px; height: 72px; border-radius: 10px; object-fit: cover; }
.explorer-result__body { min-width: 0; }
.explorer-result__name { font-weight: 700; font-size: 0.875rem; line-height: 1.2; margin-bottom: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.explorer-result__meta { font-size: 0.75rem; color: var(--text-muted); }
.explorer-result__price { font-weight: 700; font-size: 0.8125rem; color: var(--primary); }

.explorer-map { position: relative; background: var(--bg-beige-soft); }
.explorer-map #map { position: absolute; inset: 0; }
.leaflet-container { background: #eae3d6 !important; font-family: inherit !important; }

/* Marker personnalisé */
.jc-marker {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--primary); color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 700;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  border: 3px solid white;
  transition: transform 200ms var(--ease-spring-soft);
}
.jc-marker:hover { transform: scale(1.15); }
.jc-marker--temple { background: var(--accent-red, #C8302C); }
.jc-marker--food { background: #E8A33D; }
.jc-marker--nature { background: #5A8C5A; }
.jc-marker--onsen { background: #4A7FB0; }
.jc-marker--museum { background: #8B6CB8; }
.jc-marker--shop { background: #C86A8D; }

/* ============ GUIDES LISTE ============ */
.guides-hero {
  padding: 110px 0 60px;
  background: linear-gradient(180deg, var(--bg-cream) 0%, var(--bg-beige-soft) 100%);
  text-align: center;
}
.guides-hero h1 { font-size: clamp(2.5rem, 4vw, 4rem); line-height: 1.02; font-weight: 800; letter-spacing: -0.02em; }
.guides-hero p { max-width: 640px; margin: 20px auto 0; color: var(--text-body); font-size: 1.0625rem; line-height: 1.55; }

.guide-author-card {
  display: grid; grid-template-columns: 280px 1fr; gap: 0;
  background: white; border-radius: var(--radius-lg, 20px); overflow: hidden;
  box-shadow: var(--shadow-sm); border: 1px solid var(--border-soft);
  transition: transform var(--dur-base) var(--ease-spring-soft), box-shadow var(--dur-base) var(--ease-out-expo);
}
.guide-author-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.guide-author-card__media { aspect-ratio: 1/1; overflow: hidden; }
.guide-author-card__media img { width: 100%; height: 100%; object-fit: cover; }
.guide-author-card__body { padding: 36px 40px; display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.guide-author-card__name { font-size: 1.75rem; font-weight: 800; line-height: 1.1; }
.guide-author-card__role { font-size: 0.9375rem; color: var(--primary); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
.guide-author-card__bio { color: var(--text-body); font-size: 0.9375rem; line-height: 1.55; }
.guide-author-card__stats { display: flex; gap: 24px; padding-top: 14px; border-top: 1px solid var(--border-soft); }
.guide-author-card__stat strong { display: block; font-size: 1.25rem; font-weight: 800; color: var(--text-primary); }
.guide-author-card__stat span { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }

/* ============ PAGE GUIDE INDIVIDUEL ============ */
.author-hero {
  padding: 110px 0 40px;
  background: linear-gradient(180deg, var(--bg-cream) 0%, white 100%);
}
.author-hero__grid { display: grid; grid-template-columns: 340px 1fr; gap: 60px; align-items: center; }
.author-hero__portrait { aspect-ratio: 1/1; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-lg); }
.author-hero__portrait img { width: 100%; height: 100%; object-fit: cover; }
.author-hero__kanji { font-family: var(--font-serif, 'Instrument Serif', serif); font-size: 4rem; color: var(--primary); line-height: 1; margin-bottom: 8px; }
.author-hero__name { font-size: clamp(3rem, 5vw, 4.5rem); font-weight: 800; line-height: 1; letter-spacing: -0.02em; margin-bottom: 12px; }
.author-hero__role { font-size: 1.125rem; color: var(--text-muted); margin-bottom: 24px; }
.author-hero__bio { font-size: 1.0625rem; line-height: 1.6; color: var(--text-body); max-width: 600px; }
.author-hero__meta { display: flex; gap: 32px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--border-soft); }
.author-hero__meta strong { display: block; font-size: 1.5rem; font-weight: 800; }
.author-hero__meta span { font-size: 0.8125rem; color: var(--text-muted); }

.author-quote {
  padding: 80px 0;
  background: var(--bg-beige-soft);
  text-align: center;
}
.author-quote blockquote {
  max-width: 780px; margin: 0 auto;
  font-family: var(--font-serif, 'Instrument Serif', serif);
  font-size: clamp(1.5rem, 2.4vw, 2.125rem);
  line-height: 1.35; font-style: italic;
  color: var(--text-primary);
}
.author-quote cite { display: block; margin-top: 20px; font-size: 0.9375rem; color: var(--text-muted); font-style: normal; }

.specialty-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 32px; }
.specialty-card { padding: 28px; border-radius: 18px; background: white; border: 1px solid var(--border-soft); }
.specialty-card__icon { font-size: 2rem; margin-bottom: 12px; }
.specialty-card h3 { font-size: 1.0625rem; margin-bottom: 8px; }
.specialty-card p { font-size: 0.9375rem; color: var(--text-body); line-height: 1.5; }

/* ============ ITINÉRAIRES LISTE ============ */
.itin-hero {
  padding: 110px 0 60px;
  background: linear-gradient(180deg, var(--bg-cream) 0%, var(--bg-beige-soft) 100%);
  text-align: center;
}
.itin-hero h1 { font-size: clamp(2.5rem, 4vw, 4rem); line-height: 1.02; font-weight: 800; letter-spacing: -0.02em; }
.itin-hero p { max-width: 640px; margin: 20px auto 0; color: var(--text-body); font-size: 1.0625rem; line-height: 1.55; }

.itin-filters-bar {
  display: flex; gap: 10px; flex-wrap: wrap; justify-content: center;
  margin-top: 32px;
}

.itin-big-card {
  display: grid; grid-template-columns: 420px 1fr;
  gap: 0; align-items: stretch;
  background: white; border-radius: 22px; overflow: hidden;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur-base) var(--ease-spring-soft), box-shadow var(--dur-base) var(--ease-out-expo);
  text-decoration: none; color: inherit;
}
.itin-big-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.itin-big-card__media { position: relative; overflow: hidden; min-height: 280px; }
.itin-big-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease-out-expo); }
.itin-big-card:hover .itin-big-card__media img { transform: scale(1.05); }
.itin-big-card__media-badges { position: absolute; top: 16px; left: 16px; display: flex; gap: 8px; z-index: 2; flex-wrap: wrap; }
.itin-big-card__media-badges .badge { background: rgba(255,255,255,0.95); backdrop-filter: blur(8px); color: var(--text-primary); }
.itin-big-card__body { padding: 32px 36px; display: flex; flex-direction: column; gap: 14px; }
.itin-big-card__title { font-size: 1.625rem; font-weight: 800; line-height: 1.15; letter-spacing: -0.01em; }
.itin-big-card__lead { color: var(--text-body); font-size: 0.9375rem; line-height: 1.55; }
.itin-big-card__meta { display: flex; flex-wrap: wrap; gap: 20px; }
.itin-big-card__meta span { font-size: 0.8125rem; color: var(--text-body); display: inline-flex; align-items: center; gap: 6px; }
.itin-big-card__footer {
  margin-top: auto; padding-top: 20px; border-top: 1px solid var(--border-soft);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.itin-big-card__price { font-size: 1.5rem; font-weight: 800; color: var(--primary); line-height: 1; }
.itin-big-card__price small {
  display: block; font-size: 0.6875rem; font-weight: 600;
  color: var(--text-muted); margin-top: 4px;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.itin-big-card__cta {
  padding: 10px 18px; border-radius: 999px;
  background: var(--bg-cream); color: var(--text-primary);
  font-weight: 700; font-size: 0.875rem;
  transition: all var(--dur-fast) var(--ease-out-expo);
  white-space: nowrap;
}
.itin-big-card:hover .itin-big-card__cta { background: var(--primary); color: white; }

/* Timeline accordion (details/summary) */
details.timeline-stop {
  display: block; padding: 0; background: white;
  border: 1px solid var(--border-soft); border-radius: 16px;
  margin-bottom: 14px; overflow: hidden;
  transition: box-shadow var(--dur-base) var(--ease-out-expo), border-color var(--dur-base) var(--ease-out-expo);
}
details.timeline-stop[open] { box-shadow: var(--shadow-md); border-color: var(--primary-soft, #f4d5c6); }
details.timeline-stop > summary {
  list-style: none; cursor: pointer;
  padding: 18px 22px; display: grid;
  grid-template-columns: 72px 1fr auto auto; gap: 18px;
  align-items: center;
}
details.timeline-stop > summary::-webkit-details-marker { display: none; }
.timeline-stop__time { font-weight: 800; color: var(--primary); font-size: 0.9375rem; letter-spacing: 0.02em; }
.timeline-stop__name { font-weight: 700; font-size: 1.0625rem; line-height: 1.3; }
.timeline-stop__desc { color: var(--text-muted); font-size: 0.8125rem; margin-top: 2px; }
.timeline-stop__badge {
  font-size: 0.6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  padding: 5px 10px; border-radius: 999px;
  background: var(--bg-beige-soft); color: var(--text-body); white-space: nowrap;
}
.timeline-stop__chevron {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--bg-cream); display: flex; align-items: center; justify-content: center;
  transition: transform var(--dur-base) var(--ease-spring-soft), background var(--dur-fast);
  color: var(--text-body); font-size: 0.875rem;
}
details.timeline-stop[open] .timeline-stop__chevron { transform: rotate(180deg); background: var(--primary); color: white; }
.timeline-stop__expanded {
  padding: 0 22px 24px;
  display: grid; grid-template-columns: 280px 1fr; gap: 24px;
  border-top: 1px solid var(--border-soft); padding-top: 22px; margin-top: 4px;
}
.timeline-stop__expanded img {
  width: 100%; height: 200px; object-fit: cover; border-radius: 12px;
}
.timeline-stop__expanded h4 { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 8px; font-weight: 700; }
.timeline-stop__expanded p { color: var(--text-body); line-height: 1.6; font-size: 0.9375rem; margin-bottom: 14px; }
.timeline-stop__info {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 18px;
  padding: 14px 16px; background: var(--bg-cream); border-radius: 10px;
  margin-bottom: 14px; font-size: 0.8125rem;
}
.timeline-stop__info strong { display: block; font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); margin-bottom: 2px; font-weight: 700; }
.timeline-stop__tip {
  padding: 14px 16px; background: #fff8ed; border-left: 3px solid #f0b34a;
  border-radius: 0 10px 10px 0; font-size: 0.875rem; color: var(--text-body); line-height: 1.55;
  margin-bottom: 14px;
}
.timeline-stop__tip strong { color: #b57a1a; }
.timeline-stop__link {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 700; color: var(--primary); font-size: 0.875rem;
}
.timeline-stop__link:hover { text-decoration: underline; }

/* ============ ITINÉRAIRE DÉTAIL (timeline) ============ */
.itin-detail-hero {
  padding: 110px 0 60px;
  background: var(--bg-cream);
  position: relative;
}
.itin-detail-hero .breadcrumb { margin-bottom: 24px; }
.itin-detail-hero h1 {
  font-size: clamp(2.5rem, 4.5vw, 4rem); line-height: 1.05; font-weight: 800; letter-spacing: -0.02em;
  max-width: 780px;
}
.itin-detail-hero__lead {
  max-width: 720px; font-size: 1.125rem; line-height: 1.55; color: var(--text-body); margin-top: 20px;
}
.itin-detail-hero__meta {
  display: flex; gap: 20px; margin-top: 28px; flex-wrap: wrap;
}
.itin-detail-hero__meta-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; background: white; border: 1px solid var(--border-soft); border-radius: 999px;
  font-size: 0.875rem; font-weight: 600;
}

.itin-map-preview {
  margin: 0 auto 40px;
  max-width: 1080px; aspect-ratio: 16/6;
  border-radius: 20px; overflow: hidden;
  background: linear-gradient(135deg, #A7C9C3 0%, #D7B698 100%);
  position: relative;
}
.itin-map-preview__pin {
  position: absolute;
  width: 38px; height: 38px; border-radius: 50%;
  background: white; color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.8125rem;
  box-shadow: 0 4px 14px rgba(0,0,0,0.2);
  border: 3px solid var(--primary);
  transform: translate(-50%, -50%);
}

.timeline {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  padding-left: 40px;
}
.timeline::before {
  content: '';
  position: absolute; left: 16px; top: 8px; bottom: 8px;
  width: 2px; background: var(--border-soft);
}
.timeline-day {
  position: relative;
  margin-bottom: 48px;
}
.timeline-day__dot {
  position: absolute; left: -40px; top: 0;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--primary); color: white;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.8125rem;
  border: 4px solid white; box-shadow: 0 0 0 1px var(--border-soft);
}
.timeline-day__head {
  display: flex; align-items: baseline; gap: 14px; margin-bottom: 18px;
}
.timeline-day__num { font-size: 0.8125rem; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: 0.08em; }
.timeline-day__title { font-size: 1.5rem; font-weight: 800; line-height: 1.2; }
.timeline-day__city { color: var(--text-muted); font-size: 0.9375rem; }
.timeline-day__lead { color: var(--text-body); font-size: 0.9375rem; line-height: 1.55; margin-bottom: 18px; }

.timeline-stops { display: flex; flex-direction: column; gap: 12px; }
.timeline-stop {
  display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center;
  padding: 14px; background: white; border: 1px solid var(--border-soft); border-radius: 14px;
}
.timeline-stop__time { font-weight: 800; font-size: 0.8125rem; color: var(--primary); }
.timeline-stop__name { font-weight: 700; font-size: 0.9375rem; line-height: 1.2; }
.timeline-stop__desc { font-size: 0.8125rem; color: var(--text-muted); margin-top: 2px; }
.timeline-stop__badge {
  padding: 4px 10px; border-radius: 999px;
  background: var(--bg-beige-soft); font-size: 0.75rem; font-weight: 600; color: var(--text-body);
}

.budget-table {
  background: white; border: 1px solid var(--border-soft); border-radius: 18px;
  overflow: hidden; max-width: 720px; margin: 0 auto;
}
.budget-row {
  display: grid; grid-template-columns: 1fr auto auto; gap: 20px;
  padding: 16px 24px; border-bottom: 1px solid var(--border-soft);
  align-items: center;
}
.budget-row:last-child { border-bottom: none; background: var(--bg-beige-soft); font-weight: 700; }
.budget-row__label { font-weight: 600; font-size: 0.9375rem; }
.budget-row__sub { font-size: 0.75rem; color: var(--text-muted); margin-top: 2px; }
.budget-row__val { font-weight: 700; font-family: var(--font-mono, inherit); font-size: 0.9375rem; }

/* ============ PLANIFIER ============ */
.plan-layout {
  display: grid; grid-template-columns: 300px 1fr 320px;
  gap: 22px; align-items: start;
  padding: 32px 0 64px;
}
.plan-side {
  position: sticky; top: 96px;
  background: white; border: 1px solid var(--border-soft); border-radius: 18px;
  padding: 22px; display: flex; flex-direction: column; gap: 18px;
  box-shadow: 0 4px 18px rgba(20,20,20,0.04);
  max-height: calc(100vh - 112px); overflow-y: auto;
}
.plan-side h3 { font-size: 0.9375rem; font-weight: 800; margin-bottom: 4px; letter-spacing: -0.01em; }
.plan-side__row { display: flex; justify-content: space-between; font-size: 0.875rem; padding: 7px 0; border-bottom: 1px dashed var(--border-soft); gap: 10px; }
.plan-side__row:last-child { border-bottom: none; }
.plan-side__row strong { color: var(--text-primary); font-weight: 700; }

.plan-main { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.plan-day {
  background: white; border: 1px solid var(--border-soft); border-radius: 18px;
  padding: 20px 22px;
  transition: border-color 180ms, box-shadow 180ms, background 180ms;
  box-shadow: 0 2px 10px rgba(20,20,20,0.03);
}
.plan-day.is-drop-target {
  border-color: var(--primary); background: #FFF6F3;
  box-shadow: 0 0 0 3px rgba(200,48,44,0.12);
}
.plan-day__head {
  display: flex; align-items: baseline; gap: 12px;
  margin-bottom: 14px; padding-bottom: 10px;
  border-bottom: 1px solid var(--border-soft);
}
.plan-day__title {
  font-weight: 800; font-size: 1.0625rem; letter-spacing: -0.01em;
  outline: none; cursor: text;
  padding: 2px 4px; border-radius: 4px;
  transition: background 140ms;
}
.plan-day__title:hover, .plan-day__title:focus { background: var(--bg-beige-soft); }
.plan-day__date {
  font-size: 0.8125rem; color: var(--text-muted);
  outline: none; cursor: text;
  padding: 2px 4px; border-radius: 4px; flex: 1;
  transition: background 140ms;
}
.plan-day__date:hover, .plan-day__date:focus { background: var(--bg-beige-soft); }
.plan-day__del {
  opacity: 0; transition: opacity 140ms;
  width: 26px; height: 26px; border-radius: 50%;
  border: none; background: transparent; cursor: pointer; color: var(--text-muted);
  font-size: 0.75rem;
}
.plan-day:hover .plan-day__del { opacity: 1; }
.plan-day__del:hover { background: #FEE; color: var(--primary); }

.plan-day__items { display: flex; flex-direction: column; gap: 8px; }

.plan-item {
  display: grid;
  grid-template-columns: 58px 56px 1fr auto;
  gap: 12px; align-items: start;
  padding: 10px 12px;
  background: var(--bg-cream); border-radius: 12px;
  cursor: grab;
  border: 1px solid transparent;
  transition: transform 160ms, box-shadow 160ms, border-color 160ms, background 160ms;
}
.plan-item:hover {
  border-color: var(--border-soft); background: white;
  box-shadow: 0 3px 10px rgba(20,20,20,0.05);
}
.plan-item:active { cursor: grabbing; }
.plan-item.is-dragging { opacity: 0.45; transform: scale(0.98); }

.plan-item__time {
  font-weight: 700; font-size: 0.8125rem; color: var(--primary);
  align-self: center; text-align: center;
  cursor: pointer; user-select: none;
  padding: 6px 4px; border-radius: 6px;
  transition: background 140ms;
}
.plan-item__time:hover { background: #FFEDEA; }
.plan-item__time::after {
  content: ' ✎'; opacity: 0; transition: opacity 140ms;
  font-size: 0.75em;
}
.plan-item__time:hover::after { opacity: 0.7; }

.plan-item__img {
  width: 56px; height: 56px; border-radius: 10px; object-fit: cover;
  align-self: center;
  background: linear-gradient(135deg, #F5EFE8 0%, #E8DBC8 100%);
}

.plan-item__name {
  font-weight: 600; font-size: 0.9375rem; line-height: 1.3;
  color: var(--text-primary);
}
.plan-item__meta {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.75rem; color: var(--text-muted);
  margin-top: 3px;
}
.plan-item__cat-pill {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 2px 8px; border-radius: 999px;
  background: var(--bg-beige-soft);
  font-size: 0.6875rem; font-weight: 600;
  color: var(--text-body);
}

.plan-library h3 { font-size: 0.9375rem; margin-bottom: 6px; letter-spacing: -0.01em; }
.plan-library__list {
  display: flex; flex-direction: column; gap: 8px;
  max-height: calc(100vh - 320px); min-height: 300px;
  overflow-y: auto; padding-right: 4px;
  scrollbar-width: thin;
}
.plan-library__list::-webkit-scrollbar { width: 6px; }
.plan-library__list::-webkit-scrollbar-track { background: transparent; }
.plan-library__list::-webkit-scrollbar-thumb { background: var(--border-soft); border-radius: 3px; }
.plan-library__item {
  display: grid; grid-template-columns: 52px 1fr; gap: 10px; align-items: center;
  padding: 8px; border-radius: 12px; cursor: grab;
  background: white; border: 1px solid var(--border-soft);
  transition: border-color 160ms, transform 160ms, box-shadow 160ms;
}
.plan-library__item:hover {
  border-color: var(--primary); transform: translateX(-2px);
  box-shadow: -3px 3px 10px rgba(200,48,44,0.08);
}
.plan-library__item:active { cursor: grabbing; }
.plan-library__item.is-dragging { opacity: 0.45; }
.plan-library__item img {
  width: 52px; height: 52px; border-radius: 8px; object-fit: cover;
  background: linear-gradient(135deg, #F5EFE8 0%, #E8DBC8 100%);
}
.plan-library__item-name { font-size: 0.8125rem; font-weight: 600; line-height: 1.25; color: var(--text-primary); }
.plan-library__item-meta { font-size: 0.6875rem; color: var(--text-muted); margin-top: 3px; display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.plan-library__item-cat {
  display: inline-block; padding: 1px 6px; border-radius: 999px;
  background: var(--bg-beige-soft); font-weight: 600; color: var(--text-body);
  font-size: 0.625rem; letter-spacing: 0.02em;
}

/* ============ SERVICES HUB & PAGES ============ */
.service-card {
  display: grid; grid-template-columns: 140px 1fr;
  gap: 36px; align-items: flex-start;
  padding: 36px 40px; background: white;
  border: 1px solid var(--border-soft); border-radius: 22px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur-base) var(--ease-spring-soft), box-shadow var(--dur-base) var(--ease-out-expo);
}
.service-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.service-card__icon {
  width: 120px; height: 120px; border-radius: 28px;
  display: flex; align-items: center; justify-content: center;
  padding: 28px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}
.service-card__icon svg { width: 100%; height: 100%; }
.service-card__body { display: flex; flex-direction: column; gap: 12px; }
.service-card__eyebrow {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--primary);
}
.service-card__title { font-size: 1.625rem; font-weight: 800; line-height: 1.2; letter-spacing: -0.01em; }
.service-card__lead { color: var(--text-body); font-size: 0.9375rem; line-height: 1.6; }
.service-card__bullets { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 6px; }
.service-card__bullets span {
  font-size: 0.8125rem; color: var(--text-body); font-weight: 500;
  padding: 6px 12px; background: var(--bg-cream); border-radius: 999px;
}
.service-card__footer {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 16px; padding-top: 20px; border-top: 1px solid var(--border-soft);
  gap: 20px;
}
.service-card__price { font-size: 1.75rem; font-weight: 800; color: var(--primary); line-height: 1; }
.service-card__price small {
  display: block; font-size: 0.6875rem; font-weight: 600;
  color: var(--text-muted); margin-top: 4px;
  letter-spacing: 0.08em; text-transform: uppercase;
}

.pack-callout {
  display: grid; grid-template-columns: 1fr 320px;
  gap: 0; background: white; border-radius: 22px; overflow: hidden;
  margin-top: 40px;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-md);
}
.pack-callout__body { padding: 44px 48px; }
.pack-callout__body h3 { font-size: 1.75rem; font-weight: 800; letter-spacing: -0.01em; }
.pack-callout__body p { color: var(--text-body); margin-top: 12px; line-height: 1.6; }
.pack-callout__list {
  list-style: none; padding: 0; margin: 20px 0 0;
  display: flex; flex-direction: column; gap: 10px;
}
.pack-callout__list li { font-size: 0.9375rem; color: var(--text-body); }
.pack-callout__side {
  padding: 44px 40px;
  background: linear-gradient(160deg, var(--primary) 0%, #A82420 100%);
  color: white;
  display: flex; flex-direction: column; align-items: flex-start;
  justify-content: center; gap: 6px;
}
.pack-callout__was { font-size: 1rem; text-decoration: line-through; opacity: 0.7; }
.pack-callout__price { font-size: 2.75rem; font-weight: 800; line-height: 1; letter-spacing: -0.02em; }
.pack-callout__save { font-size: 0.875rem; font-weight: 600; opacity: 0.9; }
.pack-callout__side .btn { align-self: stretch; text-align: center; background: white; color: var(--primary); }
.pack-callout__side .btn:hover { background: var(--bg-cream); }

.faq-list { display: flex; flex-direction: column; gap: 12px; }
details.faq-item {
  background: white; border: 1px solid var(--border-soft);
  border-radius: 14px; padding: 0;
  transition: box-shadow var(--dur-base) var(--ease-out-expo), border-color var(--dur-base);
}
details.faq-item[open] { box-shadow: var(--shadow-md); border-color: var(--primary); }
details.faq-item > summary {
  list-style: none; padding: 20px 24px; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 18px;
  font-weight: 700; font-size: 1.0625rem; color: var(--text-primary);
}
details.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item__plus {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--bg-cream); display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1.25rem; flex-shrink: 0;
  transition: transform var(--dur-base) var(--ease-spring-soft), background var(--dur-fast);
}
details.faq-item[open] .faq-item__plus { transform: rotate(45deg); background: var(--primary); color: white; }
details.faq-item > p {
  padding: 0 24px 22px; color: var(--text-body); line-height: 1.65;
  font-size: 0.9375rem; margin: 0;
}

.extras-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.extras-item {
  padding: 18px 22px; background: white; border: 1px solid var(--border-soft);
  border-radius: 14px; font-size: 0.9375rem; font-weight: 500;
  text-align: left;
  transition: border-color var(--dur-fast), transform var(--dur-fast) var(--ease-out-expo);
}
.extras-item:hover { border-color: var(--primary); transform: translateY(-2px); }

/* ============ SERVICE DETAIL PAGE ============ */
.svc-hero {
  padding: 110px 0 70px;
  background: var(--bg-cream); position: relative; overflow: hidden;
}
.svc-hero__grid {
  display: grid; grid-template-columns: 1fr 380px;
  gap: 64px; align-items: center;
}
.svc-hero__visual {
  width: 100%; aspect-ratio: 1; border-radius: 32px;
  background: linear-gradient(160deg, var(--primary) 0%, #A82420 100%);
  display: flex; align-items: center; justify-content: center;
  padding: 70px;
  box-shadow: 0 30px 60px rgba(200, 48, 44, 0.3);
}
.svc-hero__visual svg { width: 100%; height: 100%; }
.svc-hero h1 { font-size: clamp(2.5rem, 4.4vw, 3.75rem); line-height: 1.05; font-weight: 800; letter-spacing: -0.02em; }
.svc-hero__lead { margin-top: 20px; font-size: 1.125rem; color: var(--text-body); line-height: 1.55; max-width: 560px; }
.svc-hero__stats {
  display: flex; gap: 30px; margin-top: 32px;
}
.svc-hero__stat strong { display: block; font-size: 2rem; font-weight: 800; color: var(--primary); line-height: 1; letter-spacing: -0.02em; }
.svc-hero__stat span { font-size: 0.8125rem; color: var(--text-muted); margin-top: 6px; display: block; }
.svc-hero__cta { display: flex; gap: 12px; margin-top: 36px; }

.svc-steps {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  margin-top: 44px;
}
.svc-step {
  padding: 28px 26px; background: white;
  border-radius: 18px; border: 1px solid var(--border-soft);
  position: relative;
}
.svc-step__num {
  position: absolute; top: -14px; left: 26px;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--primary); color: white;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.875rem;
}
.svc-step h4 { font-size: 1.0625rem; font-weight: 700; margin-top: 12px; }
.svc-step p { font-size: 0.875rem; color: var(--text-body); margin-top: 8px; line-height: 1.55; }

.svc-pricing {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  margin-top: 44px;
}
.svc-plan {
  padding: 32px 30px; background: white;
  border: 1px solid var(--border-soft); border-radius: 20px;
  display: flex; flex-direction: column; gap: 16px;
  position: relative; transition: transform var(--dur-base) var(--ease-spring-soft), border-color var(--dur-base);
}
.svc-plan:hover { transform: translateY(-3px); border-color: var(--primary); }
.svc-plan--featured {
  border: 2px solid var(--primary); box-shadow: 0 16px 40px rgba(200, 48, 44, 0.15);
}
.svc-plan--featured::before {
  content: 'Le plus choisi'; position: absolute; top: -12px; right: 24px;
  background: var(--primary); color: white; font-size: 0.6875rem;
  font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px;
}
.svc-plan__title { font-size: 1.125rem; font-weight: 700; }
.svc-plan__price { font-size: 2.25rem; font-weight: 800; color: var(--primary); line-height: 1; letter-spacing: -0.02em; }
.svc-plan__price small { font-size: 0.875rem; font-weight: 500; color: var(--text-muted); }
.svc-plan__desc { font-size: 0.875rem; color: var(--text-body); line-height: 1.55; }
.svc-plan ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 8px; margin: 4px 0 0; }
.svc-plan li { font-size: 0.8125rem; color: var(--text-body); padding-left: 20px; position: relative; }
.svc-plan li::before { content: '✓'; position: absolute; left: 0; color: var(--primary); font-weight: 700; }
.svc-plan .btn { margin-top: auto; }

.svc-rules {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.svc-rule {
  background: white; border: 1px solid var(--border-soft);
  border-radius: 18px; padding: 28px 26px;
  display: flex; flex-direction: column; gap: 12px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur-base) var(--ease-spring-soft), box-shadow var(--dur-base) var(--ease-out-expo);
}
.svc-rule:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.svc-rule__icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--bg-cream);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.625rem;
}
.svc-rule h4 { font-size: 1.0625rem; font-weight: 700; line-height: 1.3; }
.svc-rule p { font-size: 0.875rem; color: var(--text-body); line-height: 1.55; }

.simulator-cta {
  margin-top: 36px;
  display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center;
  padding: 32px 40px; border-radius: 20px;
  background: linear-gradient(135deg, #FFF7E6 0%, #FDECC8 100%);
  border: 1px solid rgba(200, 150, 50, 0.2);
}
.simulator-cta h3 { font-size: 1.375rem; font-weight: 800; letter-spacing: -0.01em; }
.simulator-cta p { color: var(--text-body); margin-top: 6px; font-size: 0.9375rem; line-height: 1.55; max-width: 560px; }

/* ============ BLOG ============ */
.blog-hero {
  padding: 140px 0 72px;
  background: linear-gradient(180deg, var(--bg-cream) 0%, transparent 100%);
}
.blog-hero .eyebrow { color: var(--primary); }
.blog-hero h1 { font-size: clamp(2.5rem, 5vw, 4rem); letter-spacing: -0.02em; max-width: 820px; }
.blog-hero p { color: var(--text-body); margin-top: 20px; max-width: 680px; font-size: 1.125rem; line-height: 1.6; }

.blog-filters {
  display: flex; flex-wrap: wrap; gap: 10px;
  padding-bottom: 24px; border-bottom: 1px solid var(--border-soft);
}
.category-pill {
  font-family: inherit; font-size: 0.875rem; font-weight: 600;
  padding: 8px 16px; border-radius: 999px;
  background: white; border: 1px solid var(--border-soft); color: var(--text-body);
  cursor: pointer; transition: all var(--dur-fast) var(--ease-out-expo);
}
.category-pill:hover { border-color: var(--primary); color: var(--primary); }
.category-pill.is-active { background: var(--primary); color: white; border-color: var(--primary); }

.blog-featured {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 0;
  background: white; border-radius: 24px; overflow: hidden;
  border: 1px solid var(--border-soft); box-shadow: var(--shadow-md);
}
.blog-featured__media { position: relative; display: block; overflow: hidden; min-height: 420px; }
.blog-featured__media img {
  width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0;
  transition: transform 600ms var(--ease-out-expo);
}
.blog-featured:hover .blog-featured__media img { transform: scale(1.04); }
.blog-featured__cat, .article-card__cat {
  position: absolute; top: 18px; left: 18px; z-index: 2;
  background: rgba(255,255,255,0.95); backdrop-filter: blur(8px);
  color: var(--primary); font-size: 0.6875rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px;
}
.blog-featured__body { padding: 44px 48px; display: flex; flex-direction: column; justify-content: center; }
.blog-featured__body h2 { font-size: 2rem; font-weight: 800; line-height: 1.2; letter-spacing: -0.01em; }
.blog-featured__body p { color: var(--text-body); line-height: 1.6; font-size: 1rem; }
.blog-featured__meta { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.blog-author { display: flex; align-items: center; gap: 12px; }
.blog-author img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.blog-author strong { display: block; font-size: 0.875rem; font-weight: 700; }
.blog-author span { font-size: 0.75rem; color: var(--text-muted); }

.blog-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
}
.article-card {
  display: flex; flex-direction: column;
  background: white; border-radius: 18px; overflow: hidden;
  border: 1px solid var(--border-soft);
  transition: transform var(--dur-base) var(--ease-spring-soft), box-shadow var(--dur-base) var(--ease-out-expo);
  color: inherit; text-decoration: none;
}
.article-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.article-card__media { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.article-card__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 500ms var(--ease-out-expo);
}
.article-card:hover .article-card__media img { transform: scale(1.05); }
.article-card__body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.article-card__date {
  font-size: 0.75rem; font-weight: 600; color: var(--text-muted);
  letter-spacing: 0.04em; text-transform: uppercase;
}
.article-card__body h3 { font-size: 1.125rem; font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; }
.article-card__body p { font-size: 0.875rem; color: var(--text-body); line-height: 1.55; }

.newsletter-form {
  display: grid; grid-template-columns: 1fr auto; gap: 10px; max-width: 520px; margin: 0 auto;
}
.newsletter-form input {
  font-family: inherit; font-size: 1rem;
  padding: 14px 18px; border-radius: 12px;
  background: white; border: 1px solid var(--border-soft);
  transition: border-color var(--dur-fast) var(--ease-out-expo);
}
.newsletter-form input:focus { outline: none; border-color: var(--primary); }

/* ============ ABOUT ============ */
.about-hero {
  padding: 140px 0 72px;
  background: linear-gradient(180deg, var(--bg-cream) 0%, transparent 100%);
}
.about-hero .eyebrow { color: var(--primary); }
.about-hero h1 { font-size: clamp(2.5rem, 5vw, 4rem); letter-spacing: -0.02em; max-width: 820px; }
.about-hero p { color: var(--text-body); margin-top: 20px; max-width: 720px; font-size: 1.125rem; line-height: 1.6; }

.about-story h2 { font-size: 2rem; font-weight: 800; letter-spacing: -0.01em; }
.about-timeline { display: flex; flex-direction: column; gap: 32px; position: relative; }
.about-timeline::before {
  content: ''; position: absolute; left: 80px; top: 16px; bottom: 16px;
  width: 2px; background: var(--border-soft);
}
.about-event {
  display: grid; grid-template-columns: 160px 1fr; gap: 40px; align-items: flex-start;
  position: relative;
}
.about-event__year {
  font-family: 'Instrument Serif', serif; font-size: 2.25rem; font-weight: 400;
  color: var(--primary); line-height: 1;
  position: relative; padding-right: 30px; text-align: right;
}
.about-event__year::after {
  content: ''; position: absolute; right: -7px; top: 12px;
  width: 14px; height: 14px; border-radius: 50%;
  background: white; border: 3px solid var(--primary);
}
.about-event h4 { font-size: 1.25rem; font-weight: 700; margin-bottom: 8px; }
.about-event p { color: var(--text-body); line-height: 1.6; font-size: 0.9375rem; }

.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.value-card {
  background: white; padding: 28px 24px; border-radius: 18px;
  border: 1px solid var(--border-soft);
  display: flex; flex-direction: column; gap: 12px;
}
.value-card__icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--bg-cream);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
}
.value-card h4 { font-size: 1.0625rem; font-weight: 700; line-height: 1.3; }
.value-card p { font-size: 0.875rem; color: var(--text-body); line-height: 1.55; }

.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.team-member {
  background: white; padding: 28px; border-radius: 18px;
  border: 1px solid var(--border-soft);
  text-align: left;
}
.team-member img {
  width: 88px; height: 88px; border-radius: 50%; object-fit: cover;
  margin-bottom: 16px;
}
.team-member h4 { font-size: 1.125rem; font-weight: 700; }
.team-member > span {
  display: block; font-size: 0.75rem; font-weight: 700;
  color: var(--primary); text-transform: uppercase; letter-spacing: 0.08em;
  margin-top: 4px;
}
.team-member p {
  font-size: 0.875rem; color: var(--text-body); line-height: 1.55; margin-top: 12px;
}

.stat-big {
  display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center;
}
.stat-big strong {
  font-size: 3.25rem; font-weight: 800; color: var(--primary);
  line-height: 1; letter-spacing: -0.02em;
}
.stat-big span {
  font-size: 0.8125rem; font-weight: 600; color: var(--text-muted);
  letter-spacing: 0.04em; text-transform: uppercase;
}

/* ============ FAQ PAGE ============ */
.faq-hero {
  padding: 140px 0 56px;
  background: linear-gradient(180deg, var(--bg-cream) 0%, transparent 100%);
}
.faq-hero .eyebrow { color: var(--primary); }
.faq-hero h1 { font-size: clamp(2.5rem, 5vw, 4rem); letter-spacing: -0.02em; }
.faq-hero p { color: var(--text-body); margin-top: 20px; max-width: 680px; font-size: 1.125rem; line-height: 1.6; }

.faq-search { max-width: 520px; }
.faq-search input {
  width: 100%; font-family: inherit; font-size: 1rem;
  padding: 16px 22px; border-radius: 14px;
  background: white; border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--dur-fast) var(--ease-out-expo);
}
.faq-search input:focus { outline: none; border-color: var(--primary); }

.faq-layout {
  display: grid; grid-template-columns: 240px 1fr; gap: 56px; align-items: flex-start;
}
.faq-nav {
  position: sticky; top: 100px; display: flex; flex-direction: column; gap: 6px;
}
.faq-nav h4 {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--text-muted); margin-bottom: 10px;
}
.faq-nav a {
  font-size: 0.9375rem; font-weight: 500; color: var(--text-body);
  padding: 10px 14px; border-radius: 10px;
  text-decoration: none;
  transition: all var(--dur-fast) var(--ease-out-expo);
}
.faq-nav a:hover { background: var(--bg-cream); color: var(--primary); }
.faq-nav a.is-active { background: var(--bg-cream); color: var(--primary); font-weight: 700; }

.faq-section h2 {
  font-size: 1.625rem; font-weight: 800; letter-spacing: -0.01em;
  padding-bottom: 14px; border-bottom: 1px solid var(--border-soft);
}

/* ============ CONTACT ============ */
.contact-hero {
  padding: 140px 0 56px;
  background: linear-gradient(180deg, var(--bg-cream) 0%, transparent 100%);
}
.contact-hero .eyebrow { color: var(--primary); }
.contact-hero h1 { font-size: clamp(2.5rem, 5vw, 4rem); letter-spacing: -0.02em; }
.contact-hero p { color: var(--text-body); margin-top: 20px; max-width: 680px; font-size: 1.125rem; line-height: 1.6; }

.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: flex-start; }
.contact-channels h3, .contact-form h3 { font-size: 1.375rem; font-weight: 800; margin-bottom: 20px; letter-spacing: -0.01em; }
.contact-channels { display: flex; flex-direction: column; gap: 16px; }
.contact-channel {
  display: grid; grid-template-columns: 56px 1fr; gap: 18px; align-items: flex-start;
  padding: 22px 24px;
  background: white; border: 1px solid var(--border-soft); border-radius: 16px;
  color: inherit; text-decoration: none;
  transition: all var(--dur-fast) var(--ease-out-expo);
}
.contact-channel:hover { transform: translateX(2px); border-color: var(--primary); box-shadow: var(--shadow-md); }
.contact-channel__icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-top: 4px;
}
.contact-channel__icon svg { width: 22px; height: 22px; }
.contact-channel h4 { font-size: 1.0625rem; font-weight: 700; }
.contact-channel p { font-size: 0.875rem; color: var(--text-body); margin-top: 4px; line-height: 1.5; }
.contact-channel strong { display: block; margin-top: 8px; font-size: 0.875rem; color: var(--primary); }

.contact-form {
  background: white; border: 1px solid var(--border-soft); border-radius: 22px;
  padding: 36px 40px;
  display: flex; flex-direction: column; gap: 18px;
  box-shadow: var(--shadow-sm);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form label { display: flex; flex-direction: column; gap: 6px; font-size: 0.8125rem; font-weight: 600; color: var(--text-muted); }
.contact-form label > span { letter-spacing: 0.02em; }
.contact-form input, .contact-form textarea, .contact-form select {
  font-family: inherit; font-size: 0.9375rem; font-weight: 400; color: var(--text-body);
  padding: 12px 16px; border-radius: 10px;
  background: white; border: 1px solid var(--border-soft);
  transition: border-color var(--dur-fast) var(--ease-out-expo);
}
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus {
  outline: none; border-color: var(--primary);
}
.contact-form textarea { resize: vertical; line-height: 1.55; }
.checkbox-label {
  flex-direction: row !important; align-items: flex-start !important;
  font-size: 0.8125rem; color: var(--text-body); font-weight: 400;
}
.checkbox-label input { width: 16px; height: 16px; margin-top: 2px; margin-right: 10px; }
.checkbox-label a { color: var(--primary); text-decoration: underline; }

.offices-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.office-card {
  background: white; padding: 28px 28px; border-radius: 18px;
  border: 1px solid var(--border-soft);
  display: flex; flex-direction: column; gap: 12px;
}
.office-card__flag { font-size: 2rem; }
.office-card h4 { font-size: 1.0625rem; font-weight: 700; }
.office-card p { font-size: 0.875rem; color: var(--text-body); line-height: 1.5; }

/* ============ APP LANDING ============ */
.app-hero {
  padding: 120px 0 72px;
  background: linear-gradient(180deg, var(--bg-cream) 0%, transparent 100%);
}
.app-hero__grid {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center;
}
.app-hero .eyebrow { color: var(--primary); }
.app-hero h1 { font-size: clamp(2.5rem, 5vw, 4rem); letter-spacing: -0.02em; }
.app-hero p { color: var(--text-body); margin-top: 20px; max-width: 560px; font-size: 1.125rem; line-height: 1.6; }
.app-hero__stars { display: flex; gap: 40px; margin-top: 32px; }
.app-hero__stars strong { font-size: 2rem; font-weight: 800; color: var(--primary); display: block; line-height: 1; letter-spacing: -0.02em; }
.app-hero__stars span { font-size: 0.9375rem; color: #F5A623; letter-spacing: 0.1em; display: block; margin: 4px 0; }
.app-hero__stars small { font-size: 0.75rem; color: var(--text-muted); }

.app-hero__stores { display: flex; gap: 12px; }
.store-badge {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 12px 20px; border-radius: 12px;
  background: #1F2937; color: white; text-decoration: none;
  transition: transform var(--dur-fast) var(--ease-out-expo);
}
.store-badge:hover { transform: translateY(-2px); }
.store-badge svg { width: 26px; height: 26px; }
.store-badge small { display: block; font-size: 0.625rem; opacity: 0.8; letter-spacing: 0.05em; text-transform: uppercase; }
.store-badge strong { display: block; font-size: 1rem; font-weight: 700; line-height: 1.1; }

.app-hero__phone { display: flex; justify-content: center; }
.phone-frame {
  width: 290px; height: 600px; border-radius: 44px;
  background: #111827; padding: 12px;
  box-shadow: 0 32px 64px rgba(0,0,0,0.2);
  position: relative;
}
.phone-frame__notch {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  width: 120px; height: 28px; background: #111827;
  border-radius: 0 0 16px 16px; z-index: 2;
}
.phone-frame__screen {
  width: 100%; height: 100%; border-radius: 34px;
  background: var(--bg-cream); overflow: hidden;
  padding: 44px 16px 16px;
  display: flex; flex-direction: column; gap: 12px;
}
.phone-mock-header {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.75rem; font-weight: 700; color: #111827;
  padding: 0 8px;
}
.phone-mock-search {
  background: white; padding: 10px 14px; border-radius: 12px;
  font-size: 0.8125rem; color: var(--text-muted);
  box-shadow: var(--shadow-sm);
}
.phone-mock-pill {
  align-self: flex-start;
  background: var(--primary); color: white;
  font-size: 0.6875rem; font-weight: 700;
  padding: 5px 10px; border-radius: 999px;
}
.phone-mock-card {
  display: grid; grid-template-columns: 58px 1fr; gap: 10px; align-items: center;
  background: white; padding: 8px; border-radius: 12px;
  box-shadow: var(--shadow-sm);
}
.phone-mock-card img { width: 58px; height: 58px; object-fit: cover; border-radius: 8px; }
.phone-mock-card strong { display: block; font-size: 0.8125rem; font-weight: 700; }
.phone-mock-card span { display: block; font-size: 0.6875rem; color: var(--text-muted); margin-top: 2px; }
.phone-mock-cta {
  margin-top: auto; background: white; border-radius: 16px;
  padding: 12px; display: flex; justify-content: space-around; align-items: center;
  box-shadow: var(--shadow-sm);
  font-size: 0.75rem; font-weight: 600;
}

.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card {
  position: relative;
  background: white; padding: 32px 28px; border-radius: 18px;
  border: 1px solid var(--border-soft);
  display: flex; flex-direction: column; gap: 10px;
  transition: transform var(--dur-base) var(--ease-spring-soft), box-shadow var(--dur-base) var(--ease-out-expo);
}
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.feature-card__num {
  font-family: 'Instrument Serif', serif;
  font-size: 2.25rem; color: var(--primary); line-height: 1; margin-bottom: 6px;
}
.feature-card h4 { font-size: 1.125rem; font-weight: 700; line-height: 1.3; }
.feature-card p { font-size: 0.875rem; color: var(--text-body); line-height: 1.55; }

.reviews-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.review-card {
  background: white; padding: 28px; border-radius: 18px;
  border: 1px solid var(--border-soft);
  display: flex; flex-direction: column; gap: 12px;
}
.review-card > span { color: #F5A623; letter-spacing: 0.1em; font-size: 1rem; }
.review-card p { font-size: 0.9375rem; color: var(--text-body); line-height: 1.6; }
.review-card small { font-size: 0.75rem; font-weight: 600; color: var(--text-muted); margin-top: auto; }

/* ============ AUTH (CONNEXION) ============ */
.auth-section { min-height: calc(100vh - 72px); background: var(--bg-cream); }
.auth-split { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - 72px); }

.auth-visual {
  position: relative;
  background: linear-gradient(160deg, #2C1E1C 0%, #1A100F 100%);
  overflow: hidden;
}
.auth-visual::before {
  content: ''; position: absolute; inset: 0;
  background: url('https://images.unsplash.com/photo-1528360983277-13d401cdc186?w=1200&h=1400&fit=crop') center/cover;
  opacity: 0.28;
}
.auth-visual__overlay {
  position: relative; z-index: 1;
  padding: 72px 64px;
  display: flex; flex-direction: column; justify-content: center;
  height: 100%; color: white; max-width: 520px;
}
.auth-visual__overlay .brush {
  font-family: 'Instrument Serif', serif;
  font-size: 4rem; line-height: 1;
  color: var(--primary); display: inline-block; margin-bottom: 28px;
}
.auth-visual__overlay h2 {
  font-size: 2rem; font-weight: 800; letter-spacing: -0.01em; line-height: 1.2;
}
.auth-visual__overlay p { margin-top: 16px; color: rgba(255,255,255,0.8); line-height: 1.6; font-size: 1rem; }
.auth-visual__list {
  list-style: none; padding: 0; margin-top: 32px;
  display: flex; flex-direction: column; gap: 10px;
}
.auth-visual__list li { font-size: 0.9375rem; color: rgba(255,255,255,0.85); }

.auth-panel {
  padding: 60px 72px; display: flex; flex-direction: column; justify-content: center;
  background: white; overflow-y: auto;
}
.auth-tabs {
  display: flex; gap: 6px; padding: 4px;
  background: var(--bg-cream); border-radius: 999px;
  align-self: flex-start; margin-bottom: 40px;
}
.auth-tab {
  font-family: inherit; font-size: 0.8125rem; font-weight: 700;
  padding: 8px 18px; border-radius: 999px;
  background: transparent; border: none; color: var(--text-muted);
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out-expo);
}
.auth-tab.is-active { background: white; color: var(--primary); box-shadow: var(--shadow-sm); }

.auth-form { max-width: 420px; display: flex; flex-direction: column; gap: 16px; }
.auth-form h1 { font-size: 2rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
.auth-subtitle { color: var(--text-body); font-size: 0.9375rem; margin-top: -6px; margin-bottom: 14px; }

.auth-socials { display: flex; flex-direction: column; gap: 10px; }
.auth-social {
  font-family: inherit; font-size: 0.9375rem; font-weight: 600; color: var(--text-body);
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 18px; border-radius: 12px;
  background: white; border: 1px solid var(--border-soft); cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out-expo);
}
.auth-social svg { width: 20px; height: 20px; }
.auth-social:hover { border-color: var(--primary); background: var(--bg-cream); }

.auth-divider {
  position: relative; text-align: center;
  font-size: 0.75rem; font-weight: 600; color: var(--text-muted);
  letter-spacing: 0.08em; text-transform: uppercase;
  margin: 4px 0;
}
.auth-divider::before, .auth-divider::after {
  content: ''; position: absolute; top: 50%; width: calc(50% - 36px); height: 1px;
  background: var(--border-soft);
}
.auth-divider::before { left: 0; }
.auth-divider::after { right: 0; }
.auth-divider span { background: white; padding: 0 12px; }

.auth-form label { display: flex; flex-direction: column; gap: 6px; font-size: 0.8125rem; font-weight: 600; color: var(--text-muted); }
.auth-form input[type="email"], .auth-form input[type="password"], .auth-form input[type="text"] {
  font-family: inherit; font-size: 0.9375rem; color: var(--text-body);
  padding: 12px 16px; border-radius: 10px;
  background: white; border: 1px solid var(--border-soft);
  transition: border-color var(--dur-fast) var(--ease-out-expo);
}
.auth-form input:focus { outline: none; border-color: var(--primary); }

.auth-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 0.8125rem; }
.auth-link { color: var(--primary); font-weight: 600; text-decoration: none; }
.auth-link:hover { text-decoration: underline; }

.auth-swap { font-size: 0.875rem; color: var(--text-body); text-align: center; margin-top: 6px; }
.auth-swap a { color: var(--primary); font-weight: 700; text-decoration: none; }
.auth-swap a:hover { text-decoration: underline; }

/* ============ 404 ============ */
.notfound {
  padding: 120px 0 80px;
  min-height: calc(100vh - 72px);
  background: linear-gradient(180deg, var(--bg-cream) 0%, transparent 100%);
}
.notfound__grid {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center;
  max-width: 1120px; margin: 0 auto;
}
.notfound__kanji {
  display: inline-block;
  font-family: 'Instrument Serif', serif;
  font-size: 5rem; line-height: 1; color: var(--primary);
  margin-bottom: 16px;
}
.notfound .eyebrow { color: var(--text-muted); font-weight: 600; }
.notfound h1 {
  font-size: clamp(2rem, 4vw, 3rem); font-weight: 800;
  letter-spacing: -0.02em; line-height: 1.15; margin-top: 12px;
}
.notfound__lead {
  color: var(--text-body); font-size: 1.0625rem; line-height: 1.6;
  margin-top: 20px; max-width: 540px;
}
.notfound__cta { display: flex; gap: 12px; margin-top: 32px; }
.notfound__links {
  margin-top: 44px; padding-top: 32px;
  border-top: 1px solid var(--border-soft);
}
.notfound__links h4 {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--text-muted); margin-bottom: 16px;
}
.notfound__links ul {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 24px;
}
.notfound__links a {
  font-size: 0.9375rem; font-weight: 500; color: var(--text-body);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out-expo);
}
.notfound__links a:hover { color: var(--primary); }

.notfound__visual { position: relative; }
.notfound__visual img {
  width: 100%; aspect-ratio: 4/5; object-fit: cover;
  border-radius: 24px; box-shadow: var(--shadow-lg);
}
.notfound__stamp {
  position: absolute; top: 32px; right: -24px;
  width: 96px; height: 96px; border-radius: 50%;
  background: var(--primary); color: white;
  font-family: 'Instrument Serif', serif;
  font-size: 3rem; line-height: 96px; text-align: center;
  box-shadow: 0 10px 30px rgba(200, 48, 44, 0.3);
  transform: rotate(8deg);
}

/* ============ GLOBAL POLISH ============ */
.skip-link {
  position: absolute; top: -40px; left: 12px; z-index: 9999;
  background: var(--primary); color: white;
  padding: 10px 16px; border-radius: 8px;
  font-size: 0.875rem; font-weight: 600; text-decoration: none;
  transition: top var(--dur-fast) var(--ease-out-expo);
}
.skip-link:focus { top: 12px; }

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal-item { opacity: 1 !important; transform: none !important; }
}

/* ============ ARTICLE PAGE ============ */
.article-hero {
  position: relative; height: 520px; overflow: hidden;
}
.article-hero img {
  width: 100%; height: 100%; object-fit: cover;
}
.article-hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.75) 100%);
  display: flex; align-items: flex-end; padding-bottom: 56px;
}
.article-hero__overlay .container { color: white; }
.article-hero__cat {
  display: inline-block;
  background: var(--primary); color: white;
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 999px;
  margin-bottom: 16px; margin-top: 24px;
}
.article-hero__overlay h1 {
  font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 800;
  letter-spacing: -0.02em; line-height: 1.1; max-width: 900px;
}

.article-layout {
  display: grid; grid-template-columns: 1fr 280px; gap: 64px;
  max-width: 1080px; margin: 64px auto 0;
  align-items: flex-start;
}
.article-body { max-width: 680px; }
.article-meta {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 24px; margin-bottom: 32px;
  border-bottom: 1px solid var(--border-soft);
}
.article-share { display: flex; gap: 8px; }
.article-share__btn {
  width: 36px; height: 36px; border-radius: 50%;
  background: white; border: 1px solid var(--border-soft);
  cursor: pointer; font-size: 0.9375rem;
  transition: all var(--dur-fast) var(--ease-out-expo);
}
.article-share__btn:hover { border-color: var(--primary); color: var(--primary); }

.article-lead {
  font-size: 1.25rem; line-height: 1.55;
  color: var(--text-primary); font-weight: 500;
  margin-bottom: 32px;
}
.article-body h2 {
  font-size: 1.625rem; font-weight: 800;
  letter-spacing: -0.01em; line-height: 1.25;
  margin: 48px 0 16px;
}
.article-body p {
  font-size: 1.0625rem; line-height: 1.7; color: var(--text-body);
  margin-bottom: 18px;
}
.article-body p em { font-style: italic; }
.article-body p strong { font-weight: 700; color: var(--text-primary); }
.article-body a { color: var(--primary); font-weight: 600; }
.article-body ul {
  font-size: 1.0625rem; line-height: 1.7; color: var(--text-body);
  padding-left: 22px;
}
.article-body ul li { margin-bottom: 8px; }

.article-figure {
  margin: 32px 0;
}
.article-figure img {
  width: 100%; border-radius: 14px;
}
.article-figure figcaption {
  font-size: 0.8125rem; color: var(--text-muted);
  font-style: italic; text-align: center; margin-top: 10px;
}

.article-author {
  margin-top: 56px; padding: 32px;
  background: var(--bg-cream); border-radius: 18px;
  display: grid; grid-template-columns: 96px 1fr; gap: 24px; align-items: flex-start;
}
.article-author img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; }
.article-author strong { font-size: 1.125rem; font-weight: 700; }
.article-author > div > span {
  display: block; font-size: 0.75rem; font-weight: 700; color: var(--primary);
  letter-spacing: 0.06em; text-transform: uppercase; margin-top: 4px;
}
.article-author p { font-size: 0.9375rem; color: var(--text-body); line-height: 1.6; margin-top: 12px; }
.article-author a { display: inline-block; margin-top: 10px; color: var(--primary); font-weight: 700; text-decoration: none; }

.article-sidebar { position: sticky; top: 96px; }
.article-toc {
  background: white; border: 1px solid var(--border-soft);
  border-radius: 14px; padding: 22px 24px;
}
.article-toc h4 {
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 14px;
}
.article-toc ol {
  list-style: decimal; padding-left: 20px;
  display: flex; flex-direction: column; gap: 8px;
}
.article-toc a {
  font-size: 0.875rem; color: var(--text-body);
  text-decoration: none; line-height: 1.4;
  transition: color var(--dur-fast) var(--ease-out-expo);
}
.article-toc a:hover { color: var(--primary); }

/* ========== BOUTON PLANIFIER (NAV) ========== */
.btn-plan {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px;
  background: linear-gradient(135deg, #C8302C 0%, #E85A4F 100%);
  color: white !important;
  border: none;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(200,48,44,0.28), inset 0 1px 0 rgba(255,255,255,0.2);
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
  position: relative;
  overflow: hidden;
}
.btn-plan::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(255,255,255,0.15) 50%, transparent 100%);
  transform: translateX(-100%);
  transition: transform 500ms ease;
}
.btn-plan:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(200,48,44,0.38); filter: brightness(1.05); }
.btn-plan:hover::before { transform: translateX(100%); }
.btn-plan:active { transform: translateY(0); }
.btn-plan__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px;
  font-size: 1rem;
}
.btn-plan__badge {
  background: rgba(255,255,255,0.25);
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1;
  margin-left: 4px;
}

/* ========== PLANIFIER v2 — UX upgrades ========== */
.plan-toolbar {
  display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
  padding: 14px 18px;
  background: white;
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
.plan-toolbar__search {
  flex: 1; min-width: 220px;
  display: flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  background: var(--bg-beige-soft);
  border-radius: 999px;
  border: 1px solid transparent;
  transition: border-color 160ms;
}
.plan-toolbar__search:focus-within { border-color: var(--primary); background: white; }
.plan-toolbar__search input {
  border: none; background: none; outline: none;
  flex: 1; font-size: 0.9375rem; font-family: inherit;
}
.plan-toolbar__chip {
  padding: 6px 12px;
  background: var(--bg-beige-soft);
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 140ms;
}
.plan-toolbar__chip:hover { background: white; border-color: var(--border-soft); }
.plan-toolbar__chip.is-active {
  background: var(--primary); color: white; border-color: var(--primary);
}

.plan-item__note {
  width: 100%;
  margin-top: 6px;
  padding: 6px 10px;
  background: var(--bg-beige-soft);
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 0.8125rem;
  font-family: inherit;
  color: var(--text-body);
  resize: none;
  outline: none;
  transition: border-color 140ms;
}
.plan-item__note:focus { border-color: var(--primary); background: white; }
.plan-item__note::placeholder { color: var(--text-muted); font-style: italic; }

.plan-item__actions {
  display: inline-flex; gap: 4px; margin-left: auto;
}
.plan-item__action {
  width: 26px; height: 26px;
  border: none; background: transparent;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: all 140ms;
}
.plan-item__action:hover { background: var(--bg-beige-soft); color: var(--primary); }

.plan-day__stats {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
  display: flex; gap: 10px;
}
.plan-day__stats strong { color: var(--text-body); font-weight: 600; }

.plan-empty {
  padding: 20px;
  border: 2px dashed var(--border-soft);
  border-radius: 10px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-style: italic;
}

.plan-save-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.8125rem;
  color: var(--text-muted);
  padding: 6px 12px;
  background: #E8F5E9;
  border-radius: 999px;
  font-weight: 500;
}
.plan-save-badge.is-saving { background: #FFF4E5; color: #8B6508; }
.plan-save-badge::before {
  content: '●'; color: #2E7D32; font-size: 0.6rem;
}
.plan-save-badge.is-saving::before { color: #F39C12; animation: pulse-dot 1s infinite; }
@keyframes pulse-dot { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }

.plan-library__item.is-hidden { display: none; }

.plan-reset-btn {
  width: 100%;
  padding: 10px;
  background: transparent;
  border: 1px dashed var(--border-soft);
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 0.8125rem;
  cursor: pointer;
  margin-top: 12px;
  transition: all 140ms;
}
.plan-reset-btn:hover { border-color: var(--primary); color: var(--primary); }

/* ============================================================
   PLANIFIER v3 — Calendrier + Icônes + Structure propre
   ============================================================ */

/* ---------- Page shell ---------- */
.plan-page { padding-top: 100px; padding-bottom: 72px; background: var(--bg-cream); }
.plan-hero {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 32px; flex-wrap: wrap; margin-bottom: 28px;
}
.plan-hero__title {
  font-family: var(--font-display);
  font-size: 3rem; font-weight: 400;
  letter-spacing: -0.02em; line-height: 1.05;
  margin-top: 6px; padding: 2px 8px;
  border-radius: 6px; outline: none;
  display: inline-block; cursor: text;
  transition: background 160ms;
}
.plan-hero__title:hover, .plan-hero__title:focus { background: var(--bg-beige-soft); }
.plan-hero__sub { color: var(--text-muted); font-size: 1rem; margin-top: 6px; max-width: 540px; }
.plan-hero__actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* ---------- Calendar card ---------- */
.plan-cal {
  background: white; border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 18px 22px;
  box-shadow: var(--shadow-sm); margin-bottom: 24px;
}
.plan-cal__head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 14px; padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  gap: 16px; flex-wrap: wrap;
}
.plan-cal__head-left { display: flex; align-items: center; gap: 14px; }
.plan-cal__kanji {
  font-family: var(--font-display); font-size: 1.625rem;
  color: var(--accent-red); line-height: 1;
}
.plan-cal__heading h3 { font-size: 0.9375rem; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 1px; }
.plan-cal__heading p { font-size: 0.75rem; color: var(--text-muted); }
.plan-cal__range {
  display: flex; gap: 10px; align-items: center;
}
.plan-cal__range-box {
  padding: 6px 12px; border-radius: var(--radius-sm);
  background: var(--bg-beige-soft); min-width: 120px;
}
.plan-cal__range-box.is-active {
  background: var(--accent-red-soft); border: 1px solid var(--accent-red);
}
.plan-cal__range-box-label { font-size: 0.625rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; }
.plan-cal__range-box-val { font-size: 0.8125rem; font-weight: 700; color: var(--text-primary); margin-top: 1px; }
.plan-cal__range-dash { color: var(--text-subtle); font-size: 1rem; }

.plan-cal__months {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.cal-month {
  display: flex; flex-direction: column; gap: 8px;
}
.cal-month__head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 4px;
}
.cal-month__label {
  font-family: var(--font-display);
  font-size: 1.125rem; font-weight: 400;
  letter-spacing: -0.01em;
  text-transform: capitalize;
}
.cal-month__label em {
  font-style: normal; color: var(--accent-red);
  font-family: var(--font-display); margin-left: 4px; font-size: 0.9em;
}
.cal-month__nav {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--bg-beige-soft); display: inline-flex;
  align-items: center; justify-content: center;
  color: var(--text-primary); font-size: 0.875rem;
  transition: background 160ms, transform 160ms;
}
.cal-month__nav:hover { background: var(--accent-red-soft); color: var(--accent-red); transform: scale(1.08); }
.cal-grid {
  display: grid; grid-template-columns: repeat(7, 1fr);
  gap: 1px;
}
.cal-dow {
  font-size: 0.625rem; font-weight: 600; letter-spacing: 0.04em;
  color: var(--text-muted); text-transform: uppercase;
  text-align: center; padding: 4px 0;
}
.cal-day {
  height: 30px; display: flex; align-items: center; justify-content: center;
  font-size: 0.8125rem; font-weight: 500; color: var(--text-body);
  border-radius: 6px; cursor: pointer; user-select: none;
  transition: background 140ms, color 140ms;
  position: relative;
}
.cal-day:hover { background: var(--bg-beige-soft); }
.cal-day--out { color: var(--text-subtle); opacity: 0.4; cursor: default; }
.cal-day--out:hover { background: transparent; }
.cal-day--today { color: var(--accent-red); font-weight: 700; }
.cal-day--today::after {
  content: ''; position: absolute; bottom: 3px; left: 50%; transform: translateX(-50%);
  width: 3px; height: 3px; border-radius: 50%; background: var(--accent-red);
}
.cal-day--in-range { background: var(--accent-red-soft); color: var(--accent-red); border-radius: 0; }
.cal-day--in-range.cal-day--today::after { background: var(--accent-red); }
.cal-day--start, .cal-day--end {
  background: var(--accent-red) !important; color: white !important;
  font-weight: 700;
}
.cal-day--start { border-radius: 6px 0 0 6px; }
.cal-day--end { border-radius: 0 6px 6px 0; }
.cal-day--start.cal-day--end { border-radius: 6px; }
.cal-day--start.cal-day--today::after,
.cal-day--end.cal-day--today::after { background: white; }

.plan-cal__foot {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 12px; padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 0.8125rem;
}
.plan-cal__foot-info { color: var(--text-muted); }
.plan-cal__foot-info strong { color: var(--text-primary); font-weight: 700; }

/* ---------- Layout ---------- */
.plan-layout-v3 {
  display: grid; grid-template-columns: 280px 1fr;
  gap: 24px; align-items: start;
}
@media (max-width: 960px) {
  .plan-layout-v3 { grid-template-columns: 1fr; }
}
.plan-col { min-width: 0; }
.plan-card {
  background: white; border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 22px;
  box-shadow: var(--shadow-sm);
}
.plan-card + .plan-card { margin-top: 16px; }
.plan-card h3 {
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 14px;
}
.plan-card__row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.875rem; padding: 7px 0;
  border-bottom: 1px dashed var(--border);
  gap: 10px;
}
.plan-card__row:last-child { border-bottom: none; }
.plan-card__row strong { font-weight: 700; color: var(--text-primary); }
.plan-card__row--total { padding-top: 12px; margin-top: 4px; border-top: 1px solid var(--border); border-bottom: none; }
.plan-card__row--total strong { color: var(--accent-red); font-size: 1.125rem; font-family: var(--font-display); font-weight: 400; }

/* ========== BUDGET INFO BUTTONS ========== */
.budget-info-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; margin-left: 4px;
  border-radius: 50%; border: 1px solid var(--border);
  background: var(--bg-cream-soft);
  color: var(--accent-red);
  font-size: 11px; font-weight: 700;
  cursor: pointer; padding: 0;
  transition: background 140ms, color 140ms, transform 140ms, border-color 140ms;
  vertical-align: middle;
}
.budget-info-btn:hover {
  background: var(--accent-red); color: white; border-color: var(--accent-red);
  transform: scale(1.08);
}
.budget-info-btn:focus-visible { outline: 2px solid var(--accent-red); outline-offset: 2px; }

/* Puce saison à côté du titre "Budget / pers" */
.budget-season-chip {
  display: inline-flex; align-items: center; gap: 4px;
  margin-left: 6px;
  padding: 2px 9px;
  font-size: 0.6875rem; font-weight: 700;
  letter-spacing: 0.02em; text-transform: none;
  border-radius: 999px; border: 1px solid transparent;
  cursor: pointer;
  background: var(--bg-cream-soft); color: var(--text-muted);
  transition: transform 140ms, filter 140ms;
}
.budget-season-chip:hover { transform: translateY(-1px); filter: brightness(0.97); }
.budget-season-chip--hot     { background: #FCE4DC; color: #B42A26; border-color: #F3C0BD; }
.budget-season-chip--warm    { background: #FBEEDB; color: #A06A18; border-color: #EEDAB3; }
.budget-season-chip--cool    { background: #DCEAFA; color: #1E6BB5; border-color: #B8D5F0; }
.budget-season-chip--neutral { background: var(--bg-beige-soft); color: var(--text-muted); border-color: var(--border); }

/* ========== BUDGET MODAL ========== */
.budget-modal { padding: 4px 4px 8px; }
.budget-modal__hero {
  display: flex; gap: 16px; align-items: center;
  padding: 20px 22px;
  background: linear-gradient(135deg, var(--bg-cream-soft) 0%, rgba(245,238,230,0.6) 100%);
  border-radius: 16px;
  margin-bottom: 16px;
}
.budget-modal__icon {
  width: 60px; height: 60px; border-radius: 16px;
  background: white; box-shadow: var(--shadow-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; flex-shrink: 0;
}
.budget-modal__kicker {
  font-size: 0.6875rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 2px;
}
.budget-modal__title {
  font-family: var(--font-display); font-size: 2rem; font-weight: 400;
  color: var(--accent-red); line-height: 1.1; margin: 0;
}
.budget-modal__per {
  font-family: inherit; font-size: 0.875rem; color: var(--text-muted);
  font-weight: 400; margin-left: 4px;
}
.budget-modal__sub {
  font-size: 0.8125rem; color: var(--text-muted); margin-top: 4px;
}
.budget-modal__intro {
  font-size: 0.9375rem; line-height: 1.55;
  color: var(--text-primary); margin: 0 4px 14px;
}
.budget-modal__intro strong { color: var(--accent-red); }
.budget-modal__empty {
  padding: 20px; text-align: center; color: var(--text-muted);
  background: var(--bg-cream-soft); border-radius: 12px;
  font-size: 0.875rem;
}

.budget-modal__season {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px 14px; border-radius: 12px;
  margin: 4px 4px 18px;
  border: 1px solid var(--border);
  background: var(--bg-cream-soft);
  font-size: 0.875rem; line-height: 1.4;
}
.budget-modal__season--hot  { background: #FCE4DC; border-color: #F3C0BD; color: #7A1D1A; }
.budget-modal__season--warm { background: #FBEEDB; border-color: #EEDAB3; color: #6F4411; }
.budget-modal__season--cool { background: #DCEAFA; border-color: #B8D5F0; color: #154E8A; }
.budget-modal__season strong { color: inherit; }
.budget-modal__season-emoji { font-size: 28px; line-height: 1; margin-top: 2px; }
.budget-modal__season-why { font-size: 0.8125rem; opacity: 0.85; margin-top: 3px; }

.budget-modal__h3 {
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-muted); margin: 14px 4px 8px;
}

/* Table ventilation */
.budget-table {
  border: 1px solid var(--border); border-radius: 12px;
  overflow: hidden; background: white;
  font-size: 0.8125rem;
}
.budget-table__head, .budget-table__row {
  display: grid; grid-template-columns: 60px 1.3fr 1fr 1fr 70px;
  align-items: center; gap: 10px;
  padding: 9px 12px;
}
.budget-table__head {
  background: var(--bg-cream-soft);
  font-size: 0.6875rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-muted);
}
.budget-table__row { border-top: 1px solid var(--border); }
.budget-table__row:nth-child(even) { background: rgba(245,238,230,0.25); }
.budget-table__row strong { color: var(--accent-red); font-weight: 700; text-align: right; }

.budget-modal__list { margin: 0 4px; padding-left: 20px; font-size: 0.875rem; line-height: 1.7; }
.budget-modal__list strong { color: var(--accent-red); }

.budget-modal__tip {
  margin-top: 16px; padding: 12px 14px;
  background: linear-gradient(135deg, rgba(200,48,44,0.07), rgba(200,48,44,0.02));
  border-left: 3px solid var(--accent-red);
  border-radius: 8px;
  font-size: 0.875rem; line-height: 1.5;
  color: var(--text-primary);
}

/* Répartition par mode transport */
.budget-modes { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
.budget-modes__item {
  padding: 10px 12px; background: var(--bg-cream-soft);
  border-radius: 10px; display: flex; justify-content: space-between;
  font-size: 0.8125rem;
}
.budget-modes__item strong { color: var(--accent-red); }

/* Barres de répartition (modal total) */
.budget-bars { display: flex; flex-direction: column; gap: 8px; padding: 4px; }
.budget-bars__row {
  display: grid; grid-template-columns: 140px 1fr auto 48px;
  align-items: center; gap: 10px;
  font-size: 0.875rem;
}
.budget-bars__label { font-weight: 600; }
.budget-bars__track {
  height: 10px; background: var(--bg-cream-soft);
  border-radius: 999px; overflow: hidden;
}
.budget-bars__fill { display: block; height: 100%; border-radius: 999px; transition: width 500ms ease-out; }
.budget-bars__row--hotel     .budget-bars__fill { background: linear-gradient(90deg, #C8302C, #E0544F); }
.budget-bars__row--transport .budget-bars__fill { background: linear-gradient(90deg, #1E88E5, #4DA3EA); }
.budget-bars__row--act       .budget-bars__fill { background: linear-gradient(90deg, #B8701E, #D8963E); }
.budget-bars__row--food      .budget-bars__fill { background: linear-gradient(90deg, #2E7D32, #5AA55E); }
.budget-bars__val  { font-family: var(--font-display); color: var(--accent-red); font-weight: 400; }
.budget-bars__pct  { font-size: 0.75rem; color: var(--text-muted); text-align: right; }

/* ========== MAP SECTION ========== */
.plan-map-section {
  padding: 60px 0 80px;
  background: linear-gradient(180deg, transparent 0%, var(--bg-cream-soft) 100%);
}
.plan-map-section__head {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 24px; margin-bottom: 26px; flex-wrap: wrap;
}
.plan-map-section__kicker {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--accent-red); margin-bottom: 6px;
}
.plan-map-section__title {
  font-family: var(--font-display); font-size: 2.4rem; font-weight: 400;
  color: var(--text-primary); margin: 0 0 8px; line-height: 1.1;
}
.plan-map-section__intro {
  font-size: 1rem; color: var(--text-muted); margin: 0; max-width: 560px;
}
.plan-map-wrap {
  display: grid; grid-template-columns: 1fr 300px;
  grid-template-rows: auto 1fr;
  gap: 0;
  border-radius: 20px; overflow: hidden;
  box-shadow: var(--shadow-md);
  background: white;
}
/* Onglets de vue (Tout / Jour 1 / Jour 2 / …) */
.plan-map-tabs {
  grid-column: 1 / -1;
  display: flex; gap: 8px;
  padding: 14px 16px;
  background: linear-gradient(180deg, #F6F0E6 0%, #FDF9F2 100%);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: thin;
}
.plan-map-tabs::-webkit-scrollbar { height: 6px; }
.plan-map-tabs::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.15); border-radius: 3px; }
.plan-map-tab {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  background: white;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  font-size: 0.875rem; font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  white-space: nowrap;
  transition: all 180ms ease;
  flex-shrink: 0;
}
.plan-map-tab:hover { border-color: var(--accent-red); transform: translateY(-1px); }
.plan-map-tab.is-active {
  background: var(--text-primary);
  color: white;
  border-color: var(--text-primary);
  box-shadow: 0 4px 10px -4px rgba(0,0,0,0.3);
}
.plan-map-tab__dot {
  width: 10px; height: 10px; border-radius: 50%;
  display: inline-block; flex-shrink: 0;
}
.plan-map-tab__count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 22px; height: 22px; padding: 0 6px;
  border-radius: 999px;
  background: var(--bg-cream-soft);
  color: var(--text-muted);
  font-size: 0.75rem; font-weight: 700;
}
.plan-map-tab.is-active .plan-map-tab__count {
  background: rgba(255,255,255,0.18);
  color: white;
}
.plan-map {
  height: 620px;
  min-height: 620px;
}
.plan-map__legend {
  padding: 20px 22px;
  background: #FDF9F2;
  overflow-y: auto; max-height: 620px;
  border-left: 1px solid var(--border);
}
.plan-map-legend__item {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 0.875rem;
}
.plan-map-legend__item:last-child { border-bottom: none; }
.plan-map-legend__dot {
  width: 14px; height: 14px; border-radius: 50%;
  flex-shrink: 0; margin-top: 3px;
  box-shadow: 0 0 0 3px white, 0 0 0 4px rgba(0,0,0,0.08);
}
.plan-map-legend__dot--num {
  width: 22px; height: 22px;
  display: inline-flex; align-items: center; justify-content: center;
  color: white; font-size: 0.6875rem; font-weight: 700;
  margin-top: 0;
}
.plan-map-legend__item strong { display: block; font-size: 0.875rem; color: var(--text-primary); }
.plan-map-legend__cities { display: block; font-size: 0.75rem; color: var(--text-muted); margin-top: 2px; }
.plan-map-empty {
  padding: 40px 24px; text-align: center;
  background: white; border: 2px dashed var(--border);
  border-radius: 16px; color: var(--text-muted); font-size: 0.9375rem;
}

/* Pin = icône catégorie dans un rond blanc, avec badge numéroté collé en haut à droite
   et petite "queue" pointant vers le point géographique. */
.plan-map-pin {
  position: relative;
  width: 42px; height: 42px;
  cursor: pointer;
  transform-origin: bottom center;
  transition: transform 220ms cubic-bezier(.34,1.56,.64,1);
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.25)) drop-shadow(0 1px 2px rgba(0,0,0,0.15));
}
.plan-map-pin:hover { transform: scale(1.15) translateY(-4px); z-index: 10; }
.plan-map-pin__icon {
  position: absolute; inset: 0;
  width: 42px; height: 42px;
  background: white;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; line-height: 1;
  border: 2px solid white;
}
.plan-map-pin__tail {
  position: absolute;
  bottom: -5px; left: 50%;
  width: 10px; height: 10px;
  transform: translateX(-50%) rotate(45deg);
  border-radius: 2px;
  z-index: -1;
}
.plan-map-pin__badge {
  position: absolute;
  top: -4px; right: -4px;
  min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 999px;
  background: var(--accent-red);
  color: white;
  font-size: 0.6875rem; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 2px white, 0 2px 4px rgba(0,0,0,0.2);
  letter-spacing: -0.02em;
}

/* Popup personnalisée */
.mapboxgl-popup-content {
  border-radius: 12px !important;
  padding: 12px 14px !important;
  box-shadow: 0 8px 24px -6px rgba(0,0,0,0.18), 0 2px 8px rgba(0,0,0,0.06) !important;
  font-family: inherit !important;
}
.plan-map-popup__day {
  font-size: 0.6875rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 4px;
}
.plan-map-popup__name {
  font-family: var(--font-display); font-size: 1.125rem;
  color: var(--text-primary); line-height: 1.2;
  margin-bottom: 4px;
}
.plan-map-popup__meta {
  font-size: 0.8125rem; color: var(--text-muted);
}

@media (max-width: 960px) {
  .plan-map-wrap { grid-template-columns: 1fr; }
  .plan-map { height: 440px; min-height: 440px; }
  .plan-map__legend { max-height: none; border-left: none; border-top: 1px solid var(--border); }
  .plan-map-tabs { padding: 10px 12px; }
  .plan-map-tab { padding: 7px 12px; font-size: 0.8125rem; }
}

.plan-side-v3 { position: sticky; top: 96px; }

/* ========== PAGE PLANIFIER — header non-fixe ==========
   Le header fixe gêne les drag & drop et mange l'espace vertical
   (calendrier + itinéraire + bibliothèque). On le remet en flux normal
   uniquement sur cette page, et on réaligne les éléments sticky. */
body.page-planifier .site-header {
  position: static;
  background: rgba(245, 238, 230, 0.92);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  box-shadow: 0 1px 0 rgba(20, 14, 4, 0.06);
}
/* Pas besoin du padding-top compensant le header fixe */
body.page-planifier main { padding-top: 0 !important; }
/* Les colonnes sticky repartent du haut réel du scroll */
body.page-planifier .plan-side-v3,
body.page-planifier .plan-lib-v3 { top: 20px; }

/* ---------- Day card ---------- */
.plan-day-v3 {
  background: white; border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 20px 24px;
  transition: border-color 180ms, box-shadow 180ms, background 180ms;
  box-shadow: var(--shadow-sm);
}
.plan-day-v3 + .plan-day-v3 { margin-top: 14px; }

/* ========== TRANSPORT SEPARATOR (between two cities) ========== */
.plan-transit {
  display: flex; align-items: center; gap: 10px;
  margin: 18px 0 14px;
  position: relative;
  animation: jc-transit-in 360ms ease-out;
}
@keyframes jc-transit-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.plan-transit__line {
  flex: 1; height: 1px;
  background: repeating-linear-gradient(90deg, var(--border) 0 6px, transparent 6px 10px);
}
.plan-transit__badge {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 14px 8px 10px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: 0 3px 10px -4px rgba(0,0,0,0.12);
  transition: transform 220ms;
}
.plan-transit:hover .plan-transit__badge { transform: translateY(-1px); }
.plan-transit__icon {
  width: 44px; height: 28px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  animation: jc-train-move 2.4s ease-in-out infinite;
}
.plan-transit__icon svg { width: 100%; height: 100%; display: block; }
@keyframes jc-train-move {
  0%, 100% { transform: translateX(0); }
  50%      { transform: translateX(2px); }
}
.plan-transit__text {
  display: flex; align-items: baseline; gap: 6px;
  flex-wrap: wrap; line-height: 1.2;
}
.plan-transit__from, .plan-transit__to {
  font-family: var(--font-display); font-size: 1.0625rem;
  color: var(--text-primary);
}
.plan-transit__arrow {
  color: var(--accent-red); font-weight: 700;
  font-size: 0.875rem;
}
.plan-transit__hint {
  display: block; width: 100%;
  font-size: 0.6875rem; color: var(--text-muted);
  letter-spacing: 0.04em; text-transform: uppercase;
  font-weight: 600; margin-top: 2px;
}

/* ========== INLINE TRANSIT (intra-day, between two items of different cities) ========== */
.plan-item-transit {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 4px 10px;
  margin: 6px 6px 6px 54px;            /* aligné sous l'icône de l'item (col 48px + gap ~6) */
  padding: 6px 10px;
  background: linear-gradient(90deg, rgba(245,238,230,0.5), rgba(255,255,255,0.8), rgba(245,238,230,0.5));
  border: 1px dashed var(--border);
  border-radius: 999px;
  position: relative;
  animation: jc-transit-in 380ms ease-out;
}
.plan-item-transit__pill {
  font-size: 0.6875rem; font-weight: 700;
  padding: 3px 10px; border-radius: 999px;
  letter-spacing: 0.02em; white-space: nowrap;
}
.plan-item-transit__track {
  position: relative; height: 28px;
  display: flex; align-items: center; justify-content: center;
  min-width: 80px;
}
.plan-item-transit__track::before {
  content: ""; position: absolute; left: 0; right: 0; top: 50%;
  height: 1.5px; background: repeating-linear-gradient(90deg,
    var(--border) 0 4px, transparent 4px 8px);
  transform: translateY(-50%);
}
.plan-item-transit__dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent-red);
  position: absolute; left: 0; top: 50%; transform: translate(-50%, -50%);
  box-shadow: 0 0 0 2px white;
}
.plan-item-transit__dot--end { left: auto; right: 0; transform: translate(50%, -50%); }
.plan-item-transit__vehicle {
  width: 48px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  position: relative; z-index: 1;
  animation: jc-train-slide 2.2s ease-in-out infinite;
}
.plan-item-transit__vehicle svg { width: 100%; height: 100%; display: block; }
@keyframes jc-train-slide {
  0%, 100% { transform: translateX(-12px); }
  50%      { transform: translateX(12px); }
}
.plan-item-transit__label {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 0.625rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-muted);
  margin-top: -2px;
}

/* ========== ROUTE TITLE (multi-city day) ========== */
.plan-day-v3__route {
  display: inline-flex; align-items: center; gap: 6px;
  flex-wrap: wrap; margin-top: 2px;
}
.plan-day-v3__route-chip {
  font-size: 0.75rem; font-weight: 700;
  padding: 2px 10px; border-radius: 999px;
  letter-spacing: 0.02em;
}
.plan-day-v3__route-arrow {
  color: var(--text-muted); font-weight: 700;
  font-size: 0.8125rem;
}
.plan-day-v3--multi-city {
  background: linear-gradient(90deg, rgba(200,48,44,0.04) 0%, white 220px);
  box-shadow: 0 2px 10px -4px rgba(0,0,0,0.08), var(--shadow-sm);
}
.plan-day-v3__count-cities {
  color: var(--accent-red); font-weight: 700;
}

/* ========== ARRIVAL OVERLAY (around the first activity of a new city) ========== */
.plan-arrival-wrap {
  --arrival-bg: var(--bg-beige-soft);
  --arrival-accent: var(--accent-red);
  position: relative;
  padding: 22px 8px 8px 8px;
  margin: 10px 0 2px;
  border: 1.5px dashed var(--arrival-accent);
  border-radius: 16px;
  background: linear-gradient(180deg, var(--arrival-bg) 0%, transparent 70%);
  animation: jc-arrival-in 420ms ease-out;
}
.plan-arrival-wrap__banner {
  position: absolute;
  top: -11px; left: 16px;
  background: var(--arrival-bg);
  color: var(--arrival-accent);
  font-size: 0.6875rem; font-weight: 700;
  letter-spacing: 0.05em; text-transform: uppercase;
  padding: 3px 12px;
  border-radius: 999px;
  border: 1.5px solid var(--arrival-accent);
  line-height: 1.2;
  white-space: nowrap;
}
.plan-arrival-wrap .plan-item-v3 {
  /* un peu d'ombre pour que l'item ressorte dans le cadre */
  box-shadow: 0 2px 8px -4px rgba(0,0,0,0.08);
}
@keyframes jc-arrival-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Version enrichie du label intra-day : on autorise deux lignes confortables */
.plan-item-transit__label {
  font-weight: 700;
  color: var(--text-muted);
}

/* ========== DAY CARD — city change variant ========== */
.plan-day-v3 {
  --city-bg: transparent;
  --city-accent: var(--accent-red);
  --city-border: var(--border);
}
.plan-day-v3--city-change {
  border-left: 3px solid var(--city-accent);
  background: linear-gradient(90deg, var(--city-bg) 0%, white 160px);
  box-shadow: 0 2px 10px -4px rgba(0,0,0,0.08), var(--shadow-sm);
}
.plan-day-v3__ribbon {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.6875rem; font-weight: 700;
  letter-spacing: 0.05em; text-transform: uppercase;
  padding: 4px 12px; border-radius: 999px;
  margin-bottom: 10px;
  align-self: flex-start;
  animation: jc-ribbon-in 400ms ease-out;
}
@keyframes jc-ribbon-in {
  from { opacity: 0; transform: scale(0.9); }
  to   { opacity: 1; transform: scale(1); }
}
.plan-day-v3--city-change .plan-day-v3__num {
  background: var(--city-bg);
  color: var(--city-accent);
}

/* hint for confirm modal */
.jc-confirm__hint {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.45;
  display: block;
}

.plan-day-v3.is-drop-target {
  border-color: var(--accent-red); background: var(--accent-red-soft);
  box-shadow: 0 0 0 3px rgba(200,48,44,0.12);
}
.plan-day-v3__head {
  display: flex; align-items: center; gap: 14px;
  padding-bottom: 12px; margin-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.plan-day-v3__num {
  flex-shrink: 0; width: 42px; height: 42px; border-radius: 12px;
  background: var(--accent-red-soft); color: var(--accent-red);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 1.25rem; font-weight: 400;
}
.plan-day-v3__info { flex: 1; min-width: 0; }
.plan-day-v3__date {
  font-size: 0.9375rem; font-weight: 700; color: var(--text-primary);
  text-transform: capitalize;
}
.plan-day-v3__city {
  font-size: 0.8125rem; color: var(--text-muted);
  outline: none; cursor: text; padding: 1px 4px; border-radius: 4px;
  display: inline-block; margin-top: 2px;
  transition: background 140ms;
}
.plan-day-v3__city:hover, .plan-day-v3__city:focus { background: var(--bg-beige-soft); }
.plan-day-v3__count {
  font-size: 0.75rem; font-weight: 600; color: var(--text-muted);
  padding: 4px 10px; background: var(--bg-beige-soft); border-radius: 999px;
}
.plan-day-v3__del {
  opacity: 0; transition: opacity 140ms;
  width: 30px; height: 30px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 0.875rem;
}
.plan-day-v3:hover .plan-day-v3__del { opacity: 1; }
.plan-day-v3__del:hover { background: var(--accent-red-soft); color: var(--accent-red); }

.plan-day-v3__items { display: flex; flex-direction: column; gap: 8px; }

/* ---------- Item with ICON ---------- */
.plan-item-v3 {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 12px; align-items: start;
  padding: 10px 12px;
  background: var(--bg-cream-soft); border-radius: var(--radius-sm);
  cursor: grab;
  border: 1px solid transparent;
  transition: transform 160ms, box-shadow 160ms, border-color 160ms, background 160ms;
}
.plan-item-v3:hover {
  border-color: var(--border); background: white;
  box-shadow: var(--shadow-sm);
}
.plan-item-v3:active { cursor: grabbing; }
.plan-item-v3.is-dragging { opacity: 0.45; transform: scale(0.98); }
.plan-item-v3__time {
  font-weight: 700; font-size: 0.8125rem; color: var(--accent-red);
  align-self: center; text-align: center;
  cursor: pointer; user-select: none;
  padding: 6px 4px; border-radius: 6px;
  transition: background 140ms;
}
.plan-item-v3__time:hover { background: var(--accent-red-soft); }
.plan-item-v3__time::after {
  content: ' ✎'; opacity: 0; transition: opacity 140ms; font-size: 0.75em;
}
.plan-item-v3__time:hover::after { opacity: 0.7; }

/* ICONS — rounded squares */
.plan-icon {
  width: 48px; height: 48px; border-radius: 12px;
  align-self: center;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.plan-icon svg { width: 100%; height: 100%; display: block; }
.plan-icon--sm { width: 44px; height: 44px; border-radius: 10px; }

.plan-item-v3__body { min-width: 0; }
.plan-item-v3__name {
  font-weight: 600; font-size: 0.9375rem; line-height: 1.3;
  color: var(--text-primary);
}
.plan-item-v3__meta {
  display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap;
  font-size: 0.75rem; color: var(--text-muted); margin-top: 3px;
}
.plan-cat-pill {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 2px 8px; border-radius: 999px;
  background: var(--bg-beige-soft); color: var(--text-body);
  font-size: 0.6875rem; font-weight: 600;
}
/* ==== Note sur chaque lieu ajouté (planificateur) ==== */
.plan-item-v3__note-wrap {
  display: block; position: relative; margin-top: 8px;
}
.plan-item-v3__note-wrap::before {
  content: "";
  position: absolute; left: 12px; top: 11px;
  width: 16px; height: 16px; pointer-events: none;
  background: no-repeat center / contain
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B57A1A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M12 20h9'/><path d='M16.5 3.5a2.121 2.121 0 0 1 3 3L7 19l-4 1 1-4L16.5 3.5z'/></svg>");
  opacity: .7;
  transition: opacity 140ms ease, transform 140ms ease;
}
.plan-item-v3__note-wrap:focus-within::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C8302C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M12 20h9'/><path d='M16.5 3.5a2.121 2.121 0 0 1 3 3L7 19l-4 1 1-4L16.5 3.5z'/></svg>");
  opacity: 1;
  transform: rotate(-8deg) scale(1.05);
}
.plan-item-v3__note {
  width: 100%;
  padding: 8px 12px 8px 36px;
  min-height: 36px;
  background: #fffbeb;
  border: 1px solid #f0e4b8;
  border-left: 3px solid #e8c94a;
  border-radius: 10px;
  font-size: 0.8125rem; font-family: inherit;
  line-height: 1.5;
  color: var(--text-body);
  resize: none; outline: none;
  transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
  box-shadow: 0 1px 2px rgba(0,0,0,.02);
}
.plan-item-v3__note::placeholder {
  color: #a89455; font-style: normal; font-weight: 500;
}
.plan-item-v3__note:hover {
  border-color: #e6d994;
  background-color: #fff8dc;
}
.plan-item-v3__note:focus {
  border-color: var(--accent-red);
  border-left-color: var(--accent-red);
  background-color: #fffefa;
  box-shadow: 0 0 0 3px rgba(200,48,44,.10);
}
.plan-item-v3__note:not(:placeholder-shown) {
  background-color: #fff8dc;
  border-left-color: #c8302c;
}
.plan-item-v3__actions { display: inline-flex; gap: 2px; align-self: flex-start; }
.plan-item-v3__action {
  width: 26px; height: 26px; border-radius: 6px;
  color: var(--text-muted); font-size: 0.8rem;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background 140ms, color 140ms;
}
.plan-item-v3__action:hover { background: var(--bg-beige-soft); color: var(--accent-red); }
.plan-item-v3__action--info { font-size: 0.95rem; color: var(--accent-red); }
.plan-item-v3__action--info:hover { background: var(--accent-red-soft); color: var(--accent-red); }

/* Library item actions (ⓘ + bouton d'ajout +) */
.plan-lib-v3__item { grid-template-columns: 38px 1fr auto; }
.plan-lib-v3__actions {
  display: inline-flex; gap: 6px; align-items: center;
  align-self: center; flex-shrink: 0;
}
.plan-lib-v3__info {
  width: 26px; height: 26px; border-radius: 50%;
  background: transparent; border: none;
  color: var(--text-muted); font-size: 0.95rem;
  cursor: pointer; opacity: 0;
  transition: opacity 160ms, background 140ms, color 140ms;
  flex-shrink: 0;
}
.plan-lib-v3__item:hover .plan-lib-v3__info { opacity: 1; }
.plan-lib-v3__info:hover { background: var(--accent-red-soft); color: var(--accent-red); }
.plan-lib-v3__add-btn {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--accent-red); color: white;
  border: none; font-size: 1.25rem; font-weight: 400;
  line-height: 1; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 6px -1px rgba(200,48,44,0.35);
  transition: transform 160ms ease, background 160ms;
  flex-shrink: 0;
}
.plan-lib-v3__add-btn:hover { background: #A8201D; transform: scale(1.1); }
.plan-lib-v3__add-btn:active { transform: scale(0.94); }
.plan-lib-v3__add-btn.is-added {
  background: #2E7D32;
  animation: jc-pop-added 900ms ease;
}
.plan-lib-v3__add-btn.is-added::after { content: '✓'; }
.plan-lib-v3__add-btn.is-added { font-size: 1rem; }
@keyframes jc-pop-added {
  0%   { transform: scale(0.94); }
  25%  { transform: scale(1.25); }
  60%  { transform: scale(1); }
  100% { transform: scale(1); }
}

/* Pilule "jour actif" au-dessus de la liste */
.active-day-pill {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  margin: 0 0 12px;
  background: #FDF9F2;
  border: 1.5px dashed var(--border);
  border-radius: 12px;
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: all 200ms ease;
}
.active-day-pill.is-active {
  background: #FFF4E6;
  border: 1.5px solid #B8701E;
  color: var(--text-primary);
  box-shadow: 0 2px 8px -2px rgba(184,112,30,0.2);
}
.active-day-pill__icon { font-size: 1.1rem; flex-shrink: 0; }
.active-day-pill__label { flex: 1; }
.active-day-pill__label strong { color: #B8701E; }
.active-day-pill__count {
  display: inline-block; margin-left: 8px; padding: 2px 8px;
  background: white; border-radius: 999px;
  font-size: 0.75rem; font-weight: 700; color: #B8701E;
}
.active-day-pill__hint { font-size: 0.75rem; opacity: 0.75; }
.active-day-pill__unlock {
  width: 24px; height: 24px; border-radius: 50%;
  background: white; border: 1px solid var(--border);
  color: var(--text-muted); font-size: 0.75rem; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.active-day-pill__unlock:hover { color: var(--accent-red); border-color: var(--accent-red); }

/* Gros bouton "+ Ajouter" sur l'en-tête de chaque jour */
.plan-day-v3__add {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; margin-left: 8px;
  background: var(--accent-red); color: white;
  border: none; border-radius: 999px;
  font-size: 0.8125rem; font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 6px -1px rgba(200,48,44,0.35);
  transition: all 160ms ease;
  flex-shrink: 0;
}
.plan-day-v3__add:hover { background: #A8201D; transform: translateY(-1px); box-shadow: 0 4px 10px -2px rgba(200,48,44,0.4); }
.plan-day-v3__add:active { transform: translateY(0); }
.plan-day-v3__add span[aria-hidden] { font-size: 1.1rem; line-height: 1; font-weight: 400; }

/* Empty state : centre avec gros bouton d'ajout */
.plan-empty-v3 {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  padding: 32px 20px;
  text-align: center;
}
.plan-empty-v3__text { color: var(--text-muted); font-size: 0.9375rem; font-style: italic; }
.plan-empty-v3__add {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px;
  background: var(--accent-red); color: white;
  border: none; border-radius: 999px;
  font-size: 0.9375rem; font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 12px -2px rgba(200,48,44,0.4);
  transition: all 160ms ease;
}
.plan-empty-v3__add:hover { background: #A8201D; transform: translateY(-2px); box-shadow: 0 6px 16px -2px rgba(200,48,44,0.5); }

/* ==========================================================
   LIBRARY MODAL — bibliothèque en pop-up plein écran
   ========================================================== */
.jc-modal--library .jc-modal__dialog--library {
  max-width: 960px;
  width: calc(100vw - 40px);
  max-height: calc(100vh - 60px);
  padding: 0;
  overflow: hidden;
  display: flex; flex-direction: column;
}
.library-modal {
  display: flex; flex-direction: column;
  max-height: calc(100vh - 60px);
  overflow: hidden;
}
.library-modal__header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 28px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, #FDF9F2 0%, white 100%);
  flex-shrink: 0;
}
.library-modal__title {
  font-family: var(--font-display);
  font-size: 1.5rem; font-weight: 400; margin: 6px 0 0;
  line-height: 1.2;
}
.library-modal__title strong {
  color: var(--accent-red); font-weight: 600;
}
.library-modal__count {
  display: block; font-family: var(--font-body);
  font-size: 0.8125rem; font-weight: 500; color: var(--text-muted);
  margin-top: 4px; letter-spacing: 0;
}
.library-modal__close {
  width: 36px; height: 36px; border-radius: 50%;
  background: white; border: 1px solid var(--border);
  color: var(--text-muted); font-size: 1rem;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: all 140ms;
}
.library-modal__close:hover { background: var(--accent-red-soft); color: var(--accent-red); border-color: var(--accent-red); }

/* Zone filtrée scrollable */
.jc-modal__dialog--library .plan-lib-v3__search,
.jc-modal__dialog--library .plan-lib-v3__filters {
  padding: 0 28px;
  flex-shrink: 0;
}
.jc-modal__dialog--library .plan-lib-v3__search { margin-top: 16px; }
.jc-modal__dialog--library .plan-lib-v3__hint {
  padding: 0 28px; margin: 12px 0 14px;
  flex-shrink: 0;
}
.library-modal__grid {
  padding: 0 28px 8px;
  overflow-y: auto;
  flex: 1; min-height: 0;
  /* 2 colonnes pour mieux utiliser la largeur */
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 10px !important;
}
@media (max-width: 720px) {
  .library-modal__grid { grid-template-columns: 1fr; }
}
.library-modal__footer {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  padding: 14px 28px;
  border-top: 1px solid var(--border);
  background: var(--bg-cream-soft);
  flex-shrink: 0;
}
.library-modal__session {
  font-size: 0.8125rem; color: var(--text-muted);
}

/* Remplace le min-height/max-height du dialogue standard pour la modale library */
.jc-modal--library .jc-modal__dialog { max-height: none; }

/* Popover sélecteur de jour */
.plan-day-picker {
  position: fixed;
  z-index: 1200;
  width: 340px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 20px 48px -12px rgba(0,0,0,0.25), 0 4px 12px rgba(0,0,0,0.08);
  border: 1px solid var(--border);
  overflow: hidden;
  opacity: 1;
  pointer-events: auto;
}
.plan-day-picker.is-open { opacity: 1; pointer-events: auto; }
.plan-day-picker__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, #FDF9F2, white);
}
.plan-day-picker__title {
  font-size: 0.9375rem; font-weight: 600; color: var(--text-primary);
  max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.plan-day-picker__close {
  width: 28px; height: 28px; border-radius: 50%;
  background: transparent; border: none; cursor: pointer;
  color: var(--text-muted); font-size: 0.9rem;
}
.plan-day-picker__close:hover { background: var(--bg-cream-soft); color: var(--accent-red); }
.plan-day-picker__list {
  max-height: 320px;
  overflow-y: auto;
  padding: 8px 0;
}
.plan-day-picker__day {
  display: flex; align-items: center; gap: 10px;
  width: 100%; padding: 10px 16px;
  background: transparent; border: none;
  text-align: left; cursor: pointer;
  transition: background 120ms;
}
.plan-day-picker__day:hover { background: #FDF9F2; }
.plan-day-picker__day.is-warn { background: #FFFBF2; }
.plan-day-picker__day.is-warn:hover { background: #FFF4E6; }
.plan-day-picker__num {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--bg-cream-soft); color: var(--text-primary);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.875rem;
  flex-shrink: 0;
}
.plan-day-picker__content { flex: 1; min-width: 0; display: block; }
.plan-day-picker__content strong { display: block; font-size: 0.9375rem; color: var(--text-primary); }
.plan-day-picker__meta {
  display: block; font-size: 0.75rem; color: var(--text-muted); margin-top: 2px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.plan-day-picker__warn { font-size: 1rem; flex-shrink: 0; }
.plan-day-picker__lock {
  width: 28px; height: 28px; border-radius: 50%;
  background: transparent; font-size: 0.9rem;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0; opacity: 0.45;
  transition: all 140ms;
}
.plan-day-picker__day:hover .plan-day-picker__lock { opacity: 1; }
.plan-day-picker__lock:hover { background: #FFF4E6; transform: scale(1.15); }
.plan-day-picker__foot {
  padding: 10px 16px;
  background: var(--bg-cream-soft);
  font-size: 0.75rem; color: var(--text-muted);
  border-top: 1px solid var(--border);
}

/* ===================================================================
   MODALS (place info + city confirm)
   =================================================================== */
.jc-modal {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  animation: jc-modal-in 180ms ease-out;
}
.jc-modal[hidden] { display: none; }
@keyframes jc-modal-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.jc-modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(30, 18, 10, 0.55);
  backdrop-filter: blur(3px);
  cursor: pointer;
}
.jc-modal__dialog {
  position: relative;
  background: white;
  border-radius: 20px;
  box-shadow: 0 25px 60px -15px rgba(0,0,0,0.35), 0 10px 25px -10px rgba(0,0,0,0.2);
  max-width: 680px; width: 100%;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  animation: jc-dialog-in 220ms cubic-bezier(.2,.8,.2,1);
}
.jc-modal__dialog--small {
  max-width: 440px;
}
@keyframes jc-dialog-in {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.jc-modal__close {
  position: absolute; top: 14px; right: 14px; z-index: 10;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,0.9); border: none;
  color: var(--text-primary); font-size: 0.95rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; box-shadow: var(--shadow-sm);
  transition: background 140ms, transform 140ms;
}
.jc-modal__close:hover { background: white; transform: scale(1.05); }

/* ---- Place info modal content ---- */
.place-info__hero {
  height: 180px; position: relative;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.place-info__icon-wrap .plan-icon {
  width: 92px; height: 92px; border-radius: 22px;
  box-shadow: 0 8px 20px -6px rgba(0,0,0,0.2);
  background: rgba(255,255,255,0.55) !important;
}
.place-info__icon-wrap .plan-icon svg { padding: 14px; }
.place-info__hero-kanji {
  position: absolute;
  right: 28px; top: 50%; transform: translateY(-50%);
  font-family: var(--font-display); font-size: 5rem;
  color: rgba(255,255,255,0.45);
  line-height: 1; user-select: none; pointer-events: none;
  letter-spacing: -0.02em;
}
.place-info__body { padding: 22px 28px 28px; }
.place-info__head {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 20px; margin-bottom: 18px;
}
.place-info__cat {
  display: inline-block; padding: 4px 12px; border-radius: 999px;
  font-size: 0.6875rem; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase;
}
.place-info__name {
  font-family: var(--font-display); font-weight: 400;
  font-size: 2rem; line-height: 1.1;
  color: var(--text-primary);
  margin: 8px 0 4px;
}
.place-info__sub { font-size: 0.875rem; color: var(--text-muted); }
.place-info__rating {
  text-align: right; flex-shrink: 0;
  padding: 10px 14px; border-radius: 12px;
  background: var(--bg-cream-soft); border: 1px solid var(--border);
}
.place-info__rating-num {
  font-family: var(--font-display); font-size: 1.5rem;
  color: var(--accent-red); font-weight: 400; line-height: 1;
}
.place-info__rating-label {
  font-size: 0.6875rem; color: var(--text-muted);
  margin-top: 4px; letter-spacing: 0.04em; text-transform: uppercase;
  font-weight: 600;
}
.place-info__stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
  margin-bottom: 22px;
}
.place-info__stat {
  background: var(--bg-cream-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
}
.place-info__stat span {
  display: block; font-size: 0.6875rem; color: var(--text-muted);
  letter-spacing: 0.05em; text-transform: uppercase; font-weight: 600;
  margin-bottom: 4px;
}
.place-info__stat strong {
  font-size: 0.9375rem; color: var(--text-primary); font-weight: 700;
}
.place-info__h3 {
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-muted);
  margin: 18px 0 8px;
}
.place-info__desc {
  font-size: 0.9375rem; line-height: 1.6;
  color: var(--text-body); margin-bottom: 22px;
}
.place-info__grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
  margin-bottom: 18px;
}
.place-info__block {
  padding: 14px 16px; border-radius: 12px;
  background: var(--bg-beige-soft);
}
.place-info__block h4 {
  font-size: 0.75rem; font-weight: 700;
  color: var(--text-primary); margin-bottom: 6px;
}
.place-info__block p {
  font-size: 0.8125rem; color: var(--text-body); line-height: 1.4;
}
.place-info__tip {
  padding: 14px 16px; border-radius: 12px;
  background: var(--accent-red-soft);
  border-left: 3px solid var(--accent-red);
  margin-bottom: 20px;
}
.place-info__tip strong {
  display: block; font-size: 0.6875rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent-red); margin-bottom: 4px;
}
.place-info__tip p { font-size: 0.875rem; color: var(--text-body); line-height: 1.5; }
.place-info__actions {
  display: flex; gap: 10px; flex-wrap: wrap;
}
.place-info__actions .btn { flex: 1; min-width: 180px; }

/* ---- City change confirm ---- */
.jc-confirm {
  padding: 28px 28px 22px;
  text-align: center;
}
.jc-confirm__icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--accent-red-soft); color: var(--accent-red);
  font-size: 1.75rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
}
.jc-confirm__title {
  font-family: var(--font-display); font-weight: 400;
  font-size: 1.5rem; color: var(--text-primary);
  margin-bottom: 10px;
}
.jc-confirm__text {
  font-size: 0.9375rem; color: var(--text-body); line-height: 1.5;
  margin-bottom: 22px;
}
.jc-confirm__actions {
  display: flex; gap: 10px; justify-content: center;
}
.jc-confirm__actions .btn { flex: 1; max-width: 180px; }

.plan-empty-v3 {
  padding: 24px; border: 2px dashed var(--border);
  border-radius: var(--radius-sm); text-align: center;
  color: var(--text-muted); font-size: 0.875rem; font-style: italic;
}

/* ---------- Library v3 (sticky right column) ---------- */
.plan-lib-v3 {
  position: sticky; top: 20px;
  max-height: calc(100vh - 40px);
  display: flex; flex-direction: column;
}
.plan-lib-v3__card {
  background: white; border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 16px 16px 14px;
  display: flex; flex-direction: column;
  min-height: 0; flex: 1;
}
.plan-lib-v3__header {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 12px; flex-wrap: wrap;
  padding-bottom: 10px; margin-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.plan-lib-v3__title {
  font-family: var(--font-display); font-weight: 400;
  font-size: 1.375rem; line-height: 1.1;
  color: var(--text-primary);
  margin-top: 2px;
  display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
}
.plan-lib-v3__count-inline {
  font-family: var(--font-sans); font-size: 0.6875rem;
  font-weight: 600; color: var(--text-muted);
  padding: 2px 8px; background: var(--bg-beige-soft);
  border-radius: 999px; letter-spacing: 0.02em;
}
.plan-lib-v3__hint {
  font-size: 0.6875rem; color: var(--text-muted);
  margin: 4px 0 8px; line-height: 1.35;
}
.plan-lib-v3__search {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 12px; border-radius: 999px;
  background: var(--bg-beige-soft);
  border: 1px solid transparent;
  transition: border-color 160ms, background 160ms;
  margin-bottom: 10px;
}
.plan-lib-v3__search:focus-within { border-color: var(--accent-red); background: white; }
.plan-lib-v3__search input {
  flex: 1; border: none; background: none; outline: none;
  font-size: 0.8125rem; min-width: 0;
}

/* Filter rows — stacked label above chips (narrow column) */
.plan-lib-v3__filters {
  display: flex; flex-direction: column; gap: 8px;
  padding-bottom: 10px; margin-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.plan-lib-v3__filter-row {
  display: flex; flex-direction: column; gap: 5px;
}
.plan-lib-v3__filter-row[hidden] { display: none; }
.plan-lib-v3__filter-label {
  font-size: 0.5625rem; font-weight: 700;
  letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--text-subtle);
}
.plan-lib-v3__chip-row {
  display: flex; flex-wrap: wrap; gap: 4px;
}
.plan-lib-v3__chip {
  padding: 3px 9px; border-radius: 999px;
  background: var(--bg-beige-soft);
  font-size: 0.75rem; font-weight: 500;
  color: var(--text-body);
  transition: background 140ms, color 140ms;
  cursor: pointer; border: 1px solid transparent;
  line-height: 1.35;
}
.plan-lib-v3__chip:hover { background: white; border-color: var(--border); }
.plan-lib-v3__chip.is-active {
  background: var(--accent-red); color: white;
  border-color: var(--accent-red);
}
.plan-lib-v3__chip--all { font-weight: 600; }
.plan-lib-v3__chip--cat { display: inline-flex; align-items: center; gap: 4px; }

.plan-lib-v3__active-filters {
  display: flex; flex-wrap: wrap; gap: 5px; align-items: center;
}
.plan-lib-v3__active-filters:empty { display: none; }
.plan-lib-v3__active-chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px; border-radius: 999px;
  background: var(--accent-red-soft); color: var(--accent-red);
  font-size: 0.6875rem; font-weight: 600;
}
.plan-lib-v3__active-chip button {
  background: none; border: none; color: inherit;
  font-size: 0.875rem; line-height: 1; cursor: pointer;
  padding: 0; opacity: 0.7;
}
.plan-lib-v3__active-chip button:hover { opacity: 1; }
.plan-lib-v3__clear-all {
  font-size: 0.6875rem; font-weight: 600;
  color: var(--text-muted); text-decoration: underline;
  cursor: pointer; background: none; border: none;
}
.plan-lib-v3__clear-all:hover { color: var(--accent-red); }

/* Scrollable list of place cards (single column) */
.plan-lib-v3__grid {
  display: flex; flex-direction: column; gap: 5px;
  flex: 1; min-height: 200px;
  overflow-y: auto; overflow-x: hidden;
  padding-right: 4px;
  scrollbar-width: thin;
}
.plan-lib-v3__grid::-webkit-scrollbar { width: 6px; }
.plan-lib-v3__grid::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
.plan-lib-v3__item {
  display: grid; grid-template-columns: 38px 1fr auto; gap: 9px;
  padding: 7px 9px; align-items: center;
  background: var(--bg-cream-soft);
  border-radius: var(--radius-sm); cursor: grab;
  border: 1px solid transparent;
  transition: border-color 160ms, transform 160ms, background 160ms, box-shadow 160ms;
}
.plan-lib-v3__item:hover {
  border-color: var(--border); background: white;
  box-shadow: var(--shadow-sm);
  transform: translateX(-2px);
}
.plan-lib-v3__item:active { cursor: grabbing; }
.plan-lib-v3__item.is-dragging { opacity: 0.45; }
.plan-lib-v3__item .plan-icon--sm { width: 38px; height: 38px; border-radius: 9px; }
.plan-lib-v3__item-name {
  font-size: 0.8125rem; font-weight: 600; line-height: 1.2;
  color: var(--text-primary);
  overflow: hidden; text-overflow: ellipsis;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.plan-lib-v3__item-meta {
  font-size: 0.6875rem; color: var(--text-muted);
  margin-top: 2px; display: flex; align-items: center; gap: 5px; flex-wrap: wrap;
}
.plan-lib-v3__count { color: var(--text-muted); font-weight: 500; }

.plan-lib-v3__empty {
  padding: 30px 16px; text-align: center;
  color: var(--text-muted); font-size: 0.8125rem; font-style: italic;
}

.plan-save-badge-v3 {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.8125rem; padding: 6px 12px;
  background: var(--success-soft); color: #1F6B3A;
  border-radius: 999px; font-weight: 500;
}
.plan-save-badge-v3.is-saving { background: var(--gold-soft); color: #7A5A10; }
.plan-save-badge-v3::before {
  content: '●'; font-size: 0.5rem; color: var(--success);
}
.plan-save-badge-v3.is-saving::before { color: var(--gold); animation: pulse-dot 1s infinite; }

.plan-reset-btn-v3 {
  width: 100%; padding: 10px; background: transparent;
  border: 1px dashed var(--border); border-radius: 8px;
  color: var(--text-muted); font-size: 0.8125rem;
  transition: border-color 140ms, color 140ms;
}
.plan-reset-btn-v3:hover { border-color: var(--accent-red); color: var(--accent-red); }
