:root {
  --pa-color-1: #26437d;
  --pa-color-2: #435e96;
  --pa-color-3: #14223d;
  --pa-accent: #00ffe0;
}

.pa-grid {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin: 30px auto;
  align-items: stretch; 
}

.pa-carte {
    position: relative;
    overflow: hidden; 
    display: flex;
    flex-direction: column;
    height: 100%; 
    border-radius: 30px;
    width: 300px;
    padding: 30px;
    font-size: 0.9em;
    text-align: center;
    box-sizing: border-box;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    font-family: monospace;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.pa-carte:hover {
  transform: translateY(-10px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.4);
  background: #2c2c2c;
}

/* --- OVERLAY HOVER --- */
.pa-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(4px);
    
    /* Flex pour centrer */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px; /* Espace entre les éléments */
    
    z-index: 50;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
}

.pa-carte:hover .pa-overlay {
    opacity: 1;
    visibility: visible;
}

/* --- NOUVEAU : IMAGE DANS L'OVERLAY --- */
.pa-overlay-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: #fff;
    object-fit: contain;
    padding: 5px;
    box-shadow: 0 0 20px rgba(255,255,255,0.2);
    margin-bottom: 20px; /* Petite marge avant les boutons */
}
/* Style spécifique pour le titre DANS l'overlay */
.pa-overlay-title {
    font-size: 1.1em;       /* Un peu plus gros pour la lisibilité */
    line-height: 1.3;
    margin-bottom: 10px;    /* Espace entre le titre et l'image */
    padding: 0 15px;        /* Marge sur les côtés pour ne pas toucher les bords */
    color: #fff;            /* Blanc sur fond noir */
    text-shadow: 0 2px 4px rgba(0,0,0,0.8); /* Ombre pour bien ressortir */
    width: 100%;            /* Prend toute la largeur */
    box-sizing: border-box;
}
@media (max-width: 768px) {
    .pa-overlay-title {
        display: none;
    }
}

/* Styles communs */
.pa-banner {
    position: absolute;
    top: 20px; left: 20px;
    background-color: #26262699; color: #ffffff;
    font-weight: bold; font-size: 11px;
    padding: 6px 16px; border-radius: 999px;
    z-index: 10; text-transform: uppercase;
    transition: all 0.2s ease-in-out;
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 260px;
}
.pa-banner:hover { transform: translateY(-4px); }
.pa-carte:hover .pa-banner{ color: #fff; background: #1e1e1e; }

.pa-rating {
  display: flex; align-items: center; justify-content: center;
  font-weight: bold; font-size: 1rem; margin: 5px 0 10px; color: #ffdd00;
}
.pa-rating .material-symbols-rounded { font-size: 17px; }
.pa-rating .filled, .pa-rating .half { color: #ffdd00; }
.pa-rating .empty { color: #ccc; opacity: 0.5; }
.pa-rating .pa-note-text {
  margin-left: 6px; font-size: 12px; font-weight: bold;
  color: #FFD700; background: #373737;
  padding: 2px 6px; border-radius: 5px;
  box-shadow: 0 2px 4px rgb(0 0 0 / 25%);
}

.pa-image {
  width: 170px; height: 170px;
  max-width: 100%; object-fit: contain;
  margin: 8px auto 12px; display: block;
  border-radius: 50%; background: #fff;
  box-shadow: 0 4px 12px rgb(0 0 0);
}

.pa-title {
  font-size: 15px; font-weight: 600;
  margin-bottom: 5px; color: #ffffff;
}

/* POINTS FORTS */
.pa-points {
  list-style: none; padding: 10px 20px; margin: 10px 0;
  text-align: left; font-size: 15px; color: #fff; font-weight: bold;
  min-height: 50px; display: flex; flex-direction: column; justify-content: flex-start; 
}
.pa-points li {
  margin: 3px 0; transition: all 0.2s ease-in-out;
  display: flex; align-items: center;
}
.pa-points li:not(.pa-custom-li):hover { transform: translateX(6px); }
.pa-points.pa-points-custom {
  min-height: 200px; flex-direction: row; flex-wrap: wrap;
  align-content: center; justify-content: center; gap: 8px;
}
.pa-points .pa-custom-li {
    display: inline-flex; align-items: center;
    padding: 6px 12px; border-radius: 50px;
    font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    margin: 0; background-color: transparent;
    transform: none !important; 
}
.pa-points .pa-custom-li:hover {
    box-shadow: 0 0 8px inset currentColor; transform: translateY(-2px) !important;
}
.pa-points .pa-custom-li .material-symbols-rounded {
    font-size: 16px; margin-right: 6px;
}

.pa-price {
  font-size: 0.95em; margin: 10px 0 4px; color: #fff;
  margin-top: auto; 
}
.pa-prix-label { color: #ffffff70;
    font-size: 12px; }

/* BOUTONS */
.button-amz { margin: 0; }
.pa-link {
  text-decoration: none; border: 2px solid #ffffff; color: #ffffff;
  padding: 10px 20px; border-radius: 50px; font-weight: bold;
  transition: all 0.2s ease; display: inline-block; background: transparent;
}
.pa-link:hover { background-color: #fff; color: #1a1a1a; }
.pa-btn-amazon {
  position: relative; background-color: #ff5100; color: white;
  padding: 10px 30px; font-size: 16px; font-weight: bold;
  text-decoration: none !important; outline: none; display: inline-block;
  white-space: nowrap; box-shadow: var(--ombre-légère, 0 2px 6px rgba(0, 0, 0, 0.1));
  border-radius: 50px; overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
}
.pa-btn-amazon:hover {
  background-color: #000; color: #ff9900;
  transform: scale(1.05); box-shadow: 0 0 15px rgba(255, 153, 0, 0.5);
}

/* 📱 Mobile */
@media (max-width: 768px) {
  .pa-grid {
    flex-direction: column; align-items: center;
    gap: 15px; margin: 20px auto;
  }
  .pa-carte {
    width: 90%; max-width: 400px;
    padding: 20px 20px 80px 20px;
    font-size: 0.85em; height: auto;
  }
  
  /* Masquer la petite image sur mobile */
  .pa-overlay-image { display: none; }

  .pa-overlay {
      position: relative; background: none; backdrop-filter: none;
      opacity: 1; visibility: visible; height: auto;
      margin-top: 15px; gap: 10px; z-index: 1; order: 10;
  }
  .pa-btn-amazon, .pa-link { width: 80%; text-align: center; }
  .pa-price { margin-top: 10px; }
  .pa-points.pa-points-custom { min-height: auto; padding: 15px 5px; }
}