
    @font-face {
      font-family: 'mc';
      src: url('./fonts/Minecraftia-Regular.ttf') format('truetype');
    }

    :root {
      --sky-top: #87CEFA;
      --sky-bottom: #E6F7FF;
      --card-bg: rgba(255,255,255,0.9);
      --card-radius: 18px;
      --card-max-width: 900px;
      --padding: 2rem;
      --shadow: 0 8px 30px rgba(20,40,60,0.12);
      --gap-hint-separator: -1rem;
      --gap-header-text: 1rem;
      --small-text-size: 0.85rem;

      --panel-width: 450px;
      --panel-height: 400px;

      font-family: 'mc', sans-serif;
    }

    html, body {
      height: 100%;
      margin: 0;
      overflow: hidden;
    }

    body {
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 2rem;

      /* Background animé plus bleu */
      background: linear-gradient(270deg, #0A1E4A, #132F70, #1E3A8A, #2A55B0, #1E3A8A);
      background-size: 800% 800%;
      animation: gradientBG 40s ease infinite;
      position: relative;
      overflow: hidden;
    }

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

    /* Nyan Cat */
    #nyan-cat {
      position: absolute;
      top: 10px;
      left: -150px;
      z-index: 98;
      animation: nyanFly 30s linear infinite;
    }

    #nyan-cat img {
      width: 100px;
      height: auto;
    }

    @keyframes nyanFly {
      0% { transform: translateX(-150px); }
      100% { transform: translateX(110vw); }
    }

    #date-time-display {
      font-family: 'mc', sans-serif;
      color: #E0F2FF;
      text-align: center;
      margin-bottom: 1rem;
      text-shadow: 1px 1px 2px #00000080;
      position: absolute;
      top: 8rem;
      left: 50%;
      transform: translateX(-50%);
      z-index: 1; /* Les panels passent au-dessus */
    }
    #current-date {
      font-size: 2.0rem;
      margin-bottom: -1.5rem; /* distance entre date et heure */
    }
    #current-time {
      font-size: 3rem;
      font-weight: bold;
    }

    .card-wrapper {
      width: 100%;
      display: flex;
      justify-content: center;
      align-items: center;
      position: relative;
      z-index: 1;
    }

    .card {
      background: var(--card-bg);
      border-radius: var(--card-radius);
      max-width: var(--card-max-width);
      width: 90%;
      padding: var(--padding);
      box-shadow: var(--shadow);
      box-sizing: border-box;
      backdrop-filter: blur(4px);
      -webkit-backdrop-filter: blur(4px);
      height: 520px;
      overflow-y: auto;
      display: flex;
      flex-direction: column;
      position: relative;
      border: 3px solid #a70e0e;
    }

    .card-header {
      display: flex;
      align-items: flex-start;
      gap: 1rem;
      margin-bottom: 1rem;
    }

    .card-header img {
      width: 75px;
      height: 75px;
      border: 2px solid #a70e0e;
      border-radius: 25%;
      object-fit: cover;
    }

    .title-wrapper {
      display: flex;
      flex-direction: column;
      gap: 0.25rem;
    }

    h1 { margin: 0; font-size: clamp(1.25rem, 2.5vw, 1.6rem); color: #073763; }
    .subtitle { margin: 0; line-height: 0.5; font-size: clamp(0.9rem, 2vw, 1.2rem); color: #4169E1; font-weight: normal; }
    p { margin: 0 0 0 0; line-height: 1.45; color: #16324a; }
    .small-text { font-size: var(--small-text-size); }
    .hint { margin-top: 0.75rem; margin-bottom: var(--gap-hint-separator); font-size: 0.9rem; color: #4b6b85; }

    .separator {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 0.5rem;
      margin: 2rem 0;
    }

    .separator .line-full { width: 100%; height: 1px; background-color: #16324a; }
    .separator .logos {
      display: flex;
      gap: 1rem;
      justify-content: center;
      position: relative;
    }

    .separator .logos a {
      position: relative;
      display: inline-block;
    }

    .separator .logos a::after {
      content: attr(data-tooltip);
      position: absolute;
      bottom: 100%;
      left: 50%;
      transform: translateX(-50%);
      font-size: 0.75rem;
      color: #16324a;
      white-space: nowrap;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.3s ease;
    }

    .separator .logos a:hover::after { opacity: 1; }

    .separator .logos img {
      width: 25px;
      height: 25px;
      cursor: pointer;
      transition: transform 0.3s ease;
    }

    .separator .logos img:hover { transform: scale(1.75); }

    

    /* Petit triangle de redimensionnement */
    .resizer {
      position: absolute;
      right: 2px;
      bottom: 2px;
      width: 18px;
      height: 18px;
      cursor: se-resize;
      user-select: none;
      pointer-events: auto;
    }
    .resizer::before {
      content: '';
      position: absolute;
      inset: 0;
      background: #4169E1;
      clip-path: polygon(100% 0, 0 100%, 100% 100%);
      box-shadow: 0 0 6px rgba(0,0,0,0.2);
      border-radius: 2px;
    }

    .panel-buttons {
      display: flex;
      justify-content: center;
      gap: 1rem;
      margin: 1rem 0;
    }

    .panel-buttons button {
      padding: 0.5rem 1rem;
      border-radius: 8px;
      border: none;
      cursor: pointer;
      background: #2fceff;
      color: white;
      font-family: 'mc', sans-serif;
    }

    .panel {
      font-family: Arial, Helvetica, sans-serif; /* texte normal */
      position: absolute;
      width: var(--panel-width);
      height: var(--panel-height);
      background: var(--card-bg);
      border-radius: var(--card-radius);
      box-shadow: var(--shadow);
      padding: 1rem;
      box-sizing: border-box;
      display: none;
      flex-direction: column;
      overflow: auto;
      cursor: grab;
      border: 3px solid #a70e0e;
    }

    .panel-header {
      display: flex;
      align-items: center;
      justify-content: space-between; /* titre à gauche, bouton à droite */
      font-family: 'mc', sans-serif;
      font-weight: bold;
      color: #073763;
      margin-bottom: 0.5rem;
    }

    .panel h3 {
      font-family: 'mc', sans-serif;
      font-weight: bold;
      color: #073763;
      margin: 0.5rem 0;
    }

    .close-btn {
      margin-left: auto;            /* pousse à droite */
      flex-shrink: 0;               /* ne se réduit jamais */
      width: 60px;
      height: 25px;
      border: none;
      border-radius: 25%;
      background: #ff2828;
      color: white;
      font-size: 14px;
      line-height: 1;
      font-family: Arial, sans-serif; /* police neutre pour éviter déformation */
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    
    .panel-buttons button {
      padding: 0.5rem 1rem;
      border-radius: 8px;
      border: none;
      cursor: pointer;
      background: linear-gradient(45deg, #1E3A8A, #3B82F6, #5195e9, #8AC6FF);
      color: white;
      font-family: 'mc', sans-serif;
      
      /* Transition pour l'animation au survol */
      transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    .panel-buttons button:hover {
      transform: scale(1.25); /* léger agrandissement */
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); /* optionnel pour effet plus visible */
    }

    .component h3 {
      margin-bottom: -1rem; /* espace réduit entre titre et contenu */
    }

    .component p,
    .component ul {
      margin-top: -1rem;
      margin-bottom: 0rem;
    }

    .misc p,
    .misc ul {
      margin-top: -1rem;
      margin-bottom: 1rem;
    }

    .cat {
        position: absolute;
        width: 32px;       /* taille base du sprite */
        height: 32px;      /* taille base du sprite */
        background-image: url('./pictures/normal-cat-sprite.png');
        image-rendering: pixelated;
        transform-origin: center;
      }



  #cat-controls button {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 8px;
    background: #ff9800;
    color: white;
    font-family: 'mc';
    cursor: pointer;
    transition: transform 0.2s ease;
  }

  #cat-controls button:hover { transform: scale(1.1); }

  #cat-controls button.delete-btn { background: #f44336; }
  #cat-controls button.delete-btn:hover { transform: scale(1.1); }

  @media (max-width: 600px) {
    .card { width: 95%; max-height: 90vh; padding: 1rem; }
    .panel { width: 90%; height: auto; max-height: 80vh; position: fixed !important; left: 5%; top: 5%; }
    #cat-controls { flex-direction: column; bottom: 10px; left: 50%; transform: translateX(-50%); }
  }

  #stars-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
  }

  .star {
    position: absolute;
    width: 24px; /* adapte à ton gif */
    height: 24px;
    image-rendering: pixelated;
    transition: top 10s ease, left 10s ease; /* déplacement fluide */
  }

    #soleil, #lune {
      position: fixed;
      top: 20px;
      left: 20px;
      width: 100px;
      height: auto;
      transition: opacity 0.5s ease-in-out;
      z-index: 99;
    }




