 body {
  background: url('fond.webp') 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;
  }
  .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;
  padding: 2.5rem;
  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),
    inset -4px -4px 8px rgba(0, 0, 0, 0.4),
    4px 8px 20px rgba(0, 0, 0, 0.6);
  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;
}
#hamburger {
  position: fixed;
  top: 80px;
  left: 10px;
  z-index: 9999;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  background:
    repeating-linear-gradient(
      92deg,
      rgba(255,255,255,0.015) 0px, rgba(255,255,255,0.015) 1px,
      transparent 1px, transparent 8px
    ),
    linear-gradient(175deg, #3d2408 0%, #5c3612 40%, #3a2006 100%);
  border: none;
  border-top: 3px solid #8a5a28;
  border-bottom: 4px solid #1a0d02;
  border-left: 3px solid #7a4e22;
  border-right: 3px solid #2a1204;
  border-radius: 3px 8px 8px 3px;
  padding: 9px 18px 9px 12px;
  font-family: 'IM Fell English', serif;
  font-size: 1.05rem;
  color: #f4dea0;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8), 0 0 8px rgba(255,200,80,0.2);
  box-shadow:
    3px 3px 8px rgba(0,0,0,0.6),
    inset 0 1px 0 rgba(255,220,100,0.08),
    inset 0 -1px 0 rgba(0,0,0,0.3);
  transition: filter 0.2s ease, transform 0.15s ease;
}
#hamburger:hover {
  filter: brightness(1.15);
  transform: translateX(2px);
}
.icon-hamburger {
  width: 24px;
  height: 24px;
  vertical-align: middle;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.6));
}
#menu {
  position: fixed;
  top: 130px;
  left: 10px;
  z-index: 9998;
  display: none;
  flex-direction: column;
  gap: 0;
  width: 260px;
  max-width: 90vw;
  max-height: calc(100vh - 140px);
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: #6b4d2e #1a0d02;
}
#menu::-webkit-scrollbar { width: 5px; }
#menu::-webkit-scrollbar-track { background: #1a0d02; }
#menu::-webkit-scrollbar-thumb { background: #6b4d2e; border-radius: 3px; }
.menu-section {
  margin-bottom: 4px;
  border-radius: 4px;
  overflow: hidden;
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 22px,
      rgba(139,100,40,0.08) 22px,
      rgba(139,100,40,0.08) 23px
    ),
    linear-gradient(160deg, #f4e8c8 0%, #e8d5a0 50%, #ddc88a 100%);
  border: 1px solid #b8943c;
  border-top: 2px solid #c9a84c;
  box-shadow:
    2px 3px 8px rgba(0,0,0,0.5),
    inset 0 0 20px rgba(139,100,20,0.06);
}
.menu-section-titre {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: 'IM Fell English', serif;
  font-size: 0.68rem;
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #5a3a10;
  padding: 6px 10px 5px;
  border-bottom: 1px solid rgba(139,100,40,0.15);
  cursor: pointer;
  user-select: none;
  transition: background 0.15s;
}
.menu-section-titre:hover { background: rgba(139,100,20,0.1); }
.menu-section-titre::after {
  content: '\25B8';
  font-size: 0.6rem;
  font-style: normal;
  opacity: 0.6;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
.menu-section.ouvert > .menu-section-titre::after { transform: rotate(90deg); }
.menu-section-contenu { display: none; flex-direction: column; }
.menu-section.ouvert > .menu-section-contenu { display: flex; }
.menu-section-contenu a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #3a2008;
  text-decoration: none;
  font-family: 'IM Fell English', serif;
  font-size: 0.88rem;
  padding: 4px 10px;
  transition: background 0.15s ease, padding-left 0.15s ease;
  border-bottom: 1px solid rgba(139,100,40,0.12);
}
.menu-section-contenu a:last-child { border-bottom: none; }
.menu-section-contenu a:hover {
  background: rgba(139,100,20,0.15);
  padding-left: 18px;
  color: #1a0d02;
}
.menu-section img.icon,
.menu-section-contenu img.icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
}
  object-fit: contain;
  flex-shrink: 0;
}
.menu-pancarte {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 3px;
}
.menu-pancarte a {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  font-family: 'IM Fell English', serif;
  font-size: 0.88rem;
  color: #f0d898;
  text-shadow: 0 1px 3px rgba(0,0,0,0.9);
  padding: 6px 14px 6px 14px;
  background:
    repeating-linear-gradient(
      88deg,
      rgba(255,255,255,0.012) 0px, rgba(255,255,255,0.012) 1px,
      transparent 1px, transparent 9px
    ),
    linear-gradient(170deg, #4a2c0e 0%, #6b4020 45%, #3e2008 100%);
  border-top: 2px solid #7a5028;
  border-bottom: 3px solid #1e0e04;
  border-left: 2px solid #6a4418;
  border-right: 2px solid #250e02;
  border-radius: 2px 6px 6px 2px;
  box-shadow:
    2px 3px 7px rgba(0,0,0,0.55),
    inset 0 1px 0 rgba(255,210,80,0.06);
  position: relative;
  transition: filter 0.18s ease, transform 0.15s ease;
}
.menu-pancarte a::before {
  content: '•';
  position: absolute;
  left: 5px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.6rem;
  color: rgba(255,200,80,0.4);
}
.menu-pancarte a:hover {
  filter: brightness(1.2);
  transform: translateX(3px);
}
.menu-pancarte img.icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.7));
}
.menu-section-mystere {
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 22px,
      rgba(200,150,30,0.05) 22px,
      rgba(200,150,30,0.05) 23px
    ),
    linear-gradient(160deg, #1c1205 0%, #2a1a08 55%, #160e03 100%) !important;
  border-color: #6a4010 !important;
  border-top-color: #9a6828 !important;
}
.menu-section-mystere .menu-section-titre {
  color: #c9a04a !important;
  border-bottom-color: rgba(200,150,50,0.18) !important;
}
.menu-section-mystere .menu-section-contenu a {
  color: #c8a060 !important;
  border-bottom-color: rgba(200,150,50,0.1) !important;
}
.menu-section-mystere .menu-section-contenu a:hover {
  background: rgba(200,150,30,0.12) !important;
  color: #f0c878 !important;
}
.menu-separateur {
  height: 3px;
}
@media screen and (max-width: 768px) {
  #menu { width: 260px; top: 125px; }
  .menu-section a { font-size: 0.9rem; padding: 5px 10px; }
  .menu-pancarte a { font-size: 0.92rem; padding: 7px 14px 7px 14px; }
}
@media screen and (max-width: 480px) {
  #hamburger { font-size: 0.95rem; padding: 8px 14px 8px 10px; }
  .icon-hamburger { width: 20px; height: 20px; }
  #menu { width: 250px; top: 120px; }
  .menu-section a { font-size: 0.88rem; }
  .menu-pancarte a { font-size: 0.9rem; }
}
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 {
  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;
  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;
    padding: 0 10px;
  }
}
.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;
  }
}
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;
    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;
  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;
}
.carte-masque p {
  font-style: italic;
  margin-bottom: 20px;
  min-height: 36px;
}
.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;
}
#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;
}
@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;
  }
  .cadre-image-etape {
    width: 288px;
    height: 168px;
  }
  .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;
  }
  .cadre-image-etape {
    width: 248px;
    height: 144px;
  }
  .berline-wagon img {
    width: 260px;
    height: 331px;
  }
  .rail-container {
    height: 331px;
  }
  .rail-barres {
    height: 331px;
    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;
}
.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;
  filter: drop-shadow(0 0 15px #ffc64b) brightness(1.2) blur(2px);
  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;
}