/* ==========================================================================
   AD Normandie — 10 ans — Styles globaux
   ========================================================================== */

@font-face {
  font-family: 'Autumn Chant';
  src: url('../autumnchant/Autumn Chant.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Couleurs — palette Figma */
  --color-noir: #222221;
  --color-blanc: #ffffff;
  --color-gris-clair: #f8f7f7;
  --color-bleu-fonce: #065364;
  --color-turquoise: #009892;
  --color-rose: #e6105d;
  --color-bleu-moyen: #51689c;
  --color-rose-clair: #F29093;

  /* Typographie */
  --font-titre: 'DM Serif Display', Georgia, serif;
  --font-corps: 'DM Sans', system-ui, -apple-system, sans-serif;
  --font-manuscrit: 'Autumn Chant', cursive;
}

html {
  font-size: 16px;
}

body {
  font-family: var(--font-corps);
  color: var(--color-noir);
  background-color: var(--color-gris-clair);
  overflow-x: hidden;
}

/* Scroll bloqué pendant l'animation */
body:not(.scroll-unlocked) {
  overflow: hidden;
}

/* Masquer tout contenu après le hero tant que l'animation n'est pas terminée */
body:not(.scroll-unlocked) .hero-wrapper ~ *:not(script) {
  visibility: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-titre);
  font-weight: 400;
  line-height: 1.1;
}

p {
  font-family: var(--font-corps);
  line-height: 1.7;
}

/* ──────────────────────────────────────────────
   Scroll indicator — fixe en bas de l'écran
   ────────────────────────────────────────────── */

.scroll-indicator-fixed {
  position: fixed;
  bottom: 2vh;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9000;
  cursor: pointer;
  border: none;
  padding: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #F29093;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.scroll-indicator-fixed:hover {
  background: #E8777A;
}

.scroll-indicator-fixed.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.scroll-indicator-fixed img {
  width: 16px;
  height: auto;
  filter: brightness(0) invert(1);
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}
