/* === Import Palette === */
@import url('./palette.css');

/* === Reset & Base === */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', sans-serif;
  background: var(--color-bg-main);
  color: var(--color-text-white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* === TITRES & Accordéon === */
h2, .accordion-toggle {
  background: var(--color-bg-dark);
  color: var(--color-text-white);
  box-shadow: 0 4px 16px var(--color-bg-dark);
  border-radius: 12px;
  padding: 0.75em 1em;
  margin-bottom: 1.2rem;
  font-family: 'Orbitron', sans-serif;
  font-size: 1.3em;
  text-align: center;
  letter-spacing: 1px;
  border: none;
  outline: none;
}
.accordion-toggle {
  width: 100%;
  text-align: left;
  cursor: pointer;
  position: relative;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  margin-bottom: 0.5em;
}
.accordion-toggle[aria-expanded="true"] {
  background: var(--color-bg-card);
  color: var(--color-text-white);
  box-shadow: 0 4px 16px var(--color-bg-dark);
}
.accordion-toggle:hover,
.accordion-toggle:focus {
  background: var(--color-bg-dark);
  color: var(--color-text-white);
}
.accordion-toggle::after {
  content: '\f078';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  right: 1.2em;
  top: 50%;
  transform: translateY(-50%) rotate(0deg);
  transition: transform 0.3s;
  font-size: 1em;
  color: inherit;
}
.accordion-toggle[aria-expanded="true"]::after {
  transform: translateY(-50%) rotate(-180deg);
}
.accordion-content {
  background: var(--color-bg-card);
  color: var(--color-text-white);
  box-shadow: 0 4px 16px var(--color-bg-dark);
  border-radius: 12px;
  padding: 1em 1.5em;
  margin-bottom: 1.2em;
  text-align: left;
  animation: fadeIn 0.3s;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px);}
  to { opacity: 1; transform: translateY(0);}
}

/* === Dialogue Box & Section === */
.section, .dialogue-box {
  max-width: 900px;
  margin: 2rem auto;
  padding: 1rem;
  background: var(--color-bg-glass);
  border-radius: 16px;
  box-shadow: 0 8px 20px var(--color-shadow-glass);
  text-align: center;
}

/* === Hero Banner === */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh; /* occupe toute la hauteur de l’écran */
  text-align: center;
  background: none;
}

.hero-frame {
  display: flex;
  flex-direction: column; /* logo au-dessus du texte */
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4em;
  background: none;
  max-width: 90vw;
}

.hero-logo-frame {
  height: 100px;
  max-width: 90%;
  margin-bottom: 1em;
  display: block;
}

/* === Timeline === */
.timeline {
  position: relative;
  margin: 2rem auto;
  max-width: 800px;
  padding: 2rem 0;
}
.timeline::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  width: 4px; height: 100%;
  background: var(--color-bg-dark);
  transform: translateX(-50%);
  border-radius: 2px;
  box-shadow: 0 4px 16px var(--color-bg-dark);
}
.timeline-item {
  position: relative;
  width: 45%;
  margin-bottom: 2rem;
  padding: 1rem 1.5rem;
  background: var(--color-bg-card);
  border-radius: 12px;
  box-shadow: 0 4px 16px var(--color-bg-dark);
  color: var(--color-text-white);
  transition: transform 0.3s, box-shadow 0.3s;
}
.timeline-item:nth-child(even) { left: 55%; }
.timeline-item:nth-child(odd) { left: 0; }
.timeline-badge {
  position: absolute;
  top: 50%; left: -14px;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--color-bg-dark);
  color: var(--color-text-white);
  text-align: center;
  line-height: 28px;
  font-size: 1.2rem;
  box-shadow: 0 0 8px var(--color-bg-dark);
  animation: pulse 1.5s infinite;
  z-index: 2;
}
@keyframes pulse { 0%,100%{transform:scale(1);} 50%{transform:scale(1.2);} }

/* === Social Bar === */
.social-bar .social-icons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}
.btn-social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--color-bg-dark);
  font-size: 2rem;
  border: 1px solid var(--color-bg-dark);
  transition: all 0.3s;
  cursor: pointer;
  color: var(--color-text-white);
  text-decoration: none;
  box-shadow: 0 4px 16px var(--color-bg-dark);
}
.btn-social i { color: inherit; transition: color 0.3s; }
.btn-social:hover {
  transform: scale(1.2) rotate(10deg);
  color: var(--color-primary);
  background: var(--color-bg-card);
  box-shadow: 0 0 15px var(--color-bg-dark);
}
.btn-social:hover i { color: var(--color-primary); }

/* === Press Previews === */
.press-previews {
  display: flex;
  flex-wrap: wrap;
  gap: 1em;
  justify-content: center;
}
.link-preview {
  display: flex;
  background: var(--color-bg-card);
  border-radius: 0.5em;
  overflow: hidden;
  max-width: 500px;
  box-shadow: 0 4px 16px var(--color-bg-dark);
  transition: transform 0.2s, box-shadow 0.2s;
  color: var(--color-text-white);
}
.link-preview img { width: 120px; object-fit: cover; }
.preview-text { padding: 0.5em 1em; }
.preview-text strong { color: var(--color-primary); font-size: 0.95rem; }
.preview-text p { color: var(--color-text-white); font-size: 0.85rem; }
.preview-text a { color: var(--color-primary); text-decoration: none; font-weight: 500; }
.preview-text a:hover {
  color: var(--color-bg-dark);
  text-decoration: underline;
  background: var(--color-primary);
}

/* === Textes principaux === */
body,
h2,
.hero-text,
.accordion-toggle,
.accordion-content,
.timeline-item,
.timeline-badge,
.btn-social,
.preview-text,
.link-preview,
.section,
.dialogue-box {
  color: var(--color-primary);
}

/* Pour les liens au survol */
.preview-text a:hover { color: var(--color-bg-dark); }
