/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  background: #0a0a0a;
  color: #f0ede8;
  font-family: Georgia, 'Times New Roman', serif;
  line-height: 1.78;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { text-decoration: none; color: inherit; }
button { cursor: pointer; }

/* ── Top bar ── */
.tb {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #0a0a0a;
  border-bottom: 1px solid #1e1e1e;
  height: 52px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 8px;
}
.tb-t {
  font-family: -apple-system, Arial, sans-serif;
  font-size: 13px;
  color: #777;
  letter-spacing: .05em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

/* ── Main ── */
main {
  flex: 1;
  padding: 28px 20px 90px;
  max-width: 640px;
  margin: 0 auto;
  width: 100%;
}

/* ── Bottom nav ── */
.bn {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: #0f0f0f;
  border-top: 1px solid #1e1e1e;
  display: flex;
  height: 58px;
  overflow-x: auto;
  scrollbar-width: none;
}
.bn::-webkit-scrollbar { display: none; }
.bn a {
  flex: 1;
  min-width: 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: #555;
  font-family: -apple-system, Arial, sans-serif;
  font-size: 9px;
  letter-spacing: .02em;
  padding: 0 4px;
  transition: color .15s;
  position: relative;
}
.bn a.on { color: #5ecfbf; }
.bn a.on::after {
  content: '';
  position: absolute;
  top: 0;
  left: 25%;
  right: 25%;
  height: 2px;
  background: #5ecfbf;
}
.bn-i { font-size: 18px; line-height: 1; }

/* ── Page header ── */
.ph { margin-bottom: 28px; }
.ph-label {
  font-family: -apple-system, Arial, sans-serif;
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #5ecfbf;
  display: block;
  margin-bottom: 8px;
}
.ph h1 {
  font-size: clamp(22px, 5.5vw, 30px);
  font-weight: normal;
  line-height: 1.25;
  color: #fff;
}
.ph-meta {
  font-family: -apple-system, Arial, sans-serif;
  font-size: 12px;
  color: #666;
  margin-top: 8px;
  font-style: italic;
}

/* ── Body text ── */
.text p {
  margin-bottom: 1.5em;
  font-size: 19px;
  line-height: 1.78;
}
.text p:last-child { margin-bottom: 0; }
.text em { font-style: italic; }

/* ── Keywords ── */
.kw {
  color: #5ecfbf;
  border-bottom: 1px dotted #5ecfbf;
  cursor: pointer;
  font-style: normal;
  transition: color .15s;
}
.kw:hover, .kw:active { color: #7edfd8; }

/* ── Hero (accueil) ── */
.hero {
  text-align: center;
  padding: 36px 0 32px;
  border-bottom: 1px solid #1e1e1e;
  margin-bottom: 32px;
}
.hero-label {
  font-family: -apple-system, Arial, sans-serif;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #666;
  margin-bottom: 10px;
}
.hero h1 {
  font-size: clamp(36px, 10vw, 52px);
  font-weight: normal;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 14px;
}
.hero-lieu {
  font-family: -apple-system, Arial, sans-serif;
  font-size: 13px;
  color: #777;
  line-height: 1.6;
}
.hero-dates {
  display: inline-block;
  margin-top: 12px;
  background: #141414;
  color: #5ecfbf;
  font-family: -apple-system, Arial, sans-serif;
  font-size: 12px;
  padding: 6px 16px;
  border-radius: 20px;
  letter-spacing: .04em;
  border: 1px solid #2a2a2a;
}

/* ── Section label ── */
.sl {
  font-family: -apple-system, Arial, sans-serif;
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #555;
  margin-bottom: 14px;
}

/* ── Cards grid ── */
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
}
.card {
  display: block;
  background: #141414;
  border: 1px solid #222;
  border-radius: 12px;
  padding: 18px 16px;
  transition: border-color .2s, background .2s;
}
.card:hover, .card:active {
  border-color: #5ecfbf;
  background: #181818;
}
.card-num {
  font-family: -apple-system, Arial, sans-serif;
  font-size: 11px;
  letter-spacing: .08em;
  color: #5ecfbf;
  display: block;
  margin-bottom: 6px;
}
.card-title {
  font-size: 14px;
  line-height: 1.4;
  color: #f0ede8;
  display: block;
}

/* ── Chrono link ── */
.clink {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #141414;
  border: 1px solid #222;
  border-radius: 12px;
  padding: 18px 16px;
  width: 100%;
  text-align: left;
  margin-top: 10px;
  transition: border-color .2s;
}
.clink:hover { border-color: #5ecfbf; }
.clink-icon { font-size: 28px; flex-shrink: 0; }
.clink-label { flex: 1; }
.clink-t { font-size: 15px; color: #f0ede8; display: block; margin-bottom: 2px; }
.clink-s { font-family: -apple-system, Arial, sans-serif; font-size: 12px; color: #666; }
.clink-ar { color: #555; font-size: 22px; }

/* ── Divider ── */
hr { border: none; border-top: 1px solid #1e1e1e; margin: 24px 0; }

/* ── Keyword hint ── */
.kw-hint {
  font-family: -apple-system, Arial, sans-serif;
  font-size: 13px;
  color: #555;
  line-height: 1.55;
  margin-top: 24px;
  padding: 14px 16px;
  background: #111;
  border-radius: 10px;
  border-left: 3px solid #5ecfbf;
}

/* ── Timeline ── */
.tl { position: relative; padding: 4px 0; }
.tl::before {
  content: '';
  position: absolute;
  left: 21px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: #222;
}
.tl-item { display: flex; margin-bottom: 26px; position: relative; }
.tl-item:last-child { margin-bottom: 0; }
.tl-left { width: 42px; flex-shrink: 0; display: flex; flex-direction: column; align-items: center; padding-top: 5px; }
.tl-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #0a0a0a;
  border: 2px solid #444;
  flex-shrink: 0;
}
.tl-item.maj .tl-dot { background: #5ecfbf; border-color: #5ecfbf; width: 12px; height: 12px; }
.tl-r { flex: 1; padding-left: 10px; }
.tl-y {
  font-family: -apple-system, Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: #5ecfbf;
  letter-spacing: .04em;
  margin-bottom: 3px;
}
.tl-e { font-size: 16px; line-height: 1.5; color: #ddd; }
.tl-item.maj .tl-e { color: #fff; }
.tl-d {
  font-family: -apple-system, Arial, sans-serif;
  font-size: 13px;
  color: #666;
  margin-top: 4px;
  line-height: 1.55;
}

/* ── Modal ── */
.modal-wrap {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  align-items: flex-end;
}
.modal-wrap.open { display: flex; }
.modal-bg { position: absolute; inset: 0; background: rgba(0,0,0,.7); }
.modal-panel {
  position: relative;
  z-index: 1;
  background: #141414;
  border-radius: 20px 20px 0 0;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 40px;
}
.modal-grip { text-align: center; padding: 14px 0 4px; }
.modal-grip::before {
  content: '';
  display: inline-block;
  width: 36px;
  height: 4px;
  background: #333;
  border-radius: 2px;
}
.modal-x {
  position: absolute;
  top: 12px;
  right: 14px;
  background: #2a2a2a;
  border: none;
  color: #ccc;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-inner { padding: 4px 22px 0; }
.def-tag {
  font-family: -apple-system, Arial, sans-serif;
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #5ecfbf;
  display: block;
  margin-bottom: 8px;
}
.def-h { font-size: 22px; font-weight: normal; color: #fff; margin-bottom: 16px; line-height: 1.3; }
.def-img {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 6px;
  background: #1a1a1a;
  display: block;
}
.def-imgc {
  font-family: -apple-system, Arial, sans-serif;
  font-size: 11px;
  color: #555;
  text-align: center;
  margin-bottom: 14px;
  font-style: italic;
}
.def-text { font-size: 15px; line-height: 1.7; color: #ccc; }
.def-text p { margin-bottom: 1em; }
.def-text em { font-style: italic; }
.def-members {
  margin-top: 14px;
  background: #1e1e1e;
  border-radius: 10px;
  padding: 14px 16px;
}
.def-members h4 {
  font-family: -apple-system, Arial, sans-serif;
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #666;
  margin-bottom: 10px;
}
.def-members ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.def-members li {
  background: #141414;
  border: 1px solid #2a2a2a;
  border-radius: 20px;
  font-family: -apple-system, Arial, sans-serif;
  font-size: 12px;
  padding: 4px 12px;
  color: #bbb;
}

/* ── Desktop ── */
@media (min-width: 640px) {
  .bn {
    max-width: 640px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 1px solid #1e1e1e;
    border-right: 1px solid #1e1e1e;
    border-radius: 0;
  }
  .modal-wrap.open { align-items: center; }
  .modal-panel {
    max-width: 600px;
    margin: auto;
    border-radius: 20px;
    max-height: 80vh;
  }
  body { border-left: 1px solid #1e1e1e; border-right: 1px solid #1e1e1e; max-width: 640px; margin: 0 auto; }
}
