/* BLUE EMPIRE — L'Empire Bleu — style solarpunk */

:root {
  --ivory: #f7f3ea;
  --ivory-2: #efe9db;
  --white: #fdfcf8;
  --ocean: #0e5570;
  --ocean-deep: #0a3d52;
  --ocean-light: #2e7d9e;
  --amber: #d98e2b;
  --amber-glow: #f4b942;
  --amber-soft: #f8dfae;
  --leaf: #6d9b58;
  --leaf-soft: #dbe7d0;
  --ink: #22333b;
  --ink-soft: #5a6b74;
  --card-border: #e3dccb;
  --shadow: 0 10px 40px rgba(34, 51, 59, 0.09);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--ivory);
  color: var(--ink);
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3 { line-height: 1.2; }
.wordmark { font-family: 'Michroma', sans-serif; letter-spacing: 0.06em; }
.poetic { font-family: 'Cormorant Garamond', serif; font-style: italic; }

a { color: var(--ocean); text-decoration: none; }
a:hover { color: var(--ocean-light); }
img { max-width: 100%; display: block; border-radius: 18px; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ---------- Navigation ---------- */
nav.topnav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; gap: 2px; flex-wrap: wrap;
  padding: 12px 22px;
  background: rgba(253, 252, 248, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--card-border);
  white-space: nowrap;
}
.nav-group { position: relative; display: inline-block; }
.nav-group .chev { font-size: 0.7rem; opacity: 0.55; margin-left: 2px; }
.nav-menu {
  visibility: hidden; opacity: 0; transform: translateY(6px);
  transition: all 0.18s ease;
  position: absolute; top: 100%; left: 0; z-index: 300;
  background: var(--white); border: 1px solid var(--card-border);
  border-radius: 16px; padding: 8px; min-width: 210px;
  box-shadow: 0 16px 48px rgba(34, 51, 59, 0.16);
}
.nav-group:hover .nav-menu, .nav-group:focus-within .nav-menu {
  visibility: visible; opacity: 1; transform: translateY(2px);
}
.nav-menu a {
  display: block; padding: 10px 15px; border-radius: 10px;
  color: var(--ink-soft); font-weight: 600; font-size: 0.93rem;
}
.nav-menu a:hover { background: var(--ivory-2); color: var(--ink); }
nav.topnav .brand {
  font-family: 'Michroma', sans-serif;
  font-size: 0.85rem; color: var(--ocean-deep);
  margin-right: 16px; display: flex; align-items: center; gap: 9px;
}
nav.topnav .brand .mark { color: var(--amber); font-size: 1.05rem; }
nav.topnav a.navlink {
  padding: 8px 15px; border-radius: 999px;
  color: var(--ink-soft); font-size: 0.92rem; font-weight: 600;
}
nav.topnav a.navlink:hover { background: var(--ivory-2); color: var(--ink); }
nav.topnav a.navlink.active {
  background: var(--ocean); color: var(--white);
  box-shadow: 0 3px 14px rgba(14, 85, 112, 0.3);
}
nav.topnav .spacer { flex: 1; }
.lang-toggle { display: inline-flex; gap: 3px; margin-right: 10px; }
.lang-toggle span { padding: 4px 10px; border-radius: 999px; font-size: 0.78rem; font-weight: 800; color: var(--ink-soft); }
.lang-toggle span.on { background: var(--amber-soft); color: var(--ink); }

/* ---------- Hero ---------- */
header.hero {
  position: relative; text-align: center;
  padding: 110px 24px 90px;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(244, 185, 66, 0.25), transparent 60%),
    radial-gradient(ellipse 70% 50% at 85% 100%, rgba(46, 125, 158, 0.12), transparent 60%),
    linear-gradient(180deg, var(--white) 0%, var(--ivory) 100%);
}
header.hero.with-image { padding-bottom: 0; }
header.hero.hero-img {
  background-size: cover !important;
  background-position: center 30%;
  padding: 150px 24px 120px;
}
header.hero.hero-img::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7, 32, 44, 0.42) 0%, rgba(7, 32, 44, 0.58) 65%, rgba(7, 32, 44, 0.68) 100%);
}
header.hero.hero-img > * { position: relative; }
header.hero.hero-img h1.page-title { color: var(--white); text-shadow: 0 3px 30px rgba(0,0,0,0.45); }
header.hero.hero-img h1.page-title .amber { color: var(--amber-glow); }
header.hero.hero-img .tagline { color: #f2efe6; text-shadow: 0 2px 14px rgba(0,0,0,0.5); }
header.hero.hero-img .lead { color: #e8ebe6; text-shadow: 0 2px 12px rgba(0,0,0,0.5); }
header.hero.hero-img .lead.dim { color: #cfd6d2; }
header.hero.hero-img .subtitle { color: var(--amber-glow); text-shadow: 0 2px 12px rgba(0,0,0,0.5); }
header.hero.hero-img .hero-kicker {
  background: rgba(253, 252, 248, 0.18); color: #fff;
  backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,0.25);
}
header.hero.hero-img .btn:not(.primary):not(.ocean) { background: rgba(253,252,248,0.92); }
header.hero.hero-img .btn.ocean { background: var(--ocean-deep); }
header.hero.hero-img .adn-bar { box-shadow: 0 6px 30px rgba(0,0,0,0.3); }
header.hero.hero-img p[style*="ink-soft"] { color: #dfe4e0 !important; }
.hero-kicker {
  display: inline-block; padding: 7px 18px; border-radius: 999px;
  background: var(--leaf-soft); color: #4a6b3a;
  font-weight: 700; font-size: 0.85rem; letter-spacing: 0.05em;
  text-transform: uppercase; margin-bottom: 30px;
}
h1.page-title {
  font-family: 'Michroma', sans-serif;
  font-size: clamp(2rem, 6vw, 4.2rem);
  color: var(--ocean-deep);
  letter-spacing: 0.04em;
  margin-bottom: 20px;
}
h1.page-title .amber { color: var(--amber); }
.subtitle {
  font-family: 'Michroma', sans-serif;
  font-size: clamp(0.85rem, 1.8vw, 1.15rem);
  color: var(--amber);
  letter-spacing: 0.35em; text-transform: uppercase;
  margin-bottom: 28px;
}
.tagline {
  font-family: 'Cormorant Garamond', serif; font-style: italic;
  font-size: clamp(1.3rem, 2.6vw, 1.7rem); color: var(--ink-soft);
  max-width: 700px; margin: 0 auto 10px;
}
.lead { max-width: 740px; margin: 0 auto; color: var(--ink-soft); font-size: 1.08rem; }

/* ---------- Buttons ---------- */
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 40px; }
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 24px; border-radius: 999px;
  background: var(--white); border: 1.5px solid var(--card-border);
  color: var(--ink); font-weight: 700; font-size: 0.95rem;
  transition: all 0.2s ease; cursor: pointer;
}
.btn:hover { border-color: var(--ocean); color: var(--ocean); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn.primary {
  background: linear-gradient(135deg, var(--amber-glow), var(--amber));
  border-color: transparent; color: #3d2c0e;
  box-shadow: 0 6px 24px rgba(217, 142, 43, 0.35);
}
.btn.primary:hover { color: #3d2c0e; transform: translateY(-2px); }
.btn.ocean { background: var(--ocean); border-color: transparent; color: var(--white); }
.btn.ocean:hover { color: var(--white); background: var(--ocean-light); }

/* ---------- Sections ---------- */
section.block { padding: 96px 0; }
section.block.alt { background: linear-gradient(180deg, var(--ivory) 0%, #eef0e4 50%, var(--ivory) 100%); }
section.block.ocean-band {
  background: linear-gradient(160deg, var(--ocean-deep) 0%, var(--ocean) 70%, #14667f 100%);
  color: #dcebf2;
}
section.block.ocean-band h2.section-title { color: var(--white); }
section.block.ocean-band .section-kicker { color: var(--amber-glow); }
section.block.ocean-band p { color: #c3d9e4; }

.section-head { text-align: center; margin-bottom: 60px; }
.section-kicker {
  display: block; font-weight: 800; font-size: 0.82rem;
  letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--amber); margin-bottom: 14px;
}
h2.section-title {
  font-family: 'Michroma', sans-serif;
  font-size: clamp(1.5rem, 3.6vw, 2.4rem);
  color: var(--ocean-deep);
}
.section-head p.sub { margin-top: 18px; color: var(--ink-soft); max-width: 680px; margin-left: auto; margin-right: auto; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.two-col.reverse > .col-text { order: 2; }
.two-col.reverse > .col-media { order: 1; }
@media (max-width: 860px) {
  .two-col { grid-template-columns: 1fr; }
  .two-col.reverse > .col-text { order: 1; }
}
.col-text h2 { text-align: left; margin-bottom: 8px; }
.col-text .section-kicker { text-align: left; }
.col-text p { margin-bottom: 18px; color: var(--ink-soft); }
.col-text p strong { color: var(--ink); }

.media-frame {
  border-radius: 22px; overflow: hidden;
  background: var(--white);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow);
}
.media-frame img { border-radius: 0; width: 100%; }
.caption { text-align: center; color: var(--ink-soft); font-size: 0.88rem; margin-top: 14px; font-style: italic; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 24px; }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .grid.cols-4, .grid.cols-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--white);
  border: 1px solid var(--card-border);
  border-radius: 20px; padding: 30px;
  transition: all 0.25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .card-icon { font-size: 1.9rem; margin-bottom: 14px; }
.card h3 { font-size: 1.18rem; color: var(--ink); margin-bottom: 6px; font-weight: 800; }
.card h4.card-sub {
  font-family: 'Cormorant Garamond', serif; font-style: italic; font-weight: 600;
  color: var(--amber); font-size: 1.05rem; margin-bottom: 14px;
}
.card p { color: var(--ink-soft); font-size: 0.95rem; }
.card.amber-edge { border-top: 4px solid var(--amber-glow); }
.card.ocean-edge { border-top: 4px solid var(--ocean); }
.card.leaf-edge { border-top: 4px solid var(--leaf); }

.badge {
  display: inline-block; padding: 4px 13px; border-radius: 999px;
  font-size: 0.74rem; font-weight: 800; letter-spacing: 0.05em;
  text-transform: uppercase; margin-bottom: 12px;
}
.badge.ocean { background: #dcebf2; color: var(--ocean-deep); }
.badge.amber { background: var(--amber-soft); color: #7a5312; }
.badge.leaf { background: var(--leaf-soft); color: #45632f; }
.badge.rose { background: #f6dfdc; color: #91423a; }

/* ---------- Character portrait cards ---------- */
.char-card { display: flex; flex-direction: column; }
.char-card .portrait {
  width: 100%; height: 380px; object-fit: cover; object-position: center top;
  border-radius: 14px; margin-bottom: 22px;
  background: linear-gradient(160deg, var(--ivory-2), var(--amber-soft));
}
.char-card .role { color: var(--amber); font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 12px; }

/* ---------- Triangle ---------- */
.triangle-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .triangle-grid { grid-template-columns: 1fr; } }
.triangle-card { border-radius: 22px; padding: 36px 30px; color: var(--white); }
.triangle-card.claire { background: linear-gradient(160deg, #5a6b74, #3c4a52); }
.triangle-card.loic { background: linear-gradient(160deg, #14667f, var(--ocean-deep)); }
.triangle-card.silas { background: linear-gradient(160deg, #2b2b33, #131318); }
.triangle-card .who { font-family: 'Michroma', sans-serif; font-size: 1.05rem; margin-bottom: 4px; }
.triangle-card .what { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 1.25rem; color: var(--amber-glow); margin-bottom: 18px; }
.triangle-card p { color: rgba(255,255,255,0.82); font-size: 0.95rem; margin-bottom: 12px; }
.triangle-card .time { margin-top: 16px; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255,255,255,0.6); }

/* ---------- Timeline / episodes ---------- */
.ep-list { max-width: 880px; margin: 0 auto; display: grid; gap: 18px; }
.ep {
  display: grid; grid-template-columns: 92px 1fr auto; gap: 22px; align-items: center;
  background: var(--white); border: 1px solid var(--card-border);
  border-radius: 18px; padding: 22px 28px;
  transition: all 0.2s ease;
}
.ep:hover { transform: translateX(4px); box-shadow: var(--shadow); }
@media (max-width: 700px) { .ep { grid-template-columns: 1fr; gap: 8px; } }
.ep .num { font-family: 'Michroma', sans-serif; color: var(--amber); font-size: 1.5rem; }
.ep h3 { font-size: 1.05rem; margin-bottom: 4px; }
.ep p { color: var(--ink-soft); font-size: 0.92rem; }
.ep .tension { font-size: 0.8rem; font-weight: 800; color: var(--ocean); white-space: nowrap; }

/* ---------- Fancy list ---------- */
ul.fancy { list-style: none; }
ul.fancy li { position: relative; padding-left: 30px; margin-bottom: 13px; color: var(--ink-soft); }
ul.fancy li::before { content: '🌿'; position: absolute; left: 0; top: 0; font-size: 0.9rem; }
ul.fancy.wave li::before { content: '🌊'; }
ul.fancy.star li::before { content: '✦'; color: var(--amber); font-size: 1rem; }

/* ---------- Galerie ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .gallery-grid { grid-template-columns: 1fr; } }
.gallery-item {
  position: relative; overflow: hidden; border-radius: 18px;
  border: 1px solid var(--card-border); cursor: pointer; background: var(--white);
}
.gallery-item img { transition: transform 0.35s ease; width: 100%; height: 260px; object-fit: cover; border-radius: 0; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item .gi-caption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 16px;
  font-size: 0.85rem; color: var(--white);
  background: linear-gradient(180deg, transparent, rgba(10, 61, 82, 0.85));
}
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(10, 30, 40, 0.94);
  display: none; align-items: center; justify-content: center; padding: 4vw;
}
.lightbox.open { display: flex; }
.lightbox img { max-height: 88vh; max-width: 92vw; border-radius: 10px; }
.lightbox .lb-close { position: absolute; top: 20px; right: 28px; font-size: 2rem; color: var(--white); cursor: pointer; }

/* ---------- Quote band ---------- */
.quote-band { text-align: center; padding: 90px 24px; }
.quote-band blockquote {
  font-family: 'Cormorant Garamond', serif; font-style: italic;
  font-size: clamp(1.4rem, 3vw, 2rem); color: var(--ocean-deep);
  max-width: 820px; margin: 0 auto 16px;
}
.quote-band .attribution { color: var(--amber); font-weight: 700; font-size: 0.9rem; letter-spacing: 0.1em; text-transform: uppercase; }

/* ---------- ADN bar ---------- */
.adn-bar { display: flex; border-radius: 999px; overflow: hidden; max-width: 720px; margin: 30px auto 12px; height: 46px; }
.adn-bar div { display: flex; align-items: center; justify-content: center; font-size: 0.78rem; font-weight: 800; color: rgba(255,255,255,0.95); }
.adn-action { width: 50%; background: var(--ocean); }
.adn-intrigue { width: 20%; background: var(--amber); }
.adn-wonder { width: 20%; background: var(--leaf); }
.adn-romance { width: 10%; background: #c96f6f; }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--card-border);
  padding: 54px 24px 40px; text-align: center;
  color: var(--ink-soft); font-size: 0.9rem;
  background: var(--white);
}
footer .foot-mark { font-family: 'Michroma', sans-serif; color: var(--ocean-deep); font-size: 0.95rem; margin-bottom: 10px; }
footer .foot-note { font-size: 0.78rem; margin-top: 12px; opacity: 0.7; }

.tech-img { width: 100%; height: 200px; object-fit: cover; border-radius: 12px; margin-bottom: 18px; }

/* Logo officiel */
nav.topnav .brand-logo { height: 30px; width: auto; display: block; }
.hero-logo {
  display: block; margin: 10px auto 20px;
  width: min(720px, 88vw); height: auto;
  filter: drop-shadow(0 3px 14px rgba(0, 0, 0, 0.45));
}
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
