* { box-sizing: border-box; margin: 0; padding: 0; }
:root { --accent: #1a1a1a; --accent-mid: #444; --accent-light: #f0f0f0; --text: #1a1a1a; --text-sec: #666; --text-ter: #999; --bg: #fff; --bg-sec: #f7f7f5; --border: rgba(0,0,0,0.1); --border-sec: rgba(0,0,0,0.2); --radius-md: 8px; --radius-lg: 12px; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; color: var(--text); background: var(--bg); font-size: 15px; line-height: 1.7; }

/* NAV */
nav { position: sticky; top: 0; z-index: 100; background: #fff; border-bottom: 0.5px solid var(--border); height: 56px; }
.nav-inner { max-width: 780px; margin: 0 auto; padding: 0 2rem; height: 100%; display: flex; align-items: center; gap: 2rem; }
.nav-name { font-size: 13px; font-weight: 500; color: var(--text-sec); white-space: nowrap; }
.nav-links { display: flex; gap: 1.5rem; }
.nav-link { font-size: 13px; color: var(--text-sec); cursor: pointer; background: none; border: none; border-bottom: 1.5px solid transparent; padding: 4px 0; transition: color 0.2s, border-color 0.2s; white-space: nowrap; text-decoration: none; display: inline-block; }
.nav-link:hover, .nav-link.active { color: var(--text); border-bottom-color: var(--accent); }
.lang-switch { display: flex; gap: 6px; margin-left: auto; align-items: center; }
.lang { font-size: 16px; line-height: 1; opacity: 0.45; text-decoration: none; padding: 4px; border-radius: 4px; transition: opacity 0.2s, background 0.2s; cursor: pointer; }
.lang:hover { opacity: 0.85; background: var(--bg-sec); }
.lang.active { opacity: 1; }

/* SECTIONS */
section { display: none; }
section.visible { display: block; }

/* ACCUEIL */
.hero-word { padding: 4rem 2rem 2.5rem; max-width: 780px; margin: 0 auto; }
.imaginer { font-size: clamp(48px, 11vw, 100px); font-weight: 500; letter-spacing: -0.02em; line-height: 1.05; color: var(--text); margin-bottom: 2rem; }
.hero-axes { display: flex; flex-wrap: wrap; margin-bottom: 3rem; }
.hero-axes span { font-size: 12px; color: var(--text-ter); letter-spacing: 0.04em; }
.hero-axes span:not(:last-child)::after { content: " · "; color: var(--border-sec); margin: 0 4px; }
.elements-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 8px; padding: 0 2rem 4rem; max-width: 780px; margin: 0 auto; }
.el { border-radius: 12px; overflow: hidden; position: relative; aspect-ratio: 3/4; cursor: pointer; }
.el:focus { outline: 2px solid var(--accent-mid); outline-offset: 2px; }
.el:focus:not(:focus-visible) { outline: none; }
.el img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; }
.el-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.75rem;
  background: rgba(20, 18, 50, 0.55);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.03em;
  line-height: 1.35;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
}
.el:hover .el-label, .el:focus-within .el-label { opacity: 1; }
.el:hover img { transform: scale(1.03); }

/* INNER */
.inner { padding: 3rem 2rem 4rem; max-width: 780px; margin: 0 auto; }
h2.stitle { font-size: 20px; font-weight: 500; margin-bottom: 0.4rem; }
p.sintro { color: var(--text-sec); font-size: 13px; margin-bottom: 1.5rem; }

/* AXES */
.axes-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; margin-bottom: 2rem; }
.axe-card { background: #fff; border: 0.5px solid var(--border); border-radius: var(--radius-lg); padding: 1.25rem; cursor: pointer; transition: border-color 0.2s; }
.axe-card:hover { border-color: var(--border-sec); }
.axe-card.selected { border-color: var(--accent-mid); border-width: 1px; }
.axe-bar { height: 2px; width: 28px; background: var(--accent-mid); border-radius: 2px; margin-bottom: 10px; }
.axe-card h3 { font-size: 14px; font-weight: 500; margin-bottom: 4px; }
.axe-card p { font-size: 12px; color: var(--text-sec); line-height: 1.5; }

/* SUBTABS */
.subtabs-wrapper { margin-top: 2rem; }
.subtabs-bar { display: flex; border-bottom: 0.5px solid var(--border); margin-bottom: 1.5rem; overflow-x: auto; }
.stab { font-size: 12px; color: var(--text-sec); cursor: pointer; background: none; border: none; border-bottom: 2px solid transparent; padding: 8px 16px; white-space: nowrap; margin-bottom: -0.5px; transition: color 0.2s, border-color 0.2s; }
.stab:hover { color: var(--text); }
.stab.active { color: var(--text); border-bottom-color: var(--accent); font-weight: 500; }
.stab-panel { display: none; }
.stab-panel.visible { display: block; }

/* BOOKS */
.book-list { display: flex; flex-direction: column; gap: 12px; }
.book-card { display: flex; gap: 1rem; align-items: flex-start; background: #fff; border: 0.5px solid var(--border); border-radius: var(--radius-lg); padding: 1rem 1.25rem; }
.book-vol { flex-shrink: 0; width: 44px; height: 56px; background: var(--accent-light); border-radius: 4px; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 500; color: var(--accent-mid); text-align: center; line-height: 1.3; }
.book-info { flex: 1; min-width: 0; }
.book-title { font-size: 14px; font-weight: 500; margin-bottom: 2px; }
.book-meta { font-size: 12px; color: var(--text-sec); margin-bottom: 6px; }
.book-link { font-size: 12px; color: var(--accent-mid); text-decoration: none; }
.book-link:hover { text-decoration: underline; }
.book-role { display: inline-block; font-size: 11px; padding: 2px 8px; background: var(--accent-light); color: var(--accent-mid); border-radius: 4px; margin-bottom: 6px; }
.placeholder { font-size: 13px; color: var(--text-ter); padding: 2rem 0; font-style: italic; }

/* TIMELINE */
.timeline { display: flex; flex-direction: column; }
.tl-item { display: flex; gap: 1.25rem; }
.tl-left { display: flex; flex-direction: column; align-items: center; min-width: 14px; }
.tl-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-top: 6px; flex-shrink: 0; }
.tl-line { flex: 1; width: 0.5px; background: var(--border); }
.tl-item:last-child .tl-line { display: none; }
.tl-content { padding-bottom: 1.75rem; }
.tl-date { font-size: 11px; color: var(--text-ter); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 500; }
.tl-title { font-size: 14px; font-weight: 500; margin: 2px 0; }
.tl-place { font-size: 13px; color: var(--text-sec); }
.tl-mifi { font-size: 11px; color: var(--text-ter); margin-top: 4px; padding: 3px 8px; background: var(--bg-sec); border-radius: 4px; display: inline-block; }

/* ABOUT */
.about-block { display: flex; flex-direction: column; gap: 2rem; }
.ab-section h3 { font-size: 14px; font-weight: 500; margin-bottom: 8px; }
.ab-section p { font-size: 14px; color: var(--text-sec); line-height: 1.7; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 11px; padding: 3px 10px; border: 0.5px solid var(--border-sec); border-radius: 4px; color: var(--text-sec); }

/* CONTACT */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; }
.contact-photo { width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: var(--radius-lg); }
.contact-info { display: flex; flex-direction: column; gap: 10px; }
.cc { background: var(--bg-sec); border-radius: var(--radius-md); padding: 1rem 1.25rem; }
.cc-label { font-size: 11px; color: var(--text-ter); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 4px; }
.cc-val { font-size: 13px; }
.cc-val a { color: var(--accent-mid); text-decoration: none; }
.cc-val a:hover { text-decoration: underline; }

/* PROJECT CARD */
.project { border: 0.5px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; background: #fff; }
.proj-hero { display: grid; grid-template-columns: 120px 1fr; gap: 1.5rem; align-items: center; padding: 1.5rem; background: var(--bg-sec); border-bottom: 0.5px solid var(--border); }
.proj-hero img { width: 100%; height: auto; border-radius: 8px; background: #fff; padding: 8px; }
.proj-hero-text h3 { font-size: 18px; font-weight: 500; margin-bottom: 4px; letter-spacing: -0.01em; }
.proj-hero-text .proj-tag { font-size: 12px; color: var(--text-sec); line-height: 1.5; }
.proj-body { padding: 1.5rem; display: flex; flex-direction: column; gap: 1.25rem; }
.proj-section h4 { font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent-mid); margin-bottom: 6px; }
.proj-section p { font-size: 13px; color: var(--text-sec); line-height: 1.7; }
.proj-meta { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.proj-meta-item { background: var(--bg-sec); border-radius: var(--radius-md); padding: 0.75rem 1rem; }
.proj-meta-label { font-size: 11px; color: var(--text-ter); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 2px; }
.proj-meta-val { font-size: 13px; color: var(--text); font-weight: 500; }
.proj-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; align-items: start; }
.proj-gallery figure { margin: 0; }
.proj-gallery .proj-img-wrap { background: var(--bg-sec); border-radius: var(--radius-md); overflow: hidden; display: flex; align-items: center; justify-content: center; aspect-ratio: 4/3; }
.proj-gallery img { width: 100%; height: 100%; object-fit: contain; display: block; }
.proj-gallery figcaption { font-size: 11px; color: var(--text-ter); padding: 6px 4px 0; line-height: 1.4; }
.proj-todo { background: #FFF8E1; border: 0.5px solid #F0D87A; border-radius: var(--radius-md); padding: 0.75rem 1rem; font-size: 12px; color: #7A5A00; }

/* EDITION CATEGORIES */
.edition-cat { font-size: 14px; font-weight: 500; margin: 2rem 0 1rem; padding-bottom: 8px; border-bottom: 0.5px solid var(--border); }
.edition-cat:first-child { margin-top: 0; }
.edition-empty { font-size: 13px; color: var(--text-ter); padding: 1rem 0; font-style: italic; }

/* MED CARD (style for Mediation scientifique panels) */
.med-card { background: #fff; border: 0.5px solid var(--border); border-radius: var(--radius-lg); padding: 1.25rem 1.5rem; margin-bottom: 12px; }
.med-card-period { font-size: 12px; color: var(--text-ter); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 1rem; padding-bottom: 0.75rem; border-bottom: 0.5px solid var(--border); line-height: 1.4; }
.med-card-body { display: flex; flex-direction: column; gap: 1.25rem; }
@media (max-width: 600px) {
  .med-card { padding: 1rem 1.25rem; }
}
.itc-trilogy { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 8px 0 12px; }
.itc-trilogy figure { margin: 0; }
.itc-trilogy img { width: 100%; height: auto; aspect-ratio: 600/847; object-fit: cover; display: block; border-radius: 4px; box-shadow: 0 2px 10px rgba(0,0,0,0.12); }
.itc-trilogy figcaption { font-size: 11px; color: var(--text-ter); text-align: center; padding-top: 6px; line-height: 1.3; }
.itc-portal-link { font-size: 12px; color: var(--text); text-decoration: none; border-bottom: 0.5px solid var(--text); padding-bottom: 1px; display: inline-block; margin-top: 4px; }
.itc-portal-link:hover { color: var(--text-sec); border-bottom-color: var(--text-sec); }

/* CHAPTER LIST */
.chapter-list { display: flex; flex-direction: column; gap: 12px; }
.chapter-card { display: flex; gap: 1.25rem; align-items: flex-start; background: #fff; border: 0.5px solid var(--border); border-radius: var(--radius-lg); padding: 1.25rem; }
.chapter-cover { flex-shrink: 0; width: 110px; aspect-ratio: 2/3; background: var(--bg-sec); border-radius: 4px; box-shadow: 0 2px 8px rgba(0,0,0,0.08); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.chapter-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.chapter-cover-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--text-sec); font-size: 11px; text-align: center; padding: 1rem; line-height: 1.4; }
.chapter-cover-placeholder .pub { font-weight: 500; font-size: 13px; color: var(--text); }
.chapter-info { flex: 1; min-width: 0; }
.chapter-role { font-size: 11px; color: var(--text-ter); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px; }
.chapter-title { font-size: 14px; font-weight: 500; line-height: 1.4; margin-bottom: 8px; }
.chapter-meta { font-size: 12px; color: var(--text-sec); line-height: 1.6; margin-bottom: 4px; }
.chapter-meta em { font-style: italic; }
.chapter-link { font-size: 12px; color: var(--text); text-decoration: none; border-bottom: 0.5px solid var(--text); padding-bottom: 1px; display: inline-block; margin-top: 4px; }
.chapter-link:hover { color: var(--text-sec); border-bottom-color: var(--text-sec); }
@media (max-width: 600px) {
  .chapter-card { flex-direction: column; gap: 1rem; }
  .chapter-cover { width: 130px; align-self: center; }
}

/* ARTICLE LIST */
.article-list { display: flex; flex-direction: column; gap: 12px; }
.article-card { display: flex; gap: 1rem; align-items: flex-start; background: #fff; border: 0.5px solid var(--border); border-radius: var(--radius-lg); padding: 1rem 1.25rem; }
.article-year { flex-shrink: 0; width: 52px; padding: 8px 0; background: var(--accent-light); border-radius: 4px; font-size: 13px; font-weight: 500; color: var(--text); text-align: center; line-height: 1.2; }
.article-info { flex: 1; min-width: 0; }
.article-role { font-size: 11px; color: var(--text-ter); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 5px; }
.article-title { font-size: 14px; font-weight: 500; margin-bottom: 4px; line-height: 1.45; }
.translated-title { font-size: 12px; color: var(--text-ter); font-style: italic; line-height: 1.4; margin-top: 2px; margin-bottom: 4px; }
.translated-title em { font-style: normal; }
.article-meta { font-size: 12px; color: var(--text-sec); line-height: 1.55; margin-bottom: 6px; }
.article-meta em { font-style: italic; }
.article-link { font-size: 12px; color: var(--text); text-decoration: none; border-bottom: 0.5px solid var(--text); padding-bottom: 1px; }
.article-link:hover { color: var(--text-sec); border-bottom-color: var(--text-sec); }
.article-todo { background: #FFF8E1; border: 0.5px solid #F0D87A; border-radius: var(--radius-md); padding: 0.5rem 0.75rem; font-size: 11px; color: #7A5A00; margin-top: 6px; }

/* GUEVREMONT TRIGGER + LIGHTBOX */
.gallery-trigger { display: flex; width: fit-content; align-items: center; gap: 8px; font-size: 12px; color: var(--text); cursor: pointer; padding: 8px 14px; background: var(--bg-sec); border: 0.5px solid var(--border); border-radius: var(--radius-md); margin-top: 10px; font-family: inherit; transition: background 0.2s, border-color 0.2s; }
.gallery-trigger:hover { background: #fff; border-color: var(--border-sec); }
.gallery-trigger .icon { display: inline-flex; width: 14px; height: 14px; align-items: center; justify-content: center; opacity: 0.6; }

.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,0.92); z-index: 1000; display: none; align-items: center; justify-content: center; padding: 1.5rem; }
.lightbox.open { display: flex; }
.lightbox-img { max-width: 100%; max-height: calc(100vh - 7rem); object-fit: contain; box-shadow: 0 8px 32px rgba(0,0,0,0.5); border-radius: 4px; }
.lightbox-controls { position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%); display: flex; gap: 1rem; align-items: center; }
.lightbox-btn { background: rgba(255,255,255,0.12); color: #fff; border: 0.5px solid rgba(255,255,255,0.25); border-radius: 6px; padding: 8px 14px; font-size: 13px; cursor: pointer; font-family: inherit; transition: background 0.2s; }
.lightbox-btn:hover { background: rgba(255,255,255,0.25); }
.lightbox-counter { color: #fff; font-size: 13px; opacity: 0.7; min-width: 48px; text-align: center; }
.lightbox-close { position: absolute; top: 1rem; right: 1rem; background: rgba(255,255,255,0.08); color: #fff; border: 0.5px solid rgba(255,255,255,0.2); border-radius: 50%; width: 40px; height: 40px; font-size: 22px; cursor: pointer; display: flex; align-items: center; justify-content: center; line-height: 1; padding: 0; }
.lightbox-close:hover { background: rgba(255,255,255,0.2); }
.lightbox-caption { position: absolute; top: 1.25rem; left: 1.25rem; color: rgba(255,255,255,0.7); font-size: 12px; font-style: italic; max-width: calc(100% - 80px); }

/* PROJECT LINKS */
.proj-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.proj-link-card { display: block; background: var(--bg-sec); border: 0.5px solid var(--border); border-radius: var(--radius-md); padding: 0.75rem 1rem; text-decoration: none; color: inherit; transition: border-color 0.2s, background 0.2s; }
.proj-link-card:hover { border-color: var(--border-sec); background: #fff; }
.proj-link-platform { font-size: 11px; color: var(--text-ter); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 2px; }
.proj-link-handle { font-size: 13px; color: var(--text); font-weight: 500; }
@media (max-width: 600px) { .proj-links { grid-template-columns: 1fr; } }

/* GEIST CARD */
.geist-card { display: grid; grid-template-columns: 140px 1fr; gap: 1.5rem; align-items: center; padding: 1.5rem; border: 0.5px solid var(--border); border-radius: var(--radius-lg); background: #fff; margin-bottom: 1rem; }
.geist-logo { width: 100%; aspect-ratio: 1; background: #000; border-radius: var(--radius-md); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.geist-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.geist-text h3 { font-size: 16px; font-weight: 500; margin-bottom: 4px; }
.geist-text .geist-role { font-size: 12px; color: var(--text-ter); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 8px; }
.geist-text p { font-size: 13px; color: var(--text-sec); line-height: 1.7; margin-bottom: 8px; }
.geist-text a { font-size: 12px; color: var(--text); text-decoration: none; border-bottom: 0.5px solid var(--text); padding-bottom: 1px; }
.geist-text a:hover { border-bottom-color: var(--text-sec); color: var(--text-sec); }

/* RESEARCH CARD */
.research-card { padding: 1.5rem; border: 0.5px solid var(--border); border-radius: var(--radius-lg); background: #fff; }
.research-card .role { font-size: 11px; color: var(--text-ter); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 8px; }
.research-card h3 { font-size: 16px; font-weight: 500; margin-bottom: 12px; line-height: 1.4; }
.research-card p { font-size: 13px; color: var(--text-sec); line-height: 1.75; margin-bottom: 10px; text-align: justify; }
.research-card p:last-child { margin-bottom: 0; }
.research-card .ref { font-size: 11px; color: var(--text-ter); }
@media (max-width: 600px) {
  .research-card { padding: 1.25rem; }
  .research-card p { text-align: left; }
}

/* GROUP CARD (without logo) */
.group-card { padding: 1.25rem 1.5rem; border: 0.5px solid var(--border); border-radius: var(--radius-lg); background: #fff; }
.group-card .role { font-size: 11px; color: var(--text-ter); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px; }
.group-card h3 { font-size: 15px; font-weight: 500; margin-bottom: 6px; line-height: 1.35; }
.group-card h3 .acronym { font-weight: 600; }
.group-card p { font-size: 13px; color: var(--text-sec); line-height: 1.6; margin-bottom: 4px; }
.group-card .group-meta { font-size: 12px; color: var(--text-ter); line-height: 1.55; }
.group-card a { font-size: 12px; color: var(--text); text-decoration: none; border-bottom: 0.5px solid var(--text); padding-bottom: 1px; display: inline-block; margin-top: 4px; }
.group-card a:hover { color: var(--text-sec); border-bottom-color: var(--text-sec); }
@media (max-width: 700px) {
  /* NAV */
  .nav-inner { padding: 0 1rem; gap: 1rem; }
  .nav-name { display: none; }
  .nav-links { gap: 1.1rem; }
  .nav-link { font-size: 12px; }
  .lang-switch { gap: 4px; }
  .lang { font-size: 15px; padding: 3px; }
}

@media (max-width: 600px) {
  /* HERO */
  .hero-word { padding: 2rem 1rem 1.25rem; }
  .imaginer { font-size: clamp(40px, 9vw, 60px); margin-bottom: 1.25rem; }
  .elements-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; padding: 0 1rem 2.5rem; }
  .el { aspect-ratio: 1; }
  .el-label { font-size: 12px; padding: 0.5rem; }

  /* INNER */
  .inner { padding: 2rem 1rem 3rem; }

  /* AXES */
  .axes-grid { grid-template-columns: 1fr; }

  /* CONTACT */
  .contact-layout { grid-template-columns: 1fr; gap: 1.5rem; }
  .contact-photo { aspect-ratio: 4/3; max-height: 360px; }

  /* CARDS */
  .article-card { flex-wrap: wrap; gap: 0.75rem; padding: 1rem; }
  .article-year { width: auto; padding: 4px 10px; font-size: 12px; }
  .chapter-card { flex-direction: column; gap: 1rem; padding: 1rem; }
  .chapter-cover { width: 130px; align-self: center; }

  /* GEIST + PROJECT */
  .geist-card { grid-template-columns: 1fr; gap: 1rem; }
  .geist-logo { max-width: 160px; margin: 0 auto; }
  .proj-hero { grid-template-columns: 80px 1fr; gap: 1rem; padding: 1rem; }
  .proj-meta, .proj-gallery { grid-template-columns: 1fr; }
  .proj-links { grid-template-columns: 1fr; }

  /* SUBTABS */
  .stab { padding: 8px 10px; font-size: 11px; }
  .subtabs-bar { position: relative; mask-image: linear-gradient(to right, black calc(100% - 24px), transparent 100%); -webkit-mask-image: linear-gradient(to right, black calc(100% - 24px), transparent 100%); }

  /* LIGHTBOX */
  .lightbox { padding: 1rem; }
  .lightbox-controls { bottom: 1rem; gap: 0.5rem; }
  .lightbox-btn { padding: 6px 10px; font-size: 12px; }
  .lightbox-caption { font-size: 11px; top: 1rem; left: 1rem; }
}

footer { border-top: 0.5px solid var(--border); text-align: center; padding: 2rem; font-size: 12px; color: var(--text-ter); }
