/* ═══════════════════════════════════════════
   GREECE TRIPS — L'Album de Bord
   Layout : sidebar + main · Éditorial méditerranéen
   ═══════════════════════════════════════════ */

:root {
  --bg: #faf7f2;
  --bg-alt: #f1ece2;
  --surface: #ffffff;
  --sidebar: #0e1e26;
  --sidebar-text: #c7d5da;
  --sidebar-muted: #6b8289;
  --text: #12303a;
  --text-soft: #5b6e75;
  --muted: #8a999e;
  --line: #e5ddd0;
  --accent: #0e7c86;
  --accent-bright: #14b8c6;
  --sunset: #e2603a;
  --gold: #d9a441;
  --day1: #3b82f6;
  --day2: #10b981;
  --day3: #ff7a00;
  --day4: #8b5cf6;
  --day5: #ef4444;
  --day6: #06b6d4;
  --day7: #f59e0b;
  --day8: #6366f1;
  --day9: #14b8a6;
  --day10: #ec4899;
  --day11: #84cc16;
  --day12: #0ea5e9;
  --day13: #a855f7;
  --day14: #64748b;
  --shadow: 0 20px 50px -20px rgba(18, 48, 58, 0.25);
  --radius: 18px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Plus Jakarta Sans", system-ui, sans-serif;
  --sidebar-w: 260px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 20px; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.kicker {
  font-size: 11px; font-weight: 800; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 10px;
}
h2 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(30px, 4vw, 48px); line-height: 1.05;
  letter-spacing: -0.02em; margin-bottom: 12px;
}
.section-sub { color: var(--text-soft); max-width: 640px; font-size: 15px; }
.section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 24px; }
em { font-style: italic; }

/* ══════════ LAYOUT ══════════ */
.layout { display: flex; min-height: 100vh; }

/* ── Sidebar ── */
.sidebar {
  width: var(--sidebar-w); flex-shrink: 0;
  background: var(--sidebar); color: var(--sidebar-text);
  position: fixed; top: 0; bottom: 0; left: 0; z-index: 100;
  display: flex; flex-direction: column; padding: 28px 20px;
  overflow-y: auto;
}
.brand { display: flex; align-items: center; gap: 12px; margin-bottom: 34px; }
.brand-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-bright));
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: #fff;
}
.brand-text strong { display: block; font-family: var(--font-display); font-size: 18px; color: #fdfaf4; letter-spacing: 0.02em; }
.brand-text em { font-size: 12px; color: var(--sidebar-muted); }

.side-nav { display: flex; flex-direction: column; gap: 2px; margin-bottom: 30px; }
.side-nav a {
  color: var(--sidebar-text); font-size: 14px; font-weight: 600;
  padding: 10px 12px; border-radius: 10px; transition: all .2s;
  display: flex; align-items: center; gap: 10px;
}
.side-nav a::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: transparent; transition: background .2s; }
.side-nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.side-nav a.active { background: rgba(20,184,198,.14); color: var(--accent-bright); }
.side-nav a.active::before { background: var(--accent-bright); }

.side-years { margin-bottom: auto; }
.side-label {
  font-size: 10px; font-weight: 800; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--sidebar-muted); margin-bottom: 10px;
}
.year {
  display: flex; align-items: center; gap: 10px;
  color: var(--sidebar-text); font-size: 13.5px; font-weight: 600;
  padding: 9px 12px; border-radius: 10px; transition: all .2s;
}
.year .dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.year em { font-style: normal; color: var(--sidebar-muted); font-size: 12px; font-weight: 400; }
.year:hover { background: rgba(255,255,255,.06); color: #fff; }
.year.active { background: rgba(20,184,198,.14); color: var(--accent-bright); }
.year.add-year { color: var(--sidebar-muted); border: 1px dashed rgba(255,255,255,.15); margin-top: 8px; justify-content: center; }

.side-foot { margin-top: 24px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.08); }
.side-social { display: flex; gap: 12px; margin-bottom: 10px; }
.side-social a {
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center;
  color: var(--sidebar-text); font-size: 15px; transition: all .2s;
}
.side-social a:hover { background: var(--accent); color: #fff; }
.side-copy { font-size: 11px; color: var(--sidebar-muted); }

/* ── Main ── */
.main { flex: 1; margin-left: var(--sidebar-w); min-width: 0; }

/* ══════════ HERO ══════════ */
.hero { position: relative; min-height: 92vh; display: flex; align-items: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,25,32,.30) 0%, rgba(10,25,32,.55) 60%, rgba(10,25,32,.9) 100%); }
.hero-content { position: relative; z-index: 2; padding: 100px 48px 60px; max-width: 760px; color: #fdfaf4; }
.hero-eyebrow { font-size: 12.5px; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase; color: #ffd9c2; margin-bottom: 18px; }
.hero-title { font-family: var(--font-display); font-weight: 300; font-size: clamp(54px, 9vw, 110px); line-height: 0.94; letter-spacing: -0.03em; margin-bottom: 22px; }
.hero-title span { font-style: italic; color: #bff3f0; }
.hero-sub { font-size: clamp(15px, 1.8vw, 18px); color: rgba(253,250,244,.88); margin-bottom: 32px; line-height: 1.6; }
.btn { display: inline-block; padding: 14px 30px; border-radius: 999px; font-weight: 700; font-size: 14px; transition: all .25s; border: 1px solid transparent; }
.btn-primary { background: var(--sunset); color: #fff; box-shadow: 0 12px 30px -12px rgba(226,96,58,.7); }
.btn-primary:hover { transform: translateY(-2px); background: #f0714a; }

/* ══════════ TIMELINE ══════════ */
.timeline { margin-top: 36px; display: flex; flex-direction: column; }
.day-card {
  display: grid; grid-template-columns: 130px 1fr; gap: 24px;
  padding: 22px 0; border-bottom: 1px dashed var(--line); align-items: start;
}
.day-card:last-child { border-bottom: 0; }
.day-date { text-align: left; }
.day-date .dow { font-size: 12px; font-weight: 800; letter-spacing: .1em; color: var(--muted); text-transform: uppercase; }
.day-date .num { font-family: var(--font-display); font-size: 30px; font-weight: 600; color: var(--text); }
.day-date .month { font-size: 12px; color: var(--muted); }
.day-main { min-width: 0; }
.day-leg { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.day-leg h3 { font-family: var(--font-display); font-size: 22px; font-weight: 600; }
.day-leg .badge {
  font-size: 11px; font-weight: 800; padding: 3px 10px; border-radius: 999px; color: #fff;
}
.day-meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.day-meta span { display: flex; align-items: center; gap: 5px; }
.day-spots { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.spot-chip { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--bg-alt); color: var(--text-soft); }
.spot-chip.must { background: rgba(226,96,58,.12); color: var(--sunset); }
.day-notes { font-size: 13.5px; color: var(--text-soft); line-height: 1.5; }
.day-empty {
  margin-top: 10px; border: 1px dashed var(--line); border-radius: 12px;
  padding: 12px 16px; font-size: 13px; color: var(--muted);
  background: rgba(241,236,226,.4);
}
.day-empty strong { color: var(--text-soft); }
.day-empty .journal-placeholder::after { content: "Journal : « ... »"; }
.day-empty .memory-placeholder::after { content: "Souvenir du jour : « ... »"; }

/* ══════════ MAP ══════════ */
.map-canvas { width: 100%; height: 540px; border-radius: var(--radius); box-shadow: var(--shadow); z-index: 1; }
.map-filters { display: flex; gap: 8px; flex-wrap: wrap; max-width: 480px; }
.map-filter {
  border: 1px solid var(--line); background: var(--surface); border-radius: 999px;
  padding: 7px 13px; font-size: 12px; font-weight: 700; cursor: pointer;
  transition: all .2s; color: var(--text-soft); display: flex; align-items: center; gap: 6px;
}
.map-filter .dot { width: 8px; height: 8px; border-radius: 50%; }
.map-filter.active { background: var(--text); color: #fff; border-color: var(--text); }
.map-note { margin-top: 12px; font-size: 12px; color: var(--muted); }
.leaflet-popup-content-wrapper { border-radius: 14px; }
.leaflet-popup-content .popup-name { font-weight: 800; font-size: 14px; color: var(--text); }
.leaflet-popup-content .popup-note { font-size: 12px; color: var(--text-soft); margin-top: 3px; }
.leaflet-popup-content .popup-must {
  display: inline-block; margin-top: 5px; font-size: 10px; font-weight: 800;
  background: rgba(226,96,58,.14); color: var(--sunset); padding: 2px 8px; border-radius: 999px;
}

/* ══════════ ÎLES ══════════ */
.island-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; margin-top: 30px; }
.island-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; transition: transform .3s, box-shadow .3s; position: relative; overflow: hidden;
}
.island-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--card-color, var(--accent)); }
.island-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.island-card h3 { font-family: var(--font-display); font-size: 22px; font-weight: 600; margin-bottom: 6px; }
.island-card .island-days { font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.island-card .island-musts { display: flex; flex-wrap: wrap; gap: 5px; }
.island-card .island-must {
  font-size: 11px; font-weight: 700; background: rgba(226,96,58,.1); color: var(--sunset);
  padding: 3px 8px; border-radius: 999px;
}

/* ══════════ STRAT / FAMILLE ══════════ */
.strat-grid, .family-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-top: 30px; }
.strat-card, .family-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; transition: transform .3s, box-shadow .3s;
}
.strat-card:hover, .family-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.strat-card h3, .family-card h3 { font-size: 16px; font-weight: 800; margin-bottom: 8px; }
.strat-card p, .family-card p, .family-card li { color: var(--text-soft); font-size: 13.5px; }
.family-card ul { padding-left: 18px; margin-top: 6px; }
.family-card li { margin-bottom: 5px; }

/* ══════════ GALERIE ══════════ */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin-top: 30px; }
.gallery-item { position: relative; border-radius: 14px; overflow: hidden; cursor: pointer; box-shadow: 0 10px 26px -18px rgba(18,48,58,.4); }
.gallery-item img { aspect-ratio: 4/3; object-fit: cover; transition: transform .5s; width: 100%; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item .gallery-cap {
  position: absolute; bottom: 0; left: 0; right: 0; padding: 26px 12px 10px;
  background: linear-gradient(transparent, rgba(10,25,32,.82));
  color: #fdfaf4; font-size: 12px; font-weight: 600;
}

/* ══════════ ARCHIVE ══════════ */
.archive { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.archive-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 30px; min-width: 180px; text-align: center; transition: all .3s;
  position: relative; overflow: hidden;
}
.archive-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; }
.archive-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.archive-card .arc-year { font-family: var(--font-display); font-size: 34px; font-weight: 600; }
.archive-card .arc-title { font-size: 12.5px; color: var(--text-soft); margin-top: 4px; }
.archive-card.empty { border-style: dashed; color: var(--muted); }
.archive-card.empty .arc-year { color: var(--muted); font-weight: 400; }

/* ══════════ FOOTER ══════════ */
.footer { background: var(--sidebar); color: #9fb3ba; padding: 44px 0 54px; }
.footer .container { text-align: center; }
.footer-brand { font-family: var(--font-display); font-size: 20px; color: #fdfaf4; margin-bottom: 12px; }
.footer-note { font-size: 12.5px; max-width: 620px; margin: 0 auto 8px; line-height: 1.6; }
.footer-sources { font-size: 11.5px; color: #6b8289; }

/* ══════════ RESPONSIVE ══════════ */
@media (max-width: 960px) {
  .sidebar {
    position: fixed; top: 0; left: 0; right: 0; bottom: auto; width: 100%;
    height: auto; flex-direction: row; align-items: center; gap: 16px;
    padding: 12px 16px; overflow: visible; z-index: 200;
  }
  .brand { margin-bottom: 0; }
  .brand-icon { width: 36px; height: 36px; font-size: 18px; }
  .brand-text strong { font-size: 15px; }
  .brand-text em { display: none; }
  .side-nav {
    display: none; position: fixed; top: 60px; left: 0; right: 0;
    background: var(--sidebar); padding: 14px 20px 20px;
    border-bottom: 1px solid rgba(255,255,255,.1);
  }
  .side-nav.open { display: flex; }
  .side-years, .side-foot { display: none; }
  .main { margin-left: 0; padding-top: 60px; }
  .hero-content { padding: 80px 24px 50px; }
  .day-card { grid-template-columns: 1fr; gap: 10px; }
  .section { padding: 56px 0; }
  .map-canvas { height: 420px; }
}
@media (max-width: 480px) {
  .hero-title { font-size: 54px; }
  .gallery { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}
