/* ============================
   DESIGN TOKENS (easy to tweak)
   ============================ */
:root {
  --color-bg:           #ffffff;
  --color-surface:      #f8fafc;
  --color-surface-2:    #f1f5f9;
  --color-border:       #e2e8f0;
  --color-border-hover: #c7d2fe;

  --color-text:         #0f172a;   /* slate-900 */
  --color-text-muted:   #64748b;   /* slate-500 */
  --color-text-subtle:  #94a3b8;   /* slate-400 */

  --color-accent:       #4f46e5;   /* indigo-600 */
  --color-accent-hover: #4338ca;   /* indigo-700 */
  --color-accent-light: #eef2ff;   /* indigo-50  */
  --color-accent-mid:   #c7d2fe;   /* indigo-200 */

  --color-video-bg:     #fdf4ff;
  --color-video-text:   #7c3aed;
  --color-video-border: #e9d5ff;

  --font-display: system-ui, sans-serif;
  --font-body:    system-ui, sans-serif;

  --text-base:  16px;
  --lh-body:    1.8;
  --radius-sm:  6px;
  --radius:     10px;
  --radius-lg:  16px;
  --max-width:  820px;
  --shadow-sm:  0 1px 3px rgba(15,23,42,.06), 0 1px 2px rgba(15,23,42,.04);
  --shadow-md:  0 4px 16px rgba(79,70,229,.10), 0 1px 4px rgba(15,23,42,.06);
}

/* ============================
   RESET & BASE
   ============================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s;
}
a:hover { color: var(--color-accent-hover); }

/* ============================
   LAYOUT
   ============================ */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.75rem;
}

/* ============================
   HEADER
   ============================ */
header {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--color-text);
}
.site-name:hover { color: var(--color-accent); }

.social-links {
  display: flex;
  gap: 0.25rem;
  list-style: none;
}

.social-links a {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-text-muted);
  padding: 0.35rem 0.7rem;
  border-radius: var(--radius-sm);
  transition: background 0.15s, color 0.15s;
}
.social-links a:hover {
  background: var(--color-accent-light);
  color: var(--color-accent);
}

.social-links svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  flex-shrink: 0;
}

/* ============================
   HERO
   ============================ */
.hero {
  /*padding: 5.5rem 0 4.5rem;*/
  position: relative;
  overflow: hidden;
}

/* Decorative gradient blob */
.hero::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -200px;
  width: 600px;
  height: 600px;
  pointer-events: none;
}

.hero-desc {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--color-text-muted);
  /*max-width: 600px;*/
  /*margin-bottom: 2rem;*/
}
.hero-desc a { font-weight: 600; }

/* ============================
   MAIN
   ============================ */
main {
  padding: 0 0 5rem;
  /*border-top: 1px solid var(--color-border);*/
}

/* ============================
   SECTIONS
   ============================ */
section {
  padding: 3.5rem 0;
  border-bottom: 1px solid var(--color-border);
}
section:last-child { border-bottom: none; }

.section-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2.25rem;
}

.section-pill {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  background: var(--color-accent-light);
  padding: 0.2rem 0.6rem;
  border-radius: 99px;
}

h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.03em;
  line-height: 1.2;
}

/* Year headings in Talks */
h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.01em;
  margin: 2.25rem 0 1rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
h3::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--color-border);
}

/* ============================
   PROJECTS
   ============================ */
.projects-note {
  font-size: 1rem;
  color: var(--color-text-subtle);
  margin-bottom: 1.5rem;
}

.project-list { list-style: none; }

.project-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  margin-bottom: 0.5rem;
  background: var(--color-bg);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}
.project-item:hover {
  border-color: var(--color-border-hover);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.project-icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  background: var(--color-accent-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.project-name {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.1rem;
}
.project-name a { color: inherit; }
.project-item:hover .project-name a { color: var(--color-accent); }

.project-desc {
  font-size: 1rem;
  color: var(--color-text-muted);
}

.project-arrow {
  margin-left: auto;
  color: var(--color-text-subtle);
  font-size: 1rem;
  transition: transform 0.2s, color 0.2s;
}
.project-item:hover .project-arrow {
  transform: translateX(3px);
  color: var(--color-accent);
}

/* ============================
   TALKS
   ============================ */
.talks-list { list-style: none; }

.talk-item {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--color-border);
}
.talk-item:last-child { border-bottom: none; }

.talk-title {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 0.45rem;
  line-height: 1.5;
}

/* Liste des conférences — chaque événement est un groupe slides + vidéo */
.talk-venues {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Un groupe = 1 conférence + son éventuelle vidéo côte à côte */
.talk-event {
  display: inline-flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--color-border);
  border-radius: 99px;
  overflow: hidden;
  background: var(--color-surface-2);
  transition: border-color 0.15s;
}
.talk-event:hover { border-color: var(--color-accent-mid); }

/* Lien slides (nom de la conférence) */
.tag-venue {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.25rem 0.7rem;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.tag-venue:hover {
  background: var(--color-accent-light);
  color: var(--color-accent);
}

/* Badge vidéo — séparé visuellement mais accolé à la conférence */
.tag-video {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  background: var(--color-video-bg);
  color: var(--color-video-text);
  border-left: 1px solid var(--color-video-border);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.tag-video:hover { background: #f3e8ff; color: #6d28d9; }

/* Conférence sans lien (pas de slides disponibles) */
.tag-plain {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.25rem 0.7rem;
  color: var(--color-text-subtle);
  cursor: default;
}

.travel-map {
  position: relative;
  width: 700px;
  height: 600px;
}

/* ============================
   ANIMATIONS
   ============================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero    { animation: fadeUp 0.5s cubic-bezier(0.16,1,0.3,1) both; }
section  { animation: fadeUp 0.5s cubic-bezier(0.16,1,0.3,1) both; }
section:nth-of-type(1) { animation-delay: 0.07s; }
section:nth-of-type(2) { animation-delay: 0.14s; }
section:nth-of-type(3) { animation-delay: 0.21s; }

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 600px) {
  .hero { padding: 3rem 0 2.5rem; }
  .social-links .label { display: none; }
}