   /* ------------------- LOYALTY CARD ------------------- */
   .loyalty-card {
    width: 100%;
    max-width: 360px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    background: #fff;
    display: flex;
    flex-direction: column;
  }

  .loyalty-card .card-header {
    background: linear-gradient(135deg, #ffd194, #d1913c);
    color: #fff;
    padding: 1rem;
    text-align: center;
  }
  .loyalty-card .card-header h1 {
    margin: 0;
    font-size: 1.25rem;
    letter-spacing: 1px;
  }

  .loyalty-card .card-body {
    padding: 1rem;
    flex-grow: 1;
  }
  .loyalty-card .holder {
    margin-bottom: 0.75rem;
  }
  .loyalty-card .holder label {
    display: block;
    font-size: 0.75rem;
    color: #666;
  }
  .loyalty-card .holder .value {
    font-size: 1rem;
    color: #333;
    font-weight: bold;
  }

  .loyalty-card .barcode {
    padding: 1rem;
    background: #fff;
    text-align: center;
  }
  .loyalty-card .barcode img {
    width: 100%;
    height: auto;
  }

  /* ------------------- CREDIT CARD ------------------- */
  .credit-card {
    width: 100%;
    max-width: 360px;
    /* 360/220 ≈ 1.636 ratio */
    aspect-ratio: 360 / 220;
    perspective: 1000px;
  }

  .credit-card .card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    transform-style: preserve-3d;
    /* hover pour retourner si besoin */
    /* transition: transform 0.6s; */
  }
  /* .credit-card:hover .card-inner {
    transform: rotateY(180deg);
  } */

  .credit-card .card-face {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 16px;
    backface-visibility: hidden;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #fff;
  }

  /* Avant */
  .credit-card .card-front {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    padding: 1rem;
    box-sizing: border-box;
  }
  .credit-card .logo {
    font-size: 1rem;
    font-weight: bold;
    letter-spacing: 1px;
  }
  .credit-card .chip {
    width: 40px;
    height: 28px;
    background: radial-gradient(circle at 30% 30%, #e0e0e0, #999);
    border-radius: 4px;
    margin-top: 0.75rem;
  }
  .credit-card .number {
    font-size: 1rem;
    letter-spacing: 2px;
    margin: 1rem 0;
  }
  .credit-card .row {
    display: flex;
    justify-content: space-between;
    font-size: 0.65rem;
    text-transform: uppercase;
  }
  .credit-card .row .label {
    opacity: 0.8;
  }
  .credit-card .row .value {
    font-weight: bold;
  }

  /* Arrière */
  .credit-card .card-back {
    background: #444;
    transform: rotateY(180deg);
    padding: 0.75rem;
    box-sizing: border-box;
  }
  .credit-card .magstripe {
    background: #000;
    height: 32px;
    margin-top: 0.5rem;
  }
  .credit-card .sig-strip {
    background: #fff;
    height: 28px;
    margin: 1rem 0;
    position: relative;
  }
  .credit-card .sig-strip::after {
    content: 'Signature';
    position: absolute;
    left: 0.5rem;
    top: 0.4rem;
    font-size: 0.6rem;
    color: #555;
  }
  .credit-card .barcode {
    text-align: center;
    margin-top: 0.5rem;
    flex-grow: 1;
    display: flex;
    align-items: flex-end;
    justify-content: center;
  }
  .credit-card .barcode img {
    width: 100%;
    height: auto;
    max-height: 50px;
  }

  /* Ajustements mobiles */
  @media (max-width: 400px) {
    .loyalty-card,
    .credit-card {
      max-width: 100%;
    }
    .loyalty-card .card-header h1,
    .credit-card .logo {
      font-size: 1rem;
    }
    .loyalty-card .holder .value,
    .credit-card .number {
      font-size: 0.9rem;
    }
  }