:root {
  --night: #080a18;
  --navy: #11152d;
  --cream: #090b17;
  --gold: #f4c45e;
  --pink: #f0789b;
  --ink: #f5f1e8;
  --muted: #a8acc1;
  --line: #292e48;
}

body {
  background: radial-gradient(circle at 12% 18%, #171a37 0, transparent 29%), radial-gradient(circle at 88% 75%, #15102a 0, transparent 24%), var(--cream);
  color: var(--ink);
}

.hero { background: linear-gradient(115deg, rgba(5,7,23,.98), rgba(16,18,51,.75)), url('https://thewaltdisneycompany.com/app/uploads/2025/11/KV-1_Disneyland-Paris_Disney-Adventure-World_World-Of-Frozen_Date-Revealed_Horizontal_UK-scaled.jpeg') center/cover; }
.wave { background: var(--cream); }
.intro > p, .card p, .card-foot, .result-line { color: var(--muted); }
.toolbar { border-color: var(--line); }

.search, .select-wrap select {
  background: #111527;
  border-color: var(--line);
  color: var(--ink);
  box-shadow: inset 0 1px 0 #ffffff08;
}

.search:focus-within, .select-wrap select:focus { border-color: #f4c45e80; box-shadow: 0 0 0 3px #f4c45e12; }
.search input { color: var(--ink); }
.search input::placeholder { color: #777c98; }
.tabs button, .result-line button { color: var(--muted); }
.tabs button:hover { color: #fff; background: #ffffff08; }
.tabs button.active { background: linear-gradient(135deg, #252b55, #171b3b); color: #fff; box-shadow: 0 7px 22px #0005, inset 0 0 0 1px #ffffff0d; }

.card {
  background: linear-gradient(155deg, #171b31, #0f1223);
  border-color: var(--line);
  box-shadow: 0 9px 28px #0003;
}

.card:hover { border-color: #4a506f; box-shadow: 0 22px 55px #0009, 0 0 0 1px #f4c45e10; }
.card-top.pink { background: radial-gradient(circle at 65% 30%, #e97eaa55, transparent 36%), linear-gradient(135deg, #4c1e3a, #8d3158); }
.card-top.blue { background: radial-gradient(circle at 65% 30%, #6a9fe855, transparent 36%), linear-gradient(135deg, #142d5c, #27568e); }
.heart { background: #101326; color: var(--pink); box-shadow: 0 5px 15px #0004; }
.card-foot { border-color: var(--line); }
.empty { color: var(--muted); }
footer { background: #050711; border-top: 1px solid #20243b; }
select option { background: #111527; color: var(--ink); }
::selection { background: #f4c45e; color: #111322; }

/* Finitions premium */
html { scrollbar-color: #343a61 #080a18; }
body { min-height: 100vh; overflow-x: hidden; }
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: .2;
  background-image: linear-gradient(#ffffff05 1px, transparent 1px), linear-gradient(90deg, #ffffff05 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 70%);
}

nav { backdrop-filter: blur(14px); background: linear-gradient(180deg, #07091899, transparent); }
.brand { letter-spacing: -.02em; }
.brand:first-letter { text-shadow: 0 0 22px #f4c45eaa; }
.nav-link { padding: 10px 0; position: relative; }
.nav-link::after { content: ""; position: absolute; left: 0; bottom: 4px; width: 0; height: 1px; background: var(--gold); transition: width .25s ease; }
.nav-link:hover::after { width: 100%; }

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 49.8%, #ffffff08 50%, transparent 50.2%);
  background-size: 180px 100%;
  pointer-events: none;
}
.hero-inner { isolation: isolate; }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; }
.eyebrow::before { content: ""; width: 34px; height: 1px; background: var(--gold); box-shadow: 0 0 12px var(--gold); }
h1 { letter-spacing: -.04em; text-wrap: balance; text-shadow: 0 8px 45px #0008; }
.hero-inner > p { color: #d2d5e4; text-wrap: pretty; }
.hero-cta { border-radius: 999px; box-shadow: 0 12px 32px #0005, inset 0 1px #fff6; }
.hero-cta:hover { box-shadow: 0 18px 42px #0008, 0 0 30px #f4c45e22; }
.hero-cta:active { transform: translateY(-1px) scale(.98); }

main { position: relative; }
.intro { padding-bottom: 10px; }
.intro h2 { letter-spacing: -.035em; text-wrap: balance; }
.intro > p { font-size: 15px; }

.toolbar {
  position: sticky;
  top: 14px;
  z-index: 10;
  padding: 12px;
  border: 1px solid #303650;
  border-radius: 16px;
  background: #0d1021dd;
  box-shadow: 0 18px 50px #0006;
  backdrop-filter: blur(20px) saturate(140%);
}
.search, .select-wrap select { min-height: 48px; border-radius: 10px; transition: border-color .2s, box-shadow .2s, background .2s; }
.search:hover, .select-wrap select:hover { background: #151a30; border-color: #3b4263; }
.search span { color: var(--gold); font-size: 23px; }
.tabs { padding: 4px; background: #080a17; border: 1px solid #222741; border-radius: 12px; }
.tabs button { border-radius: 8px; transition: color .2s, background .2s, transform .2s; }
.tabs button:active { transform: scale(.97); }
.result-line { padding-inline: 5px; }
.result-line button { border: 1px solid transparent; border-radius: 999px; transition: .2s; }
.result-line button:hover, .result-line button.active { color: #fff; border-color: #343a5b; background: #ffffff08; }

.grid { gap: 28px; }
.card { border-radius: 18px; overflow: hidden; position: relative; isolation: isolate; }
.card::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; opacity: 0; background: radial-gradient(circle at 80% 10%, #f4c45e15, transparent 36%); transition: opacity .3s; }
.card:hover::after { opacity: 1; }
.card-top { height: 170px; }
.card-top::before, .card-top::after { transition: transform .5s ease; }
.card:hover .card-top::before { transform: translate(-12px, 12px) scale(1.08); }
.card:hover .card-top::after { transform: translate(10px, -8px) scale(.94); }
.icon { transition: transform .35s cubic-bezier(.2,.8,.2,1), filter .35s; }
.card:hover .icon { transform: translateY(-5px) scale(1.1) rotate(-3deg); filter: drop-shadow(0 15px 18px #0006); }
.park-pill { border-radius: 999px; backdrop-filter: blur(8px); }
.heart { display: grid; place-items: center; transition: transform .2s, background .2s, color .2s; }
.heart:hover { transform: scale(1.1); }
.heart:active { transform: scale(.9); }
.card-body { padding: 25px; }
.card h3 { font-size: 24px; letter-spacing: -.02em; }
.card p { min-height: 62px; }
.arrow { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #ffffff08; transition: transform .25s, background .25s; }
.card:hover .arrow { transform: rotate(45deg); background: var(--pink); color: white; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.empty { border: 1px dashed #343a59; border-radius: 18px; background: #10132699; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

@media (max-width: 900px) {
  .toolbar { top: 8px; }
  .tabs { display: grid; grid-template-columns: repeat(3, minmax(max-content, 1fr)); }
}

@media (max-width: 580px) {
  nav { height: 72px; }
  .brand span { font-size: 17px; }
  .hero { min-height: 670px; }
  .hero-inner { padding-inline: 22px; }
  .hero-inner > p { font-size: 16px; }
  .hero-cta { width: 100%; justify-content: space-between; }
  main { padding: 66px 18px 80px; }
  .intro { margin-bottom: 38px; }
  .toolbar { padding: 9px; border-radius: 13px; }
  .tabs { overflow-x: auto; grid-template-columns: repeat(3, max-content); }
  .tabs button { min-height: 42px; }
  .grid { gap: 20px; }
  .card-top { height: 150px; }
  .card-body { padding: 22px; }
  footer { padding-block: 42px; }
}

/* Cartes paysage et pagination */
.grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { display: grid; grid-template-columns: 190px minmax(0, 1fr); min-height: 238px; }
.card-top { height: 100%; min-height: 238px; }
.card-body { display: flex; flex-direction: column; }
.card h3 { margin-block: 9px; }
.card p { min-height: 0; margin: 0 0 20px; }
.card-foot { margin-top: auto; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 48px; }
.pagination button { width: 46px; height: 46px; border: 1px solid #303650; border-radius: 12px; background: #111527; color: var(--muted); font: 700 14px 'DM Sans', sans-serif; cursor: pointer; box-shadow: 0 8px 22px #0003; transition: transform .2s, color .2s, border-color .2s, background .2s; }
.pagination button:hover { transform: translateY(-3px); color: #fff; border-color: #525a7e; }
.pagination button.active { color: #111322; border-color: var(--gold); background: var(--gold); box-shadow: 0 10px 28px #f4c45e2b; }
.pagination button[hidden], .pagination[hidden] { display: none; }
.pagination { display: none !important; }
.rating { display: flex; gap: 7px; margin: auto 0 14px; }
.rating button { width: 34px; height: 32px; border: 1px solid #343a5b; border-radius: 8px; background: #0b0e1d; color: var(--muted); font: 700 12px 'DM Sans', sans-serif; cursor: pointer; transition: transform .18s, color .18s, border-color .18s, background .18s; }
.rating button:hover { transform: translateY(-2px); color: #fff; border-color: var(--gold); }
.rating button.active { color: #111322; border-color: var(--gold); background: var(--gold); box-shadow: 0 6px 18px #f4c45e25; }
.card[hidden] { display: none !important; }
.rating button { position: relative; z-index: 4; pointer-events: auto; }
.tour-head { display: flex; align-items: center; justify-content: space-between; margin-top: auto; margin-bottom: 8px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.tour-count { color: var(--gold); font-size: 11px; }
.rating.tours { margin: 0 0 10px; }
.rating .toggle-all { margin-left: auto; color: #77d9a0; border-color: #315443; }
.rating .toggle-all:hover { color: #0a1710; border-color: #77d9a0; background: #77d9a0; }
.progress { height: 3px; overflow: hidden; margin-bottom: 13px; border-radius: 999px; background: #080a17; }
.progress span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--pink), var(--gold)); box-shadow: 0 0 12px #f4c45e88; transition: width .3s ease; }
.status { color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.card.complete { border-color: #3b7657; background: linear-gradient(155deg, #152a25, #0d1819); }
.card.complete .status { color: #77d9a0; }
.card.complete .card-top { filter: saturate(.7); }
.reward-row { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 9px; margin: 4px 0 17px; }
.coin-badge { display: grid; grid-template-columns: auto auto; grid-template-rows: auto auto; column-gap: 7px; align-items: center; min-width: 112px; padding: 9px 12px; border: 1px solid #6f592f; border-radius: 10px; background: linear-gradient(145deg,#2b2416,#18170f); }
.coin-badge i { grid-row: 1/3; color: var(--gold); font-style: normal; text-shadow: 0 0 12px #f4c45e99; }
.coin-badge strong { color: var(--gold); font-size: 15px; line-height: 1; }
.coin-badge small { color: #9d906e; font-size: 8px; letter-spacing: .06em; text-transform: uppercase; }
.warp-button { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 11px 9px 13px; border: 1px solid #303650; border-radius: 10px; background: #090c1b; color: #b9bdd0; cursor: pointer; transition: border-color .2s, background .2s, transform .2s; }
.warp-button:hover { border-color: #586084; background: #11162a; transform: translateY(-1px); }
.warp-button span { overflow: hidden; color: #d8daea; font: 600 11px ui-monospace,SFMono-Regular,Consolas,monospace; text-overflow: ellipsis; white-space: nowrap; }
.warp-button b { flex: none; padding: 5px 7px; border-radius: 6px; background: #252b4d; color: #c9ccec; font-size: 8px; letter-spacing: .07em; text-transform: uppercase; }
.warp-button.copied { border-color: #4b966a; }
.warp-button.copied b { background: #77d9a0; color: #092013; }
.card-foot { justify-content: flex-end; }
.dashboard { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 0 0 34px; position: relative; z-index: 3; }
.dash-card { min-height: 120px; padding: 22px; border: 1px solid #303650; border-radius: 16px; background: linear-gradient(145deg,#171b31,#0d1020); box-shadow: 0 18px 45px #0005; }
.dash-card > span { display: block; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.dash-card strong { display: block; margin-top: 13px; color: var(--ink); font-family: 'Playfair Display',serif; font-size: 34px; }
.dash-card strong b { color: var(--gold); font-weight: 700; }
.dash-card strong small { margin-left: 4px; color: #656a84; font: 500 13px 'DM Sans',sans-serif; }
.dash-card.reset strong { font: 700 25px 'DM Sans',sans-serif; letter-spacing: .05em; }
.day-progress { height: 3px; margin-top: 13px; overflow: hidden; border-radius: 5px; background: #080a17; }
.day-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg,var(--pink),var(--gold)); }
.tracker-tools { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 24px 0 5px; }
.state-filter { display: flex; gap: 7px; flex-wrap: wrap; }
.state-filter button,.tracker-tools select { min-height: 38px; padding: 0 14px; border: 1px solid #303650; border-radius: 999px; background: #101426; color: var(--muted); font: 600 12px 'DM Sans',sans-serif; cursor: pointer; }
.state-filter button.active { color: #111322; border-color: var(--gold); background: var(--gold); }
.tracker-tools label { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.tracker-tools select { border-radius: 9px; outline: 0; }
.history { margin-top: 100px; padding: 34px; border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(145deg,#15192d,#0b0e1c); }
.history h2 { margin: 9px 0 30px; font-size: 35px; }
.history-chart { display: grid; grid-template-columns: repeat(7,1fr); gap: 14px; height: 210px; }
.history-day { display: grid; grid-template-rows: 1fr auto; gap: 10px; text-align: center; }
.bar-wrap { display: flex; align-items: end; justify-content: center; min-height: 0; border-bottom: 1px solid #2c314b; }
.bar-wrap > span { display: block; position: relative; width: min(52px,70%); min-height: 4px; border-radius: 8px 8px 2px 2px; background: linear-gradient(180deg,var(--gold),var(--pink)); box-shadow: 0 0 25px #f0789b22; transition: height .4s ease; }
.bar-wrap b { position: absolute; top: -22px; left: 50%; transform: translateX(-50%); color: var(--muted); font-size: 10px; }
.history-day small { color: var(--muted); text-transform: uppercase; font-weight: 700; }
.success-modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: #050712e8; backdrop-filter: blur(14px); }
.success-modal[hidden] { display: none; }
.success-box { width: min(500px,100%); padding: 48px; border: 1px solid #f4c45e55; border-radius: 24px; background: radial-gradient(circle at 50% 0,#f4c45e18,transparent 40%),#111527; text-align: center; box-shadow: 0 30px 90px #000b; }
.success-box > span { color: var(--gold); font-size: 48px; }
.success-box h2 { font-size: 42px; color: var(--gold); }
.success-box p { color: var(--muted); }
.success-box button { margin-top: 20px; padding: 13px 24px; border: 0; border-radius: 999px; background: var(--gold); color: #111322; font-weight: 800; cursor: pointer; }
@media (max-width: 1050px) { .grid { grid-template-columns: 1fr; } }
@media (max-width: 900px) { .dashboard { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 580px) {
  .card { grid-template-columns: 128px minmax(0, 1fr); min-height: 250px; }
  .card-top { min-height: 250px; }
  .card .icon { font-size: 50px; }
  .card-body { padding: 19px; }
  .card h3 { font-size: 20px; }
  .card p { font-size: 12px; }
  .pagination { gap: 7px; margin-top: 34px; }
  .pagination button { width: 40px; height: 40px; border-radius: 10px; }
  .dashboard { grid-template-columns: 1fr 1fr; gap: 9px; margin-bottom: 55px; }
  .dash-card { min-height: 100px; padding: 16px; }
  .dash-card strong { font-size: 27px; }
  .dash-card.reset strong { font-size: 18px; }
  .tracker-tools { align-items: stretch; flex-direction: column; }
  .tracker-tools label { justify-content: space-between; }
  .state-filter { display: grid; grid-template-columns: repeat(2,1fr); }
  .history { margin-top: 70px; padding: 24px 16px; }
  .history-chart { gap: 6px; height: 170px; }
  .bar-wrap > span { width: 65%; }
  .success-box { padding: 36px 24px; }
}
