/* Désactivation de la sélection de texte */
* {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Style général du corps de la page */
body {
    font-family: Arial, sans-serif;
    background-color: #f0f0f0;
    margin: 0;
    padding: 0;
}

/* Conteneurs principaux */
.container1,
.container2 {
    margin-top: 10px;
    padding-top: 60px; /* Ajouté pour laisser de l'espace sous la barre de menu */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Bannière */
.banner-container {
    position: relative;
    width: 100%;
    height: 95px;
}

.banner {
    width: 100%;
    height: 100%;
    background-image: url('./themes/banniere.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.banner-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -95%);
    color: white;
    font-size: 18px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
    font-family: "Sofadi One", system-ui;
    font-weight: 400;
    font-style: normal;
}

/* Le reste du CSS reste identique */
.button, .enter-button, .buy-button {
    width: auto;
    background-color: #28a745;
    color: white;
    border: none;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 0;
    cursor: pointer;
    border-radius: 5px;
}

.content {
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
    flex-grow: 1;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 10px;
}

.category-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.category-card:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.category-title {
    background-color: #f0f0f0;
    padding: 10px;
    font-weight: bold;
    text-align: center;
}

.category-content {
    padding: 5px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
}

.category-content p {
    margin: 2px 0;
    line-height: 1.2;
}

.category-image {
    max-width: 100%;
    height: auto;
    margin-bottom: 5px;
    object-fit: contain;
    max-height: 150px;
}

.footer {
    text-align: center;
    padding: 10px 0;
    font-size: 14px;
    color: #666;
}

.footer a {
    color: #4CAF50;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

.price-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    margin: 2px 0;
}

.price-container img {
    vertical-align: middle;
    width: 25px;
    height: 25px;
}

.category-content, .price-container {
    font-size: 14px;
}

.buy-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    gap: 20px;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    text-align: center;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.success-message {
    color: green;
    font-weight: bold;
}

.error-message {
    color: red;
    font-weight: bold;
}

#popupOverlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.popup-image {
    max-width: 100%;
    height: auto;
    margin-bottom: 15px;
}

.popup-text {
    font-size: 18px;
    margin-bottom: 15px;
}

.popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    cursor: pointer;
}

