/* Title */ h1 { text-align: center; font-size: 42px; color: #b03a2e; margin-bottom: 20px; } /* Menu Grid */ .menu-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* 3 max par ligne */ gap: 20px; justify-content: center; } /* Menu Card */ .menu-card { background: white; padding: 20px; border-radius: 15px; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15); text-align: center; transition: transform 0.3s ease, box-shadow 0.3s ease; } /* Plat Name */ .menu-card h2 { font-size: 28px; color: #b03a2e; margin-bottom: 10px; } /* Description */ .menu-card p { font-size: 18px; color: #555; margin-bottom: 10px; } /* Price */ .menu-card .price { font-size: 22px; font-weight: bold; color: #388E3C; margin-bottom: 15px; } /* Buttons */ .menu-card .actions { display: flex; justify-content: center; gap: 10px; } /* Styles des boutons Modifier et Supprimer */ .menu-card .actions a, .menu-card .actions button { text-decoration: none; font-size: 16px; font-weight: bold; padding: 10px 15px; border-radius: 8px; transition: all 0.3s ease-in-out; border: none; cursor: pointer; display: inline-block; /* Pour que le bouton suppr ait le même comportement qu'un lien */ text-align: center; } /* Modifier */ .menu-card .edit { background-color: #ffb74d; color: white; } .menu-card .edit:hover { background-color: #ffa726; } /* Supprimer */ .menu-card .delete { background-color: #d32f2f; color: white; } .menu-card .delete:hover { background-color: #c62828; } .menu-card .edit { background-color: #ffb74d; color: white; } .menu-card .edit:hover { background-color: #ffa726; } .menu-card .delete { background-color: #d32f2f; color: white; } .menu-card .delete:hover { background-color: #c62828; } /* Button for Adding New Dish */ .add-menu { display: block; text-align: center; background-color: #b03a2e; color: white; padding: 15px; font-size: 20px; margin-top: 30px; border-radius: 10px; width: 300px; margin-left: auto; margin-right: auto; } .add-menu:hover { background-color: #922b21; }