/* ====== FONTS PERSONNALISÉES ====== */
@font-face {
  font-family: "Grenze";
  src: url("font/GrenzeGotisch-Regular.ttf") format("truetype");
}

@font-face {
  font-family: "GrenzeBold";
  src: url("font/GrenzeGotisch-SemiBold.ttf") format("truetype");
}

@font-face {
  font-family: "King";
  src: url("font/Kingthings-Petrock.ttf") format("truetype");
}


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

body {
  margin: 0;
  background: #172126;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #ffffff;
}

/* CONTAINER MOBILE */
.app {
  max-width: 430px;         /* format smartphone type iPhone 13/14 */
  margin: 0 auto;
  min-height: 100vh;
}

/* HERO (image principale) */
.hero {
  position: relative;
  overflow: hidden;
}

.hero-img {
  width: 100%;
  display: block;
}

/* TOP BAR (burger + logo) */
.top-bar {
  position: fixed;        /* sticky sur tout le site */
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;       /* même largeur que .app */
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  z-index: 1000;          /* au-dessus de tout */
}


.icon-btn {
  border: none;
  background: none;
  padding: 0;
}

.icon-btn img {
  width: 50px;
  height: 50px;
}

.logo-bdg {
  width: 70px;
  height: 70px;
}

/* Bouton au milieu de l'illustration */
.btn-hero {
  position: absolute;
  bottom: 45%;           /* ajuste si besoin selon ton image */
  left: 50%;
  transform: translateX(-50%);

  padding: 10px 22px;
  background: #f2c879;
  color: #3a2610;
  border: none;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.8);
}

/* FONDU FOND SOMBRE SOUS L'IMAGE */
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 120px; /* ajuste la hauteur du dégradé */
  background: linear-gradient(
    to bottom,
    rgba(23, 33, 38, 0) 0%,
    rgba(23, 33, 38, 0.8) 60%,
    rgba(23, 33, 38, 1) 100%
  );
  pointer-events: none;
}

/* BLOC TEXTE "UNIVERS DU JEU" */
.univers {
  text-align: center;
  padding: 0px 20px 220px;   /* top = espace avant le texte, bottom = espace pour Tarnemor */
  font-family: 'Inter', sans-serif;
  font-weight: 700;

  margin-top: -100px;               /* ❌ on ne tire plus tout vers le haut */
  position: relative;          /* permet les pseudo-éléments */
  z-index: 2;                  /* devant le fondu de la hero */
}

/* le texte passe devant la silhouette */
.univers * {
  position: relative;
  z-index: 3;
}


.univers::before {
  content: "";
  position: absolute;
  top: -40px;   /*Déplacer tarnemor*/
  left: 0;
  width: 100%;
  height: 650px;
  background-image: url("image/tarnemor_silhouette.png");
  background-size: 100% auto;
  background-repeat: no-repeat;
  background-position: bottom center;
  pointer-events: none;
  z-index: 1; /* reste derrière le texte */
}

.crapaud-fly {
  position: absolute;
  top: 495px;        /* hauteur au-dessus de Tarnemor – à ajuster */
  left: 25%;
  width: 120px;     /* taille de ton image – ajuste si besoin */
  transform-origin: center center;
  animation: ghost-wander 10s ease-in-out infinite;
  z-index: 2;             /* au-dessus de la silhouette */
  pointer-events: none;
}

@keyframes ghost-wander {
  0% {
    transform: translate(-30%, 0) scaleX(1);      /* un peu hors écran à gauche */
  }
  25% {
    transform: translate(25%, -10px) scaleX(1);   /* vers le centre, il monte un peu */
  }
  50% {
    transform: translate(110%, 0) scaleX(1);      /* presque tout à droite */
  }
  51% {
    transform: translate(110%, 0) scaleX(-1);     /* il se retourne sur place */
  }
  75% {
    transform: translate(25%, -10px) scaleX(-1);  /* revient vers le centre, toujours en l’air */
  }
  100% {
    transform: translate(-30%, 0) scaleX(-1);     /* revient à gauche, mais tourné vers la droite (prêt à repartir) */
  }
}



.univers h1 {
  font-size: 2.1rem;
  margin-bottom: 25px;
  font-family: King;
  text-shadow: 2px 2px 2px black;
  letter-spacing: 2px;
}

.univers p {
  margin: 12px 0;
  font-size: 0.98rem;
  line-height: 1.45;
}

/* CARTE ULULE */
.ulule-section {
  padding: 10px 20px 28px;
  position: relative;
  z-index: 4; /* passe devant la silhouette et le texte */
  margin-top: -210px;   /*déplacer ulule*/
}

.ulule-card {
  width: 140px;
  margin: 0 auto;
  padding: 10px 16px;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.ulule-card img {
  display: block;
  width: 100%;
  height: auto;
}




/* SECTION COMMENT TU Y JOUES */
.howto {
  position: relative;
  margin-top: 130px;
  padding: 0px 20px 40px;
  color: #ffffff;

  background-color: rgb(29, 43, 56);

  /* Fond : même couleur + image révélée progressivement */
  /*background-image:
    linear-gradient(
      to bottom,
      rgba(23, 33, 38, 1) 0%,
      rgba(23, 33, 38, 0.8) 25%,
      rgba(23, 33, 38, 0.4) 55%,
      rgba(23, 33, 38, 0) 100%
    ),
    url("image/illustration_principale.JPG");*/
  background-size: cover;
  background-position: bottom center;
}

.howto-inner {
  max-width: 360px;
  margin: 0 auto;
  text-align: center;
  font-family: "Inter", sans-serif;
}

/* Titres & textes */
.howto h2 {
  font-size: 2.45rem;
  margin-bottom: 4px;
  font-family: King;
  letter-spacing: 2px;
  text-shadow: 2px 2px 2px black;
}

.howto-two-images {   /*CADRES SORCIERS*/
  display: flex;
  justify-content: center;
  gap: 12px;              /* espace entre les images */
  margin: 26px 0 22px;    /* espace avant/après */
}

.howto-two-images img {
  width: 150px;            /* taille */
}



.howto-icons {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
}

.howto-icons li {
  font-size: 0.95rem;
  margin: 4px 0;
}

.howto-separator {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.4);
  margin: 14px auto 18px;
  width: 60%;
}

.howto-intro {
  margin-bottom: 20px;
}

.howto p {
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 10px 0;
}

/* Photos en bas */
/* GRID EXACTE POUR FORMER UN CARRÉ */
.howto-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;

  /* Pour garder une forme carrée totale */
  aspect-ratio: 1 / 1;

  margin-top: 18px;
}

/* IMAGE VERTICALE À GAUCHE */
.photo-vertical {
  grid-row: 1 / span 2;    /* occupe toute la hauteur du carré */
}

.photo-vertical img {
  width: 100%;
  height: 82%;
  object-fit: cover;       /* recadrage propre */
  border-radius: 12px;
}

/* DEUX IMAGES CARRÉES À DROITE */
.photo-stack {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 10px;
}

.photo-stack img {
  width: 100%;
  height: 100%;
  object-fit: cover;        /* recadrage carré propre */
  border-radius: 12px;
}



/*  BURGER MENU  */

/* MENU BURGER PLEIN ÉCRAN */
.mobile-menu {
  position: fixed;
  inset: 0;                             /* top:0, left:0, right:0, bottom:0 */
  background: rgba(5, 8, 12, 0.96);     /* overlay quasi noir */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 24px;

  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
  transition: 0.25s ease;
  z-index: 900;                         /* sous la top-bar, au-dessus du reste */
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.mobile-menu a {
  color: #fff;
  text-decoration: none;
  font-size: 1.6rem;                    /* gros boutons */
  font-family: King, system-ui, sans-serif;
  padding: 14px 26px;
  border-radius: 999px;
  background: rgba(242, 200, 121, 0.12);
  border: 1px solid rgba(242, 200, 121, 0.7);
  text-align: center;
  min-width: 70%;
  box-shadow: 0 0 18px rgba(0, 0, 0, 0.75);
}




/* ====== BLOC MAGICIEN DU DIMANCHE ====== */

.sunday-wizard {
  background-color: rgb(29, 43, 56);
  margin-top: -30px;
  padding: 20px 0 10px;
  text-align: center;
  font-family: "Inter", sans-serif;
}

.sunday-title {
  font-family: King;
  font-size: 2rem;
  letter-spacing: 2px;
  margin-bottom: 18px;
  text-shadow: 2px 2px 2px black;
}

.sunday-top-icons {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 18px;
}

.sunday-top-icons img {
  width: 180px;
  height: 180px;
  border-radius: 18px;
  object-fit: cover;
}

.sunday-subtitle {
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  margin: 8px 0 16px;
}

.sunday-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 10px 0 18px;
}

.sunday-grid img {
  width: 100%;
  object-fit: cover;
}

.sunday-links {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
}

.sunday-link-square {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.15); /* pour l’instant placeholder */
}

/* gros mage en bas */
.sunday-big-wizard {
  width: 350px;
  margin: 4px auto 0;
  display: block;
}
