/* Écran d'intro */
.loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  transition: opacity 500ms var(--ease);
}
.loader.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.loader-name {
  position: relative;
  display: inline-block;
  font-family: var(--font-heading);
  font-size: var(--fs-loader);
  font-weight: 600;
  color: var(--text);
  opacity: 0;
  animation: loaderReveal 550ms var(--ease) 150ms forwards;
}
.loader-name::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.15em;
  width: 100%;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  animation: loaderUnderline 550ms var(--ease) 650ms forwards;
}

.loader-slogan {
  text-align: center;
  margin-top: var(--space-3);
  color: var(--text-muted);
  font-size: var(--fs-lead);
  opacity: 0;
  animation: loaderReveal 450ms var(--ease) 1050ms forwards;
}

@keyframes loaderReveal {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes loaderUnderline {
  to { transform: scaleX(1); }
}

@media (prefers-reduced-motion: reduce) {
  .loader-name, .loader-slogan { animation: none; opacity: 1; }
  .loader-name::after { animation: none; transform: scaleX(1); }
}

/* Section d'accueil */
.hero {
  padding: var(--space-6) 0 var(--space-5);
}
.hero h1 { max-width: 30rem; }
.hero p { max-width: var(--content-width); color: var(--text-muted); font-size: var(--fs-lead); }
.hero .btn { margin-top: var(--space-3); }

.section-list {
  border-top: 1px solid var(--border);
  padding-bottom: var(--space-6);
}

.section-list__item {
  border-bottom: 1px solid var(--border);
  padding: var(--space-4) 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.section-list__item a {
  font-family: var(--font-heading);
  font-size: var(--fs-h2);
  color: var(--text);
  text-decoration: none;
}
.section-list__item a:hover,
.section-list__item a:focus-visible {
  color: var(--accent);
}

.section-list__item p {
  color: var(--text-muted);
  margin: 0;
}

@media (min-width: 48rem) {
  .section-list__item {
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--space-4);
  }
  .section-list__item p { max-width: 24rem; text-align: right; }
}
