* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

    :root {
      --bg-blue: #1bb8f2;
      --card-border: #475569;
      --card-dark-header: #334155;
      --ruled-line: #cbd5e1;
      --text-dark: #1e293b;
      --text-red: #dc2626;
      --stamp-red: #ef4444;
    }

    .wanted-card-container {
      font-family: 'Fredoka', 'Comic Neue', sans-serif;
      /* background-color: var(--bg-blue); */
      /* Motif à petits pois bleus façon Game UI */
      /* background-image: radial-gradient(rgba(255, 255, 255, 0.35) 20%, transparent 20%); */
      background-size: 24px 24px;
      display: flex;
      justify-content: center;
      align-items: center;
    }

    /* Conteneur principal de la carte */
    .wanted-card-container {
      position: relative;
      width: 100%;
      max-width: 660px;
      margin: 0 auto;
    }

    .wanted-card {
      position: relative;
      background-color: #cbd5e1;
      border: 8px solid var(--card-border);
      border-radius: 12px;
      box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 4px 10px rgba(0, 0, 0, 0.2);
      overflow: hidden;
    }

    /* Trombone en haut à droite */
    .paperclip {
      position: absolute;
      top: -12px;
      right: 25px;
      width: 35px;
      height: 75px;
      z-index: 3;
      pointer-events: none;
    }

    .paperclip-inner {
      width: 100%;
      height: 100%;
      border: 5px solid #94a3b8;
      border-radius: 20px;
      box-shadow: 2px 3px 5px rgba(0,0,0,0.3);
      position: relative;
      background: transparent;
    }

    .paperclip-inner::after {
      content: '';
      position: absolute;
      top: 10px;
      left: 5px;
      right: 5px;
      bottom: 10px;
      border: 4px solid #cbd5e1;
      border-radius: 15px;
    }

    /* En-tête de la carte */
    .card-header {
      background-color: #475569;
      background-image: repeating-linear-gradient(45deg, #334155, #334155 10px, #475569 10px, #475569 20px);
      color: #ffffff;
      padding: 10px 20px;
      display: flex;
      align-items: center;
      justify-content: center;
      position: relative;
      border-bottom: 4px solid #334155;
    }

    /* Tampon "SECRET" */
    .stamp-secret {
      position: absolute;
      top: 6px;
      left: 15px;
      background-color: rgba(239, 68, 68, 0.15);
      border: 3px dashed var(--stamp-red);
      color: var(--stamp-red);
      font-family: 'Permanent Marker', cursive;
      font-size: 1.1rem;
      padding: 2px 10px;
      border-radius: 4px;
      transform: rotate(-12deg);
      letter-spacing: 2px;
      box-shadow: 0 0 0 2px rgba(255,255,255,0.4);
      z-index: 5;
      text-transform: uppercase;
    }

    .card-title {
      font-family: 'Fredoka', sans-serif;
      font-size: 2.2rem;
      font-weight: 700;
      letter-spacing: 3px;
      text-transform: uppercase;
      color: #ffffff;
      text-shadow: 2px 2px 0px #0f172a, -1px -1px 0px #0f172a, 1px -1px 0px #0f172a, -1px 1px 0px #0f172a;
      margin-left: auto;
      margin-right: 40px;
    }

    /* Corps de la carte */
    .card-body {
      display: flex;
      flex-direction: row;
      background-color: #e2e8f0;
      min-height: 270px;
    }

    /* Section photo (gauche) */
    .photo-section {
      width: 40%;
      background-color: #cbd5e1;
      padding: 15px 10px 15px 35px;
      display: flex;
      align-items: center;
      justify-content: center;
      position: relative;
      border-right: 3px solid #94a3b8;
    }

    /* Toise de taille de la police */
    .height-ruler {
      position: absolute;
      left: 6px;
      top: 10px;
      bottom: 10px;
      width: 20px;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      border-right: 2px solid #64748b;
    }

    .ruler-tick {
      width: 100%;
      height: 1px;
      background-color: #64748b;
    }

    .ruler-tick:nth-child(5n) {
      width: 140%;
      height: 2px;
      background-color: #334155;
    }

    /* Encadrement photo style Polaroid */
    .photo-frame {
      width: 100%;
      max-width: 190px;
      aspect-ratio: 1 / 1;
      background-color: #fefcbf;
      padding: 8px;
      border-radius: 6px;
      box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
      border: 1px solid #e2e8f0;
      display: flex;
      align-items: center;
      justify-content: center;
      overflow: hidden;
    }

    .photo-wrapper {
      width: 100%;
      height: 100%;
      overflow: hidden;
      border-radius: 4px;
      background: radial-gradient(circle, #e2e8f0 0%, #cbd5e1 100%);
      display: flex;
      align-items: center;
      justify-content: center;
    }

    /* Adaptation & Filtres sur l'image */
    .photo-wrapper img {
      width: 100%;
      height: 100%;
      /* S'adapte à n'importe quelle taille/forme d'image sans la déformer */
      object-fit: cover;
      object-position: center;
      /* Filtres esthétiques : Contraste, Saturation & Ombre */
      filter: contrast(1.08) saturate(1.15) brightness(1.02) drop-shadow(0 2px 4px rgba(0,0,0,0.15));
      transition: transform 0.3s ease, filter 0.3s ease;
    }

    .photo-frame:hover img {
      transform: scale(1.06);
      filter: contrast(1.15) saturate(1.25) brightness(1.05);
    }

    /* Section détails (droite) */
    .info-section {
      width: 60%;
      padding: 15px 20px;
      background-color: #f8fafc;
      /* Motif lignes de cahier / dossier */
      background-image: repeating-linear-gradient(
        transparent,
        transparent 37px,
        var(--ruled-line) 37px,
        var(--ruled-line) 39px
      );
      background-position: 0 10px;
      display: flex;
      flex-direction: column;
      gap: 16px;
    }

    .info-block {
      line-height: 1.4;
    }

    .info-label {
      font-family: 'Fredoka', sans-serif;
      font-size: 1.25rem;
      font-weight: 700;
      color: var(--text-dark);
      margin-bottom: 2px;
      display: block;
    }

    .info-value {
      font-family: 'Comic Neue', 'Patrick Hand', sans-serif;
      font-size: 1.35rem;
      font-weight: 700;
      color: var(--text-red);
      word-break: break-word;
      padding-left: 5px;
    }

    /* Pied de carte */
    .card-footer {
      background-color: #334155;
      color: #94a3b8;
      padding: 6px 15px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-size: 0.85rem;
      border-top: 3px solid #1e293b;
    }

    .footer-inspector {
      color: #cbd5e1;
      font-weight: 600;
    }

    .footer-brand {
      color: #ffffff;
      font-weight: 700;
      font-size: 1rem;
      letter-spacing: 1px;
    }

    /* Adaptation pour Mobiles et Écrans réduits */
    @media (max-width: 600px) {
      .wanted-card-container {
        padding: 10px;
      }

      .card-header {
        padding: 12px 10px;
      }

      .stamp-secret {
        position: relative;
        top: 0;
        left: 0;
        display: inline-block;
        margin-bottom: 5px;
        transform: rotate(-5deg);
        font-size: 0.9rem;
      }

      .card-title {
        font-size: 1.6rem;
        margin-left: 0;
        margin-right: 0;
        text-align: center;
      }

      .card-body {
        flex-direction: column;
      }

      .photo-section {
        width: 100%;
        border-right: none;
        border-bottom: 3px solid #94a3b8;
        padding: 20px 15px 20px 35px;
      }

      .photo-frame {
        max-width: 170px;
      }

      .info-section {
        width: 100%;
        padding: 15px;
        background-image: repeating-linear-gradient(
          transparent,
          transparent 35px,
          var(--ruled-line) 35px,
          var(--ruled-line) 37px
        );
      }

      .info-label {
        font-size: 1.1rem;
      }

      .info-value {
        font-size: 1.2rem;
      }

      .card-footer {
        flex-direction: column;
        gap: 4px;
        text-align: center;
      }
    }