/* ================================
  base.css - Version optimisée avec menu responsive
================================== */
body {
  background-color: #f8f9fa;
}

/* ================================
   NAVBAR PRINCIPALE
================================== */
.navbar.bg-primary {
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%) !important;
  border-bottom: 3px solid #4a90e2;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Conteneur principal pour forcer la largeur totale */
.navbar .container-fluid {
  padding-left: 1rem;
  padding-right: 1rem;
}

/* Menu desktop */
.navbar-nav {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  flex-shrink: 1;
}

.navbar-nav .nav-item {
  display: flex;
  align-items: center;
  margin: 0;
}

/* Taille de police augmentée pour desktop */
.navbar-dark .navbar-nav .nav-link {
  padding: 0.4rem 0.6rem;
  font-size: 1rem;
  font-weight: 500;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.92);
  transition: all 0.2s ease;
  border-radius: 4px;
}

/* Version desktop écran large - police encore plus lisible */
@media (min-width: 1200px) {
  .navbar-dark .navbar-nav .nav-link {
    font-size: 0.8rem;
    padding: 0.3rem 0.1rem;
  }
}

.navbar-dark .navbar-nav .nav-link:hover {
  color: white;
  background-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

/* Séparateurs verticaux entre les éléments (desktop uniquement) */
@media (min-width: 992px) {
  .navbar-nav .nav-item:not(:last-child)::after {
    content: "|";
    color: rgba(255, 255, 255, 0.5);
    margin-left: 2px;
    font-weight: normal;
    font-size: 1rem;
    line-height: 1;
  }
}

/* Alignement des éléments de droite (jetons, compte) */
.navbar-collapse {
  justify-content: space-between;
}

.navbar .badge,
.navbar .dropdown {
  flex-shrink: 0;
  margin-left: 0.1rem;
}

/* Badge jetons - taille augmentée */
.navbar .badge {
  font-size: 0.7rem;
  padding: 6px 6px;
}

/* Boutons de connexion - taille augmentée */
.navbar .btn-light {
  background-color: #4CAF50;
  color: white;
  border: none;
  font-weight: 500;
  padding: 6px 10px;
  font-size: 0.8rem;
  border-radius: 6px;
  transition: all 0.3s;
}

.navbar .btn-light:hover {
  background-color: #328b50;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(76, 175, 80, 0.3);
}

/* Taille de l'email dans le menu déroulant */
.navbar .dropdown-toggle {
  font-size: 0.8rem;
  padding: 0.4rem 0.6rem;
}

/* ================================
   STYLES MOBILE - MENU HAMBURGER
================================== */

/* Bouton hamburger - visible uniquement sur mobile */
.navbar-toggler {
  border: 1px solid rgba(255, 255, 255, 0.5);
  padding: 0.5rem 0.75rem;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25);
}

/* Menu mobile - affichage en colonne */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: linear-gradient(135deg, #2a5298 0%, #1e3c72 100%);
    padding: 15px;
    border-radius: 8px;
    margin-top: 10px;
  }
  
  /* Liens en colonne sur mobile */
  .navbar-nav {
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    margin-bottom: 15px;
  }
  
  .navbar-nav .nav-item {
    width: 100%;
  }
  
  .navbar-nav .nav-item:not(:last-child)::after {
    content: none;  /* Supprime les séparateurs verticaux sur mobile */
  }
  
  .navbar-dark .navbar-nav .nav-link {
    padding: 0.5rem 0.75rem;
    font-size: 1rem;
    border-radius: 6px;
    text-align: center;
  }
  
  .navbar-dark .navbar-nav .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.2);
  }
  
  /* Badge jetons sur mobile */
  .navbar .badge {
    display: inline-block;
    margin: 0 0 10px 0;
    text-align: center;
    width: auto;
    align-self: flex-start;
  }
  
  /* Boutons connexion sur mobile */
  .navbar .btn-outline-light,
  .navbar .btn-light {
    width: 100%;
    margin: 5px 0;
    text-align: center;
  }
  
  /* Dropdown sur mobile */
  .navbar .dropdown {
    width: 100%;
  }
  
  .navbar .dropdown-toggle {
    width: 100%;
    text-align: center;
  }
  
  .dropdown-menu {
    width: 100%;
    text-align: center;
  }
}

/* Très petits écrans (moins de 480px) */
@media (max-width: 480px) {
  .navbar-brand {
    font-size: 1.1rem;
  }
  
  .navbar-dark .navbar-nav .nav-link {
    font-size: 0.9rem;
    padding: 0.4rem 0.6rem;
  }
  
  .navbar .badge {
    font-size: 0.75rem;
    padding: 4px 8px;
  }
  
  .navbar .btn-light,
  .navbar .btn-outline-light {
    font-size: 0.8rem;
    padding: 6px 12px;
  }
}

/* ================================
   CONTENEUR PRINCIPAL LARGEUR 90%
================================== */
main.container {
  width: 90%;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 0;
  padding-right: 0;
}

/* Écrans larges : on supprime la contrainte max-width de Bootstrap */
@media (min-width: 1200px) {
  .container {
    max-width: none;
  }
}

/* ================================
   CARTES DE LICENCES
================================== */
.license-card {
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  border: none;
  margin-bottom: 30px;
}

.standalone-card {
  background: linear-gradient(135deg, #65a2dc 0%, #e9ecef 100%);
  border: 2px solid #668eb1;
  box-shadow: 0 6px 15px rgba(108, 117, 125, 0.1);
}

.standalone-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(132, 182, 122, 0.2);
}

.network-card {
  background: linear-gradient(135deg, #e3f2fd 0%, #27557a 100%);
  border: 2px solid #648bac;
  box-shadow: 0 6px 15px rgba(33, 150, 243, 0.15);
  position: relative;
}

.network-card::before {
  content: "RECOMMANDÉ";
  position: absolute;
  top: 15px;
  right: -30px;
  background: #6b97bb;
  color: white;
  padding: 5px 35px;
  transform: rotate(45deg);
  font-size: 0.8em;
  font-weight: bold;
  z-index: 1;
}

.network-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(93, 163, 134, 0.25);
}

/* ================================
   FOOTER
================================== */
.footer {
  background: #5f6c79;
  color: white;
  padding: 15px 20px;
  margin-top: 30px;
}

.footer-section h3 {
  color: white;
  font-size: 1.2rem;
  margin-bottom: 15px;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  font-size: 0.9em;
  color: white;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  padding: 10px 15px;
  background: #153454;
  color: white;
  font-size: 0.9em;
  gap: 10px;
  margin-top: 15px;
  text-align: center;
}

.footer-bottom a {
  color: #aaa;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-bottom a:hover {
  color: white;
  text-decoration: underline;
}

@media (max-width: 768px) {
  .footer-bottom {
    flex-wrap: wrap;
    font-size: 0.8em;
  }
  .footer-bottom span {
    margin-left: 0 !important;
    width: 100%;
    margin-top: 5px;
  }
}

/* ================================
   ANIMATIONS POUR acheter_jetons.html
================================== */
@keyframes fadeSlideInDesktop {
  0% { opacity: 0; transform: translateX(50px); }
  100% { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInMobile {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
.card {
  opacity: 0;
  animation: fadeSlideInDesktop 0.8s forwards;
}
.card:nth-child(1) { animation-delay: 0.2s; }
.card:nth-child(2) { animation-delay: 0.4s; }
.card:nth-child(3) { animation-delay: 0.6s; }
.card:nth-child(4) { animation-delay: 0.8s; }
@media (max-width: 768px) {
  .card { animation: fadeInMobile 1s forwards; }
  .card:nth-child(1) { animation-delay: 0.1s; }
  .card:nth-child(2) { animation-delay: 0.2s; }
  .card:nth-child(3) { animation-delay: 0.3s; }
  .card:nth-child(4) { animation-delay: 0.4s; }
}

@keyframes fadeOut {
  0% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(20px); }
}
.fade-out { animation: fadeOut 0.5s forwards; }

@keyframes pageFadeOutGold {
  0% { opacity: 1; background-color: transparent; }
  50% { opacity: 0.7; background-color: rgba(255, 193, 7, 0.2); }
  100% { opacity: 0; background-color: transparent; transform: translateY(20px); }
}
.page-transition { animation: pageFadeOutGold 0.6s forwards; }

.highlight-offer {
  position: relative;
  overflow: hidden;
  border: 2px solid #ffc107;
  transition: transform 0.6s;
  transform-style: preserve-3d;
  animation: shineLoop 5s infinite;
}
.highlight-offer:hover {
  transform: rotateY(10deg) scale(1.05);
  box-shadow: 0 0 20px rgba(255, 193, 7, 0.6);
}
.highlight-offer::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(120deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0.0) 60%);
  transform: rotate(25deg);
  opacity: 0;
}
@keyframes shineLoop {
  0% { opacity: 0; transform: translateX(-100%) rotate(25deg); }
  20% { opacity: 1; transform: translateX(-50%) rotate(25deg); }
  50% { opacity: 1; transform: translateX(100%) rotate(25deg); }
  100% { opacity: 0; }
}
.badge-offer { animation: pulse 1.5s infinite; }
@keyframes pulse {
  0% { transform: scale(1); box-shadow: 0 0 0 rgba(255,193,7,0.7); }
  50% { transform: scale(1.1); box-shadow: 0 0 15px rgba(255,193,7,0.9); }
  100% { transform: scale(1); box-shadow: 0 0 0 rgba(255,193,7,0.7); }
}
.badge-populaire { animation: bounce 2s infinite; }
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}
.badge-pro { animation: glowBlue 2s infinite alternate; }
@keyframes glowBlue {
  from { box-shadow: 0 0 5px rgba(0,123,255,0.6); }
  to { box-shadow: 0 0 20px rgba(0,123,255,1); }
}
.pay-btn {
  position: relative;
  overflow: hidden;
}
.pay-btn .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.6);
  transform: scale(0);
  animation: rippleEffect 0.6s linear;
  pointer-events: none;
}
@keyframes rippleEffect {
  to {
    transform: scale(4);
    opacity: 0;
  }
}
.pay-btn:active {
  box-shadow: 0 0 15px rgba(0, 123, 255, 0.7);
}