/* === Thème CurioCraft avec meilleure lisibilité === */

html, body {
    height: 100%;
    min-height: 100vh;
  }
  
  body {
    font-family: 'Verdana', sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    background-image: url("../images/grass_tile.png");
    background-size: 64px 64px;
    background-repeat: repeat;
    background-color: transparent;
    transition: background-image 0.3s ease-in-out;
    position: relative;
  }
  
  body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(1px);
    z-index: -1;
  }
  
  #theme-selector {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    background: rgba(255,255,255,0.95);
    border: 2px solid #3e8e41;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Verdana';
    box-shadow: 2px 2px 5px rgba(0,0,0,0.2);
  }
  
  
  body::after {
    content: '✔ Fond herbe pixelisé actif';
    position: fixed;
    bottom: 10px;
    right: 10px;
    background: rgba(255,255,255,0.9);
    color: #3e8e41;
    padding: 6px 12px;
    font-weight: bold;
    border-radius: 8px;
    font-size: 14px;
    z-index: 9999;
  }
  
  h1, h2 {
    color: #3e8e41;
    text-shadow: 1px 1px 0 #fff;
    font-family: 'Trebuchet MS', sans-serif;
  }
  
  .content {
    background-color: rgba(255, 255, 255, 0.92);
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 12px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    box-shadow: 4px 4px 0 #aaa;
    animation: floatBlock 4s infinite ease-in-out;
  }
  
  @keyframes floatBlock {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-4px); }
    100% { transform: translateY(0px); }
  }
  
  button {
    font-size: 16px;
    padding: 8px 16px;
    margin-right: 10px;
    background-color: #8ec07c;
    border: 2px solid #3e8e41;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 2px 2px 0 #333;
    transition: transform 0.1s ease;
  }
  
  button:hover {
    background-color: #a9d18e;
    transform: scale(1.05);
  }
  
  .quiz-container {
    display: none;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
  }
  
  .quiz-question {
    font-size: 18px;
    font-weight: bold;
    background-color: #ffe066;
    padding: 10px;
    border-radius: 8px;
    border: 2px dashed #ffc107;
  }
  
  .quiz-option {
    padding: 10px 16px;
    background-color: #f9d976;
    border: 2px solid #ffc107;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease;
  }
  
  .quiz-option:hover {
    background-color: #fff3a0;
  }
  
  .curio-bulle {
    background-color: #fffbea;
    border: 2px solid #f4e542;
    border-radius: 12px;
    padding: 12px;
    margin-top: 15px;
    font-style: italic;
    max-width: 500px;
    box-shadow: 2px 2px 0 #999;
  }
  
  textarea.code-zone {
    width: 100%;
    height: 100px;
    font-family: 'Courier New', monospace;
    margin-top: 10px;
    padding: 10px;
    border-radius: 8px;
    border: 2px solid #444;
    background-color: #f5f5dc;
    color: #222;
    box-shadow: inset 2px 2px 5px #ccc;
  }
  
  button.eval-btn {
    background-color: #7fa650;
    margin-top: 10px;
    color: white;
    border: 2px solid #3e8e41;
  }
  
  button.eval-btn:hover {
    background-color: #9ccc65;
  }
  
  #sprite {
    transition: top 0.3s ease-out, left 0.1s linear;
  }
  
  h1 {
    animation: bounceTitle 3s infinite;
  }
  
  @keyframes bounceTitle {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); color: #66bb6a; }
    100% { transform: scale(1); }
  }
  