@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@300;400;500;600;700;800&family=Share+Tech+Mono&display=swap');

:root {
  --bg-color: #ffffff;
  --text-main: #000000;
  --text-muted: #555555;
  --border-hard: #000000;
  --border-light: #cccccc;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'JetBrains Mono', monospace;
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.disclaimer {
  font-size: 0.78rem;
  color: var(--text-muted, #888);
  border-left: 3px solid var(--accent, #555);
  padding: 0.6rem 1rem;
  margin: 0.5rem 0 1.5rem 0;
  line-height: 1.5;
  max-width: 720px;
}
/* ══════════════════════════════════════
   HEADER & NAVIGATION
══════════════════════════════════════ */

header {
  border-bottom: 2px solid var(--border-hard);
  padding: 24px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.logo-wrapper {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  flex-shrink: 0;
  white-space: nowrap;
}

.logo {
  font-family: 'Share Tech Mono', monospace;
  font-size: 1.6rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-main);
}

.logo-subtitle {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 4px;
  margin-left: 2px;
}

nav {
  display: flex;
  gap: 32px;
}

nav a {
  color: var(--text-main);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
}

nav a:hover,
nav a.active {
  border-bottom: 2px solid var(--border-hard);
}
/*Drop menu/*
/* ══ DROPDOWN NAV ══ */
.drop { position: relative; }

.drop-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-main);
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: border-color 0.2s;
  white-space: nowrap;
}
.drop-btn:hover { border-bottom-color: var(--border-hard); }

.drop-btn .chevron {
  width: 7px;
  height: 7px;
  border-right: 1.5px solid #000;
  border-bottom: 1.5px solid #000;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.2s;
  flex-shrink: 0;
  line-height: 1;
}
.drop.open .chevron { transform: rotate(-135deg) translateY(-2px); }

.drop-menu {
  display: none;
  position: absolute;
  top: calc(100% + 16px);
  left: 0;
  background: #0a0a0a;
  min-width: 210px;
  z-index: 300;
  overflow: hidden;
}

.drop-menu::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 1px;
  background: #444;
  animation: scanline 0.25s ease forwards;
  pointer-events: none;
}

@keyframes scanline {
  from { top: 0; opacity: 0.8; }
  to   { top: 100%; opacity: 0; }
}

.drop.open .drop-menu { display: block; }

.drop-menu a {
  display: block;
  padding: 13px 20px;
  color: #888;
  text-decoration: none;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border-left: 2px solid transparent;
  border-bottom: 1px solid #111;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
  animation: rowIn 0.2s ease both;
}
.drop-menu a:nth-child(1) { animation-delay: 0.02s; }
.drop-menu a:nth-child(2) { animation-delay: 0.07s; }
.drop-menu a:nth-child(3) { animation-delay: 0.12s; }

@keyframes rowIn {
  from { opacity: 0; transform: translateX(-5px); }
  to   { opacity: 1; transform: translateX(0); }
}

.drop-menu a:last-child { border-bottom: none; }

.drop-menu a:hover {
  color: #fff;
  border-left-color: #fff;
  background: #111;
}

.nav-separator {
  width: 1px;
  height: 18px;
  background: #ccc;
  flex-shrink: 0;
}
/* ══════════════════════════════════════
   MAIN LAYOUT
══════════════════════════════════════ */

main {
  flex: 1;
  padding: 60px 40px;
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
}

.page-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  border: 1px solid var(--border-light);
  padding: 6px 12px;
  display: inline-block;
  margin-bottom: 32px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

h1 {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 24px;
  letter-spacing: -0.5px;
}

h2 {
  font-size: 1.5rem;
  border-bottom: 1px solid var(--border-hard);
  padding-bottom: 12px;
  margin-top: 48px;
  margin-bottom: 24px;
}

p {
  margin-bottom: 24px;
  font-size: 1rem;
  color: var(--text-muted);
}

/* ══════════════════════════════════════
   HOMEPAGE — HERO
══════════════════════════════════════ */

.hero {
  padding: 80px 0 64px;
  border-bottom: 1px solid var(--border-light);
}

.hero-eyebrow {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--text-muted);
  flex-shrink: 0;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 0;
}

/* Titre avec rotation de mots via JS */
.hero-title-static {
  display: block;
}

.hero-title-rotate {
  display: block;
  min-height: 1.15em;
}

.hero-title-rotate .rotate-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  position: absolute;
}

.hero-title-rotate .rotate-word.visible {
  opacity: 1;
  transform: translateY(0);
  position: relative;
}

.hero-title-separator {
  color: var(--text-muted);
  font-weight: 300;
  margin: 0 4px;
}

.rotate-word {
  font-family: 'Share Tech Mono', monospace;
  font-weight: 400;
  color: var(--text-muted);
}

.hero-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 520px;
  margin-top: 28px;
  margin-bottom: 0;
}

/* ══════════════════════════════════════
   HOMEPAGE — SECTION DIVIDER
══════════════════════════════════════ */

.section-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 56px 0 32px;
}

.section-divider span {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
  white-space: nowrap;
}

.section-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-light);
}

/* ══════════════════════════════════════
   HOMEPAGE — NAV LIST (terminal)
══════════════════════════════════════ */

.nav-list {
  margin-bottom: 8px;
}

.entry {
  display: flex;
  align-items: baseline;
  gap: 20px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border-light);
  text-decoration: none;
  color: var(--text-main);
  transition: background 0.1s, color 0.1s, padding 0.1s;
}

.entry:first-child {
  border-top: 1px solid var(--border-light);
}

.entry:hover {
  background: var(--text-main);
  color: var(--bg-color);
  padding-left: 12px;
  padding-right: 12px;
  border-color: var(--text-main);
}

.entry:hover .tag  { color: rgba(255,255,255,0.45); }
.entry:hover .desc { color: rgba(255,255,255,0.45); }

.tag {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  width: 110px;
  flex-shrink: 0;
  transition: color 0.1s;
}

.entry .title {
  font-weight: 700;
  font-size: 0.85rem;
  width: 180px;
  flex-shrink: 0;
}

.entry .desc {
  font-size: 0.72rem;
  color: var(--text-muted);
  transition: color 0.1s;
}

.nav-cursor {
  display: inline-block;
  width: 7px;
  height: 13px;
  background: var(--text-main);
  vertical-align: middle;
  margin-top: 16px;
  margin-bottom: 40px;
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

/* ══════════════════════════════════════
   HOMEPAGE — STATS BAR
══════════════════════════════════════ */

.footer-stats {
  display: flex;
  gap: 48px;
  padding: 28px 0;
  border-top: 1px solid var(--border-light);
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-num {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1;
}

.stat-label {
  font-size: 0.68rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

/* ══════════════════════════════════════
   CARDS GRILLE (pages intérieures)
══════════════════════════════════════ */

.data-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 40px;
}

.data-card {
  border: 1px solid var(--border-hard);
  padding: 24px;
  text-decoration: none;
  color: var(--text-main);
  transition: background-color 0.15s, color 0.15s;
  display: flex;
  flex-direction: column;
}

.data-card:hover {
  background-color: var(--text-main);
  color: var(--bg-color);
}

.data-card:hover .card-meta,
.data-card:hover p {
  color: var(--bg-color);
}

.card-title {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.card-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: auto;
  padding-top: 24px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card-contrib {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border-light);
}

.contrib-label {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.contrib-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.contrib-tags span {
  font-size: 0.6rem;
  border: 1px solid #ccc;
  padding: 2px 8px;
  letter-spacing: 0.3px;
  color: #666;
  transition: color 0.15s, border-color 0.15s;
}

.data-card:hover .card-contrib {
  border-top-color: rgba(255,255,255,0.2);
}

.data-card:hover .contrib-label {
  color: rgba(255,255,255,0.5);
}

.data-card:hover .contrib-tags span {
  color: rgba(255,255,255,0.7);
  border-color: rgba(255,255,255,0.3);
}

/* ══════════════════════════════════════
   LISTE DE LECTURE
══════════════════════════════════════ */

.status-section {
  margin-top: 48px;
}

.status-header {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-main);
  padding-bottom: 8px;
  margin-bottom: 0;
}

.reading-list {
  display: flex;
  flex-direction: column;
  border-top: 2px solid var(--border-hard);
}

.list-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-light);
  text-decoration: none;
  color: var(--text-main);
  transition: all 0.15s ease;
}

.list-item:hover {
  background-color: var(--text-main);
  color: var(--bg-color);
  padding-left: 16px;
  padding-right: 16px;
  border-bottom-color: var(--border-hard);
}

.list-item:hover .item-meta,
.list-item:hover .item-author {
  color: var(--bg-color);
  opacity: 0.8;
}

.item-title {
  font-weight: 600;
  font-size: 1.05rem;
}

.item-author {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.item-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  margin-left: 20px;
  text-align: right;
}

/* ══════════════════════════════════════
   FOOTER
══════════════════════════════════════ */

footer {
  border-top: 1px solid var(--border-hard);
  padding: 24px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  margin-left: 24px;
  font-weight: 600;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--text-main);
}

/* ══════════════════════════════════════
   CROSS-NAVIGATION FLOATING BUTTON
══════════════════════════════════════ */

.crossnav-float {
    position: fixed;
    bottom: 28px;
    left: 32px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    font-weight: 600;
    color: #fff;
    background: #000;
    text-decoration: none;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 10px 18px;
    border: 1px solid #000;
    z-index: 50;
    transition: background 0.15s, color 0.15s, box-shadow 0.15s;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}
.crossnav-float:hover {
    background: #fff;
    color: #000;
    border-color: #000;
    box-shadow: 0 2px 16px rgba(0,0,0,0.25);
}
.crossnav-float .arrow {
    font-size: 0.8rem;
    transition: transform 0.15s;
    display: inline-block;
}
.crossnav-float:hover .arrow { transform: translateX(4px); }

@media (max-width: 900px) {
    .crossnav-float {
        bottom: 16px;
        left: 16px;
        font-size: 0.58rem;
        padding: 8px 14px;
    }
}

/* ══════════════════════════════════════
   RESPONSIVE — MOBILE (< 900px)
══════════════════════════════════════ */

@media (max-width: 900px) {
  header {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    gap: 20px;
  }

  nav {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    width: auto;
    border-top: none;
  }

  .drop-btn {
    font-size: 0.75rem;
    padding: 6px 10px;
    border: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
  }

  .drop-btn:hover,
  .drop.open .drop-btn {
    border-color: var(--border-hard);
    background: var(--text-main);
    color: var(--bg-color);
  }

  .drop.open .drop-btn .chevron {
    border-color: var(--bg-color);
  }

  .drop-menu {
    top: calc(100% + 6px);
    min-width: 160px;
  }
  /* Contact */
  .contact-list {
    display: flex;
    flex-direction: column;
    border-top: 2px solid var(--border-hard);
    max-width: 640px;
}

.contact-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-light);
    text-decoration: none;
    color: var(--text-main);
    transition: all 0.15s ease;
}

.contact-row:hover {
    background-color: var(--text-main);
    color: var(--bg-color);
    padding-left: 16px;
    padding-right: 16px;
    border-bottom-color: var(--border-hard);
}

.contact-row:hover .contact-label,
.contact-row:hover .contact-value,
.contact-row:hover .contact-arrow {
    color: var(--bg-color);
}

.contact-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contact-label {
    font-size: 0.68rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: color 0.15s;
}

.contact-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
    transition: color 0.15s;
}

.contact-arrow {
    font-size: 1.1rem;
    color: var(--text-muted);
    transition: color 0.15s;
}

@media (max-width: 900px) {
    .contact-list {
        max-width: 100%;
    }
}
  /* lang switcher */
  nav > a {
    padding: 6px 10px;
    font-size: 0.7rem;
    align-self: center;
  }

  main {
    padding: 40px 20px;
  }

  .hero {
    padding: 48px 0 40px;
  }

  .nav-separator { display: none; }

  .hero-title-rotate { min-height: 2.6em; }

  .footer-stats {
    gap: 24px;
    flex-wrap: wrap;
  }

  .data-grid {
    grid-template-columns: 1fr;
  }

  .list-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .item-meta {
    margin-left: 0;
    margin-top: 8px;
    text-align: left;
  }

  footer {
    flex-direction: column;
    gap: 16px;
    text-align: center;
    padding: 24px 20px;
  }

  .footer-links a {
    margin: 0 12px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.9rem;
  }
  .hero-title-rotate { min-height: 2.8em; }
}

/* ══════════════════════════════════════
   FOOTER
/* ============================================
   SITE FOOTER
   ============================================ */
   .site-footer {
    border-top: 2px solid var(--border-hard);
    margin-top: 120px;
    padding: 60px 40px 30px;
    font-family: 'JetBrains Mono', monospace;
    color: var(--text-main);
    background: var(--bg-color);
  }
  
  .footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr 1fr;
    gap: 60px;
    max-width: 1400px;
    margin: 0 auto;
    padding-bottom: 50px;
    border-bottom: 1px solid var(--border-light);
  }
  
  .footer-col {
    display: flex;
    flex-direction: column;
  }
  
  .footer-identity .footer-brand {
    font-family: 'Share Tech Mono', monospace;
    font-size: 28px;
    letter-spacing: 2px;
    margin-bottom: 18px;
    color: var(--text-main);
  }
  
  .footer-meta {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.8;
    letter-spacing: 0.5px;
  }
  
  .footer-link {
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease, color 0.2s ease;
    width: fit-content;
  }
  
  .footer-link:hover {
    color: var(--text-main);
    border-bottom-color: var(--text-main);
  }
  
  .footer-copy {
    margin-top: 14px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
  }
  
  .footer-title {
    font-family: 'Share Tech Mono', monospace;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-main);
    padding-bottom: 10px;
    margin-bottom: 16px;
    border-bottom: 2px solid var(--border-hard);
  }
  
  .footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  
  .footer-list li a {
    font-size: 13px;
    color: var(--text-muted);
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: color 0.2s ease, padding-left 0.2s ease;
    display: inline-block;
  }
  
  .footer-list li a:hover {
    color: var(--text-main);
    padding-left: 8px;
  }
  
  /* Bottom bar */
  .footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    text-align: center;
  }
  
  .footer-legal {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 11px;
    letter-spacing: 0.5px;
  }
  
  .footer-legal a {
    color: var(--text-muted);
    text-decoration: none;
    text-transform: uppercase;
    transition: color 0.2s ease;
  }
  
  .footer-legal a:hover {
    color: var(--text-main);
  }
  
  .footer-sep {
    color: var(--border-light);
  }
  
  .footer-baseline {
    font-family: 'Share Tech Mono', monospace;
    font-size: 12px;
    letter-spacing: 2.5px;
    color: var(--text-main);
    text-transform: uppercase;
  }
  
  /* Responsive */
  @media (max-width: 820px) {
    .site-footer {
      padding: 50px 24px 25px;
      margin-top: 80px;
    }
    .footer-grid {
      grid-template-columns: 1fr;
      gap: 40px;
      padding-bottom: 35px;
    }
    .footer-baseline {
      font-size: 11px;
      letter-spacing: 2px;
    }
  }