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

:root {
  --bg: #0a0a0f;
  --bg-subtle: #10101a;
  --accent: #00c8e0;
  --accent-dim: rgba(0, 200, 224, 0.15);
  --text: #d0d0d8;
  --text-bright: #f0f0f5;
  --text-muted: #707080;
  --border: rgba(0, 200, 224, 0.2);
  --section-gap: clamp(4rem, 8vw, 7rem);
}

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

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.25s;
}

a:hover {
  color: var(--text-bright);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* NAV */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1.5rem;
}

.nav-name {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-bright);
}

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

.nav-links a {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.25s;
}

.nav-links a:hover {
  color: var(--accent);
}

/* LAYOUT */

.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: var(--section-gap) 1.5rem;
}

.section-divider {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-divider::after {
  content: "";
  display: block;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

/* HERO */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 5rem;
}

.hero-inner {
  display: flex;
  align-items: center;
  gap: 3rem;
  width: 100%;
}

.hero-text {
  flex: 1;
}

.hero-label {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.hero-name {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 700;
  color: var(--text-bright);
  line-height: 1.15;
  margin-bottom: 1.2rem;
}

.hero-tagline {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 480px;
}

.hero-tagline span {
  color: var(--accent);
}

.hero-portrait {
  flex-shrink: 0;
  width: 260px;
}

.hero-portrait img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border: 1px solid var(--border);
  border-radius: 4px;
}

/* SECTIONS CONTENU */

.section-label {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.section-content p {
  margin-bottom: 1.2rem;
  max-width: 720px;
}

.section-content p:last-child {
  margin-bottom: 0;
}

/* COLONNES (jeu vidéo / innovation) */

.two-cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

/* CLOTILDE */

.clotilde-inner {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.clotilde-portrait {
  flex-shrink: 0;
  width: 260px;
}

.clotilde-portrait img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border: 1px solid var(--border);
  border-radius: 4px;
}

.clotilde-links {
  display: flex;
  gap: 1.5rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.clotilde-links a {
  padding: 0.5rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: 3px;
  font-size: 0.85rem;
  transition: border-color 0.25s, color 0.25s;
}

.clotilde-links a:hover {
  border-color: var(--accent);
  color: var(--text-bright);
}

/* FOOTER */

.footer {
  border-top: 1px solid var(--border);
  margin-top: var(--section-gap);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  list-style: none;
}

.footer-links a {
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: color 0.25s;
}

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

.footer-copy {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* JJB LINK */

.jjb-link {
  color: var(--accent);
  cursor: pointer;
  border-bottom: 1px dotted var(--accent);
  transition: color 0.25s;
}

.jjb-link:hover {
  color: var(--text-bright);
}

/* MODAL JJB */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  background: #12121f;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem 2.5rem;
  max-width: 420px;
  width: 90%;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s;
}

.modal-overlay.active .modal-box {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 0.8rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.6rem;
  cursor: pointer;
  transition: color 0.25s;
  line-height: 1;
}

.modal-close:hover {
  color: var(--text-bright);
}

.modal-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 0.8rem;
}

.modal-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.modal-lineage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.lineage-node {
  width: 100%;
  text-align: center;
  padding: 10px 14px;
  background: #1a1a28;
  border: 1px solid #3a3a5a;
  border-radius: 6px;
}

.lineage-name {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  color: #e8e8f0;
}

.lineage-info {
  display: block;
  font-size: 0.75rem;
  color: #777;
  margin-top: 2px;
}

.lineage-highlight {
  background: #111;
  border: 2px solid #b22222;
  box-shadow: 0 0 16px rgba(178, 34, 34, 0.25);
}

.lineage-highlight .lineage-name {
  color: #fff;
  font-size: 1.05rem;
}

.lineage-highlight .lineage-info {
  color: rgba(255,255,255,0.7);
}

.lineage-arrow {
  width: 2px;
  height: 20px;
  background: #3a3a5a;
  position: relative;
}

.lineage-arrow::after {
  content: '\25BC';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 8px;
  color: #5a5a7a;
}

/* RESPONSIVE */

@media (min-width: 768px) {
  .two-cols {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

@media (max-width: 767px) {
  .nav-inner {
    padding: 0.6rem 1rem;
  }

  .nav-name {
    font-size: 0.75rem;
  }

  .nav-links {
    gap: 0.8rem;
  }

  .nav-links a {
    font-size: 0.65rem;
    white-space: nowrap;
  }

  .hero-inner {
    flex-direction: column-reverse;
    text-align: center;
  }

  .hero-portrait {
    width: 180px;
  }

  .hero-tagline {
    margin-left: auto;
    margin-right: auto;
  }

  .clotilde-inner {
    flex-direction: column;
    text-align: center;
  }

  .clotilde-portrait {
    width: 180px;
  }

  .clotilde-links {
    flex-direction: column;
    align-items: stretch;
  }

  .clotilde-links a {
    text-align: center;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }
}
