/* ==================================================================
   RESET SIMPLE
   ================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* ===== RESET SIMPLE ===== */
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}
/* Échelle globale : plus petit sur mobile, normal sur grand écran */
html {
  font-size: 14px; /* base plus petite ~ comme ton zoom à 50% */
}

@media (min-width: 900px) {
  html {
    font-size: 16px; /* taille normale sur tablette / ordi */
  }
}

/* ===== FOND VIOLET + CENTRAGE DU GRIMOIRE ===== */
body {
    font-family: "Georgia", serif;

    /* Fond violet plein écran */
    background-image: url("Violetfonce.png");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;

    /* On empile les éléments (grimoire + footer) verticalement */
    display: flex;
    flex-direction: column;      /* <--- la clé ! */
    justify-content: center;     /* centre verticalement l’ensemble colonne */
    align-items: center;         /* centre horizontalement */
    padding: 16px;
    box-sizing: border-box;

    overflow-x: hidden;
    perspective:1600px
}

/* ============================
   Page qui se tourne
============================ */
/* Base commune à tous les volets de page */
.page-turn {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background-size: cover;
  background-position: center;
  transform-origin: left center;
  animation: turnPage 1.5s ease-out forwards;
}

/* Image spéciale pour l’arrivée sur le site */
.page-turn-intro {
  background-image: url("Pagetourne.png");   /* ton image d’ouverture */
  animation-delay: 1.5s;                     /* 1,5s avant que la page commence à se tourner */
}

/* Image utilisée pour tous les changements de page */
.page-turn-page {
    background-image: url("Parchemindoree.png"); /* ton image pour les changements de pages */
    background-size: cover;
    background-position: center;
    animation: turnPage 1.5s ease-out forwards;
    z-index: 9999;
    position: fixed;
    inset: 0;
}


/* Animation de la page qui se tourne */
@keyframes turnPage {
  0% {
    transform: rotateY(0deg);
    opacity: 1;
  }
  60% {
    transform: rotateY(-110deg);
    opacity: 1;
  }
  100% {
    transform: rotateY(-180deg);
    opacity: 0;
    visibility: hidden;
  }
}

/* ===== LE GRIMOIRE (CADRE PARCHEMIN) ===== */
.book {
    position: relative;
    z-index: 5;

    /* Taille : presque toute la largeur, mais toujours entier */
    width: min(92vw, 820px);
    aspect-ratio: 1024 / 1375; /* ratio exact de Parchemindore.png */

    /* Image du parchemin */
    background-image: url("Parchemindore.png");
    background-size: contain;   /* on voit TOUT le parchemin */
    background-position: center;
    background-repeat: no-repeat;

    /* Pas de contenu qui dépasse le cadre de l'image */
    overflow: hidden;
}
  /* Ombre sous le grimoire */
  box-shadow:
    0 35px 70px rgba(0, 0, 0, 0.75),
    0 80px 90px rgba(0, 0, 0, 0.45);

/* ----------------- Particules scintillantes autour --------------- */

.book::after {
  content: "Cormorant Garamond";
  position: absolute;
  inset: -50px;                      /* un peu plus large que le livre */
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
  Display: none! importante!

  background:
    radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.9) 0, transparent 45%),
    radial-gradient(circle at 80% 25%, rgba(255, 244, 210, 0.9) 0, transparent 50%),
    radial-gradient(circle at 60% 75%, rgba(255, 220, 190, 0.8) 0, transparent 55%),
    radial-gradient(circle at 25% 50%, rgba(255, 255, 255, 0.7) 0, transparent 55%);
  mix-blend-mode: screen;
  opacity: 0.75;

  animation: sparkleDrift 15s linear infinite;
}

/* ==================================================================
   CONTENU A L’INTÉRIEUR DU GRIMOIRE
   ================================================================== */

/* ===== CONTENU À L'INTÉRIEUR DU GRIMOIRE ===== */

.book-inner {
  font-family: "Cormorant Garamond", serif;
  font-size: 1rem;
  line-height: 1.55;
    color: #f3e7c2;

    position: relative;
    z-index: 10;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 40px 34px 36px; /* ← c’est ici ! */
    overflow-y: auto;
}

/* Plus grand sur tablette */
@media (min-width: 700px) {
  .book-inner {
    font-size: 1.15rem;
  }
}

/* Encore un peu plus grand sur desktop */
@media (min-width: 1024px) {
  .book-inner {
    font-size: 1.25rem;
  }
}
    /* C'est ici que la magie se fait : si le texte est trop long,
       il défile À L'INTÉRIEUR du grimoire */
    overflow-y: auto;
}

/* Un peu plus d'air sur grand écran */
@media (min-width: 900px) {
    .book-inner {
        gap: 28px;
    }
}
/* ==================================================================
   TITRE SUR LA TRANCHE (optionnel)
   ================================================================== */

/* Titre sur la tranche (gauche du grimoire) */

.spine-title {
  position: absolute;
  /* on la place sur la tranche gauche du grimoire */
  left: 22px;                 /* décale-la un peu vers la droite si c'est coupé */
  top: 50%;                   /* centre verticalement */

  /* texte vertical + lisible du bas vers le haut */
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: translateY(-50%) rotate(180deg);
  transform-origin: center;

  /* style du texte */
  font-size: 0.5rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);

  pointer-events: none;
}
/* ==================================================================
   TYPO, TITRES, MENU
   ================================================================== */

header {
  text-align: center;
  margin-bottom: 10px;
}

/* Sous-titre sous "La Chaumière Enchantée" */
.subtitle {
    color: #4a6b5a !important;  /* vert émeraude magique */
}

header h1 {
  margin: 0 0 4px;
  font-family: "Cinzel Decorative", "Georgia", serif;
  font-size: clamp(1.7rem, 2.3rem, 2.6rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

header p {
  margin: 0 0 6px;
  font-size:
}

/* =========================
   MENU PRINCIPAL
   ========================= */

nav {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

/* liens simples (plus de gros boutons) */
nav a {
  position: relative;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  text-decoration: none;
  color: #4A2C6E;          /* couleur des onglets */
  padding-bottom: 2px;
  font-weight: 600;        /* en gras comme tu voulais */
  transition: color 0.25s ease;
  font-style: italic;
}

/* petite ligne lumineuse sous les liens */
nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 2px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: linear-gradient(90deg, #ffd78a, #a57bff);
  box-shadow: 0 0 6px rgba(251, 234, 181, 0.9);
  opacity: 0;
  transition: width 0.3s ease, opacity 0.3s ease;
}

/* hover : couleur + ligne visible */
nav a:hover {
  color: #ffe9b5;
}

nav a:hover::after {
  width: 80%;
  opacity: 1;
}
/* ==================================================================
   CONTENU PRINCIPAL (PAGE D’OUVERTURE)
   ================================================================== */

main {
  display: block;
}

.hero-box p:first-of-type::first-letter {
    font-size: 2.8rem;
    color: #6a2e8a;   /* ou ton violet */
    float: left;
    margin-right: 6px;
    line-height: 0.7;
    font-family: "Georgia", serif;
}

h1 {
    font-family: "Cinzel Decorative", serif;
    font-size: 1rem;
    color:#7f5cff;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(255,230,180,0.6);
}

h2 {
  margin: 0 0 12px;
  font-family: "Cinzel Decorative", "Georgia", serif;
  font-size: 1.2rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
    text-align: center;
}

.dropcapp::first-letter {
  font-family: "Cinzel Decorative", "Georgia", serif;
  font-size: 2.6rem;
  float: left;
  line-height: 1;
  padding-right: 6px;
  color: #fbeab5;
}

p {
  margin: 0 0 10px;
  line-height: 1.6;
  font-size: 0.96rem;
  
}

/* Bouton */

.btn {
  display: inline-block;
  margin-top: 16px;
  padding: 10px 22px;
  border-radius: 999px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.84rem;
  color: #ffffff;
  background: radial-gradient(circle at 20% 0, #fbeab5, #b67add);
  box-shadow: 0 18px 37px rgba(0, 0, 0, 0.6);
  transition: filter 0.2s ease, transform 0.2s ease;
}

.btn:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

/* ==================================================================
   ASIDE "SIGNET"
   ================================================================== */

.sidebar {
    display: flex;
    flex-direction: column;
    justify-content: center; /* 👉 centre verticalement le texte */
    height: 100%; /* 👉 occupe toute la hauteur du grimoire */
    justify-content: flex-end; /* en bas */
    padding-bottom: 40px;

}

.sidebar-card {
    margin: 0; /* enlève les décalages inutiles */
}
}

.sidebar-card {
  margin-top: 10px;
  padding: 12px 18px 16px;
  border-radius: 14px;
  background: rgba(25, 5, 30, 0.82);
  color: #f1def7;
  font-size: 0.88rem;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.6);
}

.sidebar-card small {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  opacity: 0.9;
  margin-bottom: 4px;
}

.sidebar-card strong {
  display: block;
  margin-bottom: 6px;
}

.list-ritual {
  margin: 6px 0 0;
  padding-left: 18px;
}

.list-ritual li {
  margin-bottom: 4px;
}

/* ==================================================================
   FOOTER DANS LE GRIMOIRE
   ================================================================== */

.site-footer {
    margin-top: 16px;
    font-size: 0.8rem;
    text-align: center;
    color: #f5e9ff;
    opacity: 0.85;
}
/* ==================================================================
   FLAMME / GLOW D’INVITATION AU SCROLL
   ================================================================== */

.scroll-glow {
  position: fixed;
  bottom: 18px;
  left: 50%;
  width: 40px;
  height: 10px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: radial-gradient(circle,
      rgba(255, 215, 160, 0.85) 0,
      rgba(255, 215, 160, 0) 65%);
  box-shadow: 0 0 14px rgba(255, 215, 160, 0.9);
  opacity: 0.8;
  animation: pulseGlow 2.3s infinite ease-in-out;
  pointer-events: none;
}

/* ==================================================================
   ANIMATIONS
   ================================================================== */

@keyframes bookOpen {
  0% {
    transform: rotateY(80deg) scale(0.9);
    opacity: 0;
    filter: blur(4px);
  }
  40% {
    opacity: 1;
    filter: blur(0);
  }
  70% {
    transform: rotateY(-6deg) scale(1.02);
  }
  100% {
    transform: rotateY(0deg) scale(1);
  }
}

@keyframes sparkleDrift {
  0% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(8px, -10px, 0);
  }
  100% {
    transform: translate3d(-6px, 6px, 0);
  }
}

@keyframes pulseGlow {
  0%, 100% {
    opacity: 0.25;
    transform: translateX(-50%) scale(0.9);
  }
  50% {
    opacity: 1;
    transform: translateX(-50%) scale(1.1);
  }
}

/* ==================================================================
   ACCESSIBILITÉ : RÉDUCTION DES ANIMATIONS
   ================================================================== */

@media (prefers-reduced-motion: reduce) {
  .book,
  .book:hover,
  .book::before,
  .book::after,
  .scroll-glow {
    animation: none !important;
    transform: none !important;
  }
}

/* ==== Taille du grand titre du grimoire ==== */
.book-inner h1 {
    font-size: 2.2rem !important; /* modifie la taille ici */
    line-height: 1.1;
}