/**
 * Module Abonnement Marketplace pour PrestaShop 8.2
 *
 * @author TonNom
 * @copyright Copyright (c) 2025
 * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
 */

/* Styles pour les cartes d'abonnement */
.abonnement-cards-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: flex-start; /* Alignement à gauche au lieu de center */
  margin: 30px 0;
  width: 100%;
}

.abonnement-card {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  width: calc(33.33% - 20px); /* Largeur fixe à 1/3 de l'espace moins la marge */
  min-width: 250px; /* Largeur minimale pour éviter des cartes trop étroites */
  padding: 20px;
  box-sizing: border-box;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-bottom: 20px;
}

.abonnement-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.abonnement-card img.abonnement-logo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid #4CAF50;
  margin-bottom: 15px;
  object-fit: cover;
}

.abonnement-card h2 {
  font-size: 1.2em;
  margin-bottom: 5px;
  color: #333;
}

.abonnement-card .abonnement-version {
  color: #666;
  font-size: 0.9em;
  margin-bottom: 10px;
}

.abonnement-card .abonnement-description {
  font-size: 0.95em;
  margin-bottom: 10px;
  color: #444;
  min-height: 60px;
}

.abonnement-card .abonnement-more {
  color: #007BFF;
  text-decoration: none;
  font-size: 0.9em;
  display: inline-block;
  margin-bottom: 10px;
}

.abonnement-card .abonnement-more:hover {
  text-decoration: underline;
}

.abonnement-card .abonnement-compatibility {
  font-size: 0.85em;
  color: #999;
  margin-top: 10px;
}

.abonnement-card .abonnement-stars {
  color: #FFA500;
  margin: 10px 0;
  font-size: 1.2em;
}

.abonnement-card .abonnement-price {
  font-size: 1.2em;
  font-weight: bold;
  margin: 10px 0;
  color: #2fb5d2;
}

.abonnement-card button {
  background-color: #2fb5d2;
  color: white;
  padding: 10px 15px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  width: 100%;
  margin-top: 10px;
}

.abonnement-card button:hover {
  background-color: #2a9eb5;
}

/* Responsive design amélioré */
@media (max-width: 992px) {
  .abonnement-card {
    width: calc(50% - 20px); /* 2 cartes par ligne sur tablette */
  }
}

@media (max-width: 576px) {
  .abonnement-card {
    width: 100%; /* 1 carte par ligne sur mobile */
  }
}

/* Styles pour la page de paiement */
.abonnement-pay-info {
  max-width: 500px;
  margin: 50px auto;
  padding: 20px;
  text-align: center;
  border: 1px solid #eee;
  border-radius: 10px;
  background-color: #f9f9f9;
  font-family: Arial, sans-serif;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.abonnement-pay-info h2 {
  color: #2fb5d2;
  margin-bottom: 15px;
}

/* Styles pour la page de confirmation */
.abonnement-confirmation {
  max-width: 600px;
  margin: 40px auto;
  padding: 30px;
  text-align: center;
  border-radius: 10px;
  font-family: Arial, sans-serif;
}

.abonnement-confirmation.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.abonnement-confirmation.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.abonnement-confirmation h2 {
  margin-bottom: 20px;
}

.abonnement-details {
  text-align: left;
  background-color: rgba(255, 255, 255, 0.7);
  padding: 15px;
  border-radius: 5px;
  margin: 20px 0;
}

.abonnement-details ul {
  list-style: none;
  padding: 0;
}

.abonnement-details li {
  margin-bottom: 10px;
}

.abonnement-actions {
  margin-top: 25px;
}

.abonnement-actions .btn {
  margin: 0 5px;
}

/* Modal styles */
.modal-content {
  border-radius: 10px;
}

.modal-header {
  background-color: #f8f9fa;
  border-radius: 10px 10px 0 0;
}

.modal-title {
  color: #2fb5d2;
}

.abonnement-commission, .abonnement-price-details {
  font-weight: bold;
  margin-top: 15px;
}

/* Ajouter ceci à votre fichier CSS */
.abonnement-cards-container {
  width: 100%;
  max-width: 100%;
}

/* Si nécessaire, pour forcer l'utilisation de toute la largeur */
#module-abonnementmarketplace-subscribe #content-wrapper .container {
  width: 100%;
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
}

/* Pour les thèmes qui utilisent des colonnes */
#module-abonnementmarketplace-subscribe #left-column, #module-abonnementmarketplace-subscribe #right-column {
  display: none;
}

#module-abonnementmarketplace-subscribe #content-wrapper {
  width: 100% !important;
}
