 body {
  background: url('fond.png') center top no-repeat;
  background-size: cover;
  background-attachment: fixed;
  font-family: 'IM Fell English', Georgia, serif;
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-size: 16px;
  overflow-x: hidden;
}

* {
  box-sizing: border-box;
}


@media (max-width: 480px) {
  html {
    font-size: 13px;
  }

  .accueil-page h1 {
    font-size: 1.8rem;
  }

  .btn-entrer {
    font-size: 0.95rem;
    padding: 10px 20px;
  }

  .explication, .intro {
    padding: 1rem;
    font-size: 0.95rem;
  }
}


@media (max-width: 768px) {
  html {
    font-size: 14px; /* rend tout plus lisible sur mobile */
  }

  .accueil-page h1 {
    font-size: 2rem;
  }

  .accueil-page p,
  .intro,
  .explication {
    font-size: 1rem;
  }

  

  .btn-entrer {
    font-size: 1rem;
    padding: 12px 24px;
  }

  #icone-inventaire {
    width: 40px;
    height: 40px;
  }

  main.accueil-contenu {
    padding: 0px !important;
  }
}


main {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  flex: 1;
}

footer {
  all: unset;
  display: block;
  width: 100%;
  padding: 10px;
  background: linear-gradient(to right, #1e1e1e, #2c2c2c);
  color: #ffe680;
  font-family: 'IM Fell English', Georgia, serif;
  font-size: 0.85rem;
  text-align: center;
  border-top: 2px solid #8c6b40;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.4);
  position: relative;
  z-index: 2;
}


footer a {
  color: #ffe680;
  text-decoration: none;
  margin: 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s ease;
}

footer a:hover {
  text-shadow: 0 0 6px rgba(255, 255, 200, 0.8);
  transform: scale(1.05);
}

.mur {
  display: flex;
  flex-wrap: wrap;
border-style: double;
  gap: 20px;
  justify-content: center;
  margin: 3.75rem auto; /* 60px */
  padding: 2.5rem;       /* 40px */
  margin-left: auto;
margin-right: auto;
  background: url('liege.gif') repeat;
  border: 16px solid #5a3e1b;
  border-radius: 0;
  box-shadow:
    inset 2px 2px 4px rgba(255, 255, 255, 0.2),  /* lumière en haut à gauche */
    inset -4px -4px 8px rgba(0, 0, 0, 0.4),     /* ombre en bas à droite */
    4px 8px 20px rgba(0, 0, 0, 0.6);            /* ombre extérieure */
  
  max-width: 1100px;
  }

    h1 {
  text-align: center;
  color: #fff7dd; 
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
}

.titre-principal {
  text-align: center;
  color: #fff7dd;
  font-size: 2.4rem;
  margin-top: 2rem;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.4);
}

.explication {
  max-width: 700px;
  padding: 1.5rem;
  margin: 2rem auto;
  margin-left: auto;
margin-right: auto;
  border-radius: 12px;
  background: rgba(255, 255, 240, 0.12);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 12px rgba(255, 250, 200, 0.15), inset 0 0 10px rgba(255, 255, 240, 0.06);
  color: #ffeec4;
  font-family: 'IM Fell English', Georgia, serif;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5), 0 0 6px rgba(255, 248, 160, 0.2);
  font-size: 1.1rem;
  line-height: 1.6;
  animation: apparitionText 2s ease-out forwards;
  opacity: 0;
  transform: translateY(20px);
}

.explication-gauche > p {
  text-align: justify;
  text-justify: inter-word;
  line-height: 1.6;
}


.explication-gauche blockquote {
  text-align: center;
}


@keyframes apparitionText {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

    .formulaire {
      margin: 40px auto;
      max-width: 600px;
      background-color: #fff7dd;
  padding: 1.5rem;
  border-radius: 12px;
      box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    }

    textarea, select, input[type="text"] {
      width: 100%;
      font-size: 1rem;
      margin-bottom: 10px;
    }

    textarea {
      height: 100px;
    }

    button {
      background-color: #6b4d2e;
      color: white;
      border: none;
      padding: 10px 20px;
      cursor: pointer;
      border-radius: 6px;
    }

.postit {
  width: 250px;
  height: 250px;
  box-sizing: border-box;
  padding: 20px;
  border: 1px solid #c9b88d;
  overflow-y: auto;
  overflow-x: hidden;
  display: block;
  position: relative;
  background-clip: padding-box;
  box-shadow: 4px 4px 10px rgba(0,0,0,0.3);
  animation: apparition 0.8s ease-out;
  animation-delay: calc(0.05s * var(--i));
  animation-fill-mode: both;
  opacity: 0;
  transition: all 0.6s ease-out;
  transform-origin: center center;
  white-space: normal;
  word-break: break-word;
}


.postit img {
  max-height: 80px;
  width: auto;
  display: block;
  margin: 10px auto 0;
  object-fit: contain;
}

.postit.variante1 { transform: rotate(-3deg); }
.postit.variante2 { transform: rotate(2deg); }
.postit.variante3 { transform: rotate(-1.5deg); }
.postit.variante4 { transform: rotate(1.5deg); }
.postit.variante5 { transform: rotate(0.5deg); }

	
	.postit.visible {
  opacity: 1;
  transform: translateY(0);
}

    .postit::before {
      content: "";
      position: absolute;
      top: -10px;
      left: 50%;
      transform: translateX(-50%);
      width: 30px;
      height: 30px;
    }
	
.postit.special {
  background-color: #fff8dc;
  background-image: linear-gradient(135deg, #fff8dc 0%, #ffe680 100%);
  border: 3px solid gold;
  transform: scale(1.08);
  box-shadow: 0 0 15px rgba(255, 223, 0, 0.6);
  color: #3c2f00;
}

.postit.variante1, .postit.variante2, .postit.variante3,
.postit.variante4, .postit.variante5 {
  box-shadow: 4px 4px 10px rgba(0,0,0,0.3);
}

@media screen and (max-width: 480px) {
  .mur {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    justify-items: center;
    padding: 1rem;
  }

  .postit {
  width: 100%;
  max-width: 160px;
  aspect-ratio: 1 / 1;
  min-height: 160px;
  height: auto;
  padding: 1rem;
  overflow-y: auto;
  overflow-x: hidden;
  word-break: break-word;
}

}


@keyframes shine {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

    @keyframes apparition {
      0% { opacity: 0; transform: scale(0.9) rotate(-10deg); }
      100% { opacity: 1; transform: scale(1) rotate(0deg); }
    }

@keyframes paillettes {
  0% {
    transform: scale(0.5) translateY(0);
    opacity: 1;
  }
  100% {
    transform: scale(1.5) translateY(-100px);
    opacity: 0;
  }
}

.paillette {
  position: absolute;
  width: 6px;
  height: 6px;
  background: radial-gradient(circle, #fffbd0, #ffd700, transparent);
  border-radius: 50%;
  pointer-events: none;
  animation: paillettes 1.2s ease-out forwards;
  z-index: 9999;
}

input[type="text"]:focus,
textarea:focus,
select:focus {
  outline: none;
  box-shadow: 0 0 10px rgba(255, 240, 200, 0.8);
  transition: box-shadow 0.3s ease;
}

#scrollTopBtn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: rgba(255, 255, 220, 0.85);
  color: #6b4d2e;
  border: 2px solid #6b4d2e;
  border-radius: 50%;
  padding: 10px 14px;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 2px 2px 10px rgba(0,0,0,0.3);
  transition: opacity 0.4s ease;
  opacity: 0;
  z-index: 999;
}

#scrollTopBtn:hover {
  background: #ffe680;
  box-shadow: 0 0 12px rgba(255, 255, 200, 0.8);
}

#icone-inventaire {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 55px;
  height: 55px;
  z-index: 1000;
  cursor: pointer;
  animation: pulsate 3s infinite;
}

#icone-inventaire img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 5px rgba(255, 240, 200, 0.5));
  transition: transform 0.3s ease;
}

#icone-inventaire:hover img {
  transform: scale(1.1);
  filter: drop-shadow(0 0 10px rgba(255, 240, 200, 0.8));
}

@keyframes pulsate {
  0% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.07); opacity: 1; }
  100% { transform: scale(1); opacity: 0.9; }
}

#popup-recompense-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadein-bg 0.5s ease-out;
}

#popup-recompense-content {
  background: rgba(255, 245, 220, 0.95);
  border: 4px solid gold;
  padding: 40px;
  border-radius: 16px;
  text-align: center;
  font-family: 'IM Fell English', Georgia, serif;
  color: #5c3e00;
  box-shadow: 0 0 25px rgba(255, 210, 0, 0.8);
  animation: fadein-popup 0.7s ease-out;
  max-width: 80%;
  font-size: 1.2rem;
    position: relative;
}

@keyframes fadein-bg {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadein-popup {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

#popup-merci-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9998;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadein-bg 0.5s ease-out;
}

#popup-merci-content {
  background: rgba(255, 250, 240, 0.95);
  border: 3px solid #e65100;
  padding: 40px;
  border-radius: 16px;
  text-align: center;
  font-family: 'IM Fell English', Georgia, serif;
  color: #a83c00;
  box-shadow: 0 0 20px rgba(255, 120, 0, 0.6);
  animation: fadein-popup 0.7s ease-out;
  max-width: 80%;
  position: relative;
}

.italique {
  font-style: italic;
}

/* =============================== */
/* 🔥 MENU HAMBURGER & OVERLAY 🔥 */
/* =============================== */

#hamburger {
  position: fixed;
  top: 80px; /* ← décalé vers le bas */
  left: 10px;
  z-index: 9999;
  background: rgba(0,0,0,0.6);
  border: 2px solid #ffe680;
  color: #ffe680;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 1.1rem;
  font-family: 'IM Fell English', serif;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 2px 2px 6px rgba(0,0,0,0.5);
  transition: background 0.3s ease;
}

#hamburger:hover {
  background: rgba(255, 230, 128, 0.15);
}

.icon-hamburger {
  width: 26px;
  height: 26px;
  vertical-align: middle;
}

/* Le menu déroulant */
#menu {
  position: fixed;
  top: 130px; /* ← menu placé un peu en dessous du bouton */
  left: 20px;
  background: rgba(30, 30, 30, 0.95);
  border: 2px solid #ffe680;
  padding: 18px;
  border-radius: 12px;
  font-family: 'IM Fell English', serif;
  z-index: 9998;
  display: none;
  flex-direction: column;
  gap: 12px;
  width: auto;
  max-width: 90vw;
  font-size: 1.1rem;
}

#menu a {
  display: flex;
  align-items: center;
  color: #ffe680;
  text-decoration: none;
  font-size: 1.1rem;
  text-shadow: 0 0 6px rgba(255, 230, 100, 0.7);
  transition: all 0.3s ease;
  gap: 8px;
}

#menu a:hover {
  transform: scale(1.05);
  text-shadow:
    0 0 8px rgba(255, 230, 100, 0.9),
    0 0 12px rgba(255, 240, 180, 0.6);
}

#menu img.icon {
  width: 28px;
  height: 28px;
  vertical-align: middle;
  object-fit: contain;
}


/* =============================== */
/* 🔍 MEDIA QUERIES POUR LE MENU */
/* =============================== */

/* Tablettes et petits écrans */
@media screen and (max-width: 768px) {
  html {
    font-size: 13.5px;
  }

  #hamburger {
    font-size: 1rem;
    padding: 8px 12px;
  }

  .icon-hamburger {
    width: 22px;
    height: 22px;
  }

  #menu {
    font-size: 1rem;
    padding: 14px;
  }

  #menu a {
    font-size: 1rem;
  }

  #menu img.icon {
    width: 22px;
    height: 22px;
  }
}

/* Très petits écrans (mobile portrait) */
@media screen and (max-width: 480px) {
  html {
    font-size: 12.5px;
  }

  #hamburger {
    font-size: 0.95rem;
    padding: 8px 10px;
  }

  .icon-hamburger {
    width: 20px;
    height: 20px;
  }

  #menu {
    font-size: 0.95rem;
    padding: 12px;
  }

  #menu a {
    font-size: 0.95rem;
  }

  #menu img.icon {
    width: 20px;
    height: 20px;
  }
}




/* =============================== */
/* 🔥 MURMURES DES FEUX-FOLLETS 🔥 */
/* =============================== */

audio {
  width: 100%;
  border: none;
  outline: none;
  border-radius: 12px;
  background-color: rgba(255, 255, 240, 0.05);
  box-shadow: 
    0 0 12px rgba(255, 250, 200, 0.15),
    0 0 30px rgba(255, 255, 255, 0.05),
    0 0 20px rgba(255, 255, 200, 0.2);
  animation: auraSpectrale 6s ease-in-out infinite alternate;
  transition: box-shadow 0.3s ease;
}

@keyframes auraSpectrale {
  0% {
    box-shadow:
      0 0 10px rgba(255, 255, 200, 0.1),
      0 0 20px rgba(255, 255, 255, 0.05),
      0 0 30px rgba(255, 250, 200, 0.08);
  }
  100% {
    box-shadow:
      0 0 16px rgba(255, 255, 200, 0.4),
      0 0 35px rgba(255, 250, 200, 0.2),
      0 0 48px rgba(255, 250, 160, 0.3);
  }
}

.lanterne {
  position: fixed;
  bottom: -50px;
  width: 30px;
  height: 30px;
  background: url('glow.png') no-repeat center;
  background-size: contain;
  opacity: 0.6;
  animation: flotter 12s linear infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes flotter {
  0% { transform: translateY(0) scale(0.8); opacity: 0; }
  10% { opacity: 0.6; }
  50% { transform: translateY(-50vh) scale(1); opacity: 0.8; }
  100% { transform: translateY(-100vh) scale(1.2); opacity: 0; }
}

.feufollet {
  position: absolute;
  width: 30px;
  height: 30px;
  background: url('feu-follet.png') no-repeat center;
  background-size: contain;
  pointer-events: none;
  opacity: 0.8;
  animation: flotterFeufollet 2.5s ease-out forwards;
  z-index: 999;
}

@keyframes flotterFeufollet {
  0% { transform: translateY(0px) scale(0.9); opacity: 1; }
  70% { transform: translateY(-100px) scale(1.1); opacity: 0.8; }
  100% { transform: translateY(-140px) scale(1.2); opacity: 0; }
}

.clignote {
  animation: clignoter 0.3s infinite;
}

@keyframes clignoter {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(2.5); }
}

#popup-recompense,
#popup-patience,
#popup-chaos,
#popup-livret {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 20px 30px;
  border-radius: 16px;
  font-size: 1.2rem;
  font-family: 'IM Fell English', serif;
  z-index: 2000;
  text-align: center;
  animation: fadeInUp 0.6s ease;
}

#popup-recompense {
  background: rgba(30, 30, 30, 0.95);
  color: #ffe680;
  box-shadow: 0 0 20px rgba(255, 240, 200, 0.6);
}

#popup-patience {
  background: rgba(40, 40, 40, 0.96);
  color: #c2ffdb;
  box-shadow: 0 0 20px rgba(190, 255, 220, 0.7);
}

#popup-chaos {
  background: rgba(80, 30, 30, 0.96);
  color: #ffd1d1;
  box-shadow: 0 0 20px rgba(255, 200, 200, 0.6);
}

#popup-livret {
  background: rgba(20, 40, 60, 0.96);
  color: #aee8ff;
  box-shadow: 0 0 20px rgba(100, 180, 255, 0.7);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate(-50%, calc(-50% + 30px));
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

/* ============================== */
/* 🎒 INVENTAIRE DU CARNAVAL 🎒   */
/* ============================== */

.inventaire {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 30px;
}

.grille-inventaire {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
}

.titre-categorie {
  color: #aaa;
  margin-left: 8px;
}


.jauge-steampunk {
  position: relative;
  width: 300px;
  height: 100px;
  margin: 30px auto;
}

.jauge-steampunk img,
.jauge-steampunk .jauge-progressive {
  position: absolute;
  top: 0;
  left: 0;
  width: 300px;
  height: 100px;
  image-rendering: pixelated;
}

.fond-rouge {
  z-index: 1;
}

.jauge-progressive {
  z-index: 2;
  overflow: hidden;
}

.remplissage-jaune {
  width: 300px;
  height: 100px;
}

.tuyau-devant {
  z-index: 3;
}

.label-niveau {
  position: relative;
  top: 105px;
  font-family: 'IM Fell English', serif;
  font-size: 1em;
  color: #ffeec0;
  text-shadow: 1px 1px 2px #000;
  text-align: center;
}






.carte-objet {
  color: #ffeec4;
  background: rgba(255, 248, 210, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 16px;
  text-align: center;
  box-shadow: 0 0 10px rgba(255, 248, 210, 0.08);
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: help;
    min-width: 0; /* essentiel dans une grid responsive */
  word-wrap: break-word;
    max-width: 100%;
  overflow-wrap: break-word;
  word-break: break-word;
}

.carte-objet:hover {
  transform: scale(1.05);
  box-shadow: 0 0 16px rgba(255, 240, 200, 0.4);
}

.carte-objet .icone {
  font-size: 2rem;
  margin-bottom: 8px;
}

.carte-objet .nom {
  font-weight: bold;
  margin-bottom: 4px;
}

.carte-objet .date {
  font-size: 0.8rem;
  opacity: 0.7;
}

@media (max-width: 480px) {
  .carte-objet {
    width: 100%;
    max-width: 100%;
  }

  .grille-inventaire {
    grid-template-columns: 1fr; /* forcer une seule colonne */
    padding: 0 10px; /* éviter que ça colle aux bords */
  }
}


.intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 30px;
  font-size: 1.1rem;
  line-height: 1.6;
  background: rgba(255, 255, 240, 0.08);
  padding: 20px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
  color: #ffeec4;
}

.murmure-rouille {
  display: inline-block;
  margin-top: 10px;
  font-style: italic;
  color: #c18c5d;
  text-shadow: 1px 1px 2px #402c1f;
  animation: rouille-murmure 4s ease-in-out infinite alternate;
}

@keyframes rouille-murmure {
  0% {
    text-shadow: 0 0 2px #6e4b32;
    opacity: 0.85;
  }
  100% {
    text-shadow: 0 0 6px #c18c5d, 0 0 12px rgba(255, 245, 210, 0.3);
    opacity: 1;
  }
}


/* ============================== */
/* 🎒 CHANSON DU CARNAVAL 🎒   */
/* ============================== */
/* === Spécifique à chanson.php === */


p.intro {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 30px;
}

audio {
  width: 100%;
  margin: 20px 0;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow:
    0 0 10px rgba(255, 248, 200, 0.2),
    0 0 20px rgba(255, 248, 200, 0.1),
    inset 0 0 8px rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  backdrop-filter: blur(3px);
  transition: box-shadow 0.4s ease;
}

audio:hover {
  box-shadow:
    0 0 15px rgba(255, 248, 200, 0.4),
    0 0 30px rgba(255, 248, 160, 0.2),
    inset 0 0 12px rgba(255, 255, 255, 0.2);
}

.paroles {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-top: 30px;
  color: #ffeec4;
  white-space: pre-line;
}

.paroles p {
  margin: 0 0 1em;
}

.guinguette-zone {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 2em;
  margin-top: 3em;
  margin-bottom: 4em;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.1);
  color: #fff;
  font-family: 'IM Fell English', serif;
}

.guinguette-zone h2 {
  font-size: 2rem;
  color: #c89bff;
  margin-bottom: 0.5em;
}

.guinguette-zone h3 {
  font-size: 1.4rem;
  margin-top: 1.5em;
  color: #ffb347;
}

.guinguette-zone p {
  font-style: italic;
  margin-bottom: 1em;
}

.cadre-audio {
  background: rgba(255, 255, 240, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(6px);
  box-shadow: 0 0 12px rgba(255, 250, 200, 0.15), inset 0 0 10px rgba(255, 255, 240, 0.06);
  padding: 2rem;
  margin: 3rem auto;
  border-radius: 16px;
  max-width: 700px;
  color: #ffeec4;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.4);
  animation: apparitionText 1.5s ease-out forwards;
  opacity: 0;
  transform: translateY(20px);
}

.lucioles::before, .lucioles::after {
  content: '';
  position: absolute;
  width: 6px; height: 6px;
  background: radial-gradient(circle, #fffcad, transparent);
  border-radius: 50%;
  animation: flotter 6s infinite ease-in-out;
  top: 0; left: 50%;
}

@keyframes flotter {
  0% { transform: translate(-50%, 0) scale(1); opacity: 1; }
  100% { transform: translate(-50%, -200px) scale(0.5); opacity: 0; }
}


.tooltip {
  position: relative;
  border-bottom: 1px dotted #ffeec4;
  cursor: pointer;
  color: inherit;
  text-decoration: none;
  display: inline-block;
}

.tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(20, 20, 20, 0.95);
  color: #fff9e0;
  padding: 6px 10px;
  border-radius: 6px;
  white-space: pre-line;
  font-size: 0.9rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  z-index: 10;
  width: max-content;
  max-width: 240px;
}

.tooltip.align-start::after {
  left: 0%;
  transform: translateX(0%);
}
.tooltip.align-end::after {
  left: 100%;
  transform: translateX(-100%);
}
.tooltip.align-center::after {
  left: 50%;
  transform: translateX(-50%);
}


.tooltip::before {
  content: "";
  position: absolute;
  bottom: 115%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: rgba(20, 20, 20, 0.95);
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 10;
}

.tooltip:hover::after,
.tooltip:hover::before,
.tooltip.active::after,
.tooltip.active::before {
  opacity: 1;
  pointer-events: auto;
}

.bulle-masque {
  visibility: hidden;
  background-color: rgba(0,0,0,0.8);
  color: #fff;
  text-align: center;
  padding: 8px 12px;
  border-radius: 6px;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.4s;
  width: 220px;
  font-size: 0.9rem;
}

div:hover .bulle-masque {
  visibility: visible;
  opacity: 1;
}

.masque-choisi-container {
  margin: 1.5rem auto;
  animation: apparition-flottante 1s ease;
}

.masque-choisi-img {
    max-width: 150px;
    height: auto;
    border: none;
    border-radius: 0; 
    filter: drop-shadow(0 0 4px rgba(255, 240, 200, 0.6));
    transition: transform 0.3s ease;
}


.masque-choisi-img:hover {
  transform: scale(1.05);
}

@keyframes apparition-flottante {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


body.accueil-page main.accueil-contenu {
  padding-top: 0 !important;
}

body.accueil-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

main.accueil-contenu {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  text-align: center;
    color: #ffeec4;

}

body.accueil-page footer {
  font-size: 0.75rem;
}

.accueil-page footer p {
  font-size: 0.85rem !important;
}

.accueil-page footer, 
.accueil-page footer * {
  font-size: 0.85rem !important;
}



.accueil-contenu p {
  color: #ffeec4;
}

.accueil-page h1 {
  font-size: 3rem;
  margin-bottom: 30px;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.accueil-page p {
  font-size: 1.3rem;
  max-width: 700px;
  margin: 0 auto 40px;
  line-height: 1.8;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
  text-align: center;
}

.btn-entrer {
  display: inline-block;
  padding: 1em 2em;
  font-size: 1.1em;
  max-width: 90vw;
  text-align: center;
  white-space: normal;
  word-break: break-word;
  border-radius: 8px;
  background-color: #ffe680;
  color: #3c2f00;
  font-weight: bold;
  text-transform: uppercase;
  border: none;
  box-shadow: 0 0 20px rgba(255, 230, 100, 0.6);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}


.btn-entrer:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px rgba(255, 240, 150, 0.9);
}

.fade-in {
  animation: fadeInUp 2s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


.grille-masques {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  padding: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .grille-masques {
    grid-template-columns: repeat(2, 1fr);
    padding: 20px;
    gap: 20px;
  }

  .carte-masque {
    max-width: 160px; 
    margin: auto;
  }

  .img-masque {
    width: 100%;
    height: auto; 
    max-width: 140px; 
    display: block;
    margin: 0 auto;
  }
  
    .carte-masque {
    min-height: 320px; /* un peu plus compact sur mobile */
    padding: 16px;
  }

  .btn-entrer {
    padding: 10px 16px;
    font-size: 0.95rem;
  }
}


.carte-masque {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  min-height: 360px; /* ou ajuste selon ce que tu trouves joli */
  padding: 20px;
  background: rgba(255, 255, 240, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  text-align: center;
  color: #ffeec4;
  box-shadow: 0 0 12px rgba(255, 250, 200, 0.1);
  transition: transform 0.3s ease;
}

.carte-masque:hover {
  transform: scale(1.03);
  box-shadow: 0 0 16px rgba(255, 240, 150, 0.3);
}

.carte-masque h2 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  min-height: 48px; /* pour forcer une hauteur similaire des titres */
}

.carte-masque p {
  font-style: italic;
  margin-bottom: 20px;
  min-height: 36px; /* pour forcer une hauteur similaire des sous-titres */
}

.btn-entrer {
  width: 100%;
  max-width: 200px;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: break-word;
}


.stats-masques {
  background: rgba(255, 255, 240, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 20px;
  margin-top: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  color: #ffeec4;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
  box-shadow: 0 0 12px rgba(255, 240, 200, 0.1);
}

.stats-masques h2 {
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.stats-masques ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.stats-masques li {
  font-size: 1.1rem;
  margin: 8px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.img-masque {
  max-width: 190px;
  height: auto;
  display: block;
  margin: 0 auto 12px;
  filter: drop-shadow(0 0 4px rgba(255, 240, 200, 0.6));
}




#etape-contenu {
  opacity: 0;
  filter: blur(10px) scale(1.05);
  transition: opacity 1s ease-out, filter 1s ease-out;
}

#etape-contenu.visible {
  opacity: 1;
  filter: blur(0px) scale(1);
  transition: opacity 1.5s ease-out, filter 1.5s ease-out;
}

.banniere-image {
  width: 100%;
  height: 260px;
  background-size: cover;
  background-position: center;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
  margin-bottom: 30px;
  animation: fadeInUp 1.2s ease-out;
  filter: brightness(0.9) contrast(1.1);
}

.banniere-image:hover {
  transform: scale(1.02);
  transition: transform 0.5s ease;
}


#popup-recompense-content #fermer-popup {
  position: absolute;
  top: 10px;
  right: 14px;
  background: transparent;
  border: none;
  color: #5c3e00;
  font-size: 1.5rem;
  cursor: pointer;
  font-weight: bold;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
  transition: transform 0.2s ease;
}

#popup-recompense-content #fermer-popup:hover {
  transform: scale(1.2);
  color: #a05f00;
}

@media screen and (max-width: 768px) {
  main.accueil-contenu {
    padding-top: 20px;
  }
}

body.zoom-in {
  animation: zoomPageIn 1s ease;
  transform-origin: center center;
}

@keyframes zoomPageIn {
  0% {
    transform: scale(1.2);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.navigation-couloir {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 40px;
  margin-bottom: 60px;
}

.btn-retour,
.btn-suivant {
  padding: 12px 24px;
  background-color: #2e2b28;
  color: #ffeec4;
  border: 2px solid #ffeec4;
  border-radius: 12px;
  text-decoration: none;
  font-family: 'Georgia', serif;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 3px 3px 10px rgba(0,0,0,0.3);
}

.btn-retour:hover,
.btn-suivant:hover {
  background-color: #ffeec4;
  color: #2e2b28;
  transform: scale(1.05);
}

#etape-contenu {
  opacity: 0;
  filter: blur(10px) scale(1.05);
  transition: opacity 1s ease-out, filter 1s ease-out;
}

#etape-contenu.visible {
  opacity: 1;
  filter: blur(0px) scale(1);
  transition: opacity 1.5s ease-out, filter 1.5s ease-out;
}


.rail-container {
  position: relative;
  width: 100vw !important; 
  left: 0;
  height: 509px;
  overflow: hidden;
  z-index: 10;
}

.rail-barres {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100vw !important; 
  background-size: contain;
  left: 0;
  height: 509px; 
  background: url('images/berlines-barres.png') repeat-x center bottom;
  z-index: 0;
}


.conteneur-glissant-wagon-wrapper {
  position: relative;
  width: 400px;
  height: 509px;
  margin: 0 auto;
}

.conteneur-glissant-wagon {
  position: absolute;
  width: 400px;
  height: 509px;
  left: 50%;
  transform: translateX(-50%);
  animation: arriveeWagon 2.5s ease-out forwards;
}

.conteneur-glissant-wagon.depart {
  animation: departWagon 1.8s ease-in forwards;
}


.cadre-image-etape {
  position: relative;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 384px;
  height: 224px;
  overflow: hidden;
  z-index: 3;
  background: #000;
}

.image-dans-cadre {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.berline-wagon {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 3;
}

.berline-wagon img {
  width: 384px;
  height: 509px;
  display: block;
}


.conteneur-glissant-wagon {
  animation: arriveeWagon 1.2s ease-out forwards;
}

.berline-wagon {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
}

.berline-wagon img {
  display: block;
  width: 400px;
  margin: 0 auto;
}

.berline-wagon .barres-rails {
  margin-top: -20px; /* ajuste pour que ça colle bien */
}

#lightbox-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(4px);
  z-index: 99999;
  display: flex;
  justify-content: center;
  align-items: center;
}

#lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  padding: 30px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
}

#lightbox-img {
  max-width: 90vw;
  max-height: 80vh;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  margin: auto;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(255,255,255,0.3);
}


#lightbox-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  background: #fff2d0;
  color: #3c2f00;
  font-size: 2rem;
  font-weight: bold;
  border: none;
  border-radius: 50%;
  display: flex; 
  align-items: center; 
  justify-content: center; 
  cursor: pointer;
  box-shadow: 0 0 10px rgba(0,0,0,0.4);
  z-index: 100000;
  transition: transform 0.2s ease;
}






/* Animation */
@keyframes arriveeWagon {
  0% { transform: translateX(100vw); opacity: 0; }
  100% { transform: translateX(-50%); opacity: 1; }
}

@keyframes departWagon {
  0% { transform: translateX(-50%); opacity: 1; }
  100% { transform: translateX(-150vw); opacity: 0; }
}

@keyframes departWagonArriere {
  0% { transform: translateX(-50%); opacity: 1; }
  100% { transform: translateX(150vw); opacity: 0; }
}




.conteneur-glissant-wagon.depart-arriere {
  animation: departWagonArriere 1.8s ease-in forwards;
}


#titre-etape {
  font-family: 'IM Fell English', serif;
  font-size: 1.8em;
  text-align: center;
  margin-bottom: 1em;
  color: #f0e6d2;
}


.explication-gauche {
  animation: arriveeTexte 1s ease-out 0.4s;
  animation-fill-mode: both;
}

@keyframes arriveeTexte {
  0% { transform: translateX(50vw); opacity: 0; }
  100% { transform: translateX(0); opacity: 1; }
}

@media screen and (max-width: 480px) {
  .conteneur-glissant-wagon-wrapper,
  .conteneur-glissant-wagon {
    width: 300px;
    height: 381px; /* 300 * 1.2725 */
  }

  .cadre-image-etape {
    width: 288px;
    height: 168px; /* environ 224 * 0.75 */
  }

  .berline-wagon img {
    width: 300px;
    height: 381px;
  }
  
  .rail-container {
    height: 381px; 
  }

  .rail-barres {
    height: 381px; 
    background-size: contain;
  }
}
}


@media screen and (max-width: 360px) {
  .conteneur-glissant-wagon-wrapper,
  .conteneur-glissant-wagon {
    width: 260px;
    height: 331px; /* 260 * 1.2725 */
  }

  .cadre-image-etape {
    width: 248px;
    height: 144px;
  }

  .berline-wagon img {
    width: 260px;
    height: 331px;
  }
  
  .rail-container {
    height: 331px; /* ou 381px selon ton choix */
  }

  .rail-barres {
    height: 331px; /* à faire correspondre */
    background-size: contain;
  }
}
}



main.accueil-contenu .form-roulotte {
  align-self: flex-start;
  margin-left: auto;
  margin-right: auto;
}

.lanternes-options label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  font-style: italic;
  font-size: 1rem;
}


.form-roulotte {
  max-width: 600px;
  margin: 40px auto;
  padding: 20px;
  background: rgba(255, 238, 196, 0.05);
  border-radius: 16px;
  box-shadow: 0 0 10px rgba(255, 238, 196, 0.1);
}

.question {
  margin-bottom: 25px;
}

.question label {
  font-weight: bold;
  display: block;
  margin-bottom: 5px;
}

select, input[type="radio"] {
  margin-top: 5px;
}

.lanternes-options label {
  display: block;
  margin-top: 5px;
  font-style: italic;
}

.btn-boule {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: none;
  border: none;
  cursor: pointer;
  margin: 40px auto;
  transition: transform 0.3s;
}

.btn-boule:hover {
  transform: scale(1.05);
}

.boule-cristal {
  width: 120px;
  image-rendering: pixelated;
  animation: pulsate 3s infinite ease-in-out;
}

@keyframes pulsate {
  0%, 100% {
    filter: brightness(1);
    transform: scale(1);
  }
  50% {
    filter: brightness(1.2);
    transform: scale(1.05);
  }
}

.btn-boule span {
  margin-top: 10px;
  font-size: 1.2em;
  color: #ffeec4;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.6);
}


.btn-reset {
  display: inline-block;
  background-color: #444;
  color: white;
  padding: 0.5em 1em;
  border-radius: 8px;
  text-decoration: none;
  margin-top: 1em;
  transition: background-color 0.2s ease;
}
.btn-reset:hover {
  background-color: #666;
}

.btn-recommencer {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.6rem 1.2rem;
  background-color: #663399;
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.btn-recommencer:hover {
  background-color: #5a2e85;
}


#popup-recompense-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
}

#popup-recompense-content {
  background: #fff8e7;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 0 30px rgba(0,0,0,0.5);
  font-family: 'IM Fell English', serif;
  text-align: center;
  max-width: 400px;
}

.tirage-resultat {
  margin-top: 2rem;
  background: rgba(0, 0, 0, 0.2);
  padding: 1.5rem;
  border-radius: 12px;
  text-align: center;
}

.carte-tirage {
  width: 200px;
  max-width: 100%;
  border-radius: 8px;
  margin-bottom: 1rem;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.carte-nom {
  font-size: 1.8rem;
  color: #f8f8f8;
  margin: 0.5rem 0;
}

.portrait-texte {
  font-family: "Georgia", serif;
  font-size: 1rem;
  color: #ddd;
  white-space: pre-line;
  line-height: 1.6;
  margin-top: 1rem;
}

.btn-partager {
  background-color: #d6b35c;
  color: #222;
  padding: 0.5em 1em;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  box-shadow: 0 0 10px rgba(214, 179, 92, 0.5);
  transition: transform 0.2s ease;
  font-weight: bold;
  text-decoration: none;
}

.btn-partager:hover {
  transform: scale(1.05);
  background-color: #e7c875;
}


.boutons-roulotte {
  text-align: center;
  margin-top: 2rem;
}

.boutons-roulotte a {
  display: inline-block;
  margin: 0.5rem auto;
}

.ligne-separation {
  border: none;
  border-top: 2px solid #e0d2ff;
  width: 60%;
  margin: 1.5rem auto;
}

.form-roulotte, .form-roulotte .question, .form-roulotte label, 
.form-roulotte input, .form-roulotte select, 
.form-roulotte textarea, .form-roulotte .lanternes-options {
  text-align: left;
}

.form-roulotte label {
  display: block;
  margin-bottom: 6px;
  font-weight: bold;
  text-shadow: none;
}


.question {
  text-align: left;
}

.portrait-texte {
  white-space: normal;
  text-align: justify;
  font-size: 1.2rem;
  line-height: 1.8;
  background-color: #ffffff0d;
  padding: 1.8em;
  border-radius: 10px;
  max-width: 800px;
  margin: 2em auto;
}



.roue-des-destins-container {
  position: relative;
  width: 250px;
  margin: auto;
}

.roue-des-destins-container img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  pointer-events: none;
}

.roue-des-destins-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 300px;
  height: 300px;
  margin: auto;
  position: relative;
}

.roue-des-destins {
  position: relative;
  width: 300px;
  height: 300px;
}

.roue-des-destins img {
  position: absolute;
  top: 0;
  left: 0;
  width: 300px;
  height: 300px;
  object-fit: contain;
}

.couche.dessous {
  z-index: 1;
}

.couche.centrale {
  z-index: 2;
  cursor: pointer;
  transition: transform 3s ease-out;
  transform-origin: 150px 150px; /* milieu de 300px */
}

.couche.dessus {
  z-index: 3;
  pointer-events: none;
}

.texte-recompense {
  margin-top: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.1rem;
  text-align: center;
  padding: 15px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  color: #f9f1e9;
  border: 1px solid #d0b67b;
  display: none;
  margin-bottom: 100px;
}

.alerte-erreur {
  background: rgba(40, 30, 30, 0.6);
  color: #f3ede0;
  border: 1px solid #bfa06d;
  border-radius: 12px;
  padding: 20px;
  font-size: 1.1rem;
  font-style: italic;
  text-align: center;
  box-shadow: 0 0 12px rgba(191, 160, 109, 0.2);
  backdrop-filter: blur(4px);
}

.alerte-erreur a {
  color: #ffebbc;
  text-decoration: none;
  font-weight: bold;
}
.alerte-erreur a:hover {
  color: #fff7df;
  text-shadow: 0 0 4px #bfa06d;
  box-shadow: 0 0 6px rgba(255, 248, 210, 0.4);
}


.popup-hidden {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
}
.popup-contenu {
  background: #f8f1e4;
  padding: 20px;
  border-radius: 12px;
  max-width: 500px;
  width: 90%;
  text-align: center;
  box-shadow: 0 0 15px #000;
}


.aide-page {
  max-width: 800px;
  margin: auto;
  padding: 2em;
  color: #f0e9dd;
  font-family: 'IM Fell English', serif;
}

.aide-page h1 {
  text-align: center;
  font-size: 2.4em;
  margin-bottom: 1em;
}

.citation-ladybug {
  font-style: italic;
  text-align: center;
  color: #d0b67b;
  border-left: 4px solid #d0b67b;
  margin: 1em auto 2em;
  padding-left: 1em;
  max-width: 500px;
}

.aide-page section {
  margin-bottom: 2em;
}

.aide-page ul {
  list-style-type: none;
  padding-left: 0;
}

.aide-page ul li {
  margin-bottom: 0.5em;
  line-height: 1.5em;
}

.aide-page a {
  color: #d0b67b;
  text-decoration: underline;
}

.aide-page a:hover {
  text-decoration: none;
  color: #fff1c1;
}



.cookie-banner {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #ddd;
  padding: 20px;
  max-width: 500px;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
  border-radius: 12px;
  text-align: center;
  font-family: 'Georgia', serif;
  font-size: 1rem;
  z-index: 1000;
}


.cookie-buttons {
  margin-top: 15px;
}

.cookie-buttons button,
.cookie-buttons a {
  margin: 5px;
  padding: 8px 16px;
  border: none;
  background: #f4ede4;
  color: #333;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s;
}

.cookie-buttons button:hover,
.cookie-buttons a:hover {
  background: #e0d7c8;
}


@media (max-width: 768px) {
  .cookie-buttons {
    flex-direction: column;
    align-items: center;
  }

  .cookie-buttons button,
  .cookie-buttons a {
    width: 80%;
    min-width: unset;
  }
}

.aide-cookies-container {
  max-width: 800px;
  margin: 100px auto 50px auto;
  padding: 30px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0,0,0,0.2);
  text-align: center;
  font-family: 'Georgia', serif;
  color: #333;
}

.aide-cookies-container h1 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.aide-cookies-container h2 {
  font-size: 1.5rem;
  margin-top: 30px;
  margin-bottom: 10px;
}

.aide-cookies-container p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin: 10px 0;
}

.aide-final-message {
  margin-top: 30px;
  font-weight: bold;
  font-style: italic;
}

.cookie-buttons {
  margin-top: 20px;
  display: flex;
  justify-content: center;
}

.cookie-buttons button {
  padding: 10px 20px;
  border: none;
  background: #f4ede4;
  color: #333;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
}

.cookie-buttons button:hover {
  background: #e0d7c8;
}




#flipbookContainer {
  margin: 50px auto;
  max-width: 900px;
  box-shadow: 0 0 20px rgba(0,0,0,0.2);
  border-radius: 12px;
  overflow: hidden;
}


.flipbook-buttons {
  margin-top: 20px;
  text-align: center;
}

.btn-simple {
  display: inline-block;
  margin: 10px;
  padding: 10px 20px;
  background: #f4ede4;
  color: #333;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s, transform 0.2s;
}

.btn-simple:hover {
  background: #e0d7c8;
  transform: scale(1.05);
}



.footer-share {
  margin-top: -5px;
  text-align: center;
}

.footer-share a {
  display: inline-block;
  margin: 0 5px;
}

.footer-share img {
  width: 24px; 
  height: 24px;
  transition: transform 0.2s ease;
  object-fit: contain; 
}

.footer-share img:hover {
  transform: scale(1.3); 
}


@media (max-width: 768px) {
  .footer-share img {
    width: 32px;
    height: 32px;
  }
}

#lien-coccinelle {
  position: fixed;
  display: none;
  z-index: 9999;
  bottom: 0;
  left: 0;
  width: 80px;
  height: auto;
  cursor: pointer;
}

#trainee-lumiere {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 9998;
}

.trail-glow {
  position: absolute;
  transform: rotate(45deg);
  opacity: 0.5; /* ✨ Plus translucide */
  filter: drop-shadow(0 0 15px #ffc64b) brightness(1.2) blur(2px); /* ✨ Un peu plus diffus */
  mix-blend-mode: screen;
  animation: fadeOut 1.5s forwards ease-out;
}

@keyframes fadeOut {
  0% {
    opacity: 0.5;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(1.3);
  }
}

.admin-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  padding: 2rem;
}

.admin-section {
  flex: 1 1 45%;
  background: #ffffff;
  color: #000;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0,0,0,0.2);
  max-width: 700px;
}

.admin-section h2 {
  margin-top: 0;
  font-size: 1.5rem;
  color: #2c2c2c;
  border-bottom: 2px solid #ccc;
  padding-bottom: 0.5rem;
}

.admin-section ul {
  list-style: none;
  padding: 0;
}

.admin-section li {
  margin-bottom: 2rem;
}


