/* Splash pleine page - thème Relearn */
#splash-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #6eb043;
  z-index: 99999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
#splash-overlay.hidden {
  transform: translateY(-100%);
}
.splash-content {
  max-width: 800px;
  padding: 2rem;
  text-align: center;
}
.splash-title {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: #ffffff;
  font-weight: bold;
}
.splash-title:last-of-type {
  margin-bottom: 2rem;
}
.principes-box {
  padding: 1.5rem 2rem;
  background: #ffffff;
  border-radius: 8px;
  text-align: left;
  color: #000000;
}
.principe-line {
  display: flex;
  align-items: center;
  font-size: 1.1rem;
  font-weight: 600;
  padding: 0.5rem 0;
  color: #1a1a1a;
}
.principe-line .emoji {
  font-size: 1.3rem;
  margin-right: 0.75rem;
  flex-shrink: 0;
}
.conclusion {
  margin-top: 2rem;
  font-style: italic;
  color: #ffffff;
}
.splash-enter {
  margin-top: 2rem;
  font-size: 1.5rem;
  cursor: pointer;
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  60% { transform: translateY(-5px); }
}

/* Cacher le titre h1 automatique de Relearn - on utilise notre format h2 + chapter-title */
/* Le h1 suit le header.headline dans la structure Relearn */
article.default > h1,
article > header.headline + h1,
.headline + h1 {
  display: none !important;
}

/* Titres de chapitres et appendices - format deux lignes */
.chapter-title {
  font-size: 1.5rem;
  font-weight: bold;
  text-align: center;
  margin: 0.5rem 0 2rem 0;
  color: var(--INTERNAL-MAIN-TEXT-color, #333);
}

/* Centrer les titres h2 des chapitres/appendices */
h2:has(+ .chapter-title),
h2:first-of-type {
  text-align: center;
  border-bottom: none;
}

/* Cacher le sélecteur de variante Relearn (pinceau) - on utilise notre bouton soleil/lune */
li.R-variantswitcher {
  display: none !important;
}

/* === Sélecteur de langue avec drapeaux === */
/* Cacher le dropdown natif et l'icône globe */
li.R-languageswitcher .control-style,
li.R-languageswitcher > .padding > i,
li.R-languageswitcher > .padding > span {
  display: none !important;
}

/* Conteneur des drapeaux */
.lang-flags {
  display: flex;
  gap: 8px;
  justify-content: center;
  padding: 8px 0;
}

/* Style des drapeaux */
.lang-flag {
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.2s, transform 0.2s;
  text-decoration: none;
}
.lang-flag:hover {
  opacity: 0.8;
  transform: scale(1.1);
}
.lang-flag.active {
  opacity: 1;
  transform: scale(1.15);
}

/* Ajuster le padding du conteneur */
li.R-languageswitcher > .padding {
  padding: 0 !important;
}
