.details-modal-main .button-style { 
    background: linear-gradient(45deg, #000000, #376cff, #000000);
    color: #000000;
    border: none;
    border-radius: 6px;
    padding: 0.7rem 1.5rem;
    font-weight: bold;
    font-size: 1.2rem;
    cursor: pointer;
    display: block;
    transition: 0.3s ease;
    margin-top: 2rem;
} 

.forfaits-modal .button-style:hover {
    background: linear-gradient(45deg,  #376cff, #000000, #376cff);
    transform: scale(1.3);
    color: #ffffff;
}

#detailsModal h2 {
    margin-top: 0;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-family: 'orbitron', sans-serif;
    font-weight: bold;
    text-shadow: none;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

#detailsModal h4 {
    margin-top: 0;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-family: 'orbitron', sans-serif;
    font-weight: bold;
    text-shadow: none;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

#forfaits-modal {
    width: 100%;
    min-width: 0;
}

#forfaits-modal p {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-family: 'orbitron', sans-serif;
    font-weight: bold;
    text-shadow: none;
    min-width: 0;
}

#detailsModal #forfait-classique li {
    font-size: 1.2rem; /* or whatever size you want */
    margin-bottom: 0.6rem;
    color: #000000;
    font-family: 'orbitron', sans-serif;
    font-weight: bold;
    text-shadow: none;
}

#forfaits-modal h2 {
    margin-top: 0;
    font-size: 2rem;
    margin-bottom: 1rem;
    font-family: 'orbitron', sans-serif;
    font-weight: bold;
    color: #000000;
    text-shadow: 5px 3px 5px #376cff;
}

#detailsModal #forfait-univers li {
    font-size: 1.2rem; /* or whatever size you want */
    margin-bottom: 0.6rem;
    color: #000000;
    font-family: 'orbitron', sans-serif;
    font-weight: bold;
    text-shadow: none;
}

#detailsModal #forfait-guilde li {
    font-size: 1.2rem; /* or whatever size you want */
    margin-bottom: 0.6rem;
    color: #000000;
    font-family: 'orbitron', sans-serif;
    font-weight: bold;
    text-shadow: none;
}

#forfaits-modal section {
    display: none;
    background: transparent;
    border-radius: 12px;
    padding: 0;
    margin: 0;
    word-break: break-word;
    width: 100%;
}

#forfaits-modal section[style*="display: block"] {
    display: block;
}

.close-details-btn {
    width: auto;
    max-width: 100%;
    text-align: center;
    
}

.close-details-btn {
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-top: 2rem;
  margin-bottom: 0rem;
}

body, html {
    display: block;
}

#detailsModal {
    display: none;
    position: fixed;
    top: 50%; /* Centrage vertical */
    left: 50%;
    transform: translate(-50%, -50%); /* Centrage parfait */
    width: 90%; /* On laisse un peu de marge sur les côtés */
    max-width: 1300px;
    height: auto;
    max-height: 85vh; /* Évite que la modale sorte de l'écran */
    background: #ffffff;
    padding: 2rem;
    border-radius: 16px;
    z-index: 1000;
    color: #000000;
    overflow-y: auto;
    box-shadow: 0 0 30px #376cff;
    pointer-events: auto; 
    border: #000000 2px solid;
}

.details-modal-content {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  min-width: 0;
}

.details-modal-image {
  flex: 0 1 450px;      /* Increase from 200px to 350px (or more) */
  max-width: 600px;     /* Increase max width */
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.details-modal-image img {
  width: 100%;
  max-width: 600px;     /* Increase max width */
  height: auto;
  border-radius: 12px;
  box-shadow: 0 2px 12px #0002;
  background: #fff;
  display: block;
}

.details-modal-main {
  flex: 2 1 0; /* Grow twice as fast as the image container */
  min-width: 0; /* Or whatever minimum you want */
   overflow-x: hidden;
  word-break: break-word;
  overflow-wrap: break-word;
  height: auto;
  margin-top: auto;
    margin-bottom: auto;
}

.details-modal-main ul,
.details-modal-main ol {
  width: 100%;
  padding-left: 1.5rem; /* or adjust as needed for bullets */
  box-sizing: border-box;
  margin: 0 auto;
}

.details-modal-main li {
  width: 100%;
  box-sizing: border-box;
  display: block;
}

.button-style {
    background: linear-gradient(45deg, #000000, #376cff, #000000);
    color: #000000;
    border: 1px solid #fff4e3;
    border-radius: 6px;
    padding: 0.7rem 1.5rem;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 1.9rem;
    margin-bottom: 1.9rem;
    margin-left: auto;
    margin-right: auto;
    display: block;
    transition: 0.3s ease;
}

.button-style:hover {
    background: linear-gradient(45deg,  #376cff, #000000, #376cff);
    transform: scale(1.2);
    color: #ffffff;
}