.list-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;
} 

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



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

#listModal 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;
}

#listModal {
    width: 100%;
    min-width: 0;
}

#listModal 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;
}

#listModal #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;
}

#listModal h2 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-family: 'orbitron', sans-serif;
    font-weight: bold;
    color: #fff4e3;
    text-shadow: 5px 3px 5px #000000;
}

#listModal #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;
}

#listModal #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;
}

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

#listModal section[style*="display: block"] {
    display: block;
}

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

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

/* Ton CSS d'isolation que tu as déjà, avec un petit look pour le test */

#listModal {
    position: fixed;
    top: 30%; left: 29%; width: 100vw; height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    
    overflow-y: hidden;
    width: 800px !important;
    height: 500px;
    border-radius: 15px;
    background: rgba(0,0,0,0.5) !important; /* optional overlay */
    
}

#list-classique {
    display: none;
    background: #00ffcc;
    border-radius: 12px;
    padding: 0;
    margin: 0;
    word-break: break-word;
    width: 100%;
}

.list-modal-content {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  min-width: 0;
  overflow-y: auto;
  background: rgba(0,0,0,0.5) !important; /* optional overlay */
  color: transparent !important;
    padding: 2rem;
    border: 2px solid #00ffcc;
    border-radius: 15px;
    max-width: 800px;
    width: 100% !important;
    height: 500px;
    text-align: center;
    box-shadow: 0 0 20px rgba(0, 255, 204, 0.3);

}

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

.list-modal-image img {
  width: 100%;
  max-width: 400px;     /* Increase max width */
  height: 400px;        /* Set a fixed height */
  border-radius: 12px;
  box-shadow: 0 2px 12px #0002;
  background: #fff;
  display: block;
  border: 2px solid #00ffcc;
   display: flex;
  align-items: center;
  justify-content: center;
}

.close-modal-and-go {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    
    margin-top: auto;
    margin-bottom: auto;
}

.list-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;
}

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

.list-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;
}


#listModal .close-list-btn.button-style {
    background: linear-gradient(45deg, #000000, #376cff, #000000);
    color: #000000;
    border: 1px solid #fff4e3;
    border-radius: 6px;
    padding: 0.2rem 0.5rem;
    font-weight: bold;
    font-size: 0.8rem;
    cursor: pointer;
    margin-top: 0.2rem;
    margin-bottom: 0.2rem;
    margin-left: auto;
    margin-right: auto;
    display: block;
    transition: 0.3s ease;
    width: 50%;
}

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