/* ── Base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue-dark:  #1B3A5C;
  --blue-mid:   #2563A8;
  --blue-light: #EAF2FB;
  --teal:       #0E9E8E;
  --teal-light: #E6F7F5;
  --gray-100:   #E8EDF3;
  --gray-200:   #D6DCE6;
  --gray-400:   #9AA5B4;
  --gray-700:   #4A5568;
  --text:       #1A202C;
  --bg:         #F0F4F8;
  --card-bg:    #ffffff;
  --nav-bg:     rgba(255,255,255,.96);
  --max-w:      1100px;
  --radius:     10px;
}

[data-theme="dark"] .section-title,
[data-theme="dark"] .pillar-title,
[data-theme="dark"] .lab-stage-title,
[data-theme="dark"] .speaker-name,
[data-theme="dark"] .keynote .speaker-name,
[data-theme="dark"] .org-name,
[data-theme="dark"] .date-val,
[data-theme="dark"] .cfp-block-title,
[data-theme="dark"] .nav-brand { color: #93C5FD; }

[data-theme="dark"] {
  --blue-mid:   #60A5FA;
  --blue-light: #1E3A5F;
  --teal:       #2DD4BF;
  --teal-light: #0D3330;
  --gray-100:   #141F2B;
  --gray-200:   #1E2D3D;
  --gray-400:   #64748B;
  --gray-700:   #94A3B8;
  --text:       #E2E8F0;
  --bg:         #0F1923;
  --card-bg:    #1A2535;
  --nav-bg:     rgba(15,25,35,.97);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  transition: background .25s, color .25s;
}

a { color: var(--blue-mid); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { font-weight: 700; line-height: 1.25; }
h2 { font-size: 1.85rem; }
h3 { font-size: 1.2rem; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }

section { padding: 5rem 0; }
section { background: var(--bg); }
section:nth-child(even) { background: var(--gray-100); }

.section-label {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .78rem;
  font-weight: 600;
  color: var(--teal);
  margin-bottom: .6rem;
}

.section-title {
  font-size: 1.85rem;
  color: var(--blue-dark);
  margin-bottom: 1rem;
}

.section-sub {
  max-width: 100%;
  color: var(--gray-700);
  font-size: 1.025rem;
  margin-bottom: 2.5rem;
}

/* ── Nav ───────────────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--gray-200);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: .85rem 1.5rem;
  gap: 1.6rem;
}

.theme-toggle { margin-left: auto; }

.nav-brand {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--blue-dark);
  white-space: nowrap;
}
.nav-brand span { color: var(--teal); }

.nav-links {
  display: flex;
  gap: 1.6rem;
  list-style: none;
  flex-wrap: wrap;
}

.nav-links a {
  font-size: .9rem;
  font-weight: 500;
  color: var(--gray-700);
  transition: color .2s;
}
    .nav-links a:hover { color: var(--blue-mid); text-decoration: none; }

/* ── Theme toggle ──────────────────────────────────── */
.theme-toggle {
  background: none;
  border: 1.5px solid var(--gray-200);
  border-radius: 999px;
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-700);
  transition: border-color .2s, color .2s, background .2s;
  flex-shrink: 0;
}

.theme-toggle:hover {
  border-color: var(--teal);
  color: var(--teal);
  background: var(--teal-light);
}

.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }

[data-theme="dark"] .theme-toggle .icon-sun  { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* ── Hero ──────────────────────────────────────────── */
#hero {
  padding: 0;
  min-height: 68vh;
  display: flex;
  align-items: center;
  background:
    linear-gradient(180deg, rgba(8, 18, 32, 0.68) 0%, rgba(8, 18, 32, 0.76) 100%),
    url("assets/Palais_des_congr%C3%A8s.jpg") center center / cover no-repeat;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 4rem 1.5rem 3.75rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(14,158,142,.2);
  border: 1px solid rgba(14,158,142,.5);
  color: #7ef0e6;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .06em;
  padding: .3rem .9rem;
  border-radius: 999px;
  margin-bottom: 1.6rem;
  text-transform: uppercase;
}

.hero-badge::before {
  content: '';
  width: 7px;
  height: 7px;
  background: #0E9E8E;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .35; }
}

.hero-title {
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  font-weight: 700;
  line-height: 1.22;
  margin-bottom: 1.1rem;
  color: #fff;
}

.hero-abbr {
  color: #7ef0e6;
  font-style: italic;
}

.hero-tagline {
  font-size: 1.15rem;
  color: rgba(255,255,255,.78);
  margin-bottom: 2.2rem;
  font-style: italic;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
}

.hero-meta-item {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .95rem;
  color: rgba(255,255,255,.85);
}

.hero-meta-item svg { opacity: .7; flex-shrink: 0; }

.hero-cta {
  margin-top: 2.4rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .95rem;
  font-weight: 600;
  padding: .7rem 1.5rem;
  border-radius: var(--radius);
  transition: all .2s;
  cursor: pointer;
}

.btn-primary {
  background: var(--teal);
  color: #fff;
}
.btn-primary:hover { background: #0b8878; text-decoration: none; }

.btn-outline {
  border: 1.5px solid rgba(255,255,255,.5);
  color: #fff;
}
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,.08); text-decoration: none; }

/* ── About / pillars ───────────────────────────────── */
.pillars {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.pillar-card {
  background: var(--card-bg);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.7rem 1.5rem;
  position: relative;
  overflow: hidden;
}

.pillar-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px;
  height: 100%;
}

.pillar-card:nth-child(1)::before { background: var(--blue-mid); }
.pillar-card:nth-child(2)::before { background: var(--teal); }
.pillar-card:nth-child(3)::before { background: #8B5CF6; }
.pillar-card:nth-child(4)::before { background: #F59E0B; }

.pillar-num {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: .5rem;
}

.pillar-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: .6rem;
}

.pillar-desc {
  font-size: .93rem;
  color: var(--gray-700);
  line-height: 1.6;
}

/* ── Living Lab ────────────────────────────────────── */
.lab-stages {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.1rem;
  margin-bottom: 1.5rem;
}

.lab-stage {
  background: var(--card-bg);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.35rem 1.2rem 1.2rem;
  position: relative;
  overflow: hidden;
}

.lab-stage::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 3px;
  background: var(--teal);
}

.lab-stage:nth-child(1)::before { background: var(--blue-mid); }
.lab-stage:nth-child(2)::before { background: var(--teal); }
.lab-stage:nth-child(3)::before { background: #8B5CF6; }
.lab-stage:nth-child(4)::before { background: #F59E0B; }
.lab-stage:nth-child(5)::before { background: #EF4444; }
.lab-stage:nth-child(6)::before { background: #0E9E8E; }

.tba-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-200);
  color: var(--gray-400);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .06em;
}

.lab-stage-num {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: .4rem;
}

.lab-stage-title {
  font-size: .98rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: .5rem;
  line-height: 1.3;
}

.lab-stage-desc {
  font-size: .88rem;
  color: var(--gray-700);
  line-height: 1.55;
}

/* ── Speakers ──────────────────────────────────────── */
.speaker-group-label {
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin: 2.5rem 0 1.2rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--gray-200);
}

.speakers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 1.25rem;
}

.speakers-grid.keynote {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.speaker-card {
  background: var(--card-bg);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.5rem 1.2rem 1.25rem;
  text-align: center;
  transition: box-shadow .2s, transform .2s;
}

.speaker-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,.08);
  transform: translateY(-2px);
}

.speaker-card.keynote { padding: 1.7rem 1.5rem 1.4rem; }

.speaker-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  overflow: hidden;
  flex-shrink: 0;
}

.keynote .speaker-avatar {
  width: 88px;
  height: 88px;
}

.speaker-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.speaker-name {
  font-size: .98rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: .25rem;
}

.keynote .speaker-name { font-size: 1.08rem; }

.speaker-affil {
  font-size: .83rem;
  color: var(--gray-700);
  line-height: 1.4;
}

.speaker-tag {
  display: inline-block;
  margin-top: .55rem;
  font-size: .73rem;
  font-weight: 600;
  padding: .2rem .6rem;
  border-radius: 999px;
  letter-spacing: .04em;
}

.tag-keynote { background: var(--blue-light); color: var(--blue-mid); }
.tag-invited { background: var(--teal-light); color: #047866; }
.tag-panel   { background: #F3F0FF; color: #5B21B6; }

/* ── Schedule ──────────────────────────────────────── */
.schedule-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .95rem;
  line-height: 1.45;
}

.schedule-table thead th {
  background: var(--blue-dark);
  color: #fff;
  padding: .7rem 1.2rem;
  text-align: left;
  font-weight: 600;
}

.schedule-table tbody tr {
  border-bottom: 1px solid var(--gray-200);
}

.schedule-table tbody tr:hover { background: var(--blue-light); }

.schedule-table td {
  padding: .72rem 1.2rem;
  vertical-align: middle;
}

.schedule-table td:first-child {
  white-space: nowrap;
  font-weight: 600;
  color: var(--gray-700);
  width: 168px;
}

.schedule-event { display: inline; font-weight: 600; color: var(--text); }
.schedule-detail {
  display: inline;
  font-size: .9rem;
  color: var(--gray-700);
}
.schedule-detail::before { content: " · "; color: var(--gray-400); }

.sched-badge {
  display: inline-block;
  font-size: .73rem;
  font-weight: 600;
  padding: .15rem .55rem;
  border-radius: 999px;
  margin-left: .45rem;
  vertical-align: middle;
}

.sb-keynote  { background: var(--blue-light);  color: var(--blue-mid); }
.sb-panel    { background: #F3F0FF; color: #5B21B6; }
.sb-poster   { background: var(--teal-light); color: #047866; }
.sb-break    { background: var(--gray-200); color: var(--gray-700); }
.sb-talk     { background: #FEF9C3; color: #854D0E; }
.sb-lab      { background: #FEF3C7; color: #92400E; }

.note-box {
  margin-top: 1.2rem;
  padding: .9rem 1.2rem;
  background: var(--blue-light);
  border-left: 4px solid var(--blue-mid);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: .9rem;
  color: var(--gray-700);
}

/* ── CFP ───────────────────────────────────────────── */
.cfp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

@media (max-width: 700px) { .cfp-grid { grid-template-columns: 1fr; } }

.dates-card {
  background: var(--card-bg);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
}

.dates-header {
  background: var(--blue-dark);
  color: #fff;
  padding: .9rem 1.3rem;
  font-weight: 700;
  font-size: .95rem;
}

.date-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: .9rem 1.3rem;
  border-bottom: 1px solid var(--gray-200);
}

.date-item:last-child { border-bottom: none; }

.date-label { font-size: .88rem; color: var(--gray-700); flex: 1; }
.date-val {
  font-weight: 700;
  font-size: .9rem;
  color: var(--blue-dark);
  text-align: right;
}

.cfp-coming {
  background: linear-gradient(135deg, var(--blue-dark), #1d5077);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  text-align: center;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.cfp-coming h3 { font-size: 1.3rem; }
.cfp-coming p { font-size: .95rem; color: rgba(255,255,255,.78); max-width: 280px; }

.cfp-coming .btn-outline {
  border-color: rgba(14,158,142,.6);
  color: #7ef0e6;
}
.cfp-coming .btn-outline:hover {
  border-color: #7ef0e6;
  background: rgba(14,158,142,.15);
  text-decoration: none;
}

.topics-list {
  list-style: none;
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: .65rem;
}

.topics-list li {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  font-size: .93rem;
  color: var(--gray-700);
  padding: .55rem .8rem;
  background: var(--card-bg);
  border: 1px solid var(--gray-200);
  border-radius: 6px;
}

.topics-list li::before {
  content: '→';
  color: var(--teal);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: .05rem;
}

.cfp-block-title {
  color: var(--blue-dark);
  font-size: 1.25rem;
  margin: 2.4rem 0 .7rem;
}

.cfp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .95rem;
  background: var(--card-bg);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
}

.cfp-table th,
.cfp-table td {
  padding: .85rem 1rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--gray-200);
}

.cfp-table thead th {
  background: var(--blue-dark);
  color: #fff;
  font-weight: 600;
}

.cfp-table tbody tr:last-child td { border-bottom: none; }
.cfp-table tbody tr:hover { background: var(--blue-light); }

.cfp-bullets {
  margin: 0 0 1.2rem 1.25rem;
  color: var(--gray-700);
  font-size: 1.025rem;
}

.cfp-bullets li {
  margin: .55rem 0;
  padding-left: .25rem;
}

/* ── Organizers ────────────────────────────────────── */
.org-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.org-card {
  background: var(--card-bg);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.7rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.org-header { display: flex; align-items: center; gap: 1.1rem; margin-bottom: .4rem; }

.org-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.org-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.org-name { font-size: 1.05rem; font-weight: 700; color: var(--blue-dark); }
.org-role { font-size: .83rem; color: var(--teal); font-weight: 600; }
.org-affil { font-size: .9rem; color: var(--gray-700); }
.org-email { font-size: .85rem; color: var(--blue-mid); }
.tba-card {
  border-style: dashed;
  background: var(--gray-100);
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2.5rem;
  color: var(--gray-400);
}

.tba-icon { font-size: 2rem; margin-bottom: .5rem; }
.tba-label { font-size: .9rem; font-weight: 600; }

/* ── Program Committee ─────────────────────────────── */
.pc-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: .5rem;
}

.pc-list li {
  font-size: .9rem;
  color: var(--text);
  padding: .5rem .75rem;
  background: var(--card-bg);
  border: 1px solid var(--gray-200);
  border-radius: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .5rem;
}

.pc-list li span {
  font-size: .78rem;
  color: var(--gray-400);
  text-align: right;
}

/* ── Footer ────────────────────────────────────────── */
footer {
  background: var(--blue-dark);
  color: rgba(255,255,255,.75);
  padding: 2.5rem 0;
  font-size: .9rem;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.footer-brand { font-weight: 700; color: #fff; font-size: 1rem; line-height: 1.5; }
.footer-brand span { color: #7ef0e6; }
.footer-brand .footer-title { font-weight: 400; color: rgba(255,255,255,.75); }

.footer-copy {
  margin-top: .45rem;
  font-size: .8rem;
  color: rgba(255,255,255,.45);
}

.footer-copy a { color: rgba(255,255,255,.6); }

/* ── Responsive ────────────────────────────────────── */
@media (max-width: 760px) {
  .nav-links { display: none; }
  h2, .section-title { font-size: 1.5rem; }
  .hero-inner { padding: 4rem 1.5rem 3.5rem; }
  .schedule-table td:first-child { width: 120px; font-size: .82rem; }
  .cfp-grid { grid-template-columns: 1fr; }
}
