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

body {
  font-family: 'Space Grotesk', sans-serif;
  background-color: #3a3aff;
  transition: background-color 1s;
}

body.eclipse { background-color: #000; }

nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  padding: 24px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 150;
}

.logo {
  font-size: 13px;
  font-weight: 900;
  line-height: 1.2;
  color: #000;
  transition: color 1s;
}

body.eclipse .logo { color: #3a3aff; }

.nav-links { display: flex; gap: 10px; }

.nav-links a {
  background: #000;
  color: #3a3aff;
  padding: 8px 20px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  border: 1.5px solid #000;
  transition: background 0.3s, color 0.3s;
}

.nav-links a:hover {
  background: #3a3aff;
  color: #fff;
  border: 1.5px solid #000;
}

body.eclipse .nav-links a {
  background: #3a3aff;
  color: #fff;
  border: 1.5px solid #3a3aff;
}

body.eclipse .nav-links a:hover {
  background: #000;
  color: #3a3aff;
  border: 1.5px solid #3a3aff;
}

.panel {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: #000;
  padding: 24px 40px;
  z-index: 200;
  transform: translateY(-100%);
  transition: transform 0.4s ease;
  display: flex;
  align-items: center;
  gap: 40px;
}

.panel.ouvert { transform: translateY(0); }

.panel-label {
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #3a3aff;
  white-space: nowrap;
}

.panel-texte {
  font-size: 12px;
  line-height: 1.7;
  color: #fff;
  opacity: 0.7;
  max-width: 600px;
}

.panel-fermer {
  position: absolute;
  right: 40px;
  background: none;
  border: none;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.3s;
}

.panel-fermer:hover { opacity: 1; }

.hero {
  height: 100vh;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
}

@media (max-width: 768px) {
  nav { padding: 20px 24px; }
  .nav-links a { padding: 6px 12px; font-size: 10px; }
  .hero {
    position: sticky;
    top: 0;
    padding: 24px;
  }
}

.etoiles {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}

.etoile {
  position: absolute;
  width: 3px; height: 3px;
  border-radius: 50%;
  background-color: #fff;
  opacity: 0;
  transition: opacity 1s;
}

body.eclipse .etoile { opacity: 1; }

.centre {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  z-index: 5;
}

.anecdote-pop {
  position: absolute;
  top: 12%;
  left: 50%;
  transform: translateX(-50%);
  width: 260px;
  background: #000;
  padding: 16px 20px;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  text-align: center;
}

body.eclipse .anecdote-pop { background: #3a3aff; }
.anecdote-pop.visible { opacity: 1; }

.anecdote-pop-temps {
  font-size: 10px;
  letter-spacing: 3px;
  color: #3a3aff;
  display: block;
  margin-bottom: 6px;
}

body.eclipse .anecdote-pop-temps { color: #000; }

.anecdote-pop p {
  font-size: 12px;
  line-height: 1.6;
  color: #fff;
  opacity: 0.8;
}

body.eclipse .anecdote-pop p { color: #000; }

.timer {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 3px;
  color: #000;
  transition: color 1s;
  align-self: flex-start;
}

body.eclipse .timer { color: #fff; }

.timeline { width: 340px; }

@media (max-width: 768px) {
  .timeline { width: 230px; }
}

.timeline-track {
  position: relative;
  height: 2px;
  background-color: rgba(0,0,0,0.15);
  transition: background-color 1s;
}

body.eclipse .timeline-track { background-color: rgba(255,255,255,0.2); }

.timeline-fill {
  position: absolute;
  top: 0; left: 0;
  height: 2px; width: 0%;
  background-color: #000;
  transition: background-color 1s;
}

body.eclipse .timeline-fill { background-color: #fff; }

.timeline-point {
  position: absolute;
  top: 50%; left: 0%;
  transform: translate(-50%, -50%);
  width: 12px; height: 12px;
  border-radius: 50%;
  background-color: #000;
  transition: background-color 1s;
  z-index: 7;
}

body.eclipse .timeline-point { background-color: #fff; }

.timeline-labels {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  letter-spacing: 2px;
  color: #000;
  opacity: 0.4;
  margin-top: 8px;
  transition: color 1s;
}

body.eclipse .timeline-labels { color: #fff; }

.eclipse-zone {
  position: relative;
  width: 340px; height: 340px;
}

@media (max-width: 768px) {
  .eclipse-zone { width: 230px; height: 230px; }
}

.cercle-grand {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 340px; height: 340px;
  border-radius: 50%;
  border: 1.5px solid #000;
  z-index: 1;
  transition: border-color 1s;
}

body.eclipse .cercle-grand { border-color: #3a3aff; }

@media (max-width: 768px) {
  .cercle-grand { width: 230px; height: 230px; }
}

.cercle-petit {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 180px; height: 180px;
  border-radius: 50%;
  border: 1.5px solid #000;
  z-index: 1;
  transition: border-color 1s;
}

body.eclipse .cercle-petit { border-color: #3a3aff; }

@media (max-width: 768px) {
  .cercle-petit { width: 120px; height: 120px; }
}

.lignes {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 340px; height: 340px;
  z-index: 1;
}

@media (max-width: 768px) {
  .lignes { width: 230px; height: 230px; }
}

.lignes::after {
  content: '';
  position: absolute;
  left: 50%; top: 0; bottom: 0;
  width: 1.5px;
  background: #000;
  transform: translateX(-50%);
  transition: background 1s;
}

body.eclipse .lignes::after { background: #3a3aff; }

.soleil {
  position: absolute;
  width: 72px; height: 72px;
  border-radius: 50%;
  background-color: #f5c518;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
}

@media (max-width: 768px) {
  .soleil { width: 50px; height: 50px; }
}

.lune {
  position: absolute;
  width: 72px; height: 72px;
  border-radius: 50%;
  background-color: #000;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  opacity: 1;
}

@media (max-width: 768px) {
  .lune { width: 50px; height: 50px; }
}

.texte-cache {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 8;
  opacity: 0;
  transition: opacity 1s;
  pointer-events: none;
}

.texte-cache.visible { opacity: 1; }

.texte-cache p {
  font-size: clamp(2rem, 6vw, 5rem);
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1;
}

.texte-cache span {
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #fff;
  opacity: 0.6;
}

h1 {
  font-size: clamp(3rem, 10vw, 9rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.03em;
  position: relative;
  z-index: 2;
}

@media (max-width: 768px) {
  h1 { font-size: clamp(2.5rem, 13vw, 5rem); }
}

.mot {
  display: inline-block;
  transition: font-size 0.3s ease, color 1s;
  text-decoration: none;
  color: #000;
}

body.eclipse .mot { color: #fff; }
.mot:hover { font-size: clamp(4rem, 13vw, 12rem); }

.scroll-zone {
  display: none;
}

@media (max-width: 768px) {
  .scroll-zone {
    display: block;
    height: 300vh;
    position: relative;
    z-index: 2;
  }
}

.section-noire {
  min-height: 100vh;
  background-color: #000;
  color: #3a3aff;
  padding: 120px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 20;
}

.section-bleue {
  min-height: 100vh;
  background-color: #3a3aff;
  color: #000;
  padding: 120px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 20;
}

@media (max-width: 768px) {
  .section-noire { padding: 80px 24px; }
  .section-bleue { padding: 80px 24px; }
}

.titre-section {
  font-size: clamp(3rem, 10vw, 9rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.03em;
  margin-bottom: 40px;
}

@media (max-width: 768px) {
  .titre-section { font-size: clamp(2.5rem, 12vw, 5rem); }
}

.section-noire .titre-section { color: #3a3aff; }
.section-bleue .titre-section { color: #000; }

.texte-section {
  font-size: clamp(1rem, 1.8vw, 1.3rem);
  font-weight: 400;
  line-height: 1.8;
  max-width: 600px;
  opacity: 0.8;
}

@media (max-width: 768px) {
  .texte-section { font-size: 15px; }
}

.apparait {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.apparait.visible { opacity: 1; transform: translateY(0); }