/* Couche visuelle et composants de navigation de la nouvelle édition. */
:root {
  --night: #080d18;
  --night2: #101b2c;
  --ink: #16223a;
  --muted: #607080;
  --cream: #eef2f1;
  --paper: #f8faf9;
  --line: #dce5e6;
  --cyan: #83e8e6;
  --orange: #f2b58c;
}

body { font-family: "Aptos", "Segoe UI", Arial, sans-serif; }
[hidden] { display: none !important; }
h1, h2, h3 { font-family: "Bahnschrift", "Aptos Display", "Segoe UI", sans-serif; }
h1, h2 { letter-spacing: -.065em; }
.container { width: min(100% - 64px, 1240px); }
.site-header {
  position: sticky;
  top: 0;
  height: 72px;
  background: rgba(8, 13, 24, .83);
  border-bottom: 1px solid rgba(180, 227, 230, .14);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.header-inner { width: min(100% - 64px, 1360px); }
.brand { letter-spacing: .04em; font-size: 1.05rem; }
.brand-mark { color: var(--cyan); }
.main-nav { gap: 8px; }
.main-nav a {
  padding: 9px 13px;
  border-radius: 100px;
  font-weight: 600;
  transition: background .2s, color .2s;
}
.main-nav a:hover, .main-nav .is-active { background: rgba(131, 232, 230, .12); }
.header-note { color: #c2d6dc; border-color: #365166; font-size: .6rem; }

.hero {
  background:
    radial-gradient(ellipse 52% 75% at 78% 42%, rgba(67, 154, 169, .25), transparent 75%),
    radial-gradient(ellipse 43% 50% at 6% 7%, rgba(113, 121, 201, .13), transparent 80%),
    #080d18;
}
.hero-grid { min-height: 720px; }
.hero h1 { font-weight: 630; line-height: .99; }
.hero h1 em { font-weight: 400; }
.hero-lead { max-width: 550px; font-size: 1.23rem; line-height: 1.65; }
.hero-art:before { opacity: .5; }
.planet-glow {
  background: radial-gradient(circle at 27% 22%, #a5e5e8, #5ea6ad 21%, #244f67 49%, #08162b 76%);
  box-shadow: inset -30px -23px 47px #061225, 0 0 70px rgba(86, 194, 201, .27), 0 0 140px rgba(103, 183, 219, .12);
}
.hero-art__label { border-radius: 0 12px 12px 0; backdrop-filter: blur(14px); }
.hero-facts { border-color: rgba(189, 230, 231, .22); }
.button { border-radius: 9px; min-height: 52px; }
.button--primary { box-shadow: 0 14px 28px rgba(82, 211, 214, .14); }
.button--ghost { background: rgba(255, 255, 255, .03); }

.journey {
  background: #101b2b;
  border-block: 1px solid rgba(175, 218, 226, .16);
  padding: 18px 0;
}
.journey__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.journey a {
  min-height: 140px;
  display: flex;
  flex-direction: column;
  position: relative;
  padding: 20px 22px;
  border: 1px solid rgba(182, 222, 229, .13);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(255,255,255,.055), rgba(255,255,255,.018));
  transition: transform .2s, border-color .2s, background .2s;
}
.journey a:hover { transform: translateY(-4px); border-color: rgba(131, 232, 230, .6); background: rgba(131, 232, 230, .08); }
.journey span { color: var(--cyan); font: 700 .62rem Consolas, monospace; letter-spacing: .11em; }
.journey strong { font-size: 1.22rem; margin-top: 12px; }
.journey small { font-size: .78rem; color: #9db5bf; margin-top: 3px; }
.journey b { position: absolute; top: 17px; right: 20px; color: #8ddddd; }

.section--light, .section--cream { color: var(--ink); }
.section-heading h2, .split-intro h2 { max-width: 850px; }
.three-features article { border-color: #d6e2e1; }
.feature-icon { border-radius: 11px; background: #eaf4f3; border-color: #c8e3e1; }
.place-card, .character-card:not(.character-card--featured) {
  border-radius: 14px;
  background: linear-gradient(145deg, #14263b, #0d1a29 75%);
  border-color: #2b4258;
}
.place-card:nth-child(2) { background: linear-gradient(145deg, #253044, #121c2a 75%); }
.place-card:nth-child(3) { background: linear-gradient(145deg, #263145, #111c2b 75%); }
.place-card:nth-child(4) { background: linear-gradient(145deg, #2d2a42, #121929 75%); }
.place-grid, .atlas-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.place-card__orb { filter: saturate(.9); }
.character-card--featured { border-radius: 14px; box-shadow: 0 10px 36px rgba(38, 75, 89, .06); }
.signal-panel { border-radius: 22px; overflow: hidden; border-color: #466a77; box-shadow: 0 26px 65px rgba(0,0,0,.18); }
.signal-panel__graphic { background: radial-gradient(circle, #204f68 0, #152d43 44%, #0b1a2d 78%); }
.site-footer { background: #060b14; }

.page-intro {
  width: 100%;
  max-width: none;
  padding: 85px max(32px, calc((100vw - 1240px)/2)) 72px;
  background: radial-gradient(ellipse 55% 80% at 93% 8%, rgba(93, 174, 192, .13), transparent), #0c1727;
}
.page-intro h1 { font-weight: 650; }
.page-intro .lead { color: #c0d0d8; }
.big-statement, .reference-card { border-radius: 14px; }
.big-statement { background: linear-gradient(150deg, #1d4052, #102032 70%); }
.species-list, .list-row { border-color: #d7e3e4; }
.relation-grid article { border-color: #d0dddd; }

.directory-jump, .topic-nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding-block: 34px 10px;
}
.directory-jump a, .topic-nav a {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 118px;
  padding: 18px;
  border: 1px solid #32475e;
  border-radius: 12px;
  background: #122034;
  transition: transform .2s, border-color .2s;
}
.directory-jump a:hover, .topic-nav a:hover { transform: translateY(-4px); border-color: var(--cyan); }
.directory-jump span, .topic-nav span { font: 700 .67rem Consolas, monospace; color: var(--cyan); letter-spacing: .1em; }
.directory-jump strong, .topic-nav strong { font-size: 1rem; margin-top: 16px; line-height: 1.2; }
.directory-jump small { font-size: .7rem; color: #91aeb9; margin-top: 4px; }
.directory-jump b, .topic-nav b { position: absolute; top: 15px; right: 17px; color: var(--cyan); }
.topic-nav { grid-template-columns: repeat(3, 1fr); padding-bottom: 50px; }
.directory { padding-top: 48px; }
.directory-controls {
  border: 1px solid #31465c;
  border-radius: 16px;
  background: #101c2d;
  padding: 22px;
  gap: 15px;
}
.search-wrap input, .chip, .group-filter-wrap select { border-radius: 9px; }
.search-wrap input { background: #0b1625; border-color: #38536a; }
.group-filter-wrap { display: flex; flex-direction: column; min-width: 205px; }
.group-filter-wrap label { color: #9eb4b2; font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; margin-bottom: 8px; }
.group-filter-wrap select { min-height: 48px; padding: 9px 30px 9px 13px; color: #e2eeee; background: #0b1625; border: 1px solid #38536a; }
.group-filter-wrap select:focus-visible { outline: 3px solid var(--orange); }
.character-group { scroll-margin-top: 100px; }
.character-card__glyph { color: rgba(143, 208, 219, .1); }

.profile-hero { padding-top: 55px; padding-bottom: 72px; background: radial-gradient(circle at 80% 50%, rgba(86, 192, 207, .09), transparent 43%); }
.profile-hero h1 { font-weight: 660; }
.profile-emblem { background: radial-gradient(circle, #245067, #102339 65%, transparent 71%); }
.profile-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: -32px;
  margin-bottom: 0;
  position: relative;
  z-index: 1;
  border: 1px solid #34546a;
  border-radius: 14px;
  overflow: hidden;
  background: #13243a;
  box-shadow: 0 18px 45px rgba(2, 10, 22, .25);
}
.profile-facts>div { display: flex; flex-direction: column; min-height: 105px; padding: 19px 21px; border-right: 1px solid #34546a; }
.profile-facts>div:last-child { border: 0; }
.profile-facts span { font-size: .64rem; color: #8fb5c0; text-transform: uppercase; letter-spacing: .15em; font-weight: 700; }
.profile-facts strong { font-size: 1rem; font-weight: 600; margin-top: 10px; line-height: 1.3; }
.profile-layout { padding-top: 30px; }
.profile-section p { color: #40566b; line-height: 1.75; }
.related-people { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; padding-top: 55px; padding-bottom: 45px; border-bottom: 1px solid #30485d; }
.related-people .mono { color: var(--cyan); }
.related-people h2 { font-size: 2rem; margin: 13px 0 0; }
.related-people__links { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.related-people__links a { border: 1px solid #446073; border-radius: 100px; padding: 10px 16px; color: #c7e4e9; font-weight: 650; font-size: .86rem; }
.related-people__links a:hover { background: #1d3a4e; border-color: var(--cyan); }

.detail-hero { padding-top: 55px; }
.place-life { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding-block: 80px 45px; }
.place-life article { padding: 31px; border: 1px solid #345065; border-radius: 14px; background: linear-gradient(145deg, #14273a, #0e1b2e); }
.place-life .mono { color: var(--cyan); }
.place-life h2 { font-size: 2.2rem; margin: 24px 0 16px; }
.place-life p { color: #b7cbd2; margin: 0; }
.next-panel a { color: var(--cyan); }

.reference-band { background: #080d18; }
.reference-band--light { background: #f7faf9; color: var(--ink); }
.reference-band--light .eyebrow { color: #378583; }
.reference-band--light .reference-card { color: var(--ink); background: #fff; border-color: #d5e1e1; }
.reference-band--light .reference-card__meta { color: #2d777a; }
.reference-band--light .reference-card p { color: #526a75; }
.reference-band--light .reference-card .badge--established { color: #347d79; }
.reference-band--light .reference-card .badge--concept { color: #a76444; }
.reference-section { padding-block: 95px; }
.reference-grid { grid-template-columns: repeat(3, 1fr); }
.reference-card { background: linear-gradient(150deg, #13253a, #0e1b2d); border-color: #334b60; }
.reference-card__meta { margin-bottom: 32px; }

@media (max-width: 1050px) {
  .journey__grid, .directory-jump { grid-template-columns: repeat(2, 1fr); }
  .reference-grid { grid-template-columns: repeat(2, 1fr); }
  .profile-facts { grid-template-columns: repeat(2, 1fr); }
  .profile-facts>div:nth-child(2) { border-right: 0; }
  .profile-facts>div:nth-child(-n+2) { border-bottom: 1px solid #34546a; }
  .place-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .container, .header-inner { width: min(100% - 34px, 1240px); }
  .page-intro { padding-inline: 17px; }
  .site-header { height: 66px; }
  .main-nav { top: 65px; border-color: #375267; }
  .main-nav a { border-radius: 8px; }
  .hero-grid { min-height: 0; }
  .journey__grid, .directory-jump, .topic-nav { grid-template-columns: repeat(2, 1fr); }
  .topic-nav { padding-bottom: 25px; }
  .directory-controls { padding: 16px; }
  .directory-controls .search-wrap { min-width: 100%; }
  .group-filter-wrap { flex: 1; }
  .profile-hero { padding-bottom: 60px; }
  .profile-facts { margin-top: -25px; }
  .related-people, .place-life { grid-template-columns: 1fr; }
  .place-life { padding-block: 60px 25px; }
  .reference-section { padding-block: 70px; }
  .atlas-grid { grid-template-columns: 1fr; }
}
@media (max-width: 500px) {
  .page-intro h1 { font-size: clamp(2.6rem, 10vw, 3.3rem); overflow-wrap: anywhere; }
  .profile-hero h1 { font-size: clamp(3rem, 13vw, 4rem); overflow-wrap: anywhere; }
  .journey__grid, .directory-jump, .topic-nav, .reference-grid { grid-template-columns: 1fr; }
  .journey a, .directory-jump a, .topic-nav a { min-height: 105px; }
  .profile-facts { grid-template-columns: 1fr 1fr; }
  .profile-facts>div { padding: 15px; min-height: 96px; }
  .profile-facts strong { font-size: .87rem; }
  .group-filter-wrap { min-width: 100%; }
  .filter-chips { width: 100%; }
  .chip { flex: 1; }
  .place-grid { grid-template-columns: 1fr; }
}

/* Édition narrative : le Bri-One et le signal deviennent les repères visuels. */
.hero {
  position: relative;
  background: linear-gradient(90deg, #07111e 0%, rgba(7,17,30,.97) 25%, rgba(7,17,30,.78) 48%, rgba(7,17,30,.13) 100%), url("bri-one-galaxy.png") center 42% / cover no-repeat;
}
.hero-grid { min-height: min(780px, calc(100svh - 72px)); grid-template-columns: 1fr 1fr; }
.hero-copy { max-width: 750px; padding-block: 104px 90px; }
.hero h1 { font-size: clamp(4rem, 6.8vw, 7rem); margin-bottom: 30px; text-wrap: balance; }
.hero h1 em { color: #9debe2; }
.hero-lead { max-width: 570px; color: #d4e1e4; }
.hero-facts { margin-top: 65px; }
.hero-art { height: 100%; min-height: 600px; }
.hero-art::before { display: none; }
.hero-art__label { left: auto; right: 0; bottom: 68px; border: 1px solid rgba(181,221,225,.28); border-left: 3px solid var(--cyan); background: rgba(8,21,31,.78); border-radius: 3px; min-width: 230px; }
.waveform { right: 0; bottom: 200px; opacity: .64; }
.hero-bottom { position: relative; z-index: 1; color: #b9d1d3; }
.button--primary { background: #a3e9de; color: #0a1b25; }
.button--primary:hover { background: #d0fff4; }

.story-teaser { padding: 100px 0; background: #0a1525; border-bottom: 1px solid #253a4d; }
.story-teaser__grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 8%; }
.story-teaser h2 { font-size: clamp(3rem, 5vw, 5.5rem); margin-bottom: 26px; }
.story-teaser h2 em, .series-intro h2 em, .sound-section h2 em, .certainty-section h2 em, .series-hero h1 em { color: var(--cyan); }
.story-teaser p:not(.eyebrow) { max-width: 570px; color: #b6cbd2; font-size: 1.1rem; }
.signal-evidence { border: 1px solid #406276; background: linear-gradient(145deg, #162d40, #0c1a2d); padding: 26px; box-shadow: 0 26px 70px #020b1680; transform: rotate(1.5deg); }
.signal-evidence__top, .signal-evidence__bottom { display: flex; justify-content: space-between; gap: 14px; color: #95bbca; font: 700 .65rem Consolas, monospace; letter-spacing: .08em; }
.signal-evidence__wave { display: flex; align-items: center; justify-content: center; gap: 3px; height: 195px; border-block: 1px solid #3a5969; margin: 24px 0; overflow: hidden; }
.signal-evidence__wave i { display: block; flex: 1; max-width: 7px; height: 12%; background: #91e9e1; box-shadow: 0 0 13px #7de3e0a6; }
.signal-evidence__wave i:nth-child(3n) { height: 35%; }
.signal-evidence__wave i:nth-child(5n) { height: 76%; }
.signal-evidence__wave i:nth-child(7n) { height: 51%; }
.signal-evidence__wave i:nth-child(11n) { height: 95%; }
.signal-evidence__bottom { flex-wrap: wrap; }
.signal-evidence__bottom strong { color: var(--cyan); }

.series-hero { min-height: 660px; display: flex; align-items: center; background: linear-gradient(90deg, #081321 0%, rgba(8,19,33,.94) 36%, rgba(8,19,33,.4) 100%), url("bri-one-galaxy.png") center / cover no-repeat; }
.series-hero__content { padding-block: 95px 75px; }
.series-hero h1 { font-size: clamp(4rem, 7vw, 7.6rem); max-width: 850px; margin-bottom: 28px; }
.series-hero .lead { max-width: 720px; color: #d7e4e7; }
.series-hero__meta { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 65px; }
.series-hero__meta span { border: 1px solid #648191; padding: 7px 12px; font: 700 .62rem Consolas, monospace; letter-spacing: .1em; color: #c2dce2; }
.series-intro { padding: 110px 0; }
.series-intro__grid { display: grid; grid-template-columns: .38fr 1fr; gap: 8%; }
.series-intro h2 { font-size: clamp(3rem, 5vw, 5.5rem); }
.series-intro h2 em, .certainty-section h2 em { color: #337a83; }
.series-intro p:not(.eyebrow) { max-width: 780px; color: #465c6b; font-size: 1.08rem; }
.series-episodes { padding-block: 110px; }
.episode-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.episode-card { display: flex; flex-direction: column; min-height: 440px; padding: 32px; border: 1px solid #36556b; background: linear-gradient(145deg, #172c42, #0d1c2c); }
.episode-card:nth-child(2) { background: linear-gradient(145deg, #1b3544, #0d1d2b); }
.episode-card__top, .episode-card__footer { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; color: #94c6cb; font: 700 .65rem Consolas, monospace; letter-spacing: .06em; }
.episode-card__top span:last-child { color: #a9e9df; }
.episode-card h3 { font-size: clamp(2rem, 3vw, 3.2rem); margin: 70px 0 18px; }
.episode-card p { color: #b9ced4; font-size: 1rem; }
.episode-card__footer { border-top: 1px solid #38566b; padding-top: 20px; margin-top: auto; }
.episode-card__footer a { color: #a7f0e8; }
.series-note { color: #a8bdc5; margin: 22px 0 0; font-size: .84rem; }
.sound-section { padding: 110px 0; background: #112336; }
.sound-section__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10%; }
.sound-section h2 { font-size: clamp(3rem, 5vw, 5.4rem); }
.sound-section p:not(.eyebrow) { max-width: 520px; color: #bdced3; font-size: 1.08rem; }
.sound-list { border-top: 1px solid #4b6476; }
.sound-list div { display: grid; grid-template-columns: 115px 1fr; column-gap: 30px; border-bottom: 1px solid #4b6476; padding: 23px 0; }
.sound-list span { color: #8bdacf; font: 700 .65rem Consolas, monospace; }
.sound-list strong { font-size: 1.35rem; line-height: 1.2; }
.sound-list p { grid-column: 2; margin: 6px 0 0; font-size: .9rem !important; }
.certainty-section { padding: 110px 0; }
.certainty-section h2 { font-size: clamp(3rem, 5vw, 5.4rem); }
.certainty-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin-top: 46px; }
.certainty-grid article { padding: 28px; background: #fff; border: 1px solid #d3e0e1; }
.certainty-grid h3 { font-size: 1.6rem; margin: 32px 0 12px; }
.certainty-grid p { color: #4b6170; margin: 0; }
.series-end { display: flex; justify-content: space-between; align-items: center; gap: 20px; border-top: 1px solid #d3e0e1; margin-top: 65px; padding-top: 28px; }
.series-end p { margin: 0; font-size: 1.1rem; }

@media (max-width: 850px) {
  .site-header .header-inner { gap: 12px; }
  .main-nav { gap: 0; }
  .main-nav a { padding: 8px; font-size: .75rem; }
  .hero { background-position: 65% center; }
  .hero-grid { grid-template-columns: 1fr; min-height: 720px; }
  .hero-copy { max-width: 650px; padding-block: 80px 110px; }
  .hero-art { position: absolute; inset: 0; min-height: 0; pointer-events: none; }
  .hero-art__label { bottom: 25px; }
  .hero-bottom { display: none; }
  .story-teaser__grid, .series-intro__grid, .sound-section__grid { grid-template-columns: 1fr; gap: 35px; }
  .certainty-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .hero { background: linear-gradient(90deg, rgba(7,17,30,.95), rgba(7,17,30,.65)), url("bri-one-galaxy.png") 62% center / cover no-repeat; }
  .hero-grid { min-height: 0; }
  .hero-copy { padding-top: 78px; padding-bottom: 80px; }
  .hero h1 { font-size: clamp(3.45rem, 10.5vw, 5.7rem); }
  .hero-art__label { display: none; }
  .waveform { display: none; }
  .story-teaser, .series-intro, .series-episodes, .sound-section, .certainty-section { padding-block: 70px; }
  .episode-grid { grid-template-columns: 1fr; }
  .episode-card { min-height: 390px; }
  .series-hero { min-height: 640px; background-position: 62% center; }
  .series-hero h1 { font-size: clamp(3.4rem, 10vw, 5.7rem); }
  .series-end { align-items: start; flex-direction: column; }
}
@media (max-width: 480px) {
  .hero-grid { min-height: 0; }
  .hero h1 { font-size: 3.5rem; }
  .hero-facts { gap: 12px; margin-top: 34px; }
  .hero-facts span { max-width: 90px; }
  .signal-evidence { transform: none; padding: 18px; }
  .signal-evidence__top { font-size: .55rem; }
  .sound-list div { grid-template-columns: 1fr; }
  .sound-list p { grid-column: 1; }
}
