body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: white;
}

/* HEADER */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
}

.glass {
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* NAV */
nav button {
  margin-left: 10px;
}

/* SECTIONS */
.section {
  padding: 30px;
}

/* CARD */
.card {
  max-width: 400px;
  margin: auto;
  border-radius: 15px;
  background: rgba(255,255,255,0.05);
  padding: 25px;
  backdrop-filter: blur(10px);
}

/* INPUT */
input, select {
  width: 100%;
  padding: 12px;
  margin: 10px 0;
  border-radius: 10px;
  border: none;
  outline: none;
  background: rgba(255,255,255,0.1);
  color: white;
}

/* BUTTONS */
button {
  padding: 10px 15px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  background: rgba(255,255,255,0.1);
  color: white;
  transition: 0.2s;
}

button:hover {
  transform: scale(1.05);
}

.primary {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
}

/* GRID PRODUITS */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

/* PRODUIT */
.produit {
  background: rgba(255,255,255,0.05);
  padding: 15px;
  border-radius: 15px;
  transition: 0.2s;
}

.produit:hover {
  transform: translateY(-5px);
}

/* ================= PANIER ================= */

.cart-grid {
  display: grid;
  gap: 15px;
  margin-top: 20px;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 15px;
  background: rgba(255,255,255,0.05);
  padding: 15px;
  border-radius: 15px;
}

.cart-item img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 10px;
}

.cart-info {
  flex: 1;
}

.cart-price {
  font-weight: bold;
}

.remove-btn {
  background: #ef4444;
  color: white;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
}

.cart-footer {
  margin-top: 20px;
  text-align: right;
}

.danger {
  background: #dc2626;
  color: white;
}

.cart-grid {
  display: grid;
  gap: 15px;
  margin-top: 20px;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 15px;
  background: rgba(255,255,255,0.05);
  padding: 15px;
  border-radius: 15px;
}

.cart-item img {
  width: 80px;
  height: 80px;
  border-radius: 10px;
  object-fit: cover;
}

.cart-info {
  flex: 1;
}

.cart-price {
  font-weight: bold;
}

.remove-btn {
  background: red;
  color: white;
  padding: 8px;
  border-radius: 8px;
  cursor: pointer;
}

/* ================= MODAL SYSTEM (MODERNE 2025) ================= */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.modal {
  width: 90%;
  max-width: 420px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 18px;
  padding: 20px;
  color: white;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  animation: pop .25s ease;
}

@keyframes pop {
  from { transform: scale(0.85); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal h3 {
  margin-top: 0;
}

.modal input {
  width: 100%;
  padding: 10px;
  margin: 8px 0;
  border-radius: 10px;
  border: none;
  outline: none;
  background: rgba(255,255,255,0.1);
  color: white;
}

.modal button {
  width: 100%;
  margin-top: 10px;
}

.modal .close {
  background: rgba(255,0,0,0.3);
}

.payment-box{
  max-width:500px;
  margin:auto;
  margin-top:50px;
  padding:30px;
  border-radius:20px;
  background:rgba(255,255,255,0.06);
  backdrop-filter:blur(15px);
  text-align:center;
}

.payment-methods{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-top:15px;
}

.payment-methods button{
  padding:12px;
  border-radius:10px;
  border:none;
  cursor:pointer;
  background:rgba(255,255,255,0.1);
  transition:0.2s;
}

.payment-methods button:hover{
  transform:scale(1.05);
  background:rgba(255,255,255,0.2);
}

.back-btn{
  margin-top:20px;
  background:#ff4d4d;
}

/* ================= MODAL MODERNE 2025 ================= */

.modal.modern {
  width: 95%;
  max-width: 420px;
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(30,41,59,0.85), rgba(15,23,42,0.85));
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(20px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  padding: 0;
  overflow: hidden;
  animation: pop 0.25s ease;
}

/* HEADER */
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  font-weight: 600;
  font-size: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

/* BODY */
.modal-body {
  padding: 20px;
}

.modal-body textarea {
  width: 100%;
  height: 90px;
  resize: none;
  border-radius: 14px;
  border: none;
  padding: 14px;
  background: rgba(255,255,255,0.08);
  color: white;
  font-size: 14px;
  outline: none;
  transition: 0.2s;
}

.modal-body textarea:focus {
  background: rgba(255,255,255,0.12);
}

/* FOOTER */
.modal-footer {
  display: flex;
  gap: 10px;
  padding: 15px;
}

/* BOUTONS */
.send-btn {
  flex: 1;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border-radius: 12px;
  padding: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
}

.cancel-btn {
  flex: 1;
  background: rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 12px;
  cursor: pointer;
}

.close-btn {
  background: transparent;
  border: none;
  color: white;
  font-size: 18px;
  cursor: pointer;
}

/* HOVER */
.send-btn:hover {
  transform: scale(1.05);
}

.cancel-btn:hover {
  background: rgba(255,255,255,0.15);
}

.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #111;
  color: white;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 14px;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 9999;
  box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Force la couleur du texte dans les menus déroulants */
select option {
    background-color: #1e293b; /* Couleur sombre comme ton fond */
    color: white;
}

/* Optionnel : Amélioration du visuel du select */
select {
    appearance: none;
    cursor: pointer;
}

/* Arrière-plan sombre et flou */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

/* La boîte de dialogue */
.modal-content {
    background: #1e1e1e;
    color: white;
    padding: 25px;
    border-radius: 20px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
    transform: scale(0.9);
    animation: modalShow 0.2s forwards;
}

@keyframes modalShow {
    to { transform: scale(1); }
}

.modal-header h3 { margin: 10px 0; font-size: 1.5rem; }
.modal-icon { font-size: 2rem; }

.modal-buttons {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.modal-buttons button {
    flex: 1;
    padding: 12px;
    border-radius: 12px;
    border: none;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}

.btn-secondary { background: #333; color: white; }
.btn-secondary:hover { background: #444; }

.btn-danger { background: #ff4757; color: white; }
.btn-danger:hover { background: #ff6b81; transform: translateY(-2px); }

/* ... (tout votre code précédent reste inchangé) ... */

/* ================= PAGE MAINTENANCE (AJOUTÉ) ================= */

.maintenance-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 100px;
}

.hammer-icon {
    font-size: 80px;
    margin-bottom: 20px;
    animation: hammer-hit 1.5s infinite;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.1);
    border-top: 5px solid #6366f1; /* Couleur violette comme tes boutons */
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 25px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes hammer-hit {
    0% { transform: rotate(0deg); }
    20% { transform: rotate(-30deg); }
    40% { transform: rotate(10deg); }
    100% { transform: rotate(0deg); }
}

#maintenance-page h2 {
    font-size: 2rem;
    color: #f1c40f; /* Couleur jaune pour attirer l'attention */
}

#maintenance-page p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}